// source --> https://f-band.com/wp-content/plugins/alex-player/media-engine.js?ver=1.41 
/* Alex Player v1.41, Author: Alex Zhyrytovskyi, 2019-2024. URL: https://alex.player.x10.name/ */
!function(){!function(globals,$){var engineVersion="1.41",ui,uiQuery,eventNameOverrides,easingFunctions,$,extras,usagesSent,dspProcessors,instanceMgr,mediaEngineInstanceCounter,fullScreenVisualisationRunned,lm;function uiKit(e){return new _uiKit(e)}function _uiKit(e){return this.uiQuery(e)}function createNodeFromHTML(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild}function prependChild(e,t){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function insertBefore(e,t){t.parentNode.insertBefore(e,t)}function insertAfter(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function sendUsages(){var e;usagesSent||((e=new XMLHttpRequest).open("GET","//media-engine.x10.name/usage-statistics/?url="+encodeURIComponent(location.href)+"&host="+encodeURIComponent(location.hostname)+"&version="+engineVersion),e.send(),usagesSent=!0)}function MediaEvents(){var r=[],i={};function a(e,t){(t=ui.toObject(t)).name=e;for(var n=0;n<r.length;n++){var i=r[n][e];if(i)for(var a=0;a<i.length;a++)i[a](t)}}return{bindEvent:function(e,t,n){ui.isFunction(n)&&((e=$(e)[0])._mediaEvents=ui.toObject(e._mediaEvents),e._mediaEvents[t]=ui.toArray(e._mediaEvents[t]),ui.arrayHas(e._mediaEvents[t],n)||e._mediaEvents[t].push(n),ui.arrayHas(r,e._mediaEvents)||r.push(e._mediaEvents))},unbindEvent:function(e,t,n){e=$(e)[0],ui.isArray(e._mediaEvents[t])&&ui.arrayRemove(e._mediaEvents[t],n)},unbindEvents:function(e){delete $(e)[0]._mediaEvents},triggerEvent:function(e,t){var n;"number"!=typeof t?a(e,t):i.hasOwnProperty(e)||((n={}).timer=setTimeout(function(){delete i[e],a(e)},t),i[e]=n)},destroy:function(){ui.destroy(r),ui.destroy(i)}}}function getEQFreqStr(e){return(e=ui.toInt(e))<0||9<e?"":(e=globals.dspEQFreqs[e])<1e3?ui.toString(e):ui.toString(Math.floor(e/1e3))+"k"}function dspEqualizer(n){var a,i,t=1,r=new Float64Array(10),o={},s=new Float64Array(10),l=new Float64Array(10),u=new Float64Array(10),c=new Float64Array(10),f=new Float64Array(10),d=new Float64Array(10),h=[],p=[],_=[],v=[],g=null;function m(){for(var e=0;e<10;e++){var t=globals.dspEQFreqs[e],t=(a<=2*t&&(t=0),2*Math.PI*t/a);s[e]=2*Math.sin(t)/12,c[e]=-2*Math.cos(t)}for(var n=0;n<10;n++){var i=Math.pow(10,r[n]/40);f[n]=1+s[n]*i,d[n]=1-s[n]*i,l[n]=1/(1+s[n]/i),u[n]=1-s[n]/i}}function b(e){t=Math.pow(10,e/40),g&&g.port.postMessage({action:"setPreAmp",preAmp:t}),n&&n.triggerEvent("onPreampChanged",10)}function w(e,t){(e=ui.toInt(e))<0||9<e||(r[e]=ui.ensureRange(ui.toFloat(t),-20,20),i=!0,g&&g.port.postMessage({action:"setEQBand",number:e,value:r[e]}),n&&n.triggerEvent("onEQBandChanged",10))}return{flush:function(e){a=e.sampleRate,i=!0,dsp_equalizer_flush(e.numberOfChannels,h,p,_,v,o),(g=e.processorNode)&&(g.port.postMessage({action:"setPreAmp",preAmp:t}),g.port.postMessage({action:"setEQBand",number:0,value:r[0]}),g.port.postMessage({action:"setEQBand",number:1,value:r[1]}),g.port.postMessage({action:"setEQBand",number:2,value:r[2]}),g.port.postMessage({action:"setEQBand",number:3,value:r[3]}),g.port.postMessage({action:"setEQBand",number:4,value:r[4]}),g.port.postMessage({action:"setEQBand",number:5,value:r[5]}),g.port.postMessage({action:"setEQBand",number:6,value:r[6]}),g.port.postMessage({action:"setEQBand",number:7,value:r[7]}),g.port.postMessage({action:"setEQBand",number:8,value:r[8]}),g.port.postMessage({action:"setEQBand",number:9,value:r[9]}))},process:function(e){i&&(m(),i=!1),dsp_equalizer_process(e.data,e.length,e.numberOfChannels,a,t,l,u,c,f,d,h,p,_,v,e.allowOverflow,o)},copyParams:function(e){b(e.getPreamp());for(var t=0;t<10;t++)w(t,e.getEQBand(t))},getPreamp:function(){return 40*ui.log10(t)},setPreamp:b,getEQBand:function(e){return(e=ui.toInt(e))<0||9<e?0:r[e]},setEQBand:w}}function dspSound3D(t){var n=0,i=0,a=null;function r(e){(e=ui.ensureRange(ui.toFloat(e),0,1))!=i&&(n=3*(i=e),a&&a.port.postMessage({action:"setSound3D",value:i,k:n}),t)&&t.triggerEvent("onSound3DChanged",10)}return{flush:function(e){(a=e.processorNode)&&a.port.postMessage({action:"setSound3D",value:i,k:n})},process:function(e){dsp_sound3d_process(e.data,e.length,e.numberOfChannels,n,i)},copyParams:function(e){r(e.getValue())},getValue:function(){return i},setValue:r}}function dspLowpass(t){var n=[],i=1,a=1,r=null;function o(e){(e=ui.ensureRange(ui.toFloat(e),1e-4,1))!=a&&(a=e,i=Math.pow(2,5*(a-1)),r&&r.port.postMessage({action:"setLowpass",value:a,f:i}),t)&&t.triggerEvent("onLowpassChanged",10)}return{flush:function(e){dsp_lowpass_flush(n,e.numberOfChannels),(r=e.processorNode)&&r.port.postMessage({action:"setLowpass",value:a,f:i})},process:function(e){dsp_lowpass_process(e.data,e.length,e.numberOfChannels,n,i,a)},copyParams:function(e){o(e.getValue())},getValue:function(){return a},setValue:o}}function dspHighpass(t){var n=[],i=0,a=0,r=null;function o(e){(e=ui.ensureRange(ui.toFloat(e),0,1))!=a&&(a=e,i=Math.pow(2,10*(.8*a-1)),r&&r.port.postMessage({action:"setHighpass",value:a,f:i}),t)&&t.triggerEvent("onHighpassChanged",10)}return{flush:function(e){dsp_highpass_flush(n,e.numberOfChannels),(r=e.processorNode)&&r.port.postMessage({action:"setHighpass",value:a,f:i})},process:function(e){dsp_highpass_process(e.data,e.length,e.numberOfChannels,n,i,a)},copyParams:function(e){o(e.getValue())},getValue:function(){return a},setValue:o}}function dspBalance(t){var n=0,i=null;function a(e){(e=ui.ensureRange(e,-1,1))!=n&&(n=e,i&&i.port.postMessage({action:"setBalance",value:n}),t)&&t.triggerEvent("onBalanceChanged",10)}return{flush:function(e){(i=e.processorNode)&&i.port.postMessage({action:"setBalance",value:n})},process:function(e){dsp_balance_process(e.data,e.length,e.numberOfChannels,n)},copyParams:function(e){a(e.getValue())},getValue:function(){return n},setValue:a}}function DSPFilter(t){var n=dspSound3D(t),i=dspLowpass(t),a=dspHighpass(t),r=dspEqualizer(t),o=dspBalance(t),s="";function l(e){var t=e.processorNode;t&&t.port.postMessage({action:"flush",sampleRate:e.sampleRate}),n.flush(e),i.flush(e),a.flush(e),r.flush(e),o.flush(e)}function u(e){n.process(e),i.process(e),a.process(e),r.process(e),o.process(e)}function c(e){n.copyParams(e.sound3d),i.copyParams(e.lowpass),a.copyParams(e.highpass),r.copyParams(e.equalizer),o.copyParams(e.balance)}return{sound3d:n,lowpass:i,highpass:a,equalizer:r,balance:o,flush:l,process:u,copyParams:c,previewDSP:function(e,t,n,i,a){i&&c(i),l({numberOfChannels:1,sampleRate:n}),u({numberOfChannels:1,sampleRate:n,length:e.length,data:[e],allowOverflow:a}),u({numberOfChannels:1,sampleRate:n,length:t.length,data:[t],allowOverflow:a})},getCookieName:function(){return s},setCookieName:function(e){s=e,(e=ui.toArray(ui.toString(ui.getCookie(s)).split(","))).length<15||(t.dsp.equalizer.setPreamp(ui.toFloat(e[0])),t.dsp.equalizer.setEQBand(0,ui.toFloat(e[1])),t.dsp.equalizer.setEQBand(1,ui.toFloat(e[2])),t.dsp.equalizer.setEQBand(2,ui.toFloat(e[3])),t.dsp.equalizer.setEQBand(3,ui.toFloat(e[4])),t.dsp.equalizer.setEQBand(4,ui.toFloat(e[5])),t.dsp.equalizer.setEQBand(5,ui.toFloat(e[6])),t.dsp.equalizer.setEQBand(6,ui.toFloat(e[7])),t.dsp.equalizer.setEQBand(7,ui.toFloat(e[8])),t.dsp.equalizer.setEQBand(8,ui.toFloat(e[9])),t.dsp.equalizer.setEQBand(9,ui.toFloat(e[10])),t.dsp.balance.setValue(ui.toFloat(e[11])),t.dsp.lowpass.setValue(ui.toFloat(e[12])),t.dsp.highpass.setValue(ui.toFloat(e[13])),t.dsp.sound3d.setValue(ui.toFloat(e[14])))}}}function getDSPFilterCode(){return dspProcessors+' function copyBuffer(s,e,o,r){for(var a=0;a<r;a++)for(var n=0;n<o;n++)e[a][n]=s[a][n]}function dspSound3D(){var r=0,a=0;return{flush:function(){},process:function(s,e,o){dsp_sound3d_process(s,e,o,r,a)},handleMessage:function(s){a=s.value,r=s.k}}}function dspLowpass(){var r=!0,a=[],n=1,t=1;return{flush:function(){r=!0},process:function(s,e,o){r&&(dsp_lowpass_flush(a,o),r=!1),dsp_lowpass_process(s,e,o,a,n,t)},handleMessage:function(s){t=s.value,n=s.f}}}function dspHighpass(){var r=!0,a=[],n=1,t=1;return{flush:function(){r=!0},process:function(s,e,o){r&&(dsp_highpass_flush(a,o),r=!1),dsp_highpass_process(s,e,o,a,n,t)},handleMessage:function(s){t=s.value,n=s.f}}}function dspEqualizer(){var a,r=1,n=new Float64Array(10),t=new Float64Array(10),u=new Float64Array(10),c=new Float64Array(10),p=new Float64Array(10),l=new Float64Array(10),i=new Float64Array(10),f=[],d=[],h=[],m=[],P=!0,C=[70,180,320,600,1e3,3e3,6e3,12e3,14e3,16e3],g=!0,v={};function w(){for(var s=0;s<10;s++){var e=C[s],e=(a<=2*e&&(e=0),2*Math.PI*e/a);t[s]=2*Math.sin(e)/12,p[s]=-2*Math.cos(e)}for(var o=0;o<10;o++){var r=Math.pow(10,n[o]/40);l[o]=1+t[o]*r,i[o]=1-t[o]*r,u[o]=1/(1+t[o]/r),c[o]=1-t[o]/r}}return{flush:function(s){a=s,g=P=!0},process:function(s,e,o){P&&(dsp_equalizer_flush(o,f,d,h,m,v),P=!1),g&&(w(),g=!1),dsp_equalizer_process(s,e,o,a,r,u,c,p,l,i,f,d,h,m,!1,v)},setEQBand:function(s){var e=s.number;n[e]=s.value,g=!0},setPreAmp:function(s){r=s.preAmp}}}function dspBalance(){var r=0;return{process:function(s,e,o){dsp_balance_process(s,e,o,r)},handleMessage:function(s){r=s.value}}}class CustomProcessor extends AudioWorkletProcessor{constructor(){super(),CustomProcessor.sound3d=dspSound3D(),CustomProcessor.lowpass=dspLowpass(),CustomProcessor.highpass=dspHighpass(),CustomProcessor.equalizer=dspEqualizer(),CustomProcessor.balance=dspBalance(),CustomProcessor.sampleRate=0,this.port.onmessage=function(s){var e=s.data;switch(e.action){case"flush":CustomProcessor.sampleRate=e.sampleRate,CustomProcessor.lowpass.flush(),CustomProcessor.highpass.flush(),CustomProcessor.equalizer.flush(CustomProcessor.sampleRate);break;case"setSound3D":CustomProcessor.sound3d.handleMessage(e);break;case"setLowpass":CustomProcessor.lowpass.handleMessage(e);break;case"setHighpass":CustomProcessor.highpass.handleMessage(e);break;case"setEQBand":CustomProcessor.equalizer.setEQBand(e);break;case"setPreAmp":CustomProcessor.equalizer.setPreAmp(e);break;case"setBalance":CustomProcessor.balance.handleMessage(e)}}}process(s,e,o){var r,a;if(s&&s[0]&&s[0][0])return e=e[0],r=s[0][0].length,a=s[0].length,copyBuffer(s[0],e,r,a),CustomProcessor.sound3d.process(e,r,a),CustomProcessor.lowpass.process(e,r,a),CustomProcessor.highpass.process(e,r,a),CustomProcessor.equalizer.process(e,r,a),CustomProcessor.balance.process(e,r,a),!0}}registerProcessor("DSPFilter",CustomProcessor); '}function dspFFT(e,t,n){n=ui.toBoolean(n);var i,a,r,o,s,l,u,c,f,d,h,p,_,v,g,m=e.length;if((m&-m)!=m)console.error("FFT data must have the size that is equal to a power of two");else{for(a=r=0,i=m-1;a<i;a++){for(a<r&&(f=e[a],d=t[a],e[a]=e[r],t[a]=t[r],e[r]=f,t[r]=d),o=Math.floor(m/2);o<=r;)r-=o,o=Math.floor(o/2);r+=o}for(u=-1,l=1,s=c=0,i=Math.floor(ui.log2(m));s<i;s++){for(_=1,r=v=0;r<l;r++){for(a=r;a<m;)h=_*e[a+l]-v*t[a+l],p=_*t[a+l]+v*e[a+l],e[a+l]=e[a]-h,t[a+l]=t[a]-p,e[a]+=h,t[a]+=p,a+=2*l;g=_*u-v*c,v=_*c+v*u,_=g}c=Math.sqrt((1-u)/2),n||(c=-c),u=Math.sqrt((1+u)/2),l*=2}if(n)for(a=0;a<m;a++)e[a]/=m,t[a]/=m}}function dspGenerateSpectrumData(e){for(var t=Math.pow(2,1+Math.ceil(ui.log2(e.length))),n=new Float64Array(t),i=new Float64Array(t),a=0;a<e.length;a++)n[a]=e[a];var r=n,o=.9;if(0!=r.length)for(var s=o*r[0],l=1;l<r.length;l++){var u=o*r[l];r[l]-=s,s=u}dspFFT(n,i,!1);for(var c=new Float64Array(e.length),f=0;f<e.length;f++)c[f]=ui.hypot(n[f],i[f]);return c}function MediaEngineAPI(p,e){var q={renderFile:F,renderStream:function(t,e,n){function i(){_.load(),p.triggerEvent("onOpen"),p.setTitle(e)}setTimeout(function(){var e;(t=ui.trim(t))&&(P=!(A=!1),l=!(u=function(){n&&p.play(),ui.isFunction(n)&&n()}),v=null,_.src=t,_.crossOrigin="anonymous",M=t,d?window.AudioWorkletNode&&(new AudioContext).audioWorklet?o?(p.dsp.flush({numberOfChannels:c.channelCount,sampleRate:o.sampleRate,processorNode:c}),i()):(o=new(window.AudioContext||window.webkitAudioContext),e=getDSPFilterCode(),e=new Blob([e],{type:"application/javascript"}),e=window.URL.createObjectURL(e),o.audioWorklet.addModule(e).then(function(){g=o.createMediaElementSource(_),m=o.createChannelSplitter(2),b=o.createAnalyser(),w=o.createAnalyser(),c=new AudioWorkletNode(o,"DSPFilter"),(f=o.createGain()).gain.value=s,m.connect(b,0),m.connect(w,1),g.connect(m).connect(c).connect(f).connect(o.destination),p.dsp.flush({numberOfChannels:c.channelCount,sampleRate:o.sampleRate,processorNode:c}),i()})):(o||(o=new(window.AudioContext||window.webkitAudioContext),g=o.createMediaElementSource(_),m=o.createChannelSplitter(2),b=o.createAnalyser(),w=o.createAnalyser(),(c=o.createScriptProcessor(4096,g.channelCount,g.channelCount)).onaudioprocess=D,(f=o.createGain()).gain.value=s,m.connect(b,0),m.connect(w,1),g.connect(m),m.connect(c),c.connect(f),f.connect(o.destination)),p.dsp.flush({numberOfChannels:g.channelCount,sampleRate:g.context.sampleRate}),i()):i())},1)},renderFileVariable:function(e,t){e&&(F(URL.createObjectURL(e),t),M=e.name)},renderRadio:I,play:H,pause:function(){l&&_.pause()},paused:function(){return!l||_.paused},position:function(){return l?_.currentTime:0},duration:z,seek:L,setLooped:function(e){S=ui.toBoolean(e)},setAutoplay:function(e){n=ui.toBoolean(e)},setRate:N,volume:function(){return s},setVolume:X,muted:function(){return i},setMuted:function(e){i=ui.toBoolean(e),l&&W(i?0:s);p.triggerEvent("onVolumeChange",10)},hasVideo:function(){return!!l&&0<_.videoHeight},setVideoOwner:function(e){t.detach().appendTo(e),t.show()},videoWidth:function(){return l?_.videoWidth:0},videoHeight:function(){return l?_.videoHeight:0},numberOfChannels:function(){return v?v.numberOfChannels:0},sampleRate:function(){return v?v.sampleRate:0},getVisualData:function(e,t,n,i){var a,r,o,s,l,u=200;if(v){t=ui.ensureRange(ui.toInt(t),0,v.numberOfChannels-1);var c=v.getChannelData(t),f=Math.floor(_.currentTime*v.sampleRate);if((e=f+e>=c.length?c.length-f-e:e)<0)return new Float64Array(0);for(a=new Float64Array(e),r=0;r<e;r++)a[r]=c[f+r];if(n){var d=f-u;d<0&&(u+=d,d=0),s=new Float64Array(u);for(var h=0;h<u;h++)s[h]=c[d],d++;y.previewDSP(s,a,v.sampleRate,p.dsp,i)}}else{if(!m)return new Float64Array(0);if(t=ui.ensureRange(ui.toInt(t),0,m.numberOfOutputs-1),n){for(o=new Uint8Array(u+e),(1==t?w:b).getByteTimeDomainData(o),s=new Float64Array(u),r=0;r<u;r++)s[r]=(o[r]-128)/128;for(a=new Float64Array(o.length),r=0;r<o.length;r++)2048<=(l=(r+u)%4096)&&(l=4095-l),a[r]=(o[l]-128)/128||0;y.previewDSP(s,a,g.context.sampleRate,p.dsp,i)}else for(o=new Uint8Array(e),(1==t?w:b).getByteTimeDomainData(o),a=new Float64Array(o.length),r=0;r<o.length;r++)2048<=(l=r%4096)&&(l=4095-l),a[r]=(o[l]-128)/128}return a},getWavePrint:function(e,t,n,i,a){if(!v)return new Float64Array(0);(!a||e<a)&&(a=e);(i=ui.toInt(i))<0&&(i=0);e<i+a&&(i-=e-a);n=ui.ensureRange(ui.toInt(n),0,v.numberOfChannels-1);for(var r=v.getChannelData(n),o=new Float64Array(a),s=new Float64Array(a),l=0,u=0;u<a;u++){for(var c=0,f=0,d=Math.floor((u+i)*v.sampleRate*v.duration/e),h=0;h<t;h++){var p=r[Math.floor(l+(d-l)*h/t)];0<p?f<p&&(f=p):p<c&&(c=p)}l=d,o[u]=f,s[u]=c}return{length:e,hiData:o,loData:s}},getPCMFragment:function(e,t,n){var i,a;if(t<e)return null;var t=t-e,r=Math.floor(v.sampleRate*t),o=1<v.numberOfChannels,s=new Int16Array(r),l=null;o&&(l=new Int16Array(r));var u=v.getChannelData(0),c=null;o&&(c=v.getChannelData(1));var f=Math.floor(e*v.sampleRate);if(n){var d=new Float64Array(r),h=null;for(o&&(h=new Float64Array(r)),i=0;i<r;i++)d[i]=u[i+f],o&&(h[i]=c[i+f]);t=DSPFilter(null);for(t.copyParams(p.dsp),t.flush({numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate}),t.process({numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate,length:r,data:[d,h]}),i=0;i<r;i++)(a=Math.floor(32767*d[i]))<-32768?a=-32768:32767<a&&(a=32767),s[i]=a,o&&((a=Math.floor(32767*h[i]))<-32768?a=-32768:32767<a&&(a=32767),l[i]=a)}else for(i=0;i<r;i++)s[i]=Math.floor(32767*u[i+f]),o&&(l[i]=Math.floor(32767*c[i+f]));return{numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate,samples0:s,samples1:l}},isRadio:function(){return A},radioStationIndex:function(){return R},radioStations:function(){return x},setRadioStations:function(e){x=ui.toArray(e)},prevRadioStation:function(){A&&0!=x.length&&I((R-1+x.length-1)%x.length+1)},nextRadioStation:function(){A&&0!=x.length&&I((R-1+1)%x.length+1)},isStream:function(){return P},title:function(){return k},setTitle:O,enableDSP:function(e){d=ui.toBoolean(e)},requireWavePrint:function(e){h=ui.toBoolean(e)},url:function(){return M},destroy:function(){C&&clearInterval(C);t&&t.remove();v=null,r&&(r.close(),r=null);o&&(o.close(),o=null)}},e="html5audio"==(e=ui.toObject(e)).api?"audio":"video",t=("video"==e&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&(e="audio"),$('<div class="ui-media-engine" style="display: none"></div>')),_=document.createElement(e),r=($(_).attr({width:"100%",style:"display: none"}),t.append(_),$(document.body).append(t),null),o=null,v=null,n=!1,i=!1,s=1,a=1,l=!1,u=null,g=null,m=null,b=null,w=null,c=null,f=null,y=DSPFilter(null),d=instanceMgr.defaulEnableDSP,h=instanceMgr.defaulRequireWavePrint,M="",S=!1,A=!1,x=[],R=0,E="Alex Player v"+engineVersion,k=E,P=!1,V=!1,B="",T="",C=null;function F(n,i){function a(){_.load(),p.triggerEvent("onOpen")}setTimeout(function(){var e,t;(n=ui.trim(n))&&(u=i,l=P=A=!1,v=null,h&&((e=new XMLHttpRequest).open("GET",n,!0),e.responseType="arraybuffer",e.onload=function(){(r=r||new(window.AudioContext||window.webkitAudioContext)).decodeAudioData(e.response,function(e){v=e,p.triggerEvent("onWavePrintDataLoad")})},e.send()),_.src=n,_.crossOrigin="anonymous",M=n,d?window.AudioWorkletNode&&(new AudioContext).audioWorklet?o?(p.dsp.flush({numberOfChannels:c.channelCount,sampleRate:o.sampleRate,processorNode:c}),a()):(o=new(window.AudioContext||window.webkitAudioContext),t=getDSPFilterCode(),t=new Blob([t],{type:"application/javascript"}),t=window.URL.createObjectURL(t),o.audioWorklet.addModule(t).then(function(){g=o.createMediaElementSource(_),m=o.createChannelSplitter(2),b=o.createAnalyser(),w=o.createAnalyser(),c=new AudioWorkletNode(o,"DSPFilter"),(f=o.createGain()).gain.value=s,m.connect(b,0),m.connect(w,1),g.connect(m).connect(c).connect(f).connect(o.destination),p.dsp.flush({numberOfChannels:c.channelCount,sampleRate:o.sampleRate,processorNode:c}),a()})):(o||(o=new(window.AudioContext||window.webkitAudioContext),g=o.createMediaElementSource(_),m=o.createChannelSplitter(2),b=o.createAnalyser(),w=o.createAnalyser(),(c=o.createScriptProcessor(4096,g.channelCount,g.channelCount)).onaudioprocess=D,(f=o.createGain()).gain.value=s,m.connect(b,0),m.connect(w,1),g.connect(m),m.connect(c),c.connect(f),f.connect(o.destination)),p.dsp.flush({numberOfChannels:g.channelCount,sampleRate:g.context.sampleRate}),a()):a())},1)}function I(i,e,a){function r(){_.load(),p.triggerEvent("onOpen")}e&&(x=ui.toArray(e)),setTimeout(function(){var e,t,n;0!=x.length&&(C&&(clearInterval(C),C=null),(R=ui.toInt(i))<=0&&(R=Math.floor(Math.random()*x.length)+1),e=x[(R-1)%x.length],t=ui.trim(e.url))&&((V="icecast"==e.type)&&(B=e.icecasturl,T=e.name?e.name+" ":"",$.get(B,{},function(e){e=JSON.parse(e);O(T+e.icestats.source.title)}),n=1e3*(parseInt(String(e.interval))||2),C&&clearInterval(C),C=setInterval(function(){$.get(B,{},function(e){e=JSON.parse(e);O(T+e.icestats.source.title)})},n)),n=t,A=!0,l=P=!(u=function(){a||p.play()}),v=null,_.src=n,_.crossOrigin="anonymous",M=n,V&&!T?O("..."):e.hasOwnProperty("name")&&O(e.name),d?window.AudioWorkletNode&&(new AudioContext).audioWorklet?o?(p.dsp.flush({numberOfChannels:c.channelCount,sampleRate:o.sampleRate,processorNode:c}),r()):(o=new(window.AudioContext||window.webkitAudioContext),n=getDSPFilterCode(),n=new Blob([n],{type:"application/javascript"}),n=window.URL.createObjectURL(n),o.audioWorklet.addModule(n).then(function(){g=o.createMediaElementSource(_),m=o.createChannelSplitter(2),b=o.createAnalyser(),w=o.createAnalyser(),c=new AudioWorkletNode(o,"DSPFilter"),(f=o.createGain()).gain.value=s,m.connect(b,0),m.connect(w,1),g.connect(m).connect(c).connect(f).connect(o.destination),p.dsp.flush({numberOfChannels:c.channelCount,sampleRate:o.sampleRate,processorNode:c}),r()})):(o||(o=new(window.AudioContext||window.webkitAudioContext),g=o.createMediaElementSource(_),m=o.createChannelSplitter(2),b=o.createAnalyser(),w=o.createAnalyser(),(c=o.createScriptProcessor(4096,g.channelCount,g.channelCount)).onaudioprocess=D,(f=o.createGain()).gain.value=s,m.connect(b,0),m.connect(w,1),g.connect(m),m.connect(c),c.connect(f),f.connect(o.destination)),p.dsp.flush({numberOfChannels:g.channelCount,sampleRate:g.context.sampleRate}),r()):r())},1)}function H(){l&&(instanceMgr.suspendAll(),o&&o.resume(),_.play())}function z(){return!l||_.duration==1/0?0:_.duration}function L(e,t){l&&(_.currentTime=z()*ui.toFloat(e)/ui.toFloat(t),p.triggerEvent("onProgress"),p.triggerEvent("onSeek"))}function N(e){a=ui.toFloat(e),l&&(_.playbackRate=e)}function W(e){d&&f?f.gain.setValueAtTime(e,o.currentTime):_.volume=e}function X(e){s=ui.ensureRange(ui.toFloat(e),0,1),!i&&l&&W(s),p.triggerEvent("onVolumeChange",10)}function O(e){k=ui.trim(e)||E,p.triggerEvent("onTitleChange")}function D(e){for(var t=[],n=g.channelCount,i=0;i<n;i++){for(var a=e.inputBuffer.getChannelData(i),r=e.outputBuffer.getChannelData(i),o=0;o<a.length;o++)r[o]=a[o];t.push(r)}p.dsp.process({data:t,numberOfChannels:n,length:a.length,sampleRate:g.context.sampleRate})}return _.addEventListener("loadeddata",function(){l=!0,_.style.display=0<_.videoHeight?"block":"none",X(s),N(a),p.triggerEvent("onLoad"),ui.isFunction(u)&&u(),n?(_.play(),o&&o.resume()):p.triggerEvent("onPause"),p.triggerEvent("onProgress")},!1),_.ontimeupdate=function(){p.triggerEvent("onProgress")},_.onpause=function(){p.triggerEvent("onPause"),instanceMgr.unregisterActiveInstance(p)},_.onplay=function(){p.triggerEvent("onPlay"),instanceMgr.registerActiveInstance(p)},_.onended=function(){S?(L(0,1e3),H()):(p.triggerEvent("onPause"),p.triggerEvent("onComplete"),instanceMgr.unregisterActiveInstance(p))},q}function AudioEngineAPI(p,e){var h,_,t,n={renderFile:function(e,t){var n;(e=ui.trim(e))&&(E(),d=e,(n=new XMLHttpRequest).open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){k(n.response,t)},n.send(),p.triggerEvent("onOpen"))},renderFileVariable:function(e,t){var n;e&&(E(),d=e.name,(n=new FileReader).onload=function(e){k(e.target.result,t)},n.readAsArrayBuffer(e),p.triggerEvent("onOpen"))},play:function(){b&&w&&(instanceMgr.suspendAll(),b=!1,P(_),h=g.context.currentTime-_,p.triggerEvent("onPlay"),instanceMgr.registerActiveInstance(p))},pause:S,paused:function(){return b},position:A,duration:function(){return w?v.duration:0},seek:x,setLooped:function(e){y=ui.toBoolean(e)},setAutoplay:function(e){i=ui.toBoolean(e)},setRate:function(e){u=ui.toFloat(e),w&&(g.playbackRate.value=u)},volume:function(){return s},setVolume:function(e){s=ui.ensureRange(ui.toFloat(e),0,1),w&&!l&&o&&(o.gain.value=s);p.triggerEvent("onVolumeChange",10)},muted:function(){return l},setMuted:function(e){l=ui.toBoolean(e),w&&o&&(o.gain.value=l?0:s);p.triggerEvent("onVolumeChange",10)},numberOfChannels:function(){return w?v.numberOfChannels:0},sampleRate:function(){return w?v.sampleRate:0},getVisualData:function(e,t,n,i){if(!w)return new Float64Array(0);t=ui.ensureRange(ui.toInt(t),0,v.numberOfChannels-1);var a=b?_:g.context.currentTime-h,r=v.getChannelData(t),o=Math.floor(a*v.sampleRate);o+e>=r.length&&(e=r.length-o-e);if(e<0)return new Float64Array(0);for(var s=new Float64Array(e),l=0;l<e;l++)s[l]=r[o],o++;if(n){for(var u=200,c=o-u,f=(c<0&&(u+=c,c=0),new Float64Array(u)),d=0;d<u;d++)f[d]=r[c],c++;m.previewDSP(f,s,v.sampleRate,p.dsp,i)}return s},getWavePrint:function(e,t,n,i,a){if(!w)return new Float64Array(0);(!a||e<a)&&(a=e);(i=ui.toInt(i))<0&&(i=0);e<i+a&&(i-=e-a);n=ui.ensureRange(ui.toInt(n),0,v.numberOfChannels-1);for(var r=v.getChannelData(n),o=new Float64Array(a),s=new Float64Array(a),l=0,u=0;u<a;u++){for(var c=0,f=0,d=Math.floor((u+i)*v.sampleRate*v.duration/e),h=0;h<t;h++){var p=r[Math.floor(l+(d-l)*h/t)];0<p?f<p&&(f=p):p<c&&(c=p)}l=d,o[u]=f,s[u]=c}return{length:e,hiData:o,loData:s}},getPCMFragment:function(e,t,n){var i,a;if(t<e)return null;var t=t-e,r=Math.floor(v.sampleRate*t),o=1<v.numberOfChannels,s=new Int16Array(r),l=null;o&&(l=new Int16Array(r));var u=v.getChannelData(0),c=null;o&&(c=v.getChannelData(1));var f=Math.floor(e*v.sampleRate);if(n){var d=new Float64Array(r),h=null;for(o&&(h=new Float64Array(r)),i=0;i<r;i++)d[i]=u[i+f],o&&(h[i]=c[i+f]);t=DSPFilter(null);for(t.copyParams(p.dsp),t.flush({numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate}),t.process({numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate,length:r,data:[d,h]}),i=0;i<r;i++)(a=Math.floor(32767*d[i]))<-32768?a=-32768:32767<a&&(a=32767),s[i]=a,o&&((a=Math.floor(32767*h[i]))<-32768?a=-32768:32767<a&&(a=32767),l[i]=a)}else for(i=0;i<r;i++)s[i]=Math.floor(32767*u[i+f]),o&&(l[i]=Math.floor(32767*c[i+f]));return{numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate,samples0:s,samples1:l}},enableDSP:function(e){c=ui.toBoolean(e)},url:function(){return d},destroy:function(){R(),g&&(g.stop(),g.disconnect(),g=null);r&&(r.disconnect(),r=null);o&&(o.disconnect(),o=null);a.close()}},i=!1,a=new(window.AudioContext||window.webkitAudioContext),v=null,g=null,r=null,m=DSPFilter(null),o=null,b=!0,s=1,l=!1,u=1,w=!1,c=!1,f=null,d="",y=!1,M=window.AudioWorkletNode&&(new AudioContext).audioWorklet;function S(){!b&&w&&(_=A(),g.stop(null),b=!0,p.triggerEvent("onPause"),instanceMgr.unregisterActiveInstance(p))}function A(){return w?b?_:ui.ensureRange(g.context.currentTime-h,0,v.duration):0}function x(e,t){w&&(e=v.duration*ui.toFloat(e)/ui.toFloat(t),b?_=e:(P(e),h=g.context.currentTime-e),p.triggerEvent("onProgress"),p.triggerEvent("onSeek"))}function R(){f&&(clearInterval(f),f=null)}function E(){g&&(g.stop(),p.triggerEvent("onPause"),w=!1)}function k(e,t){a.decodeAudioData(e,function(e){v=e,b=!i,w=!0,i?P(0):_=0,p.triggerEvent("onLoad"),p.triggerEvent("onWavePrintDataLoad"),p.triggerEvent("onProgress"),i&&(p.triggerEvent("onPlay"),instanceMgr.registerActiveInstance(p)),R(),f=setInterval(function(){w&&g&&(g.context.currentTime-h>v.duration?y?x(0,1e3):(S(),p.triggerEvent("onProgress"),p.triggerEvent("onPause"),p.triggerEvent("onComplete"),instanceMgr.unregisterActiveInstance(p)):p.triggerEvent("onProgress"))},200),ui.isFunction(t)&&t()},function(e){console.error("Error with decoding audio data: "+e.error)})}function P(e){g&&(g.stop(),g.disconnect(),g=null),r&&(r.disconnect(),r=null),o&&(o.disconnect(),o=null),(g=a.createBufferSource()).buffer=v,g.playbackRate.value=u,(o=a.createGain()).gain.value=s,c?M?(r=new AudioWorkletNode(a,"DSPFilter"),g.connect(r).connect(o).connect(a.destination),p.dsp.flush({numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate,processorNode:r})):((r=a.createScriptProcessor(4096,v.numberOfChannels,v.numberOfChannels)).onaudioprocess=B,g.connect(r),r.connect(o),o.connect(a.destination),p.dsp.flush({numberOfChannels:v.numberOfChannels,sampleRate:v.sampleRate})):(g.connect(o),o.connect(a.destination)),h=g.context.currentTime,g.start(0,e)}function B(e){for(var t=[],n=v.numberOfChannels,i=0;i<n;i++){for(var a=e.inputBuffer.getChannelData(i),r=e.outputBuffer.getChannelData(i),o=0;o<a.length;o++)r[o]=a[o];t.push(r)}p.dsp.process({data:t,numberOfChannels:n,length:a.length,sampleRate:v.sampleRate})}return M&&(t=getDSPFilterCode(),t=new Blob([t],{type:"application/javascript"}),t=window.URL.createObjectURL(t),a.audioWorklet.addModule(t)),n}function detectMediaEngineAPI(e,t){var n=ui.toString(t.api);return(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"webaudio"==n?AudioEngineAPI:MediaEngineAPI)(e,t)}function engine(e){return new _mediaEngine(e)}function _mediaEngine(i){i=ui.toObject(i),this.dsp=DSPFilter(this);var e=i.api,a=e,r=this,o=detectMediaEngineAPI(r,i),t=MediaEvents();function s(){a!=e&&(o&&o.destroy(),a=e,i.api=e,o=detectMediaEngineAPI(r,i))}function n(){return o.position?o.position():0}function l(){return o.duration?o.duration():1}return this.id=mediaEngineInstanceCounter++,this.renderFile=function(e,t){s(),setTimeout(function(){o.renderFile&&o.renderFile(e,t)},1)},this.renderStream=function(e,t,n){s(),setTimeout(function(){o.renderStream&&o.renderStream(e,t,n)},1)},this.renderFileVariable=function(e,t){s(),setTimeout(function(){o.renderFileVariable&&o.renderFileVariable(e,t)},1)},this.renderRadio=function(e,t,n){"html5audio"!=a&&(o&&o.destroy(),a="html5audio",i.api=a,o=detectMediaEngineAPI(r,i)),setTimeout(function(){o.renderRadio&&o.renderRadio(e,t,n)},1)},this.paused=function(){return!o.paused||o.paused()},this.play=function(){o.position()==o.duration()&&o.seek(0,1e3);o.play&&o.play()},this.pause=function(){o.pause&&o.pause()},this.position=n,this.duration=l,this.positionStr=function(){return ui.formatTime(n(),l())},this.durationStr=function(){return ui.formatTime(l(),l())},this.seek=function(e,t){o.seek&&o.seek(e,t)},this.setLooped=function(e){o.setLooped&&o.setLooped(e)},this.setAutoplay=function(e){o.setAutoplay&&o.setAutoplay(e)},this.setRate=function(e){o.setRate&&o.setRate(e)},this.volume=function(){return o.volume?o.volume():1},this.setVolume=function(e){o.setVolume&&o.setVolume(e)},this.muted=function(){return!!o.muted&&o.muted()},this.setMuted=function(e){o.setMuted&&o.setMuted(e)},this.hasVideo=function(){return!!o.hasVideo&&o.hasVideo()},this.setVideoOwner=function(e){o.setVideoOwner&&o.setVideoOwner(e)},this.videoWidth=function(){return o.videoWidth?o.videoWidth():0},this.videoHeight=function(){return o.videoHeight?o.videoHeight():0},this.numberOfChannels=function(){if(o.numberOfChannels)return o.numberOfChannels()},this.sampleRate=function(){if(o.sampleRate)return o.sampleRate()},this.getVisualData=function(e,t,n,i){return o.getVisualData?o.getVisualData(e,t,n,i):null},this.getSpectrumData=function(e,t,n){return engine.getSpectrumData(this,e,t,n)},this.getVU=function(e,t,n){return engine.getVU(this,e,t,n)},this.getWavePrint=function(e,t,n,i,a){return o.getWavePrint?o.getWavePrint(e,t,n,i,a):null},this.getPCMFragment=function(e,t,n){return o.getPCMFragment?o.getPCMFragment(e,t,n):null},this.isRadio=function(){return!!o.isRadio&&o.isRadio()},this.radioStationIndex=function(){return o.radioStationIndex?o.radioStationIndex():0},this.radioStations=function(){return o.radioStations?o.radioStations():[]},this.prevRadioStation=function(){o.prevRadioStation&&o.prevRadioStation()},this.nextRadioStation=function(){o.nextRadioStation&&o.nextRadioStation()},this.isStream=function(){return!!o.isStream&&o.isStream()},this.title=function(){return o.title?o.title():""},this.setTitle=function(e){if(o.setTitle)return o.setTitle(e)},this.bindEvent=t.bindEvent,this.unbindEvents=t.unbindEvents,this.triggerEvent=t.triggerEvent,this.enableDSP=function(e){o.enableDSP&&o.enableDSP(e)},this.requireWavePrint=function(e){o.requireWavePrint&&o.requireWavePrint(e)},this.url=function(){return o.url?o.url():""},this.destroy=function(){o.destroy&&o.destroy();ui.arrayRemove(engine.instances,this),ui.destroy(this)},engine.instances.push(this),this}function initSmallVisualizationBox(e,M,t){var S=0,A="#000000",x=null,R=ui.initGraph(e),E=null,k=null,P=null;function n(){!fullScreenVisualisationRunned&&ui.isVisible(e)&&i()}function i(){if(0==S){var e=0,t=0,n=M.getVisualData(4*R.width,0),i=(R.clear(),R.webColor2RGB(A));if(x&&0<n.length)for(var a=0,r=Math.min(4*R.width,n.length);a<r;a++){var o=10-10*n[4*a];0<a&&R.line(e,t,a,o,i),e=a,t=o}else{var s=R.height/2;R.line(0,s,R.width,s,i)}}else if(1==S){E=E||new Float64Array(R.width);for(var l=M.getSpectrumData(2*E.length,0),u=R.webColor2RGB(A),c=0,f=Math.min(E.length,l.length);c<f;c++)E[c]-=.4,l[c]>E[c]&&(E[c]=l[c]);if(R.clear(),x&&0<l.length)for(var d=0;d<E.length;d++){var h=7*E[d];R.line(d,R.height-h,d,R.height-1,u)}else R.line(0,R.height-1,R.width,R.height-1,u)}else{k||(k=new Float64Array(21),P=new Float64Array(21));var p,_,v=M.getSpectrumData(128,0),g=R.webColor2RGB(A);for(p=0,_=Math.min(21,v.length);p<_;p++)k[p]-=.35,v[p]>k[p]&&(k[p]=v[p]),P[p]-=.08,v[p]>P[p]&&(P[p]=v[p]);if(R.clear(),x&&0<v.length)for(p=0;p<21;p++){var m=y(k[p]),b=R.height-1-m,w=3*p,b=(R.fillRect(w,b,2,m,g),R.height-1-y(P[p]));R.line(w,b,2+w-1,b,g)}else for(p=0;p<21;p++)R.line(3*p,R.height-2,3*p+2-1,R.height-2,g);function y(e){return 6*e*.5+.5*Math.sqrt(e*R.height*6)}}R.redraw()}function a(e){(e=ui.toObject(e)).hasOwnProperty("color")&&(A=e.color),e.hasOwnProperty("visType")&&(S=Math.abs(ui.toInt(e.visType))%3),i()}return a(t),{start:function(){x=x||setInterval(n,40)},stop:function(){x&&(clearInterval(x),x=null,i())},redraw:i,update:a,visType:function(){return S},setVisType:function(e){S=Math.abs(ui.toInt(e))%3},setColor:function(e){A=e}}}function mediaEngineWavEncoder(e,t,n,i){var a=44+e*n.length*2,r=1<e,o=new Int8Array(a),s=0;c("RIFF"),c("----"),c("WAVE"),c("fmt "),d(16),f(1),f(e),d(t),d(2*t*e),f(2*e),f(16),c("data"),c("----");for(var l=0;l<n.length;l++)f(n[l]),r&&f(i[l]);return s=4,d(a-8),s=40,d(a-44),o;function u(e){o[s]=e,s++}function c(e){u(e.charCodeAt(0)),u(e.charCodeAt(1)),u(e.charCodeAt(2)),u(e.charCodeAt(3))}function f(e){u(e),u(e>>=8)}function d(e){u(e),u(e>>=8),u(e>>=8),u(e>>=8)}}function loadEQFromCookie(e,t){t=ui.toArray(ui.getCookie(t).split(","));t.length<15||(e.dsp.equalizer.setPreamp(ui.toFloat(t[0])),e.dsp.equalizer.setEQBand(0,ui.toFloat(t[1])),e.dsp.equalizer.setEQBand(1,ui.toFloat(t[2])),e.dsp.equalizer.setEQBand(2,ui.toFloat(t[3])),e.dsp.equalizer.setEQBand(3,ui.toFloat(t[4])),e.dsp.equalizer.setEQBand(4,ui.toFloat(t[5])),e.dsp.equalizer.setEQBand(5,ui.toFloat(t[6])),e.dsp.equalizer.setEQBand(6,ui.toFloat(t[7])),e.dsp.equalizer.setEQBand(7,ui.toFloat(t[8])),e.dsp.equalizer.setEQBand(8,ui.toFloat(t[9])),e.dsp.equalizer.setEQBand(9,ui.toFloat(t[10])),e.dsp.balance.setValue(ui.toFloat(t[11])),e.dsp.lowpass.setValue(ui.toFloat(t[12])),e.dsp.highpass.setValue(ui.toFloat(t[13])),e.dsp.sound3d.setValue(ui.toFloat(t[14])))}globals.mediaEngineVersion&&globals.mediaEngineVersion()>=engineVersion||(_uiKit.prototype=uiKit.fn=uiKit.prototype={constructor:uiKit,push:[].push,node:null,length:0,extendUI:function(e){for(var t in e)this[t]=e[t]}},ui=window.mediaUI=uiKit,uiQuery=ui,(e=>{e.matches||(e.matches=e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector)})(Element.prototype),ui.fn.uiQuery=function(e){if("string"==typeof e)""!=(e=e.trim())&&("<"==e.charAt(0)?(this.node=createNodeFromHTML(e),this.push(this.node)):(this.node=document.querySelector(e),this.node&&(this.push(this.node),this.node.uiInterface)&&this.extendUI(this.node.uiInterface)));else if("object"==typeof e){if(!e)return this;if(e instanceof uiQuery)return e.node&&e.node.uiInterface&&e.extendUI(e.node.uiInterface),e;if(e instanceof NodeList||e instanceof HTMLCollection||e instanceof Array){for(var t=0;t<e.length;t++)this.push(e[t]);0<e.length&&(this.node=e[0])}else if(window.jQuery&&e instanceof jQuery&&0<e.length){this.node=e[0];for(var n=0;n<e.length;n++)this.push(e[n])}else this.node=e,this.push(this.node);this.node&&this.node.uiInterface&&this.extendUI(this.node.uiInterface)}else"function"==typeof e&&window.addEventListener("load",e,!1);return this},uiQuery.fn.hasClass=function(e){return this.node.classList.contains(e)},uiQuery.fn.addClass=function(e){this.node.classList.add(e)},uiQuery.fn.removeClass=function(e){this.node.classList.remove(e)},uiQuery.fn.toggleClass=function(e,t){(t="boolean"!=typeof t?!this.hasClass(e):t)?this.addClass(e):this.removeClass(e)},uiQuery.fn.show=function(){this.node.style.display="block"},uiQuery.fn.hide=function(){this.node.style.display="none"},uiQuery.fn.toggle=function(e){(e="boolean"!=typeof e?"none"==window.getComputedStyle(this.node,null).getPropertyValue("display"):e)?this.show():this.hide()},uiQuery.fn.css=function(e,t){if("string"==typeof e&&void 0===t)return window.getComputedStyle(this.node,null).getPropertyValue(e.trim());if("string"==typeof e)this.node.style[e]=t;else for(var n in e)this.node.style[n]=e[n];return null},uiQuery.fn.attr=function(e,t){if("string"==typeof e&&void 0===t)return this.node.getAttribute(e);if("string"==typeof e)this.node.setAttribute(e,t);else for(var n in e)this.node.setAttribute(n,e[n]);return null},uiQuery.fn.removeAttr=function(e){this.node.removeAttribute(e)},uiQuery.fn.data=function(e,t){return this.node._uiData=this.node._uiData||{},void 0===e?this.node._uiData:void 0===t?this.node._uiData[e]:(this.node._uiData[e]=t,null)},uiQuery.fn.removeData=function(e){this.node._uiData=this.node._uiData||{},delete this.node._uiData[e]},uiQuery.fn.empty=function(){this.node.innerHTML=""},uiQuery.fn.html=function(e){return void 0===e?this.node.innerHTML:(this.node.innerHTML=e,null)},uiQuery.fn.text=function(e){return void 0===e?this.node.innerText.trim():(this.node.innerText=e,null)},uiQuery.fn.remove=function(){this.node.parentNode.removeChild(this.node)},uiQuery.fn.detach=function(){return uiQuery(this.node.parentNode.removeChild(this.node))},uiQuery.fn.append=function(e){"object"==typeof e?e instanceof HTMLElement?this.node.appendChild(e):e instanceof uiQuery?this.node.appendChild(e.node):window.jQuery&&e instanceof jQuery&&0<e.length&&this.node.appendChild(e[0]):"string"==typeof e&&this.node.appendChild(uiQuery(e).node)},uiQuery.fn.prepend=function(e){"object"==typeof e?e instanceof HTMLElement?prependChild(this.node,e):e instanceof uiQuery?prependChild(this.node,e.node):window.jQuery&&e instanceof jQuery&&0<e.length&&prependChild(this.node,e[0]):"string"==typeof e&&(e=uiQuery(e).node)&&prependChild(this.node,e)},uiQuery.fn.appendTo=function(e){e instanceof uiQuery?e.node.appendChild(this.node):window.jQuery&&e instanceof jQuery?e.append(this[0]):e.appendChild(this.node)},uiQuery.fn.insertBefore=function(e){e instanceof uiQuery?insertBefore(this.node,e.node):window.jQuery&&e instanceof jQuery&&e.length?insertBefore(this[0],e.node):insertBefore(this,e.node)},uiQuery.fn.insertAfter=function(e){e instanceof uiQuery?insertAfter(this.node,e.node):window.jQuery&&e instanceof jQuery&&e.length?insertAfter(this[0],e.node):insertAfter(this,e.node)},uiQuery.fn.offset=function(){var e=this.node;if(e.getBoundingClientRect)var t=e.getBoundingClientRect(),n=t.left+window.pageXOffset,i=t.top+window.pageYOffset;else for(i=n=0;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:n,top:i}},uiQuery.fn.width=function(e){return void 0===e?parseInt(window.getComputedStyle(this.node,null).getPropertyValue("width")):(this.node.style.width=ui.toInt(e)+"px",null)},uiQuery.fn.innerWidth=function(e){return void 0===e?this.node==window?document.documentElement.clientWidth:this.node.clientWidth||this.node.innerWidth:(this.node.style.width=ui.toInt(e)+this.node.clientWidth-parseInt(window.getComputedStyle(this.node,null).getPropertyValue("width"))+"px",null)},uiQuery.fn.outerWidth=function(e){return void 0===e?this.node.offsetWidth:(this.node.style.width=ui.toInt(e)+this.node.offsetWidth-parseInt(window.getComputedStyle(this.node,null).getPropertyValue("width"))+"px",null)},uiQuery.fn.height=function(e){return void 0===e?parseInt(window.getComputedStyle(this.node,null).getPropertyValue("height")):(this.node.style.height=ui.toInt(e)+"px",null)},uiQuery.fn.innerHeight=function(e){return void 0===e?this.node==window?document.documentElement.clientHeight:this.node.clientHeight||this.node.innerHeight:(this.node.style.height=ui.toInt(e)+this.node.clientHeight-parseInt(window.getComputedStyle(this.node,null).getPropertyValue("height"))+"px",null)},uiQuery.fn.outerHeight=function(e){return void 0===e?this.node.offsetHeight:(this.node.style.height=ui.toInt(e)+this.node.offsetHeight-parseInt(window.getComputedStyle(this.node,null).getPropertyValue("height"))+"px",null)},uiQuery.fn.scrollLeft=function(e){return void 0===e?this.node==window?window.pageXOffset:this.node.scrollLeft:(this.node==window?window.scrollTo(e,window.pageYOffset):this.node.scrollLeft=e,null)},uiQuery.fn.scrollTop=function(e){return void 0===e?this.node==window?window.pageYOffset:this.node.scrollTop:(this.node==window?window.scrollTo(window.pageXOffset,e):this.node.scrollTop=e,null)},eventNameOverrides={mouseenter:"mouseover",mouseleave:"mouseout"},uiQuery.fn.on=function(e,n,i){eventNameOverrides.hasOwnProperty(e)&&(e=eventNameOverrides[e]),"function"==typeof n&&(i=n,n=null);var t=e.split(" ");if(1<t.length)for(var a=0;a<t.length;a++)this.on(t[a],n,i);else{var r=this.node,o=function(e){var t;n?(t=e.target,(t=e.target.matches(n)?t:e.target.closest(n))&&i.call(t,e)):i.call(r,e)},s=ui.toArray(this.node._uiEvents);s.push({name:e,selector:n,listener:o,handler:i}),this.node._uiEvents=s,this.node.addEventListener(e,o)}},uiQuery.fn.off=function(e,t,n){var i;if("function"==typeof t&&(n=t,t=null),void 0===e){for(l=ui.toArray(this.node._uiEvents),o=0;o<l.length;o++)i=l[o],this.node.removeEventListener(i.name,i.listener);for(var a=this.node,r=this.node.childNodes||[],o=0;o<r.length;o++){for(var s=r[o],l=ui.toArray(this.node._uiEvents),u=0;u<l.length;u++)i=l[u],s.removeEventListener(i.name,i.listener);delete s._uiEvents,this.node=s,this.off()}this.node=a}else{l=ui.toArray(this.node._uiEvents);var c=[];if(t||n){if(ui.isFunction(n))for(o=0;o<l.length;o++)(i=l[o]).name==e&&i.handler==n?this.node.removeEventListener(i.name,i.listener):c.push(i);else if(t)for(o=0;o<l.length;o++)(i=l[o]).name==e&&i.selector==t?this.node.removeEventListener(i.name,i.listener):c.push(i)}else for(o=0;o<l.length;o++)(i=l[o]).name==e?this.node.removeEventListener(i.name,i.listener):c.push(i);this.node._uiEvents=c}},uiQuery.fn.find=function(e){var a;if("object"==typeof e)return a=e instanceof uiQuery?e.node:e instanceof HTMLElement?e:window.jQuery&&e instanceof jQuery&&e.length?e[0]:null,uiQuery(a?function e(t){for(var n=0;n<t.length;n++){var i=t[n];if(i==a)return i;i=e(i.childNodes);if(i)return i}return null}(a.childNodes):null);return uiQuery(this.node.querySelector(e))},uiQuery.fn.findAll=function(e){return"object"==typeof e?this.find(e):uiQuery(this.node.querySelectorAll(e))},uiQuery.fn.closest=function(e){if("string"==typeof e)return uiQuery(this.node.closest(e));for(var t=this.node,n=uiQuery(e).node;;){if(!t)return uiQuery(null);if(t==n)return uiQuery(t);t=t.parentNode}},uiQuery.fn.is=function(e){if("string"==typeof e)return this.node.matches(e);if("object"==typeof e){if(e instanceof uiQuery)return this.node==e.node;if(window.jQuery&&e instanceof jQuery&&0<e.length)return this.node==e[0]}return this.node==e},uiQuery.fn.clone=function(e){return uiQuery(this.node.cloneNode(e=void 0===e?!0:e))},uiQuery.fn.trigger=function(e,t){var n;if(this.node)switch(e){case"click":case"mousedown":case"mouseup":(n=document.createEvent("MouseEvents")).initEvent(e,!0,!0),this.node.dispatchEvent(n);break;case"focus":case"change":case"blur":case"select":(n=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),this.node.dispatchEvent(n);break;case"resize":window.dispatchEvent(new Event("resize"));break;default:this.node.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:ui.toObject(t)}))}},uiQuery.fn.click=function(e,t){void 0!==e||void 0!==t?this.on("click",e,t):this.trigger("click")},uiQuery.fn.resize=function(e,t){void 0!==e||void 0!==t?this.on("resize",e,t):this.trigger("resize")},uiQuery.fn.each=function(e){if("function"==typeof e)for(var t=0;t<this.length;t++)e.call(this[t],t)},uiQuery.fn.eq=function(e){return e<0||e>=this.length?uiQuery(null):uiQuery(this[e])},uiQuery.fn.children=function(e){for(var t=uiQuery(),n=this.node.childNodes,i=0;i<n.length;i++){var a=n[i];3==a.nodeType||e&&!a.matches(e)||t.push(a)}return t.node=t.length?t[0]:null,t},uiQuery.fn.filter=function(e){":visible"==e&&(e=function(){return"none"!=this.style.display});for(var t=[],n=0;n<this.length;n++)e.call(this[n],n)&&t.push(this[n]);for(n=this.length=0;n<t.length;n++)this.push(t[n]);return this},uiQuery.fn.focus=function(){this.node&&this.node.focus&&this.node.focus()},easingFunctions={easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return e<.5?2*e*e:-2*e*e+4*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){e-=1;return e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:.5*(e=2*e-2)*e*e+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){var t=e-1;return t*t*t*(1-e)+1},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:-8*(e=e-1)*e*e*e+1},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){e-=1;return e*e*e*e*e+1},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:.5*(e=2*e-2)*e*e*e*e+1},easeInSine:function(e){return Math.sin(Math.PI/2*(e-1))+1},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return.5*(1-Math.cos(e*(Math.PI/2)))},easeInExpo:function(e){return 0==e?e:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1==e?e:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0==e||1==e?e:e<.5?.5*Math.pow(2,20*e-10):-.5*Math.pow(2,-20*e+10)+1},easeInCirc:function(e){return 1-Math.sqrt(1-e*e)},easeOutCirc:function(e){return Math.sqrt((2-e)*e)},easeInOutCirc:function(e){return e<.5?.5*(1-Math.sqrt(1-e*e*4)):.5*(Math.sqrt(-(2*e-3)*(2*e-1))+1)},easeInElastic:function(e){return Math.sin(Math.PI/2*13*e)*Math.pow(2,10*(e-1))},easeOutElastic:function(e){return Math.sin(Math.PI/2*-13*(e+1))*Math.pow(2,-10*e)+1},easeInOutElastic:function(e){return e<.5?.5*Math.sin(Math.PI/2*13*(2*e))*Math.pow(2,10*(2*e-1)):.5*(Math.sin(Math.PI/2*-13*(2*e-1+1))*Math.pow(2,-10*(2*e-1))+2)},easeInBack:function(e){return e*e*e-e*Math.sin(e*Math.PI)},easeOutBack:function(e){e=1-e;return 1-(e*e*e-e*Math.sin(e*Math.PI))},easeInOutBack:function(e){var t;return e<.5?.5*((t=2*e)*t*t-t*Math.sin(t*Math.PI)):.5*(1-((t=1-(2*e-1))*t*t-t*Math.sin(t*Math.PI)))+.5},easeInBounce:function(e){return 1-this.easeOutBounce(1-e)},easeOutBounce:function(e){return e<4/11?121*e*e/16:e<8/11?9.075*e*e-9.9*e+3.4:e<.9?4356/361*e*e-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},easeInOutBounce:function(e){return e<.5?.5*this.easeOutBounce(2*e):.5*this.easeOutBounce(2*e-1)+.5}},uiQuery.easing=easingFunctions,uiQuery.fn.animate=function(e,s,l,u){this.stop();var t,c=this,f=null,d={},h={};for(t in e){var n=e[t];switch(t){case"step":ui.isFunction(n)&&(f=n);break;case"margin-left":case"margin-top":case"margin-right":case"margin-bottom":case"padding-left":case"padding-top":case"padding-right":case"padding-bottom":d[t]={start:parseFloat(c.css(t)),end:parseFloat(n),unit:"px"};break;case"opacity":d[t]={start:parseFloat(c.css(t)),end:parseFloat(n),unit:""};break;case"color":case"background-color":h[t]={start:ui.Color(c.css(t)),end:ui.Color(n)};break;case"left":case"top":case"right":case"bottom":case"width":case"height":case"font-size":case"line-height":d[t]={start:parseFloat(c.css(t)),end:parseFloat(n),unit:ui.toString(n).replace(/^\d+/,"")}}}var p=(new Date).getTime();!function e(){var t=(new Date).getTime()-p;t=ui.ensureRange(t/s,0,1);var n=easingFunctions.hasOwnProperty(l)?easingFunctions[l](t):t;for(var i in d){var a=d[i],r=(a.end-a.start)*n+a.start;c.css(i,r+a.unit)}for(var o in h){o=h[o],o=ui.Color.mix(o.start,o.end,n,1);c.css(i,o.getRGBAColorString())}f&&f(t);t<1?this._uiAnimationTimer=setTimeout(e,10):(this.stop(),ui.isFunction(u)&&u())}()},uiQuery.fn.stop=function(){this._uiAnimationTimer&&(clearTimeout(this._uiAnimationTimer),delete this._uiAnimationTimer)},uiQuery.fn.fadeIn=function(e,t){var n=this;n.css({display:"block",opacity:0}),n.animate({opacity:1},e,"linear",function(){n.css("opacity",""),ui.isFunction(t)&&t()})},uiQuery.fn.fadeOut=function(e,t){var n=this;n.css({opacity:1}),n.animate({opacity:0},e,"linear",function(){n.css({display:"none",opacity:""}),ui.isFunction(t)&&t()})},uiQuery.fn.fadeTo=function(e,t,n){this.animate({opacity:t},e,"linear",n)},uiQuery.fn.slideDown=function(e,t){var n,i=this;"none"!=i.css("display")?ui.isFunction(t)&&t():(i.css({display:"block",visibility:"hidden",overflow:"hidden"}),n=i.height(),i.css({visibility:"",height:"0px"}),i.animate({height:n+"px"},e,"linear",function(){i.css({height:"",overflow:""}),ui.isFunction(t)&&t()}))},uiQuery.fn.slideUp=function(e,t){var n=this;"none"==n.css("display")?ui.isFunction(t)&&t():(n.css({height:n.height()+"px",overflow:"hidden"}),n.animate({height:"0px"},e,"linear",function(){n.css({display:"none",height:"",overflow:""}),ui.isFunction(t)&&t()}))},uiQuery.fn.index=function(){for(var e=this.node.previousSibling,t=0;e;)e=e.previousSibling,t++;return t},uiQuery.fn.parent=function(){return uiQuery(this.node.parentNode)},uiQuery.fn.val=function(e){return void 0===e?this.node.value:(this.node.value=e,null)},uiQuery.get=function(e,t,n){var i,a=new XMLHttpRequest,r=new FormData;for(i in t)r.append(i,t[i]);a.onreadystatechange=function(){4==this.readyState&&200==this.status&&ui.isFunction(n)&&n(this.responseText)},a.open("GET",e,!0),a.send(r)},$=uiQuery,ui.toInt=function(e){var t=typeof e;return"number"==t?Math.floor(e):"boolean"==t?e?1:0:"string"==t&&parseInt(e)||0},ui.toFloat=function(e){var t=typeof e;return"number"==t?e:"boolean"==t?e?1:0:"string"==t&&parseFloat(e.replace(/e.*$/i,""))||0},ui.toBoolean=function(e){var t=typeof e;return"number"==t?!!e:"boolean"==t?e:"string"==t&&!!parseInt(e)},ui.isString=function(e){return"string"==typeof e},ui.toString=function(e){var t=typeof e;return"number"==t?e.toString():"boolean"==t?e?"1":"0":"string"==t?e:""},ui.trim=function(e){var t=typeof e;return"number"==t?e.toString():"boolean"==t?e?"1":"0":"string"==t?e.trim():""},ui.isObject=function(e){return"object"==typeof e&&null!==e&&!(e instanceof Array)},ui.isEmptyObject=function(e){if(!ui.isObject(e))return!1;for(var t in e)return!1;return!0},ui.toObject=function(e){return ui.isObject(e)?e:{}},ui.isArray=function(e){return"object"==typeof e&&e instanceof Array},ui.toArray=function(e){return ui.isArray(e)?e:[]},ui.makeArray=function(e){return ui.isArray(e)?e:[e]},ui.isFunction=function(e){return"function"==typeof e},ui.toFunction=function(e){return"function"==typeof e?e:null},ui.arrayHas=function(e,t){for(var n=0;n<e.length;n++)if(e[n]==t)return!0;return!1},ui.arrayRemove=function(e,t){for(var n=0,i=0;i<e.length;){for(;e[i]==t;)i++;n!=i&&(e[n]=e[i]),n++,i++}e.length-=i-n},ui.destroy=function(e){if(ui.isObject(e))for(var t in e)ui.destroy(e[t]),delete e[t];else if(ui.isArray(e)){for(var n=0;n<e.length;n++)ui.destroy(e[n]);e.length=0}},ui.format2Digit=function(e){return 9<e?e:"0"+e},ui.ensureRange=function(e,t,n){return e<t?t:n<e?n:e},ui.setCookie=function(e,t,n){var i,a="";n&&((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),a="; expires="+i.toUTCString()),document.cookie=e+"="+(t||"")+a+"; path=/"},ui.getCookie=function(e){e=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return e?e[2]:null},ui.deleteCookie=function(e){document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},ui.format2Digit=function(e){return 9<e?e:"0"+e},ui.formatTime=function(e,t){var n=(e=ui.toInt(e))%60,i=(e=Math.floor(e/60))%60;return e=Math.floor(e/60),3600<=t?e+":"+ui.format2Digit(i)+":"+ui.format2Digit(n):i+":"+ui.format2Digit(n)},ui.ensureRange=function(e,t,n){return e<t?t:n<e?n:e},ui.log10=Math.log10||function(e){return Math.log(e)*Math.LOG10E},ui.log2=Math.log2||function(e){return Math.log(e)*Math.LOG2E},ui.hypot=Math.hypot||function(e,t){return Math.sqrt(e*e+t*t)},ui.removeClassByPattern=function(e,t){var n=$(e),e=ui.toString(t);e=(e=e.replace(/[^-\w\d\*]/g,"")).replace(/[*]/g,"[-\\w\\d]+");for(var i=new RegExp("\\b"+e+"\\b");;){var a=ui.toString(n.attr("class"));if(0==a.length)break;a=a.match(i);if(!a)break;n.removeClass(a[0])}},ui.getDeltaFromScrollEvent=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),{x:t,y:n}},ui.extend=function(e,t){for(var n in t)e[n]=t[n]},ui.textToHTML=function(e){return e=ui.toString(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/  /g,"&nbsp; ").replace(/(\r\n|\n\r|\r|\n)/g,"<br />").replace(/\t/g,"&emsp;")},ui.formatThousands=function(e,t){return t=ui.toInt(t),e.toFixed(t).replace(/\B(?=(\d{3})+(?!\d))/g,",")},ui.escapeJavascriptString=function(e){return"'"+(e=(e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\//g,"\\/")).replace(/'/g,"\\'")).replace(/"/g,'\\"')).replace(/\n/g,"\\n"))+"'"},ui.dumpJS=function(e,t){var n="";if(t=ui.toInt(t),ui.isArray(e)){var i=e;n+="[";for(var a=0;n+=ui.dumpJS(i[a],t),!(++a>=i.length);)n+=", ";n+="]"}else if(ui.isObject(e)){var r=e;t++,n+="{\n";for(var o=Object.keys(r),s=0;;){var l=o[s];if(n+=u(t)+ui.escapeJavascriptString(l)+": "+ui.dumpJS(r[l],t),++s>=o.length){n+="\n";break}n+=",\n"}n+=u(--t)+"}"}else n+="string"==typeof e?ui.escapeJavascriptString(e):"number"==typeof e?e:"boolean"==typeof e?e?"true":"false":"null";function u(e){for(var t="",n=0;n<e;n++)t+="\t";return t}return n},ui.dumpPHP=function(e,t){var n="";if(t=ui.toInt(t),ui.isArray(e)){var i=e;n+="array(";for(var a=0;n+=ui.dumpPHP(i[a],t),!(++a>=i.length);)n+=", ";n+=")"}else if(ui.isObject(e)){var r=e;t++,n+="array(\n";for(var o=Object.keys(r),s=0;;){var l=o[s];if(n+=u(t)+c(l)+" => "+ui.dumpPHP(r[l],t),++s>=o.length){n+="\n";break}n+=",\n"}n+=u(--t)+")"}else n+="string"==typeof e?c(e):"number"==typeof e?e:"boolean"==typeof e?e?"true":"false":"null";function u(e){for(var t="",n=0;n<e;n++)t+="\t";return t}function c(e){return'"'+(e=(e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\//g,"\\/")).replace(/'/g,"\\'")).replace(/"/g,'\\"')).replace(/\n/g,"\\n"))+'"'}return n},ui.getProp=function(e,t){var n,i;if(!e)return e;if("string"!=typeof t||0==t.length)return e;if("."==t[0])return ui.getProp(e,t.substring(1,t.length));if(n=t.match(/^([-_a-zA-Z0-9]+)(.*)$/))return i=n[1],ui.getProp(e[i],n[2]);if(n=t.match(/^\[([0-9]+)\](.*)$/))return i=ui.toInt(n[1]),ui.getProp(e[i],n[2]);if(n=t.match(/^\[([-_a-zA-Z0-9]+)=([-_a-zA-Z0-9]+)\](.*)$/)){e=ui.toArray(e);for(var a=ui.toString(n[1]),r=ui.toString(n[2]),o=0;o<e.length;o++)if(ui.toString(e[o][a])==r)return ui.getProp(e[o],n[3])}else if(n=t.match(/^\[([-_a-zA-Z0-9]+)=["]((?:[\\"]|[^"])*)["]\](.*)$/)){var s=ui.toString(n[1]),l=ui.toString(n[2]).replace(/\\([\\"])/g,"$1");for(o=0;o<e.length;o++)if(ui.toString(e[o][s])==l)return ui.getProp(e[o],n[3])}},ui.setProp=function(e,t,n){var i;if(0==t.length)return n;if("."==t[0])return ui.setProp(e,t.substring(1,t.length),n);if(a=t.match(/^([-_a-zA-Z0-9]+)(.*)$/)){e=ui.toObject(e);var a,r=a[1],o=a[2];if(a=o.match(/^\[([-_a-zA-Z0-9]+)[=]([-_a-zA-Z0-9]+)\](.*)$/)){var s=ui.toString(a[1]),l=ui.toString(a[2]);for(e[r]=ui.toArray(e[r]),i=0;i<e[r].length;i++)if(ui.toString(e[r][i][s])==l)return e[r][i]=ui.setProp(e[r][i],a[3],n),e}else if(a=o.match(/^\[([-_a-zA-Z0-9]+)[=]["]((?:[\\"]|[^"])*)["]\](.*)$/)){var u=ui.toString(a[1]),c=ui.toString(a[2]).replace(/\\([\\"])/g,"$1");for(e[r]=ui.toArray(e[r]),i=0;i<e[r].length;i++)if(ui.toString(e[r][i][u])==c)return e[r][i]=ui.setProp(e[r][i],a[3],n),e}else e[r]=ui.toObject(e[r]),void 0===n&&0==o.length?delete e[r]:e[r]=ui.setProp(e[r],o,n)}else(a=t.match(/^\[([0-9]+)\](.*)$/))&&((e=ui.toArray(e))[o=ui.toInt(a[1])]=ui.setProp(e[o],a[2],n));return e},ui.escapeProp=function(e){return ui.toString(e).replace(/["\\]/g,"\\$&")},ui.validateEmail=function(e){return/^[-_\w\d]+([\.][-_\w\d]+)*@[-\w\d]+([\.]\w{2,})+$/.test(ui.toString(e))},ui.linkify=function(e){return e=(e=ui.textToHTML(e)).replace(/\b((http:\/\/|https:\/\/|\/\/|www\.)([-a-zA-Z0-9.]+\.)+[a-z0-9]{2,}[-a-zA-Z0-9@:%_\+.~#?&//=;]*)(\s|$|<)/gi,'<a href="$1" target="_blank">$1</a>$4')},ui.stripHttpAndWwwFromUrl=function(e){return e=(e=(e=ui.trim(e)).replace(/^(http:\/\/|https:\/\/|\/\/)/,"")).replace(/^www./,"")},ui.selectElementText=function(e){var t,n,e=$(e)[0];document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):window.getSelection&&(n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t))},ui.scrollToElement=function(e,t,n){for(var i,a,r,o,s,l,u,c,f,d,h,p,_=$(e),v=_.parent();v[0]!=document.body;){var g=v.css("overflow");"auto"!=g&&"scroll"!=g&&"hidden"!=g||(g=_,c=u=l=s=o=void(r=a=0),i=$(i=v),g=$(g),0!=i.length&&0!=g.length&&(a=ui.toInt(a),r=ui.toInt(r),o=g.offset().top,s=i.offset().top,l=i.scrollTop(),u=i[0].clientHeight,g=g.outerHeight(),(c=o-s)<a&&i.scrollTop(l+c-a),u<c+r+g)&&i.scrollTop(l+o-s-u+g+r)),v=v.parent()}e=t,t=n,0!=(n=$(n=_)).length&&(e=ui.toInt(e),t=ui.toInt(t),f=$(window),d=f.scrollTop(),h=n.offset().top-d,p=f.innerHeight(),n=n.outerHeight(),h<e&&f.scrollTop(d+h-e),p<h+t+n)&&f.scrollTop(d+h-p+n+t)},ui.isVisible=function(e){e=$(e);if(0==e.length)return!1;if("none"==c(e[0],"display")||"hidden"==c(e[0],"visibility")||"0"==c(e[0],"opacity"))return!1;var t=e.offset().top,n=e.outerHeight(),i=$(window),a=i.scrollTop();if(t+n<a)return!1;if(t-a>=i.innerHeight())return!1;for(var r,o,s,l=e[0].parentNode;l&&l!=document.body;){var u=c(l,"overflow");if("auto"==u||"scroll"==u||"hidden"==u)if(u=t,r=n,s=void 0,o=$(o=l),!((s=o.offset().top)<u+r&&u-s<o[0].clientHeight))return!1;l=l.parentNode}function c(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}return!0},ui.download=function(e,t,n){t=t||"download.txt",n=n||"text/plain";e=new Blob([e],{type:n}),n=window.URL.createObjectURL(e),e=document.createElement("a");e.href=n,e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(e.href)},ui.isMobile=/Mobi/i.test(window.navigator.userAgent),extras={},extras.randSeed=location.hostname.charCodeAt(0),extras.randMax=1073741823,extras.rand=function(){return extras.randSeed=22695477*extras.randSeed+1&1073741823},extras.srand=function(e){extras.randSeed=e},extras._randSeed=location.hostname.charCodeAt(0),extras._rand=function(){return extras._randSeed=22695477*extras._randSeed+1&1073741823},(()=>{var r=[];function e(){for(var e=[],t=0;t<r.length;t++){var n=r[t],i=n.node;i&&i.parentNode&&(n.handler(),e.push(n))}r=e}$?($(e),$(window).on("resize",e)):(window.addEventListener("load",e,!1),window.addEventListener("resize",e,!1)),ui.addResizeHandler=function(e,t,n){r.push({node:$?$(e)[0]:e,handler:t}),n&&t()},ui.removeResizeHandler=function(e){for(var t=[],n=$(e)[0],i=0;i<r.length;i++){var a=r[i];a.node!=n&&t.push(a)}r=t}})(),(()=>{var r=[];function o(){for(var e=[],t=0;t<r.length;t++){var n=r[t],i=n.node;i&&i.parentNode&&(n.handler(),e.push(n))}r=e}$(window).on("scroll uiScroll",o),ui.addScrollHandler=function(e,t){r.push({node:$?$(e)[0]:e,handler:t})},ui.removeScrollHandler=function(e){for(var t=[],n=$?$(e)[0]:e,i=0;i<r.length;i++){var a=r[i];a.node!=n&&t.push(a)}r=t},ui.registerScrollEvent=function(e){var t=$?$(e)[0]:e,n=[];if(t){var i=window.getComputedStyle(t,null).getPropertyValue("overflow");for("auto"!=i&&"scroll"!=i&&"hidden"!=i||a(t),t=t.parentNode;t&&t!=document;)"auto"!=(i=window.getComputedStyle(t,null).getPropertyValue("overflow"))&&"scroll"!=i||a(t),t=t.parentNode}function a(e){e._uiScrollEventBinded?e._uiScrollEventBinded++:($(e).on("scroll",o),e._uiScrollEventBinded=1,n.push(e))}return{unregister:function(){for(var e=0;e<n.length;e++){var t=n[e];t._uiScrollEventBinded&&(t._uiScrollEventBinded--,0==t._uiScrollEventBinded)&&($?$(t).off("scroll",o):t.removeEventListener("scroll",o),delete t._uiScrollEventBinded)}}}}})(),(()=>{var s=[],e=$(document);function a(e){for(var t=$?$(e)[0]:e,n=[],i=0;i<s.length;i++){var a=s[i];a.node!=t&&n.push(a)}s=n}function l(e){e=e.callback;ui.isFunction(e)&&e()}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e.is(i)||e.closest(i).length)return 1}}function t(e,t){var n=$(e);if(e.parentNode&&e.ownerDocument){for(var i=[],a=s.length,r=0;r<a;r++){var o=s[r];o.closeOnClick!=t?i.push(o):((e,t,n)=>{for(var i=t+1;i<s.length;i++){var a=s[i];if(n.is(a.node)||n.closest(a.node).length)return 1;if(u(n,e.uiExclude))return 1}})(o,r,n)||u(n,o.uiExclude)?i.push(o):l(o)}s=i}}e.on("mousedown",function(e){e.target==document.documentElement&&e.pageX>document.documentElement.clientWidth||t(e.target,!1)}),e.on("click",function(e){t(e.target,!0)}),ui.addPopup=function(e,t,n,i){a(e=$?$(e)[0]:e),(t=ui.makeArray(t)).push(e),s.push({node:e,uiExclude:t,callback:n,closeOnClick:ui.toBoolean(i)})},ui.removePopup=a,ui.closeAllPopups=function(){for(var e=0,t=s.length;e<t;e++)l(s[e]);s=[]}})(),(()=>{var o=!1,s=null,l=null;ui.dragAndDrop=function(e){var t,n,i,a=e.event.originalEvent||e.event;function r(e){e=e.originalEvent||e;n.pageX=e.touches[0].pageX,n.pageY=e.touches[0].pageY,n.processDragging&&n.processDragging(n)}e.isTouchDragging=!!a.touches,e.isTouchDragging?(n=e,l||((a=n.event).preventDefault(),delete n.event,(i=$((l=n).owner)).on("touchmove",r),i.on("touchend",function e(){n.stopDragging&&n.stopDragging(n);i.off("touchmove",r);i.off("touchend",e);l=null}),a=a.originalEvent||a,n.pageX=a.touches[0].pageX,n.pageY=a.touches[0].pageY,n.startDragging&&n.startDragging(n))):1!=(e=(a=e).event).which||s||(e.preventDefault(),delete a.event,o||((t=$(document)).on("mousemove",function(e){s&&s.processDragging&&(s.pageX=e.pageX,s.pageY=e.pageY,s.processDragging(s))}),t.on("mouseup",function(e){s&&(s.stopDragging&&(s.pageX=e.pageX,s.pageY=e.pageY,s.stopDragging(s)),s._overlayJQ.remove(),s=null)}),o=!0),s=a,t=$('<div style="position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 9999; cursor: move; cursor: grab;">'),$(document.body).append(t),a._overlayJQ=t,a.hasOwnProperty("cursor")&&t.css("cursor",a.cursor),a.hasOwnProperty("overlayClass")&&t.addClass(a.overlayClass),a.startDragging&&(a.pageX=e.pageX,a.pageY=e.pageY,a.startDragging(a)))}})(),ui.fn.dragSort=function(e){var l=$(this),t=l.data("UIDragSort");if(t)return e&&t.update(e),t;var n,u,c,f,d,h,i,p,_,v,g,m,b,w,y,M,t=(e=ui.toObject(e)).dragPlaceholderSelector,a=!1;function r(e){(e=ui.toObject(e)).hasOwnProperty("disabled")&&(a=e.disabled),e.hasOwnProperty("dragSortHandler")&&(n=e.dragSortHandler)}r(e),l.on("mousedown touchstart",t,function(e){if(!a){var t=$(window);for(i=$(this);!i.parent().is(l);)i=i.parent();ui.dragAndDrop({event:e,owner:this,cursor:$(this).css("cursor"),startDragging:function(e){f=!1,p=null,l.children().each(function(){($(this).find(i).length||$(this).is(i))&&(p=$(this))}),p&&(p.index(),u=e.pageX,c=e.pageY,y=t.scrollLeft(),M=t.scrollTop())},processDragging:function(e){if(p){if(d=e.pageX,h=e.pageY,!f&&(1<Math.abs(u-d)||1<Math.abs(c-h))){switch(f=!0,w=$('<div class="ui-drag-sort-overlay non-selectable">   <div class="ui-drag-sort-item-box">       <div class="ui-drag-sort-block-item-container"></div>       <ul class="ui-drag-sort-list-item-container"></ul>       <table class="ui-drag-sort-table-row-container"></table>   </div></div>'),$(document.body).append(w),_=p.is("li")?"list-item":p.is("tr")?"table-row":"block-item",(v=w.find(".ui-drag-sort-item-box")).css({width:p.outerWidth()+"px",height:p.outerHeight()+"px"}),g=u-p.offset().left,m=c-p.offset().top,_){case"block-item":o(".ui-drag-sort-block-item-container");break;case"list-item":o(".ui-drag-sort-list-item-container");break;case"table-row":o(".ui-drag-sort-table-row-container")}(b=p.clone()).addClass("ui-drag-sort-dummy-item"),b.outerHeight(p.outerHeight()),b.insertAfter(p),p.addClass("ui-hidden")}var t,n,i,a,r;f&&(e=d-g-y,n=h-m-M,v.css({left:e+"px",top:n+"px"}),i=h-m+v.outerHeight()/2,a=null,r=!1,l.children().each(function(){var e=$(this);e.is(b)?r=!0:(t=r?e.offset().top:e.offset().top+e.outerHeight(),i<t&&!a&&(a=e))}),b.detach(),a?b.insertBefore(a):l.append(b))}},stopDragging:function(){w&&(w.remove(),w=null),b&&(n&&n(),p.detach().insertAfter(b),b.remove(),p.removeClass("ui-hidden"),b=null),f=!1}})}function o(e){var t,e=w.find(e);e.show(),e.append(function e(t,n){1==t[0].nodeType&&n.css(s(t));var i=t[0].childNodes;var a=n[0].childNodes;for(var r=0;r<i.length;r++)e($(i[r]),$(a[r]));return n}(p,p.clone())),"table-row"==_&&(t=l.is("table")?l:l.closest("table"),e.css("table-layout",t.css("table-layout")))}function s(e){for(var t=["font-family","font-size","font-weight","font-style","color","text-transform","text-decoration","letter-spacing","word-spacing","line-height","text-align","vertical-align","direction","background-color","background-image","background-repeat","background-position","background-size","background-attachment","opacity","width","height","top","right","bottom","left","margin-top","margin-right","margin-bottom","margin-left","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","position","display","visibility","z-index","overflow-x","overflow-y","white-space","float","clear","cursor","list-style-image","list-style-position","list-style-type","marker-offset"],n={},i=0;i<t.length;i++){var a=t[i];!e.is("td")||"border-top-width"!=a&&"border-left-width"!=a?n[a]=e.css(a):n[a]=e.css("border-bottom-width")}return n}});e={update:r};return l.data("UIDragSort",e),e},(()=>{var a,r=!1,o={};ui.setStyles=function(e,t){ui.isArray(e)&&(e=e.join(", ")),t?o[e]=t:delete o[e]},ui.buildStyles=function(){r||(a=$('<style type="text/css"></style>'),$(document.body).prepend(a),r=!0);var e,t="";for(e in o){t+=e+" { ";var n,i=o[e];for(n in i)t+=n+": "+i[n]+"; ";t+="}\n"}a.html(t)}})(),(()=>{var i=null;ui.showFileDialog=function(e,t){i&&(i.off("change"),i.remove()),i=$('<input type="file" style="display: none" />'),$(document.body).append(i),(e=ui.toObject(e)).hasOwnProperty("accept")&&i.attr("accept",ui.toString(ui.toArray(e.accept).join(", ")));var n=ui.toBoolean(e.multiple);n&&i.attr("multiple","multiple"),i.on("change",function(){ui.isFunction(t)&&this.files&&t(n?this.files:this.files[0])}),i.click()}})(),ui.fn.dropFilesArea=function(e){var n=$(this),t=n.data("UIDropFilesArea");if(t)return ui.isObject(e)&&t.update(e),t;var i=null,a="Drop file(s) here",r=null,o=!1;function s(e){(e=ui.toObject(e)).hasOwnProperty("title")&&(a=ui.trim(e.title)),e.hasOwnProperty("onDropFiles")&&(r=e.onDropFiles),e.hasOwnProperty("disabled")&&(o=ui.toBoolean(e.disabled))}function l(e){var t;o||(e.preventDefault(),e.stopPropagation(),i)||(i=$('<div class="ui-drop-files-area ui-non-selectable">\t<div class="ui-drop-files-area-placeholder">\t\t<div class="ui-drop-files-area-placeholder-title"></div>\t</div></div>'),n.append(i),e=i.find(".ui-drop-files-area-placeholder"),i.find(".ui-drop-files-area-placeholder-title").text(a),t=(i.height()-e.height())/2,e.css("top",t+"px"),i.on("dragenter",l),i.on("dragover",l),i.on("dragleave",u),i.on("drop",c))}function u(e){e.preventDefault(),e.stopPropagation(),i&&(i.remove(),i=null)}function c(e){var t=e.originalEvent||e;ui.isFunction(r)&&r(t.dataTransfer.files),u(e)}n.on("dragenter",l),n.on("dragover",l),n.on("drop",c),s(e);t={update:s,destroy:function(){n.off("dragenter"),n.off("dragover"),n.off("drop"),delete n[0].uiInterface}};return n.data("UIDropFilesArea",t),n[0].uiInterface=t},ui.BinaryReader=function(e){var n=new Uint8Array(e),i=0,a=0,r=0;function o(e){r<e&&(a|=n[i++]<<r,r+=8);var t=a&(1<<e)-1;return a>>=e,r-=e,t}function s(e){for(var t=0;0<e;){var n=e%8;t|=o(n=0==n?8:n)<<e-n,e-=n}return t}return{eof:function(){return i>=n.length&&r<=0},readNumber:s,readInteger:function(e){var t=e%8,n=o((t=0==t?8:t)-1),i=o(1);return t<e&&(n=n<<e-t|s(e-t)),n=i?-1-(n^(1<<e-1)-1):n},readString:function(e){for(var t="",n=0;n<e;n++)t+=String.fromCharCode(s(8));return t}}},ui.BinaryWriter=function(){var n=[],i=0,a=0,r=0;function o(e,t){a|=e<<r,8<=(r+=t)&&(n[i++]=255&a,a>>=8,r-=8)}function s(e,t){for(;0<t;){var n=t%8;o(e>>t-(n=0==n?8:n),n),e&=(1<<t-n)-1,t-=n}}return{writeNumber:s,writeInteger:function(e,t){var n=t%8,i=0;o((e=e<0?-(i=1)-(e^(1<<t-1)-1):e)>>t-(n=0==n?8:n),n-1),o(i,1),n<t&&s(e&(1<<t-n)-1,t-n)},writeString:function(e){for(var t=0;t<e.length;t++)o(e.charCodeAt(t),8)},getData:function(){return 0<r&&(n[i++]=a),new Uint8Array(n)}}},ui.fullScreenMode={},(e=>{var n=!1,i=null,a=null;function r(){document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||!a||(ui.isFunction(a)&&a(),a=i=null)}e.enter=function(e,t){0==(e=$(e)).length||i||(n||(document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r),n=!0),a=t,(i=e[0]).requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.msRequestFullscreen&&i.msRequestFullscreen())},e.entered=function(){return document.fullscreenElement||document.webkitIsFullScreen&&document.mozFullScreen&&document.msFullscreenElement},e.exit=function(){i&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),i=null)}})(ui.fullScreenMode),(()=>{var n={transparent:"rgba(0, 0, 0, 0)",aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4","indianred ":"cd5c5c","indigo ":"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};function a(){var e=Object.create(t.prototype);return t.apply(e,arguments)}function t(e,t,n,i){switch(arguments.length){case 1:this.setWebColor(e);break;case 3:this.setRGB(e,t,n);break;case 4:this.setRGBA(e,t,n,i)}return this}function r(e){return 255<(e=ui.toInt(e))?255:e<0?0:e}function e(e,t){return("00000000"+parseInt(e).toString(16)).slice(-t)}function o(e,t,n,i){return(e*(i-n)+t*n)/i}t.prototype=a.fn=a.prototype={constructor:a,r:0,g:0,b:0,a:0},(ui.Color=a).fn.setRGB=function(e,t,n){this.r=r(e),this.g=r(t),this.b=r(n),this.a=255},a.fn.setRGBA=function(e,t,n,i){this.r=r(e),this.g=r(t),this.b=r(n),this.a=r(i)},a.fn.setWebColor=function(e){var t;return e=ui.trim(e).toLowerCase(),n.hasOwnProperty(e)?this.setWebColor(n[e]):(t=e.match(/^rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)$/))?this.setRGB(t[1],t[2],t[3]):(t=e.match(/^rgba\s*\(\s*(\d+),\s*(\d+),\s*(\d+),\s*(\d+(:?\.\d+)?)\s*\)$/))?this.setRGBA(t[1],t[2],t[3],255*ui.toFloat(t[4])):(t=e.match(/^[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/))?this.setRGB(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):null},a.fn.assign=function(e){this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a},a.fn.equalTo=function(e){return this.r==e.r&&this.g==e.g&&this.b==e.b&&this.a==e.a},a.fn.getRGBColorString=function(){return"rgb("+Math.floor(this.r)+", "+Math.floor(this.g)+", "+Math.floor(this.b)+")"},a.fn.getRGBAColorString=function(){return"rgba("+Math.floor(this.r)+", "+Math.floor(this.g)+", "+Math.floor(this.b)+", "+(this.a/255).toFixed(3)+")"},a.fn.getColorString=function(){return 255==Math.floor(this.a)?this.getRGBColorString(this):this.getRGBAColorString(this)},a.fn.getColorNumber=function(){return e(this.r,2)+e(this.g,2)+e(this.b,2)},a.fn.getHSL=function(){var e=Math.min(this.r,this.g,this.b),t=Math.max(this.r,this.g,this.b),n=t!=e?((n=this.r==t?42.5*(this.g-this.b)/(t-e):this.g==t?85+42.5*(this.b-this.r)/(t-e):170+42.5*(this.r-this.g)/(t-e))+256)%256:0,i=t+e!=0?255*(t-e)/(t+e):255;return{h:n,s:i,l:(t+e)/2}},a.fn.setHSL=function(e){var t=r(e.h),n=r(e.s),e=r(e.l),t=a.getHueColorByIndex(t,255),i=[a(0,0,0),t,a(255,255,255)],t=a.multiMix(i,e,255);this.assign(a.mix(a(128,128,128),t,n,255))},a.fn.getHSV=function(){var e=Math.min(this.r,this.g,this.b),t=Math.max(this.r,this.g,this.b),n=t!=e?((n=this.r==t?42.5*(this.g-this.b)/(t-e):this.g==t?85+42.5*(this.b-this.r)/(t-e):170+42.5*(this.r-this.g)/(t-e))+256)%256:0,e=0!=t?255-255*e/t:0;return{h:n,s:e,v:t}},a.fn.setHSV=function(e){var t=r(e.h),n=r(e.s),e=r(e.v),t=a.getHueColorByIndex(t,255),t=a.mix(a(255,255,255),t,n,255);this.assign(a.mix(a(0,0,0),t,e,255))},a.getHueColorByIndex=function(e,t){var n=[a(255,0,0),a(255,255,0),a(0,255,0),a(0,255,255),a(0,0,255),a(255,0,255),a(255,0,0)];return a.multiMix(n,e,t)},a.mix=function(e,t,n,i){return a(o(e.r,t.r,n,i),o(e.g,t.g,n,i),o(e.b,t.b,n,i),o(e.a,t.a,n,i))},a.multiMix=function(e,t,n){n<(t=t<0?0:t)&&(t=n);var n=Math.ceil((n+1)/(e.length-1)),i=Math.floor(t/n);return a.mix(e[i],e[i+1],t%n,n)}})(),ui.initGraph=function(e,i,a){e="string"==typeof e?$?$(e)[0]:document.querySelector(e):e instanceof $?e[0]:e,void 0!==i?(e.width=i,e.height=a):(i=e.width,a=e.height);for(var t=e.getContext("2d"),n=null,r=null,o=(0<i&&0<a&&(n=t.getImageData(0,0,e.width,e.height),r=n.data),[]),s=0;s<a;s++)o.push(s*i*4);var l=c(0,0,0);function d(e,t,n){e<0||i<=e||t<0||a<=t||(r[t=o[t]+(e<<2)]=n.r,r[t+1]=n.g,r[t+2]=n.b,r[t+3]=n.a)}function u(e,t,n,i){return{r:e,g:t,b:n,a:i}}function c(e,t,n){return{r:e,g:t,b:n,a:255}}return{width:i,height:a,ctx:t,clear:function(){for(var e=0;e<r.length;e++)r[e]=0},getPixel:function(e,t){return e<0||i<=e||t<0||a<=t?l:u(r[t=o[t]+(e<<2)],r[t+1],r[t+2],r[t+3])},putPixel:d,line:function(e,t,n,i,a){e=Math.floor(e),t=Math.floor(t),n=Math.floor(n),i=Math.floor(i);var r=Math.abs(e-n),o=Math.abs(t-i),s=Math.max(r,o);if(d(e,t,a),0!=s)for(var l=Math.floor((n-e<<16)/s),u=Math.floor((i-t<<16)/s),c=e<<16,f=t<<16;s;)d((c+=l)>>16,(f+=u)>>16,a),s--},fillRect:function(e,t,n,i,a){for(var r=Math.floor(e),o=Math.floor(t),s=Math.floor(e+n),l=Math.floor(t+i),u=o;u<l;u++)for(var c=r;c<s;c++)d(c,u,a)},redraw:function(){n&&t.putImageData(n,0,0)},RGB:c,RGBA:u,webColor2RGB:function(e){var t;return void 0!==ui.Color?ui.Color(e):(t=(e=ui.toString(e).toLowerCase()).match(/^[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/))?c(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):(t=e.match(/^rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)$/))?c(t[1],t[2],t[3]):(t=e.match(/^rgba\s*\(\s*(\d+),\s*(\d+),\s*(\d+),\s*(\d+(?:\.\d+)?)\s*\)$/))?u(t[1],t[2],t[3],255*ui.toFloat(t[4])):u(0,0,0,1)},setErrorColor:function(e){l=e}}},ui.screenLocker={},(e=>{var t,n,i,a,r=0,o=0,s=0,l=[];function u(){0==r&&0==o&&0==s&&t.remove()}e.show=function(e){switch(0==r&&0==o&&0==s&&(t=$('<div class="ui-screen-locker ui-stuff">\t<div class="ui-screen-locker-state-inactive"></div>\t<div class="ui-screen-locker-state-busy"></div>\t<div class="ui-screen-locker-state-loading">\t\t<div class="ui-screen-locker-state-loading-spinner"></div>\t</div></div>'),$(document.body).append(t),t.on("click",function(e){e.preventDefault(),e.stopPropagation()}),n=t.find(".ui-screen-locker-state-loading"),i=t.find(".ui-screen-locker-state-busy"),a=t.find(".ui-screen-locker-state-inactive")),l.push(e="busy"!=e&&"locked"!=e?"loading":e),e){case"loading":0==r&&(n.stop(),n.css({display:"block",opacity:0}),n.fadeTo(400,.5)),r++;break;case"busy":0==o&&i.show(),o++;break;case"locked":0==s&&a.show(),s++}},e.hide=function(){switch(l.pop()){case"loading":0==--r&&(n.stop(),n.fadeTo(200,0,function(){n.hide(),u()}));break;case"busy":0==--o&&(i.hide(),u());break;case"locked":0==--s&&(a.hide(),u())}}})(ui.screenLocker),$(function(){var _=$(window),e=$(document),v="style-generic theme-default delay-200 animate-100";function t(n){if(window.PointerEvent){var e,t,i=n.attr("data-ui-inplace-hint");if(t=(e=n).outerWidth(),o=$("<div>"),$(document.body).append(o),o.css({position:"fixed",left:"-9999px",top:"-9999px","word-break":"break-word","line-height":"normal","font-family":e.css("font-family"),"font-size":e.css("font-size"),"font-weight":e.css("font-weight"),"font-style":e.css("font-style"),"text-transform":e.css("text-transform"),"text-decoration":e.css("text-decoration"),"letter-spacing":e.css("letter-spacing"),"word-spacing":e.css("word-spacing"),border:e.css("border"),"box-sizing":e.css("box-sizing")}),o.html(e.html()),e=o.height(),o.width(t+1),t=o.height(),o.remove(),e<t||""!=i){for(var a=$('<div class="ui-inplace-hint ui-stuff">\t<div class="ui-inplace-hint-frame"></div>\t<div class="ui-inplace-hint-content"></div></div>'),r=($(document.body).append(a),a.find(".ui-inplace-hint-content")),o=v+" "+ui.toString(n.attr("data-ui-inplace-hint-skin")),s=(o=""==o?v:o).split(" "),l="",u="",c=0,f=0,d=0;d<s.length;d++){var h=s[d];"delay-"==h.substr(0,6)?c=ui.toInt(h.substr(6)):"animate-"==h.substr(0,8)?f=ui.toInt(h.substr(8)):"style-"==h.substr(0,6)?l=h:"theme-"==h.substr(0,6)&&(u=h)}a.addClass("ui-inplace-hint-skin-"+l),a.addClass("ui-inplace-hint-skin-"+u);var p=setTimeout(function(){p=null,0<f?a.fadeIn(f):a.show();""==i?r.html(n.html()):r.text(i);((e,t)=>{t.css({"font-family":e.css("font-family"),"font-size":e.css("font-size"),"font-weight":e.css("font-weight"),"font-style":e.css("font-style"),"text-transform":e.css("text-transform"),"text-decoration":e.css("text-decoration"),"letter-spacing":e.css("letter-spacing"),"word-spacing":e.css("word-spacing")})})(n,r);var e=n.offset(),t=e.left+ui.toInt(n.css("padding-left"))-_.scrollLeft(),e=e.top+ui.toInt(n.css("padding-top"))+(e=>{var t=$("<div>"),e=($(document.body).append(t),t.css({position:"fixed",left:"-9999px",top:"-9999px","font-family":e.css("font-family"),"font-size":e.css("font-size"),"line-height":"normal","white-space":"nowrap"}),e.clone()),n=(t.append(e),t.height()),e=(e.css("line-height","normal"),t.height());return t.remove(),(n-e)/2})(n)-_.scrollTop();a.css({left:t+"px",top:e+"px"})},c);n.data("UIInplaceHint",{destroy:function(){p&&clearTimeout(p),a&&a.remove()}})}}}e.on("mouseenter","[data-ui-inplace-hint]",function(){t($(this))}),e.on("mouseleave","[data-ui-inplace-hint]",function(){var e=$(this).data("UIInplaceHint");e&&e.destroy()})}),(()=>{var C={relX:0,relY:-16,skinAsPopup:"style-generic theme-generic to-bottom align-right animation-islide-150-150",skinAsWindow:"style-generic theme-maroon animation-slide-150-150"},I=$(window),O=8,_=null;function i(x,e){var t=(t=x).length?t.data("UIErrorTooltip"):_;if(t)t.updateMessageHTML(e);else{for(var R=!0,E="",k=$('<div class="ui-error-tooltip ui-stuff">\t<div class="ui-error-tooltip-background">\t\t<div class="ui-error-tooltip-helper">\t\t\t<div class="ui-error-tooltip-helper-bg"></div>\t\t\t<div class="ui-error-tooltip-helper-fg"></div>\t\t</div>\t</div>\t<div class="ui-error-tooltip-text"></div></div>'),P=($(document.body).append(k),k.find(".ui-error-tooltip-helper")),t=(f(e),x.length?C.skinAsPopup+" "+ui.toString(x.attr("data-error-skin")):C.skinAsWindow),n=ui.toString(t).split(" "),B="",T="",a="",r=0,o=0,i="",s="",l=0;l<n.length;l++){var u=n[l];"style-"==u.substr(0,6)?i=u:"theme-"==u.substr(0,6)?s=u:"to-"==u.substr(0,3)?B=u.substr(3):"align-"==u.substr(0,6)?T=u.substr(6):"animation-"==u.substr(0,10)&&(u=u.match(/^animation-(none|slide|islide|fade)(?:-(\d+))?(?:-(\d+))?$/),a=ui.toString(u[1]),r=ui.toInt(u[2])||r,o=void 0===u[3]?r:ui.toInt(u[3]))}k.addClass("ui-error-tooltip-skin-"+i),k.addClass("ui-error-tooltip-skin-"+s),setTimeout(function(){d(),p(!1,function(){R=!1,d()})},10);var c=ui.registerScrollEvent(x),e=(ui.addResizeHandler(k,d),ui.addScrollHandler(k,d),x.length?[x]:[]);ui.addPopup(k,e,function(){var e;R=!0,d(),p(!0,function(){k.remove(),k=null}),c.unregister(),ui.removeResizeHandler(k),ui.removeScrollHandler(k),(e=x).length?e.removeData("UIErrorTooltip"):_=null}),t={updateMessageHTML:function(e){f(e),R||d()}},(e=x).length?e.data("UIErrorTooltip",t):_=t}function f(e){k.find(".ui-error-tooltip-text").html(e)}function d(){if(x.length){k.css({display:"",position:"fixed",left:"",top:"",visibility:"hidden",width:"","max-width":""}),P.css({left:"","margin-left":"","margin-top":""}),k.outerWidth(k.outerWidth()+1),ui.removeClassByPattern(k,"ui-error-tooltip-to-*"),ui.removeClassByPattern(k,"ui-error-tooltip-align-*"),E=B;var e=I.scrollLeft(),t=I.scrollTop(),n=I.innerWidth(),i=I.innerHeight(),a=x.offset(),r=a.left-e,o=a.top-t,s=x.outerWidth(),l=x.outerHeight(),u=k.outerWidth(),c=k.outerHeight(),f=P.outerHeight();if(r+s<0||o+l<0||n<=r||i<=o)k.hide();else{var d=0,h=0,p=[],_={};m(),g()||(r<O&&(s+=r-O,r=O),o<O&&(l+=o-O,o=O),n-O<=r+s&&(s=n-r-O-1),i-O<=o+l&&(l=i-o-O-1),m(),g())||(()=>{k.css("max-width",n-2*O+"px");var e=k.outerHeight();e<o-f?(E="top",d=O,h=o-f-e,p=["ui-error-tooltip-to-top","ui-error-tooltip-align-right"],P.css("left",r+s/2-f-O+"px")):o+e<=i-O?(E="bottom",d=O,h=o+l+f,p=["ui-error-tooltip-to-bottom","ui-error-tooltip-align-right"],P.css("left",r+s/2-f-O+"px")):(E="",d=O,h=16,p=[],_={})})(),R?M="fixed":(M="absolute",d+=e,h+=t),k.css({position:M,left:d+"px",top:h+"px",visibility:"visible"});for(var v=0;v<p.length;v++)k.addClass(p[v]);_.centerX&&P.css("margin-left",-P.outerWidth()/2+"px"),_.centerY&&P.css("margin-top",-P.outerHeight()/2+"px"),ui.isVisible(x)||k.hide()}function g(){return O<=d&&O<=h&&d+u<n-O&&h+c<i-O}function m(){"bottom"==B?b("left"==T?["bottom-left","bottom-right","top-left","top-right","left","right"]:"center"==T?["bottom-center","bottom-right","bottom-left","top-right","top-left","right","left"]:["bottom-right","bottom-left","top-right","top-left","right","left"]):"top"==B?b("left"==T?["top-left","top-right","bottom-left","bottom-right","left","right"]:"center"==T?["top-center","top-right","top-left","bottom-right","bottom-left","right","left"]:["top-right","top-left","bottom-right","bottom-left","right","left"]):"right"==B?b(["right","left","bottom-right","bottom-left","top-right","top-left"]):"left"==B&&b(["left","right","bottom-left","bottom-right","top-left","top-right"])}function b(e){for(var t=0;t<e.length;t++){switch(e[t]){case"bottom-right":E="bottom",d=r,h=o+l+f,p=["ui-error-tooltip-to-bottom","ui-error-tooltip-align-right"],_={};break;case"bottom-center":E="bottom",d=r+(s-u)/2,h=o+l+f,p=["ui-error-tooltip-to-bottom","ui-error-tooltip-align-center"],_={centerX:1};break;case"bottom-left":E="bottom",d=r+s-u,h=o+l+f,p=["ui-error-tooltip-to-bottom","ui-error-tooltip-align-left"],_={};break;case"top-right":E="top",d=r,h=o-f-c,p=["ui-error-tooltip-to-top","ui-error-tooltip-align-right"],_={};break;case"top-center":E="top",d=r+(s-u)/2,h=o-f-c,p=["ui-error-tooltip-to-top","ui-error-tooltip-align-center"],_={centerX:1};break;case"top-left":E="top",d=r+s-u,h=o-f-c,p=["ui-error-tooltip-to-top","ui-error-tooltip-align-left"],_={};break;case"left":E="left",d=r-f-u,h=o+(l-c)/2,p=["ui-error-tooltip-to-left"],_={centerY:1};break;case"right":E="right",d=r+s+f,h=o+(l-c)/2,p=["ui-error-tooltip-to-right"],_={centerY:1}}if(g())break}}}else{k.css({display:"",position:"fixed",left:"",top:"",visibility:"hidden",width:"","max-width":"600px"});var w,y,a=C.relX,e=C.relY,t=k.outerWidth(),M=k.outerHeight(),S=I.innerWidth(),A=I.innerHeight();w=0<a?a:a<0?S-t+a:(S-t)/2,y=0<e?e:e<0?A-M+e:(A-M)/2,a=Math.abs(a)||O,(w<a||S<=t+2*a)&&(w=O,k.outerWidth(S-2*O)),M=k.outerHeight(),0==e?y=(A-M)/2:A<=y+M+a&&(y=A-a-M),k.css({position:"fixed",visibility:"visible",left:w+"px",top:y+"px"})}}function h(e,t,n,i){n?(k.css(t),k.animate(e,o,"linear",i)):(k.css(e),k.animate(t,r,"linear",i))}function p(e,t){var n,i;k.toggleClass("ui-error-tooltip-opened",!e),"none"==a?ui.isFunction(t)&&t():"slide"==a?(n="left"==B?10:"right"==B?-10:0,i=0,"bottom"!=B&&0!=x.length||(i=-10),h({opacity:0,"margin-left":n+"px","margin-top":(i="top"==B?10:i)+"px"},{opacity:1,"margin-left":0,"margin-top":0},e,t)):"islide"==a?(n="left"==E?-10:"right"==E?10:0,i=0,"bottom"!=E&&0!=x.length||(i=10),h({opacity:0,"margin-left":n+"px","margin-top":(i="top"==E?-10:i)+"px"},{opacity:1,"margin-left":0,"margin-top":0},e,t)):"fade"==a?h({opacity:0},{opacity:1},e,t):ui.isFunction(t)&&t()}}function n(e,t){var n=$(e),e=(n.length&&(n.addClass("ui-with-error"),ui.scrollToElement(n,8,8),(e=$(e=n)).is("input[type=text], input[type=password], input:not([type]), textarea")&&e.filter(":visible").length?e.focus():0<(e=e.find("input[type=text], input[type=password], input:not([type]), textarea").filter(":visible")).length&&e.focus()),0==$("body > .ui-error-tooltip-opened").length);""!=t&&e&&i(n,t),n.length&&ui.addPopup(n,[".ui-error-tooltip"],function(){n.removeClass("ui-with-error")})}ui.setError=function(e,t){n(e,ui.textToHTML(t))},ui.setErrorHTML=n,ui.setErrorDefaults=function(e){e.hasOwnProperty("relX")&&(C.relX=ui.toInt(e.relX)),e.hasOwnProperty("relY")&&(C.relY=ui.toInt(e.relY)),e.hasOwnProperty("skinAsPopup")&&(C.skinAsPopup=ui.toString(e.skinAsPopup)),e.hasOwnProperty("skinAsWindow")&&(C.skinAsWindow=ui.toString(e.skinAsWindow))},ui.setErrorTooltipStyle=function(e,t){var n,i={},a={},r={},o={},s={},l={},u={},c={},f={},d={};t.hasOwnProperty("hPadding")&&(n=ui.toInt(t.hPadding),i["padding-left"]=n+"px",i["padding-right"]=n+"px"),t.hasOwnProperty("vPadding")&&(n=ui.toInt(t.vPadding),i["padding-top"]=n+"px",i["padding-bottom"]=n+"px"),t.hasOwnProperty("borderRadius")&&(a["border-radius"]=ui.toInt(t.borderRadius)+"px"),t.hasOwnProperty("borderWidth")&&(n=ui.toInt(t.borderWidth),a["border-width"]=n+"px !important",d["margin-right"]=f["margin-left"]=c["margin-top"]=u["margin-bottom"]=-(32-n)+"px"),t.hasOwnProperty("fontSize")&&(r["font-size"]=ui.toInt(t.fontSize)+"px"),t.hasOwnProperty("fontWeight")&&(r["font-weight"]=ui.toString(t.fontWeight)),t.hasOwnProperty("helperReservedSize")&&(o.height=ui.toInt(t.helperReservedSize)+"px"),t.hasOwnProperty("helperSize")&&(n=ui.toInt(t.helperSize),s.width=2*n+"px",s.height=n+"px",l.width=n+"px",l.height=2*n+"px"),ui.isEmptyObject(i)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e,i),ui.isEmptyObject(a)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+" .ui-error-tooltip-background",a),ui.isEmptyObject(r)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+" .ui-error-tooltip-text",r),ui.isEmptyObject(o)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+" .ui-error-tooltip-helper",o),ui.isEmptyObject(s)||ui.setStyles([".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-top .ui-error-tooltip-helper",".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-bottom .ui-error-tooltip-helper"],s),ui.isEmptyObject(l)||ui.setStyles([".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-right .ui-error-tooltip-helper",".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-left .ui-error-tooltip-helper"],l),ui.isEmptyObject(u)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-top .ui-error-tooltip-helper-fg",u),ui.isEmptyObject(c)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-bottom .ui-error-tooltip-helper-fg",c),ui.isEmptyObject(f)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-right .ui-error-tooltip-helper-fg",f),ui.isEmptyObject(d)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-style-"+e+".ui-error-tooltip-to-left .ui-error-tooltip-helper-fg",d)},ui.setErrorTooltipTheme=function(e,t){var n,i={},a={},r={},o={};t.hasOwnProperty("backgroundColor")&&(n=ui.trim(t.backgroundColor),a["border-color"]=i["background-color"]=n),t.hasOwnProperty("borderColor")&&(n=ui.toString(t.borderColor),r["border-color"]=i["border-color"]=n),t.hasOwnProperty("textColor")&&(o.color=ui.toString(t.textColor)),ui.isEmptyObject(i)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-theme-"+e+" .ui-error-tooltip-background",i),ui.isEmptyObject(o)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-theme-"+e+" .ui-error-tooltip-text",o),ui.isEmptyObject(a)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-theme-"+e+" .ui-error-tooltip-helper-fg",a),ui.isEmptyObject(r)||ui.setStyles(".ui-error-tooltip.ui-error-tooltip-skin-theme-"+e+" .ui-error-tooltip-helper-bg",r)}})(),ui.fn.ScrollBox=function(e){var a=$(this),t=a.data("UIScrollBox");if(t)return t.update(e),t;a.addClass("ui-scroll-box"),a.addClass("ui-stuff");var n,r=$(window),o=null,s=null,l=null,i=a[0].childNodes,u=[];for(n=0;n<i.length;n++)u.push(i[n]);for(o=$('<div class="ui-scroll-content"></div>'),a.append(o),s=$('<div class="ui-v-area">\t<div class="ui-v-rail"></div>\t<div class="ui-v-bar-area">\t\t<div class="ui-v-bar"></div>\t</div></div>'),a.append(s),l=$('<div class="ui-h-area">\t<div class="ui-h-rail"></div>\t<div class="ui-h-bar-area">\t\t<div class="ui-h-bar"></div>\t</div></div>'),a.append(l),n=0;n<u.length;n++)$(u[n]).detach().appendTo(o);var c=s.find(".ui-v-bar-area"),f=l.find(".ui-h-bar-area"),d=0,h=0,p=0,_=0,v=0,g=0,m=0,b=0,w=16,y=!1,M=null;function S(e){var t,n=!1;(e=ui.toObject(e)).hasOwnProperty("width")&&(t=ui.toInt(e.width),a.css("width",t?t+"px":""),n=!0),e.hasOwnProperty("height")&&(t=ui.toInt(e.height),o.css("height",t?t+"px":""),n=!0),e.hasOwnProperty("maxWidth")&&(t=ui.toInt(e.maxWidth),a.css("max-width",t?t+"px":""),n=!0),e.hasOwnProperty("maxHeight")&&(t=ui.toInt(e.maxHeight),o.css("max-height",t?t+"px":""),n=!0),e.hasOwnProperty("barSize")&&(m=ui.toInt(e.barSize),b=m,n=!0),e.hasOwnProperty("vBarSize")&&(m=ui.toInt(e.vBarSize),n=!0),e.hasOwnProperty("hBarSize")&&(b=ui.toInt(e.hBarSize),n=!0),e.hasOwnProperty("vBarSize")&&(m=ui.toInt(e.vBarSize),n=!0),e.hasOwnProperty("minBarSize")&&(w=ui.toInt(e.minBarSize),n=!0),e.hasOwnProperty("hBarFixed")&&(y=ui.toBoolean(e.hBarFixed),n=!0),e.hasOwnProperty("skin")&&(t=ui.trim(e.skin),ui.removeClassByPattern(a,"ui-scroll-box-*-skin"),""!=t&&a.addClass("ui-scroll-box-"+t+"-skin"),n=!0),e.hasOwnProperty("onScroll")&&(M=e.onScroll,ui.isFunction(M)||(M=null)),n&&A()}function A(){0!=a[0].offsetWidth&&(a.removeClass("ui-with-h-scroll"),a.removeClass("ui-with-v-scroll"),0,o[0].scrollWidth>o[0].clientWidth&&(a.addClass("ui-with-h-scroll"),0),o[0].scrollHeight>o[0].clientHeight&&(a.addClass("ui-with-v-scroll"),0),x())}function x(){var e,t,n,i;0!=a[0].offsetWidth&&(d=o[0].scrollWidth,h=o[0].scrollHeight,p=o[0].clientWidth,_=o[0].clientHeight,v=Math.min(o.scrollLeft(),d-p),g=Math.min(o.scrollTop(),h-_),0==d&&(d=1),0==h&&(h=1),(n=m)<=0&&s[0].offsetHeight*_/h<w&&(n=w),(i=b)<=0&&l[0].offsetWidth*p/d<w&&(i=w),n<=0?c.css({top:100*g/h+"%",height:100*_/h+"%"}):(t=s[0].offsetHeight,e=g*(t-n)/(h-_),c.css({top:100*e/t+"%",height:100*n/t+"%"})),i<=0?f.css({left:100*v/d+"%",width:100*p/d+"%"}):(e=l[0].offsetWidth,n=v*(e-i)/(d-p),f.css({left:100*n/e+"%",width:100*i/e+"%"})),y&&(t=r.scrollTop()+r.innerHeight()-l[0].offsetHeight,i=(n=a.offset().top)+_-l[0].offsetHeight,n<t)&&t<i?l.css("bottom",i-t+"px"):l.css("bottom",""))}S(e),A(),ui.addResizeHandler(a,A),ui.addScrollHandler(a,x),o.on("scroll",function(){x()}),s.on("mousedown touchstart",function(e){var t,n,i=$(e.target);ui.dragAndDrop({event:e,owner:this,cursor:$(this).css("cursor"),startDragging:function(e){s.addClass("ui-v-dragging"),i.hasClass("ui-v-bar-area")||0!=i.closest(".ui-v-bar-area").length||(g=(e.pageY-c.outerHeight()/2-s.offset().top)/(s.outerHeight()-c.outerHeight())*(h-_),o.scrollTop((e.pageY-c.outerHeight()/2-s.offset().top)/(s.outerHeight()-c.outerHeight())*(h-_)),x()),t=g,n=e.pageY},processDragging:function(e){o.scrollTop(t+(e.pageY-n)/(s.outerHeight()-c.outerHeight())*(h-_)),x()},stopDragging:function(){s.removeClass("ui-v-dragging")}})}),l.on("mousedown touchstart",function(e){var t,n,i=$(e.target);ui.dragAndDrop({event:e,owner:this,cursor:$(this).css("cursor"),startDragging:function(e){l.addClass("ui-h-dragging"),i.hasClass("ui-h-bar-area")||0!=i.closest(".ui-h-bar-area").length||(o.scrollLeft((e.pageX-f.outerWidth()/2-l.offset().left)/(l.outerWidth()-f.outerWidth())*(d-p)),x()),t=v,n=e.pageX},processDragging:function(e){o.scrollLeft(t+(e.pageX-n)/(l.outerWidth()-f.outerWidth())*(d-p)),x()},stopDragging:function(){l.removeClass("ui-h-dragging")}})}),o.on("scroll",function(){a.trigger("uiScroll"),M&&M()});t={update:S,resize:A,scrollLeft:function(){return o.scrollLeft()},scrollTop:function(){return o.scrollTop()},scrollWidth:function(){return o[0].scrollWidth},scrollHeight:function(){return o[0].scrollHeight},clientWidth:function(){return o[0].clientWidth},clientHeight:function(){return o[0].clientHeight},destroy:function(){for(var e=o[0].childNodes,t=[],n=0;n<e.length;n++)t.push(e[n]);for(n=0;n<t.length;n++)$(t[n]).detach().appendTo(a);a.removeClass("ui-scroll-box"),a.removeClass("ui-stuff"),s.remove(),o.remove(),l.remove(),ui.removeResizeHandler(a),ui.removeScrollHandler(a),a.removeData("UIScrollBox"),delete a[0].uiInterface}};return a.data("UIScrollBox",t),a[0].uiInterface=t},ui.openDropdown=function(e,t,n,i){var W,X,a,Q,r,o,s,U,Y,j,G,l,Z,K,u,c,f,d,h,J,ee,te,ne,ie,ae,re=$(e);function p(e){for(var t=ui.trim(e).split(" "),n=0;n<t.length;n++){var i=t[n];if("tooltip-"==i.substr(0,8)){ui.removeClassByPattern(X,"ui-dropdown-*-skin");var a=i.substr(8);X.addClass("ui-dropdown-"+a+"-skin")}else if("box-"==i.substr(0,4))o=i.substr(4);else if("arrow-"==i.substr(0,6))s="on"==i.substr(6),X.toggleClass("ui-dropdown-with-arrow",s);else if("to-"==i.substr(0,3))U=i.substr(3);else if("width-"==i.substr(0,6)){var r=i.substr(6);switch(r){case"auto":case"full":Y=r;break;default:Y="fixed",j=ui.toInt(r)}}else"max-height-"==i.substr(0,11)?G=ui.toInt(i.substr(11)):"margin-"==i.substr(0,7)?l=ui.toInt(i.substr(7)):"v-padding-"==i.substr(0,10)?Z=ui.toInt(i.substr(10)):"anim-in-"==i.substr(0,8)?(a=i.substr(8).split("-"),u=a[0],c=ui.toInt(a[1])||("none"==u?0:100)):"anim-out-"==i.substr(0,9)&&(i=i.substr(9).split("-"),f=i[0],d=ui.toInt(i[1])||("none"==f?0:100))}}function _(){var t,e=W.scrollLeft(),n=W.scrollTop(),i=W.innerWidth(),a=W.innerHeight(),r=re.offset(),o=r.left-e,s=r.top-n,l=re.outerHeight(),u=re.outerWidth(),r=(0==j&&X.css("width",""),"full"==Y&&X.css("min-width",u+"px"),0<j?(t=Math.min(j,i-4),X.outerWidth(t)):(r=X.outerWidth(),(t=Math.min(r,i-4))<r&&X.outerWidth(t)),te.resize(),X[0].offsetHeight-ee[0].offsetHeight),c=te.scrollHeight()+r,f=(G&&G<c&&(c=G),s-ie-2),d=W.innerHeight()-s-l-ie-2,h="",p=0,_=0,v="",g=0,m=0;function b(){return 2<=p&&2<=_&&p+t<=i-2&&_+c<=a-2}function w(){var e=n(o,o+u-1,2,i-2-1),t=n(s,s+l-1,2,a-2-1);function n(e,t,n,i){return e<n&&n<t||e<i&&i<t}return e||t}function y(){G&&(E(!1),b()||k(!1),b())||(f<d?E:k)(!0)}function M(){G&&(k(!1),b()||E(!1),b())||(f<d?E:k)(!0)}function S(){G&&(P(!1),b()||B(!1),b())||(f<d?P:B)(!0)}function A(){G&&(B(!1),b()||P(!1),b())||(f<d?P:B)(!0)}function q(){T(!1),b()||C(!1),b()||(f<d?T:C)(!0)}function V(){C(!1),b()||T(!1),b()||(f<d?T:C)(!0)}function F(){I(),b()||N(),b()||x()}function H(){N(),b()||I(),b()||R()}function x(){h="right",p=o+u+ie,_=s-Z,g=0,m=l/2+Z,O(),b()&&!w()||y()}function z(){h="right",p=o+u+ie,_=s+l-c+Z,g=0,m=c-l/2-Z,O(),b()&&!w()||M()}function R(){h="left",p=o-ie-t,_=s-Z,g=0,m=l/2+Z,O(),b()&&!w()||S()}function L(){h="left",p=o-ie-t,_=s+l-c+Z,g=0,m=c-l/2-Z,O(),b()&&!w()||A()}function E(e){e&&(c=d),h="bottom",g=o+t+2<i||o-t<2?(p=o,_=s+l+ie,ae):(p=o+u-t,_=s+l+ie,t-ae),m=0,D()}function k(e){e&&(c=Math.min(c,f)),h="top",g=o+t+2<i||o-t<2?(p=o,_=s-ie-c,ae):(p=o+u-t,_=s-ie-c,t-ae),m=0,D()}function P(e){e&&(c=d),h="bottom",g=2<=o+u-t||o-t<2?(p=o+u-t,_=s+l+ie,t-ae):(p=o,_=s+l+ie,ae),m=0,D()}function B(e){e&&(c=Math.min(c,f)),h="top",g=2<=o+u-t||o-t<2?(p=o+u-t,_=s-ie-c,t-ae):(p=o,_=s-ie-c,ae),m=0,D()}function T(e){h="bottom",p=o+(u-t)/2,_=s+l+ie,g=t/2,m=0,e&&(c=a-2-_-1),D()}function C(e){h="top",p=o+(u-t)/2,_=s-ie-c,g=t/2,m=0,e&&(c=s-ie-(_=2)),D()}function I(){h="right",p=o+u+ie,_=s+(l-c)/2,g=0,m=c/2,O()}function N(){h="left",p=o-ne-t,_=s+(l-c)/2,g=0,m=c/2,O()}function O(){var e=_;(_=a-1-2<_+c?a-1-2-c:_)<2&&(_=2,c=Math.min(c,a-4)),m=m+e-_}function D(){i-2<=p+t&&(g=p-(p=i-2-t-1)+u/2),p<2&&(g=o-(p=2)+u/2)}({"bottom-right":y,"top-right":M,"bottom-left":S,"top-left":A,"bottom-center":q,"top-center":V,"right-center":F,"left-center":H,"right-bottom":x,"right-top":z,"left-bottom":R,"left-top":L})[U](),K?v="fixed":(v="absolute",document.fullscreenElement||(p+=e,_+=n)),X.css({display:ui.isVisible(re)?"block":"none",position:v,left:p+"px",top:_+"px"}),te.update({maxHeight:c-r}),Q.css("left",g?g-ne+"px":""),Q.css("top",m?m-ne+"px":""),J!=h&&(X.removeClass("ui-dropdown-align-"+J),X.addClass("ui-dropdown-align-"+h),J=h)}function v(){var e;X&&(ui.removeResizeHandler(a),ui.removeScrollHandler(a),re.removeData("UIDropdown"),a.removeData("UIDropdown"),re.removeClass("ui-expanded"),X.off(),0<d?(K=!0,_(),e=X,X=null,e.addClass("ui-dropdown-locked"),e.addClass("ui-dropdown-animation-out-"+f),setTimeout(function(){r.css("transition","all "+d+"ms linear"),e.addClass("ui-dropdown-animating"),setTimeout(function(){ui.isFunction(h)&&h(a),te.destroy(),e.remove()},d)},1)):(ui.isFunction(h)&&h(a),te.destroy(),X.remove(),X=null))}(e=re.data("UIDropdown"))?e.close():(W=$(window),X=$('<div class="ui-dropdown ui-stuff">\t<div class="ui-dropdown-animation-box">\t\t<div class="ui-dropdown-arrow">\t\t\t<div class="ui-dropdown-arrow-bg"></div>\t\t\t<div class="ui-dropdown-arrow-fg"></div>\t\t</div>\t\t<div class="ui-dropdown-frame"></div>\t</div></div>'),(document.fullscreenElement?$(document.fullscreenElement):$(document.body)).append(X),(a=(a=$(t).eq(0)).parent().length?a.clone():a).show(),a.css("display","block"),(e=X.find(".ui-dropdown-frame")).append(a),re.addClass("ui-expanded"),Q=X.find(".ui-dropdown-arrow"),r=X.find(".ui-dropdown-animation-box"),K=s=!1,f=u="none",d=c=Z=l=G=j=0,h=null,J=Y=U=o="",p("tooltip-generic box-generic arrow-on to-bottom-right width-full max-height-auto"),p(a.attr("data-ui-dropdown")),0==(ee=X.find("[data-ui-dropdown-box]")).length&&(ee=e),te=ui(ee).ScrollBox({skin:o}),0<c&&(K=!0,X.addClass("ui-dropdown-animation-in-"+u),setTimeout(function(){X&&(r.css("transition","all "+c+"ms linear"),X.addClass("ui-dropdown-animating"),setTimeout(function(){X&&(X.removeClass("ui-dropdown-animation-in-"+u),X.removeClass("ui-dropdown-animating"),r.css("transition",""),K=!1,_())},c))},1)),ui.addResizeHandler(a,_),ui.addScrollHandler(a,_),i=ui.toObject(i),(t=ui.makeArray(i.uiExclude)).push(re),t.push(X),ui.addPopup(a,t,v),_(),ui.isFunction(n)&&(n(a,e={onClose:null}),h=e.onClose),ne=s?ui.toInt(Q.css("height")):0,ie=ne+l,ae=ui.toInt(Q.css("width"))||16,_(),re.data("UIDropdown",i={close:v}),a.data("UIDropdown",i))},ui.closeDropdown=function(e){0!=(e=$(e)).length&&(e=e.data("UIDropdown"))&&e.close()},usagesSent=!1,dspProcessors=" function dsp_equalizer_set2dArray(r,s,a){for(var o=r.length=0;o<s;o++)r.push(new Float64Array(a))}function dsp_equalizer_flush(r,s,a,o,f,e){e.dynAmpFactor=1,dsp_equalizer_set2dArray(s,10,r),dsp_equalizer_set2dArray(a,10,r),dsp_equalizer_set2dArray(o,10,r),dsp_equalizer_set2dArray(f,10,r)}function dsp_equalizer_process(r,s,a,o,f,e,n,p,_,i,d,t,u,c,l,h){for(var v,y,A,q,z=h.dynAmpFactor,g=0;g<a;g++)for(A=0;A<s;A++){for(v=r[g][A],q=0;q<10;q++)y=(_[q]*v+p[q]*d[q][g]+i[q]*u[q][g]-p[q]*t[q][g]-n[q]*c[q][g])*e[q],u[q][g]=d[q][g],d[q][g]=v,c[q][g]=t[q][g],(1<=(v=t[q][g]=y)||v<=-1)&&(z=Math.min(z,1/Math.abs(v)));r[g][A]=v=v*z*f}o/=48e5;if(h.dynAmpFactor=(1-o)*z+o,!l)for(g=0;g<a;g++)for(A=0;A<s;A++)1<(v=r[g][A])?v=1:v<-1&&(v=-1),r[g][A]=v}function dsp_sound3d_process(r,s,a,o,f){if(0!=f)for(var e=0;e<s;e++){for(var n=0,p=0;p<a;p++)n+=r[p][e];n/=a;for(var _=0;_<a;_++){var i=r[_][e];r[_][e]=i+o*(i-n)}}}function dsp_lowpass_flush(r,s){for(var a=r.length=0;a<s;a++)r.push(0)}function dsp_lowpass_process(r,s,a,o,f,e){if(0!=e)for(var n=0;n<a;n++)for(var p=0;p<s;p++){var _=r[n][p];o[n]=o[n]+f*(_-o[n]),r[n][p]=o[n]}}function dsp_highpass_flush(r,s){for(var a=r.length=0;a<s;a++)r.push(0)}function dsp_highpass_process(r,s,a,o,f,e){if(0!=e)for(var n=0;n<a;n++)for(var p=0;p<s;p++){var _=r[n][p];o[n]=o[n]+f*(_-o[n]),r[n][p]=_-o[n]}}function dsp_balance_process(r,s,a,o){if(2==a)for(var f=0;f<s;f++)0<o&&(r[0][f]-=r[0][f]*o),o<0&&(r[1][f]+=r[1][f]*o)} ",eval(dspProcessors),globals.dspEQPresets=[{title:"Default",bands:[0,0,0,0,0,0,0,0,0,0]},{title:"Classical",bands:[0,0,0,0,0,0,-7.2,-7.2,-7.2,-9.6]},{title:"Club",bands:[0,0,9,5.6,5.6,5.6,3.2,0,0,0]},{title:"Dance",bands:[9.6,7.2,2.4,0,0,-5.6,-7.2,-7.2,0,0]},{title:"Full Bass",bands:[9.6,9.6,9.6,5.6,1.6,-4,-8,-10.4,-11.2,-11.2]},{title:"Full Bass & Treble",bands:[7.2,5.6,0,-7.2,-4.8,1.6,8,11.2,12,12]},{title:"Full Treble",bands:[-9.6,-9.6,-9.6,-4,2.4,11.2,16,16,16,16.8]},{title:"Laptop Speakers / Headphones",bands:[4.8,11.2,5.6,-3.2,-2.4,1.6,4.8,9.6,12.8,14.4]},{title:"Large Hall",bands:[10.4,10.4,5.6,5.6,0,-4.8,-4.8,-4.8,0,0]},{title:"Live",bands:[-4.8,0,4,5.6,5.6,5.6,4,2.4,2.4,2.4]},{title:"Party",bands:[7.2,7.2,0,0,0,0,0,0,7.2,7.2]},{title:"Pop",bands:[-1.6,4.8,7.2,8,5.6,0,-2.4,-2.4,-1.6,-1.6]},{title:"Reggae",bands:[0,0,0,-5.6,0,6.4,6.4,0,0,0]},{title:"Rock",bands:[8,4.8,-5.6,-8,-3.2,4,8.8,11.2,11.2,11.2]},{title:"Ska",bands:[-2.4,-4.8,-4,0,4,5.6,8.8,9.6,11.2,9.6]},{title:"Soft",bands:[4.8,1.6,0,-2.4,0,4,8,9.6,11.2,12]},{title:"Soft Rock",bands:[4,4,2.4,0,-4,-5.6,-3.2,0,2.4,8.8]},{title:"Techno",bands:[8,5.6,0,-5.6,-4.8,0,8,9.6,9.6,8.8]}],globals.dspEQFreqs=[70,180,320,600,1e3,3e3,6e3,12e3,14e3,16e3],instanceMgr={},(n=>{var i=MediaEvents();n.registerActiveInstance=function(e){var t=engine.activeInstances.length;ui.arrayHas(engine.activeInstances,e)||engine.activeInstances.push(e),0==t&&1==engine.activeInstances.length&&i.triggerEvent("onGlobalPlay")},n.unregisterActiveInstance=function(e){var t=engine.activeInstances.length;ui.arrayRemove(engine.activeInstances,e),1==t&&0==engine.activeInstances.length&&i.triggerEvent("onGlobalPause")},n.suspendAll=function(){for(var e=0;e<engine.activeInstances.length;e++)engine.activeInstances[e].pause()},n.bindEvent=i.bindEvent,n.unbindEvents=i.unbindEvents,n.triggerEvent=i.triggerEvent,n.defaulEnableDSP=!1,n.defaulRequireWavePrint=!1,n.enableDSP=function(e){e=ui.toBoolean(e),n.defaulEnableDSP=e;for(var t=0;t<engine.instances.length;t++)engine.instances[t].enableDSP(e)},n.requireWavePrint=function(e){e=ui.toBoolean(e),n.defaulRequireWavePrint=e;for(var t=0;t<engine.instances.length;t++)engine.instances[t].requireWavePrint(e)}})(instanceMgr),mediaEngineInstanceCounter=101,fullScreenVisualisationRunned=!1,engine.instances=[],engine.activeInstances=[],engine.bindEvent=instanceMgr.bindEvent,engine.unbindEvents=instanceMgr.unbindEvents,engine.triggerEvent=instanceMgr.triggerEvent,engine.enableDSP=instanceMgr.enableDSP,engine.requireWavePrint=instanceMgr.requireWavePrint,engine.getVisualData=function(e,t,n,i,a){if(e)return e.getVisualData(t,n,i,a);if(1==engine.activeInstances.length)return engine.activeInstances[0].getVisualData(t,n,i,a);for(var r=new Float64Array(t),o=0;o<engine.activeInstances.length;o++)for(var s=engine.activeInstances[o].getVisualData(t,n,i,a),l=0;l<s.length;l++)r[l]+=s[l];for(var u=0;u<t;u++)r[l]/=engine.activeInstances.length;return r},engine.getSpectrumData=function(e,t,n,i){return dspGenerateSpectrumData(engine.getVisualData(e,t,n,i))},engine.getVU=function(e,t,n,i){for(var a=engine.getVisualData(e,i||1e3,t,n,!0),r=0,o=0;o<a.length;o++){var s=Math.abs(a[o]);r<s&&(r=s)}return n&&1==engine.activeInstances.length&&(e=engine.activeInstances[0].dsp.balance.getValue(),0==t&&0<e?r*=1-e:1==t&&e<0&&(r*=1+e)),0==r?-40:20*ui.log10(r)},window.MediaEngine=window.mediaEngine=engine,ui.fn.Spectrum=function(e){var t=$(this),n=t.data("UISpectrum");if(n)return e&&n.update(e),n;var i=$('<div class="ui-spectrum ui-stuff">\t<canvas class="ui-spectrum-canvas"></canvas></div>'),s=(t.append(i),i.find(".ui-spectrum-canvas")[0]),l=s.getContext("2d"),a=null,u="#4fcb1d",c=[],f=50,r=!1,d=(e=ui.toObject(e)).player;if(!d)return{};function o(){a||(h(),a=setInterval(h,40))}function h(){if(!fullScreenVisualisationRunned&&ui.isVisible(s)){s.width=s.parentNode.offsetWidth,s.height=f;var e=Math.pow(2,1+Math.ceil(ui.log2(s.width)));if(e>c.length){var t=c.length;c.length=e;for(var n=t;n<e;n++)c[n]=0}else c.length=e;for(var i=d.getSpectrumData(c.length,0),a=0;a<c.length;a++)c[a]=2*c[a]/3,i[a]>c[a]&&(c[a]=i[a]);l.clearRect(0,0,s.width,s.height),l.beginPath();for(var r=0;r<s.width;r++){var o=5*c[Math.floor(r*c.length/s.width/3)],o=Math.sqrt(o*s.height);l.moveTo(r,s.height-o*f/100),l.lineTo(r,s.height)}l.strokeStyle=u,l.stroke()}}function p(){r||h()}function _(e){(e=ui.toObject(e)).hasOwnProperty("color")&&(u=e.color),e.hasOwnProperty("height")&&(f=ui.toInt(e.height))}d.enableDSP(!0),d.requireWavePrint(!0),_(e),p(),ui.addResizeHandler(i,p),d.paused()||o(),d.bindEvent(i,"onPause",function(){h(),a&&(clearInterval(a),a=null),r=!1}),d.bindEvent(i,"onPlay",function(){o(),r=!0}),d.bindEvent(i,"onComplete",function(){for(var e=0;e<c.length;e++)c[e]=0;h()});n={update:_,destroy:function(){a&&clearInterval(a),d.unbindEvents(i),ui.removeResizeHandler(i),t.removeData("UISpectrum"),i.remove()}};return t.data("UISpectrum",n),n},ui.fn.MediaPlayer=ui.fn.UIMediaPlayer=function(e){var t=$(this),n=t.data("UIMediaPlayer");if(n)return e&&n.update(e),n;sendUsages();var h=e.player,l=(h.enableDSP(!0),$('<div data-about="Alex Player v'+engineVersion+' (http://alex.player.x10.name/)" class="ui-media-player ui-stuff ui-non-selectable ui-media-player-style-generic">\t<div class="ui-media-player-spectrum"></div>\t<div class="ui-media-player-video"></div>\t<div class="ui-media-player-panel-container">\t\t<div class="ui-media-player-panel">\t\t\t<div class="ui-media-player-left-panel">\t\t\t\t<div class="ui-media-player-control-buttons">\t\t\t\t\t<div class="ui-media-player-play-button">\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t\t\t</div>\t\t\t\t\t<div class="ui-media-player-pause-button">\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div>\t\t\t<div class="ui-media-player-progress">\t\t\t\t<div class="ui-media-player-progress-line">\t\t\t\t\t<div class="ui-media-player-progress-value"></div>\t\t\t\t</div>\t\t\t\t<div class="ui-media-player-radio-panel">\t\t\t\t\t<div class="ui-media-player-radio-panel-buttons">\t\t\t\t\t\t<div class="ui-media-player-radio-panel-prev-button">\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="ui-media-player-radio-panel-next-button">\t\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="ui-media-player-radio-panel-title" data-ui-inplace-hint></div>\t\t\t\t</div>\t\t\t</div>\t\t\t<div class="ui-media-player-right-panel">\t\t\t\t<div class="ui-media-player-time-bar">0:00 / 0:00</div>\t\t\t\t<div class="ui-media-player-visualization-panel">\t\t\t\t\t<div class="ui-media-player-visualization-box"><canvas width="64" height="20"></canvas></div>\t\t\t\t</div>\t\t\t\t<div class="ui-media-player-volume-panel">\t\t\t\t\t<div class="ui-media-player-volume-icon">\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t\t\t</div>\t\t\t\t\t<div class="ui-media-player-no-volume-icon">\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t\t\t</div>\t\t\t\t\t<div class="ui-media-player-volume-line">\t\t\t\t\t\t<div class="ui-media-player-volume-value"></div>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t\t<div class="ui-media-player-full-screen-panel">\t\t\t\t\t<div class="ui-media-player-full-screen-button">\t\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/></svg>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div>\t\t</div>\t</div></div>')),i=(t.append(l),$(window)),u=l.find(".ui-media-player-video"),a=l.find(".ui-media-player-panel"),r=l.find(".ui-media-player-progress"),o=(l.find(".ui-media-player-progress-line"),l.find(".ui-media-player-progress-value")),s=l.find(".ui-media-player-time-bar"),c=l.find(".ui-media-player-volume-value"),f=l.find(".ui-media-player-right-panel"),q=l.find(".ui-media-player-spectrum"),V=l.find(".ui-media-player-radio-panel-title"),d=!1,p="#c0c0c0",_=null,v=null,g=!1,m=!1,b="#4fcb1d",w=null,y=!1,M="#4fcb1d",S=50,A=initSmallVisualizationBox(l.find(".ui-media-player-visualization-panel canvas"),h,{visType:0,color:p}),x=!1,R=0;function E(e){var t,n,i,a,r=!1,o={},s={};if((e=ui.toObject(e)).hasOwnProperty("lineColor")&&(p=ui.trim(e.lineColor),l.find(".ui-media-player-progress-value").css("background-color",p),l.find(".ui-media-player-volume-value").css("background-color",p),s.color=p),e.hasOwnProperty("visType")&&(s.visType=e.visType),e.hasOwnProperty("mode"))switch(e.mode){case"pro":case"extended":e.extendedMode=!0;break;case"full":e.extendedMode=!1,e.hideTimeBar=!1,e.hideVisualization=!1,e.hideVolumeBar=!1;break;case"normal":e.extendedMode=!1,e.hideTimeBar=!1,e.hideVisualization=!0,e.hideVolumeBar=!1;break;case"minimal":e.extendedMode=!1,e.hideTimeBar=!0,e.hideVisualization=!0,e.hideVolumeBar=!0}e.hasOwnProperty("extendedMode")&&(m=!!ui.toBoolean(e.extendedMode)&&(e.hideTimeBar=!1,e.hideVisualization=!1,!(e.hideVolumeBar=!1))),e.hasOwnProperty("hideTimeBar")&&(l.toggleClass("ui-media-player-without-time-bar",ui.toBoolean(e.hideTimeBar)),r=!0),e.hasOwnProperty("hideVisualization")&&(d=ui.toBoolean(e.hideVisualization),l.toggleClass("ui-media-player-without-visualization",d),(d?B:h.paused()?P:k)(),r=!0),e.hasOwnProperty("hideVolumeBar")&&(l.toggleClass("ui-media-player-without-volume-panel",ui.toBoolean(e.hideVolumeBar)),r=!0),e.hasOwnProperty("hidePlayButton")&&(l.toggleClass("ui-media-player-without-play-button",ui.toBoolean(e.hidePlayButton)),r=!0),e.hasOwnProperty("equalizerColor")&&(b=e.equalizerColor),e.hasOwnProperty("onPause")&&(_=e.onPause),e.hasOwnProperty("onPlay")&&(v=e.onPlay),e.hasOwnProperty("showVideo")&&(t=e.showVideo,ui.toBoolean(t)?h.setVideoOwner(u):h.setVideoOwner(null)),e.hasOwnProperty("style")&&(function e(t){t=ui.toString(t);ui.removeClassByPattern(l,"ui-media-player-style-*");switch(t){case"generic":case"translucent":l.addClass("ui-media-player-style-"+t);break;default:e("generic")}}(e.style),r=!0),e.hasOwnProperty("reverseTime")&&(g=ui.toBoolean(e.reverseTime),C(),r=!0),e.hasOwnProperty("width")&&(t=ui.toInt(e.width),l.css("width",t?t+"px":"")),e.hasOwnProperty("spectrumEnabled")&&(!(y=ui.toBoolean(e.spectrumEnabled))&&w&&(w.destroy(),w=null),y)&&!w&&(w=ui(q).Spectrum({player:h}),o={color:M,height:S}),e.hasOwnProperty("spectrumColor")&&(o={color:M=e.spectrumColor}),e.hasOwnProperty("spectrumHeight")&&(o={height:S=ui.toInt(e.spectrumHeight)}),e.hasOwnProperty("position")&&(n=e.position,2!=(n=ui.trim(n).replace(/\s\s/g," ").split(" ")).length?(l.removeClass("ui-media-player-fixed"),x=!1,l.css({left:"",top:"",right:"",bottom:"","max-width":""})):(l.addClass("ui-media-player-fixed"),x=!0,i=ui.toInt(n[0]),n=ui.toInt(n[1]),R=Math.abs(2*i),a={left:"",top:"",right:"",bottom:""},0<=i?a.left=i+"px":a.right=Math.abs(i)+"px",0<=n?a.top=n+"px":a.bottom=Math.abs(n)+"px",l.css(a),T())),e.hasOwnProperty("cookieName")&&h.dsp.setCookieName(e.cookieName),ui.isEmptyObject(s)||A.update(s),!ui.isEmptyObject(o)&&w&&w.update(o),r&&T()}function k(){A.start()}function P(){A.redraw()}function B(){A.stop()}function T(){l.removeClass("ui-m1"),l.removeClass("ui-m2"),l.removeClass("ui-m3"),a.css("padding-right",f.width()+"px"),r.outerWidth()<120&&(l.addClass("ui-m1"),a.css("padding-right",f.width()+"px")),r.outerWidth()<120&&(l.addClass("ui-m2"),a.css("padding-right",f.width()+"px")),r.outerWidth()<120&&(l.addClass("ui-m3"),a.css("padding-right",f.width()+"px")),x&&l.css("max-width",i.innerWidth()-R+"px")}function C(){var e=h.position(),t=h.duration();0<t?g?s.text("-"+ui.formatTime(t-e)+" / "+ui.formatTime(t)):s.text(ui.formatTime(e)+" / "+ui.formatTime(t)):s.text(ui.formatTime(e))}function I(){ui.fullScreenMode.entered()?ui.fullScreenMode.exit():(l.addClass("ui-media-player-full-screen"),ui.fullScreenMode.enter(l,function(){l.removeClass("ui-media-player-full-screen")}))}function O(e){var e=$(e);0!=e.length&&(e=e.data("UIMediaPlayerProgressHint"))&&e.close()}function D(e,t,n){var i=n.offset(),a=i.left,i=i.top;return a<=e&&i<=t&&e<a+n.outerWidth()&&t<i+n.outerHeight()}E(e),T(),ui.addResizeHandler(l,T),h.bindEvent(l,"onOpen",function(){l.toggleClass("ui-media-player-with-radio-panel",h.isStream()||h.isRadio()),l.toggleClass("ui-media-player-with-radio-buttons",h.isRadio()&&1<h.radioStations().length)}),h.bindEvent(l,"onLoad",function(){l.toggleClass("ui-media-player-enable-duration",0<h.duration()),l.toggleClass("ui-media-player-with-video",h.hasVideo())}),h.bindEvent(l,"onTitleChange",function(){V.text(ui.trim(h.title()))}),h.bindEvent(l,"onProgress",function(){var e=h.duration(),e=0<e?100*h.position()/e:0;o.css("width",e+"%"),C(),T()}),h.bindEvent(l,"onPause",function(){l.removeClass("ui-media-player-playing"),B(),ui.isFunction(_)&&_()}),h.bindEvent(l,"onPlay",function(){l.addClass("ui-media-player-playing"),k(),ui.isFunction(v)&&v()}),h.bindEvent(l,"onVolumeChange",function(){var e=ui.ensureRange(h.volume(),0,1);c.css("width",100*e+"%"),l.toggleClass("ui-media-player-muted",h.muted())}),h.bindEvent(l,"onWavePrintDataLoad",function(){h.paused()||k()}),h.bindEvent(l,"onComplete",function(){B()}),l.on("click",".ui-media-player-play-button",function(){h.play()}),l.on("click",".ui-media-player-pause-button",function(){h.pause()}),l.on("mousedown touchstart",".ui-media-player-progress-line",function(e){var d;0!=h.duration()&&(d=$(this),ui.dragAndDrop({event:e,owner:d,cursor:"pointer",processDragging:function(e){var i,a,t,r,o,s,l,n=e.pageX-d.offset().left,n=ui.ensureRange(n,0,d.outerWidth()),u=h.duration()*n/d.outerWidth();function c(e){(e=ui.toObject(e)).hasOwnProperty("position")&&(o=ui.toInt(e.position)),e.hasOwnProperty("text")&&t.text(ui.toString(e.text)),f()}function f(){var e=i.outerWidth(),t=i.outerHeight(),e=l.offset().left+o-e/2,t=l.offset().top-t-s,n=!1;t<a.scrollTop()&&(n=!0,t=l.offset().top+l.outerHeight()+s),n?i.addClass("ui-media-player-progress-hint-to-bottom"):i.addClass("ui-media-player-progress-hint-to-top"),e-=a.scrollLeft(),t-=a.scrollTop(),i.css({left:e+"px",top:t+"px"}),r.css("margin-left",-r.width()/2+"px")}D(e.pageX,e.pageY,d)?(e=d,u={text:ui.formatTime(u),position:n},l=$(e),(e=l.data("UIMediaPlayerProgressHint"))?e.update(u):(i=$('<div class="ui-media-player-progress-hint ui-stuff">\t<div class="ui-media-player-progress-hint-frame">\t\t<div class="ui-media-player-progress-hint-helper">\t\t\t<div class="ui-media-player-progress-hint-helper-bg"></div>\t\t\t<div class="ui-media-player-progress-hint-helper-fg"></div>\t\t</div>\t</div>\t<div class="ui-media-player-progress-hint-text"></div></div>'),(document.fullscreenElement?$(document.fullscreenElement):$(document.body)).append(i),a=$(window),t=i.find(".ui-media-player-progress-hint-text"),r=i.find(".ui-media-player-progress-hint-helper"),o=0,s=ui.toInt(r.css("height")),c(u),i.fadeIn(200),f(),l.data("UIMediaPlayerProgressHint",{update:c,close:function(){l.removeData("UIMediaPlayerProgressHint"),i.fadeOut(200,function(){i.remove()})}}))):O(d)},stopDragging:function(e){O(d),D(e.pageX,e.pageY,d)&&h.seek(e.pageX-d.offset().left,d.outerWidth())}}))}),l.on("click",".ui-media-player-radio-panel-prev-button",function(){h.prevRadioStation()}),l.on("click",".ui-media-player-radio-panel-next-button",function(){h.nextRadioStation()}),l.on("click",".ui-media-player-volume-icon",function(){h.setMuted(!0)}),l.on("click",".ui-media-player-no-volume-icon",function(){h.setMuted(!1)}),l.on("mousedown touchstart",".ui-media-player-volume-line",function(e){h.setMuted(!1);var t=$(this);function n(e){e=(e.pageX-t.offset().left)/t.outerWidth();h.setVolume(e)}ui.dragAndDrop({event:e,owner:t,cursor:"pointer",startDragging:n,processDragging:n})}),l.on("click",".ui-media-player-time-bar",function(){g=!g,C(),T()}),l.on("click",".ui-media-player-visualization-box",function(){var e;m?(e=$('<div class="ui-media-player-equalizer-dropdown ui-stuff" data-ui-dropdown="tooltip-generic box-generic arrow-off to-bottom-center width-612 margin-4 anim-in-slide anim-out-slide"></div>'),ui.openDropdown(a,e,function(e,t){ui(e).Equalizer({player:h,color:b,visType:A.visType(),cookieName:h.dsp.getCookieName(),onSelectVis:function(e){A.update({visType:e.visType}),P()}}),t.onClose=function(){ui(e).destroy()}},{uiExclude:[".ui-media-player-visualization-box"]})):(A.update({visType:A.visType()+1}),P())}),l.on("click",".ui-media-player-full-screen-button",function(){ui.closeAllPopups(),I()}),l.on("dblclick",".ui-media-player-video",function(){ui.closeAllPopups(),I()}),l.on("dblclick",".ui-media-player-panel-container",function(e){e.target==this&&(ui.closeAllPopups(),I())});n={update:E,destroy:function(){w&&w.destroy(),ui.removeResizeHandler(l),h.unbindEvents(l),l.off(),l.remove(),t.removeData("UIMediaPlayer"),delete t[0].uiInterface}};return t.data("UIMediaPlayer",n),t[0].uiInterface=n},ui.fn.WaveSurfer=ui.fn.UIWaveSurfer=function(e){var t=$(this),n=t.data("UIWaveSurfer");if(n)return e&&n.update(e),n;sendUsages();var l,r,q,V,a,S=e.player,F=!0,c=55,o="#4fcb1d",A="#8b8b8b",H=2,z=28,s=!0,f=!1,d=0,h=0,i=0,u=!0,p=!1,_=!1,v=null,g=!1,m=null,b=null,w=$('<div class="ui-wavesurfer ui-stuff ui-non-selectable">\t<div class="ui-wavesurfer-top-panel">\t\t<div class="ui-wavesurfer-top-panel-selected-range-box">\t\t\t<div class="ui-wavesurfer-selection-values"></div>\t\t\t<div class="ui-wavesurfer-top-panel-selected-range-box-label">0:00 - 0:01 (0:01)</div>\t\t\t<div class="ui-wavesurfer-top-panel-selected-range-box-clear-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t</div>\t\t</div>\t\t<div class="ui-wavesurfer-top-panel-current-time">0:00</div>\t</div>\t<div class="ui-wavesurfer-scroll-box">\t\t<div class="ui-wavesurfer-content">\t\t\t<div class="ui-wavesurfer-section-new">\t\t\t\t<div class="ui-wavesurfer-selection"></div>\t\t\t\t<div class="ui-wavesurfer-wave-frame">\t\t\t\t\t<div class="ui-wavesurfer-wave-frame-queued"><canvas></canvas></div>\t\t\t\t\t<div class="ui-wavesurfer-wave-frame-passed"><canvas></canvas></div>\t\t\t\t</div>\t\t\t\t<div class="ui-wavesurfer-progress-line"></div>\t\t\t</div>'+(p?'\t\t\t<div class="ui-wavesurfer-section-old">\t\t\t\t<div class="ui-wavesurfer-wave-queued-old"><canvas></canvas></div>\t\t\t\t<div class="ui-wavesurfer-wave-passed-old"><canvas></canvas></div>\t\t\t</div>':"")+'\t\t</div>\t</div>\t<div class="ui-wavesurfer-error-placeholder"></div>\t<div class="ui-wavesurfer-navigation-panel ui-non-selectable">\t\t<div class="ui-wavesurfer-left-panel">\t\t\t<div class="ui-wavesurfer-play-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t</div>\t\t\t<div class="ui-wavesurfer-pause-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t\t\t</div>\t\t\t<div class="ui-wavesurfer-zoom-in-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>\t\t\t</div>\t\t\t<div class="ui-wavesurfer-zoom-out-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"/></svg>\t\t\t</div>\t\t\t<div class="ui-wavesurfer-download-selection-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>\t\t\t</div>\t\t</div>\t\t<div class="ui-wavesurfer-scroll-panel">\t\t\t<div class="ui-wavesurfer-scroll-left-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>\t\t\t</div>\t\t\t<div class="ui-wavesurfer-scroll-rail-area">\t\t\t\t<div class="ui-wavesurfer-scroll-rail-container">\t\t\t\t\t<div class="ui-wavesurfer-scroll-rail-selection"></div>\t\t\t\t\t<div class="ui-wavesurfer-scroll-rail-current-position"></div>\t\t\t\t\t<div class="ui-wavesurfer-scroll-rail-image"></div>\t\t\t\t\t<div class="ui-wavesurfer-scroll-rail"></div>\t\t\t\t\t<div class="ui-wavesurfer-scroll-bar">\t\t\t\t\t\t<div class="ui-wavesurfer-scroll-bar-image">\t\t\t\t\t\t\t<div class="ui-wavesurfer-scroll-bar-image-line-1"></div>\t\t\t\t\t\t\t<div class="ui-wavesurfer-scroll-bar-image-line-2"></div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div>\t\t\t<div class="ui-wavesurfer-scroll-right-button ui-wavesurfer-navigation-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>\t\t\t</div>\t\t</div>\t\t<div class="ui-wavesurfer-about">Alex Player v'+engineVersion+'<a href="http://alex.player.x10.name/" target="_blank"></a></div>\t</div></div>'),y=(t.append(w),w.find(".ui-wavesurfer-progress-line")),x=w.find(".ui-wavesurfer-scroll-box"),M=w.find(".ui-wavesurfer-content"),L=w.find(".ui-wavesurfer-navigation-panel"),N=w.find(".ui-wavesurfer-left-panel"),R=w.find(".ui-wavesurfer-scroll-rail"),E=w.find(".ui-wavesurfer-scroll-bar"),W=w.find(".ui-wavesurfer-zoom-in-button"),X=w.find(".ui-wavesurfer-zoom-out-button"),Q=w.find(".ui-wavesurfer-scroll-left-button"),U=w.find(".ui-wavesurfer-scroll-right-button"),Y=w.find(".ui-wavesurfer-scroll-rail-current-position"),k=w.find(".ui-wavesurfer-scroll-rail-selection"),j=(r=w.find(".ui-wavesurfer-wave-frame"),q=w.find(".ui-wavesurfer-wave-frame-queued canvas")[0],V=w.find(".ui-wavesurfer-wave-frame-passed canvas")[0],a=w.find(".ui-wavesurfer-wave-frame-passed"),{rebuild:G,updatePosition:function(){var e=ui.toInt(r.css("left")),t=r.outerWidth(),n=x[0].clientWidth,i=(((i=x.scrollLeft())<e||e+t<i+n)&&(G(),e=ui.toInt(r.css("left"))),x[0].scrollWidth),i=0<(n=S.duration())?i*S.position()/n:0;0==n?a.css("width",y.css("left")):e<=i&&i<e+t?a.css("width",i-e+"px"):i<e?a.css("width","0"):a.css("width","100%")}});function G(){var e=x[0].clientWidth,t=2*e,n=(r.outerWidth(t),x.scrollLeft()),i=x[0].scrollWidth,n=ui.ensureRange(n-e/2,0,i-t),e=(r.css("left",n+"px"),S.getWavePrint(i,10,0,n,t)),a=null;1<l&&(a=S.getWavePrint(i,10,1,n,t)),m&&0==e.length&&(e=ve(i,1,0,n,t),1<l)&&(a=ve(i,1,1,n,t)),O(q,t,e,a,A,n,s&&0<S.duration()),O(V,t,e,a,o,n,!1)}var Z,K,J,ee=p?(Z=w.find(".ui-wavesurfer-wave-passed-old"),K=w.find(".ui-wavesurfer-wave-passed-old canvas")[0],J=w.find(".ui-wavesurfer-wave-queued-old canvas")[0],{rebuild:function(){var e=M.outerWidth(),t=S.getWavePrint(e,10,0),n=null;1<l&&(n=S.getWavePrint(e,10,1)),O(J,e,t,n,A,0,s),O(K,e,t,n,o,0,!1)},updatePosition:function(){var e=0<(e=S.duration())?100*S.position()/e:0;Z.css("width",e+"%")}}):null,P=w.find(".ui-wavesurfer-selection"),B=w.find(".ui-wavesurfer-top-panel-current-time"),T=w.find(".ui-wavesurfer-top-panel-selected-range-box"),te=w.find(".ui-wavesurfer-top-panel-selected-range-box-label"),ne=w.find(".ui-wavesurfer-selection-values"),ie=0;function ae(){var e=S.duration(),e=0<e?x[0].scrollWidth*S.position()/e:0,t=x.scrollLeft(),n=x[0].clientWidth;return t<=e&&e<t+n}function re(e){var t,n=!1,i=!1;(e=ui.toObject(e)).hasOwnProperty("channels")&&(F=1<ui.toInt(e.channels),n=!0),e.hasOwnProperty("channelHeight")&&(c=ui.toInt(e.channelHeight),n=!0),e.hasOwnProperty("mainColor")&&(o=ui.trim(e.mainColor),n=!0),e.hasOwnProperty("secondaryColor")&&(A=ui.trim(e.secondaryColor),w.find(".ui-wavesurfer-top-panel-current-time").css("color",A),w.find(".ui-wavesurfer-top-panel-selected-range-box-label").css("color",A),w.find(".ui-wavesurfer-top-panel-selected-range-box-clear-button svg").css("fill",A),w.find(".ui-wavesurfer-scroll-bar-image-line-1").css("background-color",A),w.find(".ui-wavesurfer-scroll-bar-image-line-2").css("background-color",A),w.find(".ui-wavesurfer-scroll-bar-image").css("border-color",A),Y.css("background-color",A),w.findAll(".ui-wavesurfer-navigation-panel svg").each(function(){$(this).css("fill",A)}),n=!0),e.hasOwnProperty("splitterSize")&&(H=ui.toInt(e.splitterSize),n=!0),e.hasOwnProperty("showRuler")&&(s=ui.toBoolean(e.showRuler),n=!0),e.hasOwnProperty("showNavigation")&&w.toggleClass("ui-wavesurfer-without-navigation",!ui.toBoolean(e.showNavigation)),e.hasOwnProperty("selectionEnabled")&&(f=ui.toBoolean(e.selectionEnabled),w.toggleClass("ui-wavesurfer-with-selection",f),n=!0),e.hasOwnProperty("selectionStartTime")&&(d=oe(e.selectionStartTime),n=!0),e.hasOwnProperty("selectionEndTime")&&(h=oe(e.selectionEndTime),n=!0),e.hasOwnProperty("onSelectionChange")&&(v=e.onSelectionChange),e.hasOwnProperty("selectionDownloadEnabled")&&(w.toggleClass("ui-wavesurfer-with-selection-download",ui.toBoolean(e.selectionDownloadEnabled)),i=!0),e.hasOwnProperty("selectionColor")&&(ui.Color(e.selectionColor),(t=ui.Color(e.selectionColor)).a=128,t={"background-color":e.selectionColor,"border-color":t.getColorString()},P.css(t),k.css(t)),e.hasOwnProperty("hidePlayButton")&&w.toggleClass("ui-wavesurfer-without-play-button",ui.toBoolean(e.hidePlayButton)),e.hasOwnProperty("cachedWave")&&(g=ui.toBoolean(e.cachedWave),S.requireWavePrint(!g)),i&&se(),n&&C()}function oe(e){if(ui.isString(e)&&-1<e.indexOf(":")){var t=e.split(":");if(2==t.length)return 60*ui.toInt(t[0])+ui.toFloat(t[1]);if(3==t.length)return 3600*ui.toInt(t[0])*ui.toInt(t[1])*60+ui.toFloat(t[2])}return ui.toFloat(e)}function se(){L.css("padding-left",N.outerWidth()+"px")}function C(){l=F?2:1;var e=x[0].clientWidth,t=e*Math.pow(2,i),n=(M.outerWidth(t),c*l),n=(y.css({width:H+"px",height:n+"px","background-color":o}),s&&(n+=15),P.css({height:n+"px"}),e/t*S.duration());W.toggleClass("ui-disabled",n<30),X.toggleClass("ui-disabled",i<=0),w.toggleClass("ui-wavesurfer-with-scroll-panel",0<i),j.rebuild(),p&&ee.rebuild(),ce(),I()}function I(){var e=x.scrollLeft(),t=x[0].scrollWidth,n=x[0].clientWidth,i=(u&&(e+n<=(i=0<(i=S.duration())?x[0].scrollWidth*S.position()/i:0)||i<e)&&(x.scrollLeft(i),e=x.scrollLeft()),j.updatePosition(),p&&ee.updatePosition(),R.outerWidth()*n/t),a=R.outerWidth()*e/t;E.css({left:a+"px",width:i+"px"}),Q.toggleClass("ui-disabled",e<=0),U.toggleClass("ui-disabled",t-n<=e),fe()}function O(e,t,n,i,a,r,o){e.width=t,e.height=c*l+(o?z:0);var e=ui.initGraph(e),s=e.ctx;s.clearRect(0,0,e.width,e.height),1<l?(le(e,n,t,0,a),le(e,i,t,c,a),o&&ue(s,r,t,2*c)):(le(e,n,t,0,a),o&&ue(s,r,t,c))}function le(e,t,n,i,a){var r,o,s=c/2,l=(i+=s,e.webColor2RGB(a));if(0<t.length)for(r=0,o=Math.min(n,t.length);r<o;r++)e.line(r,i+t.loData[r]*s,r,i+t.hiData[r]*s,l);else for(extras.srand(0),r=0,o=n;r<o;r++){var u=Math.sin(r);1&r&&e.putPixel(Math.floor(r),Math.floor(i+u),l)}e.redraw()}function ue(i,a,e,t){var r=S.duration();if(0!=r){i.beginPath(),i.font="10px Arial",i.strokeStyle=A,i.fillStyle=A;for(var n,o,s=t+8,l=s+16,u=(i.fillText("0",-a,l),x[0].scrollWidth),t=M(r),c=i.measureText(t).width,f=(i.fillText(t,u-2-c-a,l),[1,5,10,15,20,30,60]),d=0;n=f[d%f.length],!(2*c<(o=(u-1)*(n*=Math.pow(60,Math.floor(d/f.length)))/r));)d++;var h=0,p=0,_=u-2*c;for(e=e||_;p<_;){if(a<=p&&p<=a+e){y(p,-6,6);for(var v,g,m=1;m<10;m++)m%5==0?y(p+o*m/10,-4,4):y(p+o*m/10,-1,1);0==p?i.fillText("0",0,l):(v=M(h),g=i.measureText(v).width,i.fillText(v,p-g/2-a,l))}h+=n,p+=o}if(a<=p&&p<=a+e)if(p<u-1)for(var b=0,w=o/10;;){if(u-1<=p+w){y(p,-6,6);break}b%5==0?y(p,-4,4):y(p,-1,1),p+=w,b++,h+=n}else y(u-2,-6,6);i.stroke()}function y(e,t,n){e=e+1-a;i.moveTo(e,s+t),i.lineTo(e,s+n)}function M(e){var e=Math.floor(e),t=e%60,n=(e=Math.floor(e/60))%60;return e=Math.floor(e/60),3600<=r?e+":"+ui.format2Digit(n)+":"+ui.format2Digit(t):n+":"+ui.format2Digit(t)}}function ce(){var e=S.duration(),t=M.outerWidth(),n=d/e*t,e=h/e*t-n;P.css({display:d!=h&&f?"block":"none",left:n+"px"}),P.outerWidth(e),te.text(ui.formatTime(d)+" - "+ui.formatTime(h)+" ("+ui.formatTime(h-d)+")"),ne.text(d+"|"+h)}function fe(){var e=S.position(),t=S.duration(),n=x.scrollLeft(),i=w.outerWidth(),a=0,r=0,o=!1,s=(d<h&&f?(T.show(),r=T.outerWidth(),a=(d+(h-d)/2)/t*M.outerWidth()-r/2-n,a=ui.ensureRange(a,0,i-r),o=0<=(s=P.offset().left-w.offset().left)+P.outerWidth()&&s<i,T.css({display:o?"block":"none",left:Math.floor(a)+"px"}),s=R.outerWidth(),k.css({display:"block",left:d/t*s+"px",width:(h-d)/t*s+"px"})):(T.css({display:"",left:""}),k.css({display:"none",left:"",width:""})),B.outerWidth()),e=0<t?e/t*M.outerWidth()-s/2-n:0,t=(e=ui.ensureRange(e,0,i),1);o&&ui.toInt(a<e+s+8)-ui.toInt(e<a+r+3)==0&&(t=-12,0<e)&&i-s-2<=(e+=s/2+4)&&(e-=s+8),e=ui.ensureRange(e,0,i-s-1),B.css({left:Math.floor(e)+"px",bottom:t+"px"})}function de(){b=b||setInterval(he,50)}function he(){fullScreenVisualisationRunned||pe()}function pe(){var e,t=S.duration();0<t?e=100*S.position()/t:(e=ie,100<(ie+=.5)&&(ie=0)),y.css("left",e+"%"),Y.css("left",e+"%"),B.text(S.positionStr()),fe(),I(),!_&&ae()&&(u=!0)}function _e(e){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="arraybuffer",a.onload=function(){function e(e){for(var t=[],n=0;n<e;n++)t.push((i.readNumber(6)-32)/31);return t}var t,n,i;t=a.response,"Media Engine Wavesurfer Cache\n"!=(i=ui.BinaryReader(t)).readString(30)?console.error("Unable to load wavesurfer waveprint"):(t=i.readNumber(32),n=i.readNumber(8),m={length:t,channelsCount:n,loData0:e(t),hiData0:e(t)},1<n&&(m.loData1=e(t),m.hiData1=e(t)),C())},a.send()}function ve(e,t,n,i,a){(!a||e<a)&&(a=e),e<(i=(i=ui.toInt(i))<0?0:i)+a&&(i-=e-a);for(var r=0==(n=ui.ensureRange(n,0,S.numberOfChannels()-1))?m.hiData0:m.hiData1,o=0==n?m.loData0:m.loData1,s=[],l=[],u=0,c=0;c<a;c++){for(var f=0,d=0,h=Math.floor((c+i)*m.length/e),p=0;p<t;p++){var _=Math.floor(u+(h-u)*p/t),v=r[_],v=(d<v&&(d=v),o[_]);v<f&&(f=v)}u=h,s.push(d),l.push(f)}return{length:e,hiData:s,loData:l}}function ge(){return f&&d!=h}function D(){ui.setError(w.find(".ui-wavesurfer-error-placeholder"),"Please select some area inside wavesurfer first")}function me(){var e;return!S.isStream()&&!S.isRadio()&&(f&&d!=h?mediaEngineWavEncoder((e=S.getPCMFragment(d,h,!0)).numberOfChannels,e.sampleRate,e.samples0,e.samples1):(D(),null))}function be(){var e;return!S.isStream()&&!S.isRadio()&&(e=window.MediaEngineMp3Encoder,f&&d!=h&&e?new e((e=S.getPCMFragment(d,h,!0)).numberOfChannels,e.sampleRate,128).encodeBuffer(e.samples0,e.samples1):(D(),null))}function we(t){var n;return!(S.isStream()||S.isRadio()||(f&&d!=h?(n=S.paused(),S.pause(),ui.screenLocker.show("loading"),setTimeout(function(){var e=me();e&&ui.download(e,t,"audio/wav"),ui.screenLocker.hide(),n||S.play()},400),0):(D(),1)))}function ye(t){var n;return!(S.isStream()||S.isRadio()||(f&&d!=h?(n=S.paused(),S.pause(),ui.screenLocker.show(),setTimeout(function(){var e=be();e&&ui.download(e,t,"audio/mpeg3"),ui.screenLocker.hide(),n||S.play()},400),0):(D(),1)))}w.find(".ui-wavesurfer-about").remove(),w.addClass("ui-wavesurfer-no-about"),S.requireWavePrint(!0),re(e),ui.addResizeHandler(w,C),S.bindEvent(w,"onOpen",function(){S.isRadio()?w.attr("data-ui-source","radio"):S.isStream()?w.attr("data-ui-source","stream"):w.attr("data-ui-source","file"),se(),i=h=d=0,C(),g&&(m=null,ui.isString(g)?_e(g):_e(S.url()+".surf"),g=!1)}),S.bindEvent(w,"onLoad",function(){C()}),S.bindEvent(w,"onWavePrintDataLoad",function(){m?m=null:C()}),S.bindEvent(w,"onPause",function(){w.removeClass("ui-wavesurfer-playing"),pe(),b&&(clearInterval(b),b=null)}),S.bindEvent(w,"onPlay",function(){w.addClass("ui-wavesurfer-playing"),de()}),S.bindEvent(w,"onPlay",function(){w.addClass("ui-wavesurfer-playing"),de()}),S.bindEvent(w,"onSeek",function(){pe()}),w.on("mousedown touchstart",".ui-wavesurfer-content",function(e){var a,r,n,o,s,l,i;function u(e){var t;i?(n=ui.ensureRange((e.pageX-M.offset().left)/M.outerWidth()*a,0,a),h=0<l?(t=M.offset().top,e.pageY>=t&&e.pageY<t+M.outerHeight()?(d=ui.ensureRange(n-r,0,a-l))+l:d=0):(d=Math.min(r,n),Math.max(r,n)),ce(),I(),ui.isFunction(v)&&v({startTime:d,endTime:h})):(8<Math.abs(e.pageX-o)||8<Math.abs(e.pageY-s))&&(i=!0)}f&&0!=(a=S.duration())&&(l=0,i=!1,ui.dragAndDrop({event:e,owner:this,cursor:$(this).css("cursor"),startDragging:function(e){var t=d/a*M.outerWidth(),n=h/a*M.outerWidth(),i=e.pageX-M.offset().left;Math.abs(n-i)<=24?r=d:Math.abs(t-i)<=24?r=h:t<i&&i<n?(r=ui.ensureRange(i/M.outerWidth()*a,0,a)-d,l=h-d):r=ui.ensureRange(i/M.outerWidth()*a,0,a),o=e.pageX,s=e.pageY,u(e)},processDragging:u,stopDragging:function(){i||S.seek(o-M.offset().left,M.outerWidth())}}))}),w.on("mousemove",".ui-wavesurfer-content",function(e){var t,n;f&&d!=h&&(n=M.offset().left,e=e.pageX-n,t=(n=P.offset().left-n)+P.outerWidth(),n=Math.abs(n-e)<=24||Math.abs(t-e)<=24,M.css("cursor",n?"ew-resize":"default"))}),w.on("mousedown",".ui-wavesurfer-content",function(e){1!=e.which||f||0==S.duration()||S.seek(e.pageX-M.offset().left,M.outerWidth())}),w.on("click",".ui-wavesurfer-play-button",function(){S.play()}),w.on("click",".ui-wavesurfer-pause-button",function(){S.pause()}),w.on("click",".ui-wavesurfer-zoom-in-button",function(){$(this).hasClass("ui-disabled")||(i+=1,C())}),w.on("click",".ui-wavesurfer-zoom-out-button",function(){$(this).hasClass("ui-disabled")||(--i,C())}),w.on("click",".ui-wavesurfer-download-selection-button",function(){var e,t;ge()?(e=$(this),t=$('<div class="ui-wavesurfer-download-selection-dropdown ui-stuff" data-ui-dropdown="tooltip-generic box-generic arrow-on to-bottom-center width-full max-height-300 margin-2 anim-in-slide anim-out-slide">\t<div class="ui-wavesurfer-download-selection-dropdown-title">Download selection as:</div>\t<div class="ui-wavesurfer-download-selection-dropdown-list ui-non-selectable">\t\t<div class="ui-wavesurfer-download-selection-dropdown-list-item" data-tag="wav">WAV</div>\t\t<div class="ui-wavesurfer-download-selection-dropdown-list-item" data-tag="mp3">MP3</div>\t</div></div>'),ui.openDropdown(e,t,function(e){e.on("click",".ui-wavesurfer-download-selection-dropdown-list-item",function(){"wav"==$(this).attr("data-tag")?we("fragment.wav"):ye("fragment.mp3"),ui.closeDropdown(e)})})):D()}),w.on("click",".ui-wavesurfer-scroll-left-button",function(){x.scrollLeft(x.scrollLeft()-w.width()),I()}),w.on("click",".ui-wavesurfer-scroll-right-button",function(){x.scrollLeft(x.scrollLeft()+w.width()),I()}),w.on("mousedown touchstart",".ui-wavesurfer-scroll-rail, .ui-wavesurfer-scroll-bar",function(e){var t,n,i=$(e.target);ui.dragAndDrop({event:e,owner:this,cursor:"pointer",startDragging:function(e){u=!(_=!0),i.hasClass("ui-wavesurfer-scroll-rail")&&(x.scrollLeft((e.pageX-E.outerWidth()/2-R.offset().left)/(R.outerWidth()-E.outerWidth())*(x[0].scrollWidth-x[0].clientWidth)),I()),t=x.scrollLeft(),n=e.pageX},processDragging:function(e){x.scrollLeft(t+(e.pageX-n)/(R.outerWidth()-E.outerWidth())*(x[0].scrollWidth-x[0].clientWidth)),I()},stopDragging:function(){_=!1,u=ae()}})}),w.on("click",".ui-wavesurfer-top-panel-selected-range-box-clear-button",function(){h=d=0,ce(),I()});n={update:re,hasSelection:ge,obtainSelectedAreaAsMP3:be,obtainSelectedAreaAsWAV:me,downloadSelectedAreaAsMP3:ye,downloadSelectedAreaAsWAV:we,destroy:function(){S.unbindEvents(w),ui.removeResizeHandler(w),w.off(),w.remove(),t.removeData("UIWaveSurfer"),delete t[0].uiInterface}};return w.data("UIWaveSurfer",n),t.data("UIWaveSurfer",n),t[0].uiInterface=n},ui.generateWaveSurferCacheForAudioFile=function(){ui.showFileDialog({accept:["audio/mp3","video/mp4"]},function(t){ui.screenLocker.show();var o=engine();o.requireWavePrint(!0),o.setAutoplay(!1),o.bindEvent(o,"onWavePrintDataLoad",function(){var e;ui.screenLocker.hide(),(e=(()=>{var n,e=Math.floor(2560*o.duration()/30),t=o.numberOfChannels(),i=o.getWavePrint(e,10,0),a=i.length;return 0==a?null:((n=ui.BinaryWriter()).writeString("Media Engine Wavesurfer Cache\n"),n.writeNumber(a,32),n.writeNumber(t,8),r(i.loData),r(i.hiData),1<t&&(r((i=o.getWavePrint(e,10,1)).loData),r(i.hiData)),n.getData());function r(e){for(var t=0;t<a;t++)n.writeNumber(31*e[t]+32,6)}})())&&ui.download(e,t.name+".surf","application/octet-stream"),setTimeout(function(){o.destroy()},100)}),o.renderFileVariable(t)})},ui.obtainWaveSurferSelectedAreaAsWAV=function(){var e=$(".ui-wavesurfer").data("UIWaveSurfer");return!!e&&e.obtainSelectedAreaAsWAV()},ui.obtainWaveSurferSelectedAreaAsMP3=function(){var e=$(".ui-wavesurfer").data("UIWaveSurfer");return e?e.obtainSelectedAreaAsMP3():null},ui.downloadWaveSurferSelectedAreaAsWAV=function(e){var t=$(".ui-wavesurfer").data("UIWaveSurfer");return!!t&&t.downloadSelectedAreaAsWAV(e)},ui.downloadWaveSurferSelectedAreaAsMP3=function(e){var t=$(".ui-wavesurfer").data("UIWaveSurfer");return!!t&&t.downloadSelectedAreaAsMP3(e)},ui.fn.Waveform=ui.fn.UIWaveform=function(e){var t=$(this),n=t.data("UIWaveform");if(n)return n.update(e),n;sendUsages();var i=$('<div class="ui-waveform ui-stuff">\t<div class="ui-waveform-box">\t\t<canvas class="ui-waveform-canvas" width="0" height="64"></canvas>\t</div></div>'),a=(t.prepend(i),e.player),r=(a?(a.enableDSP(!0),a.requireWavePrint(!0),a.bindEvent(i,"onPlay",function(){p()}),a.bindEvent(i,"onPause",function(){c||_()})):(engine.bindEvent(i,"onGlobalPlay",function(){p()}),engine.bindEvent(i,"onGlobalPause",function(){c||_()})),i.find(".ui-waveform-box")),o=i.find(".ui-waveform-canvas")[0],s=o.getContext("2d"),l=null,u="#000000",c=!1,f=!1,d=0,h=!0;function p(){l||(i.addClass("ui-waveform-playing"),v(),l=setInterval(v,20))}function _(){l&&(i.removeClass("ui-waveform-playing"),clearInterval(l),l=null)}function v(){if(!fullScreenVisualisationRunned&&ui.isVisible(o)){o.width=o.parentNode.offsetWidth;var e=engine.getVisualData(a,o.width,0,!1),t=Math.floor(o.height/2);s.clearRect(0,0,o.width,o.height),s.beginPath();for(var n=0;n<o.width;n++){var i=t+e[n]*t;0==n?s.moveTo(n,i):s.lineTo(n,i)}s.strokeStyle=u,s.stroke()}}function g(e){var t,n=!1;(e=ui.toObject(e)).hasOwnProperty("color")&&(u=ui.trim(e.color)),e.hasOwnProperty("opacity")&&i.css("opacity",ui.toFloat(e.opacity)),e.hasOwnProperty("height")&&(o.height=ui.toInt(e.height)),e.hasOwnProperty("ghostMode")&&(f=ui.toBoolean(e.ghostMode),n=!0),e.hasOwnProperty("ghostTop")&&(d=ui.toInt(e.ghostTop),n=!0),e.hasOwnProperty("forceDraw")&&(c=ui.toBoolean(e.forceDraw),i.toggleClass("ui-waveform-force-draw",c)),e.hasOwnProperty("visible")&&(t=ui.toBoolean(e.visible),h!=t)&&(h=ui.toBoolean(e.visible),i.toggleClass("ui-waveform-invisible",!h),h&&!a.paused()?p():c||_()),n&&(i.toggleClass("ui-waveform-ghost-mode",f),r.css("padding-top",f?d+"px":""))}g(e),c&&p();n={update:g,destroy:function(){(a||engine).unbindEvents(i),_(),i.remove(),t.removeData("UIWaveform"),delete t[0].uiInterface}};return t.data("UIWaveform",n),t[0].uiInterface=n},ui.fn.CircularSpectrum=ui.fn.UICircularSpectrum=function(e){var t=$(this);if(0==t.length)return console.error("Circular spectrum component has invalid owner",this),{};var n=t.data("UICircularSpectrum");if(n)return n.update(e),n;sendUsages();var i=null,u=e.player||t.data("_uiMediaEnginePlayerInterface"),a=$('<div class="ui-circular-spectrum">\t<canvas class="ui-circular-spectrum-canvas"></canvas></div>'),n=(t.append(a),t.css("position"));"absolute"!=n&&"fixed"!=n&&t.addClass("ui-circular-spectrum-relative-owner");var r=a.find(".ui-circular-spectrum-canvas")[0],c=r.getContext("2d"),f=150,d=110,h=64,p=.7,_=1,o="#9f9f9f",v=6,g=!1,m=.15,s="#e2e2e2",b=[],w=[];function l(){i||(R(),i=setInterval(x,20))}function y(){i&&(E(),clearInterval(i),i=null)}function M(e){var t=!1;(e=ui.toObject(e)).hasOwnProperty("outerSize")&&(f=ui.toInt(e.outerSize),t=!0),e.hasOwnProperty("innerSize")&&(d=ui.toInt(e.innerSize),t=!0),e.hasOwnProperty("barCount")&&(h=ui.toInt(e.barCount),t=!0),e.hasOwnProperty("barSize")&&(p=ui.toFloat(e.barSize),t=!0),e.hasOwnProperty("barSpeed")&&(_=ui.toFloat(e.barSpeed),t=!0),e.hasOwnProperty("barColor")&&(o=ui.toString(e.barColor),t=!0),e.hasOwnProperty("multiplier")&&(v=ui.toFloat(e.multiplier),t=!0),e.hasOwnProperty("showPeaks")&&(g=ui.toBoolean(e.showPeaks),t=!0),e.hasOwnProperty("peakSpeed")&&(m=ui.toFloat(e.peakSpeed),t=!0),e.hasOwnProperty("peakColor")&&(s=ui.toString(e.peakColor),t=!0),e.hasOwnProperty("opacity")&&a.css("opacity",ui.toFloat(e.opacity)),t&&(a.css({"margin-left":-f/2+"px","margin-top":-f/2+"px",width:f+"px",height:f+"px"}),r.width=f,r.height=f,i)&&x()}function S(e,t){if(t>=e.length)for(var n=t-e.length,i=0;i<n;i++)e.push(0);else e.length=t}function A(e,t,n){for(var i=0;i<e.length;i++)e[i]-=n,t[i]>e[i]&&(e[i]=t[i]),e[i]<0&&(e[i]=0)}function x(){!fullScreenVisualisationRunned&&ui.isVisible(a)&&R()}function R(){var e,t=f/2,n=d/2,i=(f-d)/2*v,a=engine.getSpectrumData(u,h,0,!1);b.length!=a.length&&(e=a.length,S(b,e),S(w,e)),A(b,a,_),A(w,a,m),E();for(var r=0;r<h;r++){var o=r/h*2*Math.PI-Math.PI,s=o-Math.PI/h*p,o=o+Math.PI/h*p,l=n+Math.sqrt(b[r]*i);c.beginPath(),c.moveTo(t+n*Math.cos(s),t+n*Math.sin(s)),c.lineTo(t+l*Math.cos(s),t+l*Math.sin(s)),c.lineTo(t+l*Math.cos(o),t+l*Math.sin(o)),c.lineTo(t+n*Math.cos(o),t+n*Math.sin(o)),c.closePath(),c.fill(),g&&(l=n+Math.sqrt(w[r]*i),c.beginPath(),c.moveTo(t+l*Math.cos(s),t+l*Math.sin(s)),c.lineTo(t+l*Math.cos(o),t+l*Math.sin(o)),c.stroke())}}function E(){c.clearRect(0,0,r.width,r.height),c.strokeStyle=s,c.fillStyle=o}u?(u.enableDSP(!0),u.requireWavePrint(!0),u.bindEvent(a,"onPause",function(){y()}),u.bindEvent(a,"onPlay",function(){l()})):(engine.enableDSP(!0),engine.requireWavePrint(!0),engine.bindEvent(a,"onGlobalPause",function(){y()}),engine.bindEvent(a,"onGlobalPlay",function(){l()})),M(e);n={update:M,destroy:function(){(u||engine).unbindEvents(a),y(),a.remove(),t.removeClass("ui-circular-spectrum-relative-owner"),t.removeData("UICircularSpectrum"),delete t[0].uiInterface}};return t.data("UICircularSpectrum",n),t[0].uiInterface=n},ui.fn.PlayButton=ui.fn.UIPlayButton=function(e){var t=$(this),n=t.data("UIPlayButton");if(n)return n.update(e),n;sendUsages();var i=$('<div class="ui-play-button ui-stuff ui-non-selectable">\t<div class="ui-play-button-icon-area">\t\t<div class="ui-play-button-play-icon">\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.1,5.9v12.2c0,0.9,1,1.5,1.8,1l9.6-6.1c0.7-0.5,0.7-1.5,0-2L8.9,4.9C8.1,4.4,7.1,5,7.1,5.9z"/></svg>\t\t</div>\t\t<div class="ui-play-button-pause-icon">\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7,19h2c0.6,0,1-0.4,1-1V6c0-0.6-0.4-1-1-1H7C6.4,5,6,5.4,6,6v12C6,18.6,6.4,19,7,19z M14,6v12c0,0.6,0.4,1,1,1h2c0.6,0,1-0.4,1-1V6c0-0.6-0.4-1-1-1h-2C14.4,5,14,5.4,14,6z"/></svg>\t\t</div>\t</div></div>'),a=(t.append(i),i.find(".ui-play-button-icon-area")),r=i.find(".ui-play-button-play-icon svg"),o=i.find(".ui-play-button-pause-icon svg"),s=24,l=24,u="#00000",c=u,f=e.player;function d(e){var t=!1;(e=ui.toObject(e)).hasOwnProperty("size")&&(s=ui.toInt(e.size),t=!0),e.hasOwnProperty("outerSize")&&(l=ui.toInt(e.outerSize),t=!0),e.hasOwnProperty("color")&&(u=ui.trim(e.color),c=u,a.css("color",u),r.attr("fill",u),o.attr("fill",u)),e.hasOwnProperty("hoverColor")&&(c=ui.trim(e.hoverColor)),e.hasOwnProperty("hoverDuration")&&a.css("transition","color "+ui.toInt(e.hoverDuration)+"ms linear"),e.hasOwnProperty("id")&&i.attr("id",ui.trim(e.id)),t&&((e=(l-s)/2)<0&&(e=0),i.css({width:l+"px",height:l+"px"}),a.css({left:e+"px",top:e+"px"}),r.attr("width",s),r.attr("height",s),o.attr("width",s),o.attr("height",s))}d(e),f.bindEvent(i,"onPause",function(){i.removeClass("ui-play-button-playing")}),f.bindEvent(i,"onPlay",function(){i.addClass("ui-play-button-playing")}),i.on("click",function(){f.paused()?f.play():f.pause()}),i.on("mouseenter",function(){c!=u&&a.css("color",c)}),i.on("mouseleave",function(){c!=u&&a.css("color",u)});n={update:d,destroy:function(){f.unbindEvents(i),i.remove(),t.removeData("UIPlayButton"),delete t[0].uiInterface}};return t.data("UIPlayButton",n),t[0].uiInterface=n,i.data("_uiMediaEnginePlayerInterface",f),n},lm={},(p=>{function _(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e.charCodeAt(n)-5);return t}var e,t,n,i,a;e=_("RJINFdJSLNSJdITRFNS"),t=_("RJINFdJSLNSJdPJ^"),n=location.hostname,i=_("fqj}2uqf~jw"),a=_("fqj}3uqf~jw3}653sfrj"),n==i?(window[e]=i,window[t]=_("U^ONI2:ZNHJ2MRMYX2INF^L")):n==a&&(window[e]=a,window[t]=_("U^ONQ2NZNHJ2MKLYX2IN[6L")),p.c=function(){var e,t=_("RJINFdJSLNSJdITRFNS"),n=_("RJINFdJSLNSJdPJ^"),i=window[t],a=window[n],r=_("mtxysfrj");location[r];if(i!=location[r])return!!p.lsed;for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZ123456",s=[],l=0;l<5;l++)s.push(extras._rand());for(l=0;l<100;l++){var u=s[0];s[0]=s[1]^u,s[1]=s[2]^extras._rand(),s[2]=s[3],s[3]=s[4]^u,s[4]=location[r].charCodeAt(l%location[r].length)}var c=ui.BinaryWriter();for(l=0;l<5;l++)c.writeNumber(s[l],31);var f=c.getData(),d=[];for(l=0;l<o.length;l++)d[o[l]]=l;for(c=ui.BinaryWriter(),l=0;l<a.length;l++){var h=a[l];d.hasOwnProperty(h)&&c.writeNumber(d[h],5)}for(e=c.getData(),p.lsed=1,l=0;l<12;l++)p.lsed&=!(f[l]^e[l]);return delete window[t],delete window[n],p.lsed}})(lm),-1!=location.href.indexOf(location.hostname)&&((()=>{function b(e,t){var n=$('<div class="ui-equalizer-vu-meter">\t<div class="ui-equalizer-vu-meter-channels">\t\t<div class="ui-equalizer-vu-meter-channel-1">\t\t\t<div class="ui-equalizer-vu-meter-channel-1-box">\t\t\t\t<div class="ui-equalizer-vu-meter-channel-1-value"></div>\t\t\t</div>\t\t</div>\t\t<div class="ui-equalizer-vu-meter-channel-2">\t\t\t<div class="ui-equalizer-vu-meter-channel-2-box">\t\t\t\t<div class="ui-equalizer-vu-meter-channel-2-value"></div>\t\t\t</div>\t\t</div>\t</div>\t<div class="ui-equalizer-vu-meter-title"></div></div>'),i=(e.append(n),n.find(".ui-equalizer-vu-meter-channel-1-value")),a=n.find(".ui-equalizer-vu-meter-channel-2-value"),r=(n.find(".ui-equalizer-vu-meter-title").text(t.title),t.applyDSP),o=t.player;return{drawFrame:function(){var e=engine.getVU(o,0,r),t=engine.getVU(o,1,r);i.css("height",85*(e+40)/40+"%"),a.css("height",85*(t+40)/40+"%")}}}function h(a,r){return{drawFrame:function(){var e=Math.floor(a.height/2),t=engine.getVisualData(r,a.width,0,!0);a.ctx.clearRect(0,0,a.width,a.height),a.ctx.beginPath();for(var n=0;n<a.width;n++){var i=e+t[n]*e;0==n?a.ctx.moveTo(n,i):a.ctx.lineTo(n,i)}a.ctx.strokeStyle="#727272",a.ctx.stroke()}}}function p(l,u){var t=10,n=.5,c=l.RGB(160,160,160),f=l.RGB(114,114,114),d=[],h=[];function e(e,t){if(t>=e.length)for(var n=t-e.length,i=0;i<n;i++)e.push(0);else e.length=t}function p(e,t,n){for(var i=0;i<e.length;i++)e[i]-=n,t[i]>e[i]&&(e[i]=t[i]),e[i]<0&&(e[i]=0)}function _(e){return e*t*(1-n)+Math.sqrt(e*l.height*t)*n}return e(d,99),e(h,99),{drawFrame:function(e){var t=engine.getSpectrumData(u,99,0,!0),n=(p(d,t,.5),p(h,t,.14),Math.floor((e-4)/5)),i=(e-5*n+1)/2;l.clear();for(var a=0;a<n;a++){var r=_(d[a]),o=l.height-1-r,s=i+5*a,o=(l.fillRect(s,o,4,r,c),l.height-1-_(h[a]));l.line(s,o,4+s-1,o,f)}l.redraw()}}}function _(s,l){var u=[],c=8,f=.5,d=s.RGB(120,120,120),e=u,t=500;if(t>=e.length)for(var n=t-e.length,i=0;i<n;i++)e.push(0);else e.length=t;return{drawFrame:function(){for(var e=engine.getSpectrumData(l,500,0,!0),t=u,n=e,i=1,a=0;a<t.length;a++)t[a]-=i,n[a]>t[a]&&(t[a]=n[a]),t[a]<0&&(t[a]=0);s.clear();for(var r=0;r<500;r++){var o=(o=u[r])*c*(1-f)+Math.sqrt(o*s.height*c)*f;s.line(r,s.height-1-o,r,s.height-1,d)}s.redraw()}}}function w(e,t){var n=$('<div class="ui-equalizer-vis">\t<div class="ui-equalizer-vis-frame">\t\t<div class="ui-equalizer-vis-box">\t\t\t<canvas class="ui-equalizer-vis-canvas"></canvas>\t\t</div>\t</div>\t<div class="ui-equalizer-vis-tabs">\t\t<div class="ui-equalizer-vis-tab selected" data-vis-type="2">Bars</div>\t\t<div class="ui-equalizer-vis-tab" data-vis-type="1">Spectrum</div>\t\t<div class="ui-equalizer-vis-tab" data-vis-type="0">Waveform</div>\t</div></div>'),i=(e.append(n),n.find(".ui-equalizer-vis-box")),e=ui.initGraph(n.find(".ui-equalizer-vis-canvas"),500,48),a=h(e,t),r=p(e,t),o=_(e,t),s=2,l=null,u=(f(),n.on("click",".ui-equalizer-vis-tab",function(){d(ui.toInt($(this).attr("data-vis-type"))),ui.isFunction(l)&&l({visType:s})}),setInterval(c,40));function c(){!fullScreenVisualisationRunned&&ui.isVisible(n)&&(1==s?o.drawFrame():2==s?r.drawFrame(i.width()):a.drawFrame())}function f(){c()}function d(e){s=ui.toInt(e),n.findAll(".ui-equalizer-vis-tab").each(function(){$(this).removeClass("selected")}),n.find('.ui-equalizer-vis-tab[data-vis-type="'+s+'"]').addClass("selected")}return{adjust:f,setVisType:d,setVisChangeHandler:function(e){l=e},destroy:function(){clearInterval(u)}}}function y(e,t){var i=$('<div class="ui-equalizer-sound-param ui-stuff ui-non-selectable">\t<div class="ui-equalizer-sound-param-image">\t\t<svg viewBox="0 0 72 72">\t\t\t<path class="ui-equalizer-sound-param-bg" fill="#8b8b8b"/>\t\t\t<path class="ui-equalizer-sound-param-fg" fill="#4fcb1d"/>\t\t\t<path class="ui-equalizer-sound-param-border" fill="#8b8b8b"/>\t\t</svg>\t\t<div class="ui-equalizer-sound-param-value"></div>\t\t<div class="ui-equalizer-sound-param-arrow"></div>\t</div>\t<div class="ui-equalizer-sound-param-label"></div></div>'),e=(e.append(i),i.find(".ui-equalizer-sound-param-bg")),a=i.find(".ui-equalizer-sound-param-fg"),n=i.find(".ui-equalizer-sound-param-border"),r=i.find(".ui-equalizer-sound-param-value"),o=i.find(".ui-equalizer-sound-param-arrow"),s=i.find(".ui-equalizer-sound-param-label"),l=36,u=36,c=45,f=360-c,d=0,h=1,p=0,_=0,v=null,g=null;y(e,c,f,36,25),y(n,c,f,36,34),b(),(t=ui.toObject(t)).hasOwnProperty("color")||(t.color="#4fcb1d"),t.player;function m(e){var t,n=!1;(e=ui.toObject(e)).hasOwnProperty("label")&&s.text(ui.toString(e.label)),e.hasOwnProperty("color")&&(t=ui.toString(e.color),a.attr("fill",t),o.css("border-color",t),o.css("box-shadow","0 0 4px "+t)),e.hasOwnProperty("minValue")&&(d=ui.toFloat(e.minValue),n=!0),e.hasOwnProperty("maxValue")&&(h=ui.toFloat(e.maxValue),n=!0),e.hasOwnProperty("value")&&(p=ui.toFloat(e.value),n=!0),e.hasOwnProperty("baseValue")&&(_=ui.toFloat(e.baseValue),n=!0),e.hasOwnProperty("formatHandler")&&(v=e.formatHandler),e.hasOwnProperty("onChange")&&(g=e.onChange),n&&b()}function b(){var e=w(p);y(a,w(_),e,36,20),o.css("transform","rotate("+(e-180)+"deg)"),ui.isFunction(v)?r.text(ui.toString(v(p))):r.text(p.toFixed(2))}function w(e){return(e-d)/(h-d)*(f-c)+c}function y(e,t,n,i,a){n<t&&(r=t,t=n,n=r);var r=(t+90)*Math.PI/180,o=(n+90)*Math.PI/180,n=180<(n-t+360)%360?1:0,t=["M",l+i*Math.cos(r),u+i*Math.sin(r),"A",i,i,0,n,1,l+i*Math.cos(o),u+i*Math.sin(o),"L",l+a*Math.cos(o),u+a*Math.sin(o),"A",a,a,1,n,0,l+a*Math.cos(r),u+a*Math.sin(r),"Z"];$(e).attr("d",t.join(" "))}return m(t),i.on("mousedown touchstart",function(e){function t(e){var t=i.offset().left+l-e.pageX,e=i.offset().top+u-e.pageY,n=(180*Math.atan2(-e,-t)/Math.PI+720-90)%360,t=(ui.hypot(t,e)<20&&(n=45*Math.floor((n+23)/45)),((n=ui.ensureRange(n,c,f))-c)/(f-c)*(h-d)+d);ui.isFunction(g)&&g({value:t})}ui.dragAndDrop({event:e,owner:this,cursor:"pointer",startDragging:t,processDragging:t})}),{update:m,value:function(){return p},destroy:function(){i.remove(),i.off()}}}function s(e,t){var n=ui.toInt(t.limit),i=ui.toString(t.limitText),a=(ui.toInt(t.index),ui.toFloat(t.value)),r=(t.player,$('<div class="ui-equalizer-band">\t<div class="ui-equalizer-band-value">0</div>\t<div class="ui-equalizer-band-slider">\t\t<div class="ui-equalizer-band-slider-ruler"></div>\t\t<div class="ui-equalizer-band-slider-line">\t\t\t<div class="ui-equalizer-band-slider-value">\t\t\t\t<div class="ui-equalizer-band-slider-placeholder"></div>\t\t\t</div>\t\t</div>\t</div>\t<div class="ui-equalizer-band-label"></div></div>')),o=(e.append(r),r.find(".ui-equalizer-band-value")),s=r.find(".ui-equalizer-band-slider"),l=r.find(".ui-equalizer-band-slider-line"),u=r.find(".ui-equalizer-band-slider-value"),c=r.find(".ui-equalizer-band-slider-placeholder");r.find(".ui-equalizer-band-label").text(t.label),_();for(var f=r.find(".ui-equalizer-band-slider-ruler"),d=Math.floor(n/4),h=0;h<=n;h++){var p=$('<div class="ui-equalizer-band-slider-ruler-item"></div>');p.css("top",100*h/n+"%"),h%d==0&&p.addClass("ui-equalizer-band-slider-ruler-item-big"),f.append(p)}function _(){var e=Math.round(a),e=(0<e?o.text("+"+e+i):o.text(e+i),s.offset().top-l.offset().top),t=s.outerHeight();u.css({top:(-a+n)/(2*n)*t+e+"px"})}return{sliderOffsTop:function(){return s.offset().top},sliderHeight:function(){return s.outerHeight()},setValue:function(e){(e=ui.toFloat(e))!=a&&(a=e,_())},getOffsX:function(){return r.offset().left+r.outerWidth()/2},setColor:function(e){u.css("background-color",e),c.css({"background-color":e,"box-shadow":"0 0 8px "+e})},destroy:function(){r.remove()}}}function M(e,i){var t=$('<div class="ui-equalizer-graphic-eq">\t<div class="ui-equalizer-graphic-eq-top-panel">\t\t<div class="ui-equalizer-graphic-eq-top-left-panel">\t\t\t<div class="ui-equalizer-graphic-eq-preset-button">\t\t\t\t<div class="ui-equalizer-graphic-eq-preset-button-title">Preset</div>\t\t\t\t<div class="ui-equalizer-graphic-eq-preset-button-arrow">\t\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>\t\t\t\t</div>\t\t\t</div>\t\t\t<div class="ui-equalizer-graphic-screensaver-button"><div></div><div></div><div></div><div></div><span>Screensaver</span></div>\t\t</div>\t</div>\t<div class="ui-equalizer-graphic-eq-box">\t\t<div class="ui-equalizer-graphic-eq-scroll-box">\t\t\t<div class="ui-equalizer-graphic-eq-scroll-box-content">\t\t\t\t<div class="ui-equalizer-graphic-eq-sliders-panel">\t\t\t\t\t<div class="ui-equalizer-graphic-eq-preamp"></div>\t\t\t\t\t<div class="ui-equalizer-graphic-eq-bands">\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t\t<div class="ui-equalizer-graphic-eq-band"></div>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div>\t\t</div>\t</div></div>'),e=(e.append(t),t.find(".ui-equalizer-graphic-eq-preamp")),a=t.find(".ui-equalizer-graphic-eq-bands"),r=s(e,{player:i,label:"Amp",limit:12,limitText:" dB"}),o=[],n=(t.findAll(".ui-equalizer-graphic-eq-band").each(function(e){e=s($(this),{player:i,label:getEQFreqStr(e),limit:20,index:e,value:i.dsp.equalizer.getEQBand(e)});o.push(e)}),ui(t.find(".ui-equalizer-graphic-eq-scroll-box")).ScrollBox({skin:"generic"}));return t.on("click",".ui-equalizer-graphic-eq-preset-button",function(){var e,a,t;e=this,a=function(e){for(var t=e.bands,n=0;n<10;n++)i.dsp.equalizer.setEQBand(n,t[n])},t=$('<div class="ui-equalizer-presets-dropdown" data-ui-dropdown="tooltip-generic box-generic arrow-off to-bottom-right width-auto margin-2 anim-in-slide anim-out-slide">\t<div class="ui-equalizer-presets-dropdown-title">\t\tSelect preset from list\t</div>\t<div class="ui-equalizer-presets-dropdown-scroll-box" data-ui-dropdown-box>\t\t<div class="ui-equalizer-presets-dropdown-list"></div>\t</div></div>'),ui.openDropdown(e,t,function(t){for(var e=t.find(".ui-equalizer-presets-dropdown-list"),n=0;n<dspEQPresets.length;n++){var i=$('<div class="ui-equalizer-presets-dropdown-list-item"></div>');i.text(dspEQPresets[n].title),e.append(i)}t.on("click",".ui-equalizer-presets-dropdown-list-item",function(){var e=$(this).index();ui.isFunction(a)&&a({bands:dspEQPresets[e].bands}),ui.closeDropdown(t)})})}),t.on("click",".ui-equalizer-graphic-screensaver-button",function(t){ui.fullScreenMode.entered()?(ui.fullScreenMode.exit(),function e(){ui.fullScreenMode.entered()?setTimeout(e,50):ui.runAudioScreensaver(i,t)}()):ui.runAudioScreensaver(i,t)}),t.on("mousedown touchstart",".ui-equalizer-graphic-eq-preamp",function(e){function t(e){e=(e.pageY-r.sliderOffsTop())/r.sliderHeight(),e=ui.ensureRange(12-24*e,-12,12);i.dsp.equalizer.setPreamp(e)}ui.dragAndDrop({event:e,owner:this,cursor:"pointer",startDragging:t,processDragging:t})}),t.on("mousedown touchstart",".ui-equalizer-graphic-eq-band",function(e){function t(e){var t,n=Math.floor(a.outerWidth()/10),n=Math.floor((e.pageX-a.offset().left)/n);n<0||9<n||(t=o[n],e=(e.pageY-t.sliderOffsTop())/r.sliderHeight(),e=ui.ensureRange(20-40*e,-20,20),i.dsp.equalizer.setEQBand(n,e))}ui.dragAndDrop({event:e,owner:this,cursor:"pointer",startDragging:t,processDragging:t})}),{update:function(e){if((e=ui.toObject(e)).hasOwnProperty("color")){var t=e.color;r.setColor(t);for(var n=0;n<o.length;n++)o[n].setColor(t)}},preampChanged:function(){r.setValue(i.dsp.equalizer.getPreamp())},eqBandChanged:function(){for(var e=0;e<o.length;e++)o[e].setValue(i.dsp.equalizer.getEQBand(e))},bandOffsX:function(e){return o[e].getOffsX()},destroy:function(){r.destroy();for(var e=0;e<o.length;e++)o[e].destroy();n.destroy(),t.off(),t.remove()}}}function S(e,t){var s=$('<div class="ui-equalizer-graph">\t<canvas class="ui-equalizer-graph-canvas"></canvas></div>'),l=(e.append(s),(t=ui.toObject(t)).onGetPoints),u=s.find(".ui-equalizer-graph-canvas")[0],c=0;function n(){u.width=s.outerWidth(),u.height=s.outerHeight(),c=u.width;var e=u.getContext("2d");e.clearRect(0,0,u.width,u.height);var t,n=(e=>{for(var t=0;t<e.length;t++){var n=e[Math.max(t-1,0)],i=e[t],a=e[Math.min(t+1,e.length-1)],r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2)),o=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),s=.4*r/(r+o),r=.4*o/(r+o);e[t].inner={x:i.x-s*(a.x-n.x),y:i.y-s*(a.y-n.y)},e[t].outer={x:i.x+r*(a.x-n.x),y:i.y+r*(a.y-n.y)}}return e})(ui.makeArray(l(u.width,u.height))),i=e,a=n,e="#8b8b8b",n="#dadada";for(i.lineWidth=2,i.strokeStyle=e,i.beginPath(),t=0;t<a.length;t++){var r,o=a[t];0==t?i.moveTo(o.x,o.y):(r=a[t-1],i.bezierCurveTo(r.outer.x,r.outer.y,o.inner.x,o.inner.y,o.x,o.y))}i.stroke(),n&&(i.lineTo(u.width,u.height),i.lineTo(0,u.height),i.lineTo(0,a[0].y),i.fillStyle=n,i.fill())}return n(),{drawGraph:n,adjust:function(){c!=s.outerWidth()&&n()},destroy:function(){s.remove()}}}function A(e,t){e.css("text-decoration",t?"underline":"")}ui.fn.Equalizer=ui.fn.UIEqualizer=function(e){var t=$(this),n=t.data("UIEqualizer");if(n)return ui.isObject(n)&&n.update(e),n;sendUsages();var r=(e=ui.toObject(e)).player;if(!r)return console.error("Equalizer should be connected to some player"),{};r.enableDSP(!0),r.requireWavePrint(!0);var i,o=$('<div class="ui-equalizer ui-stuff ui-non-selectable">\t<div class="ui-equalizer-main-panel">\t\t<div class="ui-equalizer-top-panel">\t\t\t<div class="ui-equalizer-visualization-panel"></div>\t\t\t<div class="ui-equalizer-vu-meters">\t\t\t\t<div class="ui-equalizer-vu-in"></div>\t\t\t\t<div class="ui-equalizer-vu-out"></div>\t\t\t</div>\t\t</div>\t\t<div class="ui-equalizer-geq-panel"></div>\t\t<div class="ui-equalizer-eq-graph-panel"></div>\t</div>\t<div class="ui-equalizer-params-panel">\t\t<div class="ui-equalizer-balance-slider"></div>\t\t<div class="ui-equalizer-lowpass-slider"></div>\t\t<div class="ui-equalizer-highpass-slider"></div>\t\t<div class="ui-equalizer-3d-slider"></div>\t</div></div>'),a=(t.append(o),b(o.find(".ui-equalizer-vu-in"),{player:r,title:"IN",applyDSP:!1})),s=b(o.find(".ui-equalizer-vu-out"),{player:r,title:"OUT",applyDSP:!0}),l=w(o.find(".ui-equalizer-visualization-panel"),r),u=y(o.find(".ui-equalizer-balance-slider"),{player:r,label:"Balance",value:r.dsp.balance.getValue(),minValue:-1,maxValue:1,formatHandler:function(e){var t=e.toFixed(2);return"0.00"!=t&&0<e?"+"+t:t},onChange:function(e){r&&r.dsp.balance.setValue(e.value)}}),c=y(o.find(".ui-equalizer-lowpass-slider"),{player:r,label:"Lowpass",value:1-r.dsp.lowpass.getValue(),minValue:0,maxValue:1,onChange:function(e){r&&r.dsp.lowpass.setValue(1-e.value)}}),f=y(o.find(".ui-equalizer-highpass-slider"),{player:r,label:"Highpass",value:r.dsp.highpass.getValue(),minValue:0,maxValue:1,onChange:function(e){r&&r.dsp.highpass.setValue(e.value)}}),d=y(o.find(".ui-equalizer-3d-slider"),{player:r,label:"3D",value:r.dsp.sound3d.getValue(),minValue:0,maxValue:1,onChange:function(e){r&&r.dsp.sound3d.setValue(e.value)}}),h=M(o.find(".ui-equalizer-geq-panel"),r),p=S(o.find(".ui-equalizer-eq-graph-panel"),{player:r,onGetPoints:function(e,t){var n=[];n.push({x:0,y:t/2});for(var i=0;i<10;i++){var a=h.bandOffsX(i)-o.offset().left;n.push({x:a,y:t-(r.dsp.equalizer.getEQBand(i)+20)/40*(t-24)-12})}return n.push({x:e,y:t/2}),n}}),_=(v(e),setInterval(function(){!fullScreenVisualisationRunned&&ui.isVisible(o)&&(a.drawFrame(),s.drawFrame())},20));function v(e){var t,n;(e=ui.toObject(e)).hasOwnProperty("color")&&(t=ui.trim(e.color),n={color:t},u.update(n),c.update(n),f.update(n),d.update(n),h.update({color:t})),e.hasOwnProperty("visType")&&l.setVisType(e.visType),e.hasOwnProperty("onSelectVis")&&l.setVisChangeHandler(e.onSelectVis),e.hasOwnProperty("cookieName")&&r.dsp.setCookieName(e.cookieName)}function g(){o.removeClass("ui-m1"),o.removeClass("ui-m2");var e=o.outerWidth();e<580&&o.addClass("ui-m1"),e<420&&o.addClass("ui-m2"),p.adjust()}function m(){var e,t=r.dsp.getCookieName();t&&(e=[r.dsp.equalizer.getPreamp().toFixed(3),r.dsp.equalizer.getEQBand(0).toFixed(3),r.dsp.equalizer.getEQBand(1).toFixed(3),r.dsp.equalizer.getEQBand(2).toFixed(3),r.dsp.equalizer.getEQBand(3).toFixed(3),r.dsp.equalizer.getEQBand(4).toFixed(3),r.dsp.equalizer.getEQBand(5).toFixed(3),r.dsp.equalizer.getEQBand(6).toFixed(3),r.dsp.equalizer.getEQBand(7).toFixed(3),r.dsp.equalizer.getEQBand(8).toFixed(3),r.dsp.equalizer.getEQBand(9).toFixed(3),r.dsp.balance.getValue().toFixed(3),r.dsp.lowpass.getValue().toFixed(3),r.dsp.highpass.getValue().toFixed(3),r.dsp.sound3d.getValue().toFixed(3)],ui.setCookie(t,e.join(",")))}g(),ui.addResizeHandler(o,g),r.bindEvent(o,"onPreampChanged",function(){h.preampChanged(),m()}),r.bindEvent(o,"onEQBandChanged",function(){h.eqBandChanged(),p.drawGraph(),m()}),r.bindEvent(o,"onBalanceChanged",function(){u.update({value:r.dsp.balance.getValue()}),m()}),r.bindEvent(o,"onLowpassChanged",function(){c.update({value:1-r.dsp.lowpass.getValue()}),m()}),r.bindEvent(o,"onHighpassChanged",function(){f.update({value:r.dsp.highpass.getValue()}),m()}),r.bindEvent(o,"onSound3DChanged",function(){d.update({value:r.dsp.sound3d.getValue()}),m()}),o.on("uiScroll",function(){p.drawGraph()}),lm.c()||(n=$('<div style="display: inline-block; position: absolute; left: 2px; bottom: 0; color: #8b8b8b; padding: 4px; font-size: 10px; line-height: 9px; cursor: pointer"><a style="diplay: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0" href="http://alex.player.x10.name/" target="_blank"></a>Alex Player v'+engineVersion+"</div>"),(i=n).on("mouseenter",function(){A(i,1)}),i.on("mouseleave",function(){A(i,0)}),$.fn[Math.random()<.5?"append":"prepend"].call(o.find(Math.random()<.5?".ui-equalizer-eq-graph-panel":".ui-equalizer-graph"),n));e={update:v,destroy:function(){clearInterval(_),l.destroy(),h.destroy(),p.destroy(),u.destroy(),c.destroy(),f.destroy(),d.destroy(),ui.removeResizeHandler(o),r.unbindEvents(o),o.remove(),t.removeData("UIEqualizer"),delete t[0].uiInterface}};return t.data("UIEqualizer",e),t[0].uiInterface=e}})(),ui.runAudioScreensaver=function(e,t){t.shiftKey?ui.runGeissOnCPU(e):ui.runGeissOnGPU(e)},ui.runGeissOnGPU=function(t){var Ze,Ke,Je,et,tt=0,nt=screen.width,n=screen.height,f=!1,it=800,at=Math.floor(it/nt*n),rt=100,ot=Math.floor(rt/nt*n),st=it/2,lt=at/2,i=!1,ut=1,ct=1,Mt=0,e=$('<div class="ui-audio-screensaver">\t<canvas class="ui-audio-screensaver-canvas"></canvas>\t<div class="ui-audio-screensaver-invisible-box"><input class="ui-audio-screensaver-invisible-input" type="text"/></div></div>'),a=($(document.body).append(e),e.find(".ui-audio-screensaver-invisible-input"));ui.fullScreenMode.enter(e,M),fullScreenVisualisationRunned=!0;for(var r=e.find(".ui-audio-screensaver-canvas")[0],St=(r.width=nt,r.height=n,r.getContext("2d")),ft=document.createElement("canvas"),dt=(ft.width=nt,ft.height=n,ft.getContext("webgl2")),ht=b("#version 300 es\nin vec2 aWarpPos;\nin vec2 aWarpUv;\nout vec2 vUV;\nvoid main() {\n    gl_Position = vec4(aWarpPos, 0.0, 1.0);\n    vUV = aWarpUv;\n    vUV.y = 1.0 - vUV.y;\n}","#version 300 es\nprecision mediump float;\nin vec2 vUV;\nout vec4 fragColor;\nuniform sampler2D uTexture;\nuniform float uWidth;\nuniform float uHeight;\nvoid main() {\n    fragColor = vec4(texture(uTexture, vUV).rgb * 0.98, 1.0);\n}"),At=dt.getAttribLocation(ht,"aWarpPos"),xt=dt.getAttribLocation(ht,"aWarpUv"),Rt=(dt.enableVertexAttribArray(At),dt.enableVertexAttribArray(xt),b("#version 300 es\nin vec2 aWavePos;\nvoid main() {    gl_Position = vec4(aWavePos, 0.0, 1.0);}","#version 300 es\nprecision mediump float;\nout vec4 fragColor;\nuniform vec4 uWaveColor;\nvoid main() {\n    fragColor = vec4(uWaveColor.rgb * 0.985, 1.0);\n}")),pt=dt.getAttribLocation(Rt,"aWavePos"),_t=dt.getUniformLocation(Rt,"uWaveColor"),Et=(dt.enableVertexAttribArray(pt),b("#version 300 es\nin vec2 aPos;\nout vec2 vUV;\nvoid main() {\n    gl_Position = vec4(aPos, 0.0, 1.0);\n    vUV = aPos * 0.5 + 0.5;\n}","#version 300 es\nprecision mediump float;\nin vec2 vUV;\nout vec4 fragColor;\nuniform sampler2D uTexture;\nvoid main() {\n    fragColor = vec4(texture(uTexture, vUV).rgb * 1.8, 1.0);\n}")),kt=dt.getAttribLocation(Et,"aPos"),vt=(dt.enableVertexAttribArray(kt),[]),gt=0;gt<6;gt++)vt.push(Math.floor(32767*Math.random())%1e3*.001*.01+.02);(new(window.AudioContext||window.webkitAudioContext)).createAnalyser().fftSize=1024;for(var Pt=dt.createTexture(),Bt=dt.createTexture(),Tt=dt.createFramebuffer(),Ct=dt.createFramebuffer(),It=(w(Tt,Pt),w(Ct,Bt),dt.createBuffer()),Ot=dt.createBuffer(),Dt=dt.createBuffer(),mt=dt.createBuffer(),d=[],o=0;o<=ot;o++)for(var s=0;s<=rt;s++)d.push(s*(2/rt)-1,2/ot*-o+1,0);for(var r=new Float32Array(d),l=(dt.bindBuffer(dt.ARRAY_BUFFER,It),dt.bufferData(dt.ARRAY_BUFFER,r,dt.STATIC_DRAW),rt+1),h=[],o=0;o<ot;o++)for(s=0;s<rt;s++){var p=s+l*(o+1),_=s+1+l*(o+1),v=s+1+l*o;h.push(s+l*o,p,v),h.push(p,_,v)}var qt=new Uint16Array(h),g=(dt.bindBuffer(dt.ELEMENT_ARRAY_BUFFER,Dt),dt.bufferData(dt.ELEMENT_ARRAY_BUFFER,qt,dt.STATIC_DRAW),performance.now()),m=1e3/45,u=(!function e(){if(f)return;window.requestAnimationFrame(e);var t=performance.now();var n=t-g;m<n&&(g=t-n%m,i||y())}(),setInterval(c,1e4));function c(){i||(ut=yt()%4+1,ct=yt()%7+1,clearInterval(u),u=setInterval(c,1e4))}function b(e,t){var n=dt.createProgram(),i=dt.createShader(dt.VERTEX_SHADER),a=dt.createShader(dt.FRAGMENT_SHADER);return dt.shaderSource(i,e),dt.shaderSource(a,t),dt.compileShader(i),dt.compileShader(a),dt.attachShader(n,i),dt.attachShader(n,a),dt.linkProgram(n),n}function Vt(e,t,n){return Math.min(n,Math.max(t,e))}function bt(e){return e/it*2-1}function wt(e){return e/at*2-1}function yt(){return Math.floor(32767*Math.random())}function w(e,t){dt.bindTexture(dt.TEXTURE_2D,t),dt.texImage2D(dt.TEXTURE_2D,0,dt.RGBA,nt,n,0,dt.RGBA,dt.UNSIGNED_BYTE,new Uint8Array(nt*n*4)),dt.texParameteri(dt.TEXTURE_2D,dt.TEXTURE_MAG_FILTER,dt.LINEAR),dt.texParameteri(dt.TEXTURE_2D,dt.TEXTURE_MIN_FILTER,dt.LINEAR_MIPMAP_LINEAR),dt.texParameteri(dt.TEXTURE_2D,dt.TEXTURE_WRAP_S,dt.CLAMP_TO_EDGE),dt.texParameteri(dt.TEXTURE_2D,dt.TEXTURE_WRAP_T,dt.CLAMP_TO_EDGE),dt.texParameteri(dt.TEXTURE_2D,dt.TEXTURE_WRAP_R,dt.CLAMP_TO_EDGE),dt.generateMipmap(dt.TEXTURE_2D),dt.bindFramebuffer(dt.FRAMEBUFFER,e),dt.framebufferTexture2D(dt.FRAMEBUFFER,dt.COLOR_ATTACHMENT0,dt.TEXTURE_2D,t,0)}function y(){var q,V,e,t,n,i,a,r,o,s,l,u,F,H,c,z,L,N,W,f,d,X,h,Q,p,U,Y,_,j,$,G,Z,v,g,K,J,ee,te,ne=216.675/255,m=7*Math.sin(.006*tt+59)+5*Math.cos(.0077*tt+17);if(Ze=Vt(ne*(1+.3*Math.sin(tt*vt[0]+10-m))*(1+.2*Math.cos(tt*vt[1]+37+m)),0,1),Ke=Vt(ne*(1+.3*Math.sin(tt*vt[2]+32+m))*(1+.2*Math.cos(tt*vt[3]+16-m)),0,1),Je=Vt(ne*(1+.3*Math.sin(tt*vt[4]+87-m))*(1+.2*Math.cos(tt*vt[5]+25+m)),0,1),ct!=Mt){switch(et=new Float32Array((rt+1)*(ot+1)*2),ct){case 1:for(var ie=.007+yt()%1e3*.001*.02,ae=Math.cos(ie),re=Math.sin(ie),oe=rt/2,se=ot/2,b=0;b<=ot;b++)for(var w=0;w<=rt;w++){var y,M=b-se,le=(M=(y=(y=w-oe)*ae-M*re)*re+M*ae,.9+28e-5*Math.sqrt(y*y+M*M));y=(w+(y=y*le+oe))/2,M=(b+(M=M*le+se))/2,et[2*(b*(rt+1)+w)]=y/rt,et[2*(b*(rt+1)+w)+1]=M/ot}break;case 2:for(var ie=.01+yt()%1e3*.001*.01,ue=Math.cos(ie),ce=Math.sin(ie),fe=2/rt,de=.5*rt,he=rt/2,pe=ot/2,S=0;S<=ot;S++)for(var A=0;A<=rt;A++){var _e,x=A-he,ve=S-pe,ge=.97-(ve*=fe)*ve*.4;_e=(_e=(x*=fe)*ue-ve*ce)*ge*de+he,x=(x=x*ce+ve*ue)*ge*de+pe,et[2*(S*(rt+1)+A)]=_e/rt,et[2*(S*(rt+1)+A)+1]=x/ot}break;case 3:for(q=[],V=[],e=0;e<5;e++)q.push(yt()%(10*rt)*.1),V.push(yt()%(10*ot)*.1);for(n=0;n<=ot;n++)for(t=0;t<=rt;t++){for(e=i=s=o=0;e<1;e++)a=r=(l=q[e]-t)*l+(u=V[e]-n)*u,i+=a=1/(.1+(a=r)),r=Math.sqrt(r),o+=(a+=a)*u*(r=1/(r+.01)),s+=a*-l*r;1e-8<i?(o*=i=.5/i,s*=i):s=o=0,l=t+o-.1,u=n+s+.6,et[2*(n*(rt+1)+t)]=l/rt,et[2*(n*(rt+1)+t)+1]=u/ot}break;case 4:for(var me=Math.cos(.05),be=Math.sin(.05),we=rt/2,ye=ot/2,R=0;R<=ot;R++)for(var E=0;E<=rt;E++){var k,P=R-ye;P=(k=(k=E-we)*me-P*be)*be+P*me,k=.96*k+we,P=.96*P+ye,et[2*(R*(rt+1)+E)]=k/rt,et[2*(R*(rt+1)+E)+1]=P/ot}break;case 5:for(var Me=1+yt()%1e3*.001*.02,Se=.01+yt()%1e3*.001*.02,Ae=Math.cos(Se),xe=Math.sin(Se),Re=rt/2,Ee=ot/2,ke=0;ke<=ot;ke++)for(var Pe=0;Pe<=rt;Pe++){var Be,B=ke-Ee;B=(Be=(Be=Pe-Re)*Ae-B*xe)*xe+B*Ae,Be=Be*Me+Re,B=B*Me+Ee,et[2*(ke*(rt+1)+Pe)]=Be/rt,et[2*(ke*(rt+1)+Pe)+1]=B/ot}break;case 6:for(var Te=.985-.12*Math.pow(yt()%1e3*.001,2),Se=.01+yt()%1e3*.001*.01,Ce=Math.cos(Se),Ie=Math.sin(Se),Oe=rt/2,De=ot/2,qe=0;qe<=ot;qe++)for(var Ve=0;Ve<=rt;Ve++){var Fe,T=qe-De;T=(Fe=(Fe=Ve-Oe)*Ce-T*Ie)*Ie+T*Ce,Fe=Fe*Te+Oe,T=T*Te+De,et[2*(qe*(rt+1)+Ve)]=Fe/rt,et[2*(qe*(rt+1)+Ve)+1]=T/ot}break;case 7:var He=.92+yt()%1e3*.001*.01,ze=6e-4+yt()%1e3*.001*5e-4,Le=640/nt,Ne=1,We=.01+yt()%1e3*.001*.01,Xe=Math.cos(We),Qe=Math.sin(We),Ue=0,Ye=rt/2,je=ot/2,$e=[];for(gt=0;gt<2345;gt++)$e.push(yt()%100*5e-4);for(var C=0;C<=ot;C++)for(var I=0;I<=rt;I++){var O=I-Ye,D=C-je,Ge=Math.sqrt(O*O+D*D)*ze;for(Ne=He-(Ge*=Le),Ne+=$e[Ue++],2345<=Ue&&(Ue=0),D=(O=O*Xe-D*Qe)*Qe+D*Xe,O=.625*I+.375*(O=O*Ne+Ye),D=.625*C+.375*(D=D*Ne+je);O<0;)O+=rt-1;for(;rt-1<O;)O-=rt-1;et[2*(C*(rt+1)+I)]=O/rt,et[2*(C*(rt+1)+I)+1]=D/ot}}Mt=ct}switch(tt%2==0?(dt.bindFramebuffer(dt.FRAMEBUFFER,Tt),dt.bindTexture(dt.TEXTURE_2D,Bt)):(dt.bindFramebuffer(dt.FRAMEBUFFER,Ct),dt.bindTexture(dt.TEXTURE_2D,Pt)),dt.useProgram(ht),dt.bindBuffer(dt.ARRAY_BUFFER,Ot),dt.bufferData(dt.ARRAY_BUFFER,et,dt.STATIC_DRAW),dt.vertexAttribPointer(xt,2,dt.FLOAT,!1,0,0),dt.bindBuffer(dt.ELEMENT_ARRAY_BUFFER,Dt),dt.bindBuffer(dt.ARRAY_BUFFER,It),dt.vertexAttribPointer(At,3,dt.FLOAT,!1,0,0),dt.drawElements(dt.TRIANGLES,qt.length,dt.UNSIGNED_SHORT,0),dt.useProgram(Rt),ut){case 1:for(F=engine.getVisualData(null,it,0),H=new Float32Array(2*it),z=lt+64*F[0],c=0;c<it;c++)z=.9*z+.1*(lt+32*F[c]),H[2*c+0]=bt(c),H[2*c+1]=wt(z);dt.bindBuffer(dt.ARRAY_BUFFER,mt),dt.bufferData(dt.ARRAY_BUFFER,H,dt.STATIC_DRAW),dt.vertexAttribPointer(pt,2,dt.FLOAT,!1,0,0),dt.uniform4f(_t,Ze,Ke,Je,1),dt.drawArrays(dt.LINE_STRIP,0,it);break;case 2:for(L=engine.getVisualData(null,at,0),N=new Float32Array(2*at),W=st+64*L[0],f=0;f<at;f++)W=.9*W+.1*(st+32*L[f]),N[2*f+0]=bt(W),N[2*f+1]=wt(f);dt.bindBuffer(dt.ARRAY_BUFFER,mt),dt.bufferData(dt.ARRAY_BUFFER,N,dt.STATIC_DRAW),dt.vertexAttribPointer(pt,2,dt.FLOAT,!1,0,0),dt.uniform4f(_t,Ze,Ke,Je,1),dt.drawArrays(dt.LINE_STRIP,0,at);break;case 3:for(d=engine.getVisualData(null,364,0),X=new Float32Array(628),h=0;h<50;h++)d[h]=(h*d[h]+(50-h)*d[314+h])/50;for(p=(Q=it/640*50)+63.5*d[0],h=0;h<314;h++)p=.5*p+.5*(Q+63.5*d[h]),U=st+p*Math.cos(.02*h),Y=lt+p*Math.sin(.02*h),X[2*h+0]=bt(U),X[2*h+1]=wt(Y);dt.bindBuffer(dt.ARRAY_BUFFER,mt),dt.bufferData(dt.ARRAY_BUFFER,X,dt.STATIC_DRAW),dt.vertexAttribPointer(pt,2,dt.FLOAT,!1,0,0),dt.uniform4f(_t,Ze,Ke,Je,1),dt.drawArrays(dt.LINE_LOOP,0,314);break;case 4:for(J=engine.getVisualData(null,314,0),ee=engine.getVisualData(null,314,1),te=new Float32Array(628),K=Math.sin(.01*tt),G=Math.cos(K),Z=Math.sin(K),_=g=v=0;_<314;_++)v=.5*v+127*J[_]*.5,g=.5*g+127*ee[_]*.5,j=v*G+g*Z+st,$=v*-Z+g*G+lt,te[2*_+0]=bt(j),te[2*_+1]=wt($);dt.bindBuffer(dt.ARRAY_BUFFER,mt),dt.bufferData(dt.ARRAY_BUFFER,te,dt.STATIC_DRAW),dt.vertexAttribPointer(pt,2,dt.FLOAT,!1,0,0),dt.uniform4f(_t,Ze,Ke,Je,1),dt.drawArrays(dt.LINE_STRIP,0,314)}dt.bindFramebuffer(dt.FRAMEBUFFER,null),dt.useProgram(Et),dt.bindBuffer(dt.ELEMENT_ARRAY_BUFFER,Dt),dt.bindBuffer(dt.ARRAY_BUFFER,It),dt.vertexAttribPointer(kt,3,dt.FLOAT,!1,0,0),dt.drawElements(dt.TRIANGLES,qt.length,dt.UNSIGNED_SHORT,0),St.drawImage(ft,0,0),tt++}function M(){e&&(clearInterval(u),ui.removeResizeHandler(e),e.remove(),e=null,f=!(fullScreenVisualisationRunned=!1))}c(),ui.isMobile||a.focus(),e.on("click",M),a.on("keydown",function(e){27==e.keyCode?M():13==e.keyCode&&c()}),a.on("keypress",function(e){switch(String.fromCharCode(e.charCode)){case" ":t&&(i=t.paused()?(t.play(),!1):(t.pause(),!0));break;case"1":ut=1,clearInterval(u);break;case"2":ut=2,clearInterval(u);break;case"3":ut=3,clearInterval(u);break;case"4":ut=4,clearInterval(u);break;case"q":ct=1,clearInterval(u);break;case"w":ct=2,clearInterval(u);break;case"e":ct=3,clearInterval(u);break;case"r":ct=4,clearInterval(u);break;case"t":ct=5,clearInterval(u);break;case"y":ct=6,clearInterval(u);break;case"u":ct=7,clearInterval(u)}})},ui.runGeissOnCPU=function(t){var e,Ct=240,It=Math.floor(Ct/screen.height*screen.width),Ot=new Uint8Array(It*Ct*4),Dt=new Uint8Array(It*Ct*4),qt=new Uint8Array(It*Ct),Vt=new Uint8Array(It*Ct),Ft=new Uint8Array(It*Ct),Ht=new Uint8Array(It*Ct),zt=new Int32Array(It*Ct),Lt=Math.floor(It/2-1),Nt=Math.floor(Ct/2-1),Wt=0,n=null,i=null,a=null,Xt=null,Qt=null,Ut=null,r=null,o=null,s=null,Yt=0,jt=0,$t=0,Gt=1,Zt=0,Kt=1,Jt=[],en=!1;n=$('<div class="ui-audio-screensaver">\t<canvas class="ui-audio-screensaver-canvas"></canvas>\t<div class="ui-audio-screensaver-invisible-box"><input class="ui-audio-screensaver-invisible-input" type="text"/></div></div>'),$(document.body).append(n),e=n.find(".ui-audio-screensaver-invisible-input"),ui.fullScreenMode.enter(n,f),fullScreenVisualisationRunned=!0,i=n.find(".ui-audio-screensaver-canvas"),(a=i[0]).width=It,a.height=Ct,Xt=a.getContext("2d"),Qt=Xt.getImageData(0,0,a.width,a.height),Ut=Qt.data,r=new Int32Array(Ct);for(var l=0;l<Ct;l++)r[l]=l*It;for(var u=0;u<Ct;u++)for(var c=0;c<It;c++)Ut[3+(r[u]+c<<2)]=255;function d(){en||(Kt=tn()%4+1,Gt=tn()%9+1)}function h(){if(!en){if(Gt!=Zt){switch(Gt){case 1:var q,V,F,e,t,n,H,i,a,r,z;for(L=.007+tn()%1e3*.001*.02,q=Math.cos(L),V=Math.sin(L),F=It*(Ct-3)-1,n=e=0;n<Ct;n++)for(t=0;t<It;t++)a=(i=(i=t-Lt)*q-(a=n-Nt)*V)*V+a*q,r=.9+28e-5*Math.sqrt(i*i+a*a),i=(t+(i=i*r+Lt))/2,a=(n+(a=a*r+Nt))/2,r=Math.floor(i),H=Math.floor(a),i=i-r,a=a-H,qt[z=n*It+t]=Math.floor((1-i)*(1-a)*255),Vt[z]=Math.floor(i*(1-a)*255),Ft[z]=Math.floor((1-i)*a*255),Ht[z]=Math.floor(i*a*255),i=e,F<=(e=(e=H*It+r)<It?It:e)&&(e=F),zt[z]=e-i<<2;break;case 2:var L,N,W,X,Q,U,Y,j,o,s,l,$,G;for(L=.01+tn()%1e3*.001*.01,N=Math.cos(L),W=Math.sin(L),X=2/It,Q=.5*It,j=U=0;j<Ct;j++)for(Y=0;Y<It;Y++)l=Y-Lt,o=j-Nt,s=(s=(l*=X)*N-(o*=X)*W)*($=.97-o*o*.4)*Q+Lt,l=(l=l*W+o*N)*$*Q+Nt,o=Math.floor(s),$=Math.floor(l),s=s-o,l=l-$,qt[G=j*It+Y]=Math.floor((1-s)*(1-l)*255),Vt[G]=Math.floor(s*(1-l)*255),Ft[G]=Math.floor((1-s)*l*255),Ht[G]=Math.floor(s*l*255),s=U,U=$*It+o,zt[G]=U-s<<2;break;case 3:var Z,K,u,J,c,ee,te,ne,ie,f,ae,re,d,oe,se,le,h,ue,ce;for(Z=[],K=[],c=0;c<5;c++)Z.push(tn()%(10*It)*.1),K.push(tn()%(10*Ct)*.1);for(J=It*(Ct-3)-1,te=u=0;te<Ct;te++)for(ee=0;ee<It;ee++){for(c=ne=re=ae=0;c<5;c++)ie=f=(d=Z[c]-ee)*d+(oe=K[c]-te)*oe,ne+=ie=1/(.1+(ie=f)),f=Math.sqrt(f),ae+=(ie+=ie)*oe*(f=1/(f+.01)),re+=ie*-d*f;for(1e-6<ne?(ae*=ne=1.9/ne,re*=ne):re=ae=0,d=ee+ae-.1,oe=te+re+.6;d<0;)d+=It-1;for(;It-1<d;)d-=It-1;se=Math.floor(d),le=Math.floor(oe),h=d-se,ue=oe-le,qt[ce=te*It+ee]=Math.floor((1-h)*(1-ue)*255),Vt[ce]=Math.floor(h*(1-ue)*255),Ft[ce]=Math.floor((1-h)*ue*255),Ht[ce]=Math.floor(h*ue*255),h=u,J<=(u=(u=le*It+se)<It?It:u)&&(u=J),zt[ce]=u-h<<2}break;case 4:var fe,de,he,pe,_e,ve,p,_,ge,me;for(ge=0,fe=Math.cos(.05),de=Math.sin(.05),pe=0;pe<Ct;pe++)for(he=0;he<It;he++)p=(_=(_=he-Lt)*fe-(p=pe-Nt)*de)*de+p*fe,_=.96*_+Lt,p=.96*p+Nt,_e=Math.floor(_),ve=Math.floor(p),_=_-_e,p=p-ve,qt[me=pe*It+he]=Math.floor((1-_)*(1-p)*255),Vt[me]=Math.floor(_*(1-p)*255),Ft[me]=Math.floor((1-_)*p*255),Ht[me]=Math.floor(_*p*255),_=ge,ge=ve*It+_e,zt[me]=ge-_<<2;break;case 5:var be,we,ye,Me,Se,Ae,v,g,xe,Re,Ee;for(xe=0,Re=1+tn()%1e3*.001*.02,Be=.02+tn()%1e3*.001*.07,be=Math.cos(Be),we=Math.sin(Be),Me=0;Me<Ct;Me++)for(ye=0;ye<It;ye++)v=(g=(g=ye-Lt)*be-(v=Me-Nt)*we)*we+v*be,g=g*Re+Lt,v=v*Re+Nt,Se=Math.floor(g),Ae=Math.floor(v),g=g-Se,v=v-Ae,qt[Ee=Me*It+ye]=Math.floor((1-g)*(1-v)*255),Vt[Ee]=Math.floor(g*(1-v)*255),Ft[Ee]=Math.floor((1-g)*v*255),Ht[Ee]=Math.floor(g*v*255),g=xe,xe=Ae*It+Se,zt[Ee]=xe-g<<2;break;case 6:var ke,Pe,Be,Te,Ce,Ie,Oe,De,qe,m,b,Ve;for(ke=0,Pe=.985-.12*Math.pow(tn()%1e3*.001,2),Be=.01+tn()%1e3*.001*.01,Te=Math.cos(Be),Ce=Math.sin(Be),Oe=0;Oe<Ct;Oe++)for(Ie=0;Ie<It;Ie++)b=(m=(m=Ie-Lt)*Te-(b=Oe-Nt)*Ce)*Ce+b*Te,m=m*Pe+Lt,b=b*Pe+Nt,De=Math.floor(m),qe=Math.floor(b),m=m-De,b=b-qe,qt[Ve=Oe*It+Ie]=Math.floor((1-m)*(1-b)*255),Vt[Ve]=Math.floor(m*(1-b)*255),Ft[Ve]=Math.floor((1-m)*b*255),Ht[Ve]=Math.floor(m*b*255),m=ke,ke=qe*It+De,zt[Ve]=ke-m<<2;break;case 7:var Fe,He,ze,Le,Ne,We,Xe,Qe,Ue,Ye,je,$e,w,Ge,Ze,y,M,Ke;for(Fe=.92+tn()%1e3*.001*.01,He=6e-4+tn()%1e3*.001*5e-4,ze=640/It,Le=0,Ne=1,nt=.01+tn()%1e3*.001*.01,We=Math.cos(nt),Xe=Math.sin(nt),Ue=[],Ye=Qe=0;Ye<2345;Ye++)Ue.push(tn()%100*5e-4);for($e=0;$e<Ct;$e++)for(je=0;je<It;je++){for(w=je-Lt,M=$e-Nt,Ge=Math.sqrt(w*w+M*M)*He,Ne=Fe-(Ge*=ze),Ne+=Ue[Qe++],2345<=Qe&&(Qe=0),M=(w=w*We-M*Xe)*Xe+M*We,w=.625*je+.375*(w=w*Ne+Lt),M=.625*$e+.375*(M=M*Ne+Nt);w<0;)w+=It-1;for(;It-1<w;)w-=It-1;Ge=Math.floor(w),Ze=Math.floor(M),y=w-Ge,M=M-Ze,qt[Ke=$e*It+je]=Math.floor((1-y)*(1-M)*255),Vt[Ke]=Math.floor(y*(1-M)*255),Ft[Ke]=Math.floor((1-y)*M*255),Ht[Ke]=Math.floor(y*M*255),y=Le,Le=Ze*It+Ge,zt[Ke]=Le-y<<2}break;case 8:var S,Je,et,tt,nt,it,at,rt,ot,st,lt,A,x,ut;for(S=tn()%1e3*.001,S=8*(S=(S*=S)*S)+1.5,Je=640/It,et=0,tt=1,nt=tn()%1e3*.001*.05,it=Math.cos(nt),at=Math.sin(nt),ot=0;ot<Ct;ot++)for(rt=0;rt<It;rt++)A=rt-Lt,x=ot-Nt,st=Math.sqrt(A*A+x*x),st*=Je,tt=.85+.1*Math.sin(Math.sqrt(st)*S),x=(A=A*it-x*at)*at+x*it,A=A*tt+Lt,x=x*tt+Nt,st=Math.floor(A),lt=Math.floor(x),A=A-st,x=x-lt,qt[ut=ot*It+rt]=Math.floor((1-A)*(1-x)*255),Vt[ut]=Math.floor(A*(1-x)*255),Ft[ut]=Math.floor((1-A)*x*255),Ht[ut]=Math.floor(A*x*255),A=et,et=lt*It+st,zt[ut]=et-A<<2;break;case 9:var ct,ft,dt,ht,pt,_t,R,E,vt,gt,k,P,mt,bt,wt,yt;for(mt=0,bt=1.008+tn()%1e3*.001*.008,wt=bt,ct=.12+tn()%1e3*.001*.06,ft=ct,ct*=-.6,ft*=.1,bt*=.99,wt*=1.01,dt=Math.cos(ct),ht=Math.sin(ct),pt=Math.cos(ft),_t=Math.sin(ft),E=0;E<Ct;E++)for(R=0;R<It;R++)P=R-Lt,k=E-Nt,k=R%2==E%2?(k=(P=P*dt-k*ht)*ht+k*dt,P=P*bt+Lt,k*bt+Nt):(k=(P=P*pt-k*_t)*_t+k*pt,P=P*wt+Lt,k*wt+Nt),P=.625*R+.375*P,k=.625*E+.375*k,vt=Math.floor(P),gt=Math.floor(k),P=P-vt,k=k-gt,qt[yt=E*It+R]=Math.floor((1-P)*(1-k)*255),Vt[yt]=Math.floor(P*(1-k)*255),Ft[yt]=Math.floor((1-P)*k*255),Ht[yt]=Math.floor(P*k*255),P=mt,mt=gt*It+vt,zt[yt]=mt-P<<2}Zt=Gt}var B,Mt,St,T,C,At,xt,Rt,Et,kt;for(Wt++,Mt=It*Ct,St=4*It,B=At=T=0;B<Mt;B++)T+=zt[B],C=T+St,xt=qt[B],Rt=Vt[B],Et=Ft[B],kt=Ht[B],Dt[At]=xt*Ot[T]+Rt*Ot[T+4]+Et*Ot[C]+kt*Ot[C+4]>>8,Dt[At+1]=xt*Ot[T+1]+Rt*Ot[T+5]+Et*Ot[C+1]+kt*Ot[C+5]>>8,Dt[At+2]=xt*Ot[T+2]+Rt*Ot[T+6]+Et*Ot[C+2]+kt*Ot[C+6]>>8,At+=4;for(var I=0,Pt=0;Pt<Dt.length;Pt++)Ut[I]=Dt[I],Ut[I+1]=Dt[I+1],Ut[I+2]=Dt[I+2],I+=4;Xt.putImageData(Qt,0,0);var O=216.675,D=7*Math.sin(.006*Wt+59)+5*Math.cos(.0077*Wt+17),Bt=O*(1+.3*Math.sin(Wt*Jt[0]+10-D))*(1+.2*Math.cos(Wt*Jt[1]+37+D)),Tt=O*(1+.3*Math.sin(Wt*Jt[2]+32+D))*(1+.2*Math.cos(Wt*Jt[3]+16-D)),O=O*(1+.3*Math.sin(Wt*Jt[4]+87-D))*(1+.2*Math.cos(Wt*Jt[5]+25+D));switch(Yt=Bt=255<(Bt=Bt<0?0:Bt)?255:Bt,jt=Tt=255<(Tt=Tt<0?0:Tt)?255:Tt,$t=O=255<(O=O<0?0:O)?255:O,Kt){case 1:(()=>{var e,t,n,i;for(e=engine.getVisualData(null,It,0),n=Nt+32*e[0],t=0;t<It;t++)n=.9*n+.1*(Nt+32*e[t]),i=Math.floor(n),$t>Dt[i=It*i+t<<2]&&(Dt[i]=$t),jt>Dt[1+i]&&(Dt[1+i]=jt),Yt>Dt[2+i]&&(Dt[2+i]=Yt)})();break;case 2:(()=>{var e,t,n,i;for(e=engine.getVisualData(null,Ct,0),n=Lt+32*e[0],t=0;t<Ct;t++)n=.9*n+.1*(Lt+32*e[t]),i=Math.floor(n),$t>Dt[i=It*t+i<<2]&&(Dt[i]=$t),jt>Dt[1+i]&&(Dt[1+i]=jt),Yt>Dt[2+i]&&(Dt[2+i]=Yt)})();break;case 3:(()=>{var e,t,n,i,a,r;for(e=engine.getVisualData(null,364,0),t=0;t<50;t++)e[t]=(t*e[t]+(50-t)*e[314+t])/50;for(n=It/640*60,i=Math.floor(n+63.5*e[0]),t=0;t<314;t++)i=.5*i+.5*(n+63.5*e[t]),a=Math.floor(Lt+i*Math.cos(.02*t)),r=Math.floor(Nt+i*Math.sin(.02*t)),$t>Dt[r=It*r+a<<2]&&(Dt[r]=$t),jt>Dt[1+r]&&(Dt[1+r]=jt),Yt>Dt[2+r]&&(Dt[2+r]=Yt)})();break;case 4:(()=>{var e,t,n,i,a,r,o,s,l,u;for(l=engine.getVisualData(null,314,0),u=engine.getVisualData(null,314,1),s=Math.sin(.01*Wt),i=Math.cos(s),a=Math.sin(s),e=o=r=0;e<314;e++)r=.5*r+127*l[e]*.5,o=.5*o+127*u[e]*.5,t=Math.floor(r*i+o*a)+Lt,n=Math.floor(r*-a+o*i)+Nt,$t>Dt[n=It*n+t<<2]&&(Dt[n]=$t),jt>Dt[1+n]&&(Dt[1+n]=jt),Yt>Dt[2+n]&&(Dt[2+n]=Yt)})()}D=Ot;Ot=Dt,Dt=D}}function tn(){return Math.floor(32767*Math.random())}function f(){n&&(clearInterval(o),clearInterval(s),ui.removeResizeHandler(n),n.remove(),n=null,fullScreenVisualisationRunned=!1)}i.css({width:screen.width+"px",height:screen.height+"px"}),ui.isMobile||e.focus(),n.on("click",f),e.on("keydown",function(e){27==e.keyCode&&f()}),e.on("keypress",function(e){switch(String.fromCharCode(e.charCode)){case" ":t&&(en=t.paused()?(t.play(),!1):(t.pause(),!0));break;case"1":Kt=1,clearInterval(s);break;case"2":Kt=2,clearInterval(s);break;case"3":Kt=3,clearInterval(s);break;case"4":Kt=4,clearInterval(s);break;case"q":Gt=1,clearInterval(s);break;case"w":Gt=2,clearInterval(s);break;case"e":Gt=3,clearInterval(s);break;case"r":Gt=4,clearInterval(s);break;case"t":Gt=5,clearInterval(s);break;case"y":Gt=6,clearInterval(s);break;case"u":Gt=7,clearInterval(s);break;case"i":Gt=8,clearInterval(s);break;case"o":Gt=9,clearInterval(s)}}),setTimeout(function(){o=setInterval(h,20),s=setInterval(d,1e4);for(var e=0,t=It*Ct;e<t;e++)Ot[e]=0,Dt[e]=0;for(e=0;e<6;e++)Jt.push(tn()%1e3*.001*.01+.02);d()},50)},ui.runAudioScreensaverOld=function(){var re=600,oe=600,e=((q,V)=>{for(var a,e,r,o,t,s,l,u,c,F,f,H,z,d,n,i,h,p,L,_,v,g,m,N,b,w,y,W,X,Q,M,S=$('<div class="ui-audio-screensaver">\t<canvas class="ui-audio-screensaver-canvas"></canvas></div>'),A=($(document.body).append(S),4096),x=1,U=1,R=Math.floor(6144*Math.random()),Y=S.find(".ui-audio-screensaver-canvas"),E=Y[0],j=(E.width=re,E.height=oe,E.getContext("2d")),G=j.getImageData(0,0,E.width,E.height),k=G.data,P=((()=>{for(var e=0;e<oe;e++)for(var t=0;t<re;t++)k[3+(e*re+t<<2)]=255})(),new Uint8Array(A)),B=new Uint8Array(A),T=new Uint8Array(A),C=new Int32Array(36e4),I=new Int32Array(360001),Z=new Int32Array(36e4),O=new Int32Array(oe),D=0;D<oe;D++)O[D]=D*re;Y.css({width:screen.width+"px",height:screen.height+"px"});var K=36e4,J=(ie(),setInterval(function(){q()},100)),ee=setInterval(function(){for((()=>{for(o=0;o<oe;o++)for(r=0;r<re;r++)n=O[o]+r,C[n]*=U})(),(()=>{for(o=a=0;o<oe;o++)for(r=i=0;r<re;r++)I[a]=i,a++,i+=C[O[o]+r];for(h=re,p=0;h<K;)I[h]+=I[p],h++,p++;for(L=599-x,o=a=0;o<oe;o++)for(f=(m=oe-x<=o?599-o:x)-(g=o<x?-o:-x-1),g*=re,m*=re,r=0;r<re;r++)N=((v=L<r?599-r:x+1)-(_=r<x?-r:-x))*f,_+=a,v+=a,C[O[o]+r]+=(I[_+g]+I[v+m]-I[_+m]-I[v+g])/N,a++})(),(()=>{for(o=0;o<oe;o++)for(r=0;r<re;r++)n=O[o]+r,I[n]=C[Z[n]];for(a=0;a<C.length;a++)C[a]=I[a]})(),a=e=0;a<C.length;a++)t=C[a],k[e]=P[t],k[e+1]=B[t],k[e+2]=T[t],e+=4;j.putImageData(G,0,0)},40),te=setInterval(ie,100);function ne(){S&&(V(),clearInterval(J),clearInterval(ee),clearInterval(te),ui.removeResizeHandler(S),S.remove(),S=null,fullScreenVisualisationRunned=!1)}function ie(){for(R%=6144,a=0;a<A;a++){var e=256*a/A,t=a*a*256/A/A,n=a*a*a*256/A/A/A,i=R%1024;R<1024?(P[a]=Math.floor(e+(t-e)*i/1024),B[a]=Math.floor(t+(e-t)*i/1024),T[a]=Math.floor(n)):R<2048?(P[a]=Math.floor(t),B[a]=Math.floor(e+(n-e)*i/1024),T[a]=Math.floor(n+(e-n)*i/1024)):R<3072?(P[a]=Math.floor(t+(e-t)*i/1024),B[a]=Math.floor(n),T[a]=Math.floor(e+(t-e)*i/1024)):R<4096?(P[a]=Math.floor(e+(n-e)*i/1024),B[a]=Math.floor(n+(e-n)*i/1024),T[a]=Math.floor(t)):R<5120?(P[a]=Math.floor(n),B[a]=Math.floor(e+(t-e)*i/1024),T[a]=Math.floor(t+(e-t)*i/1024)):R<6144&&(P[a]=Math.floor(n+(e-n)*i/1024),B[a]=Math.floor(t),T[a]=Math.floor(e+(n-e)*i/1024))}R+=5}function ae(e,t,n,i){if(H=Math.abs(e-n),z=Math.abs(t-i),0!=(d=Math.max(H,z)))for(F=Math.floor((n-e<<16)/d),f=Math.floor((i-t<<16)/d),u=e<<16,c=t<<16;d;)l=c>>16,1<=(s=u>>16)&&s<re&&1<=l&&l<oe&&(C[O[l]+s]=4095),u+=F,c+=f,d--}return ui.fullScreenMode.enter(S,ne),fullScreenVisualisationRunned=!0,S.on("click",ne),{setBlur:function(e){x=e},setDarkness:function(e){U=e},setPolarMask:function(e,t,n,i){for(o=0;o<oe;o++)for(r=0;r<re;r++)y=r-e-.5,w=o-t-.5,b=Math.atan2(w,y),y=Math.hypot(y,w),y*=n,b+=i,w=Math.floor(y*Math.cos(b)+e),y=Math.floor(y*Math.sin(b)+t),Z[O[o]+r]=w<0||y<0||re<=w||oe<=y?I.length-1:y*re+w},drawLine:ae,drawPixel:function(e,t,n){0<=e&&e<re&&0<=t&&t<oe&&(C[O[t]+e]+=n)},drawHorizontalWave:function(e){for(W=engine.getVisualData(null,re,0),r=M=0;r<W.length;r++)M+=.5*(W[r]-M),o=Math.floor(300-M*e),0<r&&ae(X,Q,r,o),X=r,Q=o}}})(function(){e.drawHorizontalWave(60)},function(){});e.setPolarMask(300,300,.87,.04),e.setBlur(1),e.setDarkness(.47)},ui.fn.Playlist=ui.fn.UIPlaylist=function(e){var t=$(this),n=t.data("UIPlaylist");if(n)return ui.isObject(n)&&n.update(e),n;var s=$('<div class="ui-playlist ui-stuff ui-non-selectable">\t<div class="ui-playlist-items"></div>\t<div class="ui-playlist-bottom-panel">\t\t<div class="ui-playlist-bottom-left-panel">\t\t\t<div class="ui-playlist-add-button" data-ui-hint="Add more files">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 24V0h24v24H0z" fill="none"/><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/></svg>\t\t\t</div>\t\t\t<div class="ui-playlist-prev-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/></svg>\t\t\t</div>\t\t\t<div class="ui-playlist-next-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/></svg>\t\t\t</div>\t\t</div>\t\t<div class="ui-playlist-bottom-right-panel">\t\t\t<div class="ui-playlist-time-bar"></div>\t\t\t<div class="ui-playlist-extra-button">\t\t\t\t<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>\t\t\t</div>\t\t\t<div class="ui-playlist-visualization-box"><canvas width="64" height="20"></canvas></div>\t\t</div>\t</div></div>'),l=(t.append(s),e=ui.toObject(e),s.find(".ui-playlist-items")),i=s.find(".ui-playlist-time-bar"),a=e.player,r=!0,u=null,o=null,c=null,f=!1,d="#727272",h=initSmallVisualizationBox(s.find(".ui-playlist-visualization-box canvas"),a,{visType:2,color:"#000000"}),p=ui(s).dropFilesArea({onDropFiles:function(e){for(var t=0;t<e.length;t++)m(e[t])}}),_=ui(s.find(".ui-playlist-items")).dragSort({dragPlaceholderSelector:".ui-playlist-item-title",dragSortHandler:function(){}});function v(e){if((e=ui.toObject(e)).hasOwnProperty("mode")&&!function e(t){switch(t){case"simple":case"extended":r="extended"==t,s.toggleClass("ui-playlist-mode-extended"),p.update({disabled:!r}),_.update({disabled:!r});break;default:e("simple")}}(e.mode),e.hasOwnProperty("items"))for(var t=e.items,n=0;n<t.length;n++)g(t[n]);e.hasOwnProperty("equalizerColor")&&(d=e.equalizerColor)}function g(e,t){var n=$('<div class="ui-playlist-item">\t<div class="ui-playlist-item-play-button">\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t</div>\t<div class="ui-playlist-item-pause-button">\t\t<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\t</div>\t<div class="ui-playlist-item-title" data-ui-inplace-hint></div>\t<div class="ui-playlist-item-repeat-button">\t\t<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/></svg>\t</div>\t<div class="ui-playlist-item-progress">\t\t<div class="ui-playlist-item-progress-line">\t\t\t<div class="ui-playlist-item-position"></div>\t\t</div>\t</div></div>');n.data("itemData",e),n.find(".ui-playlist-item-title").text(ui.trim(e.title)||"Unknown"),l.append(n),t&&n.fadeIn(500)}function m(e){var t=e.name;g({title:t=(t=t.replace(/_+/g," ")).replace(/[.][\w]+$/,""),fileVar:e},!0)}function b(e){o=(u=e).find(".ui-playlist-item-position"),s.findAll(".ui-playlist-item-active").each(function(){$(this).removeClass("ui-playlist-item-active")}),s.findAll(".ui-playlist-item-paused").each(function(){$(this).removeClass("ui-playlist-item-paused")}),e.addClass("ui-playlist-item-paused");var t=e.data("itemData");t.hasOwnProperty("fileVar")?a.renderFileVariable(t.fileVar,function(){t.url=a.url(),a.play()}):t.hasOwnProperty("url")&&a.renderFile(t.url,function(){a.play()})}function w(e){var t=s.find(".ui-playlist-item-paused");0==(t=0==t.length?s.find(".ui-playlist-item-active"):t).length?b(t=s.find(".ui-playlist-item").eq(0)):(e=(t.index()+e+(t=l.children().length))%t,b(l.findAll(".ui-playlist-item").eq(e)))}function y(){var e,t;o&&(e=a.position(),t=a.duration()||1,o.css("width",100*e/t+"%"))}function M(){c&&(clearInterval(c),c=null)}function S(){var e=a.position(),t=a.duration();0<t?f?i.text("-"+ui.formatTime(t-e)+" / "+ui.formatTime(t)):i.text(ui.formatTime(e)+" / "+ui.formatTime(t)):i.text("")}e.hasOwnProperty("mode")||(e.mode=""),v(e),a.bindEvent(s,"onOpen",function(){s.addClass("ui-playlist-loading")}),a.bindEvent(s,"onLoad",function(){s.removeClass("ui-playlist-loading")}),a.bindEvent(s,"onPause",function(){s.findAll(".ui-playlist-item-active").each(function(){var e=$(this);e.removeClass("ui-playlist-item-active"),e.addClass("ui-playlist-item-paused")}),M(),h.stop()}),a.bindEvent(s,"onProgress",function(){S()}),a.bindEvent(s,"onPlay",function(){var n=a.url(),i=!1;s.findAll(".ui-playlist-item").each(function(){var e=$(this),t=e.data("itemData");t&&(t.url!=n?(e.removeClass("ui-playlist-item-paused"),e.removeClass("ui-playlist-item-repeat")):e.hasClass("ui-playlist-item-paused")&&(e.removeClass("ui-playlist-item-paused"),e.addClass("ui-playlist-item-active"),i=!0))}),i?(S(),M(),c=setInterval(y,200),y()):o=u=null,h.start()}),a.bindEvent(s,"onComplete",function(){u&&(u.hasClass("ui-playlist-item-repeat")?w(0):w(1))}),s.on("click",".ui-playlist-item-play-button",function(e){e.preventDefault();e=$(this).closest(".ui-playlist-item");e.hasClass("ui-playlist-item-paused")?a.play():b(e)}),s.on("click",".ui-playlist-item-pause-button",function(e){e.preventDefault(),a.pause()}),s.on("mousedown",".ui-playlist-item-progress",function(e){var t=$(this);a.seek(e.pageX-t.offset().left,t.outerWidth()),a.paused()&&y()}),s.on("click",".ui-playlist-item-repeat-button",function(){$(this).closest(".ui-playlist-item").removeClass("ui-playlist-item-repeat")}),s.on("click",".ui-playlist-add-button",function(){ui.showFileDialog({multiple:!0},function(e){for(var t=0;t<e.length;t++)m(e[t])})}),s.on("click",".ui-playlist-prev-button",function(){w(-1)}),s.on("click",".ui-playlist-next-button",function(){w(1)}),s.on("click",".ui-playlist-time-bar",function(){f=!f,S()}),s.on("click",".ui-playlist-extra-button",function(){s.find(".ui-playlist-bottom-panel").hasClass("ui-expanded")&&ui.closeAllPopups();var e=$('<div class="ui-playlist-extra-dropdown ui-stuff ui-non-selectable" data-ui-dropdown="tooltip-generic box-generic arrow-on to-bottom-center width-auto margin-1 anim-in-slide anim-out-slide">\t<div class="ui-playlist-extra-dropdown-buttons">\t\t<div class="ui-playlist-extra-dropdown-suffle-button">Shuffle</div>\t\t<div class="ui-playlist-extra-dropdown-repeat-current-button">Repeat current</div>\t</div></div>');ui.openDropdown(this,e,function(o){u||o.find(".ui-playlist-extra-dropdown-repeat-current-button").remove(),o.on("click",".ui-playlist-extra-dropdown-suffle-button",function(){for(var e=s.findAll(".ui-playlist-item"),t=e.length,n=u?u.index():-1,i=0;i<t;i++){var a=e.eq(i),r=e.eq(Math.floor(Math.random()*t));a.is(r)||a.detach().insertBefore(r)}u&&(u.detach(),n<(e=s.findAll(".ui-playlist-item")).length?u.insertBefore(s.findAll(".ui-playlist-item").eq(n)):l.append(u)),ui.closeDropdown(o)}),o.on("click",".ui-playlist-extra-dropdown-repeat-current-button",function(){u.toggleClass("ui-playlist-item-repeat"),ui.closeDropdown(o)})})}),s.on("click",".ui-playlist-visualization-box",function(){var e=$('<div class="ui-playlist-equalizer-dropdown ui-stuff" data-ui-dropdown="tooltip-generic box-generic arrow-off to-bottom-center width-612 margin-4 anim-in-slide anim-out-slide"></div>');ui.openDropdown(s.find(".ui-playlist-bottom-panel"),e,function(e,t){ui(e).Equalizer({player:a,color:d,visType:2,cookieName:a.dsp.getCookieName()}),t.onClose=function(){ui(e).destroy()}})});n={update:v,destroy:function(){p.destroy(),s.off(),s.remove(),t.removeData("UIPlaylist"),delete t[0].uiInterface}};return t.data("UIPlaylist",n),t[0].uiInterface=n},globals.openColorPicker=ui.openColorPicker=function(e,t){var n="tooltip-gray box-generic arrow-on to-bottom-right margin-2 anim-in-slide anim-out-slide",n=((t=ui.toObject(t)).hasOwnProperty("skin")&&(n=ui.toString(t.skin).replace(/[^-a-zA-Z0-9\s]/g,"")),$('<div class="ui-stuff" data-ui-dropdown="'+n+'">\t<div class="ui-color-picker-element"></div></div>'));ui.openDropdown(e,n,function(e){ui(e.find(".ui-color-picker-element")).colorPicker(t)})},ui.fn.colorPicker=function(e){var t=$(this),n=t.data("UIColorPicker");if(n)return n.update(e),n;for(var n=$('<div class="ui-color-picker ui-stuff">\t<div class="ui-color-picker-box">\t\t<div class="ui-color-picker-hues-panel">\t\t\t<canvas class="ui-color-picker-hues-canvas"></canvas>\t\t\t<div class="ui-color-picker-hues-panel-pointer"><div></div><div></div></div>\t\t</div>\t\t<div class="ui-color-picker-shades-panel" style="background-color: #ffffff">\t\t\t<canvas class="ui-color-picker-shades-canvas"></canvas>\t\t\t<div class="ui-color-picker-shades-panel-pointer"></div>\t\t</div>\t</div>\t<div class="ui-color-picker-hex-container">\t\t<div class="ui-color-picker-hex-field">\t\t\t<div class="ui-color-picker-hex-field-label">Hex:</div>\t\t\t<input class="ui-color-picker-hex-field-input-box" type="text"/>\t\t</div>\t</div>\t<div class="ui-color-picker-rgb-container">\t\t<div class="ui-color-picker-rgb-field">\t\t\t<div class="ui-color-picker-rgb-field-label">R:</div>\t\t\t<input class="ui-color-picker-rgb-field-input-box" data-tag="r" type="text"/>\t\t</div>\t\t<div class="ui-color-picker-rgb-field">\t\t\t<div class="ui-color-picker-rgb-field-label">G:</div>\t\t\t<input class="ui-color-picker-rgb-field-input-box" data-tag="g" type="text"/>\t\t</div>\t\t<div class="ui-color-picker-rgb-field">\t\t\t<div class="ui-color-picker-rgb-field-label">B:</div>\t\t\t<input class="ui-color-picker-rgb-field-input-box" data-tag="b" type="text"/>\t\t</div>\t</div>\t<div class="ui-color-picker-swatches">\t\t<div class="ui-color-picker-swatch ui-selected" style="background-color: #ffffff"></div>\t\t<div class="ui-color-picker-add-swatch-button"></div>\t</div></div>'),i=(t.append(n),n.find(".ui-color-picker-hues-panel-pointer")),r=n.find(".ui-color-picker-shades-panel"),a=n.find(".ui-color-picker-shades-panel-pointer"),o=n.find(".ui-color-picker-hex-field-input-box"),p=n.find(".ui-color-picker-rgb-field-input-box[data-tag=r]"),_=n.find(".ui-color-picker-rgb-field-input-box[data-tag=g]"),v=n.find(".ui-color-picker-rgb-field-input-box[data-tag=b]"),s=(n.find(".ui-color-picker-hues-canvas")[0],156),l=s-1,u=0,c=0,f=0,g=ui.Color(),d=null,h=null,m=null,b=null,w=ui.initGraph(n.find(".ui-color-picker-hues-canvas"),16,s),y=0;y<w.height;y++)for(var M=0;M<w.width;M++){var S=ui.Color.getHueColorByIndex(y,w.height-1);w.putPixel(M,y,S)}w.redraw();for(var A=ui.initGraph(n.find(".ui-color-picker-shades-canvas"),s,s),x=ui.Color(0,0,0,0),R=ui.Color(255,255,255),E=ui.Color(0,0,0),k=0;k<A.height;k++)for(var P=0;P<A.width;P++){var q=ui.Color.mix(ui.Color.mix(x,R,P,A.width-1),E,k,A.height-1);A.putPixel(P,k,q)}function B(e){b=e,g.setWebColor(o.val());e=g.getHSV();u=e.h,c=e.s,f=e.v,I(),b=null,O()}function T(e){b=e,g.r=ui.ensureRange(ui.toInt(p.val()),0,255),g.g=ui.ensureRange(ui.toInt(_.val()),0,255),g.b=ui.ensureRange(ui.toInt(v.val()),0,255);e=g.getHSV();u=e.h,c=e.s,f=e.v,I(),b=null,O()}function C(e){var t,n=!1;(e=ui.toObject(e)).hasOwnProperty("color")&&(t=e.color,t=(g=ui.Color(t)).getHSV(),u=t.h,c=t.s,f=t.v,n=!0),e.hasOwnProperty("onStartChanging")&&(d=e.onStartChanging?ui.toFunction(e.onStartChanging):null),e.hasOwnProperty("onChanging")&&(h=e.onChanging?ui.toFunction(e.onChanging):null),e.hasOwnProperty("onChange")&&(m=e.onChange?ui.toFunction(e.onChange):null),n&&I()}function I(){i.css("top",u*l/255+"px"),r.css("background-color","#"+ui.Color.getHueColorByIndex(u,255).getColorNumber()),a.css({left:l-c*l/255+"px",top:l-f*l/255+"px"}),g.setHSV({h:u,s:c,v:f}),"hex"!=b&&o.val("#"+g.getColorNumber()),"rgb"!=b&&(p.val(g.r),_.val(g.g),v.val(g.b))}function O(){h&&h({color:g})}function D(){m&&m({color:g})}A.redraw(),C(e),I(),n.on("mousedown touchstart",".ui-color-picker-hues-panel",function(e){var t;function n(e){e=ui.ensureRange(e.pageY-t,0,l);u=ui.ensureRange(255*e/l,0,255),I(),O()}ui.dragAndDrop({event:e,owner:this,cursor:"none",startDragging:function(e){d&&d(),t=r.offset().top,n(e)},processDragging:n,stopDragging:D})}),n.on("mousedown touchstart",".ui-color-picker-shades-panel",function(e){var n,i;function a(e){var t=ui.ensureRange(e.pageX-n,0,l),e=ui.ensureRange(e.pageY-i,0,l);c=ui.ensureRange(255*(l-t)/l,0,255),f=ui.ensureRange(255*(l-e)/l,0,255),I(),O()}ui.dragAndDrop({event:e,owner:this,cursor:"none",startDragging:function(e){d&&d();var t=r.offset();n=t.left,i=t.top,a(e)},processDragging:a,stopDragging:D})}),n.on("input",".ui-color-picker-hex-field-input-box",function(){B("hex")}),n.on("change",".ui-color-picker-hex-field-input-box",function(){B(null)}),n.on("input",".ui-color-picker-rgb-field-input-box",function(){T("rgb")}),n.on("change",".ui-color-picker-rgb-field-input-box",function(){T(null)}),n.on("change",".ui-color-picker-hex-field-input-box",function(){D()}),n.on("mousewheel",".ui-color-picker-rgb-field-input-box",function(e){var e=ui.getDeltaFromScrollEvent(e.originalEvent),t=$(this),n=ui.toInt(t.val()),e=0<e.y?n+1:n-1;(e=ui.ensureRange(e,0,255))!=n&&(t.val(e),T("rgb"))}),n.on("mousedown",".ui-color-picker-rgb-field-input-box",function(){var e=$(this),t="",h=e.attr("data-tag");switch(h){case"r":t="to-bottom-right";break;case"g":t="to-bottom-center";break;case"b":t="to-bottom-left"}var n=$('<div class="ui-color-component ui-stuff" data-ui-dropdown="tooltip-generic box-generic width-186 max-height-36 arrow-on '+t+' margin-2 anim-in-none anim-out-none">\t<div class="ui-color-component-box">\t\t<div class="ui-color-component-slider">\t\t\t<canvas class="ui-color-component-image"></canvas>\t\t\t<div class="ui-color-component-pointer"><div></div><div></div></div>\t\t</canvas>\t</div></div>');ui.openDropdown(e.closest(".ui-color-picker-rgb-field"),n,function(e){var t,n,i,a;switch(h){case"r":t=ui.Color(0,g.g,g.b),n=ui.Color(255,g.g,g.b),i=g.r,a=p;break;case"g":t=ui.Color(g.r,0,g.b),n=ui.Color(g.r,255,g.b),i=g.g,a=_;break;case"b":t=ui.Color(g.r,g.g,0),n=ui.Color(g.r,g.g,255),i=g.b,a=v}for(var r=ui.initGraph(e.find(".ui-color-component-image"),170,16),o=0;o<r.width;o++)for(var s=ui.Color.mix(t,n,o,r.width),l=0;l<r.height;l++)r.putPixel(o,l,s);r.redraw();var u=e.find(".ui-color-component-pointer"),c=(u.css("left",100*i/255+"%"),e.find(".ui-color-component-image")),f=c.offset().left,d=c.width()-1;e.on("mousedown touchstart",".ui-color-component-box",function(){function e(e){i=255*ui.ensureRange(e.pageX-f,0,d)/d,u.css("left",100*i/255+"%"),a.val(ui.toInt(i)),T("rgb")}ui.dragAndDrop({event:event,owner:this,cursor:"none",startDragging:e,processDragging:e,stopDragging:D})})})});s={update:C};return t.data("UIColorPicker",s),s},(e=>{e&&(e.fn.UIMediaPlayer=ui.fn.MediaPlayer,e.fn.UIWaveSurfer=ui.fn.WaveSurfer,e.fn.UIWaveform=ui.fn.Waveform,e.fn.UICircularSpectrum=ui.fn.CircularSpectrum,e.fn.UIPlayButton=ui.fn.PlayButton,e.fn.UIEqualizer=ui.fn.Equalizer,e.fn.UIPlaylist=ui.fn.Playlist,e.showFileDialog=ui.showFileDialog,e.generateWaveSurferCacheForAudioFile=ui.generateWaveSurferCacheForAudioFile,e.obtainWaveSurferSelectedAreaAsMP3=ui.obtainWaveSurferSelectedAreaAsMP3,e.obtainWaveSurferSelectedAreaAsWAV=ui.obtainWaveSurferSelectedAreaAsWAV,e.downloadWaveSurferSelectedAreaAsMP3=ui.downloadWaveSurferSelectedAreaAsMP3,e.downloadWaveSurferSelectedAreaAsWAV=ui.downloadWaveSurferSelectedAreaAsWAV)})(window.jQuery),globals.mediaEngineAbout=function(){alert("Media Engine "+engineVersion+"\nAuthor: Alex Zhyrytovskyi\n2019-2024")},globals.mediaEngineVersion=function(){return engineVersion},globals.mediaEngineError=function(e,t){ui.setError(e,t)}))}(window,window.jQuery),(()=>{function x(e){return new Int8Array(e)}function Ft(e){return new Int32Array(e)}function Ht(e){return new Float32Array(e)}function zt(e){if(1==e.length)return Ht(e[0]);var t=e[0];e=e.slice(1);for(var n=[],i=0;i<t;i++)n.push(zt(e));return n}function $(e){if(1==e.length)return Ft(e[0]);var t=e[0];e=e.slice(1);for(var n=[],i=0;i<t;i++)n.push($(e));return n}function _(e){if(1==e.length)return t=e[0],new Int16Array(t);var t,n=e[0];e=e.slice(1);for(var i=[],a=0;a<n;a++)i.push(_(e));return i}function U(e){if(1==e.length)return new Array(e[0]);var t=e[0];e=e.slice(1);for(var n=[],i=0;i<t;i++)n.push(U(e));return n}function Lt(e){this.ordinal=e}function Nt(e){this.ordinal=e}function Wt(e){var t=e;this.ordinal=function(){return t}}function y(){this.getLameVersion=function(){return"3.98.4"},this.getLameShortVersion=function(){return"3.98.4"},this.getLameVeryShortVersion=function(){return"LAME3.98r"},this.getPsyVersion=function(){return"0.93"},this.getLameUrl=function(){return"http://www.mp3dev.org/"},this.getLameOsBitness=function(){return"32bits"}}function G(){function _(e,t,n,i,a,r){for(;0!=a--;)n[i]=1e-10+e[t+0]*r[0]-n[i-1]*r[1]+e[t-1]*r[2]-n[i-2]*r[3]+e[t-2]*r[4]-n[i-3]*r[5]+e[t-3]*r[6]-n[i-4]*r[7]+e[t-4]*r[8]-n[i-5]*r[9]+e[t-5]*r[10]-n[i-6]*r[11]+e[t-6]*r[12]-n[i-7]*r[13]+e[t-7]*r[14]-n[i-8]*r[15]+e[t-8]*r[16]-n[i-9]*r[17]+e[t-9]*r[18]-n[i-10]*r[19]+e[t-10]*r[20],++i,++t}function v(e,t,n,i,a,r){for(;0!=a--;)n[i]=e[t+0]*r[0]-n[i-1]*r[1]+e[t-1]*r[2]-n[i-2]*r[3]+e[t-2]*r[4],++i,++t}function g(e){return e*e}var i=G.RMS_WINDOW_TIME_NUMERATOR,a=G.RMS_WINDOW_TIME_DENOMINATOR,m=[[.038575994352,-3.84664617118067,-.02160367184185,7.81501653005538,-.00123395316851,-11.34170355132042,-9291677959e-14,13.05504219327545,-.01655260341619,-12.28759895145294,.02161526843274,9.4829380631979,-.02074045215285,-5.87257861775999,.00594298065125,2.75465861874613,.00306428023191,-.86984376593551,.00012025322027,.13919314567432,.00288463683916],[.0541865640643,-3.47845948550071,-.02911007808948,6.36317777566148,-.00848709379851,-8.54751527471874,-.00851165645469,9.4769360780128,-.00834990904936,-8.81498681370155,.02245293253339,6.85401540936998,-.02596338512915,-4.39470996079559,.01624864962975,2.19611684890774,-.00240879051584,-.75104302451432,.00674613682247,.13149317958808,-.00187763777362],[.15457299681924,-2.37898834973084,-.09331049056315,2.84868151156327,-.06247880153653,-2.64577170229825,.02163541888798,2.23697657451713,-.05588393329856,-1.67148153367602,.04781476674921,1.00595954808547,.00222312597743,-.45953458054983,.03174092540049,.16378164858596,-.01390589421898,-.05032077717131,.00651420667831,.0234789740702,-.00881362733839],[.30296907319327,-1.61273165137247,-.22613988682123,1.0797749225997,-.08587323730772,-.2565625775407,.03282930172664,-.1627671912044,-.00915702933434,-.22638893773906,-.02364141202522,.39120800788284,-.00584456039913,-.22138138954925,.06276101321749,.04500235387352,-828086748e-14,.02005851806501,.00205861885564,.00302439095741,-.02950134983287],[.33642304856132,-1.49858979367799,-.2557224142557,.87350271418188,-.11828570177555,.12205022308084,.11921148675203,-.80774944671438,-.07834489609479,.47854794562326,-.0046997791438,-.12453458140019,-.0058950022444,-.04067510197014,.05724228140351,.08333755284107,.00832043980773,-.04237348025746,-.0163538138454,.02977207319925,-.0176017656815],[.4491525660845,-.62820619233671,-.14351757464547,.29661783706366,-.22784394429749,-.372563729424,-.01419140100551,.00213767857124,.04078262797139,-.42029820170918,-.12398163381748,.22199650564824,.04097565135648,.00613424350682,.10478503600251,.06747620744683,-.01863887810927,.05784820375801,-.03193428438915,.03222754072173,.00541907748707],[.56619470757641,-1.04800335126349,-.75464456939302,.29156311971249,.1624213774223,-.26806001042947,.16744243493672,.00819999645858,-.18901604199609,.45054734505008,.3093178284183,-.33032403314006,-.27562961986224,.0673936833311,.00647310677246,-.04784254229033,.08647503780351,.01639907836189,-.0378898455484,.01807364323573,-.00588215443421],[.58100494960553,-.51035327095184,-.53174909058578,-.31863563325245,-.14289799034253,-.20256413484477,.17520704835522,.1472815413433,.02377945217615,.38952639978999,.15558449135573,-.23313271880868,-.25344790059353,-.05246019024463,.01628462406333,-.02505961724053,.06920467763959,.02442357316099,-.03721611395801,.01818801111503,-.00749618797172],[.53648789255105,-.2504987195602,-.42163034350696,-.43193942311114,-.00275953611929,-.03424681017675,.04267842219415,-.04678328784242,-.10214864179676,.26408300200955,.14590772289388,.15113130533216,-.02459864859345,-.17556493366449,-.11202315195388,-.18823009262115,-.04060034127,.05477720428674,.0478866554818,.0470440968812,-.02217936801134]],b=[[.98621192462708,-1.97223372919527,-1.97242384925416,.97261396931306,.98621192462708],[.98500175787242,-1.96977855582618,-1.97000351574484,.9702284756635,.98500175787242],[.97938932735214,-1.95835380975398,-1.95877865470428,.95920349965459,.97938932735214],[.97531843204928,-1.95002759149878,-1.95063686409857,.95124613669835,.97531843204928],[.97316523498161,-1.94561023566527,-1.94633046996323,.94705070426118,.97316523498161],[.96454515552826,-1.92783286977036,-1.92909031105652,.93034775234268,.96454515552826],[.96009142950541,-1.91858953033784,-1.92018285901082,.92177618768381,.96009142950541],[.95856916599601,-1.9154210807478,-1.91713833199203,.91885558323625,.95856916599601],[.94597685600279,-1.88903307939452,-1.89195371200558,.89487434461664,.94597685600279]];this.InitGainAnalysis=function(e,t){return((e,t)=>{for(var n=0;n<MAX_ORDER;n++)e.linprebuf[n]=e.lstepbuf[n]=e.loutbuf[n]=e.rinprebuf[n]=e.rstepbuf[n]=e.routbuf[n]=0;switch(0|t){case 48e3:e.reqindex=0;break;case 44100:e.reqindex=1;break;case 32e3:e.reqindex=2;break;case 24e3:e.reqindex=3;break;case 22050:e.reqindex=4;break;case 16e3:e.reqindex=5;break;case 12e3:e.reqindex=6;break;case 11025:e.reqindex=7;break;case 8e3:e.reqindex=8;break;default:return INIT_GAIN_ANALYSIS_ERROR}return e.sampleWindow=0|(t*i+a-1)/a,e.lsum=0,e.rsum=0,e.totsamp=0,Qt.ill(e.A,0),INIT_GAIN_ANALYSIS_OK})(e,t)!=INIT_GAIN_ANALYSIS_OK?INIT_GAIN_ANALYSIS_ERROR:(e.linpre=MAX_ORDER,e.rinpre=MAX_ORDER,e.lstep=MAX_ORDER,e.rstep=MAX_ORDER,e.lout=MAX_ORDER,e.rout=MAX_ORDER,Qt.fill(e.B,0),INIT_GAIN_ANALYSIS_OK)},this.AnalyzeSamples=function(e,t,n,i,a,r,o){var s,l;if(0!=r){switch(l=0,s=r,o){case 1:i=t,a=n;break;case 2:break;default:return GAIN_ANALYSIS_ERROR}for(r<MAX_ORDER?(ee.arraycopy(t,n,e.linprebuf,MAX_ORDER,r),ee.arraycopy(i,a,e.rinprebuf,MAX_ORDER,r)):(ee.arraycopy(t,n,e.linprebuf,MAX_ORDER,MAX_ORDER),ee.arraycopy(i,a,e.rinprebuf,MAX_ORDER,MAX_ORDER));0<s;){u=s>e.sampleWindow-e.totsamp?e.sampleWindow-e.totsamp:s,l<MAX_ORDER?(c=e.linpre+l,f=e.linprebuf,d=e.rinpre+l,h=e.rinprebuf,u>MAX_ORDER-l&&(u=MAX_ORDER-l)):(c=n+l,f=t,d=a+l,h=i),_(f,c,e.lstepbuf,e.lstep+e.totsamp,u,m[e.reqindex]),_(h,d,e.rstepbuf,e.rstep+e.totsamp,u,m[e.reqindex]),v(e.lstepbuf,e.lstep+e.totsamp,e.loutbuf,e.lout+e.totsamp,u,b[e.reqindex]),v(e.rstepbuf,e.rstep+e.totsamp,e.routbuf,e.rout+e.totsamp,u,b[e.reqindex]);for(var u,c=e.lout+e.totsamp,f=e.loutbuf,d=e.rout+e.totsamp,h=e.routbuf,p=u%8;0!=p--;)e.lsum+=g(f[c++]),e.rsum+=g(h[d++]);for(p=u/8;0!=p--;)e.lsum+=g(f[c+0])+g(f[c+1])+g(f[c+2])+g(f[c+3])+g(f[c+4])+g(f[c+5])+g(f[c+6])+g(f[c+7]),c+=8,e.rsum+=g(h[d+0])+g(h[d+1])+g(h[d+2])+g(h[d+3])+g(h[d+4])+g(h[d+5])+g(h[d+6])+g(h[d+7]),d+=8;if(s-=u,l+=u,e.totsamp+=u,e.totsamp==e.sampleWindow&&((u=(u=10*G.STEPS_per_dB*Math.log10((e.lsum+e.rsum)/e.totsamp*.5+1e-37))<=0?0:0|u)>=e.A.length&&(u=e.A.length-1),e.A[u]++,e.lsum=e.rsum=0,ee.arraycopy(e.loutbuf,e.totsamp,e.loutbuf,0,MAX_ORDER),ee.arraycopy(e.routbuf,e.totsamp,e.routbuf,0,MAX_ORDER),ee.arraycopy(e.lstepbuf,e.totsamp,e.lstepbuf,0,MAX_ORDER),ee.arraycopy(e.rstepbuf,e.totsamp,e.rstepbuf,0,MAX_ORDER),e.totsamp=0),e.sampleWindow<e.totsamp)return GAIN_ANALYSIS_ERROR}r<MAX_ORDER?(ee.arraycopy(e.linprebuf,r,e.linprebuf,0,MAX_ORDER-r),ee.arraycopy(e.rinprebuf,r,e.rinprebuf,0,MAX_ORDER-r),ee.arraycopy(t,n,e.linprebuf,MAX_ORDER-r,r),ee.arraycopy(i,a,e.rinprebuf,MAX_ORDER-r,r)):(ee.arraycopy(t,n+r-MAX_ORDER,e.linprebuf,0,MAX_ORDER),ee.arraycopy(i,a+r-MAX_ORDER,e.rinprebuf,0,MAX_ORDER))}return GAIN_ANALYSIS_OK},this.GetTitleGain=function(e){for(var t=((e,t)=>{for(var n=0,i=0;i<t;i++)n+=e[i];if(0==n)return GAIN_NOT_ENOUGH_SAMPLES;var a=0|Math.ceil(n*(1-.95));for(i=t;0<i--&&!((a-=e[i])<=0););return 64.82-i/G.STEPS_per_dB})(e.A,e.A.length),n=0;n<e.A.length;n++)e.B[n]+=e.A[n],e.A[n]=0;for(n=0;n<MAX_ORDER;n++)e.linprebuf[n]=e.lstepbuf[n]=e.loutbuf[n]=e.rinprebuf[n]=e.rstepbuf[n]=e.routbuf[n]=0;return e.totsamp=0,e.lsum=e.rsum=0,t}}function M(){function e(e,t,n,i,a,r,o,s,l,u,c,f,d,h,p){this.vbr_q=e,this.quant_comp=t,this.quant_comp_s=n,this.expY=i,this.st_lrm=a,this.st_s=r,this.masking_adj=o,this.masking_adj_short=s,this.ath_lower=l,this.ath_curve=u,this.ath_sensitivity=c,this.interch=f,this.safejoint=d,this.sfb21mod=h,this.msfix=p}function t(e,t,n,i,a,r,o,s,l,u,c,f,d,h){this.quant_comp=t,this.quant_comp_s=n,this.safejoint=i,this.nsmsfix=a,this.st_lrm=r,this.st_s=o,this.nsbass=s,this.scale=l,this.masking_adj=u,this.ath_lower=c,this.ath_curve=f,this.interch=d,this.sfscale=h}function i(e,t,n){var i=e.VBR==Nt.vbr_rh?s:l,a=e.VBR_q_frac,r=i[t],i=i[t+1],o=r;r.st_lrm=r.st_lrm+a*(i.st_lrm-r.st_lrm),r.st_s=r.st_s+a*(i.st_s-r.st_s),r.masking_adj=r.masking_adj+a*(i.masking_adj-r.masking_adj),r.masking_adj_short=r.masking_adj_short+a*(i.masking_adj_short-r.masking_adj_short),r.ath_lower=r.ath_lower+a*(i.ath_lower-r.ath_lower),r.ath_curve=r.ath_curve+a*(i.ath_curve-r.ath_curve),r.ath_sensitivity=r.ath_sensitivity+a*(i.ath_sensitivity-r.ath_sensitivity),r.interch=r.interch+a*(i.interch-r.interch),r.msfix=r.msfix+a*(i.msfix-r.msfix),i=e,(r=o.vbr_q)<0&&(r=0),9<r&&(r=9),i.VBR_q=r,(i.VBR_q_frac=0)==n&&0<Math.abs(e.quant_comp- -1)||(e.quant_comp=o.quant_comp),0==n&&0<Math.abs(e.quant_comp_short- -1)||(e.quant_comp_short=o.quant_comp_s),0!=o.expY&&(e.experimentalY=0!=o.expY),0==n&&0<Math.abs(e.internal_flags.nsPsy.attackthre- -1)||(e.internal_flags.nsPsy.attackthre=o.st_lrm),0==n&&0<Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)||(e.internal_flags.nsPsy.attackthre_s=o.st_s),0==n&&0<Math.abs(+e.maskingadjust)||(e.maskingadjust=o.masking_adj),0==n&&0<Math.abs(+e.maskingadjust_short)||(e.maskingadjust_short=o.masking_adj_short),0==n&&0<Math.abs(10*-e.ATHlower)||(e.ATHlower=-o.ath_lower/10),0==n&&0<Math.abs(e.ATHcurve- -1)||(e.ATHcurve=o.ath_curve),0==n&&0<Math.abs(e.athaa_sensitivity- -1)||(e.athaa_sensitivity=o.ath_sensitivity),0<o.interch&&(0==n&&0<Math.abs(e.interChRatio- -1)||(e.interChRatio=o.interch)),0<o.safejoint&&(e.exp_nspsytune=e.exp_nspsytune|o.safejoint),0<o.sfb21mod&&(e.exp_nspsytune=e.exp_nspsytune|o.sfb21mod<<20),0==n&&0<Math.abs(e.msfix- -1)||(e.msfix=o.msfix),0==n&&(e.VBR_q=t,e.VBR_q_frac=a)}function a(e,t,n){var i=t,a=r.nearestBitrateFullIndex(t);return e.VBR=Nt.vbr_abr,e.VBR_mean_bitrate_kbps=i,e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320),e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.brate=e.VBR_mean_bitrate_kbps,320<e.VBR_mean_bitrate_kbps&&(e.disable_reservoir=!0),0<o[a].safejoint&&(e.exp_nspsytune=2|e.exp_nspsytune),0<o[a].sfscale&&(e.internal_flags.noise_shaping=2),0<Math.abs(o[a].nsbass)&&((i=int(4*o[a].nsbass))<0&&(i+=64),e.exp_nspsytune=e.exp_nspsytune|i<<2),0==n&&0<Math.abs(e.quant_comp- -1)||(e.quant_comp=o[a].quant_comp),0==n&&0<Math.abs(e.quant_comp_short- -1)||(e.quant_comp_short=o[a].quant_comp_s),0==n&&0<Math.abs(e.msfix- -1)||(e.msfix=o[a].nsmsfix),0==n&&0<Math.abs(e.internal_flags.nsPsy.attackthre- -1)||(e.internal_flags.nsPsy.attackthre=o[a].st_lrm),0==n&&0<Math.abs(e.internal_flags.nsPsy.attackthre_s- -1)||(e.internal_flags.nsPsy.attackthre_s=o[a].st_s),0==n&&0<Math.abs(e.scale- -1)||(e.scale=o[a].scale),0==n&&0<Math.abs(+e.maskingadjust)||(e.maskingadjust=o[a].masking_adj),0<o[a].masking_adj?0==n&&0<Math.abs(+e.maskingadjust_short)||(e.maskingadjust_short=.9*o[a].masking_adj):0==n&&0<Math.abs(+e.maskingadjust_short)||(e.maskingadjust_short=1.1*o[a].masking_adj),0==n&&0<Math.abs(10*-e.ATHlower)||(e.ATHlower=-o[a].ath_lower/10),0==n&&0<Math.abs(e.ATHcurve- -1)||(e.ATHcurve=o[a].ath_curve),0==n&&0<Math.abs(e.interChRatio- -1)||(e.interChRatio=o[a].interch),t}this.setModules=function(e){r=e};var r,s=[new e(0,9,9,0,5.2,125,-4.2,-6.3,4.8,1,0,0,2,21,.97),new e(1,9,9,0,5.3,125,-3.6,-5.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,5.6,125,-2.2,-3.5,2.8,2,0,0,2,21,1.49),new e(3,9,9,1,5.8,130,-1.8,-2.8,2.6,3,-4,0,2,20,1.64),new e(4,9,9,1,6,135,-.7,-1.1,1.1,3.5,-8,0,2,0,1.79),new e(5,9,9,1,6.4,140,.5,.4,-7.5,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,6.6,145,.67,.65,-14.7,6.5,-19,4e-4,0,0,2.3),new e(7,9,9,1,6.6,145,.8,.75,-19.7,8,-22,6e-4,0,0,2.7),new e(8,9,9,1,6.6,145,1.2,1.15,-27.5,10,-23,7e-4,0,0,0),new e(9,9,9,1,6.6,145,1.6,1.6,-36,11,-25,8e-4,0,0,0),new e(10,9,9,1,6.6,145,2,2,-36,12,-25,8e-4,0,0,0)],l=[new e(0,9,9,0,4.2,25,-7,-4,7.5,1,0,0,2,26,.97),new e(1,9,9,0,4.2,25,-5.6,-3.6,4.5,1.5,0,0,2,21,1.35),new e(2,9,9,0,4.2,25,-4.4,-1.8,2,2,0,0,2,18,1.49),new e(3,9,9,1,4.2,25,-3.4,-1.25,1.1,3,-4,0,2,15,1.64),new e(4,9,9,1,4.2,25,-2.2,.1,0,3.5,-8,0,2,0,1.79),new e(5,9,9,1,4.2,25,-1,1.65,-7.7,4,-12,2e-4,0,0,1.95),new e(6,9,9,1,4.2,25,-0,2.47,-7.7,6.5,-19,4e-4,0,0,2),new e(7,9,9,1,4.2,25,.5,2,-14.5,8,-22,6e-4,0,0,2),new e(8,9,9,1,4.2,25,1,2.4,-22,10,-23,7e-4,0,0,2),new e(9,9,9,1,4.2,25,1.5,2.95,-30,11,-25,8e-4,0,0,2),new e(10,9,9,1,4.2,25,2,2.95,-36,12,-30,8e-4,0,0,2)],o=[new t(0,9,9,0,0,6.6,145,0,.95,0,-30,11,.0012,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-25,11,.001,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-20,11,.001,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-15,11,.001,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-10,11,9e-4,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-6,11,8e-4,1),new t(0,9,9,0,0,6.6,145,0,.95,0,-2,11,8e-4,1),new t(0,9,9,0,0,6.6,145,0,.95,0,0,8,7e-4,1),new t(0,9,9,0,2.5,6.6,145,0,.95,0,1,5.5,6e-4,1),new t(0,9,9,0,2.25,6.6,145,0,.95,0,2,4.5,5e-4,1),new t(0,9,9,0,1.95,6.4,140,0,.95,0,3,4,2e-4,1),new t(0,9,9,1,1.79,6,135,0,.95,-2,5,3.5,0,1),new t(0,9,9,1,1.49,5.6,125,0,.97,-4,7,3,0,0),new t(0,9,9,1,1.25,5.2,125,0,.98,-6,9,2,0,0),new t(0,9,9,1,.97,5.2,125,0,1,-8,10,1,0,0),new t(0,9,9,1,.9,5.2,125,0,1,-10,12,0,0,0)];this.apply_preset=function(e,t,n){switch(t){case R.R3MIX:t=R.V3,e.VBR=Nt.vbr_mtrh;break;case R.MEDIUM:t=R.V4,e.VBR=Nt.vbr_rh;break;case R.MEDIUM_FAST:t=R.V4,e.VBR=Nt.vbr_mtrh;break;case R.STANDARD:t=R.V2,e.VBR=Nt.vbr_rh;break;case R.STANDARD_FAST:t=R.V2,e.VBR=Nt.vbr_mtrh;break;case R.EXTREME:t=R.V0,e.VBR=Nt.vbr_rh;break;case R.EXTREME_FAST:t=R.V0,e.VBR=Nt.vbr_mtrh;break;case R.INSANE:return e.preset=t=320,a(e,t,n),e.VBR=Nt.vbr_off,t}switch(e.preset=t){case R.V9:return i(e,9,n),t;case R.V8:return i(e,8,n),t;case R.V7:return i(e,7,n),t;case R.V6:return i(e,6,n),t;case R.V5:return i(e,5,n),t;case R.V4:return i(e,4,n),t;case R.V3:return i(e,3,n),t;case R.V2:return i(e,2,n),t;case R.V1:return i(e,1,n),t;case R.V0:return i(e,0,n),t}return 8<=t&&t<=320?a(e,t,n):(e.preset=0,t)}}function E(){function P(e){this.bits=0|e}function C(e,t,n,i,a,r){var o=.5946/t;for(e>>=1;0!=e--;)a[r++]=o>n[i++]?0:1,a[r++]=o>n[i++]?0:1}function I(e,t,n,i,a,r){var o,s,l,u,c,f,d=(e>>=1)%2;for(e>>=1;0!=e--;)c=n[i++]*t,f=n[i++]*t,o=n[i++]*t,s=n[i++]*t,l=0|o,c+=O.adj43[0|c],u=0|s,f+=O.adj43[0|f],a[r++]=0|c,o+=O.adj43[l],a[r++]=0|f,s+=O.adj43[u],a[r++]=0|o,a[r++]=0|s;0!=d&&(c=n[i++]*t,f=n[i++]*t,c+=O.adj43[0|c],f+=O.adj43[0|f],a[r++]=0|c,a[r++]=0|f)}function B(e,t,n,i){var a,r,o=((e,t,n)=>{var i=0,a=0;do{var r=e[t++],o=e[t++]}while(i<r&&(i=r),a<o&&(a=o),t<n);return i=i<a?a:i})(e,t,n);switch(o){case 0:return o;case 1:var s=e,l=t,u=n,c=i,f=0,d=te.ht[1].hlen;do{var h=2*s[l+0]+s[l+1]}while(f+=d[h],(l+=2)<u);return c.bits+=f,1;case 2:case 3:var p=e,_=t,v=n,c=Q[o-1],g=i,m=0,b=te.ht[c].xlen,q=2==c?te.table23:te.table56;do{var V=p[_+0]*b+p[_+1]}while(m+=q[V],(_+=2)<v);return(M=65535&m)<(m>>=16)&&(m=M,c++),g.bits+=m,c;case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:var w=e,y=t,F=n,M=Q[o-1],g=i,S=0,A=0,x=0,H=te.ht[M].xlen,z=te.ht[M].hlen,L=te.ht[M+1].hlen,N=te.ht[M+2].hlen;do{var R=w[y+0]*H+w[y+1]}while(S+=z[R],A+=L[R],x+=N[R],(y+=2)<F);var E=M;return A<S&&(S=A,E++),x<S&&(S=x,E=M+2),g.bits+=S,E;default:if(Y.IXMAX_VAL<o)return i.bits=Y.LARGE_BITS,-1;for(o-=15,a=24;a<32&&!(te.ht[a].linmax>=o);a++);for(r=a-8;r<24&&!(te.ht[r].linmax>=o);r++);var k,P=e,B=t,W=n,E=r,T=a,X=i,C=65536*te.ht[E].xlen+te.ht[T].xlen,I=0;do{var O=P[B++],D=P[B++]}while(0!=O&&(14<O&&(O=15,I+=C),O*=16),0!=D&&(14<D&&(D=15,I+=C),O+=D),I+=te.largetbl[O],B<W);return(k=65535&I)<(I>>=16)&&(I=k,E=T),X.bits+=I,E}}function T(e,t,n,i,a,r,o,s){for(var l=t.big_values,u=2;u<Xt.SBMAX_l+1;u++){var c=e.scalefac_band.l[u];if(l<=c)break;var f=a[u-2]+t.count1bits;if(n.part2_3_length<=f)break;var d=new P(f),c=B(i,c,l,d),f=d.bits;n.part2_3_length<=f||(n.assign(t),n.part2_3_length=f,n.region0_count=r[u-2],n.region1_count=u-2-r[u-2],n.table_select[0]=o[u-2],n.table_select[1]=s[u-2],n.table_select[2]=c)}}var O=null,a=(this.qupvt=null,this.setModules=function(e){this.qupvt=e,O=e},[[0,0],[0,0],[0,0],[0,0],[0,0],[0,1],[1,1],[1,1],[1,2],[2,2],[2,3],[2,3],[3,4],[3,4],[3,4],[4,5],[4,5],[4,6],[5,6],[5,6],[5,7],[6,7],[6,7]]),Q=[1,2,5,7,7,10,10,13,13,13,13,13,13,13,13],S=(this.noquant_count_bits=function(e,t,n){var i=t.l3_enc,a=Math.min(576,t.max_nonzero_coeff+2>>1<<1);for(null!=n&&(n.sfb_count1=0);1<a&&0==(i[a-1]|i[a-2]);a-=2);t.count1=a;for(var r,o=0,s=0;3<a;a-=4){if(1<(2147483647&(i[a-1]|i[a-2]|i[a-3]|i[a-4])))break;r=2*(2*(2*i[a-4]+i[a-3])+i[a-2])+i[a-1],o+=te.t32l[r],s+=te.t33l[r]}var l,u=o;if((t.count1table_select=0,s<o&&(u=s,t.count1table_select=1),t.count1bits=u,0!=(t.big_values=a))&&(t.block_type==Xt.SHORT_TYPE?((o=3*e.scalefac_band.s[3])>t.big_values&&(o=t.big_values),s=t.big_values):t.block_type==Xt.NORM_TYPE?(o=t.region0_count=e.bv_scf[a-2],s=t.region1_count=e.bv_scf[a-1],s=e.scalefac_band.l[o+s+2],o=e.scalefac_band.l[o+1],s<a&&(l=new P(u),t.table_select[2]=B(i,s,a,l),u=l.bits)):(t.region0_count=7,t.region1_count=Xt.SBMAX_l-1-7-1,(s=a)<(o=e.scalefac_band.l[8])&&(o=s)),o=Math.min(o,a),s=Math.min(s,a),0<o&&(l=new P(u),t.table_select[0]=B(i,0,o,l),u=l.bits),o<s&&(l=new P(u),t.table_select[1]=B(i,o,s,l),u=l.bits),2==e.use_best_huffman&&(t.part2_3_length=u,best_huffman_divide(e,t),u=t.part2_3_length),null!=n&&t.block_type==Xt.NORM_TYPE)){for(var c=0;e.scalefac_band.l[c]<t.big_values;)c++;n.sfb_count1=c}return u},this.count_bits=function(e,t,n,i){var a=n.l3_enc,r=Y.IXMAX_VAL/O.IPOW20(n.global_gain);if(n.xrpow_max>r)return Y.LARGE_BITS;for(var o=t,s=a,l=O.IPOW20(n.global_gain),u=n,c=i,f=0,d=0,h=0,p=0,_=s,v=0,g=_,m=0,b=o,w=0,y=null!=c&&u.global_gain==c.global_gain,M=u.block_type==Xt.SHORT_TYPE?38:21,S=0;S<=M;S++){var A=-1;if(!y&&u.block_type!=Xt.NORM_TYPE||(A=u.global_gain-(u.scalefac[S]+(0!=u.preflag?O.pretab[S]:0)<<u.scalefac_scale+1)-8*u.subblock_gain[u.window[S]]),y&&c.step[S]==A)0!=d&&(I(d,l,b,w,g,m),d=0),0!=h&&(C(h,l,b,w,g,m),h=0);else{var x,R=u.width[S];if(f+u.width[S]>u.max_nonzero_coeff&&(x=u.max_nonzero_coeff-f+1,Qt.fill(s,u.max_nonzero_coeff,576,0),(R=x)<0&&(R=0),S=1+M),0==d&&0==h&&(g=_,m=v,b=o,w=p),null!=c&&0<c.sfb_count1&&S>=c.sfb_count1&&0<c.step[S]&&A>=c.step[S]?(0!=d&&(I(d,l,b,w,g,m),d=0,g=_,m=v,b=o,w=p),h+=R):(0!=h&&(C(h,l,b,w,g,m),h=0,g=_,m=v,b=o,w=p),d+=R),R<=0){0!=h&&(C(h,l,b,w,g,m),h=0),0!=d&&(I(d,l,b,w,g,m),d=0);break}}S<=M&&(v+=u.width[S],p+=u.width[S],f+=u.width[S])}if(0!=d&&(I(d,l,b,w,g,m),d=0),0!=h&&C(h,l,b,w,g,m),0!=(2&e.substep_shaping))for(var E=0,r=n.global_gain+n.scalefac_scale,k=.634521682242439/O.IPOW20(r),P=0;P<n.sfbmax;P++){var B=n.width[P];if(0==e.pseudohalf[P])E+=B;else{var T=E;for(E+=B;T<E;++T)a[T]=t[T]>=k?a[T]:0}}return this.noquant_count_bits(e,n,i)},this.best_huffman_divide=function(e,t){var n=new F,i=t.l3_enc,a=Ft(23),r=Ft(23),o=Ft(23),s=Ft(23);if(t.block_type!=Xt.SHORT_TYPE||1!=e.mode_gr){if(n.assign(t),t.block_type==Xt.NORM_TYPE){{var l=e;var u=t;var c=i;var f=a;var d=r;var h=o;var p=s;for(var _=u.big_values,v=0;v<=22;v++)f[v]=Y.LARGE_BITS;for(v=0;v<16;v++){var g=l.scalefac_band.l[v+1];if(_<=g)break;for(var m=B(c,0,g,M=new P(0)),b=M.bits,w=0;w<8;w++){var y=l.scalefac_band.l[v+w+2];if(_<=y)break;var M,y=B(c,g,y,M=new P(b)),S=M.bits;f[v+w]>S&&(f[v+w]=S,h[(d[v+w]=v)+w]=m,p[v+w]=y)}}}T(e,n,t,i,a,r,o,s)}var A=n.big_values;if(!(0==A||1<(i[A-2]|i[A-1])||576<(A=t.count1+2))){n.assign(t),n.count1=A;for(var x,R=0,E=0;A>n.big_values;A-=4){var k=2*(2*(2*i[A-4]+i[A-3])+i[A-2])+i[A-1];R+=te.t32l[k],E+=te.t33l[k]}n.big_values=A,n.count1table_select=0,E<R&&(R=E,n.count1table_select=1),n.count1bits=R,n.block_type==Xt.NORM_TYPE?T(e,n,t,i,a,r,o,s):(n.part2_3_length=R,0<(R=A<(R=e.scalefac_band.l[8])?A:R)&&(x=new P(n.part2_3_length),n.table_select[0]=B(i,0,R,x),n.part2_3_length=x.bits),R<A&&(x=new P(n.part2_3_length),n.table_select[1]=B(i,R,A,x),n.part2_3_length=x.bits),t.part2_3_length>n.part2_3_length&&t.assign(n))}}},[1,1,1,1,8,2,2,2,4,4,4,8,8,8,16,16]),A=[1,2,4,8,1,2,4,8,2,4,8,2,4,8,4,8],x=[0,0,0,0,3,1,1,1,2,2,2,3,3,3,4,4],R=[0,1,2,3,0,1,2,3,1,2,3,1,2,3,2,3],s=(E.slen1_tab=x,E.slen2_tab=R,this.best_scalefac_store=function(e,t,n,i){var a,r,o=i.tt[t][n],s=0,l=0;for(f=0;f<o.sfbmax;f++){var u=o.width[f];for(l+=u,r=-u;r<0&&0==o.l3_enc[r+l];r++);0==r&&(o.scalefac[f]=s=-2)}if(0==o.scalefac_scale&&0==o.preflag){for(var c=0,f=0;f<o.sfbmax;f++)0<o.scalefac[f]&&(c|=o.scalefac[f]);if(0==(1&c)&&0!=c){for(f=0;f<o.sfbmax;f++)0<o.scalefac[f]&&(o.scalefac[f]>>=1);o.scalefac_scale=s=1}}if(0==o.preflag&&o.block_type!=Xt.SHORT_TYPE&&2==e.mode_gr){for(f=11;f<Xt.SBPSY_l&&!(o.scalefac[f]<O.pretab[f]&&-2!=o.scalefac[f]);f++);if(f==Xt.SBPSY_l){for(f=11;f<Xt.SBPSY_l;f++)0<o.scalefac[f]&&(o.scalefac[f]-=O.pretab[f]);o.preflag=s=1}}for(a=0;a<4;a++)i.scfsi[n][a]=0;if(2==e.mode_gr&&1==t&&i.tt[0][n].block_type!=Xt.SHORT_TYPE&&i.tt[1][n].block_type!=Xt.SHORT_TYPE){for(var d=n,h=i,p=h.tt[1][d],_=h.tt[0][d],v=0;v<te.scfsi_band.length-1;v++){for(b=te.scfsi_band[v];b<te.scfsi_band[v+1]&&!(_.scalefac[b]!=p.scalefac[b]&&0<=p.scalefac[b]);b++);if(b==te.scfsi_band[v+1]){for(b=te.scfsi_band[v];b<te.scfsi_band[v+1];b++)p.scalefac[b]=-1;h.scfsi[d][v]=1}}for(var g=0,m=0,b=0;b<11;b++)-1!=p.scalefac[b]&&(m++,g<p.scalefac[b])&&(g=p.scalefac[b]);for(var w=0,y=0;b<Xt.SBPSY_l;b++)-1!=p.scalefac[b]&&(y++,w<p.scalefac[b])&&(w=p.scalefac[b]);for(var M,v=0;v<16;v++)g<S[v]&&w<A[v]&&p.part2_length>(M=x[v]*m+R[v]*y)&&(p.part2_length=M,p.scalefac_compress=v);s=0}for(f=0;f<o.sfbmax;f++)-2==o.scalefac[f]&&(o.scalefac[f]=0);0!=s&&(2==e.mode_gr?this.scale_bitcount(o):this.scale_bitcount_lsf(e,o))},[0,18,36,54,54,36,54,72,54,72,90,72,90,108,108,126]),l=[0,18,36,54,51,35,53,71,52,70,88,69,87,105,104,122],u=[0,10,20,30,33,21,31,41,32,42,52,43,53,63,64,74],g=(this.scale_bitcount=function(e){var t,n,i,a=0,r=0,o=e.scalefac;if(e.block_type==Xt.SHORT_TYPE)i=s,0!=e.mixed_block_flag&&(i=l);else if(i=u,0==e.preflag){for(n=11;n<Xt.SBPSY_l&&!(o[n]<O.pretab[n]);n++);if(n==Xt.SBPSY_l)for(e.preflag=1,n=11;n<Xt.SBPSY_l;n++)o[n]-=O.pretab[n]}for(n=0;n<e.sfbdivide;n++)a<o[n]&&(a=o[n]);for(;n<e.sfbmax;n++)r<o[n]&&(r=o[n]);for(e.part2_length=Y.LARGE_BITS,t=0;t<16;t++)a<S[t]&&r<A[t]&&e.part2_length>i[t]&&(e.part2_length=i[t],e.scalefac_compress=t);return e.part2_length==Y.LARGE_BITS},[[15,15,7,7],[15,15,7,0],[7,3,0,0],[15,31,31,0],[7,7,7,0],[3,3,0,0]]),m=(this.scale_bitcount_lsf=function(e,t){for(var n,i,a,r,o,s,l,u=Ft(4),c=t.scalefac,f=0!=t.preflag?2:0,d=0;d<4;d++)u[d]=0;if(t.block_type==Xt.SHORT_TYPE)for(var h=1,p=O.nr_of_sfb_block[f][h],_=0,v=0;v<4;v++)for(n=p[v]/3,d=0;d<n;d++,_++)for(i=0;i<3;i++)c[3*_+i]>u[v]&&(u[v]=c[3*_+i]);else{p=O.nr_of_sfb_block[f][h=0];for(v=_=0;v<4;v++)for(n=p[v],d=0;d<n;d++,_++)c[_]>u[v]&&(u[v]=c[_])}for(a=!1,v=0;v<4;v++)u[v]>g[f][v]&&(a=!0);if(!a){for(t.sfb_partition_table=O.nr_of_sfb_block[f][h],v=0;v<4;v++)t.slen[v]=m[u[v]];switch(r=t.slen[0],o=t.slen[1],s=t.slen[2],l=t.slen[3],f){case 0:t.scalefac_compress=(5*r+o<<4)+(s<<2)+l;break;case 1:t.scalefac_compress=400+(5*r+o<<2)+s;break;case 2:t.scalefac_compress=500+3*r+o;break;default:ee.err.printf("intensity stereo not implemented yet\n")}}if(!a)for(v=t.part2_length=0;v<4;v++)t.part2_length+=t.slen[v]*t.sfb_partition_table[v];return a},[0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4]);this.huffman_init=function(e){for(var t=2;t<=576;t+=2){for(var n,i=0;e.scalefac_band.l[++i]<t;);for(n=a[i][0];e.scalefac_band.l[n+1]>t;)n--;for(n<0&&(n=a[i][0]),e.bv_scf[t-2]=n,n=a[i][1];e.scalefac_band.l[n+e.bv_scf[t-2]+2]>t;)n--;n<0&&(n=a[i][1]),e.bv_scf[t-1]=n}}}function A(){var s;this.setModules=function(e){s=e},this.ResvFrameBegin=function(e,t){var n,i=e.internal_flags,a=i.l3_side,r=s.getframebits(e),o=(t.bits=(r-8*i.sideinfo_len)/i.mode_gr,2048*i.mode_gr-8),r=(320<e.brate?n=8*int(1e3*e.brate/(e.out_samplerate/1152)/8+.5):(n=11520,e.strict_ISO&&(n=8*int(32e4/(e.out_samplerate/1152)/8+.5))),i.ResvMax=n-r,i.ResvMax>o&&(i.ResvMax=o),(i.ResvMax<0||e.disable_reservoir)&&(i.ResvMax=0),t.bits*i.mode_gr+Math.min(i.ResvSize,i.ResvMax));return n<r&&(r=n),a.resvDrain_pre=0,null!=i.pinfo&&(i.pinfo.mean_bits=t.bits/2,i.pinfo.resvsize=i.ResvSize),r},this.ResvMaxBits=function(e,t,n,i){var a,r=e.internal_flags,o=r.ResvSize,s=r.ResvMax,i=(0!=i&&(o+=t),0!=(1&r.substep_shaping)&&(s*=.9),n.bits=t,9*s<10*o?(n.bits+=a=o-9*s/10,r.substep_shaping|=128):(a=0,r.substep_shaping&=127,e.disable_reservoir||0!=(1&r.substep_shaping)||(n.bits-=.1*t)),o<6*r.ResvMax/10?o:6*r.ResvMax/10);return i=(i-=a)<0?0:i},this.ResvAdjust=function(e,t){e.ResvSize-=t.part2_3_length+t.part2_length},this.ResvFrameEnd=function(e,t){var n=e.l3_side,t=(e.ResvSize+=t*e.mode_gr,0),i=(n.resvDrain_post=0,(n.resvDrain_pre=0)!=(i=e.ResvSize%8)&&(t+=i),0<(i=e.ResvSize-t-e.ResvMax)&&(t+=i),Math.min(8*n.main_data_begin,t)/8);n.resvDrain_pre+=8*i,t-=8*i,e.ResvSize-=8*i,n.main_data_begin-=i,n.resvDrain_post+=t,e.ResvSize-=t}}function Z(){function v(e,t,n){for(;0<n;)0==A&&(A=8,S++,e.header[e.w_ptr].write_timing==M&&(i=e,ee.arraycopy(i.header[i.w_ptr].buf,0,y,S,i.sideinfo_len),S+=i.sideinfo_len,M+=8*i.sideinfo_len,i.w_ptr=i.w_ptr+1&K.MAX_HEADER_BUF-1),y[S]=0),n-=i=Math.min(n,A),A-=i,y[S]|=t>>n<<A,M+=i;var i}function h(e,t){var n,i=e.internal_flags;if(8<=t&&(v(i,76,8),t-=8),8<=t&&(v(i,65,8),t-=8),8<=t&&(v(i,77,8),t-=8),8<=t&&(v(i,69,8),t-=8),32<=t){var a=r.getLameShortVersion();if(32<=t)for(n=0;n<a.length&&8<=t;++n)t-=8,v(i,a.charAt(n),8)}for(;1<=t;--t)v(i,i.ancillary_flag,1),i.ancillary_flag^=e.disable_reservoir?0:1}function p(e,t,n){for(var i=e.header[e.h_ptr].ptr;0<n;){var a=Math.min(n,8-(7&i));n-=a,e.header[e.h_ptr].buf[i>>3]|=t>>n<<8-(7&i)-a,i+=a}e.header[e.h_ptr].ptr=i}function a(e,t){e<<=8;for(var n=0;n<8;n++)0!=(65536&((t<<=1)^(e<<=1)))&&(t^=32773);return t}function g(e,t){for(var n=te.ht[t.count1table_select+32],i=0,a=t.big_values,r=t.big_values,o=(t.count1-t.big_values)/4;0<o;--o){var s=0,l=0,u=t.l3_enc[a+0];0!=u&&(l+=8,t.xr[r+0]<0)&&s++,0!=t.l3_enc[a+1]&&(l+=4,s*=2,t.xr[r+1]<0)&&s++,0!=t.l3_enc[a+2]&&(l+=2,s*=2,t.xr[r+2]<0)&&s++,0!=t.l3_enc[a+3]&&(l++,s*=2,t.xr[r+3]<0)&&s++,a+=4,r+=4,v(e,s+n.table[l],n.hlen[l]),i+=n.hlen[l]}return i}function o(e,t,n,i,a){var r=te.ht[t],o=0;if(0!=t)for(var s=n;s<i;s+=2){var l=0,u=0,c=r.xlen,f=r.xlen,d=0,h=a.l3_enc[s],p=a.l3_enc[s+1];0!=h&&(a.xr[s]<0&&d++,l--),15<t&&(14<h&&(d|=h-15<<1,u=c,h=15),14<p&&(d=d<<c|p-15,u+=c,p=15),f=16),0!=p&&(d<<=1,a.xr[s+1]<0&&d++,l--),u-=l,l+=r.hlen[h=h*f+p],v(e,r.table[h],l),v(e,d,u),o+=l+u}return o}function m(e,t){var n=3*e.scalefac_band.s[3];return n>t.big_values&&(n=t.big_values),o(e,t.table_select[0],0,n,t)+o(e,t.table_select[1],n,t.big_values,t)}function b(e,t){var n,i=t.big_values,a=t.region0_count+1,r=e.scalefac_band.l[a];return i<(a=e.scalefac_band.l[a+=t.region1_count+1])&&(a=i),n=o(e,t.table_select[0],0,r=i<r?i:r,t),(n+=o(e,t.table_select[1],r,a,t))+o(e,t.table_select[2],a,i,t)}function _(){this.total=0}function w(e,t){var n=e.internal_flags,i=n.w_ptr,a=n.h_ptr-1,r=n.header[a=-1==a?K.MAX_HEADER_BUF-1:a].write_timing-M;return 0<=(t.total=r)&&(r-=8*(a<i?1+a-i+K.MAX_HEADER_BUF:1+a-i)*n.sideinfo_len),r+=a=s.getframebits(e),t.total+=a,t.total=t.total%8!=0?1+t.total/8:t.total/8,t.total+=S+1,r<0&&ee.err.println("strange error flushing buffer ... \n"),r}var s=this,c=null,f=null,r=null,d=null,y=(this.setModules=function(e,t,n,i){c=e,f=t,r=n,d=i},null),M=0,S=0,A=0;this.getframebits=function(e){var t=e.internal_flags,n=0!=t.bitrate_index?te.bitrate_table[e.version][t.bitrate_index]:e.brate;return 8*(0|72e3*(e.version+1)*n/e.out_samplerate+t.padding)},this.CRC_writeheader=function(e,t){var n=65535,n=a(255&t[2],n);n=a(255&t[3],n);for(var i=6;i<e.sideinfo_len;i++)n=a(255&t[i],n);t[4]=byte(n>>8),t[5]=byte(255&n)},this.flush_bitstream=function(e){var t,n,i=e.internal_flags;i.h_ptr,t=i.l3_side,(n=w(e,new _))<0||(h(e,n),i.ResvSize=0,t.main_data_begin=0,i.findReplayGain&&(n=c.GetTitleGain(i.rgdata),i.RadioGain=0|Math.floor(10*n+.5)),i.findPeakSample&&(i.noclipGainChange=0|Math.ceil(20*Math.log10(i.PeakSample/32767)*10),0<i.noclipGainChange&&(EQ(e.scale,1)||EQ(e.scale,0))?i.noclipScale=Math.floor(32767/i.PeakSample*100)/100:i.noclipScale=-1))},this.add_dummy_byte=function(e,t,n){for(var i,a,r=e.internal_flags;0<n--;){{o=void 0;s=void 0;a=void 0;var o=t;var s=8;for(;0<s;)0==A&&(A=8,y[++S]=0),s-=a=Math.min(s,A),A-=a,y[S]|=o>>s<<A,M+=a}i=0;for(;i<K.MAX_HEADER_BUF;++i)r.header[i].write_timing+=8}},this.format_bitstream=function(e){var t,n,i,a=e.internal_flags,r=a.l3_side,o=this.getframebits(e),s=(h(e,r.resvDrain_pre),e),l=o,u=s.internal_flags,c=u.l3_side;if(u.header[u.h_ptr].ptr=0,Qt.fill(u.header[u.h_ptr].buf,0,u.sideinfo_len,0),s.out_samplerate<16e3?p(u,4094,12):p(u,4095,12),p(u,s.version,1),p(u,1,2),p(u,s.error_protection?0:1,1),p(u,u.bitrate_index,4),p(u,u.samplerate_index,2),p(u,u.padding,1),p(u,s.extension,1),p(u,s.mode.ordinal(),2),p(u,u.mode_ext,2),p(u,s.copyright,1),p(u,s.original,1),p(u,s.emphasis,2),s.error_protection&&p(u,0,16),1==s.version){for(p(u,c.main_data_begin,9),2==u.channels_out?p(u,c.private_bits,3):p(u,c.private_bits,5),n=0;n<u.channels_out;n++)for(var f=0;f<4;f++)p(u,c.scfsi[n][f],1);for(t=0;t<2;t++)for(n=0;n<u.channels_out;n++)p(u,(i=c.tt[t][n]).part2_3_length+i.part2_length,12),p(u,i.big_values/2,9),p(u,i.global_gain,8),p(u,i.scalefac_compress,4),i.block_type!=Xt.NORM_TYPE?(p(u,1,1),p(u,i.block_type,2),p(u,i.mixed_block_flag,1),14==i.table_select[0]&&(i.table_select[0]=16),p(u,i.table_select[0],5),14==i.table_select[1]&&(i.table_select[1]=16),p(u,i.table_select[1],5),p(u,i.subblock_gain[0],3),p(u,i.subblock_gain[1],3),p(u,i.subblock_gain[2],3)):(p(u,0,1),14==i.table_select[0]&&(i.table_select[0]=16),p(u,i.table_select[0],5),14==i.table_select[1]&&(i.table_select[1]=16),p(u,i.table_select[1],5),14==i.table_select[2]&&(i.table_select[2]=16),p(u,i.table_select[2],5),p(u,i.region0_count,4),p(u,i.region1_count,3)),p(u,i.preflag,1),p(u,i.scalefac_scale,1),p(u,i.count1table_select,1)}else for(p(u,c.main_data_begin,8),p(u,c.private_bits,u.channels_out),n=t=0;n<u.channels_out;n++)p(u,(i=c.tt[t][n]).part2_3_length+i.part2_length,12),p(u,i.big_values/2,9),p(u,i.global_gain,8),p(u,i.scalefac_compress,9),i.block_type!=Xt.NORM_TYPE?(p(u,1,1),p(u,i.block_type,2),p(u,i.mixed_block_flag,1),14==i.table_select[0]&&(i.table_select[0]=16),p(u,i.table_select[0],5),14==i.table_select[1]&&(i.table_select[1]=16),p(u,i.table_select[1],5),p(u,i.subblock_gain[0],3),p(u,i.subblock_gain[1],3),p(u,i.subblock_gain[2],3)):(p(u,0,1),14==i.table_select[0]&&(i.table_select[0]=16),p(u,i.table_select[0],5),14==i.table_select[1]&&(i.table_select[1]=16),p(u,i.table_select[1],5),14==i.table_select[2]&&(i.table_select[2]=16),p(u,i.table_select[2],5),p(u,i.region0_count,4),p(u,i.region1_count,3)),p(u,i.scalefac_scale,1),p(u,i.count1table_select,1);s.error_protection&&CRC_writeheader(u,u.header[u.h_ptr].buf),s=u.h_ptr,u.h_ptr=s+1&K.MAX_HEADER_BUF-1,u.header[u.h_ptr].write_timing=u.header[s].write_timing+l,u.h_ptr==u.w_ptr&&ee.err.println("Error: MAX_HEADER_BUF too small in bitstream.c \n");s=8*a.sideinfo_len;if(s+=(e=>{var t,n,i=0,a=e.internal_flags,r=a.l3_side;if(1==e.version)for(t=0;t<2;t++)for(n=0;n<a.channels_out;n++){for(var o=r.tt[t][n],s=E.slen1_tab[o.scalefac_compress],l=E.slen2_tab[o.scalefac_compress],u=0,c=0;c<o.sfbdivide;c++)-1!=o.scalefac[c]&&(v(a,o.scalefac[c],s),u+=s);for(;c<o.sfbmax;c++)-1!=o.scalefac[c]&&(v(a,o.scalefac[c],l),u+=l);i+=u=(u+=(o.block_type==Xt.SHORT_TYPE?m:b)(a,o))+g(a,o)}else for(n=t=0;n<a.channels_out;n++){var f=0,d=c=u=0;if((o=r.tt[t][n]).block_type==Xt.SHORT_TYPE){for(;d<4;d++)for(var h=o.sfb_partition_table[d]/3,p=o.slen[d],_=0;_<h;_++,c++)v(a,Math.max(o.scalefac[3*c+0],0),p),v(a,Math.max(o.scalefac[3*c+1],0),p),v(a,Math.max(o.scalefac[3*c+2],0),p),f+=3*p;u+=m(a,o)}else{for(;d<4;d++){h=o.sfb_partition_table[d],p=o.slen[d];for(_=0;_<h;_++,c++)v(a,Math.max(o.scalefac[c],0),p),f+=p}u+=b(a,o)}i+=f+(u+=g(a,o))}return i})(e),h(e,r.resvDrain_post),s+=r.resvDrain_post,r.main_data_begin+=(o-s)/8,w(e,new _)!=a.ResvSize&&ee.err.println("Internal buffer inconsistency. flushbits <> ResvSize"),8*r.main_data_begin!=a.ResvSize&&(ee.err.printf("bit reservoir error: \nl3_side.main_data_begin: %d \nResvoir size:             %d \nresv drain (post)         %d \nresv drain (pre)          %d \nheader and sideinfo:      %d \ndata bits:                %d \ntotal bits:               %d (remainder: %d) \nbitsperframe:             %d \n",8*r.main_data_begin,a.ResvSize,r.resvDrain_post,r.resvDrain_pre,8*a.sideinfo_len,s-r.resvDrain_post-8*a.sideinfo_len,s,s%8,o),ee.err.println("This is a fatal error.  It has several possible causes:"),ee.err.println("90%%  LAME compiled with buggy version of gcc using advanced optimizations"),ee.err.println(" 9%%  Your system is overclocked"),ee.err.println(" 1%%  bug in LAME encoding library"),a.ResvSize=8*r.main_data_begin),1e9<M){for(var d=0;d<K.MAX_HEADER_BUF;++d)a.header[d].write_timing-=M;M=0}return 0},this.copy_buffer=function(e,t,n,i,a){var r=S+1;if(r<=0)return 0;if(0!=i&&i<r)return-1;if(ee.arraycopy(y,0,t,n,r),S=-1,(A=0)!=a){i=Ft(1);if(i[0]=e.nMusicCRC,d.updateMusicCRC(i,t,n,r),e.nMusicCRC=i[0],0<r&&(e.VBR_seek_table.nBytesWritten+=r),e.decode_on_the_fly)for(var o,s=zt([2,1152]),l=r,u=-1;0!=u;)if(u=f.hip_decode1_unclipped(e.hip,t,n,l,s[0],s[1]),(l=0)<(u=-1==u?0:u)){if(e.findPeakSample){for(o=0;o<u;o++)s[0][o]>e.PeakSample?e.PeakSample=s[0][o]:-s[0][o]>e.PeakSample&&(e.PeakSample=-s[0][o]);if(1<e.channels_out)for(o=0;o<u;o++)s[1][o]>e.PeakSample?e.PeakSample=s[1][o]:-s[1][o]>e.PeakSample&&(e.PeakSample=-s[1][o])}if(e.findReplayGain&&c.AnalyzeSamples(e.rgdata,s[0],0,s[1],0,u,e.channels_out)==G.GAIN_ANALYSIS_ERROR)return-6}}return r},this.init_bit_stream_w=function(e){y=x(R.LAME_MAXMP3BUFFER),e.h_ptr=e.w_ptr=0,e.header[e.h_ptr].write_timing=0,S=-1,M=A=0}}function S(){function l(e,t){var n=255&e[t+0];return(n=((n=((n<<=8)|255&e[t+1])<<8)|255&e[t+2])<<8)|255&e[t+3]}function k(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function P(e,t,n){e[t+0]=n>>8&255,e[t+1]=255&n}function a(e,t,n){return 255&(e<<t|n&~(-1<<t))}function d(e,t){var n=e.internal_flags;t[0]=a(t[0],8,255),t[1]=a(t[1],3,7),t[1]=a(t[1],1,e.out_samplerate<16e3?0:1),t[1]=a(t[1],1,e.version),t[1]=a(t[1],2,1),t[1]=a(t[1],1,e.error_protection?0:1),t[2]=a(t[2],4,n.bitrate_index),t[2]=a(t[2],2,n.samplerate_index),t[2]=a(t[2],1,0),t[2]=a(t[2],1,e.extension),t[3]=a(t[3],2,e.mode.ordinal()),t[3]=a(t[3],2,n.mode_ext),t[3]=a(t[3],1,e.copyright),t[3]=a(t[3],1,e.original),t[3]=a(t[3],2,e.emphasis),t[0]=255;var n=241&t[1],i=1==e.version?128:e.out_samplerate<16e3?32:64;e.VBR==Nt.vbr_off&&(i=e.brate),i=e.free_format?0:255&16*r.BitrateIndex(i,e.version,e.out_samplerate),n=(t[1]=1==e.version?255&(10|n):255&(2|n),13&t[2]),t[2]=255&(i|n)}function B(e,t){return t>>8^n[255&(t^e)]}this.setModules=function(e,t,n){r=e,h=t,T=n};var r,h,T,p=S.NUMTOCENTRIES,s=S.MAXFRAMESIZE,u=p+4+4+4+4+4+9+1+1+8+1+1+3+1+1+2+4+2+2,_="Xing",v="Info",n=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];this.addVbrFrame=function(e){var t=e.internal_flags,e=te.bitrate_table[e.version][t.bitrate_index],n=t.VBR_seek_table,t=e;if(n.nVbrNumFrames++,n.sum+=t,n.seen++,!(n.seen<n.want)&&(n.pos<n.size&&(n.bag[n.pos]=n.sum,n.pos++,n.seen=0),n.pos==n.size)){for(var i=1;i<n.size;i+=2)n.bag[i/2]=n.bag[i];n.want*=2,n.pos/=2}},this.getVbrTag=function(e){var t=new VBRTagData,n=0,i=(t.flags=0,e[n+1]>>3&1),a=e[n+2]>>2&3,r=e[n+3]>>6&3,o=te.bitrate_table[i][e[n+2]>>4&15];if(t.samprate=(e[n+1]>>4==14?te.samplerate_table[2]:te.samplerate_table[i])[a],a=e,r=n+=0!=i?3!=r?36:21:3!=r?21:13,!new String(a,r,_.length(),null).equals(_)&&!new String(a,r,v.length(),null).equals(v))return null;n+=4,t.hId=i;a=t.flags=l(e,n);if(n+=4,0!=(1&a)&&(t.frames=l(e,n),n+=4),0!=(2&a)&&(t.bytes=l(e,n),n+=4),0!=(4&a)){if(null!=t.toc)for(var s=0;s<p;s++)t.toc[s]=e[n+s];n+=p}t.vbrScale=-1,0!=(8&a)&&(t.vbrScale=l(e,n),n+=4),t.headersize=72e3*(1+i)*o/t.samprate;r=e[(n+=21)+0]<<4,a=(15&e[n+1])<<8;return((a+=255&e[n+2])<0||3e3<a)&&(a=-1),t.encDelay=r=(r+=e[n+1]>>4)<0||3e3<r?-1:r,t.encPadding=a,t},this.InitVbrTag=function(e){var t=e.internal_flags,n=1==e.version?128:e.out_samplerate<16e3?32:64,n=(e.VBR==Nt.vbr_off&&(n=e.brate),72e3*(e.version+1)*n/e.out_samplerate),i=t.sideinfo_len+u;if((t.VBR_seek_table.TotalFrameSize=n)<i||s<n)e.bWriteVbrTag=!1;else{t.VBR_seek_table.nVbrNumFrames=0,t.VBR_seek_table.nBytesWritten=0,t.VBR_seek_table.sum=0,t.VBR_seek_table.seen=0,t.VBR_seek_table.want=1,t.VBR_seek_table.pos=0,null==t.VBR_seek_table.bag&&(t.VBR_seek_table.bag=new int[400],t.VBR_seek_table.size=400);var a=x(s);d(e,a);for(var r=t.VBR_seek_table.TotalFrameSize,o=0;o<r;++o)h.add_dummy_byte(e,255&a[o],1)}},this.updateMusicCRC=function(e,t,n,i){for(var a=0;a<i;++a)e[0]=B(t[n+a],e[0])},this.getLameTagFrame=function(e,t){var n=e.internal_flags;if(!e.bWriteVbrTag)return 0;if(n.Class_ID!=R.LAME_ID)return 0;if(n.VBR_seek_table.pos<=0)return 0;if(!(t.length<n.VBR_seek_table.TotalFrameSize)){Qt.fill(t,0,n.VBR_seek_table.TotalFrameSize,0),d(e,t);var i=x(p);if(e.free_format)for(var a=1;a<p;++a)i[a]=255&255*a/100;else{var r=n.VBR_seek_table;var o=i;if(!(r.pos<=0))for(var s=1;s<p;++s){var l=0|Math.floor(s/p*r.pos),l=(l>r.pos-1&&(l=r.pos-1),0|256*r.bag[l]/r.sum);255<l&&(l=255),o[s]=255&l}}var u=n.sideinfo_len,c=(e.error_protection&&(u-=2),e.VBR==Nt.vbr_off?(t[u++]=255&v.charAt(0),t[u++]=255&v.charAt(1),t[u++]=255&v.charAt(2),t[u++]=255&v.charAt(3)):(t[u++]=255&_.charAt(0),t[u++]=255&_.charAt(1),t[u++]=255&_.charAt(2),t[u++]=255&_.charAt(3)),k(t,u,15),k(t,u+=4,n.VBR_seek_table.nVbrNumFrames),n.VBR_seek_table.nBytesWritten+n.VBR_seek_table.TotalFrameSize);k(t,u+=4,0|c),ee.arraycopy(i,0,t,u+=4,i.length),u+=i.length,e.error_protection&&h.CRC_writeheader(n,t);for(var f=0,a=0;a<u;a++)f=B(t[a],f);u+=((e,t,n,i,a)=>{var r,o=e.internal_flags,s=0,l=e.encoder_delay,u=e.encoder_padding,c=100-10*e.VBR_q-e.quality,f=T.getLameVeryShortVersion(),d=[1,5,3,2,4,0,3],h=0|(255<e.lowpassfreq/100+.5?255:e.lowpassfreq/100+.5),p=0,_=0,v=e.internal_flags.noise_shaping,g=0,m=0,b=0!=(1&e.exp_nspsytune),w=0!=(2&e.exp_nspsytune),y=!1,M=!1,S=e.internal_flags.nogap_total,A=e.internal_flags.nogap_current,x=e.ATHtype;switch(e.VBR){case vbr_abr:r=e.VBR_mean_bitrate_kbps;break;case vbr_off:r=e.brate;break;default:r=e.VBR_min_bitrate_kbps}switch(d=0+(e.VBR.ordinal()<d.length?d[e.VBR.ordinal()]:0),o.findReplayGain&&(510<o.RadioGain&&(o.RadioGain=510),o.RadioGain<-510&&(o.RadioGain=-510),_=8192,_|=3072,0<=o.RadioGain?_|=o.RadioGain:_=_|512|-o.RadioGain),o.findPeakSample&&(p=Math.abs(0|o.PeakSample/32767*Math.pow(2,23)+.5)),b=x+((b?1:0)<<4)+((w?1:0)<<5)+(((y=-1!=S&&(0<A&&(M=!0),A<S-1)?!0:y)?1:0)<<6)+((M?1:0)<<7),c<0&&(c=0),e.mode){case MONO:g=0;break;case STEREO:g=1;break;case DUAL_CHANNEL:g=2;break;case JOINT_STEREO:g=e.force_ms?4:3;break;default:NOT_SET;g=7}w=e.in_samplerate<=32e3?0:48e3==e.in_samplerate?2:48e3<e.in_samplerate?3:1,A=v+(g<<2)+((m=e.short_blocks==Lt.short_block_forced||e.short_blocks==Lt.short_block_dispensed||-1==e.lowpassfreq&&-1==e.highpassfreq||e.scale_left<e.scale_right||e.scale_left>e.scale_right||e.disable_reservoir&&e.brate<320||e.noATH||e.ATHonly||0==x||e.in_samplerate<=32e3?1:m)<<5)+(w<<6),S=o.nMusicCRC,k(n,i+s,c),s+=4;for(var R=0;R<9;R++)n[i+s+R]=255&f.charAt(R);n[i+(s+=9)]=255&d,n[i+ ++s]=255&h,k(n,i+ ++s,p),P(n,i+(s+=4),_),P(n,i+(s+=2),0),n[i+(s+=2)]=255&b,n[i+ ++s]=255<=r?255:255&r,n[i+ ++s]=255&l>>4,n[i+s+1]=255&(l<<4)+(u>>8),n[i+s+2]=255&u,n[i+(s+=3)]=255&A,s++,n[i+s++]=0,P(n,i+s,e.preset),k(n,i+(s+=2),t),P(n,i+(s+=4),S),s+=2;for(var E=0;E<s;E++)a=B(n[i+E],a);return P(n,i+s,a),s+2})(e,c,t,u,f)}return n.VBR_seek_table.TotalFrameSize},this.putVbrTag=function(e,t){var n,i;return e.internal_flags.VBR_seek_table.pos<=0||(t.seek(t.length()),0==t.length())||((i=t).seek(0),n=x(10),i.readFully(n),i=new String(n,"ISO-8859-1").startsWith("ID3")?0:((127&n[6])<<21|(127&n[7])<<14|(127&n[8])<<7|127&n[9])+n.length,t.seek(i),n=x(s),(i=getLameTagFrame(e,n))>n.length)?-1:(i<1||t.write(n,0,i),0)}}function e(e,t,n,i){this.xlen=e,this.linmax=t,this.table=n,this.hlen=i}function q(e){this.bits=e}function n(){this.setModules=function(e,t){0}}function V(){this.over_noise=0,this.tot_noise=0,this.max_noise=0,this.over_count=0,this.over_SSD=0,this.bits=0}function r(){this.class_id=0,this.num_samples=0,this.num_channels=0,this.in_samplerate=0,this.out_samplerate=0,this.scale=0,this.scale_left=0,this.scale_right=0,this.analysis=!1,this.bWriteVbrTag=!1,this.decode_only=!1,this.quality=0,this.mode=Wt.STEREO,this.force_ms=!1,this.free_format=!1,this.findReplayGain=!1,this.decode_on_the_fly=!1,this.write_id3tag_automatic=!1,this.brate=0,this.compression_ratio=0,this.copyright=0,this.original=0,this.extension=0,this.emphasis=0,this.error_protection=0,this.strict_ISO=!1,this.disable_reservoir=!1,this.quant_comp=0,this.quant_comp_short=0,this.experimentalY=!1,this.experimentalZ=0,this.exp_nspsytune=0,this.preset=0,this.VBR=null,this.VBR_q_frac=0,this.VBR_q=0,this.VBR_mean_bitrate_kbps=0,this.VBR_min_bitrate_kbps=0,this.VBR_max_bitrate_kbps=0,this.VBR_hard_min=0,this.lowpassfreq=0,this.highpassfreq=0,this.lowpasswidth=0,this.highpasswidth=0,this.maskingadjust=0,this.maskingadjust_short=0,this.ATHonly=!1,this.ATHshort=!1,this.noATH=!1,this.ATHtype=0,this.ATHcurve=0,this.ATHlower=0,this.athaa_type=0,this.athaa_loudapprox=0,this.athaa_sensitivity=0,this.short_blocks=null,this.useTemporal=!1,this.interChRatio=0,this.msfix=0,this.tune=!1,this.tune_value_a=0,this.version=0,this.encoder_delay=0,this.encoder_padding=0,this.framesize=0,this.frameNum=0,this.lame_allocated_gfp=0,this.internal_flags=null}function ne(){this.linprebuf=Ht(2*G.MAX_ORDER),this.linpre=0,this.lstepbuf=Ht(G.MAX_SAMPLES_PER_WINDOW+G.MAX_ORDER),this.lstep=0,this.loutbuf=Ht(G.MAX_SAMPLES_PER_WINDOW+G.MAX_ORDER),this.lout=0,this.rinprebuf=Ht(2*G.MAX_ORDER),this.rinpre=0,this.rstepbuf=Ht(G.MAX_SAMPLES_PER_WINDOW+G.MAX_ORDER),this.rstep=0,this.routbuf=Ht(G.MAX_SAMPLES_PER_WINDOW+G.MAX_ORDER),this.rout=0,this.sampleWindow=0,this.totsamp=0,this.lsum=0,this.rsum=0,this.freqindex=0,this.first=0,this.A=Ft(0|G.STEPS_per_dB*G.MAX_dB),this.B=Ft(0|G.STEPS_per_dB*G.MAX_dB)}function ie(e){this.quantize=e,this.iteration_loop=function(e,t,n,i){var a,r=e.internal_flags,o=Ht(H.SFBMAX),s=Ht(576),l=Ft(2),u=r.l3_side,c=new q(0);this.quantize.rv.ResvFrameBegin(e,c);for(var f=c.bits,d=0;d<r.mode_gr;d++){a=this.quantize.qupvt.on_pe(e,t,l,f,d,d),r.mode_ext==Xt.MPG_MD_MS_LR&&(this.quantize.ms_convert(r.l3_side,d),this.quantize.qupvt.reduce_side(l,n[d],f,a));for(var h=0;h<r.channels_out;h++){var p=u.tt[d][h],_=p.block_type!=Xt.SHORT_TYPE?r.PSY.mask_adjust-0:r.PSY.mask_adjust_short-0;r.masking_lower=Math.pow(10,.1*_),this.quantize.init_outer_loop(r,p),this.quantize.init_xrpow(r,p,s)&&(this.quantize.qupvt.calc_xmin(e,i[d][h],p,o),this.quantize.outer_loop(e,p,o,s,h,l[h])),this.quantize.iteration_finish_one(r,d,h)}}this.quantize.rv.ResvFrameEnd(r,f)}}function ae(){this.useAdjust=0,this.aaSensitivityP=0,this.adjust=0,this.adjustLimit=0,this.decay=0,this.floor=0,this.l=Ht(Xt.SBMAX_l),this.s=Ht(Xt.SBMAX_s),this.psfb21=Ht(Xt.PSFB21),this.psfb12=Ht(Xt.PSFB12),this.cb_l=Ht(Xt.CBANDS),this.cb_s=Ht(Xt.CBANDS),this.eql_w=Ht(Xt.BLKSIZE/2)}function a(e,t,n,i){this.l=Ft(1+Xt.SBMAX_l),this.s=Ft(1+Xt.SBMAX_s),this.psfb21=Ft(1+Xt.PSFB21),this.psfb12=Ft(1+Xt.PSFB12);var a=this.l,r=this.s;4==arguments.length&&(this.arrL=e,this.arrS=t,this.arr21=n,this.arr12=i,ee.arraycopy(this.arrL,0,a,0,Math.min(this.arrL.length,this.l.length)),ee.arraycopy(this.arrS,0,r,0,Math.min(this.arrS.length,this.s.length)),ee.arraycopy(this.arr21,0,this.psfb21,0,Math.min(this.arr21.length,this.psfb21.length)),ee.arraycopy(this.arr12,0,this.psfb12,0,Math.min(this.arr12.length,this.psfb12.length)))}function Y(){function w(e,t){t=i.ATHformula(t,e);return t-=n,Math.pow(10,t/10+e.ATHlower)}function y(e){this.s=e}var M=null,h=null,i=null,k=(this.setModules=function(e,t,n){M=e,h=t,i=n},this.IPOW20=function(e){return P[e]},2220446049250313e-31),S=Y.IXMAX_VAL+2,A=Y.Q_MAX,x=Y.Q_MAX2,n=100,R=(this.nr_of_sfb_block=[[[6,5,5,5],[9,9,9,9],[6,9,9,9]],[[6,5,7,3],[9,9,12,6],[6,9,12,6]],[[11,10,0,0],[18,18,0,0],[15,18,0,0]],[[7,7,7,0],[12,12,12,0],[6,15,12,0]],[[6,6,6,3],[12,9,9,6],[6,12,9,6]],[[8,8,5,0],[15,12,9,0],[6,18,9,0]]],[0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,3,3,2,0]),E=(this.pretab=R,this.sfBandIndex=[new a([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,24,32,42,56,74,100,132,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,332,394,464,540,576],[0,4,8,12,18,26,36,48,62,80,104,136,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,4,8,12,16,20,24,30,36,44,52,62,74,90,110,134,162,196,238,288,342,418,576],[0,4,8,12,16,22,30,40,52,66,84,106,136,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,4,8,12,16,20,24,30,36,42,50,60,72,88,106,128,156,190,230,276,330,384,576],[0,4,8,12,16,22,28,38,50,64,80,100,126,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576],[0,4,8,12,16,22,30,42,58,78,104,138,180,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576],[0,4,8,12,18,26,36,48,62,80,104,134,174,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]),new a([0,12,24,36,48,60,72,88,108,132,160,192,232,280,336,400,476,566,568,570,572,574,576],[0,8,16,24,36,52,72,96,124,160,162,164,166,192],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0])],Ht(A+x+1)),P=Ht(A),B=Ht(S),T=Ht(S);this.adj43=T,this.iteration_init=function(e){var t,n=e.internal_flags,i=n.l3_side;if(0==n.iteration_init_init){n.iteration_init_init=1,i.main_data_begin=0;for(var a,r,o,s,l=e,u=l.internal_flags.ATH.l,c=l.internal_flags.ATH.psfb21,f=l.internal_flags.ATH.s,d=l.internal_flags.ATH.psfb12,h=l.internal_flags,p=l.out_samplerate,_=0;_<Xt.SBMAX_l;_++){var v=h.scalefac_band.l[_],g=h.scalefac_band.l[_+1];u[_]=C.MAX_VALUE;for(var m=v;m<g;m++){var b=w(l,m*p/1152);u[_]=Math.min(u[_],b)}}for(_=0;_<Xt.PSFB21;_++){v=h.scalefac_band.psfb21[_],g=h.scalefac_band.psfb21[_+1];c[_]=C.MAX_VALUE;for(m=v;m<g;m++){b=w(l,m*p/1152);c[_]=Math.min(c[_],b)}}for(_=0;_<Xt.SBMAX_s;_++){v=h.scalefac_band.s[_],g=h.scalefac_band.s[_+1];f[_]=C.MAX_VALUE;for(m=v;m<g;m++){b=w(l,m*p/384);f[_]=Math.min(f[_],b)}f[_]*=h.scalefac_band.s[_+1]-h.scalefac_band.s[_]}for(_=0;_<Xt.PSFB12;_++){v=h.scalefac_band.psfb12[_],g=h.scalefac_band.psfb12[_+1];d[_]=C.MAX_VALUE;for(m=v;m<g;m++){b=w(l,m*p/384);d[_]=Math.min(d[_],b)}d[_]*=h.scalefac_band.s[13]-h.scalefac_band.s[12]}if(l.noATH){for(_=0;_<Xt.SBMAX_l;_++)u[_]=1e-20;for(_=0;_<Xt.PSFB21;_++)c[_]=1e-20;for(_=0;_<Xt.SBMAX_s;_++)f[_]=1e-20;for(_=0;_<Xt.PSFB12;_++)d[_]=1e-20}for(h.ATH.floor=10*Math.log10(w(l,-1)),B[0]=0,t=1;t<S;t++)B[t]=Math.pow(t,4/3);for(t=0;t<S-1;t++)T[t]=t+1-Math.pow(.5*(B[t]+B[t+1]),.75);for(T[t]=.5,t=0;t<A;t++)P[t]=Math.pow(2,-.1875*(t-210));for(t=0;t<=A+x;t++)E[t]=Math.pow(2,.25*(t-210-x));for(M.huffman_init(n),32<=(t=e.exp_nspsytune>>2&63)&&(t-=64),a=Math.pow(10,t/4/10),32<=(t=e.exp_nspsytune>>8&63)&&(t-=64),r=Math.pow(10,t/4/10),32<=(t=e.exp_nspsytune>>14&63)&&(t-=64),o=Math.pow(10,t/4/10),32<=(t=e.exp_nspsytune>>20&63)&&(t-=64),s=o*Math.pow(10,t/4/10),t=0;t<Xt.SBMAX_l;t++)n.nsPsy.longfact[t]=t<=6?a:t<=13?r:t<=20?o:s;for(t=0;t<Xt.SBMAX_s;t++)n.nsPsy.shortfact[t]=t<=5?a:t<=10?r:t<=11?o:s}},this.on_pe=function(e,t,n,i,a,r){var o,s,l=e.internal_flags,u=Ft(2),c=new q(0),f=h.ResvMaxBits(e,i,c,r),e=(s=c.bits)+f;for(K.MAX_BITS_PER_GRANULE<e&&(e=K.MAX_BITS_PER_GRANULE),d=o=0;d<l.channels_out;++d)n[d]=Math.min(K.MAX_BITS_PER_CHANNEL,s/l.channels_out),u[d]=0|n[d]*t[a][d]/700-n[d],u[d]>3*i/4&&(u[d]=3*i/4),u[d]<0&&(u[d]=0),u[d]+n[d]>K.MAX_BITS_PER_CHANNEL&&(u[d]=Math.max(0,K.MAX_BITS_PER_CHANNEL-n[d])),o+=u[d];if(f<o)for(d=0;d<l.channels_out;++d)u[d]=f*u[d]/o;for(d=0;d<l.channels_out;++d)n[d]+=u[d],f-=u[d];for(d=o=0;d<l.channels_out;++d)o+=n[d];if(K.MAX_BITS_PER_GRANULE<o)for(var d=0;d<l.channels_out;++d)n[d]*=K.MAX_BITS_PER_GRANULE,n[d]/=o,0;return e},this.reduce_side=function(e,t,n,i){t=.33*(.5-t)/.5,t=0|.5*(t=.5<(t=t<0?0:t)?.5:t)*(e[0]+e[1]);(t=K.MAX_BITS_PER_CHANNEL-e[0]<t?K.MAX_BITS_PER_CHANNEL-e[0]:t)<0&&(t=0),125<=e[1]&&(125<e[1]-t?(e[0]<n&&(e[0]+=t),e[1]-=t):(e[0]+=e[1]-125,e[1]=125)),i<(t=e[0]+e[1])&&(e[0]=i*e[0]/t,e[1]=i*e[1]/t)},this.athAdjust=function(e,t,n){var t=Ut.FAST_LOG10_X(t,10),e=e*e,i=0,t=(t-=n)*(i=(i=1e-20<e?1+Ut.FAST_LOG10_X(e,10/90.30873362):i)<0?0:i)+(n+90.30873362-94.82444863);return Math.pow(10,.1*t)},this.calc_xmin=function(e,t,n,i){var a,r=0,o=e.internal_flags,s=0,l=0,u=o.ATH,c=n.xr,f=e.VBR==Nt.vbr_mtrh?1:0,d=o.masking_lower;for(e.VBR!=Nt.vbr_mtrh&&e.VBR!=Nt.vbr_mt||(d=1),a=0;a<n.psy_lmax;a++){w=(b=e.VBR==Nt.vbr_rh||e.VBR==Nt.vbr_mtrh?athAdjust(u.adjust,u.l[a],u.floor):u.adjust*u.l[a])/(v=n.width[a]),y=k,E=v>>1,R=0;do{}while(y+=(M=c[s]*c[s])<w?M:w,R=(R+=M)+(S=c[++s]*c[s]),y+=S<w?S:w,s++,0<--E);b<R&&l++,a==Xt.SBPSY_l&&y<(x=b*o.nsPsy.longfact[a])&&(y=x),0!=f&&(b=y),e.ATHonly||0<(A=t.en.l[a])&&(x=R*t.thm.l[a]*d/A,0!=f&&(x*=o.nsPsy.longfact[a]),b<x)&&(b=x),i[r++]=0!=f?b:b*o.nsPsy.longfact[a]}var h=575;if(n.block_type!=Xt.SHORT_TYPE)for(var p=576;0!=p--&&Z.EQ(c[p],0);)h=p;n.max_nonzero_coeff=h;for(var _=n.sfb_smin;a<n.psymax;_++,a+=3){var v,g,m=e.VBR==Nt.vbr_rh||e.VBR==Nt.vbr_mtrh?athAdjust(u.adjust,u.s[_],u.floor):u.adjust*u.s[_];for(v=n.width[a],g=0;g<3;g++){var b,w,y,M,S,A,x,R=0,E=v>>1;w=m/v,y=k;do{}while(y+=(M=c[s]*c[s])<w?M:w,R=(R+=M)+(S=c[++s]*c[s]),y+=S<w?S:w,s++,0<--E);m<R&&l++,_==Xt.SBPSY_s&&y<(x=m*o.nsPsy.shortfact[_])&&(y=x),b=0!=f?y:m,e.ATHonly||e.ATHshort||0<(A=t.en.s[_][g])&&(x=R*t.thm.s[_][g]*d/A,0!=f&&(x*=o.nsPsy.shortfact[_]),b<x)&&(b=x),i[r++]=0!=f?b:b*o.nsPsy.shortfact[_]}e.useTemporal&&(i[r-3]>i[r-3+1]&&(i[r-3+1]+=(i[r-3]-i[r-3+1])*o.decay),i[r-3+2]<i[r-3+1])&&(i[r-3+2]+=(i[r-3+1]-i[r-3+2])*o.decay)}return l},this.calc_noise_core=function(e,t,n,i){var a=0,r=t.s,o=e.l3_enc;if(e.count1<r)for(;0!=n--;)a+=(s=e.xr[r])*s,s=e.xr[++r],r++,a+=s*s;else if(r>e.big_values){var s,l=Ht(2);for(l[0]=0,l[1]=i;0!=n--;)s=Math.abs(e.xr[r])-l[o[r]],r++,a+=s*s,s=Math.abs(e.xr[r])-l[o[r]],r++,a+=s*s}else for(;0!=n--;)s=Math.abs(e.xr[r])-B[o[r]]*i,r++,a+=s*s,s=Math.abs(e.xr[r])-B[o[r]]*i,r++,a+=s*s;return t.s=r,a},this.calc_noise=function(e,t,n,i,a){for(var r=0,o=0,s=0,l=0,u=0,c=-20,f=0,d=e.scalefac,h=0,p=i.over_SSD=0;p<e.psymax;p++){var _,v,g,m=e.global_gain-(d[h++]+(0!=e.preflag?R[p]:0)<<e.scalefac_scale+1)-8*e.subblock_gain[e.window[p]],b=0;null!=a&&a.step[p]==m?(b=a.noise[p],f+=e.width[p],n[r++]=b/t[o++],b=a.noise_log[p]):(_=E[m+Y.Q_MAX2],g=e.width[p]>>1,f+e.width[p]>e.max_nonzero_coeff&&(g=0<(v=e.max_nonzero_coeff-f+1)?v>>1:0),v=new y(f),b=this.calc_noise_core(e,v,g,_),f=v.s,null!=a&&(a.step[p]=m,a.noise[p]=b),b=n[r++]=b/t[o++],b=Ut.FAST_LOG10(Math.max(b,1e-20)),null!=a&&(a.noise_log[p]=b)),null!=a&&(a.global_gain=e.global_gain),u+=b,0<b&&(g=Math.max(0|10*b+.5,1),i.over_SSD+=g*g,s++,l+=b),c=Math.max(c,b)}return i.over_count=s,i.tot_noise=u,i.over_noise=l,i.max_noise=c,s},this.set_pinfo=function(e,t,n,i,a){var r,o,s,l=e.internal_flags,u=0==t.scalefac_scale?.5:1,c=t.scalefac,f=Ht(H.SFBMAX),d=Ht(H.SFBMAX),h=new V,p=(calc_xmin(e,n,t,f),calc_noise(t,f,d,h,null),0),_=t.sfb_lmax;for(t.block_type!=Xt.SHORT_TYPE&&0==t.mixed_block_flag&&(_=22),r=0;r<_;r++){for(var v=l.scalefac_band.l[r],g=(b=l.scalefac_band.l[r+1])-v,m=0;p<b;p++)m+=t.xr[p]*t.xr[p];m/=g,l.pinfo.en[i][a][r]=(s=1e15)*m,l.pinfo.xfsf[i][a][r]=s*f[r]*d[r]/g,0<n.en.l[r]&&!e.ATHonly?m/=n.en.l[r]:m=0,l.pinfo.thr[i][a][r]=s*Math.max(m*n.thm.l[r],l.ATH.l[r]),(l.pinfo.LAMEsfb[i][a][r]=0)!=t.preflag&&11<=r&&(l.pinfo.LAMEsfb[i][a][r]=-u*R[r]),r<Xt.SBPSY_l&&(l.pinfo.LAMEsfb[i][a][r]-=u*c[r])}if(t.block_type==Xt.SHORT_TYPE)for(_=r,r=t.sfb_smin;r<Xt.SBMAX_s;r++)for(var b,v=l.scalefac_band.s[r],g=(b=l.scalefac_band.s[r+1])-v,w=0;w<3;w++){for(m=0,o=v;o<b;o++)m+=t.xr[p]*t.xr[p],p++;m=Math.max(m/g,1e-20),l.pinfo.en_s[i][a][3*r+w]=(s=1e15)*m,l.pinfo.xfsf_s[i][a][3*r+w]=s*f[_]*d[_]/g,0<n.en.s[r][w]?m/=n.en.s[r][w]:m=0,(e.ATHonly||e.ATHshort)&&(m=0),l.pinfo.thr_s[i][a][3*r+w]=s*Math.max(m*n.thm.s[r][w],l.ATH.s[r]),l.pinfo.LAMEsfb_s[i][a][3*r+w]=-2*t.subblock_gain[w],r<Xt.SBPSY_s&&(l.pinfo.LAMEsfb_s[i][a][3*r+w]-=u*c[_]),_++}l.pinfo.LAMEqss[i][a]=t.global_gain,l.pinfo.LAMEmainbits[i][a]=t.part2_3_length+t.part2_length,l.pinfo.LAMEsfbits[i][a]=t.part2_length,l.pinfo.over[i][a]=h.over_count,l.pinfo.max_noise[i][a]=10*h.max_noise,l.pinfo.over_noise[i][a]=10*h.over_noise,l.pinfo.tot_noise[i][a]=10*h.tot_noise,l.pinfo.over_SSD[i][a]=h.over_SSD}}function z(){this.global_gain=0,this.sfb_count1=0,this.step=Ft(39),this.noise=Ht(39),this.noise_log=Ht(39)}function F(){function n(e){return new Int32Array(e)}this.xr=Ht(576),this.l3_enc=Ft(576),this.scalefac=Ft(H.SFBMAX),this.xrpow_max=0,this.part2_3_length=0,this.big_values=0,this.count1=0,this.global_gain=0,this.scalefac_compress=0,this.block_type=0,this.mixed_block_flag=0,this.table_select=Ft(3),this.subblock_gain=Ft(4),this.region0_count=0,this.region1_count=0,this.preflag=0,this.scalefac_scale=0,this.count1table_select=0,this.part2_length=0,this.sfb_lmax=0,this.sfb_smin=0,this.psy_lmax=0,this.sfbmax=0,this.psymax=0,this.sfbdivide=0,this.width=Ft(H.SFBMAX),this.window=Ft(H.SFBMAX),this.count1bits=0,this.sfb_partition_table=null,this.slen=Ft(4),this.max_nonzero_coeff=0;var i=this;this.assign=function(e){var t;i.xr=(t=e.xr,new Float32Array(t)),i.l3_enc=n(e.l3_enc),i.scalefac=n(e.scalefac),i.xrpow_max=e.xrpow_max,i.part2_3_length=e.part2_3_length,i.big_values=e.big_values,i.count1=e.count1,i.global_gain=e.global_gain,i.scalefac_compress=e.scalefac_compress,i.block_type=e.block_type,i.mixed_block_flag=e.mixed_block_flag,i.table_select=n(e.table_select),i.subblock_gain=n(e.subblock_gain),i.region0_count=e.region0_count,i.region1_count=e.region1_count,i.preflag=e.preflag,i.scalefac_scale=e.scalefac_scale,i.count1table_select=e.count1table_select,i.part2_length=e.part2_length,i.sfb_lmax=e.sfb_lmax,i.sfb_smin=e.sfb_smin,i.psy_lmax=e.psy_lmax,i.sfbmax=e.sfbmax,i.psymax=e.psymax,i.sfbdivide=e.sfbdivide,i.width=n(e.width),i.window=n(e.window),i.count1bits=e.count1bits,i.sfb_partition_table=e.sfb_partition_table.slice(0),i.slen=n(e.slen),i.max_nonzero_coeff=e.max_nonzero_coeff}}function k(){function T(e){this.ordinal=e}function o(e){for(var t=0;t<e.sfbmax;t++)if(e.scalefac[t]+e.subblock_gain[e.window[t]]==0)return!1;return!0}function C(e,t){for(var n,i=1e-37,a=0;a<t.psymax;a++)i+=(n=e[a],Ut.FAST_LOG10(.368+.632*n*n*n));return Math.max(1e-20,i)}function I(e,t,n,i,a){var r=e.internal_flags,e=(((e,t,n,i,a)=>{for(var r=e.internal_flags,o=0==t.scalefac_scale?1.2968395546510096:1.6817928305074292,s=0,l=0;l<t.sfbmax;l++)s<n[l]&&(s=n[l]);switch(e=3==(e=r.noise_shaping_amp)?a?2:1:e){case 2:break;case 1:1<s?s=Math.pow(s,.5):s*=.95;break;default:1<s?s=1:s*=.95}for(var u=0,l=0;l<t.sfbmax;l++){var c,f=t.width[l];if(u+=f,!(n[l]<s)){if(0!=(2&r.substep_shaping)&&(r.pseudohalf[l]=0==r.pseudohalf[l]?1:0,0==r.pseudohalf[l])&&2==r.noise_shaping_amp)return;for(t.scalefac[l]++,c=-f;c<0;c++)i[u+c]*=o,i[u+c]>t.xrpow_max&&(t.xrpow_max=i[u+c]);if(2==r.noise_shaping_amp)return}}})(e,t,n,i,a),o(t));return!(e||(e=2==r.mode_gr?D.scale_bitcount(t):D.scale_bitcount_lsf(r,t))&&(1<r.noise_shaping&&(Qt.fill(r.pseudohalf,0),0==t.scalefac_scale?(((e,t)=>{for(var n=0,i=0;i<e.sfbmax;i++){var a=e.width[i],r=e.scalefac[i];if(0!=e.preflag&&(r+=O.pretab[i]),n+=a,0!=(1&r)){r++;for(var o=-a;o<0;o++)t[n+o]*=1.2968395546510096,t[n+o]>e.xrpow_max&&(e.xrpow_max=t[n+o])}e.scalefac[i]=r>>1}e.preflag=0,e.scalefac_scale=1})(t,i),e=!1):t.block_type==Xt.SHORT_TYPE&&0<r.subblock_gain&&(e=((e,t,n)=>{var i=t.scalefac;for(l=0;l<t.sfb_lmax;l++)if(16<=i[l])return!0;for(var a=0;a<3;a++){var r=0,o=0;for(l=t.sfb_lmax+a;l<t.sfbdivide;l+=3)r<i[l]&&(r=i[l]);for(;l<t.sfbmax;l+=3)o<i[l]&&(o=i[l]);if(!(r<16&&o<8)){if(7<=t.subblock_gain[a])return!0;t.subblock_gain[a]++;for(var s=e.scalefac_band.l[t.sfb_lmax],l=t.sfb_lmax+a;l<t.sfbmax;l+=3){var u=t.width[l],c=i[l];if(0<=(c-=4>>t.scalefac_scale))i[l]=c,s+=3*u;else{i[l]=0;c=210+(c<<t.scalefac_scale+1);d=O.IPOW20(c),s+=u*(a+1);for(var f=-u;f<0;f++)n[s+f]*=d,n[s+f]>t.xrpow_max&&(t.xrpow_max=n[s+f]);s+=u*(3-a-1)}}var d=O.IPOW20(202);s+=t.width[l]*(a+1);for(f=-t.width[l];f<0;f++)n[s+f]*=d,n[s+f]>t.xrpow_max&&(t.xrpow_max=n[s+f])}}return!1})(r,t,i)||o(t))),e=e||(2==r.mode_gr?D.scale_bitcount(t):D.scale_bitcount_lsf(r,t))))}var g,b;this.rv=null,this.qupvt=null;var O,D,a=new n;this.setModules=function(e,t,n,i){g=e,b=t,this.rv=t,O=n,this.qupvt=n,D=i,a.setModules(O,D)},this.ms_convert=function(e,t){for(var n=0;n<576;++n){var i=e.tt[t][0].xr[n],a=e.tt[t][1].xr[n];e.tt[t][0].xr[n]=(i+a)*(.5*Ut.SQRT2),e.tt[t][1].xr[n]=(i-a)*(.5*Ut.SQRT2)}},this.init_xrpow=function(e,t,n){var i=0|t.max_nonzero_coeff;if(Qt.fill(n,i,576,t.xrpow_max=0),1e-20<((e,t,n,i)=>{for(var a=i=0;a<=n;++a){var r=Math.abs(e.xr[a]);i+=r,t[a]=Math.sqrt(r*Math.sqrt(r)),t[a]>e.xrpow_max&&(e.xrpow_max=t[a])}return i})(t,n,i,0)){var a=0;0!=(2&e.substep_shaping)&&(a=1);for(var r=0;r<t.psymax;r++)e.pseudohalf[r]=a;return!0}return Qt.fill(t.l3_enc,0,576,0),!1},this.init_outer_loop=function(e,t){t.part2_3_length=0,t.big_values=0,t.count1=0,t.global_gain=210,t.scalefac_compress=0,t.table_select[0]=0,t.table_select[1]=0,t.table_select[2]=0,t.subblock_gain[0]=0,t.subblock_gain[1]=0,t.subblock_gain[2]=0,t.subblock_gain[3]=0,t.region0_count=0,t.region1_count=0,t.preflag=0,t.scalefac_scale=0,t.count1table_select=0,t.part2_length=0,t.sfb_lmax=Xt.SBPSY_l,t.sfb_smin=Xt.SBPSY_s,t.psy_lmax=e.sfb21_extra?Xt.SBMAX_l:Xt.SBPSY_l,t.psymax=t.psy_lmax,t.sfbmax=t.sfb_lmax,t.sfbdivide=11;for(var n=0;n<Xt.SBMAX_l;n++)t.width[n]=e.scalefac_band.l[n+1]-e.scalefac_band.l[n],t.window[n]=3;if(t.block_type==Xt.SHORT_TYPE){var i=Ht(576),a=(t.sfb_smin=0,(t.sfb_lmax=0)!=t.mixed_block_flag&&(t.sfb_smin=3,t.sfb_lmax=2*e.mode_gr+4),t.psymax=t.sfb_lmax+3*((e.sfb21_extra?Xt.SBMAX_s:Xt.SBPSY_s)-t.sfb_smin),t.sfbmax=t.sfb_lmax+3*(Xt.SBPSY_s-t.sfb_smin),t.sfbdivide=t.sfbmax-18,t.psy_lmax=t.sfb_lmax,e.scalefac_band.l[t.sfb_lmax]);ee.arraycopy(t.xr,0,i,0,576);for(n=t.sfb_smin;n<Xt.SBMAX_s;n++)for(var r=e.scalefac_band.s[n],o=e.scalefac_band.s[n+1],s=0;s<3;s++)for(var l=r;l<o;l++)t.xr[a++]=i[3*l+s];for(var u=t.sfb_lmax,n=t.sfb_smin;n<Xt.SBMAX_s;n++)t.width[u]=t.width[u+1]=t.width[u+2]=e.scalefac_band.s[n+1]-e.scalefac_band.s[n],t.window[u]=0,t.window[u+1]=1,t.window[u+2]=2,u+=3}t.count1bits=0,t.sfb_partition_table=O.nr_of_sfb_block[0][0],t.slen[0]=0,t.slen[1]=0,t.slen[2]=0,t.slen[3]=0,t.max_nonzero_coeff=575,Qt.fill(t.scalefac,0);var c=e,f=t,d=c.ATH,h=f.xr;if(f.block_type!=Xt.SHORT_TYPE)for(var p=!1,_=Xt.PSFB21-1;0<=_&&!p;_--){var v=c.scalefac_band.psfb21[_],g=c.scalefac_band.psfb21[_+1],m=O.athAdjust(d.adjust,d.psfb21[_],d.floor);1e-12<c.nsPsy.longfact[21]&&(m*=c.nsPsy.longfact[21]);for(var b=g-1;v<=b;b--){if(!(Math.abs(h[b])<m)){p=!0;break}h[b]=0}}else for(var w=0;w<3;w++)for(p=!1,_=Xt.PSFB12-1;0<=_&&!p;_--){var g=(v=3*c.scalefac_band.s[12]+(c.scalefac_band.s[13]-c.scalefac_band.s[12])*w+(c.scalefac_band.psfb12[_]-c.scalefac_band.psfb12[0]))+(c.scalefac_band.psfb12[_+1]-c.scalefac_band.psfb12[_]),y=O.athAdjust(d.adjust,d.psfb12[_],d.floor);1e-12<c.nsPsy.shortfact[12]&&(y*=c.nsPsy.shortfact[12]);for(b=g-1;v<=b;b--){if(!(Math.abs(h[b])<y)){p=!0;break}h[b]=0}}},T.BINSEARCH_NONE=new T(0),T.BINSEARCH_UP=new T(1),T.BINSEARCH_DOWN=new T(2),this.trancate_smallspectrums=function(e,t,n,i){var a=Ht(H.SFBMAX);if((0!=(4&e.substep_shaping)||t.block_type!=Xt.SHORT_TYPE)&&0==(128&e.substep_shaping)){O.calc_noise(t,n,a,new V,null);for(var r=0;r<576;r++){var o=0;0!=t.l3_enc[r]&&(o=Math.abs(t.xr[r])),i[r]=o}var r=0,s=8;t.block_type==Xt.SHORT_TYPE&&(s=6);do{var l,u,c,f=t.width[s];if(r+=f,!(1<=a[s]||(Qt.sort(i,r-f,f),Z.EQ(i[r-1],0)))){l=(1-a[s])*n[s],c=u=0;do{for(var d,h=1;c+h<f&&!Z.NEQ(i[c+r-f],i[c+r+h-f]);h++);if(l<(d=i[c+r-f]*i[c+r-f]*h)){0!=c&&(u=i[c+r-f-1]);break}}while(l-=d,(c+=h)<f);if(!Z.EQ(u,0))for(;Math.abs(t.xr[r-f])<=u&&(t.l3_enc[r-f]=0),0<--f;);}}while(++s<t.psymax);t.part2_3_length=D.noquant_count_bits(e,t,null)}},this.outer_loop=function(e,t,n,i,a,r){var o=e.internal_flags,s=new F,l=Ht(576),u=Ht(H.SFBMAX),c=new V,f=new z,d=9999999,h=!1,p=!1,_=0,v=o,g=t,m=r,b=i,w=v.CurrentStep[a],y=!1,M=v.OldValue[a],S=T.BINSEARCH_NONE;for(g.global_gain=M,m-=g.part2_length;;){var A,x=D.count_bits(v,b,g,null);if(1==w||x==m)break;A=m<x?((y=S==T.BINSEARCH_DOWN?!0:y)&&(w/=2),S=T.BINSEARCH_UP,w):((y=S==T.BINSEARCH_UP?!0:y)&&(w/=2),S=T.BINSEARCH_DOWN,-w),g.global_gain+=A,g.global_gain<0&&(y=!(g.global_gain=0)),255<g.global_gain&&(g.global_gain=255,y=!0)}for(;m<x&&g.global_gain<255;)g.global_gain++,x=D.count_bits(v,b,g,null);if(v.CurrentStep[a]=4<=M-g.global_gain?4:2,v.OldValue[a]=g.global_gain,g.part2_3_length=x,0==o.noise_shaping)return 100;O.calc_noise(t,n,u,c,f),c.bits=t.part2_3_length,s.assign(t);var R=0;for(ee.arraycopy(i,0,l,0,576);!h;){do{var E=new V,k=255,P=0!=(2&o.substep_shaping)?20:3;if(o.sfb21_extra){if(1<u[s.sfbmax])break;if(s.block_type==Xt.SHORT_TYPE&&(1<u[s.sfbmax+1]||1<u[s.sfbmax+2]))break}if(!I(e,s,u,i,p))break;0!=s.scalefac_scale&&(k=254);var B=r-s.part2_length;if(B<=0)break;for(;(s.part2_3_length=D.count_bits(o,i,s,f))>B&&s.global_gain<=k;)s.global_gain++;if(s.global_gain>k)break;if(0==c.over_count){for(;(s.part2_3_length=D.count_bits(o,i,s,f))>d&&s.global_gain<=k;)s.global_gain++;if(s.global_gain>k)break}if(O.calc_noise(s,n,u,E,f),E.bits=s.part2_3_length,0!=(((e,t,n,i,a)=>{var r;switch(e){default:case 9:0<t.over_count?(r=n.over_SSD<=t.over_SSD,n.over_SSD==t.over_SSD&&(r=n.bits<t.bits)):r=n.max_noise<0&&10*n.max_noise+n.bits<=10*t.max_noise+t.bits;break;case 0:r=n.over_count<t.over_count||n.over_count==t.over_count&&n.over_noise<t.over_noise||n.over_count==t.over_count&&Z.EQ(n.over_noise,t.over_noise)&&n.tot_noise<t.tot_noise;break;case 8:n.max_noise=C(a,i);case 1:r=n.max_noise<t.max_noise;break;case 2:r=n.tot_noise<t.tot_noise;break;case 3:r=n.tot_noise<t.tot_noise&&n.max_noise<t.max_noise;break;case 4:r=n.max_noise<=0&&.2<t.max_noise||n.max_noise<=0&&t.max_noise<0&&t.max_noise>n.max_noise-.2&&n.tot_noise<t.tot_noise||n.max_noise<=0&&0<t.max_noise&&t.max_noise>n.max_noise-.2&&n.tot_noise<t.tot_noise+t.over_noise||0<n.max_noise&&-.05<t.max_noise&&t.max_noise>n.max_noise-.1&&n.tot_noise+n.over_noise<t.tot_noise+t.over_noise||0<n.max_noise&&-.1<t.max_noise&&t.max_noise>n.max_noise-.15&&n.tot_noise+n.over_noise+n.over_noise<t.tot_noise+t.over_noise+t.over_noise;break;case 5:r=n.over_noise<t.over_noise||Z.EQ(n.over_noise,t.over_noise)&&n.tot_noise<t.tot_noise;break;case 6:r=n.over_noise<t.over_noise||Z.EQ(n.over_noise,t.over_noise)&&(n.max_noise<t.max_noise||Z.EQ(n.max_noise,t.max_noise)&&n.tot_noise<=t.tot_noise);break;case 7:r=n.over_count<t.over_count||n.over_noise<t.over_noise}return r=0==t.over_count?r&&n.bits<t.bits:r})(t.block_type!=Xt.SHORT_TYPE?e.quant_comp:e.quant_comp_short,c,E,s,u)?1:0))d=t.part2_3_length,c=E,t.assign(s),ee.arraycopy(i,R=0,l,0,576);else if(0==o.full_outer_loop){if(++R>P&&0==c.over_count)break;if(3==o.noise_shaping_amp&&p&&30<R)break;if(3==o.noise_shaping_amp&&p&&15<s.global_gain-_)break}}while(s.global_gain+s.scalefac_scale<255);3!=o.noise_shaping_amp||p?h=!0:(s.assign(t),ee.arraycopy(l,0,i,0,576),_=s.global_gain,p=!(R=0))}return e.VBR==Nt.vbr_rh||e.VBR==Nt.vbr_mtrh?ee.arraycopy(l,0,i,0,576):0!=(1&o.substep_shaping)&&trancate_smallspectrums(o,t,n,i),c.over_count},this.iteration_finish_one=function(e,t,n){var i=e.l3_side,a=i.tt[t][n];D.best_scalefac_store(e,t,n,i),1==e.use_best_huffman&&D.best_huffman_divide(e,a),b.ResvAdjust(e,a)},this.VBR_encode_granule=function(e,t,n,i,a,r,o){var s,l=e.internal_flags,u=new F,c=Ht(576),f=o,d=(o+r)/2,h=0,p=l.sfb21_extra;for(Qt.fill(u.l3_enc,0);l.sfb21_extra=!(f-42<d)&&p,outer_loop(e,t,n,i,a,d)<=0?(h=1,s=t.part2_3_length,u.assign(t),ee.arraycopy(i,0,c,0,576),s=(o=s-32)-r,d=(o+r)/2):(s=o-(r=d+32),d=(o+r)/2,0!=h&&(h=2,t.assign(u),ee.arraycopy(c,0,i,0,576))),12<s;);l.sfb21_extra=p,2==h&&ee.arraycopy(u.l3_enc,0,t.l3_enc,0,576)},this.get_framebits=function(e,t){var n=e.internal_flags,i=(n.bitrate_index=n.VBR_min_bitrate,g.getframebits(e));n.bitrate_index=1;for(var i=g.getframebits(e),a=1;a<=n.VBR_max_bitrate;a++){n.bitrate_index=a;var r=new q(i);t[a]=b.ResvFrameBegin(e,r),i=r.bits}},this.VBR_old_prepare=function(e,t,n,i,a,r,o,s,l){var u=e.internal_flags,c=0,f=1,d=0,h=(u.bitrate_index=u.VBR_max_bitrate,b.ResvFrameBegin(e,new q(0))/u.mode_gr);get_framebits(e,r);for(var p=0;p<u.mode_gr;p++){var _=O.on_pe(e,t,s[p],h,p,0);u.mode_ext==Xt.MPG_MD_MS_LR&&(ms_convert(u.l3_side,p),O.reduce_side(s[p],n[p],h,_));for(var v=0;v<u.channels_out;++v){var g=u.l3_side.tt[p][v],m=g.block_type!=Xt.SHORT_TYPE?(c=1.28/(1+Math.exp(3.5-t[p][v]/300))-.05,u.PSY.mask_adjust-c):(c=2.56/(1+Math.exp(3.5-t[p][v]/300))-.14,u.PSY.mask_adjust_short-c);u.masking_lower=Math.pow(10,.1*m),init_outer_loop(u,g),l[p][v]=O.calc_xmin(e,i[p][v],g,a[p][v]),0!=l[p][v]&&(f=0),o[p][v]=126,d+=s[p][v]}}for(p=0;p<u.mode_gr;p++)for(v=0;v<u.channels_out;v++)d>r[u.VBR_max_bitrate]&&(s[p][v]*=r[u.VBR_max_bitrate],s[p][v]/=d),o[p][v]>s[p][v]&&(o[p][v]=s[p][v]);return f},this.bitpressure_strategy=function(e,t,n,i){for(var a=0;a<e.mode_gr;a++)for(var r=0;r<e.channels_out;r++){for(var o=e.l3_side.tt[a][r],s=t[a][r],l=0,u=0;u<o.psy_lmax;u++)s[l++]*=1+.029*u*u/Xt.SBMAX_l/Xt.SBMAX_l;if(o.block_type==Xt.SHORT_TYPE)for(u=o.sfb_smin;u<Xt.SBMAX_s;u++)s[l++]*=1+.029*u*u/Xt.SBMAX_s/Xt.SBMAX_s,s[l++]*=1+.029*u*u/Xt.SBMAX_s/Xt.SBMAX_s,s[l++]*=1+.029*u*u/Xt.SBMAX_s/Xt.SBMAX_s;i[a][r]=0|Math.max(n[a][r],.9*i[a][r])}},this.VBR_new_prepare=function(e,t,n,i,a,r){var o,s,l=e.internal_flags,u=1,c=0,f=0;e.free_format?(l.bitrate_index=0,s=new q(c),o=b.ResvFrameBegin(e,s),c=s.bits,a[0]=o):(l.bitrate_index=l.VBR_max_bitrate,s=new q(c),b.ResvFrameBegin(e,s),c=s.bits,get_framebits(e,a),o=a[l.VBR_max_bitrate]);for(var d=0;d<l.mode_gr;d++){O.on_pe(e,t,r[d],c,d,0),l.mode_ext==Xt.MPG_MD_MS_LR&&ms_convert(l.l3_side,d);for(var h=0;h<l.channels_out;++h){var p=l.l3_side.tt[d][h];l.masking_lower=Math.pow(10,.1*l.PSY.mask_adjust),init_outer_loop(l,p),0!=O.calc_xmin(e,n[d][h],p,i[d][h])&&(u=0),f+=r[d][h]}}for(d=0;d<l.mode_gr;d++)for(h=0;h<l.channels_out;h++)o<f&&(r[d][h]*=o,r[d][h]/=f);return u},this.calc_target_bits=function(e,t,n,i,a,r){var o,s,l,u=e.internal_flags,c=u.l3_side,f=0,d=(u.bitrate_index=u.VBR_max_bitrate,new q(f));for(r[0]=b.ResvFrameBegin(e,d),f=d.bits,u.bitrate_index=1,f=g.getframebits(e)-8*u.sideinfo_len,a[0]=f/(u.mode_gr*u.channels_out),f=e.VBR_mean_bitrate_kbps*e.framesize*1e3,0!=(1&u.substep_shaping)&&(f*=1.09),f=(f=f/e.out_samplerate-8*u.sideinfo_len)/(u.mode_gr*u.channels_out),1<(o=(o=.93+.07*(11-e.compression_ratio)/5.5)<.9?.9:o)&&(o=1),s=0;s<u.mode_gr;s++){for(var h,p,_=0,v=0;v<u.channels_out;v++)i[s][v]=int(o*f),700<t[s][v]&&(h=int((t[s][v]-700)/1.4),p=c.tt[s][v],i[s][v]=int(o*f),3*f/2<(h=p.block_type==Xt.SHORT_TYPE&&h<f/2?f/2:h)?h=3*f/2:h<0&&(h=0),i[s][v]+=h),i[s][v]>K.MAX_BITS_PER_CHANNEL&&(i[s][v]=K.MAX_BITS_PER_CHANNEL),_+=i[s][v];if(K.MAX_BITS_PER_GRANULE<_)for(v=0;v<u.channels_out;++v)i[s][v]*=K.MAX_BITS_PER_GRANULE,i[s][v]/=_}if(u.mode_ext==Xt.MPG_MD_MS_LR)for(s=0;s<u.mode_gr;s++)O.reduce_side(i[s],n[s],f*u.channels_out,K.MAX_BITS_PER_GRANULE);for(s=l=0;s<u.mode_gr;s++)for(v=0;v<u.channels_out;v++)i[s][v]>K.MAX_BITS_PER_CHANNEL&&(i[s][v]=K.MAX_BITS_PER_CHANNEL),l+=i[s][v];if(l>r[0])for(s=0;s<u.mode_gr;s++)for(v=0;v<u.channels_out;v++)i[s][v]*=r[0],i[s][v]/=l}}function o(){function U(e,t,n){for(var i,a,r=10,o=t+238-14-286,s=-15;s<0;s++){var l,u,c=f[r+-10];l=e[o+-224]*c,u=e[t+224]*c,l+=e[o+-160]*(c=f[r+-9]),u=u+e[t+160]*c+e[t+96]*(c=f[r+-8]),l=l+e[o+-96]*c+e[o+-32]*(c=f[r+-7]),u=u+e[t+32]*c+e[t+-32]*(c=f[r+-6]),l=l+e[o+32]*c+e[o+96]*(c=f[r+-5]),u=u+e[t+-96]*c+e[t+-160]*(c=f[r+-4]),l=l+e[o+160]*c+e[o+224]*(c=f[r+-3]),u=u+e[t+-224]*c-e[o+256]*(c=f[r+-2]),l=l+e[t+-256]*c+e[t+-192]*(c=f[r+-1]),u=u-e[o+192]*c-e[o+128]*(c=f[r+0]),l=l+e[t+-128]*c+e[t+-64]*(c=f[r+1]),u=u-e[o+64]*c-e[o+0]*(c=f[r+2]),l=l+e[t+0]*c+e[t+64]*(c=f[r+3]),u=u-e[o+-64]*c-e[o+-128]*(c=f[r+4]),l=l+e[t+128]*c+e[t+192]*(c=f[r+5]),c=(u-=e[o+-192]*c)-(l*=f[r+6]),n[30+2*s]=u+l,n[31+2*s]=f[r+7]*c,r+=18,t--,o++}u=e[t+-16]*f[r+-10],l=e[t+-32]*f[r+-2],a=(l=(l=(l=(l+=e[t+-96]*f[r+-1])+e[t+-160]*f[r+0]+e[t+-224]*f[r+1])-e[t+32]*f[r+2]-e[t+96]*f[r+3])-e[t+160]*f[r+4]-e[t+224])-(u=(u=(u=(u+=(e[t+-48]-e[t+16])*f[r+-9])+(e[t+-80]+e[t+48])*f[r+-8]+(e[t+-112]-e[t+80])*f[r+-7])+(e[t+-144]+e[t+112])*f[r+-6]+(e[t+-176]-e[t+144])*f[r+-5])+(e[t+-208]+e[t+176])*f[r+-4]+(e[t+-240]-e[t+208])*f[r+-3]),i=l+u,u=n[14],l=n[15]-u,n[31]=i+u,n[30]=a+l,n[15]=a-l,n[14]=i-u,a=n[28]-n[0],n[0]+=n[28],n[28]=a*f[r+-36+7],a=n[29]-n[1],n[1]+=n[29],n[29]=a*f[r+-36+7],a=n[26]-n[2],n[2]+=n[26],n[26]=a*f[r+-72+7],a=n[27]-n[3],n[3]+=n[27],n[27]=a*f[r+-72+7],a=n[24]-n[4],n[4]+=n[24],n[24]=a*f[r+-108+7],a=n[25]-n[5],n[5]+=n[25],n[25]=a*f[r+-108+7],a=n[22]-n[6],n[6]+=n[22],n[22]=a*Ut.SQRT2,a=n[23]-n[7],n[7]+=n[23],n[23]=a*Ut.SQRT2-n[7],n[7]-=n[6],n[22]-=n[7],n[23]-=n[22],n[6]=n[31]-(a=n[6]),n[31]=n[31]+a,n[7]=n[30]-(a=n[7]),n[30]=n[30]+a,n[22]=n[15]-(a=n[22]),n[15]=n[15]+a,n[23]=n[14]-(a=n[23]),n[14]=n[14]+a,a=n[20]-n[8],n[8]+=n[20],n[20]=a*f[r+-180+7],a=n[21]-n[9],n[9]+=n[21],n[21]=a*f[r+-180+7],a=n[18]-n[10],n[10]+=n[18],n[18]=a*f[r+-216+7],a=n[19]-n[11],n[11]+=n[19],n[19]=a*f[r+-216+7],a=n[16]-n[12],n[12]+=n[16],n[16]=a*f[r+-252+7],a=n[17]-n[13],n[13]+=n[17],n[17]=a*f[r+-252+7],a=-n[20]+n[24],n[20]+=n[24],n[24]=a*f[r+-216+7],a=-n[21]+n[25],n[21]+=n[25],n[25]=a*f[r+-216+7],a=n[4]-n[8],n[4]+=n[8],n[8]=a*f[r+-216+7],a=n[5]-n[9],n[5]+=n[9],n[9]=a*f[r+-216+7],a=n[0]-n[12],n[0]+=n[12],n[12]=a*f[r+-72+7],a=n[1]-n[13],n[1]+=n[13],n[13]=a*f[r+-72+7],a=n[16]-n[28],n[16]+=n[28],n[28]=a*f[r+-72+7],a=-n[17]+n[29],n[17]+=n[29],n[29]=a*f[r+-72+7],a=Ut.SQRT2*(n[2]-n[10]),n[2]+=n[10],n[10]=a,a=Ut.SQRT2*(n[3]-n[11]),n[3]+=n[11],n[11]=a,a=Ut.SQRT2*(-n[18]+n[26]),n[18]+=n[26],n[26]=a-n[18],a=Ut.SQRT2*(-n[19]+n[27]),n[19]+=n[27],n[27]=a-n[19],a=n[2],n[19]-=n[3],n[3]-=a,n[2]=n[31]-a,n[31]+=a,a=n[3],n[11]-=n[19],n[18]-=a,n[3]=n[30]-a,n[30]+=a,a=n[18],n[27]-=n[11],n[19]-=a,n[18]=n[15]-a,n[15]+=a,n[10]-=a=n[19],n[19]=n[14]-a,n[14]+=a,n[11]-=a=n[10],n[10]=n[23]-a,n[23]+=a,n[26]-=a=n[11],n[11]=n[22]-a,n[22]+=a,n[27]-=a=n[26],n[26]=n[7]-a,n[7]+=a,n[27]=n[6]-(a=n[27]),n[6]+=a,a=Ut.SQRT2*(n[0]-n[4]),n[0]+=n[4],n[4]=a,a=Ut.SQRT2*(n[1]-n[5]),n[1]+=n[5],n[5]=a,a=Ut.SQRT2*(n[16]-n[20]),n[16]+=n[20],n[20]=a,a=Ut.SQRT2*(n[17]-n[21]),n[17]+=n[21],n[21]=a,a=-Ut.SQRT2*(n[8]-n[12]),n[8]+=n[12],n[12]=a-n[8],a=-Ut.SQRT2*(n[9]-n[13]),n[9]+=n[13],n[13]=a-n[9],a=-Ut.SQRT2*(n[25]-n[29]),n[25]+=n[29],n[29]=a-n[25],a=-Ut.SQRT2*(n[24]+n[28]),n[24]-=n[28],n[28]=a-n[24],n[24]=a=n[24]-n[16],n[20]=a=n[20]-a,n[28]=n[28]-a,n[25]=a=n[25]-n[17],n[21]=a=n[21]-a,n[29]=n[29]-a,n[17]=a=n[17]-n[1],n[9]=a=n[9]-a,n[25]=a=n[25]-a,n[5]=a=n[5]-a,n[21]=a=n[21]-a,n[13]=a=n[13]-a,n[29]=n[29]-a,n[1]=a=n[1]-n[0],n[16]=a=n[16]-a,n[17]=a=n[17]-a,n[8]=a=n[8]-a,n[9]=a=n[9]-a,n[24]=a=n[24]-a,n[25]=a=n[25]-a,n[4]=a=n[4]-a,n[5]=a=n[5]-a,n[20]=a=n[20]-a,n[21]=a=n[21]-a,n[12]=a=n[12]-a,n[13]=a=n[13]-a,n[28]=a=n[28]-a,n[29]=n[29]-a,a=n[0],n[0]+=n[31],n[31]-=a,a=n[1],n[1]+=n[30],n[30]-=a,a=n[16],n[16]+=n[15],n[15]-=a,a=n[17],n[17]+=n[14],n[14]-=a,a=n[8],n[8]+=n[23],n[23]-=a,a=n[9],n[9]+=n[22],n[22]-=a,a=n[24],n[24]+=n[7],n[7]-=a,a=n[25],n[25]+=n[6],n[6]-=a,a=n[4],n[4]+=n[27],n[27]-=a,a=n[5],n[5]+=n[26],n[26]-=a,a=n[20],n[20]+=n[11],n[11]-=a,a=n[21],n[21]+=n[10],n[10]-=a,a=n[12],n[12]+=n[19],n[19]-=a,a=n[13],n[13]+=n[18],n[18]-=a,a=n[28],n[28]+=n[3],n[3]-=a,a=n[29],n[29]+=n[2],n[2]-=a}var f=[-.1482523854003001,32.308141959636465,296.40344946382766,883.1344870032432,11113.947376231741,1057.2713659324597,305.7402417275812,30.825928907280012,3.8533188138216365,59.42900443849514,709.5899960123345,5281.91112291017,-5829.66483675846,-817.6293103748613,-76.91656988279972,-4.594269939176596,.9063471690191471,.1960342806591213,-.15466694054279598,34.324387823855965,301.8067566458425,817.599602898885,11573.795901679885,1181.2520595540152,321.59731579894424,31.232021761053772,3.7107095756221318,53.650946155329365,684.167428119626,5224.56624370173,-6366.391851890084,-908.9766368219582,-89.83068876699639,-5.411397422890401,.8206787908286602,.3901806440322567,-.16070888947830023,36.147034243915876,304.11815768187864,732.7429163887613,11989.60988270091,1300.012278487897,335.28490093152146,31.48816102859945,3.373875931311736,47.232241542899175,652.7371796173471,5132.414255594984,-6909.087078780055,-1001.9990371107289,-103.62185754286375,-6.104916304710272,.7416505462720353,.5805693545089249,-.16636367662261495,37.751650073343995,303.01103387567713,627.9747488785183,12358.763425278165,1412.2779918482834,346.7496836825721,31.598286663170416,3.1598635433980946,40.57878626349686,616.1671130880391,5007.833007176154,-7454.040671756168,-1095.7960341867115,-118.24411666465777,-6.818469345853504,.6681786379192989,.7653668647301797,-.1716176790982088,39.11551877123304,298.3413246578966,503.5259106886539,12679.589408408976,1516.5821921214542,355.9850766329023,31.395241710249053,2.9164211881972335,33.79716964664243,574.8943997801362,4853.234992253242,-7997.57021486075,-1189.7624067269965,-133.6444792601766,-7.7202770609839915,.5993769336819237,.9427934736519954,-.17645823955292173,40.21879108166477,289.9982036694474,359.3226160751053,12950.259102786438,1612.1013903507662,362.85067106591504,31.045922092242872,2.822222032597987,26.988862316190684,529.8996541764288,4671.371946949588,-8535.899136645805,-1282.5898586244496,-149.58553632943463,-8.643494270763135,.5345111359507916,1.111140466039205,-.36174739330527045,41.04429910497807,277.5463268268618,195.6386023135583,13169.43812144731,1697.6433561479398,367.40983966190305,30.557037410382826,2.531473372857427,20.070154905927314,481.50208566532336,4464.970341588308,-9065.36882077239,-1373.62841526722,-166.1660487028118,-9.58289321133207,.4729647758913199,1.268786568327291,-.36970682634889585,41.393213350082036,261.2935935556502,12.935476055240873,13336.131683328815,1772.508612059496,369.76534388639965,29.751323653701338,2.4023193045459172,13.304795348228817,430.5615775526625,4237.0568611071185,-9581.931701634761,-1461.6913552409758,-183.12733958476446,-10.718010163869403,.41421356237309503,1.414213562373095,-.37677560326535325,41.619486213528496,241.05423794991074,-187.94665032361226,13450.063605744153,1836.153896465782,369.4908799925761,29.001847876923147,2.0714759319987186,6.779591200894186,377.7767837205709,3990.386575512536,-10081.709459700915,-1545.947424837898,-200.3762958015653,-11.864482073055006,.3578057213145241,1.546020906725474,-.3829366947518991,41.1516456456653,216.47684307105183,-406.1569483347166,13511.136535077321,1887.8076599260432,367.3025214564151,28.136213436723654,1.913880671464418,.3829366947518991,323.85365704338597,3728.1472257487526,-10561.233882199509,-1625.2025997821418,-217.62525175416,-13.015432208941645,.3033466836073424,1.66293922460509,-.5822628872992417,40.35639251440489,188.20071124269245,-640.2706748618148,13519.21490106562,1927.6022433578062,362.8197642637487,26.968821921868447,1.7463817695935329,-5.62650678237171,269.3016715297017,3453.386536448852,-11016.145278780888,-1698.6569643425091,-234.7658734267683,-14.16351421663124,.2504869601913055,1.76384252869671,-.5887180101749253,39.23429103868072,155.76096234403798,-889.2492977967378,13475.470561874661,1955.0535223723712,356.4450994756727,25.894952980042156,1.5695032905781554,-11.181939564328772,214.80884394039484,3169.1640829158237,-11443.321309975563,-1765.1588461316153,-251.68908574481912,-15.49755935939164,.198912367379658,1.847759065022573,-.7912582233652842,37.39369355329111,119.699486012458,-1151.0956593239027,13380.446257078214,1970.3952110853447,348.01959814116185,24.731487364283044,1.3850130831637748,-16.421408865300393,161.05030052864092,2878.3322807850063,-11838.991423510031,-1823.985884688674,-268.2854986386903,-16.81724543849939,.1483359875383474,1.913880671464418,-.7960642926861912,35.2322109610459,80.01928065061526,-1424.0212633405113,13235.794061869668,1973.804052543835,337.9908651258184,23.289159354463873,1.3934255946442087,-21.099669467133474,108.48348407242611,2583.700758091299,-12199.726194855148,-1874.2780658979746,-284.2467154529415,-18.11369784385905,.09849140335716425,1.961570560806461,-.998795456205172,32.56307803611191,36.958364584370486,-1706.075448829146,13043.287458812016,1965.3831106103316,326.43182772364605,22.175018750622293,1.198638339011324,-25.371248002043963,57.53505923036915,2288.41886619975,-12522.674544337233,-1914.8400385312243,-299.26241273417224,-19.37805630698734,.04912684976946725,1.990369453344394,.035780907*Ut.SQRT2*.5/2384e-9,.017876148*Ut.SQRT2*.5/2384e-9,.003134727*Ut.SQRT2*.5/2384e-9,.002457142*Ut.SQRT2*.5/2384e-9,971317e-9*Ut.SQRT2*.5/2384e-9,218868e-9*Ut.SQRT2*.5/2384e-9,101566e-9*Ut.SQRT2*.5/2384e-9,13828e-9*Ut.SQRT2*.5/2384e-9,12804.797818791945,1945.5515939597317,313.4244966442953,49591e-9/2384e-9,1995.1556208053692,21458e-9/2384e-9,-69618e-9/2384e-9],Y=[[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,940084909404969e-27,6423305872147839e-28,2382191739347918e-28,5456116108943412e-27,4878985199565852e-27,4240448995017367e-27,3559909094758252e-27,2858043359288075e-27,2156177623817898e-27,1475637723558783e-27,8371015190102974e-28,2599706096327376e-28,-5456116108943412e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758252e-27,-2858043359288076e-27,-2156177623817898e-27,-1475637723558783e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347923e-28,-6423305872147843e-28,-9400849094049696e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049694e-28,-642330587214784e-27,-2382191739347918e-28],[2382191739347913e-28,6423305872147834e-28,9400849094049688e-28,1122435026096556e-27,1183840321267481e-27,1122435026096556e-27,9400849094049688e-28,6423305872147841e-28,2382191739347918e-28,5456116108943413e-27,4878985199565852e-27,4240448995017367e-27,3559909094758253e-27,2858043359288075e-27,2156177623817898e-27,1475637723558782e-27,8371015190102975e-28,2599706096327376e-28,-5461314069809755e-27,-4921085770524055e-27,-4343405037091838e-27,-3732668368707687e-27,-3093523840190885e-27,-2430835727329465e-27,-1734679010007751e-27,-974825365660928e-27,-2797435120168326e-28,0,0,0,0,0,0,-2283748241799531e-28,-4037858874020686e-28,-2146547464825323e-28],[.1316524975873958,.414213562373095,.7673269879789602,1.091308501069271,1.303225372841206,1.56968557711749,1.920982126971166,2.414213562373094,3.171594802363212,4.510708503662055,7.595754112725146,22.90376554843115,.984807753012208,.6427876096865394,.3420201433256688,.9396926207859084,-.1736481776669303,-.7660444431189779,.8660254037844387,.5,-.5144957554275265,-.4717319685649723,-.3133774542039019,-.1819131996109812,-.09457419252642064,-.04096558288530405,-.01419856857247115,-.003699974673760037,.8574929257125442,.8817419973177052,.9496286491027329,.9833145924917901,.9955178160675857,.9991605581781475,.999899195244447,.9999931550702802],[0,0,0,0,0,0,2283748241799531e-28,4037858874020686e-28,2146547464825323e-28,5461314069809755e-27,4921085770524055e-27,4343405037091838e-27,3732668368707687e-27,3093523840190885e-27,2430835727329466e-27,1734679010007751e-27,974825365660928e-27,2797435120168326e-28,-5456116108943413e-27,-4878985199565852e-27,-4240448995017367e-27,-3559909094758253e-27,-2858043359288075e-27,-2156177623817898e-27,-1475637723558782e-27,-8371015190102975e-28,-2599706096327376e-28,-2382191739347913e-28,-6423305872147834e-28,-9400849094049688e-28,-1122435026096556e-27,-1183840321267481e-27,-1122435026096556e-27,-9400849094049688e-28,-6423305872147841e-28,-2382191739347918e-28]],j=Y[Xt.SHORT_TYPE],$=Y[Xt.SHORT_TYPE],G=Y[Xt.SHORT_TYPE],Z=Y[Xt.SHORT_TYPE],K=[0,1,16,17,8,9,24,25,4,5,20,21,12,13,28,29,2,3,18,19,10,11,26,27,6,7,22,23,14,15,30,31];this.mdct_sub48=function(e,q,V){for(var t,n,i,a,r,o,s,l,u,c,f,d,h,p=q,_=286,v=0;v<e.channels_out;v++){for(var g=0;g<e.mode_gr;g++){for(var m,F=e.l3_side.tt[g][v],b=F.xr,w=0,H=e.sb_sample[v][1-g],y=0,M=0;M<9;M++)for(U(p,_,H[y]),U(p,_+32,H[y+1]),y+=2,_+=64,m=1;m<32;m+=2)H[y-1][m]*=-1;for(m=0;m<32;m++,w+=18){var S=F.block_type,A=e.sb_sample[v][g],x=e.sb_sample[v][1-g];if(0!=F.mixed_block_flag&&m<2&&(S=0),e.amp_filter[m]<1e-12)Qt.fill(b,w+0,w+18,0);else{if(e.amp_filter[m]<1)for(M=0;M<18;M++)x[M][K[m]]*=e.amp_filter[m];if(S==Xt.SHORT_TYPE){for(M=-3;M<0;M++){var R=Y[Xt.SHORT_TYPE][M+3];b[w+3*M+9]=A[9+M][K[m]]*R-A[8-M][K[m]],b[w+3*M+18]=A[14-M][K[m]]*R+A[15+M][K[m]],b[w+3*M+10]=A[15+M][K[m]]*R-A[14-M][K[m]],b[w+3*M+19]=x[2-M][K[m]]*R+x[3+M][K[m]],b[w+3*M+11]=x[3+M][K[m]]*R-x[2-M][K[m]],b[w+3*M+20]=x[8-M][K[m]]*R+x[9+M][K[m]]}O=I=P=C=T=B=z=k=E=void 0;for(var E=b,k=w,z=0;z<3;z++){var P=E[k+6]*Y[Xt.SHORT_TYPE][0]-E[k+15],B=E[k+0]*Y[Xt.SHORT_TYPE][2]-E[k+9],T=P+B,C=P-B,I=(P=E[k+15]*Y[Xt.SHORT_TYPE][0]+E[k+6])+(B=E[k+9]*Y[Xt.SHORT_TYPE][2]+E[k+0]),O=-P+B;B=2069978111953089e-26*(E[k+3]*Y[Xt.SHORT_TYPE][1]-E[k+12]),P=2069978111953089e-26*(E[k+12]*Y[Xt.SHORT_TYPE][1]+E[k+3]),E[k+0]=190752519173728e-25*T+B,E[k+15]=190752519173728e-25*-I+P,E[k+3]=(C=.8660254037844387*C*1907525191737281e-26)-(I=.5*I*1907525191737281e-26+P),E[k+6]=C+I,E[k+9]=(T=.5*T*1907525191737281e-26-B)+(O=.8660254037844387*O*1907525191737281e-26),E[k+12]=T-O,k++}}else{for(var L=Ht(18),M=-9;M<0;M++){var N=Y[S][M+27]*x[M+9][K[m]]+Y[S][M+36]*x[8-M][K[m]],W=Y[S][M+9]*A[M+9][K[m]]-Y[S][M+18]*A[8-M][K[m]];L[M+9]=N-W*j[3+M+9],L[M+18]=N*j[3+M+9]+W}t=b,n=w,h=d=f=c=u=l=s=o=r=a=void 0,s=(i=L)[17]-i[9],l=i[15]-i[11],u=i[14]-i[12],c=i[0]+i[8],f=i[1]+i[7],d=i[2]+i[6],h=i[3]+i[5],t[n+17]=c+d-h-(f-i[4]),r=(c+d-h)*$[19]+(f-i[4]),a=(s-l-u)*$[18],t[n+5]=a+r,t[n+6]=a-r,o=(i[16]-i[10])*$[18],f=f*$[19]+i[4],a=s*$[12]+o+l*$[13]+u*$[14],r=-c*$[16]+f-d*$[17]+h*$[15],t[n+1]=a+r,t[n+2]=a-r,a=s*$[13]-o-l*$[14]+u*$[12],r=-c*$[17]+f-d*$[15]+h*$[16],t[n+9]=a+r,t[n+10]=a-r,a=s*$[14]-o+l*$[12]-u*$[13],r=c*$[15]-f+d*$[16]-h*$[17],t[n+13]=a+r,t[n+14]=a-r,s=i[8]-i[0],o=i[6]-i[2],l=i[5]-i[3],t[n+0]=(u=i[17]+i[9])+(c=i[15]+i[11])+(f=i[14]+i[12])+((d=i[16]+i[10])+i[13]),a=(u+c+f)*$[19]-(d+i[13]),r=(s-o+l)*$[18],t[n+11]=a+r,t[n+12]=a-r,h=(i[7]-i[1])*$[18],d=i[13]-d*$[19],a=u*$[15]-d+c*$[16]+f*$[17],r=s*$[14]+h+o*$[12]+l*$[13],t[n+3]=a+r,t[n+4]=a-r,a=-u*$[17]+d-c*$[15]-f*$[16],r=s*$[13]+h-o*$[14]-l*$[12],t[n+7]=a+r,t[n+8]=a-r,a=-u*$[16]+d-c*$[17]-f*$[15],r=s*$[12]-h+o*$[13]-l*$[14],t[n+15]=a+r,t[n+16]=a-r}}if(S!=Xt.SHORT_TYPE&&0!=m)for(M=7;0<=M;--M){var X=b[w+M]*G[20+M]+b[w+-1-M]*Z[28+M],Q=b[w+M]*Z[28+M]-b[w+-1-M]*G[20+M];b[w+-1-M]=X,b[w+M]=Q}}}if(p=V,_=286,1==e.mode_gr)for(var D=0;D<18;D++)ee.arraycopy(e.sb_sample[v][1][D],0,e.sb_sample[v][0][D],0,32)}}}function j(){this.thm=new i,this.en=new i}function Xt(){var H=Xt.FFTOFFSET,z=Xt.MPG_MD_MS_LR,L=null,N=this.psy=null,W=null,X=null,Q=(this.setModules=function(e,t,n,i){L=e,this.psy=t,N=t,W=i,X=n},new o);this.lame_encode_mp3_frame=function(e,t,n,q,V,F){var i=U([2,2]),a=(i[0][0]=new j,i[0][1]=new j,i[1][0]=new j,i[1][1]=new j,U([2,2]));a[0][0]=new j,a[0][1]=new j,a[1][0]=new j,a[1][1]=new j;var r,o,s,l,u,c=[null,null],f=e.internal_flags,d=zt([2,4]),h=[.5,.5],p=[[0,0],[0,0]],_=[[0,0],[0,0]];if(c[0]=t,c[1]=n,0==f.lame_encode_frame_init){var v=c,g,m,b=(t=e).internal_flags;if(0==b.lame_encode_frame_init){var w,y,M=Ht(2014),S=Ht(2014);for(b.lame_encode_frame_init=1,y=w=0;w<286+576*(1+b.mode_gr);++w)w<576*b.mode_gr?(M[w]=0,2==b.channels_out&&(S[w]=0)):(M[w]=v[0][y],2==b.channels_out&&(S[w]=v[1][y]),++y);for(m=0;m<b.mode_gr;m++)for(g=0;g<b.channels_out;g++)b.l3_side.tt[m][g].block_type=Xt.SHORT_TYPE;Q.mdct_sub48(b,M,S)}}if(f.padding=0,(f.slot_lag-=f.frac_SpF)<0&&(f.slot_lag+=e.out_samplerate,f.padding=1),0!=f.psymodel)for(var A=[null,null],x=0,R=Ft(2),E=0;E<f.mode_gr;E++){for(s=0;s<f.channels_out;s++)A[s]=c[s],x=576+576*E-Xt.FFTOFFSET;if(0!=(e.VBR==Nt.vbr_mtrh||e.VBR==Nt.vbr_mt?N.L3psycho_anal_vbr(e,A,x,E,i,a,p[E],_[E],d[E],R):N.L3psycho_anal_ns(e,A,x,E,i,a,p[E],_[E],d[E],R)))return-4;for(e.mode==Wt.JOINT_STEREO&&(h[E]=d[E][2]+d[E][3],0<h[E])&&(h[E]=d[E][3]/h[E]),s=0;s<f.channels_out;s++){var k=f.l3_side.tt[E][s];k.block_type=R[s],k.mixed_block_flag=0}}else for(E=0;E<f.mode_gr;E++)for(s=0;s<f.channels_out;s++)f.l3_side.tt[E][s].block_type=Xt.NORM_TYPE,f.l3_side.tt[E][s].mixed_block_flag=0,_[E][s]=p[E][s]=700;if((e=>{var t,n;if(0==e.ATH.useAdjust)return e.ATH.adjust=1;t=e.loudness_sq[0][0],n=e.loudness_sq[1][0],2==e.channels_out?(t+=e.loudness_sq[0][1],n+=e.loudness_sq[1][1]):(t+=t,n+=n),.03125<(t=(t=2==e.mode_gr?Math.max(t,n):t)*.5*e.ATH.aaSensitivityP)?(1<=e.ATH.adjust?e.ATH.adjust=1:e.ATH.adjust<e.ATH.adjustLimit&&(e.ATH.adjust=e.ATH.adjustLimit),e.ATH.adjustLimit=1):(e.ATH.adjust>=(n=31.98*t+625e-6)?(e.ATH.adjust*=.075*n+.925,e.ATH.adjust<n&&(e.ATH.adjust=n)):e.ATH.adjustLimit>=n?e.ATH.adjust=n:e.ATH.adjust<e.ATH.adjustLimit&&(e.ATH.adjust=e.ATH.adjustLimit),e.ATH.adjustLimit=n)})(f),Q.mdct_sub48(f,c[0],c[1]),f.mode_ext=Xt.MPG_MD_LR_LR,e.force_ms)f.mode_ext=Xt.MPG_MD_MS_LR;else if(e.mode==Wt.JOINT_STEREO){var P=0,B=0;for(E=0;E<f.mode_gr;E++)for(s=0;s<f.channels_out;s++)P+=_[E][s],B+=p[E][s];P<=+B&&(n=f.l3_side.tt[0],t=f.l3_side.tt[f.mode_gr-1],n[0].block_type==n[1].block_type)&&t[0].block_type==t[1].block_type&&(f.mode_ext=Xt.MPG_MD_MS_LR)}if(o=f.mode_ext==z?(r=a,_):(r=i,p),e.analysis&&null!=f.pinfo)for(E=0;E<f.mode_gr;E++)for(s=0;s<f.channels_out;s++)f.pinfo.ms_ratio[E]=f.ms_ratio[E],f.pinfo.ms_ener_ratio[E]=h[E],f.pinfo.blocktype[E][s]=f.l3_side.tt[E][s].block_type,f.pinfo.pe[E][s]=o[E][s],ee.arraycopy(f.l3_side.tt[E][s].xr,0,f.pinfo.xr[E][s],0,576),f.mode_ext==z&&(f.pinfo.ers[E][s]=f.pinfo.ers[E][s+2],ee.arraycopy(f.pinfo.energy[E][s+2],0,f.pinfo.energy[E][s],0,f.pinfo.energy[E][s].length));if(e.VBR==Nt.vbr_off||e.VBR==Nt.vbr_abr){for(var T,C=0;C<18;C++)f.nsPsy.pefirbuf[C]=f.nsPsy.pefirbuf[C+1];for(E=T=0;E<f.mode_gr;E++)for(s=0;s<f.channels_out;s++)T+=o[E][s];for(f.nsPsy.pefirbuf[18]=T,T=f.nsPsy.pefirbuf[9],C=0;C<9;C++)T+=(f.nsPsy.pefirbuf[C]+f.nsPsy.pefirbuf[18-C])*Xt.fircoef[C];for(T=3350*f.mode_gr*f.channels_out/T,E=0;E<f.mode_gr;E++)for(s=0;s<f.channels_out;s++)o[E][s]*=T}if(f.iteration_loop.iteration_loop(e,o,h,r),L.format_bitstream(e),n=L.copy_buffer(f,q,V,F,1),e.bWriteVbrTag&&W.addVbrFrame(e),e.analysis&&null!=f.pinfo){for(s=0;s<f.channels_out;s++){for(var I=0;I<H;I++)f.pinfo.pcmdata[s][I]=f.pinfo.pcmdata[s][I+e.framesize];for(I=H;I<1600;I++)f.pinfo.pcmdata[s][I]=c[s][I-H]}X.set_frame_pinfo(e,r)}var O=f;for(O.bitrate_stereoMode_Hist[O.bitrate_index][4]++,O.bitrate_stereoMode_Hist[15][4]++,2==O.channels_out&&(O.bitrate_stereoMode_Hist[O.bitrate_index][O.mode_ext]++,O.bitrate_stereoMode_Hist[15][O.mode_ext]++),l=0;l<O.mode_gr;++l)for(u=0;u<O.channels_out;++u){var D=0|O.l3_side.tt[l][u].block_type;0!=O.l3_side.tt[l][u].mixed_block_flag&&(D=4),O.bitrate_blockType_Hist[O.bitrate_index][D]++,O.bitrate_blockType_Hist[O.bitrate_index][5]++,O.bitrate_blockType_Hist[15][D]++,O.bitrate_blockType_Hist[15][5]++}return n}}function l(){this.sum=0,this.seen=0,this.want=0,this.pos=0,this.size=0,this.bag=null,this.nVbrNumFrames=0,this.nBytesWritten=0,this.TotalFrameSize=0}function u(){this.tt=[[null,null],[null,null]],this.main_data_begin=0,this.private_bits=0,this.resvDrain_pre=0,this.resvDrain_post=0,this.scfsi=[Ft(4),Ft(4)];for(var e=0;e<2;e++)for(var t=0;t<2;t++)this.tt[e][t]=new F}function c(){this.last_en_subshort=zt([4,9]),this.lastAttacks=Ft(4),this.pefirbuf=Ht(19),this.longfact=Ht(Xt.SBMAX_l),this.shortfact=Ht(Xt.SBMAX_s),this.attackthre=0,this.attackthre_s=0}function i(){this.l=Ht(Xt.SBMAX_l),this.s=zt([Xt.SBMAX_s,3]);var i=this;this.assign=function(e){ee.arraycopy(e.l,0,i.l,0,Xt.SBMAX_l);for(var t=0;t<Xt.SBMAX_s;t++)for(var n=0;n<3;n++)i.s[t][n]=e.s[t][n]}}function K(){function e(){this.write_timing=0,this.ptr=0,this.buf=x(t)}var t=40;this.Class_ID=0,this.lame_encode_frame_init=0,this.iteration_init_init=0,this.fill_buffer_resample_init=0,this.mfbuf=zt([2,K.MFSIZE]),this.mode_gr=0,this.channels_in=0,this.channels_out=0,this.resample_ratio=0,this.mf_samples_to_encode=0,this.mf_size=0,this.VBR_min_bitrate=0,this.VBR_max_bitrate=0,this.bitrate_index=0,this.samplerate_index=0,this.mode_ext=0,this.lowpass1=0,this.lowpass2=0,this.highpass1=0,this.highpass2=0,this.noise_shaping=0,this.noise_shaping_amp=0,this.substep_shaping=0,this.psymodel=0,this.noise_shaping_stop=0,this.subblock_gain=0,this.use_best_huffman=0,this.full_outer_loop=0,this.l3_side=new u,this.ms_ratio=Ht(2),this.padding=0,this.frac_SpF=0,this.slot_lag=0,this.tag_spec=null,this.nMusicCRC=0,this.OldValue=Ft(2),this.CurrentStep=Ft(2),this.masking_lower=0,this.bv_scf=Ft(576),this.pseudohalf=Ft(H.SFBMAX),this.sfb21_extra=!1,this.inbuf_old=new Array(2),this.blackfilt=new Array(2*K.BPC+1),this.itime=new Float64Array(2),this.sideinfo_len=0,this.sb_sample=zt([2,2,18,Xt.SBLIMIT]),this.amp_filter=Ht(32),this.header=new Array(K.MAX_HEADER_BUF),this.h_ptr=0,this.w_ptr=0,this.ancillary_flag=0,this.ResvSize=0,this.ResvMax=0,this.scalefac_band=new a,this.minval_l=Ht(Xt.CBANDS),this.minval_s=Ht(Xt.CBANDS),this.nb_1=zt([4,Xt.CBANDS]),this.nb_2=zt([4,Xt.CBANDS]),this.nb_s1=zt([4,Xt.CBANDS]),this.nb_s2=zt([4,Xt.CBANDS]),this.s3_ss=null,this.s3_ll=null,this.decay=0,this.thm=new Array(4),this.en=new Array(4),this.tot_ener=Ht(4),this.loudness_sq=zt([2,2]),this.loudness_sq_save=Ht(2),this.mld_l=Ht(Xt.SBMAX_l),this.mld_s=Ht(Xt.SBMAX_s),this.bm_l=Ft(Xt.SBMAX_l),this.bo_l=Ft(Xt.SBMAX_l),this.bm_s=Ft(Xt.SBMAX_s),this.bo_s=Ft(Xt.SBMAX_s),this.npart_l=0,this.npart_s=0,this.s3ind=$([Xt.CBANDS,2]),this.s3ind_s=$([Xt.CBANDS,2]),this.numlines_s=Ft(Xt.CBANDS),this.numlines_l=Ft(Xt.CBANDS),this.rnumlines_l=Ht(Xt.CBANDS),this.mld_cb_l=Ht(Xt.CBANDS),this.mld_cb_s=Ht(Xt.CBANDS),this.numlines_s_num1=0,this.numlines_l_num1=0,this.pe=Ht(4),this.ms_ratio_s_old=0,this.ms_ratio_l_old=0,this.ms_ener_ratio_old=0,this.blocktype_old=Ft(2),this.nsPsy=new c,this.VBR_seek_table=new l,this.ATH=null,this.PSY=null,this.nogap_total=0,this.nogap_current=0,this.decode_on_the_fly=!0,this.findReplayGain=!0,this.findPeakSample=!0,this.PeakSample=0,this.RadioGain=0,this.AudiophileGain=0,this.rgdata=null,this.noclipGainChange=0,this.noclipScale=0,this.bitrate_stereoMode_Hist=$([16,5]),this.bitrate_blockType_Hist=$([16,6]),this.pinfo=null,this.hip=null,this.in_buffer_nsamples=0,this.in_buffer_0=null,this.in_buffer_1=null,this.iteration_loop=null;for(var n=0;n<this.en.length;n++)this.en[n]=new i;for(n=0;n<this.thm.length;n++)this.thm[n]=new i;for(n=0;n<this.header.length;n++)this.header[n]=new e}function f(){function _(e,t,n){var i=0,a=t+(n<<=1);d=4;do{var r,o,s,l=d>>1,u=d,c=d<<1,f=c+u,d=c<<1;v=(_=t)+l;do{}while(b=e[_+0]-e[_+u],S=e[_+c]-e[_+f],e[_+c]=(m=e[_+0]+e[_+u])-(y=e[_+c]+e[_+f]),e[_+0]=m+y,e[_+f]=b-S,e[_+u]=b+S,b=e[v+0]-e[v+u],S=Ut.SQRT2*e[v+f],y=Ut.SQRT2*e[v+c],e[v+c]=(m=e[v+0]+e[v+u])-y,e[v+0]=m+y,e[v+f]=b-S,e[v+u]=b+S,v+=d,(_+=d)<a);for(o=E[i+0],r=E[i+1],s=1;s<l;s++){var h=1-2*r*r,p=2*r*o,_=t+s,v=t+u-s;do{var g,m,b,w,y,M,S,A,x=p*e[_+u]-h*e[v+u],R=h*e[_+u]+p*e[v+u]}while(b=e[_+0]-R,m=e[_+0]+R,w=e[v+0]-x,g=e[v+0]+x,S=e[_+c]-(R=h*e[_+f]+p*e[v+f]),M=e[v+c]+(x=p*e[_+f]-h*e[v+f]),x=r*(y=e[_+c]+R)-o*(A=e[v+c]-x),e[_+c]=m-(R=o*y+r*A),e[_+0]=m+R,e[v+f]=w-x,e[v+u]=w+x,x=o*M-r*S,e[v+c]=g-(R=r*M+o*S),e[v+0]=g+R,e[_+f]=b-x,e[_+u]=b+x,v+=d,(_+=d)<a);o=(h=o)*E[i+0]-r*E[i+1],r=h*E[i+1]+r*E[i+0]}}while(i+=2,d<n)}var h=Ht(Xt.BLKSIZE),v=Ht(Xt.BLKSIZE_s/2),E=[.9238795325112867,.3826834323650898,.9951847266721969,.0980171403295606,.9996988186962042,.02454122852291229,.9999811752826011,.006135884649154475],g=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254];this.fft_short=function(e,t,n,i,a){for(var r=0;r<3;r++){var o=Xt.BLKSIZE_s/2,s=65535&192*(r+1),l=Xt.BLKSIZE_s/8-1;do{var u,c,f=255&g[l<<2],d=v[f]*i[n][a+f+s],h=v[127-f]*i[n][a+f+s+128],p=d-h}while(d+=h,c=(u=v[64+f]*i[n][a+f+s+64])-(h=v[63-f]*i[n][a+f+s+192]),u+=h,o-=4,t[r][o+0]=d+u,t[r][o+2]=d-u,t[r][o+1]=p+c,t[r][o+3]=p-c,p=(d=v[1+f]*i[n][a+f+s+1])-(h=v[126-f]*i[n][a+f+s+129]),d+=h,c=(u=v[65+f]*i[n][a+f+s+65])-(h=v[62-f]*i[n][a+f+s+193]),u+=h,t[r][o+Xt.BLKSIZE_s/2+0]=d+u,t[r][o+Xt.BLKSIZE_s/2+2]=d-u,t[r][o+Xt.BLKSIZE_s/2+1]=p+c,t[r][o+Xt.BLKSIZE_s/2+3]=p-c,0<=--l);_(t[r],o,Xt.BLKSIZE_s/2)}},this.fft_long=function(e,t,n,i,a){var r=Xt.BLKSIZE/8-1,o=Xt.BLKSIZE/2;do{var s,l,u=255&g[r],c=h[u]*i[n][a+u],f=h[512+u]*i[n][a+u+512],d=c-f}while(c+=f,l=(s=h[256+u]*i[n][a+u+256])-(f=h[768+u]*i[n][a+u+768]),t[(o-=4)+0]=c+(s+=f),t[o+2]=c-s,t[o+1]=d+l,t[o+3]=d-l,d=(c=h[1+u]*i[n][a+u+1])-(f=h[513+u]*i[n][a+u+513]),c+=f,l=(s=h[257+u]*i[n][a+u+257])-(f=h[769+u]*i[n][a+u+769]),t[o+Xt.BLKSIZE/2+0]=c+(s+=f),t[o+Xt.BLKSIZE/2+2]=c-s,t[o+Xt.BLKSIZE/2+1]=d+l,t[o+Xt.BLKSIZE/2+3]=d-l,0<=--r);_(t,o,Xt.BLKSIZE/2)},this.init_fft=function(e){for(var t=0;t<Xt.BLKSIZE;t++)h[t]=.42-.5*Math.cos(2*Math.PI*(t+.5)/Xt.BLKSIZE)+.08*Math.cos(4*Math.PI*(t+.5)/Xt.BLKSIZE);for(t=0;t<Xt.BLKSIZE_s/2;t++)v[t]=.5*(1-Math.cos(2*Math.PI*(t+.5)/Xt.BLKSIZE_s))}}function J(){function St(e,t){for(var n=0,i=0;i<Xt.BLKSIZE/2;++i)n+=e[i]*t.ATH.eql_w[i];return n*a}function At(e,t,n){var i;return t<0&&(t=0),(e=e<0?0:e)<=0?t:t<=0?e:(i=e<t?t/e:e/t,-2<=n&&n<=2?gt<=i?e+t:(n=0|Ut.FAST_LOG10_X(i,16),(e+t)*r[n]):i<mt?e+t:e=e<t?t:e)}function xt(e,t,n,i,a){for(var r,o=0,s=0,l=r=0;l<Xt.SBMAX_s;++r,++l){for(var u=e.bo_s[l],c=e.npart_s,f=u<c?u:c;r<f;)o+=t[r],s+=n[r],r++;if(e.en[i].s[l][a]=o,e.thm[i].s[l][a]=s,c<=r){++l;break}u=e.PSY.bo_s_weight[l],c=1-u,o=u*t[r],s=u*n[r];e.en[i].s[l][a]+=o,e.thm[i].s[l][a]+=s,o=c*t[r],s=c*n[r]}for(;l<Xt.SBMAX_s;++l)e.en[i].s[l][a]=0,e.thm[i].s[l][a]=0}function Rt(e,t,n,i){for(var a,r=0,o=0,s=a=0;s<Xt.SBMAX_l;++a,++s){for(var l=e.bo_l[s],u=e.npart_l,c=l<u?l:u;a<c;)r+=t[a],o+=n[a],a++;if(e.en[i].l[s]=r,e.thm[i].l[s]=o,u<=a){++s;break}l=e.PSY.bo_l_weight[s],u=1-l,r=l*t[a],o=l*n[a];e.en[i].l[s]+=r,e.thm[i].l[s]+=o,r=u*t[a],o=u*n[a]}for(;s<Xt.SBMAX_l;++s)e.en[i].l[s]=0,e.thm[i].l[s]=0}function Et(e,t,n){return 1<=n?e:n<=0?t:0<t?Math.pow(e/t,n)*t:0}function kt(e,t){for(var n=309.07,i=0;i<Xt.SBMAX_s-1;i++)for(var a=0;a<3;a++){var r,o=e.thm.s[i][a];0<o&&(o=o*t)<(r=e.en.s[i][a])&&(n+=1e10*o<r?s[i]*(10*R):s[i]*Ut.FAST_LOG10(r/o))}return n}function Pt(e,t){for(var n=281.0575,i=0;i<Xt.SBMAX_l-1;i++){var a,r=e.thm.l[i];0<r&&(r=r*t)<(a=e.en.l[i])&&(n+=1e10*r<a?o[i]*(10*R):o[i]*Ut.FAST_LOG10(a/r))}return n}function Bt(e,t,n,i,a){for(var r,o=r=0;o<e.npart_l;++o){for(var s=0,l=0,u=0;u<e.numlines_l[o];++u,++r){var c=t[r];s+=c,l<c&&(l=c)}n[o]=s,i[o]=l,a[o]=s*e.rnumlines_l[o]}}function Tt(e,t,n,i){var a,r,o=Dt.length-1,s=0,l=n[s]+n[s+1];for(0<l?(r=0|(l=20*(2*(a=(a=t[s])<t[s+1]?t[s+1]:a)-l)/(l*(e.numlines_l[s]+e.numlines_l[s+1]-1))),i[s]=r=o<r?o:r):i[s]=0,s=1;s<e.npart_l-1;s++)0<(l=n[s-1]+n[s]+n[s+1])?(o<(r=0|(l=20*(3*(a=(a=(a=t[s-1])<t[s]?t[s]:a)<t[s+1]?t[s+1]:a)-l)/(l*(e.numlines_l[s-1]+e.numlines_l[s]+e.numlines_l[s+1]-1))))&&(r=o),i[s]=r):i[s]=0;0<(l=n[s-1]+n[s])?(r=0|(l=20*(2*(a=(a=t[s-1])<t[s]?t[s]:a)-l)/(l*(e.numlines_l[s-1]+e.numlines_l[s]-1))),i[s]=r=o<r?o:r):i[s]=0}function Ct(e,t,n,i,a,r){for(var o,s=e.internal_flags,l=new float[Xt.CBANDS],u=Ht(Xt.CBANDS),c=new int[Xt.CBANDS],f=o=0;f<s.npart_s;++f){for(var d=0,h=0,p=s.numlines_s[f],_=0;_<p;++_,++o){var v=t[r][o];d+=v,h<v&&(h=v)}n[f]=d,l[f]=h,u[f]=d/p}for(;f<Xt.CBANDS;++f)l[f]=0,u[f]=0;var g,m,b=s,w=l,y=u,M=c,S=Dt.length-1,A=0,x=y[A]+y[A+1];for(0<x?(m=0|(x=20*(2*(g=(g=w[A])<w[A+1]?w[A+1]:g)-x)/(x*(b.numlines_s[A]+b.numlines_s[A+1]-1))),M[A]=m=S<m?S:m):M[A]=0,A=1;A<b.npart_s-1;A++)0<(x=y[A-1]+y[A]+y[A+1])?(S<(m=0|(x=20*(3*(g=(g=(g=w[A-1])<w[A]?w[A]:g)<w[A+1]?w[A+1]:g)-x)/(x*(b.numlines_s[A-1]+b.numlines_s[A]+b.numlines_s[A+1]-1))))&&(m=S),M[A]=m):M[A]=0;for(0<(x=y[A-1]+y[A])?(m=0|(x=20*(2*(g=(g=w[A-1])<w[A]?w[A]:g)-x)/(x*(b.numlines_s[A-1]+b.numlines_s[A]-1))),M[A]=m=S<m?S:m):M[A]=0,o=f=0;f<s.npart_s;f++){var R,E,k=s.s3ind_s[f][0],P=s.s3ind_s[f][1],B=c[k],T=1,C=s.s3_ss[o]*n[k]*Dt[c[k]];for(++o,++k;k<=P;)B+=c[k],T+=1,C=At(C,R=s.s3_ss[o]*n[k]*Dt[c[k]],k-f),++o,++k;C*=E=.5*Dt[B=(1+2*B)/(2*T)],i[f]=C,s.nb_s2[a][f]=s.nb_s1[a][f],s.nb_s1[a][f]=C,(R=(R=l[f])*s.minval_s[f]*E)<i[f]&&(i[f]=R),1<s.masking_lower&&(i[f]*=s.masking_lower),n[f]<i[f]&&(i[f]=n[f]),s.masking_lower<1&&(i[f]*=s.masking_lower)}for(;f<Xt.CBANDS;++f)n[f]=0,i[f]=0}function It(e,t,n,i,a,r,o){for(var s=2*r,l=0<r?Math.pow(10,a):1,u=0;u<o;++u){var c,f,d,h=e[2][u],p=e[3][u],_=t[0][u],v=t[1][u],g=t[2][u],m=t[3][u];f=_<=1.58*v&&v<=1.58*_?(c=n[u]*p,f=n[u]*h,c=Math.max(g,Math.min(m,c)),Math.max(m,Math.min(g,f))):(c=g,m),0<r&&(d=i[u]*l,_=Math.min(Math.max(_,d),Math.max(v,d)),0<(v=(g=Math.max(c,d))+(m=Math.max(f,d)))&&_*s<v&&(g*=d=_*s/v,m*=d),c=Math.min(g,c),f=Math.min(m,f)),h<c&&(c=h),p<f&&(f=p),t[2][u]=c,t[3][u]=f}}function m(e,t){e=0<=e?27*-e:e*t;return e<=-72?0:Math.exp(e*b)}function E(e){return e<0&&(e=0),e*=.001,13*Math.atan(.76*e)+3.5*Math.atan(e*e/56.25)}function S(e,t,n,i,a,r,o,s,l,u,c,f){for(var d,h=Ht(Xt.CBANDS+1),p=s/(15<f?1152:384),_=Ft(Xt.HBLKSIZE),v=(s/=l,0),g=0,m=0;m<Xt.CBANDS;m++){for(A=E(s*v),h[m]=s*v,d=v;E(s*d)-A<.34&&d<=l/2;d++);for(e[m]=d-v,g=m+1;v<d;)_[v++]=m;if(l/2<v){v=l/2,++m;break}}h[m]=s*v;for(var b=0;b<f;b++){var w,y=u[b],M=u[b+1],y=0|Math.floor(.5+c*(y-.5));y<0&&(y=0),l/2<(w=0|Math.floor(.5+c*(M-.5)))&&(w=l/2),n[b]=(_[y]+_[w])/2,t[b]=_[w],o[b]=(p*M-h[t[b]])/(h[t[b]+1]-h[t[b]]),o[b]<0?o[b]=0:1<o[b]&&(o[b]=1),y=E(s*u[b]*c),y=Math.min(y,15.5)/15.5,r[b]=Math.pow(10,1.25*(1-Math.cos(Math.PI*y))-2.5)}for(var v=0,S=0;S<g;S++){var A,x,R=e[S];A=E(s*v),x=E(s*(v+R-1)),i[S]=.5*(A+x),A=E(s*(v-.5)),x=E(s*(v+R-.5)),a[S]=x-A,v+=R}return g}function A(e,t,n,i,a,r){var o,s,l,u,c=zt([Xt.CBANDS,Xt.CBANDS]),f=0;if(r)for(var d=0;d<t;d++)for(o=0;o<t;o++){s=n[d]-n[o],u=l=void 0,u=.5<=(s*=0<=s?3:1.5)&&s<=2.5?8*((u=s-.5)*u-2*u):0;var h=((l=15.811389+7.5*(s+=.474)-17.5*Math.sqrt(1+s*s))<=-60?0:(s=Math.exp((u+l)*b))/.6609193)*i[o];c[d][o]=h*a[d]}else for(o=0;o<t;o++)for(var p=15+Math.min(21/n[o],12),_=(e=>{var t=0;for(t=0;1e-20<m(t,e);--t);for(n=t,i=0;1e-12<Math.abs(i-n);)0<m(t=(i+n)/2,e)?i=t:n=t;var n,i,a=n,t=0;for(t=0;1e-20<m(t,e);t+=1);for(n=0,i=t;1e-12<Math.abs(i-n);)0<m(t=(i+n)/2,e)?n=t:i=t;for(var r=i,o=0,s=0;s<=1e3;++s)o+=m(t=a+s*(r-a)/1e3,e);return 1001/(o*(r-a))})(p),d=0;d<t;d++){h=_*m(n[d]-n[o],p)*i[o];c[d][o]=h*a[d]}for(d=0;d<t;d++){for(o=0;o<t&&!(0<c[d][o]);o++);for(e[d][0]=o,o=t-1;0<o&&!(0<c[d][o]);o--);e[d][1]=o,f+=e[d][1]-e[d][0]+1}for(var v=Ht(f),g=0,d=0;d<t;d++)for(o=e[d][0];o<=e[d][1];o++)v[g++]=c[d][o];return v}function x(e){e=E(e),e=Math.min(e,15.5)/15.5;return Math.pow(10,1.25*(1-Math.cos(Math.PI*e))-2.5)}function i(e,t){return e<-.3&&(e=3410),e/=1e3,e=Math.max(.1,e),3.64*Math.pow(e,-.8)-6.8*Math.exp(-.6*Math.pow(e-3.4,2))+6*Math.exp(-.15*Math.pow(e-8.7,2))+.001*(.6+.04*t)*Math.pow(e,4)}var gt,mt,bt,Ot=new f,R=2.302585092994046,a=1/217621504/(Xt.BLKSIZE/2),b=.2302585093,Dt=[1,.79433,.63096,.63096,.63096,.63096,.63096,.25119,.11749],wt=[3.3246*3.3246,3.23837*3.23837,9.9500500969,9.0247369744,8.1854926609,7.0440875649,2.46209*2.46209,2.284*2.284,4.4892710641,1.96552*1.96552,1.82335*1.82335,1.69146*1.69146,2.4621061921,2.1508568964,1.37074*1.37074,1.31036*1.31036,1.5691069696,1.4555939904,1.16203*1.16203,1.2715945225,1.09428*1.09428,1.0659*1.0659,1.0779838276,1.0382591025,1],yt=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1],Mt=[5.5396212496,2.29259*2.29259,4.9868695969,2.12675*2.12675,2.02545*2.02545,1.87894*1.87894,1.74303*1.74303,1.61695*1.61695,2.2499700001,1.39148*1.39148,1.29083*1.29083,1.19746*1.19746,1.2339655056,1.0779838276],r=[1.7782755904,1.35879*1.35879,1.38454*1.38454,1.39497*1.39497,1.40548*1.40548,1.3537*1.3537,1.6999465924,1.22321*1.22321,1.3169398564,1],s=[11.8,13.6,17.2,32,46.5,51.3,57.5,67.1,71.5,84.6,97.6,130],o=[6.8,5.8,5.8,6.4,6.5,9.9,12.1,14.4,15,18.9,21.6,26.9,34.2,40.2,46.8,56.5,60.7,73.9,85.7,93.4,126.1],qt=[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638],Vt=(this.L3psycho_anal_ns=function(e,q,V,t,F,H,z,L,N,W){var X,n,i,Q,a,r,U,o=e.internal_flags,Y=zt([2,Xt.BLKSIZE]),j=zt([2,3,Xt.BLKSIZE_s]),$=Ht(Xt.CBANDS+1),G=Ht(Xt.CBANDS+1),Z=Ht(Xt.CBANDS+2),K=Ft(2),J=Ft(2),ee=zt([2,576]),te=Ft(Xt.CBANDS+2),s=Ft(Xt.CBANDS+2);for(Qt.fill(s,0),X=o.channels_out,e.mode==Wt.JOINT_STEREO&&(X=4),U=e.VBR==Nt.vbr_off?0==o.ResvMax?0:o.ResvSize/o.ResvMax*.5:e.VBR==Nt.vbr_rh||e.VBR==Nt.vbr_mtrh||e.VBR==Nt.vbr_mt?.6:1,n=0;n<o.channels_out;n++){for(var ne=q[n],ie=V+576-350-21+192,l=0;l<576;l++){for(var ae=ne[ie+l+10],re=0,u=0;u<9;u+=2)ae+=qt[u]*(ne[ie+l+u]+ne[ie+l+21-u]),re+=qt[u+1]*(ne[ie+l+u+1]+ne[ie+l+21-u-1]);ee[n][l]=ae+re}F[t][n].en.assign(o.en[n]),F[t][n].thm.assign(o.thm[n]),2<X&&(H[t][n].en.assign(o.en[n+2]),H[t][n].thm.assign(o.thm[n+2]))}for(n=0;n<X;n++){var oe,c=Ht(12),f=[0,0,0,0],se=Ht(12),le=1,ue=Ht(Xt.CBANDS),ce=Ht(Xt.CBANDS),d=[0,0,0,0],fe=Ht(Xt.HBLKSIZE),de=zt([3,Xt.HBLKSIZE_s]);for(l=0;l<3;l++)c[l]=o.nsPsy.last_en_subshort[n][l+6],se[l]=c[l]/o.nsPsy.last_en_subshort[n][l+4],f[0]+=c[l];if(2==n)for(l=0;l<576;l++){var he=ee[0][l],pe=ee[1][l];ee[0][l]=he+pe,ee[1][l]=he-pe}var _e=ee[1&n],ve=0;for(l=0;l<9;l++){for(var ge=ve+64,h=1;ve<ge;ve++)h<Math.abs(_e[ve])&&(h=Math.abs(_e[ve]));o.nsPsy.last_en_subshort[n][l]=c[l+3]=h,f[1+l/3]+=h,h>c[l+3-2]?h/=c[l+3-2]:h=c[l+3-2]>10*h?c[l+3-2]/(10*h):0,se[l+3]=h}if(e.analysis){var me=se[0];for(l=1;l<12;l++)me<se[l]&&(me=se[l]);o.pinfo.ers[t][n]=o.pinfo.ers_save[n],o.pinfo.ers_save[n]=me}for(oe=3==n?o.nsPsy.attackthre_s:o.nsPsy.attackthre,l=0;l<12;l++)0==d[l/3]&&se[l]>oe&&(d[l/3]=l%3+1);for(l=1;l<4;l++)(f[l]<f[l-1]?f[l-1]/f[l]:f[l]/f[l-1])<1.7&&(d[l]=0,1==l)&&(d[0]=0);0!=d[0]&&0!=o.nsPsy.lastAttacks[n]&&(d[0]=0),3!=o.nsPsy.lastAttacks[n]&&d[0]+d[1]+d[2]+d[3]==0||((le=0)!=d[1]&&0!=d[0]&&(d[1]=0),0!=d[2]&&0!=d[1]&&(d[2]=0),0==d[3])||0==d[2]||(d[3]=0),n<2?J[n]=le:0==le&&(J[0]=J[1]=0),N[n]=o.tot_ener[n],Ee=Re=xe=M=Ae=Se=y=w=Me=ye=b=we=m=g=v=_=be=p=le=void 0;var le=e,p=fe,be=de,_=Y,v=1&n,g=j,m=1&n,we=t,b=n,ye=q,Me=V,w=le.internal_flags;if(b<2)Ot.fft_long(w,_[v],b,ye,Me),Ot.fft_short(w,g[m],b,ye,Me);else if(2==b){for(var y=Xt.BLKSIZE-1;0<=y;--y){var Se=_[v+0][y],Ae=_[v+1][y];_[v+0][y]=(Se+Ae)*Ut.SQRT2*.5,_[v+1][y]=(Se-Ae)*Ut.SQRT2*.5}for(var M=2;0<=M;--M)for(y=Xt.BLKSIZE_s-1;0<=y;--y){Se=g[m+0][M][y],Ae=g[m+1][M][y];g[m+0][M][y]=(Se+Ae)*Ut.SQRT2*.5,g[m+1][M][y]=(Se-Ae)*Ut.SQRT2*.5}}for(p[0]=_[v+0][0],p[0]*=p[0],y=Xt.BLKSIZE/2-1;0<=y;--y){var xe=_[v+0][Xt.BLKSIZE/2-y],Re=_[v+0][Xt.BLKSIZE/2+y];p[Xt.BLKSIZE/2-y]=.5*(xe*xe+Re*Re)}for(M=2;0<=M;--M){be[M][0]=g[m+0][M][0],be[M][0]*=be[M][0];for(y=Xt.BLKSIZE_s/2-1;0<=y;--y){xe=g[m+0][M][Xt.BLKSIZE_s/2-y],Re=g[m+0][M][Xt.BLKSIZE_s/2+y];be[M][Xt.BLKSIZE_s/2-y]=.5*(xe*xe+Re*Re)}}for(var Ee=0,y=11;y<Xt.HBLKSIZE;y++)Ee+=p[y];if(w.tot_ener[b]=Ee,le.analysis){for(y=0;y<Xt.HBLKSIZE;y++)w.pinfo.energy[we][b][y]=w.pinfo.energy_save[b][y],w.pinfo.energy_save[b][y]=p[y];w.pinfo.pe[we][b]=w.pe[b]}for(2==le.athaa_loudapprox&&b<2&&(w.loudness_sq[we][b]=w.loudness_sq_save[b],w.loudness_sq_save[b]=St(p,w)),Bt(o,fe,$,ue,ce),Tt(o,ue,ce,te),r=0;r<3;r++){We=Xe=Ne=Le=ze=He=Fe=Ve=qe=A=x=Pe=De=Oe=Ie=Ce=Te=Be=void 0;for(var ke,S,Pe,Be=e,Te=de,Ce=G,Ie=Z,Oe=n,De=r,A=Be.internal_flags,x=Pe=0;x<A.npart_s;++x){for(var qe=0,Ve=0,Fe=A.numlines_s[x],He=0;He<Fe;++He,++Pe){var ze=Te[De][Pe];qe+=ze,Ve<ze&&(Ve=ze)}Ce[x]=qe}for(Pe=x=0;x<A.npart_s;x++){var Le=A.s3ind_s[x][0],Ne=A.s3_ss[Pe++]*Ce[Le];for(++Le;Le<=A.s3ind_s[x][1];)Ne+=A.s3_ss[Pe]*Ce[Le],++Pe,++Le;var We,Xe=2*A.nb_s1[Oe][x];Ie[x]=Math.min(Ne,Xe),A.blocktype_old[1&Oe]==Xt.SHORT_TYPE&&(Xe=16*A.nb_s2[Oe][x],We=Ie[x],Ie[x]=Math.min(Xe,We)),A.nb_s2[Oe][x]=A.nb_s1[Oe][x],A.nb_s1[Oe][x]=Ne}for(;x<=Xt.CBANDS;++x)Ce[x]=0,Ie[x]=0;for(xt(o,G,Z,n,r),a=0;a<Xt.SBMAX_s;a++)S=o.thm[n].s[a][r],S*=.8,(2<=d[r]||1==d[r+1])&&(h=Et(o.thm[n].s[a][0!=r?r-1:2],S,.6*U),S=Math.min(S,h)),1==d[r]?(h=Et(o.thm[n].s[a][0!=r?r-1:2],S,.3*U),S=Math.min(S,h)):(0!=r&&3==d[r-1]||0==r&&3==o.nsPsy.lastAttacks[n])&&(h=Et(o.thm[n].s[a][2!=r?r+1:0],S,.3*U),S=Math.min(S,h)),ke=c[3*r+3]+c[3*r+4]+c[3*r+5],6*c[3*r+5]<ke&&(S*=.5,6*c[3*r+4]<ke)&&(S*=.5),o.thm[n].s[a][r]=S}for(o.nsPsy.lastAttacks[n]=d[2],i=Q=0;i<o.npart_l;i++){for(var Qe=o.s3ind[i][0],Ue=$[Qe]*Dt[te[Qe]],Ye=o.s3_ll[Q++]*Ue;++Qe<=o.s3ind[i][1];)Ue=$[Qe]*Dt[te[Qe]],Ye=((e,t,n,i,a,r)=>{var o,s;if(e<t){if(!(t<e*mt))return e+t;s=t/e}else{if(t*mt<=e)return e+t;s=e/t}return e+=t,i+3<=6?gt<=s?e:(o=0|Ut.FAST_LOG10_X(s,16),e*yt[o]):(o=0|Ut.FAST_LOG10_X(s,16),t=0!=r?a.ATH.cb_s[n]*a.ATH.adjust:a.ATH.cb_l[n]*a.ATH.adjust,e<bt*t?t<e?(i=o<=13?Mt[o]:1,s=Ut.FAST_LOG10_X(e/t,10/15),e*((wt[o]-i)*s+i)):13<o?e:e*Mt[o]:e*wt[o])})(Ye,o.s3_ll[Q++]*Ue,Qe,Qe-i,o,0);Ye*=.158489319246111,o.blocktype_old[1&n]==Xt.SHORT_TYPE?Z[i]=Ye:Z[i]=Et(Math.min(Ye,Math.min(2*o.nb_1[n][i],16*o.nb_2[n][i])),Ye,U),o.nb_2[n][i]=o.nb_1[n][i],o.nb_1[n][i]=Ye}for(;i<=Xt.CBANDS;++i)$[i]=0,Z[i]=0;Rt(o,$,Z,n)}if((e.mode==Wt.STEREO||e.mode==Wt.JOINT_STEREO)&&0<e.interChRatio){var je=(s=e).interChRatio,R=s.internal_flags;if(1<R.channels_out){for(var E=0;E<Xt.SBMAX_l;E++){var $e=R.thm[0].l[E],Ge=R.thm[1].l[E];R.thm[0].l[E]+=Ge*je,R.thm[1].l[E]+=$e*je}for(E=0;E<Xt.SBMAX_s;E++)for(var Ze=0;Ze<3;Ze++){$e=R.thm[0].s[E][Ze],Ge=R.thm[1].s[E][Ze];R.thm[0].s[E][Ze]+=Ge*je,R.thm[1].s[E][Ze]+=$e*je}}}if(e.mode==Wt.JOINT_STEREO){for(var k=o,P=0;P<Xt.SBMAX_l;P++)k.thm[0].l[P]>1.58*k.thm[1].l[P]||k.thm[1].l[P]>1.58*k.thm[0].l[P]||(Ke=k.mld_l[P]*k.en[3].l[P],Je=Math.max(k.thm[2].l[P],Math.min(k.thm[3].l[P],Ke)),Ke=k.mld_l[P]*k.en[2].l[P],et=Math.max(k.thm[3].l[P],Math.min(k.thm[2].l[P],Ke)),k.thm[2].l[P]=Je,k.thm[3].l[P]=et);for(var Ke,Je,et,P=0;P<Xt.SBMAX_s;P++)for(var B=0;B<3;B++)k.thm[0].s[P][B]>1.58*k.thm[1].s[P][B]||k.thm[1].s[P][B]>1.58*k.thm[0].s[P][B]||(Ke=k.mld_s[P]*k.en[3].s[P][B],Je=Math.max(k.thm[2].s[P][B],Math.min(k.thm[3].s[P][B],Ke)),Ke=k.mld_s[P]*k.en[2].s[P][B],et=Math.max(k.thm[3].s[P][B],Math.min(k.thm[2].s[P][B],Ke)),k.thm[2].s[P][B]=Je,k.thm[3].s[P][B]=et);if(s=e.msfix,0<Math.abs(s)){var T=o;var tt=s;s=e.ATHlower*o.ATH.adjust;var nt=tt,it=Math.pow(10,s);tt*=2,nt*=2;for(var C=0;C<Xt.SBMAX_l;C++)I=T.ATH.cb_l[T.bm_l[C]]*it,(at=Math.min(Math.max(T.thm[0].l[C],I),Math.max(T.thm[1].l[C],I)))*tt<(rt=Math.max(T.thm[2].l[C],I))+(ot=Math.max(T.thm[3].l[C],I))&&(rt*=st=at*nt/(rt+ot),ot*=st),T.thm[2].l[C]=Math.min(rt,T.thm[2].l[C]),T.thm[3].l[C]=Math.min(ot,T.thm[3].l[C]);it*=Xt.BLKSIZE_s/Xt.BLKSIZE;for(var at,rt,ot,I,st,C=0;C<Xt.SBMAX_s;C++)for(var O=0;O<3;O++)I=T.ATH.cb_s[T.bm_s[C]]*it,(at=Math.min(Math.max(T.thm[0].s[C][O],I),Math.max(T.thm[1].s[C][O],I)))*tt<(rt=Math.max(T.thm[2].s[C][O],I))+(ot=Math.max(T.thm[3].s[C][O],I))&&(rt*=st=at*tt/(rt+ot),ot*=st),T.thm[2].s[C][O]=Math.min(T.thm[2].s[C][O],rt),T.thm[3].s[C][O]=Math.min(T.thm[3].s[C][O],ot)}}var lt=e,ut=J,ct=W,ft=K,dt=lt.internal_flags;lt.short_blocks!=Lt.short_block_coupled||0!=ut[0]&&0!=ut[1]||(ut[0]=ut[1]=0);for(var D=0;D<dt.channels_out;D++)ft[D]=Xt.NORM_TYPE,lt.short_blocks==Lt.short_block_dispensed&&(ut[D]=1),lt.short_blocks==Lt.short_block_forced&&(ut[D]=0),0!=ut[D]?dt.blocktype_old[D]==Xt.SHORT_TYPE&&(ft[D]=Xt.STOP_TYPE):(ft[D]=Xt.SHORT_TYPE,dt.blocktype_old[D]==Xt.NORM_TYPE&&(dt.blocktype_old[D]=Xt.START_TYPE),dt.blocktype_old[D]==Xt.STOP_TYPE&&(dt.blocktype_old[D]=Xt.SHORT_TYPE)),ct[D]=dt.blocktype_old[D],dt.blocktype_old[D]=ft[D];for(n=0;n<X;n++){var ht,pt,_t=0,vt=1<n?(ht=L,_t=-2,pt=Xt.NORM_TYPE,W[0]!=Xt.SHORT_TYPE&&W[1]!=Xt.SHORT_TYPE||(pt=Xt.SHORT_TYPE),H[t][n-2]):(ht=z,_t=0,pt=W[n],F[t][n]);ht[_t+n]=(pt==Xt.SHORT_TYPE?kt:Pt)(vt,o.masking_lower),e.analysis&&(o.pinfo.pe[t][n]=ht[_t+n])}return 0},[-1730326e-23,-.01703172,-1349528e-23,.0418072,-673278e-22,-.0876324,-30835e-21,.1863476,-1104424e-22,-.627638]);this.L3psycho_anal_vbr=function(e,q,V,F,H,z,L,N,W,X){for(var t=e.internal_flags,Q=Ht(Xt.HBLKSIZE),U=zt([3,Xt.HBLKSIZE_s]),Y=zt([2,Xt.BLKSIZE]),j=zt([2,3,Xt.BLKSIZE_s]),$=zt([4,Xt.CBANDS]),G=zt([4,Xt.CBANDS]),Z=zt([4,3]),K=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],n=Ft(2),i=e.mode==Wt.JOINT_STEREO?4:t.channels_out,J=e,ee=q,te=V,ne=F,ie=H,ae=z,re=W,oe=Z,a=K,se=n,le=zt([2,576]),r=J.internal_flags,ue=r.channels_out,ce=J.mode==Wt.JOINT_STEREO?4:ue,o=0;o<ue;o++){firbuf=ee[o];for(var fe=te+576-350-21+192,s=0;s<576;s++){for(var de=firbuf[fe+s+10],he=0,l=0;l<9;l+=2)de+=Vt[l]*(firbuf[fe+s+l]+firbuf[fe+s+21-l]),he+=Vt[l+1]*(firbuf[fe+s+l+1]+firbuf[fe+s+21-l-1]);le[o][s]=de+he}ie[ne][o].en.assign(r.en[o]),ie[ne][o].thm.assign(r.thm[o]),2<ce&&(ae[ne][o].en.assign(r.en[o+2]),ae[ne][o].thm.assign(r.thm[o+2]))}for(o=0;o<ce;o++){var pe=Ht(12),u=Ht(12),_e=[0,0,0,0],ve=le[1&o],ge=0,me=3==o?r.nsPsy.attackthre_s:r.nsPsy.attackthre,be=1;if(2==o)for(s=0,l=576;0<l;++s,--l){var we=le[0][s],ye=le[1][s];le[0][s]=we+ye,le[1][s]=we-ye}for(s=0;s<3;s++)u[s]=r.nsPsy.last_en_subshort[o][s+6],pe[s]=u[s]/r.nsPsy.last_en_subshort[o][s+4],_e[0]+=u[s];for(s=0;s<9;s++){for(var Me=ge+64,c=1;ge<Me;ge++)c<Math.abs(ve[ge])&&(c=Math.abs(ve[ge]));r.nsPsy.last_en_subshort[o][s]=u[s+3]=c,_e[1+s/3]+=c,c>u[s+3-2]?c/=u[s+3-2]:c=u[s+3-2]>10*c?u[s+3-2]/(10*c):0,pe[s+3]=c}for(s=0;s<3;++s){var Se=u[3*s+3]+u[3*s+4]+u[3*s+5],Ae=1;6*u[3*s+5]<Se&&(Ae*=.5,6*u[3*s+4]<Se)&&(Ae*=.5),oe[o][s]=Ae}if(J.analysis){for(var xe=pe[0],s=1;s<12;s++)xe<pe[s]&&(xe=pe[s]);r.pinfo.ers[ne][o]=r.pinfo.ers_save[o],r.pinfo.ers_save[o]=xe}for(s=0;s<12;s++)0==a[o][s/3]&&pe[s]>me&&(a[o][s/3]=s%3+1);for(s=1;s<4;s++){var Re=_e[s-1],Ee=_e[s];Math.max(Re,Ee)<4e4&&Re<1.7*Ee&&Ee<1.7*Re&&(1==s&&a[o][0]<=a[o][s]&&(a[o][0]=0),a[o][s]=0)}a[o][0]<=r.nsPsy.lastAttacks[o]&&(a[o][0]=0),3!=r.nsPsy.lastAttacks[o]&&a[o][0]+a[o][1]+a[o][2]+a[o][3]==0||((be=0)!=a[o][1]&&0!=a[o][0]&&(a[o][1]=0),0!=a[o][2]&&0!=a[o][1]&&(a[o][2]=0),0==a[o][3])||0==a[o][2]||(a[o][3]=0),o<2?se[o]=be:0==be&&(se[0]=se[1]=0),re[o]=r.tot_ener[o]}var ke=e,Pe=n,Be=ke.internal_flags;ke.short_blocks!=Lt.short_block_coupled||0!=Pe[0]&&0!=Pe[1]||(Pe[0]=Pe[1]=0);for(var Te=0;Te<Be.channels_out;Te++)ke.short_blocks==Lt.short_block_dispensed&&(Pe[Te]=1),ke.short_blocks==Lt.short_block_forced&&(Pe[Te]=0);for(var Ce,f=0;f<i;f++){He=Fe=Ve=qe=De=b=m=g=v=_=Oe=p=h=d=Ie=void 0;var Ie=e,d=q,h=V,p=f,Oe=F,_=Q,v=Y,g=k=1&f,m=Ie.internal_flags;if(p<2)Ot.fft_long(m,v[g],p,d,h);else if(2==p)for(var b=Xt.BLKSIZE-1;0<=b;--b){var De=v[g+0][b],qe=v[g+1][b];v[g+0][b]=(De+qe)*Ut.SQRT2*.5,v[g+1][b]=(De-qe)*Ut.SQRT2*.5}for(_[0]=v[g+0][0],_[0]*=_[0],b=Xt.BLKSIZE/2-1;0<=b;--b){var Ve=v[g+0][Xt.BLKSIZE/2-b],Fe=v[g+0][Xt.BLKSIZE/2+b];_[Xt.BLKSIZE/2-b]=.5*(Ve*Ve+Fe*Fe)}for(var He=0,b=11;b<Xt.HBLKSIZE;b++)He+=_[b];if(m.tot_ener[p]=He,Ie.analysis){for(b=0;b<Xt.HBLKSIZE;b++)m.pinfo.energy[Oe][p][b]=m.pinfo.energy_save[p][b],m.pinfo.energy_save[p][b]=_[b];m.pinfo.pe[Oe][p]=m.pe[p]}if(d=F,h=f,Ie=Q,Ce=void 0,Ce=e.internal_flags,2==e.athaa_loudapprox&&h<2&&(Ce.loudness_sq[d][h]=Ce.loudness_sq_save[h],Ce.loudness_sq_save[h]=St(Ie,Ce)),0!=n[k]){w=void 0;d=void 0;y=void 0;M=void 0;S=void 0;A=void 0;ze=void 0;h=void 0;Le=void 0;Ne=void 0;We=void 0;x=void 0;Xe=void 0;R=void 0;je=void 0;$e=void 0;Ge=void 0;Qe=void 0;Ue=void 0;Ye=void 0;var w=t;d=Q;var y=$[f];var M=G[f];var S=f;for(var ze=Ht(Xt.CBANDS),h=Ht(Xt.CBANDS),Le=Ft(Xt.CBANDS+2),Ne=(Bt(w,d,y,ze,h),Tt(w,ze,h,Le),0),A=0;A<w.npart_l;A++){var We,x,Xe,Qe,Ue,Ye,R=w.s3ind[A][0],je=w.s3ind[A][1],$e=0,Ge=0,$e=Le[R];for(Ge+=1,x=w.s3_ll[Ne]*y[R]*Dt[Le[R]],++Ne,++R;R<=je;)$e+=Le[R],Ge+=1,x=At(x,We=w.s3_ll[Ne]*y[R]*Dt[Le[R]],R-A),++Ne,++R;x*=Xe=.5*Dt[$e=(1+2*$e)/(2*Ge)],w.blocktype_old[1&S]==Xt.SHORT_TYPE?(Qe=2*w.nb_1[S][A],M[A]=0<Qe?Math.min(x,Qe):Math.min(x,.3*y[A])):((Ue=16*w.nb_2[S][A])<=0&&(Ue=x),(Ye=2*w.nb_1[S][A])<=0&&(Ye=x),Qe=w.blocktype_old[1&S]==Xt.NORM_TYPE?Math.min(Ye,Ue):Ye,M[A]=Math.min(x,Qe)),w.nb_2[S][A]=w.nb_1[S][A],w.nb_1[S][A]=x,We=(We=ze[A])*w.minval_l[A]*Xe,M[A]>We&&(M[A]=We),1<w.masking_lower&&(M[A]*=w.masking_lower),y[A]<M[A]&&(M[A]=y[A]),w.masking_lower<1&&(M[A]*=w.masking_lower)}for(;A<Xt.CBANDS;++A)y[A]=0,M[A]=0}else{Ze=void 0;Ke=void 0;Je=void 0;var Ze=t;var Ke=f;for(var Je=0;Je<Ze.npart_l;Je++)Ze.nb_2[Ke][Je]=Ze.nb_1[Ke][Je],Ze.nb_1[Ke][Je]=0}}n[0]+n[1]==2&&e.mode==Wt.JOINT_STEREO&&It($,G,t.mld_cb_l,t.ATH.cb_l,e.ATHlower*t.ATH.adjust,e.msfix,t.npart_l);for(f=0;f<i;f++)0!=n[k=1&f]&&Rt(t,$[f],G[f],f);for(var E=0;E<3;E++){for(f=0;f<i;++f){var k=1&f;if(0!=n[k]){et=void 0;tt=void 0;nt=void 0;it=void 0;var et=t;var tt=f;var nt=E;if(0==nt)for(var it=0;it<et.npart_s;it++)et.nb_s2[tt][it]=et.nb_s1[tt][it],et.nb_s1[tt][it]=0}else{nt=j;{at=void 0;rt=void 0;ot=void 0;st=void 0;P=void 0;lt=void 0;B=void 0;T=void 0;C=void 0;ut=void 0;ct=void 0;ft=void 0;dt=void 0;var at=e;var rt=q;var ot=V;var st=f;var P=E;var lt=U;var B=nt;var T=k;if(at=at.internal_flags,0==P&&st<2&&Ot.fft_short(at,B[T],st,rt,ot),2==st)for(var C=Xt.BLKSIZE_s-1;0<=C;--C){var ut=B[T+0][P][C],ct=B[T+1][P][C];B[T+0][P][C]=(ut+ct)*Ut.SQRT2*.5,B[T+1][P][C]=(ut-ct)*Ut.SQRT2*.5}for(lt[P][0]=B[T+0][P][0],lt[P][0]*=lt[P][0],C=Xt.BLKSIZE_s/2-1;0<=C;--C){var ft=B[T+0][P][Xt.BLKSIZE_s/2-C],dt=B[T+0][P][Xt.BLKSIZE_s/2+C];lt[P][Xt.BLKSIZE_s/2-C]=.5*(ft*ft+dt*dt)}}Ct(e,U,$[f],G[f],f,E)}}n[0]+n[1]==0&&e.mode==Wt.JOINT_STEREO&&It($,G,t.mld_cb_s,t.ATH.cb_s,e.ATHlower*t.ATH.adjust,e.msfix,t.npart_s);for(f=0;f<i;++f)0==n[k=1&f]&&xt(t,$[f],G[f],f,E)}for(f=0;f<i;f++)if(0==n[k=1&f])for(var ht=0;ht<Xt.SBMAX_s;ht++){for(var pt=Ht(3),E=0;E<3;E++){var _t,I=t.thm[f].s[ht][E];I*=.8,2<=K[f][E]||1==K[f][E+1]?(_t=Et(t.thm[f].s[ht][0!=E?E-1:2],I,.36),I=Math.min(I,_t)):1==K[f][E]?(_t=Et(t.thm[f].s[ht][0!=E?E-1:2],I,.18),I=Math.min(I,_t)):(0!=E&&3==K[f][E-1]||0==E&&3==t.nsPsy.lastAttacks[f])&&(_t=Et(t.thm[f].s[ht][2!=E?E+1:0],I,.18),I=Math.min(I,_t)),I*=Z[f][E],pt[E]=I}for(E=0;E<3;E++)t.thm[f].s[ht][E]=pt[E]}for(f=0;f<i;f++)t.nsPsy.lastAttacks[f]=K[f][2];for(var vt=n,gt=X,O=e.internal_flags,D=0;D<O.channels_out;D++){var mt=Xt.NORM_TYPE;0!=vt[D]?O.blocktype_old[D]==Xt.SHORT_TYPE&&(mt=Xt.STOP_TYPE):(mt=Xt.SHORT_TYPE,O.blocktype_old[D]==Xt.NORM_TYPE&&(O.blocktype_old[D]=Xt.START_TYPE),O.blocktype_old[D]==Xt.STOP_TYPE&&(O.blocktype_old[D]=Xt.SHORT_TYPE)),gt[D]=O.blocktype_old[D],O.blocktype_old[D]=mt}for(f=0;f<i;f++){var bt,wt,yt,Mt=1<f?(bt=N,wt=-2,yt=Xt.NORM_TYPE,X[0]!=Xt.SHORT_TYPE&&X[1]!=Xt.SHORT_TYPE||(yt=Xt.SHORT_TYPE),z[F][f-2]):(bt=L,wt=0,yt=X[f],H[F][f]);bt[wt+f]=(yt==Xt.SHORT_TYPE?kt:Pt)(Mt,t.masking_lower),e.analysis&&(t.pinfo.pe[F][f]=bt[wt+f])}return 0},this.psymodel_init=function(e){var t=e.internal_flags,n=!0,i=13,a=0,r=0,o=-8.25,s=-4.5,l=Ht(Xt.CBANDS),u=Ht(Xt.CBANDS),c=Ht(Xt.CBANDS),f=e.out_samplerate;switch(e.experimentalZ){default:case 0:n=!0;break;case 1:n=e.VBR!=Nt.vbr_mtrh&&e.VBR!=Nt.vbr_mt;break;case 2:n=!1;break;case 3:i=8,a=-1.75,r=-.0125,o=-8.25,s=-2.25}for(t.ms_ener_ratio_old=.25,t.blocktype_old[0]=t.blocktype_old[1]=Xt.NORM_TYPE,M=0;M<4;++M){for(var d=0;d<Xt.CBANDS;++d)t.nb_1[M][d]=1e20,t.nb_2[M][d]=1e20,t.nb_s1[M][d]=t.nb_s2[M][d]=1;for(var h=0;h<Xt.SBMAX_l;h++)t.en[M].l[h]=1e20,t.thm[M].l[h]=1e20;for(d=0;d<3;++d){for(h=0;h<Xt.SBMAX_s;h++)t.en[M].s[h][d]=1e20,t.thm[M].s[h][d]=1e20;t.nsPsy.lastAttacks[M]=0}for(d=0;d<9;d++)t.nsPsy.last_en_subshort[M][d]=10}for(t.loudness_sq_save[0]=t.loudness_sq_save[1]=0,t.npart_l=S(t.numlines_l,t.bo_l,t.bm_l,l,u,t.mld_l,t.PSY.bo_l_weight,f,Xt.BLKSIZE,t.scalefac_band.l,Xt.BLKSIZE/1152,Xt.SBMAX_l),M=0;M<t.npart_l;M++){var p=a;l[M]>=i&&(p=r*(l[M]-i)/(24-i)+a*(24-l[M])/(24-i)),c[M]=Math.pow(10,p/10),0<t.numlines_l[M]?t.rnumlines_l[M]=1/t.numlines_l[M]:t.rnumlines_l[M]=0}t.s3_ll=A(t.s3ind,t.npart_l,l,u,c,n);d=0;for(M=0;M<t.npart_l;M++){g=C.MAX_VALUE;for(var _=0;_<t.numlines_l[M];_++,d++){var v=f*d/(1e3*Xt.BLKSIZE);m=this.ATHformula(1e3*v,e)-20,m=Math.pow(10,.1*m),(m*=t.numlines_l[M])<g&&(g=m)}t.ATH.cb_l[M]=g,(g=6<(g=20*l[M]/10-20)?100:g)<-15&&(g=-15),g-=8,t.minval_l[M]=Math.pow(10,g/10)*t.numlines_l[M]}for(t.npart_s=S(t.numlines_s,t.bo_s,t.bm_s,l,u,t.mld_s,t.PSY.bo_s_weight,f,Xt.BLKSIZE_s,t.scalefac_band.s,Xt.BLKSIZE_s/384,Xt.SBMAX_s),M=d=0;M<t.npart_s;M++){var g,p=o;l[M]>=i&&(p=s*(l[M]-i)/(24-i)+o*(24-l[M])/(24-i)),c[M]=Math.pow(10,p/10),g=C.MAX_VALUE;for(_=0;_<t.numlines_s[M];_++,d++){var m,v=f*d/(1e3*Xt.BLKSIZE_s);m=this.ATHformula(1e3*v,e)-20,m=Math.pow(10,.1*m),(m*=t.numlines_s[M])<g&&(g=m)}t.ATH.cb_s[M]=g,g=7*l[M]/12-7,12<l[M]&&(g*=1+3.1*Math.log(1+g)),l[M]<12&&(g*=1+2.3*Math.log(1-g)),g<-15&&(g=-15),g-=8,t.minval_s[M]=Math.pow(10,g/10)*t.numlines_s[M]}t.s3_ss=A(t.s3ind_s,t.npart_s,l,u,c,n),gt=Math.pow(10,9/16),mt=Math.pow(10,1.5),bt=Math.pow(10,1.5),Ot.init_fft(t),t.decay=Math.exp(-1*R/(.01*f/192)),u=3.5,0!=(2&e.exp_nspsytune)&&(u=1),0<Math.abs(e.msfix)&&(u=e.msfix),e.msfix=u;for(var b=0;b<t.npart_l;b++)t.s3ind[b][1]>t.npart_l-1&&(t.s3ind[b][1]=t.npart_l-1);u=576*t.mode_gr/f;if(t.ATH.decay=Math.pow(10,-1.2*u),t.ATH.adjust=.01,-(t.ATH.adjustLimit=1)!=e.ATHtype){for(var w=e.out_samplerate/Xt.BLKSIZE,y=0,M=v=0;M<Xt.BLKSIZE/2;++M)v+=w,t.ATH.eql_w[M]=1/Math.pow(10,this.ATHformula(v,e)/10),y+=t.ATH.eql_w[M];for(y=1/y,M=Xt.BLKSIZE/2;0<=--M;)t.ATH.eql_w[M]*=y}for(b=d=0;b<t.npart_s;++b)for(M=0;M<t.numlines_s[b];++M)++d;for(b=d=0;b<t.npart_l;++b)for(M=0;M<t.numlines_l[b];++M)++d;for(M=d=0;M<t.npart_l;M++){v=f*(d+t.numlines_l[M]/2)/+Xt.BLKSIZE;t.mld_cb_l[M]=x(v),d+=t.numlines_l[M]}for(;M<Xt.CBANDS;++M)t.mld_cb_l[M]=1;for(M=d=0;M<t.npart_s;M++){v=f*(d+t.numlines_s[M]/2)/+Xt.BLKSIZE_s;t.mld_cb_s[M]=x(v),d+=t.numlines_s[M]}for(;M<Xt.CBANDS;++M)t.mld_cb_s[M]=1;return 0},this.ATHformula=function(e,t){var n;switch(t.ATHtype){case 0:n=i(e,9);break;case 1:n=i(e,-1);break;case 2:n=i(e,0);break;case 3:n=i(e,1)+6;break;case 4:n=i(e,t.ATHcurve);break;default:n=i(e,0)}return n}}function R(){function k(){this.mask_adjust=0,this.mask_adjust_short=0,this.bo_l_weight=Ht(Xt.SBMAX_l),this.bo_s_weight=Ht(Xt.SBMAX_s)}function P(){this.lowerlimit=0}function i(e,t){this.lowpass=t}function B(e){return 1<e?0:e<=0?1:Math.cos(Math.PI/2*e)}function T(e,t){switch(e){case 44100:return t.version=1,0;case 48e3:return t.version=1;case 32e3:return t.version=1,2;case 22050:return t.version=0;case 24e3:return t.version=0,1;case 16e3:return t.version=0,2;case 11025:return t.version=0;case 12e3:return t.version=0,1;case 8e3:return t.version=0,2;default:return t.version=0,-1}}function C(e,t,n){for(var i=te.bitrate_table[t=n<16e3?2:t][1],a=2;a<=14;a++)0<te.bitrate_table[t][a]&&Math.abs(te.bitrate_table[t][a]-e)<Math.abs(i-e)&&(i=te.bitrate_table[t][a]);return i}function I(e,t,n){n<16e3&&(t=2);for(var i=0;i<=14;i++)if(0<te.bitrate_table[t][i]&&te.bitrate_table[t][i]==e)return i;return-1}function O(e,t){var n=[new i(0,2e3),new i(0,3700),new i(0,3900),new i(0,5500),new i(0,7e3),new i(0,7500),new i(0,1e4),new i(0,11e3),new i(0,13500),new i(0,15100),new i(0,15600),new i(0,17e3),new i(0,17500),new i(0,18600),new i(0,19400),new i(0,19700),new i(0,20500)],t=F.nearestBitrateFullIndex(t);e.lowerlimit=n[t].lowpass}function D(e){var t=Xt.BLKSIZE+e.framesize-Xt.FFTOFFSET;return Math.max(t,512+e.framesize-32)}function d(e,t,n,i,a,r,o){var s,l,u,c,f=e.internal_flags,d=0,h=[null,null],p=[null,null];if(f.Class_ID!=j)return-3;if(0==i)return 0;if((c=z.copy_buffer(f,a,r,o,0))<0)return c;if(r+=c,d+=c,p[0]=t,p[1]=n,Z.NEQ(e.scale,0)&&Z.NEQ(e.scale,1))for(s=0;s<i;++s)p[0][s]*=e.scale,2==f.channels_out&&(p[1][s]*=e.scale);if(Z.NEQ(e.scale_left,0)&&Z.NEQ(e.scale_left,1))for(s=0;s<i;++s)p[0][s]*=e.scale_left;if(Z.NEQ(e.scale_right,0)&&Z.NEQ(e.scale_right,1))for(s=0;s<i;++s)p[1][s]*=e.scale_right;if(2==e.num_channels&&1==f.channels_out)for(s=0;s<i;++s)p[0][s]=.5*(p[0][s]+p[1][s]),p[1][s]=0;u=D(e),h[0]=f.mfbuf[0],h[1]=f.mfbuf[1];for(var _=0;0<i;){var v=[null,null],g=(v[0]=p[0],v[1]=p[1],new q),m=(E=R=x=A=S=M=y=w=b=m=void 0,e),b=h,w=v,y=_,M=i,S=g,A=m.internal_flags;if(A.resample_ratio<.9999||1.0001<A.resample_ratio)for(var x=0;x<A.channels_out;x++){var R=new V;S.n_out=((e,t,n,i,a,r,o,s,l)=>{var u,c,f=e.internal_flags,d=0,h=e.out_samplerate/function e(t,n){return 0!=n?e(n,t%n):t}(e.out_samplerate,e.in_samplerate),e=(K.BPC<h&&(h=K.BPC),Math.abs(f.resample_ratio-Math.floor(.5+f.resample_ratio))<1e-4?1:0),p=1/f.resample_ratio,_=(1<p&&(p=1),31),v=(0==_%2&&--_,(_+=e)+1);if(0==f.fill_buffer_resample_init){for(f.inbuf_old[0]=Ht(v),f.inbuf_old[1]=Ht(v),u=0;u<=2*h;++u)f.blackfilt[u]=Ht(v);for(f.itime[0]=0,f.itime[1]=0,d=0;d<=2*h;d++){var g=0,m=(d-h)/(2*h);for(u=0;u<=_;u++)g+=f.blackfilt[d][u]=((e,t,n)=>{var t=Math.PI*t,i=(e=1<(e=(e/=n)<0?0:e)?1:e)-.5,e=.42-.5*Math.cos(2*e*Math.PI)+.08*Math.cos(4*e*Math.PI);return Math.abs(i)<1e-9?t/Math.PI:e*Math.sin(n*t*i)/(Math.PI*n*i)})(u-m,p,_);for(u=0;u<=_;u++)f.blackfilt[d][u]/=g}f.fill_buffer_resample_init=1}var b,w,y=f.inbuf_old[l];for(c=0;c<i&&(b=c*f.resample_ratio,d=0|Math.floor(b-f.itime[l]),!(o<=_+d-_/2));c++){var m=b-f.itime[l]-(d+_%2*.5),M=(w=0|Math.floor(2*m*h+h+.5),0);for(u=0;u<=_;++u){var S=0|u+d-_/2;S=S<0?y[v+S]:a[r+S],M+=S*f.blackfilt[w][u]}t[n+c]=M}if(s.num_used=Math.min(o,_+d-_/2),f.itime[l]+=s.num_used-c*f.resample_ratio,v<=s.num_used)for(u=0;u<v;u++)y[u]=a[r+s.num_used+u-v];else{var A=v-s.num_used;for(u=0;u<A;++u)y[u]=y[u+s.num_used];for(d=0;u<v;++u,++d)y[u]=a[r+d]}return c})(m,b[x],A.mf_size,m.framesize,w[x],y,M,R,x),S.n_in=R.num_used}else{S.n_out=Math.min(m.framesize,M),S.n_in=S.n_out;for(var E=0;E<S.n_out;++E)b[0][A.mf_size+E]=w[0][y+E],2==A.channels_out&&(b[1][A.mf_size+E]=w[1][y+E])}if(v=g.n_in,g=g.n_out,f.findReplayGain&&!f.decode_on_the_fly&&H.AnalyzeSamples(f.rgdata,h[0],f.mf_size,h[1],f.mf_size,g,f.channels_out)==G.GAIN_ANALYSIS_ERROR)return-6;if(i-=v,_+=v,f.channels_out,f.mf_size+=g,f.mf_samples_to_encode<1&&(f.mf_samples_to_encode=Xt.ENCDELAY+Xt.POSTDELAY),f.mf_samples_to_encode+=g,f.mf_size>=u){v=0==o?0:o-d;if((g=((e,t,n,i,a,r)=>(t=F.enc.lame_encode_mp3_frame(e,t,n,i,a,r),e.frameNum++,t))(e,h[0],h[1],a,r,v))<0)return g;for(r+=g,d+=g,f.mf_size-=e.framesize,f.mf_samples_to_encode-=e.framesize,l=0;l<f.channels_out;l++)for(s=0;s<f.mf_size;s++)h[l][s]=h[l][s+e.framesize]}}return d}function q(){this.n_in=0,this.n_out=0}function V(){this.num_used=0}var F=this;R.V9=410,R.V8=420,R.V7=430,R.V6=440,R.V5=450,R.V4=460,R.V3=470,R.V2=480,R.V1=490,R.V0=500,R.R3MIX=1e3,R.STANDARD=1001,R.EXTREME=1002,R.INSANE=1003,R.STANDARD_FAST=1004,R.EXTREME_FAST=1005,R.MEDIUM=1006,R.MEDIUM_FAST=1007;R.LAME_MAXMP3BUFFER=147456;var H,z,L,N,W,X,Q,U,Y=new J,j=(this.enc=new Xt,this.setModules=function(e,t,n,i,a,r,o,s,l){H=e,z=t,L=n,N=i,W=a,X=r,Q=s,U=l,this.enc.setModules(z,Y,N,X)},4294479419);this.lame_init=function(){var e,t,n=new r;(e=n).class_id=j,t=e.internal_flags=new K,e.mode=Wt.NOT_SET,e.original=1,e.in_samplerate=44100,e.num_channels=2,e.num_samples=-1,e.bWriteVbrTag=!0,e.quality=-1,e.short_blocks=null,t.subblock_gain=-1,e.lowpassfreq=0,e.highpassfreq=0,e.lowpasswidth=-1,e.highpasswidth=-1,e.VBR=Nt.vbr_off,e.VBR_q=4,e.ATHcurve=-1,e.VBR_mean_bitrate_kbps=128,e.VBR_min_bitrate_kbps=0,e.VBR_max_bitrate_kbps=0,e.VBR_hard_min=0,t.VBR_min_bitrate=1,t.VBR_max_bitrate=13,e.quant_comp=-1,e.quant_comp_short=-1,e.msfix=-1,t.resample_ratio=1,t.OldValue[0]=180,t.OldValue[1]=180,t.CurrentStep[0]=4,t.CurrentStep[1]=4,t.masking_lower=1,t.nsPsy.attackthre=-1,t.nsPsy.attackthre_s=-1,e.scale=-1,e.athaa_type=-1,e.ATHtype=-1,e.athaa_loudapprox=-1,e.athaa_sensitivity=0,e.useTemporal=null,e.interChRatio=-1,t.mf_samples_to_encode=Xt.ENCDELAY+Xt.POSTDELAY,e.encoder_padding=0,t.mf_size=Xt.ENCDELAY-Xt.MDCTDELAY,e.findReplayGain=!1,t.decode_on_the_fly=e.decode_on_the_fly=!1,t.findReplayGain=!1,t.findPeakSample=!1,t.RadioGain=0,t.AudiophileGain=0,t.noclipGainChange=0,t.noclipScale=-1,e.preset=0,e.write_id3tag_automatic=!0;return n.lame_allocated_gfp=1,n},this.nearestBitrateFullIndex=function(e){for(var t=[8,16,24,32,40,48,56,64,80,96,112,128,160,192,224,256,320],n=0,i=0,a=0,r=0,r=t[16],a=16,i=t[16],n=16,o=0;o<16;o++)if(Math.max(e,t[o+1])!=e){r=t[o+1],a=o+1,i=t[o],n=o;break}return e-i<r-e?n:a},this.lame_init_params=function(e){var t,n=e.internal_flags;if(n.Class_ID=0,null==n.ATH&&(n.ATH=new ae),null==n.PSY&&(n.PSY=new k),null==n.rgdata&&(n.rgdata=new ne),n.channels_in=e.num_channels,1==n.channels_in&&(e.mode=Wt.MONO),n.channels_out=e.mode==Wt.MONO?1:2,n.mode_ext=Xt.MPG_MD_MS_LR,e.mode==Wt.MONO&&(e.force_ms=!1),e.VBR==Nt.vbr_off&&128!=e.VBR_mean_bitrate_kbps&&0==e.brate&&(e.brate=e.VBR_mean_bitrate_kbps),e.VBR!=Nt.vbr_off&&e.VBR!=Nt.vbr_mtrh&&e.VBR!=Nt.vbr_mt&&(e.free_format=!1),e.VBR==Nt.vbr_off&&0==e.brate&&Z.EQ(e.compression_ratio,0)&&(e.compression_ratio=11.025),e.VBR==Nt.vbr_off&&0<e.compression_ratio&&(0==e.out_samplerate&&(e.out_samplerate=map2MP3Frequency(int(.97*e.in_samplerate))),e.brate=0|16*e.out_samplerate*n.channels_out/(1e3*e.compression_ratio),n.samplerate_index=T(e.out_samplerate,e),e.free_format||(e.brate=C(e.brate,e.version,e.out_samplerate))),0!=e.out_samplerate&&(e.out_samplerate<16e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,64)):e.out_samplerate<32e3?(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,8),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,160)):(e.VBR_mean_bitrate_kbps=Math.max(e.VBR_mean_bitrate_kbps,32),e.VBR_mean_bitrate_kbps=Math.min(e.VBR_mean_bitrate_kbps,320))),0==e.lowpassfreq){var i,a=16e3;switch(e.VBR){case Nt.vbr_off:O(i=new P,e.brate),a=i.lowerlimit;break;case Nt.vbr_abr:O(i=new P,e.VBR_mean_bitrate_kbps),a=i.lowerlimit;break;case Nt.vbr_rh:var r=[19500,19e3,18600,18e3,17500,16e3,15600,14900,12500,1e4,3950];a=0<=e.VBR_q&&e.VBR_q<=9?(o=r[e.VBR_q],s=r[e.VBR_q+1],l=e.VBR_q_frac,linear_int(o,s,l)):19500;break;default:var o,s,l,r=[19500,19e3,18500,18e3,17500,16500,15500,14500,12500,9500,3950];a=0<=e.VBR_q&&e.VBR_q<=9?(o=r[e.VBR_q],s=r[e.VBR_q+1],l=e.VBR_q_frac,linear_int(o,s,l)):19500}e.mode!=Wt.MONO||e.VBR!=Nt.vbr_off&&e.VBR!=Nt.vbr_abr||(a*=1.5),e.lowpassfreq=0|a}if(0==e.out_samplerate&&(2*e.lowpassfreq>e.in_samplerate&&(e.lowpassfreq=e.in_samplerate/2),e.out_samplerate=(M=0|e.lowpassfreq,t=44100,48e3<=(S=e.in_samplerate)?t=48e3:44100<=S?t=44100:32e3<=S?t=32e3:24e3<=S?t=24e3:22050<=S?t=22050:16e3<=S?t=16e3:12e3<=S?t=12e3:11025<=S?t=11025:8e3<=S&&(t=8e3),-1!=M&&(M<=15960&&(t=44100),M<=15250&&(t=32e3),M<=11220&&(t=24e3),M<=9970&&(t=22050),M<=7230&&(t=16e3),M<=5420&&(t=12e3),M<=4510&&(t=11025),S<(t=M<=3970?8e3:t))?44100<S?48e3:32e3<S?44100:24e3<S?32e3:22050<S?24e3:16e3<S?22050:12e3<S?16e3:11025<S?12e3:8e3<S?11025:8e3:t)),e.lowpassfreq=Math.min(20500,e.lowpassfreq),e.lowpassfreq=Math.min(e.out_samplerate/2,e.lowpassfreq),e.VBR==Nt.vbr_off&&(e.compression_ratio=16*e.out_samplerate*n.channels_out/(1e3*e.brate)),e.VBR==Nt.vbr_abr&&(e.compression_ratio=16*e.out_samplerate*n.channels_out/(1e3*e.VBR_mean_bitrate_kbps)),e.bWriteVbrTag||(e.findReplayGain=!1,n.findPeakSample=e.decode_on_the_fly=!1),n.findReplayGain=e.findReplayGain,n.decode_on_the_fly=e.decode_on_the_fly,n.decode_on_the_fly&&(n.findPeakSample=!0),n.findReplayGain&&H.InitGainAnalysis(n.rgdata,e.out_samplerate)==G.INIT_GAIN_ANALYSIS_ERROR)return e.internal_flags=null,-6;switch(n.decode_on_the_fly&&!e.decode_only&&(null!=n.hip&&U.hip_decode_exit(n.hip),n.hip=U.hip_decode_init()),n.mode_gr=e.out_samplerate<=24e3?1:2,e.framesize=576*n.mode_gr,e.encoder_delay=Xt.ENCDELAY,n.resample_ratio=e.in_samplerate/e.out_samplerate,e.VBR){case Nt.vbr_mt:case Nt.vbr_rh:case Nt.vbr_mtrh:e.compression_ratio=[5.7,6.5,7.3,8.2,10,11.9,13,14,15,16.5][e.VBR_q];break;case Nt.vbr_abr:e.compression_ratio=16*e.out_samplerate*n.channels_out/(1e3*e.VBR_mean_bitrate_kbps);break;default:e.compression_ratio=16*e.out_samplerate*n.channels_out/(1e3*e.brate)}e.mode==Wt.NOT_SET&&(e.mode=Wt.JOINT_STEREO),0<e.highpassfreq?(n.highpass1=2*e.highpassfreq,n.highpass2=0<=e.highpasswidth?2*(e.highpassfreq+e.highpasswidth):2*e.highpassfreq,n.highpass1/=e.out_samplerate,n.highpass2/=e.out_samplerate):(n.highpass1=0,n.highpass2=0),0<e.lowpassfreq?(n.lowpass2=2*e.lowpassfreq,0<=e.lowpasswidth?(n.lowpass1=2*(e.lowpassfreq-e.lowpasswidth),n.lowpass1<0&&(n.lowpass1=0)):n.lowpass1=2*e.lowpassfreq,n.lowpass1/=e.out_samplerate,n.lowpass2/=e.out_samplerate):(n.lowpass1=0,n.lowpass2=0);var u=e.internal_flags,c=32,f=-1;if(0<u.lowpass1){for(var d=999,h=0;h<=31;h++)(_=h/31)>=u.lowpass2&&(c=Math.min(c,h)),u.lowpass1<_&&_<u.lowpass2&&(d=Math.min(d,h));u.lowpass1=999==d?(c-.75)/31:(d-.75)/31,u.lowpass2=c/31}if(0<u.highpass2&&u.highpass2<.75/31*.9&&(u.highpass1=0,u.highpass2=0,ee.err.println("Warning: highpass filter disabled.  highpass frequency too small\n")),0<u.highpass2){for(var p=-1,h=0;h<=31;h++)(_=h/31)<=u.highpass1&&(f=Math.max(f,h)),u.highpass1<_&&_<u.highpass2&&(p=Math.max(p,h));u.highpass1=f/31,u.highpass2=-1==p?(f+.75)/31:(p+.75)/31}for(h=0;h<32;h++){var _=h/31,v=u.highpass2>u.highpass1?B((u.highpass2-_)/(u.highpass2-u.highpass1+1e-20)):1,g=u.lowpass2>u.lowpass1?B((_-u.lowpass1)/(u.lowpass2-u.lowpass1+1e-20)):1;u.amp_filter[h]=v*g}if(n.samplerate_index=T(e.out_samplerate,e),n.samplerate_index<0)return e.internal_flags=null,-1;if(e.VBR==Nt.vbr_off){if(e.free_format)n.bitrate_index=0;else if(e.brate=C(e.brate,e.version,e.out_samplerate),n.bitrate_index=I(e.brate,e.version,e.out_samplerate),n.bitrate_index<=0)return e.internal_flags=null,-1}else n.bitrate_index=1;e.analysis&&(e.bWriteVbrTag=!1),null!=n.pinfo&&(e.bWriteVbrTag=!1),z.init_bit_stream_w(n);for(var m=n.samplerate_index+3*e.version+6*(e.out_samplerate<16e3?1:0),b=0;b<Xt.SBMAX_l+1;b++)n.scalefac_band.l[b]=N.sfBandIndex[m].l[b];for(b=0;b<Xt.PSFB21+1;b++){var w=(n.scalefac_band.l[22]-n.scalefac_band.l[21])/Xt.PSFB21,y=n.scalefac_band.l[21]+b*w;n.scalefac_band.psfb21[b]=y}n.scalefac_band.psfb21[Xt.PSFB21]=576;for(b=0;b<Xt.SBMAX_s+1;b++)n.scalefac_band.s[b]=N.sfBandIndex[m].s[b];for(var M,S,A,x,b=0;b<Xt.PSFB12+1;b++){w=(n.scalefac_band.s[13]-n.scalefac_band.s[12])/Xt.PSFB12,y=n.scalefac_band.s[12]+b*w;n.scalefac_band.psfb12[b]=y}for(n.scalefac_band.psfb12[Xt.PSFB12]=192,n.sideinfo_len=1==e.version?1==n.channels_out?21:36:1==n.channels_out?13:21,e.error_protection&&(n.sideinfo_len+=2),S=(M=e).internal_flags,M.frameNum=0,M.write_id3tag_automatic&&Q.id3tag_write_v2(M),S.bitrate_stereoMode_Hist=$([16,5]),S.bitrate_blockType_Hist=$([16,6]),S.PeakSample=0,M.bWriteVbrTag&&X.InitVbrTag(M),n.Class_ID=j,A=0;A<19;A++)n.nsPsy.pefirbuf[A]=700*n.mode_gr*n.channels_out;switch(-1==e.ATHtype&&(e.ATHtype=4),e.VBR){case Nt.vbr_mt:e.VBR=Nt.vbr_mtrh;case Nt.vbr_mtrh:null==e.useTemporal&&(e.useTemporal=!1),L.apply_preset(e,500-10*e.VBR_q,0),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),e.quality<5&&(e.quality=0),5<e.quality&&(e.quality=5),n.PSY.mask_adjust=e.maskingadjust,n.PSY.mask_adjust_short=e.maskingadjust_short,n.sfb21_extra=!e.experimentalY&&44e3<e.out_samplerate,n.iteration_loop=new VBRNewIterationLoop(W);break;case Nt.vbr_rh:L.apply_preset(e,500-10*e.VBR_q,0),n.PSY.mask_adjust=e.maskingadjust,n.PSY.mask_adjust_short=e.maskingadjust_short,n.sfb21_extra=!e.experimentalY&&44e3<e.out_samplerate,6<e.quality&&(e.quality=6),e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),n.iteration_loop=new VBROldIterationLoop(W);break;default:n.sfb21_extra=!1,e.quality<0&&(e.quality=LAME_DEFAULT_QUALITY),(x=e.VBR)==Nt.vbr_off&&(e.VBR_mean_bitrate_kbps=e.brate),L.apply_preset(e,e.VBR_mean_bitrate_kbps,0),e.VBR=x,n.PSY.mask_adjust=e.maskingadjust,n.PSY.mask_adjust_short=e.maskingadjust_short,n.iteration_loop=new(x==Nt.vbr_off?ie:ABRIterationLoop)(W)}if(e.VBR!=Nt.vbr_off){if(n.VBR_min_bitrate=1,n.VBR_max_bitrate=14,e.out_samplerate<16e3&&(n.VBR_max_bitrate=8),0!=e.VBR_min_bitrate_kbps&&(e.VBR_min_bitrate_kbps=C(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),n.VBR_min_bitrate=I(e.VBR_min_bitrate_kbps,e.version,e.out_samplerate),n.VBR_min_bitrate<0))return-1;if(0!=e.VBR_max_bitrate_kbps&&(e.VBR_max_bitrate_kbps=C(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),n.VBR_max_bitrate=I(e.VBR_max_bitrate_kbps,e.version,e.out_samplerate),n.VBR_max_bitrate<0))return-1;e.VBR_min_bitrate_kbps=te.bitrate_table[e.version][n.VBR_min_bitrate],e.VBR_max_bitrate_kbps=te.bitrate_table[e.version][n.VBR_max_bitrate],e.VBR_mean_bitrate_kbps=Math.min(te.bitrate_table[e.version][n.VBR_max_bitrate],e.VBR_mean_bitrate_kbps),e.VBR_mean_bitrate_kbps=Math.max(te.bitrate_table[e.version][n.VBR_min_bitrate],e.VBR_mean_bitrate_kbps)}e.tune&&(n.PSY.mask_adjust+=e.tune_value_a,n.PSY.mask_adjust_short+=e.tune_value_a);var R=e,E=R.internal_flags;switch(R.quality){default:case 9:E.psymodel=0,E.noise_shaping=0,E.noise_shaping_amp=0,E.noise_shaping_stop=0,E.use_best_huffman=0,E.full_outer_loop=0;break;case 8:R.quality=7;case 7:E.psymodel=1,E.noise_shaping=0,E.noise_shaping_amp=0,E.noise_shaping_stop=0,E.use_best_huffman=0,E.full_outer_loop=0;break;case 6:case 5:E.psymodel=1,0==E.noise_shaping&&(E.noise_shaping=1),E.noise_shaping_amp=0,E.noise_shaping_stop=0,-1==E.subblock_gain&&(E.subblock_gain=1),E.use_best_huffman=0,E.full_outer_loop=0;break;case 4:E.psymodel=1,0==E.noise_shaping&&(E.noise_shaping=1),E.noise_shaping_amp=0,E.noise_shaping_stop=0,-1==E.subblock_gain&&(E.subblock_gain=1),E.use_best_huffman=1,E.full_outer_loop=0;break;case 3:E.psymodel=1,0==E.noise_shaping&&(E.noise_shaping=1),E.noise_shaping_amp=1,-(E.noise_shaping_stop=1)==E.subblock_gain&&(E.subblock_gain=1),E.use_best_huffman=1,E.full_outer_loop=0;break;case 2:E.psymodel=1,0==E.noise_shaping&&(E.noise_shaping=1),0==E.substep_shaping&&(E.substep_shaping=2),E.noise_shaping_amp=1,-(E.noise_shaping_stop=1)==E.subblock_gain&&(E.subblock_gain=1),E.use_best_huffman=1,E.full_outer_loop=0;break;case 1:case 0:E.psymodel=1,0==E.noise_shaping&&(E.noise_shaping=1),0==E.substep_shaping&&(E.substep_shaping=2),E.noise_shaping_amp=2,-(E.noise_shaping_stop=1)==E.subblock_gain&&(E.subblock_gain=1),E.use_best_huffman=1,E.full_outer_loop=0}return n.ATH.useAdjust=e.athaa_type<0?3:e.athaa_type,n.ATH.aaSensitivityP=Math.pow(10,e.athaa_sensitivity/-10),null==e.short_blocks&&(e.short_blocks=Lt.short_block_allowed),e.short_blocks!=Lt.short_block_allowed||e.mode!=Wt.JOINT_STEREO&&e.mode!=Wt.STEREO||(e.short_blocks=Lt.short_block_coupled),e.quant_comp<0&&(e.quant_comp=1),e.quant_comp_short<0&&(e.quant_comp_short=0),e.msfix<0&&(e.msfix=0),e.exp_nspsytune=1|e.exp_nspsytune,e.internal_flags.nsPsy.attackthre<0&&(e.internal_flags.nsPsy.attackthre=J.NSATTACKTHRE),e.internal_flags.nsPsy.attackthre_s<0&&(e.internal_flags.nsPsy.attackthre_s=J.NSATTACKTHRE_S),e.scale<0&&(e.scale=1),e.ATHtype<0&&(e.ATHtype=4),e.ATHcurve<0&&(e.ATHcurve=4),e.athaa_loudapprox<0&&(e.athaa_loudapprox=2),e.interChRatio<0&&(e.interChRatio=0),null==e.useTemporal&&(e.useTemporal=!0),n.slot_lag=n.frac_SpF=0,e.VBR==Nt.vbr_off&&(n.slot_lag=n.frac_SpF=72e3*(e.version+1)*e.brate%e.out_samplerate|0),N.iteration_init(e),Y.psymodel_init(e),0},this.lame_encode_flush=function(e,t,n,i){var a,r,o,s,l=e.internal_flags,u=_([2,1152]),c=0,f=l.mf_samples_to_encode-Xt.POSTDELAY,d=D(e);if(l.mf_samples_to_encode<1)return 0;for(a=0,e.in_samplerate!=e.out_samplerate&&(f+=16*e.out_samplerate/e.in_samplerate),(o=e.framesize-f%e.framesize)<576&&(o+=e.framesize),s=(f+(e.encoder_padding=o))/e.framesize;0<s&&0<=c;){var h=d-l.mf_size,p=e.frameNum;(h=1152<(h=(h*=e.in_samplerate)/e.out_samplerate)?1152:h)<1&&(h=1),n+=c=this.lame_encode_buffer(e,u[0],u[1],h,t,n,r=0==i?0:i-a),a+=c,s-=p!=e.frameNum?1:0}if(c<(l.mf_samples_to_encode=0))return c;if(r=0==i?0:i-a,z.flush_bitstream(e),(c=z.copy_buffer(l,t,n,r,1))<0)return c;if(n+=c,a+=c,r=0==i?0:i-a,e.write_id3tag_automatic){if(Q.id3tag_write_v1(e),(c=z.copy_buffer(l,t,n,r,0))<0)return c;a+=c}return a},this.lame_encode_buffer=function(e,t,n,i,a,r,o){var s,l,u=e.internal_flags,c=[null,null];if(u.Class_ID!=j)return-3;if(0==i)return 0;l=i,(null==(s=u).in_buffer_0||s.in_buffer_nsamples<l)&&(s.in_buffer_0=Ht(l),s.in_buffer_1=Ht(l),s.in_buffer_nsamples=l),c[0]=u.in_buffer_0,c[1]=u.in_buffer_1;for(var f=0;f<i;f++)c[0][f]=t[f],1<u.channels_in&&(c[1][f]=n[f]);return d(e,c[0],c[1],i,a,r,o)}}function P(){this.setModules=function(e,t){0}}function B(){this.setModules=function(e,t,n){0}}function T(){}function I(){this.setModules=function(e,t){0}}function s(){this.dataOffset=0,this.dataLen=0,this.channels=0,this.sampleRate=0}function t(e){return e.charCodeAt(0)<<24|e.charCodeAt(1)<<16|e.charCodeAt(2)<<8|e.charCodeAt(3)}var Qt={fill:function(e,t,n,i){if(2==arguments.length)for(var a=0;a<e.length;a++)e[a]=t;else for(a=t;a<n;a++)e[a]=i}},ee={arraycopy:function(e,t,n,i,a){for(var r=t+a;t<r;)n[i++]=e[t++]}},Ut={SQRT2:1.4142135623730951,FAST_LOG10:function(e){return Math.log10(e)},FAST_LOG10_X:function(e,t){return Math.log10(e)*t}},C=(Lt.short_block_allowed=new Lt(0),Lt.short_block_coupled=new Lt(1),Lt.short_block_dispensed=new Lt(2),Lt.short_block_forced=new Lt(3),{MAX_VALUE:34028235e31}),te=(Nt.vbr_off=new Nt(0),Nt.vbr_mt=new Nt(1),Nt.vbr_rh=new Nt(2),Nt.vbr_abr=new Nt(3),Nt.vbr_mtrh=new Nt(4),Nt.vbr_default=Nt.vbr_mtrh,Wt.STEREO=new Wt(0),Wt.JOINT_STEREO=new Wt(1),Wt.DUAL_CHANNEL=new Wt(2),Wt.MONO=new Wt(3),Wt.NOT_SET=new Wt(4),G.STEPS_per_dB=100,G.MAX_dB=120,G.GAIN_NOT_ENOUGH_SAMPLES=-24601,G.GAIN_ANALYSIS_ERROR=0,G.GAIN_ANALYSIS_OK=1,G.INIT_GAIN_ANALYSIS_ERROR=0,G.INIT_GAIN_ANALYSIS_OK=1,G.MAX_ORDER=G.YULE_ORDER=10,G.MAX_SAMPLES_PER_WINDOW=(G.MAX_SAMP_FREQ=48e3)*(G.RMS_WINDOW_TIME_NUMERATOR=1)/(G.RMS_WINDOW_TIME_DENOMINATOR=20)+1,Z.EQ=function(e,t){return Math.abs(e)>Math.abs(t)?Math.abs(e-t)<=1e-6*Math.abs(e):Math.abs(e-t)<=1e-6*Math.abs(t)},Z.NEQ=function(e,t){return!Z.EQ(e,t)},S.NUMTOCENTRIES=100,S.MAXFRAMESIZE=2880,{t1HB:[1,1,1,0],t2HB:[1,2,1,3,1,1,3,2,0],t3HB:[3,2,1,1,1,1,3,2,0],t5HB:[1,2,6,5,3,1,4,4,7,5,7,1,6,1,1,0],t6HB:[7,3,5,1,6,2,3,2,5,4,4,1,3,3,2,0],t7HB:[1,2,10,19,16,10,3,3,7,10,5,3,11,4,13,17,8,4,12,11,18,15,11,2,7,6,9,14,3,1,6,4,5,3,2,0],t8HB:[3,4,6,18,12,5,5,1,2,16,9,3,7,3,5,14,7,3,19,17,15,13,10,4,13,5,8,11,5,1,12,4,4,1,1,0],t9HB:[7,5,9,14,15,7,6,4,5,5,6,7,7,6,8,8,8,5,15,6,9,10,5,1,11,7,9,6,4,1,14,4,6,2,6,0],t10HB:[1,2,10,23,35,30,12,17,3,3,8,12,18,21,12,7,11,9,15,21,32,40,19,6,14,13,22,34,46,23,18,7,20,19,33,47,27,22,9,3,31,22,41,26,21,20,5,3,14,13,10,11,16,6,5,1,9,8,7,8,4,4,2,0],t11HB:[3,4,10,24,34,33,21,15,5,3,4,10,32,17,11,10,11,7,13,18,30,31,20,5,25,11,19,59,27,18,12,5,35,33,31,58,30,16,7,5,28,26,32,19,17,15,8,14,14,12,9,13,14,9,4,1,11,4,6,6,6,3,2,0],t12HB:[9,6,16,33,41,39,38,26,7,5,6,9,23,16,26,11,17,7,11,14,21,30,10,7,17,10,15,12,18,28,14,5,32,13,22,19,18,16,9,5,40,17,31,29,17,13,4,2,27,12,11,15,10,7,4,1,27,12,8,12,6,3,1,0],t13HB:[1,5,14,21,34,51,46,71,42,52,68,52,67,44,43,19,3,4,12,19,31,26,44,33,31,24,32,24,31,35,22,14,15,13,23,36,59,49,77,65,29,40,30,40,27,33,42,16,22,20,37,61,56,79,73,64,43,76,56,37,26,31,25,14,35,16,60,57,97,75,114,91,54,73,55,41,48,53,23,24,58,27,50,96,76,70,93,84,77,58,79,29,74,49,41,17,47,45,78,74,115,94,90,79,69,83,71,50,59,38,36,15,72,34,56,95,92,85,91,90,86,73,77,65,51,44,43,42,43,20,30,44,55,78,72,87,78,61,46,54,37,30,20,16,53,25,41,37,44,59,54,81,66,76,57,54,37,18,39,11,35,33,31,57,42,82,72,80,47,58,55,21,22,26,38,22,53,25,23,38,70,60,51,36,55,26,34,23,27,14,9,7,34,32,28,39,49,75,30,52,48,40,52,28,18,17,9,5,45,21,34,64,56,50,49,45,31,19,12,15,10,7,6,3,48,23,20,39,36,35,53,21,16,23,13,10,6,1,4,2,16,15,17,27,25,20,29,11,17,12,16,8,1,1,0,1],t15HB:[7,12,18,53,47,76,124,108,89,123,108,119,107,81,122,63,13,5,16,27,46,36,61,51,42,70,52,83,65,41,59,36,19,17,15,24,41,34,59,48,40,64,50,78,62,80,56,33,29,28,25,43,39,63,55,93,76,59,93,72,54,75,50,29,52,22,42,40,67,57,95,79,72,57,89,69,49,66,46,27,77,37,35,66,58,52,91,74,62,48,79,63,90,62,40,38,125,32,60,56,50,92,78,65,55,87,71,51,73,51,70,30,109,53,49,94,88,75,66,122,91,73,56,42,64,44,21,25,90,43,41,77,73,63,56,92,77,66,47,67,48,53,36,20,71,34,67,60,58,49,88,76,67,106,71,54,38,39,23,15,109,53,51,47,90,82,58,57,48,72,57,41,23,27,62,9,86,42,40,37,70,64,52,43,70,55,42,25,29,18,11,11,118,68,30,55,50,46,74,65,49,39,24,16,22,13,14,7,91,44,39,38,34,63,52,45,31,52,28,19,14,8,9,3,123,60,58,53,47,43,32,22,37,24,17,12,15,10,2,1,71,37,34,30,28,20,17,26,21,16,10,6,8,6,2,0],t16HB:[1,5,14,44,74,63,110,93,172,149,138,242,225,195,376,17,3,4,12,20,35,62,53,47,83,75,68,119,201,107,207,9,15,13,23,38,67,58,103,90,161,72,127,117,110,209,206,16,45,21,39,69,64,114,99,87,158,140,252,212,199,387,365,26,75,36,68,65,115,101,179,164,155,264,246,226,395,382,362,9,66,30,59,56,102,185,173,265,142,253,232,400,388,378,445,16,111,54,52,100,184,178,160,133,257,244,228,217,385,366,715,10,98,48,91,88,165,157,148,261,248,407,397,372,380,889,884,8,85,84,81,159,156,143,260,249,427,401,392,383,727,713,708,7,154,76,73,141,131,256,245,426,406,394,384,735,359,710,352,11,139,129,67,125,247,233,229,219,393,743,737,720,885,882,439,4,243,120,118,115,227,223,396,746,742,736,721,712,706,223,436,6,202,224,222,218,216,389,386,381,364,888,443,707,440,437,1728,4,747,211,210,208,370,379,734,723,714,1735,883,877,876,3459,865,2,377,369,102,187,726,722,358,711,709,866,1734,871,3458,870,434,0,12,10,7,11,10,17,11,9,13,12,10,7,5,3,1,3],t24HB:[15,13,46,80,146,262,248,434,426,669,653,649,621,517,1032,88,14,12,21,38,71,130,122,216,209,198,327,345,319,297,279,42,47,22,41,74,68,128,120,221,207,194,182,340,315,295,541,18,81,39,75,70,134,125,116,220,204,190,178,325,311,293,271,16,147,72,69,135,127,118,112,210,200,188,352,323,306,285,540,14,263,66,129,126,119,114,214,202,192,180,341,317,301,281,262,12,249,123,121,117,113,215,206,195,185,347,330,308,291,272,520,10,435,115,111,109,211,203,196,187,353,332,313,298,283,531,381,17,427,212,208,205,201,193,186,177,169,320,303,286,268,514,377,16,335,199,197,191,189,181,174,333,321,305,289,275,521,379,371,11,668,184,183,179,175,344,331,314,304,290,277,530,383,373,366,10,652,346,171,168,164,318,309,299,287,276,263,513,375,368,362,6,648,322,316,312,307,302,292,284,269,261,512,376,370,364,359,4,620,300,296,294,288,282,273,266,515,380,374,369,365,361,357,2,1033,280,278,274,267,264,259,382,378,372,367,363,360,358,356,0,43,20,19,17,15,13,11,9,7,6,4,7,5,3,1,3],t32HB:[1,10,8,20,12,20,16,32,14,12,24,0,28,16,24,16],t33HB:[15,28,26,48,22,40,36,64,14,24,20,32,12,16,8,0],t1l:[1,4,3,5],t2l:[1,4,7,4,5,7,6,7,8],t3l:[2,3,7,4,4,7,6,7,8],t5l:[1,4,7,8,4,5,8,9,7,8,9,10,8,8,9,10],t6l:[3,4,6,8,4,4,6,7,5,6,7,8,7,7,8,9],t7l:[1,4,7,9,9,10,4,6,8,9,9,10,7,7,9,10,10,11,8,9,10,11,11,11,8,9,10,11,11,12,9,10,11,12,12,12],t8l:[2,4,7,9,9,10,4,4,6,10,10,10,7,6,8,10,10,11,9,10,10,11,11,12,9,9,10,11,12,12,10,10,11,11,13,13],t9l:[3,4,6,7,9,10,4,5,6,7,8,10,5,6,7,8,9,10,7,7,8,9,9,10,8,8,9,9,10,11,9,9,10,10,11,11],t10l:[1,4,7,9,10,10,10,11,4,6,8,9,10,11,10,10,7,8,9,10,11,12,11,11,8,9,10,11,12,12,11,12,9,10,11,12,12,12,12,12,10,11,12,12,13,13,12,13,9,10,11,12,12,12,13,13,10,10,11,12,12,13,13,13],t11l:[2,4,6,8,9,10,9,10,4,5,6,8,10,10,9,10,6,7,8,9,10,11,10,10,8,8,9,11,10,12,10,11,9,10,10,11,11,12,11,12,9,10,11,12,12,13,12,13,9,9,9,10,11,12,12,12,9,9,10,11,12,12,12,12],t12l:[4,4,6,8,9,10,10,10,4,5,6,7,9,9,10,10,6,6,7,8,9,10,9,10,7,7,8,8,9,10,10,10,8,8,9,9,10,10,10,11,9,9,10,10,10,11,10,11,9,9,9,10,10,11,11,12,10,10,10,11,11,11,11,12],t13l:[1,5,7,8,9,10,10,11,10,11,12,12,13,13,14,14,4,6,8,9,10,10,11,11,11,11,12,12,13,14,14,14,7,8,9,10,11,11,12,12,11,12,12,13,13,14,15,15,8,9,10,11,11,12,12,12,12,13,13,13,13,14,15,15,9,9,11,11,12,12,13,13,12,13,13,14,14,15,15,16,10,10,11,12,12,12,13,13,13,13,14,13,15,15,16,16,10,11,12,12,13,13,13,13,13,14,14,14,15,15,16,16,11,11,12,13,13,13,14,14,14,14,15,15,15,16,18,18,10,10,11,12,12,13,13,14,14,14,14,15,15,16,17,17,11,11,12,12,13,13,13,15,14,15,15,16,16,16,18,17,11,12,12,13,13,14,14,15,14,15,16,15,16,17,18,19,12,12,12,13,14,14,14,14,15,15,15,16,17,17,17,18,12,13,13,14,14,15,14,15,16,16,17,17,17,18,18,18,13,13,14,15,15,15,16,16,16,16,16,17,18,17,18,18,14,14,14,15,15,15,17,16,16,19,17,17,17,19,18,18,13,14,15,16,16,16,17,16,17,17,18,18,21,20,21,18],t15l:[3,5,6,8,8,9,10,10,10,11,11,12,12,12,13,14,5,5,7,8,9,9,10,10,10,11,11,12,12,12,13,13,6,7,7,8,9,9,10,10,10,11,11,12,12,13,13,13,7,8,8,9,9,10,10,11,11,11,12,12,12,13,13,13,8,8,9,9,10,10,11,11,11,11,12,12,12,13,13,13,9,9,9,10,10,10,11,11,11,11,12,12,13,13,13,14,10,9,10,10,10,11,11,11,11,12,12,12,13,13,14,14,10,10,10,11,11,11,11,12,12,12,12,12,13,13,13,14,10,10,10,11,11,11,11,12,12,12,12,13,13,14,14,14,10,10,11,11,11,11,12,12,12,13,13,13,13,14,14,14,11,11,11,11,12,12,12,12,12,13,13,13,13,14,15,14,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,15,12,12,11,12,12,12,13,13,13,13,13,13,14,14,15,15,12,12,12,12,12,13,13,13,13,14,14,14,14,14,15,15,13,13,13,13,13,13,13,13,14,14,14,14,15,15,14,15,13,13,13,13,13,13,13,14,14,14,14,14,15,15,15,15],t16_5l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,11,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,11,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,12,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,13,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,12,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,13,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,13,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,13,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,13,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,14,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,13,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,14,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,14,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,14,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,14,11,11,11,12,12,13,13,13,14,14,14,14,14,14,14,12],t16l:[1,5,7,9,10,10,11,11,12,12,12,13,13,13,14,10,4,6,8,9,10,11,11,11,12,12,12,13,14,13,14,10,7,8,9,10,11,11,12,12,13,12,13,13,13,14,14,11,9,9,10,11,11,12,12,12,13,13,14,14,14,15,15,12,10,10,11,11,12,12,13,13,13,14,14,14,15,15,15,11,10,10,11,11,12,13,13,14,13,14,14,15,15,15,16,12,11,11,11,12,13,13,13,13,14,14,14,14,15,15,16,12,11,11,12,12,13,13,13,14,14,15,15,15,15,17,17,12,11,12,12,13,13,13,14,14,15,15,15,15,16,16,16,12,12,12,12,13,13,14,14,15,15,15,15,16,15,16,15,13,12,13,12,13,14,14,14,14,15,16,16,16,17,17,16,12,13,13,13,13,14,14,15,16,16,16,16,16,16,15,16,13,13,14,14,14,14,15,15,15,15,17,16,16,16,16,18,13,15,14,14,14,15,15,16,16,16,18,17,17,17,19,17,13,14,15,13,14,16,16,15,16,16,17,18,17,19,17,16,13,10,10,10,11,11,12,12,12,13,13,13,13,13,13,13,10],t24l:[4,5,7,8,9,10,10,11,11,12,12,12,12,12,13,10,5,6,7,8,9,10,10,11,11,11,12,12,12,12,12,10,7,7,8,9,9,10,10,11,11,11,11,12,12,12,13,9,8,8,9,9,10,10,10,11,11,11,11,12,12,12,12,9,9,9,9,10,10,10,10,11,11,11,12,12,12,12,13,9,10,9,10,10,10,10,11,11,11,11,12,12,12,12,12,9,10,10,10,10,10,11,11,11,11,12,12,12,12,12,13,9,11,10,10,10,11,11,11,11,12,12,12,12,12,13,13,10,11,11,11,11,11,11,11,11,11,12,12,12,12,13,13,10,11,11,11,11,11,11,11,12,12,12,12,12,13,13,13,10,12,11,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,11,11,11,12,12,12,12,12,12,13,13,13,13,10,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,10,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,10,13,12,12,12,12,12,12,13,13,13,13,13,13,13,13,10,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,6],t32l:[1,5,5,7,5,8,7,9,5,7,7,9,7,9,9,10],t33l:[4,5,5,6,5,6,6,7,5,6,6,7,6,7,7,8]}),H=(te.ht=[new e(0,0,null,null),new e(2,0,te.t1HB,te.t1l),new e(3,0,te.t2HB,te.t2l),new e(3,0,te.t3HB,te.t3l),new e(0,0,null,null),new e(4,0,te.t5HB,te.t5l),new e(4,0,te.t6HB,te.t6l),new e(6,0,te.t7HB,te.t7l),new e(6,0,te.t8HB,te.t8l),new e(6,0,te.t9HB,te.t9l),new e(8,0,te.t10HB,te.t10l),new e(8,0,te.t11HB,te.t11l),new e(8,0,te.t12HB,te.t12l),new e(16,0,te.t13HB,te.t13l),new e(0,0,null,te.t16_5l),new e(16,0,te.t15HB,te.t15l),new e(1,1,te.t16HB,te.t16l),new e(2,3,te.t16HB,te.t16l),new e(3,7,te.t16HB,te.t16l),new e(4,15,te.t16HB,te.t16l),new e(6,63,te.t16HB,te.t16l),new e(8,255,te.t16HB,te.t16l),new e(10,1023,te.t16HB,te.t16l),new e(13,8191,te.t16HB,te.t16l),new e(4,15,te.t24HB,te.t24l),new e(5,31,te.t24HB,te.t24l),new e(6,63,te.t24HB,te.t24l),new e(7,127,te.t24HB,te.t24l),new e(8,255,te.t24HB,te.t24l),new e(9,511,te.t24HB,te.t24l),new e(11,2047,te.t24HB,te.t24l),new e(13,8191,te.t24HB,te.t24l),new e(0,0,te.t32HB,te.t32l),new e(0,0,te.t33HB,te.t33l)],te.largetbl=[65540,327685,458759,589832,655369,655370,720906,720907,786443,786444,786444,851980,851980,851980,917517,655370,262149,393222,524295,589832,655369,720906,720906,720907,786443,786443,786444,851980,917516,851980,917516,655370,458759,524295,589832,655369,720905,720906,786442,786443,851979,786443,851979,851980,851980,917516,917517,720905,589832,589832,655369,720905,720906,786442,786442,786443,851979,851979,917515,917516,917516,983052,983052,786441,655369,655369,720905,720906,786442,786442,851978,851979,851979,917515,917516,917516,983052,983052,983053,720905,655370,655369,720906,720906,786442,851978,851979,917515,851979,917515,917516,983052,983052,983052,1048588,786441,720906,720906,720906,786442,851978,851979,851979,851979,917515,917516,917516,917516,983052,983052,1048589,786441,720907,720906,786442,786442,851979,851979,851979,917515,917516,983052,983052,983052,983052,1114125,1114125,786442,720907,786443,786443,851979,851979,851979,917515,917515,983051,983052,983052,983052,1048588,1048589,1048589,786442,786443,786443,786443,851979,851979,917515,917515,983052,983052,983052,983052,1048588,983053,1048589,983053,851978,786444,851979,786443,851979,917515,917516,917516,917516,983052,1048588,1048588,1048589,1114125,1114125,1048589,786442,851980,851980,851979,851979,917515,917516,983052,1048588,1048588,1048588,1048588,1048589,1048589,983053,1048589,851978,851980,917516,917516,917516,917516,983052,983052,983052,983052,1114124,1048589,1048589,1048589,1048589,1179661,851978,983052,917516,917516,917516,983052,983052,1048588,1048588,1048589,1179661,1114125,1114125,1114125,1245197,1114125,851978,917517,983052,851980,917516,1048588,1048588,983052,1048589,1048589,1114125,1179661,1114125,1245197,1114125,1048589,851978,655369,655369,655369,720905,720905,786441,786441,786441,851977,851977,851977,851978,851978,851978,851978,655366],te.table23=[65538,262147,458759,262148,327684,458759,393222,458759,524296],te.table56=[65539,262148,458758,524296,262148,327684,524294,589831,458757,524294,589831,655368,524295,524295,589832,655369],te.bitrate_table=[[0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,-1],[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],[0,8,16,24,32,40,48,56,64,-1,-1,-1,-1,-1,-1,-1]],te.samplerate_table=[[22050,24e3,16e3,-1],[44100,48e3,32e3,-1],[11025,12e3,8e3,-1]],te.scfsi_band=[0,6,11,16,21],Y.Q_MAX=257,Y.Q_MAX2=116,Y.LARGE_BITS=1e5,Y.IXMAX_VAL=8206,{});H.SFBMAX=3*Xt.SBMAX_s,Xt.ENCDELAY=576,Xt.POSTDELAY=1152,Xt.FFTOFFSET=224+(Xt.MDCTDELAY=48),Xt.DECDELAY=528,Xt.SBLIMIT=32,Xt.CBANDS=64,Xt.SBPSY_l=21,Xt.SBPSY_s=12,Xt.SBMAX_l=22,Xt.SBMAX_s=13,Xt.PSFB21=6,Xt.PSFB12=6,Xt.HBLKSIZE=(Xt.BLKSIZE=1024)/2+1,Xt.HBLKSIZE_s=(Xt.BLKSIZE_s=256)/2+1,Xt.NORM_TYPE=0,Xt.START_TYPE=1,Xt.SHORT_TYPE=2,Xt.STOP_TYPE=3,Xt.MPG_MD_LR_LR=0,Xt.MPG_MD_LR_I=1,Xt.MPG_MD_MS_LR=2,Xt.MPG_MD_MS_I=3,Xt.fircoef=[-.1039435,-.1892065,5*-.0432472,-.155915,3898045e-23,.0467745*5,.50455,.756825,.187098*5],K.MFSIZE=3456+Xt.ENCDELAY-Xt.MDCTDELAY,K.MAX_HEADER_BUF=256,K.MAX_BITS_PER_CHANNEL=4095,K.MAX_BITS_PER_GRANULE=7680,K.BPC=320,s.RIFF=t("RIFF"),s.WAVE=t("WAVE"),s.fmt_=t("fmt "),s.data=t("data"),s.readHeader=function(e){var t=new s,n=e.getUint32(0,!1);if(s.RIFF==n&&(e.getUint32(4,!0),s.WAVE==e.getUint32(8,!1))&&s.fmt_==e.getUint32(12,!1)){var i=e.getUint32(16,!0),a=20;switch(i){case 16:case 18:t.channels=e.getUint16(a+2,!0),t.sampleRate=e.getUint32(a+4,!0);break;default:throw"extended fmt chunk not implemented"}a+=i;for(var r=s.data,o=0;r!=n&&(n=e.getUint32(a,!1),o=e.getUint32(a+4,!0),r!=n);)a+=o+8;return t.dataLen=o,t.dataOffset=a+8,t}},H.SFBMAX=3*Xt.SBMAX_s,window.MediaEngineMp3Encoder=function(n,e,t){3!=arguments.length&&(console.error("WARN: Mp3Encoder(channels, samplerate, kbps) not specified"),n=1,e=44100,t=128);var i=new R,a=new P,r=new G,o=new Z,s=new M,l=new Y,u=new k,c=new S,f=new y,d=new I,h=new A,p=new E,_=new B,v=new T,g=(i.setModules(r,o,s,l,u,c,f,d,v),o.setModules(r,v,f,c),d.setModules(o,f),s.setModules(i),u.setModules(o,h,l,p),l.setModules(p,h,i.enc.psy),h.setModules(o),p.setModules(l),c.setModules(i,o,f),a.setModules(_,v),_.setModules(f,d,s),i.lame_init()),m=(g.num_channels=n,g.in_samplerate=e,g.brate=t,g.mode=Wt.STEREO,g.quality=3,g.bWriteVbrTag=!1,g.disable_reservoir=!0,g.write_id3tag_automatic=!1,i.lame_init_params(g),1152),b=0|1.25*m+7200,w=x(b);this.encodeBuffer=function(e,t){1==n&&(t=e),e.length>m&&(m=e.length,w=x(b=0|1.25*m+7200));t=i.lame_encode_buffer(g,e,t,e.length,w,0,b);return new Int8Array(w.subarray(0,t))},this.flush=function(){var e=i.lame_encode_flush(g,w,0,b);return new Int8Array(w.subarray(0,e))}}})()}();
// source --> https://f-band.com/wp-content/plugins/alex-player/alex-player.js?ver=1.41 
/* Alex Player v1.40, Author: Alex Zhyrytovskyi, 2019-2024. URL: http://alex.player.x10.name/ */
(window.jQuery || mediaUI)(function() {	
	var $ = /*window.jQuery || */mediaUI;
	var ui = mediaUI;
	var instances = {};
	var instancesRendered = {};
	
	function trim(str) {
		return String(str || '').trim();
	}
	
	function getInstance(data, api) {
		var url = data['file'] || data['stream'];
		
		if (!instances.hasOwnProperty(url)) {
			var instance = mediaEngine({
				'api': api
			});
			instances[url] = instance;
			return instance;
		}
		
		return instances[url];
	}
	
	function tryRender(player, data) {
		var url = data['file'] || data['stream'];
		if (!url || instancesRendered.hasOwnProperty(url))
			return;

		if (data['file'])
			player.renderFile(url);
		else
			player.renderStream(url, data['title']);
		
		instancesRendered[url] = true;
	}

	$(document).findAll('.wp-alex-media-player').each(function() {
		var $owner = $(this);
		var data = JSON.parse($owner.attr('data-json'));
		var player = getInstance(data, data['api']);

		var options = {
			'player': player
		};
		
		if (data.hasOwnProperty('mode'))
			options['mode'] = data['mode'];
		
		if (data.hasOwnProperty('style'))
			options['style'] = data['style'];

		if (data.hasOwnProperty('color'))
			options['lineColor'] = data['color'];

		if (data.hasOwnProperty('max_width')) // !Deprecated
			options['width'] = data['max_width'];
		
		if (data.hasOwnProperty('width'))
			options['width'] = data['width'];

		if (data.hasOwnProperty('vis_type'))
			options['visType'] = data['vis_type'];
		
		if (data.hasOwnProperty('equalizer_color'))
			options['equalizerColor'] = data['equalizer_color'];
		
		if (data.hasOwnProperty('looped'))
			player.setLooped(data['looped']);
		
		if (data.hasOwnProperty('show_video'))
			options['showVideo'] = data['show_video'];
		
		if (data.hasOwnProperty('spectrum')) {
			var parts = String(data['spectrum']).split(' ');
			if (parts.length == 2) {
				options['spectrumEnabled'] = true;
				options['spectrumColor'] = parts[0];
				options['spectrumHeight'] = parts[1];
			}
			else if (parts.length == 1) {
				options['spectrumEnabled'] = true;
				options['spectrumColor'] = parts[0];
			}
		}
		
		if (data.hasOwnProperty('hide_play_button'))
			options['hidePlayButton'] = data['hide_play_button'];
		
		if (data.hasOwnProperty('autoplay')) // !Experimental
			player.setAutoplay(data['autoplay']);
		
		if (data.hasOwnProperty('looped'))
			player.setLooped(data['looped']);
		
		if (data.hasOwnProperty('cookie_name'))
			options['cookieName'] = data['cookie_name'];

		if (data.hasOwnProperty('position'))
			options['position'] = data['position'];

		if (data.hasOwnProperty('radio_station')) {
			var stationList = [];
			$owner.findAll('.wp-alex-radio-station').each(function() {
				var item = JSON.parse($(this).attr('data-json'));
				var station = {};
				station['name'] = item['name'];
				station['url'] = item['url'];
				if (item['type'] == 'icecast') {
					station['type'] = 'icecast';
					station['icecasturl'] = item['icecasturl'];
					station['interval'] = item['interval'];
				}
				stationList.push(station);
			});

			if (ui.toInt(data['radio_station']) > 0)
				player.renderRadio(data['radio_station'], stationList, true);
			else
				player.renderRadio(0, stationList, true);
		}
		else {
			tryRender(player, data);
		}

		var $playlist = $('<div>');
		$playlist.insertAfter($owner);
		$playlist.UIMediaPlayer(options);
		$owner.hide();
	});

	$(document).findAll('.wp-alex-wavesurfer').each(function() {
		var $this = $(this);
		var data = JSON.parse($this.attr('data-json'));
		var player = getInstance(data, data['api']);

		var options = {
			'player': player
		};

		if (data.hasOwnProperty('color'))
			options['mainColor'] = data['color'];

		if (data.hasOwnProperty('color2'))
			options['secondaryColor'] = data['color2'];
		
		if (data.hasOwnProperty('cached'))
			options['cachedWave'] = data['cached'];
		
		if (data.hasOwnProperty('autoplay')) // !Experimental
			player.setAutoplay(data['autoplay']);
		
		if (data.hasOwnProperty('looped'))
			player.setLooped(data['looped']);
		
		if (data.hasOwnProperty('selection_enabled'))
			options['selectionEnabled'] = data['selection_enabled'];
		
		if (data.hasOwnProperty('selection_color'))
			options['selectionColor'] = data['selection_color'];

		if (data.hasOwnProperty('selection_download'))
			options['selectionDownloadEnabled'] = data['selection_download'];

		if (data.hasOwnProperty('channels'))
			options['channels'] = data['channels'];
		
		if (data.hasOwnProperty('hide_play_button'))
			options['hidePlayButton'] = data['hide_play_button'];

		$this.UIWaveSurfer(options);
		tryRender(player, data);
	});

	$(document).findAll('.wp-alex-waveform').each(function() {
		var $this = $(this);
		var data = JSON.parse($this.attr('data-json'));
		var options = {};
		
		if (data.hasOwnProperty('file'))
			options['player'] = getInstance(data);

		if (data.hasOwnProperty('color'))
			options['color'] = data['color'];

		if (data.hasOwnProperty('opacity'))
			options['opacity'] = data['opacity'];

		if (data.hasOwnProperty('height'))
			options['height'] = data['height'];

		var owner = data['owner'];
		if (owner) {
			options['ghostMode'] = true;
			options['ghostTop'] = data['owner_top'];
			$(owner).UIWaveform(options);
		}
		else
			$this.UIWaveform(options);
	});

	$(document).findAll('.wp-alex-play-button').each(function() {
		var $this = $(this);
		var data = JSON.parse($this.attr('data-json'));
		var player = getInstance(data);
		var options = {
			'player': player
		};
		
		if (data.hasOwnProperty('size')) {
			var size = trim(data['size']).split(' ');
			options['size'] = size[0];
			if (size.length > 1)
				options['outerSize'] = size[1];
		}
		
		if (data.hasOwnProperty('color')) {
			var colorParts = trim(data['color']).split(' ');
			options['color'] = colorParts[0];
			if (colorParts.length > 1)
				options['hoverColor'] = colorParts[1];
			if (colorParts.length > 2)
				options['hoverDuration'] = colorParts[2];
		}
		
		if (data.hasOwnProperty('id'))
			options['id'] = data['id'];
		
		if (data.hasOwnProperty('autoplay')) // !Experimental
			player.setAutoplay(data['autoplay']);
		
		if (data.hasOwnProperty('looped'))
			player.setLooped(data['looped']);
		
		var owner = data['owner'];
		if (owner)
			$(owner).UIPlayButton(options);
		else
			$this.UIPlayButton(options);

		tryRender(player, data);
	});

	$(document).findAll('.wp-alex-circular-spectrum').each(function() {
		var data = JSON.parse($(this).attr('data-json'));
		
		var size = trim(data['size']).split(' ');
		if (size.length != 2)
			return;
		
		var bars = trim(data['bars']).split(' ');
		if (bars.length != 5)
			return;
		
		var options = {
			'innerSize': size[0],
			'outerSize': size[1],
			'barCount': bars[0],
			'barSize': bars[1],
			'barColor': bars[2],
			'barSpeed': bars[3],
			'multiplier': bars[4]
		};
		
		if (data.hasOwnProperty('peaks')) {
			var peaks = trim(data['peaks']).split(' ');
			if (peaks.length == 2) {
				options['showPeaks'] = true;
				options['peakColor'] = peaks[0];
				options['peakSpeed'] = peaks[1];
			}
		}
		
		if (data.hasOwnProperty('opacity'))
			options['opacity'] = data['opacity'];
		
		var ownerSelector = data['owner'];
		$(ownerSelector).UICircularSpectrum(options);
	});

	$(document).findAll('.wp-alex-equalizer').each(function() {
		var data = JSON.parse($(this).attr('data-json'));
		var player = getInstance(data);

		var options = {
			'player': player
		};
		
		if (data.hasOwnProperty('color'))
			options['color'] = data['color'];
		
		if (data.hasOwnProperty('cookie_name'))
			options['cookieName'] = data['cookie_name'];
		
		$(this).UIEqualizer(options);
	});

	$(document).findAll('.wp-alex-playlist').each(function() {
		var $owner = $(this);
		var data = JSON.parse($owner.attr('data-json'));
		var player = mediaEngine.instances[0];

		var options = {
			'player': player
		};

		var items = [];
		$owner.findAll('.wp-alex-playlist-item').each(function() {
			var item = JSON.parse($(this).attr('data-json'));
			items.push({
				'title': item['title'],
				'url': item['url']
			});
		});
		options['items'] = items;

		var $playlist = $('<div>');
		$playlist.insertAfter($owner);
		$playlist.UIPlaylist(options);
		$owner.hide();
	});
});
// source --> https://f-band.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1 
/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
jQuery.noConflict();
// source --> https://f-band.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1 
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});