diff --git a/package-lock.json b/package-lock.json index c5e4eaa..0a86c35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "deemix-webui", - "version": "0.2.0", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/public/css/style.css b/public/css/style.css index 0f48995..e86ecc3 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","sans-serif";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;background-color:#000;border-radius:50%;min-width:32px;padding:0px;height:44px;border:0px}.cover_container .download_overlay i{color:#fff;padding:10px;cursor:pointer}.cover_container .download_overlay:focus{opacity:1}.cover_container:hover .coverart{opacity:.75}.cover_container:hover .download_overlay{opacity:1;border:0px}.inline-flex{display:flex;align-items:center}.inline-flex .right{margin-left:auto}.right{float:right}.hide{display:none !important}.changing-theme{transition:all 200ms ease-in-out}[v-cloak]{display:none}.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}.material-icons.md-18{font-size:18px}.material-icons.md-24{font-size:24px}.material-icons.md-36{font-size:36px}.material-icons.md-48{font-size:48px}.material-icons.mirrored{transform:scaleX(-1)}#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::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::-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_tab_container #queue_buttons{position:absolute;top:0;right:0;opacity:1;visibility:visible;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;text-transform:capitalize}.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}#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)}#search .search__icon i::selection{background:none}#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%}}.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);transition:width .3s linear}.progress .converting{background-color:var(--secondary-color);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;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;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;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;text-decoration:none;color:inherit}#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","sans-serif";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.btn-green{background-color:green}button.btn-green:active{background-color:green}button.btn-red{background-color:red}button.btn-red:active{background-color:red}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:not(.no-hover):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;background-color:#000;border-radius:50%;min-width:32px;padding:0px;height:44px;border:0px}.cover_container .download_overlay i{color:#fff;padding:10px;cursor:pointer}.cover_container .download_overlay:focus{opacity:1}.cover_container:hover .coverart{opacity:.75}.cover_container:hover .download_overlay{opacity:1;border:0px}.inline-flex{display:flex;align-items:center}.inline-flex .right{margin-left:auto}.right{float:right}.hide{display:none !important}.changing-theme{transition:all 200ms ease-in-out}[v-cloak]{display:none}.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}.material-icons.md-18{font-size:18px}.material-icons.md-24{font-size:24px}.material-icons.md-36{font-size:36px}.material-icons.md-48{font-size:48px}.material-icons.mirrored{transform:scaleX(-1)}#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::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::-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_tab_container #queue_buttons{position:absolute;top:0;right:0;opacity:1;visibility:visible;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;text-transform:capitalize}.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}#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)}#search .search__icon i::selection{background:none}#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%}}.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);transition:width .3s linear}.progress .converting{background-color:var(--secondary-color);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;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;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;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;text-decoration:none;color:inherit}#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 d0197fe..2c23fb8 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -3,13 +3,13 @@ * (c) 2014-2020 Evan You * Released under the MIT License. */ -var e=Object.freeze({});function t(e){return null==e}function a(e){return null!=e}function n(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function r(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function o(e){return"[object Object]"===s.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function c(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||o(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function u(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var a=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(a,1)}}var f=Object.prototype.hasOwnProperty;function v(e,t){return f.call(e,t)}function b(e){var t=Object.create(null);return function(a){return t[a]||(t[a]=e(a))}}var y=/-(\w)/g,k=b((function(e){return e.replace(y,(function(e,t){return t?t.toUpperCase():""}))})),_=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,w=b((function(e){return e.replace(A,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function a(a){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,a):e.call(t)}return a._length=e.length,a};function x(e,t){t=t||0;for(var a=e.length-t,n=new Array(a);a--;)n[a]=e[a+t];return n}function T(e,t){for(var a in t)e[a]=t[a];return e}function S(e){for(var t={},a=0;a0,Q=H&&H.indexOf("edge/")>0,Y=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H)||"ios"===G),J=(H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/)),Z={}.watch,X=!1;if(q)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){X=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===O&&(O=!q&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),O},ae=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,re="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);ie="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=z,oe=0,le=function(){this.id=oe++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){g(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,a=e.length;t-1)if(r&&!v(i,"default"))s=!1;else if(""===s||s===w(e)){var l=je(String,i.type);(l<0||o0&&(lt((l=e(l,(s||"")+"_"+o))[0])&<(d)&&(u[c]=ge(d.text+l[0].text),l.shift()),u.push.apply(u,l)):i(l)?lt(d)?u[c]=ge(d.text+l):""!==l&&u.push(ge(l)):lt(l)&<(d)?u[c]=ge(d.text+l.text):(n(r._isVList)&&a(l.tag)&&t(l.key)&&a(s)&&(l.key="__vlist"+s+"_"+o+"__"),u.push(l)));return u}(e):void 0}function lt(e){return a(e)&&a(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var a=Object.create(null),n=re?Reflect.ownKeys(e):Object.keys(e),i=0;i0,s=t?!!t.$stable:!r,o=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==e&&o===n.$key&&!r&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ht(a,l,t[l]))}else i={};for(var c in a)c in i||(i[c]=mt(a,c));return t&&Object.isExtensible(t)&&(t._normalized=i),j(i,"$stable",s),j(i,"$key",o),j(i,"$hasNormal",r),i}function ht(e,t,a){var n=function(){var e=arguments.length?a.apply(null,arguments):a({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return a.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function mt(e,t){return function(){return e[t]}}function gt(e,t){var n,i,s,o,l;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,s=e.length;idocument.createEvent("Event").timeStamp&&(ra=function(){return sa.now()})}function oa(){var e,t;for(ia=ra(),aa=!0,Zt.sort((function(e,t){return e.id-t.id})),na=0;nana&&Zt[a].id>e.id;)a--;Zt.splice(a+1,0,e)}else Zt.push(e);ta||(ta=!0,Xe(oa))}}(this)},ca.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||r(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Be(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ca.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ca.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ca.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var da={enumerable:!0,configurable:!0,get:z,set:z};function ua(e,t,a){da.get=function(){return this[t][a]},da.set=function(e){this[t][a]=e},Object.defineProperty(e,a,da)}function pa(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var a=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];e.$parent&&_e(!1);var r=function(r){i.push(r);var s=Ie(r,t,a,e);Ce(n,r,s),r in e||ua(e,"_props",r)};for(var s in t)r(s);_e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var a in t)e[a]="function"!=typeof t[a]?z:C(t[a],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;o(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return Be(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var a=Object.keys(t),n=e.$options.props,i=(e.$options.methods,a.length);for(;i--;){var r=a[i];n&&v(n,r)||E(r)||ua(e,"_data",r)}we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var a=e._computedWatchers=Object.create(null),n=te();for(var i in t){var r=t[i],s="function"==typeof r?r:r.get;n||(a[i]=new ca(e,s||z,z,ha)),i in e||ma(e,i,r)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var a in t){var n=t[a];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(a=e,"[object RegExp]"===s.call(a)&&e.test(t));var a}function Ca(e,t){var a=e.cache,n=e.keys,i=e._vnode;for(var r in a){var s=a[r];if(s){var o=Aa(s.componentOptions);o&&!t(o)&&xa(a,r,n,i)}}}function xa(e,t,a,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,g(a,t)}!function(t){t.prototype._init=function(t){var a=this;a._uid=ba++,a._isVue=!0,t&&t._isComponent?function(e,t){var a=e.$options=Object.create(e.constructor.options),n=t._parentVnode;a.parent=t.parent,a._parentVnode=n;var i=n.componentOptions;a.propsData=i.propsData,a._parentListeners=i.listeners,a._renderChildren=i.children,a._componentTag=i.tag,t.render&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns)}(a,t):a.$options=$e(ya(a.constructor),t||{},a),a._renderProxy=a,a._self=a,function(e){var t=e.$options,a=t.parent;if(a&&!t.abstract){for(;a.$options.abstract&&a.$parent;)a=a.$parent;a.$children.push(e)}e.$parent=a,e.$root=a?a.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(a),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(a),function(t){t._vnode=null,t._staticTrees=null;var a=t.$options,n=t.$vnode=a._parentVnode,i=n&&n.context;t.$slots=dt(a._renderChildren,i),t.$scopedSlots=e,t._c=function(e,a,n,i){return Ft(t,e,a,n,i,!1)},t.$createElement=function(e,a,n,i){return Ft(t,e,a,n,i,!0)};var r=n&&n.data;Ce(t,"$attrs",r&&r.attrs||e,null,!0),Ce(t,"$listeners",a._parentListeners||e,null,!0)}(a),Jt(a,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(a){Ce(e,a,t[a])})),_e(!0))}(a),pa(a),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(a),Jt(a,"created"),a.$options.el&&a.$mount(a.$options.el)}}(ka),function(e){var t={get:function(){return this._data}},a={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",a),e.prototype.$set=xe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,a){if(o(t))return va(this,e,t,a);(a=a||{}).user=!0;var n=new ca(this,e,t,a);if(a.immediate)try{t.call(this,n.value)}catch(e){Be(e,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(ka),function(e){var t=/^hook:/;e.prototype.$on=function(e,a){var n=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?x(a):a;for(var n=x(arguments,1),i='event handler for "'+e+'"',r=0,s=a.length;rparseInt(this.max)&&xa(s,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return I}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:$e,defineReactive:Ce},e.set=xe,e.delete=Te,e.nextTick=Xe,e.observable=function(e){return we(e),e},e.options=Object.create(null),$.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Sa),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var a=x(arguments,1);return a.unshift(this),"function"==typeof e.install?e.install.apply(e,a):"function"==typeof e&&e.apply(null,a),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=$e(this.options,e),this}}(e),_a(e),function(e){$.forEach((function(t){e[t]=function(e,a){return a?("component"===t&&o(a)&&(a.name=a.name||e,a=this.options._base.extend(a)),"directive"===t&&"function"==typeof a&&(a={bind:a,update:a}),this.options[t+"s"][e]=a,a):this.options[t+"s"][e]}}))}(e)}(ka),Object.defineProperty(ka.prototype,"$isServer",{get:te}),Object.defineProperty(ka.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ka,"FunctionalRenderContext",{value:Dt}),ka.version="2.6.12";var za=p("style,class"),Ma=p("input,textarea,option,select,progress"),Da=function(e,t,a){return"value"===a&&Ma(e)&&"button"!==t||"selected"===a&&"option"===e||"checked"===a&&"input"===e||"muted"===a&&"video"===e},Pa=p("contenteditable,draggable,spellcheck"),La=p("events,caret,typing,plaintext-only"),Na=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),$a="http://www.w3.org/1999/xlink",Ra=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ia=function(e){return Ra(e)?e.slice(6,e.length):""},Fa=function(e){return null==e||!1===e};function Ea(e){for(var t=e.data,n=e,i=e;a(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=ja(i.data,t));for(;a(n=n.parent);)n&&n.data&&(t=ja(t,n.data));return function(e,t){if(a(e)||a(t))return Ba(e,Oa(t));return""}(t.staticClass,t.class)}function ja(e,t){return{staticClass:Ba(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ba(e,t){return e?t?e+" "+t:e:t||""}function Oa(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,r=e.length;i-1?hn(e,t,a):Na(t)?Fa(a)?e.removeAttribute(t):(a="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,a)):Pa(t)?e.setAttribute(t,function(e,t){return Fa(t)||"false"===t?"false":"contenteditable"===e&&La(t)?t:"true"}(t,a)):Ra(t)?Fa(a)?e.removeAttributeNS($a,Ia(t)):e.setAttributeNS($a,t,a):hn(e,t,a)}function hn(e,t,a){if(Fa(a))e.removeAttribute(t);else{if(W&&!K&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==a&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,a)}}var mn={create:un,update:un};function gn(e,n){var i=n.elm,r=n.data,s=e.data;if(!(t(r.staticClass)&&t(r.class)&&(t(s)||t(s.staticClass)&&t(s.class)))){var o=Ea(n),l=i._transitionClasses;a(l)&&(o=Ba(o,Oa(l))),o!==i._prevClass&&(i.setAttribute("class",o),i._prevClass=o)}}var fn,vn,bn,yn,kn,_n,An={create:gn,update:gn},wn=/[\w).+\-_$\]]/;function Cn(e){var t,a,n,i,r,s=!1,o=!1,l=!1,c=!1,d=0,u=0,p=0,h=0;for(n=0;n=0&&" "===(g=e.charAt(m));m--);g&&wn.test(g)||(c=!0)}}else void 0===i?(h=n+1,i=e.slice(0,n).trim()):f();function f(){(r||(r=[])).push(e.slice(h,n).trim()),h=n+1}if(void 0===i?i=e.slice(0,n).trim():0!==h&&f(),r)for(n=0;n-1?{exp:e.slice(0,yn),key:'"'+e.slice(yn+1)+'"'}:{exp:e,key:null};vn=e,yn=kn=_n=0;for(;!On();)Un(bn=Bn())?Vn(bn):91===bn&&qn(bn);return{exp:e.slice(0,kn),key:e.slice(kn+1,_n)}}(e);return null===a.key?e+"="+t:"$set("+a.exp+", "+a.key+", "+t+")"}function Bn(){return vn.charCodeAt(++yn)}function On(){return yn>=fn}function Un(e){return 34===e||39===e}function qn(e){var t=1;for(kn=yn;!On();)if(Un(e=Bn()))Vn(e);else if(91===e&&t++,93===e&&t--,0===t){_n=yn;break}}function Vn(e){for(var t=e;!On()&&(e=Bn())!==t;);}var Gn;function Hn(e,t,a){var n=Gn;return function i(){var r=t.apply(null,arguments);null!==r&&Qn(e,i,a,n)}}var Wn=Ge&&!(J&&Number(J[1])<=53);function Kn(e,t,a,n){if(Wn){var i=ia,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}Gn.addEventListener(e,t,X?{capture:a,passive:n}:a)}function Qn(e,t,a,n){(n||Gn).removeEventListener(e,t._wrapper||t,a)}function Yn(e,n){if(!t(e.data.on)||!t(n.data.on)){var i=n.data.on||{},r=e.data.on||{};Gn=n.elm,function(e){if(a(e.__r)){var t=W?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(i),it(i,r,Kn,Qn,Hn,n.context),Gn=void 0}}var Jn,Zn={create:Yn,update:Yn};function Xn(e,n){if(!t(e.data.domProps)||!t(n.data.domProps)){var i,r,s=n.elm,o=e.data.domProps||{},l=n.data.domProps||{};for(i in a(l.__ob__)&&(l=n.data.domProps=T({},l)),o)i in l||(s[i]="");for(i in l){if(r=l[i],"textContent"===i||"innerHTML"===i){if(n.children&&(n.children.length=0),r===o[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=r;var c=t(r)?"":String(r);ei(s,c)&&(s.value=c)}else if("innerHTML"===i&&Va(s.tagName)&&t(s.innerHTML)){(Jn=Jn||document.createElement("div")).innerHTML=""+r+"";for(var d=Jn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}else if(r!==o[i])try{s[i]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var a=!0;try{a=document.activeElement!==e}catch(e){}return a&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(a(i)){if(i.number)return u(n)!==u(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Xn,update:Xn},ai=b((function(e){var t={},a=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ni(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?S(e):"string"==typeof e?ai(e):e}var ri,si=/^--/,oi=/\s*!important$/,li=function(e,t,a){if(si.test(t))e.style.setProperty(t,a);else if(oi.test(a))e.style.setProperty(w(t),a.replace(oi,""),"important");else{var n=di(t);if(Array.isArray(a))for(var i=0,r=a.length;i-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var a=" "+(e.getAttribute("class")||"")+" ";a.indexOf(" "+t+" ")<0&&e.setAttribute("class",(a+t).trim())}}function gi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var a=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";a.indexOf(n)>=0;)a=a.replace(n," ");(a=a.trim())?e.setAttribute("class",a):e.removeAttribute("class")}}function fi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,vi(e.name||"v")),T(t,e),t}return"string"==typeof e?vi(e):void 0}}var vi=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=q&&!K,yi="transition",ki="transitionend",_i="animation",Ai="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(yi="WebkitTransition",ki="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(_i="WebkitAnimation",Ai="webkitAnimationEnd"));var wi=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ci(e){wi((function(){wi(e)}))}function xi(e,t){var a=e._transitionClasses||(e._transitionClasses=[]);a.indexOf(t)<0&&(a.push(t),mi(e,t))}function Ti(e,t){e._transitionClasses&&g(e._transitionClasses,t),gi(e,t)}function Si(e,t,a){var n=Mi(e,t),i=n.type,r=n.timeout,s=n.propCount;if(!i)return a();var o="transition"===i?ki:Ai,l=0,c=function(){e.removeEventListener(o,d),a()},d=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l0&&(a="transition",d=s,u=r.length):"animation"===t?c>0&&(a="animation",d=c,u=l.length):u=(a=(d=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===a?r.length:l.length:0,{type:a,timeout:d,propCount:u,hasTransform:"transition"===a&&zi.test(n[yi+"Property"])}}function Di(e,t){for(;e.length1}function Ii(e,t){!0!==t.data.show&&Li(t)}var Fi=function(e){var r,s,o={},l=e.modules,c=e.nodeOps;for(r=0;rm?y(e,t(i[v+1])?null:i[v+1].elm,i,h,v,r):h>v&&_(n,p,m)}(p,g,v,r,d):a(v)?(a(e.text)&&c.setTextContent(p,""),y(p,null,v,0,v.length-1,r)):a(g)?_(g,0,g.length-1):a(e.text)&&c.setTextContent(p,""):e.text!==i.text&&c.setTextContent(p,i.text),a(m)&&a(h=m.hook)&&a(h=h.postpatch)&&h(e,i)}}}function x(e,t,i){if(n(i)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,s.selected!==r&&(s.selected=r);else if(P(Ui(s),n))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Oi(e,t){return t.every((function(t){return!P(t,e)}))}function Ui(e){return"_value"in e?e._value:e.value}function qi(e){e.target.composing=!0}function Vi(e){e.target.composing&&(e.target.composing=!1,Gi(e.target,"input"))}function Gi(e,t){var a=document.createEvent("HTMLEvents");a.initEvent(t,!0,!0),e.dispatchEvent(a)}function Hi(e){return!e.componentInstance||e.data&&e.data.transition?e:Hi(e.componentInstance._vnode)}var Wi={model:Ei,show:{bind:function(e,t,a){var n=t.value,i=(a=Hi(a)).data&&a.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(a.data.show=!0,Li(a,(function(){e.style.display=r}))):e.style.display=n?r:"none"},update:function(e,t,a){var n=t.value;!n!=!t.oldValue&&((a=Hi(a)).data&&a.data.transition?(a.data.show=!0,n?Li(a,(function(){e.style.display=e.__vOriginalDisplay})):Ni(a,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,a,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ki={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qi(Ut(t.children)):e}function Yi(e){var t={},a=e.$options;for(var n in a.propsData)t[n]=e[n];var i=a._parentListeners;for(var r in i)t[k(r)]=i[r];return t}function Ji(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Zi=function(e){return e.tag||Ot(e)},Xi=function(e){return"show"===e.name},er={name:"transition",props:Ki,abstract:!0,render:function(e){var t=this,a=this.$slots.default;if(a&&(a=a.filter(Zi)).length){var n=this.mode,r=a[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var s=Qi(r);if(!s)return r;if(this._leaving)return Ji(e,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:i(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=Yi(this),c=this._vnode,d=Qi(c);if(s.data.directives&&s.data.directives.some(Xi)&&(s.data.show=!0),d&&d.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,d)&&!Ot(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var u=d.data.transition=T({},l);if("out-in"===n)return this._leaving=!0,rt(u,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ji(e,r);if("in-out"===n){if(Ot(s))return c;var p,h=function(){p()};rt(l,"afterEnter",h),rt(l,"enterCancelled",h),rt(u,"delayLeave",(function(e){p=e}))}}return r}}},tr=T({tag:String,moveClass:String},Ki);function ar(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function nr(e){e.data.newPos=e.elm.getBoundingClientRect()}function ir(e){var t=e.data.pos,a=e.data.newPos,n=t.left-a.left,i=t.top-a.top;if(n||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+n+"px,"+i+"px)",r.transitionDuration="0s"}}delete tr.mode;var rr={Transition:er,TransitionGroup:{props:tr,beforeMount:function(){var e=this,t=this._update;this._update=function(a,n){var i=Kt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,a,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",a=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],s=Yi(this),o=0;o-1?Wa[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Wa[e]=/HTMLUnknownElement/.test(t.toString())},T(ka.options.directives,Wi),T(ka.options.components,rr),ka.prototype.__patch__=q?Fi:z,ka.prototype.$mount=function(e,t){return function(e,t,a){var n;return e.$el=t,e.$options.render||(e.$options.render=me),Jt(e,"beforeMount"),n=function(){e._update(e._render(),a)},new ca(e,n,z,{before:function(){e._isMounted&&!e._isDestroyed&&Jt(e,"beforeUpdate")}},!0),a=!1,null==e.$vnode&&(e._isMounted=!0,Jt(e,"mounted")),e}(this,e=e&&q?Qa(e):void 0,t)},q&&setTimeout((function(){I.devtools&&ae&&ae.emit("init",ka)}),0);var sr=/\{\{((?:.|\r?\n)+?)\}\}/g,or=/[-.*+?^${}()|[\]\/\\]/g,lr=b((function(e){var t=e[0].replace(or,"\\$&"),a=e[1].replace(or,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+a,"g")}));var cr={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var a=Rn(e,"class");a&&(e.staticClass=JSON.stringify(a));var n=$n(e,"class",!1);n&&(e.classBinding=n)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var dr,ur={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var a=Rn(e,"style");a&&(e.staticStyle=JSON.stringify(ai(a)));var n=$n(e,"style",!1);n&&(e.styleBinding=n)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},pr=function(e){return(dr=dr||document.createElement("div")).innerHTML=e,dr.textContent},hr=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mr=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),gr=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),fr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,vr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,br="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+F.source+"]*",yr="((?:"+br+"\\:)?"+br+")",kr=new RegExp("^<"+yr),_r=/^\s*(\/?)>/,Ar=new RegExp("^<\\/"+yr+"[^>]*>"),wr=/^]+>/i,Cr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mr=/&(?:lt|gt|quot|amp|#39);/g,Dr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pr=p("pre,textarea",!0),Lr=function(e,t){return e&&Pr(e)&&"\n"===t[0]};function Nr(e,t){var a=t?Dr:Mr;return e.replace(a,(function(e){return zr[e]}))}var $r,Rr,Ir,Fr,Er,jr,Br,Or,Ur=/^@|^v-on:/,qr=/^v-|^@|^:|^#/,Vr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Hr=/^\(|\)$/g,Wr=/^\[.*\]$/,Kr=/:(.*)$/,Qr=/^:|^\.|^v-bind:/,Yr=/\.[^.\]]+(?=[^\]]*$)/g,Jr=/^v-slot(:|$)|^#/,Zr=/[\r\n]/,Xr=/\s+/g,es=b(pr);function ts(e,t,a){return{type:1,tag:e,attrsList:t,attrsMap:ls(t),rawAttrsMap:{},parent:a,children:[]}}function as(e,t){$r=t.warn||Tn,jr=t.isPreTag||M,Br=t.mustUseProp||M,Or=t.getTagNamespace||M;t.isReservedTag;Ir=Sn(t.modules,"transformNode"),Fr=Sn(t.modules,"preTransformNode"),Er=Sn(t.modules,"postTransformNode"),Rr=t.delimiters;var a,n,i=[],r=!1!==t.preserveWhitespace,s=t.whitespace,o=!1,l=!1;function c(e){if(d(e),o||e.processed||(e=ns(e,t)),i.length||e===a||a.if&&(e.elseif||e.else)&&rs(a,{exp:e.elseif,block:e}),n&&!e.forbidden)if(e.elseif||e.else)s=e,(c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(n.children))&&c.if&&rs(c,{exp:s.elseif,block:s});else{if(e.slotScope){var r=e.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[r]=e}n.children.push(e),e.parent=n}var s,c;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(o=!1),jr(e.tag)&&(l=!1);for(var u=0;u]*>)","i")),p=e.replace(u,(function(e,a,n){return c=n.length,Tr(d)||"noscript"===d||(a=a.replace(//g,"$1").replace(//g,"$1")),Lr(d,a)&&(a=a.slice(1)),t.chars&&t.chars(a),""}));l+=e.length-p.length,e=p,T(d,l-c,l)}else{var h=e.indexOf("<");if(0===h){if(Cr.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m),l,l+m+3),w(m+3);continue}}if(xr.test(e)){var g=e.indexOf("]>");if(g>=0){w(g+2);continue}}var f=e.match(wr);if(f){w(f[0].length);continue}var v=e.match(Ar);if(v){var b=l;w(v[0].length),T(v[1],b,l);continue}var y=C();if(y){x(y),Lr(y.tagName,e)&&w(1);continue}}var k=void 0,_=void 0,A=void 0;if(h>=0){for(_=e.slice(h);!(Ar.test(_)||kr.test(_)||Cr.test(_)||xr.test(_)||(A=_.indexOf("<",1))<0);)h+=A,_=e.slice(h);k=e.substring(0,h)}h<0&&(k=e),k&&w(k.length),t.chars&&k&&t.chars(k,l-k.length,l)}if(e===a){t.chars&&t.chars(e);break}}function w(t){l+=t,e=e.substring(t)}function C(){var t=e.match(kr);if(t){var a,n,i={tagName:t[1],attrs:[],start:l};for(w(t[0].length);!(a=e.match(_r))&&(n=e.match(vr)||e.match(fr));)n.start=l,w(n[0].length),n.end=l,i.attrs.push(n);if(a)return i.unarySlash=a[1],w(a[0].length),i.end=l,i}}function x(e){var a=e.tagName,l=e.unarySlash;r&&("p"===n&&gr(a)&&T(n),o(a)&&n===a&&T(a));for(var c=s(a)||!!l,d=e.attrs.length,u=new Array(d),p=0;p=0&&i[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var c=i.length-1;c>=s;c--)t.end&&t.end(i[c].tag,a,r);i.length=s,n=s&&i[s-1].tag}else"br"===o?t.start&&t.start(e,[],!0,a,r):"p"===o&&(t.start&&t.start(e,[],!1,a,r),t.end&&t.end(e,a,r))}T()}(e,{warn:$r,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,r,s,d,u){var p=n&&n.ns||Or(e);W&&"svg"===p&&(r=function(e){for(var t=[],a=0;al&&(o.push(r=e.slice(l,i)),s.push(JSON.stringify(r)));var c=Cn(n[1].trim());s.push("_s("+c+")"),o.push({"@binding":c}),l=i+n[0].length}return l-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),Nn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+jn(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+jn(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+jn(t,"$$c")+"}",null,!0)}(e,n,i);else if("input"===r&&"radio"===s)!function(e,t,a){var n=a&&a.number,i=$n(e,"value")||"null";zn(e,"checked","_q("+t+","+(i=n?"_n("+i+")":i)+")"),Nn(e,"change",jn(t,i),null,!0)}(e,n,i);else if("input"===r||"textarea"===r)!function(e,t,a){var n=e.attrsMap.type,i=a||{},r=i.lazy,s=i.number,o=i.trim,l=!r&&"range"!==n,c=r?"change":"range"===n?"__r":"input",d="$event.target.value";o&&(d="$event.target.value.trim()");s&&(d="_n("+d+")");var u=jn(t,d);l&&(u="if($event.target.composing)return;"+u);zn(e,"value","("+t+")"),Nn(e,c,u,null,!0),(o||s)&&Nn(e,"blur","$forceUpdate()")}(e,n,i);else if(!I.isReservedTag(r))return En(e,n,i),!1;return!0},text:function(e,t){t.value&&zn(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&zn(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:hr,mustUseProp:Da,canBeLeftOpenTag:mr,isReservedTag:Ga,getTagNamespace:Ha,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ps)},fs=b((function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function vs(e,t){e&&(hs=fs(t.staticKeys||""),ms=t.isReservedTag||M,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!ms(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(hs)))}(t),1===t.type){if(!ms(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var a=0,n=t.children.length;a|^function(?:\s+[\w$]+)?\s*\(/,ys=/\([^)]*?\);*$/,ks=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_s={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},As={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ws=function(e){return"if("+e+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ws("$event.target !== $event.currentTarget"),ctrl:ws("!$event.ctrlKey"),shift:ws("!$event.shiftKey"),alt:ws("!$event.altKey"),meta:ws("!$event.metaKey"),left:ws("'button' in $event && $event.button !== 0"),middle:ws("'button' in $event && $event.button !== 1"),right:ws("'button' in $event && $event.button !== 2")};function xs(e,t){var a=t?"nativeOn:":"on:",n="",i="";for(var r in e){var s=Ts(e[r]);e[r]&&e[r].dynamic?i+=r+","+s+",":n+='"'+r+'":'+s+","}return n="{"+n.slice(0,-1)+"}",i?a+"_d("+n+",["+i.slice(0,-1)+"])":a+n}function Ts(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ts(e)})).join(",")+"]";var t=ks.test(e.value),a=bs.test(e.value),n=ks.test(e.value.replace(ys,""));if(e.modifiers){var i="",r="",s=[];for(var o in e.modifiers)if(Cs[o])r+=Cs[o],_s[o]&&s.push(o);else if("exact"===o){var l=e.modifiers;r+=ws(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else s.push(o);return s.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ss).join("&&")+")return null;"}(s)),r&&(i+=r),"function($event){"+i+(t?"return "+e.value+"($event)":a?"return ("+e.value+")($event)":n?"return "+e.value:e.value)+"}"}return t||a?e.value:"function($event){"+(n?"return "+e.value:e.value)+"}"}function Ss(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var a=_s[e],n=As[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(a)+",$event.key,"+JSON.stringify(n)+")"}var zs={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(a){return"_b("+a+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:z},Ms=function(e){this.options=e,this.warn=e.warn||Tn,this.transforms=Sn(e.modules,"transformCode"),this.dataGenFns=Sn(e.modules,"genData"),this.directives=T(T({},zs),e.directives);var t=e.isReservedTag||M;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(e,t){var a=new Ms(t);return{render:"with(this){return "+(e?Ps(e,a):'_c("div")')+"}",staticRenderFns:a.staticRenderFns}}function Ps(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ls(e,t);if(e.once&&!e.onceProcessed)return Ns(e,t);if(e.for&&!e.forProcessed)return Rs(e,t);if(e.if&&!e.ifProcessed)return $s(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var a=e.slotName||'"default"',n=js(e,t),i="_t("+a+(n?","+n:""),r=e.attrs||e.dynamicAttrs?Us((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:k(e.name),value:e.value,dynamic:e.dynamic}}))):null,s=e.attrsMap["v-bind"];!r&&!s||n||(i+=",null");r&&(i+=","+r);s&&(i+=(r?"":",null")+","+s);return i+")"}(e,t);var a;if(e.component)a=function(e,t,a){var n=t.inlineTemplate?null:js(t,a,!0);return"_c("+e+","+Is(t,a)+(n?","+n:"")+")"}(e.component,e,t);else{var n;(!e.plain||e.pre&&t.maybeComponent(e))&&(n=Is(e,t));var i=e.inlineTemplate?null:js(e,t,!0);a="_c('"+e.tag+"'"+(n?","+n:"")+(i?","+i:"")+")"}for(var r=0;r>>0}(s):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(a+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var a=e.children[0];if(a&&1===a.type){var n=Ds(a,t.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(a+=r+",")}return a=a.replace(/,$/,"")+"}",e.dynamicAttrs&&(a="_b("+a+',"'+e.tag+'",'+Us(e.dynamicAttrs)+")"),e.wrapData&&(a=e.wrapData(a)),e.wrapListeners&&(a=e.wrapListeners(a)),a}function Fs(e){return 1===e.type&&("slot"===e.tag||e.children.some(Fs))}function Es(e,t){var a=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!a)return $s(e,t,Es,"null");if(e.for&&!e.forProcessed)return Rs(e,t,Es);var n="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+n+"){return "+("template"===e.tag?e.if&&a?"("+e.if+")?"+(js(e,t)||"undefined")+":undefined":js(e,t)||"undefined":Ps(e,t))+"}",r=n?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+r+"}"}function js(e,t,a,n,i){var r=e.children;if(r.length){var s=r[0];if(1===r.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var o=a?t.maybeComponent(s)?",1":",0":"";return""+(n||Ps)(s,t)+o}var l=a?function(e,t){for(var a=0,n=0;n':'
',Ws.innerHTML.indexOf(" ")>0}var Ys=!!q&&Qs(!1),Js=!!q&&Qs(!0),Zs=b((function(e){var t=Qa(e);return t&&t.innerHTML})),Xs=ka.prototype.$mount;ka.prototype.$mount=function(e,t){if((e=e&&Qa(e))===document.body||e===document.documentElement)return this;var a=this.$options;if(!a.render){var n=a.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=Zs(n));else{if(!n.nodeType)return this;n=n.innerHTML}else e&&(n=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(n){var i=Ks(n,{outputSourceRange:!1,shouldDecodeNewlines:Ys,shouldDecodeNewlinesForHref:Js,delimiters:a.delimiters,comments:a.comments},this),r=i.render,s=i.staticRenderFns;a.render=r,a.staticRenderFns=s}}return Xs.call(this,e,t)},ka.compile=Ks;var eo=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function to(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var a,n=(a=function(t){return t.original===e},t.filter(a)[0]);if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(a){i[a]=to(e[a],t)})),i}function ao(e,t){Object.keys(e).forEach((function(a){return t(e[a],a)}))}function no(e){return null!==e&&"object"==typeof e}var ro=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var a=e.state;this.state=("function"==typeof a?a():a)||{}},so={namespaced:{configurable:!0}};so.namespaced.get=function(){return!!this._rawModule.namespaced},ro.prototype.addChild=function(e,t){this._children[e]=t},ro.prototype.removeChild=function(e){delete this._children[e]},ro.prototype.getChild=function(e){return this._children[e]},ro.prototype.hasChild=function(e){return e in this._children},ro.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ro.prototype.forEachChild=function(e){ao(this._children,e)},ro.prototype.forEachGetter=function(e){this._rawModule.getters&&ao(this._rawModule.getters,e)},ro.prototype.forEachAction=function(e){this._rawModule.actions&&ao(this._rawModule.actions,e)},ro.prototype.forEachMutation=function(e){this._rawModule.mutations&&ao(this._rawModule.mutations,e)},Object.defineProperties(ro.prototype,so);var oo,lo=function(e){this.register([],e,!1)};lo.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},lo.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,a){return e+((t=t.getChild(a)).namespaced?a+"/":"")}),"")},lo.prototype.update=function(e){!function e(t,a,n){if(a.update(n),n.modules)for(var i in n.modules){if(!a.getChild(i))return;e(t.concat(i),a.getChild(i),n.modules[i])}}([],this.root,e)},lo.prototype.register=function(e,t,a){var n=this;void 0===a&&(a=!0);var i=new ro(t,a);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&ao(t.modules,(function(t,i){n.register(e.concat(i),t,a)}))},lo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1],n=t.getChild(a);n&&n.runtime&&t.removeChild(a)},lo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1];return t.hasChild(a)};var co=function(e){var t=this;void 0===e&&(e={}),!oo&&"undefined"!=typeof window&&window.Vue&&bo(window.Vue);var a=e.plugins;void 0===a&&(a=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new lo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new oo,this._makeLocalGettersCache=Object.create(null);var i=this,r=this.dispatch,s=this.commit;this.dispatch=function(e,t){return r.call(i,e,t)},this.commit=function(e,t,a){return s.call(i,e,t,a)},this.strict=n;var o=this._modules.root.state;go(this,o,[],this._modules.root),mo(this,o),a.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:oo.config.devtools)&&function(e){eo&&(e._devtoolHook=eo,eo.emit("vuex:init",e),eo.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){eo.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){eo.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},uo={state:{configurable:!0}};function po(e,t,a){return t.indexOf(e)<0&&(a&&a.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function ho(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var a=e.state;go(e,a,[],e._modules.root,!0),mo(e,a,t)}function mo(e,t,a){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,r={};ao(i,(function(t,a){r[a]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,a,{get:function(){return e._vm[a]},enumerable:!0})}));var s=oo.config.silent;oo.config.silent=!0,e._vm=new oo({data:{$$state:t},computed:r}),oo.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(a&&e._withCommit((function(){n._data.$$state=null})),oo.nextTick((function(){return n.$destroy()})))}function go(e,t,a,n,i){var r=!a.length,s=e._modules.getNamespace(a);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!r&&!i){var o=fo(t,a.slice(0,-1)),l=a[a.length-1];e._withCommit((function(){oo.set(o,l,n.state)}))}var c=n.context=function(e,t,a){var n=""===t,i={dispatch:n?e.dispatch:function(a,n,i){var r=vo(a,n,i),s=r.payload,o=r.options,l=r.type;return o&&o.root||(l=t+l),e.dispatch(l,s)},commit:n?e.commit:function(a,n,i){var r=vo(a,n,i),s=r.payload,o=r.options,l=r.type;o&&o.root||(l=t+l),e.commit(l,s,o)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var a={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var r=i.slice(n);Object.defineProperty(a,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=a}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return fo(e.state,a)}}}),i}(e,s,a);n.forEachMutation((function(t,a){!function(e,t,a,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){a.call(e,n.state,t)}))}(e,s+a,t,c)})),n.forEachAction((function(t,a){var n=t.root?a:s+a,i=t.handler||t;!function(e,t,a,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,r=a.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(i=r)&&"function"==typeof i.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,n,i,c)})),n.forEachGetter((function(t,a){!function(e,t,a,n){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return a(n.state,n.getters,e.state,e.getters)}}(e,s+a,t,c)})),n.forEachChild((function(n,r){go(e,t,a.concat(r),n,i)}))}function fo(e,t){return t.reduce((function(e,t){return e[t]}),e)}function vo(e,t,a){return no(e)&&e.type&&(a=t,t=e,e=e.type),{type:e,payload:t,options:a}}function bo(e){oo&&e===oo|| +var e=Object.freeze({});function t(e){return null==e}function a(e){return null!=e}function n(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function r(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function o(e){return"[object Object]"===s.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function c(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||o(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function u(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var a=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(a,1)}}var f=Object.prototype.hasOwnProperty;function v(e,t){return f.call(e,t)}function b(e){var t=Object.create(null);return function(a){return t[a]||(t[a]=e(a))}}var y=/-(\w)/g,A=b((function(e){return e.replace(y,(function(e,t){return t?t.toUpperCase():""}))})),k=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),_=/\B([A-Z])/g,w=b((function(e){return e.replace(_,"-$1").toLowerCase()}));var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function a(a){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,a):e.call(t)}return a._length=e.length,a};function x(e,t){t=t||0;for(var a=e.length-t,n=new Array(a);a--;)n[a]=e[a+t];return n}function T(e,t){for(var a in t)e[a]=t[a];return e}function S(e){for(var t={},a=0;a0,Q=H&&H.indexOf("edge/")>0,Y=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H)||"ios"===G),J=(H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/)),Z={}.watch,X=!1;if(q)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){X=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===O&&(O=!q&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),O},ae=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,re="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);ie="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var se=z,oe=0,le=function(){this.id=oe++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){g(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,a=e.length;t-1)if(r&&!v(i,"default"))s=!1;else if(""===s||s===w(e)){var l=je(String,i.type);(l<0||o0&&(lt((l=e(l,(s||"")+"_"+o))[0])&<(d)&&(u[c]=ge(d.text+l[0].text),l.shift()),u.push.apply(u,l)):i(l)?lt(d)?u[c]=ge(d.text+l):""!==l&&u.push(ge(l)):lt(l)&<(d)?u[c]=ge(d.text+l.text):(n(r._isVList)&&a(l.tag)&&t(l.key)&&a(s)&&(l.key="__vlist"+s+"_"+o+"__"),u.push(l)));return u}(e):void 0}function lt(e){return a(e)&&a(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var a=Object.create(null),n=re?Reflect.ownKeys(e):Object.keys(e),i=0;i0,s=t?!!t.$stable:!r,o=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==e&&o===n.$key&&!r&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ht(a,l,t[l]))}else i={};for(var c in a)c in i||(i[c]=mt(a,c));return t&&Object.isExtensible(t)&&(t._normalized=i),j(i,"$stable",s),j(i,"$key",o),j(i,"$hasNormal",r),i}function ht(e,t,a){var n=function(){var e=arguments.length?a.apply(null,arguments):a({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return a.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function mt(e,t){return function(){return e[t]}}function gt(e,t){var n,i,s,o,l;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,s=e.length;idocument.createEvent("Event").timeStamp&&(ra=function(){return sa.now()})}function oa(){var e,t;for(ia=ra(),aa=!0,Zt.sort((function(e,t){return e.id-t.id})),na=0;nana&&Zt[a].id>e.id;)a--;Zt.splice(a+1,0,e)}else Zt.push(e);ta||(ta=!0,Xe(oa))}}(this)},ca.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||r(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Be(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ca.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ca.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ca.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var da={enumerable:!0,configurable:!0,get:z,set:z};function ua(e,t,a){da.get=function(){return this[t][a]},da.set=function(e){this[t][a]=e},Object.defineProperty(e,a,da)}function pa(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var a=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];e.$parent&&ke(!1);var r=function(r){i.push(r);var s=Ie(r,t,a,e);Ce(n,r,s),r in e||ua(e,"_props",r)};for(var s in t)r(s);ke(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var a in t)e[a]="function"!=typeof t[a]?z:C(t[a],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;o(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return Be(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var a=Object.keys(t),n=e.$options.props,i=(e.$options.methods,a.length);for(;i--;){var r=a[i];n&&v(n,r)||F(r)||ua(e,"_data",r)}we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var a=e._computedWatchers=Object.create(null),n=te();for(var i in t){var r=t[i],s="function"==typeof r?r:r.get;n||(a[i]=new ca(e,s||z,z,ha)),i in e||ma(e,i,r)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var a in t){var n=t[a];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(a=e,"[object RegExp]"===s.call(a)&&e.test(t));var a}function Ca(e,t){var a=e.cache,n=e.keys,i=e._vnode;for(var r in a){var s=a[r];if(s){var o=_a(s.componentOptions);o&&!t(o)&&xa(a,r,n,i)}}}function xa(e,t,a,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,g(a,t)}!function(t){t.prototype._init=function(t){var a=this;a._uid=ba++,a._isVue=!0,t&&t._isComponent?function(e,t){var a=e.$options=Object.create(e.constructor.options),n=t._parentVnode;a.parent=t.parent,a._parentVnode=n;var i=n.componentOptions;a.propsData=i.propsData,a._parentListeners=i.listeners,a._renderChildren=i.children,a._componentTag=i.tag,t.render&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns)}(a,t):a.$options=$e(ya(a.constructor),t||{},a),a._renderProxy=a,a._self=a,function(e){var t=e.$options,a=t.parent;if(a&&!t.abstract){for(;a.$options.abstract&&a.$parent;)a=a.$parent;a.$children.push(e)}e.$parent=a,e.$root=a?a.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(a),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(a),function(t){t._vnode=null,t._staticTrees=null;var a=t.$options,n=t.$vnode=a._parentVnode,i=n&&n.context;t.$slots=dt(a._renderChildren,i),t.$scopedSlots=e,t._c=function(e,a,n,i){return Et(t,e,a,n,i,!1)},t.$createElement=function(e,a,n,i){return Et(t,e,a,n,i,!0)};var r=n&&n.data;Ce(t,"$attrs",r&&r.attrs||e,null,!0),Ce(t,"$listeners",a._parentListeners||e,null,!0)}(a),Jt(a,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(a){Ce(e,a,t[a])})),ke(!0))}(a),pa(a),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(a),Jt(a,"created"),a.$options.el&&a.$mount(a.$options.el)}}(Aa),function(e){var t={get:function(){return this._data}},a={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",a),e.prototype.$set=xe,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,a){if(o(t))return va(this,e,t,a);(a=a||{}).user=!0;var n=new ca(this,e,t,a);if(a.immediate)try{t.call(this,n.value)}catch(e){Be(e,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(Aa),function(e){var t=/^hook:/;e.prototype.$on=function(e,a){var n=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?x(a):a;for(var n=x(arguments,1),i='event handler for "'+e+'"',r=0,s=a.length;rparseInt(this.max)&&xa(s,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return I}};Object.defineProperty(e,"config",t),e.util={warn:se,extend:T,mergeOptions:$e,defineReactive:Ce},e.set=xe,e.delete=Te,e.nextTick=Xe,e.observable=function(e){return we(e),e},e.options=Object.create(null),$.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Sa),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var a=x(arguments,1);return a.unshift(this),"function"==typeof e.install?e.install.apply(e,a):"function"==typeof e&&e.apply(null,a),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=$e(this.options,e),this}}(e),ka(e),function(e){$.forEach((function(t){e[t]=function(e,a){return a?("component"===t&&o(a)&&(a.name=a.name||e,a=this.options._base.extend(a)),"directive"===t&&"function"==typeof a&&(a={bind:a,update:a}),this.options[t+"s"][e]=a,a):this.options[t+"s"][e]}}))}(e)}(Aa),Object.defineProperty(Aa.prototype,"$isServer",{get:te}),Object.defineProperty(Aa.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Aa,"FunctionalRenderContext",{value:Dt}),Aa.version="2.6.12";var za=p("style,class"),Ma=p("input,textarea,option,select,progress"),Da=function(e,t,a){return"value"===a&&Ma(e)&&"button"!==t||"selected"===a&&"option"===e||"checked"===a&&"input"===e||"muted"===a&&"video"===e},Pa=p("contenteditable,draggable,spellcheck"),La=p("events,caret,typing,plaintext-only"),Na=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),$a="http://www.w3.org/1999/xlink",Ra=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ia=function(e){return Ra(e)?e.slice(6,e.length):""},Ea=function(e){return null==e||!1===e};function Fa(e){for(var t=e.data,n=e,i=e;a(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=ja(i.data,t));for(;a(n=n.parent);)n&&n.data&&(t=ja(t,n.data));return function(e,t){if(a(e)||a(t))return Ba(e,Oa(t));return""}(t.staticClass,t.class)}function ja(e,t){return{staticClass:Ba(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ba(e,t){return e?t?e+" "+t:e:t||""}function Oa(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,r=e.length;i-1?hn(e,t,a):Na(t)?Ea(a)?e.removeAttribute(t):(a="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,a)):Pa(t)?e.setAttribute(t,function(e,t){return Ea(t)||"false"===t?"false":"contenteditable"===e&&La(t)?t:"true"}(t,a)):Ra(t)?Ea(a)?e.removeAttributeNS($a,Ia(t)):e.setAttributeNS($a,t,a):hn(e,t,a)}function hn(e,t,a){if(Ea(a))e.removeAttribute(t);else{if(W&&!K&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==a&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,a)}}var mn={create:un,update:un};function gn(e,n){var i=n.elm,r=n.data,s=e.data;if(!(t(r.staticClass)&&t(r.class)&&(t(s)||t(s.staticClass)&&t(s.class)))){var o=Fa(n),l=i._transitionClasses;a(l)&&(o=Ba(o,Oa(l))),o!==i._prevClass&&(i.setAttribute("class",o),i._prevClass=o)}}var fn,vn,bn,yn,An,kn,_n={create:gn,update:gn},wn=/[\w).+\-_$\]]/;function Cn(e){var t,a,n,i,r,s=!1,o=!1,l=!1,c=!1,d=0,u=0,p=0,h=0;for(n=0;n=0&&" "===(g=e.charAt(m));m--);g&&wn.test(g)||(c=!0)}}else void 0===i?(h=n+1,i=e.slice(0,n).trim()):f();function f(){(r||(r=[])).push(e.slice(h,n).trim()),h=n+1}if(void 0===i?i=e.slice(0,n).trim():0!==h&&f(),r)for(n=0;n-1?{exp:e.slice(0,yn),key:'"'+e.slice(yn+1)+'"'}:{exp:e,key:null};vn=e,yn=An=kn=0;for(;!On();)Un(bn=Bn())?Vn(bn):91===bn&&qn(bn);return{exp:e.slice(0,An),key:e.slice(An+1,kn)}}(e);return null===a.key?e+"="+t:"$set("+a.exp+", "+a.key+", "+t+")"}function Bn(){return vn.charCodeAt(++yn)}function On(){return yn>=fn}function Un(e){return 34===e||39===e}function qn(e){var t=1;for(An=yn;!On();)if(Un(e=Bn()))Vn(e);else if(91===e&&t++,93===e&&t--,0===t){kn=yn;break}}function Vn(e){for(var t=e;!On()&&(e=Bn())!==t;);}var Gn;function Hn(e,t,a){var n=Gn;return function i(){var r=t.apply(null,arguments);null!==r&&Qn(e,i,a,n)}}var Wn=Ge&&!(J&&Number(J[1])<=53);function Kn(e,t,a,n){if(Wn){var i=ia,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}Gn.addEventListener(e,t,X?{capture:a,passive:n}:a)}function Qn(e,t,a,n){(n||Gn).removeEventListener(e,t._wrapper||t,a)}function Yn(e,n){if(!t(e.data.on)||!t(n.data.on)){var i=n.data.on||{},r=e.data.on||{};Gn=n.elm,function(e){if(a(e.__r)){var t=W?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(i),it(i,r,Kn,Qn,Hn,n.context),Gn=void 0}}var Jn,Zn={create:Yn,update:Yn};function Xn(e,n){if(!t(e.data.domProps)||!t(n.data.domProps)){var i,r,s=n.elm,o=e.data.domProps||{},l=n.data.domProps||{};for(i in a(l.__ob__)&&(l=n.data.domProps=T({},l)),o)i in l||(s[i]="");for(i in l){if(r=l[i],"textContent"===i||"innerHTML"===i){if(n.children&&(n.children.length=0),r===o[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=r;var c=t(r)?"":String(r);ei(s,c)&&(s.value=c)}else if("innerHTML"===i&&Va(s.tagName)&&t(s.innerHTML)){(Jn=Jn||document.createElement("div")).innerHTML=""+r+"";for(var d=Jn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}else if(r!==o[i])try{s[i]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var a=!0;try{a=document.activeElement!==e}catch(e){}return a&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(a(i)){if(i.number)return u(n)!==u(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Xn,update:Xn},ai=b((function(e){var t={},a=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function ni(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?S(e):"string"==typeof e?ai(e):e}var ri,si=/^--/,oi=/\s*!important$/,li=function(e,t,a){if(si.test(t))e.style.setProperty(t,a);else if(oi.test(a))e.style.setProperty(w(t),a.replace(oi,""),"important");else{var n=di(t);if(Array.isArray(a))for(var i=0,r=a.length;i-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var a=" "+(e.getAttribute("class")||"")+" ";a.indexOf(" "+t+" ")<0&&e.setAttribute("class",(a+t).trim())}}function gi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var a=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";a.indexOf(n)>=0;)a=a.replace(n," ");(a=a.trim())?e.setAttribute("class",a):e.removeAttribute("class")}}function fi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,vi(e.name||"v")),T(t,e),t}return"string"==typeof e?vi(e):void 0}}var vi=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=q&&!K,yi="transition",Ai="transitionend",ki="animation",_i="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(yi="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ki="WebkitAnimation",_i="webkitAnimationEnd"));var wi=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ci(e){wi((function(){wi(e)}))}function xi(e,t){var a=e._transitionClasses||(e._transitionClasses=[]);a.indexOf(t)<0&&(a.push(t),mi(e,t))}function Ti(e,t){e._transitionClasses&&g(e._transitionClasses,t),gi(e,t)}function Si(e,t,a){var n=Mi(e,t),i=n.type,r=n.timeout,s=n.propCount;if(!i)return a();var o="transition"===i?Ai:_i,l=0,c=function(){e.removeEventListener(o,d),a()},d=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l0&&(a="transition",d=s,u=r.length):"animation"===t?c>0&&(a="animation",d=c,u=l.length):u=(a=(d=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===a?r.length:l.length:0,{type:a,timeout:d,propCount:u,hasTransform:"transition"===a&&zi.test(n[yi+"Property"])}}function Di(e,t){for(;e.length1}function Ii(e,t){!0!==t.data.show&&Li(t)}var Ei=function(e){var r,s,o={},l=e.modules,c=e.nodeOps;for(r=0;rm?y(e,t(i[v+1])?null:i[v+1].elm,i,h,v,r):h>v&&k(n,p,m)}(p,g,v,r,d):a(v)?(a(e.text)&&c.setTextContent(p,""),y(p,null,v,0,v.length-1,r)):a(g)?k(g,0,g.length-1):a(e.text)&&c.setTextContent(p,""):e.text!==i.text&&c.setTextContent(p,i.text),a(m)&&a(h=m.hook)&&a(h=h.postpatch)&&h(e,i)}}}function x(e,t,i){if(n(i)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,s.selected!==r&&(s.selected=r);else if(P(Ui(s),n))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Oi(e,t){return t.every((function(t){return!P(t,e)}))}function Ui(e){return"_value"in e?e._value:e.value}function qi(e){e.target.composing=!0}function Vi(e){e.target.composing&&(e.target.composing=!1,Gi(e.target,"input"))}function Gi(e,t){var a=document.createEvent("HTMLEvents");a.initEvent(t,!0,!0),e.dispatchEvent(a)}function Hi(e){return!e.componentInstance||e.data&&e.data.transition?e:Hi(e.componentInstance._vnode)}var Wi={model:Fi,show:{bind:function(e,t,a){var n=t.value,i=(a=Hi(a)).data&&a.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(a.data.show=!0,Li(a,(function(){e.style.display=r}))):e.style.display=n?r:"none"},update:function(e,t,a){var n=t.value;!n!=!t.oldValue&&((a=Hi(a)).data&&a.data.transition?(a.data.show=!0,n?Li(a,(function(){e.style.display=e.__vOriginalDisplay})):Ni(a,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,a,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Ki={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qi(Ut(t.children)):e}function Yi(e){var t={},a=e.$options;for(var n in a.propsData)t[n]=e[n];var i=a._parentListeners;for(var r in i)t[A(r)]=i[r];return t}function Ji(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Zi=function(e){return e.tag||Ot(e)},Xi=function(e){return"show"===e.name},er={name:"transition",props:Ki,abstract:!0,render:function(e){var t=this,a=this.$slots.default;if(a&&(a=a.filter(Zi)).length){var n=this.mode,r=a[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var s=Qi(r);if(!s)return r;if(this._leaving)return Ji(e,r);var o="__transition-"+this._uid+"-";s.key=null==s.key?s.isComment?o+"comment":o+s.tag:i(s.key)?0===String(s.key).indexOf(o)?s.key:o+s.key:s.key;var l=(s.data||(s.data={})).transition=Yi(this),c=this._vnode,d=Qi(c);if(s.data.directives&&s.data.directives.some(Xi)&&(s.data.show=!0),d&&d.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(s,d)&&!Ot(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var u=d.data.transition=T({},l);if("out-in"===n)return this._leaving=!0,rt(u,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ji(e,r);if("in-out"===n){if(Ot(s))return c;var p,h=function(){p()};rt(l,"afterEnter",h),rt(l,"enterCancelled",h),rt(u,"delayLeave",(function(e){p=e}))}}return r}}},tr=T({tag:String,moveClass:String},Ki);function ar(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function nr(e){e.data.newPos=e.elm.getBoundingClientRect()}function ir(e){var t=e.data.pos,a=e.data.newPos,n=t.left-a.left,i=t.top-a.top;if(n||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+n+"px,"+i+"px)",r.transitionDuration="0s"}}delete tr.mode;var rr={Transition:er,TransitionGroup:{props:tr,beforeMount:function(){var e=this,t=this._update;this._update=function(a,n){var i=Kt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,a,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",a=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],s=Yi(this),o=0;o-1?Wa[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Wa[e]=/HTMLUnknownElement/.test(t.toString())},T(Aa.options.directives,Wi),T(Aa.options.components,rr),Aa.prototype.__patch__=q?Ei:z,Aa.prototype.$mount=function(e,t){return function(e,t,a){var n;return e.$el=t,e.$options.render||(e.$options.render=me),Jt(e,"beforeMount"),n=function(){e._update(e._render(),a)},new ca(e,n,z,{before:function(){e._isMounted&&!e._isDestroyed&&Jt(e,"beforeUpdate")}},!0),a=!1,null==e.$vnode&&(e._isMounted=!0,Jt(e,"mounted")),e}(this,e=e&&q?Qa(e):void 0,t)},q&&setTimeout((function(){I.devtools&&ae&&ae.emit("init",Aa)}),0);var sr=/\{\{((?:.|\r?\n)+?)\}\}/g,or=/[-.*+?^${}()|[\]\/\\]/g,lr=b((function(e){var t=e[0].replace(or,"\\$&"),a=e[1].replace(or,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+a,"g")}));var cr={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var a=Rn(e,"class");a&&(e.staticClass=JSON.stringify(a));var n=$n(e,"class",!1);n&&(e.classBinding=n)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var dr,ur={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var a=Rn(e,"style");a&&(e.staticStyle=JSON.stringify(ai(a)));var n=$n(e,"style",!1);n&&(e.styleBinding=n)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},pr=function(e){return(dr=dr||document.createElement("div")).innerHTML=e,dr.textContent},hr=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mr=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),gr=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),fr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,vr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,br="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+E.source+"]*",yr="((?:"+br+"\\:)?"+br+")",Ar=new RegExp("^<"+yr),kr=/^\s*(\/?)>/,_r=new RegExp("^<\\/"+yr+"[^>]*>"),wr=/^]+>/i,Cr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mr=/&(?:lt|gt|quot|amp|#39);/g,Dr=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pr=p("pre,textarea",!0),Lr=function(e,t){return e&&Pr(e)&&"\n"===t[0]};function Nr(e,t){var a=t?Dr:Mr;return e.replace(a,(function(e){return zr[e]}))}var $r,Rr,Ir,Er,Fr,jr,Br,Or,Ur=/^@|^v-on:/,qr=/^v-|^@|^:|^#/,Vr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Hr=/^\(|\)$/g,Wr=/^\[.*\]$/,Kr=/:(.*)$/,Qr=/^:|^\.|^v-bind:/,Yr=/\.[^.\]]+(?=[^\]]*$)/g,Jr=/^v-slot(:|$)|^#/,Zr=/[\r\n]/,Xr=/\s+/g,es=b(pr);function ts(e,t,a){return{type:1,tag:e,attrsList:t,attrsMap:ls(t),rawAttrsMap:{},parent:a,children:[]}}function as(e,t){$r=t.warn||Tn,jr=t.isPreTag||M,Br=t.mustUseProp||M,Or=t.getTagNamespace||M;t.isReservedTag;Ir=Sn(t.modules,"transformNode"),Er=Sn(t.modules,"preTransformNode"),Fr=Sn(t.modules,"postTransformNode"),Rr=t.delimiters;var a,n,i=[],r=!1!==t.preserveWhitespace,s=t.whitespace,o=!1,l=!1;function c(e){if(d(e),o||e.processed||(e=ns(e,t)),i.length||e===a||a.if&&(e.elseif||e.else)&&rs(a,{exp:e.elseif,block:e}),n&&!e.forbidden)if(e.elseif||e.else)s=e,(c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(n.children))&&c.if&&rs(c,{exp:s.elseif,block:s});else{if(e.slotScope){var r=e.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[r]=e}n.children.push(e),e.parent=n}var s,c;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(o=!1),jr(e.tag)&&(l=!1);for(var u=0;u]*>)","i")),p=e.replace(u,(function(e,a,n){return c=n.length,Tr(d)||"noscript"===d||(a=a.replace(//g,"$1").replace(//g,"$1")),Lr(d,a)&&(a=a.slice(1)),t.chars&&t.chars(a),""}));l+=e.length-p.length,e=p,T(d,l-c,l)}else{var h=e.indexOf("<");if(0===h){if(Cr.test(e)){var m=e.indexOf("--\x3e");if(m>=0){t.shouldKeepComment&&t.comment(e.substring(4,m),l,l+m+3),w(m+3);continue}}if(xr.test(e)){var g=e.indexOf("]>");if(g>=0){w(g+2);continue}}var f=e.match(wr);if(f){w(f[0].length);continue}var v=e.match(_r);if(v){var b=l;w(v[0].length),T(v[1],b,l);continue}var y=C();if(y){x(y),Lr(y.tagName,e)&&w(1);continue}}var A=void 0,k=void 0,_=void 0;if(h>=0){for(k=e.slice(h);!(_r.test(k)||Ar.test(k)||Cr.test(k)||xr.test(k)||(_=k.indexOf("<",1))<0);)h+=_,k=e.slice(h);A=e.substring(0,h)}h<0&&(A=e),A&&w(A.length),t.chars&&A&&t.chars(A,l-A.length,l)}if(e===a){t.chars&&t.chars(e);break}}function w(t){l+=t,e=e.substring(t)}function C(){var t=e.match(Ar);if(t){var a,n,i={tagName:t[1],attrs:[],start:l};for(w(t[0].length);!(a=e.match(kr))&&(n=e.match(vr)||e.match(fr));)n.start=l,w(n[0].length),n.end=l,i.attrs.push(n);if(a)return i.unarySlash=a[1],w(a[0].length),i.end=l,i}}function x(e){var a=e.tagName,l=e.unarySlash;r&&("p"===n&&gr(a)&&T(n),o(a)&&n===a&&T(a));for(var c=s(a)||!!l,d=e.attrs.length,u=new Array(d),p=0;p=0&&i[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var c=i.length-1;c>=s;c--)t.end&&t.end(i[c].tag,a,r);i.length=s,n=s&&i[s-1].tag}else"br"===o?t.start&&t.start(e,[],!0,a,r):"p"===o&&(t.start&&t.start(e,[],!1,a,r),t.end&&t.end(e,a,r))}T()}(e,{warn:$r,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,r,s,d,u){var p=n&&n.ns||Or(e);W&&"svg"===p&&(r=function(e){for(var t=[],a=0;al&&(o.push(r=e.slice(l,i)),s.push(JSON.stringify(r)));var c=Cn(n[1].trim());s.push("_s("+c+")"),o.push({"@binding":c}),l=i+n[0].length}return l-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),Nn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+jn(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+jn(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+jn(t,"$$c")+"}",null,!0)}(e,n,i);else if("input"===r&&"radio"===s)!function(e,t,a){var n=a&&a.number,i=$n(e,"value")||"null";zn(e,"checked","_q("+t+","+(i=n?"_n("+i+")":i)+")"),Nn(e,"change",jn(t,i),null,!0)}(e,n,i);else if("input"===r||"textarea"===r)!function(e,t,a){var n=e.attrsMap.type,i=a||{},r=i.lazy,s=i.number,o=i.trim,l=!r&&"range"!==n,c=r?"change":"range"===n?"__r":"input",d="$event.target.value";o&&(d="$event.target.value.trim()");s&&(d="_n("+d+")");var u=jn(t,d);l&&(u="if($event.target.composing)return;"+u);zn(e,"value","("+t+")"),Nn(e,c,u,null,!0),(o||s)&&Nn(e,"blur","$forceUpdate()")}(e,n,i);else if(!I.isReservedTag(r))return Fn(e,n,i),!1;return!0},text:function(e,t){t.value&&zn(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&zn(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:hr,mustUseProp:Da,canBeLeftOpenTag:mr,isReservedTag:Ga,getTagNamespace:Ha,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ps)},fs=b((function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function vs(e,t){e&&(hs=fs(t.staticKeys||""),ms=t.isReservedTag||M,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!ms(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(hs)))}(t),1===t.type){if(!ms(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var a=0,n=t.children.length;a|^function(?:\s+[\w$]+)?\s*\(/,ys=/\([^)]*?\);*$/,As=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ks={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},_s={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ws=function(e){return"if("+e+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ws("$event.target !== $event.currentTarget"),ctrl:ws("!$event.ctrlKey"),shift:ws("!$event.shiftKey"),alt:ws("!$event.altKey"),meta:ws("!$event.metaKey"),left:ws("'button' in $event && $event.button !== 0"),middle:ws("'button' in $event && $event.button !== 1"),right:ws("'button' in $event && $event.button !== 2")};function xs(e,t){var a=t?"nativeOn:":"on:",n="",i="";for(var r in e){var s=Ts(e[r]);e[r]&&e[r].dynamic?i+=r+","+s+",":n+='"'+r+'":'+s+","}return n="{"+n.slice(0,-1)+"}",i?a+"_d("+n+",["+i.slice(0,-1)+"])":a+n}function Ts(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ts(e)})).join(",")+"]";var t=As.test(e.value),a=bs.test(e.value),n=As.test(e.value.replace(ys,""));if(e.modifiers){var i="",r="",s=[];for(var o in e.modifiers)if(Cs[o])r+=Cs[o],ks[o]&&s.push(o);else if("exact"===o){var l=e.modifiers;r+=ws(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else s.push(o);return s.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ss).join("&&")+")return null;"}(s)),r&&(i+=r),"function($event){"+i+(t?"return "+e.value+"($event)":a?"return ("+e.value+")($event)":n?"return "+e.value:e.value)+"}"}return t||a?e.value:"function($event){"+(n?"return "+e.value:e.value)+"}"}function Ss(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var a=ks[e],n=_s[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(a)+",$event.key,"+JSON.stringify(n)+")"}var zs={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(a){return"_b("+a+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:z},Ms=function(e){this.options=e,this.warn=e.warn||Tn,this.transforms=Sn(e.modules,"transformCode"),this.dataGenFns=Sn(e.modules,"genData"),this.directives=T(T({},zs),e.directives);var t=e.isReservedTag||M;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(e,t){var a=new Ms(t);return{render:"with(this){return "+(e?Ps(e,a):'_c("div")')+"}",staticRenderFns:a.staticRenderFns}}function Ps(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ls(e,t);if(e.once&&!e.onceProcessed)return Ns(e,t);if(e.for&&!e.forProcessed)return Rs(e,t);if(e.if&&!e.ifProcessed)return $s(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var a=e.slotName||'"default"',n=js(e,t),i="_t("+a+(n?","+n:""),r=e.attrs||e.dynamicAttrs?Us((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:A(e.name),value:e.value,dynamic:e.dynamic}}))):null,s=e.attrsMap["v-bind"];!r&&!s||n||(i+=",null");r&&(i+=","+r);s&&(i+=(r?"":",null")+","+s);return i+")"}(e,t);var a;if(e.component)a=function(e,t,a){var n=t.inlineTemplate?null:js(t,a,!0);return"_c("+e+","+Is(t,a)+(n?","+n:"")+")"}(e.component,e,t);else{var n;(!e.plain||e.pre&&t.maybeComponent(e))&&(n=Is(e,t));var i=e.inlineTemplate?null:js(e,t,!0);a="_c('"+e.tag+"'"+(n?","+n:"")+(i?","+i:"")+")"}for(var r=0;r>>0}(s):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(a+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var a=e.children[0];if(a&&1===a.type){var n=Ds(a,t.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(a+=r+",")}return a=a.replace(/,$/,"")+"}",e.dynamicAttrs&&(a="_b("+a+',"'+e.tag+'",'+Us(e.dynamicAttrs)+")"),e.wrapData&&(a=e.wrapData(a)),e.wrapListeners&&(a=e.wrapListeners(a)),a}function Es(e){return 1===e.type&&("slot"===e.tag||e.children.some(Es))}function Fs(e,t){var a=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!a)return $s(e,t,Fs,"null");if(e.for&&!e.forProcessed)return Rs(e,t,Fs);var n="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+n+"){return "+("template"===e.tag?e.if&&a?"("+e.if+")?"+(js(e,t)||"undefined")+":undefined":js(e,t)||"undefined":Ps(e,t))+"}",r=n?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+r+"}"}function js(e,t,a,n,i){var r=e.children;if(r.length){var s=r[0];if(1===r.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var o=a?t.maybeComponent(s)?",1":",0":"";return""+(n||Ps)(s,t)+o}var l=a?function(e,t){for(var a=0,n=0;n':'
',Ws.innerHTML.indexOf(" ")>0}var Ys=!!q&&Qs(!1),Js=!!q&&Qs(!0),Zs=b((function(e){var t=Qa(e);return t&&t.innerHTML})),Xs=Aa.prototype.$mount;Aa.prototype.$mount=function(e,t){if((e=e&&Qa(e))===document.body||e===document.documentElement)return this;var a=this.$options;if(!a.render){var n=a.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=Zs(n));else{if(!n.nodeType)return this;n=n.innerHTML}else e&&(n=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(n){var i=Ks(n,{outputSourceRange:!1,shouldDecodeNewlines:Ys,shouldDecodeNewlinesForHref:Js,delimiters:a.delimiters,comments:a.comments},this),r=i.render,s=i.staticRenderFns;a.render=r,a.staticRenderFns=s}}return Xs.call(this,e,t)},Aa.compile=Ks;var eo=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function to(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var a,n=(a=function(t){return t.original===e},t.filter(a)[0]);if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(a){i[a]=to(e[a],t)})),i}function ao(e,t){Object.keys(e).forEach((function(a){return t(e[a],a)}))}function no(e){return null!==e&&"object"==typeof e}var ro=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var a=e.state;this.state=("function"==typeof a?a():a)||{}},so={namespaced:{configurable:!0}};so.namespaced.get=function(){return!!this._rawModule.namespaced},ro.prototype.addChild=function(e,t){this._children[e]=t},ro.prototype.removeChild=function(e){delete this._children[e]},ro.prototype.getChild=function(e){return this._children[e]},ro.prototype.hasChild=function(e){return e in this._children},ro.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},ro.prototype.forEachChild=function(e){ao(this._children,e)},ro.prototype.forEachGetter=function(e){this._rawModule.getters&&ao(this._rawModule.getters,e)},ro.prototype.forEachAction=function(e){this._rawModule.actions&&ao(this._rawModule.actions,e)},ro.prototype.forEachMutation=function(e){this._rawModule.mutations&&ao(this._rawModule.mutations,e)},Object.defineProperties(ro.prototype,so);var oo,lo=function(e){this.register([],e,!1)};lo.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},lo.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,a){return e+((t=t.getChild(a)).namespaced?a+"/":"")}),"")},lo.prototype.update=function(e){!function e(t,a,n){if(a.update(n),n.modules)for(var i in n.modules){if(!a.getChild(i))return;e(t.concat(i),a.getChild(i),n.modules[i])}}([],this.root,e)},lo.prototype.register=function(e,t,a){var n=this;void 0===a&&(a=!0);var i=new ro(t,a);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&ao(t.modules,(function(t,i){n.register(e.concat(i),t,a)}))},lo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1],n=t.getChild(a);n&&n.runtime&&t.removeChild(a)},lo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1];return t.hasChild(a)};var co=function(e){var t=this;void 0===e&&(e={}),!oo&&"undefined"!=typeof window&&window.Vue&&bo(window.Vue);var a=e.plugins;void 0===a&&(a=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new lo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new oo,this._makeLocalGettersCache=Object.create(null);var i=this,r=this.dispatch,s=this.commit;this.dispatch=function(e,t){return r.call(i,e,t)},this.commit=function(e,t,a){return s.call(i,e,t,a)},this.strict=n;var o=this._modules.root.state;go(this,o,[],this._modules.root),mo(this,o),a.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:oo.config.devtools)&&function(e){eo&&(e._devtoolHook=eo,eo.emit("vuex:init",e),eo.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){eo.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){eo.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},uo={state:{configurable:!0}};function po(e,t,a){return t.indexOf(e)<0&&(a&&a.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function ho(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var a=e.state;go(e,a,[],e._modules.root,!0),mo(e,a,t)}function mo(e,t,a){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,r={};ao(i,(function(t,a){r[a]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,a,{get:function(){return e._vm[a]},enumerable:!0})}));var s=oo.config.silent;oo.config.silent=!0,e._vm=new oo({data:{$$state:t},computed:r}),oo.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(a&&e._withCommit((function(){n._data.$$state=null})),oo.nextTick((function(){return n.$destroy()})))}function go(e,t,a,n,i){var r=!a.length,s=e._modules.getNamespace(a);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!r&&!i){var o=fo(t,a.slice(0,-1)),l=a[a.length-1];e._withCommit((function(){oo.set(o,l,n.state)}))}var c=n.context=function(e,t,a){var n=""===t,i={dispatch:n?e.dispatch:function(a,n,i){var r=vo(a,n,i),s=r.payload,o=r.options,l=r.type;return o&&o.root||(l=t+l),e.dispatch(l,s)},commit:n?e.commit:function(a,n,i){var r=vo(a,n,i),s=r.payload,o=r.options,l=r.type;o&&o.root||(l=t+l),e.commit(l,s,o)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var a={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var r=i.slice(n);Object.defineProperty(a,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=a}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return fo(e.state,a)}}}),i}(e,s,a);n.forEachMutation((function(t,a){!function(e,t,a,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){a.call(e,n.state,t)}))}(e,s+a,t,c)})),n.forEachAction((function(t,a){var n=t.root?a:s+a,i=t.handler||t;!function(e,t,a,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,r=a.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(i=r)&&"function"==typeof i.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,n,i,c)})),n.forEachGetter((function(t,a){!function(e,t,a,n){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return a(n.state,n.getters,e.state,e.getters)}}(e,s+a,t,c)})),n.forEachChild((function(n,r){go(e,t,a.concat(r),n,i)}))}function fo(e,t){return t.reduce((function(e,t){return e[t]}),e)}function vo(e,t,a){return no(e)&&e.type&&(a=t,t=e,e=e.type),{type:e,payload:t,options:a}}function bo(e){oo&&e===oo|| /*! * vuex v3.5.1 * (c) 2020 Evan You * @license MIT */ -function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:a});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[a].concat(e.init):a,t.call(this,e)}}function a(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(oo=e)}uo.state.get=function(){return this._vm._data.$$state},uo.state.set=function(e){},co.prototype.commit=function(e,t,a){var n=this,i=vo(e,t,a),r=i.type,s=i.payload,o={type:r,payload:s},l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(o,n.state)})))},co.prototype.dispatch=function(e,t){var a=this,n=vo(e,t),i=n.type,r=n.payload,s={type:i,payload:r},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,a.state)}))}catch(e){}var l=o.length>1?Promise.all(o.map((function(e){return e(r)}))):o[0](r);return new Promise((function(e,t){l.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,a.state)}))}catch(e){}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,a.state,e)}))}catch(e){}t(e)}))}))}},co.prototype.subscribe=function(e,t){return po(e,this._subscribers,t)},co.prototype.subscribeAction=function(e,t){return po("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},co.prototype.watch=function(e,t,a){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,a)},co.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},co.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),go(this,this.state,e,this._modules.get(e),a.preserveState),mo(this,this.state)},co.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var a=fo(t.state,e.slice(0,-1));oo.delete(a,e[e.length-1])})),ho(this)},co.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},co.prototype.hotUpdate=function(e){this._modules.update(e),ho(this,!0)},co.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(co.prototype,uo);var yo=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){var t=this.$store.state,a=this.$store.getters;if(e){var n=xo(this.$store,"mapState",e);if(!n)return;t=n.context.state,a=n.context.getters}return"function"==typeof i?i.call(this,t,a):t[i]},a[n].vuex=!0})),a})),ko=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var n=this.$store.commit;if(e){var r=xo(this.$store,"mapMutations",e);if(!r)return;n=r.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),a})),_o=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,a[n]=function(){if(!e||xo(this.$store,"mapGetters",e))return this.$store.getters[i]},a[n].vuex=!0})),a})),Ao=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var n=this.$store.dispatch;if(e){var r=xo(this.$store,"mapActions",e);if(!r)return;n=r.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),a}));function wo(e){return function(e){return Array.isArray(e)||no(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Co(e){return function(t,a){return"string"!=typeof t?(a=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,a)}}function xo(e,t,a){return e._modulesNamespaceMap[a]}function To(e,t,a){var n=a?e.groupCollapsed:e.group;try{n.call(e,t)}catch(a){e.log(t)}}function So(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function zo(){var e=new Date;return" @ "+Mo(e.getHours(),2)+":"+Mo(e.getMinutes(),2)+":"+Mo(e.getSeconds(),2)+"."+Mo(e.getMilliseconds(),3)}function Mo(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var Do={Store:co,install:bo,version:"3.5.1",mapState:yo,mapMutations:ko,mapGetters:_o,mapActions:Ao,createNamespacedHelpers:function(e){return{mapState:yo.bind(null,e),mapGetters:_o.bind(null,e),mapMutations:ko.bind(null,e),mapActions:Ao.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var a=e.filter;void 0===a&&(a=function(e,t,a){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var r=e.actionFilter;void 0===r&&(r=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var o=e.logMutations;void 0===o&&(o=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=to(e.state);void 0!==c&&(o&&e.subscribe((function(e,r){var s=to(r);if(a(e,d,s)){var o=zo(),l=i(e),u="mutation "+e.type+o;To(c,u,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",n(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),So(c)}d=s})),l&&e.subscribeAction((function(e,a){if(r(e,a)){var n=zo(),i=s(e),o="action "+e.type+n;To(c,o,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),So(c)}})))}}};const Po=["converting","downloading","download finished"];const Lo={data:()=>({isLoading:!1}),props:{queueItem:Object},computed:{hasFails(){return this.queueItem.failed>=1},allFailed(){let e=!1;return"download finished"===this.queueItem.status&&(e=this.queueItem.failed===this.queueItem.size),e},finishedWithFails(){return"download finished"===this.queueItem.status&&this.hasFails},isDeterminateStatus(){return-1!==Po.indexOf(this.queueItem.status)},barClass(){return{converting:"converting"===this.queueItem.status,indeterminate:!this.isDeterminateStatus,determinate:this.isDeterminateStatus}},barStyle(){let e=0,t="var(--accent-color)";return t=this.hasFails?"hsl(33, 100%, 47%)":"hsl(120, 100%, 40%)",this.allFailed&&(t="hsl(360, 100%, 35%)"),"download finished"===this.queueItem.status&&(e=100),"downloading"===this.queueItem.status&&(e=this.queueItem.progress),"converting"===this.queueItem.status&&(e=100-this.queueItem.conversion),{width:e+"%",backgroundColor:t}},resultIconText(){let e="delete_forever";return"download finished"===this.queueItem.status&&(e=this.hasFails?this.queueItem.failed>=this.queueItem.size?"error":"warning":"done"),e}},methods:{onResultIconClick(){this.isDeterminateStatus?(this.finishedWithFails&&this.$emit("show-errors",this.queueItem),"downloading"===this.queueItem.status&&(this.isLoading=!0,this.$emit("remove-item",this.queueItem.uuid))):(this.isLoading=!0,this.$emit("remove-item",this.queueItem.uuid))}}};var No=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"download-object"},[a("div",{staticClass:"download-info"},[a("img",{staticClass:"rounded coverart",attrs:{width:"75px",src:e.queueItem.cover,alt:"Cover "+e.queueItem.title}}),e._v(" "),a("div",{staticClass:"download-info-data"},[a("span",{staticClass:"download-line"},[e._v(e._s(e.queueItem.title))]),e._v(" "),a("span",{staticClass:"download-slim-separator"},[e._v(" - ")]),e._v(" "),a("span",[e._v(e._s(e.queueItem.artist))])]),e._v(" "),a("div",{staticClass:"download-info-status",staticStyle:{"text-align":"center"}},[a("span",{staticClass:"download-line"},[e._v(" "+e._s(e.queueItem.downloaded+e.queueItem.failed)+"/"+e._s(e.queueItem.size)+" ")]),e._v(" "),e.hasFails?a("span",{staticClass:"inline-flex",class:{clickable:e.finishedWithFails},staticStyle:{"justify-content":"center"},on:{click:function(t){e.finishedWithFails&&e.$emit("show-errors",e.queueItem)}}},[e._v("\n\t\t\t\t"+e._s(e.queueItem.failed)+"\n\t\t\t\t"),a("i",{staticClass:"material-icons"},[e._v("error_outline")])]):e._e()])]),e._v(" "),a("div",{staticClass:"download-bar"},[a("div",{staticClass:"progress"},[a("div",{class:e.barClass,style:e.barStyle})]),e._v(" "),e.isLoading?a("div",{staticClass:"circle-loader"}):a("i",{staticClass:"material-icons queue_icon",class:{clickable:e.finishedWithFails||"delete_forever"===e.resultIconText},on:{click:e.onResultIconClick}},[e._v("\n\t\t\t"+e._s(e.resultIconText)+"\n\t\t")])])])};No._withStripped=!0;var $o=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\downloads\\QueueItem.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:No,staticRenderFns:[]},(function(e){e&&e("data-v-51132703_0",{source:".download-object {\n padding-bottom: 8px;\n}\n.download-object .download-info {\n display: flex;\n align-items: center;\n}\n.download-object .download-info img {\n height: 75px;\n flex-shrink: 0;\n flex: 0 0 75px;\n}\n.download-object .download-info .download-line {\n display: block;\n}\n.download-object .download-info .download-slim-separator {\n display: none;\n}\n.download-object .download-info-data {\n flex: 1 50%;\n margin-left: 8px;\n overflow: hidden;\n}\n.download-object .download-info-status {\n flex: 1 15%;\n margin-left: 8px;\n width: 80px;\n}\n.download-object > .download-bar {\n display: flex;\n align-items: center;\n height: 24px;\n}\n.download-object > .download-bar > .queue_icon {\n cursor: default;\n margin-left: 8px;\n}\n.download-object > .download-bar > .progress {\n margin: 0px;\n}\n#download_list:not(.slim) .download-line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n#download_list.slim > .download-object .download-info {\n display: block;\n}\n#download_list.slim > .download-object .download-info img {\n display: none;\n}\n#download_list.slim > .download-object .download-info .download-line {\n display: inline-block;\n}\n#download_list.slim > .download-object .download-info .download-slim-separator {\n display: inline-block;\n}\n#download_list.slim > .download-object .download-info-data {\n width: calc(80% - 16px);\n display: inline-block;\n padding-left: 0px;\n}\n#download_list.slim > .download-object .download-info-status {\n width: 20%;\n display: inline-block;\n float: right;\n}\n\n/*# sourceMappingURL=QueueItem.vue.map */",map:{version:3,sources:["C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\downloads\\QueueItem.vue","QueueItem.vue"],names:[],mappings:"AA4CA;EACA,mBAAA;AAAA;AADA;IAIA,aAAA;IACA,mBAAA;AAAA;AALA;MAQA,YAAA;MACA,cAAA;MACA,cAAA;AAAA;AAVA;MAcA,cAAA;AAAA;AAdA;MAkBA,aAAA;AAAA;AAlBA;IAuBA,WAAA;IACA,gBAAA;IACA,gBAAA;AAAA;AAzBA;IA6BA,WAAA;IACA,gBAAA;IACA,WAAA;AAAA;AA/BA;IAmCA,aAAA;IACA,mBAAA;IACA,YAAA;AAAA;AArCA;MAwCA,eAAA;MACA,gBAAA;AAAA;AAzCA;MA6CA,WAAA;AAAA;AAKA;EACA,gBAAA;EACA,mBAAA;EACA,uBAAA;AAAA;AAGA;EAGA,cAAA;AAAA;AAHA;IAMA,aAAA;AAAA;AANA;IAUA,qBAAA;AAAA;AAVA;IAcA,qBAAA;AAAA;AAdA;EAmBA,uBAAA;EACA,qBAAA;EACA,iBAAA;AAAA;AArBA;EAyBA,UAAA;EACA,qBAAA;EACA,YAAA;AAAA;;ACxEA,wCAAwC",file:"QueueItem.vue",sourcesContent:[null,".download-object {\n padding-bottom: 8px; }\n .download-object .download-info {\n display: flex;\n align-items: center; }\n .download-object .download-info img {\n height: 75px;\n flex-shrink: 0;\n flex: 0 0 75px; }\n .download-object .download-info .download-line {\n display: block; }\n .download-object .download-info .download-slim-separator {\n display: none; }\n .download-object .download-info-data {\n flex: 1 50%;\n margin-left: 8px;\n overflow: hidden; }\n .download-object .download-info-status {\n flex: 1 15%;\n margin-left: 8px;\n width: 80px; }\n .download-object > .download-bar {\n display: flex;\n align-items: center;\n height: 24px; }\n .download-object > .download-bar > .queue_icon {\n cursor: default;\n margin-left: 8px; }\n .download-object > .download-bar > .progress {\n margin: 0px; }\n\n#download_list:not(.slim) .download-line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n\n#download_list.slim > .download-object .download-info {\n display: block; }\n #download_list.slim > .download-object .download-info img {\n display: none; }\n #download_list.slim > .download-object .download-info .download-line {\n display: inline-block; }\n #download_list.slim > .download-object .download-info .download-slim-separator {\n display: inline-block; }\n\n#download_list.slim > .download-object .download-info-data {\n width: calc(80% - 16px);\n display: inline-block;\n padding-left: 0px; }\n\n#download_list.slim > .download-object .download-info-status {\n width: 20%;\n display: inline-block;\n float: right; }\n\n/*# sourceMappingURL=QueueItem.vue.map */"]},media:void 0})}),Lo,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));var Ro={state:{currentCommit:null,latestCommit:null,updateAvailable:!1,deemixVersion:null},getters:{getAboutInfo:e=>e},actions:{setAboutInfo({commit:e},t){e("SET_CURRENT_COMMIT",t.currentCommit),e("SET_LATEST_COMMIT",t.latestCommit),e("SET_UPDATE_AVAILABLE",t.updateAvailable),e("SET_DEEMIX_VERSION",t.deemixVersion)}},mutations:{SET_CURRENT_COMMIT:(e,t)=>{e.currentCommit=t},SET_LATEST_COMMIT:(e,t)=>{e.latestCommit=t},SET_UPDATE_AVAILABLE:(e,t)=>{e.updateAvailable=t},SET_DEEMIX_VERSION:(e,t)=>{e.deemixVersion=t}}};const Io=()=>({arl:localStorage.getItem("arl")||"",status:null,user:{id:null,name:"",picture:""},clientMode:!1});var Fo={state:Io(),getters:{getARL:e=>e.arl,getUser:e=>e.user,getClientMode:e=>e.clientMode,isLoggedIn:e=>!!e.arl},actions:{login({commit:e,dispatch:t},a){const{arl:n,user:i,status:r}=a;t("setARL",{arl:n}),e("SET_USER",i),e("SET_STATUS",r)},logout({commit:e}){localStorage.removeItem("arl"),e("RESET_LOGIN")},setARL({commit:e},t){let{arl:a,saveOnLocalStorage:n}=t;n=void 0===n||n,e("SET_ARL",a),n&&localStorage.setItem("arl",a)},removeARL({commit:e}){e("SET_ARL",""),localStorage.removeItem("arl")},setUser({commit:e},t){e("SET_USER",t)},setClientMode({commit:e},t){e("SET_CLIENT_MODE",t)}},mutations:{SET_ARL(e,t){e.arl=t},SET_STATUS(e,t){e.status=t},SET_USER(e,t){e.user=t},SET_CLIENT_MODE(e,t){e.clientMode=t},RESET_LOGIN(e){let t=e.clientMode;Object.assign(e,Io()),e.clientMode=t}}};var Eo={state:{artist:"",bitrate:"",cover:"",downloaded:0,errors:[],failed:0,id:"",progress:0,silent:!0,size:0,title:"",type:"",uuid:""},getters:{getErrors:e=>e},actions:{setErrors({commit:e},t){e("SET_ERRORS",t)}},mutations:{SET_ERRORS(e,t){for(const a in e)if(e.hasOwnProperty(a)){const n=t[a];e[a]=n}}}};ka.use(Do);var jo=new Do.Store({modules:{about:Ro,login:Fo,errors:Eo},strict:!1});const Bo=io.connect(window.location.href);Bo.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")}),Bo.on("init_update",e=>{jo.dispatch("setAboutInfo",e)});var Oo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Uo=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){ +function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:a});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[a].concat(e.init):a,t.call(this,e)}}function a(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(oo=e)}uo.state.get=function(){return this._vm._data.$$state},uo.state.set=function(e){},co.prototype.commit=function(e,t,a){var n=this,i=vo(e,t,a),r=i.type,s=i.payload,o={type:r,payload:s},l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(o,n.state)})))},co.prototype.dispatch=function(e,t){var a=this,n=vo(e,t),i=n.type,r=n.payload,s={type:i,payload:r},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,a.state)}))}catch(e){}var l=o.length>1?Promise.all(o.map((function(e){return e(r)}))):o[0](r);return new Promise((function(e,t){l.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,a.state)}))}catch(e){}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,a.state,e)}))}catch(e){}t(e)}))}))}},co.prototype.subscribe=function(e,t){return po(e,this._subscribers,t)},co.prototype.subscribeAction=function(e,t){return po("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},co.prototype.watch=function(e,t,a){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,a)},co.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},co.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),go(this,this.state,e,this._modules.get(e),a.preserveState),mo(this,this.state)},co.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var a=fo(t.state,e.slice(0,-1));oo.delete(a,e[e.length-1])})),ho(this)},co.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},co.prototype.hotUpdate=function(e){this._modules.update(e),ho(this,!0)},co.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(co.prototype,uo);var yo=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){var t=this.$store.state,a=this.$store.getters;if(e){var n=xo(this.$store,"mapState",e);if(!n)return;t=n.context.state,a=n.context.getters}return"function"==typeof i?i.call(this,t,a):t[i]},a[n].vuex=!0})),a})),Ao=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var n=this.$store.commit;if(e){var r=xo(this.$store,"mapMutations",e);if(!r)return;n=r.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),a})),ko=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,a[n]=function(){if(!e||xo(this.$store,"mapGetters",e))return this.$store.getters[i]},a[n].vuex=!0})),a})),_o=Co((function(e,t){var a={};return wo(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var n=this.$store.dispatch;if(e){var r=xo(this.$store,"mapActions",e);if(!r)return;n=r.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),a}));function wo(e){return function(e){return Array.isArray(e)||no(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Co(e){return function(t,a){return"string"!=typeof t?(a=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,a)}}function xo(e,t,a){return e._modulesNamespaceMap[a]}function To(e,t,a){var n=a?e.groupCollapsed:e.group;try{n.call(e,t)}catch(a){e.log(t)}}function So(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function zo(){var e=new Date;return" @ "+Mo(e.getHours(),2)+":"+Mo(e.getMinutes(),2)+":"+Mo(e.getSeconds(),2)+"."+Mo(e.getMilliseconds(),3)}function Mo(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var Do={Store:co,install:bo,version:"3.5.1",mapState:yo,mapMutations:Ao,mapGetters:ko,mapActions:_o,createNamespacedHelpers:function(e){return{mapState:yo.bind(null,e),mapGetters:ko.bind(null,e),mapMutations:Ao.bind(null,e),mapActions:_o.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var a=e.filter;void 0===a&&(a=function(e,t,a){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var r=e.actionFilter;void 0===r&&(r=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var o=e.logMutations;void 0===o&&(o=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=to(e.state);void 0!==c&&(o&&e.subscribe((function(e,r){var s=to(r);if(a(e,d,s)){var o=zo(),l=i(e),u="mutation "+e.type+o;To(c,u,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",n(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),So(c)}d=s})),l&&e.subscribeAction((function(e,a){if(r(e,a)){var n=zo(),i=s(e),o="action "+e.type+n;To(c,o,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),So(c)}})))}}};const Po=["converting","downloading","download finished"];const Lo={data:()=>({isLoading:!1}),props:{queueItem:Object},computed:{hasFails(){return this.queueItem.failed>=1},allFailed(){let e=!1;return"download finished"===this.queueItem.status&&(e=this.queueItem.failed===this.queueItem.size),e},finishedWithFails(){return"download finished"===this.queueItem.status&&this.hasFails},isDeterminateStatus(){return-1!==Po.indexOf(this.queueItem.status)},barClass(){return{converting:"converting"===this.queueItem.status,indeterminate:!this.isDeterminateStatus,determinate:this.isDeterminateStatus}},barStyle(){let e=0,t="var(--accent-color)";return t=this.hasFails?"hsl(33, 100%, 47%)":"hsl(120, 100%, 40%)",this.allFailed&&(t="hsl(360, 100%, 35%)"),"download finished"===this.queueItem.status&&(e=100),"downloading"===this.queueItem.status&&(e=this.queueItem.progress),"converting"===this.queueItem.status&&(e=100-this.queueItem.conversion),{width:e+"%",backgroundColor:t}},resultIconText(){let e="delete_forever";return"download finished"===this.queueItem.status&&(e=this.hasFails?this.queueItem.failed>=this.queueItem.size?"error":"warning":"done"),e}},methods:{onResultIconClick(){this.isDeterminateStatus?(this.finishedWithFails&&this.$emit("show-errors",this.queueItem),"downloading"===this.queueItem.status&&(this.isLoading=!0,this.$emit("remove-item",this.queueItem.uuid))):(this.isLoading=!0,this.$emit("remove-item",this.queueItem.uuid))}}};var No=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"download-object"},[a("div",{staticClass:"download-info"},[a("img",{staticClass:"rounded coverart",attrs:{width:"75px",src:e.queueItem.cover,alt:"Cover "+e.queueItem.title}}),e._v(" "),a("div",{staticClass:"download-info-data"},[a("span",{staticClass:"download-line"},[e._v(e._s(e.queueItem.title))]),e._v(" "),a("span",{staticClass:"download-slim-separator"},[e._v(" - ")]),e._v(" "),a("span",[e._v(e._s(e.queueItem.artist))])]),e._v(" "),a("div",{staticClass:"download-info-status",staticStyle:{"text-align":"center"}},[a("span",{staticClass:"download-line"},[e._v(" "+e._s(e.queueItem.downloaded+e.queueItem.failed)+"/"+e._s(e.queueItem.size)+" ")]),e._v(" "),e.hasFails?a("span",{staticClass:"inline-flex",class:{clickable:e.finishedWithFails},staticStyle:{"justify-content":"center"},on:{click:function(t){e.finishedWithFails&&e.$emit("show-errors",e.queueItem)}}},[e._v("\n\t\t\t\t"+e._s(e.queueItem.failed)+"\n\t\t\t\t"),a("i",{staticClass:"material-icons"},[e._v("error_outline")])]):e._e()])]),e._v(" "),a("div",{staticClass:"download-bar"},[a("div",{staticClass:"progress"},[a("div",{class:e.barClass,style:e.barStyle})]),e._v(" "),e.isLoading?a("div",{staticClass:"circle-loader"}):a("i",{staticClass:"material-icons queue_icon",class:{clickable:e.finishedWithFails||"delete_forever"===e.resultIconText},on:{click:e.onResultIconClick}},[e._v("\n\t\t\t"+e._s(e.resultIconText)+"\n\t\t")])])])};No._withStripped=!0;var $o=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\downloads\\QueueItem.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:No,staticRenderFns:[]},(function(e){e&&e("data-v-51132703_0",{source:".download-object {\n padding-bottom: 8px;\n}\n.download-object .download-info {\n display: flex;\n align-items: center;\n}\n.download-object .download-info img {\n height: 75px;\n flex-shrink: 0;\n flex: 0 0 75px;\n}\n.download-object .download-info .download-line {\n display: block;\n}\n.download-object .download-info .download-slim-separator {\n display: none;\n}\n.download-object .download-info-data {\n flex: 1 50%;\n margin-left: 8px;\n overflow: hidden;\n}\n.download-object .download-info-status {\n flex: 1 15%;\n margin-left: 8px;\n width: 80px;\n}\n.download-object > .download-bar {\n display: flex;\n align-items: center;\n height: 24px;\n}\n.download-object > .download-bar > .queue_icon {\n cursor: default;\n margin-left: 8px;\n}\n.download-object > .download-bar > .progress {\n margin: 0px;\n}\n#download_list:not(.slim) .download-line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n#download_list.slim > .download-object .download-info {\n display: block;\n}\n#download_list.slim > .download-object .download-info img {\n display: none;\n}\n#download_list.slim > .download-object .download-info .download-line {\n display: inline-block;\n}\n#download_list.slim > .download-object .download-info .download-slim-separator {\n display: inline-block;\n}\n#download_list.slim > .download-object .download-info-data {\n width: calc(80% - 16px);\n display: inline-block;\n padding-left: 0px;\n}\n#download_list.slim > .download-object .download-info-status {\n width: 20%;\n display: inline-block;\n float: right;\n}\n\n/*# sourceMappingURL=QueueItem.vue.map */",map:{version:3,sources:["C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\downloads\\QueueItem.vue","QueueItem.vue"],names:[],mappings:"AA4CA;EACA,mBAAA;AAAA;AADA;IAIA,aAAA;IACA,mBAAA;AAAA;AALA;MAQA,YAAA;MACA,cAAA;MACA,cAAA;AAAA;AAVA;MAcA,cAAA;AAAA;AAdA;MAkBA,aAAA;AAAA;AAlBA;IAuBA,WAAA;IACA,gBAAA;IACA,gBAAA;AAAA;AAzBA;IA6BA,WAAA;IACA,gBAAA;IACA,WAAA;AAAA;AA/BA;IAmCA,aAAA;IACA,mBAAA;IACA,YAAA;AAAA;AArCA;MAwCA,eAAA;MACA,gBAAA;AAAA;AAzCA;MA6CA,WAAA;AAAA;AAKA;EACA,gBAAA;EACA,mBAAA;EACA,uBAAA;AAAA;AAGA;EAGA,cAAA;AAAA;AAHA;IAMA,aAAA;AAAA;AANA;IAUA,qBAAA;AAAA;AAVA;IAcA,qBAAA;AAAA;AAdA;EAmBA,uBAAA;EACA,qBAAA;EACA,iBAAA;AAAA;AArBA;EAyBA,UAAA;EACA,qBAAA;EACA,YAAA;AAAA;;ACxEA,wCAAwC",file:"QueueItem.vue",sourcesContent:[null,".download-object {\n padding-bottom: 8px; }\n .download-object .download-info {\n display: flex;\n align-items: center; }\n .download-object .download-info img {\n height: 75px;\n flex-shrink: 0;\n flex: 0 0 75px; }\n .download-object .download-info .download-line {\n display: block; }\n .download-object .download-info .download-slim-separator {\n display: none; }\n .download-object .download-info-data {\n flex: 1 50%;\n margin-left: 8px;\n overflow: hidden; }\n .download-object .download-info-status {\n flex: 1 15%;\n margin-left: 8px;\n width: 80px; }\n .download-object > .download-bar {\n display: flex;\n align-items: center;\n height: 24px; }\n .download-object > .download-bar > .queue_icon {\n cursor: default;\n margin-left: 8px; }\n .download-object > .download-bar > .progress {\n margin: 0px; }\n\n#download_list:not(.slim) .download-line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n\n#download_list.slim > .download-object .download-info {\n display: block; }\n #download_list.slim > .download-object .download-info img {\n display: none; }\n #download_list.slim > .download-object .download-info .download-line {\n display: inline-block; }\n #download_list.slim > .download-object .download-info .download-slim-separator {\n display: inline-block; }\n\n#download_list.slim > .download-object .download-info-data {\n width: calc(80% - 16px);\n display: inline-block;\n padding-left: 0px; }\n\n#download_list.slim > .download-object .download-info-status {\n width: 20%;\n display: inline-block;\n float: right; }\n\n/*# sourceMappingURL=QueueItem.vue.map */"]},media:void 0})}),Lo,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));var Ro={state:{currentCommit:null,latestCommit:null,updateAvailable:!1,deemixVersion:null},getters:{getAboutInfo:e=>e},actions:{setAboutInfo({commit:e},t){e("SET_CURRENT_COMMIT",t.currentCommit),e("SET_LATEST_COMMIT",t.latestCommit),e("SET_UPDATE_AVAILABLE",t.updateAvailable),e("SET_DEEMIX_VERSION",t.deemixVersion)}},mutations:{SET_CURRENT_COMMIT:(e,t)=>{e.currentCommit=t},SET_LATEST_COMMIT:(e,t)=>{e.latestCommit=t},SET_UPDATE_AVAILABLE:(e,t)=>{e.updateAvailable=t},SET_DEEMIX_VERSION:(e,t)=>{e.deemixVersion=t}}};const Io=()=>({arl:localStorage.getItem("arl")||"",status:null,user:{id:null,name:"",picture:""},clientMode:!1});var Eo={state:Io(),getters:{getARL:e=>e.arl,getUser:e=>e.user,getClientMode:e=>e.clientMode,isLoggedIn:e=>!!e.arl},actions:{login({commit:e,dispatch:t},a){const{arl:n,user:i,status:r}=a;t("setARL",{arl:n}),e("SET_USER",i),e("SET_STATUS",r)},logout({commit:e}){localStorage.removeItem("arl"),e("RESET_LOGIN")},setARL({commit:e},t){let{arl:a,saveOnLocalStorage:n}=t;n=void 0===n||n,e("SET_ARL",a),n&&localStorage.setItem("arl",a)},removeARL({commit:e}){e("SET_ARL",""),localStorage.removeItem("arl")},setUser({commit:e},t){e("SET_USER",t)},setClientMode({commit:e},t){e("SET_CLIENT_MODE",t)}},mutations:{SET_ARL(e,t){e.arl=t},SET_STATUS(e,t){e.status=t},SET_USER(e,t){e.user=t},SET_CLIENT_MODE(e,t){e.clientMode=t},RESET_LOGIN(e){let t=e.clientMode;Object.assign(e,Io()),e.clientMode=t}}};var Fo={state:{artist:"",bitrate:"",cover:"",downloaded:0,errors:[],failed:0,id:"",progress:0,silent:!0,size:0,title:"",type:"",uuid:""},getters:{getErrors:e=>e},actions:{setErrors({commit:e},t){e("SET_ERRORS",t)}},mutations:{SET_ERRORS(e,t){for(const a in e)if(e.hasOwnProperty(a)){const n=t[a];e[a]=n}}}};Aa.use(Do);var jo=new Do.Store({modules:{about:Ro,login:Eo,errors:Fo},strict:!1});const Bo=io.connect(window.location.href);Bo.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")}),Bo.on("init_update",e=>{jo.dispatch("setAboutInfo",e)});var Oo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Uo=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){ /*! * Toastify js 1.8.0 * https://github.com/apvarun/toastify-js @@ -17,14 +17,14 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:a});else * * Copyright (C) 2018 Varun A P */ -!function(t,a){e.exports?e.exports=a():t.Toastify=a()}(Oo,(function(e){var t=function(e){return new t.lib.init(e)};function a(e,t){return!(!e||"string"!=typeof t)&&!!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1)}return t.lib=t.prototype={toastify:"1.8.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.node=e.node,this.options.duration=0===e.duration?0:e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"===e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void 0===e.stopOnFocus||e.stopOnFocus,this.options.onClick=e.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(e.innerHTML=this.options.text,""!==this.options.avatar){var t=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){var a=document.createElement("span");a.innerHTML="✖",a.className="toast-close",a.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var n=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&n>360?e.insertAdjacentElement("afterbegin",a):e.appendChild(a)}if(this.options.stopOnFocus&&this.options.duration>0){const t=this;e.addEventListener("mouseover",(function(t){window.clearTimeout(e.timeOutValue)})),e.addEventListener("mouseleave",(function(){e.timeOutValue=window.setTimeout((function(){t.removeElement(e)}),t.options.duration)}))}return void 0!==this.options.destination&&e.addEventListener("click",function(e){e.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&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return e.insertBefore(this.toastElement,e.firstChild),t.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(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},n={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[e]=i[e]+"px",i[e]+=o+15):!0===a(r[s],"toastify-left")?(r[s].style[e]=t[e]+"px",t[e]+=o+15):(r[s].style[e]=n[e]+"px",n[e]+=o+15)}return this},t.lib.init.prototype=t.lib,t}))}));let qo={};const Vo=function(e,t=null,a=!0,n=null){if(qo[n]){let i=qo[n],r=document.querySelectorAll(`div.toastify[toast_id=${n}]`);e&&r.forEach(t=>{t.querySelectorAll(".toast-message").forEach(t=>{t.innerHTML=e})}),t&&(t="loading"==t?'
':`${t}`,r.forEach(e=>{e.querySelectorAll(".toast-icon").forEach(e=>{e.innerHTML=t})})),null!==a&&a&&(r.forEach(e=>{e.classList.add("dismissable")}),setTimeout(()=>{i.hideToast(),delete qo[n]},3e3))}else{let i=Uo({text:`${t=null==t?"":"loading"==t?'
':`${t}`}
${e}`,duration:a?3e3:0,gravity:"bottom",position:"left",className:a?"dismissable":"",onClick:function(){let e=!0;if(n){let t=document.querySelector(`div.toastify[toast_id=${n}]`).classList;t&&(e=-1!=Array.prototype.slice.call(t).indexOf("dismissable"))}i&&e&&(i.hideToast(),n&&delete qo[n])}}).showToast();n&&(qo[n]=i,i.toastElement.setAttribute("toast_id",n))}};Bo.on("toast",e=>{const{msg:t,icon:a,dismiss:n,id:i}=e;Vo(t,a||null,void 0===n||n,i||null)});const Go={components:{QueueItem:$o},data:()=>({cachedTabWidth:parseInt(localStorage.getItem("downloadTabWidth"))||300,queue:[],queueList:{},queueComplete:[]}),computed:{..._o({clientMode:"getClientMode"})},created(){const e=e=>{e.ctrlKey&&"b"===e.key&&this.toggleDownloadTab()};document.addEventListener("keyup",e),this.$on("hook:destroyed",()=>{document.removeEventListener("keyup",e)})},mounted(){Bo.on("startDownload",this.startDownload),Bo.on("startConversion",this.startConversion),Bo.on("init_downloadQueue",this.initQueue),Bo.on("addedToQueue",this.addToQueue),Bo.on("updateQueue",this.updateQueue),Bo.on("removedFromQueue",this.removeFromQueue),Bo.on("finishDownload",this.finishDownload),Bo.on("removedAllDownloads",this.removeAllDownloads),Bo.on("removedFinishedDownloads",this.removedFinishedDownloads),"true"===localStorage.getItem("slimDownloads")&&this.$refs.list.classList.add("slim"),"true"===localStorage.getItem("downloadTabOpen")&&(this.$refs.container.classList.remove("tab_hidden"),this.setTabWidth(this.cachedTabWidth)),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",this.handleDrag)}),window.addEventListener("beforeunload",()=>{localStorage.setItem("downloadTabWidth",this.cachedTabWidth)})},methods:{...Ao(["setErrors"]),onRemoveItem(e){Bo.emit("removeFromQueue",e)},setTabWidth(e){void 0===e?(this.$refs.container.style.width="",this.$refs.list.style.width=""):(this.$refs.container.style.width=e+"px",this.$refs.list.style.width=e+"px")},initQueue(e){const{queue:t,queueComplete:a,currentItem:n,queueList:i,restored:r}=e;a.length&&a.forEach(e=>{i[e].silent=!0,this.addToQueue(i[e])}),n&&(i[n].silent=!0,this.addToQueue(i[n],!0)),t.forEach(e=>{i[e].silent=!0,this.addToQueue(i[e])}),r&&(Vo(this.$t("toasts.queueRestored"),"done",!0,"restoring_queue"),Bo.emit("queueRestored"))},addToQueue(e,t=!1){if(Array.isArray(e)){if(e.length>1)return e.forEach((e,t)=>{e.silent=!0,this.addToQueue(e)}),void Vo(this.$t("toasts.addedMoreToQueue",{n:e.length}),"playlist_add_check");e=e[0]}this.$set(e,"current",t),this.$set(this.queueList,e.uuid,e);if(e.downloaded+e.failed==e.size){const t=-1==this.queueComplete.indexOf(e.uuid);this.$set(this.queueList[e.uuid],"status","download finished"),t&&this.queueComplete.push(e.uuid)}else{-1==this.queue.indexOf(e.uuid)&&this.queue.push(e.uuid)}(e.progress>0&&e.progress<100||t)&&this.startDownload(e.uuid),e.silent||Vo(this.$t("toasts.addedToQueue",{item:e.title}),"playlist_add_check")},updateQueue(e){const{uuid:t,downloaded:a,failed:n,progress:i,conversion:r,error:s,data:o,errid:l}=e;t&&this.queue.indexOf(t)>-1&&(a&&this.queueList[t].downloaded++,n&&(this.queueList[t].failed++,this.queueList[t].errors.push({message:s,data:o,errid:l})),i&&(this.queueList[t].progress=i),r&&(this.queueList[t].conversion=r))},removeFromQueue(e){let t=this.queue.indexOf(e);t>-1&&(this.$delete(this.queue,t),this.$delete(this.queueList,e))},removeAllDownloads(e){if(this.queueComplete=[],e){this.queue=[e];let t=this.queueList[e];this.queueList={},this.queueList[e]=t}else this.queue=[],this.queueList={}},removedFinishedDownloads(){this.queueComplete.forEach(e=>{this.$delete(this.queueList,e)}),this.queueComplete=[]},toggleDownloadTab(){this.setTabWidth(),this.$refs.container.style.transition="all 250ms ease-in-out";let e=this.$refs.container.classList.toggle("tab_hidden");e||this.setTabWidth(this.cachedTabWidth),localStorage.setItem("downloadTabOpen",!e)},cleanQueue(){Bo.emit("removeFinishedDownloads")},cancelQueue(){Bo.emit("cancelAllDownloads")},openDownloadsFolder(){Bo.emit("openDownloadsFolder")},handleDrag(e){let t=window.innerWidth-e.pageX+2;t<250?t=250:t>500&&(t=500),this.cachedTabWidth=t,this.setTabWidth(t)},startDrag(){document.addEventListener("mousemove",this.handleDrag)},startDownload(e){this.$set(this.queueList[e],"status","downloading")},finishDownload(e){if(!(this.queue.indexOf(e)>-1))return;this.$set(this.queueList[e],"status","download finished"),Vo(this.$t("toasts.finishDownload",{item:this.queueList[e].title}),"done");let t=this.queue.indexOf(e);t>-1&&(this.queue.splice(t,1),this.queueComplete.push(e)),this.queue.length<=0&&Vo(this.$t("toasts.allDownloaded"),"done_all")},startConversion(e){this.$set(this.queueList[e],"status","converting"),this.$set(this.queueList[e],"conversion",0)},async showErrorsTab(e){await this.setErrors(e),this.$router.push({name:"Errors"})}}};var Ho=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"container",staticClass:"tab_hidden",attrs:{id:"download_tab_container","data-label":e.$t("downloads"),"aria-label":"downloads"},on:{transitionend:function(t){e.$refs.container.style.transition=""}}},[a("div",{ref:"dragHandler",attrs:{id:"download_tab_drag_handler"},on:{mousedown:function(t){return t.preventDefault(),e.startDrag(t)}}}),e._v(" "),a("i",{ref:"toggler",staticClass:"material-icons download_bar_icon",attrs:{id:"toggle_download_tab",title:e.$t("globals.toggle_download_tab_hint")},on:{click:function(t){return t.preventDefault(),e.toggleDownloadTab(t)}}}),e._v(" "),a("div",{attrs:{id:"queue_buttons"}},[e.clientMode?a("i",{staticClass:"material-icons download_bar_icon",attrs:{title:e.$t("globals.open_downloads_folder")},on:{click:e.openDownloadsFolder}},[e._v("\n\t\t\tfolder_open\n\t\t")]):e._e(),e._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{title:e.$t("globals.clean_queue_hint")},on:{click:e.cleanQueue}},[e._v("\n\t\t\tclear_all\n\t\t")]),e._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{title:e.$t("globals.cancel_queue_hint")},on:{click:e.cancelQueue}},[e._v("\n\t\t\tdelete_sweep\n\t\t")])]),e._v(" "),a("div",{ref:"list",attrs:{id:"download_list"}},e._l(e.queueList,(function(t){return a("QueueItem",{key:t.uuid,attrs:{"queue-item":t},on:{"show-errors":e.showErrorsTab,"remove-item":e.onRemoveItem}})})),1)])};Ho._withStripped=!0;var Wo=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\downloads\\TheDownloadBar.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:Ho,staticRenderFns:[]},(function(e){e&&e("data-v-2eb8163c_0",{source:"#download_tab_container[data-v-2eb8163c] {\n height: 100vh;\n}\n\n/*# sourceMappingURL=TheDownloadBar.vue.map */",map:{version:3,sources:["C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\downloads\\TheDownloadBar.vue","TheDownloadBar.vue"],names:[],mappings:"AA8CA;EACA,aAAA;AAAA;;AC5CA,6CAA6C",file:"TheDownloadBar.vue",sourcesContent:[null,"#download_tab_container {\n height: 100vh; }\n\n/*# sourceMappingURL=TheDownloadBar.vue.map */"]},media:void 0})}),Go,"data-v-2eb8163c",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));const Ko={props:{text:{type:String,required:!1,default:"Loading..."},id:{type:String,required:!1},hidden:{type:Boolean,required:!1,default:!1}}};var Qo=function(e,t){var a=t._c;return a("div",{staticClass:"loading_placeholder",class:{"loading_placeholder--hidden":t.props.hidden},attrs:{id:t.props.id}},[a("span",{staticClass:"loading_placeholder__text"},[t._v(t._s(t.props.text))]),t._v(" "),t._m(0)])};Qo._withStripped=!0;var Yo=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\globals\\BaseLoadingPlaceholder.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Qo,staticRenderFns:[function(e,t){var a=t._c;return a("div",{staticClass:"lds-ring"},[a("div"),t._v(" "),a("div"),t._v(" "),a("div"),t._v(" "),a("div")])}]},0,Ko,void 0,!0);function Jo(e,t=null){if(!e)throw new Error("No URL given to sendAddToQueue function!");Bo.emit("addToQueue",{url:e,bitrate:t},()=>{})}var Zo={sendAddToQueue:Jo};function Xo(e){let t=e.toLowerCase();if(t.startsWith("http")){if(t.indexOf("deezer.com")>=0||t.indexOf("deezer.page.link")>=0||t.indexOf("open.spotify.com")>=0)return!0}else if(t.startsWith("spotify:"))return!0;return!1}function el(e){let t,a;return t=Math.floor(e/60),a=e-60*t,a<10&&(a="0"+a),t+":"+a}function tl(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}function al(e,t,a){var n;return function(){var i=this,r=arguments,s=function(){n=null,a||e.apply(i,r)},o=a&&!n;clearTimeout(n),n=setTimeout(s,t),o&&e.apply(i,r)}}function nl(e){const t=document.createElement("input");document.body.appendChild(t),t.setAttribute("type","text"),t.setAttribute("value",e),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.remove()}var il={isValidURL:Xo,convertDuration:el,convertDurationSeparated:function(e){let t,a,n;return a=Math.floor(e/60),t=Math.floor(a/60),n=e-60*a,a-=60*t,[t,a,n]},numberWithDots:tl,debounce:al};const rl=[{objName:"flac",label:"FLAC",value:9},{objName:"320kbps",label:"MP3 320kbps",value:3},{objName:"128kbps",label:"MP3 128kbps",value:1},{objName:"realityAudioHQ",label:"360 Reality Audio [HQ]",value:15},{objName:"realityAudioMQ",label:"360 Reality Audio [MQ]",value:14},{objName:"realityAudioLQ",label:"360 Reality Audio [LQ]",value:13}];const sl={data:()=>({menuOpen:!1,xPos:0,yPos:0,deezerHref:"",generalHref:"",imgSrc:""}),computed:{options(){const e={cut:{label:this.$t("globals.cut"),show:!1,position:1,action:()=>{document.execCommand("Cut")}},copy:{label:this.$t("globals.copy"),show:!1,position:2,action:()=>{document.execCommand("Copy")}},copyLink:{label:this.$t("globals.copyLink"),show:!1,position:3,action:()=>{nl(this.generalHref)}},copyImageLink:{label:this.$t("globals.copyImageLink"),show:!1,position:4,action:()=>{nl(this.imgSrc)}},copyDeezerLink:{label:this.$t("globals.copyDeezerLink"),show:!1,position:5,action:()=>{nl(this.deezerHref)}},paste:{label:this.$t("globals.paste"),show:!1,position:6,action:()=>{clipboard in navigator?navigator.clipboard.readText().then(e=>{document.execCommand("insertText",void 0,e)}):document.execCommand("paste")}}};let t=Object.values(e).length+1;return rl.forEach((a,n)=>{e[a.objName]={label:""+this.$t("globals.download",{thing:a.label}),show:!1,position:t+n,action:Jo.bind(null,this.deezerHref,a.value)}}),e},sortedOptions(){return Object.values(this.options).sort((e,t)=>e.position{this.menuOpen=!1,this.options.copyLink.show=!1,this.options.copyDeezerLink.show=!1,this.options.copyImageLink.show=!1,rl.forEach(e=>{this.options[e.objName].show=!1})}).catch(e=>{console.error(e)})},positionMenu(e,t){this.xPos=e+"px",this.yPos=t+"px",this.$nextTick().then(()=>{const{innerHeight:a,innerWidth:n}=window,i=e+this.$refs.contextMenu.getBoundingClientRect().width,r=t+this.$refs.contextMenu.getBoundingClientRect().height;if(i>n){const t=i-n+15;this.xPos=e-t+"px"}if(r>a){const e=r-a+15;this.yPos=t-e+"px"}})},showDeezerOptions(){this.options.copyDeezerLink.show=!0,rl.forEach(e=>{this.options[e.objName].show=!0})}}};var ol=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.menuOpen,expression:"menuOpen"}],ref:"contextMenu",staticClass:"context-menu",style:{top:e.yPos,left:e.xPos}},e._l(e.sortedOptions,(function(t){return a("button",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"option.show"}],key:t.label,staticClass:"menu-option",on:{click:function(e){return e.preventDefault(),t.action(e)}}},[a("span",{staticClass:"menu-option__text"},[e._v(e._s(t.label))])])})),0)};ol._withStripped=!0;var ll=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\globals\\TheContextMenu.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:ol,staticRenderFns:[]},(function(e){e&&e("data-v-5bd3f801_0",{source:".context-menu[data-v-5bd3f801] {\n position: absolute;\n top: 0;\n left: 0;\n min-width: 100px;\n border-radius: 7px;\n background: var(--foreground-inverted);\n box-shadow: 4px 10px 18px 0px rgba(0, 0, 0, 0.15);\n overflow: hidden;\n z-index: 10000;\n}\n.menu-option[data-v-5bd3f801] {\n display: flex;\n align-items: center;\n width: 100%;\n height: 40px;\n padding-left: 10px;\n padding-right: 10px;\n color: var(--foreground);\n cursor: pointer;\n}\n.menu-option[data-v-5bd3f801]:hover {\n background: var(--table-highlight);\n filter: brightness(150%);\n}\n.menu-option__text[data-v-5bd3f801] {\n text-transform: capitalize;\n}\nbutton[data-v-5bd3f801] {\n color: var(--accent-text);\n color: unset;\n background-color: var(--accent-color);\n background-color: unset;\n min-width: unset;\n position: unset;\n border: unset;\n border-radius: unset;\n font-family: unset;\n font-weight: unset;\n font-size: unset;\n padding: unset;\n margin-right: unset;\n height: unset;\n text-transform: unset;\n cursor: unset;\n transition: unset;\n}\nbutton[data-v-5bd3f801]:focus {\n outline: none;\n}\nbutton[disabled][data-v-5bd3f801] {\n background-color: unset;\n color: unset;\n opacity: unset;\n}\nbutton.selective[data-v-5bd3f801] {\n background-color: unset;\n color: unset;\n}\nbutton.selective.active[data-v-5bd3f801] {\n background-color: unset;\n color: unset;\n}\nbutton.with_icon[data-v-5bd3f801] {\n display: unset;\n align-items: unset;\n}\nbutton.with_icon i[data-v-5bd3f801] {\n margin-left: unset;\n}\nbutton[data-v-5bd3f801]:active {\n background-color: unset;\n transform: unset;\n}\nbutton[data-v-5bd3f801]:hover {\n background: unset;\n border: unset;\n}\n\n/*# sourceMappingURL=TheContextMenu.vue.map */",map:{version:3,sources:["C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\globals\\TheContextMenu.vue","TheContextMenu.vue"],names:[],mappings:"AA4NA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,gBAAA;EACA,kBAAA;EACA,sCAAA;EACA,iDAAA;EACA,gBAAA;EACA,cAAA;AAAA;AAGA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,mBAAA;EACA,wBAAA;EACA,eAAA;AAAA;AARA;IAWA,kCAAA;IACA,wBAAA;AAAA;AAGA;IACA,0BAAA;AAAA;AAKA;EACA,yBAAA;EACA,YAAA;EACA,qCAAA;EACA,uBAAA;EACA,gBAAA;EACA,eAAA;EACA,aAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,gBAAA;EACA,cAAA;EACA,mBAAA;EACA,aAAA;EACA,qBAAA;EACA,aAAA;EACA,iBAAA;AAAA;AAjBA;IAoBA,aAAA;AAAA;AApBA;IAwBA,uBAAA;IACA,YAAA;IACA,cAAA;AAAA;AA1BA;IA8BA,uBAAA;IACA,YAAA;AAAA;AA/BA;MAkCA,uBAAA;MACA,YAAA;AAAA;AAnCA;IAwCA,cAAA;IACA,kBAAA;AAAA;AAzCA;MA4CA,kBAAA;AAAA;AA5CA;IAiDA,uBAAA;IACA,gBAAA;AAAA;AAlDA;IAsDA,iBAAA;IACA,aAAA;AAAA;;AChPA,6CAA6C",file:"TheContextMenu.vue",sourcesContent:[null,".context-menu {\n position: absolute;\n top: 0;\n left: 0;\n min-width: 100px;\n border-radius: 7px;\n background: var(--foreground-inverted);\n box-shadow: 4px 10px 18px 0px rgba(0, 0, 0, 0.15);\n overflow: hidden;\n z-index: 10000; }\n\n.menu-option {\n display: flex;\n align-items: center;\n width: 100%;\n height: 40px;\n padding-left: 10px;\n padding-right: 10px;\n color: var(--foreground);\n cursor: pointer; }\n .menu-option:hover {\n background: var(--table-highlight);\n filter: brightness(150%); }\n .menu-option__text {\n text-transform: capitalize; }\n\nbutton {\n color: var(--accent-text);\n color: unset;\n background-color: var(--accent-color);\n background-color: unset;\n min-width: unset;\n position: unset;\n border: unset;\n border-radius: unset;\n font-family: unset;\n font-weight: unset;\n font-size: unset;\n padding: unset;\n margin-right: unset;\n height: unset;\n text-transform: unset;\n cursor: unset;\n transition: unset; }\n button:focus {\n outline: none; }\n button[disabled] {\n background-color: unset;\n color: unset;\n opacity: unset; }\n button.selective {\n background-color: unset;\n color: unset; }\n button.selective.active {\n background-color: unset;\n color: unset; }\n button.with_icon {\n display: unset;\n align-items: unset; }\n button.with_icon i {\n margin-left: unset; }\n button:active {\n background-color: unset;\n transform: unset; }\n button:hover {\n background: unset;\n border: unset; }\n\n/*# sourceMappingURL=TheContextMenu.vue.map */"]},media:void 0})}),sl,"data-v-5bd3f801",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}})),cl=new ka;async function dl(e,t,{duration:a=1e3,easing:n=ul,interval:i=13}={}){const r=e.volume,s=t-r;if(!(s&&a&&n&&i))return e.volume=t,Promise.resolve();const o=Math.floor(a/i);let l=1;return new Promise(t=>{const a=setInterval(()=>{e.volume=r+n(l/o)*s,++l===o&&(clearInterval(a),t())},i)})}function ul(e){return.5-Math.cos(e*Math.PI)/2}const pl={data:()=>({previewStopped:!1}),mounted(){this.$refs.preview.volume=1,cl.$on("trackPreview:playPausePreview",this.playPausePreview),cl.$on("trackPreview:stopStackedTabsPreview",this.stopStackedTabsPreview),cl.$on("trackPreview:previewMouseEnter",this.previewMouseEnter),cl.$on("trackPreview:previewMouseLeave",this.previewMouseLeave)},methods:{async onCanPlay(){await this.$refs.preview.play(),this.previewStopped=!1,await dl(this.$refs.preview,window.vol.preview_max_volume/100,{duration:500})},async onTimeUpdate(){if(isNaN(this.$refs.preview.duration))return;let e=this.$refs.preview.duration;isFinite(e)||(e=30),e-this.$refs.preview.currentTime>=1||this.previewStopped||(await dl(this.$refs.preview,0,{duration:800}),this.previewStopped=!0,document.querySelectorAll("a[playing] > .preview_controls").forEach(e=>{e.style.opacity=0}),document.querySelectorAll("*").forEach(e=>{e.removeAttribute("playing")}),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(e=>{e.textContent="play_arrow"}))},async playPausePreview(e){e.preventDefault(),e.stopPropagation();const{currentTarget:t}=event;var a="I"==t.tagName?t:t.querySelector("i");t.hasAttribute("playing")?this.$refs.preview.paused?(this.$refs.preview.play(),this.previewStopped=!1,a.innerText="pause",await dl(this.$refs.preview,window.vol.preview_max_volume/100,{duration:500})):(this.previewStopped=!0,a.innerText="play_arrow",await dl(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause()):(document.querySelectorAll("*").forEach(e=>{e.removeAttribute("playing")}),t.setAttribute("playing",!0),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(e=>{e.textContent="play_arrow"}),document.querySelectorAll(".preview_controls").forEach(e=>{e.style.opacity=0}),a.innerText="pause",a.style.opacity=1,this.previewStopped=!1,await dl(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause(),document.getElementById("preview-track_source").src=t.getAttribute("data-preview"),this.$refs.preview.load())},async stopStackedTabsPreview(){let e=Array.prototype.slice.call(document.querySelectorAll(".preview_playlist_controls[playing]"));0!==e.length&&(await dl(this.$refs.preview,0,{duration:800}),this.previewStopped=!0,e.forEach(e=>{e.removeAttribute("playing"),e.innerText="play_arrow"}))},previewMouseEnter(e){e.currentTarget.style.opacity=1},previewMouseLeave(e){const{currentTarget:t}=e,a=t.parentElement.hasAttribute("playing");(a&&this.previewStopped||!a)&&(t.style.opacity=0)}}};var hl=function(){var e=this.$createElement,t=this._self._c||e;return t("audio",{ref:"preview",attrs:{id:"preview-track"},on:{canplay:this.onCanPlay,timeupdate:this.onTimeUpdate}},[t("source",{attrs:{id:"preview-track_source",src:"",type:"audio/mpeg"}})])};hl._withStripped=!0;var ml=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\globals\\TheTrackPreview.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:hl,staticRenderFns:[]},(function(e){e&&e("data-v-00e70a4e_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:"TheTrackPreview.vue"},media:void 0})}),pl,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));const gl={data:()=>({open:!1,url:""}),mounted(){this.$root.$on("QualityModal:open",this.openModal),this.$refs.modal.addEventListener("webkitAnimationEnd",this.handleAnimationEnd)},methods:{tryToDownloadTrack(e){const{target:t}=e;this.$refs.modal.classList.add("animated","fadeOut"),t.matches(".quality-button")&&Zo.sendAddToQueue(this.url,t.dataset.qualityValue)},openModal(e){this.url=e,this.open=!0,this.$refs.modal.classList.add("animated","fadeIn")},handleAnimationEnd(e){const{animationName:t}=e;this.$refs.modal.classList.remove("animated",t),"fadeIn"!==t&&(this.open=!1)}}};var fl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],ref:"modal",staticClass:"smallmodal",attrs:{id:"modal_quality"},on:{click:function(t){return e.tryToDownloadTrack(t)}}},[a("div",{staticClass:"smallmodal-content"},[a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"9"}},[e._v(e._s(e.$t("globals.download",{thing:"FLAC"})))]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"3"}},[e._v(e._s(e.$t("globals.download",{thing:"MP3 320kbps"})))]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"1"}},[e._v(e._s(e.$t("globals.download",{thing:"MP3 128kbps"})))]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"15"}},[e._v("\n\t\t\t"+e._s(e.$t("globals.download",{thing:"360 Reality Audio [HQ]"}))+"\n\t\t")]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"14"}},[e._v("\n\t\t\t"+e._s(e.$t("globals.download",{thing:"360 Reality Audio [MQ]"}))+"\n\t\t")]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"13"}},[e._v("\n\t\t\t"+e._s(e.$t("globals.download",{thing:"360 Reality Audio [LQ]"}))+"\n\t\t")])])])};fl._withStripped=!0;var vl=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\globals\\TheQualityModal.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:fl,staticRenderFns:[]},(function(e){e&&e("data-v-19da7f1c_0",{source:"\n.smallmodal {\r\n\tposition: fixed;\r\n\tz-index: 1250;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\toverflow: auto;\r\n\tbackground-color: hsla(0, 0%, 0%, 0.4);\r\n\tanimation-duration: 0.3s;\n}\n.smallmodal-content {\r\n\tbackground-color: transparent;\r\n\tmargin: auto;\r\n\twidth: var(--modal-content-width);\r\n\tposition: relative;\r\n\ttop: 50%;\r\n\ttransform: translateY(-50%);\n}\n.smallmodal-content button {\r\n\twidth: 100%;\r\n\tmargin-bottom: 8px;\n}\r\n",map:{version:3,sources:["C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui/C:\\Users\\Roberto\\Dev\\repos\\deemix-pyweb\\webui\\src\\components\\globals\\TheQualityModal.vue"],names:[],mappings:";AAmBA;CACA,eAAA;CACA,aAAA;CACA,OAAA;CACA,MAAA;CACA,WAAA;CACA,YAAA;CACA,cAAA;CACA,sCAAA;CACA,wBAAA;AACA;AAEA;CACA,6BAAA;CACA,YAAA;CACA,iCAAA;CACA,kBAAA;CACA,QAAA;CACA,2BAAA;AACA;AAEA;CACA,WAAA;CACA,kBAAA;AACA",file:"TheQualityModal.vue",sourcesContent:["\r\n\r\n diff --git a/src/components/globals/ConfirmModal.vue b/src/components/globals/ConfirmModal.vue new file mode 100644 index 0000000..9b455a6 --- /dev/null +++ b/src/components/globals/ConfirmModal.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/styles/scss/globals/_globals.scss b/src/styles/scss/globals/_globals.scss index 82623f7..f718bc1 100644 --- a/src/styles/scss/globals/_globals.scss +++ b/src/styles/scss/globals/_globals.scss @@ -93,6 +93,22 @@ button { opacity: 0.75; } + &.btn-green { + background-color: green; + + &:active { + background-color: green; + } + } + + &.btn-red { + background-color: red; + + &:active { + background-color: red; + } + } + &.selective { background-color: var(--main-background); color: var(--foreground); @@ -128,7 +144,7 @@ button { transform: scale(0.98); } - &:hover { + &:not(.no-hover):hover { background: none; border: 1px solid var(--accent-color); }