{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/amplitudejs/dist/amplitude.js","webpack:///./components/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/camelcase-keys/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/camelcase/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/classnames/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/custom-event-polyfill/polyfill.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/dayjs/dayjs.min.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/dayjs/locale/sv.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/entities-decode/dist/index.js","webpack:///./components/index.js-exposed","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/intersection-observer/intersection-observer.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/map-obj/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/object-assign/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/object-fit-images/dist/ofi.common-js.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/paginator/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/prop-types/checkPropTypes.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/prop-types/factoryWithTypeCheckers.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/prop-types/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/prop-types/lib/has.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/quick-lru/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/react-is/cjs/react-is.development.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/react-is/index.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/react-js-pagination/dist/Page.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/react-js-pagination/dist/Pagination.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/dist/store.legacy.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/plugins/json2.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/plugins/lib/json2.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/src/store-engine.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/src/util.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/all.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/cookieStorage.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/localStorage.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/memoryStorage.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/oldFF-globalStorage.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/oldIE-userDataStorage.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/store/storages/sessionStorage.js","webpack:///(webpack)/buildin/amd-options.js","webpack:///(webpack)/buildin/global.js","webpack:///(webpack)/buildin/module.js","webpack:////home/circleci/repo/src/app/themes/main/frontend/node_modules/whatwg-fetch/fetch.js","webpack:///./components/ArticleCard/ArticleCard.js","webpack:///./components/ArticleCard/index.js","webpack:///./components/BookmarksPage/BookmarkButton/BookmarkButton.js","webpack:///./components/BookmarksPage/BookmarkButton/index.js","webpack:///./components/BookmarksPage/BookmarksList/BookmarksList.js","webpack:///./components/BookmarksPage/BookmarksList/index.js","webpack:///./components/BookmarksPage/BookmarksPage.js","webpack:///./components/BookmarksPage/ContentTypeNavigation/ContentTypeNavigation.js","webpack:///./components/BookmarksPage/ContentTypeNavigation/index.js","webpack:///./components/BookmarksPage/LatestBookmarks/LatestBookmarks.js","webpack:///./components/BookmarksPage/LatestBookmarks/index.js","webpack:///./components/BookmarksPage/index.js","webpack:///./components/BookmarksPage/state/index.js","webpack:///./components/Loader/Loader.js","webpack:///./components/Loader/index.js","webpack:///./components/PodcastCard/PodcastCard.js","webpack:///./components/PodcastCard/index.js","webpack:///./components/PressPage/FilterBar/FilterBar.js","webpack:///./components/PressPage/FilterBar/index.js","webpack:///./components/PressPage/Pagination/Pagination.js","webpack:///./components/PressPage/Pagination/index.js","webpack:///./components/PressPage/PressPage.js","webpack:///./components/PressPage/TvShowListing/TvShowListing.js","webpack:///./components/PressPage/TvShowListing/index.js","webpack:///./components/PressPage/index.js","webpack:///./components/PressPage/state/index.js","webpack:///./components/RawHtml/RawHtml.js","webpack:///./components/RawHtml/index.js","webpack:///./components/SearchPage/ArticleResults/ArticleResults.js","webpack:///./components/SearchPage/ArticleResults/index.js","webpack:///./components/SearchPage/CommentArticleResults/CommentArticleResults.js","webpack:///./components/SearchPage/CommentArticleResults/index.js","webpack:///./components/SearchPage/Filter/Filter.js","webpack:///./components/SearchPage/Filter/index.js","webpack:///./components/SearchPage/LoadMoreButton/LoadMoreButton.js","webpack:///./components/SearchPage/LoadMoreButton/index.js","webpack:///./components/SearchPage/PodcastResults/PodcastResults.js","webpack:///./components/SearchPage/PodcastResults/index.js","webpack:///./components/SearchPage/SearchBar/SearchBar.js","webpack:///./components/SearchPage/SearchBar/index.js","webpack:///./components/SearchPage/SearchPage.js","webpack:///./components/SearchPage/TvShowResults/TvShowResults.js","webpack:///./components/SearchPage/TvShowResults/index.js","webpack:///./components/SearchPage/index.js","webpack:///./components/SearchPage/state/actions.js","webpack:///./components/SearchPage/state/index.js","webpack:///./components/TvShowCard/TvShowCard.js","webpack:///./components/TvShowCard/index.js","webpack:///./components/hooks/index.js","webpack:///./components/hooks/useDebouncedValue.js","webpack:///./components/hooks/useMediaQueryValues.js","webpack:///./components/hooks/useOutsideClick.js","webpack:///./handlers/article-archive-form.js","webpack:///./handlers/bookmark-button.js","webpack:///./handlers/bookmark-events.js","webpack:///./handlers/cookie-popup.js","webpack:///./handlers/dropdown-menu.js","webpack:///./handlers/lazy-load.js","webpack:///./handlers/link-select.js","webpack:///./handlers/load-more-archive-articles.js","webpack:///./handlers/load-more-archive-comment-articles.js","webpack:///./handlers/load-more-articles.js","webpack:///./handlers/load-more-comment-articles.js","webpack:///./handlers/load-more-podcasts-button.js","webpack:///./handlers/magazine-slider.js","webpack:///./handlers/mobile-menu.js","webpack:///./handlers/mobile-search.js","webpack:///./handlers/newsletter.js","webpack:///./handlers/play-slider.js","webpack:///./handlers/podcast-player.js","webpack:///./handlers/print-button.js","webpack:///./handlers/scroll-to.js","webpack:///./handlers/toggle.js","webpack:///./handlers/tv-schedule-slider.js","webpack:///./handlers/video-player.js","webpack:///./index.js","webpack:///./utils/helpers.js","webpack:///./utils/wp-client.js","webpack:///./utils/wp-utils.js","webpack:///external \"React\""],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","modules","installedModules","__webpack_require__","moduleId","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","getDefault","getModuleExports","object","property","prototype","hasOwnProperty","p","s","_package","version","audio","Audio","active_metadata","active_album","active_index","active_playlist","playback_speed","callbacks","songs","playlists","start_song","starting_playlist","starting_playlist_song","repeat","repeat_song","shuffle_list","shuffle_on","default_album_art","default_playlist_art","debug","volume","pre_mute_volume","volume_increment","volume_decrement","soundcloud_client","soundcloud_use_art","soundcloud_song_count","soundcloud_songs_ready","is_touch_moving","buffered","bindings","continue_next","delay","player_state","web_audio_api_available","context","source","analyser","visualizations","available","active","backup","waveforms","sample_rate","built","_config","_config2","_interopRequireDefault","_checks","_checks2","_audioNavigation","_audioNavigation2","_playPauseElements","_playPauseElements2","_metaDataElements","_metaDataElements2","_callbacks","_callbacks2","_debug","_debug2","_visualizations","_visualizations2","_configState","_configState2","obj","default","Core","play","stop","run","live","reconnectStream","test","navigator","userAgent","paused","playPromise","undefined","then","_","catch","error","playbackRate","setPlayerState","pause","disconnectStream","currentTime","setVolume","volumeLevel","muted","setSongLocation","songPercentage","duration","skipToLocation","seconds","addEventListener","writeMessage","once","src","load","url","setPlaybackSpeed","playbackSpeed","PlayPauseElements","sync","syncGlobal","syncPlaylist","syncSong","syncSongInPlaylist","state","playPauseElements","document","querySelectorAll","length","playlist","getAttribute","song","setElementPlay","setElementPause","playlistPlayPauseElements","songPlayPauseElements","activePlaylistIndex","songInPlaylistPlayPauseElements","syncToPause","element","classList","add","remove","_core","_core2","_songSliderElements","_songSliderElements2","_songPlayedProgressElements","_songPlayedProgressElements2","_timeElements","_timeElements2","_containerElements","_containerElements2","AudioNavigation","setNext","songEnded","arguments","nextIndex","nextSong","endOfList","index","parseInt","changeSong","setNextPlaylist","shuffle","setActivePlaylist","changeSongPlaylist","setPrevious","previousIndex","previousSong","setPreviousPlaylist","direct","prepareSongChange","album","afterSongChange","resetElements","resetCurrentTimes","newAlbum","displayMetaData","setActive","resetDurationTimes","Debug","message","console","log","Checks","newSong","songIndex","newPlaylist","isURL","pattern","isInt","int","isNaN","Number","ConfigState","resetConfig","MetaDataElements","imageMetaDataKeys","songInfoElements","info","val","indexOf","setAttribute","innerHTML","displayPlaylistMetaData","playlistInfoElements","setFirstSongInPlaylist","elementPlaylist","syncMetaData","_info","RepeatElements","syncRepeat","repeatClasses","getElementsByClassName","syncRepeatPlaylist","repeatButtons","syncRepeatSong","repeatSongClasses","Callbacks","initialize","callbackName","callbackFunction","MuteElements","setMuted","muteClasses","VolumeSliderElements","volumeSliders","Repeater","setRepeat","setRepeatPlaylist","setRepeatSong","Shuffler","setShuffle","shuffleSongs","toggleShuffle","setShufflePlaylist","shufflePlaylistSongs","toggleShufflePlaylist","shuffleTemp","Array","_i","randNum","Math","floor","random","shuffleSwap","_i2","shuffleList","original","temp","SongSliderElements","location","syncMain","mainSongSliders","playlistSongSliders","playlistAttribute","songAttribute","songSliders","songInPlaylistSliders","_currentTimeElements","_currentTimeElements2","_currentHourElements","_currentHourElements2","_currentMinuteElements","_currentMinuteElements2","_currentSecondElements","_currentSecondElements2","_durationCountDownTimeElements","_durationCountDownTimeElements2","_durationHourElements","_durationHourElements2","_durationMinuteElements","_durationMinuteElements2","_durationSecondElements","_durationSecondElements2","_durationTimeElements","_durationTimeElements2","TimeElements","resetTimes","syncCurrentTimes","hours","minutes","syncDurationTimes","songDuration","Visualizations","visualizationElements","keys","runGlobalVisualization","runPlaylistVisualization","runSongVisualization","runSongInPlaylistVisualization","displayBackups","globalVisualizationIndex","visualization","activeSongVisualizationIndex","addToActiveVisualizations","firstVisualization","activePlaylistVisualizationIndex","key","setPreferences","startVisualization","push","stopVisualization","register","preferences","newVisualization","getID","x","displayGlobalBackup","displayPlaylistBackup","displaySongBackup","displaySongInPlaylistBackup","style","backgroundImage","cover_art_url","_init","_init2","SoundCloud","tempUserConfig","loadSoundCloud","userConfig","head","getElementsByTagName","script","createElement","type","onreadystatechange","initSoundcloud","onload","appendChild","SC","client_id","getStreamableURLs","soundcloud_regex","match","resolveStreamable","resolveIndividualStreamableURL","addToShuffleList","sound","streamable","stream_url","artwork_url","soundcloud_data","AmplitudeHelpers","writeDebugMessage","artist","setConfig","isSoundCloudURL","PlaybackSpeedElements","playbackSpeedClasses","ShuffleElements","shuffleButtons","SongPlayedProgressElements","songPlayedPercentage","percentage","songPlayedProgressBars","max","_typeof","Symbol","iterator","constructor","_soundcloud","_soundcloud2","_shuffler","_shuffler2","_events","_events2","_fx","_fx2","_waveform","_waveform2","_playlists","_playlists2","_shuffleElements","_shuffleElements2","_muteElements","_muteElements2","_volumeSliderElements","_volumeSliderElements2","_playbackSpeedElements","_playbackSpeedElements2","_repeatElements","_repeatElements2","Initializer","ready","setArt","webAudioAPIAvailable","determineUsingAnyFX","configureWebAudioAPI","documentElement","resume","init","params","initializeDefaultLiveSettings","initializeDefaultSongIndexes","rebindDisplay","countPlaylists","preload","initializeElements","size","WaveForm","buffer","sampleRate","peaks","svg","createElementNS","g","path","build","abs","split","reduce","a","b","charCodeAt","req","XMLHttpRequest","open","responseType","e","readyState","status","decodeAudioData","response","bufferedAudio","getPeaks","process","send","displayWaveForms","totalPeaks","peakNumber","shift","sampleSize","sampleStep","numberOfChannels","mergedPeaks","channelNumber","_peaks","channelData","getChannelData","start","end","min","sampleIndex","waveformElements","displayGlobalWaveform","displayPlaylistWaveform","displaySongWaveform","displaySongInPlaylistWaveform","waveformPath","querySelector","determineIfUsingWaveforms","Time","computeCurrentTimes","currentSeconds","currentMinutes","currentHours","computeSongDuration","songDurationSeconds","songDurationMinutes","songDurationHours","toString","computeSongCompletionPercentage","setCurrentTime","time","isFinite","BufferedProgressElements","songBufferedProgressBars","parseFloat","songBufferedProgressBarsPlaylist","songBufferedProgressBarsSongs","songBufferedProgressBarsSongsInPlaylist","reset","Ended","handle","setTimeout","_keydown","_keydown2","_timeUpdate","_timeUpdate2","_ended","_ended2","_progress","_progress2","_play","_play2","_pause","_pause2","_playPause","_playPause2","_stop","_stop2","_mute","_mute2","_volumeUp","_volumeUp2","_volumeDown","_volumeDown2","_songSlider","_songSlider2","_volumeSlider","_volumeSlider2","_next","_next2","_prev","_prev2","_repeat","_repeat2","_repeatSong","_repeatSong2","_playbackSpeed","_playbackSpeed2","_shuffle","_shuffle2","_skipTo","_skipTo2","Events","bindTimeUpdate","bindKeyDownEventHandlers","bindSongEnded","bindProgress","bindPlay","bindPause","bindPlayPause","bindStop","bindMute","bindVolumeUp","bindVolumeDown","bindSongSlider","bindVolumeSlider","bindNext","bindPrev","bindShuffle","bindRepeat","bindRepeatSong","bindPlaybackSpeed","bindSkipTo","bindCanPlayThrough","removeEventListener","play_classes","pause_classes","play_pause_classes","stop_classes","mute_classes","volume_up_classes","volume_down_classes","ua","window","msie","song_sliders","volume_sliders","next_classes","prev_classes","shuffle_classes","repeat_classes","repeat_song_classes","playback_speed_classes","skipToClasses","_repeater","_repeater2","KeyDown","event","runKeyEvent","which","runPlayPauseKeyDownEvent","runNextKeyDownEvent","runPrevKeyDownEvent","runStopKeyDownEvent","runShuffleKeyDownEvent","runRepeatKeyDownEvent","Mute","Next","handleGlobalNext","handlePlaylistNext","Pause","songIndexAttribute","handleGlobalPause","handlePlaylistPause","handleSongPause","handleSongInPlaylistPause","Play","handleGlobalPlay","handlePlaylistPlay","handleSongPlay","handleSongInPlaylistPlay","PlayPause","handleGlobalPlayPause","handlePlaylistPlayPause","handleSongPlayPause","handleSongInPlaylistPlayPause","PlaybackSpeed","Prev","handleGlobalPrev","handlePlaylistPrev","_bufferedProgressElements","_bufferedProgressElements2","Progress","bufferedEnd","Repeat","handleGlobalRepeat","handlePlaylistRepeat","RepeatSong","Shuffle","handleGlobalShuffle","handlePlaylistShuffle","SkipTo","handleSkipToSong","handleSkipToPlaylist","_time","_time2","SongSlider","locationPercentage","computedTime","handleGlobalSongSlider","handlePlaylistSongSlider","handleSongSongSlider","handleSongInPlaylistSongSlider","Stop","TimeUpdate","computeBufferedTime","updateTimeInformation","runTimeCallbacks","songCompletionPercentage","time_callbacks","VolumeDown","VolumeSlider","VolumeUp","Fx","browserContext","AudioContext","webkitAudioContext","mozAudioContext","oAudioContext","msAudioContext","createAnalyser","crossOrigin","createMediaElementSource","connect","destination","Amplitude","getConfig","bindNewElements","getActivePlaylist","getPlaybackSpeed","speed","getRepeat","getRepeatPlaylist","playlistKey","getShuffle","getShufflePlaylist","repeatState","getDefaultAlbumArt","getDefaultPlaylistArt","setDefaultAlbumArt","setDefaultPlaylistArt","default_plalist_art","getSongPlayedPercentage","getSongPlayedSeconds","getSongDuration","setSongPlayedPercentage","setDebug","getActiveSongMetadata","getActivePlaylistMetadata","getSongAtIndex","getSongAtPlaylistIndex","addSong","prependSong","unshift","addSongToPlaylist","addPlaylist","data","ignoredKeys","dataKey","removeSong","splice","removeSongFromPlaylist","playNow","playSongAtIndex","playPlaylistSongAtIndex","getAudio","getAnalyser","next","nextData","prev","prevData","getSongs","getSongsInPlaylist","getSongsState","getSongsStatePlaylist","getActiveIndex","getVersion","getBuffered","skipTo","setSongMetaData","metaData","setPlaylistMetaData","setDelay","getDelay","getPlayerState","registerVisualization","setPlaylistVisualization","visualizationKey","setSongVisualization","setSongInPlaylistVisualization","setGlobalVisualization","getVolume","PlaylistsInitializer","copySongsToPlaylists","grabSoundCloudData","initializePlaylistActiveIndexes","initializePlaylistShuffleStatuses","initializePlaylistsRepeatStatuses","initializePlaylistShuffleLists","initializeFirstSongInPlaylistMetaData","ContainerElements","songContainers","activeIndex","_songContainers","hasAttribute","_songContainers2","CurrentHourElements","currentHourSelectors","currentHourPlaylistSelectors","currentHourSongSelectors","currentHourPlaylistSongSelectors","hourSelectors","CurrentMinuteElements","currentMinuteSelectors","currentMinutePlaylistSelectors","currentMinuteSongSelectors","currentMinutePlaylistSongSelectors","minuteSelectors","CurrentSecondElements","currentSecondSelectors","currentSecondPlaylistSelectors","currentSecondSongSelectors","currentSecondPlaylistSongSelectors","secondSelectors","CurrentTimeElements","currentTimeSelectors","timeText","timeSelectors","DurationCountDownTimeElements","countDownTime","timeRemaining","computeTimeRemaining","durationTimeRemainingSelectors","totalCurrentSeconds","totalDurationSeconds","timeRemainingTotalSeconds","remainingHours","remainingMinutes","remainingSeconds","DurationHourElements","durationHourSelectors","DurationMinuteElements","durationMinuteSelectors","DurationSecondElements","durationSecondSelectors","DurationTimeElements","durationTime","durationText","computeDurationText","durationTimeSelectors","PressPage","BookmarksPage","RawHtml","SearchPage","ArticleCard","PodcastCard","TvShowCard","mapObj","require","camelCase","QuickLru","has","array","some","lastIndex","cache","maxSize","isObject","RegExp","Error","Date","camelCaseConvert","input","options","deep","pascalCase","exclude","stopPaths","stopPathsSet","Set","makeMapper","parentPath","cacheKey","ret","set","isArray","map","preserveCamelCase","isLastCharLower","isLastCharUpper","isLastLastCharUpper","string","character","toUpperCase","slice","toLowerCase","TypeError","assign","postProcess","charAt","trim","filter","join","hasUpperCase","replace","p1","hasOwn","nativeCodeString","classNames","classes","arg","argType","inner","apply","includes","ce","CustomEvent","cancelable","preventDefault","defaultPrevented","evt","origPrevent","bubbles","createEvent","initCustomEvent","detail","Event","t","r","u","f","h","$","y","M","weekdays","months","ordinal","String","v","z","utcOffset","date","year","month","clone","ceil","w","D","ms","Q","S","O","args","locale","$L","utc","$u","$x","$offset","parse","$d","NaN","substring","UTC","$y","getFullYear","$M","getMonth","$D","getDate","$W","getDay","$H","getHours","$m","getMinutes","$s","getSeconds","$ms","getMilliseconds","$utils","isValid","isSame","startOf","endOf","isAfter","isBefore","$g","unix","valueOf","getTime","toDate","$locale","weekStart","$set","daysInMonth","round","subtract","format","invalidDate","meridiem","monthsShort","weekdaysMin","weekdaysShort","getTimezoneOffset","diff","toJSON","toISOString","toUTCString","k","forEach","extend","$i","isDayjs","en","Ls","yearStart","formats","LT","LTS","L","LL","LLL","LLLL","lll","llll","relativeTime","future","past","mm","hh","dd","MM","yy","__importDefault","mod","entities_json_1","re","decode","str","$1","$2","$3","fromCodePoint","IntersectionObserverEntry","intersectionRatio","registry","entry","target","rootBounds","boundingClientRect","intersectionRect","getEmptyRect","isIntersecting","targetRect","targetArea","width","height","intersectionArea","toFixed","IntersectionObserver","callback","opt_options","nodeType","_checkForIntersections","throttle","bind","THROTTLE_TIMEOUT","_callback","_observationTargets","_queuedEntries","_rootMarginValues","_parseRootMargin","rootMargin","thresholds","_initThresholds","threshold","margin","unit","POLL_INTERVAL","USE_MUTATION_OBSERVER","observe","isTargetAlreadyObserved","item","_registerInstance","_monitorIntersections","unobserve","_unmonitorIntersections","_unregisterInstance","disconnect","takeRecords","records","opt_threshold","sort","opt_rootMargin","marginString","margins","parts","exec","_monitoringIntersections","_monitoringInterval","setInterval","addEvent","_domObserver","MutationObserver","attributes","childList","characterData","subtree","clearInterval","removeEvent","rootIsInDom","_rootIsInDom","rootRect","_getRootRect","getBoundingClientRect","rootContainsTarget","_rootContainsTarget","oldEntry","_computeTargetAndRootIntersection","newEntry","now","_hasCrossedThreshold","getComputedStyle","display","parent","getParentNode","atRoot","parentRect","parentComputedStyle","body","overflow","computeRectIntersection","html","top","left","right","clientWidth","bottom","clientHeight","_expandRectByRootMargin","rect","newRect","oldRatio","newRatio","containsDeep","performance","fn","timeout","timer","node","opt_useCapture","attachEvent","detatchEvent","rect1","rect2","el","err","child","parentNode","host","assignedSlot","mapObjectSkip","isObjectCustom","mapObject","mapper","isSeen","WeakMap","mapArray","entries","mapResult","newKey","newValue","shouldRecurse","getOwnPropertySymbols","propIsEnumerable","propertyIsEnumerable","toObject","shouldUseNative","test1","getOwnPropertyNames","test2","fromCharCode","order2","test3","letter","from","to","symbols","OFI","propRegex","testImg","Image","supportsObjectFit","supportsObjectPosition","supportsOFI","supportsCurrentSrc","currentSrc","nativeGetAttribute","nativeSetAttribute","autoModeEnabled","createPlaceholder","polyfillCurrentSrc","srcset","picturefill","pf","ns","evaled","fillImg","reselect","curSrc","supported","getStyle","fontFamily","parsed","props","setPlaceholder","img","placeholder","onImageReady","naturalWidth","fixOne","ofi","skipTest","naturalHeight","keepSrcUsable","warn","backgroundPosition","backgroundRepeat","backgroundOrigin","backgroundSize","descriptors","prop","ss","hijackAttributes","getOfiImageMaybe","HTMLImageElement","fix","imgs","opts","startAutoMode","tagName","watchMQ","Paginator","per_page","total_results","current_page","total_pages","first_page","last_page","first_result","last_result","pages","previous_page","next_page","has_previous_page","has_next_page","results","printWarning","ReactPropTypesSecret","loggedTypeFailures","text","checkPropTypes","typeSpecs","values","componentName","getStack","typeSpecName","ex","stack","resetWarningCache","ReactIs","emptyFunctionThatReturnsNull","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","bigint","bool","func","number","symbol","any","createAnyTypeChecker","arrayOf","createArrayOfTypeChecker","createElementTypeChecker","elementType","createElementTypeTypeChecker","instanceOf","createInstanceTypeChecker","createNodeChecker","objectOf","createObjectOfTypeChecker","oneOf","createEnumTypeChecker","oneOfType","createUnionTypeChecker","shape","createShapeTypeChecker","exact","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","isValidElementType","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","JSON","stringify","replacer","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","every","step","done","isSymbol","PropTypes","isElement","Function","QuickLRU","Map","oldCache","_size","delete","_set","deleted","clear","oldCacheSize","hasSymbol","for","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","$$typeof","typeOf","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","engine","storages","plugins","createStore","json2Plugin","rx_one","rx_two","rx_three","rx_four","rx_escapable","rx_dangerous","this_value","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","Boolean","gap","indent","meta","rep","quote","holder","mind","partial","space","reviver","j","walk","eval","SyntaxError","util","pluck","each","create","isList","isFunction","storeAPI","enabled","optionalDefaultValue","storage","read","_namespacePrefix","_deserialize","write","_serialize","self","namespacedKey","_namespaceRegexp","clearAll","hasNamespace","namespace","addPlugin","plugin","_addPlugin","_warn","_console","namespacePrefix","namespaceRegexp","legalNamespaces","_privateStoreProps","_testStorage","testStr","ok","_assignPluginFnProp","pluginFnProp","oldFn","pluginFn","super_fn","newFnArgs","concat","strVal","defaultVal","_addStorage","seenPlugin","pluginProperties","addStorage","store","raw","make_assign","make_create","make_trim","Global","global","shimAssign","props1","props2","etc","assignProps1","assignProps2","assignArgsList","F","arr","res","doc","_has","regexpStr","escape","unescape","cookie","cookies","kvp","localStorage","getItem","setItem","removeItem","memoryStorage","globalStorage","storageName","_withStorageEl","_makeIEStorageElFunction","disable","unfixedKey","fixedKey","fixKey","storageEl","save","XMLDocument","attr","removeAttribute","forbiddenCharsRegex","addBehavior","scriptTag","storageOwner","storageContainer","ActiveXObject","close","frames","storeFunction","removeChild","sessionStorage","webpackPolyfill","deprecate","paths","children","fetch","support","searchParams","iterable","blob","Blob","formData","arrayBuffer","viewClasses","isDataView","DataView","isPrototypeOf","isArrayBufferView","ArrayBuffer","isView","normalizeName","normalizeValue","iteratorFor","items","Headers","headers","append","header","oldValue","thisArg","consumed","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","result","onerror","readBlobAsArrayBuffer","FileReader","promise","readAsArrayBuffer","readBlobAsText","readAsText","readArrayBufferAsText","buf","view","Uint8Array","chars","bufferClone","byteLength","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","FormData","_bodyFormData","URLSearchParams","_bodyArrayBuffer","rejected","json","methods","normalizeMethod","method","upcased","Request","credentials","mode","referrer","form","bytes","decodeURIComponent","parseHeaders","rawHeaders","preProcessedHeaders","line","Response","bodyInit","statusText","redirectStatuses","redirect","RangeError","request","xhr","getAllResponseHeaders","responseURL","responseText","ontimeout","withCredentials","setRequestHeader","polyfill","large","dateFormat","hideBorder","actionButton","formatDate","magazine","customFields","magazineFields","cardClasses","image","link","title","shortVersion","authorUrl","author","category","categoryUrl","issue","propTypes","defaultProps","BookmarkButton","bookmarkId","React","useState","removeActive","setRemoveActive","actions","buttonRef","useRef","handleClick","removeBookmark","buttonClasses","useBookmarksStateContext","useOutsideClick","BookmarksList","heading","Card","id","dispatch","useEffect","loadBookmarks","loading","totalBookmarkCount","latestBookmarks","bookmarks","articles","commentArticles","tvshows","podcasts","ContentTypeNavigation","ArticleCardSmall","TvShowCardSmall","subtitle","PodcastCardSmall","LatestBookmarks","itesm","BookmarksContext","createContext","initialState","stateReducer","action","payload","totalCount","createActions","bookmarksResult","latestBookmarkedIds","lastBookmarkedIds","latest","contentType","newBookmarks","removeBookmarkEvent","dispatchEvent","createBookmarksContextState","initialStateOverrides","startState","useReducer","useContext","Loader","imageUrl","FilterBar","inputRef","current","focus","handleInputChange","keyword","usePressStateContext","Pagination","handlePageChange","page","pageRangeDisplayed","currentPage","perPage","totalPages","useMediaQueryValues","content","debouncedKeyword","loadItems","useDebouncedValue","TvShowPressItem","isOpen","setIsOpen","loadingEpisodes","setLoadingEpisodes","episodes","setEpisodes","pressImages","programText","episode","pressImage","thumbUrl","sizes","filename","alt","filesize","TvShowListing","PressContext","createPressContextState","className","__html","ArticleResults","setLoading","posts","handleLoadMore","loadMoreArticleResults","useSearchStateContext","CommentArticleResults","loadMoreCommentArticleResults","Filter","handleFilterChange","checked","showArticles","showCommentArticles","showTvShows","showPodcasts","noContentTypeError","currentYear","filterYears","reverse","handleSearch","search","sortOrder","filterFormErrors","errors","noKeyword","hasErrors","LoadMoreButton","count","handleScrollToTop","scrollTop","loadCount","PodcastResults","loadMorePodcastResults","SearchBar","handleKeywordChange","handleEnterPress","keyCode","hasSearched","lastSearchState","tvShows","TvShowResults","loadMoreTvShowResults","searchPromises","articleIndex","commentArticleIndex","tvShowIndex","podcastIndex","all","emptyResult","currentOffset","total","SearchContext","createSearchContextState","debouncedValue","setDebouncedValue","handler","clearTimeout","queries","defaultValue","mediaQueryLists","matchMedia","q","getValue","findIndex","mql","matches","setValue","addListener","removeListener","ref","ignoreClass","contains","articleArchiveForm","formEl","$form","$submit","find","on","$subjectCategorySelect","subject","baseUrl","submit","bookmarkButton","buttonCl","$button","$target","hasClass","isBookmarked","bookmarkEvent","removeClass","addClass","bookmarkEvents","$bookmarkCounter","$bookmarkButton","currentCount","newCount","countLabel","initCookiePopup","jQuery","hide","isClosed","fadeIn","click","fadeOut","dropdownMenu","$el","toggleAttr","mouseover","mouseout","lazyLoadOffset","lazyLoad","imgObserver","observer","$entry","dataSrc","divObserver","dataStyle","div","linkSelect","selectEl","renderArticleItemListToString","loadMoreArticlesArchive","buttonEl","containerCl","$container","$loadStatus","origButtonLabel","offset","magazineId","totalLoadedPosts","renderArticlesToString","loadMoreArchiveComments","loadMoreArticles","loadMoreCommentArticles","day","renderPodcastItemsToString","loadMorePodcastsButton","podcastTerm","magazineSlider","sliderWrapper","$slider","slick","arrows","slidesToShow","swipeToSlide","infinite","responsive","breakpoint","settings","mobileMenu","toggleClass","mobileSearch","mq","newsletter","email","playSlider","containerEl","adaptiveHeight","isActive","isIos","platform","playPodcast","podcastId","$loader","$playerControls","$playPauseButton","$volumeSlider","$showLink","$playerBookmarkButton","$metaDurationContainer","$metaDateContainer","$footer","podcast","audioUrl","soundcloudFile","showName","showUrl","episodeName","description","coverUrl","audioEl","onplaying","savedVolume","savedSliderValue","newAudioEl","podcastPlayer","printButton","print","initScrollTo","scrollToElClick","animate","position","toggle","toggleContainerCl","$toggleContainer","siblings","tvScheduleSlider","sliderEl","hasScheduleEntries","$tvScheduleSlider","initialSlide","prevArrow","nextArrow","currentSlide","nextSlide","$nextSlide","nextSlideDate","videoContainerId","videoPlayer","button","$descriptionContainer","$hero","hideDescMq","showId","continueLabel","file","playerInstance","jwplayer","setup","sources","aspectratio","primary","hlshtml","cast","autostart","css","getFullscreen","fullscreen","getState","playerState","$newsletter","$cookiePopup","$jsScrollTo","$jsMobileMenu","$jsDropdownMenu","$jsDropdownMenuClick","$playVideo","$loadMorePodcastsButton","$playSliders","$tvScheduleSliders","$loadMoreArticles","$loadMoreCommentArticles","$magazineSliders","$linkSelects","$archiveFilterForm","$loadMoreArchiveArticles","$loadMoreCommentArchiveArticles","$mobileSearch","$printButtons","range","bytesToSize","endpoints","show","postOffset","podcastSearch","articleSearch","commentArticleSearch","orderBy","order","tvShowSearch","trackViews","postId","getPodcastEpisode","contentLimit","imageSize","wpPost","getPodcastEpisodes","wpPosts","searchPodcasts","order_by","post_count","post_offset","getArticles","searchArticles","subjectSlug","authorSlug","subject_slug","author_slug","magazine_id","getCommentArticles","searchCommentArticles","getTvshows","searchTvShows","getBookmarks","comment_articles","last_bookmarked_ids","total_count","addBookmark","trackView","stripHtmlTags","limitContent","limit","getImageUrl","media","mapPostsPodcast","wpResponse","stripHtml","post","rendered","categorySlug","categoryId","custom_fields","mapPostsArticle","mapPostsCommentArticle","mapPostsTvShow"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;AClFA,CAAC,SAASA,gCAAT,CAA0CC,IAA1C,EAAgDC,OAAhD,EAAyD;AACzD,MAAG,+BAAOC,OAAP,OAAmB,QAAnB,IAA+B,+BAAOC,MAAP,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B;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,E;;;;;;;;;;;;;;;;;;;;;;;AC5PD,IAAI2iB,SAAS3iB,mBAAOA,CAAC,yEAAR,CAAb;;AAEA,IAAI4iB,WAAW5iB,mBAAOA,CAAC,iEAAR,CAAf;AACA,IAAI6iB,UAAU,CAAC7iB,mBAAOA,CAAC,mEAAR,CAAD,CAAd;;AAEAvxB,OAAOD,OAAP,GAAiBm0C,OAAOG,WAAP,CAAmBF,QAAnB,EAA6BC,OAA7B,CAAjB;;;;;;;;;;0BAFIA,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACHJp0C,OAAOD,OAAP,GAAiBu0C,WAAjB;;AAEA,SAASA,WAAT,GAAuB;AACtB/iB,oBAAOA,CAAC,kEAAR;AACA,QAAO,EAAP;AACA;;;;;;;;;;yBAHQ+iB,W;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;AAIA;;;;;;;AAQA;AACA;;AAEA,IAAI,QAAOlF,IAAP,yCAAOA,IAAP,OAAgB,QAApB,EAA8B;AAC1BA,WAAO,EAAP;AACH;;AAEA,aAAY;AACT;;AAEA,QAAImF,SAAS,eAAb;AACA,QAAIC,SAAS,qCAAb;AACA,QAAIC,WAAW,kEAAf;AACA,QAAIC,UAAU,sBAAd;AACA,QAAIC,eAAe,iIAAnB;AACA,QAAIC,eAAe,0GAAnB;;AAEA,aAAS7e,CAAT,CAAW10B,CAAX,EAAc;AACV;AACA,eAAOA,IAAI,EAAJ,GACD,MAAMA,CADL,GAEDA,CAFN;AAGH;;AAED,aAASwzC,UAAT,GAAsB;AAClB,eAAO,KAAKlb,OAAL,EAAP;AACH;;AAED,QAAI,OAAOxH,KAAKxwB,SAAL,CAAei5B,MAAtB,KAAiC,UAArC,EAAiD;;AAE7CzI,aAAKxwB,SAAL,CAAei5B,MAAf,GAAwB,YAAY;;AAEhC,mBAAOxc,SAAS,KAAKub,OAAL,EAAT,IACD,KAAKmb,cAA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L,KAAqBA,KAAK,WAAL,EAAkB,SAAlB,CAArB,IAAqDA,KAAK,WAAL,EAAkB,SAAlB,EAA6B,CAA7B,CAArD,GACJA,KAAK,WAAL,EAAkB,SAAlB,EAA6B,CAA7B,EAAgC,CAAhC,EAAmC,MAAnC,CADI,GAEJ,EAhBH;AAiBHhZ,yBAAagZ,KAAK,WAAL,KAAqBA,KAAK,WAAL,EAAkB,SAAlB,CAArB,GACPA,KAAK,WAAL,EAAkB,SAAlB,EAA6B,CAA7B,EAAgC,CAAhC,EAAmC,MAAnC,CADO,GAEP,EAnBH;AAoBHlN,0BAAc,CAAC,CAACkN,KAAK,eAAL,CApBb;AAqBH1Z,0BAAc,6BAAc0Z,KAAKI,aAAnB,EAAkC,EAAEhqC,MAAM,IAAR,EAAlC;AArBX,SAAP;AAuBH,KAxBa,CAAd;;AA0BA,WAAOq3B,KAAP;AACH,CA5BD;;QA+BI+R,a,GAAAA,a;QACAK,e,GAAAA,e;QACAQ,e,GAAAA,e;QACAC,sB,GAAAA,sB;QACAC,c,GAAAA,c;QACAZ,W,GAAAA,W;;;;;;;;;;4BAvLEH,a;4BAGAC,Y;4BAQAE,W;4BAqBAE,e;4BAoCAQ,e;4BA6CAC,sB;4BAkCAC,c;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrJN,uB","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"../scripts/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Amplitude\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Amplitude\"] = factory();\n\telse\n\t\troot[\"Amplitude\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 47);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar _package = __webpack_require__(59);\n\nmodule.exports = {\n version: _package.version,\n\n audio: new Audio(),\n\n active_metadata: {},\n\n active_album: \"\",\n\n active_index: 0,\n\n active_playlist: null,\n\n playback_speed: 1.0,\n\n callbacks: {},\n\n songs: [],\n\n playlists: {},\n\n start_song: \"\",\n\n starting_playlist: \"\",\n\n starting_playlist_song: \"\",\n\n repeat: false,\n\n repeat_song: false,\n\n shuffle_list: {},\n\n shuffle_on: false,\n\n default_album_art: \"\",\n\n default_playlist_art: \"\",\n\n debug: false,\n\n volume: 0.5,\n\n pre_mute_volume: 0.5,\n\n volume_increment: 5,\n\n volume_decrement: 5,\n\n soundcloud_client: \"\",\n\n soundcloud_use_art: false,\n\n soundcloud_song_count: 0,\n\n soundcloud_songs_ready: 0,\n\n is_touch_moving: false,\n\n buffered: 0,\n\n bindings: {},\n\n continue_next: true,\n\n delay: 0,\n\n player_state: \"stopped\",\n\n web_audio_api_available: false,\n\n context: null,\n\n source: null,\n\n analyser: null,\n\n visualizations: {\n available: [],\n\n active: [],\n\n backup: \"\"\n },\n\n waveforms: {\n sample_rate: 100,\n\n built: []\n }\n}; /**\n * These variables make Amplitude run. The config is the most important\n * containing active settings and parameters.\n *\n * The config JSON is the global settings for ALL of Amplitude functions.\n * This is global and contains all of the user preferences. The default\n * settings are set, and the user overwrites them when they initialize\n * Amplitude.\n *\n * @module config\n * @type {object}\n * @property {string} \tconfig.version \t\t\t\t- The current version of AmplitudeJS.\n * @property {object} \tconfig.audio \t\t \t\t\t\t\t\t\t\t-\tHandles all of the audio.\n * @property {object} \tconfig.active_metadata\t\t\t\t\t- Contains the active metadata for the song.\n * @property {string} \tconfig.active_album\t\t\t\t\t\t\t- Holds the active album name. Used to check and see if the album changed and run the album changed callback.\n * @property {number} \tconfig.active_index\t\t\t\t\t\t\t- Contains the index of the actively playing song.\n * @property {string} \tconfig.active_playlist\t\t\t\t\t- Contains the key to the active playlist index.\n * @property {number} \tconfig.playback_speed\t\t\t\t\t\t- Sets the initial playback speed of the song. The values for this can be 1.0, 1.5, 2.0\n * @property {object} \tconfig.callbacks\t\t\t\t\t\t\t\t- The user can pass a JSON object with a key => value store of callbacks to be run at certain events.\n * @property {array} \t\tconfig.songs\t\t\t\t\t\t\t\t\t\t- Contains all of the songs the user has passed to Amplitude to use.\n * @property {object} \tconfig.playlists\t\t\t\t\t\t\t\t- Contains all of the playlists the user created.\n * @property {object} \tconfig.start_song \t\t\t\t\t\t\t- The index of the song that AmplitudeJS should start with.\n * @property {string} \tconfig.starting_playlist \t\t\t\t- The starting playlist the player will intiialize to.\n * @property {string} \tconfig.starting_playlist_song \t- The index of the song in the playlist that should be started.\n * @property {boolean} \tconfig.repeat \t\t\t\t\t\t\t\t\t- When repeat is on, when the song ends the song will replay itself.\n * @property {object} \tconfig.shuffle_list\t\t\t\t\t\t\t- When shuffled, gets populated with the songs the user provided in a random order.\n * @property {boolean} \tconfig.shuffle_on\t\t\t\t\t\t\t\t- When on, gets set to true so when traversing through songs, AmplitudeJS knows whether or not to use the songs object or the shuffle_list\n * @property {string}\t\tconfig.default_album_art \t\t\t\t- The user can set default album art to be displayed if the song they set doesn't contain album art.\n * @property {string} \tconfig.default_playlist_art \t\t- The user can set default playlist art to be displayed if the playlist they are setting meta data for doesn't contain an art picture.\n * @property {boolean} \tconfig.debug\t\t\t\t\t\t\t\t\t\t- When set to true, AmplitudeJS will print to the console any errors providing helpful feedback to the user.\n * @property {number} \tconfig.volume \t\t\t\t\t\t\t\t\t- The user can set the initial volume to a number between 0 and 1 over-riding the default of .5\n * @property {number} \tconfig.pre_mute_volume \t\t\t\t\t- This is set on mute so that when a user un-mutes AmplitudeJS knows what to restore the volume to.\n * @property {number}\t\tconfig.volume_increment \t\t\t\t- The default values are an integer between 1 and 100 for how much the volume should increase when the user presses the volume up button.\n * @property {number}\t\tconfig.volume_decrement \t\t\t\t- The default values are an integer between 1 and 100 for how much the volume should decrease when the user presses the volume down button.\n * @property {string} \tconfig.soundcloud_client \t\t\t\t- When using SoundCloud, the user will have to provide their API Client ID\n * @property {boolean} \tconfig.soundcloud_use_art \t\t\t- The user can set this to true and AmplitudeJS will use the album art for the song returned from the Soundcloud API\n * @property {number} \tconfig.soundcloud_song_count \t\t- Used on config to count how many songs are from Soundcloud and compare it to how many are ready for when to move to the rest of the configuration\n * @property {number} \tconfig.soundcloud_songs_ready \t- Used on config to count how many songs are ready so when we get all of the data from the SoundCloud API that we need this should match the SoundCloud song count meaning we can move to the rest of the config.\n * @property {integer}\tconfig.is_touch_moving \t\t\t\t\t- Flag for if the user is moving the screen.\n * @property {boolean}\tconfig.buffered\t\t\t\t\t\t\t\t\t- How much of the song is buffered.\n * @property {object} \tconfig.bindings\t\t\t\t\t\t\t\t\t- Array of bindings to certain key events.\n * @property {boolean} \tconfig.continue_next \t\t\t\t\t\t- Determines when a song ends, we should continue to the next song.\n * @property {number} config.delay \t\t\t\t\t\t\t\t\t\t- Sets the delay between songs in MS.\n * @property {boolean} config.use_web_audio_api \t\t\t\t- Flag that determines if the user wants to use Web Audio API Components.\n * @property {boolean} config.web_audio_api_available - Flag that determines if the Web Audio API is available.\n * @property {object} \tconfig.context \t\t\t\t\t\t\t\t\t- Web Audio API Context\n * @property {object}\t\tconfig.source \t\t\t\t\t\t\t\t\t- Web Audio API Source\n * @property {object} \tconfig.analyser \t\t\t\t\t\t\t\t- Web Audio API Analyser\n * @property {string}\t\tconfig.player_state \t\t\t\t\t\t- The current state of the player.\n */\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nvar _metaDataElements = __webpack_require__(7);\n\nvar _metaDataElements2 = _interopRequireDefault(_metaDataElements);\n\nvar _callbacks = __webpack_require__(9);\n\nvar _callbacks2 = _interopRequireDefault(_callbacks);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _visualizations = __webpack_require__(16);\n\nvar _visualizations2 = _interopRequireDefault(_visualizations);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Interacts directly with native functions of the Audio element. Logic\n * leading up to these methods are handled by click handlers which call\n * helpers and visual synchronizers. These are the core functions of AmplitudeJS.\n * Every other function that leads to these prepare the information to be\n * acted upon by these functions.\n *\n * @module core/Core\n */\n\n\n/**\n * Import the Visualizations from the FX module.\n * @module fx/visualizations\n */\n\n\n/**\n * Imports AmplitudeJS Callback Utility\n * @module utilities/callbacks\n */\n\n\n/**\n * Imports the Play/Pause Visual Elements module.\n * @module visual/playPauseElements\n */\n\n\n/**\n * Imports the Checks module.\n * @module utilities/checks\n */\nvar Core = function () {\n /**\n * Plays the active song. If the current song is live, it reconnects\n * the stream before playing.\n *\n * Public Accessor: Amplitude.play()\n *\n * @access public\n */\n function play() {\n _visualizations2.default.stop();\n _visualizations2.default.run();\n\n /*\n If the audio is live we re-conenct the stream.\n */\n if (_config2.default.active_metadata.live) {\n reconnectStream();\n }\n\n /*\n Mobile remote sources need to be reconnected on play. I think this is\n because mobile browsers are optimized not to load all resources\n for speed reasons. We only do this if mobile and the paused button\n is not clicked. If the pause button was clicked then we don't reconnect\n or the user will lose their place in the stream.\n */\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && !_config2.default.paused) {\n reconnectStream();\n }\n\n /*\n Play the song and set the playback rate to the playback\n speed.\n */\n var playPromise = _config2.default.audio.play();\n\n if (playPromise !== undefined) {\n playPromise.then(function (_) {}).catch(function (error) {});\n }\n _config2.default.audio.play();\n _config2.default.audio.playbackRate = _config2.default.playback_speed;\n\n /*\n Sets the state of the player.\n */\n _configState2.default.setPlayerState();\n }\n\n /**\n * Pauses the active song. If it's live, it disconnects the stream.\n *\n * Public Accessor: Amplitude.pause()\n *\n * @access public\n */\n function pause() {\n _visualizations2.default.stop();\n\n /*\n Pause the active song.\n */\n _config2.default.audio.pause();\n\n /*\n Flag that pause button was clicked.\n */\n _config2.default.paused = true;\n\n /*\n If the song is live, we disconnect the stream so we aren't\n saving it to memory.\n */\n if (_config2.default.active_metadata.live) {\n disconnectStream();\n }\n\n /*\n Sets the state of the player.\n */\n _configState2.default.setPlayerState();\n }\n\n /**\n * Stops the active song by setting the current song time to 0.\n * When the user resumes, it will be from the beginning.\n * If it's a live stream it disconnects.\n *\n * Public Accessor: Amplitude.stop()\n *\n * @access public\n */\n function stop() {\n _visualizations2.default.stop();\n\n /*\n Set the current time of the song to 0 which will reset the song.\n */\n if (_config2.default.audio.currentTime != 0) {\n _config2.default.audio.currentTime = 0;\n }\n\n /*\n Run pause so the song will stop\n */\n _config2.default.audio.pause();\n\n /*\n If the song is live, disconnect the stream.\n */\n if (_config2.default.active_metadata.live) {\n disconnectStream();\n }\n\n /*\n Sets the state of the player.\n */\n _configState2.default.setPlayerState();\n\n /*\n Run the stop callback\n */\n _callbacks2.default.run(\"stop\");\n }\n\n /**\n * Sets the song volume.\n *\n * Public Accessor: Amplitude.setVolume( volumeLevel )\n *\n * @access public\n * @param {number} volumeLevel - A number between 1 and 100 as a percentage of\n * min to max for a volume level.\n */\n function setVolume(volumeLevel) {\n /*\n If the volume is set to mute somewhere else, we sync the display.\n */\n if (volumeLevel == 0) {\n _config2.default.audio.muted = true;\n } else {\n _config2.default.audio.muted = false;\n }\n\n /*\n Sets the volume in the config so we can reference it later on.\n */\n _config2.default.volume = volumeLevel;\n\n /*\n Set the volume of the active song.\n */\n _config2.default.audio.volume = volumeLevel / 100;\n }\n\n /**\n * Sets the song percentage. If it's a live song, we ignore this because\n * we can't skip ahead. This is an issue if you have a playlist with\n * a live source.\n *\n * Public Accessor: Amplitude.setSongLocation( songPercentage )\n *\n * @access public\n * @param {number} songPercentage - A number between 1 and 100 as a percentage of song completion.\n */\n function setSongLocation(songPercentage) {\n /*\n As long as the song is not live, we can set the current time of the\n song to the percentage the user passed in.\n */\n if (!_config2.default.active_metadata.live) {\n _config2.default.audio.currentTime = _config2.default.audio.duration * (songPercentage / 100);\n }\n }\n\n /**\n * Skips to a location in a song\n *\n * Public Accessor: Amplitude.skipToLocation( seconds )\n *\n * @access public\n * @param {number} seconds - An integer containing the seconds to skip to\n */\n function skipToLocation(seconds) {\n /*\n When the active song can be played through, we can check to\n see if the seconds will work. We only bind the event handler\n once and remove it once it's fired.\n */\n _config2.default.audio.addEventListener(\"canplaythrough\", function () {\n /*\n If the active song duration is greater than or equal to the\n amount of seconds the user wants to skip to and the seconds\n is greater than 0, we skip to the seconds defined.\n */\n if (_config2.default.audio.duration >= seconds && seconds > 0) {\n _config2.default.audio.currentTime = seconds;\n } else {\n _debug2.default.writeMessage(\"Amplitude can't skip to a location greater than the duration of the audio or less than 0\");\n }\n }, { once: true });\n }\n\n /**\n * Disconnects the live stream\n *\n * Public Accessor: Amplitude.disconnectStream()\n *\n * @access public\n */\n function disconnectStream() {\n _config2.default.audio.src = \"\";\n _config2.default.audio.load();\n }\n\n /**\n * Reconnects the live stream\n *\n * Public Accessor: Amplitude.reconnectStream()\n *\n * @access public\\\n */\n function reconnectStream() {\n _config2.default.audio.src = _config2.default.active_metadata.url;\n _config2.default.audio.load();\n }\n\n /**\n * Sets the playback speed for the song.\n *\n * @param {number} playbackSpeed The speed we want the song to play back at.\n */\n function setPlaybackSpeed(playbackSpeed) {\n /*\n Set the config playback speed.\n */\n _config2.default.playback_speed = playbackSpeed;\n\n /*\n Set the active song playback rate.\n */\n _config2.default.audio.playbackRate = _config2.default.playback_speed;\n }\n\n /*\n Return publically facing functions\n */\n return {\n play: play,\n pause: pause,\n stop: stop,\n setVolume: setVolume,\n setSongLocation: setSongLocation,\n skipToLocation: skipToLocation,\n disconnectStream: disconnectStream,\n reconnectStream: reconnectStream,\n setPlaybackSpeed: setPlaybackSpeed\n };\n}();\n\n/**\n * Import the Config State module.\n * @module utilities/configState\n */\n\n\n/**\n * Imports AmplitudeJS Debug Utility\n * @module utilities/debug\n */\n\n\n/**\n * Imports the Meta Data Visual Elements module.\n * @module visual/metaDataElements\n */\n\n\n/**\n * Imports the Audio Navigation module.\n * @module utilities/audioNavigation\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = Core;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Defines the visual representation of AmplitudeJS play pause elements.\n * @module visual/PlayPauseElements\n */\nvar PlayPauseElements = function () {\n /**\n * Syncs all play pause elements.\n *\n * @access public\n */\n function sync() {\n syncGlobal();\n syncPlaylist();\n syncSong();\n syncSongInPlaylist();\n }\n\n /**\n * Syncs the global play pause buttons to the state of the active song.\n *\n * @access public\n */\n function syncGlobal() {\n /*\n Get the active song state.\n */\n var state = _config2.default.audio.paused ? \"paused\" : \"playing\";\n\n /*\n Get all play pause buttons.\n */\n var playPauseElements = document.querySelectorAll(\".amplitude-play-pause\");\n\n /*\n Iterate over all of the play pause elements syncing the\n display visually.\n */\n for (var i = 0; i < playPauseElements.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n var playlist = playPauseElements[i].getAttribute(\"data-amplitude-playlist\");\n var song = playPauseElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n This method is responsible for only the global elements,\n so we make sure there are no playlist or songs defined on\n the element.\n */\n if (playlist == null && song == null) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(playPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(playPauseElements[i]);\n break;\n }\n }\n }\n }\n\n /**\n * Syncs the main playlist play pause buttons to the state of the active song.\n *\n * @access public\n */\n function syncPlaylist() {\n var state = _config2.default.audio.paused ? \"paused\" : \"playing\";\n\n /*\n Get all of the main playlist play pause elements\n */\n var playlistPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Iterate over the play pause elements, syncing the state accordingly.\n */\n for (var i = 0; i < playlistPlayPauseElements.length; i++) {\n /*\n Grab the song attributes from the element.\n */\n var song = playlistPlayPauseElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n We want only the play pause elements for the main on a\n playlist nothing else. We have another method for the\n song in playlist play pause method.\n */\n if (song == null) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(playlistPlayPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(playlistPlayPauseElements[i]);\n break;\n }\n }\n }\n }\n\n /**\n * Syncs the song play pause buttons to the state of the active song.\n *\n * @access public\n */\n function syncSong() {\n var state = _config2.default.audio.paused ? \"paused\" : \"playing\";\n\n /*\n Get all of the individual song play pause buttons. These have an\n amplitude-song-index that matches the active index attribute.\n */\n var songPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n /*\n Iterate over all of the song play pause elements\n */\n for (var i = 0; i < songPlayPauseElements.length; i++) {\n /*\n Grab the playlist attributes from the element.\n */\n var playlist = songPlayPauseElements[i].getAttribute(\"data-amplitude-playlist\");\n\n /*\n We want only the song play pause buttons, not ones scoped in a playlist.\n */\n if (playlist == null) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(songPlayPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(songPlayPauseElements[i]);\n break;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist play pause buttons to the state of\n * the active song.\n *\n * @access public\n */\n function syncSongInPlaylist() {\n var state = _config2.default.audio.paused ? \"paused\" : \"playing\";\n\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n /*\n Get all of the individual song play pause buttons. These have an\n amplitude-song-index attribute. Some have amplitude-playlist which\n means they are individual songs within a playlist.\n */\n var songInPlaylistPlayPauseElements = document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index=\"' + activePlaylistIndex + '\"][data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Iterate over all of the individual play pause elements for songs inspect\n a playlist.\n */\n for (var i = 0; i < songInPlaylistPlayPauseElements.length; i++) {\n /*\n Determines what classes we should add and remove\n from the elements.\n */\n switch (state) {\n case \"playing\":\n setElementPlay(songInPlaylistPlayPauseElements[i]);\n break;\n case \"paused\":\n setElementPause(songInPlaylistPlayPauseElements[i]);\n break;\n }\n }\n }\n\n /**\n * Sets all of the play pause buttons to paused.\n *\n * @access public\n */\n function syncToPause() {\n /*\n Gets all of the play pause elements\n */\n var playPauseElements = document.querySelectorAll(\".amplitude-play-pause\");\n\n /*\n Sets all of the elements to pause\n */\n for (var i = 0; i < playPauseElements.length; i++) {\n setElementPause(playPauseElements[i]);\n }\n }\n\n /**\n * Sets an element to be playing by removing the 'amplitude-paused' class\n * and adding the 'amplitude-playing' class\n *\n * @access public\n * @param {element} element \t- The element getting the playing class added.\n */\n function setElementPlay(element) {\n element.classList.add(\"amplitude-playing\");\n element.classList.remove(\"amplitude-paused\");\n }\n\n /**\n * Sets an element to be paused by adding the 'amplitude-paused' class\n * and removing the 'amplitude-playing' class\n *\n * @access public\n * @param {element} element \t- The element getting the paused class added.\n */\n function setElementPause(element) {\n element.classList.remove(\"amplitude-playing\");\n element.classList.add(\"amplitude-paused\");\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync,\n syncGlobal: syncGlobal,\n syncPlaylist: syncPlaylist,\n syncSong: syncSong,\n syncSongInPlaylist: syncSongInPlaylist,\n syncToPause: syncToPause\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = PlayPauseElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _callbacks = __webpack_require__(9);\n\nvar _callbacks2 = _interopRequireDefault(_callbacks);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nvar _songSliderElements = __webpack_require__(14);\n\nvar _songSliderElements2 = _interopRequireDefault(_songSliderElements);\n\nvar _songPlayedProgressElements = __webpack_require__(20);\n\nvar _songPlayedProgressElements2 = _interopRequireDefault(_songPlayedProgressElements);\n\nvar _timeElements = __webpack_require__(15);\n\nvar _timeElements2 = _interopRequireDefault(_timeElements);\n\nvar _metaDataElements = __webpack_require__(7);\n\nvar _metaDataElements2 = _interopRequireDefault(_metaDataElements);\n\nvar _containerElements = __webpack_require__(49);\n\nvar _containerElements2 = _interopRequireDefault(_containerElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Audio Navigation Utility.\n *\n * @module utilities/AudioNavigation\n */\n\n\n/**\n * Meta Data Elements Module\n *\n * @module visual/MetaDataElements\n */\n\n\n/**\n * Imports the Song Played Progress Elements Module\n *\n * @module visual/SongPlayedProgressElements\n */\n\n\n/**\n * Imports the Play Pause Elements Module\n *\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the Callbacks Module\n *\n * @module utilities/Callbacks\n */\n/**\n * Imports the config module\n * @module config\n */\nvar AudioNavigation = function () {\n /**\n * Sets the next song\n *\n * @access public\n * @param {boolean} [songEnded=false] If the song ended, this is set to true\n * so we take into effect the repeat setting.\n */\n function setNext() {\n var songEnded = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n /*\n Initializes the next index variable. This will be the\n index of the song that is next.\n */\n var nextIndex = null;\n var nextSong = {};\n\n /*\n Ensure we don't loop in the playlist if config.repeat is not true\n */\n var endOfList = false;\n\n /*\n Determines if we are repeating the song or not. If we are repeating,\n the next song will be the same song index.\n */\n if (_config2.default.repeat_song) {\n /*\n If the playlist is shuffled, get the now playing index.\n */\n if (_config2.default.shuffle_on) {\n nextIndex = _config2.default.shuffle_list[_config2.default.active_index].index;\n nextSong = _config2.default.shuffle_list[nextIndex];\n } else {\n nextIndex = _config2.default.active_index;\n nextSong = _config2.default.songs[nextIndex];\n }\n } else {\n /*\n If the shuffle is on, we use the shuffled list of\n songs to determine our next song.\n */\n if (_config2.default.shuffle_on) {\n /*\n If the active shuffle index + 1 is less than the length, then\n we use the next shuffle otherwise we go to the beginning\n of the shuffle list.\n */\n if (parseInt(_config2.default.active_index) + 1 < _config2.default.shuffle_list.length) {\n /*\n Set the next index to be the index of the song in the shuffle list.\n */\n nextIndex = parseInt(_config2.default.active_index) + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n nextSong = _config2.default.shuffle_list[nextIndex];\n } else {\n /*\n If the active index + 1 is less than the length of the songs, then\n we use the next song otherwise we go to the beginning of the\n song list.\n */\n if (parseInt(_config2.default.active_index) + 1 < _config2.default.songs.length) {\n nextIndex = parseInt(_config2.default.active_index) + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n /*\n Sets the next index.\n */\n nextSong = _config2.default.songs[nextIndex];\n }\n }\n\n /*\n Change the song after the next button has been pressed.\n */\n changeSong(nextSong, nextIndex);\n\n /*\n \tIf it's the end of the list and repeat is not on, do nothing.\n */\n if (endOfList && !_config2.default.repeat) {} else {\n /*\n If the song has ended and repeat is on, play the song.\n */\n if (!(songEnded && !_config2.default.repeat && endOfList)) {\n _core2.default.play();\n }\n }\n\n /*\n Sync the play pause elements and run the\n after next callback.\n */\n _playPauseElements2.default.sync();\n _callbacks2.default.run(\"next\");\n\n /*\n If we repeated the song, run the repeat song callback.\n */\n if (_config2.default.repeat_song) {\n _callbacks2.default.run(\"song_repeated\");\n }\n }\n\n /**\n * Sets the next song in a playlist\n *\n * @param {string} playlist - The playlist being shuffled\n * @param {boolean} [songEnded=false] - If the song ended, this is set to true\n * so we take into effect the repeat setting.\n */\n function setNextPlaylist(playlist) {\n var songEnded = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n /*\n Initializes the next index\n */\n var nextIndex = null;\n var nextSong = {};\n\n /*\n Ensure we don't loop in the playlist if config.repeat is not true\n */\n var endOfList = false;\n\n /*\n If we are repeating the song, then we just start the song over.\n */\n if (_config2.default.repeat_song) {\n /*\n If the playlist is shuffled, get the now playing index.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n nextIndex = _config2.default.playlists[playlist].active_index;\n nextSong = _config2.default.playlists[playlist].shuffle_list[nextIndex];\n } else {\n nextIndex = _config2.default.playlists[playlist].active_index;\n nextSong = _config2.default.playlists[playlist].songs[nextIndex];\n }\n } else {\n /*\n If the playlist is shuffled we get the next index of the playlist.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n /*\n If the active shuffle index + 1 is less than the length of the shuffle list,\n then we use the next shuffle otherwise we go to the beginning of the shuffle list.\n */\n if (parseInt(_config2.default.playlists[playlist].active_index) + 1 < _config2.default.playlists[playlist].shuffle_list.length) {\n /*\n Set the next index to be the index of the song in the shuffle list.\n */\n nextIndex = _config2.default.playlists[playlist].active_index + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n nextSong = _config2.default.playlists[playlist].shuffle_list[nextIndex];\n } else {\n /*\n If the active index +1 is less than the length of the songs in the playlist,\n then we use the next song otherwise we go to the beginning of the playlist.\n */\n if (parseInt(_config2.default.playlists[playlist].active_index) + 1 < _config2.default.playlists[playlist].songs.length) {\n nextIndex = parseInt(_config2.default.playlists[playlist].active_index) + 1;\n } else {\n nextIndex = 0;\n endOfList = true;\n }\n\n /*\n Sets the next song.\n */\n nextSong = _config2.default.playlists[playlist].songs[nextIndex];\n }\n }\n\n /*\n Sets the active playlist to the playlist we are on.\n */\n setActivePlaylist(playlist);\n\n /*\n Change the song within the playlist.\n */\n changeSongPlaylist(playlist, nextSong, nextIndex);\n\n /*\n If it's the end of the playlist and we aren't repeating, do nothing.\n */\n if (endOfList && !_config2.default.repeat) {} else {\n if (!(songEnded && !_config2.default.repeat && endOfList)) {\n _core2.default.play();\n }\n }\n\n /*\n Sync the play pause buttons.\n */\n _playPauseElements2.default.sync();\n _callbacks2.default.run(\"next\");\n\n /*\n Repeat the song.\n */\n if (_config2.default.repeat_song) {\n _callbacks2.default.run(\"song_repeated\");\n }\n }\n\n /**\n * Sets the previous song on the global songs array.\n *\n * @access private\n */\n function setPrevious() {\n /*\n Initializes the previous index\n */\n var previousIndex = null;\n var previousSong = {};\n\n /*\n If we are repeating the song, then we just start the song over.\n */\n if (_config2.default.repeat_song) {\n /*\n If the config is shuffled, get the now playing index.\n */\n if (_config2.default.shuffle_on) {\n previousIndex = _config2.default.active_index;\n previousSong = _config2.default.shuffle_list[previousIndex];\n } else {\n previousIndex = _config2.default.active_index;\n previousSong = _config2.default.songs[previousIndex];\n }\n } else {\n /*\n Get the previous index. If the previous index will be less than 0, get the\n last song of the array and continue.\n */\n if (parseInt(_config2.default.active_index) - 1 >= 0) {\n previousIndex = parseInt(_config2.default.active_index - 1);\n } else {\n previousIndex = parseInt(_config2.default.songs.length - 1);\n }\n\n /*\n If the config is shuffled, we grab the song from the shuffle list\n */\n if (_config2.default.shuffle_on) {\n /*\n Grab song from the shuffle list\n */\n previousSong = _config2.default.shuffle_list[previousIndex];\n } else {\n /*\n Grab song from the songs array\n */\n previousSong = _config2.default.songs[previousIndex];\n }\n }\n /*\n Change the song after the next button has been pressed.\n */\n changeSong(previousSong, previousIndex);\n\n /*\n Play the newest song.\n */\n _core2.default.play();\n\n /*\n Sync the play pause elements and run the\n after next callback.\n */\n _playPauseElements2.default.sync();\n _callbacks2.default.run(\"prev\");\n\n /*\n If we repeated the song, run the repeat song callback.\n */\n if (_config2.default.repeat_song) {\n _callbacks2.default.run(\"song_repeated\");\n }\n }\n\n /**\n * Sets the previous playlist song.\n *\n * @access private\n *\n * @prop {string} playlist - The playlist we are navigating in.\n */\n function setPreviousPlaylist(playlist) {\n /*\n Initializes the previous index\n */\n var previousIndex = null;\n var previousSong = {};\n\n /*\n If we are repeating the song, then we just start the song over.\n */\n if (_config2.default.repeat_song) {\n /*\n If the playlist is shuffled, get the now playing index.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n previousIndex = _config2.default.playlists[playlist].active_index;\n previousSong = _config2.default.playlists[playlist].shuffle_list[previousIndex];\n } else {\n previousIndex = _config2.default.playlists[playlist].active_index;\n previousSong = _config2.default.playlists[playlist].songs[previousIndex];\n }\n } else {\n /*\n Get the previous index. If the previous index will be less than 0, get the\n last song of the array and continue.\n */\n if (parseInt(_config2.default.playlists[playlist].active_index) - 1 >= 0) {\n previousIndex = parseInt(_config2.default.playlists[playlist].active_index - 1);\n } else {\n previousIndex = parseInt(_config2.default.playlists[playlist].songs.length - 1);\n }\n\n /*\n If the playlist is shuffled, we grab the song from the shuffle list\n */\n if (_config2.default.playlists[playlist].shuffle) {\n /*\n Grab song from the shuffle list\n */\n previousSong = _config2.default.playlists[playlist].shuffle_list[previousIndex];\n } else {\n /*\n Grab song from the songs array\n */\n previousSong = _config2.default.playlists[playlist].songs[previousIndex];\n }\n }\n\n /*\n Sets the active playlist to the playlist we are on.\n */\n setActivePlaylist(playlist);\n\n /*\n Change the song within the playlist.\n */\n changeSongPlaylist(playlist, previousSong, previousIndex);\n\n /*\n Plays the song\n */\n _core2.default.play();\n\n /*\n Sync the play pause buttons.\n */\n _playPauseElements2.default.sync();\n _callbacks2.default.run(\"prev\");\n\n /*\n Repeat the song.\n */\n if (_config2.default.repeat_song) {\n _callbacks2.default.run(\"song_repeated\");\n }\n }\n\n /**\n * Change song in the songs array.\n *\n * @access private\n * @prop {object} song - The song we are changing to.\n * @prop {number} index - The index we are changing to.\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n */\n function changeSong(song, index) {\n var direct = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n /*\n Prepare the song change.\n */\n prepareSongChange(song);\n\n /*\n Change the song.\n */\n _config2.default.audio.src = song.url;\n _config2.default.active_metadata = song;\n _config2.default.active_album = song.album;\n\n _config2.default.active_index = parseInt(index);\n\n /*\n Set new information now that the song has changed.\n */\n afterSongChange(direct);\n }\n\n /**\n * Handles a song change in the playlist\n *\n * @access private\n * @prop {string} playlist - The playlist we are changing the song on.\n * @prop {object} song - The song we are changing to in the playlist.\n * @prop {number} index - The inded of the song we are changing to in the playlist.\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not\n */\n function changeSongPlaylist(playlist, song, index) {\n var direct = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n /*\n Prepare the song change.\n */\n prepareSongChange(song);\n\n /*\n Change the song.\n */\n _config2.default.audio.src = song.url;\n _config2.default.active_metadata = song;\n _config2.default.active_album = song.album;\n _config2.default.active_index = null;\n\n _config2.default.playlists[playlist].active_index = parseInt(index);\n\n /*\n Set new information now that the song has changed.\n */\n afterSongChange(direct);\n }\n\n /**\n * Prepares a song change\n *\n * @access private\n * @prop {object} song - The song we change to.\n */\n function prepareSongChange(song) {\n /*\n Stop the current song.\n */\n _core2.default.stop();\n\n /*\n Sync all of the elements to a stopped song.\n */\n _playPauseElements2.default.syncToPause();\n _songSliderElements2.default.resetElements();\n _songPlayedProgressElements2.default.resetElements();\n _timeElements2.default.resetCurrentTimes();\n\n /*\n If an album changes, fire an album change.\n */\n if (_checks2.default.newAlbum(song)) {\n _callbacks2.default.run(\"album_change\");\n }\n }\n\n /**\n * Updates data on the display after a song has changed.\n *\n * @prop {boolean} direct - Determines if it was a direct click on the song.\n * We then don't care if shuffle is on or not.\n *\n * @access private\n */\n function afterSongChange(direct) {\n _metaDataElements2.default.displayMetaData();\n _containerElements2.default.setActive(direct);\n _timeElements2.default.resetDurationTimes();\n\n /*\n Run the song change callback.\n */\n _callbacks2.default.run(\"song_change\");\n }\n\n /**\n * Sets the active playlist\n *\n * @access public\n * @param {string} playlist - The string of the playlist being set to active.\n */\n function setActivePlaylist(playlist) {\n /*\n If the active playlist is different than the playlist being set,\n we run the `playlist_changed` callback.\n */\n if (_config2.default.active_playlist != playlist) {\n _callbacks2.default.run(\"playlist_changed\");\n /*\n Set the active playlist to the playlist parameter. Only need to\n set if it's different.\n */\n _config2.default.active_playlist = playlist;\n\n if (playlist != null) {\n _config2.default.playlists[playlist].active_index = 0;\n }\n }\n }\n\n /*\n Return the publically facing methods\n */\n return {\n setNext: setNext,\n setNextPlaylist: setNextPlaylist,\n setPrevious: setPrevious,\n setPreviousPlaylist: setPreviousPlaylist,\n changeSong: changeSong,\n changeSongPlaylist: changeSongPlaylist,\n setActivePlaylist: setActivePlaylist\n };\n}();\n\n/**\n * Container Elements Module\n *\n * @module visual/ContainerElements\n */\n\n\n/**\n * Imports the Time Elements Module\n *\n * @module visual/TimeElements\n */\n\n\n/**\n * Imports the Song Slider Elements Module\n *\n * @module visual/SongSliderElements\n */\n\n\n/**\n * Imports the Checks Module\n *\n * @module utilities/Checks\n */\n\n\n/**\n * Imports the Core Module\n *\n * @module core/Core\n */\nexports.default = AudioNavigation;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the debugging of AmplitudeJS\n * @module utilities/Debug\n */\nvar Debug = function () {\n /**\n * Writes out debug message to the console if enabled.\n *\n * Public Accessor: Debug.writeMessage( message )\n *\n * @access public\n * @param {string} message - The string that gets printed to alert the user of a debugging error.\n */\n function writeMessage(message) {\n /*\n If the user has flagged AmplitudeJS to debug, we print out a message\n to the console.\n */\n if (_config2.default.debug) {\n console.log(message);\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n writeMessage: writeMessage\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = Debug;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Checks Module. Checks for new songs, albums, and playlists\n *\n * @module utilities/Checks\n */\nvar Checks = function () {\n /**\n * Checks to see if the new song to be played is different than the song\n * that is currently playing. To be true, the user would have selected\n * play on a new song with a new index. To be false, the user would have\n * clicked play/pause on the song that was playing.\n *\n * Public Accessor: Checks.newSong( playlist, songIndex )\n * @access public\n * @param {string} playlist - The playlist we are checking the new song for. Could be null\n * @param {number} songIndex - The index of the new song to be played.\n * @returns {boolean} True if we are setting a new song, false if we are not setting a new song.\n */\n function newSong(playlist, songIndex) {\n /*\n If the playlists don't match, then it's definitely a new song.\n */\n if (_config2.default.active_playlist != playlist) {\n return true;\n } else {\n /*\n If we aren't in a playlist, we check the active index.\n */\n if (_config2.default.active_playlist == null && playlist == null) {\n /*\n If the active indexes don't match, then it's a new song.\n */\n if (_config2.default.active_index != songIndex) {\n return true;\n } else {\n return false;\n }\n } else {\n /*\n If we are in a playlist, then we check to see if the\n new song index matches the active index.\n */\n if (_config2.default.active_playlist == playlist && _config2.default.playlists[playlist].active_index != songIndex) {\n return true;\n } else {\n return false;\n }\n }\n }\n }\n\n /**\n * Checks to see if there is a new album\n *\n * Public Accessor: Checks.newAlbum( album )\n *\n * @access public\n * @param {string} album - Checks to see if the new song will have a new album.\n * @returns {boolean} True if there is a new album, false if there is not a new ablum.\n */\n function newAlbum(album) {\n if (_config2.default.active_album != album) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * Checks to see if there is a new playlist\n *\n * Public Accessor: Checks.newPlaylist( playlist )\n *\n * @access public\n * @param {string} playlist - The playlist passed in to check against the active playlist.\n * @returns {boolean} True if there is a new playlist, false if there is not a new playlist.\n */\n function newPlaylist(playlist) {\n if (_config2.default.active_playlist != playlist) {\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * Determines if the string passed in is a URL or not\n *\n * Public Accessor: AmplitudeHelpers.isURL( url )\n *\n * @access public\n * @param {string} url - The string we are testing to see if it's a URL.\n * @returns {boolean} True if the string is a url, false if it is not.\n */\n function isURL(url) {\n /*\n Test the string against the URL pattern and return if it matches\n */\n var pattern = /(ftp|http|https):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/;\n\n return pattern.test(url);\n }\n\n /**\n * Determines if what is passed in is an integer or not.\n *\n * Public Accessor: AmplitudeHelpers.isInt( int )\n *\n * @access public\n * @param {string|number} int - The variable we are testing to see is an integer or not.\n * @returns {boolean} If the variable is an integer or not.\n */\n function isInt(int) {\n return !isNaN(int) && parseInt(Number(int)) == int && !isNaN(parseInt(int, 10));\n }\n\n /**\n * Returns public facing methods\n */\n return {\n newSong: newSong,\n newAlbum: newAlbum,\n newPlaylist: newPlaylist,\n isURL: isURL,\n isInt: isInt\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = Checks;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the state of the config object.\n *\n * @module utilities/ConfigState\n */\nvar ConfigState = function () {\n /**\n * Resets the config to the default state. This is called on initialize\n * to ensure the user's config is what matters.\n *\n * Public Accessor: AmplitudeHelpers.resetConfig()\n *\n * @access public\n */\n function resetConfig() {\n _config2.default.audio = new Audio();\n _config2.default.active_metadata = {};\n _config2.default.active_album = \"\";\n _config2.default.active_index = 0;\n _config2.default.active_playlist = null;\n _config2.default.playback_speed = 1.0;\n _config2.default.callbacks = {};\n _config2.default.songs = [];\n _config2.default.playlists = {};\n _config2.default.start_song = \"\";\n _config2.default.starting_playlist = \"\";\n _config2.default.starting_playlist_song = \"\";\n _config2.default.repeat = false;\n _config2.default.shuffle_list = {};\n _config2.default.shuffle_on = false;\n _config2.default.default_album_art = \"\";\n _config2.default.default_playlist_art = \"\";\n _config2.default.debug = false;\n _config2.default.volume = 0.5;\n _config2.default.pre_mute_volume = 0.5;\n _config2.default.volume_increment = 5;\n _config2.default.volume_decrement = 5;\n _config2.default.soundcloud_client = \"\";\n _config2.default.soundcloud_use_art = false;\n _config2.default.soundcloud_song_count = 0;\n _config2.default.soundcloud_songs_ready = 0;\n _config2.default.continue_next = true;\n }\n\n /**\n * Sets the state of the player.\n */\n function setPlayerState() {\n /*\n If paused and the current time is 0 the player is stopped.\n */\n if (_config2.default.audio.paused && _config2.default.audio.currentTime == 0) {\n _config2.default.player_state = \"stopped\";\n }\n\n /*\n If paused and the current time is greater than 0 the player is\n paused.\n */\n if (_config2.default.audio.paused && _config2.default.audio.currentTime > 0) {\n _config2.default.player_state = \"paused\";\n }\n\n /*\n If playing, the current state is playing.\n */\n if (!_config2.default.audio.paused) {\n _config2.default.player_state = \"playing\";\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n resetConfig: resetConfig,\n setPlayerState: setPlayerState\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = ConfigState;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * These methods help display the audio's meta data\n *\n * @module visual/MetaDataElements\n */\nvar MetaDataElements = function () {\n /**\n * Displays the active song's metadata. This is called after a song has\n * been changed. This method takes the active song and displays the\n * metadata. So once the new active song is set, we update all of the\n * screen elements.\n *\n * @access public\n */\n function displayMetaData() {\n /*\n Define the image meta data keys. These are managed separately\n since we aren't actually changing the inner HTML of these elements.\n */\n var imageMetaDataKeys = [\"cover_art_url\", \"station_art_url\", \"podcast_episode_cover_art_url\"];\n\n /*\n Get all of the song info elements\n */\n var songInfoElements = document.querySelectorAll(\"[data-amplitude-song-info]\");\n\n /*\n Iterate over all of the song info elements. We will either\n set these to the new values, or clear them if the active song\n doesn't have the info set.\n */\n for (var i = 0; i < songInfoElements.length; i++) {\n /*\n Get the info so we can check if the active meta data has the\n key.\n */\n var info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Grab the playlist and song index.\n */\n var playlist = songInfoElements[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = songInfoElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Ensure that we don't set any individual elements now. We set this with the\n sync meta data method. The reason we don't set them here is because\n all individual songs would get the now playing artwork. If the playlists\n match or the element is a main element meaning it doesn't\n belong to a playlist or a song, then we set the song info.\n */\n if (songIndex == null && (_config2.default.active_playlist == playlist || playlist == null && songIndex == null)) {\n /*\n If the active metadata has the key, then we set it,\n otherwise we clear it. If it's an image element then\n we default it to the default info if needed.\n */\n var val = _config2.default.active_metadata[info] != undefined ? _config2.default.active_metadata[info] : null;\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n val = val || _config2.default.default_album_art;\n songInfoElements[i].setAttribute(\"src\", val);\n } else {\n val = val || \"\";\n songInfoElements[i].innerHTML = val;\n }\n }\n }\n }\n\n /**\n * Displays the playlist meta data.\n */\n function displayPlaylistMetaData() {\n /*\n Define the image meta data keys. These are managed separately\n since we aren't actually changing the inner HTML of these elements.\n */\n var imageMetaDataKeys = [\"image_url\"];\n\n /*\n Get all of the playlist info elements\n */\n var playlistInfoElements = document.querySelectorAll(\"[data-amplitude-playlist-info]\");\n\n /*\n Iterate over all of the playlist info elements. We will either\n set these to the new values, or clear them if the active song\n doesn't have the info set.\n */\n for (var i = 0; i < playlistInfoElements.length; i++) {\n /*\n Get the info so we can check if the active meta data has the\n key.\n */\n var info = playlistInfoElements[i].getAttribute(\"data-amplitude-playlist-info\");\n var playlist = playlistInfoElements[i].getAttribute(\"data-amplitude-playlist\");\n\n if (_config2.default.playlists[playlist][info] != undefined) {\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n playlistInfoElements[i].setAttribute(\"src\", _config2.default.playlists[playlist][info]);\n } else {\n playlistInfoElements[i].innerHTML = _config2.default.playlists[playlist][info];\n }\n } else {\n /*\n We look for the default album art because\n the actual key didn't exist. If the default album\n art doesn't exist then we set the src attribute\n to null.\n */\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n if (_config2.default.default_playlist_art != \"\") {\n playlistInfoElements[i].setAttribute(\"src\", _config2.default.default_playlist_art);\n } else {\n playlistInfoElements[i].setAttribute(\"src\", \"\");\n }\n } else {\n playlistInfoElements[i].innerHTML = \"\";\n }\n }\n }\n }\n\n /**\n * Sets the first song in the playlist. This is used to fill in the meta\n * data in the playlist\n *\n * @param {object} song \t\t\t- The song we are setting to be the first song in the playlist\n * @param {string} playlist \t- Key of the playlist we are setting the first song in\n */\n function setFirstSongInPlaylist(song, playlist) {\n /*\n Define the image meta data keys. These are managed separately\n since we aren't actually changing the inner HTML of these elements.\n */\n var imageMetaDataKeys = [\"cover_art_url\", \"station_art_url\", \"podcast_episode_cover_art_url\"];\n\n /*\n Get all of the song info elements\n */\n var songInfoElements = document.querySelectorAll('[data-amplitude-song-info][data-amplitude-playlist=\"' + playlist + '\"]');\n\n /*\n Iterate over all of the song info elements. We will either\n set these to the new values, or clear them if the active song\n doesn't have the info set.\n */\n for (var i = 0; i < songInfoElements.length; i++) {\n /*\n Get the info so we can check if the active meta data has the\n key.\n */\n var info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Get the song info element playlist.\n */\n var elementPlaylist = songInfoElements[i].getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlists match or the element is a main element, then\n we set the song info.\n */\n if (elementPlaylist == playlist) {\n /*\n If the active metadata has the key, then we set it,\n otherwise we clear it. If it's an image element then\n we default it to the default info if needed.\n */\n if (song[info] != undefined) {\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n songInfoElements[i].setAttribute(\"src\", song[info]);\n } else {\n songInfoElements[i].innerHTML = song[info];\n }\n } else {\n /*\n We look for the default album art because\n the actual key didn't exist. If the default album\n art doesn't exist then we set the src attribute\n to null.\n */\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n if (song.default_album_art != \"\") {\n songInfoElements[i].setAttribute(\"src\", song.default_album_art);\n } else {\n songInfoElements[i].setAttribute(\"src\", \"\");\n }\n } else {\n songInfoElements[i].innerHTML = \"\";\n }\n }\n }\n }\n }\n\n /**\n * Sets the meta data for songs loaded in the songs array\n */\n function syncMetaData() {\n /*\n Define the image meta data keys. These are managed separately\n since we aren't actually changing the inner HTML of these elements.\n */\n var imageMetaDataKeys = [\"cover_art_url\", \"station_art_url\", \"podcast_episode_cover_art_url\"];\n\n /*\n Get all of the song info elements\n */\n var songInfoElements = document.querySelectorAll(\"[data-amplitude-song-info]\");\n\n /*\n Iterate over all of the song info elements. We will either\n set these to the new values, or clear them if the active song\n doesn't have the info set.\n */\n for (var i = 0; i < songInfoElements.length; i++) {\n var songIndex = songInfoElements[i].getAttribute(\"data-amplitude-song-index\");\n var playlist = songInfoElements[i].getAttribute(\"data-amplitude-playlist\");\n\n if (songIndex != null && playlist == null) {\n var info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Get the song info value referenced on the element. Depending on the type of\n element, we may need to fallback to another value when the direct value\n we want isn't found.\n i.e.\n data-amplitude-song-info=\"cover_art_url\" defaults to using the value\n of \"default_album_art\" when \"cover_art_url\" is missing on the song.\n */\n var val = _config2.default.songs[songIndex][info] != undefined ? _config2.default.songs[songIndex][info] : null;\n /*\n If it's an image meta data key, then we set the src attribute of\n the element. Otherwise we set the inner HTML of the element.\n */\n if (imageMetaDataKeys.indexOf(info) >= 0) {\n /*\n If this is an image meta data key and the individual song doesn't\n have the key, use the default_album_art\n */\n val = val || _config2.default.default_album_art;\n songInfoElements[i].setAttribute(\"src\", val);\n } else {\n songInfoElements[i].innerHTML = val;\n }\n }\n\n /*\n If the song index and playlist are not null, continue.\n */\n if (songIndex != null && playlist != null) {\n /*\n Get the info we are displaying.\n */\n var _info = songInfoElements[i].getAttribute(\"data-amplitude-song-info\");\n\n /*\n Set the meta data accordingly.\n */\n if (_config2.default.playlists[playlist].songs[songIndex][_info] != undefined) {\n if (imageMetaDataKeys.indexOf(_info) >= 0) {\n songInfoElements[i].setAttribute(\"src\", _config2.default.playlists[playlist].songs[songIndex][_info]);\n } else {\n songInfoElements[i].innerHTML = _config2.default.playlists[playlist].songs[songIndex][_info];\n }\n }\n }\n }\n\n /*\n Display the playlist meta data.\n */\n displayPlaylistMetaData();\n }\n\n /**\n * Returns publically facing methods\n */\n return {\n displayMetaData: displayMetaData,\n setFirstSongInPlaylist: setFirstSongInPlaylist,\n syncMetaData: syncMetaData,\n displayPlaylistMetaData: displayPlaylistMetaData\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = MetaDataElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the visual syncing to the state of the config for the repeat\n * elements.\n *\n * @module visual/RepeatElements\n */\nvar RepeatElements = function () {\n /**\n * Syncs repeat for all of the repeat buttons. Users\n * can apply styles to the 'amplitude-repeat-on' and\n * 'amplitude-repeat-off' classes. They represent the state\n * of the player.\n */\n function syncRepeat() {\n /*\n Gets all of the repeat classes\n */\n var repeatClasses = document.getElementsByClassName(\"amplitude-repeat\");\n\n /*\n Iterate over all of the repeat classes. If repeat is on,\n then add the 'amplitude-repeat-on' class and remove the\n 'amplitude-repeat-off' class. If it's off, then do the\n opposite.\n */\n for (var i = 0; i < repeatClasses.length; i++) {\n if (_config2.default.repeat) {\n repeatClasses[i].classList.add(\"amplitude-repeat-on\");\n repeatClasses[i].classList.remove(\"amplitude-repeat-off\");\n } else {\n repeatClasses[i].classList.remove(\"amplitude-repeat-on\");\n repeatClasses[i].classList.add(\"amplitude-repeat-off\");\n }\n }\n }\n\n /**\n * Syncs repeat for all of the playlist repeat buttons. Users\n * can apply styles to the `amplitude-repeat-on` and `amplitude-repeat-off`\n * classes. They repreent the state of the playlist in the player.\n */\n function syncRepeatPlaylist(playlist) {\n /*\n Gets all of the repeat buttons.\n */\n var repeatButtons = document.getElementsByClassName(\"amplitude-repeat\");\n\n /*\n Iterate over all of the repeat buttons\n */\n for (var i = 0; i < repeatButtons.length; i++) {\n /*\n Ensure that the repeat button belongs to matches the\n playlist we are syncing the state for.\n */\n if (repeatButtons[i].getAttribute(\"data-amplitude-playlist\") == playlist) {\n /*\n If the state of the playlist is shuffled on, true, then\n we add the 'amplitude-repeat-on' class and remove the\n 'amplitude-repeat-off' class. If the player is not shuffled\n then we do the opposite.\n */\n if (_config2.default.playlists[playlist].repeat) {\n repeatButtons[i].classList.add(\"amplitude-repeat-on\");\n repeatButtons[i].classList.remove(\"amplitude-repeat-off\");\n } else {\n repeatButtons[i].classList.add(\"amplitude-repeat-off\");\n repeatButtons[i].classList.remove(\"amplitude-repeat-on\");\n }\n }\n }\n }\n\n /**\n * Syncs repeat for all of the repeat song buttons. Users\n * can apply styles to the 'amplitude-repeat-song-on' and\n * 'amplitude-repeat-song-off' classes. They represent the state\n * of the player.\n */\n function syncRepeatSong() {\n /*\n Gets all of the repeat song classes\n */\n var repeatSongClasses = document.getElementsByClassName(\"amplitude-repeat-song\");\n\n /*\n Iterate over all of the repeat song classes. If repeat is on,\n then add the 'amplitude-repeat-song-on' class and remove the\n 'amplitude-repeat-song-off' class. If it's off, then do the\n opposite.\n */\n for (var i = 0; i < repeatSongClasses.length; i++) {\n if (_config2.default.repeat_song) {\n repeatSongClasses[i].classList.add(\"amplitude-repeat-song-on\");\n repeatSongClasses[i].classList.remove(\"amplitude-repeat-song-off\");\n } else {\n repeatSongClasses[i].classList.remove(\"amplitude-repeat-song-on\");\n repeatSongClasses[i].classList.add(\"amplitude-repeat-song-off\");\n }\n }\n }\n\n /*\n Returns the publically available methods.\n */\n return {\n syncRepeat: syncRepeat,\n syncRepeatPlaylist: syncRepeatPlaylist,\n syncRepeatSong: syncRepeatSong\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = RepeatElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Callback Utility\n *\n * @module utilities/callbacks\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Callbacks = function () {\n /**\n * Initializes the callbacks for the player.\n */\n function initialize() {\n /*\n Event: abort\n https://www.w3schools.com/tags/av_event_abort.asp\n */\n _config2.default.audio.addEventListener(\"abort\", function () {\n run(\"abort\");\n });\n\n /*\n Event: error\n https://www.w3schools.com/tags/av_event_error.asp\n */\n _config2.default.audio.addEventListener(\"error\", function () {\n run(\"error\");\n });\n\n /*\n Event: loadeddata\n https://www.w3schools.com/tags/av_event_loadeddata.asp\n */\n _config2.default.audio.addEventListener(\"loadeddata\", function () {\n run(\"loadeddata\");\n });\n\n /*\n Event: loadedmetadata\n https://www.w3schools.com/tags/av_event_loadedmetadata.asp\n */\n _config2.default.audio.addEventListener(\"loadedmetadata\", function () {\n run(\"loadedmetadata\");\n });\n\n /*\n Event: loadstart\n https://www.w3schools.com/tags/av_event_loadstart.asp\n */\n _config2.default.audio.addEventListener(\"loadstart\", function () {\n run(\"loadstart\");\n });\n\n /*\n Event: pause\n https://www.w3schools.com/tags/av_event_pause.asp\n */\n _config2.default.audio.addEventListener(\"pause\", function () {\n run(\"pause\");\n });\n\n /*\n Event: playing\n https://www.w3schools.com/tags/av_event_playing.asp\n */\n _config2.default.audio.addEventListener(\"playing\", function () {\n run(\"playing\");\n });\n\n /*\n Event: play\n https://www.w3schools.com/tags/av_event_play.asp\n */\n _config2.default.audio.addEventListener(\"play\", function () {\n run(\"play\");\n });\n\n /*\n Event: progress\n https://www.w3schools.com/tags/av_event_progress.asp\n */\n _config2.default.audio.addEventListener(\"progress\", function () {\n run(\"progress\");\n });\n\n /*\n Event: ratechange\n https://www.w3schools.com/tags/av_event_ratechange.asp\n */\n _config2.default.audio.addEventListener(\"ratechange\", function () {\n run(\"ratechange\");\n });\n\n /*\n Event: seeked\n https://www.w3schools.com/tags/av_event_seeked.asp\n */\n _config2.default.audio.addEventListener(\"seeked\", function () {\n run(\"seeked\");\n });\n\n /*\n Event: seeking\n https://www.w3schools.com/tags/av_event_seeking.asp\n */\n _config2.default.audio.addEventListener(\"seeking\", function () {\n run(\"seeking\");\n });\n\n /*\n Event: stalled\n https://www.w3schools.com/tags/av_event_stalled.asp\n */\n _config2.default.audio.addEventListener(\"stalled\", function () {\n run(\"stalled\");\n });\n\n /*\n Event: suspend\n https://www.w3schools.com/tags/av_event_suspend.asp\n */\n _config2.default.audio.addEventListener(\"suspend\", function () {\n run(\"suspend\");\n });\n\n /*\n Event: timeupdate\n https://www.w3schools.com/tags/av_event_timeupdate.asp\n */\n _config2.default.audio.addEventListener(\"timeupdate\", function () {\n run(\"timeupdate\");\n });\n\n /*\n Event: volumechange\n https://www.w3schools.com/tags/av_event_volumechange.asp\n */\n _config2.default.audio.addEventListener(\"volumechange\", function () {\n run(\"volumechange\");\n });\n\n /*\n Event: waiting\n https://www.w3schools.com/tags/av_event_waiting.asp\n */\n _config2.default.audio.addEventListener(\"waiting\", function () {\n run(\"waiting\");\n });\n\n /*\n Event: canplay\n https://www.w3schools.com/tags/av_event_canplay.asp\n */\n _config2.default.audio.addEventListener(\"canplay\", function () {\n run(\"canplay\");\n });\n\n /*\n Event: canplaythrough\n https://www.w3schools.com/tags/av_event_canplaythrough.asp\n */\n _config2.default.audio.addEventListener(\"canplaythrough\", function () {\n run(\"canplaythrough\");\n });\n\n /*\n Event: durationchange\n https://www.w3schools.com/tags/av_event_durationchange.asp\n */\n _config2.default.audio.addEventListener(\"durationchange\", function () {\n run(\"durationchange\");\n });\n\n /*\n Event: ended\n https://www.w3schools.com/tags/av_event_ended.asp\n */\n _config2.default.audio.addEventListener(\"ended\", function () {\n run(\"ended\");\n });\n }\n\n /**\n * Runs a user defined callback method\n *\n * Public Accessor: Callbacks.run( callbackName )\n *\n * @access public\n * @param {string} callbackName - The name of the callback we are going to run.\n */\n function run(callbackName) {\n /*\n Checks to see if a user defined a callback method for the\n callback we are running.\n */\n if (_config2.default.callbacks[callbackName]) {\n /*\n Build the callback function\n */\n var callbackFunction = _config2.default.callbacks[callbackName];\n\n /*\n Write a debug message stating the callback we are running\n */\n _debug2.default.writeMessage(\"Running Callback: \" + callbackName);\n\n /*\n Run the callback function and catch any errors\n */\n try {\n callbackFunction();\n } catch (error) {\n if (error.message == \"CANCEL EVENT\") {\n throw error;\n } else {\n _debug2.default.writeMessage(\"Callback error: \" + error.message);\n }\n }\n }\n }\n\n return {\n initialize: initialize,\n run: run\n };\n}();\n\n/**\n * Imports the debug module\n * @module utilities/debug\n */\nexports.default = Callbacks;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * Handles the visual state for all of the mute elements.\n *\n * @module visual/MuteElements\n */\nvar MuteElements = function () {\n /**\n * Syncs mute for all of the mute buttons. This represents the\n * state of the player if it's muted or not.\n *\n * @access public\n * @param {string} state \t- The muted state of the player.\n */\n function setMuted(state) {\n /*\n Get all of the mute buttons.\n */\n var muteClasses = document.getElementsByClassName(\"amplitude-mute\");\n\n /*\n Iterate over all of the mute classes. If the state of the player\n is not-muted then we add the amplitude-not-muted classe and remove\n the amplitude muted class otherwise we do the opposite.\n */\n for (var i = 0; i < muteClasses.length; i++) {\n if (!state) {\n muteClasses[i].classList.add(\"amplitude-not-muted\");\n muteClasses[i].classList.remove(\"amplitude-muted\");\n } else {\n muteClasses[i].classList.remove(\"amplitude-not-muted\");\n muteClasses[i].classList.add(\"amplitude-muted\");\n }\n }\n }\n\n return {\n setMuted: setMuted\n };\n}();\n\nexports.default = MuteElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Keeps the volume slider elements in sync.\n * @module visual/VolumeSliderElements\n */\nvar VolumeSliderElements = function () {\n /**\n * Visually syncs the volume sliders so they are all the same if there\n * are more than one.\n *\n * @access public\n */\n function sync() {\n var volumeSliders = document.getElementsByClassName(\"amplitude-volume-slider\");\n\n /*\n Iterates over all of the volume sliders for the song, setting the value\n to the config value.\n */\n for (var i = 0; i < volumeSliders.length; i++) {\n volumeSliders[i].value = _config2.default.audio.volume * 100;\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = VolumeSliderElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Repeater utility. Handles setting the repeat for all scenarios.\n *\n * @module utilities/Repeater\n */\nvar Repeater = function () {\n /**\n * Sets the state of the repeat for a song.\n *\n * @access public\n * @param {boolean} repeat - A boolean representing whether the repeat should be on or off\n */\n function setRepeat(repeat) {\n /*\n Set the global repeat to be toggled\n */\n _config2.default.repeat = repeat;\n }\n\n /**\n * Sets the state of the repeat for a playlist.\n *\n * @access public\n * @param {boolean} repeat - A boolean representing whether the repeat should be on or off\n * @param {string} playlist - The key of the playlist for repeating\n */\n function setRepeatPlaylist(repeat, playlist) {\n /*\n Set the playlist repeat to be toggled.\n */\n _config2.default.playlists[playlist].repeat = repeat;\n }\n\n /**\n * Sets the state of the repeat song\n *\n * @access public\n * @param {boolean} repeat - A boolean representing whether the repeat shoudl be on or off for the song.\n */\n function setRepeatSong(repeat) {\n _config2.default.repeat_song = repeat;\n }\n\n /*\n Returns the public facing methods\n */\n return {\n setRepeat: setRepeat,\n setRepeatPlaylist: setRepeatPlaylist,\n setRepeatSong: setRepeatSong\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = Repeater;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Shuffle Module. Handles all of the shuffling functionality for\n * AmplitudeJS\n *\n * @module utilities/Shuffler\n */\nvar Shuffler = function () {\n /**\n * Sets the shuffle state globally\n *\n * @access public\n * @param {boolean} shuffle - True when we are shuffling, false when we turn it off.\n */\n function setShuffle(shuffle) {\n _config2.default.shuffle_on = shuffle;\n\n if (shuffle) {\n shuffleSongs();\n } else {\n _config2.default.shuffle_list = [];\n }\n }\n\n /**\n * Toggles the shuffle status globally.\n *\n * @access public\n */\n function toggleShuffle() {\n /*\n If shuffle is on, we toggle it off. If shuffle is off, we\n toggle on.\n */\n if (_config2.default.shuffle_on) {\n _config2.default.shuffle_on = false;\n _config2.default.shuffle_list = [];\n } else {\n _config2.default.shuffle_on = true;\n shuffleSongs();\n }\n }\n\n /**\n * Sets the shuffle state for a playlist\n *\n * @access public\n * @param {string} playlist The key of the playlist we are shuffling.\n * @param {boolean} shuffle True when we are shuffling the playlist, false when we turn off shuffle.\n */\n function setShufflePlaylist(playlist, shuffle) {\n _config2.default.playlists[playlist].shuffle = shuffle;\n\n if (_config2.default.playlists[playlist].shuffle) {\n shufflePlaylistSongs(playlist);\n } else {\n _config2.default.playlists[playlist].shuffle_list = [];\n }\n }\n\n /**\n * Sets the shuffle state for a playlist\n *\n * @access public\n * @param {string} playlist The key of the playlist we are shuffling.\n */\n function toggleShufflePlaylist(playlist) {\n /*\n If the playlist shuffled is on, we toggle it off. If the\n playlist shuffled is off, we toggle it on.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n _config2.default.playlists[playlist].shuffle = false;\n _config2.default.playlists[playlist].shuffle_list = [];\n } else {\n _config2.default.playlists[playlist].shuffle = true;\n shufflePlaylistSongs(playlist);\n }\n }\n\n /**\n * Shuffles individual songs in the config\n * Based off of: http://www.codinghorror.com/blog/2007/12/the-danger-of-naivete.html\n *\n * Public Accessor: Shuffle.shuffleSongs()\n *\n * @access public\n */\n function shuffleSongs() {\n /*\n Builds a temporary array with the length of the config.\n */\n var shuffleTemp = new Array(_config2.default.songs.length);\n\n /*\n Set the temporary array equal to the songs array.\n */\n for (var i = 0; i < _config2.default.songs.length; i++) {\n shuffleTemp[i] = _config2.default.songs[i];\n }\n\n /*\n Iterate ove rthe songs and generate random numbers to\n swap the indexes of the shuffle array.\n */\n for (var _i = _config2.default.songs.length - 1; _i > 0; _i--) {\n var randNum = Math.floor(Math.random() * _config2.default.songs.length + 1);\n shuffleSwap(shuffleTemp, _i, randNum - 1);\n }\n\n /*\n Set the shuffle list to the shuffle temp.\n */\n _config2.default.shuffle_list = shuffleTemp;\n }\n\n /**\n * Shuffle songs in a playlist\n *\n * Public Accessor: Shuffle.shufflePlaylistSongs( playlist )\n *\n * @access public\n * @param {string} playlist - The playlist we are shuffling.\n */\n function shufflePlaylistSongs(playlist) {\n /*\n Builds a temporary array with the length of the playlist songs.\n */\n var shuffleTemp = new Array(_config2.default.playlists[playlist].songs.length);\n\n /*\n Set the temporary array equal to the playlist array.\n */\n for (var i = 0; i < _config2.default.playlists[playlist].songs.length; i++) {\n shuffleTemp[i] = _config2.default.playlists[playlist].songs[i];\n }\n\n /*\n Iterate ove rthe songs and generate random numbers to\n swap the indexes of the shuffle array.\n */\n for (var _i2 = _config2.default.playlists[playlist].songs.length - 1; _i2 > 0; _i2--) {\n var randNum = Math.floor(Math.random() * _config2.default.playlists[playlist].songs.length + 1);\n shuffleSwap(shuffleTemp, _i2, randNum - 1);\n }\n\n /*\n Set the shuffle list to the shuffle temp.\n */\n _config2.default.playlists[playlist].shuffle_list = shuffleTemp;\n }\n\n /**\n * Swaps and randomizes the song shuffle.\n *\n * @access private\n * @param {object} shuffleList \t- The list of songs that is going to be shuffled\n * @param {number} original \t\t- The original index of he song in the songs array\n * @param {number} random \t\t\t- The randomized index that will be the new index of the song in the shuffle array.\n */\n function shuffleSwap(shuffleList, original, random) {\n var temp = shuffleList[original];\n shuffleList[original] = shuffleList[random];\n shuffleList[random] = temp;\n }\n\n /**\n * Returns public facing methods\n */\n return {\n setShuffle: setShuffle,\n toggleShuffle: toggleShuffle,\n setShufflePlaylist: setShufflePlaylist,\n toggleShufflePlaylist: toggleShufflePlaylist,\n shuffleSongs: shuffleSongs,\n shufflePlaylistSongs: shufflePlaylistSongs\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = Shuffler;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Defines the visual representation of AmplitudeJS song slider elements.\n * @module visual/SongSliderElements\n */\nvar SongSliderElements = function () {\n /**\n * Syncs all of the song slider elements.\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {string} playlist \t- The playlist we are setting the song slider for.\n * @param {number} songIndex \t- The index of the song we are adjusting the song slider for.\n */\n function sync(location, playlist, songIndex) {\n syncMain(location);\n syncPlaylist(location, playlist);\n syncSong(location, songIndex);\n syncSongInPlaylist(location, playlist);\n }\n\n /**\n * Syncs the main slider location\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n */\n function syncMain(location) {\n /*\n Ensure we have a location that's a number\n */\n location = !isNaN(location) ? location : 0;\n\n /*\n Gets the main song sliders\n */\n var mainSongSliders = document.querySelectorAll(\".amplitude-song-slider\");\n\n /*\n Iterates over all of the main sliders and sets the value to the\n percentage of the song played.\n */\n for (var i = 0; i < mainSongSliders.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n var playlist = mainSongSliders[i].getAttribute(\"data-amplitude-playlist\");\n var song = mainSongSliders[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n This method is responsible for only the global elements,\n so we make sure there are no playlist or songs defined on\n the element.\n */\n if (playlist == null && song == null) {\n mainSongSliders[i].value = location;\n }\n }\n }\n\n /**\n * Syncs playlist song slider locations\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {string} playlist \t- The playlist we are setting the song slider for.\n */\n function syncPlaylist(location, playlist) {\n /*\n Ensure we have a location that's a number\n */\n location = !isNaN(location) ? location : 0;\n\n /*\n Gets the playlist song sliders\n */\n var playlistSongSliders = document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist=\"' + playlist + '\"]');\n\n /*\n Iterates over all of the playlist sliders and sets the value to the\n percentage of the song played.\n */\n for (var i = 0; i < playlistSongSliders.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n var playlistAttribute = playlistSongSliders[i].getAttribute(\"data-amplitude-playlist\");\n var songAttribute = playlistSongSliders[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n This method is responsible for only the playlist elements,\n so we make sure the playlist attribute matches what is passed\n in.\n */\n if (playlistAttribute == playlist && songAttribute == null) {\n playlistSongSliders[i].value = location;\n }\n }\n }\n\n /**\n * Syncs individual song slider locations\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {number} songIndex \t- The index of the song we are adjusting the song slider for.\n */\n function syncSong(location, songIndex) {\n /*\n We only want to sync song sliders if the playlist is null.\n */\n if (_config2.default.active_playlist == null) {\n /*\n Ensure we have a location that's a number\n */\n location = !isNaN(location) ? location : 0;\n\n /*\n Gets the individual song sliders\n */\n var songSliders = document.querySelectorAll('.amplitude-song-slider[data-amplitude-song-index=\"' + songIndex + '\"]');\n\n /*\n Iterates over all of the individual song sliders and sets the value\n to the percentage of the song played.\n */\n for (var i = 0; i < songSliders.length; i++) {\n /*\n Grab the playlist and song attributes from the element.\n */\n var playlistAttribute = songSliders[i].getAttribute(\"data-amplitude-playlist\");\n var songAttribute = songSliders[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n This method is responsible for only the playlist elements,\n so we make sure the playlist attribute matches what is passed\n in.\n */\n if (playlistAttribute == null && songAttribute == songIndex) {\n songSliders[i].value = location;\n }\n }\n }\n }\n\n /**\n * Syncs individual song slider locations\n *\n * @access public\n * @param {number} location \t- The location of the song as a percentage.\n * @param {string} playlist \t- The playlist we are setting the song slider for.\n */\n function syncSongInPlaylist(location, playlist) {\n /*\n Ensure we have a location that's a number\n */\n location = !isNaN(location) ? location : 0;\n\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n /*\n Gets the song in playlist sliders\n */\n var songInPlaylistSliders = document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist=\"' + playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n /*\n Iterates over all of the song in playlist sliders and sets the value\n to the percentage of the song played.\n */\n for (var i = 0; i < songInPlaylistSliders.length; i++) {\n songInPlaylistSliders[i].value = location;\n }\n }\n\n /**\n * Visually syncs the song sliders back to 0. This usually happens when\n * a song has changed, we ensure that all song sliders get reset.\n *\n * @access public\n */\n function resetElements() {\n var songSliders = document.getElementsByClassName(\"amplitude-song-slider\");\n\n /*\n Iterate over all of the song sliders and set them to\n 0 essentially resetting them.\n */\n for (var i = 0; i < songSliders.length; i++) {\n songSliders[i].value = 0;\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync,\n syncMain: syncMain,\n syncPlaylist: syncPlaylist,\n syncSong: syncSong,\n syncSongInPlaylist: syncSongInPlaylist,\n resetElements: resetElements\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = SongSliderElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _currentTimeElements = __webpack_require__(53);\n\nvar _currentTimeElements2 = _interopRequireDefault(_currentTimeElements);\n\nvar _currentHourElements = __webpack_require__(50);\n\nvar _currentHourElements2 = _interopRequireDefault(_currentHourElements);\n\nvar _currentMinuteElements = __webpack_require__(51);\n\nvar _currentMinuteElements2 = _interopRequireDefault(_currentMinuteElements);\n\nvar _currentSecondElements = __webpack_require__(52);\n\nvar _currentSecondElements2 = _interopRequireDefault(_currentSecondElements);\n\nvar _durationCountDownTimeElements = __webpack_require__(54);\n\nvar _durationCountDownTimeElements2 = _interopRequireDefault(_durationCountDownTimeElements);\n\nvar _durationHourElements = __webpack_require__(55);\n\nvar _durationHourElements2 = _interopRequireDefault(_durationHourElements);\n\nvar _durationMinuteElements = __webpack_require__(56);\n\nvar _durationMinuteElements2 = _interopRequireDefault(_durationMinuteElements);\n\nvar _durationSecondElements = __webpack_require__(57);\n\nvar _durationSecondElements2 = _interopRequireDefault(_durationSecondElements);\n\nvar _durationTimeElements = __webpack_require__(58);\n\nvar _durationTimeElements2 = _interopRequireDefault(_durationTimeElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Time Elements Interface. This allows us to update all of the sub time elements\n * through one central point.\n * @module visual/TimeElements\n */\n\n\n/**\n * Imports the AmplitudeJS Duration Second Elements\n * @module visual/time/DurationSecondElements\n */\n\n\n/**\n * Imports the AmplitudeJS Duration Hour Elements\n * @module visual/time/DurationHourElements\n */\n\n\n/**\n * Imports the AmplitudeJS Current Second Elements\n * @module visual/time/CurrentTimeElements\n */\n\n\n/**\n * Imports the AmplitudeJS Current Hour Elements\n * @module visual/time/CurrentHourElements\n */\nvar TimeElements = function () {\n /**\n * Resets the current times.\n */\n function resetCurrentTimes() {\n _currentTimeElements2.default.resetTimes();\n _currentHourElements2.default.resetTimes();\n _currentMinuteElements2.default.resetTimes();\n _currentSecondElements2.default.resetTimes();\n }\n\n /**\n * Syncs the current time elements to the time provided.\n *\n * @param {Object} currentTime - An object representing the current time of the audio.\n */\n function syncCurrentTimes(currentTime) {\n _currentTimeElements2.default.sync(currentTime);\n _currentHourElements2.default.sync(currentTime.hours);\n _currentMinuteElements2.default.sync(currentTime.minutes);\n _currentSecondElements2.default.sync(currentTime.seconds);\n }\n\n /**\n * Resets the duration times.\n */\n function resetDurationTimes() {\n _durationCountDownTimeElements2.default.resetTimes();\n _durationHourElements2.default.resetTimes();\n _durationMinuteElements2.default.resetTimes();\n _durationSecondElements2.default.resetTimes();\n _durationTimeElements2.default.resetTimes();\n }\n\n /**\n * Syncs the duration times to the times provided.\n *\n * @param {Object} currentTime - An object representing the current time of the audio.\n * @param {Object} songDuration - An object representing the duration of the audio\n */\n function syncDurationTimes(currentTime, songDuration) {\n _durationCountDownTimeElements2.default.sync(currentTime, songDuration);\n _durationTimeElements2.default.sync(songDuration);\n _durationHourElements2.default.sync(songDuration.hours);\n _durationMinuteElements2.default.sync(songDuration.minutes);\n _durationSecondElements2.default.sync(songDuration.seconds);\n }\n\n /**\n * Returns the publically accessible methods.\n */\n return {\n resetCurrentTimes: resetCurrentTimes,\n syncCurrentTimes: syncCurrentTimes,\n resetDurationTimes: resetDurationTimes,\n syncDurationTimes: syncDurationTimes\n };\n}();\n\n/**\n * Imports the AmplitudeJS Duration Time Elements\n * @module visual/time/DurationTimeElements\n */\n\n\n/**\n * Imports the AmplitudeJS Duration Minute Elements\n * @module visual/time/DurationMinuteElements\n */\n\n\n/**\n * Imports the AmplitudeJS Duration Count Down Time Elements\n * @module visual/time/DurationCountDownTimeElements\n */\n\n\n/**\n * Imports the AmplitudeJS Current Minute Elements\n * @module visual/time/CurrentMinuteElements\n */\n/**\n * Imports the AmplitudeJS Current Time\n * @module visual/time/CurrentTimeElements\n */\nexports.default = TimeElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the visualizations elements.\n *\n * @module Visualizations\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Visualizations = function () {\n /**\n * Runs all of the visualizations on the screen.\n */\n function run() {\n /*\n Get all of the visualization elements on the page\n */\n var visualizationElements = document.querySelectorAll(\".amplitude-visualization\");\n\n /*\n If the web audio API is available, we display the visualizations.\n */\n if (_config2.default.web_audio_api_available) {\n /*\n If the visualization has not started, there are visualizations available,\n and we have at least one visualization element, then we continue.\n */\n if (Object.keys(_config2.default.visualizations.available).length > 0 && visualizationElements.length > 0) {\n /*\n Iterate over all of the visualizations on the page and activate the\n ones we need.\n */\n for (var i = 0; i < visualizationElements.length; i++) {\n /*\n Grab the playlist and song attributes from the visualization to\n determine which one we run.\n */\n var playlist = visualizationElements[i].getAttribute(\"data-amplitude-playlist\");\n var song = visualizationElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n If the playlist and song are null, it's a global visualization element.\n */\n if (playlist == null && song == null) {\n runGlobalVisualization(visualizationElements[i]);\n }\n\n /*\n if the playlist is not null and the song is null it's a playlist visualization\n element.\n */\n if (playlist != null && song == null) {\n runPlaylistVisualization(visualizationElements[i], playlist);\n }\n\n /*\n If the playlist is null and the song is not null it's a song visualization element.\n */\n if (playlist == null && song != null) {\n runSongVisualization(visualizationElements[i], song);\n }\n\n /*\n If the playlist and song are not null then it's a song in playlist visualization\n element.\n */\n if (playlist != null && song != null) {\n runSongInPlaylistVisualization(visualizationElements[i], playlist, song);\n }\n }\n }\n } else {\n displayBackups();\n }\n }\n\n /**\n * Runs a global visualization\n *\n * @param {Node} element The container element that handles the visualization.\n */\n function runGlobalVisualization(element) {\n /*\n Gets the global visualization index and the active song visualization indexes\n so we know which visualization to use. The song will override the global\n */\n var globalVisualizationIndex = _config2.default.visualization;\n var activeSongVisualizationIndex = _config2.default.active_index != null ? _config2.default.songs[_config2.default.active_index].visualization : _config2.default.playlists[_config2.default.active_playlist].songs[_config2.default.playlists[_config2.default.active_playlist].active_index].visualization;\n\n /*\n If the active song visualization is defined and the visualization exists,\n use that visualization.\n */\n if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the user defined a global visualization, use that one.\n */\n } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n\n /*\n If the user didn't define a global visualization, use the first visualization\n registered if there is one.\n */\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n\n /**\n * Run a specific playlist visualization.\n *\n * @param {Node} element The container element that handles the visualization.\n * @param {string} playlist The key of the playlist we are running the visualization for.\n */\n function runPlaylistVisualization(element, playlist) {\n /*\n If the playlist is equal to the active playlist, then we continue.\n */\n if (playlist == _config2.default.active_playlist) {\n /*\n Checks if the song has a visualization and that visualization exists,\n run that visualization.\n */\n var activeSongVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].songs[_config2.default.playlists[_config2.default.active_playlist].active_index].visualization;\n var activePlaylistVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].visualization;\n var globalVisualizationIndex = _config2.default.visualization;\n\n /*\n If the actual song has a visualization, we run that.\n */\n if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the actual playlist has a visualization, run that.\n */\n } else if (activePlaylistVisualizationIndex != undefined && _config2.default.visualizations.available[activePlaylistVisualizationIndex] != undefined) {\n addToActiveVisualizations(activePlaylistVisualizationIndex, element);\n\n /*\n If a global visualization is defined, run that.\n */\n } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n }\n\n /**\n * Run a song specific visualization.\n *\n * @param {Node} element The container element that handles the visualization.\n * @param {string} song The song index that we are running the visualization for.\n */\n function runSongVisualization(element, song) {\n /*\n If the song is equal to the active song, then we continue.\n */\n if (song == _config2.default.active_index) {\n /*\n Get the indexes of the song\n */\n var activeSongVisualizationIndex = _config2.default.songs[_config2.default.active_index].visualization;\n var globalVisualizationIndex = _config2.default.visualization;\n\n /*\n If the song has a visualization, run that.\n */\n if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the global visualization is set, use that.\n */\n } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n }\n\n /**\n * Run a song in playlist visualization.\n *\n * @param {Node} element - The element containing the visualization.\n * @param {string} playlist - The string of the playlist key.\n * @param {index} song - The index of the song in the playlist.\n */\n function runSongInPlaylistVisualization(element, playlist, song) {\n /*\n If the playlist is the same as the active playlist and the active\n index of the song is the same as the song, then we continue.\n */\n if (playlist == _config2.default.active_playlist && _config2.default.playlists[playlist].active_index == song) {\n /*\n Checks if the song has a visualization and that visualization exists,\n run that visualization.\n */\n var activeSongVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].songs[_config2.default.playlists[_config2.default.active_playlist].active_index].visualization;\n var activePlaylistVisualizationIndex = _config2.default.playlists[_config2.default.active_playlist].visualization;\n var globalVisualizationIndex = _config2.default.visualization;\n\n /*\n If the active song has a visualization, we use that.\n */\n if (activeSongVisualizationIndex != undefined && _config2.default.visualizations.available[activeSongVisualizationIndex] != undefined) {\n addToActiveVisualizations(activeSongVisualizationIndex, element);\n\n /*\n If the active playlist has a visualization, we use that.\n */\n } else if (activePlaylistVisualizationIndex != undefined && _config2.default.visualizations.available[activePlaylistVisualizationIndex] != undefined) {\n addToActiveVisualizations(activePlaylistVisualizationIndex, element);\n\n /*\n If the global visualization has been set, we use that.\n */\n } else if (globalVisualizationIndex != undefined && _config2.default.visualizations.available[globalVisualizationIndex] != undefined) {\n addToActiveVisualizations(globalVisualizationIndex, element);\n } else {\n /*\n Grab the first registered visualization. If it exists, use that one.\n */\n var firstVisualization = Object.keys(_config2.default.visualizations.available).length > 0 ? Object.keys(_config2.default.visualizations.available)[0] : null;\n\n if (firstVisualization != null) {\n addToActiveVisualizations(firstVisualization, element);\n }\n }\n }\n }\n\n /**\n * Add a visualization to the array of active visualizations.\n *\n * @param {string} key - The key of the active visualization.\n * @param {Node} element - The element that the visualization will be applied to.\n */\n function addToActiveVisualizations(key, element) {\n var visualization = new _config2.default.visualizations.available[key][\"object\"]();\n visualization.setPreferences(_config2.default.visualizations.available[key][\"preferences\"]);\n visualization.startVisualization(element);\n _config2.default.visualizations.active.push(visualization);\n }\n\n /**\n * Stops all active visualizations.\n */\n function stop() {\n /*\n Iterates over all of the visualizations and stop the visualization.\n */\n for (var i = 0; i < _config2.default.visualizations.active.length; i++) {\n _config2.default.visualizations.active[i].stopVisualization();\n }\n\n /*\n Clear the active visualizations.\n */\n _config2.default.visualizations.active = [];\n }\n\n /**\n * Registers any visualization we can use.\n *\n * @param {object} visualization The visualization object itself\n * @param {object} preferences User preferences overrides.\n */\n function register(visualization, preferences) {\n /*\n Initialize the new visualization.\n */\n var newVisualization = new visualization();\n\n /*\n Adds the visualization to the global config so it knows\n it can be used when playing songs.\n getID is a public function for getting a visualization's id.\n It becomes the key to access the visualization.\n */\n _config2.default.visualizations.available[newVisualization.getID()] = new Array();\n _config2.default.visualizations.available[newVisualization.getID()][\"object\"] = visualization;\n _config2.default.visualizations.available[newVisualization.getID()][\"preferences\"] = preferences;\n }\n\n /**\n * Displays the backups for the visualizations.\n */\n function displayBackups() {\n /*\n Get all of the visualization elements on the page\n */\n var visualizationElements = document.querySelectorAll(\".amplitude-visualization\");\n\n if (visualizationElements.length > 0) {\n for (var x = 0; x < visualizationElements.length; x++) {\n /*\n Grab the playlist and song attributes from the visualization to\n determine which one we run.\n */\n var playlist = visualizationElements[x].getAttribute(\"data-amplitude-playlist\");\n var song = visualizationElements[x].getAttribute(\"data-amplitude-song-index\");\n\n /*\n If the playlist and song are null, it's a global visualization element.\n */\n if (playlist == null && song == null) {\n displayGlobalBackup(visualizationElements[x]);\n }\n\n /*\n if the playlist is not null and the song is null it's a playlist visualization\n element.\n */\n if (playlist != null && song == null) {\n displayPlaylistBackup(visualizationElements[x], playlist);\n }\n\n /*\n If the playlist is null and the song is not null it's a song visualization element.\n */\n if (playlist == null && song != null) {\n displaySongBackup(visualizationElements[x], song);\n }\n\n /*\n If the playlist and song are not null then it's a song in playlist visualization\n element.\n */\n if (playlist != null && song != null) {\n displaySongInPlaylistBackup(visualizationElements[x], playlist, song);\n }\n }\n }\n }\n\n /**\n * Displays the global backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displayGlobalBackup(element) {\n element.style.backgroundImage = \"url(\" + _config2.default.active_metadata.cover_art_url + \")\";\n }\n\n /**\n * Displays the playlist backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displayPlaylistBackup(element, playlist) {\n if (_config2.default.active_playlist == playlist) {\n element.style.backgroundImage = \"url(\" + _config2.default.active_metadata.cover_art_url + \")\";\n }\n }\n\n /**\n * Displays the song backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displaySongBackup(element, song) {\n if (_config2.default.active_index == song) {\n element.style.backgroundImage = \"url(\" + _config2.default.active_metadata.cover_art_url + \")\";\n }\n }\n\n /**\n * Displays the song in playlist backup which is the cover art of the image in the\n * visualization container.\n *\n * @param {node} element - The element we are adding the background image to.\n */\n function displaySongInPlaylistBackup(element, playlist, song) {\n if (_config2.default.active_playlist == playlist && _config2.default.playlists[active_playlist].active_index == song) {\n element.style.backgroundImage = \"url(\" + _config2.default.active_metadata.cover_art_url + \")\";\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n run: run,\n stop: stop,\n register: register\n };\n}();\n\n/**\n * Imports the debug module\n * @module utilities/Debug\n */\nexports.default = Visualizations;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _init = __webpack_require__(21);\n\nvar _init2 = _interopRequireDefault(_init);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * These helpers wrap around the basic methods of the Soundcloud API\n * and get the information we need from SoundCloud to make the songs\n * streamable through Amplitude\n *\n * @module soundcloud/SoundCloud\n */\n/**\n * Imports the config module\n * @module config\n */\nvar SoundCloud = function () {\n /**\n * Defines the temporary user config used while we configure soundcloud\n * @type {object}\n */\n var tempUserConfig = {};\n\n /**\n * Loads the soundcloud SDK for use with Amplitude so the user doesn't have\n * to load it themselves.\n * With help from: http://stackoverflow.com/questions/950087/include-a-javascript-file-in-another-javascript-file\n *\n * @access public\n * @param {object} userConfig \t- The config defined by the user for AmplitudeJS\n */\n function loadSoundCloud(userConfig) {\n /*\n Sets the temporary config to the config passed by the user so we can make changes\n and not break the actual config.\n */\n tempUserConfig = userConfig;\n\n /*\n Gets the head tag for the document and create a script element.\n */\n var head = document.getElementsByTagName(\"head\")[0];\n var script = document.createElement(\"script\");\n\n script.type = \"text/javascript\";\n\n /*\n URL to the remote soundcloud SDK\n */\n script.src = \"https://connect.soundcloud.com/sdk.js\";\n script.onreadystatechange = initSoundcloud;\n script.onload = initSoundcloud;\n\n /*\n Add the script to the head of the document.\n */\n head.appendChild(script);\n }\n\n /**\n * Initializes soundcloud with the key provided.\n *\n * @access private\n */\n function initSoundcloud() {\n /*\n Calls the SoundCloud initialize function\n from their API and sends it the client_id\n that the user passed in.\n */\n SC.initialize({\n client_id: _config2.default.soundcloud_client\n });\n\n /*\n Gets the streamable URLs to run through Amplitue. This is\n VERY important since Amplitude can't stream the copy and pasted\n link from the SoundCloud page, but can resolve the streaming\n URLs from the link.\n */\n getStreamableURLs();\n }\n\n /**\n * Gets the streamable URL from the URL provided for\n * all of the soundcloud links. This will loop through\n * and set all of the information for the soundcloud\n * urls.\n *\n * @access private\n */\n function getStreamableURLs() {\n /*\n Define the regex to find the soundcloud URLs\n */\n var soundcloud_regex = /^https?:\\/\\/(soundcloud.com|snd.sc)\\/(.*)$/;\n\n for (var i = 0; i < _config2.default.songs.length; i++) {\n /*\n If the URL matches soundcloud, we grab\n that url and get the streamable link\n if there is one.\n */\n if (_config2.default.songs[i].url.match(soundcloud_regex)) {\n _config2.default.soundcloud_song_count++;\n resolveStreamable(_config2.default.songs[i].url, i);\n }\n }\n }\n\n /**\n * Resolves an individual streamable URL.\n *\n * @param {string} url - The URL of the SoundCloud song to get the streamable URL from.\n * @param {string} playlist - The playlist we are getting the streamable URL for.\n * @param {Integer} index - The index of the song in the playlist or the songs array.\n * @param {boolean} addToShuffleList - Whether we add to the shuffle list for the songs or playlist.\n *\n */\n function resolveIndividualStreamableURL(url, playlist, index) {\n var addToShuffleList = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n SC.get(\"/resolve/?url=\" + url, function (sound) {\n /*\n If streamable we get the url and bind the client ID to the end\n so Amplitude can just stream the song normally. We then overwrite\n the url the user provided with the streamable URL.\n */\n if (sound.streamable) {\n if (playlist != null) {\n _config2.default.playlists[playlist].songs[index].url = sound.stream_url + \"?client_id=\" + _config2.default.soundcloud_client;\n\n if (addToShuffleList) {\n _config2.default.playlists[playlist].shuffle_list[index].url = sound.stream_url + \"?client_id=\" + _config2.default.soundcloud_client;\n }\n /*\n If the user want's to use soundcloud art, we overwrite the\n cover_art_url with the soundcloud artwork url.\n */\n if (_config2.default.soundcloud_use_art) {\n _config2.default.playlists[playlist].songs[index].cover_art_url = sound.artwork_url;\n\n if (addToShuffleList) {\n _config2.default.playlists[playlist].shuffle_list[index].cover_art_url = sound.artwork_url;\n }\n }\n\n /*\n Grab the extra metadata from soundcloud and bind it to the\n song. The user can get this through the public function:\n getActiveSongMetadata\n */\n _config2.default.playlists[playlist].songs[index].soundcloud_data = sound;\n\n if (addToShuffleList) {\n _config2.default.playlists[playlist].shuffle_list[index].soundcloud_data = sound;\n }\n } else {\n _config2.default.songs[index].url = sound.stream_url + \"?client_id=\" + _config2.default.soundcloud_client;\n\n if (addToShuffleList) {\n _config2.default.shuffle_list[index].stream_url + \"?client_id=\" + _config2.default.soundcloud_client;\n }\n\n /*\n If the user want's to use soundcloud art, we overwrite the\n cover_art_url with the soundcloud artwork url.\n */\n if (_config2.default.soundcloud_use_art) {\n _config2.default.songs[index].cover_art_url = sound.artwork_url;\n\n if (addToShuffleList) {\n _config2.default.shuffle_list[index].cover_art_url = sound.artwork_url;\n }\n }\n\n /*\n Grab the extra metadata from soundcloud and bind it to the\n song. The user can get this through the public function:\n getActiveSongMetadata\n */\n _config2.default.songs[index].soundcloud_data = sound;\n\n if (addToShuffleList) {\n _config2.default.shuffle_list[index].soundcloud_data = sound;\n }\n }\n } else {\n if (playlist != null) {\n AmplitudeHelpers.writeDebugMessage(_config2.default.playlists[playlist].songs[index].name + \" by \" + _config2.default.playlists[playlist].songs[index].artist + \" is not streamable by the Soundcloud API\");\n } else {\n /*\n If not streamable, then we print a message to the user stating\n that the song with name X and artist X is not streamable. This\n gets printed ONLY if they have debug turned on.\n */\n AmplitudeHelpers.writeDebugMessage(_config2.default.songs[index].name + \" by \" + _config2.default.songs[index].artist + \" is not streamable by the Soundcloud API\");\n }\n }\n });\n }\n\n /**\n * Due to Soundcloud SDK being asynchronous, we need to scope the\n * index of the song in another function. The privateGetSoundcloudStreamableURLs\n * function does the actual iteration and scoping.\n *\n * @access private\n * @param {string} url \t\t- URL of the soundcloud song\n * @param {number} index \t- The index of the soundcloud song in the songs array.\n */\n function resolveStreamable(url, index) {\n SC.get(\"/resolve/?url=\" + url, function (sound) {\n /*\n If streamable we get the url and bind the client ID to the end\n so Amplitude can just stream the song normally. We then overwrite\n the url the user provided with the streamable URL.\n */\n if (sound.streamable) {\n _config2.default.songs[index].url = sound.stream_url + \"?client_id=\" + _config2.default.soundcloud_client;\n\n /*\n If the user want's to use soundcloud art, we overwrite the\n cover_art_url with the soundcloud artwork url.\n */\n if (_config2.default.soundcloud_use_art) {\n _config2.default.songs[index].cover_art_url = sound.artwork_url;\n }\n\n /*\n Grab the extra metadata from soundcloud and bind it to the\n song. The user can get this through the public function:\n getActiveSongMetadata\n */\n _config2.default.songs[index].soundcloud_data = sound;\n } else {\n /*\n If not streamable, then we print a message to the user stating\n that the song with name X and artist X is not streamable. This\n gets printed ONLY if they have debug turned on.\n */\n AmplitudeHelpers.writeDebugMessage(_config2.default.songs[index].name + \" by \" + _config2.default.songs[index].artist + \" is not streamable by the Soundcloud API\");\n }\n /*\n Increments the song ready counter.\n */\n _config2.default.soundcloud_songs_ready++;\n\n /*\n When all songs are accounted for, then amplitude is ready\n to rock and we set the rest of the config.\n */\n if (_config2.default.soundcloud_songs_ready == _config2.default.soundcloud_song_count) {\n _init2.default.setConfig(tempUserConfig);\n }\n });\n }\n\n /**\n * Determines if a given URL is a SoundCloud URL.\n *\n * @param {string} url - The URL to test if it's a SoundCloud URL.\n */\n function isSoundCloudURL(url) {\n var soundcloud_regex = /^https?:\\/\\/(soundcloud.com|snd.sc)\\/(.*)$/;\n\n return url.match(soundcloud_regex);\n }\n\n /*\n Returns the publically accessible methods\n */\n return {\n loadSoundCloud: loadSoundCloud,\n resolveIndividualStreamableURL: resolveIndividualStreamableURL,\n isSoundCloudURL: isSoundCloudURL\n };\n}();\n\n/**\n * Imports the initializer\n * @module init/AmplitudeInitializer\n */\nexports.default = SoundCloud;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Defines the Playback Speed Visual Elements Handler\n * @module visual/PlaybackSpeedElements\n */\nvar PlaybackSpeedElements = function () {\n /**\n * Sets all of the visual playback speed buttons to have the right class\n * to display the background image that represents the current playback\n * speed.\n *\n * @access public\n */\n function sync() {\n /*\n Gets all of the playback speed classes.\n */\n var playbackSpeedClasses = document.getElementsByClassName(\"amplitude-playback-speed\");\n\n /*\n Iterates over all of the playback speed classes\n applying the right speed class for visual purposes.\n */\n for (var i = 0; i < playbackSpeedClasses.length; i++) {\n /*\n Removes all of the old playback speed classes.\n */\n playbackSpeedClasses[i].classList.remove(\"amplitude-playback-speed-10\");\n playbackSpeedClasses[i].classList.remove(\"amplitude-playback-speed-15\");\n playbackSpeedClasses[i].classList.remove(\"amplitude-playback-speed-20\");\n\n /*\n Switch the current playback speed and apply the appropriate\n speed class.\n */\n switch (_config2.default.playback_speed) {\n case 1:\n playbackSpeedClasses[i].classList.add(\"amplitude-playback-speed-10\");\n break;\n case 1.5:\n playbackSpeedClasses[i].classList.add(\"amplitude-playback-speed-15\");\n break;\n case 2:\n playbackSpeedClasses[i].classList.add(\"amplitude-playback-speed-20\");\n break;\n }\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = PlaybackSpeedElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the shuffle elements\n * @module visual/ShuffleElements\n */\nvar ShuffleElements = function () {\n /**\n * Syncs the global shuffle button visual state.\n *\n * @access public\n */\n function syncMain() {\n /*\n Gets the shuffle buttons.\n */\n var shuffleButtons = document.getElementsByClassName(\"amplitude-shuffle\");\n\n /*\n Iterate over all of the shuffle buttons.\n */\n for (var i = 0; i < shuffleButtons.length; i++) {\n /*\n Ensure the shuffle button doesn't belong to a playlist. We have\n a separate method for that.\n */\n if (shuffleButtons[i].getAttribute(\"data-amplitude-playlist\") == null) {\n /*\n If the state of the player is shuffled on, true, then\n we add the 'amplitude-shuffle-on' class and remove the\n 'amplitude-shuffle-off' class. If the player is not shuffled\n then we do the opposite.\n */\n if (_config2.default.shuffle_on) {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-on\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-off\");\n } else {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-off\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-on\");\n }\n }\n }\n }\n\n /**\n * Syncs the playlist shuffle button visual state.\n *\n * @access public\n * @param {string} playlist - The playlist string the shuffle button belongs to.\n */\n function syncPlaylist(playlist) {\n /*\n Gets all of the shuffle buttons.\n */\n var shuffleButtons = document.querySelectorAll('.amplitude-shuffle[data-amplitude-playlist=\"' + playlist + '\"]');\n\n /*\n Iterate over all of the shuffle buttons\n */\n for (var i = 0; i < shuffleButtons.length; i++) {\n /*\n If the state of the playlist is shuffled on, true, then\n we add the 'amplitude-shuffle-on' class and remove the\n 'amplitude-shuffle-off' class. If the player is not shuffled\n then we do the opposite.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-on\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-off\");\n } else {\n shuffleButtons[i].classList.add(\"amplitude-shuffle-off\");\n shuffleButtons[i].classList.remove(\"amplitude-shuffle-on\");\n }\n }\n }\n\n /**\n * Returns public facing methods\n */\n return {\n syncMain: syncMain,\n syncPlaylist: syncPlaylist\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = ShuffleElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the syncing of the song played progress elements.\n *\n * @module visual/SongPlayedProgressElements\n */\nvar SongPlayedProgressElements = function () {\n /**\n * Syncs the song played progress bars. These are HTML5 progress elements.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percentage of the song that has been played.\n */\n function sync(songPlayedPercentage) {\n syncGlobal(songPlayedPercentage);\n syncPlaylist(songPlayedPercentage);\n syncSong(songPlayedPercentage);\n syncSongInPlaylist(songPlayedPercentage);\n }\n\n /**\n * Sync how much has been played with a progress bar. This is the global progress bar.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncGlobal(percentage) {\n /*\n Ensure that the song completion percentage is a number\n */\n if (!isNaN(percentage)) {\n /*\n Get all of the song progress bars\n */\n var songPlayedProgressBars = document.querySelectorAll(\".amplitude-song-played-progress\");\n\n for (var i = 0; i < songPlayedProgressBars.length; i++) {\n var playlist = songPlayedProgressBars[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = songPlayedProgressBars[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n var max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = percentage / 100 * max;\n }\n }\n }\n }\n\n /**\n * Sync how much has been played with a progress bar. This is the playlist progress bar.\n *\n * @access public\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncPlaylist(percentage) {\n /*\n Ensure that the song completion percentage is a number\n */\n if (!isNaN(percentage)) {\n /*\n Get all of the song progress bars\n */\n var songPlayedProgressBars = document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var i = 0; i < songPlayedProgressBars.length; i++) {\n var song = songPlayedProgressBars[i].getAttribute(\"data-amplitude-song-index\");\n\n if (song == null) {\n var max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = percentage / 100 * max;\n }\n }\n }\n }\n\n /**\n * Sync how much has been played with a progress bar. This is for an individual song.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncSong(percentage) {\n if (_config2.default.active_playlist == null) {\n /*\n Ensure that the song completion percentage is a number\n */\n if (!isNaN(percentage)) {\n /*\n Get all of the song progress bars\n */\n var songPlayedProgressBars = document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n for (var i = 0; i < songPlayedProgressBars.length; i++) {\n var playlist = songPlayedProgressBars[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null) {\n var max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = percentage / 100 * max;\n }\n }\n }\n }\n }\n\n /**\n * Sync how much has been played with a progress bar. This is for an individual song in playlist.\n *\n * @access private\n * @param {number} songPlayedPercentage \t- The percent of the song completed.\n */\n function syncSongInPlaylist(percentage) {\n /*\n Ensure that the song completion percentage is a number\n */\n if (!isNaN(percentage)) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n /*\n Get all of the song progress bars\n */\n var songPlayedProgressBars = document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n /*\n Iterates over all of the song played progress elements\n and sets them accordingly.\n */\n for (var i = 0; i < songPlayedProgressBars.length; i++) {\n var playlist = songPlayedProgressBars[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = songPlayedProgressBars[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist != null && songIndex != null) {\n var max = songPlayedProgressBars[i].max;\n\n songPlayedProgressBars[i].value = percentage / 100 * max;\n }\n }\n }\n }\n\n /**\n * Sets all of the song played progress bars to 0\n *\n * @access public\n */\n function resetElements() {\n var songPlayedProgressBars = document.getElementsByClassName(\"amplitude-song-played-progress\");\n\n for (var i = 0; i < songPlayedProgressBars.length; i++) {\n songPlayedProgressBars[i].value = 0;\n }\n }\n\n return {\n sync: sync,\n resetElements: resetElements\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = SongPlayedProgressElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; /**\n * Imports the config module\n * @module config\n */\n\n\n/**\n * AmplitudeJS Core Module\n * @module core/Core\n */\n\n\n/**\n * AmplitudeJS SoundCloud Module\n * @module soundcloud/SoundCloud\n */\n\n\n/**\n * Imports the utilities used by the main module.\n */\n/**\n * AmplitudeJS Config State Module\n * @module utilities/ConfigState\n */\n\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\n\n\n/**\n * AmplitudeJS Checks Module\n * @module utilities/Checks\n */\n\n\n/**\n * AmplitudeJS Shuffler Module\n * @module utilities/Shuffler\n */\n\n\n/**\n * AmplitudeJS Events Module\n * @module events/Events\n */\n\n\n/**\n * AmplitudeJS FX Module\n * @module fx/Fx\n */\n\n\n/**\n * AmplitudeJS Visualizations Module\n * @module fx/Visualizations\n */\n\n\n/**\n * AmplitudeJS WaveForm Module\n * @module fx/WaveForm\n */\n\n\n/**\n * AmplitudeJS Audio Navigation Module.\n * @module utilities/AudioNavigation\n */\n\n\n/**\n * AmplitudeJS Callbacks Module\n * @module utilities/Callbacks\n */\n\n\n/**\n * AmplitudeJS Playlists Initializer Module\n * @module init/Playlists\n */\n\n\n/**\n * Imports the AmplitudeJS Shuffle Elements\n * @module visual/ShuffleElements\n */\n\n\n/**\n * Imports the AmplitudeJS Mute Elements\n * @module visual/MuteElements\n */\n\n\n/**\n * Imports the AmplitudeJS Volume Slider\n * @module visual/VolumeSliderElements\n */\n\n\n/**\n * Imports the AmplitudeJS Time Elements\n * @module visual/TimeElements\n */\n\n\n/**\n * Imports the AmplitudeJS Play/Pause Elements Module.\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the AmplitudeJS MetaData Elements Module.\n * @module visual/MetaDataElements\n */\n\n\n/**\n * Imports the AmplitudeJS PlaybackSpeedElements Module.\n * @module visual/PlayBackSpeedElements\n */\n\n\n/**\n * Imports the AmplitudeJS Repeat Element\n * @module visual/RepeatElements\n */\n\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _soundcloud = __webpack_require__(17);\n\nvar _soundcloud2 = _interopRequireDefault(_soundcloud);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _shuffler = __webpack_require__(13);\n\nvar _shuffler2 = _interopRequireDefault(_shuffler);\n\nvar _events = __webpack_require__(26);\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _fx = __webpack_require__(46);\n\nvar _fx2 = _interopRequireDefault(_fx);\n\nvar _visualizations = __webpack_require__(16);\n\nvar _visualizations2 = _interopRequireDefault(_visualizations);\n\nvar _waveform = __webpack_require__(22);\n\nvar _waveform2 = _interopRequireDefault(_waveform);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _callbacks = __webpack_require__(9);\n\nvar _callbacks2 = _interopRequireDefault(_callbacks);\n\nvar _playlists = __webpack_require__(48);\n\nvar _playlists2 = _interopRequireDefault(_playlists);\n\nvar _shuffleElements = __webpack_require__(19);\n\nvar _shuffleElements2 = _interopRequireDefault(_shuffleElements);\n\nvar _muteElements = __webpack_require__(10);\n\nvar _muteElements2 = _interopRequireDefault(_muteElements);\n\nvar _volumeSliderElements = __webpack_require__(11);\n\nvar _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements);\n\nvar _timeElements = __webpack_require__(15);\n\nvar _timeElements2 = _interopRequireDefault(_timeElements);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nvar _metaDataElements = __webpack_require__(7);\n\nvar _metaDataElements2 = _interopRequireDefault(_metaDataElements);\n\nvar _playbackSpeedElements = __webpack_require__(18);\n\nvar _playbackSpeedElements2 = _interopRequireDefault(_playbackSpeedElements);\n\nvar _repeatElements = __webpack_require__(8);\n\nvar _repeatElements2 = _interopRequireDefault(_repeatElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Initializer Module. Helps with the handling of all of the\n * initialization for AmplitudeJS.\n *\n * @module init/Initializer\n */\nvar Initializer = function () {\n /**\n * The main init function. The user will call this through\n * Amplitude.init({}) and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json )\n * @access public\n * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS.\n */\n function initialize(userConfig) {\n var ready = false;\n\n /*\n Reset the config on init so we have a clean slate. This is if the\n user has to re-init.\n */\n _configState2.default.resetConfig();\n\n /*\n Initialize event handlers on init. This will clear any old\n event handlers on the amplitude element and re-bind what is\n necessary.\n */\n _events2.default.initialize();\n\n /*\n Initialize the callbacks we listen to for the audio object.\n */\n _callbacks2.default.initialize();\n\n /*\n Initializes debugging right away so we can use it for the rest\n of the configuration.\n */\n _config2.default.debug = userConfig.debug != undefined ? userConfig.debug : false;\n\n /*\n Set default artwork, if specified.\n */\n setArt(userConfig);\n\n /*\n Checks to see if the user has songs defined.\n */\n if (userConfig.songs) {\n /*\n Checks to see if the user has some songs in the songs array.\n */\n if (userConfig.songs.length != 0) {\n /*\n Copies over the user defined songs. and prepares\n Amplitude for the rest of the configuration.\n */\n _config2.default.songs = userConfig.songs;\n /*\n Flag amplitude as ready.\n */\n ready = true;\n } else {\n _debug2.default.writeMessage(\"Please add some songs, to your songs object!\");\n }\n } else {\n _debug2.default.writeMessage(\"Please provide a songs object for AmplitudeJS to run!\");\n }\n\n /*\n Initializes the audio context. In this method it checks to see if the\n user wants to use visualizations or not before proceeding.\n */\n if (_fx2.default.webAudioAPIAvailable()) {\n if (_fx2.default.determineUsingAnyFX()) {\n /*\n Configure the Web Audio API If It's available.\n */\n _fx2.default.configureWebAudioAPI();\n\n /*\n Activates the audio context after an event for the user.\n */\n document.documentElement.addEventListener(\"mousedown\", function () {\n if (_config2.default.context.state !== \"running\") {\n _config2.default.context.resume();\n }\n });\n\n document.documentElement.addEventListener(\"keydown\", function () {\n if (_config2.default.context.state !== \"running\") {\n _config2.default.context.resume();\n }\n });\n\n document.documentElement.addEventListener(\"keyup\", function () {\n if (_config2.default.context.state !== \"running\") {\n _config2.default.context.resume();\n }\n });\n\n /*\n Set the user waveform settings if provided.\n */\n if (userConfig.waveforms != undefined && userConfig.waveforms.sample_rate != undefined) {\n _config2.default.waveforms.sample_rate = userConfig.waveforms.sample_rate;\n }\n\n /*\n Initialize the waveform.\n */\n _waveform2.default.init();\n\n /*\n If the user is registering visualizations on init,\n we set them right away.\n */\n if (userConfig.visualizations != undefined && userConfig.visualizations.length > 0) {\n /*\n Iterate over all of the visualizations and\n register them in our player.\n */\n for (var i = 0; i < userConfig.visualizations.length; i++) {\n _visualizations2.default.register(userConfig.visualizations[i].object, userConfig.visualizations[i].params);\n }\n }\n }\n } else {\n _debug2.default.writeMessage(\"The Web Audio API is not available on this platform. We are using your defined backups!\");\n }\n\n /*\n Initialize default live settings\n */\n initializeDefaultLiveSettings();\n\n /*\n Initialize default song indexes\n */\n initializeDefaultSongIndexes();\n\n /*\n When the preliminary config is ready, we are ready to proceed.\n */\n if (ready) {\n /*\n Copies over the soundcloud information to the global config\n which will determine where we go from there.\n */\n _config2.default.soundcloud_client = userConfig.soundcloud_client != undefined ? userConfig.soundcloud_client : \"\";\n\n /*\n Checks if we want to use the art loaded from soundcloud.\n */\n _config2.default.soundcloud_use_art = userConfig.soundcloud_use_art != undefined ? userConfig.soundcloud_use_art : \"\";\n\n /*\n If the user provides a soundcloud client then we assume that\n there are URLs in their songs that will reference SoundCloud.\n We then copy over the user config they provided to the\n temp_user_config so we don't mess up the global or their configs\n and load the soundcloud information.\n */\n var tempUserConfig = {};\n\n /*\n If there's a soundcloud_client key set, we load the SoundCloud data\n for all of the songs in the array.\n */\n if (_config2.default.soundcloud_client != \"\") {\n tempUserConfig = userConfig;\n\n /*\n Load up SoundCloud for use with AmplitudeJS.\n */\n _soundcloud2.default.loadSoundCloud(tempUserConfig);\n } else {\n /*\n The user is not using Soundcloud with Amplitude at this point\n so we just finish the configuration with the users's preferences.\n */\n setConfig(userConfig);\n }\n }\n\n /*\n Debug out what was initialized with AmplitudeJS.\n */\n _debug2.default.writeMessage(\"Initialized With: \");\n _debug2.default.writeMessage(_config2.default);\n }\n\n /**\n * Rebinds all of the elements in the display.\n *\n * Public Accessor: Amplitude.rebindDisplay()\n * @access public\n */\n function rebindDisplay() {\n _events2.default.initialize();\n _metaDataElements2.default.displayMetaData();\n }\n\n /**\n * Finishes the initalization of the config. Takes all of the user defined\n * parameters and makes sure they override the defaults. The important\n * config information is assigned in the publicInit() function.\n *\n * This function can be called from 2 different locations:\n * \t1. Right away on init after the important settings are defined.\n *\n * \t2. After all of the Soundcloud URLs are resolved properly and\n *\t \tsoundcloud is configured. We will need the proper URLs from Soundcloud\n * \t\tto stream through Amplitude so we get those right away before we\n * \t\tset the information and the active song\n *\n * @access public\n * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS.\n */\n function setConfig(userConfig) {\n /*\n Checks if the user has any playlists defined. If they do\n we have to initialize the functionality for the playlists.\n */\n if (userConfig.playlists && countPlaylists(userConfig.playlists) > 0) {\n _playlists2.default.initialize(userConfig.playlists);\n }\n\n /*\n Check to see if the user entered a start song\n */\n if (userConfig.start_song != undefined && !userConfig.starting_playlist) {\n /*\n Ensure what has been entered is an integer.\n */\n if (_checks2.default.isInt(userConfig.start_song)) {\n _audioNavigation2.default.changeSong(_config2.default.songs[userConfig.start_song], userConfig.start_song);\n } else {\n _debug2.default.writeMessage(\"You must enter an integer index for the start song.\");\n }\n } else {\n _audioNavigation2.default.changeSong(_config2.default.songs[0], 0);\n }\n\n /*\n If the shuffle is on by default, shuffle the songs and\n switch to the shuffled song.\n */\n if (userConfig.shuffle_on != undefined && userConfig.shuffle_on) {\n _config2.default.shuffle_on = true;\n _shuffler2.default.shuffleSongs();\n\n _audioNavigation2.default.changeSong(_config2.default.shuffle_list[0], 0);\n }\n\n /*\n Allows the user to set whether they want to continue to the next song\n when the current song finishes or not. In any scenario that's not a playlist,\n contining to the next song may not be desired.\n */\n _config2.default.continue_next = userConfig.continue_next != undefined ? userConfig.continue_next : true;\n\n /*\n If the user defined a playback speed, we copy over their\n preference here, otherwise we default to normal playback\n speed of 1.0.\n */\n _config2.default.playback_speed = userConfig.playback_speed != undefined ? userConfig.playback_speed : 1.0;\n\n /*\n Sets the audio playback speed.\n */\n _core2.default.setPlaybackSpeed(_config2.default.playback_speed);\n\n /*\n If the user wants the song to be pre-loaded for instant\n playback, they set it to true. By default it's set to just\n load the metadata.\n */\n _config2.default.audio.preload = userConfig.preload != undefined ? userConfig.preload : \"auto\";\n\n /*\n Initializes the user defined callbacks. This should be a JSON\n object that contains a key->value store of the callback name\n and the name of the function the user needs to call.\n */\n _config2.default.callbacks = userConfig.callbacks != undefined ? userConfig.callbacks : {};\n\n /*\n Initializes the user defined key bindings. This should be a JSON\n object that contains a key->value store of the key event number\n pressed and the method to be run.\n */\n _config2.default.bindings = userConfig.bindings != undefined ? userConfig.bindings : {};\n\n /*\n The user can define a starting volume in a range of 0-100 with\n 0 being muted and 100 being the loudest. After the config is set\n Amplitude sets the active song's volume to the volume defined\n by the user.\n */\n _config2.default.volume = userConfig.volume != undefined ? userConfig.volume : 50;\n\n /*\n Sets the delay between songs if the user has it set. This should be in MS.\n */\n _config2.default.delay = userConfig.delay != undefined ? userConfig.delay : 0;\n\n /*\n The user can set the volume increment and decrement values between 1 and 100\n for when the volume up or down button is pressed. The default is an increase\n or decrease of 5.\n */\n _config2.default.volume_increment = userConfig.volume_increment != undefined ? userConfig.volume_increment : 5;\n\n _config2.default.volume_decrement = userConfig.volume_decrement != undefined ? userConfig.volume_decrement : 5;\n\n /*\n Set the volume to what is defined in the config. The user can define this,\n so we should set it up that way.\n */\n _core2.default.setVolume(_config2.default.volume);\n\n /*\n Set default artwork, if specified\n */\n setArt(userConfig);\n\n /*\n Initialize the visual elements\n */\n initializeElements();\n\n /*\n If the user has selected a starting playlist, we need to set the starting playlist\n and sync the visuals\n */\n if (userConfig.starting_playlist != undefined && userConfig.starting_playlist != \"\") {\n /*\n Set the active playlist to the starting playlist by the user\n */\n _config2.default.active_playlist = userConfig.starting_playlist;\n\n /*\n Check if the user defined a song to start with in the playlist.\n */\n if (userConfig.starting_playlist_song != undefined && userConfig.starting_playlist_song != \"\") {\n /*\n Ensure the song is a valid index.\n */\n if (_typeof(userConfig.playlists[userConfig.starting_playlist].songs[parseInt(userConfig.starting_playlist_song)]) != undefined) {\n /*\n Set the player to the song defined by the user.\n */\n _audioNavigation2.default.changeSongPlaylist(_config2.default.active_playlist, userConfig.playlists[userConfig.starting_playlist].songs[parseInt(userConfig.starting_playlist_song)], parseInt(userConfig.starting_playlist_song));\n } else {\n /*\n Set the player to the first song in the playlist\n */\n _audioNavigation2.default.changeSongPlaylist(_config2.default.active_playlist, userConfig.playlists[userConfig.starting_playlist].songs[0], 0);\n /*\n Debug that the song index doesn't exist\n */\n _debug2.default.writeMessage(\"The index of \" + userConfig.starting_playlist_song + \" does not exist in the playlist \" + userConfig.starting_playlist);\n }\n } else {\n /*\n Set the player to the first song in the playlist\n */\n _audioNavigation2.default.changeSong(_config2.default.active_playlist, userConfig.playlists[userConfig.starting_playlist].songs[0], 0);\n }\n\n /*\n Sync the main and song play pause buttons.\n */\n _playPauseElements2.default.sync();\n }\n\n /*\n Run after init callback\n */\n _callbacks2.default.run(\"initialized\");\n }\n\n /**\n * Sets the default_album_art and default_playlist_art from the\n * user supplied configuration.\n *\n * @access public\n * @param {object} userConfig - A JSON object of user defined values that help configure and initialize AmplitudeJS.\n */\n function setArt(userConfig) {\n /*\n If the user defines default album art, this image will display if the active\n song doesn't have album art defined.\n */\n if (userConfig.default_album_art != undefined) {\n _config2.default.default_album_art = userConfig.default_album_art;\n } else {\n _config2.default.default_album_art = \"\";\n }\n\n /*\n If the user defines default playlist art, this image will display if the user\n tries to set up a playlist meta data image tag but doesn't have one defined.\n */\n if (userConfig.default_playlist_art != undefined) {\n _config2.default.default_playlist_art = userConfig.default_playlist_art;\n } else {\n _config2.default.default_playlist_art = \"\";\n }\n }\n\n /**\n * Initializes all of the elements on the page to the default starting point\n * to build from there.\n *\n * @access private\n */\n function initializeElements() {\n /*\n Visually sync the shuffle statuses\n */\n _shuffleElements2.default.syncMain();\n\n /*\n Sync Mute Elements.\n */\n _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false);\n\n /*\n Sync Volume Slider Elements\n */\n _volumeSliderElements2.default.sync();\n\n /*\n Syncs all of the playback speed elements.\n */\n _playbackSpeedElements2.default.sync();\n\n /*\n Syncs all of the visual time elements to 00.\n */\n _timeElements2.default.resetCurrentTimes();\n\n /*\n Sets all of the play pause buttons to pause.\n */\n _playPauseElements2.default.syncToPause();\n\n /*\n Sets the meta data for the songs automatically.\n */\n _metaDataElements2.default.syncMetaData();\n\n /*\n Sets the repeat buttons automatically.\n */\n _repeatElements2.default.syncRepeatSong();\n }\n\n /**\n * Counts the number of playlists the user has configured. This ensures\n * that the user has at least 1 playlist so we can validate the songs\n * defined in the playlist are correct and they didn't enter an invalid\n * ID.\n *\n * @access private\n * @param {object} playlists \t-\n */\n function countPlaylists(playlists) {\n /*\n Initialize the placeholders to iterate through the playlists\n and find out how many we have to account for.\n */\n var size = 0,\n key = void 0;\n\n /*\n Iterate over playlists and if the user has the playlist defined,\n increment the size of playlists.\n */\n for (key in playlists) {\n if (playlists.hasOwnProperty(key)) {\n size++;\n }\n }\n\n /*\n Debug how many playlists are in the config.\n */\n _debug2.default.writeMessage(\"You have \" + size + \" playlist(s) in your config\");\n\n /*\n Return the number of playlists in the config.\n */\n return size;\n }\n\n /**\n * Intializes the default live settings for all of the songs.\n *\n * @access private\n */\n function initializeDefaultLiveSettings() {\n for (var i = 0; i < _config2.default.songs.length; i++) {\n if (_config2.default.songs[i].live == undefined) {\n _config2.default.songs[i].live = false;\n }\n }\n }\n\n /**\n * Initializes the index of the song in the songs array so\n * we can reference it if needed\n *\n * @access private\n */\n function initializeDefaultSongIndexes() {\n for (var i = 0; i < _config2.default.songs.length; i++) {\n _config2.default.songs[i].index = i;\n }\n }\n\n /*\n Returns the publicly accessible methods\n */\n return {\n initialize: initialize,\n setConfig: setConfig,\n rebindDisplay: rebindDisplay\n };\n}();\n\nexports.default = Initializer;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Builds a waveform for the current audio.\n * Help from: https://robots.thoughtbot.com/javascript-audio-api\n * https://stackoverflow.com/questions/21347833/html-svg-not-drawing-works-in-other-pages\n */\nvar WaveForm = function () {\n /*\n Initialize the local variables used in the Waveform.\n */\n var buffer = \"\";\n var sampleRate = \"\";\n var peaks = \"\";\n\n function init() {\n sampleRate = _config2.default.waveforms.sample_rate;\n\n /*\n Grabs all of the waveform elements on the page.\n */\n var waveforms = document.querySelectorAll(\".amplitude-wave-form\");\n\n /*\n If there are waveforms, we iterate over them and set them up to display\n properly.\n */\n if (waveforms.length > 0) {\n /*\n Iterate over all of the waveforms and build the SVG parts.\n */\n for (var i = 0; i < waveforms.length; i++) {\n /*\n Clear the inner HTML of the element if we are replacing the waveform.\n */\n waveforms[i].innerHTML = \"\";\n\n /*\n Inserts an SVG into the element.\n */\n var svg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n svg.setAttribute(\"viewBox\", \"0 -1 \" + sampleRate + \" 2\");\n svg.setAttribute(\"preserveAspectRatio\", \"none\");\n\n /*\n Add a g component to the SVG\n */\n var g = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n svg.appendChild(g);\n\n /*\n Add a path component to the g\n */\n var path = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\");\n path.setAttribute(\"d\", \"\");\n path.setAttribute(\"id\", \"waveform\");\n\n g.appendChild(path);\n\n /*\n Append the SVG to the waveform.\n */\n waveforms[i].appendChild(svg);\n }\n }\n }\n\n /**\n * Builds each waveform for the page.\n */\n function build() {\n if (_config2.default.web_audio_api_available) {\n /*\n If we don't have the wave form built, we need to build the waveform by loading\n the src with an array buffer.\n */\n if (_config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split(\"\").reduce(function (a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0))] == undefined) {\n /*\n Initializes a new XML Http Request.\n */\n var req = new XMLHttpRequest();\n\n /*\n Opens the src parameter for the audio file to read in.\n */\n req.open(\"GET\", _config2.default.audio.src, true);\n req.responseType = \"arraybuffer\";\n\n /*\n When the ready state changes, check to see if we can render the\n wave form.\n */\n req.onreadystatechange = function (e) {\n /*\n When the request is complete, then we begin decoding the\n audio to build the waveform.\n */\n if (req.readyState == 4) {\n /*\n If the status is 200 means the response is a success and\n we decode the audio data.\n */\n if (req.status == 200) {\n /*\n Decode the audio data and process the waveform.\n */\n _config2.default.context.decodeAudioData(req.response, function (bufferedAudio) {\n /*\n Set the buffer to the audio returned.\n */\n buffer = bufferedAudio;\n\n /*\n Get the peaks in the audio.\n */\n peaks = getPeaks(sampleRate, buffer);\n\n /*\n Build the SVG\n */\n process(sampleRate, buffer, peaks);\n });\n }\n }\n };\n req.send();\n } else {\n /*\n If we already have a waveform, we grab the waveform that\n was created for the song and display it. We do a simple hash\n of the song URL so it's already unique.\n */\n displayWaveForms(_config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split(\"\").reduce(function (a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0))]);\n }\n }\n }\n\n /**\n * Processes the audio and generates the waveform.\n *\n * @param {sampleRate} sampleRate - The rate we should sample the audio.\n * @param {arraybuffer} buffer - The Web Audio API\n * @param {array} peaks - The peaks in the audio.\n */\n function process(sampleRate, buffer, peaks) {\n /*\n If we have a buffer, we find the peaks in the audio.\n */\n if (buffer) {\n /*\n Get the total peaks in the song.\n */\n var totalPeaks = peaks.length;\n\n /*\n Figure out the depth of the peak.\n */\n var d = \"\";\n for (var peakNumber = 0; peakNumber < totalPeaks; peakNumber++) {\n if (peakNumber % 2 === 0) {\n d += \" M\" + ~~(peakNumber / 2) + \", \" + peaks.shift();\n } else {\n d += \" L\" + ~~(peakNumber / 2) + \", \" + peaks.shift();\n }\n }\n\n /*\n Add the waveform to the built waveforms array.\n */\n _config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split(\"\").reduce(function (a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0))] = d;\n\n /*\n Display the waveform.\n */\n displayWaveForms(_config2.default.waveforms.built[Math.abs(_config2.default.audio.src.split(\"\").reduce(function (a, b) {\n a = (a << 5) - a + b.charCodeAt(0);\n return a & a;\n }, 0))]);\n }\n }\n\n /**\n * Get the peaks of the audio for the waveform.\n *\n * @param {number} length - The sample size of the audio.\n * @param {array} buffer - The array buffer used to find the peaks in the audio.\n */\n function getPeaks(length, buffer) {\n /*\n Set the parameters needed to build the SVG.\n */\n var sampleSize = buffer.length / length;\n var sampleStep = ~~(sampleSize / 10) || 1;\n var numberOfChannels = buffer.numberOfChannels;\n var mergedPeaks = [];\n\n /*\n Iterate over the channels and find the peaks.\n */\n for (var channelNumber = 0; channelNumber < numberOfChannels; channelNumber++) {\n /*\n Initialize the peaks array and set the channel data to what\n the buffer has in its channel data.\n */\n var _peaks = [];\n var channelData = buffer.getChannelData(channelNumber);\n\n /*\n Iterate over peaks with respect to the sample size.\n */\n for (var peakNumber = 0; peakNumber < length; peakNumber++) {\n /*\n Gt the start and end peak.\n */\n var start = ~~(peakNumber * sampleSize);\n var end = ~~(start + sampleSize);\n\n /*\n Set min and max to the channel data first peak.\n */\n var min = channelData[0];\n var max = channelData[0];\n\n /*\n Iterate over the parts of the song starting to the\n ending to display the waveform.\n */\n for (var sampleIndex = start; sampleIndex < end; sampleIndex += sampleStep) {\n var value = channelData[sampleIndex];\n\n if (value > max) {\n max = value;\n }\n if (value < min) {\n min = value;\n }\n }\n\n /*\n Set the max and min for the peak.\n */\n _peaks[2 * peakNumber] = max;\n _peaks[2 * peakNumber + 1] = min;\n\n /*\n Merge the peaks\n */\n if (channelNumber === 0 || max > mergedPeaks[2 * peakNumber]) {\n mergedPeaks[2 * peakNumber] = max;\n }\n\n if (channelNumber === 0 || min < mergedPeaks[2 * peakNumber + 1]) {\n mergedPeaks[2 * peakNumber + 1] = min;\n }\n }\n }\n\n /*\n Returns the merged peaks.\n */\n return mergedPeaks;\n }\n\n /**\n * Displays all of the waveforms necessary.\n *\n * @param {path} svg - The drawing of the waveform.\n */\n function displayWaveForms(svg) {\n var waveformElements = document.querySelectorAll(\".amplitude-wave-form\");\n\n /*\n Iterate over all of the waveform elements and\n display the waveform.\n */\n for (var i = 0; i < waveformElements.length; i++) {\n /*\n Get the playlist attribute of the waveform element.\n */\n var playlist = waveformElements[i].getAttribute(\"data-amplitude-playlist\");\n\n /*\n Get the song index attribute of the waveform element.\n */\n var song = waveformElements[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n If the playlist is null and the song is null it's a global element.\n */\n if (playlist == null && song == null) {\n displayGlobalWaveform(waveformElements[i], svg);\n }\n\n /*\n If the playlist is defined but the song is null it's a playlist element.\n */\n if (playlist != null && song == null) {\n displayPlaylistWaveform(waveformElements[i], svg, playlist);\n }\n\n /*\n If the playlist is not defined and the song is not null it's a song\n element.\n */\n if (playlist == null && song != null) {\n displaySongWaveform(waveformElements[i], svg, song);\n }\n\n /*\n If the playlist and song are defined it's a song in the playlist element.\n */\n if (playlist != null && song != null) {\n displaySongInPlaylistWaveform(waveformElements[i], svg, playlist, song);\n }\n }\n }\n\n /**\n * Displays a global wave form.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n */\n function displayGlobalWaveform(element, svg) {\n var waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n\n /**\n * Displays a playlist wave form.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n * @param {string} playlist - The playlist we are displaying the waveform for.\n */\n function displayPlaylistWaveform(element, svg, playlist) {\n /*\n Ensure the playlist is the active playlist.\n */\n if (_config2.default.active_playlist == playlist) {\n var waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n }\n\n /**\n * Displays a song wave form.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n * @param {Integer} song - The index of the song we are displaying the\n * waveform for.\n */\n function displaySongWaveform(element, svg, song) {\n /*\n Ensure it's the active song being displayed.\n */\n if (_config2.default.active_index == song) {\n var waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n }\n\n /**\n * Displays a song in playlist waveform.\n *\n * @param {Node} element - Element to display the waveform in.\n * @param {SVG} svg - The waveform path.\n * @param {String} playlist - The playlist the waveform is in.\n * @param {Integer} song - The index of the song we are displaying the waveform for.\n */\n function displaySongInPlaylistWaveform(element, svg, playlist, song) {\n /*\n Ensure it's the active song in the active playlist.\n */\n if (_config2.default.active_playlist == playlist && _config2.default.playlists[_config2.default.active_playlist].active_index == song) {\n var waveformPath = element.querySelector(\"svg g path\");\n\n waveformPath.setAttribute(\"d\", svg);\n }\n }\n\n /**\n * Determines if the user is using waveforms\n */\n function determineIfUsingWaveforms() {\n var waveforms = document.querySelectorAll(\".amplitude-wave-form\");\n\n if (waveforms.length > 0) {\n return true;\n } else {\n return false;\n }\n }\n\n /*\n Return the public methods.\n */\n return {\n init: init,\n build: build,\n determineIfUsingWaveforms: determineIfUsingWaveforms\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = WaveForm;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * The utility to handle the computation of time in AmplitudeJS.\n * @module utilities/Time\n */\nvar Time = function () {\n /**\n * Computes the current song time. Breaks down where the song is into\n * hours, minutes, seconds and formats it to be displayed to the user.\n *\n * @access public\n */\n function computeCurrentTimes() {\n /*\n Initialize the current time object that will be returned.\n */\n var currentTime = {};\n\n /*\n Computes the current seconds for the song.\n */\n var currentSeconds = (Math.floor(_config2.default.audio.currentTime % 60) < 10 ? \"0\" : \"\") + Math.floor(_config2.default.audio.currentTime % 60);\n\n /*\n Computes the current minutes for the song.\n */\n var currentMinutes = Math.floor(_config2.default.audio.currentTime / 60);\n\n /*\n Initialize the current hours variable.\n */\n var currentHours = \"00\";\n\n /*\n If the current minutes is less than 10, we add a leading 0.\n */\n if (currentMinutes < 10) {\n currentMinutes = \"0\" + currentMinutes;\n }\n\n /*\n If the user is more than 60 minutes into the song, then\n we extract the hours.\n */\n if (currentMinutes >= 60) {\n currentHours = Math.floor(currentMinutes / 60);\n currentMinutes = currentMinutes % 60;\n\n /*\n If the user is less than 10 minutes in, we append the\n additional 0 to the minutes.\n */\n if (currentMinutes < 10) {\n currentMinutes = \"0\" + currentMinutes;\n }\n }\n\n /*\n Build a clean current time object and send back the appropriate information.\n */\n currentTime.seconds = currentSeconds;\n currentTime.minutes = currentMinutes;\n currentTime.hours = currentHours;\n\n return currentTime;\n }\n\n /**\n * Computes the current song duration. Breaks down where the song is into\n * hours, minutes, seconds and formats it to be displayed to the user.\n *\n * @access public\n */\n function computeSongDuration() {\n /*\n Initialize the song duration object that will be returned.\n */\n var songDuration = {};\n\n /*\n Computes the duration of the song's seconds.\n */\n var songDurationSeconds = (Math.floor(_config2.default.audio.duration % 60) < 10 ? \"0\" : \"\") + Math.floor(_config2.default.audio.duration % 60);\n\n /*\n Computes the duration of the song's minutes.\n */\n var songDurationMinutes = Math.floor(_config2.default.audio.duration / 60);\n\n /*\n Initialize the hours duration variable.\n */\n var songDurationHours = \"00\";\n\n /*\n If the song duration minutes is less than 10, we add a leading 0.\n */\n if (songDurationMinutes < 10) {\n songDurationMinutes = \"0\" + songDurationMinutes;\n }\n\n /*\n If there is more than 60 minutes in the song, then we\n extract the hours.\n */\n if (songDurationMinutes >= 60) {\n songDurationHours = Math.floor(songDurationMinutes / 60);\n songDurationMinutes = songDurationMinutes % 60;\n\n /*\n If the song duration minutes is less than 10 we append\n the additional 0.\n */\n if (songDurationMinutes < 10) {\n songDurationMinutes = \"0\" + songDurationMinutes;\n }\n }\n\n /*\n Build a clean song duration object and send back the appropriate information.\n */\n songDuration.seconds = isNaN(songDurationSeconds) ? \"00\" : songDurationSeconds;\n songDuration.minutes = isNaN(songDurationMinutes) ? \"00\" : songDurationMinutes;\n songDuration.hours = isNaN(songDurationHours) ? \"00\" : songDurationHours.toString();\n\n return songDuration;\n }\n\n /**\n * Computes the song completion percentage.\n *\n * @access public\n */\n function computeSongCompletionPercentage() {\n return _config2.default.audio.currentTime / _config2.default.audio.duration * 100;\n }\n\n /**\n * Sets the current time for the audio.\n *\n * @access public\n */\n function setCurrentTime(time) {\n /*\n If the song is not live, we can set the current time.\n */\n if (!_config2.default.active_metadata.live) {\n /*\n Makes sure the number is finite to set the time.\n */\n if (isFinite(time)) {\n _config2.default.audio.currentTime = time;\n }\n }\n }\n\n /**\n * Defines what is returned by the module\n */\n return {\n computeCurrentTimes: computeCurrentTimes,\n computeSongDuration: computeSongDuration,\n computeSongCompletionPercentage: computeSongCompletionPercentage,\n setCurrentTime: setCurrentTime\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = Time;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Visual Handler for Buffered Progress Elements\n *\n * @module visual/BufferedProgressElements\n */\nvar BufferedProgressElements = function () {\n /**\n * Syncs the buffered progress bars to the current percentage in the config\n *\n * @access public\n */\n function sync() {\n syncGlobal();\n syncPlaylist();\n syncSong();\n syncSongInPlaylist();\n }\n\n /**\n * Sync the global song buffered progress elements.\n */\n function syncGlobal() {\n /*\n Gets all of the song buffered progress bars.\n */\n var songBufferedProgressBars = document.getElementsByClassName(\"amplitude-buffered-progress\");\n\n /*\n Iterate over all of the song buffered progress bar and\n set them to 0 which is like re-setting them.\n */\n for (var i = 0; i < songBufferedProgressBars.length; i++) {\n var playlist = songBufferedProgressBars[i].getAttribute(\"data-amplitude-playlist\");\n var song = songBufferedProgressBars[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && song == null && !isNaN(_config2.default.buffered)) {\n songBufferedProgressBars[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100);\n }\n }\n }\n\n /**\n * Sync the playlist song buffered progress elements.\n */\n function syncPlaylist() {\n /*\n Gets all of the song buffered progress bars.\n */\n var songBufferedProgressBarsPlaylist = document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Iterate over all of the song buffered progress bar and\n set them to 0 which is like re-setting them.\n */\n for (var i = 0; i < songBufferedProgressBarsPlaylist.length; i++) {\n var song = songBufferedProgressBarsPlaylist[i].getAttribute(\"data-amplitude-song-index\");\n\n if (song == null && !isNaN(_config2.default.buffered)) {\n songBufferedProgressBarsPlaylist[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100);\n }\n }\n }\n\n /**\n * Sync the song song buffered progress elements.\n */\n function syncSong() {\n /*\n Gets all of the song buffered progress bars.\n */\n var songBufferedProgressBarsSongs = document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n /*\n Iterate over all of the song buffered progress bar and\n set them to 0 which is like re-setting them.\n */\n for (var i = 0; i < songBufferedProgressBarsSongs.length; i++) {\n var playlist = songBufferedProgressBarsSongs[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null && !isNaN(_config2.default.buffered)) {\n songBufferedProgressBarsSongs[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100);\n }\n }\n }\n\n /**\n * Sync the song in playlist song buffered progress elements.\n */\n function syncSongInPlaylist() {\n var activePlaylistIndex = _config2.default.active_playlist != null && _config2.default.active_playlist != \"\" ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n /*\n Gets all of the song buffered progress bars.\n */\n var songBufferedProgressBarsSongsInPlaylist = document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index=\"' + activePlaylistIndex + '\"][data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Iterate over all of the song buffered progress bar and\n set them to 0 which is like re-setting them.\n */\n for (var i = 0; i < songBufferedProgressBarsSongsInPlaylist.length; i++) {\n if (!isNaN(_config2.default.buffered)) {\n songBufferedProgressBarsSongsInPlaylist[i].value = parseFloat(parseFloat(_config2.default.buffered) / 100);\n }\n }\n }\n\n /**\n * Sets all of the song buffered progress bars to 0\n *\n * @access public\n */\n function reset() {\n /*\n Gets all of the song buffered progress bars.\n */\n var songBufferedProgressBars = document.getElementsByClassName(\"amplitude-buffered-progress\");\n\n /*\n Iterate over all of the song buffered progress bar and\n set them to 0 which is like re-setting them.\n */\n for (var i = 0; i < songBufferedProgressBars.length; i++) {\n songBufferedProgressBars[i].value = 0;\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n sync: sync,\n reset: reset\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = BufferedProgressElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Ended Module. Handles the ended event on the audio.\n *\n * @module events/Ended\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Ended = function () {\n /**\n * When the song has ended, handles what to do next\n *\n * HANDLER FOR: ended\n *\n * @access public\n */\n function handle() {\n /*\n Sets the time out for song ended. This determines if\n we should go to the next song or delay between songs.\n */\n setTimeout(function () {\n /*\n If we continue next, we should move to the next song in the playlist.\n */\n if (_config2.default.continue_next) {\n /*\n If the active playlist is not set, we set the\n next song that's in the songs array.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n _audioNavigation2.default.setNext(true);\n } else {\n _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist, true);\n }\n } else {\n if (!_config2.default.is_touch_moving) {\n /*\n Stops the active song.\n */\n _core2.default.stop();\n\n /*\n Sync the play pause elements.\n */\n _playPauseElements2.default.sync();\n }\n }\n }, _config2.default.delay);\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nexports.default = Ended;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _keydown = __webpack_require__(27);\n\nvar _keydown2 = _interopRequireDefault(_keydown);\n\nvar _timeUpdate = __webpack_require__(42);\n\nvar _timeUpdate2 = _interopRequireDefault(_timeUpdate);\n\nvar _ended = __webpack_require__(25);\n\nvar _ended2 = _interopRequireDefault(_ended);\n\nvar _progress = __webpack_require__(35);\n\nvar _progress2 = _interopRequireDefault(_progress);\n\nvar _play = __webpack_require__(31);\n\nvar _play2 = _interopRequireDefault(_play);\n\nvar _pause = __webpack_require__(30);\n\nvar _pause2 = _interopRequireDefault(_pause);\n\nvar _playPause = __webpack_require__(32);\n\nvar _playPause2 = _interopRequireDefault(_playPause);\n\nvar _stop = __webpack_require__(41);\n\nvar _stop2 = _interopRequireDefault(_stop);\n\nvar _mute = __webpack_require__(28);\n\nvar _mute2 = _interopRequireDefault(_mute);\n\nvar _volumeUp = __webpack_require__(45);\n\nvar _volumeUp2 = _interopRequireDefault(_volumeUp);\n\nvar _volumeDown = __webpack_require__(43);\n\nvar _volumeDown2 = _interopRequireDefault(_volumeDown);\n\nvar _songSlider = __webpack_require__(40);\n\nvar _songSlider2 = _interopRequireDefault(_songSlider);\n\nvar _volumeSlider = __webpack_require__(44);\n\nvar _volumeSlider2 = _interopRequireDefault(_volumeSlider);\n\nvar _next = __webpack_require__(29);\n\nvar _next2 = _interopRequireDefault(_next);\n\nvar _prev = __webpack_require__(34);\n\nvar _prev2 = _interopRequireDefault(_prev);\n\nvar _repeat = __webpack_require__(36);\n\nvar _repeat2 = _interopRequireDefault(_repeat);\n\nvar _repeatSong = __webpack_require__(37);\n\nvar _repeatSong2 = _interopRequireDefault(_repeatSong);\n\nvar _playbackSpeed = __webpack_require__(33);\n\nvar _playbackSpeed2 = _interopRequireDefault(_playbackSpeed);\n\nvar _shuffle = __webpack_require__(38);\n\nvar _shuffle2 = _interopRequireDefault(_shuffle);\n\nvar _skipTo = __webpack_require__(39);\n\nvar _skipTo2 = _interopRequireDefault(_skipTo);\n\nvar _waveform = __webpack_require__(22);\n\nvar _waveform2 = _interopRequireDefault(_waveform);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Events Module. Handles all of the events we listen to in\n * AmplitudeJS.\n *\n * @module events/Events\n */\n\n\n/**\n * Imports all of the handler objects used by the events.\n */\nvar Events = function () {\n /**\n * Initializes the handlers for the events listened to by Amplitude\n *\n * @access public\n */\n function initialize() {\n /*\n Write out debug message\n */\n _debug2.default.writeMessage(\"Beginning initialization of event handlers..\");\n\n /*\n Sets flag that the screen is moving and not a tap\n */\n document.addEventListener(\"touchmove\", function () {\n _config2.default.is_touch_moving = true;\n });\n\n /*\n On touch end if it was a touch move event, set moving to\n false\n */\n document.addEventListener(\"touchend\", function () {\n if (_config2.default.is_touch_moving) {\n _config2.default.is_touch_moving = false;\n }\n });\n\n /*\n On time update for the audio element, update visual displays that\n represent the time on either a visualized element or time display.\n */\n bindTimeUpdate();\n\n /*\n Binds key down event handlers for matching key codes to functions.\n */\n bindKeyDownEventHandlers();\n\n /*\n When the audio element has ended playing, we handle the song\n ending. In a single song or multiple modular song instance,\n this just synchronizes the visuals for time and song time\n visualization, but for a playlist it determines whether\n it should play the next song or not.\n */\n bindSongEnded();\n\n /*\n Binds progress event so we can see how much of the song is loaded.\n */\n bindProgress();\n\n /*\n Binds 'amplitude-play' event handlers\n */\n bindPlay();\n\n /*\n Binds 'amplitude-pause' event handlers.\n */\n bindPause();\n\n /*\n Binds 'amplitude-play-pause' event handlers.\n */\n bindPlayPause();\n\n /*\n Binds 'amplitude-stop' event handlers.\n */\n bindStop();\n\n /*\n Binds 'amplitude-mute' event handlers.\n */\n bindMute();\n\n /*\n Binds 'amplitude-volume-up' event handlers\n */\n bindVolumeUp();\n\n /*\n Binds 'amplitude-volume-down' event handlers\n */\n bindVolumeDown();\n\n /*\n Binds 'amplitude-song-slider' event handlers\n */\n bindSongSlider();\n\n /*\n Binds 'amplitude-volume-slider' event handlers.\n */\n bindVolumeSlider();\n\n /*\n Binds 'amplitude-next' event handlers.\n */\n bindNext();\n\n /*\n Binds 'amplitude-prev' event handlers.\n */\n bindPrev();\n\n /*\n Binds 'amplitude-shuffle' event handlers.\n */\n bindShuffle();\n\n /*\n Binds 'amplitude-repeat' event handlers.\n */\n bindRepeat();\n\n /*\n Binds 'amplitude-repeat-song' event handlers.\n */\n bindRepeatSong();\n\n /*\n Binds 'amplitude-playback-speed' event handlers.\n */\n bindPlaybackSpeed();\n\n /*\n Binds 'amplitude-skip-to' event handlers.\n */\n bindSkipTo();\n\n /*\n Binds `canplaythrough` event to build the waveform.\n */\n bindCanPlayThrough();\n }\n\n /**\n * On time update for the audio element, update visual displays that\n * represent the time on either a visualized element or time display.\n *\n * @access private\n */\n function bindTimeUpdate() {\n /*\n Bind for time update\n */\n _config2.default.audio.removeEventListener(\"timeupdate\", _timeUpdate2.default.handle);\n _config2.default.audio.addEventListener(\"timeupdate\", _timeUpdate2.default.handle);\n\n /*\n Bind for duration change\n */\n _config2.default.audio.removeEventListener(\"durationchange\", _timeUpdate2.default.handle);\n _config2.default.audio.addEventListener(\"durationchange\", _timeUpdate2.default.handle);\n }\n\n /**\n * On keydown, we listen to what key got pressed so we can map the key to\n * a function. This allows the user to map pause and play, next, etc. to key\n * presses.\n *\n * @access private\n */\n function bindKeyDownEventHandlers() {\n document.removeEventListener(\"keydown\", _keydown2.default.handle);\n document.addEventListener(\"keydown\", _keydown2.default.handle);\n }\n\n /**\n * When the audio element has ended playing, we handle the song\n * ending. In a single song or multiple modular song instance,\n * this just synchronizes the visuals for time and song time\n * visualization, but for a playlist it determines whether\n * it should play the next song or not.\n *\n * @access private\n */\n function bindSongEnded() {\n _config2.default.audio.removeEventListener(\"ended\", _ended2.default.handle);\n _config2.default.audio.addEventListener(\"ended\", _ended2.default.handle);\n }\n\n /**\n * As the audio is loaded, the progress event gets fired. We bind into this\n * to grab the buffered percentage of the song. We can then add more elements\n * to show the buffered amount.\n *\n * @access private\n */\n function bindProgress() {\n _config2.default.audio.removeEventListener(\"progress\", _progress2.default.handle);\n _config2.default.audio.addEventListener(\"progress\", _progress2.default.handle);\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS play buttons\n *\n * @access private\n */\n function bindPlay() {\n /*\n Gets all of the elements with the class amplitude-play\n */\n var play_classes = document.getElementsByClassName(\"amplitude-play\");\n\n /*\n Iterates over all of the play classes and binds the event interaction\n method to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < play_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n play_classes[i].removeEventListener(\"touchend\", _play2.default.handle);\n play_classes[i].addEventListener(\"touchend\", _play2.default.handle);\n } else {\n play_classes[i].removeEventListener(\"click\", _play2.default.handle);\n play_classes[i].addEventListener(\"click\", _play2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS pause buttons.\n *\n * @access private\n */\n function bindPause() {\n /*\n Gets all of the elements with the class amplitude-pause\n */\n var pause_classes = document.getElementsByClassName(\"amplitude-pause\");\n\n /*\n Iterates over all of the pause classes and binds the event interaction\n method to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < pause_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n pause_classes[i].removeEventListener(\"touchend\", _pause2.default.handle);\n pause_classes[i].addEventListener(\"touchend\", _pause2.default.handle);\n } else {\n pause_classes[i].removeEventListener(\"click\", _pause2.default.handle);\n pause_classes[i].addEventListener(\"click\", _pause2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS play pause buttons\n *\n * @access private\n */\n function bindPlayPause() {\n /*\n Gets all of the elements with the class amplitude-play-pause\n */\n var play_pause_classes = document.getElementsByClassName(\"amplitude-play-pause\");\n\n /*\n Iterates over all of the play/pause classes and binds the event interaction\n method to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < play_pause_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n play_pause_classes[i].removeEventListener(\"touchend\", _playPause2.default.handle);\n play_pause_classes[i].addEventListener(\"touchend\", _playPause2.default.handle);\n } else {\n play_pause_classes[i].removeEventListener(\"click\", _playPause2.default.handle);\n play_pause_classes[i].addEventListener(\"click\", _playPause2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS stop buttons\n *\n * @access private\n */\n function bindStop() {\n /*\n Gets all of the elements with the class amplitude-stop\n */\n var stop_classes = document.getElementsByClassName(\"amplitude-stop\");\n\n /*\n Iterates over all of the stop classes and binds the event interaction\n method to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < stop_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n stop_classes[i].removeEventListener(\"touchend\", _stop2.default.handle);\n stop_classes[i].addEventListener(\"touchend\", _stop2.default.handle);\n } else {\n stop_classes[i].removeEventListener(\"click\", _stop2.default.handle);\n stop_classes[i].addEventListener(\"click\", _stop2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS mute buttons\n *\n * @access private\n */\n function bindMute() {\n /*\n Gets all of the elements with the class amplitue-mute\n */\n var mute_classes = document.getElementsByClassName(\"amplitude-mute\");\n\n /*\n Iterates over all of the mute classes and binds the event interaction\n method to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < mute_classes.length; i++) {\n /*\n WARNING: If iOS, we don't do anything because iOS does not allow the\n volume to be adjusted through anything except the buttons on the side of\n the device.\n */\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n /*\n Checks for an iOS device and displays an error message if debugging\n is turned on.\n */\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n _debug2.default.writeMessage(\"iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4\");\n } else {\n mute_classes[i].removeEventListener(\"touchend\", _mute2.default.handle);\n mute_classes[i].addEventListener(\"touchend\", _mute2.default.handle);\n }\n } else {\n mute_classes[i].removeEventListener(\"click\", _mute2.default.handle);\n mute_classes[i].addEventListener(\"click\", _mute2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS Volume Up Buttons\n *\n * @access private\n */\n function bindVolumeUp() {\n /*\n Gets all of the elements with the class amplitude-volume-up\n */\n var volume_up_classes = document.getElementsByClassName(\"amplitude-volume-up\");\n\n /*\n Iterates over all of the volume up classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < volume_up_classes.length; i++) {\n /*\n WARNING: If iOS, we don't do anything because iOS does not allow the\n volume to be adjusted through anything except the buttons on the side of\n the device.\n */\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n /*\n Checks for an iOS device and displays an error message if debugging\n is turned on.\n */\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n _debug2.default.writeMessage(\"iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4\");\n } else {\n volume_up_classes[i].removeEventListener(\"touchend\", _volumeUp2.default.handle);\n volume_up_classes[i].addEventListener(\"touchend\", _volumeUp2.default.handle);\n }\n } else {\n volume_up_classes[i].removeEventListener(\"click\", _volumeUp2.default.handle);\n volume_up_classes[i].addEventListener(\"click\", _volumeUp2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS Volume Down Buttons\n *\n * @access private\n */\n function bindVolumeDown() {\n /*\n Gets all of the elements with the class amplitude-volume-down\n */\n var volume_down_classes = document.getElementsByClassName(\"amplitude-volume-down\");\n\n /*\n Iterates over all of the volume down classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < volume_down_classes.length; i++) {\n /*\n WARNING: If iOS, we don't do anything because iOS does not allow the\n volume to be adjusted through anything except the buttons on the side of\n the device.\n */\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n /*\n Checks for an iOS device and displays an error message if debugging\n is turned on.\n */\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n _debug2.default.writeMessage(\"iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4\");\n } else {\n volume_down_classes[i].removeEventListener(\"touchend\", _volumeDown2.default.handle);\n volume_down_classes[i].addEventListener(\"touchend\", _volumeDown2.default.handle);\n }\n } else {\n volume_down_classes[i].removeEventListener(\"click\", _volumeDown2.default.handle);\n volume_down_classes[i].addEventListener(\"click\", _volumeDown2.default.handle);\n }\n }\n }\n\n /**\n * Binds change and input events for AmplitudeJS Song Slider Inputs\n *\n * @access private\n */\n function bindSongSlider() {\n /*\n Gets browser so if we need to apply overrides, like we usually\n have to do for anything cool in IE, we can do that.\n */\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n\n /*\n Gets all of the elements with the class amplitude-song-slider\n */\n var song_sliders = document.getElementsByClassName(\"amplitude-song-slider\");\n\n /*\n Iterates over all of the song slider classes and binds the event interaction\n methods to the element. If the browser is IE we listen to the change event\n where if it is anything else, it's the input method.\n */\n for (var i = 0; i < song_sliders.length; i++) {\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\n song_sliders[i].removeEventListener(\"change\", _songSlider2.default.handle);\n song_sliders[i].addEventListener(\"change\", _songSlider2.default.handle);\n } else {\n song_sliders[i].removeEventListener(\"input\", _songSlider2.default.handle);\n song_sliders[i].addEventListener(\"input\", _songSlider2.default.handle);\n }\n }\n }\n\n /**\n * Binds change and input events fro AmplitudeJS Volume Slider inputs\n *\n * @access private\n */\n function bindVolumeSlider() {\n /*\n Gets browser so if we need to apply overrides, like we usually\n have to do for anything cool in IE, we can do that.\n */\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n\n /*\n Gets all of the elements with the class amplitude-volume-slider\n */\n var volume_sliders = document.getElementsByClassName(\"amplitude-volume-slider\");\n\n /*\n Iterates over all of the volume slider classes and binds the event interaction\n methods to the element. If the browser is IE we listen to the change event\n where if it is anything else, it's the input method.\n */\n for (var i = 0; i < volume_sliders.length; i++) {\n /*\n WARNING: If iOS, we don't do anything because iOS does not allow the\n volume to be adjusted through anything except the buttons on the side of\n the device.\n */\n if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {\n _debug2.default.writeMessage(\"iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4\");\n } else {\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) {\n volume_sliders[i].removeEventListener(\"change\", _volumeSlider2.default.handle);\n volume_sliders[i].addEventListener(\"change\", _volumeSlider2.default.handle);\n } else {\n volume_sliders[i].removeEventListener(\"input\", _volumeSlider2.default.handle);\n volume_sliders[i].addEventListener(\"input\", _volumeSlider2.default.handle);\n }\n }\n }\n }\n\n /**\n * Binds click and touchend events fro AmplitudeJS Next buttons\n *\n * @access private\n */\n function bindNext() {\n /*\n Gets all of the elements with the class amplitude-next\n */\n var next_classes = document.getElementsByClassName(\"amplitude-next\");\n\n /*\n Iterates over all of the next classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < next_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n next_classes[i].removeEventListener(\"touchend\", _next2.default.handle);\n next_classes[i].addEventListener(\"touchend\", _next2.default.handle);\n } else {\n next_classes[i].removeEventListener(\"click\", _next2.default.handle);\n next_classes[i].addEventListener(\"click\", _next2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS prev buttons.\n *\n * @access private\n */\n function bindPrev() {\n /*\n Gets all of the elements with the class amplitude-prev\n */\n var prev_classes = document.getElementsByClassName(\"amplitude-prev\");\n\n /*\n Iterates over all of the prev classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < prev_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n prev_classes[i].removeEventListener(\"touchend\", _prev2.default.handle);\n prev_classes[i].addEventListener(\"touchend\", _prev2.default.handle);\n } else {\n prev_classes[i].removeEventListener(\"click\", _prev2.default.handle);\n prev_classes[i].addEventListener(\"click\", _prev2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS shuffle buttons.\n *\n * @access private\n */\n function bindShuffle() {\n /*\n Gets all of the elements with the class amplitude-shuffle\n */\n var shuffle_classes = document.getElementsByClassName(\"amplitude-shuffle\");\n\n /*\n Iterates over all of the shuffle classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < shuffle_classes.length; i++) {\n /*\n Since we are re-binding everything we remove any classes that signify\n a state of the shuffle control.\n */\n shuffle_classes[i].classList.remove(\"amplitude-shuffle-on\");\n shuffle_classes[i].classList.add(\"amplitude-shuffle-off\");\n\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n shuffle_classes[i].removeEventListener(\"touchend\", _shuffle2.default.handle);\n shuffle_classes[i].addEventListener(\"touchend\", _shuffle2.default.handle);\n } else {\n shuffle_classes[i].removeEventListener(\"click\", _shuffle2.default.handle);\n shuffle_classes[i].addEventListener(\"click\", _shuffle2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS repeat buttons.\n *\n * @access private\n */\n function bindRepeat() {\n /*\n Gets all of the elements with the class amplitude-repeat\n */\n var repeat_classes = document.getElementsByClassName(\"amplitude-repeat\");\n\n /*\n Iterates over all of the repeat classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < repeat_classes.length; i++) {\n /*\n Since we are re-binding everything we remove any classes that signify\n a state of the repeat control.\n */\n repeat_classes[i].classList.remove(\"amplitude-repeat-on\");\n repeat_classes[i].classList.add(\"amplitude-repeat-off\");\n\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n repeat_classes[i].removeEventListener(\"touchend\", _repeat2.default.handle);\n repeat_classes[i].addEventListener(\"touchend\", _repeat2.default.handle);\n } else {\n repeat_classes[i].removeEventListener(\"click\", _repeat2.default.handle);\n repeat_classes[i].addEventListener(\"click\", _repeat2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS repeat song buttons.\n *\n * @access private\n */\n function bindRepeatSong() {\n /*\n Gets all of the elements with the class amplitude-repeat-song\n */\n var repeat_song_classes = document.getElementsByClassName(\"amplitude-repeat-song\");\n\n /*\n Iterates over all of the repeat song classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < repeat_song_classes.length; i++) {\n /*\n Since we are re-binding everything we remove any classes that signify\n a state of the repeat control.\n */\n repeat_song_classes[i].classList.remove(\"amplitude-repeat-on\");\n repeat_song_classes[i].classList.add(\"amplitude-repeat-off\");\n\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n repeat_song_classes[i].removeEventListener(\"touchend\", _repeatSong2.default.handle);\n repeat_song_classes[i].addEventListener(\"touchend\", _repeatSong2.default.handle);\n } else {\n repeat_song_classes[i].removeEventListener(\"click\", _repeatSong2.default.handle);\n repeat_song_classes[i].addEventListener(\"click\", _repeatSong2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS playback speed buttons\n *\n * @access private\n */\n function bindPlaybackSpeed() {\n /*\n Gets all of the elements with the class amplitude-playback-speed\n */\n var playback_speed_classes = document.getElementsByClassName(\"amplitude-playback-speed\");\n\n /*\n Iterates over all of the playback speed classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it is click.\n */\n for (var i = 0; i < playback_speed_classes.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n playback_speed_classes[i].removeEventListener(\"touchend\", _playbackSpeed2.default.handle);\n playback_speed_classes[i].addEventListener(\"touchend\", _playbackSpeed2.default.handle);\n } else {\n playback_speed_classes[i].removeEventListener(\"click\", _playbackSpeed2.default.handle);\n playback_speed_classes[i].addEventListener(\"click\", _playbackSpeed2.default.handle);\n }\n }\n }\n\n /**\n * Binds click and touchend events for AmplitudeJS skip to buttons.\n *\n * @access private\n */\n function bindSkipTo() {\n /*\n Gets all of the skip to elements with the class 'amplitude-skip-to'\n */\n var skipToClasses = document.getElementsByClassName(\"amplitude-skip-to\");\n\n /*\n Iterates over all of the skip to classes and binds the event interaction\n methods to the element. If the browser is mobile, then the event is touchend\n otherwise it's a click.\n */\n for (var i = 0; i < skipToClasses.length; i++) {\n if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {\n skipToClasses[i].removeEventListener(\"touchend\", _skipTo2.default.handle);\n skipToClasses[i].addEventListener(\"touchend\", _skipTo2.default.handle);\n } else {\n skipToClasses[i].removeEventListener(\"click\", _skipTo2.default.handle);\n skipToClasses[i].addEventListener(\"click\", _skipTo2.default.handle);\n }\n }\n }\n\n /**\n * Binds can play through to a song.\n *\n * @access private\n */\n function bindCanPlayThrough() {\n if (_waveform2.default.determineIfUsingWaveforms()) {\n _config2.default.audio.removeEventListener(\"canplaythrough\", _waveform2.default.build);\n _config2.default.audio.addEventListener(\"canplaythrough\", _waveform2.default.build);\n }\n }\n\n /*\n Returns the public facing functions.\n */\n return {\n initialize: initialize\n };\n}();\n\n/**\n * Imports the utility classes used by the evnets.\n */\n/*\n\tImport the necessary classes and config to use\n\twith the events.\n*/\nexports.default = Events;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _shuffler = __webpack_require__(13);\n\nvar _shuffler2 = _interopRequireDefault(_shuffler);\n\nvar _repeater = __webpack_require__(12);\n\nvar _repeater2 = _interopRequireDefault(_repeater);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _repeatElements = __webpack_require__(8);\n\nvar _repeatElements2 = _interopRequireDefault(_repeatElements);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Key Down event handler\n *\n * @module events/KeyDown\n */\n\n\n/**\n * Imports the Repeat Elements Visual Handler\n * @module visual/RepeatElements\n */\n\n\n/**\n * Imports the Repeater Utility\n * @module utilities/Repeater\n */\n\n\n/**\n * Imports the core of AmplitudeJS\n * @module core/Core\n */\nvar KeyDown = function () {\n /**\n * When the keydown event is fired, we determine which function should be run\n * based on what was passed in.\n *\n * HANDLER FOR: keydown\n *\n * @access public\n * @prop {object} event The event object being passed in.\n */\n function handle(event) {\n runKeyEvent(event.which);\n }\n\n /**\n * Runs an event on key down\n *\n * @access public\n * @param {number} key \t- The key code the event is bound to.\n */\n function runKeyEvent(key) {\n /*\n Checks to see if the user bound an event to the code pressed.\n */\n if (_config2.default.bindings[key] != undefined) {\n /*\n Determine which event should be run if bound.\n */\n switch (_config2.default.bindings[key]) {\n /*\n Fires a play pause event.\n */\n case \"play_pause\":\n runPlayPauseKeyDownEvent();\n break;\n\n /*\n Fires a next event.\n */\n case \"next\":\n runNextKeyDownEvent();\n break;\n\n /*\n Fires a previous event.\n */\n case \"prev\":\n runPrevKeyDownEvent();\n break;\n\n /*\n Fires a stop event.\n */\n case \"stop\":\n runStopKeyDownEvent();\n break;\n\n /*\n Fires a shuffle event.\n */\n case \"shuffle\":\n runShuffleKeyDownEvent();\n break;\n\n /*\n Fires a repeat event.\n */\n case \"repeat\":\n runRepeatKeyDownEvent();\n break;\n }\n }\n }\n\n /**\n * Runs the play pause method for key down.\n */\n function runPlayPauseKeyDownEvent() {\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (_config2.default.audio.paused) {\n _core2.default.play();\n } else {\n _core2.default.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Runs the next method for key down.\n */\n function runNextKeyDownEvent() {\n /*\n Check to see if the current state of the player\n is in playlist mode or not playlist mode.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n _audioNavigation2.default.setNext();\n } else {\n _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist);\n }\n }\n\n /**\n * Runs the previous method for key down.\n */\n function runPrevKeyDownEvent() {\n /*\n Check to see if the current playlist has been set\n or null and set the previous song.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n _audioNavigation2.default.setPrevious();\n } else {\n _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist);\n }\n }\n\n /**\n * Runs the stop method for key down.\n */\n function runStopKeyDownEvent() {\n /*\n Syncs all of the play pause elements to pause.\n */\n _playPauseElements2.default.syncToPause();\n\n /*\n Stops the active song.\n */\n _core2.default.stop();\n }\n\n /**\n * Runs the shuffle method for key down.\n */\n function runShuffleKeyDownEvent() {\n /*\n Check to see if the current playlist has been set\n or null and set the previous song.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n _shuffler2.default.toggleShuffle();\n } else {\n _shuffler2.default.toggleShufflePlaylist(_config2.default.active_playlist);\n }\n }\n\n /**\n * Run the repeat method for key down.\n */\n function runRepeatKeyDownEvent() {\n /*\n Toggles the repeat\n */\n _repeater2.default.setRepeat(!_config2.default.repeat);\n\n /*\n Visually sync repeat\n */\n _repeatElements2.default.syncRepeat();\n }\n\n /**\n * Returns the public methods for the handler.\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the Play Pause Elements Visual Handler\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\n\n\n/**\n * Imports the Shuffle Utility\n * @module utilities/Shuffle\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = KeyDown;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _muteElements = __webpack_require__(10);\n\nvar _muteElements2 = _interopRequireDefault(_muteElements);\n\nvar _volumeSliderElements = __webpack_require__(11);\n\nvar _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all events for a mute event.\n * @module events/Mute\n */\n\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\n/**\n * Imports the config to use the values\n */\nvar Mute = function () {\n /**\n * Handles an event for a mute element\n *\n * HANDLER FOR: class=\"amplitude-mute\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!_config2.default.is_touch_moving) {\n /*\n If the current volume in the config is 0, we set the volume to the\n pre_mute level. This means that the audio is already muted and\n needs to be restored to the pre_mute level.\n Otherwise, we set pre_mute volume to the current volume\n and set the config volume to 0, muting the audio.\n */\n if (_config2.default.volume == 0) {\n _core2.default.setVolume(_config2.default.pre_mute_volume);\n } else {\n _config2.default.pre_mute_volume = _config2.default.volume;\n _core2.default.setVolume(0);\n }\n\n /*\n Sync Mute Elements.\n */\n _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false);\n\n /*\n Syncs the volume sliders so the visuals align up with the functionality.\n If the volume is at 0, then the sliders should represent that so the user\n has the right starting point.\n */\n _volumeSliderElements2.default.sync();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nexports.default = Mute;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nvar _callbacks = __webpack_require__(9);\n\nvar _callbacks2 = _interopRequireDefault(_callbacks);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Next Event Handler\n *\n * @module events/Next\n */\n\n\n/**\n * Imports the Amplitude Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\n\n\n/**\n * Imports the Play Pause Elements Module.\n * @module visual/PlayPauseElements\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Next = function () {\n /**\n * Handles an event on the next button\n *\n * HANDLER FOR: class=\"amplitude-next\"\n *\n * GLOBAL: class=\"amplitude-next\"\n * PLAYLIST: class=\"amplitude-next\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Gets the playlist attribute from the element.\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlist is null, we handle the global next.\n */\n if (playlist == null) {\n handleGlobalNext();\n }\n\n /*\n If the playlist is set, we handle the playlist next.\n */\n if (playlist != null) {\n handlePlaylistNext(playlist);\n }\n }\n }\n\n /**\n * Handles an event on a global enxt button.\n *\n * @access private\n */\n function handleGlobalNext() {\n /*\n Check to see if the current state of the player\n is in playlist mode or not playlist mode. If we are in playlist mode,\n we set next on the playlist.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n _audioNavigation2.default.setNext();\n } else {\n _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist);\n }\n }\n\n /**\n * Handles an event on a next playlist button.\n *\n * @access private\n * @prop {string} playlist - The playlist we are handling the next for.\n */\n function handlePlaylistNext(playlist) {\n /*\n Ensure the playlist is the same as the active playlist. To get to change\n the scope to a new playlist, you need to play that playlist.\n */\n if (playlist == _config2.default.active_playlist) {\n _audioNavigation2.default.setNextPlaylist(playlist);\n } else {\n _debug2.default.writeMessage(\"You can not go to the next song on a playlist that is not being played!\");\n }\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\n\n\n/**\n * Imports the Callbacks Module\n * @module utilities/Callbacks\n */\n\n\n/**\n * Imports the AmplitudeJS Core module.\n * @module core/core\n */\nexports.default = Next;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the pause events\n * @module events/Pause\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Pause = function () {\n /**\n * Handles an event on a pause button\n *\n * HANDLER FOR: class=\"amplitude-pause\"\n *\n * GLOBAL: class=\"amplitude-pause\"\n * PLAYLIST: class=\"amplitude-pause\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-pause\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-pause\" amplitude-playlist=\"playlist-key\" amplitude-song-index=\"playlist_index\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Gets the attribute for song index so we can check if\n there is a need to change the song. In some scenarios\n there might be multiple pause classes on the page. In that\n case it is possible the user could click a different pause\n class.\n */\n var songIndexAttribute = this.getAttribute(\"data-amplitude-song-index\");\n var playlistAttribute = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n Handle a global pause button.\n */\n if (playlistAttribute == null && songIndexAttribute == null) {\n handleGlobalPause();\n }\n\n /*\n Handle a playlist pause button.\n */\n if (playlistAttribute != null && songIndexAttribute == null) {\n handlePlaylistPause(playlistAttribute);\n }\n\n /*\n Handle a song pause button.\n */\n if (playlistAttribute == null && songIndexAttribute != null) {\n handleSongPause(songIndexAttribute);\n }\n\n /*\n Handle a song in playlist pause button.\n */\n if (playlistAttribute != null && songIndexAttribute != null) {\n handleSongInPlaylistPause(playlistAttribute, songIndexAttribute);\n }\n }\n }\n\n /**\n * Handles global pause button which pauses whatever song is\n * active.\n *\n * @access private\n */\n function handleGlobalPause() {\n /*\n Pauses the song.\n */\n _core2.default.pause();\n\n /*\n Sync the play pause elements.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Handles the playlist pause.\n *\n * @access private\n * @param {string} playlist The playlist the pause button belongs to.\n */\n function handlePlaylistPause(playlist) {\n /*\n Checks to see if the active playlist is the same\n */\n if (_config2.default.active_playlist == playlist) {\n /*\n Pauses the song.\n */\n _core2.default.pause();\n\n /*\n Sync the play pause elements.\n */\n _playPauseElements2.default.sync();\n }\n }\n\n /**\n * Handles the song pause.\n *\n * @access private\n * @param {integer} song The song the pause button belongs to.\n */\n function handleSongPause(song) {\n /*\n Checks to see if the active playlist is null and the song matches\n the active index.\n */\n if ((_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) && _config2.default.active_index == song) {\n /*\n Pauses the song.\n */\n _core2.default.pause();\n\n /*\n Sync the play pause elements.\n */\n _playPauseElements2.default.sync();\n }\n }\n\n /**\n * Handles the song in playlist pause.\n *\n * @access private\n * @param {string} playlist The playlist the pause button belongs to.\n * @param {integer} song The song the pause button belongs to.\n */\n function handleSongInPlaylistPause(playlist, song) {\n /*\n Checks to see if the active song matches the song and the\n active playlist matches the playlist. This means the pause button is\n for the song in the playlist.\n */\n if (_config2.default.active_playlist == playlist && _config2.default.playlists[playlist].active_index == song) {\n /*\n Pauses the song.\n */\n _core2.default.pause();\n\n /*\n Sync the play pause elements.\n */\n _playPauseElements2.default.sync();\n }\n }\n\n /*\n Returns the public facing elements\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the ConfigState module.\n * @module utilities/ConfigState\n */\nexports.default = Pause;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the play events\n * @module events/Play\n */\n\n\n/**\n * Imports the AmplitudeJS Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Play = function () {\n /**\n * Handles an event on a play button in Amplitude.\n *\n * HANDLER FOR: class=\"amplitude-play\"\n *\n * GLOBAL: class=\"amplitude-play\"\n * PLAYLIST: class=\"amplitude-play\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-play\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-play\" amplitude-playlist=\"playlist-key\" amplitude-song-index=\"playlist_index\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Gets the attribute for song index so we can check if\n there is a need to change the song. In some scenarios\n there might be multiple play classes on the page. In that\n case it is possible the user could click a different play\n class and change the song.\n */\n var songIndexAttribute = this.getAttribute(\"data-amplitude-song-index\");\n var playlistAttribute = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n Handle a global play button.\n */\n if (playlistAttribute == null && songIndexAttribute == null) {\n handleGlobalPlay();\n }\n\n /*\n Handle a playlist play button.\n */\n if (playlistAttribute != null && songIndexAttribute == null) {\n handlePlaylistPlay(playlistAttribute);\n }\n\n /*\n Handle a song play button.\n */\n if (playlistAttribute == null && songIndexAttribute != null) {\n handleSongPlay(songIndexAttribute);\n }\n\n /*\n Handle a song in playlist play button.\n */\n if (playlistAttribute != null && songIndexAttribute != null) {\n handleSongInPlaylistPlay(playlistAttribute, songIndexAttribute);\n }\n }\n }\n\n /**\n * Handles global play button which plays whatever song is\n * active.\n *\n * @access private\n */\n function handleGlobalPlay() {\n /*\n Plays the song\n */\n _core2.default.play();\n\n /*\n Sync the play pause elements.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Handle the playlist play.\n *\n * @access private\n * @param {string} playlist The playlist the play button belongs to.\n */\n function handlePlaylistPlay(playlist) {\n /*\n Checks if we have a new playlist.\n */\n if (_checks2.default.newPlaylist(playlist)) {\n /*\n Sets the active playlist to what belongs to the playlist.\n */\n _audioNavigation2.default.setActivePlaylist(playlist);\n\n /*\n Play first song in the playlist since we just\n switched playlists, we start from the first song.\n If the user has shuffle on for the playlist, then\n we go from the first song in the shuffle playlist array.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].shuffle_list[0], 0);\n } else {\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[0], 0);\n }\n }\n\n /*\n Plays the song.\n */\n _core2.default.play();\n\n /*\n Syncs the play pause elements since they are dependent upon this state\n of the player.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Handles the song play button.\n *\n * @access private\n * @param {integer} song The index of the song we are playing.\n */\n function handleSongPlay(song) {\n /*\n There can be multiple playlists on the page and there can be\n multiple songs on the page AND there can be songs in multiple\n playlists, so we have some checking to do.\n */\n\n /*\n Check to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n */\n if (_checks2.default.newPlaylist(null)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n _audioNavigation2.default.setActivePlaylist(null);\n\n /*\n We then change the song to the index selected.\n */\n _audioNavigation2.default.changeSong(_config2.default.songs[song], song);\n }\n\n /*\n Check to see if the song has changed. If it has,\n set the active song. If it was in a playlist, the\n song wouldn't change here, since we already set the\n song when we checked for a playlist.\n */\n if (_checks2.default.newSong(null, song)) {\n /*\n The song selected is different, so we change the\n song.\n */\n _audioNavigation2.default.changeSong(_config2.default.songs[song], song);\n }\n\n /*\n Plays the song\n */\n _core2.default.play();\n\n /*\n Syncs the play pause elements since they are dependent upon this state\n of the player.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Handles the song in playlist play.\n *\n * @access private\n * @param {string} playlist The playlist the play button belongs to.\n * @param {integer} song The song the play button belongs to.\n */\n function handleSongInPlaylistPlay(playlist, song) {\n /*\n There can be multiple playlists on the page and there can be\n multiple songs on the page AND there can be songs in multiple\n playlists, so we have some checking to do.\n */\n\n /*\n Check to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n */\n if (_checks2.default.newPlaylist(playlist)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n _audioNavigation2.default.setActivePlaylist(playlist);\n\n /*\n We then change the song to the index selected.\n */\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song);\n }\n\n /*\n Check to see if the song has changed. If it has,\n set the active song. If it was in a playlist, the\n song wouldn't change here, since we already set the\n song when we checked for a playlist.\n */\n if (_checks2.default.newSong(playlist, song)) {\n /*\n The song selected is different, so we change the\n song.\n */\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song);\n }\n\n /*\n Plays the song\n */\n _core2.default.play();\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n _playPauseElements2.default.sync();\n }\n\n /*\n Returns the public facing elements\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the AmplitudeJS Checks Utility\n * @module utilities/Checks\n */\n\n\n/**\n * Imports the config state utility.\n * @module utilities/ConfigState\n */\nexports.default = Play;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the play pause events\n * @module events/PlayPause\n */\n\n\n/**\n * Imports the AmplitudeJS Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\n/**\n * Imports the config module\n * @module config\n */\nvar PlayPause = function () {\n /**\n * Handles an event on a play/pause button\n *\n * HANDLER FOR: class=\"amplitude-play-pause\"\n *\n * GLOBAL: class=\"amplitude-play-pause\"\n * PLAYLIST: class=\"amplitude-play-pause\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-play-pause\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-play-pause\" amplitude-playlist=\"playlist-key\" amplitude-song-index=\"playlist_index\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Get the playlist and song from the element. It's alright if these\n are null.\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n var song = this.getAttribute(\"data-amplitude-song-index\");\n\n /*\n Handle a global play pause button\n */\n if (playlist == null && song == null) {\n handleGlobalPlayPause();\n }\n\n /*\n Handle a playlist play pause button\n */\n if (playlist != null && song == null) {\n handlePlaylistPlayPause(playlist);\n }\n\n /*\n Handle a song play pause button\n */\n if (playlist == null && song != null) {\n handleSongPlayPause(song);\n }\n\n /*\n Handle a song in playlist play pause button\n */\n if (playlist != null && song != null) {\n handleSongInPlaylistPlayPause(playlist, song);\n }\n }\n }\n\n /**\n * Sets the main play pause buttons to the current state of the song.\n * @access private\n */\n function handleGlobalPlayPause() {\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (_config2.default.audio.paused) {\n _core2.default.play();\n } else {\n _core2.default.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Sets the playlist main play pause buttons to the current state of the song.\n * @access private\n * @param {string} playlist The playlist the main play pause button controls\n */\n function handlePlaylistPlayPause(playlist) {\n /*\n The only thing that can change when you click a playlist\n play pause is the playlist. Main play pauses have no change\n in song, song play pauses can change playlist and song.\n */\n if (_checks2.default.newPlaylist(playlist)) {\n /*\n If there's a new playlist, then we set the new playlist.\n */\n _audioNavigation2.default.setActivePlaylist(playlist);\n\n /*\n Play first song in the playlist since we just\n switched playlists, we start from the first song.\n If the user has shuffle on for the playlist, then\n we go from the first song in the shuffle playlist array.\n */\n if (_config2.default.playlists[playlist].shuffle) {\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].shuffle_list[0], 0, true);\n } else {\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[0], 0);\n }\n }\n\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (_config2.default.audio.paused) {\n _core2.default.play();\n } else {\n _core2.default.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Sets the playlist main play pause buttons to the current state of the song.\n * @access private\n * @param {string} song The index of the song being played/paused\n */\n function handleSongPlayPause(song) {\n /*\n There can be multiple playlists on the page and there can be\n multiple songs on the page AND there can be songs in multiple\n playlists, so we have some checking to do.\n */\n\n /*\n Check to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n */\n if (_checks2.default.newPlaylist(null)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n _audioNavigation2.default.setActivePlaylist(null);\n\n /*\n We then change the song to the index selected.\n */\n _audioNavigation2.default.changeSong(_config2.default.songs[song], song, true);\n }\n\n /*\n Check to see if the song has changed. If it has,\n set the active song. If it was in a playlist, the\n song wouldn't change here, since we already set the\n song when we checked for a playlist.\n */\n if (_checks2.default.newSong(null, song)) {\n /*\n The song selected is different, so we change the\n song.\n */\n _audioNavigation2.default.changeSong(_config2.default.songs[song], song, true);\n }\n\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (_config2.default.audio.paused) {\n _core2.default.play();\n } else {\n _core2.default.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Sets the song in playlist play pause buttons to the current\n * state of the song.\n * @access private\n * @param {string} playlist The playlist the song is a part of\n * @param {number} song The index of the song being played/paused\n */\n function handleSongInPlaylistPlayPause(playlist, song) {\n /*\n There can be multiple playlists on the page and there can be\n multiple songs on the page AND there can be songs in multiple\n playlists, so we have some checking to do.\n */\n\n /*\n Check to see if the playlist has changed. Essentially, if we are moving\n out of a playlist context.\n */\n if (_checks2.default.newPlaylist(playlist)) {\n /*\n We've moved out of the playlist context, so we set the active playlist\n to null\n */\n _audioNavigation2.default.setActivePlaylist(playlist);\n\n /*\n We then change the song to the index selected.\n */\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song, true);\n }\n\n /*\n Check to see if the song has changed. If it has,\n set the active song. If it was in a playlist, the\n song wouldn't change here, since we already set the\n song when we checked for a playlist.\n */\n if (_checks2.default.newSong(playlist, song)) {\n /*\n The song selected is different, so we change the\n song.\n */\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[song], song, true);\n }\n\n /*\n If the song is paused, we play the song. If the song is playing,\n we pause the song.\n */\n if (_config2.default.audio.paused) {\n _core2.default.play();\n } else {\n _core2.default.pause();\n }\n\n /*\n Now we sync all the elements to match the state of the audio.\n We don't need to do any checks on new songs or changed playlists\n in the global since it's whatever song is playing.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the AmplitudeJS Checks Utility\n * @module utilities/Checks\n */\n\n\n/**\n * Import the config state utility.\n * @module utilities/configState\n */\nexports.default = PlayPause;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _playbackSpeedElements = __webpack_require__(18);\n\nvar _playbackSpeedElements2 = _interopRequireDefault(_playbackSpeedElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Playback Speed Event Handler\n *\n * @module events/PlaybackSpeed\n */\n\n\n/**\n * Imports the Amplitude Core module\n * @module core/Core\n */\nvar PlaybackSpeed = function () {\n /**\n * Handles an event on the playback speed button\n *\n * HANDLER FOR: class=\"amplitude-playback-speed\"\n *\n * @access public\n */\n function handle() {\n if (!_config2.default.is_touch_moving) {\n /*\n We increment the speed by .5 everytime we click\n the button to change the playback speed. Once we are\n actively playing back at 2, we start back at 1 which\n is normal speed.\n */\n switch (_config2.default.playback_speed) {\n case 1:\n _core2.default.setPlaybackSpeed(1.5);\n break;\n case 1.5:\n _core2.default.setPlaybackSpeed(2);\n break;\n case 2:\n _core2.default.setPlaybackSpeed(1);\n break;\n }\n\n /*\n Visually sync the playback speed.\n */\n _playbackSpeedElements2.default.sync();\n }\n }\n\n /*\n Returns public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the Playback Speed Visual Elements\n * @module visual/PlaybackSpeedElements\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = PlaybackSpeed;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Prev Event Handler\n *\n * @module events/Prev\n */\n\n\n/**\n * Imports the Amplitude Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\nvar Prev = function () {\n /**\n * Handles an event on the previous button\n *\n * HANDLER FOR: class=\"amplitude-prev\"\n *\n * GLOBAL: class=\"amplitude-prev\"\n * PLAYLIST: class=\"amplitude-prev\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Gets the playlist attribute from the element.\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlist is null, we handle the global prev.\n */\n if (playlist == null) {\n handleGlobalPrev();\n }\n\n /*\n If the playlist is set, we handle the playlist prev.\n */\n if (playlist != null) {\n handlePlaylistPrev(playlist);\n }\n }\n }\n\n /**\n * Handles an event on a global previous button.\n *\n * @access private\n */\n function handleGlobalPrev() {\n /*\n Check to see if the current state of the player\n is in playlist mode or not playlist mode. If we are in playlist mode,\n we set prev on the playlist.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n _audioNavigation2.default.setPrevious();\n } else {\n _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist);\n }\n }\n\n /**\n * Handles an event on a previous playlist button.\n *\n * @access private\n * @prop {string} playlist - The playlist we are handling the previous for.\n */\n function handlePlaylistPrev(playlist) {\n /*\n Ensure the playlist is the same as the active playlist. To get to change\n the scope to a new playlist, you need to play that playlist.\n */\n if (playlist == _config2.default.active_playlist) {\n _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist);\n } else {\n _debug2.default.writeMessage(\"You can not go to the previous song on a playlist that is not being played!\");\n }\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = Prev;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _bufferedProgressElements = __webpack_require__(24);\n\nvar _bufferedProgressElements2 = _interopRequireDefault(_bufferedProgressElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Event Handler for progress\n *\n * @module events/Progress\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Progress = function () {\n /**\n * As the song is buffered, we can display the buffered percentage in\n * a progress bar.\n *\n * HANDLER FOR: progress\n *\n * @access public\n */\n function handle() {\n /*\n Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n */\n if (_config2.default.audio.buffered.length - 1 >= 0) {\n var bufferedEnd = _config2.default.audio.buffered.end(_config2.default.audio.buffered.length - 1);\n var duration = _config2.default.audio.duration;\n\n /*\n Set the computed song buffered value to the config.\n */\n _config2.default.buffered = bufferedEnd / duration * 100;\n }\n\n /*\n Sync the buffered progress bars.\n */\n _bufferedProgressElements2.default.sync();\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the BufferedProgressElements visual handler\n * @module visual/bufferedProgressElements.js\n */\nexports.default = Progress;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _repeater = __webpack_require__(12);\n\nvar _repeater2 = _interopRequireDefault(_repeater);\n\nvar _repeatElements = __webpack_require__(8);\n\nvar _repeatElements2 = _interopRequireDefault(_repeatElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Repeat Event Handler\n *\n * @module events/Repeat\n */\n\n\n/**\n * Imports the repeater utility module.\n * @module utilities/Repeater\n */\nvar Repeat = function () {\n /**\n * Handles an event on the repeat button\n *\n * HANDLER FOR: class=\"amplitude-repeat\"\n *\n * GLOBAL: class=\"amplitude-repeat\"\n * PLAYLIST: class=\"amplitude-repeat\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Gets the playlist attribute from the element.\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n If the playlist is null, we handle the global repeat.\n */\n if (playlist == null) {\n handleGlobalRepeat();\n }\n\n /*\n If the playlist is set, we handle the playlist repeat.\n */\n if (playlist != null) {\n handlePlaylistRepeat(playlist);\n }\n }\n }\n\n /**\n * Handles an event on a global repeat button.\n *\n * @access private\n */\n function handleGlobalRepeat() {\n /*\n Sets repeat to the opposite of what it was set to\n */\n _repeater2.default.setRepeat(!_config2.default.repeat);\n\n /*\n Visually sync repeat\n */\n _repeatElements2.default.syncRepeat();\n }\n\n /**\n * Handles an event on a playlist repeat button.\n *\n * @access private\n * @prop {string} playlist - The playlist we are handling the repeat store.\n */\n function handlePlaylistRepeat(playlist) {\n /*\n Sets repeat to the opposite of what it was set to for the playlist.\n */\n _repeater2.default.setRepeatPlaylist(!_config2.default.playlists[playlist].repeat, playlist);\n\n /*\n Visually sync playlist repeat\n */\n _repeatElements2.default.syncRepeatPlaylist(playlist);\n }\n\n /*\n Returns the public facing methods.\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the visual repeat elements module\n * @module visual/RepeatElements\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = Repeat;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _repeater = __webpack_require__(12);\n\nvar _repeater2 = _interopRequireDefault(_repeater);\n\nvar _repeatElements = __webpack_require__(8);\n\nvar _repeatElements2 = _interopRequireDefault(_repeatElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles an event on the Amplitude Repeat Song.\n *\n * @module events/RepeatSong\n */\n\n\n/**\n * Imports the repeat utility\n * @module utilities/Repeater\n */\nvar RepeatSong = function () {\n /**\n * Handles an event on the repeat song button\n *\n * HANDLER FOR: 'amplitude-repeat-song'\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Sets repeat song to the opposite of what it was set to\n */\n _repeater2.default.setRepeatSong(!_config2.default.repeat_song);\n\n /*\n Visually sync repeat song\n */\n _repeatElements2.default.syncRepeatSong();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Repeat Element\n * @module visual/RepeatElements\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = RepeatSong;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _shuffler = __webpack_require__(13);\n\nvar _shuffler2 = _interopRequireDefault(_shuffler);\n\nvar _shuffleElements = __webpack_require__(19);\n\nvar _shuffleElements2 = _interopRequireDefault(_shuffleElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the shuffle events\n * @module events/Shuffle\n */\n\n\n/**\n * Imports the shuffler utility\n * @module utilities/Shuffler\n */\nvar Shuffle = function () {\n /**\n * Handles an event on the shuffle button\n *\n * HANDLER FOR: class=\"amplitude-shuffle\"\n *\n * GLOBAL: class=\"amplitude-shuffle\"\n * PLAYLIST: class=\"amplitude-shuffle\" amplitude-playlist=\"playlist_key\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Get the playlist attribute\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n\n /*\n Check to see if the shuffle button belongs to a playlist\n */\n if (playlist == null) {\n handleGlobalShuffle();\n } else {\n handlePlaylistShuffle(playlist);\n }\n }\n }\n\n /**\n * Handles the event on the global shuffle button.\n */\n function handleGlobalShuffle() {\n /*\n Either shuffles or removes shuffle on the global state.\n */\n _shuffler2.default.toggleShuffle();\n\n /*\n Visualize the shuffle state change.\n */\n _shuffleElements2.default.syncMain(_config2.default.shuffle_on);\n }\n\n /**\n * Handles the event on the playlist shuffle button.\n *\n * @param {string} playlist - The playlist string the shuffle button belongs to.\n */\n function handlePlaylistShuffle(playlist) {\n /*\n Either shuffles or removes shuffle on the playlist state.\n */\n _shuffler2.default.toggleShufflePlaylist(playlist);\n\n /*\n Visually sync the playlist shuffle statuses.\n */\n _shuffleElements2.default.syncPlaylist(playlist);\n }\n\n /**\n * Returns public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the visual shuffle elements\n * @module visual/ShuffleElements\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = Shuffle;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the skip to event.\n *\n * @module events/SkipTo\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\n\n\n/**\n * Imports the AmplitudeJS Audio Navigation Utility\n * @module utilities/AudioNavigation\n */\n/**\n * Imports the config module\n * @module config\n */\nvar SkipTo = function () {\n /**\n * Handles an event on a skip to button.\n *\n * HANDLER FOR: class=\"amplitude-skip-to\"\n *\n * GLOBAL: class=\"amplitude-skip-to\" amplitude-song-index=\"song_index\" amplitude-location=\"seconds\"\n * PLAYLIST: class=\"amplitude-skip-to\" amplitude-playlist=\"playlist_key\" amplitude-song-index=\"song_index\" amplitude-location=\"seconds\"\n *\n * @access public\n */\n function handle() {\n /*\n If the touch is moving, we do not want to accidentally touch the play\n pause element and fire an event.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Extracts the needed attributes from the element.\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n var songIndex = this.getAttribute(\"data-amplitude-song-index\");\n var location = this.getAttribute(\"data-amplitude-location\");\n\n /*\n If the location is null, write a message. We can't skip to a location\n that is null\n */\n if (location == null) {\n _debug2.default.writeMessage(\"You must add an 'data-amplitude-location' attribute in seconds to your 'amplitude-skip-to' element.\");\n }\n\n /*\n If the song index is null, write a debug message. We can't skip to a location\n of a null song.\n */\n if (songIndex == null) {\n _debug2.default.writeMessage(\"You must add an 'data-amplitude-song-index' attribute to your 'amplitude-skip-to' element.\");\n }\n\n /*\n If the location and song index are set, continue.\n */\n if (location != null && songIndex != null) {\n /*\n Determines if the skip to button is in the scope of a playlist.\n */\n if (playlist == null) {\n handleSkipToSong(parseInt(songIndex), parseInt(location));\n } else {\n handleSkipToPlaylist(playlist, parseInt(songIndex), parseInt(location));\n }\n }\n }\n }\n\n /**\n * Handles the skipping to a specific song\n *\n * @access private\n * @param {string} songIndex - The index of the song being skipped to\n * @param {number} location - The seconds location of the song in the playlist.\n */\n function handleSkipToSong(songIndex, location) {\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n _audioNavigation2.default.changeSong(_config2.default.songs[songIndex], songIndex);\n _core2.default.play();\n\n /*\n Syncs all of the play pause buttons now that we've skipped.\n */\n _playPauseElements2.default.syncGlobal();\n _playPauseElements2.default.syncSong();\n\n /*\n Skip to the location in the song.\n */\n _core2.default.skipToLocation(location);\n }\n\n /**\n * Handles the skipping to a song that's in a playlist.\n *\n * @access private\n * @param {string} playlist - The playlist being skipped to\n * @param {string} songIndex - The index of the song in the playlist\n * @param {number} location - The seconds location of the song in the playlist.\n */\n function handleSkipToPlaylist(playlist, songIndex, location) {\n /*\n Checks if we are skipping to a new playlist\n */\n if (_checks2.default.newPlaylist(playlist)) {\n _audioNavigation2.default.setActivePlaylist(playlist);\n }\n\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[songIndex], songIndex);\n _core2.default.play();\n\n /*\n Sync all of the play pause elements.\n */\n _playPauseElements2.default.syncGlobal();\n _playPauseElements2.default.syncPlaylist();\n _playPauseElements2.default.syncSong();\n\n /*\n Skip to the location in the song.\n */\n _core2.default.skipToLocation(location);\n }\n\n /**\n * Return public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS play pause elements.\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Imports the AmplitudeJS Checks Utility\n * @module utilities/Checks\n */\n\n\n/**\n * Imports AmplitudeJS Debug Utility\n * @module utilities/debug\n */\nexports.default = SkipTo;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _time = __webpack_require__(23);\n\nvar _time2 = _interopRequireDefault(_time);\n\nvar _songSliderElements = __webpack_require__(14);\n\nvar _songSliderElements2 = _interopRequireDefault(_songSliderElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the song slider to event.\n *\n * @module events/SongSlider\n */\n\n\n/**\n * Imports the time utility\n * @module utilities/Time\n */\nvar SongSlider = function () {\n /**\n * Handles a song slider element.\n *\n * HANDLER FOR: class=\"amplitude-song-slider\"\n *\n * GLOBAL: class=\"amplitude-song-slider\"\n * PLAYLIST: class=\"amplitude-song-slider\" amplitude-playlist=\"playlist_key\"\n * SONG: class=\"amplitude-song-slider\" amplitude-song-index=\"song_index\"\n * SONG IN PLAYLIST: class=\"amplitude-song-slider\" amplitude-playlist=\"playlist_key\" amplitude-song-index=\"song_index\"\n *\n * @access public\n */\n function handle() {\n /*\n Gets the percentage of the song we will be setting the location for.\n */\n var locationPercentage = this.value;\n\n /*\n Computes the time in seconds for the current song.\n */\n var computedTime = _config2.default.audio.duration * (locationPercentage / 100);\n\n /*\n Gets the attributes for playlist and index for the element.\n */\n var playlist = this.getAttribute(\"data-amplitude-playlist\");\n var song = this.getAttribute(\"data-amplitude-song-index\");\n\n /*\n If no playlist or song is defined, then it's a global song slider.\n */\n if (playlist == null && song == null) {\n handleGlobalSongSlider(computedTime, locationPercentage);\n }\n\n /*\n If a playlist but no song is defined, then it's playlist slider.\n */\n if (playlist != null && song == null) {\n handlePlaylistSongSlider(computedTime, locationPercentage, playlist);\n }\n\n /*\n If no playlist but a song is defined, then it's a song slider.\n */\n if (playlist == null && song != null) {\n handleSongSongSlider(computedTime, locationPercentage, song);\n }\n\n /*\n If playlist and song are defined then it's a song in a playlist\n slider.\n */\n if (playlist != null && song != null) {\n handleSongInPlaylistSongSlider(computedTime, locationPercentage, playlist, song);\n }\n }\n\n /**\n * Handles a change on a global audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n */\n function handleGlobalSongSlider(computedTime, locationPercentage) {\n /*\n If the active song is not live, set the current time and adjust the slider.\n */\n if (!_config2.default.active_metadata.live) {\n _time2.default.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n _songSliderElements2.default.sync(locationPercentage, _config2.default.active_playlist, _config2.default.active_index);\n }\n }\n\n /**\n * Handles a change on a playlist audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n * @param {string} playlist = The playlist the song slider belongs to.\n */\n function handlePlaylistSongSlider(computedTime, locationPercentage, playlist) {\n /*\n We don't want to song slide a playlist that's not the\n active placylist.\n */\n if (_config2.default.active_playlist == playlist) {\n /*\n If the active song is not live, set the current time\n */\n if (!_config2.default.active_metadata.live) {\n _time2.default.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n _songSliderElements2.default.sync(locationPercentage, playlist, _config2.default.active_index);\n }\n }\n }\n\n /**\n * Handles a change on a song audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n * @param {integer} songIndex = The song being navigated.\n */\n function handleSongSongSlider(computedTime, locationPercentage, songIndex) {\n /*\n We only want to move the slider if the active song is the\n same as the song being selected.\n */\n if (_config2.default.active_index == songIndex && _config2.default.active_playlist == null) {\n /*\n If the active song is not live, set the current time\n */\n if (!_config2.default.active_metadata.live) {\n _time2.default.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n _songSliderElements2.default.sync(locationPercentage, _config2.default.active_playlist, songIndex);\n }\n }\n }\n\n /**\n * Handles a change on a song audio slider\n *\n * @access private\n * @param {integer} computedTime - The time we will set the audio to.\n * @param {float} locationPercentage - The percent through the song.\n * @param {integer} playlist = The playlist the song belongs to.\n * @param {integer} songIndex = The song being navigated.\n */\n function handleSongInPlaylistSongSlider(computedTime, locationPercentage, playlist, songIndex) {\n /*\n We only want to move the slider if the active song is the\n same as the song being selected and the active playlist is the same\n as the playlist selected.\n */\n if (_config2.default.playlists[playlist].active_index == songIndex && _config2.default.active_playlist == playlist) {\n /*\n If the active song is not live, set the current time\n */\n if (!_config2.default.active_metadata.live) {\n _time2.default.setCurrentTime(computedTime);\n\n /*\n Sync song slider elements.\n */\n _songSliderElements2.default.sync(locationPercentage, playlist, songIndex);\n }\n }\n }\n\n /*\n Return public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the song slider elements.\n * @module visual/SongSliderElements\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = SongSlider;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the stop events\n * @module events/Stop\n */\n\n\n/**\n * Imports the AmplitudeJS Play Pause Elements\n * @module visual/PlayPauseElements\n */\n/**\n * Imports the config module\n * @module config\n */\nvar Stop = function () {\n /**\n * Handles an event on a stop element.\n *\n * HANDLER FOR: class=\"amplitude-stop\"\n *\n * @access public\n */\n function handle() {\n /*\n If touch is not moving, we run. We don't want to accidentally press\n stop if touch is moving.\n */\n if (!_config2.default.is_touch_moving) {\n /*\n Sets all of the play/pause buttons to pause\n */\n _playPauseElements2.default.syncToPause();\n\n /*\n Stops the active song.\n */\n _core2.default.stop();\n }\n }\n\n /**\n * Returns public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/Core\n */\n\n\n/**\n * Imports the config state module.\n * @module utilities/configState\n */\nexports.default = Stop;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _bufferedProgressElements = __webpack_require__(24);\n\nvar _bufferedProgressElements2 = _interopRequireDefault(_bufferedProgressElements);\n\nvar _timeElements = __webpack_require__(15);\n\nvar _timeElements2 = _interopRequireDefault(_timeElements);\n\nvar _songSliderElements = __webpack_require__(14);\n\nvar _songSliderElements2 = _interopRequireDefault(_songSliderElements);\n\nvar _songPlayedProgressElements = __webpack_require__(20);\n\nvar _songPlayedProgressElements2 = _interopRequireDefault(_songPlayedProgressElements);\n\nvar _time = __webpack_require__(23);\n\nvar _time2 = _interopRequireDefault(_time);\n\nvar _callbacks = __webpack_require__(9);\n\nvar _callbacks2 = _interopRequireDefault(_callbacks);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS Event Handler for Time Update\n *\n * @module events/TimeUpdate\n */\n\n\n/**\n * Imports the Time utility class\n * @module utilities/Time\n */\n\n\n/**\n * Imports the Song Slider Elements visual class.\n * @module visual/songSliderElements\n */\n\n\n/**\n * Imports the Buffered Progress Elements visual class\n * @module visual/bufferedProgressElements\n */\nvar TimeUpdate = function () {\n /**\n * When the time updates on the active song, we sync the current time displays\n *\n * HANDLER FOR: timeupdate\n *\n * @access public\n */\n function handle() {\n /*\n Computes the buffered time.\n */\n computeBufferedTime();\n\n /*\n Sync the buffered progress elements.\n */\n _bufferedProgressElements2.default.sync();\n\n /*\n Updates the current time information.\n */\n updateTimeInformation();\n\n /*\n Run time callbacks\n */\n runTimeCallbacks();\n }\n\n /**\n * Computes the buffered time\n */\n function computeBufferedTime() {\n /*\n Help from: http://jsbin.com/badimipi/1/edit?html,js,output\n */\n if (_config2.default.audio.buffered.length - 1 >= 0) {\n var bufferedEnd = _config2.default.audio.buffered.end(_config2.default.audio.buffered.length - 1);\n var duration = _config2.default.audio.duration;\n\n _config2.default.buffered = bufferedEnd / duration * 100;\n }\n }\n\n /**\n * Updates the current time information.\n * @access private\n */\n function updateTimeInformation() {\n /*\n If the current song is not live, then\n we can update the time information. Otherwise the\n current time updates wouldn't mean much since the time\n is infinite.\n */\n if (!_config2.default.active_metadata.live) {\n /*\n Compute the current time\n */\n var currentTime = _time2.default.computeCurrentTimes();\n\n /*\n Compute the song completion percentage\n */\n var songCompletionPercentage = _time2.default.computeSongCompletionPercentage();\n\n /*\n Computes the song duration\n */\n var songDuration = _time2.default.computeSongDuration();\n\n /*\n Sync the current time elements with the current\n location of the song and the song duration elements with\n the duration of the song.\n */\n _timeElements2.default.syncCurrentTimes(currentTime);\n\n /*\n Sync the song slider elements.\n */\n _songSliderElements2.default.sync(songCompletionPercentage, _config2.default.active_playlist, _config2.default.active_index);\n\n /*\n Sync the song played progress elements.\n */\n _songPlayedProgressElements2.default.sync(songCompletionPercentage);\n\n /*\n Sync the duration time elements.\n */\n _timeElements2.default.syncDurationTimes(currentTime, songDuration);\n }\n }\n\n /**\n * Runs a callback at a certain time in the song.\n */\n function runTimeCallbacks() {\n /*\n Gets the current seconds into the song.\n */\n var currentSeconds = Math.floor(_config2.default.audio.currentTime);\n\n /*\n Checks to see if there is a callback at the certain seconds into the song.\n */\n if (_config2.default.active_metadata.time_callbacks != undefined && _config2.default.active_metadata.time_callbacks[currentSeconds] != undefined) {\n /*\n Checks to see if the callback has been run. Since the time updates more than\n one second, we don't want the callback to run X times.\n */\n if (!_config2.default.active_metadata.time_callbacks[currentSeconds].run) {\n _config2.default.active_metadata.time_callbacks[currentSeconds].run = true;\n _config2.default.active_metadata.time_callbacks[currentSeconds]();\n }\n } else {\n /*\n Iterate over all of the callbacks for a song. If the song has one, we flag\n the run as false. This occurs because we have passed the active second for\n the callback, so we flag it as not run. It will either run again if the user\n seeks back or not run in the future.\n */\n for (var seconds in _config2.default.active_metadata.time_callbacks) {\n if (_config2.default.active_metadata.time_callbacks.hasOwnProperty(seconds)) {\n _config2.default.active_metadata.time_callbacks[seconds].run = false;\n }\n }\n }\n }\n /**\n * Returns public functions\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the Callback utility class\n * @module utilities/Callbacks\n */\n\n\n/**\n * Imports the Song Played Progress Elements visual class.\n * @module visual/songPlayedProgressElements\n */\n\n\n/**\n * Imports the Time Elements visual class.\n * @module visual/timeElements\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = TimeUpdate;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _muteElements = __webpack_require__(10);\n\nvar _muteElements2 = _interopRequireDefault(_muteElements);\n\nvar _volumeSliderElements = __webpack_require__(11);\n\nvar _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all events for a volume down event.\n * @module events/VolumeDown\n */\n\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\n/**\n * Imports the config to use the values\n */\nvar VolumeDown = function () {\n /**\n * Handles a click on a volume down element.\n *\n * HANDLER FOR: class=\"amplitude-volume-down\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!_config2.default.is_touch_moving) {\n /*\n The volume range is from 0 to 1 for an audio element. We make this\n a base of 100 for ease of working with.\n If the new value is less than 100, we use the new calculated\n value which gets converted to the proper unit for the audio element.\n If the new value is greater than 100, we set the volume to 1 which\n is the max for the audio element.\n */\n var volume = null;\n\n if (_config2.default.volume - _config2.default.volume_increment > 0) {\n volume = _config2.default.volume - _config2.default.volume_increment;\n } else {\n volume = 0;\n }\n\n /*\n Calls the core function to set the volume to the computed value\n based on the user's intent.\n */\n _core2.default.setVolume(volume);\n\n /*\n Sync Mute Elements.\n */\n _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false);\n\n /*\n Sync Volume Slider Elements\n */\n _volumeSliderElements2.default.sync();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nexports.default = VolumeDown;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _muteElements = __webpack_require__(10);\n\nvar _muteElements2 = _interopRequireDefault(_muteElements);\n\nvar _volumeSliderElements = __webpack_require__(11);\n\nvar _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all events for a volume up event.\n * @module events/VolumeSlider\n */\n\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\n/**\n * Imports the config to use the values\n */\nvar VolumeSlider = function () {\n /**\n * Handles a change on the volume slider\n *\n * HANDLER FOR: class=\"amplitude-volume-slider\"\n *\n * @access public\n */\n function handle() {\n /*\n Calls the core function to set the volume to the computed value\n based on the user's intent.\n */\n _core2.default.setVolume(this.value);\n\n /*\n Sync Mute Elements.\n */\n _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false);\n\n /*\n Sync the volume slider locations\n */\n _volumeSliderElements2.default.sync();\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nexports.default = VolumeSlider;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _muteElements = __webpack_require__(10);\n\nvar _muteElements2 = _interopRequireDefault(_muteElements);\n\nvar _volumeSliderElements = __webpack_require__(11);\n\nvar _volumeSliderElements2 = _interopRequireDefault(_volumeSliderElements);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all events for a volume up event.\n * @module events/VolumeUp\n */\n\n\n/**\n * Imports the AmplitudeJS Visual Mute Elements\n * @module visual/MuteElements\n */\n/**\n * Imports the config to use the values\n */\nvar VolumeUp = function () {\n /**\n * Handles a click on a volume up element.\n *\n * HANDLER FOR: class=\"amplitude-volume-up\"\n *\n * @access public\n */\n function handle() {\n /*\n We don't fire this if the user is touching the screen and it's moving.\n This could lead to a mis-fire\n */\n if (!_config2.default.is_touch_moving) {\n /*\n The volume range is from 0 to 1 for an audio element. We make this\n a base of 100 for ease of working with.\n If the new value is less than 100, we use the new calculated\n value which gets converted to the proper unit for the audio element.\n If the new value is greater than 100, we set the volume to 1 which\n is the max for the audio element.\n */\n var volume = null;\n\n if (_config2.default.volume + _config2.default.volume_increment <= 100) {\n volume = _config2.default.volume + _config2.default.volume_increment;\n } else {\n volume = 100;\n }\n\n /*\n Calls the core function to set the volume to the computed value\n based on the user's intent.\n */\n _core2.default.setVolume(volume);\n\n /*\n Sync Mute Elements.\n */\n _muteElements2.default.setMuted(_config2.default.volume == 0 ? true : false);\n\n /*\n Sync Volume Slider Elements\n */\n _volumeSliderElements2.default.sync();\n }\n }\n\n /**\n * Returns the public facing methods\n */\n return {\n handle: handle\n };\n}();\n\n/**\n * Imports the AmplitudeJS Visual Volume Slider Elements\n * @module visual/VolumeSliderElements\n */\n\n\n/**\n * Imports the AmplitudeJS Core Methods\n * @module core/core\n */\nexports.default = VolumeUp;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * AmplitudeJS FX Module. Helps with configuring and setting up visualizations\n * and any other features of the Web Audio API that Amplitude takes advantage\n * of.\n *\n * @module fx/FX\n */\nvar Fx = function () {\n /**\n * Configures the Web Audio API to work with AmplitudeJS\n */\n function configureWebAudioAPI() {\n /*\n Gets the context for the browser. If this is null, the Web Audio\n API is unavailable.\n */\n var browserContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext;\n\n /*\n If we have a context, the Web Audio API is available and we can continue,\n otherwise, we alert the user if they have debug turned on.\n */\n if (browserContext) {\n /*\n Web Audio API is available, set the context in our config.\n */\n _config2.default.context = new browserContext();\n\n /*\n Create an analyzer that we will use in the context.\n */\n _config2.default.analyser = _config2.default.context.createAnalyser();\n\n /*\n Set cross origin to anonymous so we have a better chance of being able\n to use the power of the Web Audio API.\n */\n _config2.default.audio.crossOrigin = \"anonymous\";\n\n /*\n Bind the source to the Javascript Audio Element.\n */\n _config2.default.source = _config2.default.context.createMediaElementSource(_config2.default.audio);\n\n /*\n Connect the analyser to the source\n */\n _config2.default.source.connect(_config2.default.analyser);\n\n /*\n Connect the context destination to the analyser.\n */\n _config2.default.analyser.connect(_config2.default.context.destination);\n } else {\n AmplitudeHelpers.writeDebugMessage(\"Web Audio API is unavailable! We will set any of your visualizations with your back up definition!\");\n }\n }\n\n /**\n * Determines if the web audio API is available or not.\n */\n function webAudioAPIAvailable() {\n /*\n Gets the context for the browser. If this is null, the Web Audio\n API is unavailable.\n */\n var browserContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext;\n _config2.default.web_audio_api_available = false;\n\n /*\n Determines if the Web Audio API is available or not.\n */\n if (browserContext) {\n /*\n Set the flag in the config that the Web Audio API is available\n */\n _config2.default.web_audio_api_available = true;\n return true;\n } else {\n /*\n Set the flag in the config that the Web Audio API is not available\n */\n _config2.default.web_audio_api_available = false;\n return false;\n }\n }\n\n /**\n * Determines if the user is using any of the web audio API features.\n */\n function determineUsingAnyFX() {\n var waveforms = document.querySelectorAll(\".amplitude-wave-form\");\n var visualizationElements = document.querySelectorAll(\".amplitude-visualization\");\n\n if (waveforms.length > 0 || visualizationElements.length > 0) {\n return true;\n } else {\n return false;\n }\n }\n\n /*\n Returns the publicly accessible methods\n */\n return {\n configureWebAudioAPI: configureWebAudioAPI,\n webAudioAPIAvailable: webAudioAPIAvailable,\n determineUsingAnyFX: determineUsingAnyFX\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = Fx;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _init = __webpack_require__(21);\n\nvar _init2 = _interopRequireDefault(_init);\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _core = __webpack_require__(1);\n\nvar _core2 = _interopRequireDefault(_core);\n\nvar _shuffler = __webpack_require__(13);\n\nvar _shuffler2 = _interopRequireDefault(_shuffler);\n\nvar _configState = __webpack_require__(6);\n\nvar _configState2 = _interopRequireDefault(_configState);\n\nvar _audioNavigation = __webpack_require__(3);\n\nvar _audioNavigation2 = _interopRequireDefault(_audioNavigation);\n\nvar _repeater = __webpack_require__(12);\n\nvar _repeater2 = _interopRequireDefault(_repeater);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _visualizations = __webpack_require__(16);\n\nvar _visualizations2 = _interopRequireDefault(_visualizations);\n\nvar _shuffleElements = __webpack_require__(19);\n\nvar _shuffleElements2 = _interopRequireDefault(_shuffleElements);\n\nvar _repeatElements = __webpack_require__(8);\n\nvar _repeatElements2 = _interopRequireDefault(_repeatElements);\n\nvar _songSliderElements = __webpack_require__(14);\n\nvar _songSliderElements2 = _interopRequireDefault(_songSliderElements);\n\nvar _songPlayedProgressElements = __webpack_require__(20);\n\nvar _songPlayedProgressElements2 = _interopRequireDefault(_songPlayedProgressElements);\n\nvar _timeElements = __webpack_require__(15);\n\nvar _timeElements2 = _interopRequireDefault(_timeElements);\n\nvar _playPauseElements = __webpack_require__(2);\n\nvar _playPauseElements2 = _interopRequireDefault(_playPauseElements);\n\nvar _metaDataElements = __webpack_require__(7);\n\nvar _metaDataElements2 = _interopRequireDefault(_metaDataElements);\n\nvar _playbackSpeedElements = __webpack_require__(18);\n\nvar _playbackSpeedElements2 = _interopRequireDefault(_playbackSpeedElements);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _soundcloud = __webpack_require__(17);\n\nvar _soundcloud2 = _interopRequireDefault(_soundcloud);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Amplitude should just be an interface to the public functions.\n * Everything else should be handled by other objects\n *\n * @module Amplitude\n */\n\n\n/**\n * Meta Data Elements\n * @module visual/MetaDataElements\n */\n\n\n/**\n * Time Elements\n * @module visual/TimeElements\n */\n\n\n/**\n * Song Slider Elements\n * @module visual/SongSliderElements\n */\n\n\n/****************************************************\n * Elements\n ****************************************************/\n/**\n * Visual Shuffle Elements\n * @module visual/ShuffleElements\n */\n\n\n/**\n * Imports the checks\n * @module utilities/Checks\n */\n\n\n/**\n * Imports the audio navigation\n * @module utilities/AudioNavigation\n */\n\n\n/****************************************************\n * Utilities\n ****************************************************/\n/**\n * Shuffler Module\n * @module utilities/Shuffler\n */\n\n\n/****************************************************\n * Config\n ****************************************************/\n/**\n * Imports the config module\n * @module config\n */\nvar Amplitude = function () {\n /**\n * The main init function. The user will call this through\n * Amplitude.init({}) and pass in their settings.\n *\n * Public Accessor: Amplitude.init( user_config_json );\n *\n * @access public\n * @param {object} userConfig \t- A JSON object of user defined values that helps configure and initialize AmplitudeJS.\n */\n function init(userConfig) {\n _init2.default.initialize(userConfig);\n }\n\n /**\n * Returns the current config for AmplitudeJS\n */\n function getConfig() {\n return _config2.default;\n }\n\n /**\n * Binds new elements that were added to the page.\n *\n * Public Accessor: Amplitude.bindNewElements()\n *\n * @access public\n */\n function bindNewElements() {\n _init2.default.rebindDisplay();\n }\n\n /**\n * Returns the active playlist.\n *\n * Public Accessor: Amplitude.getActivePlaylist()\n *\n * @access public\n */\n function getActivePlaylist() {\n return _config2.default.active_playlist;\n }\n\n /**\n * Returns the current playback speed.\n *\n * Public Accessor: Amplitude.getPlaybackSpeed()\n *\n * @access public\n */\n function getPlaybackSpeed() {\n return _config2.default.playback_speed;\n }\n\n /**\n * Sets the playback speed\n *\n * Public Accessor: Amplitude.setPlaybackSpeed( speed )\n *\n * @access public\n */\n function setPlaybackSpeed(speed) {\n /*\n Increments are set in .5 We only accept values\n 1, 1.5, 2\n 1 -> Regular Speed\n 1.5 -> 50% faster\n 2 -> Twice as fast\n */\n _core2.default.setPlaybackSpeed(speed);\n\n /*\n Visually sync the playback speed.\n */\n _playbackSpeedElements2.default.sync();\n }\n\n /**\n * Gets the repeat state of the player.\n *\n * Public Accessor: Amplitude.getRepeat()\n *\n * @access public\n */\n function getRepeat() {\n return _config2.default.repeat;\n }\n\n /**\n * Gets the repeat state for a playlist\n *\n * Public Accessor: Amplitude.getRepeatPlaylist()\n *\n * @access public\n */\n function getRepeatPlaylist(playlistKey) {\n return _config2.default.playlists[playlistKey].repeat;\n }\n\n /**\n * Returns the shuffle state of the player.\n *\n * Public Accessor: Amplitude.getShuffle()\n *\n * @access public\n */\n function getShuffle() {\n return _config2.default.shuffle_on;\n }\n\n /**\n * Returns the shuffle state of the playlist.\n *\n * Public Accessor: Amplitude.getShufflePlaylist( playlist )\n *\n * @access public\n * @param {string} playlist \t- The key representing the playlist ID to see if it's shuffled or not.\n */\n function getShufflePlaylist(playlist) {\n return _config2.default.playlists[playlist].shuffle;\n }\n\n /**\n * Sets the shuffle state for the player.\n *\n * Public Accessor: Amplitude.setShuffle()\n *\n * @param {boolean} shuffle \t- True when we are shuffling the songs, false when we turn off shuffle.\n *\n * @access public\n */\n function setShuffle(shuffle) {\n _shuffler2.default.setShuffle(shuffle);\n\n _shuffleElements2.default.syncMain();\n }\n\n /**\n * Sets the shuffle state for the playlist\n *\n * Public Accessor: Amplitude.setShufflePlaylist( playlist )\n *\n * @access public\n * @param {string} playlist \t- The key representing the playlist ID to to shuffle the playlist.\n * @param {boolean} shuffle \t- True when we are shuffling the playlist, false when we turn off shuffle.\n */\n function setShufflePlaylist(playlist, shuffle) {\n _shuffler2.default.setShufflePlaylist(playlist, shuffle);\n\n _shuffleElements2.default.syncMain();\n _shuffleElements2.default.syncPlaylist(playlist);\n }\n\n /**\n * Sets the repeat state for the player.\n *\n * Public Accessor: Amplitude.setRepeat()\n *\n * @access public\n * @param {boolean} repeatState \t- The state you want the repeat song to be in.\n */\n function setRepeat(repeatState) {\n _repeater2.default.setRepeat(repeatState);\n _repeatElements2.default.syncRepeat();\n }\n\n /**\n * Sets the repeat state for a playlist.\n *\n * Public Accessor: Amplitude.setRepeatPlaylist( playlistKey )\n *\n * @access public\n * @param {string} playlist \t- The key representing the playlist ID to to shuffle the playlist.\n * @param {boolean} repeatState - The state you want the repeat playlist to be in.\n */\n function setRepeatPlaylist(playlist, repeatState) {\n _repeater2.default.setRepeatPlaylist(repeatState, playlist);\n _repeatElements2.default.syncRepeatPlaylist(playlist);\n }\n\n /**\n * Sets the repeat state for the song.\n *\n * Public Accessor: Amplitude.setRepeatSong()\n *\n * @access public\n * @param {boolean} repeatState \t- The state you want the repeat song status to be in.\n */\n function setRepeatSong(repeatState) {\n if (!_config2.default.is_touch_moving) {\n /*\n Sets repeat to the opposite of what it was set to\n */\n _repeater2.default.setRepeatSong(!_config2.default.repeat_song);\n\n /*\n Visually sync repeat song\n */\n _repeatElements2.default.syncRepeatSong();\n }\n }\n\n /**\n * Gets the default album art for the player\n *\n * Public Accessor: Amplitude.getDefaultAlbumArt()\n *\n * @access public\n */\n function getDefaultAlbumArt() {\n return _config2.default.default_album_art;\n }\n\n /**\n * Gets the default playlist art for the playlists\n *\n * Public Accessor: Amplitude.getDefaultPlaylistArt()\n *\n * @access public\n */\n function getDefaultPlaylistArt() {\n return _config2.default.default_playlist_art;\n }\n\n /**\n * Sets the default album art for the player\n *\n * Public Accessor: Amplitude.setDefaultAlbumArt( url )\n *\n * @access public\n * @param {string} url \t- A string representing the URL of the new default album art.\n */\n function setDefaultAlbumArt(url) {\n _config2.default.default_album_art = url;\n }\n\n /**\n * Sets the default playlist art for the player\n *\n * Public Accessor: Amplitude.setDefaultPlaylistArt( url )\n *\n * @access public\n * @param {string} url - A string representing the URL of the new default playlist art.\n */\n function setDefaultPlaylistArt(url) {\n _config2.default.default_plalist_art = url;\n }\n\n /**\n * Allows the user to get the percentage of the song played.\n *\n * Public Accessor: Amplitude.getSongPlayedPercentage();\n *\n * @access public\n */\n function getSongPlayedPercentage() {\n /*\n Returns the percentage of the song played.\n */\n return _config2.default.audio.currentTime / _config2.default.audio.duration * 100;\n }\n\n /**\n * Allows the user to get the amount of seconds the song has played.\n *\n * Public Accessor: Amplitude.getSongPlayed();\n *\n * @access public\n */\n function getSongPlayedSeconds() {\n /*\n Returns the amount of seconds the song has played.\n */\n return _config2.default.audio.currentTime;\n }\n\n /**\n * Allows the user to get the duration of the current song\n *\n * Public Accessor: Amplitude.getSongPlayed();\n *\n * @access public\n */\n function getSongDuration() {\n /*\n Returns the duration of the current song\n */\n return _config2.default.audio.duration;\n }\n\n /**\n * Allows the user to set how far into the song they want to be. This is\n * helpful for implementing custom range sliders. Only works on the current song.\n *\n * Public Accessor: Amplitude.setSongPlayedPercentage( float );\n *\n * @access public\n * @param {number} percentage \t- The percentage of the song played\n */\n function setSongPlayedPercentage(percentage) {\n /*\n Ensures the percentage is a number and is between 0 and 100.\n */\n if (typeof percentage == \"number\" && percentage > 0 && percentage < 100) {\n /*\n Sets the current time of the song to the percentage.\n */\n _config2.default.audio.currentTime = _config2.default.audio.duration * (percentage / 100);\n }\n }\n\n /**\n * Allows the user to turn on debugging.\n *\n * Public Accessor: Amplitude.setDebug( bool );\n *\n * @access public\n * @param {boolean} state \t\t- Turns debugging on and off.\n */\n function setDebug(state) {\n /*\n Sets the global config debug on or off.\n */\n _config2.default.debug = state;\n }\n\n /**\n * Returns the active song meta data for the user to do what is\n * needed.\n *\n * Public Accessor: Amplitude.getActiveSongMetadata();\n *\n * @access public\n * @returns {object} JSON Object with the active song information\n */\n function getActiveSongMetadata() {\n return _config2.default.active_metadata;\n }\n\n /**\n * Returns the active playlist meta data for the for the user to use.\n *\n * Public Accessor: Amplitude.getActivePlaylistMetadata();\n *\n * @access public\n * @returns {object} JSON representation for the active playlist\n */\n function getActivePlaylistMetadata() {\n return _config2.default.playlists[_config2.default.active_playlist];\n }\n\n /**\n * Returns a song in the songs array at that index\n *\n * Public Accessor: Amplitude.getSongAtIndex( song_index )\n *\n * @access public\n * @param {number} index \t- The integer for the index of the song in the songs array.\n * @returns {object} JSON representation for the song at a specific index.\n */\n function getSongAtIndex(index) {\n return _config2.default.songs[index];\n }\n\n /**\n * Returns a song at a playlist index\n *\n * Public Accessor: Amplitude.getSongAtPlaylistIndex( playlist, index\n *\n * @access public\n * @param {number} index \t\t\t- The integer for the index of the song in the playlist.\n * @param {string} playlist\t\t- The key of the playlist we are getting the song at the index for\n * @returns {object} JSON representation for the song at a specific index.\n */\n function getSongAtPlaylistIndex(playlist, index) {\n var song = _config2.default.playlists[playlist].songs[index];\n\n return song;\n }\n\n /**\n * Adds a song to the end of the config array. This will allow Amplitude\n * to play the song in a playlist type setting.\n *\n * Public Accessor: Amplitude.addSong( song_json )\n *\n * @access public\n * @param {object} song \t- JSON representation of a song.\n * @returns {number} New index of the song.\n */\n function addSong(song) {\n /*\n Ensures we have a songs array to push to.\n */\n if (_config2.default.songs == undefined) {\n _config2.default.songs = [];\n }\n\n _config2.default.songs.push(song);\n\n if (_config2.default.shuffle_on) {\n _config2.default.shuffle_list.push(song);\n }\n\n if (_soundcloud2.default.isSoundCloudURL(song.url)) {\n _soundcloud2.default.resolveIndividualStreamableURL(song.url, null, _config2.default.songs.length - 1, _config2.default.shuffle_on);\n }\n\n return _config2.default.songs.length - 1;\n }\n\n /**\n * Adds a song to the beginning of the config array.\n * This will allow Amplitude to play the song in a\n * playlist type setting.\n *\n * Public Accessor: Amplitude.addSong( song_json )\n *\n * @access public\n * @param {object} song \t- JSON representation of a song.\n * @returns {number} New index of the song (0)\n */\n function prependSong(song) {\n /*\n Ensures we have a songs array to push to.\n */\n if (_config2.default.songs == undefined) {\n _config2.default.songs = [];\n }\n\n _config2.default.songs.unshift(song);\n\n if (_config2.default.shuffle_on) {\n _config2.default.shuffle_list.unshift(song);\n }\n\n if (_soundcloud2.default.isSoundCloudURL(song.url)) {\n _soundcloud2.default.resolveIndividualStreamableURL(song.url, null, _config2.default.songs.length - 1, _config2.default.shuffle_on);\n }\n\n return 0;\n }\n\n /**\n * Adds a song to a playlist. This will allow Amplitude to play the song in the\n * playlist\n *\n * Public Accessor: Amplitude.addSongToPlaylist( song_json, playlist_key )\n *\n * @access public\n * @param {object} song \t\t\t- JSON representation of a song.\n * @param {string} playlist\t\t- Playlist we are adding the song to.\n * @returns {mixed} New index of song in playlist or null if no playlist exists\n */\n function addSongToPlaylist(song, playlist) {\n if (_config2.default.playlists[playlist] != undefined) {\n _config2.default.playlists[playlist].songs.push(song);\n\n if (_config2.default.playlists[playlist].shuffle) {\n _config2.default.playlists[playlist].shuffle_list.push(song);\n }\n\n if (_soundcloud2.default.isSoundCloudURL(song.url)) {\n _soundcloud2.default.resolveIndividualStreamableURL(song.url, playlist, _config2.default.playlists[playlist].songs.length - 1, _config2.default.playlists[playlist].shuffle);\n }\n\n return _config2.default.playlists[playlist].songs.length - 1;\n } else {\n _debug2.default.writeMessage(\"Playlist doesn't exist!\");\n return null;\n }\n }\n\n /**\n * Adds a playlist to Amplitude.\n *\n * @param {string} key - The key of the playlist we are adding.\n * @param {object} data - The data relating to the playlist\n * @param {array} songs - The songs to add to the playlist\n */\n function addPlaylist(key, data, songs) {\n /*\n Ensures the playlist is not already defined.\n */\n if (_config2.default.playlists[key] == undefined) {\n /*\n Initialize the new playlist object.\n */\n _config2.default.playlists[key] = {};\n\n /*\n Define the ignored keys that we don't want to copy over.\n */\n var ignoredKeys = [\"repeat\", \"shuffle\", \"shuffle_list\", \"songs\", \"src\"];\n\n /*\n Iterate over all of the keys defined by the user and\n set them on the playlist.\n */\n for (var dataKey in data) {\n if (ignoredKeys.indexOf(dataKey) < 0) {\n _config2.default.playlists[key][dataKey] = data[dataKey];\n }\n }\n\n /*\n Initialize the default parameters for the playlist and set the songs.\n */\n _config2.default.playlists[key].songs = songs;\n _config2.default.playlists[key].active_index = null;\n _config2.default.playlists[key].repeat = false;\n _config2.default.playlists[key].shuffle = false;\n _config2.default.playlists[key].shuffle_list = [];\n\n return _config2.default.playlists[key];\n } else {\n _debug2.default.writeMessage(\"A playlist already exists with that key!\");\n return null;\n }\n }\n\n /**\n * Removes a song from the song array\n *\n * Public Accessor: Amplitude.removeSong( index )\n *\n * @access public\n * @param {integer} index - Index of the song being removed\n * @returns {boolean} True if removed false if not.\n */\n function removeSong(index) {\n _config2.default.songs.splice(index, 1);\n }\n\n /**\n * Removes a song from the playlist\n *\n * Public Accessor: Amplitude.removeSongFromPlaylist( index, playlist )\n *\n * @access public\n * @param {integer} index \t\t\t- Index of the song being removed from the playlist.\n * @param {string} playlist\t\t\t- Playlist we are removing the song from.\n * @returns {boolean} True if removed false if not.\n */\n function removeSongFromPlaylist(index, playlist) {\n if (_config2.default.playlists[playlist] != undefined) {\n _config2.default.playlists[playlist].songs.splice(index, 1);\n }\n }\n\n /**\n * When you pass a song object it plays that song right awawy. It sets\n * the active song in the config to the song you pass in and synchronizes\n * the visuals.\n *\n * Public Accessor: Amplitude.playNow( song )\n *\n * @access public\n * @param {object} song \t- JSON representation of a song.\n */\n function playNow(song) {\n /*\n Makes sure the song object has a URL associated with it\n or there will be nothing to play.\n */\n if (song.url) {\n _config2.default.audio.src = song.url;\n _config2.default.active_metadata = song;\n _config2.default.active_album = song.album;\n } else {\n /*\n Write error message since the song passed in doesn't\n have a URL.\n */\n _debug2.default.writeMessage(\"The song needs to have a URL!\");\n }\n\n /*\n Plays the song.\n */\n _core2.default.play();\n\n /*\n Sets the main song control status visual\n */\n _playPauseElements2.default.sync();\n\n /*\n Update the song meta data\n */\n _metaDataElements2.default.displayMetaData();\n\n /*\n Reset the song sliders, song progress bar info, and\n reset times. This ensures everything stays in sync.\n */\n _songSliderElements2.default.resetElements();\n\n /*\n Reset the song played progress elements.\n */\n _songPlayedProgressElements2.default.resetElements();\n\n /*\n Reset all of the current time elements.\n */\n _timeElements2.default.resetCurrentTimes();\n\n /*\n Reset all of the duration time elements.\n */\n _timeElements2.default.resetDurationTimes();\n }\n\n /**\n * Plays a song at the index passed in from the songs array.\n *\n * Public Accessor: Amplitude.playSongAtIndex( index )\n *\n * @access public\n * @param {number} index \t- The number representing the song in the songs array.\n */\n function playSongAtIndex(index) {\n /*\n Stop the current song.\n */\n _core2.default.stop();\n\n /*\n Determine if there is a new playlist, if so set the active playlist and change the song.\n */\n if (_checks2.default.newPlaylist(null)) {\n _audioNavigation2.default.setActivePlaylist(null);\n\n _audioNavigation2.default.changeSong(_config2.default.songs[index], index);\n }\n\n /*\n Check if the song is new. If so, change the song.\n */\n if (_checks2.default.newSong(null, index)) {\n _audioNavigation2.default.changeSong(_config2.default.songs[index], index);\n }\n\n /*\n Play the song\n */\n _core2.default.play();\n\n /*\n Sync all of the play pause buttons.\n */\n _playPauseElements2.default.sync();\n }\n\n /**\n * Plays a song at the index passed in for the playlist provided. The index passed\n * in should be the index of the song in the playlist and not the songs array.\n *\n * @access public\n * @param {number} index \t\t- The number representing the song in the playlist array.\n * @param {string} playlist - The key string representing the playlist we are playing the song from.\n *\n */\n function playPlaylistSongAtIndex(index, playlist) {\n _core2.default.stop();\n\n /*\n Determine if there is a new playlist, if so set the active playlist and change the song.\n */\n if (_checks2.default.newPlaylist(playlist)) {\n _audioNavigation2.default.setActivePlaylist(playlist);\n\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[index], index);\n }\n\n /*\n Check if the song is new. If so, change the song.\n */\n if (_checks2.default.newSong(playlist, index)) {\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[index], index);\n }\n\n /*\n Sync all of the play pause buttons.\n */\n _playPauseElements2.default.sync();\n\n /*\n Play the song\n */\n _core2.default.play();\n }\n\n /**\n * Allows the user to play whatever the active song is directly\n * through Javascript. Normally ALL of Amplitude functions that access\n * the core features are called through event handlers.\n *\n * Public Accessor: Amplitude.play();\n *\n * @access public\n */\n function play() {\n _core2.default.play();\n }\n\n /**\n * Allows the user to pause whatever the active song is directly\n * through Javascript. Normally ALL of Amplitude functions that access\n * the core features are called through event handlers.\n *\n * Public Accessor: Amplitude.pause();\n *\n * @access public\n */\n function pause() {\n _core2.default.pause();\n }\n\n /**\n * Allows the user to stop whatever the active song is directly\n * through Javascript.\n *\n * Public Accessor: Amplitude.stop();\n *\n * @access public\n */\n function stop() {\n _core2.default.stop();\n }\n\n /**\n * Returns the audio object used to play the audio\n *\n * Public Accessor: Amplitude.getAudio();\n *\n * @access public\n */\n function getAudio() {\n return _config2.default.audio;\n }\n\n /**\n * Returns the Web Audio API ANalyser used for visualizations.\n *\n * Public Accessor: Amplitude.getAnalyser()\n *\n * @access public\n */\n function getAnalyser() {\n return _config2.default.analyser;\n }\n\n /**\n * Plays the next song either in the playlist or globally.\n *\n * Public Accessor: Amplitude.next( playlist );\n *\n * @access public\n * @param {string} [playlist = null \t- The playlist key\n */\n function next() {\n var playlist = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var nextData = {};\n /*\n If the playlist is empty or null, then we check the active\n playlist\n */\n if (playlist == \"\" || playlist == null) {\n /*\n If the active playlist is null, then we set the next global\n song or we set the next in the playlist.\n */\n if (_config2.default.active_playlist == null || _config2.default.active_playlist == \"\") {\n _audioNavigation2.default.setNext();\n } else {\n _audioNavigation2.default.setNextPlaylist(_config2.default.active_playlist);\n }\n } else {\n _audioNavigation2.default.setNextPlaylist(playlist);\n }\n }\n\n /**\n * Plays the prev song either in the playlist or globally.\n *\n * Public Accessor: Amplitude.prev( playlist );\n *\n * @access public\n * @param {string} [playlist = null] \t- The playlist key\n */\n function prev() {\n var playlist = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var prevData = {};\n\n /*\n If the playlist is empty or null, then we check the active\n playlist\n */\n if (playlist == \"\" || playlist == null) {\n /*\n If the active playlist is null, then we set the prev global\n song or we set the prev in the playlist.\n */\n if (_config2.default.active_playlist == null || _config2.default.active_playlist == \"\") {\n _audioNavigation2.default.setPrevious();\n } else {\n _audioNavigation2.default.setPreviousPlaylist(_config2.default.active_playlist);\n }\n } else {\n _audioNavigation2.default.setPreviousPlaylist(playlist);\n }\n }\n\n /**\n * Gets all of the songs in the songs array\n *\n * Public Accessor: Amplitude.getSongs( );\n *\n * @access public\n */\n function getSongs() {\n return _config2.default.songs;\n }\n\n /**\n * Gets all of the songs in a playlist\n *\n * Public Accessor: Amplitude.getSongsInPlaylist( playlist );\n *\n * @access public\n * @param {string} playlist \t- The playlist key\n */\n function getSongsInPlaylist(playlist) {\n return _config2.default.playlists[playlist].songs;\n }\n\n /**\n * Get current state of songs. If shuffled, this will return the shuffled\n * songs.\n *\n * Public Accessor: Amplitude.getSongsState();\n *\n * @access public\n */\n function getSongsState() {\n if (_config2.default.shuffle_on) {\n return _config2.default.shuffle_list;\n } else {\n return _config2.default.songs;\n }\n }\n\n /**\n * Get current state of songs in playlist. If shuffled, this will return the\n * shuffled songs.\n *\n * Public Accessor: Amplitude.getSongsStatePlaylist( playlist );\n *\n * @access public\n * @param {string} playlist \t- The playlist key\n */\n function getSongsStatePlaylist(playlist) {\n if (_config2.default.playlists[playlist].shuffle) {\n return _config2.default.playlists[playlist].shuffle_list;\n } else {\n return _config2.default.playlists[playlist].songs;\n }\n }\n\n /**\n * Gets the active index of the player\n *\n * Public Accessor: Amplitude.getActiveIndex()\n *\n * @access public\n */\n function getActiveIndex() {\n return parseInt(_config2.default.active_index);\n }\n\n /**\n * Get the version of AmplitudeJS\n *\n * Public Accessor: Amplitude.getVersion()\n *\n * @access public\n */\n function getVersion() {\n return _config2.default.version;\n }\n\n /**\n * Get the buffered amount for the current song\n *\n * Public Accessor: Amplitude.getBuffered()\n *\n * @access public\n */\n function getBuffered() {\n return _config2.default.buffered;\n }\n\n /**\n * Skip to a certain location in a selected song.\n *\n * Public Accessor: Amplitude.getBuffered()\n *\n * @access public\n * @param {number} seconds \t\t\t\t\t\t- The amount of seconds we should skip to in the song.\n * @param {number} songIndex \t\t\t\t\t- The index of the song in the songs array.\n * @param {string} [playlist = null]\t- The playlist the song we are skipping to belogns to.\n */\n function skipTo(seconds, songIndex) {\n var playlist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n seconds = parseInt(seconds);\n\n if (playlist != null) {\n /*\n Checks if we are skipping to a new playlist\n */\n if (_checks2.default.newPlaylist(playlist)) {\n _audioNavigation2.default.setActivePlaylist(playlist);\n }\n\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n _audioNavigation2.default.changeSongPlaylist(playlist, _config2.default.playlists[playlist].songs[songIndex], songIndex);\n _core2.default.play();\n\n /*\n Sync all of the play pause elements.\n */\n _playPauseElements2.default.syncGlobal();\n _playPauseElements2.default.syncPlaylist();\n _playPauseElements2.default.syncSong();\n\n /*\n Skip to the location in the song.\n */\n _core2.default.skipToLocation(seconds);\n } else {\n /*\n Changes the song to where it's being skipped and then\n play the song.\n */\n _audioNavigation2.default.changeSong(_config2.default.songs[songIndex], songIndex);\n _core2.default.play();\n\n /*\n Syncs all of the play pause buttons now that we've skipped.\n */\n _playPauseElements2.default.syncGlobal();\n _playPauseElements2.default.syncSong();\n\n /*\n Skip to the location in the song.\n */\n _core2.default.skipToLocation(seconds);\n }\n }\n\n /**\n * Sets the meta data for a song in the songs array. This will set any\n * meta data for a song besides the URL. The URL could cause issues if the\n * song was playing.\n *\n * Public Accessor: Amplitude.setSongMetaData()\n *\n * @access public\n * @param {number} index\t\t\t\t\t- The index of the song in the songs array.\n * @param {object} metaData \t\t\t- The object containing the meta data we are updating.\n * @param {string} playlist - The playlist we are updating the song meta data for.\n */\n function setSongMetaData(index, metaData) {\n var playlist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n /*\n Update the meta data for a song in a playlist.\n */\n if (playlist != \"\" && playlist != null && _config2.default.playlists[playlist] != undefined) {\n /*\n Set all of the defined meta data properties\n */\n for (var key in metaData) {\n if (metaData.hasOwnProperty(key)) {\n if (key != \"url\" && key != \"URL\" && key != \"live\" && key != \"LIVE\") {\n _config2.default.playlists[playlist].songs[index][key] = metaData[key];\n }\n }\n }\n } else {\n /*\n Update the meta data for a song.\n */\n for (var key in metaData) {\n if (metaData.hasOwnProperty(key)) {\n if (key != \"url\" && key != \"URL\" && key != \"live\" && key != \"LIVE\") {\n _config2.default.songs[index][key] = metaData[key];\n }\n }\n }\n }\n\n /*\n Display the updates on the screen.\n */\n _metaDataElements2.default.displayMetaData();\n _metaDataElements2.default.syncMetaData();\n }\n\n function setPlaylistMetaData(playlist, metaData) {\n if (_config2.default.playlists[playlist] != undefined) {\n /*\n These are the ignored keys that we won't be worrying about displaying.\n Every other key in the playlist object can be displayed.\n */\n var ignoredKeys = [\"repeat\", \"shuffle\", \"shuffle_list\", \"songs\", \"src\"];\n\n for (var key in metaData) {\n if (metaData.hasOwnProperty(key)) {\n if (ignoredKeys.indexOf(key) < 0) {\n _config2.default.playlists[playlist][key] = metaData[key];\n }\n }\n }\n\n _metaDataElements2.default.displayPlaylistMetaData();\n } else {\n _debug2.default.writeMessage(\"You must provide a valid playlist key!\");\n }\n }\n\n /**\n * Sets the delay between the songs when they are finished.\n *\n * Public Accessor: Amplitude.setDelay()\n *\n * @access public\n * @param {number} delay \t- The millisecond delay time between songs\n */\n function setDelay(time) {\n _config2.default.delay = time;\n }\n\n /**\n * Returns the current delay between songs.\n *\n * Public Accessor: Amplitude.getDelay()\n *\n * @access public\n */\n function getDelay() {\n return _config2.default.delay;\n }\n\n /**\n * Returns the state of the player.\n *\n * Public Accessor: Amplitude.getPlayerState();\n */\n function getPlayerState() {\n return _config2.default.player_state;\n }\n\n /**\n * Registers a visualization and sets that visualization's\n * preferences. When creating a visualization, you can set certain\n * preferences that the user can overwrite similar to Amplitude.\n * Public Accessor: Amplitude.registerVisualization( visualization, preferences )\n *\n * @param {object} visualzation A visualization object that gets registered\n * with Amplitude\n *\n * @param {object} preferences A JSON object of preferences relating to the\n * visualization\n */\n function registerVisualization(visualization, preferences) {\n _visualizations2.default.register(visualization, preferences);\n }\n\n /**\n * Set the visualization for the playlist\n *\n * @param {string} playlist - The playlist we are setting the visualization for.\n * @param {string} visualizationKey - The key of the visualization we are adding to the playlist.\n */\n function setPlaylistVisualization(playlist, visualizationKey) {\n if (_config2.default.playlists[playlist] != undefined) {\n if (_config2.default.visualizations.available[visualizationKey] != undefined) {\n _config2.default.playlists[playlist].visualization = visualizationKey;\n } else {\n _debug2.default.writeMessage(\"A visualization does not exist for the key provided.\");\n }\n } else {\n _debug2.default.writeMessage(\"The playlist for the key provided does not exist\");\n }\n }\n\n /**\n * Set a visualization for the song.\n *\n * @param {number} songIndex - The index of the song in the songs array we are setting the visualization for.\n * @param {string} visualizationKey - The key of the visualization we are adding to the playlist.\n */\n function setSongVisualization(songIndex, visualizationKey) {\n if (_config2.default.songs[songIndex]) {\n if (_config2.default.visualizations.available[visualizationKey] != undefined) {\n _config2.default.songs[songIndex].visualization = visualizationKey;\n } else {\n _debug2.default.writeMessage(\"A visualization does not exist for the key provided.\");\n }\n } else {\n _debug2.default.writeMessage(\"A song at that index is undefined\");\n }\n }\n\n /**\n * Set song in playlist visualization.\n *\n * @param {string} playlist - The playlist we are setting the song visualization for.\n * @param {number} songIndex - The index we are setting the visualization for.\n * @param {strong} visualizationKey - The key of the visualization we are adding to the song in the playlist.\n */\n function setSongInPlaylistVisualization(playlist, songIndex, visualizationKey) {\n if (_config2.default.playlists[playlist].songs[songIndex] != undefined) {\n if (_config2.default.visualizations.available[visualizationKey] != undefined) {\n _config2.default.playlists[playlist].songs[songIndex].visualization = visualizationKey;\n } else {\n _debug2.default.writeMessage(\"A visualization does not exist for the key provided.\");\n }\n } else {\n _debug2.default.writeMessage(\"The song in the playlist at that key is not defined\");\n }\n }\n\n /**\n * Sets the global visualization default.\n */\n function setGlobalVisualization(visualizationKey) {\n if (_config2.default.visualizations.available[visualizationKey] != undefined) {\n _config2.default.visualization = visualizationKey;\n } else {\n _debug2.default.writeMessage(\"A visualization does not exist for the key provided.\");\n }\n }\n\n /**\n * Sets the active volume.\n * @param {number} volumeLevel - A number between 1 and 100 as a percentage of\n * min to max for a volume level.\n */\n function setVolume(volumeLevel) {\n _core2.default.setVolume(volumeLevel);\n }\n\n /**\n * Gets the active volume.\n */\n function getVolume() {\n return _config2.default.volume;\n }\n\n /*\n Returns all of the publically accesible methods.\n */\n return {\n init: init,\n getConfig: getConfig,\n bindNewElements: bindNewElements,\n getActivePlaylist: getActivePlaylist,\n getPlaybackSpeed: getPlaybackSpeed,\n setPlaybackSpeed: setPlaybackSpeed,\n getRepeat: getRepeat,\n getRepeatPlaylist: getRepeatPlaylist,\n getShuffle: getShuffle,\n getShufflePlaylist: getShufflePlaylist,\n setShuffle: setShuffle,\n setShufflePlaylist: setShufflePlaylist,\n setRepeat: setRepeat,\n setRepeatSong: setRepeatSong,\n setRepeatPlaylist: setRepeatPlaylist,\n getDefaultAlbumArt: getDefaultAlbumArt,\n setDefaultAlbumArt: setDefaultAlbumArt,\n getDefaultPlaylistArt: getDefaultPlaylistArt,\n setDefaultPlaylistArt: setDefaultPlaylistArt,\n getSongPlayedPercentage: getSongPlayedPercentage,\n setSongPlayedPercentage: setSongPlayedPercentage,\n getSongPlayedSeconds: getSongPlayedSeconds,\n getSongDuration: getSongDuration,\n setDebug: setDebug,\n getActiveSongMetadata: getActiveSongMetadata,\n getActivePlaylistMetadata: getActivePlaylistMetadata,\n getSongAtIndex: getSongAtIndex,\n getSongAtPlaylistIndex: getSongAtPlaylistIndex,\n addSong: addSong,\n prependSong: prependSong,\n addSongToPlaylist: addSongToPlaylist,\n removeSong: removeSong,\n removeSongFromPlaylist: removeSongFromPlaylist,\n playNow: playNow,\n playSongAtIndex: playSongAtIndex,\n playPlaylistSongAtIndex: playPlaylistSongAtIndex,\n play: play,\n pause: pause,\n stop: stop,\n getAudio: getAudio,\n getAnalyser: getAnalyser,\n next: next,\n prev: prev,\n getSongs: getSongs,\n getSongsInPlaylist: getSongsInPlaylist,\n getSongsState: getSongsState,\n getSongsStatePlaylist: getSongsStatePlaylist,\n getActiveIndex: getActiveIndex,\n getVersion: getVersion,\n getBuffered: getBuffered,\n skipTo: skipTo,\n setSongMetaData: setSongMetaData,\n setPlaylistMetaData: setPlaylistMetaData,\n setDelay: setDelay,\n getDelay: getDelay,\n getPlayerState: getPlayerState,\n addPlaylist: addPlaylist,\n registerVisualization: registerVisualization,\n setPlaylistVisualization: setPlaylistVisualization,\n setSongVisualization: setSongVisualization,\n setSongInPlaylistVisualization: setSongInPlaylistVisualization,\n setGlobalVisualization: setGlobalVisualization,\n getVolume: getVolume,\n setVolume: setVolume\n };\n}();\n\n/**\n * Playback Speed Elements\n * @module visual/PlaybackSpeedElements\n */\n\n\n/**\n * Play Pause Elements\n * @module visual/PlayPauseElements\n */\n\n\n/**\n * Song Played Progress Elements\n * @module visual/SongPlayedProgressElements\n */\n\n\n/**\n * Visual Repeat Elements\n * @module visual/RepeatElements\n */\n\n\n/****************************************************\n * FX Modules\n ****************************************************/\n/**\n * Imports the visualizations module\n * @module fx/Visualizations\n */\n\n\n/**\n * Repeater Module\n *\n * @module utilities/Repeater\n */\n\n\n/**\n * Imports the config state module.\n * @module ConfigState\n */\n\n\n/****************************************************\n * Core\n ****************************************************/\n/**\n * AmplitudeJS Core Module\n *\n * @module core/Core\n */\n/**\n * @name \t\tAmplitudeJS\n * @author \tDan Pastori (Server Side Up) \n */\n/**\n * AmplitudeJS Initializer Module\n *\n * @module init/AmplitudeInitializer\n */\nexports.default = Amplitude;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _debug = __webpack_require__(4);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _checks = __webpack_require__(5);\n\nvar _checks2 = _interopRequireDefault(_checks);\n\nvar _metaDataElements = __webpack_require__(7);\n\nvar _metaDataElements2 = _interopRequireDefault(_metaDataElements);\n\nvar _soundcloud = __webpack_require__(17);\n\nvar _soundcloud2 = _interopRequireDefault(_soundcloud);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles the initialization of the playlists.\n *\n * @module init/PlaylistsInitializer\n */\n\n\n/**\n * AmplitudeJS Visual Meta Data Elements Module\n * @module visual/MetaDataElements\n */\n\n\n/**\n * AmplitudeJS Debug Module\n * @module utilities/Debug\n */\nvar PlaylistsInitializer = function () {\n /**\n * Initializes the playlists for AmplitudeJS\n *\n * @param {Object} playlists - The playlists defined by the user.\n */\n function initialize(playlists) {\n /*\n Copy the playlists over to Amplitude\n */\n _config2.default.playlists = playlists;\n\n /*\n Copy songs over from songs array.\n */\n copySongsToPlaylists();\n\n /*\n Grab any SoundCloud Data for the playlist songs if needed.\n */\n grabSoundCloudData();\n\n /*\n Initialize a scoped active index for each playlist.\n */\n initializePlaylistActiveIndexes();\n\n /*\n Initialize the shuffle status of the playlists.\n */\n initializePlaylistShuffleStatuses();\n\n /*\n Initialize the repeat status for the playlits.\n */\n initializePlaylistsRepeatStatuses();\n\n /*\n Initialize temporary place holders for shuffle lists.\n */\n initializePlaylistShuffleLists();\n\n /*\n Initializes the first song in the playlist\n */\n initializeFirstSongInPlaylistMetaData();\n }\n\n /**\n * Initializes a scoped active index for each playlist.\n *\n * @access private\n */\n function initializePlaylistActiveIndexes() {\n /*\n Iterate over all of the playlists defined by the user\n and add an active index.\n */\n for (var key in _config2.default.playlists) {\n _config2.default.playlists[key].active_index = null;\n }\n }\n\n /**\n * Ensures the indexes in the playlists are valid indexes. The song has\n * to exist in the Amplitude config to be played correctly. If the index\n * is an integer, we ensure it exists and coy it to the array.\n *\n * @access private\n */\n function copySongsToPlaylists() {\n /*\n Iterate over all of the config's playlists\n */\n for (var key in _config2.default.playlists) {\n /*\n Checks if the playlist key is accurate.\n */\n if (_config2.default.playlists.hasOwnProperty(key)) {\n /*\n Checks if the playlist has songs.\n */\n if (_config2.default.playlists[key].songs) {\n /*\n Iterate over all of the songs in the playlist\n */\n for (var i = 0; i < _config2.default.playlists[key].songs.length; i++) {\n if (_checks2.default.isInt(_config2.default.playlists[key].songs[i])) {\n _config2.default.playlists[key].songs[i] = _config2.default.songs[_config2.default.playlists[key].songs[i]];\n\n _config2.default.playlists[key].songs[i].index = i;\n }\n /*\n Check to see if the index for the song in the playlist\n exists in the songs config.\n */\n if (_checks2.default.isInt(_config2.default.playlists[key].songs[i]) && !_config2.default.songs[_config2.default.playlists[key].songs[i]]) {\n _debug2.default.writeMessage(\"The song index: \" + _config2.default.playlists[key].songs[i] + \" in playlist with key: \" + key + \" is not defined in your songs array!\");\n }\n\n /*\n If not an int, then is a dedicated song, just set the index.\n */\n if (!_checks2.default.isInt(_config2.default.playlists[key].songs[i])) {\n _config2.default.playlists[key].songs[i].index = i;\n }\n }\n }\n }\n }\n }\n\n /**\n * Grabs the SoundCloud data for any song in the playlist that\n * the user needs to grab data for.\n *\n * @access private\n */\n function grabSoundCloudData() {\n /*\n Iterate over all of the config's playlists\n */\n for (var key in _config2.default.playlists) {\n /*\n Checks if the playlist key is accurate.\n */\n if (_config2.default.playlists.hasOwnProperty(key)) {\n /*\n Iterate over all of the songs in the playlist and see if\n they need to grab the SoundCloud data for the song.\n */\n for (var i = 0; i < _config2.default.playlists[key].songs.length; i++) {\n /*\n Only Grab the data if the URL is a SoundCloud URL.\n */\n if (_soundcloud2.default.isSoundCloudURL(_config2.default.playlists[key].songs[i].url)) {\n /*\n Only grab the data if the SoundCloud data has not already been\n grabbed for the audio. This could happen if the user defined the\n song in the songs array and was grabbed before.\n */\n if (_config2.default.playlists[key].songs[i].soundcloud_data == undefined) {\n _soundcloud2.default.resolveIndividualStreamableURL(_config2.default.playlists[key].songs[i].url, key, i);\n }\n }\n }\n }\n }\n }\n\n /**\n * Initializes the shuffle statuses for each of the playlists. These will\n * be referenced when we shuffle individual playlists.\n *\n * @access private\n */\n function initializePlaylistShuffleStatuses() {\n /*\n Iterate over all of the playlists the user defined adding\n the playlist key to the shuffled playlist array and creating\n and empty object to house the statuses.\n */\n for (var key in _config2.default.playlists) {\n _config2.default.playlists[key].shuffle = false;\n }\n }\n\n /**\n * Initializes the repeat statuses for each of the playlists. These will\n * be referenced when we repeat individual playlits.\n *\n * @access private\n */\n function initializePlaylistsRepeatStatuses() {\n /*\n Iterate over all of the playlists the user defined adding\n the playlist key to the repeated playlist array and creating\n and empty object to house the statuses.\n */\n for (var key in _config2.default.playlists) {\n _config2.default.playlists[key].repeat = false;\n }\n }\n\n /**\n * Initializes the shuffled playlist placeholders. These will be set for\n * playlists that are shuffled and contain the shuffled songs.\n *\n * @access private\n */\n function initializePlaylistShuffleLists() {\n /*\n Iterate over all of the playlists the user defined adding\n the playlist key to the shuffled playlists array and creating\n and empty object to house the shuffled playlists\n */\n for (var key in _config2.default.playlists) {\n _config2.default.playlists[key].shuffle_list = [];\n }\n }\n\n /**\n * Intializes the display for the first song in the playlist meta data.\n *\n * @access private\n */\n function initializeFirstSongInPlaylistMetaData() {\n /*\n Iterates over all of the playlists setting the meta data for the\n first song.\n */\n for (var key in _config2.default.playlists) {\n _metaDataElements2.default.setFirstSongInPlaylist(_config2.default.playlists[key].songs[0], key);\n }\n }\n\n /*\n Returns the public facing methods\n */\n return {\n initialize: initialize\n };\n}();\n\n/**\n * AmplitudeJS SoundCloud Meta module\n * @module soundcloud/Soundcloud\n */\n\n\n/**\n * AmplitudeJS Checks Utility.\n * @module utilities/Checks\n */\n/**\n * Imports the config module\n * @module config\n */\nexports.default = PlaylistsInitializer;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the container elements.\n *\n * @param visual/ContainerElements\n */\nvar ContainerElements = function () {\n /**\n * Applies the class 'amplitude-active-song-container' to the element\n * containing visual information regarding the active song.\n *\n * @prop {boolean} direct - Determines if it was a direct click on the song. We\n * then don't care if shuffle is on or not.\n *\n * @access public\n */\n function setActive(direct) {\n /*\n Gets all of the song container elements.\n */\n var songContainers = document.getElementsByClassName(\"amplitude-song-container\");\n\n /*\n Removes all of the active song containrs.\n */\n for (var i = 0; i < songContainers.length; i++) {\n songContainers[i].classList.remove(\"amplitude-active-song-container\");\n }\n\n /*\n Finds the active index and adds the active song container to the element\n that represents the song at the index.\n */\n if (_config2.default.active_playlist == \"\" || _config2.default.active_playlist == null) {\n var activeIndex = \"\";\n\n /*\n If we click directly on the song element, we ignore\n whether it's in shuffle or not.\n */\n if (direct) {\n activeIndex = _config2.default.active_index;\n } else {\n if (_config2.default.shuffle_on) {\n activeIndex = _config2.default.shuffle_list[_config2.default.active_index].index;\n } else {\n activeIndex = _config2.default.active_index;\n }\n }\n\n if (document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index=\"' + activeIndex + '\"]')) {\n var _songContainers = document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index=\"' + activeIndex + '\"]');\n\n for (var _i = 0; _i < _songContainers.length; _i++) {\n if (!_songContainers[_i].hasAttribute(\"data-amplitude-playlist\")) {\n _songContainers[_i].classList.add(\"amplitude-active-song-container\");\n }\n }\n }\n } else {\n /*\n If we have an active playlist or the action took place directly on the\n song element, we ignore the shuffle.\n */\n if (_config2.default.active_playlist != null && _config2.default.active_playlist != \"\" || direct) {\n var activePlaylistIndex = _config2.default.playlists[_config2.default.active_playlist].active_index;\n } else {\n var activePlaylistIndex = \"\";\n\n if (_config2.default.playlists[_config2.default.active_playlist].shuffle) {\n activePlaylistIndex = _config2.default.playlists[_config2.default.active_playlist].shuffle_list[_config2.default.playlists[_config2.default.active_playlist].active_index].index;\n } else {\n activePlaylistIndex = _config2.default.playlists[_config2.default.active_playlist].active_index;\n }\n }\n\n if (document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index=\"' + activePlaylistIndex + '\"][data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]')) {\n var _songContainers2 = document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index=\"' + activePlaylistIndex + '\"][data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var _i2 = 0; _i2 < _songContainers2.length; _i2++) {\n _songContainers2[_i2].classList.add(\"amplitude-active-song-container\");\n }\n }\n }\n }\n\n return {\n setActive: setActive\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = ContainerElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the current time hour elements.\n *\n * @module visual/time/CurrentHourElements\n */\nvar CurrentHourElements = function () {\n function sync(hours) {\n syncGlobal(hours);\n syncPlaylist(hours);\n syncSong(hours);\n syncSongInPlaylist(hours);\n }\n\n /**\n * Updates any elements that display the current hour for the song.\n *\n * @access public\n * @param {number} hours \t- An integer conaining how many hours into the song.\n */\n function syncGlobal(hours) {\n /*\n Get all of the hour selectors\n */\n var currentHourSelectors = document.querySelectorAll(\".amplitude-current-hours\");\n\n /*\n Set the current hour selector's inner html to hours passed in.\n */\n for (var i = 0; i < currentHourSelectors.length; i++) {\n var playlist = currentHourSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = currentHourSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Updates the current hour selector for a global display.\n */\n if (playlist == null && songIndex == null) {\n currentHourSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the playlist current hour elements.\n *\n * @param {Integer} hour - The current audio hour.\n */\n function syncPlaylist(hours) {\n /*\n Get all of the hour selectors\n */\n var currentHourPlaylistSelectors = document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Set the current hour selector's inner html to hours passed in.\n */\n for (var i = 0; i < currentHourPlaylistSelectors.length; i++) {\n var songIndex = currentHourPlaylistSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Updates the current hour selector for a global display.\n */\n if (songIndex == null) {\n currentHourPlaylistSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the song hour elements.\n *\n * @param {Integer} hour - The current audio hour.\n */\n function syncSong(hours) {\n if (_config2.default.active_playlist == null) {\n /*\n Get all of the hour selectors\n */\n var currentHourSongSelectors = document.querySelectorAll('.amplitude-current-hours[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n /*\n Set the current hour selector's inner html to hours passed in.\n */\n for (var i = 0; i < currentHourSongSelectors.length; i++) {\n var playlist = currentHourSongSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n /*\n Updates the current hour selector for a global display.\n */\n if (playlist == null) {\n currentHourSongSelectors[i].innerHTML = hours;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist song hour elements.\n *\n * @param {Integer} hour - The current audio hour.\n */\n function syncSongInPlaylist(hours) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n /*\n Get all of the hour selectors\n */\n var currentHourPlaylistSongSelectors = document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n /*\n Set the current hour selector's inner html to hours passed in.\n */\n for (var i = 0; i < currentHourPlaylistSongSelectors.length; i++) {\n currentHourPlaylistSongSelectors[i].innerHTML = hours;\n }\n }\n\n /**\n * Reset the current hour elements.\n */\n function resetTimes() {\n /*\n Gets the hour display elements\n */\n var hourSelectors = document.querySelectorAll(\".amplitude-current-hours\");\n\n /*\n Iterates over all of the hour selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < hourSelectors.length; i++) {\n hourSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = CurrentHourElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the current time minutes elements.\n *\n * @module visual/time/CurrentMinuteElements\n */\nvar CurrentMinuteElements = function () {\n /**\n * Syncs the current minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function sync(minutes) {\n syncGlobal(minutes);\n syncPlaylist(minutes);\n syncSong(minutes);\n syncSongInPlaylist(minutes);\n }\n\n /**\n * Syncs the global current minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncGlobal(minutes) {\n /*\n Get all of the minute selectors\n */\n var currentMinuteSelectors = document.querySelectorAll(\".amplitude-current-minutes\");\n\n /*\n Set the current minute selector's inner html to minutes passed in.\n */\n for (var i = 0; i < currentMinuteSelectors.length; i++) {\n var playlist = currentMinuteSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = currentMinuteSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Updates the current minute selector for a global display.\n */\n if (playlist == null && songIndex == null) {\n currentMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the playlist minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncPlaylist(minutes) {\n /*\n Get all of the minute selectors\n */\n var currentMinutePlaylistSelectors = document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Set the current minute selector's inner html to minutes passed in.\n */\n for (var i = 0; i < currentMinutePlaylistSelectors.length; i++) {\n var songIndex = currentMinutePlaylistSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Updates the current minute selector for a global display.\n */\n if (songIndex == null) {\n currentMinutePlaylistSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the current song minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncSong(minutes) {\n if (_config2.default.active_playlist == null) {\n /*\n Get all of the minute selectors\n */\n var currentMinuteSongSelectors = document.querySelectorAll('.amplitude-current-minutes[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n /*\n Set the current minute selector's inner html to minutes passed in.\n */\n for (var i = 0; i < currentMinuteSongSelectors.length; i++) {\n var playlist = currentMinuteSongSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n /*\n Updates the current minute selector for a global display.\n */\n if (playlist == null) {\n currentMinuteSongSelectors[i].innerHTML = minutes;\n }\n }\n }\n }\n\n /**\n * Syncs the current song in playlist minutes elements.\n *\n * @param {Integer} minutes - The current audio minutes.\n */\n function syncSongInPlaylist(minutes) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n /*\n Get all of the minute selectors\n */\n var currentMinutePlaylistSongSelectors = document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n /*\n Set the current minute selector's inner html to minutes passed in.\n */\n for (var i = 0; i < currentMinutePlaylistSongSelectors.length; i++) {\n currentMinutePlaylistSongSelectors[i].innerHTML = minutes;\n }\n }\n\n /**\n * Reset the current times.\n */\n function resetTimes() {\n /*\n Gets the minute display elements\n */\n var minuteSelectors = document.querySelectorAll(\".amplitude-current-minutes\");\n\n /*\n Iterates over all of the minute selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < minuteSelectors.length; i++) {\n minuteSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = CurrentMinuteElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the current time seconds elements.\n *\n * @module visual/time/CurrentSecondElements\n */\nvar CurrentSecondElements = function () {\n /**\n * Syncs the current seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function sync(seconds) {\n syncGlobal(seconds);\n syncPlaylist(seconds);\n syncSong(seconds);\n syncSongInPlaylist(seconds);\n }\n\n /**\n * Syncs the global current seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncGlobal(seconds) {\n /*\n Get all of the second selectors\n */\n var currentSecondSelectors = document.querySelectorAll(\".amplitude-current-seconds\");\n\n /*\n Set the current second selector's inner html to seconds passed in.\n */\n for (var i = 0; i < currentSecondSelectors.length; i++) {\n var playlist = currentSecondSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = currentSecondSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Updates the current second selector for a global display.\n */\n if (playlist == null && songIndex == null) {\n currentSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the playlist seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncPlaylist(seconds) {\n /*\n Get all of the second selectors\n */\n var currentSecondPlaylistSelectors = document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Set the current second selector's inner html to seconds passed in.\n */\n for (var i = 0; i < currentSecondPlaylistSelectors.length; i++) {\n var songIndex = currentSecondPlaylistSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n /*\n Updates the current second selector for a global display.\n */\n if (songIndex == null) {\n currentSecondPlaylistSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the current song seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncSong(seconds) {\n if (_config2.default.active_playlist == null) {\n /*\n Get all of the second selectors\n */\n var currentSecondSongSelectors = document.querySelectorAll('.amplitude-current-seconds[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n /*\n Set the current second selector's inner html to seconds passed in.\n */\n for (var i = 0; i < currentSecondSongSelectors.length; i++) {\n var playlist = currentSecondSongSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n /*\n Updates the current second selector for a global display.\n */\n if (playlist == null) {\n currentSecondSongSelectors[i].innerHTML = seconds;\n }\n }\n }\n }\n\n /**\n * Syncs the current song in playlist seconds elements.\n *\n * @param {Integer} seconds - The current audio seconds.\n */\n function syncSongInPlaylist(seconds) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n /*\n Get all of the second selectors\n */\n var currentSecondPlaylistSongSelectors = document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n /*\n Set the current second selector's inner html to seconds passed in.\n */\n for (var i = 0; i < currentSecondPlaylistSongSelectors.length; i++) {\n currentSecondPlaylistSongSelectors[i].innerHTML = seconds;\n }\n }\n\n /**\n * Reset the current seconds elements.\n */\n function resetTimes() {\n /*\n Gets the second display elements\n */\n var secondSelectors = document.querySelectorAll(\".amplitude-current-seconds\");\n\n /*\n Iterates over all of the second selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < secondSelectors.length; i++) {\n secondSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = CurrentSecondElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * These methods help sync visual time elements.\n *\n * @module visual/CurrentTimeElements\n */\nvar CurrentTimeElements = function () {\n /**\n * Visually displays the current time on the screen. This is called on\n * time update for the current song.\n *\n * @access public\n * @param {object} currentTime \t\t\t\t\t- An object containing the current time for the song in seconds, minutes, and hours.\n */\n function sync(currentTime) {\n /*\n Set current time display.\n */\n syncGlobal(currentTime);\n syncPlaylist(currentTime);\n syncSong(currentTime);\n syncSongInPlaylist(currentTime);\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncGlobal(time) {\n /*\n Get all of the time selectors.\n */\n var currentTimeSelectors = document.querySelectorAll(\".amplitude-current-time\");\n\n /*\n Set the time selector's inner html to the current time for the song. The current\n time is computed by joining minutes and seconds.\n */\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (var i = 0; i < currentTimeSelectors.length; i++) {\n var playlist = currentTimeSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = currentTimeSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncPlaylist(time) {\n /*\n Get all of the time selectors.\n */\n var currentTimeSelectors = document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n /*\n Set the time selector's inner html to the current time for the song. The current\n time is computed by joining minutes and seconds.\n */\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (var i = 0; i < currentTimeSelectors.length; i++) {\n var songIndex = currentTimeSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (songIndex == null) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncSong(time) {\n if (_config2.default.active_playlist == null) {\n /*\n Get all of the time selectors.\n */\n var currentTimeSelectors = document.querySelectorAll('.amplitude-current-time[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n /*\n Set the time selector's inner html to the current time for the song. The current\n time is computed by joining minutes and seconds.\n */\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (var i = 0; i < currentTimeSelectors.length; i++) {\n var playlist = currentTimeSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n }\n }\n\n /**\n * Updates any elements that display the current time for the song. This\n * is a computed field that will be commonly used.\n *\n * @access public\n * @param {object} time \t- A json object conaining the parts for the current time for the song.\n */\n function syncSongInPlaylist(time) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n /*\n Get all of the time selectors.\n */\n var currentTimeSelectors = document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n /*\n Set the time selector's inner html to the current time for the song. The current\n time is computed by joining minutes and seconds.\n */\n var timeText = time.minutes + \":\" + time.seconds;\n\n if (time.hours > 0) {\n timeText = time.hours + \":\" + timeText;\n }\n\n for (var i = 0; i < currentTimeSelectors.length; i++) {\n currentTimeSelectors[i].innerHTML = timeText;\n }\n }\n\n /**\n * Resets the current time displays to 00:00\n *\n * @access public\n */\n function resetTimes() {\n /*\n Gets the time selector display elements\n */\n var timeSelectors = document.querySelectorAll(\".amplitude-current-time\");\n\n /*\n Iterates over all of the time selectors and sets the inner HTML\n to 00.\n */\n for (var i = 0; i < timeSelectors.length; i++) {\n timeSelectors[i].innerHTML = \"00:00\";\n }\n }\n\n /**\n * Returns the publically facing methods\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = CurrentTimeElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the duration countdown elements.\n *\n * @module visual/time/DurationCountDownTimeElements.\n */\nvar DurationCountDownTimeElements = function () {\n /**\n * Syncs all of the countdown time elements.\n *\n * @param {object} countDownTime - The current time of the audio.\n * @param {object} songDuration - The song duration of the audio.\n */\n function sync(countDownTime, songDuration) {\n var timeRemaining = computeTimeRemaining(countDownTime, songDuration);\n\n syncGlobal(timeRemaining);\n syncPlaylist(timeRemaining);\n syncSong(timeRemaining);\n syncSongInPlaylist(timeRemaining);\n }\n\n /**\n * Syncs the global count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncGlobal(timeRemaining) {\n var durationTimeRemainingSelectors = document.querySelectorAll(\".amplitude-time-remaining\");\n\n for (var i = 0; i < durationTimeRemainingSelectors.length; i++) {\n var playlist = durationTimeRemainingSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = durationTimeRemainingSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n }\n\n /**\n * Syncs the playlist count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncPlaylist(timeRemaining) {\n var durationTimeRemainingSelectors = document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var i = 0; i < durationTimeRemainingSelectors.length; i++) {\n var songIndex = durationTimeRemainingSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (songIndex == null) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n }\n\n /**\n * Syncs the song count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncSong(timeRemaining) {\n if (_config2.default.active_playlist == null) {\n var durationTimeRemainingSelectors = document.querySelectorAll('.amplitude-time-remaining[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n for (var i = 0; i < durationTimeRemainingSelectors.length; i++) {\n var playlist = durationTimeRemainingSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist count down time elements.\n *\n * @param {string} timeRemaining - The time remaining for the audio.\n */\n function syncSongInPlaylist(timeRemaining) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n var durationTimeRemainingSelectors = document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n for (var i = 0; i < durationTimeRemainingSelectors.length; i++) {\n durationTimeRemainingSelectors[i].innerHTML = timeRemaining;\n }\n }\n\n /**\n * Resets the count down times.\n */\n function resetTimes() {\n var durationTimeRemainingSelectors = document.querySelectorAll(\".amplitude-time-remaining\");\n\n for (var i = 0; i < durationTimeRemainingSelectors.length; i++) {\n durationTimeRemainingSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Computes the time remaining for the audio.\n *\n * @param {object} currentTime - The current time of the audio.\n * @param {object} songDuration - The duration of the audio.\n */\n function computeTimeRemaining(currentTime, songDuration) {\n var timeRemaining = \"00:00\";\n\n /*\n Initialize the total current seconds and total duration seconds\n */\n var totalCurrentSeconds = parseInt(currentTime.seconds) + parseInt(currentTime.minutes) * 60 + parseInt(currentTime.hours) * 60 * 60;\n var totalDurationSeconds = parseInt(songDuration.seconds) + parseInt(songDuration.minutes) * 60 + parseInt(songDuration.hours) * 60 * 60;\n\n /*\n If the two variables are numbers we continue the computing.\n */\n if (!isNaN(totalCurrentSeconds) && !isNaN(totalDurationSeconds)) {\n /*\n Find the total remaining seconds.\n */\n var timeRemainingTotalSeconds = totalDurationSeconds - totalCurrentSeconds;\n\n var remainingHours = Math.floor(timeRemainingTotalSeconds / 3600);\n var remainingMinutes = Math.floor((timeRemainingTotalSeconds - remainingHours * 3600) / 60);\n var remainingSeconds = timeRemainingTotalSeconds - remainingHours * 3600 - remainingMinutes * 60;\n\n timeRemaining = (remainingMinutes < 10 ? \"0\" + remainingMinutes : remainingMinutes) + \":\" + (remainingSeconds < 10 ? \"0\" + remainingSeconds : remainingSeconds);\n\n if (remainingHours > 0) {\n timeRemaining = remainingHours + \":\" + timeRemaining;\n }\n }\n\n return timeRemaining;\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = DurationCountDownTimeElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the duration hours elements.\n *\n * @module visual/time/DurationHourElements.\n */\nvar DurationHourElements = function () {\n /**\n * Sync the duration hours elements.\n *\n * @param {Integer} hours - The duration hours for the audio.\n */\n function sync(hours) {\n syncGlobal(hours);\n syncPlaylist(hours);\n syncSong(hours);\n syncSongInPlaylist(hours);\n }\n\n /**\n * Syncs the global duration hours elements.\n *\n * @param {Integer} hours - the duration hours for the audio.\n */\n function syncGlobal(hours) {\n var durationHourSelectors = document.querySelectorAll(\".amplitude-duration-hours\");\n\n for (var i = 0; i < durationHourSelectors.length; i++) {\n var playlist = durationHourSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = durationHourSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the playlist duration hours for the audio.\n *\n * @param {Integer} hours - The duration hours for the audio.\n */\n function syncPlaylist(hours) {\n var durationHourSelectors = document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var i = 0; i < durationHourSelectors.length; i++) {\n var songIndex = durationHourSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (songIndex == null) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n }\n\n /**\n * Syncs the song duration hours.\n *\n * @param {Integer} hours - The duration hours for the audio.\n */\n function syncSong(hours) {\n if (_config2.default.active_playlist == null) {\n var durationHourSelectors = document.querySelectorAll('.amplitude-duration-hours[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n for (var i = 0; i < durationHourSelectors.length; i++) {\n var playlist = durationHourSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist duration hours.\n *\n * @param {Integer} hours - The duration hours of the audio.\n */\n function syncSongInPlaylist(hours) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n var durationHourSelectors = document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n for (var i = 0; i < durationHourSelectors.length; i++) {\n durationHourSelectors[i].innerHTML = hours;\n }\n }\n\n /**\n * Resets the duration shours elements to '00'\n */\n function resetTimes() {\n var durationHourSelectors = document.querySelectorAll(\".amplitude-duration-hours\");\n\n for (var i = 0; i < durationHourSelectors.length; i++) {\n durationHourSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = DurationHourElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the duration minutes elements.\n *\n * @module visual/time/DurationMinuteElements.\n */\nvar DurationMinuteElements = function () {\n /**\n * Sync the duration minutes elements.\n *\n * @param {Integer} minutes - The duration minutes for the audio.\n */\n function sync(minutes) {\n syncGlobal(minutes);\n syncPlaylist(minutes);\n syncSong(minutes);\n syncSongInPlaylist(minutes);\n }\n\n /**\n * Syncs the global duration minutes elements.\n *\n * @param {Integer} minutes - the duration minutes for the audio.\n */\n function syncGlobal(minutes) {\n var durationMinuteSelectors = document.querySelectorAll(\".amplitude-duration-minutes\");\n\n for (var i = 0; i < durationMinuteSelectors.length; i++) {\n var playlist = durationMinuteSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = durationMinuteSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the playlist duration minutes for the audio.\n *\n * @param {Integer} minutes - The duration minutes for the audio.\n */\n function syncPlaylist(minutes) {\n var durationMinuteSelectors = document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var i = 0; i < durationMinuteSelectors.length; i++) {\n var songIndex = durationMinuteSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (songIndex == null) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n\n /**\n * Syncs the song duration minutes.\n *\n * @param {Integer} minutes - The duration minutes for the audio.\n */\n function syncSong(minutes) {\n if (_config2.default.active_playlist == null) {\n var durationMinuteSelectors = document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n for (var i = 0; i < durationMinuteSelectors.length; i++) {\n var playlist = durationMinuteSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist duration minutes.\n *\n * @param {Integer} minutes - The duration minutes of the audio.\n */\n function syncSongInPlaylist(minutes) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n var durationMinuteSelectors = document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n for (var i = 0; i < durationMinuteSelectors.length; i++) {\n durationMinuteSelectors[i].innerHTML = minutes;\n }\n }\n\n /**\n * Resets the duration minutes elements to '00'\n */\n function resetTimes() {\n var durationMinuteSelectors = document.querySelectorAll(\".amplitude-duration-minutes\");\n\n for (var i = 0; i < durationMinuteSelectors.length; i++) {\n durationMinuteSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = DurationMinuteElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the duration seconds elements.\n *\n * @module visual/time/DurationSecondElements.\n */\nvar DurationSecondElements = function () {\n /**\n * Sync the duration seconds elements.\n *\n * @param {Integer} seconds - The duration seconds for the audio.\n */\n function sync(seconds) {\n syncGlobal(seconds);\n syncPlaylist(seconds);\n syncSong(seconds);\n syncSongInPlaylist(seconds);\n }\n\n /**\n * Syncs the global duration seconds elements.\n *\n * @param {Integer} seconds - the duration seconds for the audio.\n */\n function syncGlobal(seconds) {\n var durationSecondSelectors = document.querySelectorAll(\".amplitude-duration-seconds\");\n\n for (var i = 0; i < durationSecondSelectors.length; i++) {\n var playlist = durationSecondSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = durationSecondSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the playlist duration seconds for the audio.\n *\n * @param {Integer} seconds - The duration seconds for the audio.\n */\n function syncPlaylist(seconds) {\n var durationSecondSelectors = document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var i = 0; i < durationSecondSelectors.length; i++) {\n var songIndex = durationSecondSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (songIndex == null) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n\n /**\n * Syncs the song duration seconds.\n *\n * @param {Integer} seconds - The duration seconds for the audio.\n */\n function syncSong(seconds) {\n if (_config2.default.active_playlist == null) {\n var durationSecondSelectors = document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n for (var i = 0; i < durationSecondSelectors.length; i++) {\n var playlist = durationSecondSelectors[i].getAttribute(\"data--amplitude-playlist\");\n\n if (playlist == null) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n }\n }\n\n /**\n * Syncs the song in playlist duration seconds.\n *\n * @param {Integer} seconds - The duration seconds of the audio.\n */\n function syncSongInPlaylist(seconds) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n var durationSecondSelectors = document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n for (var i = 0; i < durationSecondSelectors.length; i++) {\n durationSecondSelectors[i].innerHTML = seconds;\n }\n }\n\n /**\n * Resets the duration seconds elements to '00'\n */\n function resetTimes() {\n var durationSecondSelectors = document.querySelectorAll(\".amplitude-duration-seconds\");\n\n for (var i = 0; i < durationSecondSelectors.length; i++) {\n durationSecondSelectors[i].innerHTML = \"00\";\n }\n }\n\n /**\n * Returns the publically facing methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = DurationSecondElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _config = __webpack_require__(0);\n\nvar _config2 = _interopRequireDefault(_config);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * Handles all of the duration time elements.\n *\n * @module visual/time/DurationTimeElements.\n */\nvar DurationTimeElements = function () {\n /**\n * Syncs the duration time for all elements.\n *\n * @param {Object} durationTime - The object containing all of the song duration times.\n */\n function sync(durationTime) {\n var durationText = computeDurationText(durationTime);\n\n syncGlobal(durationText);\n syncPlaylist(durationText);\n syncSong(durationText);\n syncSongInPlaylist(durationText);\n }\n\n /**\n * Sync the global song duration elements.\n *\n * @param {Object} durationText - The text for the song duration.\n */\n function syncGlobal(durationText) {\n var durationTimeSelectors = document.querySelectorAll(\".amplitude-duration-time\");\n\n for (var i = 0; i < durationTimeSelectors.length; i++) {\n var playlist = durationTimeSelectors[i].getAttribute(\"data-amplitude-playlist\");\n var songIndex = durationTimeSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (playlist == null && songIndex == null) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n }\n\n /**\n * Sync the playlist duration times.\n *\n * @param {Object} durationText - The text for the song duration.\n */\n function syncPlaylist(durationText) {\n var durationTimeSelectors = document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"]');\n\n for (var i = 0; i < durationTimeSelectors.length; i++) {\n var songIndex = durationTimeSelectors[i].getAttribute(\"data-amplitude-song-index\");\n\n if (songIndex == null) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n }\n\n /**\n * Sync the song duration times.\n *\n * @param {Object} durationText - The text for the song duration.\n */\n function syncSong(durationText) {\n if (_config2.default.active_playlist == null) {\n var durationTimeSelectors = document.querySelectorAll('.amplitude-duration-time[data-amplitude-song-index=\"' + _config2.default.active_index + '\"]');\n\n for (var i = 0; i < durationTimeSelectors.length; i++) {\n var playlist = durationTimeSelectors[i].getAttribute(\"data-amplitude-playlist\");\n\n if (playlist == null) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n }\n }\n\n /**\n * Sync the song in playlist duration times.\n *\n * @param {Object} durationText - An object containing the duration text.\n */\n function syncSongInPlaylist(durationText) {\n var activePlaylistIndex = _config2.default.active_playlist != \"\" && _config2.default.active_playlist != null ? _config2.default.playlists[_config2.default.active_playlist].active_index : null;\n\n var durationTimeSelectors = document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist=\"' + _config2.default.active_playlist + '\"][data-amplitude-song-index=\"' + activePlaylistIndex + '\"]');\n\n for (var i = 0; i < durationTimeSelectors.length; i++) {\n durationTimeSelectors[i].innerHTML = durationText;\n }\n }\n\n /**\n * Resets all of the duration times to empty.\n */\n function resetTimes() {\n var durationTimeSelectors = document.querySelectorAll(\".amplitude-duration-time\");\n\n for (var i = 0; i < durationTimeSelectors.length; i++) {\n durationTimeSelectors[i].innerHTML = \"00:00\";\n }\n }\n\n /**\n * Computes the duration text\n *\n * @param {Object} durationTime - An object containint the duration times.\n */\n function computeDurationText(durationTime) {\n var durationText = \"00:00\";\n\n if (!isNaN(durationTime.minutes) && !isNaN(durationTime.seconds)) {\n durationText = durationTime.minutes + \":\" + durationTime.seconds;\n if (!isNaN(durationTime.hours) && durationTime.hours > 0) {\n durationText = durationTime.hours + \":\" + durationText;\n }\n }\n\n return durationText;\n }\n\n /**\n * Return publically accessible methods.\n */\n return {\n sync: sync,\n resetTimes: resetTimes\n };\n}(); /**\n * Imports the config module\n * @module config\n */\nexports.default = DurationTimeElements;\nmodule.exports = exports[\"default\"];\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports) {\n\nmodule.exports = {\"name\":\"amplitudejs\",\"version\":\"5.3.2\",\"description\":\"A JavaScript library that allows you to control the design of your media controls in your webpage -- not the browser. No dependencies (jQuery not required) https://521dimensions.com/open-source/amplitudejs\",\"main\":\"dist/amplitude.js\",\"devDependencies\":{\"babel-core\":\"^6.26.3\",\"babel-loader\":\"^7.1.5\",\"babel-plugin-add-module-exports\":\"0.2.1\",\"babel-polyfill\":\"^6.26.0\",\"babel-preset-es2015\":\"^6.18.0\",\"husky\":\"^1.3.1\",\"jest\":\"^23.6.0\",\"prettier\":\"1.15.1\",\"pretty-quick\":\"^1.11.1\",\"watch\":\"^1.0.2\",\"webpack\":\"^2.7.0\"},\"directories\":{\"doc\":\"docs\"},\"files\":[\"dist\"],\"funding\":{\"type\":\"opencollective\",\"url\":\"https://opencollective.com/amplitudejs\"},\"scripts\":{\"build\":\"node_modules/.bin/webpack\",\"prettier\":\"npx pretty-quick\",\"preversion\":\"npx pretty-quick && npm run test\",\"postversion\":\"git push && git push --tags\",\"test\":\"jest\",\"version\":\"npm run build && git add -A dist\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/521dimensions/amplitudejs.git\"},\"keywords\":[\"webaudio\",\"html5\",\"javascript\",\"audio-player\"],\"author\":\"521 Dimensions (https://521dimensions.com)\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/521dimensions/amplitudejs/issues\"},\"homepage\":\"https://github.com/521dimensions/amplitudejs#readme\"}\n\n/***/ })\n/******/ ]);\n});\n//# sourceMappingURL=amplitude.js.map","import PressPage from './PressPage';\nimport BookmarksPage from './BookmarksPage';\nimport RawHtml from './RawHtml';\nimport SearchPage from './SearchPage';\nimport ArticleCard from './ArticleCard';\nimport PodcastCard from './PodcastCard';\nimport TvShowCard from './TvShowCard';\n\nexport {\n PressPage,\n BookmarksPage,\n RawHtml,\n SearchPage,\n ArticleCard,\n PodcastCard,\n TvShowCard\n}\n","'use strict';\nconst mapObj = require('map-obj');\nconst camelCase = require('camelcase');\nconst QuickLru = require('quick-lru');\n\nconst has = (array, key) => array.some(x => {\n\tif (typeof x === 'string') {\n\t\treturn x === key;\n\t}\n\n\tx.lastIndex = 0;\n\treturn x.test(key);\n});\n\nconst cache = new QuickLru({maxSize: 100000});\n\n// Reproduces behavior from `map-obj`\nconst isObject = value =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t!(value instanceof RegExp) &&\n\t!(value instanceof Error) &&\n\t!(value instanceof Date);\n\nconst camelCaseConvert = (input, options) => {\n\tif (!isObject(input)) {\n\t\treturn input;\n\t}\n\n\toptions = {\n\t\tdeep: false,\n\t\tpascalCase: false,\n\t\t...options\n\t};\n\n\tconst {exclude, pascalCase, stopPaths, deep} = options;\n\n\tconst stopPathsSet = new Set(stopPaths);\n\n\tconst makeMapper = parentPath => (key, value) => {\n\t\tif (deep && isObject(value)) {\n\t\t\tconst path = parentPath === undefined ? key : `${parentPath}.${key}`;\n\n\t\t\tif (!stopPathsSet.has(path)) {\n\t\t\t\tvalue = mapObj(value, makeMapper(path));\n\t\t\t}\n\t\t}\n\n\t\tif (!(exclude && has(exclude, key))) {\n\t\t\tconst cacheKey = pascalCase ? `${key}_` : key;\n\n\t\t\tif (cache.has(cacheKey)) {\n\t\t\t\tkey = cache.get(cacheKey);\n\t\t\t} else {\n\t\t\t\tconst ret = camelCase(key, {pascalCase});\n\n\t\t\t\tif (key.length < 100) { // Prevent abuse\n\t\t\t\t\tcache.set(cacheKey, ret);\n\t\t\t\t}\n\n\t\t\t\tkey = ret;\n\t\t\t}\n\t\t}\n\n\t\treturn [key, value];\n\t};\n\n\treturn mapObj(input, makeMapper(undefined));\n};\n\nmodule.exports = (input, options) => {\n\tif (Array.isArray(input)) {\n\t\treturn Object.keys(input).map(key => camelCaseConvert(input[key], options));\n\t}\n\n\treturn camelCaseConvert(input, options);\n};\n","'use strict';\n\nconst preserveCamelCase = string => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\n\tfor (let i = 0; i < string.length; i++) {\n\t\tconst character = string[i];\n\n\t\tif (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {\n\t\t\tstring = string.slice(0, i) + '-' + string.slice(i);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\ti++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {\n\t\t\tstring = string.slice(0, i - 1) + '-' + string.slice(i - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst camelCase = (input, options) => {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = Object.assign({\n\t\tpascalCase: false\n\t}, options);\n\n\tconst postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tif (input.length === 1) {\n\t\treturn options.pascalCase ? input.toUpperCase() : input.toLowerCase();\n\t}\n\n\tconst hasUpperCase = input !== input.toLowerCase();\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input);\n\t}\n\n\tinput = input\n\t\t.replace(/^[_.\\- ]+/, '')\n\t\t.toLowerCase()\n\t\t.replace(/[_.\\- ]+(\\w|$)/g, (_, p1) => p1.toUpperCase())\n\t\t.replace(/\\d+(\\w|$)/g, m => m.toUpperCase());\n\n\treturn postProcess(input);\n};\n\nmodule.exports = camelCase;\n// TODO: Remove this for the next major release\nmodule.exports.default = camelCase;\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// Polyfill for creating CustomEvents on IE9/10/11\n\n// code pulled from:\n// https://github.com/d4tocchini/customevent-polyfill\n// https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent#Polyfill\n\n(function() {\n if (typeof window === 'undefined') {\n return;\n }\n\n try {\n var ce = new window.CustomEvent('test', { cancelable: true });\n ce.preventDefault();\n if (ce.defaultPrevented !== true) {\n // IE has problems with .preventDefault() on custom events\n // http://stackoverflow.com/questions/23349191\n throw new Error('Could not prevent default');\n }\n } catch (e) {\n var CustomEvent = function(event, params) {\n var evt, origPrevent;\n params = params || {};\n params.bubbles = !!params.bubbles;\n params.cancelable = !!params.cancelable;\n\n evt = document.createEvent('CustomEvent');\n evt.initCustomEvent(\n event,\n params.bubbles,\n params.cancelable,\n params.detail\n );\n origPrevent = evt.preventDefault;\n evt.preventDefault = function() {\n origPrevent.call(this);\n try {\n Object.defineProperty(this, 'defaultPrevented', {\n get: function() {\n return true;\n }\n });\n } catch (e) {\n this.defaultPrevented = true;\n }\n };\n return evt;\n };\n\n CustomEvent.prototype = window.Event.prototype;\n window.CustomEvent = CustomEvent; // expose definition to window\n }\n})();\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) 0;\n }\n });\n }\n return;\n}\n\n\n/**\n * A local reference to the document.\n */\nvar document = window.document;\n\n\n/**\n * An IntersectionObserver registry. This registry exists to hold a strong\n * reference to IntersectionObserver instances currently observing a target\n * element. Without this registry, instances without another reference may be\n * garbage collected.\n */\nvar registry = [];\n\n\n/**\n * Creates the global IntersectionObserverEntry constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry\n * @param {Object} entry A dictionary of instance properties.\n * @constructor\n */\nfunction IntersectionObserverEntry(entry) {\n this.time = entry.time;\n this.target = entry.target;\n this.rootBounds = entry.rootBounds;\n this.boundingClientRect = entry.boundingClientRect;\n this.intersectionRect = entry.intersectionRect || getEmptyRect();\n this.isIntersecting = !!entry.intersectionRect;\n\n // Calculates the intersection ratio.\n var targetRect = this.boundingClientRect;\n var targetArea = targetRect.width * targetRect.height;\n var intersectionRect = this.intersectionRect;\n var intersectionArea = intersectionRect.width * intersectionRect.height;\n\n // Sets intersection ratio.\n if (targetArea) {\n // Round the intersection ratio to avoid floating point math issues:\n // https://github.com/w3c/IntersectionObserver/issues/324\n this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));\n } else {\n // If area is zero and is intersecting, sets to 1, otherwise to 0\n this.intersectionRatio = this.isIntersecting ? 1 : 0;\n }\n}\n\n\n/**\n * Creates the global IntersectionObserver constructor.\n * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface\n * @param {Function} callback The function to be invoked after intersection\n * changes have queued. The function is not invoked if the queue has\n * been emptied by calling the `takeRecords` method.\n * @param {Object=} opt_options Optional configuration options.\n * @constructor\n */\nfunction IntersectionObserver(callback, opt_options) {\n\n var options = opt_options || {};\n\n if (typeof callback != 'function') {\n throw new Error('callback must be a function');\n }\n\n if (options.root && options.root.nodeType != 1) {\n throw new Error('root must be an Element');\n }\n\n // Binds and throttles `this._checkForIntersections`.\n this._checkForIntersections = throttle(\n this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);\n\n // Private properties.\n this._callback = callback;\n this._observationTargets = [];\n this._queuedEntries = [];\n this._rootMarginValues = this._parseRootMargin(options.rootMargin);\n\n // Public properties.\n this.thresholds = this._initThresholds(options.threshold);\n this.root = options.root || null;\n this.rootMargin = this._rootMarginValues.map(function(margin) {\n return margin.value + margin.unit;\n }).join(' ');\n}\n\n\n/**\n * The minimum interval within which the document will be checked for\n * intersection changes.\n */\nIntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;\n\n\n/**\n * The frequency in which the polyfill polls for intersection changes.\n * this can be updated on a per instance basis and must be set prior to\n * calling `observe` on the first target.\n */\nIntersectionObserver.prototype.POLL_INTERVAL = null;\n\n/**\n * Use a mutation observer on the root element\n * to detect intersection changes.\n */\nIntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;\n\n\n/**\n * Starts observing a target element for intersection changes based on\n * the thresholds values.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.observe = function(target) {\n var isTargetAlreadyObserved = this._observationTargets.some(function(item) {\n return item.element == target;\n });\n\n if (isTargetAlreadyObserved) {\n return;\n }\n\n if (!(target && target.nodeType == 1)) {\n throw new Error('target must be an Element');\n }\n\n this._registerInstance();\n this._observationTargets.push({element: target, entry: null});\n this._monitorIntersections();\n this._checkForIntersections();\n};\n\n\n/**\n * Stops observing a target element for intersection changes.\n * @param {Element} target The DOM element to observe.\n */\nIntersectionObserver.prototype.unobserve = function(target) {\n this._observationTargets =\n this._observationTargets.filter(function(item) {\n\n return item.element != target;\n });\n if (!this._observationTargets.length) {\n this._unmonitorIntersections();\n this._unregisterInstance();\n }\n};\n\n\n/**\n * Stops observing all target elements for intersection changes.\n */\nIntersectionObserver.prototype.disconnect = function() {\n this._observationTargets = [];\n this._unmonitorIntersections();\n this._unregisterInstance();\n};\n\n\n/**\n * Returns any queue entries that have not yet been reported to the\n * callback and clears the queue. This can be used in conjunction with the\n * callback to obtain the absolute most up-to-date intersection information.\n * @return {Array} The currently queued entries.\n */\nIntersectionObserver.prototype.takeRecords = function() {\n var records = this._queuedEntries.slice();\n this._queuedEntries = [];\n return records;\n};\n\n\n/**\n * Accepts the threshold value from the user configuration object and\n * returns a sorted array of unique threshold values. If a value is not\n * between 0 and 1 and error is thrown.\n * @private\n * @param {Array|number=} opt_threshold An optional threshold value or\n * a list of threshold values, defaulting to [0].\n * @return {Array} A sorted list of unique and valid threshold values.\n */\nIntersectionObserver.prototype._initThresholds = function(opt_threshold) {\n var threshold = opt_threshold || [0];\n if (!Array.isArray(threshold)) threshold = [threshold];\n\n return threshold.sort().filter(function(t, i, a) {\n if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {\n throw new Error('threshold must be a number between 0 and 1 inclusively');\n }\n return t !== a[i - 1];\n });\n};\n\n\n/**\n * Accepts the rootMargin value from the user configuration object\n * and returns an array of the four margin values as an object containing\n * the value and unit properties. If any of the values are not properly\n * formatted or use a unit other than px or %, and error is thrown.\n * @private\n * @param {string=} opt_rootMargin An optional rootMargin value,\n * defaulting to '0px'.\n * @return {Array} An array of margin objects with the keys\n * value and unit.\n */\nIntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) {\n var marginString = opt_rootMargin || '0px';\n var margins = marginString.split(/\\s+/).map(function(margin) {\n var parts = /^(-?\\d*\\.?\\d+)(px|%)$/.exec(margin);\n if (!parts) {\n throw new Error('rootMargin must be specified in pixels or percent');\n }\n return {value: parseFloat(parts[1]), unit: parts[2]};\n });\n\n // Handles shorthand.\n margins[1] = margins[1] || margins[0];\n margins[2] = margins[2] || margins[0];\n margins[3] = margins[3] || margins[1];\n\n return margins;\n};\n\n\n/**\n * Starts polling for intersection changes if the polling is not already\n * happening, and if the page's visibility state is visible.\n * @private\n */\nIntersectionObserver.prototype._monitorIntersections = function() {\n if (!this._monitoringIntersections) {\n this._monitoringIntersections = true;\n\n // If a poll interval is set, use polling instead of listening to\n // resize and scroll events or DOM mutations.\n if (this.POLL_INTERVAL) {\n this._monitoringInterval = setInterval(\n this._checkForIntersections, this.POLL_INTERVAL);\n }\n else {\n addEvent(window, 'resize', this._checkForIntersections, true);\n addEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) {\n this._domObserver = new MutationObserver(this._checkForIntersections);\n this._domObserver.observe(document, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true\n });\n }\n }\n }\n};\n\n\n/**\n * Stops polling for intersection changes.\n * @private\n */\nIntersectionObserver.prototype._unmonitorIntersections = function() {\n if (this._monitoringIntersections) {\n this._monitoringIntersections = false;\n\n clearInterval(this._monitoringInterval);\n this._monitoringInterval = null;\n\n removeEvent(window, 'resize', this._checkForIntersections, true);\n removeEvent(document, 'scroll', this._checkForIntersections, true);\n\n if (this._domObserver) {\n this._domObserver.disconnect();\n this._domObserver = null;\n }\n }\n};\n\n\n/**\n * Scans each observation target for intersection changes and adds them\n * to the internal entries queue. If new entries are found, it\n * schedules the callback to be invoked.\n * @private\n */\nIntersectionObserver.prototype._checkForIntersections = function() {\n var rootIsInDom = this._rootIsInDom();\n var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();\n\n this._observationTargets.forEach(function(item) {\n var target = item.element;\n var targetRect = getBoundingClientRect(target);\n var rootContainsTarget = this._rootContainsTarget(target);\n var oldEntry = item.entry;\n var intersectionRect = rootIsInDom && rootContainsTarget &&\n this._computeTargetAndRootIntersection(target, rootRect);\n\n var newEntry = item.entry = new IntersectionObserverEntry({\n time: now(),\n target: target,\n boundingClientRect: targetRect,\n rootBounds: rootRect,\n intersectionRect: intersectionRect\n });\n\n if (!oldEntry) {\n this._queuedEntries.push(newEntry);\n } else if (rootIsInDom && rootContainsTarget) {\n // If the new entry intersection ratio has crossed any of the\n // thresholds, add a new entry.\n if (this._hasCrossedThreshold(oldEntry, newEntry)) {\n this._queuedEntries.push(newEntry);\n }\n } else {\n // If the root is not in the DOM or target is not contained within\n // root but the previous entry for this target had an intersection,\n // add a new record indicating removal.\n if (oldEntry && oldEntry.isIntersecting) {\n this._queuedEntries.push(newEntry);\n }\n }\n }, this);\n\n if (this._queuedEntries.length) {\n this._callback(this.takeRecords(), this);\n }\n};\n\n\n/**\n * Accepts a target and root rect computes the intersection between then\n * following the algorithm in the spec.\n * TODO(philipwalton): at this time clip-path is not considered.\n * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo\n * @param {Element} target The target DOM element\n * @param {Object} rootRect The bounding rect of the root after being\n * expanded by the rootMargin value.\n * @return {?Object} The final intersection rect object or undefined if no\n * intersection is found.\n * @private\n */\nIntersectionObserver.prototype._computeTargetAndRootIntersection =\n function(target, rootRect) {\n\n // If the element isn't displayed, an intersection can't happen.\n if (window.getComputedStyle(target).display == 'none') return;\n\n var targetRect = getBoundingClientRect(target);\n var intersectionRect = targetRect;\n var parent = getParentNode(target);\n var atRoot = false;\n\n while (!atRoot) {\n var parentRect = null;\n var parentComputedStyle = parent.nodeType == 1 ?\n window.getComputedStyle(parent) : {};\n\n // If the parent isn't displayed, an intersection can't happen.\n if (parentComputedStyle.display == 'none') return;\n\n if (parent == this.root || parent == document) {\n atRoot = true;\n parentRect = rootRect;\n } else {\n // If the element has a non-visible overflow, and it's not the \n // or element, update the intersection rect.\n // Note: and cannot be clipped to a rect that's not also\n // the document rect, so no need to compute a new intersection.\n if (parent != document.body &&\n parent != document.documentElement &&\n parentComputedStyle.overflow != 'visible') {\n parentRect = getBoundingClientRect(parent);\n }\n }\n\n // If either of the above conditionals set a new parentRect,\n // calculate new intersection data.\n if (parentRect) {\n intersectionRect = computeRectIntersection(parentRect, intersectionRect);\n\n if (!intersectionRect) break;\n }\n parent = getParentNode(parent);\n }\n return intersectionRect;\n};\n\n\n/**\n * Returns the root rect after being expanded by the rootMargin value.\n * @return {Object} The expanded root rect.\n * @private\n */\nIntersectionObserver.prototype._getRootRect = function() {\n var rootRect;\n if (this.root) {\n rootRect = getBoundingClientRect(this.root);\n } else {\n // Use / instead of window since scroll bars affect size.\n var html = document.documentElement;\n var body = document.body;\n rootRect = {\n top: 0,\n left: 0,\n right: html.clientWidth || body.clientWidth,\n width: html.clientWidth || body.clientWidth,\n bottom: html.clientHeight || body.clientHeight,\n height: html.clientHeight || body.clientHeight\n };\n }\n return this._expandRectByRootMargin(rootRect);\n};\n\n\n/**\n * Accepts a rect and expands it by the rootMargin value.\n * @param {Object} rect The rect object to expand.\n * @return {Object} The expanded rect.\n * @private\n */\nIntersectionObserver.prototype._expandRectByRootMargin = function(rect) {\n var margins = this._rootMarginValues.map(function(margin, i) {\n return margin.unit == 'px' ? margin.value :\n margin.value * (i % 2 ? rect.width : rect.height) / 100;\n });\n var newRect = {\n top: rect.top - margins[0],\n right: rect.right + margins[1],\n bottom: rect.bottom + margins[2],\n left: rect.left - margins[3]\n };\n newRect.width = newRect.right - newRect.left;\n newRect.height = newRect.bottom - newRect.top;\n\n return newRect;\n};\n\n\n/**\n * Accepts an old and new entry and returns true if at least one of the\n * threshold values has been crossed.\n * @param {?IntersectionObserverEntry} oldEntry The previous entry for a\n * particular target element or null if no previous entry exists.\n * @param {IntersectionObserverEntry} newEntry The current entry for a\n * particular target element.\n * @return {boolean} Returns true if a any threshold has been crossed.\n * @private\n */\nIntersectionObserver.prototype._hasCrossedThreshold =\n function(oldEntry, newEntry) {\n\n // To make comparing easier, an entry that has a ratio of 0\n // but does not actually intersect is given a value of -1\n var oldRatio = oldEntry && oldEntry.isIntersecting ?\n oldEntry.intersectionRatio || 0 : -1;\n var newRatio = newEntry.isIntersecting ?\n newEntry.intersectionRatio || 0 : -1;\n\n // Ignore unchanged ratios\n if (oldRatio === newRatio) return;\n\n for (var i = 0; i < this.thresholds.length; i++) {\n var threshold = this.thresholds[i];\n\n // Return true if an entry matches a threshold or if the new ratio\n // and the old ratio are on the opposite sides of a threshold.\n if (threshold == oldRatio || threshold == newRatio ||\n threshold < oldRatio !== threshold < newRatio) {\n return true;\n }\n }\n};\n\n\n/**\n * Returns whether or not the root element is an element and is in the DOM.\n * @return {boolean} True if the root element is an element and is in the DOM.\n * @private\n */\nIntersectionObserver.prototype._rootIsInDom = function() {\n return !this.root || containsDeep(document, this.root);\n};\n\n\n/**\n * Returns whether or not the target element is a child of root.\n * @param {Element} target The target element to check.\n * @return {boolean} True if the target element is a child of root.\n * @private\n */\nIntersectionObserver.prototype._rootContainsTarget = function(target) {\n return containsDeep(this.root || document, target);\n};\n\n\n/**\n * Adds the instance to the global IntersectionObserver registry if it isn't\n * already present.\n * @private\n */\nIntersectionObserver.prototype._registerInstance = function() {\n if (registry.indexOf(this) < 0) {\n registry.push(this);\n }\n};\n\n\n/**\n * Removes the instance from the global IntersectionObserver registry.\n * @private\n */\nIntersectionObserver.prototype._unregisterInstance = function() {\n var index = registry.indexOf(this);\n if (index != -1) registry.splice(index, 1);\n};\n\n\n/**\n * Returns the result of the performance.now() method or null in browsers\n * that don't support the API.\n * @return {number} The elapsed time since the page was requested.\n */\nfunction now() {\n return window.performance && performance.now && performance.now();\n}\n\n\n/**\n * Throttles a function and delays its execution, so it's only called at most\n * once within a given time period.\n * @param {Function} fn The function to throttle.\n * @param {number} timeout The amount of time that must pass before the\n * function can be called again.\n * @return {Function} The throttled function.\n */\nfunction throttle(fn, timeout) {\n var timer = null;\n return function () {\n if (!timer) {\n timer = setTimeout(function() {\n fn();\n timer = null;\n }, timeout);\n }\n };\n}\n\n\n/**\n * Adds an event handler to a DOM node ensuring cross-browser compatibility.\n * @param {Node} node The DOM node to add the event handler to.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to add.\n * @param {boolean} opt_useCapture Optionally adds the even to the capture\n * phase. Note: this only works in modern browsers.\n */\nfunction addEvent(node, event, fn, opt_useCapture) {\n if (typeof node.addEventListener == 'function') {\n node.addEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.attachEvent == 'function') {\n node.attachEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Removes a previously added event handler from a DOM node.\n * @param {Node} node The DOM node to remove the event handler from.\n * @param {string} event The event name.\n * @param {Function} fn The event handler to remove.\n * @param {boolean} opt_useCapture If the event handler was added with this\n * flag set to true, it should be set to true here in order to remove it.\n */\nfunction removeEvent(node, event, fn, opt_useCapture) {\n if (typeof node.removeEventListener == 'function') {\n node.removeEventListener(event, fn, opt_useCapture || false);\n }\n else if (typeof node.detatchEvent == 'function') {\n node.detatchEvent('on' + event, fn);\n }\n}\n\n\n/**\n * Returns the intersection between two rect objects.\n * @param {Object} rect1 The first rect.\n * @param {Object} rect2 The second rect.\n * @return {?Object} The intersection rect or undefined if no intersection\n * is found.\n */\nfunction computeRectIntersection(rect1, rect2) {\n var top = Math.max(rect1.top, rect2.top);\n var bottom = Math.min(rect1.bottom, rect2.bottom);\n var left = Math.max(rect1.left, rect2.left);\n var right = Math.min(rect1.right, rect2.right);\n var width = right - left;\n var height = bottom - top;\n\n return (width >= 0 && height >= 0) && {\n top: top,\n bottom: bottom,\n left: left,\n right: right,\n width: width,\n height: height\n };\n}\n\n\n/**\n * Shims the native getBoundingClientRect for compatibility with older IE.\n * @param {Element} el The element whose bounding rect to get.\n * @return {Object} The (possibly shimmed) rect of the element.\n */\nfunction getBoundingClientRect(el) {\n var rect;\n\n try {\n rect = el.getBoundingClientRect();\n } catch (err) {\n // Ignore Windows 7 IE11 \"Unspecified error\"\n // https://github.com/w3c/IntersectionObserver/pull/205\n }\n\n if (!rect) return getEmptyRect();\n\n // Older IE\n if (!(rect.width && rect.height)) {\n rect = {\n top: rect.top,\n right: rect.right,\n bottom: rect.bottom,\n left: rect.left,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n }\n return rect;\n}\n\n\n/**\n * Returns an empty rect object. An empty rect is returned when an element\n * is not in the DOM.\n * @return {Object} The empty rect.\n */\nfunction getEmptyRect() {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0\n };\n}\n\n/**\n * Checks to see if a parent element contains a child element (including inside\n * shadow DOM).\n * @param {Node} parent The parent element.\n * @param {Node} child The child element.\n * @return {boolean} True if the parent node contains the child node.\n */\nfunction containsDeep(parent, child) {\n var node = child;\n while (node) {\n if (node == parent) return true;\n\n node = getParentNode(node);\n }\n return false;\n}\n\n\n/**\n * Gets the parent node of an element or its host element if the parent node\n * is a shadow root.\n * @param {Node} node The node whose parent to get.\n * @return {Node|null} The parent node or null if no parent exists.\n */\nfunction getParentNode(node) {\n var parent = node.parentNode;\n\n if (parent && parent.nodeType == 11 && parent.host) {\n // If the parent is a shadow root, return the host element.\n return parent.host;\n }\n\n if (parent && parent.assignedSlot) {\n // If the parent is distributed in a , return the parent of a slot.\n return parent.assignedSlot.parentNode;\n }\n\n return parent;\n}\n\n\n// Exposes the constructors globally.\nwindow.IntersectionObserver = IntersectionObserver;\nwindow.IntersectionObserverEntry = IntersectionObserverEntry;\n\n}());\n","'use strict';\n\nconst isObject = value => typeof value === 'object' && value !== null;\nconst mapObjectSkip = Symbol('skip');\n\n// Customized for this use-case\nconst isObjectCustom = value =>\n\tisObject(value) &&\n\t!(value instanceof RegExp) &&\n\t!(value instanceof Error) &&\n\t!(value instanceof Date);\n\nconst mapObject = (object, mapper, options, isSeen = new WeakMap()) => {\n\toptions = {\n\t\tdeep: false,\n\t\ttarget: {},\n\t\t...options\n\t};\n\n\tif (isSeen.has(object)) {\n\t\treturn isSeen.get(object);\n\t}\n\n\tisSeen.set(object, options.target);\n\n\tconst {target} = options;\n\tdelete options.target;\n\n\tconst mapArray = array => array.map(element => isObjectCustom(element) ? mapObject(element, mapper, options, isSeen) : element);\n\tif (Array.isArray(object)) {\n\t\treturn mapArray(object);\n\t}\n\n\tfor (const [key, value] of Object.entries(object)) {\n\t\tconst mapResult = mapper(key, value, object);\n\n\t\tif (mapResult === mapObjectSkip) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [newKey, newValue, {shouldRecurse = true} = {}] = mapResult;\n\n\t\t// Drop `__proto__` keys.\n\t\tif (newKey === '__proto__') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (options.deep && shouldRecurse && isObjectCustom(newValue)) {\n\t\t\tnewValue = Array.isArray(newValue) ?\n\t\t\t\tmapArray(newValue) :\n\t\t\t\tmapObject(newValue, mapper, options, isSeen);\n\t\t}\n\n\t\ttarget[newKey] = newValue;\n\t}\n\n\treturn target;\n};\n\nmodule.exports = (object, mapper, options) => {\n\tif (!isObject(object)) {\n\t\tthrow new TypeError(`Expected an object, got \\`${object}\\` (${typeof object})`);\n\t}\n\n\treturn mapObject(object, mapper, options);\n};\n\nmodule.exports.mapObjectSkip = mapObjectSkip;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/*! npm.im/object-fit-images 3.2.4 */\n'use strict';\n\nvar OFI = 'bfred-it:object-fit-images';\nvar propRegex = /(object-fit|object-position)\\s*:\\s*([-.\\w\\s%]+)/g;\nvar testImg = typeof Image === 'undefined' ? {style: {'object-position': 1}} : new Image();\nvar supportsObjectFit = 'object-fit' in testImg.style;\nvar supportsObjectPosition = 'object-position' in testImg.style;\nvar supportsOFI = 'background-size' in testImg.style;\nvar supportsCurrentSrc = typeof testImg.currentSrc === 'string';\nvar nativeGetAttribute = testImg.getAttribute;\nvar nativeSetAttribute = testImg.setAttribute;\nvar autoModeEnabled = false;\n\nfunction createPlaceholder(w, h) {\n\treturn (\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='\" + w + \"' height='\" + h + \"'%3E%3C/svg%3E\");\n}\n\nfunction polyfillCurrentSrc(el) {\n\tif (el.srcset && !supportsCurrentSrc && window.picturefill) {\n\t\tvar pf = window.picturefill._;\n\t\t// parse srcset with picturefill where currentSrc isn't available\n\t\tif (!el[pf.ns] || !el[pf.ns].evaled) {\n\t\t\t// force synchronous srcset parsing\n\t\t\tpf.fillImg(el, {reselect: true});\n\t\t}\n\n\t\tif (!el[pf.ns].curSrc) {\n\t\t\t// force picturefill to parse srcset\n\t\t\tel[pf.ns].supported = false;\n\t\t\tpf.fillImg(el, {reselect: true});\n\t\t}\n\n\t\t// retrieve parsed currentSrc, if any\n\t\tel.currentSrc = el[pf.ns].curSrc || el.src;\n\t}\n}\n\nfunction getStyle(el) {\n\tvar style = getComputedStyle(el).fontFamily;\n\tvar parsed;\n\tvar props = {};\n\twhile ((parsed = propRegex.exec(style)) !== null) {\n\t\tprops[parsed[1]] = parsed[2];\n\t}\n\treturn props;\n}\n\nfunction setPlaceholder(img, width, height) {\n\t// Default: fill width, no height\n\tvar placeholder = createPlaceholder(width || 1, height || 0);\n\n\t// Only set placeholder if it's different\n\tif (nativeGetAttribute.call(img, 'src') !== placeholder) {\n\t\tnativeSetAttribute.call(img, 'src', placeholder);\n\t}\n}\n\nfunction onImageReady(img, callback) {\n\t// naturalWidth is only available when the image headers are loaded,\n\t// this loop will poll it every 100ms.\n\tif (img.naturalWidth) {\n\t\tcallback(img);\n\t} else {\n\t\tsetTimeout(onImageReady, 100, img, callback);\n\t}\n}\n\nfunction fixOne(el) {\n\tvar style = getStyle(el);\n\tvar ofi = el[OFI];\n\tstyle['object-fit'] = style['object-fit'] || 'fill'; // default value\n\n\t// Avoid running where unnecessary, unless OFI had already done its deed\n\tif (!ofi.img) {\n\t\t// fill is the default behavior so no action is necessary\n\t\tif (style['object-fit'] === 'fill') {\n\t\t\treturn;\n\t\t}\n\n\t\t// Where object-fit is supported and object-position isn't (Safari < 10)\n\t\tif (\n\t\t\t!ofi.skipTest && // unless user wants to apply regardless of browser support\n\t\t\tsupportsObjectFit && // if browser already supports object-fit\n\t\t\t!style['object-position'] // unless object-position is used\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\t// keep a clone in memory while resetting the original to a blank\n\tif (!ofi.img) {\n\t\tofi.img = new Image(el.width, el.height);\n\t\tofi.img.srcset = nativeGetAttribute.call(el, \"data-ofi-srcset\") || el.srcset;\n\t\tofi.img.src = nativeGetAttribute.call(el, \"data-ofi-src\") || el.src;\n\n\t\t// preserve for any future cloneNode calls\n\t\t// https://github.com/bfred-it/object-fit-images/issues/53\n\t\tnativeSetAttribute.call(el, \"data-ofi-src\", el.src);\n\t\tif (el.srcset) {\n\t\t\tnativeSetAttribute.call(el, \"data-ofi-srcset\", el.srcset);\n\t\t}\n\n\t\tsetPlaceholder(el, el.naturalWidth || el.width, el.naturalHeight || el.height);\n\n\t\t// remove srcset because it overrides src\n\t\tif (el.srcset) {\n\t\t\tel.srcset = '';\n\t\t}\n\t\ttry {\n\t\t\tkeepSrcUsable(el);\n\t\t} catch (err) {\n\t\t\tif (window.console) {\n\t\t\t\tconsole.warn('https://bit.ly/ofi-old-browser');\n\t\t\t}\n\t\t}\n\t}\n\n\tpolyfillCurrentSrc(ofi.img);\n\n\tel.style.backgroundImage = \"url(\\\"\" + ((ofi.img.currentSrc || ofi.img.src).replace(/\"/g, '\\\\\"')) + \"\\\")\";\n\tel.style.backgroundPosition = style['object-position'] || 'center';\n\tel.style.backgroundRepeat = 'no-repeat';\n\tel.style.backgroundOrigin = 'content-box';\n\n\tif (/scale-down/.test(style['object-fit'])) {\n\t\tonImageReady(ofi.img, function () {\n\t\t\tif (ofi.img.naturalWidth > el.width || ofi.img.naturalHeight > el.height) {\n\t\t\t\tel.style.backgroundSize = 'contain';\n\t\t\t} else {\n\t\t\t\tel.style.backgroundSize = 'auto';\n\t\t\t}\n\t\t});\n\t} else {\n\t\tel.style.backgroundSize = style['object-fit'].replace('none', 'auto').replace('fill', '100% 100%');\n\t}\n\n\tonImageReady(ofi.img, function (img) {\n\t\tsetPlaceholder(el, img.naturalWidth, img.naturalHeight);\n\t});\n}\n\nfunction keepSrcUsable(el) {\n\tvar descriptors = {\n\t\tget: function get(prop) {\n\t\t\treturn el[OFI].img[prop ? prop : 'src'];\n\t\t},\n\t\tset: function set(value, prop) {\n\t\t\tel[OFI].img[prop ? prop : 'src'] = value;\n\t\t\tnativeSetAttribute.call(el, (\"data-ofi-\" + prop), value); // preserve for any future cloneNode\n\t\t\tfixOne(el);\n\t\t\treturn value;\n\t\t}\n\t};\n\tObject.defineProperty(el, 'src', descriptors);\n\tObject.defineProperty(el, 'currentSrc', {\n\t\tget: function () { return descriptors.get('currentSrc'); }\n\t});\n\tObject.defineProperty(el, 'srcset', {\n\t\tget: function () { return descriptors.get('srcset'); },\n\t\tset: function (ss) { return descriptors.set(ss, 'srcset'); }\n\t});\n}\n\nfunction hijackAttributes() {\n\tfunction getOfiImageMaybe(el, name) {\n\t\treturn el[OFI] && el[OFI].img && (name === 'src' || name === 'srcset') ? el[OFI].img : el;\n\t}\n\tif (!supportsObjectPosition) {\n\t\tHTMLImageElement.prototype.getAttribute = function (name) {\n\t\t\treturn nativeGetAttribute.call(getOfiImageMaybe(this, name), name);\n\t\t};\n\n\t\tHTMLImageElement.prototype.setAttribute = function (name, value) {\n\t\t\treturn nativeSetAttribute.call(getOfiImageMaybe(this, name), name, String(value));\n\t\t};\n\t}\n}\n\nfunction fix(imgs, opts) {\n\tvar startAutoMode = !autoModeEnabled && !imgs;\n\topts = opts || {};\n\timgs = imgs || 'img';\n\n\tif ((supportsObjectPosition && !opts.skipTest) || !supportsOFI) {\n\t\treturn false;\n\t}\n\n\t// use imgs as a selector or just select all images\n\tif (imgs === 'img') {\n\t\timgs = document.getElementsByTagName('img');\n\t} else if (typeof imgs === 'string') {\n\t\timgs = document.querySelectorAll(imgs);\n\t} else if (!('length' in imgs)) {\n\t\timgs = [imgs];\n\t}\n\n\t// apply fix to all\n\tfor (var i = 0; i < imgs.length; i++) {\n\t\timgs[i][OFI] = imgs[i][OFI] || {\n\t\t\tskipTest: opts.skipTest\n\t\t};\n\t\tfixOne(imgs[i]);\n\t}\n\n\tif (startAutoMode) {\n\t\tdocument.body.addEventListener('load', function (e) {\n\t\t\tif (e.target.tagName === 'IMG') {\n\t\t\t\tfix(e.target, {\n\t\t\t\t\tskipTest: opts.skipTest\n\t\t\t\t});\n\t\t\t}\n\t\t}, true);\n\t\tautoModeEnabled = true;\n\t\timgs = 'img'; // reset to a generic selector for watchMQ\n\t}\n\n\t// if requested, watch media queries for object-fit change\n\tif (opts.watchMQ) {\n\t\twindow.addEventListener('resize', fix.bind(null, imgs, {\n\t\t\tskipTest: opts.skipTest\n\t\t}));\n\t}\n}\n\nfix.supportsObjectFit = supportsObjectFit;\nfix.supportsObjectPosition = supportsObjectPosition;\n\nhijackAttributes();\n\nmodule.exports = fix;\n","module.exports = Paginator;\n\n// Paginator constructor\n//\n// `per_page` is the number of results per page, `length` is the number of\n// pages to display. They default to `25` and `10` respectively.\nfunction Paginator(per_page, length) {\n // You really should be calling this with `new Paginator`, but WHATEVER.\n if (!(this instanceof Paginator)) {\n return new Paginator(per_page, length);\n }\n\n // Woo, defaults!\n this.per_page = per_page || 25;\n this.length = length || 10;\n}\n\n// Build an object with all the necessary information for outputting pagination\n// controls.\n//\n// (new Paginator(paginator.build(100, 2)\nPaginator.prototype.build = function(total_results, current_page) {\n // We want the number of pages, rounded up to the nearest page.\n var total_pages = Math.ceil(total_results / this.per_page);\n\n // Ensure both total_results and current_page are treated as Numbers\n total_results = parseInt(total_results, 10);\n current_page = parseInt(current_page, 10) || 1;\n\n // Obviously we can't be on a negative or 0 page.\n if (current_page < 1) { current_page = 1; }\n // If the user has done something like /page/99999 we want to clamp that back\n // down.\n if (current_page > total_pages) { current_page = total_pages; }\n\n // This is the first page to be displayed as a numbered link.\n var first_page = Math.max(1, current_page - Math.floor(this.length / 2));\n\n // And here's the last page to be displayed specifically.\n var last_page = Math.min(total_pages, current_page + Math.floor(this.length / 2));\n\n // This is triggered if we're at or near one of the extremes; we won't have\n // enough page links. We need to adjust our bounds accordingly.\n if (last_page - first_page + 1 < this.length) {\n if (current_page < (total_pages / 2)) {\n last_page = Math.min(total_pages, last_page + (this.length - (last_page - first_page)));\n } else {\n first_page = Math.max(1, first_page - (this.length - (last_page - first_page)));\n }\n }\n\n // This can be triggered if the user wants an odd number of pages.\n if (last_page - first_page + 1 > this.length) {\n // We want to move towards whatever extreme we're closest to at the time.\n if (current_page > (total_pages / 2)) {\n first_page++;\n } else {\n last_page--;\n }\n }\n\n // First result on the page. This, along with the field below, can be used to\n // do \"showing x to y of z results\" style things.\n var first_result = this.per_page * (current_page - 1);\n if (first_result < 0) { first_result = 0; }\n\n // Last result on the page.\n var last_result = (this.per_page * current_page) - 1;\n if (last_result < 0) { last_result = 0; }\n if (last_result > Math.max(total_results - 1, 0)) { last_result = Math.max(total_results - 1, 0); }\n\n // GIMME THAT OBJECT\n return {\n total_pages: total_pages,\n pages: Math.min(last_page - first_page + 1, total_pages),\n current_page: current_page,\n first_page: first_page,\n last_page: last_page,\n previous_page: current_page - 1,\n next_page: current_page + 1,\n has_previous_page: current_page > 1,\n has_next_page: current_page < total_pages,\n total_results: total_results,\n results: Math.min(last_result - first_result + 1, total_results),\n first_result: first_result,\n last_result: last_result,\n };\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","'use strict';\n\nclass QuickLRU {\n\tconstructor(options = {}) {\n\t\tif (!(options.maxSize && options.maxSize > 0)) {\n\t\t\tthrow new TypeError('`maxSize` must be a number greater than 0');\n\t\t}\n\n\t\tthis.maxSize = options.maxSize;\n\t\tthis.cache = new Map();\n\t\tthis.oldCache = new Map();\n\t\tthis._size = 0;\n\t}\n\n\t_set(key, value) {\n\t\tthis.cache.set(key, value);\n\t\tthis._size++;\n\n\t\tif (this._size >= this.maxSize) {\n\t\t\tthis._size = 0;\n\t\t\tthis.oldCache = this.cache;\n\t\t\tthis.cache = new Map();\n\t\t}\n\t}\n\n\tget(key) {\n\t\tif (this.cache.has(key)) {\n\t\t\treturn this.cache.get(key);\n\t\t}\n\n\t\tif (this.oldCache.has(key)) {\n\t\t\tconst value = this.oldCache.get(key);\n\t\t\tthis.oldCache.delete(key);\n\t\t\tthis._set(key, value);\n\t\t\treturn value;\n\t\t}\n\t}\n\n\tset(key, value) {\n\t\tif (this.cache.has(key)) {\n\t\t\tthis.cache.set(key, value);\n\t\t} else {\n\t\t\tthis._set(key, value);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\thas(key) {\n\t\treturn this.cache.has(key) || this.oldCache.has(key);\n\t}\n\n\tpeek(key) {\n\t\tif (this.cache.has(key)) {\n\t\t\treturn this.cache.get(key);\n\t\t}\n\n\t\tif (this.oldCache.has(key)) {\n\t\t\treturn this.oldCache.get(key);\n\t\t}\n\t}\n\n\tdelete(key) {\n\t\tconst deleted = this.cache.delete(key);\n\t\tif (deleted) {\n\t\t\tthis._size--;\n\t\t}\n\n\t\treturn this.oldCache.delete(key) || deleted;\n\t}\n\n\tclear() {\n\t\tthis.cache.clear();\n\t\tthis.oldCache.clear();\n\t\tthis._size = 0;\n\t}\n\n\t* keys() {\n\t\tfor (const [key] of this) {\n\t\t\tyield key;\n\t\t}\n\t}\n\n\t* values() {\n\t\tfor (const [, value] of this) {\n\t\t\tyield value;\n\t\t}\n\t}\n\n\t* [Symbol.iterator]() {\n\t\tfor (const item of this.cache) {\n\t\t\tyield item;\n\t\t}\n\n\t\tfor (const item of this.oldCache) {\n\t\t\tconst [key] = item;\n\t\t\tif (!this.cache.has(key)) {\n\t\t\t\tyield item;\n\t\t\t}\n\t\t}\n\t}\n\n\tget size() {\n\t\tlet oldCacheSize = 0;\n\t\tfor (const key of this.oldCache.keys()) {\n\t\t\tif (!this.cache.has(key)) {\n\t\t\t\toldCacheSize++;\n\t\t\t}\n\t\t}\n\n\t\treturn this._size + oldCacheSize;\n\t}\n}\n\nmodule.exports = QuickLRU;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar Page =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Page, _Component);\n\n function Page() {\n _classCallCheck(this, Page);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Page).apply(this, arguments));\n }\n\n _createClass(Page, [{\n key: \"handleClick\",\n value: function handleClick(e) {\n var _this$props = this.props,\n isDisabled = _this$props.isDisabled,\n pageNumber = _this$props.pageNumber;\n e.preventDefault();\n\n if (isDisabled) {\n return;\n }\n\n this.props.onClick(pageNumber);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _cx;\n\n var _this$props2 = this.props,\n pageText = _this$props2.pageText,\n pageNumber = _this$props2.pageNumber,\n activeClass = _this$props2.activeClass,\n itemClass = _this$props2.itemClass,\n linkClass = _this$props2.linkClass,\n activeLinkClass = _this$props2.activeLinkClass,\n disabledClass = _this$props2.disabledClass,\n isActive = _this$props2.isActive,\n isDisabled = _this$props2.isDisabled,\n href = _this$props2.href,\n ariaLabel = _this$props2.ariaLabel;\n var css = (0, _classnames[\"default\"])(itemClass, (_cx = {}, _defineProperty(_cx, activeClass, isActive), _defineProperty(_cx, disabledClass, isDisabled), _cx));\n var linkCss = (0, _classnames[\"default\"])(linkClass, _defineProperty({}, activeLinkClass, isActive));\n return _react[\"default\"].createElement(\"li\", {\n className: css,\n onClick: this.handleClick.bind(this)\n }, _react[\"default\"].createElement(\"a\", {\n className: linkCss,\n href: href,\n \"aria-label\": ariaLabel\n }, pageText));\n }\n }]);\n\n return Page;\n}(_react.Component);\n\nexports[\"default\"] = Page;\n\n_defineProperty(Page, \"propTypes\", {\n pageText: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].element]),\n pageNumber: _propTypes[\"default\"].number.isRequired,\n onClick: _propTypes[\"default\"].func.isRequired,\n isActive: _propTypes[\"default\"].bool.isRequired,\n isDisabled: _propTypes[\"default\"].bool,\n activeClass: _propTypes[\"default\"].string,\n activeLinkClass: _propTypes[\"default\"].string,\n itemClass: _propTypes[\"default\"].string,\n linkClass: _propTypes[\"default\"].string,\n disabledClass: _propTypes[\"default\"].string,\n href: _propTypes[\"default\"].string\n});\n\n_defineProperty(Page, \"defaultProps\", {\n activeClass: \"active\",\n disabledClass: \"disabled\",\n itemClass: undefined,\n linkClass: undefined,\n activeLinkCLass: undefined,\n isActive: false,\n isDisabled: false,\n href: \"#\"\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _paginator = _interopRequireDefault(require(\"paginator\"));\n\nvar _Page = _interopRequireDefault(require(\"./Page\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache() { if (typeof WeakMap !== \"function\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar Pagination =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Pagination, _React$Component);\n\n function Pagination() {\n _classCallCheck(this, Pagination);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Pagination).apply(this, arguments));\n }\n\n _createClass(Pagination, [{\n key: \"isFirstPageVisible\",\n value: function isFirstPageVisible(has_previous_page) {\n var _this$props = this.props,\n hideDisabled = _this$props.hideDisabled,\n hideNavigation = _this$props.hideNavigation,\n hideFirstLastPages = _this$props.hideFirstLastPages;\n if (hideFirstLastPages || hideDisabled && !has_previous_page) return false;\n return true;\n }\n }, {\n key: \"isPrevPageVisible\",\n value: function isPrevPageVisible(has_previous_page) {\n var _this$props2 = this.props,\n hideDisabled = _this$props2.hideDisabled,\n hideNavigation = _this$props2.hideNavigation;\n if (hideNavigation || hideDisabled && !has_previous_page) return false;\n return true;\n }\n }, {\n key: \"isNextPageVisible\",\n value: function isNextPageVisible(has_next_page) {\n var _this$props3 = this.props,\n hideDisabled = _this$props3.hideDisabled,\n hideNavigation = _this$props3.hideNavigation;\n if (hideNavigation || hideDisabled && !has_next_page) return false;\n return true;\n }\n }, {\n key: \"isLastPageVisible\",\n value: function isLastPageVisible(has_next_page) {\n var _this$props4 = this.props,\n hideDisabled = _this$props4.hideDisabled,\n hideNavigation = _this$props4.hideNavigation,\n hideFirstLastPages = _this$props4.hideFirstLastPages;\n if (hideFirstLastPages || hideDisabled && !has_next_page) return false;\n return true;\n }\n }, {\n key: \"buildPages\",\n value: function buildPages() {\n var pages = [];\n var _this$props5 = this.props,\n itemsCountPerPage = _this$props5.itemsCountPerPage,\n pageRangeDisplayed = _this$props5.pageRangeDisplayed,\n activePage = _this$props5.activePage,\n prevPageText = _this$props5.prevPageText,\n nextPageText = _this$props5.nextPageText,\n firstPageText = _this$props5.firstPageText,\n lastPageText = _this$props5.lastPageText,\n totalItemsCount = _this$props5.totalItemsCount,\n onChange = _this$props5.onChange,\n activeClass = _this$props5.activeClass,\n itemClass = _this$props5.itemClass,\n itemClassFirst = _this$props5.itemClassFirst,\n itemClassPrev = _this$props5.itemClassPrev,\n itemClassNext = _this$props5.itemClassNext,\n itemClassLast = _this$props5.itemClassLast,\n activeLinkClass = _this$props5.activeLinkClass,\n disabledClass = _this$props5.disabledClass,\n hideDisabled = _this$props5.hideDisabled,\n hideNavigation = _this$props5.hideNavigation,\n linkClass = _this$props5.linkClass,\n linkClassFirst = _this$props5.linkClassFirst,\n linkClassPrev = _this$props5.linkClassPrev,\n linkClassNext = _this$props5.linkClassNext,\n linkClassLast = _this$props5.linkClassLast,\n hideFirstLastPages = _this$props5.hideFirstLastPages,\n getPageUrl = _this$props5.getPageUrl;\n var paginationInfo = new _paginator[\"default\"](itemsCountPerPage, pageRangeDisplayed).build(totalItemsCount, activePage);\n\n for (var i = paginationInfo.first_page; i <= paginationInfo.last_page; i++) {\n pages.push(_react[\"default\"].createElement(_Page[\"default\"], {\n isActive: i === activePage,\n key: i,\n href: getPageUrl(i),\n pageNumber: i,\n pageText: i + \"\",\n onClick: onChange,\n itemClass: itemClass,\n linkClass: linkClass,\n activeClass: activeClass,\n activeLinkClass: activeLinkClass,\n ariaLabel: \"Go to page number \".concat(i)\n }));\n }\n\n this.isPrevPageVisible(paginationInfo.has_previous_page) && pages.unshift(_react[\"default\"].createElement(_Page[\"default\"], {\n key: \"prev\" + paginationInfo.previous_page,\n href: getPageUrl(paginationInfo.previous_page),\n pageNumber: paginationInfo.previous_page,\n onClick: onChange,\n pageText: prevPageText,\n isDisabled: !paginationInfo.has_previous_page,\n itemClass: (0, _classnames[\"default\"])(itemClass, itemClassPrev),\n linkClass: (0, _classnames[\"default\"])(linkClass, linkClassPrev),\n disabledClass: disabledClass,\n ariaLabel: \"Go to previous page\"\n }));\n this.isFirstPageVisible(paginationInfo.has_previous_page) && pages.unshift(_react[\"default\"].createElement(_Page[\"default\"], {\n key: \"first\",\n href: getPageUrl(1),\n pageNumber: 1,\n onClick: onChange,\n pageText: firstPageText,\n isDisabled: !paginationInfo.has_previous_page,\n itemClass: (0, _classnames[\"default\"])(itemClass, itemClassFirst),\n linkClass: (0, _classnames[\"default\"])(linkClass, linkClassFirst),\n disabledClass: disabledClass,\n ariaLabel: \"Go to first page\"\n }));\n this.isNextPageVisible(paginationInfo.has_next_page) && pages.push(_react[\"default\"].createElement(_Page[\"default\"], {\n key: \"next\" + paginationInfo.next_page,\n href: getPageUrl(paginationInfo.next_page),\n pageNumber: paginationInfo.next_page,\n onClick: onChange,\n pageText: nextPageText,\n isDisabled: !paginationInfo.has_next_page,\n itemClass: (0, _classnames[\"default\"])(itemClass, itemClassNext),\n linkClass: (0, _classnames[\"default\"])(linkClass, linkClassNext),\n disabledClass: disabledClass,\n ariaLabel: \"Go to next page\"\n }));\n this.isLastPageVisible(paginationInfo.has_next_page) && pages.push(_react[\"default\"].createElement(_Page[\"default\"], {\n key: \"last\",\n href: getPageUrl(paginationInfo.total_pages),\n pageNumber: paginationInfo.total_pages,\n onClick: onChange,\n pageText: lastPageText,\n isDisabled: paginationInfo.current_page === paginationInfo.total_pages,\n itemClass: (0, _classnames[\"default\"])(itemClass, itemClassLast),\n linkClass: (0, _classnames[\"default\"])(linkClass, linkClassLast),\n disabledClass: disabledClass,\n ariaLabel: \"Go to last page\"\n }));\n return pages;\n }\n }, {\n key: \"render\",\n value: function render() {\n var pages = this.buildPages();\n return _react[\"default\"].createElement(\"ul\", {\n className: this.props.innerClass\n }, pages);\n }\n }]);\n\n return Pagination;\n}(_react[\"default\"].Component);\n\nexports[\"default\"] = Pagination;\n\n_defineProperty(Pagination, \"propTypes\", {\n totalItemsCount: _propTypes[\"default\"].number.isRequired,\n onChange: _propTypes[\"default\"].func.isRequired,\n activePage: _propTypes[\"default\"].number,\n itemsCountPerPage: _propTypes[\"default\"].number,\n pageRangeDisplayed: _propTypes[\"default\"].number,\n prevPageText: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].element]),\n nextPageText: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].element]),\n lastPageText: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].element]),\n firstPageText: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].string, _propTypes[\"default\"].element]),\n disabledClass: _propTypes[\"default\"].string,\n hideDisabled: _propTypes[\"default\"].bool,\n hideNavigation: _propTypes[\"default\"].bool,\n innerClass: _propTypes[\"default\"].string,\n itemClass: _propTypes[\"default\"].string,\n itemClassFirst: _propTypes[\"default\"].string,\n itemClassPrev: _propTypes[\"default\"].string,\n itemClassNext: _propTypes[\"default\"].string,\n itemClassLast: _propTypes[\"default\"].string,\n linkClass: _propTypes[\"default\"].string,\n activeClass: _propTypes[\"default\"].string,\n activeLinkClass: _propTypes[\"default\"].string,\n linkClassFirst: _propTypes[\"default\"].string,\n linkClassPrev: _propTypes[\"default\"].string,\n linkClassNext: _propTypes[\"default\"].string,\n linkClassLast: _propTypes[\"default\"].string,\n hideFirstLastPages: _propTypes[\"default\"].bool,\n getPageUrl: _propTypes[\"default\"].func\n});\n\n_defineProperty(Pagination, \"defaultProps\", {\n itemsCountPerPage: 10,\n pageRangeDisplayed: 5,\n activePage: 1,\n prevPageText: \"⟨\",\n firstPageText: \"«\",\n nextPageText: \"⟩\",\n lastPageText: \"»\",\n innerClass: \"pagination\",\n itemClass: undefined,\n linkClass: undefined,\n activeLinkClass: undefined,\n hideFirstLastPages: false,\n getPageUrl: function getPageUrl(i) {\n return \"#\";\n }\n});","var engine = require('../src/store-engine')\n\nvar storages = require('../storages/all')\nvar plugins = [require('../plugins/json2')]\n\nmodule.exports = engine.createStore(storages, plugins)\n","module.exports = json2Plugin\n\nfunction json2Plugin() {\n\trequire('./lib/json2')\n\treturn {}\n}\n","/* eslint-disable */\n\n// json2.js\n// 2016-10-28\n// Public Domain.\n// NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.\n// See http://www.JSON.org/js.html\n// This code should be minified before deployment.\n// See http://javascript.crockford.com/jsmin.html\n\n// USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO\n// NOT CONTROL.\n\n// This file creates a global JSON object containing two methods: stringify\n// and parse. This file provides the ES5 JSON capability to ES3 systems.\n// If a project might run on IE8 or earlier, then this file should be included.\n// This file does nothing on ES5 systems.\n\n// JSON.stringify(value, replacer, space)\n// value any JavaScript value, usually an object or array.\n// replacer an optional parameter that determines how object\n// values are stringified for objects. It can be a\n// function or an array of strings.\n// space an optional parameter that specifies the indentation\n// of nested structures. If it is omitted, the text will\n// be packed without extra whitespace. If it is a number,\n// it will specify the number of spaces to indent at each\n// level. If it is a string (such as \"\\t\" or \" \"),\n// it contains the characters used to indent at each level.\n// This method produces a JSON text from a JavaScript value.\n// When an object value is found, if the object contains a toJSON\n// method, its toJSON method will be called and the result will be\n// stringified. A toJSON method does not serialize: it returns the\n// value represented by the name/value pair that should be serialized,\n// or undefined if nothing should be serialized. The toJSON method\n// will be passed the key associated with the value, and this will be\n// bound to the value.\n\n// For example, this would serialize Dates as ISO strings.\n\n// Date.prototype.toJSON = function (key) {\n// function f(n) {\n// // Format integers to have at least two digits.\n// return (n < 10)\n// ? \"0\" + n\n// : n;\n// }\n// return this.getUTCFullYear() + \"-\" +\n// f(this.getUTCMonth() + 1) + \"-\" +\n// f(this.getUTCDate()) + \"T\" +\n// f(this.getUTCHours()) + \":\" +\n// f(this.getUTCMinutes()) + \":\" +\n// f(this.getUTCSeconds()) + \"Z\";\n// };\n\n// You can provide an optional replacer method. It will be passed the\n// key and value of each member, with this bound to the containing\n// object. The value that is returned from your method will be\n// serialized. If your method returns undefined, then the member will\n// be excluded from the serialization.\n\n// If the replacer parameter is an array of strings, then it will be\n// used to select the members to be serialized. It filters the results\n// such that only members with keys listed in the replacer array are\n// stringified.\n\n// Values that do not have JSON representations, such as undefined or\n// functions, will not be serialized. Such values in objects will be\n// dropped; in arrays they will be replaced with null. You can use\n// a replacer function to replace those with JSON values.\n\n// JSON.stringify(undefined) returns undefined.\n\n// The optional space parameter produces a stringification of the\n// value that is filled with line breaks and indentation to make it\n// easier to read.\n\n// If the space parameter is a non-empty string, then that string will\n// be used for indentation. If the space parameter is a number, then\n// the indentation will be that many spaces.\n\n// Example:\n\n// text = JSON.stringify([\"e\", {pluribus: \"unum\"}]);\n// // text is '[\"e\",{\"pluribus\":\"unum\"}]'\n\n// text = JSON.stringify([\"e\", {pluribus: \"unum\"}], null, \"\\t\");\n// // text is '[\\n\\t\"e\",\\n\\t{\\n\\t\\t\"pluribus\": \"unum\"\\n\\t}\\n]'\n\n// text = JSON.stringify([new Date()], function (key, value) {\n// return this[key] instanceof Date\n// ? \"Date(\" + this[key] + \")\"\n// : value;\n// });\n// // text is '[\"Date(---current time---)\"]'\n\n// JSON.parse(text, reviver)\n// This method parses a JSON text to produce an object or array.\n// It can throw a SyntaxError exception.\n\n// The optional reviver parameter is a function that can filter and\n// transform the results. It receives each of the keys and values,\n// and its return value is used instead of the original value.\n// If it returns what it received, then the structure is not modified.\n// If it returns undefined then the member is deleted.\n\n// Example:\n\n// // Parse the text. Values that look like ISO date strings will\n// // be converted to Date objects.\n\n// myData = JSON.parse(text, function (key, value) {\n// var a;\n// if (typeof value === \"string\") {\n// a =\n// /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:\\.\\d*)?)Z$/.exec(value);\n// if (a) {\n// return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],\n// +a[5], +a[6]));\n// }\n// }\n// return value;\n// });\n\n// myData = JSON.parse('[\"Date(09/09/2001)\"]', function (key, value) {\n// var d;\n// if (typeof value === \"string\" &&\n// value.slice(0, 5) === \"Date(\" &&\n// value.slice(-1) === \")\") {\n// d = new Date(value.slice(5, -1));\n// if (d) {\n// return d;\n// }\n// }\n// return value;\n// });\n\n// This is a reference implementation. You are free to copy, modify, or\n// redistribute.\n\n/*jslint\n eval, for, this\n*/\n\n/*property\n JSON, apply, call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,\n getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,\n lastIndex, length, parse, prototype, push, replace, slice, stringify,\n test, toJSON, toString, valueOf\n*/\n\n\n// Create a JSON object only if one does not already exist. We create the\n// methods in a closure to avoid creating global variables.\n\nif (typeof JSON !== \"object\") {\n JSON = {};\n}\n\n(function () {\n \"use strict\";\n\n var rx_one = /^[\\],:{}\\s]*$/;\n var rx_two = /\\\\(?:[\"\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g;\n var rx_three = /\"[^\"\\\\\\n\\r]*\"|true|false|null|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?/g;\n var rx_four = /(?:^|:|,)(?:\\s*\\[)+/g;\n var rx_escapable = /[\\\\\"\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g;\n var rx_dangerous = /[\\u0000\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g;\n\n function f(n) {\n // Format integers to have at least two digits.\n return n < 10\n ? \"0\" + n\n : n;\n }\n\n function this_value() {\n return this.valueOf();\n }\n\n if (typeof Date.prototype.toJSON !== \"function\") {\n\n Date.prototype.toJSON = function () {\n\n return isFinite(this.valueOf())\n ? this.getUTCFullYear() + \"-\" +\n f(this.getUTCMonth() + 1) + \"-\" +\n f(this.getUTCDate()) + \"T\" +\n f(this.getUTCHours()) + \":\" +\n f(this.getUTCMinutes()) + \":\" +\n f(this.getUTCSeconds()) + \"Z\"\n : null;\n };\n\n Boolean.prototype.toJSON = this_value;\n Number.prototype.toJSON = this_value;\n String.prototype.toJSON = this_value;\n }\n\n var gap;\n var indent;\n var meta;\n var rep;\n\n\n function quote(string) {\n\n// If the string contains no control characters, no quote characters, and no\n// backslash characters, then we can safely slap some quotes around it.\n// Otherwise we must also replace the offending characters with safe escape\n// sequences.\n\n rx_escapable.lastIndex = 0;\n return rx_escapable.test(string)\n ? \"\\\"\" + string.replace(rx_escapable, function (a) {\n var c = meta[a];\n return typeof c === \"string\"\n ? c\n : \"\\\\u\" + (\"0000\" + a.charCodeAt(0).toString(16)).slice(-4);\n }) + \"\\\"\"\n : \"\\\"\" + string + \"\\\"\";\n }\n\n\n function str(key, holder) {\n\n// Produce a string from holder[key].\n\n var i; // The loop counter.\n var k; // The member key.\n var v; // The member value.\n var length;\n var mind = gap;\n var partial;\n var value = holder[key];\n\n// If the value has a toJSON method, call it to obtain a replacement value.\n\n if (value && typeof value === \"object\" &&\n typeof value.toJSON === \"function\") {\n value = value.toJSON(key);\n }\n\n// If we were called with a replacer function, then call the replacer to\n// obtain a replacement value.\n\n if (typeof rep === \"function\") {\n value = rep.call(holder, key, value);\n }\n\n// What happens next depends on the value's type.\n\n switch (typeof value) {\n case \"string\":\n return quote(value);\n\n case \"number\":\n\n// JSON numbers must be finite. Encode non-finite numbers as null.\n\n return isFinite(value)\n ? String(value)\n : \"null\";\n\n case \"boolean\":\n case \"null\":\n\n// If the value is a boolean or null, convert it to a string. Note:\n// typeof null does not produce \"null\". The case is included here in\n// the remote chance that this gets fixed someday.\n\n return String(value);\n\n// If the type is \"object\", we might be dealing with an object or an array or\n// null.\n\n case \"object\":\n\n// Due to a specification blunder in ECMAScript, typeof null is \"object\",\n// so watch out for that case.\n\n if (!value) {\n return \"null\";\n }\n\n// Make an array to hold the partial results of stringifying this object value.\n\n gap += indent;\n partial = [];\n\n// Is the value an array?\n\n if (Object.prototype.toString.apply(value) === \"[object Array]\") {\n\n// The value is an array. Stringify every element. Use null as a placeholder\n// for non-JSON values.\n\n length = value.length;\n for (i = 0; i < length; i += 1) {\n partial[i] = str(i, value) || \"null\";\n }\n\n// Join all of the elements together, separated with commas, and wrap them in\n// brackets.\n\n v = partial.length === 0\n ? \"[]\"\n : gap\n ? \"[\\n\" + gap + partial.join(\",\\n\" + gap) + \"\\n\" + mind + \"]\"\n : \"[\" + partial.join(\",\") + \"]\";\n gap = mind;\n return v;\n }\n\n// If the replacer is an array, use it to select the members to be stringified.\n\n if (rep && typeof rep === \"object\") {\n length = rep.length;\n for (i = 0; i < length; i += 1) {\n if (typeof rep[i] === \"string\") {\n k = rep[i];\n v = str(k, value);\n if (v) {\n partial.push(quote(k) + (\n gap\n ? \": \"\n : \":\"\n ) + v);\n }\n }\n }\n } else {\n\n// Otherwise, iterate through all of the keys in the object.\n\n for (k in value) {\n if (Object.prototype.hasOwnProperty.call(value, k)) {\n v = str(k, value);\n if (v) {\n partial.push(quote(k) + (\n gap\n ? \": \"\n : \":\"\n ) + v);\n }\n }\n }\n }\n\n// Join all of the member texts together, separated with commas,\n// and wrap them in braces.\n\n v = partial.length === 0\n ? \"{}\"\n : gap\n ? \"{\\n\" + gap + partial.join(\",\\n\" + gap) + \"\\n\" + mind + \"}\"\n : \"{\" + partial.join(\",\") + \"}\";\n gap = mind;\n return v;\n }\n }\n\n// If the JSON object does not yet have a stringify method, give it one.\n\n if (typeof JSON.stringify !== \"function\") {\n meta = { // table of character substitutions\n \"\\b\": \"\\\\b\",\n \"\\t\": \"\\\\t\",\n \"\\n\": \"\\\\n\",\n \"\\f\": \"\\\\f\",\n \"\\r\": \"\\\\r\",\n \"\\\"\": \"\\\\\\\"\",\n \"\\\\\": \"\\\\\\\\\"\n };\n JSON.stringify = function (value, replacer, space) {\n\n// The stringify method takes a value and an optional replacer, and an optional\n// space parameter, and returns a JSON text. The replacer can be a function\n// that can replace values, or an array of strings that will select the keys.\n// A default replacer method can be provided. Use of the space parameter can\n// produce text that is more easily readable.\n\n var i;\n gap = \"\";\n indent = \"\";\n\n// If the space parameter is a number, make an indent string containing that\n// many spaces.\n\n if (typeof space === \"number\") {\n for (i = 0; i < space; i += 1) {\n indent += \" \";\n }\n\n// If the space parameter is a string, it will be used as the indent string.\n\n } else if (typeof space === \"string\") {\n indent = space;\n }\n\n// If there is a replacer, it must be a function or an array.\n// Otherwise, throw an error.\n\n rep = replacer;\n if (replacer && typeof replacer !== \"function\" &&\n (typeof replacer !== \"object\" ||\n typeof replacer.length !== \"number\")) {\n throw new Error(\"JSON.stringify\");\n }\n\n// Make a fake root object containing our value under the key of \"\".\n// Return the result of stringifying the value.\n\n return str(\"\", {\"\": value});\n };\n }\n\n\n// If the JSON object does not yet have a parse method, give it one.\n\n if (typeof JSON.parse !== \"function\") {\n JSON.parse = function (text, reviver) {\n\n// The parse method takes a text and an optional reviver function, and returns\n// a JavaScript value if the text is a valid JSON text.\n\n var j;\n\n function walk(holder, key) {\n\n// The walk method is used to recursively walk the resulting structure so\n// that modifications can be made.\n\n var k;\n var v;\n var value = holder[key];\n if (value && typeof value === \"object\") {\n for (k in value) {\n if (Object.prototype.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n }\n\n\n// Parsing happens in four stages. In the first stage, we replace certain\n// Unicode characters with escape sequences. JavaScript handles many characters\n// incorrectly, either silently deleting them, or treating them as line endings.\n\n text = String(text);\n rx_dangerous.lastIndex = 0;\n if (rx_dangerous.test(text)) {\n text = text.replace(rx_dangerous, function (a) {\n return \"\\\\u\" +\n (\"0000\" + a.charCodeAt(0).toString(16)).slice(-4);\n });\n }\n\n// In the second stage, we run the text against regular expressions that look\n// for non-JSON patterns. We are especially concerned with \"()\" and \"new\"\n// because they can cause invocation, and \"=\" because it can cause mutation.\n// But just to be safe, we want to reject all unexpected forms.\n\n// We split the second stage into 4 regexp operations in order to work around\n// crippling inefficiencies in IE's and Safari's regexp engines. First we\n// replace the JSON backslash pairs with \"@\" (a non-JSON character). Second, we\n// replace all simple value tokens with \"]\" characters. Third, we delete all\n// open brackets that follow a colon or comma or that begin the text. Finally,\n// we look to see that the remaining characters are only whitespace or \"]\" or\n// \",\" or \":\" or \"{\" or \"}\". If that is so, then the text is safe for eval.\n\n if (\n rx_one.test(\n text\n .replace(rx_two, \"@\")\n .replace(rx_three, \"]\")\n .replace(rx_four, \"\")\n )\n ) {\n\n// In the third stage we use the eval function to compile the text into a\n// JavaScript structure. The \"{\" operator is subject to a syntactic ambiguity\n// in JavaScript: it can begin a block or an object literal. We wrap the text\n// in parens to eliminate the ambiguity.\n\n j = eval(\"(\" + text + \")\");\n\n// In the optional fourth stage, we recursively walk the new structure, passing\n// each name/value pair to a reviver function for possible transformation.\n\n return (typeof reviver === \"function\")\n ? walk({\"\": j}, \"\")\n : j;\n }\n\n// If the text is not JSON parseable, then a SyntaxError is thrown.\n\n throw new SyntaxError(\"JSON.parse\");\n };\n }\n}());","var util = require('./util')\nvar slice = util.slice\nvar pluck = util.pluck\nvar each = util.each\nvar bind = util.bind\nvar create = util.create\nvar isList = util.isList\nvar isFunction = util.isFunction\nvar isObject = util.isObject\n\nmodule.exports = {\n\tcreateStore: createStore\n}\n\nvar storeAPI = {\n\tversion: '2.0.12',\n\tenabled: false,\n\t\n\t// get returns the value of the given key. If that value\n\t// is undefined, it returns optionalDefaultValue instead.\n\tget: function(key, optionalDefaultValue) {\n\t\tvar data = this.storage.read(this._namespacePrefix + key)\n\t\treturn this._deserialize(data, optionalDefaultValue)\n\t},\n\n\t// set will store the given value at key and returns value.\n\t// Calling set with value === undefined is equivalent to calling remove.\n\tset: function(key, value) {\n\t\tif (value === undefined) {\n\t\t\treturn this.remove(key)\n\t\t}\n\t\tthis.storage.write(this._namespacePrefix + key, this._serialize(value))\n\t\treturn value\n\t},\n\n\t// remove deletes the key and value stored at the given key.\n\tremove: function(key) {\n\t\tthis.storage.remove(this._namespacePrefix + key)\n\t},\n\n\t// each will call the given callback once for each key-value pair\n\t// in this store.\n\teach: function(callback) {\n\t\tvar self = this\n\t\tthis.storage.each(function(val, namespacedKey) {\n\t\t\tcallback.call(self, self._deserialize(val), (namespacedKey || '').replace(self._namespaceRegexp, ''))\n\t\t})\n\t},\n\n\t// clearAll will remove all the stored key-value pairs in this store.\n\tclearAll: function() {\n\t\tthis.storage.clearAll()\n\t},\n\n\t// additional functionality that can't live in plugins\n\t// ---------------------------------------------------\n\n\t// hasNamespace returns true if this store instance has the given namespace.\n\thasNamespace: function(namespace) {\n\t\treturn (this._namespacePrefix == '__storejs_'+namespace+'_')\n\t},\n\n\t// createStore creates a store.js instance with the first\n\t// functioning storage in the list of storage candidates,\n\t// and applies the the given mixins to the instance.\n\tcreateStore: function() {\n\t\treturn createStore.apply(this, arguments)\n\t},\n\t\n\taddPlugin: function(plugin) {\n\t\tthis._addPlugin(plugin)\n\t},\n\t\n\tnamespace: function(namespace) {\n\t\treturn createStore(this.storage, this.plugins, namespace)\n\t}\n}\n\nfunction _warn() {\n\tvar _console = (typeof console == 'undefined' ? null : console)\n\tif (!_console) { return }\n\tvar fn = (_console.warn ? _console.warn : _console.log)\n\tfn.apply(_console, arguments)\n}\n\nfunction createStore(storages, plugins, namespace) {\n\tif (!namespace) {\n\t\tnamespace = ''\n\t}\n\tif (storages && !isList(storages)) {\n\t\tstorages = [storages]\n\t}\n\tif (plugins && !isList(plugins)) {\n\t\tplugins = [plugins]\n\t}\n\n\tvar namespacePrefix = (namespace ? '__storejs_'+namespace+'_' : '')\n\tvar namespaceRegexp = (namespace ? new RegExp('^'+namespacePrefix) : null)\n\tvar legalNamespaces = /^[a-zA-Z0-9_\\-]*$/ // alpha-numeric + underscore and dash\n\tif (!legalNamespaces.test(namespace)) {\n\t\tthrow new Error('store.js namespaces can only have alphanumerics + underscores and dashes')\n\t}\n\t\n\tvar _privateStoreProps = {\n\t\t_namespacePrefix: namespacePrefix,\n\t\t_namespaceRegexp: namespaceRegexp,\n\n\t\t_testStorage: function(storage) {\n\t\t\ttry {\n\t\t\t\tvar testStr = '__storejs__test__'\n\t\t\t\tstorage.write(testStr, testStr)\n\t\t\t\tvar ok = (storage.read(testStr) === testStr)\n\t\t\t\tstorage.remove(testStr)\n\t\t\t\treturn ok\n\t\t\t} catch(e) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\t_assignPluginFnProp: function(pluginFnProp, propName) {\n\t\t\tvar oldFn = this[propName]\n\t\t\tthis[propName] = function pluginFn() {\n\t\t\t\tvar args = slice(arguments, 0)\n\t\t\t\tvar self = this\n\n\t\t\t\t// super_fn calls the old function which was overwritten by\n\t\t\t\t// this mixin.\n\t\t\t\tfunction super_fn() {\n\t\t\t\t\tif (!oldFn) { return }\n\t\t\t\t\teach(arguments, function(arg, i) {\n\t\t\t\t\t\targs[i] = arg\n\t\t\t\t\t})\n\t\t\t\t\treturn oldFn.apply(self, args)\n\t\t\t\t}\n\n\t\t\t\t// Give mixing function access to super_fn by prefixing all mixin function\n\t\t\t\t// arguments with super_fn.\n\t\t\t\tvar newFnArgs = [super_fn].concat(args)\n\n\t\t\t\treturn pluginFnProp.apply(self, newFnArgs)\n\t\t\t}\n\t\t},\n\n\t\t_serialize: function(obj) {\n\t\t\treturn JSON.stringify(obj)\n\t\t},\n\n\t\t_deserialize: function(strVal, defaultVal) {\n\t\t\tif (!strVal) { return defaultVal }\n\t\t\t// It is possible that a raw string value has been previously stored\n\t\t\t// in a storage without using store.js, meaning it will be a raw\n\t\t\t// string value instead of a JSON serialized string. By defaulting\n\t\t\t// to the raw string value in case of a JSON parse error, we allow\n\t\t\t// for past stored values to be forwards-compatible with store.js\n\t\t\tvar val = ''\n\t\t\ttry { val = JSON.parse(strVal) }\n\t\t\tcatch(e) { val = strVal }\n\n\t\t\treturn (val !== undefined ? val : defaultVal)\n\t\t},\n\t\t\n\t\t_addStorage: function(storage) {\n\t\t\tif (this.enabled) { return }\n\t\t\tif (this._testStorage(storage)) {\n\t\t\t\tthis.storage = storage\n\t\t\t\tthis.enabled = true\n\t\t\t}\n\t\t},\n\n\t\t_addPlugin: function(plugin) {\n\t\t\tvar self = this\n\n\t\t\t// If the plugin is an array, then add all plugins in the array.\n\t\t\t// This allows for a plugin to depend on other plugins.\n\t\t\tif (isList(plugin)) {\n\t\t\t\teach(plugin, function(plugin) {\n\t\t\t\t\tself._addPlugin(plugin)\n\t\t\t\t})\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Keep track of all plugins we've seen so far, so that we\n\t\t\t// don't add any of them twice.\n\t\t\tvar seenPlugin = pluck(this.plugins, function(seenPlugin) {\n\t\t\t\treturn (plugin === seenPlugin)\n\t\t\t})\n\t\t\tif (seenPlugin) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.plugins.push(plugin)\n\n\t\t\t// Check that the plugin is properly formed\n\t\t\tif (!isFunction(plugin)) {\n\t\t\t\tthrow new Error('Plugins must be function values that return objects')\n\t\t\t}\n\n\t\t\tvar pluginProperties = plugin.call(this)\n\t\t\tif (!isObject(pluginProperties)) {\n\t\t\t\tthrow new Error('Plugins must return an object of function properties')\n\t\t\t}\n\n\t\t\t// Add the plugin function properties to this store instance.\n\t\t\teach(pluginProperties, function(pluginFnProp, propName) {\n\t\t\t\tif (!isFunction(pluginFnProp)) {\n\t\t\t\t\tthrow new Error('Bad plugin property: '+propName+' from plugin '+plugin.name+'. Plugins should only return functions.')\n\t\t\t\t}\n\t\t\t\tself._assignPluginFnProp(pluginFnProp, propName)\n\t\t\t})\n\t\t},\n\t\t\n\t\t// Put deprecated properties in the private API, so as to not expose it to accidential\n\t\t// discovery through inspection of the store object.\n\t\t\n\t\t// Deprecated: addStorage\n\t\taddStorage: function(storage) {\n\t\t\t_warn('store.addStorage(storage) is deprecated. Use createStore([storages])')\n\t\t\tthis._addStorage(storage)\n\t\t}\n\t}\n\n\tvar store = create(_privateStoreProps, storeAPI, {\n\t\tplugins: []\n\t})\n\tstore.raw = {}\n\teach(store, function(prop, propName) {\n\t\tif (isFunction(prop)) {\n\t\t\tstore.raw[propName] = bind(store, prop)\t\t\t\n\t\t}\n\t})\n\teach(storages, function(storage) {\n\t\tstore._addStorage(storage)\n\t})\n\teach(plugins, function(plugin) {\n\t\tstore._addPlugin(plugin)\n\t})\n\treturn store\n}\n","var assign = make_assign()\nvar create = make_create()\nvar trim = make_trim()\nvar Global = (typeof window !== 'undefined' ? window : global)\n\nmodule.exports = {\n\tassign: assign,\n\tcreate: create,\n\ttrim: trim,\n\tbind: bind,\n\tslice: slice,\n\teach: each,\n\tmap: map,\n\tpluck: pluck,\n\tisList: isList,\n\tisFunction: isFunction,\n\tisObject: isObject,\n\tGlobal: Global\n}\n\nfunction make_assign() {\n\tif (Object.assign) {\n\t\treturn Object.assign\n\t} else {\n\t\treturn function shimAssign(obj, props1, props2, etc) {\n\t\t\tfor (var i = 1; i < arguments.length; i++) {\n\t\t\t\teach(Object(arguments[i]), function(val, key) {\n\t\t\t\t\tobj[key] = val\n\t\t\t\t})\n\t\t\t}\t\t\t\n\t\t\treturn obj\n\t\t}\n\t}\n}\n\nfunction make_create() {\n\tif (Object.create) {\n\t\treturn function create(obj, assignProps1, assignProps2, etc) {\n\t\t\tvar assignArgsList = slice(arguments, 1)\n\t\t\treturn assign.apply(this, [Object.create(obj)].concat(assignArgsList))\n\t\t}\n\t} else {\n\t\tfunction F() {} // eslint-disable-line no-inner-declarations\n\t\treturn function create(obj, assignProps1, assignProps2, etc) {\n\t\t\tvar assignArgsList = slice(arguments, 1)\n\t\t\tF.prototype = obj\n\t\t\treturn assign.apply(this, [new F()].concat(assignArgsList))\n\t\t}\n\t}\n}\n\nfunction make_trim() {\n\tif (String.prototype.trim) {\n\t\treturn function trim(str) {\n\t\t\treturn String.prototype.trim.call(str)\n\t\t}\n\t} else {\n\t\treturn function trim(str) {\n\t\t\treturn str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '')\n\t\t}\n\t}\n}\n\nfunction bind(obj, fn) {\n\treturn function() {\n\t\treturn fn.apply(obj, Array.prototype.slice.call(arguments, 0))\n\t}\n}\n\nfunction slice(arr, index) {\n\treturn Array.prototype.slice.call(arr, index || 0)\n}\n\nfunction each(obj, fn) {\n\tpluck(obj, function(val, key) {\n\t\tfn(val, key)\n\t\treturn false\n\t})\n}\n\nfunction map(obj, fn) {\n\tvar res = (isList(obj) ? [] : {})\n\tpluck(obj, function(v, k) {\n\t\tres[k] = fn(v, k)\n\t\treturn false\n\t})\n\treturn res\n}\n\nfunction pluck(obj, fn) {\n\tif (isList(obj)) {\n\t\tfor (var i=0; i= 0; i--) {\n\t\tif (!trim(cookies[i])) {\n\t\t\tcontinue\n\t\t}\n\t\tvar kvp = cookies[i].split('=')\n\t\tvar key = unescape(kvp[0])\n\t\tvar val = unescape(kvp[1])\n\t\tcallback(val, key)\n\t}\n}\n\nfunction write(key, data) {\n\tif(!key) { return }\n\tdoc.cookie = escape(key) + \"=\" + escape(data) + \"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/\"\n}\n\nfunction remove(key) {\n\tif (!key || !_has(key)) {\n\t\treturn\n\t}\n\tdoc.cookie = escape(key) + \"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/\"\n}\n\nfunction clearAll() {\n\teach(function(_, key) {\n\t\tremove(key)\n\t})\n}\n\nfunction _has(key) {\n\treturn (new RegExp(\"(?:^|;\\\\s*)\" + escape(key).replace(/[\\-\\.\\+\\*]/g, \"\\\\$&\") + \"\\\\s*\\\\=\")).test(doc.cookie)\n}\n","var util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'localStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nfunction localStorage() {\n\treturn Global.localStorage\n}\n\nfunction read(key) {\n\treturn localStorage().getItem(key)\n}\n\nfunction write(key, data) {\n\treturn localStorage().setItem(key, data)\n}\n\nfunction each(fn) {\n\tfor (var i = localStorage().length - 1; i >= 0; i--) {\n\t\tvar key = localStorage().key(i)\n\t\tfn(read(key), key)\n\t}\n}\n\nfunction remove(key) {\n\treturn localStorage().removeItem(key)\n}\n\nfunction clearAll() {\n\treturn localStorage().clear()\n}\n","// memoryStorage is a useful last fallback to ensure that the store\n// is functions (meaning store.get(), store.set(), etc will all function).\n// However, stored values will not persist when the browser navigates to\n// a new page or reloads the current page.\n\nmodule.exports = {\n\tname: 'memoryStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar memoryStorage = {}\n\nfunction read(key) {\n\treturn memoryStorage[key]\n}\n\nfunction write(key, data) {\n\tmemoryStorage[key] = data\n}\n\nfunction each(callback) {\n\tfor (var key in memoryStorage) {\n\t\tif (memoryStorage.hasOwnProperty(key)) {\n\t\t\tcallback(memoryStorage[key], key)\n\t\t}\n\t}\n}\n\nfunction remove(key) {\n\tdelete memoryStorage[key]\n}\n\nfunction clearAll(key) {\n\tmemoryStorage = {}\n}\n","// oldFF-globalStorage provides storage for Firefox\n// versions 6 and 7, where no localStorage, etc\n// is available.\n\nvar util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'oldFF-globalStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar globalStorage = Global.globalStorage\n\nfunction read(key) {\n\treturn globalStorage[key]\n}\n\nfunction write(key, data) {\n\tglobalStorage[key] = data\n}\n\nfunction each(fn) {\n\tfor (var i = globalStorage.length - 1; i >= 0; i--) {\n\t\tvar key = globalStorage.key(i)\n\t\tfn(globalStorage[key], key)\n\t}\n}\n\nfunction remove(key) {\n\treturn globalStorage.removeItem(key)\n}\n\nfunction clearAll() {\n\teach(function(key, _) {\n\t\tdelete globalStorage[key]\n\t})\n}\n","// oldIE-userDataStorage provides storage for Internet Explorer\n// versions 6 and 7, where no localStorage, sessionStorage, etc\n// is available.\n\nvar util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'oldIE-userDataStorage',\n\twrite: write,\n\tread: read,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll,\n}\n\nvar storageName = 'storejs'\nvar doc = Global.document\nvar _withStorageEl = _makeIEStorageElFunction()\nvar disable = (Global.navigator ? Global.navigator.userAgent : '').match(/ (MSIE 8|MSIE 9|MSIE 10)\\./) // MSIE 9.x, MSIE 10.x\n\nfunction write(unfixedKey, data) {\n\tif (disable) { return }\n\tvar fixedKey = fixKey(unfixedKey)\n\t_withStorageEl(function(storageEl) {\n\t\tstorageEl.setAttribute(fixedKey, data)\n\t\tstorageEl.save(storageName)\n\t})\n}\n\nfunction read(unfixedKey) {\n\tif (disable) { return }\n\tvar fixedKey = fixKey(unfixedKey)\n\tvar res = null\n\t_withStorageEl(function(storageEl) {\n\t\tres = storageEl.getAttribute(fixedKey)\n\t})\n\treturn res\n}\n\nfunction each(callback) {\n\t_withStorageEl(function(storageEl) {\n\t\tvar attributes = storageEl.XMLDocument.documentElement.attributes\n\t\tfor (var i=attributes.length-1; i>=0; i--) {\n\t\t\tvar attr = attributes[i]\n\t\t\tcallback(storageEl.getAttribute(attr.name), attr.name)\n\t\t}\n\t})\n}\n\nfunction remove(unfixedKey) {\n\tvar fixedKey = fixKey(unfixedKey)\n\t_withStorageEl(function(storageEl) {\n\t\tstorageEl.removeAttribute(fixedKey)\n\t\tstorageEl.save(storageName)\n\t})\n}\n\nfunction clearAll() {\n\t_withStorageEl(function(storageEl) {\n\t\tvar attributes = storageEl.XMLDocument.documentElement.attributes\n\t\tstorageEl.load(storageName)\n\t\tfor (var i=attributes.length-1; i>=0; i--) {\n\t\t\tstorageEl.removeAttribute(attributes[i].name)\n\t\t}\n\t\tstorageEl.save(storageName)\n\t})\n}\n\n// Helpers\n//////////\n\n// In IE7, keys cannot start with a digit or contain certain chars.\n// See https://github.com/marcuswestin/store.js/issues/40\n// See https://github.com/marcuswestin/store.js/issues/83\nvar forbiddenCharsRegex = new RegExp(\"[!\\\"#$%&'()*+,/\\\\\\\\:;<=>?@[\\\\]^`{|}~]\", \"g\")\nfunction fixKey(key) {\n\treturn key.replace(/^\\d/, '___$&').replace(forbiddenCharsRegex, '___')\n}\n\nfunction _makeIEStorageElFunction() {\n\tif (!doc || !doc.documentElement || !doc.documentElement.addBehavior) {\n\t\treturn null\n\t}\n\tvar scriptTag = 'script',\n\t\tstorageOwner,\n\t\tstorageContainer,\n\t\tstorageEl\n\n\t// Since #userData storage applies only to specific paths, we need to\n\t// somehow link our data to a specific path. We choose /favicon.ico\n\t// as a pretty safe option, since all browsers already make a request to\n\t// this URL anyway and being a 404 will not hurt us here. We wrap an\n\t// iframe pointing to the favicon in an ActiveXObject(htmlfile) object\n\t// (see: http://msdn.microsoft.com/en-us/library/aa752574(v=VS.85).aspx)\n\t// since the iframe access rules appear to allow direct access and\n\t// manipulation of the document element, even for a 404 page. This\n\t// document can be used instead of the current document (which would\n\t// have been limited to the current path) to perform #userData storage.\n\ttry {\n\t\t/* global ActiveXObject */\n\t\tstorageContainer = new ActiveXObject('htmlfile')\n\t\tstorageContainer.open()\n\t\tstorageContainer.write('<'+scriptTag+'>document.w=window')\n\t\tstorageContainer.close()\n\t\tstorageOwner = storageContainer.w.frames[0].document\n\t\tstorageEl = storageOwner.createElement('div')\n\t} catch(e) {\n\t\t// somehow ActiveXObject instantiation failed (perhaps some special\n\t\t// security settings or otherwse), fall back to per-path storage\n\t\tstorageEl = doc.createElement('div')\n\t\tstorageOwner = doc.body\n\t}\n\n\treturn function(storeFunction) {\n\t\tvar args = [].slice.call(arguments, 0)\n\t\targs.unshift(storageEl)\n\t\t// See http://msdn.microsoft.com/en-us/library/ms531081(v=VS.85).aspx\n\t\t// and http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).aspx\n\t\tstorageOwner.appendChild(storageEl)\n\t\tstorageEl.addBehavior('#default#userData')\n\t\tstorageEl.load(storageName)\n\t\tstoreFunction.apply(this, args)\n\t\tstorageOwner.removeChild(storageEl)\n\t\treturn\n\t}\n}\n","var util = require('../src/util')\nvar Global = util.Global\n\nmodule.exports = {\n\tname: 'sessionStorage',\n\tread: read,\n\twrite: write,\n\teach: each,\n\tremove: remove,\n\tclearAll: clearAll\n}\n\nfunction sessionStorage() {\n\treturn Global.sessionStorage\n}\n\nfunction read(key) {\n\treturn sessionStorage().getItem(key)\n}\n\nfunction write(key, data) {\n\treturn sessionStorage().setItem(key, data)\n}\n\nfunction each(fn) {\n\tfor (var i = sessionStorage().length - 1; i >= 0; i--) {\n\t\tvar key = sessionStorage().key(i)\n\t\tfn(read(key), key)\n\t}\n}\n\nfunction remove(key) {\n\treturn sessionStorage().removeItem(key)\n}\n\nfunction clearAll() {\n\treturn sessionStorage().clear()\n}\n","/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return\n }\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob: 'FileReader' in self && 'Blob' in self && (function() {\n try {\n new Blob()\n return true\n } catch(e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n }\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isDataView = function(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n }\n\n var isArrayBufferView = ArrayBuffer.isView || function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n }\n\n function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue+','+value : value\n }\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n }\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n }\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n }\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n }\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n }\n\n Headers.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) { items.push(name) })\n return iteratorFor(items)\n }\n\n Headers.prototype.values = function() {\n var items = []\n this.forEach(function(value) { items.push(value) })\n return iteratorFor(items)\n }\n\n Headers.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) { items.push([name, value]) })\n return iteratorFor(items)\n }\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n }\n\n function Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n throw new Error('unsupported BodyInit type')\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return (methods.indexOf(upcased) > -1) ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'omit'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n }\n\n Request.prototype.clone = function() {\n return new Request(this, { body: this._bodyInit })\n }\n\n function decode(body) {\n var form = new FormData()\n body.trim().split('&').forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n }\n\n Body.call(Request.prototype)\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = 'statusText' in options ? options.statusText : 'OK'\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n }\n\n Body.call(Response.prototype)\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n }\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n }\n\n var redirectStatuses = [301, 302, 303, 307, 308]\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n }\n\n self.Headers = Headers\n self.Request = Request\n self.Response = Response\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n var xhr = new XMLHttpRequest()\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n resolve(new Response(body, options))\n }\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.open(request.method, request.url, true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob'\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n }\n self.fetch.polyfill = true\n})(typeof self !== 'undefined' ? self : this);\n","import PropTypes from 'prop-types';\n\nimport day from 'dayjs';\nimport classNames from 'classnames';\n\nimport RawHtml from '../RawHtml';\n\nconst ArticleCard = (props) => {\n const {\n item,\n large,\n dateFormat,\n hideBorder,\n actionButton\n } = props;\n\n const formatDate = (date) =>\n dateFormat === 'year'\n ? day(date).format('YYYY')\n : day(date).format('DD MMM, YYYY');\n\n const magazine = item.customFields.magazineFields;\n\n const cardClasses = classNames('ArticleCard', {\n 'ArticleCard--HasImage': !!item.image,\n 'ArticleCard--Large': large,\n 'ArticleCard--HideBorder': hideBorder,\n 'ArticleCard--HasActionButton': actionButton\n });\n\n return (\n
\n {item.image &&\n
\n \n \n \n
\n }\n
\n
\n

\n \n \n {item.title}\n \n \n

\n
\n \n {item.customFields.shortVersion || item.text}\n \n
\n
\n \n \n {item.author}\n \n \n {item.category &&\n \n \n {item.category}\n \n \n }\n {magazine && magazine.issue && magazine.year && magazine.link ? (\n \n \n {magazine.year}\n \n \n {magazine.issue}\n \n \n ) : (\n \n {formatDate(item.date)}\n \n )}\n
\n
\n {actionButton &&\n
\n {actionButton}\n
\n }\n
\n
\n );\n};\n\nArticleCard.propTypes = {\n item: PropTypes.object,\n large: PropTypes.bool,\n dateFormat: PropTypes.oneOf(['year', 'full']),\n hideBorder: PropTypes.bool,\n actionButton: PropTypes.element\n};\n\nArticleCard.defaultProps = {\n item: {},\n large: false,\n dateFormat: 'year',\n hideBorder: false,\n actionButton: null\n}\n\nexport default ArticleCard;\n","import ArticleCard from './ArticleCard';\n\nexport default ArticleCard;\n","import classNames from 'classnames';\n\nimport { useOutsideClick } from '../../hooks';\nimport { useBookmarksStateContext } from '../state';\n\nconst BookmarkButton = ({ bookmarkId }) => {\n const [removeActive, setRemoveActive] = React.useState(false);\n const { actions } = useBookmarksStateContext();\n\n const buttonRef = React.useRef();\n\n useOutsideClick(() => {\n setRemoveActive(false);\n }, removeActive, buttonRef, 'BookmarkButton__Button');\n\n const handleClick = (e) => {\n if(removeActive) {\n actions.removeBookmark(bookmarkId);\n } else {\n setRemoveActive(true);\n }\n };\n\n const buttonClasses = classNames('BookmarkButton__Button', {\n 'BookmarkButton__Button--Active': removeActive\n });\n\n return (\n
\n \n Ta bort\n \n
\n );\n}\n\nexport default BookmarkButton;\n","import BookmarkButton from './BookmarkButton';\n\nexport default BookmarkButton;\n","import PropTypes from 'prop-types';\n\nimport ArticleCard from '../../ArticleCard';\nimport PodcastCard from '../../PodcastCard';\nimport TvShowCard from '../../TvShowCard';\n\nimport BookmarkButton from '../BookmarkButton';\n\nconst BookmarksList = ({ heading, items, type }) => {\n let Card;\n\n switch(type) {\n case 'tvshow':\n Card = TvShowCard;\n break;\n case 'podcast':\n Card = PodcastCard;\n break;\n case 'article':\n case 'commentArticle':\n default:\n Card = ArticleCard;\n break;\n }\n\n if(items.length === 0) {\n return null;\n }\n\n return (\n
\n

\n {heading}\n

\n\n
\n {items.map((item, i) => (\n
\n \n }\n />\n
\n ))}\n
\n\n
\n );\n};\n\nBookmarksList.propTypes = {\n heading: PropTypes.string,\n items: PropTypes.array,\n type: PropTypes.oneOf([\n 'article',\n 'commentArticle',\n 'tvshow',\n 'podcast'\n ])\n};\n\nexport default BookmarksList;\n","import BookmarksList from './BookmarksList';\n\nexport default BookmarksList;\n","import BookmarksContext, { createBookmarksContextState } from './state';\n\nimport ContentTypeNavigation from './ContentTypeNavigation';\nimport BookmarksList from './BookmarksList';\nimport LatestBookmarks from './LatestBookmarks';\n\nimport Loader from '../Loader';\n\nconst BookmarksPage = () => {\n const [state, dispatch, actions] = createBookmarksContextState({});\n\n React.useEffect(() => {\n actions.loadBookmarks();\n },[]);\n\n return (\n \n
\n {state.loading &&\n
\n \n
\n }\n\n {!state.loading && state.totalBookmarkCount === 0 &&\n \n

\n Inga sparade bokmärken\n

\n

\n Du har just nu inga sparade bokmärken.\n Tryck på för att bokmärka en artikel, podcast eller ett tv-program.\n

\n
\n }\n\n {!state.loading && state.totalBookmarkCount > 0 &&\n \n {state.latestBookmarks.length > 0 &&\n
\n \n
\n }\n
\n \n
\n
\n \n \n \n \n
\n
\n }\n
\n
\n );\n}\n\nexport default BookmarksPage;\n","import { useBookmarksStateContext } from '../state';\n\nconst ContentTypeNavigation = () => {\n const { state } = useBookmarksStateContext();\n\n return (\n
\n

\n Sparat innehåll\n

\n
\n {state.bookmarks.articles.length > 0 &&\n \n Artiklar\n \n }\n\n {state.bookmarks.commentArticles.length > 0 &&\n \n Kommentar\n \n }\n\n {state.bookmarks.tvshows.length > 0 &&\n \n TV-program\n \n }\n\n {state.bookmarks.podcasts.length > 0 &&\n \n Podcast\n \n }\n
\n
\n );\n}\n\nexport default ContentTypeNavigation;\n","import ContentTypeNavigation from './ContentTypeNavigation';\n\nexport default ContentTypeNavigation;\n","import PropTypes from 'prop-types';\nimport decodeEntities from 'entities-decode';\n\nconst ArticleCardSmall = ({ item }) => {\n return (\n
\n
\n {item.type == 'article' ? 'Magasin' : 'Kommentar'}\n
\n
\n \n
\n
\n );\n};\n\nconst TvShowCardSmall = ({ item }) => {\n console.log('tv item: ', item);\n return (\n
\n
\n TV\n
\n
\n
\n \n
\n
\n \n {decodeEntities(item.title)}\n \n \n {item.customFields.subtitle &&\n decodeEntities(item.customFields.subtitle)\n }\n \n {item.category &&\n \n \n {item.category}\n \n \n }\n
\n
\n
\n );\n};\n\nconst PodcastCardSmall = ({ item }) => {\n return (\n
\n
\n Podcast\n
\n
\n
\n \n Lyssna\n \n
\n
\n \n {decodeEntities(item.title)}\n \n {item.category &&\n \n \n {item.category}\n \n \n }\n \n {item.customFields.duration}min\n \n
\n
\n
\n );\n};\n\nconst LatestBookmarks = ({ items }) => (\n
\n

\n Senast sparat\n

\n
\n {items.map(item => {\n let Card;\n switch(item.type) {\n case 'podcast':\n Card = PodcastCardSmall;\n break;\n case 'tvshow':\n Card = TvShowCardSmall;\n break;\n case 'article':\n case 'commentArticle':\n default:\n Card = ArticleCardSmall;\n break;\n }\n\n return ;\n })}\n
\n
\n);\n\nLatestBookmarks.propTypes = {\n itesm: PropTypes.array\n};\n\nexport default LatestBookmarks;\n","import LatestBookmarks from './LatestBookmarks';\n\nexport default LatestBookmarks;\n","import BookmarksPage from './BookmarksPage';\n\nexport default BookmarksPage;\n","import { getBookmarks } from '../../../utils/wp-client';\n\nconst BookmarksContext = React.createContext({});\n\nconst initialState = {\n loading: true,\n bookmarks: {\n articles: [],\n commentArticles: [],\n tvshows: [],\n podcasts: [],\n },\n latestBookmarks: [],\n totalBookmarkCount: 0\n};\n\nconst stateReducer = (state, action) => {\n switch (action.type) {\n case 'SET_LOADING':\n return {\n ...state,\n loading: action.payload\n };\n\n case 'SET_BOOKMARKS':\n return {\n ...state,\n bookmarks: action.payload.bookmarks,\n latestBookmarks: action.payload.latestBookmarks,\n totalBookmarkCount: action.payload.totalCount,\n };\n\n default:\n throw new Error('No such state action: ', action.type);\n }\n}\n\nconst createActions = (state, dispatch) => ({\n loadBookmarks: async () => {\n const bookmarksResult = await getBookmarks();\n\n const bookmarks = bookmarksResult.bookmarks;\n const latestBookmarkedIds = bookmarksResult.lastBookmarkedIds;\n\n const latestBookmarks = Object.keys(bookmarks).reduce((latest, contentType) => {\n const result = bookmarks[contentType]\n .filter(b => latestBookmarkedIds.indexOf(b.id) !== -1)\n\n if(result.length) {\n latest = [...latest, ...result];\n }\n\n return latest;\n }, []);\n\n dispatch({\n type: 'SET_BOOKMARKS',\n payload: {\n bookmarks,\n latestBookmarks,\n totalCount: bookmarksResult.totalCount\n }\n });\n\n dispatch({\n type: 'SET_LOADING',\n payload: false\n });\n },\n removeBookmark: (bookmarkId) => {\n dispatch({\n type: 'SET_BOOKMARKS',\n payload: {\n bookmarks: Object.keys(state.bookmarks).reduce((newBookmarks, contentType) => {\n newBookmarks[contentType] = state.bookmarks[contentType]\n .filter(item => item.id !== bookmarkId);\n return newBookmarks;\n }, []),\n latestBookmarks: state.latestBookmarks\n .filter(b => b.id !== bookmarkId),\n totalCount: parseInt(state.totalBookmarkCount) - 1\n }\n });\n\n const removeBookmarkEvent = new CustomEvent('axess-bookmark-removed', {\n detail: { bookmarkId }\n });\n\n // see handlers/bookmark-events.js\n document.dispatchEvent(removeBookmarkEvent);\n }\n});\n\nconst createBookmarksContextState = (initialStateOverrides) => {\n const startState = {\n ...initialState,\n ...initialStateOverrides\n };\n\n const [state, dispatch] = React.useReducer(stateReducer, startState);\n const actions = createActions(state, dispatch);\n\n return [state, dispatch, actions];\n};\n\nconst useBookmarksStateContext = () =>\n React.useContext(BookmarksContext);\n\nexport {\n createBookmarksContextState,\n useBookmarksStateContext\n};\n\nexport default BookmarksContext;\n","const Loader = () => (\n
\n
\n  \n
\n
\n);\n\nexport default Loader;\n","import Loader from './Loader';\n\nexport default Loader;\n","import PropTypes from 'prop-types';\n\nimport day from 'dayjs';\nimport classNames from 'classnames';\n\nimport decodeEntities from 'entities-decode';\nimport RawHtml from '../RawHtml';\n\nconst PodcastCard = ({ item, large, hideBorder, actionButton }) => {\n const cardClasses = classNames('PodcastCard', {\n 'PodcastCard--HasImage': !!item.imageUrl,\n 'PodcastCard--Large': large,\n 'PodcastCard--HideBorder': hideBorder,\n 'PodcastCard--NoActionButton': !actionButton\n });\n\n return (\n
\n {item.imageUrl &&\n
\n \n
\n }\n
\n
\n
\n \n {item.category}\n \n \n {item.customFields.duration}min\n \n \n {day(item.date).format('DD MMM, YYYY')}\n \n
\n
\n \n Spela avsnitt\n \n\n {actionButton &&\n
\n {actionButton}\n
\n }\n\n

\n {decodeEntities(item.title)}\n

\n
\n
\n {item.text}\n
\n
\n\n {actionButton &&\n
\n {actionButton}\n
\n }\n\n
\n

\n {decodeEntities(item.title)}\n

\n
\n {item.text}\n
\n
\n );\n};\n\nPodcastCard.propTypes = {\n item: PropTypes.object,\n large: PropTypes.bool,\n hideBorder: PropTypes.bool,\n actionButton: PropTypes.node\n};\n\nPodcastCard.defaultProps = {\n item: {},\n large: false,\n hideBorder: false,\n actionButton: null,\n}\n\nexport default PodcastCard;\n","import PodcastCard from './PodcastCard';\n\nexport default PodcastCard;\n","import { usePressStateContext } from '../state';\n\nconst FilterBar = () => {\n const { state, dispatch } = usePressStateContext();\n const inputRef = React.useRef(null);\n\n React.useEffect(() => {\n inputRef.current.focus();\n }, []);\n\n const handleInputChange = (e) => {\n dispatch({\n type: 'SET_SEARCH_KEYWORD',\n payload: e.target.value\n });\n }\n\n return (\n
\n \n
\n );\n}\n\nexport default FilterBar;\n","import FilterBar from './FilterBar';\n\nexport default FilterBar;\n","import ReactPagination from 'react-js-pagination';\n\nimport { usePressStateContext } from '../state';\nimport { useMediaQueryValues } from '../../hooks';\n\nconst Pagination = () => {\n const { state, dispatch } = usePressStateContext();\n\n const handlePageChange = (page) => {\n dispatch({\n type: 'SET_CURRENT_PAGE',\n payload: page\n });\n };\n\n const pageRangeDisplayed = useMediaQueryValues(\n ['(min-width: 768px)'],\n [10],\n 4\n );\n\n return (\n
\n
\n \n
\n
\n );\n};\n\n\nexport default Pagination;\n","import Pagination from './Pagination';\n\nexport default Pagination;\n","import PropTypes from 'prop-types';\n\nimport PressContext, { createPressContextState } from './state';\n\nimport FilterBar from './FilterBar';\nimport TvShowListing from './TvShowListing';\nimport Pagination from './Pagination';\nimport Loader from '../Loader';\nimport RawHtml from '../RawHtml';\n\nimport { useDebouncedValue } from '../hooks';\n\nconst PressPage = ({ title, content }) => {\n const [state, dispatch, actions] = createPressContextState({});\n const debouncedKeyword = useDebouncedValue(state.keyword, 300);\n\n React.useEffect(() => {\n actions.loadItems();\n }, [state.currentPage, debouncedKeyword]);\n\n return (\n \n
\n

\n {title}\n

\n\n \n {content}\n \n\n \n\n {!state.loading &&\n \n }\n\n {!state.loading && state.items.length === 0 && !!state.keyword &&\n Inga träffar matchandes \"{state.keyword}\" kunde hittas\n }\n\n {state.loading &&\n
\n \n
\n }\n\n {state.items.length > 0 &&\n \n }\n
\n
\n );\n}\n\nPressPage.propTypes = {\n title: PropTypes.string,\n content: PropTypes.string\n}\n\nexport default PressPage;\n","import Loader from '../../Loader';\nimport RawHtml from '../../RawHtml';\n\nimport { getTvshows } from '../../../utils/wp-client';\n\nimport { bytesToSize } from '../../../utils/helpers';\nimport decodeEntities from 'entities-decode';\n\nconst TvShowPressItem = ({ item }) => {\n const [isOpen, setIsOpen] = React.useState(false);\n\n const [loadingEpisodes, setLoadingEpisodes] = React.useState(true);\n const [episodes, setEpisodes] = React.useState([]);\n\n const handleClick = (e) => {\n setIsOpen(!isOpen);\n };\n\n React.useEffect(() => {\n if(!isOpen || episodes.length > 0) {\n return;\n }\n\n setLoadingEpisodes(true);\n\n (async () => {\n const response = await getTvshows(null, 1, 100, item.id, 'date');\n setEpisodes(response.items);\n setLoadingEpisodes(false);\n })();\n }, [isOpen])\n\n const pressImages = item.customFields.pressImages;\n\n return (\n
\n \n {decodeEntities(item.title)}\n \n {isOpen &&\n
\n
\n \n {item.text}\n \n \n {item.customFields.programText}\n \n\n

\n Avsnittsinformation\n

\n\n {loadingEpisodes &&\n
\n \n
\n }\n\n {!loadingEpisodes && episodes.length === 0 &&\n
\n

\n Inga avsnitt finns tillgängliga\n

\n
\n }\n\n {episodes.length > 0 &&\n
\n {episodes.map((episode) => (\n
\n

\n {decodeEntities(episode.title)}\n

\n \n {episode.text}\n \n \n {episode.customFields.programText}\n \n
\n ))}\n
\n }\n
\n {!!pressImages &&\n
\n

\n Bildmaterial\n

\n {pressImages.map(({ pressImage }) => {\n const thumbUrl = pressImage && pressImage.sizes && 'thumbnail' in pressImage.sizes\n ? pressImage.sizes['thumbnail']\n : pressImage.url;\n\n if (!thumbUrl) {\n return null;\n }\n\n return (\n
\n \n
\n \n {pressImage.filename}\n \n \n {pressImage.alt}\n \n \n Ladda ner ({bytesToSize(pressImage.filesize)})\n \n
\n
\n );\n })}\n
\n }\n
\n }\n
\n );\n};\n\nconst TvShowListing = ({ items }) => {\n return (\n
\n {items.map(item => (\n \n ))}\n
\n );\n};\n\nexport default TvShowListing;\n","import TvShowListing from './TvShowListing';\n\nexport default TvShowListing;\n","import PressPage from './PressPage';\n\nexport default PressPage;\n","import { getTvshows } from '../../../utils/wp-client';\n\nconst PressContext = React.createContext({});\n\nconst initialState = {\n loading: true,\n currentPage: 1,\n perPage: 20,\n totalPages: 0,\n items: [],\n keyword: '',\n};\n\nconst stateReducer = (state, action) => {\n switch (action.type) {\n case 'SET_LOADING':\n return {\n ...state,\n loading: action.payload\n };\n\n case 'SET_SEARCH_KEYWORD':\n return {\n ...state,\n keyword: action.payload,\n // reset page counter when keyword changes\n currentPage: 1,\n };\n\n case 'SET_CURRENT_PAGE':\n return {\n ...state,\n currentPage: action.payload\n };\n\n case 'SET_PAGE_ITEMS':\n return {\n ...state,\n items: action.payload.items,\n totalPages: parseInt(action.payload.totalPages)\n };\n\n default:\n throw new Error('No such state action: ', action.type);\n }\n}\n\nconst createActions = (state, dispatch) => ({\n loadItems: async () => {\n dispatch({\n type: 'SET_LOADING',\n payload: true\n });\n\n let response = await getTvshows(\n !!state.keyword ? state.keyword : null,\n state.currentPage,\n state.perPage\n );\n\n dispatch({\n type: 'SET_PAGE_ITEMS',\n payload: {\n items: response.items,\n totalPages: response.totalPages\n }\n });\n\n dispatch({\n type: 'SET_LOADING',\n payload: false\n });\n },\n});\n\nconst createPressContextState = (initialStateOverrides) => {\n const startState = {\n ...initialState,\n ...initialStateOverrides\n };\n\n const [state, dispatch] = React.useReducer(stateReducer, startState);\n const actions = createActions(state, dispatch);\n\n return [state, dispatch, actions];\n};\n\nconst usePressStateContext = () =>\n React.useContext(PressContext);\n\nexport {\n createPressContextState,\n usePressStateContext\n};\n\nexport default PressContext;\n","const RawHtml = ({ children, className = '' }) => (\n
\n
\n);\n\nexport default RawHtml;\n","import RawHtml from './RawHtml';\n\nexport default RawHtml;\n","import ArticleCard from '../../ArticleCard';\nimport LoadMoreButton from '../LoadMoreButton';\n\nimport { useSearchStateContext } from '../state';\n\nconst ArticleResults = () => {\n const [loading, setLoading] = React.useState(false);\n const { state, actions } = useSearchStateContext();\n\n const items = state.results.articles.posts;\n\n if(!items.length) {\n return null;\n }\n\n const handleLoadMore = async () => {\n setLoading(true);\n await actions.loadMoreArticleResults();\n setLoading(false);\n }\n\n return (\n
\n

\n Magasinartiklar\n

\n\n {items.map((item, i) => (\n \n ))}\n\n \n {loading ? 'Laddar fler...' : 'Visa fler'}\n \n
\n );\n}\n\nexport default ArticleResults;\n","import ArticleResults from './ArticleResults';\n\nexport default ArticleResults;\n","import ArticleCard from '../../ArticleCard';\nimport LoadMoreButton from '../LoadMoreButton';\n\nimport { useSearchStateContext } from '../state';\n\nconst CommentArticleResults = () => {\n const [loading, setLoading] = React.useState(false);\n const { state, actions } = useSearchStateContext();\n\n const items = state.results.commentArticles.posts;\n\n if (!items.length) {\n return null;\n }\n\n const handleLoadMore = async () => {\n setLoading(true);\n await actions.loadMoreCommentArticleResults();\n setLoading(false);\n }\n\n return (\n
\n

\n Kommentarer\n

\n {items.map((item, i) => (\n \n ))}\n\n \n {loading ? 'Laddar fler...' : 'Visa fler'}\n \n
\n );\n}\n\nexport default CommentArticleResults;\n","import CommentArticleResults from './CommentArticleResults';\n\nexport default CommentArticleResults;\n","import { useSearchStateContext } from '../state';\nimport { range } from '../../../utils/helpers';\n\nconst Filter = () => {\n const { state, dispatch, actions } = useSearchStateContext();\n\n const handleFilterChange = (e) => {\n const target = e.target;\n\n const value = target.type === 'checkbox'\n ? target.checked\n : target.value;\n const name = target.name;\n\n dispatch({\n type: 'UPDATE_FILTER_FORM_STATE',\n payload: {\n [name]: value\n }\n });\n }\n\n // set form error state if no content type is selected in the filter\n React.useEffect(() => {\n if (!state.filter.showArticles && !state.filter.showCommentArticles\n && !state.filter.showTvShows && !state.filter.showPodcasts)\n {\n dispatch({\n type: 'SET_FILTER_FORM_ERROR',\n payload: {\n noContentTypeError: true\n }\n });\n\n return;\n }\n\n dispatch({\n type: 'SET_FILTER_FORM_ERROR',\n payload: {\n noContentTypeError: false\n }\n });\n }, [state.filter])\n\n const currentYear = (new Date()).getFullYear();\n const filterYears = range(2007, currentYear + 1).reverse();\n\n const handleSearch = (e) => {\n e.preventDefault();\n actions.search();\n }\n\n return (\n
\n

\n Filtrera\n

\n\n
\n \n Sortera på\n \n \n \n \n \n \n\n \n År\n \n \n \n {filterYears.map(year => (\n \n ))}\n \n\n

\n Innehållstyp\n

\n\n \n \n \n \n\n {state.filterFormErrors.errors.noContentTypeError &&\n
\n Du måste välja minst en innehållstyp\n
\n }\n\n {state.filterFormErrors.errors.noKeyword &&\n
\n Du måste ange ett sökord i rutan på sidans topp\n
\n }\n\n \n {state.loading ? 'Laddar...' : 'Sök'}\n \n \n
\n );\n}\n\nexport default Filter;\n","import Filter from './Filter';\n\nexport default Filter;\n","import { useSearchStateContext } from '../state';\n\nconst LoadMoreButton = ({ handleClick, count, totalCount, children }) => {\n const { state } = useSearchStateContext();\n\n const handleScrollToTop = () => {\n document.body.scrollTop = document.documentElement.scrollTop = 0;\n };\n\n return (\n
\n
\n Visar {count} av {totalCount}\n
\n\n {(count < totalCount || count < state.loadCount) && count !== totalCount &&\n \n {children}\n \n }\n\n
\n \n Till sidans topp\n \n
\n
\n );\n}\n\nexport default LoadMoreButton;\n","import LoadMoreButton from './LoadMoreButton';\n\nexport default LoadMoreButton;\n","import PodcastCard from '../../PodcastCard';\nimport LoadMoreButton from '../LoadMoreButton';\n\nimport { useSearchStateContext } from '../state';\n\nconst PodcastResults = () => {\n const [loading, setLoading] = React.useState(false);\n const { state, actions } = useSearchStateContext();\n\n const items = state.results.podcasts.posts;\n\n if (!items.length) {\n return null;\n }\n\n const handleLoadMore = async () => {\n setLoading(true);\n await actions.loadMorePodcastResults();\n setLoading(false);\n }\n\n return (\n
\n

\n Podcast-avsnitt\n

\n\n {items.map((item, i) => (\n \n ))}\n\n \n {loading ? 'Laddar fler...' : 'Visa fler'}\n \n
\n );\n}\n\nexport default PodcastResults;\n","import PodcastResults from './PodcastResults';\n\nexport default PodcastResults;\n","import { useSearchStateContext } from '../state';\n\nimport Loader from '../../Loader';\n\nconst SearchBar = () => {\n const { state, dispatch, actions } = useSearchStateContext();\n const inputRef = React.useRef(null);\n\n React.useEffect(() => {\n inputRef.current.focus();\n }, []);\n\n const handleKeywordChange = (e) => {\n const keyword = e.target.value;\n\n dispatch({\n type: 'SET_SEARCH_KEYWORD',\n payload: keyword\n });\n\n if(keyword !== '') {\n dispatch({\n type: 'SET_FILTER_FORM_ERROR',\n payload: {\n noKeyword: false\n }\n });\n }\n };\n\n const handleEnterPress = (e) => {\n if (e.keyCode === 13) {\n actions.search();\n }\n };\n\n return (\n
\n \n\n
\n {state.loading && state.hasSearched &&\n \n }\n\n {!state.loading && state.hasSearched &&\n
\n \n Sökningen gav dig\n \n\n {state.lastSearchState.filter.showArticles &&\n \n {state.results.articles.totalCount} träffar för artiklar\n \n }\n {state.lastSearchState.filter.showCommentArticles &&\n \n {state.results.commentArticles.totalCount} träffar för kommentarsartiklar\n \n }\n {state.lastSearchState.filter.showTvShows &&\n \n {state.results.tvShows.totalCount} träffar för tv-program\n \n }\n {state.lastSearchState.filter.showPodcasts &&\n \n {state.results.podcasts.totalCount} träffar för podcast\n \n }\n
\n }\n
\n
\n );\n};\n\nexport default SearchBar;\n","import SearchBar from './SearchBar';\n\nexport default SearchBar;\n","import PropTypes from 'prop-types';\n\nimport SearchBar from './SearchBar';\nimport Filter from './Filter';\n\nimport ArticleResults from './ArticleResults';\nimport CommentArticleResults from './CommentArticleResults';\nimport TvShowResults from './TvShowResults';\nimport PodcastResults from './PodcastResults';\n\nimport SearchContext, { createSearchContextState } from './state';\n\nconst SearchPage = ({ keyword }) => {\n const [state, dispatch, actions]  = createSearchContextState({ keyword });\n\n // trigger search if we have an initial query\n React.useEffect(() => {\n if(keyword) {\n actions.search();\n } else {\n dispatch({\n type: 'SET_LOADING',\n payload: false\n });\n }\n }, [keyword]);\n\n return (\n \n
\n \n
\n \n
\n
\n {!state.loading &&\n \n \n \n \n \n \n }\n
\n
\n
\n );\n};\n\nSearchPage.propTypes = {\n keyword: PropTypes.string\n};\n\nexport default SearchPage;\n","import TvShowCard from '../../TvShowCard';\nimport LoadMoreButton from '../LoadMoreButton';\n\nimport { useSearchStateContext } from '../state';\n\nconst TvShowResults = () => {\n const [loading, setLoading] = React.useState(false);\n const { state, actions } = useSearchStateContext();\n\n const items = state.results.tvShows.posts;\n\n if (!items.length) {\n return null;\n }\n\n const handleLoadMore = async () => {\n setLoading(true);\n await actions.loadMoreTvShowResults();\n setLoading(false);\n }\n\n return (\n
\n

\n TV-program\n

\n\n {items.map((item, i) => (\n \n ))}\n\n \n {loading ? 'Laddar fler...' : 'Visa fler'}\n \n
\n );\n}\n\nexport default TvShowResults;\n","import TvShowResults from './TvShowResults';\n\nexport default TvShowResults;\n","import SearchPage from './SearchPage';\n\nexport default SearchPage;\n","import {\n searchArticles,\n searchCommentArticles,\n searchTvShows,\n searchPodcasts\n} from '../../../utils/wp-client';\n\n\nconst createActions = (state, dispatch) => ({\n search: async () => {\n if(state.keyword === '') {\n dispatch({\n type: 'SET_FILTER_FORM_ERROR',\n payload: {\n noKeyword: true\n }\n });\n\n return;\n }\n\n if (state.filterFormErrors.hasErrors) {\n return;\n }\n\n dispatch({\n type: 'SET_HAS_SEARCHED',\n payload: true\n });\n\n dispatch({\n type: 'SAVE_SEARCH_FILTER_STATE',\n });\n\n dispatch({\n type: 'SET_LOADING',\n payload: true\n });\n\n let searchPromises = [];\n let articleIndex, commentArticleIndex, tvShowIndex, podcastIndex;\n\n if(state.filter.showArticles) {\n articleIndex = 0;\n searchPromises.push(\n searchArticles(\n state.keyword,\n null,\n null,\n null,\n state.filter.year === 'all'\n ? null\n : state.filter.year,\n 0,\n state.loadCount,\n state.filter.sortOrder\n )\n );\n }\n\n if(state.filter.showCommentArticles) {\n commentArticleIndex = searchPromises.length;\n searchPromises.push(\n searchCommentArticles(\n state.keyword,\n null,\n state.filter.year === 'all'\n ? null\n : state.filter.year,\n 0,\n state.loadCount,\n state.filter.sortOrder\n )\n );\n }\n\n if(state.filter.showTvShows) {\n tvShowIndex = searchPromises.length;\n searchPromises.push(\n searchTvShows(state.keyword,\n state.filter.year === 'all'\n ? null\n : state.filter.year,\n 0,\n state.loadCount,\n state.filter.sortOrder\n )\n );\n }\n\n if(state.filter.showPodcasts) {\n podcastIndex = searchPromises.length;\n searchPromises.push(\n searchPodcasts(\n state.keyword,\n state.filter.year === 'all'\n ? null\n : state.filter.year,\n 0,\n state.loadCount,\n state.filter.sortOrder\n )\n );\n\n }\n\n const results = await Promise.all(searchPromises);\n const emptyResult = {\n posts: [],\n totalCount: 0,\n currentOffset: 0\n };\n\n dispatch({\n type: 'SET_RESULTS',\n payload: {\n articles: state.filter.showArticles\n ? {\n posts: results[articleIndex].posts,\n totalCount: parseInt(results[articleIndex].total),\n currentOffset: state.loadCount,\n } : emptyResult,\n commentArticles: state.filter.showCommentArticles\n ? {\n posts: results[commentArticleIndex].posts,\n totalCount: parseInt(results[commentArticleIndex].total),\n currentOffset: state.loadCount,\n } : emptyResult,\n tvShows: state.filter.showTvShows\n ? {\n posts: results[tvShowIndex].posts,\n totalCount: parseInt(results[tvShowIndex].total),\n currentOffset: state.loadCount,\n } : emptyResult,\n podcasts: state.filter.showPodcasts\n ? {\n posts: results[podcastIndex].posts,\n totalCount: parseInt(results[podcastIndex].total),\n currentOffset: state.loadCount,\n } : emptyResult\n }\n });\n\n dispatch({\n type: 'SET_LOADING',\n payload: false\n });\n },\n loadMoreArticleResults: async () => {\n const results = await searchArticles(\n state.lastSearchState.keyword,\n null,\n null,\n null,\n state.lastSearchState.filter.year === 'all'\n ? null\n : state.lastSearchState.filter.year,\n state.results.articles.currentOffset,\n state.loadCount,\n state.lastSearchState.filter.sortOrder\n );\n\n dispatch({\n type: 'APPEND_RESULTS',\n payload: {\n contentType: 'articles',\n results: {\n posts: [\n ...state.results.articles.posts,\n ...results.posts\n ],\n totalCount: state.results.articles.totalCount,\n currentOffset: state.results.articles.currentOffset\n + results.posts.length\n }\n }\n });\n },\n loadMoreCommentArticleResults: async () => {\n const results = await searchCommentArticles(\n state.lastSearchState.keyword,\n null,\n state.lastSearchState.filter.year === 'all'\n ? null\n : state.lastSearchState.filter.year,\n state.results.commentArticles.currentOffset,\n state.loadCount,\n state.lastSearchState.filter.sortOrder\n );\n\n dispatch({\n type: 'APPEND_RESULTS',\n payload: {\n contentType: 'commentArticles',\n results: {\n posts: [\n ...state.results.commentArticles.posts,\n ...results.posts\n ],\n currentOffset: state.results.commentArticles.currentOffset\n + results.posts.length\n }\n }\n });\n },\n loadMoreTvShowResults: async () => {\n const results = await searchTvShows(\n state.lastSearchState.keyword,\n state.lastSearchState.filter.year === 'all'\n ? null\n : state.lastSearchState.filter.year,\n state.results.tvShows.currentOffset,\n state.loadCount,\n state.lastSearchState.filter.sortOrder\n );\n\n dispatch({\n type: 'APPEND_RESULTS',\n payload: {\n contentType: 'tvShows',\n results: {\n posts: [\n ...state.results.tvShows.posts,\n ...results.posts\n ],\n currentOffset: state.results.tvShows.currentOffset\n + results.posts.length\n }\n }\n });\n },\n loadMorePodcastResults: async () => {\n const results = await searchPodcasts(\n state.lastSearchState.keyword,\n state.lastSearchState.filter.year === 'all'\n ? null\n : state.lastSearchState.filter.year,\n state.results.podcasts.currentOffset,\n state.loadCount,\n state.filter.sortOrder\n )\n\n dispatch({\n type: 'APPEND_RESULTS',\n payload: {\n contentType: 'podcasts',\n results: {\n posts: [\n ...state.results.podcasts.posts,\n ...results.posts\n ],\n currentOffset: state.results.podcasts.currentOffset\n + results.posts.length\n }\n }\n });\n }\n});\n\nexport default createActions;\n","import createActions from './actions';\n\nconst SearchContext = React.createContext({});\n\nconst initialState = {\n keyword: '',\n loading: true,\n hasSearched: false,\n loadCount: 3,\n filter: {\n sortOrder: 'relevance',\n year: 'all',\n showArticles: true,\n showCommentArticles: true,\n showTvShows: true,\n showPodcasts: true\n },\n lastSearchState: {},\n filterFormErrors: {\n hasErrors: false,\n errors: {\n noContentTypeError: false,\n noKeyword: false\n }\n },\n results: {\n articles: {\n posts: [],\n totalCount: 0,\n currentOffset: 0\n },\n commentArticles: {\n posts: [],\n totalCount: 0,\n currentOffset: 0\n },\n tvShows: {\n posts: [],\n totalCount: 0,\n currentOffset: 0\n },\n podcasts: {\n posts: [],\n totalCount: 0,\n currentOffset: 0\n }\n }\n};\n\nconst stateReducer = (state, action) => {\n switch (action.type) {\n case 'SET_SEARCH_KEYWORD':\n return {\n ...state,\n keyword: action.payload\n };\n\n case 'UPDATE_FILTER_FORM_STATE':\n return {\n ...state,\n filter: {\n ...state.filter,\n ...action.payload\n }\n };\n\n case 'SET_FILTER_FORM_ERROR':\n const errors = {\n ...state.filterFormErrors.errors,\n ...action.payload\n };\n\n const hasErrors = Object.values(errors)\n .filter(v => v !== false)\n .length > 0;\n\n return {\n ...state,\n filterFormErrors: {\n hasErrors,\n errors\n }\n };\n\n case 'SET_RESULTS':\n return {\n ...state,\n results: {\n ...state.results,\n ...action.payload\n }\n };\n\n case 'APPEND_RESULTS':\n return {\n ...state,\n results: {\n ...state.results,\n [action.payload.contentType]: {\n ...state.results[action.payload.contentType],\n ...action.payload.results\n }\n }\n };\n\n case 'SET_LOADING':\n return {\n ...state,\n loading: action.payload\n };\n\n case 'SET_HAS_SEARCHED':\n return {\n ...state,\n hasSearched: action.payload\n };\n\n case 'SAVE_SEARCH_FILTER_STATE':\n return {\n ...state,\n lastSearchState: {\n keyword: state.keyword,\n filter: state.filter\n }\n };\n\n default:\n throw new Error('No such state action: ', action.type);\n }\n}\n\nconst createSearchContextState = (initialStateOverrides) => {\n const startState = {\n ...initialState,\n ...initialStateOverrides\n };\n\n const [state, dispatch] = React.useReducer(stateReducer, startState);\n const actions = createActions(state, dispatch);\n\n return [state, dispatch, actions];\n};\n\nconst useSearchStateContext = () =>\n React.useContext(SearchContext);\n\nexport {\n createSearchContextState,\n useSearchStateContext\n};\n\nexport default SearchContext;\n","import PropTypes from 'prop-types';\n\nimport day from 'dayjs';\nimport classNames from 'classnames';\n\nimport RawHtml from '../RawHtml';\n\nconst TvShowCard = ({ item, large, hideBorder, actionButton }) => {\n const cardClasses = classNames('TvShowCard', {\n 'TvShowCard--HasImage': !!item.imageUrl,\n 'TvShowCard--Large': large,\n 'TvShowCard--HideBorder': hideBorder,\n 'TvShowCard--HasActionButton': actionButton\n });\n\n\n return (\n
\n {!!item.imageUrl &&\n
\n \n \n \n \n
\n }\n
\n
\n

\n \n \n {item.title}\n \n \n

\n {!!item.customFields.subtitle &&\n

\n \n \n {item.customFields.subtitle}\n \n \n

\n }\n
\n \n {item.text}\n \n
\n
\n {item.category &&\n \n \n {item.category}\n \n \n }\n \n {day(item.date).format('DD MMM, YYYY')}\n \n
\n
\n {actionButton &&\n
\n {actionButton}\n
\n }\n
\n
\n );\n};\n\nTvShowCard.propTypes = {\n item: PropTypes.object,\n large: PropTypes.bool,\n hideBorder: PropTypes.bool,\n actionButton: PropTypes.element\n};\n\nTvShowCard.defaultProps = {\n item: {},\n large: false,\n actionButton: null\n}\n\nexport default TvShowCard;\n","import TvShowCard from './TvShowCard';\n\nexport default TvShowCard;\n","import useOutsideClick from './useOutsideClick';\nimport useDebouncedValue from './useDebouncedValue';\nimport useMediaQueryValues from './useMediaQueryValues';\n\nexport {\n useOutsideClick,\n useDebouncedValue,\n useMediaQueryValues\n}\n","const useDebouncedValue = (value, delay) => {\n const [debouncedValue, setDebouncedValue] = React.useState(value);\n\n React.useEffect(() => {\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(handler);\n };\n }, [value]);\n\n return debouncedValue;\n}\n\nexport default useDebouncedValue;\n","const useMediaQueryValues = (queries, values, defaultValue) => {\n const mediaQueryLists = queries\n .map(q => window.matchMedia(q));\n\n const getValue = () => {\n const index = mediaQueryLists\n .findIndex(mql => mql.matches);\n\n return typeof values[index] !== 'undefined'\n ? values[index]\n : defaultValue;\n };\n\n const [value, setValue] = React.useState(getValue);\n\n React.useEffect(() => {\n const handler = () =>\n setValue(getValue);\n\n mediaQueryLists\n .forEach(mql => mql.addListener(handler));\n\n return () =>\n mediaQueryLists\n .forEach(mql => mql.removeListener(handler));\n }, []);\n\n return value;\n};\n\nexport default useMediaQueryValues;\n","const useOutsideClick = (callback, active, ref, ignoreClass = null) => {\n const handleClick = e => {\n if (!active || e.target.className.indexOf(ignoreClass) > -1) {\n return;\n }\n\n if (ref.current && !ref.current.contains(e.target)) {\n callback();\n }\n };\n\n React.useEffect(() => {\n document.addEventListener('click', handleClick);\n\n return () => {\n document.removeEventListener('click', handleClick);\n };\n });\n};\n\nexport default useOutsideClick;\n","\nconst articleArchiveForm = (formEl) => {\n const $form = $(formEl);\n const $submit = $form.find('#filter-submit');\n\n $submit.on('click', (e) => {\n e.preventDefault();\n\n const $subjectCategorySelect = $form.find('#filter-subject');\n const subject = $subjectCategorySelect.val();\n const baseUrl = $form.data('action-base');\n\n // sets action to, for example, 'magasin/arkiv/{subject}'\n // the final form request will look something like:\n // 'magasin/arkiv/recension?author=xxx&magasin_id=xxx'\n\n $form.attr('action', `${baseUrl}${subject}`)\n\n $form.submit();\n });\n};\n\nexport default articleArchiveForm;\n","const bookmarkButton = (buttonCl) => {\n $(document).on('click', buttonCl, (e) => {\n let $button;\n\n const $target = $(e.target);\n\n $button = $target.hasClass('js-bookmark-button')\n ? $target\n : $target.parent('.js-bookmark-button');\n\n const bookmarkId = $button.data('bookmark-id')\n const isBookmarked = $button.hasClass('js-bookmark-button--bookmarked');\n\n let bookmarkEvent;\n\n if(isBookmarked) {\n $button.removeClass('js-bookmark-button--bookmarked');\n\n bookmarkEvent = new CustomEvent('axess-bookmark-removed', {\n detail: { bookmarkId }\n });\n } else {\n $button.addClass('js-bookmark-button--bookmarked');\n\n bookmarkEvent = new CustomEvent('axess-bookmark-added', {\n detail: { bookmarkId }\n });\n }\n\n document.dispatchEvent(bookmarkEvent);\n });\n}\n\nexport default bookmarkButton;\n","import { addBookmark, removeBookmark } from '../utils/wp-client';\n\nconst bookmarkEvents = () => {\n // remove bookmark\n document.addEventListener('axess-bookmark-removed', (e) => {\n const bookmarkId = e.detail.bookmarkId;\n\n const $bookmarkCounter = $('.js-bookmark-counter');\n const $bookmarkButton = $('.js-bookmark-header-button');\n\n const currentCount = parseInt($bookmarkCounter.data('bookmark-count'));\n const newCount = currentCount - 1;\n $bookmarkCounter.data('bookmark-count', newCount);\n\n if(newCount > 0) {\n $bookmarkButton.addClass('save-btn--hasitems');\n } else {\n $bookmarkButton.removeClass('save-btn--hasitems');\n }\n\n let countLabel = newCount > 99\n ? '99+'\n : newCount > 0\n ? newCount\n : '';\n\n $bookmarkCounter.data('bookmark-count', newCount);\n $bookmarkCounter.text(countLabel);\n\n removeBookmark(bookmarkId);\n }, false);\n\n // add bookmark\n document.addEventListener('axess-bookmark-added', (e) => {\n const bookmarkId = e.detail.bookmarkId;\n\n const $bookmarkCounter = $('.js-bookmark-counter');\n const $bookmarkButton = $('.js-bookmark-header-button');\n\n const currentCount = parseInt($bookmarkCounter.data('bookmark-count'));\n const newCount = currentCount + 1;\n\n $bookmarkCounter.data('bookmark-count', newCount);\n\n if(newCount > 0) {\n $bookmarkButton.addClass('save-btn--hasitems');\n } else {\n $bookmarkButton.removeClass('save-btn--hasitems');\n }\n\n let countLabel = newCount > 99\n ? '99+'\n : newCount;\n\n $bookmarkCounter.data('bookmark-count', newCount);\n $bookmarkCounter.text(countLabel);\n\n addBookmark(bookmarkId);\n }, false);\n};\n\nexport default bookmarkEvents;\n","import store from 'store';\n\nfunction initCookiePopup(el) {\n jQuery(el).removeClass('js-state-initial').hide();\n\n const isClosed = store.get('cookie-popup-closed');\n if (isClosed === undefined) {\n jQuery(el).fadeIn();\n }\n\n jQuery(el).find('.js-cookie-close').click(() => {\n jQuery(el).fadeOut('fast');\n store.set('cookie-popup-closed', true);\n });\n}\n\nexport default initCookiePopup;\n","const dropdownMenu = (el, click) => {\n let $el = $(el);\n\n if(click) {\n $el.click(function (e) {\n e.preventDefault();\n toggleAttr($el);\n });\n } else {\n $el.mouseover(function (e) {\n toggleAttr($el, 'true');\n })\n\n $el.mouseout(function (e) {\n toggleAttr($el, 'false');\n })\n }\n};\n\nconst toggleAttr = ($el, attr) => {\n if (!$el.hasClass('js-toggle-children')) {\n $el = $el.find('.js-toggle-children');\n }\n\n if(!attr) attr = $el.attr('aria-expanded') == 'true' ? 'false' : 'true';\n $el.attr('aria-expanded', attr);\n}\n\nexport default dropdownMenu;\n","const lazyLoadOffset = -50;\n\nconst lazyLoad = () => {\n let imgObserver = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n const $entry = $(entry.target);\n const dataSrc = $entry.attr('data-src');\n if(dataSrc) {\n $entry.attr('src', dataSrc);\n }\n\n observer.unobserve(entry.target);\n }\n });\n }, { rootMargin: `0px 0px ${lazyLoadOffset}px 0px` });\n\n [...$('img')]\n .forEach(img => { imgObserver.observe(img) });\n\n let divObserver = new IntersectionObserver((entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n const $entry = $(entry.target);\n const dataStyle = $entry.attr('data-style');\n if (dataStyle) {\n $entry.attr('style', dataStyle);\n }\n\n observer.unobserve(entry.target);\n }\n });\n }, { rootMargin: `0px 0px ${lazyLoadOffset}px 0px` });\n\n [...$('div[data-style]')]\n .forEach(div => { divObserver.observe(div) });\n};\n\nexport default lazyLoad;\n","const linkSelect = (selectEl) => {\n $(selectEl).on('change', (e) => {\n window.location = e.target.value;\n });\n};\n\nexport default linkSelect;\n","import day from 'dayjs';\n\nimport {\n searchArticles\n} from '../utils/wp-client';\n\nconst renderArticleItemListToString = (items) => items.map(item => `\n
\n
\n ${item.image ? `\n
\n \n \"\"\n \n
\n `: ''}\n
\n

${item.title}

\n

${item.customFields.shortVersion || item.text}

\n\n
\n ${item.author}\n ${item.category}\n ${item.customFields && item.customFields.magazineFields && item.customFields.magazineFields.year ? `\n \n ${item.customFields.magazineFields.year}\n \n \n \n ${item.customFields.magazineFields.issue}\n \n \n `: `\n \n ${day(item.date).format('YYYY')}\n \n `}\n
\n
\n
\n
\n`).join('\\n');\n\nconst loadMoreArticlesArchive = (buttonEl, containerCl) => {\n const $container = $(containerCl);\n const $button = $(buttonEl);\n const $loadStatus = $('.js-load-more-article-archive-posts-status');\n const origButtonLabel = $button.text();\n\n $button.click(async (e) => {\n e.preventDefault();\n\n $button.text('Laddar fler...');\n\n const loadCount = $button.data('article-archive-load-count');\n const offset = $button.data('article-archive-load-offset');\n const totalCount = $button.data('article-archive-load-total-count');\n\n const subject = $button.data('article-archive-subject');\n const author = $button.data('article-archive-author');\n const magazineId = $button.data('article-archive-magazine');\n const year = $button.data('article-archive-year');\n\n\n let posts = [];\n\n try {\n const response = await searchArticles(\n null,\n subject,\n author,\n magazineId,\n year,\n offset,\n loadCount,\n );\n\n posts = response.posts;\n\n } catch(e) {\n $button.text('Ett fel uppstod - försök igen');\n setTimeout(() => {\n $button.text(origButtonLabel);\n }, 3000);\n\n return;\n }\n\n const html = renderArticleItemListToString(posts);\n const totalLoadedPosts = offset + posts.length;\n\n $button.text(origButtonLabel);\n $container.append(html);\n $button.data('article-archive-load-offset', totalLoadedPosts);\n\n if($loadStatus.length) {\n $loadStatus.text(`Visar ${totalLoadedPosts} av ${totalCount}`)\n }\n\n if (totalLoadedPosts >= totalCount) {\n $button.remove();\n }\n });\n};\n\nexport default loadMoreArticlesArchive;\n","import {\n searchCommentArticles\n} from '../utils/wp-client';\n\nimport day from 'dayjs';\n\nconst renderArticlesToString = (items) => items.map(item => `\n
\n
\n ${item.image ? `\n
\n \n \"\"\n \n
\n `:''}\n
\n

\n \n ${item.title}\n \n

\n

\n ${item.customFields.shortVersion || item.text}\n

\n\n
\n \n \n ${item.author}\n \n \n \n ${day(item.date).format('DD MMM, YYYY')}\n \n
\n
\n
\n
\n`).join('\\n');\n\nconst loadMoreArchiveComments = (buttonEl, containerCl) => {\n const $container = $(containerCl);\n const $button = $(buttonEl);\n const $loadStatus = $('.js-load-more-comment-article-archive-posts-status');\n\n const origButtonLabel = $button.text();\n\n $button.click(async (e) => {\n e.preventDefault();\n\n $button.text('Laddar fler...');\n\n const loadCount = $button.data('comment-article-archive-load-count');\n const offset = $button.data('comment-article-archive-load-offset');\n const totalCount = $button.data('comment-article-archive-load-total-count');\n\n const author = $button.data('comment-article-archive-author');\n const year = $button.data('comment-article-archive-year');\n\n\n let posts = [];\n\n try {\n const response = await searchCommentArticles(null, author, year, offset, loadCount);\n posts = response.posts;\n } catch(e) {\n $button.text('Ett fel uppstod - försök igen');\n setTimeout(() => {\n $button.text(origButtonLabel);\n }, 3000);\n\n return;\n }\n\n const html = renderArticlesToString(posts);\n const totalLoadedPosts = offset + posts.length;\n\n $button.text(origButtonLabel);\n $container.append(html);\n $button.data('comment-article-archive-load-offset', totalLoadedPosts);\n\n if ($loadStatus.length) {\n $loadStatus.text(`Visar ${totalLoadedPosts} av ${totalCount}`)\n }\n\n if (totalLoadedPosts >= totalCount) {\n $button.remove();\n }\n });\n};\n\nexport default loadMoreArchiveComments;\n","import day from 'dayjs';\n\nimport {\n getArticles\n} from '../utils/wp-client';\n\nconst renderArticleItemListToString = (items) => items.map(item => `\n
\n
\n ${item.image ? `\n
\n \n \"\"\n \n
\n `: ''}\n
\n

${item.title}

\n

${item.customFields.shortVersion || item.text}

\n\n
\n ${item.author}\n ${item.category}\n ${item.customFields && item.customFields.magazineFields && item.customFields.magazineFields.year ? `\n \n ${item.customFields.magazineFields.year}\n \n \n \n ${item.customFields.magazineFields.issue}\n \n \n `: `\n \n ${day(item.date).format('YYYY')}\n \n `}\n
\n
\n
\n
\n`).join('\\n');\n\nconst loadMoreArticles = (buttonEl, containerCl) => {\n const $container = $(containerCl);\n const $button = $(buttonEl);\n const origButtonLabel = $button.text();\n\n $button.click(async (e) => {\n e.preventDefault();\n\n $button.text('Laddar fler...');\n const loadCount = $button.data('load-count');\n const offset = $button.data('load-offset');\n const totalCount = $button.data('total-count');\n\n let posts = [];\n\n try {\n posts = await getArticles(offset, loadCount);\n } catch(e) {\n $button.text('Ett fel uppstod - försök igen');\n setTimeout(() => {\n $button.text(origButtonLabel);\n }, 3000);\n\n return;\n }\n\n const html = renderArticleItemListToString(posts);\n const totalLoadedPosts = offset + posts.length;\n\n $button.text(origButtonLabel);\n $container.append(html);\n $button.data('load-offset', totalLoadedPosts);\n\n if (totalLoadedPosts >= totalCount) {\n $button.remove();\n }\n });\n};\n\nexport default loadMoreArticles;\n","import {\n getCommentArticles\n} from '../utils/wp-client';\n\nimport day from 'dayjs';\n\nconst renderArticlesToString = (items) => items.map(item => `\n
\n
\n ${item.image ? `\n
\n \n \"\"\n \n
\n `:''}\n
\n

${item.title}

\n

${item.customFields.shortVersion || item.text}

\n\n
\n ${item.author}\n ${day(item.date).format('DD MMM, YYYY')}\n
\n
\n
\n
\n`).join('\\n');\n\nconst loadMoreCommentArticles = (buttonEl, containerCl) => {\n const $container = $(containerCl);\n const $button = $(buttonEl);\n const origButtonLabel = $button.text();\n\n $button.click(async (e) => {\n e.preventDefault();\n\n $button.text('Laddar fler...');\n const loadCount = $button.data('load-count');\n const offset = $button.data('load-offset');\n const totalCount = $button.data('total-count');\n\n let posts = [];\n\n try {\n posts = await getCommentArticles(offset, loadCount);\n } catch(e) {\n $button.text('Ett fel uppstod - försök igen');\n setTimeout(() => {\n $button.text(origButtonLabel);\n }, 3000);\n\n return;\n }\n\n const html = renderArticlesToString(posts);\n const totalLoadedPosts = offset + posts.length;\n\n $button.text(origButtonLabel);\n $container.append(html);\n $button.data('load-offset', totalLoadedPosts);\n\n if (totalLoadedPosts >= totalCount) {\n $button.remove();\n }\n });\n};\n\nexport default loadMoreCommentArticles;\n","import {\n getPodcastEpisodes\n} from '../utils/wp-client';\n\nimport day from 'dayjs';\nimport 'dayjs/locale/sv';\n\nday.locale('sv');\n\nconst renderPodcastItemsToString = (items) => items.map(item => `\n
\n
\n \n
\n
\n
\n
\n \n ${item.customFields.duration}min\n \n \n ${day(item.date).format('DD MMM, YYYY')}\n \n
\n
\n \n Lyssna\n \n \n Spara till bokmärken\n \n \n ${item.title}\n \n
\n

\n ${item.text}\n

\n \n Läs mer\n \n
\n
\n \n Spara till bokmärken\n \n
\n
\n \n ${item.title}\n \n

\n ${item.text}\n

\n \n Läs mer\n \n
\n \n`).join('');\n\nconst loadMorePodcastsButton = (buttonEl, containerCl) => {\n const $container = $(containerCl);\n const $button = $(buttonEl);\n const $loadStatus = $('.js-load-more-podcasts-status');\n const origButtonLabel = $button.text();\n\n $button.click(async (e) => {\n e.preventDefault();\n\n $button.text('Laddar fler...');\n\n const totalCount = $button.data('podcast-post-count');\n\n const loadCount = $button.data('podcast-load-count');\n const offset = $button.data('podcast-load-offset');\n const podcastTerm = $button.data('podcast-term');\n\n let posts = [];\n\n try {\n posts = await getPodcastEpisodes(podcastTerm, offset, loadCount);\n } catch(e) {\n $button.text('Ett fel uppstod - försök igen');\n setTimeout(() => {\n $button.text(origButtonLabel);\n }, 3000);\n\n return;\n }\n\n const html = renderPodcastItemsToString(posts);\n const totalLoadedPosts = offset + posts.length;\n\n $button.text(origButtonLabel);\n $container.append(html);\n $button.data('podcast-load-offset', totalLoadedPosts);\n\n if($loadStatus.length) {\n $loadStatus.text(`Visar ${totalLoadedPosts} av ${totalCount}`)\n }\n\n if (totalLoadedPosts >= totalCount) {\n $button.remove();\n }\n });\n};\n\nexport default loadMorePodcastsButton;\n","const magazineSlider = (sliderWrapper) => {\n const $slider = $(sliderWrapper);\n\n $slider.slick({\n arrows: true,\n slidesToShow: 4,\n swipeToSlide: true,\n infinite: false,\n responsive: [{\n breakpoint: 1124,\n settings: {\n slidesToShow: 3\n }\n },{\n breakpoint: 960,\n settings: {\n slidesToShow: 2\n }\n },{\n breakpoint: 668,\n settings: {\n slidesToShow: 1\n }\n }]\n });\n};\n\nexport default magazineSlider;\n","const mobileMenu = (el) => {\n let $el = $(el);\n $el.click(function (e) {\n e.preventDefault();\n\n $('body').toggleClass('js-state-menu-open');\n $el.toggleClass('js-state-menu-open');\n\n if($el.data('toggle') !== undefined) {\n $($el.data('toggle')).toggleClass('js-state-menu-open');\n }\n });\n};\n\nexport default mobileMenu;\n","const mobileSearch = (buttonEl, containerCl) => {\n\n $(buttonEl).click((e) => {\n let mq = window.matchMedia('screen and (max-width: 1024px)');\n if(!mq.matches) {\n return;\n }\n\n e.preventDefault();\n\n const $container = $(`.${containerCl}`);\n $container.toggleClass(`${containerCl}--active`);\n })\n};\n\nexport default mobileSearch;\n","const newsletter = (formEl) => {\n const $form = $(formEl);\n\n $form.on(\"submit\", async (e) => {\n e.preventDefault();\n\n const email = $form.find(\"#newsletter-form-email\").val();\n\n try {\n const response = await fetch(\"/wp-json/newsletter/v1/subscribe\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({ email }),\n });\n\n const data = await response.json();\n\n if (response.ok) {\n $('#newsletter-form').html(`

${data.message}

`);\n } else {\n $('#newsletter-form').html(`

${data.error}

`);\n }\n } catch (error) {\n const data = await response.json();\n $('#newsletter-form').html(`

${data.error}

`);\n }\n });\n};\n\nexport default newsletter;\n","const playSlider = (containerEl) => {\n const $slider = $(containerEl);\n\n $slider.slick({\n arrows: true,\n slidesToShow: 5,\n swipeToSlide: true,\n infinite: false,\n adaptiveHeight: true,\n responsive: [{\n breakpoint: 1101,\n settings: {\n slidesToShow: 4\n }\n }, {\n breakpoint: 1100,\n settings: {\n slidesToShow: 2\n }\n }, {\n breakpoint: 480,\n settings: {\n slidesToShow: 2\n }\n }, {\n breakpoint: 479,\n settings: {\n slidesToShow: 1\n }\n }]\n });\n};\n\nexport default playSlider;\n","import Amplitude from 'amplitudejs';\nimport day from 'dayjs';\n\nimport { getPodcastEpisode, trackView } from '../utils/wp-client';\n\nlet isActive = false;\nconst isIos = navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);\n\nconst playPodcast = async (podcastId) => {\n\n const $loader = $('.podcast-player__loading');\n const $playerControls = $('.podcast-player');\n const $playPauseButton = $('.amplitude-play-pause');\n const $volumeSlider = $('.amplitude-volume-slider');\n const $showLink = $('.podcast-player__show-title');\n const $playerBookmarkButton = $('.podcast-player__bookmark-button');\n\n const $metaDurationContainer = $('span[data-podcast-player-duration]');\n const $metaDateContainer = $('span[data-podcast-player-date]');\n\n const $footer = $('.footer');\n\n $playerControls.addClass('podcast-player--active');\n $loader.addClass('podcast-player__loading--active');\n\n const podcast = await getPodcastEpisode(podcastId);\n\n const audioUrl = podcast.customFields.soundcloudFile;\n const showName = podcast.category;\n const showUrl = podcast.categoryUrl;\n const episodeName = podcast.title;\n const description = podcast.text;\n const coverUrl = podcast.imageUrl;\n const duration = podcast.customFields.duration;\n const date = day(podcast.date).format('YYYY-MM-DD');\n const isBookmarked = podcast.isBookmarked;\n\n trackView(podcastId);\n\n const song = {\n name: episodeName,\n artist: showName,\n album: description,\n url: audioUrl,\n cover_art_url: coverUrl\n };\n\n if (!isActive) {\n $(document).on('click', '.amplitude-play-pause', () => {\n Amplitude.bindNewElements();\n });\n\n Amplitude.init({\n songs: [song],\n });\n\n Amplitude.pause();\n\n let audioEl = Amplitude.getAudio();\n audioEl.onplaying = () => {\n $loader.removeClass('podcast-player__loading--active');\n\n $playPauseButton.removeClass('amplitude-paused');\n $playPauseButton.addClass('amplitude-playing');\n\n Amplitude.bindNewElements();\n };\n\n if(isIos) {\n $loader.removeClass('podcast-player__loading--active');\n } else {\n Amplitude.play();\n Amplitude.bindNewElements();\n }\n\n isActive = true;\n } else {\n let audioEl = Amplitude.getAudio();\n\n const savedVolume = audioEl.volume;\n const savedSliderValue = $volumeSlider[0].value;\n\n await audioEl.pause();\n\n Amplitude.init({\n songs: [song]\n });\n\n let newAudioEl = Amplitude.getAudio();\n newAudioEl.onplaying = () => {\n $loader.removeClass('podcast-player__loading--active');\n\n $playPauseButton.removeClass('amplitude-paused');\n $playPauseButton.addClass('amplitude-playing');\n\n Amplitude.bindNewElements();\n };\n\n // can't get autoplay on initial click to work on ios safari\n // remove the loader and let the user hit play manually\n\n if(isIos) {\n $loader.removeClass('podcast-player__loading--active');\n } else {\n Amplitude.play();\n Amplitude.bindNewElements();\n\n newAudioEl.volume = savedVolume;\n $volumeSlider[0].value = savedSliderValue;\n }\n }\n\n // update custom meta\n $metaDateContainer.text(date);\n $metaDurationContainer.text(`${duration}min`);\n $showLink.attr('href', showUrl);\n\n $playerBookmarkButton.data('bookmark-id', podcastId);\n if(isBookmarked) {\n $playerBookmarkButton.addClass('js-bookmark-button--bookmarked');\n }\n\n $footer.addClass('footer--podcast-player-active');\n};\n\nconst podcastPlayer = (buttonCl) => {\n\n $(document).on('click', buttonCl, async (e) => {\n e.preventDefault();\n\n // audio play doesn't work in desktop saffari if we for example do an ajax request before\n // initing the audio playback, even though the call stack points to an event handler;\n // this is a workaround\n\n if(!isActive) {\n try {\n Amplitude.init({\n songs: [{ url: '/app/themes/main/dist/sounds/void2.wav' }]\n })\n\n let audioEl = Amplitude.getAudio();\n await audioEl.play();\n await audioEl.pause();\n\n } catch(e) {\n }\n }\n\n\n const $button = $(e.target);\n const podcastId = $button.data('podcast-id');\n\n playPodcast(podcastId);\n });\n};\n\nexport default podcastPlayer;\nexport {\n playPodcast\n};\n","const printButton = (buttonEl) => {\n $(buttonEl).click((e) => {\n window.print();\n });\n};\n\nexport default printButton;\n","const initScrollTo = (el, offset = 100) => {\n $(el).click(function scrollToElClick(e) {\n e.preventDefault();\n\n const $target = $($(this).attr('href'));\n $('html, body').animate({ scrollTop: $target.position().top + offset }, 'slow');\n });\n};\n\nexport default initScrollTo;\n","const toggle = (buttonCl) => {\n $(document).on('click', buttonCl, (e) => {\n const $button = $(e.target);\n const toggleContainerCl = $button.data('toggle-container');\n\n let $toggleContainer = $button.siblings(`.${toggleContainerCl}`);\n if (!$toggleContainer.length) {\n $toggleContainer = $(`.${toggleContainerCl}`);\n }\n\n if($toggleContainer.hasClass('js-toggle--active')) {\n $button.removeClass('js-toggle--active');\n $toggleContainer.removeClass('js-toggle--active');\n } else {\n $button.addClass('js-toggle--active');\n $toggleContainer.addClass('js-toggle--active');\n }\n });\n};\n\nexport default toggle;\n","const tvScheduleSlider = (sliderEl) => {\n const hasScheduleEntries = $('.tv-schedule__schedule__day').length > 0;\n if (!hasScheduleEntries) {\n return;\n }\n\n const $tvScheduleSlider = $(sliderEl);\n const initialSlide = $tvScheduleSlider.data('tvschedule-initial-slide');\n\n $tvScheduleSlider.slick({\n prevArrow: $('.js-schedule-slider-prev'),\n nextArrow: $('.js-schedule-slider-next'),\n slidesToShow: 1,\n initialSlide: initialSlide,\n swipeToSlide: true,\n infinite: false,\n adaptiveHeight: true\n });\n\n $tvScheduleSlider.on('beforeChange', function (event, slick, currentSlide, nextSlide) {\n const $nextSlide = $(`div[data-tvschedule-slide-no=${nextSlide}]`);\n const nextSlideDate = $nextSlide.data('tvschedule-slide-date');\n\n $('.js-schedule-date-label').text(nextSlideDate);\n });\n};\n\nexport default tvScheduleSlider;\n","import { trackView } from '../utils/wp-client';\n\nconst videoContainerId = 'video-container';\n\nconst videoPlayer = (button) => {\n const $button = $(button);\n const $descriptionContainer = $('.js-video-hero-desc-container');\n const $hero = $('.js-video-hero');\n\n let hideDescMq = window.matchMedia('(min-width: 1024px)');\n\n const showId = $button.data('show-id');\n const title = $button.data('title');\n const continueLabel = $button.data('continue-label');\n const file = $button.data('file');\n\n let playerInstance = null;\n\n $button.click((e) => {\n e.preventDefault();\n\n if(!playerInstance) {\n playerInstance = jwplayer(videoContainerId);\n\n playerInstance.setup({\n playlist: [{\n title,\n sources: [{\n default: false,\n file,\n type: 'hls'\n }]\n }],\n width: '100%',\n aspectratio: '16:9',\n primary: 'html5',\n hlshtml: true,\n cast: {},\n autostart: true\n });\n\n if (hideDescMq.matches) {\n $descriptionContainer.css('display', 'none');\n }\n\n $button.css('display', 'none');\n $button.text(continueLabel);\n $hero.addClass('single-tvshow__hero--video-active');\n\n playerInstance.on('pause', (e) => {\n if (!playerInstance.getFullscreen()) {\n if (hideDescMq.matches) {\n $descriptionContainer.css('display', 'block');\n }\n\n $button.css('display', 'block');\n }\n });\n\n playerInstance.on('play', (e) => {\n if (hideDescMq.matches) {\n $descriptionContainer.css('display', 'none');\n }\n\n $button.css('display', 'none');\n });\n\n playerInstance.on('fullscreen', ({ fullscreen }) => {\n if(playerInstance.getState() !== 'playing') {\n if (!playerInstance.getFullscreen()) {\n if (hideDescMq.matches) {\n $descriptionContainer.css('display', 'block');\n }\n\n $button.css('display', 'block');\n }\n }\n });\n\n trackView(showId);\n\n return;\n }\n\n const playerState = playerInstance.getState();\n if(playerState === 'paused') {\n playerInstance.play();\n }\n });\n};\n\nexport default videoPlayer;\n","// polyfill intersection observer, see: https://github.com/w3c/IntersectionObserver/tree/master/polyfill\nimport 'intersection-observer';\n// polyfill object-fit, see https://github.com/fregante/object-fit-images\nimport objectFitImages from 'object-fit-images';\n// polyfill fetch() for ie\nimport 'whatwg-fetch';\n// polyfill CustomEvent for ie\nimport 'custom-event-polyfill';\n\n// expose react components in window.Components glob, i.e:\n// window.Components.ComponentName\nrequire('expose-loader?Components!./components');\n\n// handlers\nimport initCookiePopup from './handlers/cookie-popup';\nimport initScrollTo from './handlers/scroll-to';\nimport mobileMenu from './handlers/mobile-menu';\nimport dropdownMenu from './handlers/dropdown-menu';\nimport videoPlayer from './handlers/video-player';\nimport loadMoreArticles from './handlers/load-more-articles';\nimport loadMoreCommentArticles from './handlers/load-more-comment-articles';\nimport podcastPlayer from './handlers/podcast-player';\n// import autoplayPodcast from './handlers/autoplay-podcast';\nimport loadMorePodcastsButton from './handlers/load-more-podcasts-button';\nimport toggle from './handlers/toggle';\nimport playSlider from './handlers/play-slider';\nimport tvScheduleSlider from './handlers/tv-schedule-slider';\nimport magazineSlider from './handlers/magazine-slider';\nimport linkSelect from './handlers/link-select';\nimport articleArchiveForm from './handlers/article-archive-form';\nimport loadMoreArchiveArticles from './handlers/load-more-archive-articles';\nimport loadMoreCommentArchiveArticles from './handlers/load-more-archive-comment-articles';\nimport mobileSearch from './handlers/mobile-search';\nimport bookmarkEvents from './handlers/bookmark-events';\nimport bookmarkButton from './handlers/bookmark-button';\nimport printButton from './handlers/print-button';\nimport lazyLoad from './handlers/lazy-load';\nimport newsletter from './handlers/newsletter';\n\n$(document).ready(() => {\n objectFitImages();\n\n const $newsletter = $('#newsletter-form');\n if ($newsletter.length) {\n $newsletter.map((i, v) => newsletter(v));\n }\n\n const $cookiePopup = $('.js-cookie-popup');\n if ($cookiePopup.length) {\n $cookiePopup.map((i, v) => initCookiePopup(v));\n }\n\n const $jsScrollTo = $('.js-scroll-to');\n if ($jsScrollTo.length) {\n $jsScrollTo.map((i, v) => initScrollTo(v));\n }\n\n const $jsMobileMenu = $('.js-toggle-menu');\n if ($jsMobileMenu.length) {\n $jsMobileMenu.map((i, v) => mobileMenu(v));\n }\n\n const $jsDropdownMenu = $('.menu__item--has-children');\n if ($jsDropdownMenu.length) {\n $jsDropdownMenu.map((i, v) => dropdownMenu(v));\n }\n\n const $jsDropdownMenuClick = $('.js-toggle-children');\n if ($jsDropdownMenuClick.length) {\n $jsDropdownMenuClick.map((i, v) => dropdownMenu(v, true));\n }\n\n const $playVideo = $('.js-play-video');\n if ($playVideo.length) {\n $playVideo.map((i, el) => videoPlayer(el));\n }\n\n const $loadMorePodcastsButton = $('.js-load-more-podcasts');\n if($loadMorePodcastsButton.length) {\n $loadMorePodcastsButton.map((_, el) =>\n loadMorePodcastsButton(el, '.taxonomy-podcast_cat__episodes')\n );\n }\n\n const $playSliders = $('.js-play-slider');\n if ($playSliders.length) {\n $playSliders.map((_, el) =>\n playSlider(el)\n );\n }\n\n const $tvScheduleSliders = $('.js-tv-schedule-slider');\n if ($tvScheduleSliders.length) {\n $tvScheduleSliders.map((_, el) =>\n tvScheduleSlider(el)\n );\n }\n const $loadMoreArticles = $('.js-load-more-articles');\n if ($loadMoreArticles.length) {\n $loadMoreArticles.map((_, el) =>\n loadMoreArticles(el, '.template-magazine-landing__bottom-section')\n );\n }\n\n const $loadMoreCommentArticles = $('.js-load-more-comment-articles');\n if ($loadMoreCommentArticles.length) {\n $loadMoreCommentArticles.map((_, el) =>\n loadMoreCommentArticles(el, '.template-comment-article-landing__bottom-section')\n );\n }\n\n const $magazineSliders = $('.carousel__wrapper');\n if($magazineSliders.length) {\n $magazineSliders.map((_, el) =>\n magazineSlider(el)\n );\n }\n\n const $linkSelects = $('.js-link-select');\n if ($linkSelects.length) {\n $linkSelects.map((_, el) =>\n linkSelect(el)\n );\n }\n\n const $archiveFilterForm = $('.js-article-archive-form');\n if($archiveFilterForm.length) {\n $archiveFilterForm.map((_, el) =>\n articleArchiveForm(el)\n );\n }\n\n const $loadMoreArchiveArticles = $('.js-load-more-archive-articles');\n if ($loadMoreArchiveArticles.length) {\n $loadMoreArchiveArticles.map((_, el) =>\n loadMoreArchiveArticles(el, '.template-article-archive__articles__items')\n );\n }\n\n const $loadMoreCommentArchiveArticles = $('.js-load-more-archive-comment-articles');\n if ($loadMoreCommentArchiveArticles.length) {\n $loadMoreCommentArchiveArticles.map((_, el) =>\n loadMoreCommentArchiveArticles(el, '.template-comment-article-archive__articles__items')\n );\n }\n\n const $mobileSearch = $('.js-mobile-search');\n if ($mobileSearch.length) {\n $mobileSearch.map((_, el) =>\n mobileSearch(el, 'mobile-search-form')\n );\n }\n\n const $printButtons = $('.js-print-button');\n if ($printButtons.length) {\n $printButtons.map((_, el) =>\n printButton(el)\n );\n }\n\n // global document listeners (i.e. for elements dynamically inserted with ajax)\n podcastPlayer('.js-play-audio');\n toggle('.js-toggle');\n bookmarkButton('.js-bookmark-button')\n\n // global\n bookmarkEvents();\n lazyLoad();\n});\n","const range = (start, end) =>\n Array.from({ length: (end - start) }, (v, k) => k + start);\n\nconst bytesToSize = (bytes) => {\n const sizes = ['bytes', 'kb', 'mb', 'gb', 'tb'];\n\n if(bytes === 0) {\n return 'n/a';\n }\n\n const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n\n if (i === 0) {\n return `${bytes} ${sizes[i]})`;\n }\n\n return `${(bytes / (1024 ** i)).toFixed(1)} ${sizes[i]}`;\n}\n\nexport {\n range,\n bytesToSize\n}\n","import {\n mapPostsPodcast,\n mapPostsArticle,\n mapPostsCommentArticle,\n mapPostsTvShow\n} from './wp-utils';\n\nconst endpoints = {\n podcast: (id) =>\n `/wp-json/wp/v2/podcast/${id}?_embed=true`,\n podcasts: (show, postOffset, perPage) =>\n `/wp-json/wp/v2/podcast?podcast_cat=${show}&offset=${postOffset}&per_page=${perPage}&_embed=1`,\n podcastSearch: () =>\n `/wp-json/axess/v1/podcast-search?_embed=1`,\n articles: (postOffset, perPage) =>\n `/wp-json/wp/v2/article?&offset=${postOffset}&per_page=${perPage}&_embed=1`,\n articleSearch: () =>\n `/wp-json/axess/v1/article-search?_embed=1`,\n commentArticles: (postOffset, perPage) =>\n `/wp-json/wp/v2/opinion?&offset=${postOffset}&per_page=${perPage}&_embed=1`,\n commentArticleSearch: () =>\n `/wp-json/axess/v1/comment-article-search?_embed=1`,\n tvshows: (keyword, page, perPage, parent, orderBy, order) =>\n `/wp-json/wp/v2/tvshow?parent=${parent}${keyword ? `&search=${keyword}` : ''}` +\n `&page=${page}&per_page=${perPage}&orderby=${orderBy}&order=${order}&_embed=1`,\n tvShowSearch: () =>\n `/wp-json/axess/v1/tvshow-search?_embed=1`,\n bookmarks: () =>\n `/wp-json/axess/v1/bookmarks?_embed=1`,\n trackViews: (postId) =>\n `/wp-json/axess/v1/track-views/${postId}`\n};\n\n\n// podcast episodes\n\nconst getPodcastEpisode = async (id, contentLimit = -1, imageSize = 'large') =>\n fetch(endpoints.podcast(id), {\n headers: { 'Content-Type': 'application/json', },\n })\n .then(response => response.json())\n .then(wpPost => mapPostsPodcast([wpPost], contentLimit, imageSize))\n .then(posts => posts[0])\n\nconst getPodcastEpisodes = async (\n show,\n offset,\n perPage = 3,\n contentLimit = -1,\n imageSize = 'podcast',\n) =>\n fetch(endpoints.podcasts(show, offset, perPage), {\n headers: { 'Content-Type': 'application/json', },\n })\n .then(response => response.json())\n .then(wpPosts => mapPostsPodcast(wpPosts, contentLimit, imageSize));\n\n\nconst searchPodcasts = async (\n keyword,\n year = null,\n offset = 0,\n perPage = 3,\n orderBy = null,\n contentLimit = 20,\n imageSize = 'podcast',\n) =>\n fetch(endpoints.podcastSearch(), {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', },\n body: JSON.stringify({\n keyword,\n year,\n order_by: orderBy,\n post_count: perPage,\n post_offset: offset\n })\n })\n .then(response => response.json())\n .then(response => ({\n posts: mapPostsPodcast(response.items, contentLimit, imageSize),\n total: response.total\n }));\n\n// articles\n\nconst getArticles = async (\n offset,\n perPage = 3,\n contentLimit = 20,\n imageSize = 'listings',\n) =>\n fetch(endpoints.articles(offset, perPage), {\n headers: { 'Content-Type': 'application/json', },\n })\n .then(response => response.json())\n .then(wpPosts => mapPostsArticle(wpPosts, contentLimit, imageSize));\n\nconst searchArticles = async (\n keyword,\n subjectSlug = null,\n authorSlug = null,\n magazineId = null,\n year = null,\n offset = 0,\n perPage = 3,\n orderBy = null,\n contentLimit = 20,\n imageSize = 'listings',\n) =>\n fetch(endpoints.articleSearch(), {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', },\n body: JSON.stringify({\n keyword,\n subject_slug: subjectSlug,\n author_slug: authorSlug,\n magazine_id: magazineId,\n year,\n order_by: orderBy,\n post_count: perPage,\n post_offset: offset\n })\n })\n .then(response => response.json())\n .then(response => ({\n posts: mapPostsArticle(response.items, contentLimit, imageSize),\n total: response.total\n }));\n\n\n\n// opinion / kommentar\n\nconst getCommentArticles = async (\n offset,\n perPage = 3,\n contentLimit = 20,\n imageSize = 'listings',\n) =>\n fetch(endpoints.commentArticles(offset, perPage), {\n headers: { 'Content-Type': 'application/json', },\n })\n .then(response => response.json())\n .then(wpPosts => mapPostsCommentArticle(wpPosts, contentLimit, imageSize));\n\nconst searchCommentArticles = async (\n keyword,\n authorSlug = null,\n year = null,\n offset = 0,\n perPage = 3,\n orderBy = null,\n contentLimit = 20,\n imageSize = 'listings',\n) =>\n fetch(endpoints.commentArticleSearch(), {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', },\n body: JSON.stringify({\n keyword,\n author_slug: authorSlug,\n year,\n order_by: orderBy,\n post_count: perPage,\n post_offset: offset\n })\n })\n .then(response => response.json())\n .then(response => ({\n posts: mapPostsCommentArticle(response.items, contentLimit, imageSize),\n total: response.total\n }));\n\n\n// tv shows\n\nconst getTvshows = async (\n keyword = null,\n page = 1,\n perPage = 20,\n parent = 0,\n orderBy = 'title',\n order = 'asc',\n contentLimit = 20,\n imageSize = 'listings',\n) => {\n const response = await fetch(endpoints.tvshows(keyword, page, perPage, parent, orderBy, order), {\n headers: { 'Content-Type': 'application/json', },\n })\n\n const totalPages = response.headers.get('X-WP-TotalPages');\n let items = await response.json();\n\n return {\n items: mapPostsTvShow(items, contentLimit, imageSize),\n totalPages,\n };\n}\n\n\nconst searchTvShows = async (\n keyword,\n year = null,\n offset = 0,\n perPage = 3,\n orderBy = null,\n contentLimit = 20,\n imageSize = 'listings',\n) =>\n fetch(endpoints.tvShowSearch(), {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', },\n body: JSON.stringify({\n keyword,\n year,\n order_by: orderBy,\n post_count: perPage,\n post_offset: offset\n })\n })\n .then(response => response.json())\n .then(response => ({\n posts: mapPostsTvShow(response.items, contentLimit, imageSize),\n total: response.total\n }));\n\n\n// bookmarks\n\nconst getBookmarks = async (\n contentLimit = 20,\n imageSize = 'listings'\n) =>\n fetch(endpoints.bookmarks(), {\n headers: { 'Content-Type': 'application/json', },\n })\n .then(response => response.json())\n .then(result => ({\n bookmarks: {\n articles: mapPostsArticle(result.bookmarks.articles, contentLimit, imageSize),\n commentArticles: mapPostsCommentArticle(result.bookmarks.comment_articles, contentLimit, imageSize),\n podcasts: mapPostsPodcast(result.bookmarks.podcasts, contentLimit, imageSize),\n tvshows: mapPostsTvShow(result.bookmarks.tvshows, contentLimit, imageSize)\n },\n lastBookmarkedIds: result.last_bookmarked_ids,\n totalCount: result.total_count\n })\n );\n\n\nconst addBookmark = async (postId) =>\n fetch(endpoints.bookmarks(), {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n id: postId\n })\n });\n\nconst removeBookmark = async (postId) =>\n fetch(endpoints.bookmarks(), {\n method: 'DELETE',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n id: postId\n })\n });\n\n// track post reads\n\nconst trackView = async (postId) =>\n fetch(endpoints.trackViews(postId), {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' }\n });\n\nexport {\n getPodcastEpisode,\n getPodcastEpisodes,\n searchPodcasts,\n\n getArticles,\n searchArticles,\n\n getCommentArticles,\n searchCommentArticles,\n\n getTvshows,\n searchTvShows,\n\n getBookmarks,\n addBookmark,\n removeBookmark,\n\n trackView\n}\n","import camelcaseKeys from 'camelcase-keys';\n\nconst stripHtmlTags = (html) =>\n html.replace(/<[^>]*>?/gm, '');\n\nconst limitContent = (content, limit) =>\n content.length <= limit\n ? content\n : content\n .split(' ')\n .slice(0, limit)\n .join(' ') + '...';\n\nconst getImageUrl = (wpPost, size = 'large') => {\n if (!wpPost['_embedded']) {\n return;\n }\n\n if (!wpPost['_embedded']['wp:featuredmedia']) {\n return;\n }\n\n const media = wpPost['_embedded']['wp:featuredmedia'][0];\n if (media && media['media_details']\n && size in media['media_details']['sizes'])\n {\n return media['media_details']['sizes'][size]['source_url'];\n } else if (media) {\n return media['source_url'];\n }\n\n return '';\n};\n\nconst mapPostsPodcast = (wpResponse, contentLimit, imageSize = 'podcast', stripHtml = true) => {\n const posts = wpResponse.map(post => {\n return {\n id: post.id,\n type: 'podcast',\n date: post.date,\n title: post.title.rendered,\n text: contentLimit === -1\n ? stripHtml\n ? stripHtmlTags(post.content.rendered)\n : post.content.rendered\n : stripHtml\n ? limitContent(stripHtmlTags(post.content.rendered), contentLimit)\n : limitContent(post.content.rendered),\n link: post.link,\n imageUrl: getImageUrl(post, imageSize),\n category: post['_embedded'] && post['_embedded']['wp:term'] && post['_embedded']['wp:term'][0]\n ? post['_embedded']['wp:term'][0][0]['name']\n : '',\n categorySlug: post['_embedded'] && post['_embedded']['wp:term']\n ? post['_embedded']['wp:term'][0][0]['slug']\n : '',\n categoryId: post['_embedded'] && post['_embedded']['wp:term']\n ? post['_embedded']['wp:term'][0][0]['id']\n : '',\n categoryUrl: post['_embedded'] && post['_embedded']['wp:term']\n ? post['_embedded']['wp:term'][0][0]['link']\n : '',\n isBookmarked: !!post['is_bookmarked'],\n customFields: camelcaseKeys(post.custom_fields, {deep: true})\n };\n });\n\n return posts;\n};\n\nconst mapPostsArticle = (wpResponse, contentLimit, imageSize = 'listings', stripHtml = true) => {\n const posts = wpResponse.map(post => {\n const customFields = camelcaseKeys(post.custom_fields, { deep: true });\n const text = post.content.rendered.length > 1\n ? post.content.rendered\n : customFields.description;\n\n return {\n id: post.id,\n type: 'article',\n date: post.date,\n title: post.title.rendered,\n text: contentLimit === -1\n ? stripHtml\n ? stripHtmlTags(text)\n : text\n : stripHtml\n ? limitContent(stripHtmlTags(text), contentLimit)\n : limitContent(text),\n link: post.link,\n author: post['_embedded'] && post['_embedded']['wp:term'] && post['_embedded']['wp:term'][0]\n ? post['_embedded']['wp:term'][0][0]['name']\n : '',\n authorUrl: post['_embedded'] && post['_embedded']['wp:term']\n ? post['_embedded']['wp:term'][0][0]['link']\n : '',\n category: post['_embedded'] && post['_embedded']['wp:term']\n && post['_embedded']['wp:term'][1] && post['_embedded']['wp:term'][1][0]\n ? post['_embedded']['wp:term'][1][0]['name']\n : '',\n categoryUrl: post['_embedded'] && post['_embedded']['wp:term'] && post['_embedded']['wp:term'][1][0]\n ? post['_embedded']['wp:term'][1][0]['link']\n : '',\n image: getImageUrl(post, imageSize),\n // image: post.acf.image && 'sizes' in post.acf.image\n // ? post.acf.image['sizes']['large']\n // : null,\n isBookmarked: post['is_bookmarked'],\n customFields,\n };\n });\n\n return posts;\n};\n\nconst mapPostsCommentArticle = (wpResponse, contentLimit, imageSize = 'listings', stripHtml = true) => {\n const posts = wpResponse.map(post => {\n return {\n id: post.id,\n type: 'commentArticle',\n date: post.date,\n title: post.title.rendered,\n text: contentLimit === -1\n ? stripHtml\n ? stripHtmlTags(post.content.rendered)\n : post.content.rendered\n : stripHtml\n ? limitContent(stripHtmlTags(post.content.rendered), contentLimit)\n : limitContent(post.content.rendered),\n link: post.link,\n author: post['_embedded'] && post['_embedded']['wp:term'] && post['_embedded']['wp:term'][0]\n ? post['_embedded']['wp:term'][0][0]['name']\n : '',\n authorUrl: post['_embedded'] && post['_embedded']['wp:term']\n ? post['_embedded']['wp:term'][0][0]['link']\n : '',\n image: getImageUrl(post, imageSize),\n // image: post.acf && post.acf.image && 'sizes' in post.acf.image\n // ? post.acf.image['sizes']['large']\n // : null,\n isBookmarked: !!post['is_bookmarked'],\n customFields: camelcaseKeys(post.custom_fields, {deep: true}),\n };\n });\n\n return posts;\n};\n\n\nconst mapPostsTvShow = (wpResponse, contentLimit, imageSize = 'listings', stripHtml = true) => {\n const posts = wpResponse.map(post => {\n return {\n id: post.id,\n type: 'tvshow',\n date: post.date,\n title: post.title.rendered,\n imageUrl: getImageUrl(post, imageSize),\n text: contentLimit === -1\n ? stripHtml\n ? stripHtmlTags(post.content.rendered)\n : post.content.rendered\n : stripHtml\n ? limitContent(stripHtmlTags(post.content.rendered), contentLimit)\n : limitContent(post.content.rendered),\n link: post.link,\n category: post['_embedded'] && post['_embedded']['wp:term'] && post['_embedded']['wp:term'][0]\n ? post['_embedded']['wp:term'][0][0]['name']\n : '',\n categoryUrl: post['_embedded'] && post['_embedded']['wp:term']\n ? post['_embedded']['wp:term'][0][0]['link']\n : '',\n isBookmarked: !!post['is_bookmarked'],\n customFields: camelcaseKeys(post.custom_fields, { deep: true }),\n };\n });\n\n return posts;\n};\n\nexport {\n stripHtmlTags,\n mapPostsPodcast,\n mapPostsArticle,\n mapPostsCommentArticle,\n mapPostsTvShow,\n getImageUrl\n};\n","module.exports = React;"],"sourceRoot":""}