diff --git a/mstream.js b/mstream.js index f428fba..0597f07 100755 --- a/mstream.js +++ b/mstream.js @@ -62,22 +62,15 @@ exports.serveIt = config => { mstream.get('/', (req, res) => { res.sendFile('mstream.html', { root: program.webAppDirectory }); }); - mstream.get('/j/*', (req, res) => { - res.sendFile( 'mstream.html', { root: program.webAppDirectory }); - }); - // It Really Whips The Llama's Ass - mstream.get('/winamp', (req, res) => { - res.sendFile('winamp.html', { root: program.webAppDirectory }); - }); // Serve Shared Page mstream.all('/shared/playlist/*', (req, res) => { - res.sendFile( 'shared.html', { root: program.webAppDirectory }); + res.sendFile('shared.html', { root: program.webAppDirectory }); }); // Serve Jukebox Page mstream.all('/remote', (req, res) => { res.sendFile('remote.html', { root: program.webAppDirectory }); }); - + // Admin Panel mstream.all('/admin', (req, res) => { res.sendFile('admin.html', { root: program.webAppDirectory }); }); diff --git a/public/css/webamp.css b/public/css/webamp.css deleted file mode 100644 index 7c11223..0000000 --- a/public/css/webamp.css +++ /dev/null @@ -1,23 +0,0 @@ -.webampIframe { - height: 100%; - width: 100%; - -} - -.main-section { - padding-bottom: 0px !important; -} - -.scrollBoxHeight1 { - height: calc(100% - 140px) !important; -} - -.scrollBoxHeight1{ - height: calc(100% - 100px) !important; -} -@media (min-width: 644px) { - .scrollBoxHeight1 { - height: calc(100% - 100px) !important; } } -@media (max-device-width: 643px) { - .scrollBoxHeight1 { - height: calc(100% - 100px) !important; } } \ No newline at end of file diff --git a/public/js/lib/webamp.js b/public/js/lib/webamp.js deleted file mode 100644 index 8cd643c..0000000 --- a/public/js/lib/webamp.js +++ /dev/null @@ -1,61 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Webamp=t():e.Webamp=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=360)}([function(e,t,n){"use strict";e.exports=n(147)},function(e,t,n){"use strict";var r=n(151),i=(n(85),n(159));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return i.a})},function(e,t,n){"use strict";t.e=function(){return e=>{let t=!1;e({type:r.g,cancel:()=>{t=!0}}),t||(e({type:r._9}),e({type:r.h}))}},t._3=function(){return{type:r._16}},t.o=function(){return{type:r.w}},t.M=function(e){return{type:r.T,input:e}},t._5=function(){return{type:r._19}},t.n=function(e){return t=>{t({type:r.t,serializedState:e}),t(Object(i.d)())}},t.k=function(){return{type:r.s}};var r=n(3),i=n(96);n.d(t,"V",function(){return i.g}),n.d(t,"X",function(){return i.h}),n.d(t,"Z",function(){return i.j}),n.d(t,"f",function(){return i.c}),n.d(t,"R",function(){return i.e}),n.d(t,"_4",function(){return i.k}),n.d(t,"_6",function(){return i.l}),n.d(t,"Y",function(){return i.i}),n.d(t,"d",function(){return i.b}),n.d(t,"c",function(){return i.a}),n.d(t,"T",function(){return i.f});var A=n(193);n.d(t,"v",function(){return A.e}),n.d(t,"u",function(){return A.d}),n.d(t,"U",function(){return A.l}),n.d(t,"q",function(){return A.c}),n.d(t,"p",function(){return A.b}),n.d(t,"w",function(){return A.f}),n.d(t,"G",function(){return A.i}),n.d(t,"F",function(){return A.h}),n.d(t,"Q",function(){return A.k}),n.d(t,"b",function(){return A.a}),n.d(t,"E",function(){return A.g}),n.d(t,"H",function(){return A.j}),n.d(t,"_0",function(){return A.m}),n.d(t,"_1",function(){return A.n}),n.d(t,"_2",function(){return A.o});var a=n(99);n.d(t,"I",function(){return a.a}),n.d(t,"J",function(){return a.b}),n.d(t,"K",function(){return a.c}),n.d(t,"L",function(){return a.d}),n.d(t,"O",function(){return a.e}),n.d(t,"W",function(){return a.f});var o=n(194);n.d(t,"a",function(){return o.a}),n.d(t,"l",function(){return o.d}),n.d(t,"P",function(){return o.i}),n.d(t,"r",function(){return o.f}),n.d(t,"s",function(){return o.g}),n.d(t,"t",function(){return o.h}),n.d(t,"m",function(){return o.e}),n.d(t,"i",function(){return o.c}),n.d(t,"h",function(){return o.b});var s=n(102);n.d(t,"g",function(){return s.a}),n.d(t,"z",function(){return s.e}),n.d(t,"y",function(){return s.d}),n.d(t,"A",function(){return s.f}),n.d(t,"x",function(){return s.c}),n.d(t,"S",function(){return s.k}),n.d(t,"N",function(){return s.j}),n.d(t,"C",function(){return s.h}),n.d(t,"D",function(){return s.i}),n.d(t,"B",function(){return s.g}),n.d(t,"j",function(){return s.b})},function(e,t,n){"use strict";t.b="ADD_TRACK_FROM_URL";t.h="CLOSE_WINAMP";t.w="MINIMIZE_WINAMP";t.o="IS_PLAYING";t.p="IS_STOPPED";t.z="PAUSE";t.A="PLAY";t.I="SEEK_TO_PERCENT_COMPLETE";t.M="SET_BALANCE";t.O="SET_BAND_VALUE";t.T="SET_FOCUS";t.N="SET_BAND_FOCUS";t.U="SET_FOCUSED_WINDOW";t.V="SET_MEDIA";t.Z="SET_SCRUB_POSITION";t._0="SET_SKIN_DATA";t._3="SET_VOLUME";t._7="START_WORKING";t._8="STEP_MARQUEE";t._9="STOP";t._10="STOP_WORKING";t._11="TOGGLE_DOUBLESIZE_MODE";t.Q="SET_EQ_AUTO";t.S="SET_EQ_ON";t.R="SET_EQ_OFF";t._12="TOGGLE_LLAMA_MODE";t._13="TOGGLE_REPEAT";t._14="TOGGLE_SHUFFLE";t._15="TOGGLE_TIME_MODE";t._16="TOGGLE_VISUALIZER_STYLE";t._19="UNSET_FOCUS";t._21="UPDATE_TIME_ELAPSED";t._2="SET_USER_MESSAGE";t._20="UNSET_USER_MESSAGE";t.Y="SET_PLAYLIST_SCROLL_POSITION";t.f="CLICKED_TRACK";t.j="CTRL_CLICKED_TRACK";t._6="SHIFT_CLICKED_TRACK";t.J="SELECT_ALL";t.K="SELECT_ZERO";t.n="INVERT_SELECTION";t.E="REMOVE_ALL_TRACKS";t.F="REMOVE_TRACKS";t.L="SET_AVAILABLE_SKINS";t.H="REVERSE_LIST";t.C="RANDOMIZE_LIST";t._1="SET_TRACK_ORDER";t.B="PLAY_TRACK";t.d="BUFFER_TRACK";t.l="DRAG_SELECTED";t.X="SET_MEDIA_TAGS";t.W="SET_MEDIA_DURATION";t._17="TOGGLE_WINDOW";t.a="ADD_GEN_WINDOW";t.i="CLOSE_WINDOW";t.v="MEDIA_TAG_REQUEST_INITIALIZED";t.u="MEDIA_TAG_REQUEST_FAILED";t.x="NETWORK_CONNECTED";t.y="NETWORK_DISCONNECTED";t._22="UPDATE_WINDOW_POSITIONS";t.e="CHANNEL_COUNT_CHANGED";t._23="WINDOW_SIZE_CHANGED";t._18="TOGGLE_WINDOW_SHADE_MODE";t.q="LOADED";t.D="REGISTER_VISUALIZER";t._5="SET_Z_INDEX";t.k="DISABLE_MARQUEE";t.P="SET_DUMMY_VIZ_DATA";t._4="SET_WINDOW_VISIBILITY";t.r="LOADING";t.g="CLOSE_REQUESTED";t.t="LOAD_SERIALIZED_STATE";t.G="RESET_WINDOW_SIZES";t.c="BROWSER_WINDOW_SIZE_CHANGED";t.s="LOAD_DEFAULT_SKIN";t.m="ENABLE_MEDIA_LIBRARY"},function(e,t,n){"use strict";var r=n(183);n.n(r);t.a=[60,170,310,600,1e3,3e3,6e3,12e3,14e3,16e3];t.m={MAIN:"main",PLAYLIST:"playlist",EQUALIZER:"equalizer",MEDIA_LIBRARY:"mediaLibrary"};t.e={BUFFER:"BUFFER",PLAY:"PLAY",NONE:"NONE"};t.g={INITIALIZED:"INITIALIZED",FAILED:"FAILED",COMPLETE:"COMPLETE",NOT_REQUESTED:"NOT_REQUESTED"};t.j="…";t.b=5;t.o=25;t.n=29;t.p=275;t.i=13;const i="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");t.d=i;const A=r;t.c=A;const a={OSCILLOSCOPE:"OSCILLOSCOPE",BAR:"BAR",NONE:"NONE"};t.k=a;const o=[a.BAR,a.OSCILLOSCOPE,a.NONE];t.l=o;t.h={ELAPSED:"ELAPSED",REMAINING:"REMAINING"};t.f={PLAYING:"PLAYING",STOPPED:"STOPPED",PAUSED:"PAUSED"}},function(e,t,n){"use strict";t.P=te,t.L=function(e){return t=>e.windows.genWindows[t].open},t.O=function(e){return t=>e.windows.genWindows[t].shade},t.K=function(e){return t=>e.windows.genWindows[t].hidden},t.q=function(e){return e.windows.positionsAreRelative},t.v=function(e){return{version:1,media:h.b(e.media),equalizer:p.b(e.equalizer),display:d.b(e.display),windows:f.b(e.windows)}},t.h=function(e){return e.equalizer.on},t.b=function(e){return e.windows.browserWindowSize};var r=n(9),i=n.n(r),A=n(22),a=n.n(A),o=n(91),s=(n.n(o),n(6)),l=n(4),u=n(191),c=n(93),d=n(90),p=n(92),h=n(89),f=n(44),g=n(94),m=n(192),E=n(97);const b=Object(o.createSelector)(e=>e.equalizer.sliders,e=>{const t={name:"Entry1",preamp:s.e(e.preamp)};return l.a.forEach(n=>{t[`hz${n}`]=s.e(e[n])}),{presets:[t],type:"Winamp EQ library file v1.1"}});t.g=b;const w=e=>e.tracks;t.E=w;const y=Object(o.createSelector)(w,e=>{const t=Object.values(e),n=s.l(t,(e,t)=>g.a(e).includes(t));return e=>n(e.toLowerCase())});t.F=y;t.D=(e=>t=>{const n=e.tracks[t];return null==n?null:n.url});const v=e=>e.playlist.trackOrder;t.C=v;const k=Object(o.createSelector)(v,e=>e.length);t.z=k;const I=Object(o.createSelector)(w,v,(e,t)=>t.filter(t=>e[t]));t.m=I;const C=Object(o.createSelector)(w,I,(e,t)=>t.map(t=>e[t])),S=e=>e.playlist.selectedTracks;t.t=S;const T=Object(o.createSelector)(C,S,(e,t)=>e.filter(e=>t.has(e.id)));t.u=T;const B=e=>e.reduce((e,t)=>e+Number(t.duration),0),U=Object(o.createSelector)(C,B),x=Object(o.createSelector)(T,B),M=Object(o.createSelector)(U,x,(e,t)=>`${s.j(t)}/${s.j(e)}`);t.r=M;const N=e=>{const t=e.playlist;return null==t.currentTrack?-1:t.trackOrder.indexOf(t.currentTrack)},O=Object(o.createSelector)(N,e=>e+1),_=e=>e.playlist.currentTrack;t.d=_;t.S=((e,t=1)=>{const n=e.playlist.trackOrder,r=e.media.repeat,i=k(e);if(0===i)return null;const A=N(e);let a=A+t;return r?((a%=i)<0&&(a+=i),n[a]):A===i-1&&t>0?null:0===A&&t<0?null:n[a=s.d(a,0,i-1)]});const D=e=>{const t=te(e)("playlist");return Math.floor((58+l.n*t[1])/l.i)},L=Object(o.createSelector)(k,D,(e,t)=>Math.max(0,e-t));t.n=L;const R=e=>e.display.playlistScrollPosition,F=Object(o.createSelector)(L,R,(e,t)=>0===e?0:Math.round(Math.round(e*t/100)/e*100));t.o=F;const Q=Object(o.createSelector)(R,k,D,(e,t,n)=>{const r=Math.max(0,t-n);return s.u(e/100,r+1)});t.s=Q;const P=Object(o.createSelector)(Q,v,D,(e,t,n)=>t.slice(e,e+n));t.G=P;const V=Object(o.createSelector)(P,e=>t=>e.includes(t));t.B=V;Object(o.createSelector)(P,w,(e,t)=>e.map(e=>t[e]));const G=Object(o.createSelector)(w,e=>t=>c.b(e,t));t.A=G;const z=Object(o.createSelector)(_,G,(e,t)=>t(e)),j=Object(o.createSelector)(_,w,(e,t)=>null==e?null:t[e]),Y=Object(o.createSelector)(e=>e.media.status===l.f.PLAYING,j,(e,t)=>e&&t&&t.mediaTagsRequestStatus!==l.g.INITIALIZED?t.id:null);t.f=Y;const K=Object(o.createSelector)(j,e=>null==e?null:{url:e.url,metaData:{title:e.title||null,artist:e.artist||null,album:e.album||null,albumArtUrl:e.albumArtUrl||null}});t.e=K;const H=Object(o.createSelector)(O,z,(e,t)=>null==t?null:`${e}. ${t}`);t.k=H;const J=Object(o.createSelector)(H,e=>{const t=e.playlist,n=e.tracks;if(null==t.currentTrack)return null;const r=n[t.currentTrack];return r&&r.duration},(e,t)=>null==e?null:`${e} (${s.j(t)}) *** `),W=e=>v(e).length;t.l=W;const q=Object(o.createSelector)(w,e=>Object.values(e).reduce((e,t)=>e+(t.duration||0),0)),Z=Object(o.createSelector)(W,q,v,w,G,(e,t,n,r,i)=>Object(u.a)({numberOfTracks:e,averageTrackLength:s.j(t/e),playlistLengthMinutes:Math.floor(t/60),playlistLengthSeconds:Math.floor(t%60),tracks:n.map((e,t)=>`${t+1}. ${i(e)} (${s.j(r[e].duration)})`)}));t.p=Z;const X=116,$=14;function ee(e,t){const n=a()(e.size,2),r=n[0],i=n[1],A=t&&e.canDouble?2:1,o=X+i*l.n,s=l.p+r*l.o;return{height:(e.shade?$:o)*A,width:s*A}}function te(e){return t=>e.windows.genWindows[t].size}const ne=e=>e.windows.genWindows;t.i=ne;const re=Object(o.createSelector)(ne,e=>s.r(e,e=>e.position));function ie(e){return e.display.doubled}t.N=re;const Ae=Object(o.createSelector)(ne,ie,(e,t)=>s.r(e,e=>ee(e,t)));t.Q=Ae;const ae=Object(o.createSelector)(Ae,e=>t=>e[t]);t.M=ae;const oe=Object(o.createSelector)(Ae,re,(e,t)=>Object.keys(e).map(n=>i()({key:n},e[n],t[n])));t.R=oe;const se=Object(o.createSelector)(oe,E.a);t.J=se;t.x=(e=>e.display.skinPlaylistStyle||{normal:"#00FF00",current:"#FFFFFF",normalbg:"#000000",selectedbg:"#0000C6",font:"Arial"});t.w=(e=>e.display.skinGenExColors);t.H=(e=>d.c(e.display));t.I=(e=>e.media.volume);t.a=(e=>e.media.balance);t.c=(e=>e.media.channels);const le=Object(o.createSelector)(ne,e=>s.p(e,e=>e.open)),ue=Object(o.createSelector)(le,ie,(e,t)=>{let n=0;return s.r(e,e=>{const r={x:0,y:n};return n+=ee(e,t).height,r})});t.y=ue;t.j=(e=>{if(null!=e.userInput.userMessage)return e.userInput.userMessage;switch(e.userInput.focus){case"balance":return m.a(e.media.balance);case"volume":return m.e(e.media.volume);case"position":return null==e.media.length?"Winamp 2.91":m.d(e.media.length,e.userInput.scrubPosition);case"double":return m.b(e.display.doubled);case"eq":const t=e.userInput.bandFocused;return null==t?"Winamp 2.91":m.c(t,e.equalizer.sliders[t])}if(null!=e.playlist.currentTrack){const t=J(e);return null==t?"Winamp 2.91":t}return"Winamp 2.91"})},function(e,t,n){"use strict";t.f=function(e,t){const n=document.createElement("a");n.download=t,n.href=e,window.document.body.appendChild(n),n.click(),window.document.body.removeChild(n)},t.m=function e(t,n){const r=n;const i=t;for(const t of Object.keys(r))r[t]instanceof Object&&Object.assign(r[t],e(i[t],r[t]));Object.assign(t||{},n);return t},t.w=function(e,t,n,r){const i=o(e,t,n);return r[l(i,r.length)]},t.x=function(e){const t=[...e];let n=t.length;for(;n;){const e=Math.floor(Math.random()*n--),r=t[n];t[n]=t[e],t[e]=r}return t},t.y=function(e,t){return[...e].sort((e,n)=>{const r=t(e),i=t(n);return ri?1:0})},t.n=function(e,t,n){const r=new Array(e.length);let i=0;for(let A=0;A=0&&at(e[n],n))},t.r=function(e,t){const n={};return Object.keys(e).forEach(r=>n[r]=t(e[r],r)),n},t.p=function(e,t){return Object.keys(e).reduce((n,r)=>(t(e[r],r)&&(n[r]=e[r]),n),{})},t.g=function(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1},t.k=function(){return{width:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth),height:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}},t.A=function(e){const t=new WeakMap;return n=>(t.has(n)||t.set(n,e(n)),t.get(n))},t.l=function(e,t){const n={results:e,subCaches:{}};return r=>{let i=n,A=e;for(const e of r){let t=i.subCaches[e];t?t.results&&(A=t.results):t=i.subCaches[e]={subCaches:{}},i=t}return i.results||(i.results=A.filter(e=>t(e,r))),i.results}};var r=n(4);const i=e=>{if(null==e)return{minutesFirstDigit:" ",minutesSecondDigit:" ",secondsFirstDigit:" ",secondsSecondDigit:" "};const t=Math.floor(e/60),n=e%60,r=null==e?[" "," "," "," "]:[String(Math.floor(t/10)),String(Math.floor(t%10)),String(Math.floor(n/10)),String(Math.floor(n%10))];return{minutesFirstDigit:r[0],minutesSecondDigit:r[1],secondsFirstDigit:r[2],secondsSecondDigit:r[3]}};t.i=i;t.j=((e,t=!0)=>{if(null==e)return"";const n=i(e),r=n.minutesFirstDigit,A=n.minutesSecondDigit,a=n.secondsFirstDigit,o=n.secondsSecondDigit;return[t&&"0"===r?"":r,A,":",a,o].join("")});t.h=(e=>{const t=/\.([a-z]{3,4})$/i.exec(e);return t?t[1].toLowerCase():null});t.t=(e=>{const t=e.split("\n"),n=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/,i=[];for(let e=0;e<24;e++){const A=n.exec(t[e]);i[e]=A?`rgb(${A.slice(1,4).join(",")})`:r.c.colors[e]}return i});const A=/^\s*\[(.+?)\]\s*$/,a=/^\s*([^;].*)\s*=\s*(.*)\s*$/;t.s=(e=>{let t,n;return e.split(/[\r\n]+/g).reduce((e,r)=>{if((n=r.match(a))&&null!=t){const r=n[2].replace(/(^")|("$)|(^')|('$)/gi,"");e[t][n[1].trim().toLowerCase()]=r}else(n=r.match(A))&&(e[t=n[1].trim().toLowerCase()]={});return e},{})});t.d=((e,t,n)=>Math.min(Math.max(e,t),n));t.b=(e=>{const t=new Uint8Array(e);return window.btoa(String.fromCharCode(...t))});const o=(e,t,n)=>(n-e)/(t-e),s=(e,t,n)=>t+Math.round(e*(n-t));t.v=s;const l=(e,t)=>s(e,0,t-1);t.u=l;const u=(e,t,n,r)=>i=>s(o(e,t,i),n,r),c=u(1,64,1,100);t.o=c;const d=u(1,100,1,64);t.e=d;t.a=((e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]));let p=0;t.c=(e=>e.map(e=>({left:e.x,top:e.y,bottom:e.y+e.height,right:e.x+e.width})).reduce((e,t)=>({left:Math.min(e.left,t.left),top:Math.min(e.top,t.top),bottom:Math.max(e.bottom,t.bottom),right:Math.max(e.right,t.right)})))},function(e,t,n){var r; -/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t{if(t+n>e.length){if("function"!=typeof r)throw new Error("Buffer out of space and no valid flush() function found");return r(e,t),0}return t};t.UINT8={len:1,get:(e,t)=>e.readUInt8(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=255),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUInt8(n,a),a-t+this.len}},t.UINT16_LE={len:2,get:(e,t)=>e.readUInt16LE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=65535),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUInt16LE(n,a),a-t+this.len}},t.UINT16_BE={len:2,get:(e,t)=>e.readUInt16BE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=65535),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUInt16BE(n,a),a-t+this.len}},t.UINT24_LE={len:3,get:(e,t)=>e.readUIntLE(t,3),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=16777215),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUIntLE(n,a,3),a-t+this.len}},t.UINT24_BE={len:3,get:(e,t)=>e.readUIntBE(t,3),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=16777215),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUIntBE(n,a,3),a-t+this.len}},t.UINT32_LE={len:4,get:(e,t)=>e.readUInt32LE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=4294967295),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUInt32LE(n,a),a-t+this.len}},t.UINT32_BE={len:4,get:(e,t)=>e.readUInt32BE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=0&&n<=4294967295),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeUInt32BE(n,a),a-t+this.len}},t.INT8={len:1,get:(e,t)=>e.readInt8(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-128&&n<=127),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeInt8(n,a),a-t+this.len}},t.INT16_BE={len:2,get:(e,t)=>e.readInt16BE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-32768&&n<=32767),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeInt16BE(n,a),a-t+this.len}},t.INT16_LE={len:2,get:(e,t)=>e.readInt16LE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-32768&&n<=32767),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeInt16LE(n,a),a-t+this.len}},t.INT24_LE={len:3,get:(e,t)=>e.readIntLE(t,3),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-8388608&&n<=8388607),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeIntLE(n,a,3),a-t+this.len}},t.INT24_BE={len:3,get:(e,t)=>e.readIntBE(t,3),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-8388608&&n<=8388607),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeIntBE(n,a,3),a-t+this.len}},t.INT32_BE={len:4,get:(e,t)=>e.readInt32BE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-2147483648&&n<=2147483647),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeInt32BE(n,a),a-t+this.len}},t.INT32_LE={len:4,get:(e,t)=>e.readInt32LE(t),put(e,t,n,A){r.equal(typeof t,"number"),r.equal(typeof n,"number"),r.ok(n>=-2147483648&&n<=2147483647),r.ok(t>=0),r.ok(this.len<=e.length);const a=i(e,t,this.len,A);return e.writeInt32LE(n,a),a-t+this.len}},t.UINT64_LE={len:8,get(e,t){return function(e,t,n){n>>>=0;let r=e[t>>>=0],i=1,A=0;for(;++A>>=0;let i=1,A=0;e[n>>>=0]=255&t;for(;++A>>=0;let r=e[t>>>=0],i=1,A=0;for(;++A=(i*=128)&&(r-=Math.pow(2,8*n));return r}(e,t,this.len)},put(e,t,n){return a(e,n,t,this.len)}},t.UINT64_BE={len:8,get(e,t){return o(e,t,this.len)},put(e,t,n){return s(e,n,t,this.len)}},t.INT64_BE={len:8,get(e,t){return l(e,t,this.len)},put(e,t,n){return u(e,n,t,this.len)}};t.IgnoreType=class{constructor(e){this.len=e}get(e,t){return null}};t.BufferType=class{constructor(e){this.len=e}get(e,t){return e.slice(t,t+this.len)}};t.StringType=class{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return e.toString(this.encoding,t,t+this.len)}};class A{constructor(e){this.len=e}static decode(e,t,n){let r="";for(let i=t;i>10),56320+(1023&e)))}static singleByteDecoder(e){if(A.inRange(e,0,127))return e;const t=A.windows1252[e-128];if(null===t)throw Error("invaliding encoding");return t}get(e,t=0){return A.decode(e,t,t+this.len)}}function a(e,t,n,r){t=+t;let i=0,A=1,a=0;for(e[n>>>=0]=255&t;++i>0)-a&255;return n+r}function o(e,t,n){n>>>=0;let r=e[(t>>>=0)+--n],i=1;for(;n>0&&(i*=256);)r+=e[t+--n]*i;return r}function s(e,t,n,r){t=+t;let i=(r>>>=0)-1,A=1;for(e[(n>>>=0)+i]=255&t;--i>=0&&(A*=256);)e[n+i]=t/A&255;return n+r}function l(e,t,n){let r=n>>>=0,i=1,A=e[(t>>>=0)+--r];for(;r>0&&(i*=256);)A+=e[t+--r]*i;return A>=(i*=128)&&(A-=Math.pow(2,8*n)),A}function u(e,t,n,r){t=+t;let i=r-1,A=1,a=0;for(e[(n>>>=0)+i]=255&t;--i>=0&&(A*=256);)t<0&&0===a&&0!==e[n+i+1]&&(a=1),e[n+i]=(t/A>>0)-a&255;return n+r}A.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255],t.AnsiStringType=A,t.writeIntLE=a,t.readUIntBE=o,t.writeUIntBE=s,t.readIntBE=l,t.writeIntBE=u},function(e,t,n){"use strict";var r=n(53),i=n(333),A=n(132),a=n(377),o=n(82);function s(e){return e}function l(e,t){for(var n=0;n1;)try{return u.stringifyByChunk(e,r,n)}catch(e){n=Math.floor(n/2)}return u.stringifyByChar(e)}function d(e,t){for(var n=0;nu.a.createElement("li",{className:"hr"},u.a.createElement("hr",null)));t.d=(({children:e,label:t})=>u.a.createElement("li",{className:"parent"},u.a.createElement("ul",null,e),t));t.b=(e=>u.a.createElement("li",null,u.a.createElement("a",e,e.label)));t.c=(e=>{const t=e.label,n=e.checked,r=e.className,A=void 0===r?"":r,o=a()(e,["label","checked","className"]);return u.a.createElement("li",i()({className:h()(A,{checked:n})},o),t)});t.e=Object(d.b)(e=>({zIndex:e.display.zIndex}))(class extends u.a.Component{render(){const e=this.props,t=e.children,n=e.offsetTop,r=e.offsetLeft,i=e.top,A=e.bottom,a=e.selected,o=e.zIndex;return a&&u.a.createElement(g,{top:n,left:r,zIndex:o},u.a.createElement("ul",{className:h()("context-menu",{top:i,bottom:A})},t))}})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),A=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(A).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&s.splice(t,1)}function h(e){var t=document.createElement("style");return e.attrs.type="text/css",f(t,e.attrs),d(e,t),t}function f(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,i,A;if(t.transform&&e.css){if(!(A=t.transform(e.css)))return function(){};e.css=A}if(t.singleton){var s=o++;n=a||(a=h(t)),r=E.bind(null,n,s,!1),i=E.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",f(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,A=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||A)&&(r=l(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(a),o&&URL.revokeObjectURL(o)}.bind(null,n,t),i=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=c(e,t);return u(n,t),function(e){for(var i=[],A=0;A{"%%"!==e&&"%c"===e&&(i=++r)}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=Object({NODE_ENV:"production"}).DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(431)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(t,n(54))},function(e,t,n){e.exports=n(152)()},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(80),i=n(437);class A{static findZero(e,t,n,r){let i=t;if("utf16"===r){for(;0!==e[i]||0!==e[i+1];){if(i>=n)return n;i+=2}return i}for(;0!==e[i];){if(i>=n)return n;i++}return i}static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.substr(0,t)}static swapBytes(e){const t=e.length;r.ok(0==(1&t),"Buffer length must be even");for(let n=0;n>i;const o=8-i,s=r-o;return s<0?a>>=8-i-r:s>0&&(a<<=s,a|=A.getBitAllignedNumber(e,t,n+o,s)),a}static isBitSet(e,t,n){return 1===A.getBitAllignedNumber(e,t,n,1)}static a2hex(e){const t=[];for(let n=0,r=e.length;n0!=(e[t]&1<=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(A[n]=e[n])}return A}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(248));t.default=r.default||function(e){for(var t=1;t "+e:e}},e.exports=r},function(e,t,n){"use strict";var r=n(24),i=n.n(r),A=n(8),a=n.n(A),o=n(0),s=n.n(o),l=n(12);t.a=class extends s.a.Component{constructor(e){super(e),a()(this,"handleNode",void 0),a()(this,"_handleHandleClick",()=>{this.setState({selected:!this.state.selected})}),a()(this,"_handleGlobalClick",e=>{e.target instanceof Element&&this.state.selected&&this.handleNode&&!this.handleNode.contains(e.target)&&this.setState({selected:!1})}),this.state={selected:!1}}componentDidMount(){document.addEventListener("click",this._handleGlobalClick)}componentWillUnmount(){document.removeEventListener("click",this._handleGlobalClick)}_offset(){if(!this.handleNode)return{top:0,left:0};const e=this.handleNode.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+n,left:e.left+t}}render(){const e=this.props,t=e.handle,n=e.children,r=e.top,A=e.bottom,a=i()(e,["handle","children","top","bottom"]),o=this._offset();return s.a.createElement("div",a,s.a.createElement("div",{className:"handle",style:{width:"100%",height:"100%"},ref:e=>this.handleNode=e,onClick:this._handleHandleClick},t),s.a.createElement(l.e,{selected:this.state.selected,offsetTop:o.top,offsetLeft:o.left,top:r,bottom:A},n))}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),A=n(108);t.a=class extends i.a.Component{shouldComponentUpdate(e){return e.children!==this.props.children}render(){return(`${this.props.children}`||"").split("").map((e,t)=>i.a.createElement(A.a,{key:t+e},e))}}},function(e,t,n){"use strict";var r=n(8),i=n.n(r),A=n(0),a=n.n(A),o=n(7),s=n.n(o),l=n(235);t.a=class extends a.a.Component{constructor(e){super(e),i()(this,"_handleClick",e=>{const t=e.target;if(!(t instanceof Element))return;if(this.state.selected)return void this.setState({selected:!1});const n=e=>{const r=e.target;r instanceof Element&&(t.contains(r)||(setTimeout(()=>{this.setState({selected:!1})},0),window.document.removeEventListener("click",n,{capture:!0})))};window.document.addEventListener("click",n,{capture:!0}),this.setState({selected:!0})}),this.state={selected:!1}}render(){return a.a.createElement("div",{id:this.props.id,className:s()("playlist-menu",{selected:this.state.selected}),onClick:this._handleClick},a.a.createElement("div",{className:"bar"}),this.state.selected&&a.a.createElement("ul",null,a.a.Children.map(this.props.children,(e,t)=>a.a.createElement(l.a,{key:t},e))))}}},function(e,t,n){var r=n(17),i=n(26),A=n(115),a=n(27),o=function(e,t,n){var s,l,u,c=e&o.F,d=e&o.G,p=e&o.S,h=e&o.P,f=e&o.B,g=e&o.W,m=d?i:i[t]||(i[t]={}),E=m.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;for(s in d&&(n=t),n)(l=!c&&b&&void 0!==b[s])&&s in m||(u=l?b[s]:n[s],m[s]=d&&"function"!=typeof b[s]?n[s]:f&&l?A(u,r):g&&b[s]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):h&&"function"==typeof u?A(Function.call,u):u,h&&((m.virtual||(m.virtual={}))[s]=u,e&o.R&&E&&!E[s]&&a(E,s,u)))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,o.U=64,o.R=128,e.exports=o},function(e,t,n){var r=n(29);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(143);class i{constructor(e,t){this.tagTypes=e,this.tagMap=t}static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""!==e),n=[];for(let e of t)/^\d+$/.test(e)&&!isNaN(parseInt(e,10))&&(e=r.Genres[e]),n.push(e);return n.filter(e=>void 0!==e).join("/")}static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase()){case"image/jpg":return"image/jpeg"}return e}static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t}static normalizeTrack(e){const t=e.toString().split("/");return{no:parseInt(t[0],10)||null,of:parseInt(t[1],10)||null}}mapGenericTag(e){e={id:e.id,value:e.value},this.postMap(e);const t=this.getCommonName(e.id);return t?{id:t,value:e.value}:null}getCommonName(e){return this.tagMap[e]}postMap(e){}}i.maxRatingScore=1,t.CommonTagMapper=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BasicParser=class{constructor(){this.warnings=[]}init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(18),i=/^[\w-©][\w-\x000-3]/;t.FourCcToken={len:4,get:(e,n)=>{const A=e.toString("binary",n,n+t.FourCcToken.len);if(!A.match(i))throw new Error(`FourCC contains invalid characters: ${r.default.a2hex(A)}`);return A},put:(e,t,n)=>{const r=Buffer.from(n,"binary");if(4!==r.length)throw new Error("Invalid length");return r.copy(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"createStore",function(){return s}),n.d(t,"combineReducers",function(){return u}),n.d(t,"bindActionCreators",function(){return d}),n.d(t,"applyMiddleware",function(){return h}),n.d(t,"compose",function(){return p}),n.d(t,"__DO_NOT_USE__ActionTypes",function(){return i});var r=n(162),i={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(o)throw o;for(var r=!1,i={},A=0;A({size:e.size,open:e.open,hidden:e.hidden,shade:e.shade||!1,position:e.position})),focused:e.focused}};var r=n(9),i=n.n(r),A=n(4),a=n(3),o=n(6);const s={focused:A.m.MAIN,positionsAreRelative:!0,genWindows:{[A.m.MAIN]:{title:"Main Window",size:[0,0],open:!0,hidden:!1,shade:!1,canResize:!1,canShade:!0,canDouble:!0,generic:!1,hotkey:"Alt+W",position:{x:0,y:0}},[A.m.EQUALIZER]:{title:"Equalizer",size:[0,0],open:!0,hidden:!1,shade:!1,canResize:!1,canShade:!0,canDouble:!0,generic:!1,hotkey:"Alt+G",position:{x:0,y:0}},[A.m.PLAYLIST]:{title:"Playlist Editor",size:[0,0],open:!0,hidden:!1,shade:!1,canResize:!0,canShade:!0,canDouble:!1,generic:!1,hotkey:"Alt+E",position:{x:0,y:0}}},browserWindowSize:{width:0,height:0}};t.a=((e=s,t)=>{switch(t.type){case a.m:return i()({},e,{genWindows:i()({},e.genWindows,{[A.m.MEDIA_LIBRARY]:{title:"Winamp Library",size:[0,0],open:!0,hidden:!1,shade:!1,canResize:!0,canShade:!1,canDouble:!1,generic:!1,hotkey:"Alt+E",position:{x:0,y:0}}})});case a.U:return i()({},e,{focused:t.window});case a._18:if(!e.genWindows[t.windowId].canShade)throw new Error(`Tried to shade/unshade a window that cannot be shaded: ${t.windowId}`);return i()({},e,{genWindows:i()({},e.genWindows,{[t.windowId]:i()({},e.genWindows[t.windowId],{shade:!e.genWindows[t.windowId].shade})})});case a._17:const n=e.genWindows[t.windowId];return i()({},e,{genWindows:i()({},e.genWindows,{[t.windowId]:i()({},n,{open:!n.open,hidden:!!n.open&&n.hidden})})});case a.i:return i()({},e,{genWindows:i()({},e.genWindows,{[t.windowId]:i()({},e.genWindows[t.windowId],{open:!1})})});case a._4:return i()({},e,{genWindows:i()({},e.genWindows,{[t.windowId]:i()({},e.genWindows[t.windowId],{hidden:t.hidden})})});case a.a:return i()({},e,{genWindows:i()({},e.genWindows,{[t.windowId]:{title:t.title,open:t.open,hidden:!1,size:[0,0],canShade:!1,canResize:!0,canDouble:!1,generic:!0,position:{x:0,y:0}}})});case a._23:if(!e.genWindows[t.windowId].canResize)throw new Error(`Tried to resize a window that cannot be resized: ${t.windowId}`);return i()({},e,{genWindows:i()({},e.genWindows,{[t.windowId]:i()({},e.genWindows[t.windowId],{size:t.size})})});case a._22:return i()({},e,{positionsAreRelative:!0!==t.absolute&&e.positionsAreRelative,genWindows:o.r(e.genWindows,(e,n)=>{const r=t.positions[n];return null==r?e:i()({},e,{position:r})})});case a.G:return i()({},e,{genWindows:o.r(e.genWindows,e=>i()({},e,{size:[0,0]}))});case a.t:{const n=t.serializedState.windows,r=n.genWindows,A=n.focused,a=n.positionsAreRelative;return i()({},e,{positionsAreRelative:a,genWindows:o.r(e.genWindows,(e,t)=>{const n=r[t];return null==n?e:i()({},e,n)}),focused:A})}case a.c:return i()({},e,{browserWindowSize:{height:t.height,width:t.width}});default:return e}})},function(e,t,n){"use strict";t.d=function(e,t){i()(null!=e,"Attempted to get the tags of media file without passing a file");const n={duration:!0,skipPostHeaders:!0};if("string"==typeof e)return t.fetchFromUrl(e,n);return t.parseBlob(e,n)},t.c=function(e){return i()("string"==typeof e,"Attempted to get the duration of media file without passing a url"),new Promise((t,n)=>{const r=document.createElement("audio");r.crossOrigin="anonymous";const i=()=>{t(r.duration),r.removeEventListener("durationchange",i),r.src=""};r.addEventListener("durationchange",i),r.addEventListener("error",e=>{n(e)}),r.src=e})},t.b=async function(e){return i()(null!=e,"Attempt to get an ArrayBuffer without assigning a fileReference"),new Promise((t,n)=>{const r=new FileReader;r.onload=(()=>{t(r.result)}),r.onerror=n,r.readAsArrayBuffer(e)})},t.e=async function({accept:e,directory:t=!1}={accept:null,directory:!1}){return new Promise(n=>{const r=document.createElement("input");e&&r.setAttribute("accept",e),r.type="file",r.multiple=!0,r.webkitdirectory=t,r.directory=t,r.mozdirectory=t,r.value=null,r.addEventListener("change",e=>{const t=e.target.files;n(t)}),r.click()})},t.a=function(e){if(function(e){return/^blob:/.test(e)}(e))return null;const t=e.split("/").pop();if(null==t)return null;return t.split("#")[0].split("?")[0]};var r=n(95),i=n.n(r)},function(e,t,n){"use strict";var r=n(8),i=n.n(r);t.a=class{constructor(){i()(this,"_listeners",void 0),this._listeners={}}on(e,t){const n=this._listeners[e]||[];return n.push(t),this._listeners[e]=n,()=>{this._listeners[e]=n.filter(e=>e!==t)}}trigger(e,...t){const n=this._listeners[e];n&&n.forEach(e=>e(...t))}}},function(e,t,n){"use strict";n(44)},function(e,t,n){"use strict";var r=n(23),i=n.n(r),A=n(0),a=n.n(A),o=n(7),s=n.n(o);t.a=class extends a.a.Component{constructor(e){super(e),this.state={clicked:!1}}render(){return a.a.createElement("div",i()({},this.props,{className:s()(this.props.className,this.state),onMouseDown:e=>{this.state.clicked||this.setState({clicked:!0}),this.props.onMouseDown&&this.props.onMouseDown(e)}}))}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(118),i=n(66);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer="undefined"!=typeof Buffer,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),t.blob=0===i.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!n(326).Readable}catch(e){t.nodestream=!1}},function(e,t){var n,r,i=e.exports={};function A(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===A||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:A}catch(e){n=A}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c1)for(var n=1;n{this._closeMenu()}),s()(this,"_handleGlobalClick",e=>{2!==e.button&&this._closeMenu()}),s()(this,"_handleRightClick",e=>{const t=e.pageX,n=e.pageY;this.setState({selected:!0,offsetTop:n,offsetLeft:t}),document.addEventListener("click",this._handleGlobalClick),document.body.addEventListener("contextmenu",this._handleGlobalRightClick),e.preventDefault(),e.stopPropagation()}),this.state={selected:!1,offsetTop:null,offsetLeft:null}}componentWillUnmount(){this._closeMenu()}_closeMenu(){this.setState({selected:!1,offsetTop:null,offsetLeft:null}),document.removeEventListener("click",this._handleGlobalClick),document.body.removeEventListener("contextmenu",this._handleGlobalRightClick)}render(){const e=this.props,t=e.children,n=e.renderContents,r=a()(e,["children","renderContents"]);return u.a.createElement("div",i()({onContextMenu:this._handleRightClick,style:{width:"100%",height:"100%"}},r),u.a.createElement(p.e,{selected:this.state.selected,offsetTop:this.state.offsetTop,offsetLeft:this.state.offsetLeft},n()),t)}}t.a=h,h.propTypes={children:d.a.any.isRequired,renderContents:d.a.func.isRequired}},function(e,t,n){var r=n(29);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(65)("keys"),i=n(51);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(17),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(122));t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,r.default)(t))&&"function"!=typeof t?e:t}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){var r=n(38),i=n(261),A=n(66),a=n(64)("IE_PROTO"),o=function(){},s=function(){var e,t=n(117)("iframe"),r=A.length;for(t.style.display="none",n(262).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" - - - -
- - diff --git a/public/winamp.html b/public/winamp.html deleted file mode 100644 index 6b89e70..0000000 --- a/public/winamp.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WebAmp Mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- mStream WebApp v4.0
- See More on Github -

- Developed By Paul Sori -

-
-
- - -
- - - - -
-
- - - - -
- -
-
Music
-
    -
  • - - File Explorer -
  • -
  • - - Playlists -
  • -
  • - - Albums -
  • -
  • - - Artists -
  • -
  • - - Rated -
  • -
  • - - Jukebox -
  • -
- -
System
-
    -
  • - - Mobile -
  • -
  • - - Database -
  • -
- -
- - -
-
- - -
- - -
-
- Library -
-
- Now Playing -
-
- -
- -
-
-
-
-
-

 

-
-
- - -
- -
- -

- - - - - - - - -
-
- - -
-
-
- -
-
Loading...
-
-
-
- - -
- -
-
-
-
- -
-
- - - - -