From d965c1e65b82596f27089a6447135a6245d2467a Mon Sep 17 00:00:00 2001 From: Roberto Tonino Date: Mon, 31 Aug 2020 22:14:14 +0200 Subject: [PATCH] feat: improved routing removing display none/block on route change; feat: improved favorites data rendering; feat: added type checking for socket.io --- public/css/style.css | 2 +- public/js/bundle.js | 12 +-- src/components/ArtistTab.vue | 4 +- src/components/TheAboutTab.vue | 4 +- src/components/TheChartsTab.vue | 47 ++++++--- src/components/TheErrorsTab.vue | 4 +- src/components/TheFavoritesTab.vue | 141 +++++++++++++------------- src/components/TheHomeTab.vue | 4 +- src/components/TheLinkAnalyzerTab.vue | 4 +- src/components/TheSettingsTab.vue | 4 +- src/components/TheSidebar.vue | 64 ++++++++++-- src/components/TracklistTab.vue | 4 +- src/js/tabs.js | 91 ++++++++++++----- src/jsconfig.json | 3 + src/router.js | 1 - src/store/index.js | 6 +- src/store/modules/charts.js | 40 ++++++++ src/store/modules/favorites.js | 61 +++++++++++ src/styles/scss/tabs/_tabs.scss | 11 +- src/utils/socket.js | 11 +- 20 files changed, 368 insertions(+), 150 deletions(-) create mode 100644 src/store/modules/charts.js create mode 100644 src/store/modules/favorites.js diff --git a/public/css/style.css b/public/css/style.css index 0055384..384f18d 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1 +1 @@ -html{--main-scroll: hsl(0, 0%, 33%);--panels-scroll: hsl(180, 2%, 17%);--tag-background: hsl(210, 100%, 38%);--tag-text: hsl(0, 0%, 100%);--toast-background: hsla(0, 0%, 0%, 0.867);--toast-secondary: hsla(0, 0%, 100%, 0.133);--toast-text: hsla(0, 0%, 100%, 0.871);--separator: hsl(0, 0%, 50%)}html[data-theme=light]{--main-background: hsl(0, 0%, 100%);--secondary-background: hsl(0, 0%, 93%);--foreground: hsl(0, 0%, 20%);--foreground-inverted: hsl(0, 0%, 93%);--accent-color: hsl(210, 100%, 52%);--secondary-color: hsl(46, 100%, 57%);--panels-background: hsl(210, 3%, 14%);--panels-text: hsl(0, 0%, 100%);--accent-text: hsl(0, 0%, 0%);--sidebar-link-bg: hsl(0, 0%, 24%);--sidebar-link-bg-20: hsla(0, 0%, 24%, 0.2);--icon-hover: var(--accent-color);--table-bg: hsl(0, 0%, 100%);--table-zebra: hsl(0, 0%, 90%);--table-highlight: hsl(0, 0%, 84%)}html[data-theme=dark]{--main-background: hsl(0, 0%, 8%);--secondary-background: hsl(0, 0%, 14%);--foreground: hsl(0, 0%, 93%);--foreground-inverted: hsl(0, 0%, 20%);--accent-color: hsl(210, 100%, 52%);--secondary-color: hsl(46, 100%, 57%);--panels-background: hsl(0, 0%, 10%);--panels-text: hsl(0, 0%, 100%);--accent-text: hsl(0, 0%, 87%);--sidebar-link-bg: hsl(0, 0%, 24%);--sidebar-link-bg-20: hsla(0, 0%, 24%, 0.2);--icon-hover: var(--accent-color);--table-bg: hsl(0, 0%, 8%);--table-zebra: hsl(0, 0%, 14%);--table-highlight: hsl(0, 0%, 20%)}html[data-theme=purple]{--main-background: hsl(261, 74%, 6%);--secondary-background: hsl(257, 61%, 10%);--foreground: hsl(0, 0%, 93%);--foreground-inverted: hsl(258, 62%, 8%);--accent-color: hsl(261, 85%, 37%);--secondary-color: hsl(46, 100%, 57%);--panels-background: hsl(257, 70%, 9%);--panels-text: hsl(0, 0%, 100%);--accent-text: hsl(0, 0%, 87%);--sidebar-link-bg: hsl(257, 70%, 17%);--sidebar-link-bg-20: hsla(257, 70%, 17%, 0.2);--icon-hover: hsl(186, 44%, 54%);--table-bg: hsl(261, 74%, 6%);--table-zebra: hsl(257, 61%, 10%);--table-highlight: hsl(257, 66%, 27%)}html{height:100vh}body{margin:0px;width:100%;height:100%;font-family:"Open Sans";overflow:hidden;background:var(--main-background);color:var(--foreground)}*{margin:0;padding:0;box-sizing:border-box}:root{font-size:16px}table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}table{border-collapse:collapse;border-spacing:0}.lds-ring{display:inline-block;position:relative;width:80px;height:80px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:#fff transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-0.45s}.lds-ring div:nth-child(2){animation-delay:-0.3s}.lds-ring div:nth-child(3){animation-delay:-0.15s}@keyframes lds-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}input[type=text],input[type=password],input[type=number],input[type=search]{-webkit-appearance:none;appearance:none;width:calc(100% - 16px);border:0px solid #000;line-height:36px;padding:0px 8px;border-radius:4px;background-color:var(--secondary-background);color:var(--foreground);margin-bottom:8px}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;width:28px;height:28px;background-color:var(--foreground);-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 0 24 24' width='28'%3E%%3Cpath fill='%23ffffff' d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z'/%3E3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 0 24 24' width='28'%3E%%3Cpath fill='%23ffffff' d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z'/%3E3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E")}input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:none;border:2px solid gray;opacity:.5;border-radius:2px;padding:7px;margin:3px;display:inline-block;position:relative}input[type=checkbox]:checked{opacity:1;background-color:var(--accent-color);background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18' viewBox='3 3 18 18' width='18'%3E%3Cpath fill='%23ffffff' d='M 10,17 5,12 6.41,10.59 10,14.17 17.59,6.58 19,8 Z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");background-position:center center;border:0px solid var(--accent-color);border-radius:2px;padding:9px;margin:3px;color:var(--accent-text)}select{-webkit-appearance:none;appearance:none;width:100%;border:0px solid #000;line-height:36px;padding:0px 40px 0px 8px;border-radius:4px;background-color:var(--secondary-background);background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath style='fill%3A%23000000%3Bfill-opacity%3A0.25' d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:24px;background-position:calc(100% - 8px) center;background-clip:border-box;color:var(--foreground);margin-bottom:8px}p{word-break:break-word}button{min-width:64px;color:var(--accent-text);position:relative;background-color:var(--accent-color);border:1px solid transparent;border-radius:4px;font-family:inherit;font-weight:600;font-size:14px;padding:0px 8px;margin-right:8px;height:36px;text-transform:uppercase;cursor:pointer;transition:transform 50ms ease-in-out,background-color 200ms ease}button[disabled]{background-color:var(--secondary-background);color:var(--foreground);opacity:.75}button.selective{background-color:var(--main-background);color:var(--foreground)}button.selective.active{background-color:var(--accent-color);color:var(--accent-text)}button.with_icon{display:flex;align-items:center}button.with_icon i{margin-left:8px}button.only_icon{min-width:24px;width:48px;margin:0px 0px 0px 8px;padding:0px 4px}button.only_icon i{padding:6px 0px}button:active{background-color:var(--accent-color);transform:scale(0.98)}button:hover{background:none;border:1px solid var(--accent-color)}img.rounded{border-radius:5px}img.circle{border-radius:50%}i.disabled{opacity:.5;cursor:default}i.explicit_icon{color:#ff382e;margin-right:.3125em;margin-left:-3px}i.explicit_icon.explicit_icon--right{margin-left:.3125em;margin-right:0px}span.tag{background-color:var(--tag-background);border-radius:2px;color:var(--tag-text);display:inline-block;font-size:10px;padding:3px 6px;text-transform:capitalize}a{color:#1e90ff}a.single-cover{position:relative;display:inline-block;color:#fff}a:visited{color:#1e90ff}.clickable{cursor:pointer !important}.table--tracklist .clickable:hover,.table--charts .clickable:hover{text-decoration:underline}.fixed_footer footer{position:sticky;display:flex;align-items:center;flex-direction:row;justify-content:flex-end;background-color:var(--main-background);bottom:0px;height:64px;width:100%;margin-top:24px}.fab{width:56px;height:56px;border-radius:28px;display:inline-block;background-color:var(--accent-color);color:var(--accent-text);cursor:pointer}.fab i{font-size:24px;padding:16px}.with_checkbox{display:flex;align-items:center}.with_checkbox [type=checkbox]{cursor:pointer}.with_checkbox .checkbox_text{margin-left:10px;cursor:pointer}.with_checkbox .checkbox_text::selection{background:none}.loading_placeholder{display:flex;justify-content:center;align-items:center;flex-direction:column;flex:1;height:100%}.loading_placeholder.loading_placeholder--hidden{display:none}.loading_placeholder__text{margin-bottom:20px}.loading_placeholder#search_placeholder{height:calc(100% - 93px)}.loading_placeholder#start_app_placeholder{position:absolute;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);z-index:1000}.coverart{background-color:var(--secondary-background)}.cover_container{position:relative}.cover_container .coverart{opacity:1;display:block;width:100%;height:auto;transition:.5s ease;backface-visibility:hidden}.cover_container .download_overlay{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);text-align:center}.cover_container .download_overlay i{background-color:#000;color:#fff;border-radius:50%;padding:10px;cursor:pointer}.cover_container:hover .coverart{opacity:.75}.cover_container:hover .download_overlay{opacity:1}#main_content{margin-left:48px;width:calc(100% - 48px);height:100%;display:flex}.inline-flex{display:flex;align-items:center}.inline-flex .right{margin-left:auto}.right{float:right}.hide{display:none !important}.table{width:100%;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px}.table tbody tr:not(.table__row-no-highlight):hover{background:var(--table-highlight);cursor:default}.table tr{background:var(--table-bg);transition:background-color 175ms ease-in-out}.table tr:nth-child(even){background:var(--table-zebra);transition:background-color 175ms ease-in-out}.table tr:not(:last-child){border-bottom:1px solid var(--table-highlight)}.table td,.table th{vertical-align:middle}.table th .sortable{-webkit-user-select:none;user-select:none}.table th .sort-asc::after,.table th .sort-desc::after{font-size:.7em;padding-left:3px;line-height:.7em}.table th .sort-asc::after{content:"▲"}.table th .sort-desc::after{content:"▼"}.table td{padding:7px 10px}.table td:first-child{padding:7px 10px 7px 20px}.table td:last-child{padding:7px 20px 7px 10px}.table td img{vertical-align:middle}.table--tracks{border-collapse:collapse}.table--tracks thead{border-bottom:2px solid var(--table-highlight)}.table--tracks th{padding-bottom:10px;height:45px}.table--tracks td{height:35px}.table--tracks td.breakline{word-break:break-word}.table--tracks tr:first-child td:first-child{border-top-left-radius:3px}.table--tracks tr:first-child td:last-child{border-top-right-radius:3px}.table--tracks tr:last-child td:first-child{border-bottom-left-radius:3px}.table--tracks tr:last-child td:last-child{border-bottom-right-radius:3px}.table--tracklist thead{border-bottom:2px solid var(--table-highlight);text-transform:capitalize}.table--tracklist th{height:45px;padding:7px 10px}.table--tracklist th:first-child{padding:7px 10px 7px 20px}.table--tracklist th:last-child{padding:7px 20px 7px 10px}.table--tracklist td{height:35px}.table--charts td{height:35px}.table .table__icon{box-sizing:content-box;width:32px}.table .table__icon--big{width:48px;text-align:center}.table .table__cell--x-small{width:.32%}.table .table__cell--small{width:3.2%}.table .table__cell--medium{width:28.7%}.table .table__cell--large{width:50%}.table .table__cell--left{text-align:left}.table .table__cell--center{text-align:center}.table .table__cell--right{text-align:right}.table .table__cell--download{cursor:pointer}.table .table__cell--download i.material-icons{transition:color 175ms ease-in-out}.table .table__cell--download:hover i.material-icons{color:var(--icon-hover)}.table .table__cell-content.table__cell-content--vertical-center{display:flex;align-items:center}.track_row>td>img{width:32px;height:32px}.track_row>td>a>img{width:56px;height:56px}.top-tracks-position{padding:12px;text-align:center;cursor:default}.page_heading{font-size:2.5rem;margin-bottom:35px}.page_heading--capitalize{text-transform:capitalize}.page_heading--uppercase{text-transform:uppercase}.section_heading{font-size:1.75rem;margin-bottom:25px}#about_tab p{margin-bottom:8px}#about_tab h3{margin:8px 0px}#about_tab hr{margin:12px 0px}.charts_grid .release .coverart{width:156px;height:156px}#download_tab_container{height:100%;background-color:var(--panels-background);color:var(--panels-text);display:block;flex-direction:column}#download_tab_container.tab_hidden{width:32px}#download_tab_container.tab_hidden #toggle_download_tab{margin-left:4px}#download_tab_container.tab_hidden #toggle_download_tab::before{font-family:"Material Icons";font-style:normal;font-weight:400;content:"chevron_left"}#download_tab_container.tab_hidden #download_tab_drag_handler{display:none}#download_tab_container.tab_hidden #queue_buttons{opacity:0;visibility:hidden}#download_tab_container.tab_hidden #download_list{display:none}#download_tab_container.tab_hidden #download_tab_label{opacity:1;visibility:visible}#download_tab_container.tab_hidden::after{content:attr(data-label);display:flex;align-items:center;text-transform:capitalize;writing-mode:vertical-rl;line-height:32px}#toggle_download_tab{width:25px;height:25px;margin-left:20px}#toggle_download_tab::before{font-family:"Material Icons";font-style:normal;font-weight:400;content:"chevron_right"}.download_bar_icon{cursor:pointer;font-size:24px;margin:4px}#download_list{width:100%;height:calc(100% - 32px);padding:0px 8px 0px 28px;overflow-y:scroll}#download_list>.download_object{padding-bottom:8px}#download_list>.download_object .download_info{display:flex;align-items:center}#download_list>.download_object .download_info img{width:75px;height:75px;display:inline-block;flex-shrink:0}#download_list>.download_object .download_info .download_line{display:block}#download_list>.download_object .download_info .download_slim_separator{display:none}#download_list>.download_object .download_info_data{width:100%;margin-left:8px}#download_list>.download_object .download_info_status{margin-left:8px;width:80px}#download_list.slim>.download_object .download_info{display:block}#download_list.slim>.download_object .download_info img{display:none}#download_list.slim>.download_object .download_info .download_line{display:inline-block}#download_list.slim>.download_object .download_info .download_slim_separator{display:inline-block}#download_list.slim>.download_object .download_info_data{width:calc(80% - 16px);display:inline-block;padding-left:0px}#download_list.slim>.download_object .download_info_status{width:20%;display:inline-block;float:right}#download_list::-webkit-scrollbar{width:10px}#download_list::-webkit-scrollbar-track{background:var(--panels-background)}#download_list::-webkit-scrollbar-thumb{background:var(--panels-scroll);border-radius:4px;width:6px;padding:0px 2px}.download_object>.download_bar{display:flex;align-items:center;height:24px}.download_object>.download_bar>.queue_icon{cursor:default;margin-left:8px}.download_object>.download_bar>.progress{margin:0px}#download_tab_container #queue_buttons{position:absolute;top:0;right:0;opacity:1;visibility:visible;transition:all 250ms ease-in-out}#download_tab_container #download_tab_label{opacity:0;visibility:hidden;transition:all 250ms ease-in-out}#download_tab_drag_handler{width:15px;height:100%;position:absolute;background-color:#333;cursor:ew-resize}.reload-button.reload-button--inline{display:inline-block}.reload-button.spin i{animation:spin 500ms infinite ease-out reverse}#home_not_logged_text{margin-bottom:15px}.home_section{border-top:1px solid var(--separator);padding-top:25px;padding-bottom:25px}#main_search .search_section{float:none;padding-top:20px;padding-bottom:20px}#main_search .search_section:not(:first-child){border-top:1px solid var(--separator)}#main_search .top_result_header{display:block;cursor:default;font-size:2rem;text-align:center}.search_header{display:inline-block;cursor:pointer;font-size:1.75rem;margin-bottom:25px}.search_header:not(.top_result_header){transition:color 200ms ease-in-out}.search_header:not(.top_result_header):hover{color:var(--accent-color)}.top_result{display:flex;align-items:center;flex-direction:column}.top_result>.cover_container{width:156px;height:156px}.top_result .info_box{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:15px}.top_result .info_box .primary-text,.top_result .info_box .secondary-text{font-size:18px;text-align:center}.top_result .info_box .primary-text{margin-bottom:5px}.top_result .info_box .secondary-text{margin-bottom:10px}.top_result .info_box .tag{width:40px;text-align:center}.release .primary-text,.release .secondary-text{margin:0px;margin-bottom:4px}.release .secondary-text{opacity:.75;font-size:14px}.release .secondary-text .material-icons{font-size:17px !important;margin-left:4px}.release_grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(156px, 1fr));grid-gap:1rem}.release_grid.firstrow_only{grid-template-rows:1fr;grid-auto-rows:0;grid-row-gap:0px;overflow-y:hidden}#settings_picture{width:125px;height:125px}#logged_in_info{height:250px;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}#log_info{display:flex;flex-direction:column;align-items:center}#open_login_prompt{margin:8px 0px}.inline-flex input{margin-bottom:0px}#spotify_icon{width:24px;height:24px;fill:#1db954;margin-right:15px}.settings-group{display:flex;flex-direction:column;justify-content:center;border-top:1px solid var(--separator);padding-top:20px;padding-bottom:20px}.settings-group>*{margin-bottom:15px}.settings-group__header{font-size:1.5rem;margin-bottom:25px}.settings-group__header.settings-group__header--with-icon{display:inline-flex;align-items:center}.settings-group__header.settings-group__header--with-icon i.material-icons{margin-right:15px}.settings-container{display:flex}.settings-container__half{width:50%}.settings-container__third{width:33%}.settings-container__third--only-checkbox{display:flex;flex-direction:column;justify-content:center;align-items:start}.settings-container__half>*,.settings-container__third>*{margin-bottom:15px}.input_group{margin-bottom:25px}.input_group .input_group_text{margin-bottom:7px}.with_checkbox+.input_group{margin-top:10px}.search_tabcontent,.main_tabcontent,.favorites_tabcontent{display:none}.main_tabcontent h1{margin-bottom:12px}.tab{margin:16px 0px}.tab button{background-color:var(--main-background);color:var(--foreground)}.tab button.active{background-color:var(--accent-color)}.release{display:inline-block;width:156px}.release .cover_container{width:156px;height:156px;margin-bottom:10px}.section-tabs{list-style-type:none;display:flex;margin:16px 0 24px 0;cursor:pointer}.section-tabs__tab{flex:1;font-size:1.2rem;padding:.8em;border-top:3px solid var(--foreground);text-align:center;text-transform:capitalize}.section-tabs__tab.active{color:var(--accent-color);border-top:3px solid var(--accent-color)}#middle_section{background-color:var(--main-background);width:100%;height:100%;min-width:10px}#search{background-color:var(--secondary-background);width:100%;padding:0 1em;margin-bottom:20px;margin-right:32px;display:flex;align-items:center;border:1px solid transparent;transition:border 200ms ease-in-out}#search .search__icon{width:2rem;height:2rem}#search .search__icon i{font-size:2rem;color:var(--foreground)}#search .search__icon i::selection{background:none}#search:focus-within{border:1px solid var(--foreground)}#search #searchbar{height:calc(2rem + 1em);padding-left:.5em;border:0px;border-radius:0px;background-color:var(--secondary-background);color:var(--foreground);font-size:2rem;font-family:"Open Sans";font-weight:300}#search #searchbar:focus{outline:none}#search #searchbar:-webkit-autofill,#search #searchbar:-webkit-autofill:hover,#search #searchbar:-webkit-autofill:focus,#search #searchbar:-webkit-autofill:active{-webkit-box-shadow:0 0 0 calc(2rem + 1em) var(--secondary-background) inset !important;box-shadow:0 0 0 calc(2rem + 1em) var(--secondary-background) inset !important}#content{background-color:var(--main-background);width:100%;height:calc(100% - 93px);overflow-y:scroll;overflow-x:hidden}#content::-webkit-scrollbar{width:10px}#content::-webkit-scrollbar-track{background:var(--main-background)}#content::-webkit-scrollbar-thumb{background:var(--main-scroll);border-radius:4px;width:6px;padding:0px 2px}#container{--container-width: 95%}@media only screen and (min-width: 601px){#container{--container-width: 85%}}@media only screen and (min-width: 993px){#container{--container-width: 70%}}#container{margin:0 auto;max-width:1280px;width:var(--container-width)}.smallmodal-content{--modal-content-width: 95%}@media only screen and (min-width: 601px){.smallmodal-content{--modal-content-width: 85%}}@media only screen and (min-width: 993px){.smallmodal-content{--modal-content-width: 70%}}.progress{position:relative;height:4px;display:block;width:100%;background-color:var(--secondary-background);border-radius:2px;margin:.5rem 0 1rem 0;overflow:hidden}.progress .determinate{position:absolute;top:0;left:0;bottom:0;background-color:var(--accent-color);-webkit-transition:width .3s linear;transition:width .3s linear}.progress .converting{background-color:var(--secondary-color);-webkit-transition:none !important;transition:none !important}.progress .indeterminate{background-color:var(--accent-color)}.progress .indeterminate::before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.progress .indeterminate::after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}#sidebar{display:flex;flex-direction:column;width:48px;height:100%;position:absolute;top:0;left:0;background-color:var(--panels-background);color:var(--panels-text);transition:width 125ms ease-in-out 75ms;z-index:999}#sidebar:hover{width:200px}#sidebar .main_tablinks{transition:all 500ms}#sidebar .main_tablinks.active{background-color:var(--accent-color)}#sidebar .main_tablinks:not(#theme_selector){display:flex;align-items:center;height:55px;cursor:pointer}#sidebar .main_tablinks:not(#theme_selector):hover{background-color:var(--sidebar-link-bg)}#sidebar .main_tablinks:not(#theme_selector):hover .side_icon{color:var(--accent-color)}#sidebar .main_tablinks_text{margin-left:20px;opacity:0;overflow:hidden;text-transform:capitalize;letter-spacing:1.3px;white-space:nowrap;transition:all 50ms ease-in-out 200ms}#sidebar .side_icon{font-size:30px;padding:9px;transition:all 500ms}#sidebar .side_icon--theme{cursor:default}#sidebar .side_icon::selection{background:none}#sidebar:hover .main_tablinks:hover{background:var(--sidebar-link-bg-20);filter:grayscale(0) opacity(1)}#sidebar:hover .main_tablinks.active{background:var(--sidebar-link-bg);filter:grayscale(1)}html[data-theme=purple] #sidebar:hover .main_tablinks.active{background:var(--sidebar-link-bg-20);filter:grayscale(0)}#sidebar:hover .main_tablinks.active:hover{background:var(--sidebar-link-bg-20);filter:grayscale(0)}#sidebar:hover .main_tablinks_text{opacity:1}#sidebar:hover #theme_togglers{opacity:1}#sidebar #theme_selector{margin-top:20px;display:flex;height:50px}#sidebar #theme_togglers{position:relative;display:flex;justify-content:space-evenly;align-items:center;width:100%;opacity:0;transition:all 125ms ease-in-out 75ms}#sidebar .theme_toggler{width:25px;height:25px;border-radius:1000px;border:1px solid var(--separator);cursor:pointer;transition:border 200ms ease-in-out}#sidebar .theme_toggler--active{border-width:3px}#sidebar .theme_toggler--light{background:#fff}#sidebar .theme_toggler--dark{background:#141414}#sidebar .theme_toggler--purple{background:#460eaf}.image_header header{background-position:0% 35%;background-size:cover;padding:220px 24px 8px;border-radius:8px 8px 0px 0px}.image_header header h1,.image_header header h2{margin:0px}.image_header header h2{font-size:18px;margin-bottom:12px}.preview_controls{opacity:0;display:block;background:rgba(0,0,0,.5);width:56px;height:56px;text-align:center;line-height:56px;position:absolute;border-radius:5px;top:0;right:0;transition:opacity 200ms ease-in-out}.preview_playlist_controls{cursor:pointer}.toast-icon{display:inline-block;margin-right:8px}.circle-loader{display:inline-block;border:2px solid var(--accent-color);border-radius:50%;border-bottom:2px solid var(--secondary-background);width:16px;height:16px;animation:spin 1s linear infinite}.toastify{display:flex;align-items:center;box-shadow:0 3px 6px -1px rgba(0,0,0,.12),0 10px 36px -4px rgba(0,0,0,.3);background:var(--toast-background);color:var(--toast-text)}.toastify .circle-loader{border-bottom-color:var(--toast-secondary)} +html{--main-scroll: hsl(0, 0%, 33%);--panels-scroll: hsl(180, 2%, 17%);--tag-background: hsl(210, 100%, 38%);--tag-text: hsl(0, 0%, 100%);--toast-background: hsla(0, 0%, 0%, 0.867);--toast-secondary: hsla(0, 0%, 100%, 0.133);--toast-text: hsla(0, 0%, 100%, 0.871);--separator: hsl(0, 0%, 50%)}html[data-theme=light]{--main-background: hsl(0, 0%, 100%);--secondary-background: hsl(0, 0%, 93%);--foreground: hsl(0, 0%, 20%);--foreground-inverted: hsl(0, 0%, 93%);--accent-color: hsl(210, 100%, 52%);--secondary-color: hsl(46, 100%, 57%);--panels-background: hsl(210, 3%, 14%);--panels-text: hsl(0, 0%, 100%);--accent-text: hsl(0, 0%, 0%);--sidebar-link-bg: hsl(0, 0%, 24%);--sidebar-link-bg-20: hsla(0, 0%, 24%, 0.2);--icon-hover: var(--accent-color);--table-bg: hsl(0, 0%, 100%);--table-zebra: hsl(0, 0%, 90%);--table-highlight: hsl(0, 0%, 84%)}html[data-theme=dark]{--main-background: hsl(0, 0%, 8%);--secondary-background: hsl(0, 0%, 14%);--foreground: hsl(0, 0%, 93%);--foreground-inverted: hsl(0, 0%, 20%);--accent-color: hsl(210, 100%, 52%);--secondary-color: hsl(46, 100%, 57%);--panels-background: hsl(0, 0%, 10%);--panels-text: hsl(0, 0%, 100%);--accent-text: hsl(0, 0%, 87%);--sidebar-link-bg: hsl(0, 0%, 24%);--sidebar-link-bg-20: hsla(0, 0%, 24%, 0.2);--icon-hover: var(--accent-color);--table-bg: hsl(0, 0%, 8%);--table-zebra: hsl(0, 0%, 14%);--table-highlight: hsl(0, 0%, 20%)}html[data-theme=purple]{--main-background: hsl(261, 74%, 6%);--secondary-background: hsl(257, 61%, 10%);--foreground: hsl(0, 0%, 93%);--foreground-inverted: hsl(258, 62%, 8%);--accent-color: hsl(261, 85%, 37%);--secondary-color: hsl(46, 100%, 57%);--panels-background: hsl(257, 70%, 9%);--panels-text: hsl(0, 0%, 100%);--accent-text: hsl(0, 0%, 87%);--sidebar-link-bg: hsl(257, 70%, 17%);--sidebar-link-bg-20: hsla(257, 70%, 17%, 0.2);--icon-hover: hsl(186, 44%, 54%);--table-bg: hsl(261, 74%, 6%);--table-zebra: hsl(257, 61%, 10%);--table-highlight: hsl(257, 66%, 27%)}html{height:100vh}body{margin:0px;width:100%;height:100%;font-family:"Open Sans";overflow:hidden;background:var(--main-background);color:var(--foreground)}*{margin:0;padding:0;box-sizing:border-box}:root{font-size:16px}table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}table{border-collapse:collapse;border-spacing:0}.lds-ring{display:inline-block;position:relative;width:80px;height:80px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;border-color:#fff transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-0.45s}.lds-ring div:nth-child(2){animation-delay:-0.3s}.lds-ring div:nth-child(3){animation-delay:-0.15s}@keyframes lds-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}input[type=text],input[type=password],input[type=number],input[type=search]{-webkit-appearance:none;appearance:none;width:calc(100% - 16px);border:0px solid #000;line-height:36px;padding:0px 8px;border-radius:4px;background-color:var(--secondary-background);color:var(--foreground);margin-bottom:8px}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;width:28px;height:28px;background-color:var(--foreground);-webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 0 24 24' width='28'%3E%%3Cpath fill='%23ffffff' d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z'/%3E3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 0 24 24' width='28'%3E%%3Cpath fill='%23ffffff' d='M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12 19 15.59z'/%3E3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E")}input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:none;border:2px solid gray;opacity:.5;border-radius:2px;padding:7px;margin:3px;display:inline-block;position:relative}input[type=checkbox]:checked{opacity:1;background-color:var(--accent-color);background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18' viewBox='3 3 18 18' width='18'%3E%3Cpath fill='%23ffffff' d='M 10,17 5,12 6.41,10.59 10,14.17 17.59,6.58 19,8 Z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");background-position:center center;border:0px solid var(--accent-color);border-radius:2px;padding:9px;margin:3px;color:var(--accent-text)}select{-webkit-appearance:none;appearance:none;width:100%;border:0px solid #000;line-height:36px;padding:0px 40px 0px 8px;border-radius:4px;background-color:var(--secondary-background);background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath style='fill%3A%23000000%3Bfill-opacity%3A0.25' d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:24px;background-position:calc(100% - 8px) center;background-clip:border-box;color:var(--foreground);margin-bottom:8px}p{word-break:break-word}button{min-width:64px;color:var(--accent-text);position:relative;background-color:var(--accent-color);border:1px solid transparent;border-radius:4px;font-family:inherit;font-weight:600;font-size:14px;padding:0px 8px;margin-right:8px;height:36px;text-transform:uppercase;cursor:pointer;transition:transform 50ms ease-in-out,background-color 200ms ease}button[disabled]{background-color:var(--secondary-background);color:var(--foreground);opacity:.75}button.selective{background-color:var(--main-background);color:var(--foreground)}button.selective.active{background-color:var(--accent-color);color:var(--accent-text)}button.with_icon{display:flex;align-items:center}button.with_icon i{margin-left:8px}button.only_icon{min-width:24px;width:48px;margin:0px 0px 0px 8px;padding:0px 4px}button.only_icon i{padding:6px 0px}button:active{background-color:var(--accent-color);transform:scale(0.98)}button:hover{background:none;border:1px solid var(--accent-color)}img.rounded{border-radius:5px}img.circle{border-radius:50%}i.disabled{opacity:.5;cursor:default}i.explicit_icon{color:#ff382e;margin-right:.3125em;margin-left:-3px}i.explicit_icon.explicit_icon--right{margin-left:.3125em;margin-right:0px}span.tag{background-color:var(--tag-background);border-radius:2px;color:var(--tag-text);display:inline-block;font-size:10px;padding:3px 6px;text-transform:capitalize}a{color:#1e90ff}a.single-cover{position:relative;display:inline-block;color:#fff}a:visited{color:#1e90ff}.clickable{cursor:pointer !important}.table--tracklist .clickable:hover,.table--charts .clickable:hover{text-decoration:underline}.fixed_footer footer{position:sticky;display:flex;align-items:center;flex-direction:row;justify-content:flex-end;background-color:var(--main-background);bottom:0px;height:64px;width:100%;margin-top:24px}.fab{width:56px;height:56px;border-radius:28px;display:inline-block;background-color:var(--accent-color);color:var(--accent-text);cursor:pointer}.fab i{font-size:24px;padding:16px}.with_checkbox{display:flex;align-items:center}.with_checkbox [type=checkbox]{cursor:pointer}.with_checkbox .checkbox_text{margin-left:10px;cursor:pointer}.with_checkbox .checkbox_text::selection{background:none}.loading_placeholder{display:flex;justify-content:center;align-items:center;flex-direction:column;flex:1;height:100%}.loading_placeholder.loading_placeholder--hidden{display:none}.loading_placeholder__text{margin-bottom:20px}.loading_placeholder#search_placeholder{height:calc(100% - 93px)}.loading_placeholder#start_app_placeholder{position:absolute;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);z-index:1000}.coverart{background-color:var(--secondary-background)}.cover_container{position:relative}.cover_container .coverart{opacity:1;display:block;width:100%;height:auto;transition:.5s ease;backface-visibility:hidden}.cover_container .download_overlay{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);text-align:center}.cover_container .download_overlay i{background-color:#000;color:#fff;border-radius:50%;padding:10px;cursor:pointer}.cover_container:hover .coverart{opacity:.75}.cover_container:hover .download_overlay{opacity:1}#main_content{margin-left:48px;width:calc(100% - 48px);height:100%;display:flex}.inline-flex{display:flex;align-items:center}.inline-flex .right{margin-left:auto}.right{float:right}.hide{display:none !important}.table{width:100%;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px}.table tbody tr:not(.table__row-no-highlight):hover{background:var(--table-highlight);cursor:default}.table tr{background:var(--table-bg);transition:background-color 175ms ease-in-out}.table tr:nth-child(even){background:var(--table-zebra);transition:background-color 175ms ease-in-out}.table tr:not(:last-child){border-bottom:1px solid var(--table-highlight)}.table td,.table th{vertical-align:middle}.table th .sortable{-webkit-user-select:none;user-select:none}.table th .sort-asc::after,.table th .sort-desc::after{font-size:.7em;padding-left:3px;line-height:.7em}.table th .sort-asc::after{content:"▲"}.table th .sort-desc::after{content:"▼"}.table td{padding:7px 10px}.table td:first-child{padding:7px 10px 7px 20px}.table td:last-child{padding:7px 20px 7px 10px}.table td img{vertical-align:middle}.table--tracks{border-collapse:collapse}.table--tracks thead{border-bottom:2px solid var(--table-highlight)}.table--tracks th{padding-bottom:10px;height:45px}.table--tracks td{height:35px}.table--tracks td.breakline{word-break:break-word}.table--tracks tr:first-child td:first-child{border-top-left-radius:3px}.table--tracks tr:first-child td:last-child{border-top-right-radius:3px}.table--tracks tr:last-child td:first-child{border-bottom-left-radius:3px}.table--tracks tr:last-child td:last-child{border-bottom-right-radius:3px}.table--tracklist thead{border-bottom:2px solid var(--table-highlight);text-transform:capitalize}.table--tracklist th{height:45px;padding:7px 10px}.table--tracklist th:first-child{padding:7px 10px 7px 20px}.table--tracklist th:last-child{padding:7px 20px 7px 10px}.table--tracklist td{height:35px}.table--charts td{height:35px}.table .table__icon{box-sizing:content-box;width:32px}.table .table__icon--big{width:48px;text-align:center}.table .table__cell--x-small{width:.32%}.table .table__cell--small{width:3.2%}.table .table__cell--medium{width:28.7%}.table .table__cell--large{width:50%}.table .table__cell--left{text-align:left}.table .table__cell--center{text-align:center}.table .table__cell--right{text-align:right}.table .table__cell--download{cursor:pointer}.table .table__cell--download i.material-icons{transition:color 175ms ease-in-out}.table .table__cell--download:hover i.material-icons{color:var(--icon-hover)}.table .table__cell-content.table__cell-content--vertical-center{display:flex;align-items:center}.track_row>td>img{width:32px;height:32px}.track_row>td>a>img{width:56px;height:56px}.top-tracks-position{padding:12px;text-align:center;cursor:default}.page_heading{font-size:2.5rem;margin-bottom:35px}.page_heading--capitalize{text-transform:capitalize}.page_heading--uppercase{text-transform:uppercase}.section_heading{font-size:1.75rem;margin-bottom:25px}#about_tab p{margin-bottom:8px}#about_tab h3{margin:8px 0px}#about_tab hr{margin:12px 0px}.charts_grid .release .coverart{width:156px;height:156px}#download_tab_container{height:100%;background-color:var(--panels-background);color:var(--panels-text);display:block;flex-direction:column}#download_tab_container.tab_hidden{width:32px}#download_tab_container.tab_hidden #toggle_download_tab{margin-left:4px}#download_tab_container.tab_hidden #toggle_download_tab::before{font-family:"Material Icons";font-style:normal;font-weight:400;content:"chevron_left"}#download_tab_container.tab_hidden #download_tab_drag_handler{display:none}#download_tab_container.tab_hidden #queue_buttons{opacity:0;visibility:hidden}#download_tab_container.tab_hidden #download_list{display:none}#download_tab_container.tab_hidden #download_tab_label{opacity:1;visibility:visible}#download_tab_container.tab_hidden::after{content:attr(data-label);display:flex;align-items:center;text-transform:capitalize;writing-mode:vertical-rl;line-height:32px}#toggle_download_tab{width:25px;height:25px;margin-left:20px}#toggle_download_tab::before{font-family:"Material Icons";font-style:normal;font-weight:400;content:"chevron_right"}.download_bar_icon{cursor:pointer;font-size:24px;margin:4px}#download_list{width:100%;height:calc(100% - 32px);padding:0px 8px 0px 28px;overflow-y:scroll}#download_list>.download_object{padding-bottom:8px}#download_list>.download_object .download_info{display:flex;align-items:center}#download_list>.download_object .download_info img{width:75px;height:75px;display:inline-block;flex-shrink:0}#download_list>.download_object .download_info .download_line{display:block}#download_list>.download_object .download_info .download_slim_separator{display:none}#download_list>.download_object .download_info_data{width:100%;margin-left:8px}#download_list>.download_object .download_info_status{margin-left:8px;width:80px}#download_list.slim>.download_object .download_info{display:block}#download_list.slim>.download_object .download_info img{display:none}#download_list.slim>.download_object .download_info .download_line{display:inline-block}#download_list.slim>.download_object .download_info .download_slim_separator{display:inline-block}#download_list.slim>.download_object .download_info_data{width:calc(80% - 16px);display:inline-block;padding-left:0px}#download_list.slim>.download_object .download_info_status{width:20%;display:inline-block;float:right}#download_list::-webkit-scrollbar{width:10px}#download_list::-webkit-scrollbar-track{background:var(--panels-background)}#download_list::-webkit-scrollbar-thumb{background:var(--panels-scroll);border-radius:4px;width:6px;padding:0px 2px}.download_object>.download_bar{display:flex;align-items:center;height:24px}.download_object>.download_bar>.queue_icon{cursor:default;margin-left:8px}.download_object>.download_bar>.progress{margin:0px}#download_tab_container #queue_buttons{position:absolute;top:0;right:0;opacity:1;visibility:visible;transition:all 250ms ease-in-out}#download_tab_container #download_tab_label{opacity:0;visibility:hidden;transition:all 250ms ease-in-out}#download_tab_drag_handler{width:15px;height:100%;position:absolute;background-color:#333;cursor:ew-resize}.reload-button.reload-button--inline{display:inline-block}.reload-button.spin i{animation:spin 500ms infinite ease-out reverse}#home_not_logged_text{margin-bottom:15px}.home_section{border-top:1px solid var(--separator);padding-top:25px;padding-bottom:25px}#main_search .search_section{float:none;padding-top:20px;padding-bottom:20px}#main_search .search_section:not(:first-child){border-top:1px solid var(--separator)}#main_search .top_result_header{display:block;cursor:default;font-size:2rem;text-align:center}.search_header{display:inline-block;cursor:pointer;font-size:1.75rem;margin-bottom:25px}.search_header:not(.top_result_header){transition:color 200ms ease-in-out}.search_header:not(.top_result_header):hover{color:var(--accent-color)}.top_result{display:flex;align-items:center;flex-direction:column}.top_result>.cover_container{width:156px;height:156px}.top_result .info_box{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:15px}.top_result .info_box .primary-text,.top_result .info_box .secondary-text{font-size:18px;text-align:center}.top_result .info_box .primary-text{margin-bottom:5px}.top_result .info_box .secondary-text{margin-bottom:10px}.top_result .info_box .tag{width:40px;text-align:center}.release .primary-text,.release .secondary-text{margin:0px;margin-bottom:4px}.release .secondary-text{opacity:.75;font-size:14px}.release .secondary-text .material-icons{font-size:17px !important;margin-left:4px}.release_grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(156px, 1fr));grid-gap:1rem}.release_grid.firstrow_only{grid-template-rows:1fr;grid-auto-rows:0;grid-row-gap:0px;overflow-y:hidden}#settings_picture{width:125px;height:125px}#logged_in_info{height:250px;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center}#log_info{display:flex;flex-direction:column;align-items:center}#open_login_prompt{margin:8px 0px}.inline-flex input{margin-bottom:0px}#spotify_icon{width:24px;height:24px;fill:#1db954;margin-right:15px}.settings-group{display:flex;flex-direction:column;justify-content:center;border-top:1px solid var(--separator);padding-top:20px;padding-bottom:20px}.settings-group>*{margin-bottom:15px}.settings-group__header{font-size:1.5rem;margin-bottom:25px}.settings-group__header.settings-group__header--with-icon{display:inline-flex;align-items:center}.settings-group__header.settings-group__header--with-icon i.material-icons{margin-right:15px}.settings-container{display:flex}.settings-container__half{width:50%}.settings-container__third{width:33%}.settings-container__third--only-checkbox{display:flex;flex-direction:column;justify-content:center;align-items:start}.settings-container__half>*,.settings-container__third>*{margin-bottom:15px}.input_group{margin-bottom:25px}.input_group .input_group_text{margin-bottom:7px}.with_checkbox+.input_group{margin-top:10px}.main_tabcontent h1{margin-bottom:12px}.tab{margin:16px 0px}.tab button{background-color:var(--main-background);color:var(--foreground)}.tab button.active{background-color:var(--accent-color)}.release{display:inline-block;width:156px}.release .cover_container{width:156px;height:156px;margin-bottom:10px}.section-tabs{list-style-type:none;display:flex;margin:16px 0 24px 0;cursor:pointer}.section-tabs__tab{flex:1;font-size:1.2rem;padding:.8em;border-top:3px solid var(--foreground);text-align:center;text-transform:capitalize}.section-tabs__tab.active{color:var(--accent-color);border-top:3px solid var(--accent-color)}#middle_section{background-color:var(--main-background);width:100%;height:100%;min-width:10px}#search{background-color:var(--secondary-background);width:100%;padding:0 1em;margin-bottom:20px;margin-right:32px;display:flex;align-items:center;border:1px solid transparent;transition:border 200ms ease-in-out}#search .search__icon{width:2rem;height:2rem}#search .search__icon i{font-size:2rem;color:var(--foreground)}#search .search__icon i::selection{background:none}#search:focus-within{border:1px solid var(--foreground)}#search #searchbar{height:calc(2rem + 1em);padding-left:.5em;border:0px;border-radius:0px;background-color:var(--secondary-background);color:var(--foreground);font-size:2rem;font-family:"Open Sans";font-weight:300}#search #searchbar:focus{outline:none}#search #searchbar:-webkit-autofill,#search #searchbar:-webkit-autofill:hover,#search #searchbar:-webkit-autofill:focus,#search #searchbar:-webkit-autofill:active{-webkit-box-shadow:0 0 0 calc(2rem + 1em) var(--secondary-background) inset !important;box-shadow:0 0 0 calc(2rem + 1em) var(--secondary-background) inset !important}#content{background-color:var(--main-background);width:100%;height:calc(100% - 93px);overflow-y:scroll;overflow-x:hidden}#content::-webkit-scrollbar{width:10px}#content::-webkit-scrollbar-track{background:var(--main-background)}#content::-webkit-scrollbar-thumb{background:var(--main-scroll);border-radius:4px;width:6px;padding:0px 2px}#container{--container-width: 95%}@media only screen and (min-width: 601px){#container{--container-width: 85%}}@media only screen and (min-width: 993px){#container{--container-width: 70%}}#container{margin:0 auto;max-width:1280px;width:var(--container-width)}.smallmodal-content{--modal-content-width: 95%}@media only screen and (min-width: 601px){.smallmodal-content{--modal-content-width: 85%}}@media only screen and (min-width: 993px){.smallmodal-content{--modal-content-width: 70%}}.progress{position:relative;height:4px;display:block;width:100%;background-color:var(--secondary-background);border-radius:2px;margin:.5rem 0 1rem 0;overflow:hidden}.progress .determinate{position:absolute;top:0;left:0;bottom:0;background-color:var(--accent-color);-webkit-transition:width .3s linear;transition:width .3s linear}.progress .converting{background-color:var(--secondary-color);-webkit-transition:none !important;transition:none !important}.progress .indeterminate{background-color:var(--accent-color)}.progress .indeterminate::before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.progress .indeterminate::after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;-webkit-animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;-webkit-animation-delay:1.15s;animation-delay:1.15s}#sidebar{display:flex;flex-direction:column;width:48px;height:100%;position:absolute;top:0;left:0;background-color:var(--panels-background);color:var(--panels-text);transition:width 125ms ease-in-out 75ms;z-index:999}#sidebar:hover{width:200px}#sidebar .main_tablinks{transition:all 500ms}#sidebar .main_tablinks.active{background-color:var(--accent-color)}#sidebar .main_tablinks:not(#theme_selector){display:flex;align-items:center;height:55px;cursor:pointer}#sidebar .main_tablinks:not(#theme_selector):hover{background-color:var(--sidebar-link-bg)}#sidebar .main_tablinks:not(#theme_selector):hover .side_icon{color:var(--accent-color)}#sidebar .main_tablinks_text{margin-left:20px;opacity:0;overflow:hidden;text-transform:capitalize;letter-spacing:1.3px;white-space:nowrap;transition:all 50ms ease-in-out 200ms}#sidebar .side_icon{font-size:30px;padding:9px;transition:all 500ms}#sidebar .side_icon--theme{cursor:default}#sidebar .side_icon::selection{background:none}#sidebar:hover .main_tablinks:hover{background:var(--sidebar-link-bg-20);filter:grayscale(0) opacity(1)}#sidebar:hover .main_tablinks.active{background:var(--sidebar-link-bg);filter:grayscale(1)}html[data-theme=purple] #sidebar:hover .main_tablinks.active{background:var(--sidebar-link-bg-20);filter:grayscale(0)}#sidebar:hover .main_tablinks.active:hover{background:var(--sidebar-link-bg-20);filter:grayscale(0)}#sidebar:hover .main_tablinks_text{opacity:1}#sidebar:hover #theme_togglers{opacity:1}#sidebar #theme_selector{margin-top:20px;display:flex;height:50px}#sidebar #theme_togglers{position:relative;display:flex;justify-content:space-evenly;align-items:center;width:100%;opacity:0;transition:all 125ms ease-in-out 75ms}#sidebar .theme_toggler{width:25px;height:25px;border-radius:1000px;border:1px solid var(--separator);cursor:pointer;transition:border 200ms ease-in-out}#sidebar .theme_toggler--active{border-width:3px}#sidebar .theme_toggler--light{background:#fff}#sidebar .theme_toggler--dark{background:#141414}#sidebar .theme_toggler--purple{background:#460eaf}.image_header header{background-position:0% 35%;background-size:cover;padding:220px 24px 8px;border-radius:8px 8px 0px 0px}.image_header header h1,.image_header header h2{margin:0px}.image_header header h2{font-size:18px;margin-bottom:12px}.preview_controls{opacity:0;display:block;background:rgba(0,0,0,.5);width:56px;height:56px;text-align:center;line-height:56px;position:absolute;border-radius:5px;top:0;right:0;transition:opacity 200ms ease-in-out}.preview_playlist_controls{cursor:pointer}.toast-icon{display:inline-block;margin-right:8px}.circle-loader{display:inline-block;border:2px solid var(--accent-color);border-radius:50%;border-bottom:2px solid var(--secondary-background);width:16px;height:16px;animation:spin 1s linear infinite}.toastify{display:flex;align-items:center;box-shadow:0 3px 6px -1px rgba(0,0,0,.12),0 10px 36px -4px rgba(0,0,0,.3);background:var(--toast-background);color:var(--toast-text)}.toastify .circle-loader{border-bottom-color:var(--toast-secondary)} diff --git a/public/js/bundle.js b/public/js/bundle.js index 373f278..9fa6026 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -9,12 +9,12 @@ var t=Object.freeze({});function e(t){return null==t}function n(t){return null!= * (c) 2020 Evan You * @license MIT */ -function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(oo=t)}uo.state.get=function(){return this._vm._data.$$state},uo.state.set=function(t){},co.prototype.commit=function(t,e,n){var a=this,i=vo(t,e,n),r=i.type,s=i.payload,o={type:r,payload:s},l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(o,a.state)})))},co.prototype.dispatch=function(t,e){var n=this,a=vo(t,e),i=a.type,r=a.payload,s={type:i,payload:r},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(t){}var l=o.length>1?Promise.all(o.map((function(t){return t(r)}))):o[0](r);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(t){}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(t){}e(t)}))}))}},co.prototype.subscribe=function(t,e){return po(t,this._subscribers,e)},co.prototype.subscribeAction=function(t,e){return po("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},co.prototype.watch=function(t,e,n){var a=this;return this._watcherVM.$watch((function(){return t(a.state,a.getters)}),e,n)},co.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},co.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),mo(this,this.state,t,this._modules.get(t),n.preserveState),fo(this,this.state)},co.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=go(e.state,t.slice(0,-1));oo.delete(n,t[t.length-1])})),ho(this)},co.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},co.prototype.hotUpdate=function(t){this._modules.update(t),ho(this,!0)},co.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(co.prototype,uo);var yo=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;n[a]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var a=xo(this.$store,"mapState",t);if(!a)return;e=a.context.state,n=a.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[a].vuex=!0})),n})),_o=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;n[a]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var a=this.$store.commit;if(t){var r=xo(this.$store,"mapMutations",t);if(!r)return;a=r.context.commit}return"function"==typeof i?i.apply(this,[a].concat(e)):a.apply(this.$store,[i].concat(e))}})),n})),ko=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;i=t+i,n[a]=function(){if(!t||xo(this.$store,"mapGetters",t))return this.$store.getters[i]},n[a].vuex=!0})),n})),wo=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;n[a]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var a=this.$store.dispatch;if(t){var r=xo(this.$store,"mapActions",t);if(!r)return;a=r.context.dispatch}return"function"==typeof i?i.apply(this,[a].concat(e)):a.apply(this.$store,[i].concat(e))}})),n}));function Ao(t){return function(t){return Array.isArray(t)||ao(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function Co(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function xo(t,e,n){return t._modulesNamespaceMap[n]}function To(t,e,n){var a=n?t.groupCollapsed:t.group;try{a.call(t,e)}catch(n){t.log(e)}}function So(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function zo(){var t=new Date;return" @ "+Mo(t.getHours(),2)+":"+Mo(t.getMinutes(),2)+":"+Mo(t.getSeconds(),2)+"."+Mo(t.getMilliseconds(),3)}function Mo(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var Do={Store:co,install:bo,version:"3.5.1",mapState:yo,mapMutations:_o,mapGetters:ko,mapActions:wo,createNamespacedHelpers:function(t){return{mapState:yo.bind(null,t),mapGetters:ko.bind(null,t),mapMutations:_o.bind(null,t),mapActions:wo.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var a=t.transformer;void 0===a&&(a=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var r=t.actionFilter;void 0===r&&(r=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var o=t.logMutations;void 0===o&&(o=!0);var l=t.logActions;void 0===l&&(l=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var d=eo(t.state);void 0!==c&&(o&&t.subscribe((function(t,r){var s=eo(r);if(n(t,d,s)){var o=zo(),l=i(t),u="mutation "+t.type+o;To(c,u,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",a(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",a(s)),So(c)}d=s})),l&&t.subscribeAction((function(t,n){if(r(t,n)){var a=zo(),i=s(t),o="action "+t.type+a;To(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),So(c)}})))}}};let $o=!1;var No={state:{albums:{data:[],total:0},artists:{data:[],total:0},playlists:{data:[],total:0},podcasts:{data:[],total:0},tracks:{data:[],total:0}},actions:{cacheHomeData({commit:t},e){$o||(t("SET_HOME_ALBUMS",e.albums),t("SET_HOME_ARTISTS",e.artists),t("SET_HOME_PLAYLISTS",e.playlists),t("SET_HOME_PODCASTS",e.podcasts),t("SET_HOME_TRACKS",e.tracks),$o=!0)}},getters:{getHomeData:t=>t,getHomeAlbums:t=>t.albums,getHomeArtists:t=>t.artists,getHomePlaylists:t=>t.playlists,getHomePodcasts:t=>t.podcasts,getHomeTracks:t=>t.tracks},mutations:{SET_HOME_ALBUMS:(t,e)=>{kn.set(t.albums,"data",e.data),t.albums.total=e.total},SET_HOME_ARTISTS:(t,e)=>{kn.set(t.artists,"data",e.data),t.artists.total=e.total},SET_HOME_PLAYLISTS:(t,e)=>{kn.set(t.playlists,"data",e.data),t.playlists.total=e.total},SET_HOME_PODCASTS:(t,e)=>{kn.set(t.podcasts,"data",e.data),t.podcasts.total=e.total},SET_HOME_TRACKS:(t,e)=>{kn.set(t.tracks,"data",e.data),t.tracks.total=e.total}}};var Po={state:{},actions:{setSettings({commit:t},e){for(const n in e){if(!e.hasOwnProperty(n))return;t("SET_UNKNOWN_SETTING",{settingName:n,settingValue:e[n]})}}},getters:{getSettings:t=>t},mutations:{SET_UNKNOWN_SETTING(t,e){kn.set(t,e.settingName,e.settingValue)}}};var Lo={state:{},actions:{setDefaultSettings({commit:t},e){for(const n in e){if(!e.hasOwnProperty(n))return;t("SET_UNKNOWN_DEFAULT_SETTING",{settingName:n,settingValue:e[n]})}}},getters:{getDefaultSettings:t=>t},mutations:{SET_UNKNOWN_DEFAULT_SETTING(t,e){kn.set(t,e.settingName,e.settingValue)}}};var Ro={state:{clientId:"",clientSecret:""},getters:{getCredentials:t=>t},actions:{setCredentials({commit:t},e){t("SET_CLIENT_ID",e.clientId),t("SET_CLIENT_SECRET",e.clientSecret)}},mutations:{SET_CLIENT_ID(t,e){t.clientId=e},SET_CLIENT_SECRET(t,e){t.clientSecret=e}}};kn.use(Do);var Eo=new Do.Store({modules:{home:No,settings:Po,defaultSettings:Lo,credentials:Ro},strict:!1});const jo=io.connect(window.location.href);jo.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")}),jo.on("init_settings",(t,e,n)=>{console.log(e),Eo.dispatch("setSettings",t),Eo.dispatch("setDefaultSettings",n),Eo.dispatch("setCredentials",e)}),jo.on("init_home",t=>{Eo.dispatch("cacheHomeData",t)});var Io=new kn; +function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(oo=t)}uo.state.get=function(){return this._vm._data.$$state},uo.state.set=function(t){},co.prototype.commit=function(t,e,n){var a=this,i=vo(t,e,n),r=i.type,s=i.payload,o={type:r,payload:s},l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(o,a.state)})))},co.prototype.dispatch=function(t,e){var n=this,a=vo(t,e),i=a.type,r=a.payload,s={type:i,payload:r},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(t){}var l=o.length>1?Promise.all(o.map((function(t){return t(r)}))):o[0](r);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(t){}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(t){}e(t)}))}))}},co.prototype.subscribe=function(t,e){return po(t,this._subscribers,e)},co.prototype.subscribeAction=function(t,e){return po("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},co.prototype.watch=function(t,e,n){var a=this;return this._watcherVM.$watch((function(){return t(a.state,a.getters)}),e,n)},co.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},co.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),mo(this,this.state,t,this._modules.get(t),n.preserveState),fo(this,this.state)},co.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=go(e.state,t.slice(0,-1));oo.delete(n,t[t.length-1])})),ho(this)},co.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},co.prototype.hotUpdate=function(t){this._modules.update(t),ho(this,!0)},co.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(co.prototype,uo);var yo=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;n[a]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var a=xo(this.$store,"mapState",t);if(!a)return;e=a.context.state,n=a.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[a].vuex=!0})),n})),_o=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;n[a]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var a=this.$store.commit;if(t){var r=xo(this.$store,"mapMutations",t);if(!r)return;a=r.context.commit}return"function"==typeof i?i.apply(this,[a].concat(e)):a.apply(this.$store,[i].concat(e))}})),n})),ko=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;i=t+i,n[a]=function(){if(!t||xo(this.$store,"mapGetters",t))return this.$store.getters[i]},n[a].vuex=!0})),n})),wo=Co((function(t,e){var n={};return Ao(e).forEach((function(e){var a=e.key,i=e.val;n[a]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var a=this.$store.dispatch;if(t){var r=xo(this.$store,"mapActions",t);if(!r)return;a=r.context.dispatch}return"function"==typeof i?i.apply(this,[a].concat(e)):a.apply(this.$store,[i].concat(e))}})),n}));function Ao(t){return function(t){return Array.isArray(t)||ao(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function Co(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function xo(t,e,n){return t._modulesNamespaceMap[n]}function To(t,e,n){var a=n?t.groupCollapsed:t.group;try{a.call(t,e)}catch(n){t.log(e)}}function So(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function zo(){var t=new Date;return" @ "+Mo(t.getHours(),2)+":"+Mo(t.getMinutes(),2)+":"+Mo(t.getSeconds(),2)+"."+Mo(t.getMilliseconds(),3)}function Mo(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var Do={Store:co,install:bo,version:"3.5.1",mapState:yo,mapMutations:_o,mapGetters:ko,mapActions:wo,createNamespacedHelpers:function(t){return{mapState:yo.bind(null,t),mapGetters:ko.bind(null,t),mapMutations:_o.bind(null,t),mapActions:wo.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var a=t.transformer;void 0===a&&(a=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var r=t.actionFilter;void 0===r&&(r=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var o=t.logMutations;void 0===o&&(o=!0);var l=t.logActions;void 0===l&&(l=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var d=eo(t.state);void 0!==c&&(o&&t.subscribe((function(t,r){var s=eo(r);if(n(t,d,s)){var o=zo(),l=i(t),u="mutation "+t.type+o;To(c,u,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",a(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",a(s)),So(c)}d=s})),l&&t.subscribeAction((function(t,n){if(r(t,n)){var a=zo(),i=s(t),o="action "+t.type+a;To(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),So(c)}})))}}};let $o=!1;var No={state:{albums:{data:[],total:0},artists:{data:[],total:0},playlists:{data:[],total:0},podcasts:{data:[],total:0},tracks:{data:[],total:0}},actions:{cacheHomeData({commit:t},e){$o||(t("SET_HOME_ALBUMS",e.albums),t("SET_HOME_ARTISTS",e.artists),t("SET_HOME_PLAYLISTS",e.playlists),t("SET_HOME_PODCASTS",e.podcasts),t("SET_HOME_TRACKS",e.tracks),$o=!0)}},getters:{getHomeData:t=>t,getHomeAlbums:t=>t.albums,getHomeArtists:t=>t.artists,getHomePlaylists:t=>t.playlists,getHomePodcasts:t=>t.podcasts,getHomeTracks:t=>t.tracks},mutations:{SET_HOME_ALBUMS:(t,e)=>{kn.set(t.albums,"data",e.data),t.albums.total=e.total},SET_HOME_ARTISTS:(t,e)=>{kn.set(t.artists,"data",e.data),t.artists.total=e.total},SET_HOME_PLAYLISTS:(t,e)=>{kn.set(t.playlists,"data",e.data),t.playlists.total=e.total},SET_HOME_PODCASTS:(t,e)=>{kn.set(t.podcasts,"data",e.data),t.podcasts.total=e.total},SET_HOME_TRACKS:(t,e)=>{kn.set(t.tracks,"data",e.data),t.tracks.total=e.total}}};var Po={state:{},actions:{setSettings({commit:t},e){for(const n in e){if(!e.hasOwnProperty(n))return;t("SET_UNKNOWN_SETTING",{settingName:n,settingValue:e[n]})}}},getters:{getSettings:t=>t},mutations:{SET_UNKNOWN_SETTING(t,e){kn.set(t,e.settingName,e.settingValue)}}};var Lo={state:{},actions:{setDefaultSettings({commit:t},e){for(const n in e){if(!e.hasOwnProperty(n))return;t("SET_UNKNOWN_DEFAULT_SETTING",{settingName:n,settingValue:e[n]})}}},getters:{getDefaultSettings:t=>t},mutations:{SET_UNKNOWN_DEFAULT_SETTING(t,e){kn.set(t,e.settingName,e.settingValue)}}};var Ro={state:{clientId:"",clientSecret:""},getters:{getCredentials:t=>t},actions:{setCredentials({commit:t},e){t("SET_CLIENT_ID",e.clientId),t("SET_CLIENT_SECRET",e.clientSecret)}},mutations:{SET_CLIENT_ID(t,e){t.clientId=e},SET_CLIENT_SECRET(t,e){t.clientSecret=e}}};let Eo=!1;var jo={state:{list:[]},getters:{getCharts:t=>t.list},actions:{cacheCharts({commit:t},e){Eo||(e.forEach((e,n)=>{t("SET_UNKNOWN_CHART",{index:n,chartObj:e})}),Eo=!0)}},mutations:{SET_UNKNOWN_CHART(t,e){kn.set(t.list,e.index,e.chartObj)}}};var Io={state:{albums:[],artists:[],playlists:[],tracks:[]},actions:{setFavorites({commit:t,dispatch:e},n){n.playlists.forEach((e,n)=>{t("SET_FAVORITES_PLAYLISTS",{index:n,data:e})}),n.albums.forEach((e,n)=>{t("SET_FAVORITES_ALBUMS",{index:n,data:e})}),n.artists.forEach((e,n)=>{t("SET_FAVORITES_ARTISTS",{index:n,data:e})}),e("setFavoritesTracks",n.tracks)},setFavoritesTracks({commit:t},e){e.forEach((e,n)=>{t("SET_FAVORITES_TRACKS",{index:n,data:e})})}},getters:{getFavorites:t=>t,getFavoritesAlbums:t=>t.albums,getFavoritesArtists:t=>t.artists,getFavoritesPlaylists:t=>t.playlists,getFavoritesTracks:t=>t.tracks},mutations:{SET_FAVORITES_ALBUMS:(t,e)=>{kn.set(t.albums,e.index,e.data)},SET_FAVORITES_ARTISTS:(t,e)=>{kn.set(t.artists,e.index,e.data)},SET_FAVORITES_PLAYLISTS:(t,e)=>{kn.set(t.playlists,e.index,e.data)},SET_FAVORITES_TRACKS:(t,e)=>{kn.set(t.tracks,e.index,e.data)}}};kn.use(Do);var Fo=new Do.Store({modules:{home:No,settings:Po,defaultSettings:Lo,spotifyCredentials:Ro,charts:jo,favorites:Io},strict:!1});const Oo=io.connect(window.location.href);Oo.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")}),Oo.on("init_charts",t=>{Fo.dispatch("cacheCharts",t)}),Oo.on("init_favorites",t=>{Fo.dispatch("setFavorites",t)}),Oo.on("init_settings",(t,e,n)=>{Fo.dispatch("setSettings",t),Fo.dispatch("setDefaultSettings",n),Fo.dispatch("setCredentials",e)}),Oo.on("init_home",t=>{Fo.dispatch("cacheHomeData",t)});var Bo=new kn; /*! * vue-router v3.3.4 * (c) 2020 Evan You * @license MIT - */function Fo(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Oo(t,e){return Fo(t)&&t._isRouter&&(null==e||t.type===e)}function Bo(t,e){for(var n in e)t[n]=e[n];return t}var qo={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,a=e.children,i=e.parent,r=e.data;r.routerView=!0;for(var s=i.$createElement,o=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),d=0,u=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&d++,p.keepAlive&&i._directInactive&&i._inactive&&(u=!0),i=i.$parent}if(r.routerViewDepth=d,u){var h=c[o],f=h&&h.component;return f?(h.configProps&&Uo(f,r,h.route,h.configProps),s(f,r,a)):s()}var m=l.matched[d],g=m&&m.components[o];if(!m||!g)return c[o]=null,s();c[o]={component:g},r.registerRouteInstance=function(t,e){var n=m.instances[o];(e&&n!==t||!e&&n===t)&&(m.instances[o]=e)},(r.hook||(r.hook={})).prepatch=function(t,e){m.instances[o]=e.componentInstance},r.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[o]&&(m.instances[o]=t.componentInstance)};var v=m.props&&m.props[o];return v&&(Bo(c[o],{route:l,configProps:v}),Uo(g,r,l,v)),s(g,r,a)}};function Uo(t,e,n,a){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(n,a);if(i){i=e.props=Bo({},i);var r=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(r[s]=i[s],delete i[s])}}var Vo=/[!'()*]/g,Ho=function(t){return"%"+t.charCodeAt(0).toString(16)},Go=/%2C/g,Wo=function(t){return encodeURIComponent(t).replace(Vo,Ho).replace(Go,",")},Qo=decodeURIComponent;function Ko(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),a=Qo(n.shift()),i=n.length>0?Qo(n.join("=")):null;void 0===e[a]?e[a]=i:Array.isArray(e[a])?e[a].push(i):e[a]=[e[a],i]})),e):e}function Yo(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Wo(e);if(Array.isArray(n)){var a=[];return n.forEach((function(t){void 0!==t&&(null===t?a.push(Wo(e)):a.push(Wo(e)+"="+Wo(t)))})),a.join("&")}return Wo(e)+"="+Wo(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var Jo=/\/?$/;function Xo(t,e,n,a){var i=a&&a.options.stringifyQuery,r=e.query||{};try{r=Zo(r)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:r,params:e.params||{},fullPath:nl(e,i),matched:t?el(t):[]};return n&&(s.redirectedFrom=nl(n,i)),Object.freeze(s)}function Zo(t){if(Array.isArray(t))return t.map(Zo);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=Zo(t[n]);return e}return t}var tl=Xo(null,{path:"/"});function el(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function nl(t,e){var n=t.path,a=t.query;void 0===a&&(a={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||Yo)(a)+i}function al(t,e){return e===tl?t===e:!!e&&(t.path&&e.path?t.path.replace(Jo,"")===e.path.replace(Jo,"")&&t.hash===e.hash&&il(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&il(t.query,e.query)&&il(t.params,e.params)))}function il(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),a=Object.keys(e);return n.length===a.length&&n.every((function(n){var a=t[n],i=e[n];return"object"==typeof a&&"object"==typeof i?il(a,i):String(a)===String(i)}))}function rl(t,e,n){var a=t.charAt(0);if("/"===a)return t;if("?"===a||"#"===a)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var r=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(a),t=t.slice(0,a));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),c=e&&e.path||"/",d=l.path?rl(l.path,c,n||i.append):c,u=function(t,e,n){void 0===e&&(e={});var a,i=n||Ko;try{a=i(t||"")}catch(t){a={}}for(var r in e)a[r]=e[r];return a}(l.query,i.query,a&&a.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:u,hash:p}}var Sl,zl=function(){},Ml={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,a=this.$route,i=n.resolve(this.to,a,this.append),r=i.location,s=i.route,o=i.href,l={},c=n.options.linkActiveClass,d=n.options.linkExactActiveClass,u=null==c?"router-link-active":c,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?u:this.activeClass,f=null==this.exactActiveClass?p:this.exactActiveClass,m=s.redirectedFrom?Xo(null,Tl(s.redirectedFrom),null,n):s;l[f]=al(a,m),l[h]=this.exact?l[f]:function(t,e){return 0===t.path.replace(Jo,"/").indexOf(e.path.replace(Jo,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(a,m);var g=l[f]?this.ariaCurrentValue:null,v=function(t){Dl(t)&&(e.replace?n.replace(r,zl):n.push(r,zl))},b={click:Dl};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=v})):b[this.event]=v;var y={class:l},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:v,isActive:l[h],isExactActive:l[f]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":g};else{var k=function t(e){var n;if(e)for(var a=0;a-1&&(o.params[p]=n.params[p]);return o.path=xl(d.path,o.params),l(d,o,s)}if(o.path){o.params={};for(var h=0;h=t.length?n():t[i]?e(t[i],(function(){a(i+1)})):a(i+1)};a(0)}function nc(t){return function(e,n,a){var i=!1,r=0,s=null;ac(t,(function(t,e,n,o){if("function"==typeof t&&void 0===t.cid){i=!0,r++;var l,c=sc((function(e){var i;((i=e).__esModule||rc&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Sl.extend(e),n.components[o]=e,--r<=0&&a()})),d=sc((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=Fo(t)?t:new Error(e),a(s))}));try{l=t(c,d)}catch(t){d(t)}if(l)if("function"==typeof l.then)l.then(c,d);else{var u=l.component;u&&"function"==typeof u.then&&u.then(c,d)}}})),i||a()}}function ac(t,e){return ic(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function ic(t){return Array.prototype.concat.apply([],t)}var rc="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function sc(t){var e=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!e)return e=!0,t.apply(this,n)}}var oc=1,lc=2,cc=3,dc=4;function uc(t,e){return hc(t,e,oc,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return fc.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function pc(t,e){return hc(t,e,cc,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function hc(t,e,n,a){var i=new Error(a);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var fc=["params","query","hash"];var mc=function(t,e){this.router=t,this.base=function(t){if(!t)if($l){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=tl,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function gc(t,e,n,a){var i=ac(t,(function(t,a,i,r){var s=function(t,e){"function"!=typeof t&&(t=Sl.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,a,i,r)})):n(s,a,i,r)}));return ic(a?i.reverse():i)}function vc(t,e){if(e)return function(){return t.apply(e,arguments)}}mc.prototype.listen=function(t){this.cb=t},mc.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},mc.prototype.onError=function(t){this.errorCbs.push(t)},mc.prototype.transitionTo=function(t,e,n){var a=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){var t=a.current;a.updateRoute(i),e&&e(i),a.ensureURL(),a.router.afterHooks.forEach((function(e){e&&e(i,t)})),a.ready||(a.ready=!0,a.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!a.ready&&(a.ready=!0,Oo(t,oc)?a.readyCbs.forEach((function(t){t(i)})):a.readyErrorCbs.forEach((function(e){e(t)})))}))},mc.prototype.confirmTransition=function(t,e,n){var a,i=this,r=this.current,s=function(t){!Oo(t)&&Fo(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},o=t.matched.length-1,l=r.matched.length-1;if(al(t,r)&&o===l&&t.matched[o]===r.matched[l])return this.ensureURL(),s(hc(a=r,t,dc,'Avoided redundant navigation to current location: "'+a.fullPath+'".'));var c=function(t,e){var n,a=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,a=Xl&&n;a&&this.listeners.push(ql());var i=function(){var n=t.current,i=yc(t.base);t.current===tl&&i===t._startLocation||t.transitionTo(i,(function(t){a&&Ul(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){Zl(sl(a.base+t.fullPath)),Ul(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){tc(sl(a.base+t.fullPath)),Ul(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(yc(this.base)!==this.current.fullPath){var e=sl(this.base+this.current.fullPath);t?Zl(e):tc(e)}},e.prototype.getCurrentLocation=function(){return yc(this.base)},e}(mc);function yc(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var _c=function(t){function e(e,n,a){t.call(this,e,n),a&&function(t){var e=yc(t);if(!/^\/#/.test(e))return window.location.replace(sl(t+"/#"+e)),!0}(this.base)||kc()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Xl&&e;n&&this.listeners.push(ql());var a=function(){var e=t.current;kc()&&t.transitionTo(wc(),(function(a){n&&Ul(t.router,a,e,!0),Xl||xc(a.fullPath)}))},i=Xl?"popstate":"hashchange";window.addEventListener(i,a),this.listeners.push((function(){window.removeEventListener(i,a)}))}},e.prototype.push=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){Cc(t.fullPath),Ul(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){xc(t.fullPath),Ul(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;wc()!==e&&(t?Cc(e):xc(e))},e.prototype.getCurrentLocation=function(){return wc()},e}(mc);function kc(){var t=wc();return"/"===t.charAt(0)||(xc("/"+t),!1)}function wc(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var a=t.indexOf("#");t=a>-1?decodeURI(t.slice(0,a))+t.slice(a):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function Ac(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Cc(t){Xl?Zl(Ac(t)):window.location.hash=t}function xc(t){Xl?tc(Ac(t)):window.location.replace(Ac(t))}var Tc=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var a=this;this.transitionTo(t,(function(t){a.stack=a.stack.slice(0,a.index+1).concat(t),a.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this;this.transitionTo(t,(function(t){a.stack=a.stack.slice(0,a.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,(function(){e.index=n,e.updateRoute(a)}),(function(t){Oo(t,dc)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(mc),Sc=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Ll(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Xl&&!1!==t.fallback,this.fallback&&(e="hash"),$l||(e="abstract"),this.mode=e,e){case"history":this.history=new bc(this,t.base);break;case"hash":this.history=new _c(this,t.base,this.fallback);break;case"abstract":this.history=new Tc(this,t.base)}},zc={currentRoute:{configurable:!0}};function Mc(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Sc.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},zc.currentRoute.get=function(){return this.history&&this.history.current},Sc.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var n=this.history;if(n instanceof bc||n instanceof _c){var a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Sc.prototype.beforeEach=function(t){return Mc(this.beforeHooks,t)},Sc.prototype.beforeResolve=function(t){return Mc(this.resolveHooks,t)},Sc.prototype.afterEach=function(t){return Mc(this.afterHooks,t)},Sc.prototype.onReady=function(t,e){this.history.onReady(t,e)},Sc.prototype.onError=function(t){this.history.onError(t)},Sc.prototype.push=function(t,e,n){var a=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){a.history.push(t,e,n)}));this.history.push(t,e,n)},Sc.prototype.replace=function(t,e,n){var a=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){a.history.replace(t,e,n)}));this.history.replace(t,e,n)},Sc.prototype.go=function(t){this.history.go(t)},Sc.prototype.back=function(){this.go(-1)},Sc.prototype.forward=function(){this.go(1)},Sc.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Sc.prototype.resolve=function(t,e,n){var a=Tl(t,e=e||this.history.current,n,this),i=this.match(a,e),r=i.redirectedFrom||i.fullPath;return{location:a,route:i,href:function(t,e,n){var a="hash"===n?"#"+e:e;return t?sl(t+"/"+a):a}(this.history.base,r,this.mode),normalizedTo:a,resolved:i}},Sc.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==tl&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Sc.prototype,zc),Sc.install=function t(e){if(!t.installed||Sl!==e){t.installed=!0,Sl=e;var n=function(t){return void 0!==t},a=function(t,e){var a=t.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",qo),e.component("RouterLink",Ml);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Sc.version="3.3.4",$l&&window.Vue&&window.Vue.use(Sc);var Dc="object"==typeof global&&global&&global.Object===Object&&global,$c="object"==typeof self&&self&&self.Object===Object&&self,Nc=Dc||$c||Function("return this")(),Pc=Nc.Symbol,Lc=Object.prototype,Rc=Lc.hasOwnProperty,Ec=Lc.toString,jc=Pc?Pc.toStringTag:void 0;var Ic=Object.prototype.toString;var Fc=Pc?Pc.toStringTag:void 0;function Oc(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fc&&Fc in Object(t)?function(t){var e=Rc.call(t,jc),n=t[jc];try{t[jc]=void 0;var a=!0}catch(t){}var i=Ec.call(t);return a&&(e?t[jc]=n:delete t[jc]),i}(t):function(t){return Ic.call(t)}(t)}function Bc(t){return null!=t&&"object"==typeof t}function qc(t){return"symbol"==typeof t||Bc(t)&&"[object Symbol]"==Oc(t)}function Uc(t,e){for(var n=-1,a=null==t?0:t.length,i=Array(a);++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function fd(t){return null!=t&&hd(t.length)&&!Yc(t)}var md=Object.prototype;function gd(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||md)}function vd(t){return Bc(t)&&"[object Arguments]"==Oc(t)}var bd=Object.prototype,yd=bd.hasOwnProperty,_d=bd.propertyIsEnumerable,kd=vd(function(){return arguments}())?vd:function(t){return Bc(t)&&yd.call(t,"callee")&&!_d.call(t,"callee")};var wd="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ad=wd&&"object"==typeof module&&module&&!module.nodeType&&module,Cd=Ad&&Ad.exports===wd?Nc.Buffer:void 0,xd=(Cd?Cd.isBuffer:void 0)||function(){return!1},Td={};function Sd(t){return function(e){return t(e)}}Td["[object Float32Array]"]=Td["[object Float64Array]"]=Td["[object Int8Array]"]=Td["[object Int16Array]"]=Td["[object Int32Array]"]=Td["[object Uint8Array]"]=Td["[object Uint8ClampedArray]"]=Td["[object Uint16Array]"]=Td["[object Uint32Array]"]=!0,Td["[object Arguments]"]=Td["[object Array]"]=Td["[object ArrayBuffer]"]=Td["[object Boolean]"]=Td["[object DataView]"]=Td["[object Date]"]=Td["[object Error]"]=Td["[object Function]"]=Td["[object Map]"]=Td["[object Number]"]=Td["[object Object]"]=Td["[object RegExp]"]=Td["[object Set]"]=Td["[object String]"]=Td["[object WeakMap]"]=!1;var zd="object"==typeof exports&&exports&&!exports.nodeType&&exports,Md=zd&&"object"==typeof module&&module&&!module.nodeType&&module,Dd=Md&&Md.exports===zd&&Dc.process,$d=function(){try{var t=Md&&Md.require&&Md.require("util").types;return t||Dd&&Dd.binding&&Dd.binding("util")}catch(t){}}(),Nd=$d&&$d.isTypedArray,Pd=Nd?Sd(Nd):function(t){return Bc(t)&&hd(t.length)&&!!Td[Oc(t)]},Ld=Object.prototype.hasOwnProperty;function Rd(t,e){var n=Vc(t),a=!n&&kd(t),i=!n&&!a&&xd(t),r=!n&&!a&&!i&&Pd(t),s=n||a||i||r,o=s?function(t,e){for(var n=-1,a=Array(t);++n-1},Jd.prototype.set=function(t,e){var n=this.__data__,a=Kd(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this};var Xd=ld(Nc,"Map");function Zd(t,e){var n,a,i=t.__data__;return("string"==(a=typeof(n=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function tu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++eo))return!1;var c=r.get(t);if(c&&r.get(e))return c==e;var d=-1,u=!0,p=2&n?new Cu:void 0;for(r.set(t,e),r.set(e,t);++de||r&&s&&l&&!o&&!c||a&&s&&l||!n&&l||!i)return 1;if(!a&&!r&&!c&&t=o?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}(t,e,n)}))}function Yu(t,e,n,a){return null==t?[]:(Vc(e)||(e=null==e?[]:[e]),Vc(n=a?void 0:n)||(n=null==n?[]:[n]),Ku(t,e,n))}var Ju={sendAddToQueue:function(t,e=null){t&&jo.emit("addToQueue",{url:t,bitrate:e},()=>{})}};const Xu={name:"artist-tab",data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{backTab:Hp,albumView:Vp.bind(null,"album"),reset(){this.title="Loading...",this.image="",this.type="",this.currentTab="",this.sortKey="release_date",this.sortOrder="desc",this.link="",this.head=[],this.body=null},addToQueue(t){t.stopPropagation(),Ju.sendAddToQueue(t.currentTarget.dataset.link)},sortBy(t){t==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=t,this.sortOrder="asc")},changeTab(t){this.currentTab=t},getCurrentTab(){return this.currentTab},updateSelected(){window.currentStack.selected=this.currentTab},checkNewRelease(t){let e=new Date,n=new Date(t);return n.setDate(n.getDate()+3),e.setHours(0,0,0,0),e.getTime()<=n.getTime()},showArtist(t){this.reset();const{name:e,picture_xl:n,id:a,releases:i}=t;this.title=e,this.image=n,this.type="Artist",this.link="https://www.deezer.com/artist/"+a,""===this.currentTab&&(this.currentTab=Object.keys(i)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:this.$tc("globals.listTabs.title",1),sortKey:"title"},{title:this.$t("globals.listTabs.releaseDate"),sortKey:"release_date"},{title:this.$tc("globals.listTabs.track",2),sortKey:"nb_song"},{title:"",width:"32px"}],Wu(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?"nb_song"==this.sortKey?Yu(this.body[this.currentTab],(function(t){return new Number(t.nb_song)}),this.sortOrder):Yu(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){this.$refs.root.style.display="block",console.log("artist mounted"),jo.on("show_artist",this.showArtist),Io.$on("artistTab:updateSelected",this.updateSelected),Io.$on("artistTab:changeTab",this.changeTab)},beforeDestroy(){console.log("artist bef dest"),this.$refs.root.style.display="none"}};var Zu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"artist_tab"}},[n("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[n("h1",[t._v(t._s(t.title))]),t._v(" "),n("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("div",{staticClass:"tab"},t._l(t.body,(function(e,a){return n("button",{key:a,staticClass:"selective",class:{active:a===t.currentTab},attrs:{href:"#artist_"+a},on:{click:function(e){return t.changeTab(a)}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+a,2))+"\n\t\t")])})),0),t._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",t._l(t.head,(function(e){return n("th",{class:{"sort-asc":e.sortKey==t.sortKey&&"asc"==t.sortOrder,"sort-desc":e.sortKey==t.sortKey&&"desc"==t.sortOrder,sortable:e.sortKey,clickable:e.sortKey},style:{width:e.width?e.width:"auto"},on:{click:function(n){e.sortKey&&t.sortBy(e.sortKey)}}},[t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t")])})),0)]),t._v(" "),n("tbody",t._l(t.showTable,(function(e){return n("tr",{key:e.id},[n("td",{staticClass:"inline-flex clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[n("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:e.cover_small}}),t._v(" "),e.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[t._v("\n\t\t\t\t\t\texplicit\n\t\t\t\t\t")]):t._e(),t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t"),t.checkNewRelease(e.release_date)?n("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[t._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):t._e()]),t._v(" "),n("td",[t._v(t._s(e.release_date))]),t._v(" "),n("td",[t._v(t._s(e.nb_song))]),t._v(" "),n("td",{staticClass:"clickable",attrs:{"data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("\n\t\t\t\t\t\tfile_download\n\t\t\t\t\t")])])])})),0)]),t._v(" "),n("footer",[n("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};Zu._withStripped=!0;var tp=function(t,e,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\ArtistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:Zu,staticRenderFns:[]},(function(t){t&&t("data-v-8204f7b8_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"ArtistTab.vue"},media:void 0})}),Xu,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=a?i.media||"default":t,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=i.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),a&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));function ep(t){let e=t.toLowerCase();if(e.startsWith("http")){if(e.indexOf("deezer.com")>=0||e.indexOf("open.spotify.com")>=0)return!0}else if(e.startsWith("spotify:"))return!0;return!1}function np(t,e,n){var a;return function(){var i=this,r=arguments,s=function(){a=null,n||t.apply(i,r)},o=n&&!a;clearTimeout(a),a=setTimeout(s,e),o&&t.apply(i,r)}}function ap(t){const e=document.createElement("input");document.body.appendChild(e),e.setAttribute("type","text"),e.setAttribute("value",t),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.remove()}var ip={isValidURL:ep,convertDuration:function(t){let e,n;return e=Math.floor(t/60),n=t-60*e,n<10&&(n="0"+n),e+":"+n},convertDurationSeparated:function(t){let e,n,a;return n=Math.floor(t/60),e=Math.floor(n/60),a=t-60*n,n-=60*e,[e,n,a]},numberWithDots:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},debounce:np,COUNTRIES:{AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}};const rp={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:Hp,artistView:Vp.bind(null,"artist"),albumView:Vp.bind(null,"album"),playPausePreview(t){Io.$emit("trackPreview:playPausePreview",t)},reset(){console.log("resetto"),this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(t){Ju.sendAddToQueue(t.currentTarget.dataset.link)},toggleAll(t){this.body.forEach(e=>{"track"==e.type&&(e.selected=t.currentTarget.checked)})},selectedLinks(){var t=[];return this.body&&this.body.forEach(e=>{"track"==e.type&&e.selected&&t.push("spotifyPlaylist"==this.type?e.uri:e.link)}),t.join(";")},convertDuration:ip.convertDuration,showAlbum(t){this.reset();const{id:e,title:n,explicit_lyrics:a,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=t;this.type="album",this.link="https://www.deezer.com/album/"+e,this.title=n,this.explicit=a,this.label=i,this.metadata=`${r} • ${this.$tc("globals.listTabs.trackN",o)}`,this.release_date=l.substring(0,10),this.image=c,Wu(s)?this.body=null:this.body=s},showPlaylist(t){this.reset(),console.log(t),console.log("mandi");const{id:e,title:n,picture_xl:a,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=t;this.type="playlist",this.link="https://www.deezer.com/playlist/"+e,this.title=n,this.image=a,this.release_date=i.substring(0,10),this.metadata=`${this.$t("globals.by",[r])} • ${this.$tc("globals.listTabs.trackN",o)}`,Wu(s)?this.body=null:this.body=s},showSpotifyPlaylist(t){this.reset();const{uri:e,name:n,images:a,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=t;this.type="spotifyPlaylist",this.link=e,this.title=n,this.image=i?a[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`${this.$t("globals.by",[r])} • ${this.$tc("globals.listTabs.trackN",o)}`,Wu(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){console.log("tracklist mounted"),this.$refs.root.style.display="block",Io.$on("tracklistTab:selectRow",this.selectRow),jo.on("show_album",this.showAlbum),jo.on("show_playlist",this.showPlaylist),jo.on("show_spotifyplaylist",this.showSpotifyPlaylist)},beforeDestroy(){console.log("tracklist bef dest"),this.$refs.root.style.display="none"}};var sp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"tracklist_tab"}},[n("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[n("h1",{staticClass:"inline-flex"},[t._v("\n\t\t\t"+t._s(t.title)+" "),t.explicit?n("i",{staticClass:"material-icons explicit_icon explicit_icon--right"},[t._v("explicit")]):t._e()]),t._v(" "),n("h2",{staticClass:"inline-flex"},[t.metadata?n("span",[t._v(t._s(t.metadata))]):t._e(),t._v(" "),t.release_date?n("span",{staticClass:"right"},[t._v(t._s(t.release_date))]):t._e()])]),t._v(" "),n("table",{staticClass:"table table--tracklist"},[n("thead",[n("tr",[t._m(0),t._v(" "),n("th",[t._v("#")]),t._v(" "),n("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),n("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),"playlist"===t.type?n("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]):t._e(),t._v(" "),t._m(1),t._v(" "),n("th",{staticClass:"table__icon table__cell--center clickable"},[n("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:t.toggleAll}})])])]),t._v(" "),n("tbody",["spotifyPlaylist"!==t.type?[t._l(t.body,(function(e,a){return["track"==e.type?n("tr",{on:{click:function(n){return t.selectRow(a,e)}}},[n("td",{staticClass:"table__cell--x-small table__cell--center"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[n("i",t._g({staticClass:"material-icons",class:{preview_playlist_controls:e.preview,disabled:!e.preview},attrs:{"data-preview":e.preview,title:t.$t("globals.play_hint")}},{click:!!e.preview&&t.playPausePreview}),[t._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),t._v(" "),n("td",{staticClass:"table__cell--small table__cell--center track_position"},[t._v("\n\t\t\t\t\t\t\t"+t._s("album"===t.type?e.track_position:t.body.indexOf(e)+1)+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{staticClass:"table__cell--large table__cell--with-icon"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[t._v("\n\t\t\t\t\t\t\t\t\texplicit\n\t\t\t\t\t\t\t\t")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t\t\t")]),t._v(" "),"playlist"==t.type?n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),n("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===t.type,"table__cell--x-small":"playlist"===t.type}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{staticClass:"table__icon table__cell--center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(n){var a=e.selected,i=n.target,r=!!i.checked;if(Array.isArray(a)){var s=t._i(a,null);i.checked?s<0&&t.$set(e,"selected",a.concat([null])):s>-1&&t.$set(e,"selected",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(e,"selected",r)}}})])]):"disc_separator"==e.type?n("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[t._m(2,!0),t._v(" "),n("td",{staticClass:"table__cell--center"},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.number)+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{attrs:{colspan:"4"}})]):t._e()]}))]:t._l(t.body,(function(e,a){return n("tr",[n("td",[e.preview_url?n("i",{class:"material-icons"+(e.preview_url?" preview_playlist_controls":""),attrs:{"data-preview":e.preview_url,title:t.$t("globals.play_hint")},on:{click:t.playPausePreview}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):n("i",{staticClass:"material-icons disabled"},[t._v("play_arrow")])]),t._v(" "),n("td",[t._v(t._s(a+1))]),t._v(" "),n("td",{staticClass:"inline-flex"},[e.explicit?n("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")]),t._v(" "),n("td",[t._v(t._s(e.artists[0].name))]),t._v(" "),n("td",[t._v(t._s(e.album.name))]),t._v(" "),n("td",[t._v(t._s(t.convertDuration(Math.floor(e.duration_ms/1e3))))]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(n){var a=e.selected,i=n.target,r=!!i.checked;if(Array.isArray(a)){var s=t._i(a,null);i.checked?s<0&&t.$set(e,"selected",a.concat([null])):s>-1&&t.$set(e,"selected",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(e,"selected",r)}}})])])}))],2)]),t._v(" "),t.label?n("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[t._v(t._s(t.label))]):t._e(),t._v(" "),n("footer",[n("button",{attrs:{"data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(""+t.$t("globals.download",[t.$tc("globals.listTabs."+t.type,1)]))+"\n\t\t")]),t._v(" "),n("button",{staticClass:"with_icon",attrs:{"data-link":t.selectedLinks()},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(t.$t("tracklist.downloadSelection"))),n("i",{staticClass:"material-icons"},[t._v("file_download")])]),t._v(" "),n("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};sp._withStripped=!0;var op=function(t,e,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TracklistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:sp,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("music_note")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("timer")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[e("i",{staticClass:"material-icons"},[this._v("album")])])])}]},(function(t){t&&t("data-v-46a32c53_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TracklistTab.vue"},media:void 0})}),rp,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=a?i.media||"default":t,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=i.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),a&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const lp={name:"the-home-tab",data:()=>({playlists:[],albums:[]}),computed:{...ko(["getHomeData"]),needToWait(){return 0===this.getHomeData.albums.data.length&&0===this.getHomeData.playlists.data.length}},methods:{artistView:Vp.bind(null,"artist"),albumView:Vp.bind(null,"album"),playlistView:Vp.bind(null,"playlist"),openSettings(){document.getElementById("main_settings_tablink").click()},addToQueue(t){Ju.sendAddToQueue(t.currentTarget.dataset.link)},initHome(t){console.log("init home");const{playlists:{data:e},albums:{data:n}}=t;this.playlists=e,this.albums=n},checkIfWaitData(t){if(this.needToWait){let t=this.$store.subscribeAction({after:(e,n)=>{"cacheHomeData"===e.type&&(this.initHome(this.getHomeData),t())}})}else this.initHome(this.getHomeData)}},mounted(){console.log("home mounted"),this.$refs.root.style.display="block",localStorage.getItem("arl")&&this.$refs.notLogged.classList.add("hide"),this.checkIfWaitData(this.getHomeData)},beforeDestroy(){console.log("home bef dest"),this.$refs.root.style.display="none"}};var cp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"home_tab"}},[n("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("globals.welcome")))]),t._v(" "),n("section",{ref:"notLogged",staticClass:"home_section",attrs:{id:"home_not_logged_in"}},[n("p",{attrs:{id:"home_not_logged_text"}},[t._v(t._s(t.$t("home.needTologin")))]),t._v(" "),n("button",{attrs:{type:"button",name:"button"},on:{click:t.openSettings}},[t._v(t._s(t.$t("home.openSettings")))])]),t._v(" "),t.playlists.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularPlaylists")))]),t._v(" "),n("div",{staticClass:"release_grid"},t._l(t.playlists,(function(e){return n("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.playlistView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",[e.user.name])+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),0)]):t._e(),t._v(" "),t.albums.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularAlbums")))]),t._v(" "),n("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return n("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",[e.artist.name])))])])})),0)]):t._e()])};cp._withStripped=!0;var dp=function(t,e,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TheHomeTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:cp,staticRenderFns:[]},(function(t){t&&t("data-v-53330869_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),lp,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=a?i.media||"default":t,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=i.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),a&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const up={name:"the-charts-tab",data:()=>({country:"",id:0,countries:[],chart:[]}),methods:{artistView:Vp.bind(null,"artist"),albumView:Vp.bind(null,"album"),playPausePreview(t){Io.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){Io.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){Io.$emit("trackPreview:previewMouseLeave",t)},convertDuration:ip.convertDuration,addToQueue(t){t.stopPropagation(),Ju.sendAddToQueue(t.currentTarget.dataset.link)},getTrackList(t){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:e}},currentTarget:{dataset:{id:n}}}=t;this.country=e,localStorage.setItem("chart",this.country),this.id=n,jo.emit("getChartTracks",this.id)},setTracklist(t){console.log("settracklist"),this.chart=t},changeCountry(){this.country="",this.id=0},initCharts(t){if(console.log("init charts"),this.countries=t,this.country=localStorage.getItem("chart")||"",!this.country)return;let e=0;for(;e-1}function Uo(t,e){return qo(t)&&t._isRouter&&(null==e||t.type===e)}function Vo(t,e){for(var n in e)t[n]=e[n];return t}var Ho={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,a=e.children,i=e.parent,r=e.data;r.routerView=!0;for(var s=i.$createElement,o=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),d=0,u=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&d++,p.keepAlive&&i._directInactive&&i._inactive&&(u=!0),i=i.$parent}if(r.routerViewDepth=d,u){var h=c[o],f=h&&h.component;return f?(h.configProps&&Go(f,r,h.route,h.configProps),s(f,r,a)):s()}var m=l.matched[d],g=m&&m.components[o];if(!m||!g)return c[o]=null,s();c[o]={component:g},r.registerRouteInstance=function(t,e){var n=m.instances[o];(e&&n!==t||!e&&n===t)&&(m.instances[o]=e)},(r.hook||(r.hook={})).prepatch=function(t,e){m.instances[o]=e.componentInstance},r.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[o]&&(m.instances[o]=t.componentInstance)};var v=m.props&&m.props[o];return v&&(Vo(c[o],{route:l,configProps:v}),Go(g,r,l,v)),s(g,r,a)}};function Go(t,e,n,a){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}(n,a);if(i){i=e.props=Vo({},i);var r=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(r[s]=i[s],delete i[s])}}var Wo=/[!'()*]/g,Qo=function(t){return"%"+t.charCodeAt(0).toString(16)},Ko=/%2C/g,Yo=function(t){return encodeURIComponent(t).replace(Wo,Qo).replace(Ko,",")},Jo=decodeURIComponent;function Xo(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),a=Jo(n.shift()),i=n.length>0?Jo(n.join("=")):null;void 0===e[a]?e[a]=i:Array.isArray(e[a])?e[a].push(i):e[a]=[e[a],i]})),e):e}function Zo(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Yo(e);if(Array.isArray(n)){var a=[];return n.forEach((function(t){void 0!==t&&(null===t?a.push(Yo(e)):a.push(Yo(e)+"="+Yo(t)))})),a.join("&")}return Yo(e)+"="+Yo(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var tl=/\/?$/;function el(t,e,n,a){var i=a&&a.options.stringifyQuery,r=e.query||{};try{r=nl(r)}catch(t){}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:r,params:e.params||{},fullPath:rl(e,i),matched:t?il(t):[]};return n&&(s.redirectedFrom=rl(n,i)),Object.freeze(s)}function nl(t){if(Array.isArray(t))return t.map(nl);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=nl(t[n]);return e}return t}var al=el(null,{path:"/"});function il(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function rl(t,e){var n=t.path,a=t.query;void 0===a&&(a={});var i=t.hash;return void 0===i&&(i=""),(n||"/")+(e||Zo)(a)+i}function sl(t,e){return e===al?t===e:!!e&&(t.path&&e.path?t.path.replace(tl,"")===e.path.replace(tl,"")&&t.hash===e.hash&&ol(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&ol(t.query,e.query)&&ol(t.params,e.params)))}function ol(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),a=Object.keys(e);return n.length===a.length&&n.every((function(n){var a=t[n],i=e[n];return"object"==typeof a&&"object"==typeof i?ol(a,i):String(a)===String(i)}))}function ll(t,e,n){var a=t.charAt(0);if("/"===a)return t;if("?"===a||"#"===a)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var r=t.replace(/^\//,"").split("/"),s=0;s=0&&(e=t.slice(a),t=t.slice(0,a));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}(i.path||""),c=e&&e.path||"/",d=l.path?ll(l.path,c,n||i.append):c,u=function(t,e,n){void 0===e&&(e={});var a,i=n||Xo;try{a=i(t||"")}catch(t){a={}}for(var r in e)a[r]=e[r];return a}(l.query,i.query,a&&a.options.parseQuery),p=i.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:u,hash:p}}var Dl,$l=function(){},Nl={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,a=this.$route,i=n.resolve(this.to,a,this.append),r=i.location,s=i.route,o=i.href,l={},c=n.options.linkActiveClass,d=n.options.linkExactActiveClass,u=null==c?"router-link-active":c,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?u:this.activeClass,f=null==this.exactActiveClass?p:this.exactActiveClass,m=s.redirectedFrom?el(null,Ml(s.redirectedFrom),null,n):s;l[f]=sl(a,m),l[h]=this.exact?l[f]:function(t,e){return 0===t.path.replace(tl,"/").indexOf(e.path.replace(tl,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(a,m);var g=l[f]?this.ariaCurrentValue:null,v=function(t){Pl(t)&&(e.replace?n.replace(r,$l):n.push(r,$l))},b={click:Pl};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=v})):b[this.event]=v;var y={class:l},_=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:o,route:s,navigate:v,isActive:l[h],isExactActive:l[f]});if(_){if(1===_.length)return _[0];if(_.length>1||!_.length)return 0===_.length?t():t("span",{},_)}if("a"===this.tag)y.on=b,y.attrs={href:o,"aria-current":g};else{var k=function t(e){var n;if(e)for(var a=0;a-1&&(o.params[p]=n.params[p]);return o.path=zl(d.path,o.params),l(d,o,s)}if(o.path){o.params={};for(var h=0;h=t.length?n():t[i]?e(t[i],(function(){a(i+1)})):a(i+1)};a(0)}function rc(t){return function(e,n,a){var i=!1,r=0,s=null;sc(t,(function(t,e,n,o){if("function"==typeof t&&void 0===t.cid){i=!0,r++;var l,c=cc((function(e){var i;((i=e).__esModule||lc&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Dl.extend(e),n.components[o]=e,--r<=0&&a()})),d=cc((function(t){var e="Failed to resolve async component "+o+": "+t;s||(s=qo(t)?t:new Error(e),a(s))}));try{l=t(c,d)}catch(t){d(t)}if(l)if("function"==typeof l.then)l.then(c,d);else{var u=l.component;u&&"function"==typeof u.then&&u.then(c,d)}}})),i||a()}}function sc(t,e){return oc(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function oc(t){return Array.prototype.concat.apply([],t)}var lc="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function cc(t){var e=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!e)return e=!0,t.apply(this,n)}}var dc=1,uc=2,pc=3,hc=4;function fc(t,e){return gc(t,e,dc,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return vc.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function mc(t,e){return gc(t,e,pc,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function gc(t,e,n,a){var i=new Error(a);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var vc=["params","query","hash"];var bc=function(t,e){this.router=t,this.base=function(t){if(!t)if(Ll){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=al,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function yc(t,e,n,a){var i=sc(t,(function(t,a,i,r){var s=function(t,e){"function"!=typeof t&&(t=Dl.extend(t));return t.options[e]}(t,e);if(s)return Array.isArray(s)?s.map((function(t){return n(t,a,i,r)})):n(s,a,i,r)}));return oc(a?i.reverse():i)}function _c(t,e){if(e)return function(){return t.apply(e,arguments)}}bc.prototype.listen=function(t){this.cb=t},bc.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},bc.prototype.onError=function(t){this.errorCbs.push(t)},bc.prototype.transitionTo=function(t,e,n){var a=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){var t=a.current;a.updateRoute(i),e&&e(i),a.ensureURL(),a.router.afterHooks.forEach((function(e){e&&e(i,t)})),a.ready||(a.ready=!0,a.readyCbs.forEach((function(t){t(i)})))}),(function(t){n&&n(t),t&&!a.ready&&(a.ready=!0,Uo(t,dc)?a.readyCbs.forEach((function(t){t(i)})):a.readyErrorCbs.forEach((function(e){e(t)})))}))},bc.prototype.confirmTransition=function(t,e,n){var a,i=this,r=this.current,s=function(t){!Uo(t)&&qo(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},o=t.matched.length-1,l=r.matched.length-1;if(sl(t,r)&&o===l&&t.matched[o]===r.matched[l])return this.ensureURL(),s(gc(a=r,t,hc,'Avoided redundant navigation to current location: "'+a.fullPath+'".'));var c=function(t,e){var n,a=Math.max(t.length,e.length);for(n=0;n0)){var e=this.router,n=e.options.scrollBehavior,a=ec&&n;a&&this.listeners.push(Hl());var i=function(){var n=t.current,i=wc(t.base);t.current===al&&i===t._startLocation||t.transitionTo(i,(function(t){a&&Gl(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){nc(cl(a.base+t.fullPath)),Gl(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){ac(cl(a.base+t.fullPath)),Gl(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(wc(this.base)!==this.current.fullPath){var e=cl(this.base+this.current.fullPath);t?nc(e):ac(e)}},e.prototype.getCurrentLocation=function(){return wc(this.base)},e}(bc);function wc(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Ac=function(t){function e(e,n,a){t.call(this,e,n),a&&function(t){var e=wc(t);if(!/^\/#/.test(e))return window.location.replace(cl(t+"/#"+e)),!0}(this.base)||Cc()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=ec&&e;n&&this.listeners.push(Hl());var a=function(){var e=t.current;Cc()&&t.transitionTo(xc(),(function(a){n&&Gl(t.router,a,e,!0),ec||zc(a.fullPath)}))},i=ec?"popstate":"hashchange";window.addEventListener(i,a),this.listeners.push((function(){window.removeEventListener(i,a)}))}},e.prototype.push=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){Sc(t.fullPath),Gl(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this,i=this.current;this.transitionTo(t,(function(t){zc(t.fullPath),Gl(a.router,t,i,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;xc()!==e&&(t?Sc(e):zc(e))},e.prototype.getCurrentLocation=function(){return xc()},e}(bc);function Cc(){var t=xc();return"/"===t.charAt(0)||(zc("/"+t),!1)}function xc(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var a=t.indexOf("#");t=a>-1?decodeURI(t.slice(0,a))+t.slice(a):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function Tc(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Sc(t){ec?nc(Tc(t)):window.location.hash=t}function zc(t){ec?ac(Tc(t)):window.location.replace(Tc(t))}var Mc=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var a=this;this.transitionTo(t,(function(t){a.stack=a.stack.slice(0,a.index+1).concat(t),a.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var a=this;this.transitionTo(t,(function(t){a.stack=a.stack.slice(0,a.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var a=this.stack[n];this.confirmTransition(a,(function(){e.index=n,e.updateRoute(a)}),(function(t){Uo(t,hc)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(bc),Dc=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=jl(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ec&&!1!==t.fallback,this.fallback&&(e="hash"),Ll||(e="abstract"),this.mode=e,e){case"history":this.history=new kc(this,t.base);break;case"hash":this.history=new Ac(this,t.base,this.fallback);break;case"abstract":this.history=new Mc(this,t.base)}},$c={currentRoute:{configurable:!0}};function Nc(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Dc.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},$c.currentRoute.get=function(){return this.history&&this.history.current},Dc.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var n=this.history;if(n instanceof kc||n instanceof Ac){var a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Dc.prototype.beforeEach=function(t){return Nc(this.beforeHooks,t)},Dc.prototype.beforeResolve=function(t){return Nc(this.resolveHooks,t)},Dc.prototype.afterEach=function(t){return Nc(this.afterHooks,t)},Dc.prototype.onReady=function(t,e){this.history.onReady(t,e)},Dc.prototype.onError=function(t){this.history.onError(t)},Dc.prototype.push=function(t,e,n){var a=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){a.history.push(t,e,n)}));this.history.push(t,e,n)},Dc.prototype.replace=function(t,e,n){var a=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){a.history.replace(t,e,n)}));this.history.replace(t,e,n)},Dc.prototype.go=function(t){this.history.go(t)},Dc.prototype.back=function(){this.go(-1)},Dc.prototype.forward=function(){this.go(1)},Dc.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Dc.prototype.resolve=function(t,e,n){var a=Ml(t,e=e||this.history.current,n,this),i=this.match(a,e),r=i.redirectedFrom||i.fullPath;return{location:a,route:i,href:function(t,e,n){var a="hash"===n?"#"+e:e;return t?cl(t+"/"+a):a}(this.history.base,r,this.mode),normalizedTo:a,resolved:i}},Dc.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==al&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Dc.prototype,$c),Dc.install=function t(e){if(!t.installed||Dl!==e){t.installed=!0,Dl=e;var n=function(t){return void 0!==t},a=function(t,e){var a=t.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",Ho),e.component("RouterLink",Nl);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Dc.version="3.3.4",Ll&&window.Vue&&window.Vue.use(Dc);var Pc="object"==typeof global&&global&&global.Object===Object&&global,Lc="object"==typeof self&&self&&self.Object===Object&&self,Rc=Pc||Lc||Function("return this")(),Ec=Rc.Symbol,jc=Object.prototype,Ic=jc.hasOwnProperty,Fc=jc.toString,Oc=Ec?Ec.toStringTag:void 0;var Bc=Object.prototype.toString;var qc=Ec?Ec.toStringTag:void 0;function Uc(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qc&&qc in Object(t)?function(t){var e=Ic.call(t,Oc),n=t[Oc];try{t[Oc]=void 0;var a=!0}catch(t){}var i=Fc.call(t);return a&&(e?t[Oc]=n:delete t[Oc]),i}(t):function(t){return Bc.call(t)}(t)}function Vc(t){return null!=t&&"object"==typeof t}function Hc(t){return"symbol"==typeof t||Vc(t)&&"[object Symbol]"==Uc(t)}function Gc(t,e){for(var n=-1,a=null==t?0:t.length,i=Array(a);++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function vd(t){return null!=t&&gd(t.length)&&!Zc(t)}var bd=Object.prototype;function yd(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||bd)}function _d(t){return Vc(t)&&"[object Arguments]"==Uc(t)}var kd=Object.prototype,wd=kd.hasOwnProperty,Ad=kd.propertyIsEnumerable,Cd=_d(function(){return arguments}())?_d:function(t){return Vc(t)&&wd.call(t,"callee")&&!Ad.call(t,"callee")};var xd="object"==typeof exports&&exports&&!exports.nodeType&&exports,Td=xd&&"object"==typeof module&&module&&!module.nodeType&&module,Sd=Td&&Td.exports===xd?Rc.Buffer:void 0,zd=(Sd?Sd.isBuffer:void 0)||function(){return!1},Md={};function Dd(t){return function(e){return t(e)}}Md["[object Float32Array]"]=Md["[object Float64Array]"]=Md["[object Int8Array]"]=Md["[object Int16Array]"]=Md["[object Int32Array]"]=Md["[object Uint8Array]"]=Md["[object Uint8ClampedArray]"]=Md["[object Uint16Array]"]=Md["[object Uint32Array]"]=!0,Md["[object Arguments]"]=Md["[object Array]"]=Md["[object ArrayBuffer]"]=Md["[object Boolean]"]=Md["[object DataView]"]=Md["[object Date]"]=Md["[object Error]"]=Md["[object Function]"]=Md["[object Map]"]=Md["[object Number]"]=Md["[object Object]"]=Md["[object RegExp]"]=Md["[object Set]"]=Md["[object String]"]=Md["[object WeakMap]"]=!1;var $d="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nd=$d&&"object"==typeof module&&module&&!module.nodeType&&module,Pd=Nd&&Nd.exports===$d&&Pc.process,Ld=function(){try{var t=Nd&&Nd.require&&Nd.require("util").types;return t||Pd&&Pd.binding&&Pd.binding("util")}catch(t){}}(),Rd=Ld&&Ld.isTypedArray,Ed=Rd?Dd(Rd):function(t){return Vc(t)&&gd(t.length)&&!!Md[Uc(t)]},jd=Object.prototype.hasOwnProperty;function Id(t,e){var n=Wc(t),a=!n&&Cd(t),i=!n&&!a&&zd(t),r=!n&&!a&&!i&&Ed(t),s=n||a||i||r,o=s?function(t,e){for(var n=-1,a=Array(t);++n-1},tu.prototype.set=function(t,e){var n=this.__data__,a=Xd(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this};var eu=ud(Rc,"Map");function nu(t,e){var n,a,i=t.__data__;return("string"==(a=typeof(n=e))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function au(t){var e=-1,n=null==t?0:t.length;for(this.clear();++eo))return!1;var c=r.get(t);if(c&&r.get(e))return c==e;var d=-1,u=!0,p=2&n?new Su:void 0;for(r.set(t,e),r.set(e,t);++de||r&&s&&l&&!o&&!c||a&&s&&l||!n&&l||!i)return 1;if(!a&&!r&&!c&&t=o?l:l*("desc"==n[a]?-1:1)}return t.index-e.index}(t,e,n)}))}function Zu(t,e,n,a){return null==t?[]:(Wc(e)||(e=null==e?[]:[e]),Wc(n=a?void 0:n)||(n=null==n?[]:[n]),Xu(t,e,n))}var tp={sendAddToQueue:function(t,e=null){t&&Oo.emit("addToQueue",{url:t,bitrate:e},()=>{})}};const ep={name:"artist-tab",data:()=>({currentTab:"",sortKey:"release_date",sortOrder:"desc",title:"",image:"",type:"",link:"",head:null,body:null}),methods:{backTab:Kp,albumView:Qp.bind(null,"album"),reset(){this.title="Loading...",this.image="",this.type="",this.currentTab="",this.sortKey="release_date",this.sortOrder="desc",this.link="",this.head=[],this.body=null},addToQueue(t){t.stopPropagation(),tp.sendAddToQueue(t.currentTarget.dataset.link)},sortBy(t){t==this.sortKey?this.sortOrder="asc"==this.sortOrder?"desc":"asc":(this.sortKey=t,this.sortOrder="asc")},changeTab(t){this.currentTab=t},getCurrentTab(){return this.currentTab},updateSelected(){window.currentStack.selected=this.currentTab},checkNewRelease(t){let e=new Date,n=new Date(t);return n.setDate(n.getDate()+3),e.setHours(0,0,0,0),e.getTime()<=n.getTime()},showArtist(t){this.reset();const{name:e,picture_xl:n,id:a,releases:i}=t;this.title=e,this.image=n,this.type="Artist",this.link="https://www.deezer.com/artist/"+a,""===this.currentTab&&(this.currentTab=Object.keys(i)[0]),this.sortKey="release_date",this.sortOrder="desc",this.head=[{title:this.$tc("globals.listTabs.title",1),sortKey:"title"},{title:this.$t("globals.listTabs.releaseDate"),sortKey:"release_date"},{title:this.$tc("globals.listTabs.track",2),sortKey:"nb_song"},{title:"",width:"32px"}],Yu(i)?this.body=null:this.body=i}},computed:{showTable(){return this.body?"nb_song"==this.sortKey?Zu(this.body[this.currentTab],(function(t){return new Number(t.nb_song)}),this.sortOrder):Zu(this.body[this.currentTab],this.sortKey,this.sortOrder):[]}},mounted(){console.log("artist mounted"),Oo.on("show_artist",this.showArtist),Bo.$on("artistTab:updateSelected",this.updateSelected),Bo.$on("artistTab:changeTab",this.changeTab)},beforeDestroy(){console.log("artist bef dest")}};var np=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"artist_tab"}},[n("header",{staticClass:"inline-flex",style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[n("h1",[t._v(t._s(t.title))]),t._v(" "),n("div",{staticClass:"fab right",attrs:{role:"button","aria-label":"download","data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("div",{staticClass:"tab"},t._l(t.body,(function(e,a){return n("button",{key:a,staticClass:"selective",class:{active:a===t.currentTab},attrs:{href:"#artist_"+a},on:{click:function(e){return t.changeTab(a)}}},[t._v("\n\t\t\t"+t._s(t.$tc("globals.listTabs."+a,2))+"\n\t\t")])})),0),t._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",t._l(t.head,(function(e){return n("th",{class:{"sort-asc":e.sortKey==t.sortKey&&"asc"==t.sortOrder,"sort-desc":e.sortKey==t.sortKey&&"desc"==t.sortOrder,sortable:e.sortKey,clickable:e.sortKey},style:{width:e.width?e.width:"auto"},on:{click:function(n){e.sortKey&&t.sortBy(e.sortKey)}}},[t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t")])})),0)]),t._v(" "),n("tbody",t._l(t.showTable,(function(e){return n("tr",{key:e.id},[n("td",{staticClass:"inline-flex clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[n("img",{staticClass:"rounded coverart",staticStyle:{"margin-right":"16px",width:"56px",height:"56px"},attrs:{src:e.cover_small}}),t._v(" "),e.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[t._v("\n\t\t\t\t\t\texplicit\n\t\t\t\t\t")]):t._e(),t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t\t"),t.checkNewRelease(e.release_date)?n("i",{staticClass:"material-icons",staticStyle:{color:"#ff7300"}},[t._v("\n\t\t\t\t\t\tfiber_new\n\t\t\t\t\t")]):t._e()]),t._v(" "),n("td",[t._v(t._s(e.release_date))]),t._v(" "),n("td",[t._v(t._s(e.nb_song))]),t._v(" "),n("td",{staticClass:"clickable",attrs:{"data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("\n\t\t\t\t\t\tfile_download\n\t\t\t\t\t")])])])})),0)]),t._v(" "),n("footer",[n("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};np._withStripped=!0;var ap=function(t,e,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\ArtistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:np,staticRenderFns:[]},(function(t){t&&t("data-v-5fc46c94_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"ArtistTab.vue"},media:void 0})}),ep,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=a?i.media||"default":t,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=i.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),a&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));function ip(t){let e=t.toLowerCase();if(e.startsWith("http")){if(e.indexOf("deezer.com")>=0||e.indexOf("open.spotify.com")>=0)return!0}else if(e.startsWith("spotify:"))return!0;return!1}function rp(t){let e,n;return e=Math.floor(t/60),n=t-60*e,n<10&&(n="0"+n),e+":"+n}function sp(t,e,n){var a;return function(){var i=this,r=arguments,s=function(){a=null,n||t.apply(i,r)},o=n&&!a;clearTimeout(a),a=setTimeout(s,e),o&&t.apply(i,r)}}function op(t){const e=document.createElement("input");document.body.appendChild(e),e.setAttribute("type","text"),e.setAttribute("value",t),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),e.remove()}var lp={isValidURL:ip,convertDuration:rp,convertDurationSeparated:function(t){let e,n,a;return n=Math.floor(t/60),e=Math.floor(n/60),a=t-60*n,n-=60*e,[e,n,a]},numberWithDots:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},debounce:sp,COUNTRIES:{AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia, Plurinational State of",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Côte d'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and McDonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine, State of",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Réunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthélemy",SH:"Saint Helena, Ascension and Tristan da Cunha",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin (French part)",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten (Dutch part)",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela, Bolivarian Republic of",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}};const cp={name:"tracklist-tab",data:()=>({title:"",metadata:"",release_date:"",label:"",explicit:!1,image:"",type:"empty",link:"",body:[]}),methods:{backTab:Kp,artistView:Qp.bind(null,"artist"),albumView:Qp.bind(null,"album"),playPausePreview(t){Bo.$emit("trackPreview:playPausePreview",t)},reset(){console.log("resetto"),this.title="Loading...",this.image="",this.metadata="",this.label="",this.release_date="",this.explicit=!1,this.type="empty",this.body=[]},addToQueue(t){tp.sendAddToQueue(t.currentTarget.dataset.link)},toggleAll(t){this.body.forEach(e=>{"track"==e.type&&(e.selected=t.currentTarget.checked)})},selectedLinks(){var t=[];return this.body&&this.body.forEach(e=>{"track"==e.type&&e.selected&&t.push("spotifyPlaylist"==this.type?e.uri:e.link)}),t.join(";")},convertDuration:lp.convertDuration,showAlbum(t){this.reset();const{id:e,title:n,explicit_lyrics:a,label:i,artist:{name:r},tracks:s,tracks:{length:o},release_date:l,cover_xl:c}=t;this.type="album",this.link="https://www.deezer.com/album/"+e,this.title=n,this.explicit=a,this.label=i,this.metadata=`${r} • ${this.$tc("globals.listTabs.trackN",o)}`,this.release_date=l.substring(0,10),this.image=c,Yu(s)?this.body=null:this.body=s},showPlaylist(t){this.reset(),console.log(t),console.log("mandi");const{id:e,title:n,picture_xl:a,creation_date:i,creator:{name:r},tracks:s,tracks:{length:o}}=t;this.type="playlist",this.link="https://www.deezer.com/playlist/"+e,this.title=n,this.image=a,this.release_date=i.substring(0,10),this.metadata=`${this.$t("globals.by",[r])} • ${this.$tc("globals.listTabs.trackN",o)}`,Yu(s)?this.body=null:this.body=s},showSpotifyPlaylist(t){this.reset();const{uri:e,name:n,images:a,images:{length:i},owner:{display_name:r},tracks:s,tracks:{length:o}}=t;this.type="spotifyPlaylist",this.link=e,this.title=n,this.image=i?a[0].url:"https://e-cdns-images.dzcdn.net/images/cover/d41d8cd98f00b204e9800998ecf8427e/1000x1000-000000-80-0-0.jpg",this.release_date="",this.metadata=`${this.$t("globals.by",[r])} • ${this.$tc("globals.listTabs.trackN",o)}`,Yu(s)?this.body=null:this.body=s},selectRow(t,e){e.selected=!e.selected}},mounted(){console.log("tracklist mounted"),Bo.$on("tracklistTab:selectRow",this.selectRow),Oo.on("show_album",this.showAlbum),Oo.on("show_playlist",this.showPlaylist),Oo.on("show_spotifyplaylist",this.showSpotifyPlaylist)},beforeDestroy(){console.log("tracklist bef dest")}};var dp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent fixed_footer image_header",attrs:{id:"tracklist_tab"}},[n("header",{style:{"background-image":"linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url('"+t.image+"')"}},[n("h1",{staticClass:"inline-flex"},[t._v("\n\t\t\t"+t._s(t.title)+" "),t.explicit?n("i",{staticClass:"material-icons explicit_icon explicit_icon--right"},[t._v("explicit")]):t._e()]),t._v(" "),n("h2",{staticClass:"inline-flex"},[t.metadata?n("span",[t._v(t._s(t.metadata))]):t._e(),t._v(" "),t.release_date?n("span",{staticClass:"right"},[t._v(t._s(t.release_date))]):t._e()])]),t._v(" "),n("table",{staticClass:"table table--tracklist"},[n("thead",[n("tr",[t._m(0),t._v(" "),n("th",[t._v("#")]),t._v(" "),n("th",[t._v(t._s(t.$tc("globals.listTabs.title",1)))]),t._v(" "),n("th",[t._v(t._s(t.$tc("globals.listTabs.artist",1)))]),t._v(" "),"playlist"===t.type?n("th",[t._v(t._s(t.$tc("globals.listTabs.album",1)))]):t._e(),t._v(" "),t._m(1),t._v(" "),n("th",{staticClass:"table__icon table__cell--center clickable"},[n("input",{staticClass:"selectAll",attrs:{type:"checkbox"},on:{click:t.toggleAll}})])])]),t._v(" "),n("tbody",["spotifyPlaylist"!==t.type?[t._l(t.body,(function(e,a){return["track"==e.type?n("tr",{on:{click:function(n){return t.selectRow(a,e)}}},[n("td",{staticClass:"table__cell--x-small table__cell--center"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[n("i",t._g({staticClass:"material-icons",class:{preview_playlist_controls:e.preview,disabled:!e.preview},attrs:{"data-preview":e.preview,title:t.$t("globals.play_hint")}},{click:!!e.preview&&t.playPausePreview}),[t._v("\n\t\t\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t\t\t")])])]),t._v(" "),n("td",{staticClass:"table__cell--small table__cell--center track_position"},[t._v("\n\t\t\t\t\t\t\t"+t._s("album"===t.type?e.track_position:t.body.indexOf(e)+1)+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{staticClass:"table__cell--large table__cell--with-icon"},[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center"},[e.explicit_lyrics?n("i",{staticClass:"material-icons explicit_icon"},[t._v("\n\t\t\t\t\t\t\t\t\texplicit\n\t\t\t\t\t\t\t\t")]):t._e(),t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.title+(e.title_version&&-1==e.title.indexOf(e.title_version)?" "+e.title_version:""))+"\n\t\t\t\t\t\t\t")])]),t._v(" "),n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.artist.id},on:{click:t.artistView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.artist.name)+"\n\t\t\t\t\t\t")]),t._v(" "),"playlist"==t.type?n("td",{staticClass:"table__cell--medium table__cell--center clickable",attrs:{"data-id":e.album.id},on:{click:t.albumView}},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.album.title)+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),n("td",{staticClass:"table__cell--center",class:{"table__cell--small":"album"===t.type,"table__cell--x-small":"playlist"===t.type}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.convertDuration(e.duration))+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{staticClass:"table__icon table__cell--center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(n){var a=e.selected,i=n.target,r=!!i.checked;if(Array.isArray(a)){var s=t._i(a,null);i.checked?s<0&&t.$set(e,"selected",a.concat([null])):s>-1&&t.$set(e,"selected",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(e,"selected",r)}}})])]):"disc_separator"==e.type?n("tr",{staticClass:"table__row-no-highlight",staticStyle:{opacity:"0.54"}},[t._m(2,!0),t._v(" "),n("td",{staticClass:"table__cell--center"},[t._v("\n\t\t\t\t\t\t\t"+t._s(e.number)+"\n\t\t\t\t\t\t")]),t._v(" "),n("td",{attrs:{colspan:"4"}})]):t._e()]}))]:t._l(t.body,(function(e,a){return n("tr",[n("td",[e.preview_url?n("i",{class:"material-icons"+(e.preview_url?" preview_playlist_controls":""),attrs:{"data-preview":e.preview_url,title:t.$t("globals.play_hint")},on:{click:t.playPausePreview}},[t._v("\n\t\t\t\t\t\t\tplay_arrow\n\t\t\t\t\t\t")]):n("i",{staticClass:"material-icons disabled"},[t._v("play_arrow")])]),t._v(" "),n("td",[t._v(t._s(a+1))]),t._v(" "),n("td",{staticClass:"inline-flex"},[e.explicit?n("i",{staticClass:"material-icons explicit_icon"},[t._v("explicit")]):t._e(),t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")]),t._v(" "),n("td",[t._v(t._s(e.artists[0].name))]),t._v(" "),n("td",[t._v(t._s(e.album.name))]),t._v(" "),n("td",[t._v(t._s(t.convertDuration(Math.floor(e.duration_ms/1e3))))]),t._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.selected)?t._i(e.selected,null)>-1:e.selected},on:{change:function(n){var a=e.selected,i=n.target,r=!!i.checked;if(Array.isArray(a)){var s=t._i(a,null);i.checked?s<0&&t.$set(e,"selected",a.concat([null])):s>-1&&t.$set(e,"selected",a.slice(0,s).concat(a.slice(s+1)))}else t.$set(e,"selected",r)}}})])])}))],2)]),t._v(" "),t.label?n("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[t._v(t._s(t.label))]):t._e(),t._v(" "),n("footer",[n("button",{attrs:{"data-link":t.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(""+t.$t("globals.download",[t.$tc("globals.listTabs."+t.type,1)]))+"\n\t\t")]),t._v(" "),n("button",{staticClass:"with_icon",attrs:{"data-link":t.selectedLinks()},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[t._v("\n\t\t\t"+t._s(t.$t("tracklist.downloadSelection"))),n("i",{staticClass:"material-icons"},[t._v("file_download")])]),t._v(" "),n("button",{staticClass:"back-button",on:{click:t.backTab}},[t._v(t._s(t.$t("globals.back")))])])])};dp._withStripped=!0;var up=function(t,e,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TracklistTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:dp,staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("music_note")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("i",{staticClass:"material-icons"},[this._v("timer")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("td",[e("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[e("i",{staticClass:"material-icons"},[this._v("album")])])])}]},(function(t){t&&t("data-v-808083c2_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TracklistTab.vue"},media:void 0})}),cp,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=a?i.media||"default":t,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=i.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),a&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const pp={name:"the-home-tab",data:()=>({playlists:[],albums:[]}),computed:{...ko(["getHomeData"]),needToWait(){return 0===this.getHomeData.albums.data.length&&0===this.getHomeData.playlists.data.length}},methods:{artistView:Qp.bind(null,"artist"),albumView:Qp.bind(null,"album"),playlistView:Qp.bind(null,"playlist"),openSettings(){document.getElementById("main_settings_tablink").click()},addToQueue(t){tp.sendAddToQueue(t.currentTarget.dataset.link)},initHome(t){console.log("init home");const{playlists:{data:e},albums:{data:n}}=t;this.playlists=e,this.albums=n},checkIfWaitData(t){if(this.needToWait){let t=this.$store.subscribeAction({after:(e,n)=>{"cacheHomeData"===e.type&&(this.initHome(this.getHomeData),t())}})}else this.initHome(this.getHomeData)}},mounted(){console.log("home mounted"),localStorage.getItem("arl")&&this.$refs.notLogged.classList.add("hide"),this.checkIfWaitData(this.getHomeData)},beforeDestroy(){console.log("home bef dest")}};var hp=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"root",staticClass:"main_tabcontent",attrs:{id:"home_tab"}},[n("h2",{staticClass:"page_heading"},[t._v(t._s(t.$t("globals.welcome")))]),t._v(" "),n("section",{ref:"notLogged",staticClass:"home_section",attrs:{id:"home_not_logged_in"}},[n("p",{attrs:{id:"home_not_logged_text"}},[t._v(t._s(t.$t("home.needTologin")))]),t._v(" "),n("button",{attrs:{type:"button",name:"button"},on:{click:t.openSettings}},[t._v(t._s(t.$t("home.openSettings")))])]),t._v(" "),t.playlists.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularPlaylists")))]),t._v(" "),n("div",{staticClass:"release_grid"},t._l(t.playlists,(function(e){return n("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.playlistView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.picture_medium}}),t._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"secondary-text"},[t._v("\n\t\t\t\t\t"+t._s(t.$t("globals.by",[e.user.name])+" - "+t.$tc("globals.listTabs.trackN",e.nb_tracks))+"\n\t\t\t\t")])])})),0)]):t._e(),t._v(" "),t.albums.length?n("section",{staticClass:"home_section"},[n("h3",{staticClass:"section_heading"},[t._v(t._s(t.$t("home.sections.popularAlbums")))]),t._v(" "),n("div",{staticClass:"release_grid"},t._l(t.albums,(function(e){return n("div",{key:e.id,staticClass:"release clickable",attrs:{"data-id":e.id},on:{click:t.albumView}},[n("div",{staticClass:"cover_container"},[n("img",{staticClass:"rounded coverart",attrs:{"aria-hidden":"true",src:e.cover_medium}}),t._v(" "),n("div",{staticClass:"download_overlay",attrs:{role:"button","aria-label":"download","data-link":e.link},on:{click:function(e){return e.stopPropagation(),t.addToQueue(e)}}},[n("i",{staticClass:"material-icons",attrs:{title:t.$t("globals.download_hint")}},[t._v("get_app")])])]),t._v(" "),n("p",{staticClass:"primary-text"},[t._v(t._s(e.title))]),t._v(" "),n("p",{staticClass:"secondary-text"},[t._v(t._s(""+t.$t("globals.by",[e.artist.name])))])])})),0)]):t._e()])};hp._withStripped=!0;var fp=function(t,e,n,a,i,r,s,o){const l=("function"==typeof n?n.options:n)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\TheHomeTab.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=a;{let t;if(e&&(t=function(t){e.call(this,s(t))}),void 0!==t)if(l.functional){const e=l.render;l.render=function(n,a){return t.call(a),e(n,a)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,t):[t]}}return l}({render:hp,staticRenderFns:[]},(function(t){t&&t("data-v-989d00c2_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheHomeTab.vue"},media:void 0})}),pp,void 0,!1,0,(function t(){const e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(document.querySelector('style[data-vue-ssr-id~="'+t+'"]'))return;const r=a?i.media||"default":t,s=n[r]||(n[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(t)){let n=i.source,o=s.ids.length;if(s.ids.push(t),a&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const t=s.element=document.createElement("style");t.type="text/css",i.media&&t.setAttribute("media",i.media),a&&(t.setAttribute("data-group",r),t.setAttribute("data-next-index","0")),e.appendChild(t)}if(a&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(n),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const t=document.createTextNode(n),e=s.element.childNodes;e[o]&&s.element.removeChild(e[o]),e.length?s.element.insertBefore(t,e[o]):s.element.appendChild(t)}}}}));const mp={name:"the-charts-tab",data:()=>({country:"",id:0,countries:[],chart:[]}),computed:{...ko(["getCharts"]),needToWait(){return 0===this.getCharts.length}},mounted(){console.log("charts mounted"),this.waitCharts(),Oo.on("setChartTracks",this.setTracklist)},beforeDestroy(){console.log("charts bef dest")},methods:{artistView:Qp.bind(null,"artist"),albumView:Qp.bind(null,"album"),waitCharts(){if(this.needToWait){let t=this.$store.subscribeAction({after:(e,n)=>{"cacheCharts"===e.type&&(this.initCharts(),t())}})}else this.initCharts()},playPausePreview(t){Bo.$emit("trackPreview:playPausePreview",t)},previewMouseEnter(t){Bo.$emit("trackPreview:previewMouseEnter",t)},previewMouseLeave(t){Bo.$emit("trackPreview:previewMouseLeave",t)},convertDuration:lp.convertDuration,addToQueue(t){t.stopPropagation(),tp.sendAddToQueue(t.currentTarget.dataset.link)},getTrackList(t){document.getElementById("content").scrollTo(0,0);const{currentTarget:{dataset:{title:e}},currentTarget:{dataset:{id:n}}}=t;this.country=e,localStorage.setItem("chart",this.country),this.id=n,Oo.emit("getChartTracks",this.id)},setTracklist(t){console.log("settracklist"),this.chart=t},changeCountry(){this.country="",this.id=0},initCharts(){if(console.log("init charts"),this.countries=this.getCharts,this.country=localStorage.getItem("chart")||"",!this.country)return;let t=0;for(;t=2)t.mixin({beforeCreate:n});else * * Copyright (C) 2018 Varun A P */ -!function(e,n){t.exports?t.exports=n():e.Toastify=n()}(fp,(function(t){var e=function(t){return new e.lib.init(t)};function n(t,e){return!(!t||"string"!=typeof e)&&!!(t.className&&t.className.trim().split(/\s+/gi).indexOf(e)>-1)}return e.lib=e.prototype={toastify:"1.8.0",constructor:e,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||"Hi there!",this.options.node=t.node,this.options.duration=0===t.duration?0:t.duration||3e3,this.options.selector=t.selector,this.options.callback=t.callback||function(){},this.options.destination=t.destination,this.options.newWindow=t.newWindow||!1,this.options.close=t.close||!1,this.options.gravity="bottom"===t.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=t.positionLeft||!1,this.options.position=t.position||"",this.options.backgroundColor=t.backgroundColor,this.options.avatar=t.avatar||"",this.options.className=t.className||"",this.options.stopOnFocus=void 0===t.stopOnFocus||t.stopOnFocus,this.options.onClick=t.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t=document.createElement("div");if(t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=" "+this.options.gravity,this.options.backgroundColor&&(t.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(t.innerHTML=this.options.text,""!==this.options.avatar){var e=document.createElement("img");e.src=this.options.avatar,e.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(e):t.insertAdjacentElement("beforeend",e)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){const e=this;t.addEventListener("mouseover",(function(e){window.clearTimeout(t.timeOutValue)})),t.addEventListener("mouseleave",(function(){t.timeOutValue=window.setTimeout((function(){e.removeElement(t)}),e.options.duration)}))}return void 0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),t},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return t.insertBefore(this.toastElement,t.firstChild),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),e.reposition()}.bind(this),400)}},e.reposition=function(){for(var t,e={top:15,bottom:15},a={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[t]=i[t]+"px",i[t]+=o+15):!0===n(r[s],"toastify-left")?(r[s].style[t]=e[t]+"px",e[t]+=o+15):(r[s].style[t]=a[t]+"px",a[t]+=o+15)}return this},e.lib.init.prototype=e.lib,e}))})),vp=mp((function(t){ +!function(e,n){t.exports?t.exports=n():e.Toastify=n()}(bp,(function(t){var e=function(t){return new e.lib.init(t)};function n(t,e){return!(!t||"string"!=typeof e)&&!!(t.className&&t.className.trim().split(/\s+/gi).indexOf(e)>-1)}return e.lib=e.prototype={toastify:"1.8.0",constructor:e,init:function(t){return t||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||"Hi there!",this.options.node=t.node,this.options.duration=0===t.duration?0:t.duration||3e3,this.options.selector=t.selector,this.options.callback=t.callback||function(){},this.options.destination=t.destination,this.options.newWindow=t.newWindow||!1,this.options.close=t.close||!1,this.options.gravity="bottom"===t.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=t.positionLeft||!1,this.options.position=t.position||"",this.options.backgroundColor=t.backgroundColor,this.options.avatar=t.avatar||"",this.options.className=t.className||"",this.options.stopOnFocus=void 0===t.stopOnFocus||t.stopOnFocus,this.options.onClick=t.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var t=document.createElement("div");if(t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=" "+this.options.gravity,this.options.backgroundColor&&(t.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);else if(t.innerHTML=this.options.text,""!==this.options.avatar){var e=document.createElement("img");e.src=this.options.avatar,e.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(e):t.insertAdjacentElement("beforeend",e)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?t.insertAdjacentElement("afterbegin",n):t.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){const e=this;t.addEventListener("mouseover",(function(e){window.clearTimeout(t.timeOutValue)})),t.addEventListener("mouseleave",(function(){t.timeOutValue=window.setTimeout((function(){e.removeElement(t)}),e.options.duration)}))}return void 0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),t},showToast:function(){var t;if(this.toastElement=this.buildToast(),!(t=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return t.insertBefore(this.toastElement,t.firstChild),e.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),e.reposition()}.bind(this),400)}},e.reposition=function(){for(var t,e={top:15,bottom:15},a={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[t]=i[t]+"px",i[t]+=o+15):!0===n(r[s],"toastify-left")?(r[s].style[t]=e[t]+"px",e[t]+=o+15):(r[s].style[t]=a[t]+"px",a[t]+=o+15)}return this},e.lib.init.prototype=e.lib,e}))})),kp=yp((function(t){ /*! * jQuery JavaScript Library v3.5.1 * https://jquery.com/ @@ -36,7 +36,7 @@ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else * * Date: 2020-05-04T22:49Z */ -!function(e,n){t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}}("undefined"!=typeof window?window:fp,(function(t,e){var n=[],a=Object.getPrototypeOf,i=n.slice,r=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},s=n.push,o=n.indexOf,l={},c=l.toString,d=l.hasOwnProperty,u=d.toString,p=u.call(Object),h={},f=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},m=function(t){return null!=t&&t===t.window},g=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(t,e,n){var a,i,r=(n=n||g).createElement("script");if(r.text=t,e)for(a in v)(i=e[a]||e.getAttribute&&e.getAttribute(a))&&r.setAttribute(a,i);n.head.appendChild(r).parentNode.removeChild(r)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var _=function(t,e){return new _.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,n=y(t);return!f(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:"3.5.1",constructor:_,length:0,toArray:function(){return i.call(this)},get:function(t){return null==t?i.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n0&&e-1 in t)}_.fn=_.prototype={jquery:"3.5.1",constructor:_,length:0,toArray:function(){return i.call(this)},get:function(t){return null==t?i.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n=2)t.mixin({beforeCreate:n});else * * Date: 2020-03-14 */ -function(t){var e,n,a,i,r,s,o,l,c,d,u,p,h,f,m,g,v,b,y,_="sizzle"+1*new Date,k=t.document,w=0,A=0,C=lt(),x=lt(),T=lt(),S=lt(),z=function(t,e){return t===e&&(u=!0),0},M={}.hasOwnProperty,D=[],$=D.pop,N=D.push,P=D.push,L=D.slice,R=function(t,e){for(var n=0,a=t.length;n+~]|"+j+")"+j+"*"),H=new RegExp(j+"|>"),G=new RegExp(O),W=new RegExp("^"+I+"$"),Q={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},at=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){p()},st=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(D=L.call(k.childNodes),k.childNodes),D[k.childNodes.length].nodeType}catch(t){P={apply:D.length?function(t,e){N.apply(t,L.call(e))}:function(t,e){for(var n=t.length,a=0;t[n++]=e[a++];);t.length=n-1}}}function ot(t,e,a,i){var r,o,c,d,u,f,v,b=e&&e.ownerDocument,k=e?e.nodeType:9;if(a=a||[],"string"!=typeof t||!t||1!==k&&9!==k&&11!==k)return a;if(!i&&(p(e),e=e||h,m)){if(11!==k&&(u=Z.exec(t)))if(r=u[1]){if(9===k){if(!(c=e.getElementById(r)))return a;if(c.id===r)return a.push(c),a}else if(b&&(c=b.getElementById(r))&&y(e,c)&&c.id===r)return a.push(c),a}else{if(u[2])return P.apply(a,e.getElementsByTagName(t)),a;if((r=u[3])&&n.getElementsByClassName&&e.getElementsByClassName)return P.apply(a,e.getElementsByClassName(r)),a}if(n.qsa&&!S[t+" "]&&(!g||!g.test(t))&&(1!==k||"object"!==e.nodeName.toLowerCase())){if(v=t,b=e,1===k&&(H.test(t)||V.test(t))){for((b=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((d=e.getAttribute("id"))?d=d.replace(at,it):e.setAttribute("id",d=_)),o=(f=s(t)).length;o--;)f[o]=(d?"#"+d:":scope")+" "+yt(f[o]);v=f.join(",")}try{return P.apply(a,b.querySelectorAll(v)),a}catch(e){S(t,!0)}finally{d===_&&e.removeAttribute("id")}}}return l(t.replace(q,"$1"),e,a,i)}function lt(){var t=[];return function e(n,i){return t.push(n+" ")>a.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function ct(t){return t[_]=!0,t}function dt(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)a.attrHandle[n[i]]=e}function pt(t,e){var n=e&&t,a=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(a)return a;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct((function(e){return e=+e,ct((function(n,a){for(var i,r=t([],n.length,e),s=r.length;s--;)n[i=r[s]]&&(n[i]=!(a[i]=n[i]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=ot.support={},r=ot.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},p=ot.setDocument=function(t){var e,i,s=t?t.ownerDocument||t:k;return s!=h&&9===s.nodeType&&s.documentElement?(f=(h=s).documentElement,m=!r(h),k!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.scope=dt((function(t){return f.appendChild(t).appendChild(h.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=dt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=dt((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(h.getElementsByClassName),n.getById=dt((function(t){return f.appendChild(t).id=_,!h.getElementsByName||!h.getElementsByName(_).length})),n.getById?(a.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},a.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(a.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},a.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,a,i,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(i=e.getElementsByName(t),a=0;r=i[a++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),a.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,a=[],i=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[i++];)1===n.nodeType&&a.push(n);return a}return r},a.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=X.test(h.querySelectorAll))&&(dt((function(t){var e;f.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+E+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),dt((function(t){t.innerHTML="";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=X.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&dt((function(t){n.disconnectedMatch=b.call(t,"*"),b.call(t,"[s!='']:x"),v.push("!=",O)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=X.test(f.compareDocumentPosition),y=e||X.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,a=e&&e.parentNode;return t===a||!(!a||1!==a.nodeType||!(n.contains?n.contains(a):t.compareDocumentPosition&&16&t.compareDocumentPosition(a)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return u=!0,0;var a=!t.compareDocumentPosition-!e.compareDocumentPosition;return a||(1&(a=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===a?t==h||t.ownerDocument==k&&y(k,t)?-1:e==h||e.ownerDocument==k&&y(k,e)?1:d?R(d,t)-R(d,e):0:4&a?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,a=0,i=t.parentNode,r=e.parentNode,s=[t],o=[e];if(!i||!r)return t==h?-1:e==h?1:i?-1:r?1:d?R(d,t)-R(d,e):0;if(i===r)return pt(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)o.unshift(n);for(;s[a]===o[a];)a++;return a?pt(s[a],o[a]):s[a]==k?-1:o[a]==k?1:0},h):h},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if(p(t),n.matchesSelector&&m&&!S[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var a=b.call(t,e);if(a||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return a}catch(t){S(e,!0)}return ot(e,h,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!=h&&p(t),y(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!=h&&p(t);var i=a.attrHandle[e.toLowerCase()],r=i&&M.call(a.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==r?r:n.attributes||!m?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},ot.escape=function(t){return(t+"").replace(at,it)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,a=[],i=0,r=0;if(u=!n.detectDuplicates,d=!n.sortStable&&t.slice(0),t.sort(z),u){for(;e=t[r++];)e===t[r]&&(i=a.push(r));for(;i--;)t.splice(a[i],1)}return d=null,t},i=ot.getText=function(t){var e,n="",a=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[a++];)n+=i(e);return n},(a=ot.selectors={cacheLength:50,createPseudo:ct,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&G.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&C(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(a){var i=ot.attr(a,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,a,i){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),o="of-type"===e;return 1===a&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,d,u,p,h,f,m=r!==s?"nextSibling":"previousSibling",g=e.parentNode,v=o&&e.nodeName.toLowerCase(),b=!l&&!o,y=!1;if(g){if(r){for(;m;){for(p=e;p=p[m];)if(o?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&b){for(y=(h=(c=(d=(u=(p=g)[_]||(p[_]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===w&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(y=h=0)||f.pop();)if(1===p.nodeType&&++y&&p===e){d[t]=[w,h,y];break}}else if(b&&(y=h=(c=(d=(u=(p=e)[_]||(p[_]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]||[])[0]===w&&c[1]),!1===y)for(;(p=++h&&p&&p[m]||(y=h=0)||f.pop())&&((o?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(b&&((d=(u=p[_]||(p[_]={}))[p.uniqueID]||(u[p.uniqueID]={}))[t]=[w,y]),p!==e)););return(y-=i)===a||y%a==0&&y/a>=0}}},PSEUDO:function(t,e){var n,i=a.pseudos[t]||a.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],a.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var a,r=i(t,e),s=r.length;s--;)t[a=R(t,r[s])]=!(n[a]=r[s])})):function(t){return i(t,0,n)}):i}},pseudos:{not:ct((function(t){var e=[],n=[],a=o(t.replace(q,"$1"));return a[_]?ct((function(t,e,n,i){for(var r,s=a(t,null,i,[]),o=t.length;o--;)(r=s[o])&&(t[o]=!(e[o]=r))})):function(t,i,r){return e[0]=t,a(e,null,r,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return ot(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return W.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!a.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return Y.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;ne?e:n;--a>=0;)t.push(a);return t})),gt:gt((function(t,e,n){for(var a=n<0?n+e:n;++a1?function(e,n,a){for(var i=t.length;i--;)if(!t[i](e,n,a))return!1;return!0}:t[0]}function wt(t,e,n,a,i){for(var r,s=[],o=0,l=t.length,c=null!=e;o-1&&(r[c]=!(s[c]=u))}}else v=wt(v===s?v.splice(f,v.length):v),i?i(null,s,v,l):P.apply(s,v)}))}function Ct(t){for(var e,n,i,r=t.length,s=a.relative[t[0].type],o=s||a.relative[" "],l=s?1:0,d=_t((function(t){return t===e}),o,!0),u=_t((function(t){return R(e,t)>-1}),o,!0),p=[function(t,n,a){var i=!s&&(a||n!==c)||((e=n).nodeType?d(t,n,a):u(t,n,a));return e=null,i}];l1&&kt(p),l>1&&yt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),n,l0,i=t.length>0,r=function(r,s,o,l,d){var u,f,g,v=0,b="0",y=r&&[],_=[],k=c,A=r||i&&a.find.TAG("*",d),C=w+=null==k?1:Math.random()||.1,x=A.length;for(d&&(c=s==h||s||d);b!==x&&null!=(u=A[b]);b++){if(i&&u){for(f=0,s||u.ownerDocument==h||(p(u),o=!m);g=t[f++];)if(g(u,s||h,o)){l.push(u);break}d&&(w=C)}n&&((u=!g&&u)&&v--,r&&y.push(u))}if(v+=b,n&&b!==v){for(f=0;g=e[f++];)g(y,_,s,o);if(r){if(v>0)for(;b--;)y[b]||_[b]||(_[b]=$.call(l));_=wt(_)}P.apply(l,_),d&&!r&&_.length>0&&v+e.length>1&&ot.uniqueSort(l)}return d&&(w=C,c=k),y};return n?ct(r):r}(r,i))).selector=t}return o},l=ot.select=function(t,e,n,i){var r,l,c,d,u,p="function"==typeof t&&t,h=!i&&s(t=p.selector||t);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&a.relative[l[1].type]){if(!(e=(a.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return n;p&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=Q.needsContext.test(t)?0:l.length;r--&&(c=l[r],!a.relative[d=c.type]);)if((u=a.find[d])&&(i=u(c.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(r,1),!(t=i.length&&yt(l)))return P.apply(n,i),n;break}}return(p||o(t,h))(i,e,!m,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=_.split("").sort(z).join("")===_,n.detectDuplicates=!!u,p(),n.sortDetached=dt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),dt((function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&dt((function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),dt((function(t){return null==t.getAttribute("disabled")}))||ut(E,(function(t,e,n){var a;if(!n)return!0===t[e]?e.toLowerCase():(a=t.getAttributeNode(e))&&a.specified?a.value:null})),ot}(t);_.find=w,_.expr=w.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=w.uniqueSort,_.text=w.getText,_.isXMLDoc=w.isXML,_.contains=w.contains,_.escapeSelector=w.escape;var A=function(t,e,n){for(var a=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&_(t).is(n))break;a.push(t)}return a},C=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},x=_.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return f(e)?_.grep(t,(function(t,a){return!!e.call(t,a,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return o.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var a=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===a.nodeType?_.find.matchesSelector(a,t)?[a]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,a=this.length,i=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&x.test(t)?_(t):t||[],!1).length}});var M,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var a,i;if(!t)return this;if(n=n||M,"string"==typeof t){if(!(a="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t))||!a[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(a[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(a[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),S.test(a[1])&&_.isPlainObject(e))for(a in e)f(this[a])?this[a](e[a]):this.attr(a,e[a]);return this}return(i=g.getElementById(a[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):f(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,M=_(g);var $=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&_.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?_.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?o.call(_(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return P(t,"nextSibling")},prev:function(t){return P(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,a){var i=_.map(this,e,n);return"Until"!==t.slice(-5)&&(a=n),a&&"string"==typeof a&&(i=_.filter(a,i)),this.length>1&&(N[t]||_.uniqueSort(i),$.test(t)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function R(t){return t}function E(t){throw t}function j(t,e,n,a){var i;try{t&&f(i=t.promise)?i.call(t).done(e).fail(n):t&&f(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(a))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,a,i,r=[],s=[],o=-1,l=function(){for(i=i||t.once,a=e=!0;s.length;o=-1)for(n=s.shift();++o-1;)r.splice(n,1),n<=o&&o--})),this},has:function(t){return t?_.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return i=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return i=s=[],n||e||(r=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c},_.extend({Deferred:function(e){var n=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],a="pending",i={state:function(){return a},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(e){_.each(n,(function(n,a){var i=f(t[a[4]])&&t[a[4]];r[a[1]]((function(){var t=i&&i.apply(this,arguments);t&&f(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[a[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(e,a,i){var r=0;function s(e,n,a,i){return function(){var o=this,l=arguments,c=function(){var t,c;if(!(e=r&&(a!==E&&(o=void 0,l=[t]),n.rejectWith(o,l))}};e?d():(_.Deferred.getStackHook&&(d.stackTrace=_.Deferred.getStackHook()),t.setTimeout(d))}}return _.Deferred((function(t){n[0][3].add(s(0,t,f(i)?i:R,t.notifyWith)),n[1][3].add(s(0,t,f(e)?e:R)),n[2][3].add(s(0,t,f(a)?a:E))})).promise()},promise:function(t){return null!=t?_.extend(t,i):i}},r={};return _.each(n,(function(t,e){var s=e[2],o=e[5];i[e[1]]=s.add,o&&s.add((function(){a=o}),n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),s.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=s.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(t){var e=arguments.length,n=e,a=Array(n),r=i.call(arguments),s=_.Deferred(),o=function(t){return function(n){a[t]=this,r[t]=arguments.length>1?i.call(arguments):n,--e||s.resolveWith(a,r)}};if(e<=1&&(j(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||f(r[n]&&r[n].then)))return s.then();for(;n--;)j(r[n],o(n),s.reject);return s.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&I.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},_.readyException=function(e){t.setTimeout((function(){throw e}))};var F=_.Deferred();function O(){g.removeEventListener("DOMContentLoaded",O),t.removeEventListener("load",O),_.ready()}_.fn.ready=function(t){return F.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||F.resolveWith(g,[_]))}}),_.ready.then=F.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?t.setTimeout(_.ready):(g.addEventListener("DOMContentLoaded",O),t.addEventListener("load",O));var B=function(t,e,n,a,i,r,s){var o=0,l=t.length,c=null==n;if("object"===y(n))for(o in i=!0,n)B(t,e,o,n[o],!0,r,s);else if(void 0!==a&&(i=!0,f(a)||(s=!0),c&&(s?(e.call(t,a),e=null):(c=e,e=function(t,e,n){return c.call(_(t),n)})),e))for(;o1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),_.extend({queue:function(t,e,n){var a;if(t)return e=(e||"fx")+"queue",a=Q.get(t,e),n&&(!a||Array.isArray(n)?a=Q.access(t,e,_.makeArray(n)):a.push(n)),a||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),a=n.length,i=n.shift(),r=_._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),a--),i&&("fx"===e&&n.unshift("inprogress"),delete r.stop,i.call(t,(function(){_.dequeue(t,e)}),r)),!a&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:_.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;!function(){var t=g.createDocumentFragment().appendChild(g.createElement("div")),e=g.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),h.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",h.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="",h.option=!!t.lastChild}();var ht={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ft(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?_.merge([t],n):n}function mt(t,e){for(var n=0,a=t.length;n",""]);var gt=/<|&#?\w+;/;function vt(t,e,n,a,i){for(var r,s,o,l,c,d,u=e.createDocumentFragment(),p=[],h=0,f=t.length;h-1)i&&i.push(r);else if(c=at(r),s=ft(u.appendChild(r),"script"),c&&mt(s),n)for(d=0;r=s[d++];)pt.test(r.type||"")&&n.push(r);return u}var bt=/^key/,yt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_t=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function wt(){return!1}function At(t,e){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===e)}function Ct(t,e,n,a,i,r){var s,o;if("object"==typeof e){for(o in"string"!=typeof n&&(a=a||n,n=void 0),e)Ct(t,o,n,a,e[o],r);return t}if(null==a&&null==i?(i=n,a=n=void 0):null==i&&("string"==typeof n?(i=a,a=void 0):(i=a,a=n,n=void 0)),!1===i)i=wt;else if(!i)return t;return 1===r&&(s=i,(i=function(t){return _().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=_.guid++)),t.each((function(){_.event.add(this,e,i,a,n)}))}function xt(t,e,n){n?(Q.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var a,r,s=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=i.call(arguments),Q.set(this,e,s),a=n(this,e),this[e](),s!==(r=Q.get(this,e))||a?Q.set(this,e,!1):r={},s!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else s.length&&(Q.set(this,e,{value:_.event.trigger(_.extend(s[0],_.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&_.event.add(t,e,kt)}_.event={global:{},add:function(t,e,n,a,i){var r,s,o,l,c,d,u,p,h,f,m,g=Q.get(t);if(G(t))for(n.handler&&(n=(r=n).handler,i=r.selector),i&&_.find.matchesSelector(nt,i),n.guid||(n.guid=_.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(L)||[""]).length;c--;)h=m=(o=_t.exec(e[c])||[])[1],f=(o[2]||"").split(".").sort(),h&&(u=_.event.special[h]||{},h=(i?u.delegateType:u.bindType)||h,u=_.event.special[h]||{},d=_.extend({type:h,origType:m,data:a,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:f.join(".")},r),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,a,f,s)||t.addEventListener&&t.addEventListener(h,s)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,d):p.push(d),_.event.global[h]=!0)},remove:function(t,e,n,a,i){var r,s,o,l,c,d,u,p,h,f,m,g=Q.hasData(t)&&Q.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(L)||[""]).length;c--;)if(h=m=(o=_t.exec(e[c])||[])[1],f=(o[2]||"").split(".").sort(),h){for(u=_.event.special[h]||{},p=l[h=(a?u.delegateType:u.bindType)||h]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)d=p[r],!i&&m!==d.origType||n&&n.guid!==d.guid||o&&!o.test(d.namespace)||a&&a!==d.selector&&("**"!==a||!d.selector)||(p.splice(r,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(t,d));s&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||_.removeEvent(t,h,g.handle),delete l[h])}else for(h in l)_.event.remove(t,h+e[c],n,a,!0);_.isEmptyObject(l)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,n,a,i,r,s,o=new Array(arguments.length),l=_.event.fix(t),c=(Q.get(this,"events")||Object.create(null))[l.type]||[],d=_.event.special[l.type]||{};for(o[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],s={},n=0;n-1:_.find(i,this,null,[c]).length),s[i]&&r.push(a);r.length&&o.push({elem:c,handlers:r})}return c=this,l\s*$/g;function Mt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function $t(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,a,i,r,s,o;if(1===e.nodeType){if(Q.hasData(t)&&(o=Q.get(t).events))for(i in Q.remove(e,"handle events"),o)for(n=0,a=o[i].length;n1&&"string"==typeof g&&!h.checkClone&&St.test(g))return t.each((function(i){var r=t.eq(i);v&&(e[0]=g.call(this,i,r.html())),Lt(r,e,n,a)}));if(p&&(s=(i=vt(e,t[0].ownerDocument,!1,t,a)).firstChild,1===i.childNodes.length&&(i=s),s||a)){for(l=(o=_.map(ft(i,"script"),Dt)).length;u0&&mt(s,!l&&ft(t,"script")),o},cleanData:function(t){for(var e,n,a,i=_.event.special,r=0;void 0!==(n=t[r]);r++)if(G(n)){if(e=n[Q.expando]){if(e.events)for(a in e.events)i[a]?_.event.remove(n,a):_.removeEvent(n,a,e.handle);n[Q.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return B(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Lt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)}))},prepend:function(){return Lt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return B(this,(function(t){var e=this[0]||{},n=0,a=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!ht[(ut.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n3,nt.removeChild(e)),o}}))}();var qt=["Webkit","Moz","ms"],Ut=g.createElement("div").style,Vt={};function Ht(t){var e=_.cssProps[t]||Vt[t];return e||(t in Ut?t:Vt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=qt.length;n--;)if((t=qt[n]+e)in Ut)return t}(t)||t)}var Gt=/^(none|table(?!-c[ea]).+)/,Wt=/^--/,Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function Yt(t,e,n){var a=tt.exec(e);return a?Math.max(0,a[2]-(n||0))+(a[3]||"px"):e}function Jt(t,e,n,a,i,r){var s="width"===e?1:0,o=0,l=0;if(n===(a?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=_.css(t,n+et[s],!0,i)),a?("content"===n&&(l-=_.css(t,"padding"+et[s],!0,i)),"margin"!==n&&(l-=_.css(t,"border"+et[s]+"Width",!0,i))):(l+=_.css(t,"padding"+et[s],!0,i),"padding"!==n?l+=_.css(t,"border"+et[s]+"Width",!0,i):o+=_.css(t,"border"+et[s]+"Width",!0,i));return!a&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-o-.5))||0),l}function Xt(t,e,n){var a=jt(t),i=(!h.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,a),r=i,s=Ot(t,e,a),o="offset"+e[0].toUpperCase()+e.slice(1);if(Et.test(s)){if(!n)return s;s="auto"}return(!h.boxSizingReliable()&&i||!h.reliableTrDimensions()&&T(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===_.css(t,"display",!1,a))&&t.getClientRects().length&&(i="border-box"===_.css(t,"boxSizing",!1,a),(r=o in t)&&(s=t[o])),(s=parseFloat(s)||0)+Jt(t,e,n||(i?"border":"content"),r,a,s)+"px"}function Zt(t,e,n,a,i){return new Zt.prototype.init(t,e,n,a,i)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ot(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,a){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,r,s,o=H(e),l=Wt.test(e),c=t.style;if(l||(e=Ht(o)),s=_.cssHooks[e]||_.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,a))?i:c[e];"string"===(r=typeof n)&&(i=tt.exec(n))&&i[1]&&(n=st(t,e,i),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=i&&i[3]||(_.cssNumber[o]?"":"px")),h.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,a))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,a){var i,r,s,o=H(e);return Wt.test(e)||(e=Ht(o)),(s=_.cssHooks[e]||_.cssHooks[o])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=Ot(t,e,a)),"normal"===i&&e in Kt&&(i=Kt[e]),""===n||n?(r=parseFloat(i),!0===n||isFinite(r)?r||0:i):i}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,a){if(n)return!Gt.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Xt(t,e,a):It(t,Qt,(function(){return Xt(t,e,a)}))},set:function(t,n,a){var i,r=jt(t),s=!h.scrollboxSize()&&"absolute"===r.position,o=(s||a)&&"border-box"===_.css(t,"boxSizing",!1,r),l=a?Jt(t,e,a,o,r):0;return o&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-Jt(t,e,"border",!1,r)-.5)),l&&(i=tt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),Yt(0,n,l)}}})),_.cssHooks.marginLeft=Bt(h.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ot(t,"marginLeft"))||t.getBoundingClientRect().left-It(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var a=0,i={},r="string"==typeof n?n.split(" "):[n];a<4;a++)i[t+et[a]+e]=r[a]||r[a-2]||r[0];return i}},"margin"!==t&&(_.cssHooks[t+e].set=Yt)})),_.fn.extend({css:function(t,e){return B(this,(function(t,e,n){var a,i,r={},s=0;if(Array.isArray(e)){for(a=jt(t),i=e.length;s1)}}),_.Tween=Zt,Zt.prototype={constructor:Zt,init:function(t,e,n,a,i,r){this.elem=t,this.prop=n,this.easing=i||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=a,this.unit=r||(_.cssNumber[n]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,n=Zt.propHooks[this.prop];return this.options.duration?this.pos=e=_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[Ht(t.prop)]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=Zt.prototype.init,_.fx.step={};var te,ee,ne,ae,ie=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function se(){ee&&(!1===g.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(se):t.setTimeout(se,_.fx.interval),_.fx.tick())}function oe(){return t.setTimeout((function(){te=void 0})),te=Date.now()}function le(t,e){var n,a=0,i={height:t};for(e=e?1:0;a<4;a+=2-e)i["margin"+(n=et[a])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ce(t,e,n){for(var a,i=(de.tweeners[e]||[]).concat(de.tweeners["*"]),r=0,s=i.length;r1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var a,i,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?_.prop(t,e,n):(1===r&&_.isXMLDoc(t)||(i=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?ue:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):i&&"set"in i&&void 0!==(a=i.set(t,n,e))?a:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(a=i.get(t,e))?a:null==(a=_.find.attr(t,e))?void 0:a)},attrHooks:{type:{set:function(t,e){if(!h.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,a=0,i=e&&e.match(L);if(i&&1===t.nodeType)for(;n=i[a++];)t.removeAttribute(n)}}),ue={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=pe[e]||_.find.attr;pe[e]=function(t,e,a){var i,r,s=e.toLowerCase();return a||(r=pe[s],pe[s]=i,i=null!=n(t,e,a)?s:null,pe[s]=r),i}}));var he=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function me(t){return(t.match(L)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}_.fn.extend({prop:function(t,e){return B(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var a,i,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&_.isXMLDoc(t)||(e=_.propFix[e]||e,i=_.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(a=i.set(t,n,e))?a:t[e]=n:i&&"get"in i&&null!==(a=i.get(t,e))?a:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,a,i,r,s,o,l=0;if(f(t))return this.each((function(e){_(this).addClass(t.call(this,e,ge(this)))}));if((e=ve(t)).length)for(;n=this[l++];)if(i=ge(n),a=1===n.nodeType&&" "+me(i)+" "){for(s=0;r=e[s++];)a.indexOf(" "+r+" ")<0&&(a+=r+" ");i!==(o=me(a))&&n.setAttribute("class",o)}return this},removeClass:function(t){var e,n,a,i,r,s,o,l=0;if(f(t))return this.each((function(e){_(this).removeClass(t.call(this,e,ge(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[l++];)if(i=ge(n),a=1===n.nodeType&&" "+me(i)+" "){for(s=0;r=e[s++];)for(;a.indexOf(" "+r+" ")>-1;)a=a.replace(" "+r+" "," ");i!==(o=me(a))&&n.setAttribute("class",o)}return this},toggleClass:function(t,e){var n=typeof t,a="string"===n||Array.isArray(t);return"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):f(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,ge(this),e),e)})):this.each((function(){var e,i,r,s;if(a)for(i=0,r=_(this),s=ve(t);e=s[i++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==n||((e=ge(this))&&Q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,a=0;for(e=" "+t+" ";n=this[a++];)if(1===n.nodeType&&(" "+me(ge(n))+" ").indexOf(e)>-1)return!0;return!1}});var be=/\r/g;_.fn.extend({val:function(t){var e,n,a,i=this[0];return arguments.length?(a=f(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=a?t.call(this,n,_(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(be,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:me(_.text(t))}},select:{get:function(t){var e,n,a,i=t.options,r=t.selectedIndex,s="select-one"===t.type,o=s?null:[],l=s?r+1:i.length;for(a=r<0?l:s?r:0;a-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},h.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),h.focusin="onfocusin"in t;var ye=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(e,n,a,i){var r,s,o,l,c,u,p,h,v=[a||g],b=d.call(e,"type")?e.type:e,y=d.call(e,"namespace")?e.namespace.split("."):[];if(s=h=o=a=a||g,3!==a.nodeType&&8!==a.nodeType&&!ye.test(b+_.event.triggered)&&(b.indexOf(".")>-1&&(y=b.split("."),b=y.shift(),y.sort()),c=b.indexOf(":")<0&&"on"+b,(e=e[_.expando]?e:new _.Event(b,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=a),n=null==n?[e]:_.makeArray(n,[e]),p=_.event.special[b]||{},i||!p.trigger||!1!==p.trigger.apply(a,n))){if(!i&&!p.noBubble&&!m(a)){for(l=p.delegateType||b,ye.test(l+b)||(s=s.parentNode);s;s=s.parentNode)v.push(s),o=s;o===(a.ownerDocument||g)&&v.push(o.defaultView||o.parentWindow||t)}for(r=0;(s=v[r++])&&!e.isPropagationStopped();)h=s,e.type=r>1?l:p.bindType||b,(u=(Q.get(s,"events")||Object.create(null))[e.type]&&Q.get(s,"handle"))&&u.apply(s,n),(u=c&&s[c])&&u.apply&&G(s)&&(e.result=u.apply(s,n),!1===e.result&&e.preventDefault());return e.type=b,i||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),n)||!G(a)||c&&f(a[b])&&!m(a)&&((o=a[c])&&(a[c]=null),_.event.triggered=b,e.isPropagationStopped()&&h.addEventListener(b,_e),a[b](),e.isPropagationStopped()&&h.removeEventListener(b,_e),_.event.triggered=void 0,o&&(a[c]=o)),e.result}},simulate:function(t,e,n){var a=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(a,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}}),h.focusin||_.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var a=this.ownerDocument||this.document||this,i=Q.access(a,e);i||a.addEventListener(t,n,!0),Q.access(a,e,(i||0)+1)},teardown:function(){var a=this.ownerDocument||this.document||this,i=Q.access(a,e)-1;i?Q.access(a,e,i):(a.removeEventListener(t,n,!0),Q.remove(a,e))}}}));var ke=t.location,we={guid:Date.now()},Ae=/\?/;_.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+e),n};var Ce=/\[\]$/,xe=/\r?\n/g,Te=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;function ze(t,e,n,a){var i;if(Array.isArray(e))_.each(e,(function(e,i){n||Ce.test(t)?a(t,i):ze(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,a)}));else if(n||"object"!==y(e))a(t,e);else for(i in e)ze(t+"["+i+"]",e[i],n,a)}_.param=function(t,e){var n,a=[],i=function(t,e){var n=f(e)?e():e;a[a.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){i(this.name,this.value)}));else for(n in t)ze(n,t[n],e,i);return a.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Se.test(this.nodeName)&&!Te.test(t)&&(this.checked||!dt.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(t){return{name:e.name,value:t.replace(xe,"\r\n")}})):{name:e.name,value:n.replace(xe,"\r\n")}})).get()}});var Me=/%20/g,De=/#.*$/,$e=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pe=/^(?:GET|HEAD)$/,Le=/^\/\//,Re={},Ee={},je="*/".concat("*"),Ie=g.createElement("a");function Fe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var a,i=0,r=e.toLowerCase().match(L)||[];if(f(n))for(;a=r[i++];)"+"===a[0]?(a=a.slice(1)||"*",(t[a]=t[a]||[]).unshift(n)):(t[a]=t[a]||[]).push(n)}}function Oe(t,e,n,a){var i={},r=t===Ee;function s(o){var l;return i[o]=!0,_.each(t[o]||[],(function(t,o){var c=o(e,n,a);return"string"!=typeof c||r||i[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!i["*"]&&s("*")}function Be(t,e){var n,a,i=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:a||(a={}))[n]=e[n]);return a&&_.extend(!0,t,a),t}Ie.href=ke.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":je,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Be(Be(t,_.ajaxSettings),e):Be(_.ajaxSettings,t)},ajaxPrefilter:Fe(Re),ajaxTransport:Fe(Ee),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var a,i,r,s,o,l,c,d,u,p,h=_.ajaxSetup({},n),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?_(f):_.event,v=_.Deferred(),b=_.Callbacks("once memory"),y=h.statusCode||{},k={},w={},A="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Ne.exec(r);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,k[t]=e),this},overrideMimeType:function(t){return null==c&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||A;return a&&a.abort(e),x(0,e),this}};if(v.promise(C),h.url=((e||h.url||ke.href)+"").replace(Le,ke.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){l=g.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ie.protocol+"//"+Ie.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=_.param(h.data,h.traditional)),Oe(Re,h,n,C),c)return C;for(u in(d=_.event&&h.global)&&0==_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Pe.test(h.type),i=h.url.replace(De,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Me,"+")):(p=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Ae.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace($e,"$1"),p=(Ae.test(i)?"&":"?")+"_="+we.guid+++p),h.url=i+p),h.ifModified&&(_.lastModified[i]&&C.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&C.setRequestHeader("If-None-Match",_.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+je+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(f,C,h)||c))return C.abort();if(A="abort",b.add(h.complete),C.done(h.success),C.fail(h.error),a=Oe(Ee,h,n,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(o=t.setTimeout((function(){C.abort("timeout")}),h.timeout));try{c=!1,a.send(k,x)}catch(t){if(c)throw t;x(-1,t)}}else x(-1,"No Transport");function x(e,n,s,l){var u,p,g,k,w,A=n;c||(c=!0,o&&t.clearTimeout(o),a=void 0,r=l||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,s&&(k=function(t,e,n){for(var a,i,r,s,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=t.mimeType||e.getResponseHeader("Content-Type"));if(a)for(i in o)if(o[i]&&o[i].test(a)){l.unshift(i);break}if(l[0]in n)r=l[0];else{for(i in n){if(!l[0]||t.converters[i+" "+l[0]]){r=i;break}s||(s=i)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(h,C,s)),!u&&_.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),k=function(t,e,n,a){var i,r,s,o,l,c={},d=t.dataTypes.slice();if(d[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=d.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&a&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(i in c)if((o=i.split(" "))[1]===r&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[i]:!0!==c[i]&&(r=o[0],d.unshift(o[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(h,k,C,u),u?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(_.etag[i]=w)),204===e||"HEAD"===h.type?A="nocontent":304===e?A="notmodified":(A=k.state,p=k.data,u=!(g=k.error))):(g=A,!e&&A||(A="error",e<0&&(e=0))),C.status=e,C.statusText=(n||A)+"",u?v.resolveWith(f,[p,A,C]):v.rejectWith(f,[C,A,g]),C.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?p:g]),b.fireWith(f,[C,A]),d&&(m.trigger("ajaxComplete",[C,h]),--_.active||_.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,a,i){return f(n)&&(i=i||a,a=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:i,data:n,success:a},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(f(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return f(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=f(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var qe={0:200,1223:204},Ue=_.ajaxSettings.xhr();h.cors=!!Ue&&"withCredentials"in Ue,h.ajax=Ue=!!Ue,_.ajaxTransport((function(e){var n,a;if(h.cors||Ue&&!e.crossDomain)return{send:function(i,r){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)o.setRequestHeader(s,i[s]);n=function(t){return function(){n&&(n=a=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(qe[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=n(),a=o.onerror=o.ontimeout=n("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&t.setTimeout((function(){n&&a()}))},n=n("abort");try{o.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(a,i){e=_(" diff --git a/src/components/TheAboutTab.vue b/src/components/TheAboutTab.vue index 06aa505..be5e369 100644 --- a/src/components/TheAboutTab.vue +++ b/src/components/TheAboutTab.vue @@ -201,11 +201,11 @@ export default { }), mounted() { console.log('about mounted') - this.$refs.root.style.display = 'block' + // this.$refs.root.style.display = 'block' }, beforeDestroy() { console.log('about bef dest') - this.$refs.root.style.display = 'none' + // this.$refs.root.style.display = 'none' } } diff --git a/src/components/TheChartsTab.vue b/src/components/TheChartsTab.vue index 820d23a..15199a4 100644 --- a/src/components/TheChartsTab.vue +++ b/src/components/TheChartsTab.vue @@ -105,6 +105,7 @@ diff --git a/src/components/TheErrorsTab.vue b/src/components/TheErrorsTab.vue index 31a71f9..4f25bda 100644 --- a/src/components/TheErrorsTab.vue +++ b/src/components/TheErrorsTab.vue @@ -43,13 +43,13 @@ export default { }, mounted() { console.log('errors mounted') - this.$refs.root.style.display = 'block' + // this.$refs.root.style.display = 'block' EventBus.$on('showTabErrors', this.showErrors) this.$root.$on('showTabErrors', this.showErrors) }, beforeDestroy() { console.log('errors bef dest') - this.$refs.root.style.display = 'none' + // this.$refs.root.style.display = 'none' } } diff --git a/src/components/TheFavoritesTab.vue b/src/components/TheFavoritesTab.vue index 18e60d8..ed39816 100644 --- a/src/components/TheFavoritesTab.vue +++ b/src/components/TheFavoritesTab.vue @@ -1,5 +1,5 @@ + + - - diff --git a/src/components/TheHomeTab.vue b/src/components/TheHomeTab.vue index 1e50e03..5902781 100644 --- a/src/components/TheHomeTab.vue +++ b/src/components/TheHomeTab.vue @@ -123,7 +123,7 @@ export default { }, mounted() { console.log('home mounted') - this.$refs.root.style.display = 'block' + // this.$refs.root.style.display = 'block' if (localStorage.getItem('arl')) { this.$refs.notLogged.classList.add('hide') @@ -135,7 +135,7 @@ export default { }, beforeDestroy() { console.log('home bef dest') - this.$refs.root.style.display = 'none' + // this.$refs.root.style.display = 'none' } } diff --git a/src/components/TheLinkAnalyzerTab.vue b/src/components/TheLinkAnalyzerTab.vue index 56ba9b4..bec7b0c 100644 --- a/src/components/TheLinkAnalyzerTab.vue +++ b/src/components/TheLinkAnalyzerTab.vue @@ -192,7 +192,7 @@ export default { }, mounted() { console.log('link analyzer mounted') - this.$refs.root.style.display = 'block' + // this.$refs.root.style.display = 'block' EventBus.$on('linkAnalyzerTab:reset', this.reset) socket.on('analyze_track', this.showTrack) @@ -201,7 +201,7 @@ export default { }, beforeDestroy() { console.log('link analyzer bef dest') - this.$refs.root.style.display = 'none' + // this.$refs.root.style.display = 'none' } } diff --git a/src/components/TheSettingsTab.vue b/src/components/TheSettingsTab.vue index b31e3d0..9eaec44 100644 --- a/src/components/TheSettingsTab.vue +++ b/src/components/TheSettingsTab.vue @@ -641,11 +641,11 @@ export default { }), beforeDestroy() { console.log('settings bef dest') - this.$refs.root.style.display = 'none' + // this.$refs.root.style.display = 'none' }, mounted() { console.log('settings mounted') - this.$refs.root.style.display = 'block' + // this.$refs.root.style.display = 'block' this.locales = this.$i18n.availableLocales diff --git a/src/components/TheSidebar.vue b/src/components/TheSidebar.vue index 37e7cc8..5076d13 100644 --- a/src/components/TheSidebar.vue +++ b/src/components/TheSidebar.vue @@ -1,30 +1,72 @@