diff --git a/dist/applemusic.user.js b/dist/applemusic.user.js index 4c087ca..d05e890 100644 --- a/dist/applemusic.user.js +++ b/dist/applemusic.user.js @@ -52,43 +52,42 @@ * Handsontable Filters */.htFiltersConditionsMenu:not(.htGhostTable){display:none;position:absolute;z-index:1070}.htFiltersConditionsMenu .ht_clone_bottom,.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.htFiltersConditionsMenu .ht_clone_inline_start,.htFiltersConditionsMenu .ht_clone_top,.htFiltersConditionsMenu .ht_clone_top_inline_start_corner{display:none}.htFiltersConditionsMenu table.htCore{border-color:#bbb;border-style:solid;border-width:1px 2px 2px 1px}.htFiltersConditionsMenu .wtBorder{visibility:hidden}.htFiltersConditionsMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htFiltersConditionsMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htFiltersConditionsMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htFiltersConditionsMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htFiltersConditionsMenu table tbody tr td.current,.htFiltersConditionsMenu table tbody tr td.zeroclipboard-is-hover{background:#e9e9e9}.htFiltersConditionsMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;height:0;padding:0}.htFiltersConditionsMenu table tbody tr td.htDisabled{color:#999}.htFiltersConditionsMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htFiltersConditionsMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:10px}.htFiltersConditionsMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute}.htFiltersConditionsMenu .ht_master .wtHolder{overflow:hidden}.handsontable .htMenuFiltering{border-bottom:1px dotted #ccc;height:135px;overflow:hidden}.handsontable .ht_master table td.htCustomMenuRenderer{background-color:#fff;cursor:auto}.handsontable .htFiltersMenuLabel{font-size:.75em}.handsontable .htFiltersMenuActionBar{padding-bottom:3px;padding-top:10px;text-align:center}.handsontable .htFiltersMenuCondition.border{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuCondition .htUIInput{padding:0 0 5px}.handsontable .htFiltersMenuValue{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch{padding:0}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{box-sizing:border-box;font-family:inherit;font-size:.75em;padding:4px;width:100%}.htUIMultipleSelect .ht_master .wtHolder{overflow-y:scroll}.handsontable .htFiltersActive .changeType{background-color:#d2e0d9;border:1px solid #509272;color:#18804e}.handsontable .htUISelectAll{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUISelectAll{margin-left:10px;margin-right:0}.handsontable .htUIClearAll,.handsontable .htUISelectAll{display:inline-block}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{font-size:.75em}.handsontable .htUISelectionControls{text-align:right}[dir=rtl].handsontable .htUISelectionControls{text-align:left}.handsontable .htCheckboxRendererInput{height:1em;margin:0 5px 0 0;vertical-align:middle}[dir=rtl].handsontable .htCheckboxRendererInput{margin-left:5px;margin-right:0}.handsontable .htUIInput{padding:3px 0 7px;position:relative;text-align:center}.handsontable .htUIInput input{border:1px solid #d2d1d1;border-radius:2px}.handsontable .htUIInput input:focus{outline:0}.handsontable .htUIInputIcon{position:absolute}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButton input{background-color:#eee;color:#000;cursor:pointer;font-family:inherit;font-size:.75em;font-weight:700;height:19px;min-width:64px}.handsontable .htUIInput.htUIButton input:hover{border-color:#b9b9b9}.handsontable .htUIInput.htUIButtonOK{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUIInput.htUIButtonOK{margin-left:10px;margin-right:0}.handsontable .htUIInput.htUIButtonOK input{background-color:#0f9d58;border-color:#18804e;color:#fff}.handsontable .htUIInput.htUIButtonOK input:hover{border-color:#1a6f46}.handsontable .htUISelect{cursor:pointer;margin-bottom:7px;position:relative}.handsontable .htUISelectCaption{background-color:#e8e8e8;border:1px solid #d2d1d1;border-radius:2px;font-family:inherit;font-size:.75em;font-weight:700;overflow:hidden;padding:3px 20px 3px 10px;text-overflow:ellipsis;white-space:nowrap}.handsontable .htUISelectCaption:hover{background-color:#e8e8e8;border:1px solid #b9b9b9}.handsontable .htUISelectDropdown:after{content:"▲";font-size:7px;position:absolute;right:10px;top:0}.handsontable .htUISelectDropdown:before{content:"▼";font-size:7px;position:absolute;right:10px;top:8px}.handsontable .htUIMultipleSelect .handsontable .htCore{border:none}.handsontable .htUIMultipleSelect .handsontable .htCore td:hover{background-color:#f5f5f5}.handsontable .htUIMultipleSelectSearch input{border:1px solid #d2d1d1;border-radius:2px;padding:3px}.handsontable .htUIRadio{display:inline-block;height:100%;margin-left:0;margin-right:5px}[dir=rtl].handsontable .htUIRadio{margin-left:5px;margin-right:0}.handsontable .htUIRadio:last-child{margin-right:0}.handsontable .htUIRadio>input[type=radio]{margin-left:0;margin-right:.5ex}[dir=rtl].handsontable .htUIRadio>input[type=radio]{margin-left:.5ex;margin-right:0}.handsontable .htUIRadio label{vertical-align:middle}.handsontable .htFiltersMenuOperators{padding-bottom:5px}.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after{color:#bbb;font-size:5pt;position:absolute;top:50%;transform:translateY(-50%)}.handsontable th.afterHiddenColumn{position:relative}.handsontable th.beforeHiddenColumn:after{content:"◀";right:1px}[dir=rtl].handsontable th.beforeHiddenColumn:after{content:"▶";left:1px;right:auto}.handsontable th.afterHiddenColumn:before{content:"▶";left:1px}[dir=rtl].handsontable th.afterHiddenColumn:before{content:"◀";left:auto;right:1px}/*! * Handsontable HiddenRows - */.handsontable th.afterHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:#bbb;font-size:6pt;left:2px;line-height:6pt;position:absolute}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.beforeHiddenRow:before{bottom:2px;content:"▲"}.handsontable th.afterHiddenRow:after{content:"▼";top:2px}.handsontable.ht__selection--rows tbody th.afterHiddenRow.ht__highlight:after,.handsontable.ht__selection--rows tbody th.beforeHiddenRow.ht__highlight:before{color:#eee}.handsontable td.afterHiddenRow.firstVisibleRow,.handsontable th.afterHiddenRow.firstVisibleRow{border-top:1px solid #ccc}.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline{background:#757575;margin-inline-end:0;margin-inline-start:-1px;top:0;width:2px;z-index:205}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:205}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.1}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.2}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.27}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.41}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.47}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.54}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.58}.handsontable span.colHeader.columnSorting:after{font-size:8px;height:8px;left:unset;line-height:1.1;margin-top:-2px;padding-left:5px;padding-right:unset;position:absolute;right:-15px;text-decoration:underline;top:50%}[dir=rtl].handsontable span.colHeader.columnSorting:after{left:-15px;padding-left:unset;padding-right:5px;right:unset}.handsontable span.colHeader.columnSorting:after{text-decoration:none}.handsontable span.colHeader.columnSorting[class*=" sort-"]:after,.handsontable span.colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable span.colHeader.columnSorting.sort-1:after{content:"1"}.handsontable span.colHeader.columnSorting.sort-2:after{content:"2"}.handsontable span.colHeader.columnSorting.sort-3:after{content:"3"}.handsontable span.colHeader.columnSorting.sort-4:after{content:"4"}.handsontable span.colHeader.columnSorting.sort-5:after{content:"5"}.handsontable span.colHeader.columnSorting.sort-6:after{content:"6"}.handsontable span.colHeader.columnSorting.sort-7:after{content:"7"}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:5px}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable th.ht_nestingLevels{padding-left:7px;text-align:left}[dir=rtl].handsontable th.ht_nestingLevels{padding-right:7px;text-align:right}.handsontable th div.ht_nestingLevels{display:inline-block;left:11px;position:absolute;right:unset}[dir=rtl].handsontable th div.ht_nestingLevels{left:unset;right:11px}.handsontable.innerBorderInlineStart th div.ht_nestingLevels,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:unset;right:10px}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingLevels,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:10px;right:unset}.handsontable th span.ht_nestingLevel{display:inline-block}.handsontable th span.ht_nestingLevel_empty{display:inline-block;float:left;height:1px;width:10px}[dir=rtl].handsontable th span.ht_nestingLevel_empty{float:right}.handsontable th span.ht_nestingLevel:after{bottom:3px;content:"┐";display:inline-block;font-size:9px;position:relative}.handsontable th div.ht_nestingButton{cursor:pointer;display:inline-block;left:unset;position:absolute;right:-2px}[dir=rtl].handsontable th div.ht_nestingButton{left:-2px;right:unset}.handsontable th div.ht_nestingButton.ht_nestingExpand:after{content:"+"}.handsontable th div.ht_nestingButton.ht_nestingCollapse:after{content:"-"}.handsontable.innerBorderInlineStart th div.ht_nestingButton,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:unset;right:0}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingButton,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:0;right:unset} -`;function Qt(e){const t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Ul(e,t){return new Promise(r=>{const n=t==null?void 0:t.waitSelector,i=(t==null?void 0:t.timeout)??3e3;if(i!==0){const s=document.querySelector(e);if(s){r(s);return}}const o=setTimeout(()=>{i!==0&&(a.disconnect(),r(null))},i),a=new MutationObserver(s=>{for(const l of s)for(const u of Array.from(l.addedNodes))if(u instanceof Element&&u.matches(n??e)){i!==0&&(a.disconnect(),clearTimeout(o)),r(n?document.querySelector(e):u);return}});a.observe(document.body,{childList:!0,subtree:!0})})}const zA=` + */.handsontable th.afterHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:#bbb;font-size:6pt;left:2px;line-height:6pt;position:absolute}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.beforeHiddenRow:before{bottom:2px;content:"▲"}.handsontable th.afterHiddenRow:after{content:"▼";top:2px}.handsontable.ht__selection--rows tbody th.afterHiddenRow.ht__highlight:after,.handsontable.ht__selection--rows tbody th.beforeHiddenRow.ht__highlight:before{color:#eee}.handsontable td.afterHiddenRow.firstVisibleRow,.handsontable th.afterHiddenRow.firstVisibleRow{border-top:1px solid #ccc}.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline{background:#757575;margin-inline-end:0;margin-inline-start:-1px;top:0;width:2px;z-index:205}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:#34343440;display:none;pointer-events:none;z-index:205}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:205}.handsontable .ht__manualRowMove--backlight{background:#343434;background:#34343440;display:none;pointer-events:none;z-index:205}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.1}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.2}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.27}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.41}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.47}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.54}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.58}.handsontable span.colHeader.columnSorting:after{font-size:8px;height:8px;left:unset;line-height:1.1;margin-top:-2px;padding-left:5px;padding-right:unset;position:absolute;right:-15px;text-decoration:underline;top:50%}[dir=rtl].handsontable span.colHeader.columnSorting:after{left:-15px;padding-left:unset;padding-right:5px;right:unset}.handsontable span.colHeader.columnSorting:after{text-decoration:none}.handsontable span.colHeader.columnSorting[class*=" sort-"]:after,.handsontable span.colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable span.colHeader.columnSorting.sort-1:after{content:"1"}.handsontable span.colHeader.columnSorting.sort-2:after{content:"2"}.handsontable span.colHeader.columnSorting.sort-3:after{content:"3"}.handsontable span.colHeader.columnSorting.sort-4:after{content:"4"}.handsontable span.colHeader.columnSorting.sort-5:after{content:"5"}.handsontable span.colHeader.columnSorting.sort-6:after{content:"6"}.handsontable span.colHeader.columnSorting.sort-7:after{content:"7"}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:5px}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable th.ht_nestingLevels{padding-left:7px;text-align:left}[dir=rtl].handsontable th.ht_nestingLevels{padding-right:7px;text-align:right}.handsontable th div.ht_nestingLevels{display:inline-block;left:11px;position:absolute;right:unset}[dir=rtl].handsontable th div.ht_nestingLevels{left:unset;right:11px}.handsontable.innerBorderInlineStart th div.ht_nestingLevels,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:unset;right:10px}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingLevels,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:10px;right:unset}.handsontable th span.ht_nestingLevel{display:inline-block}.handsontable th span.ht_nestingLevel_empty{display:inline-block;float:left;height:1px;width:10px}[dir=rtl].handsontable th span.ht_nestingLevel_empty{float:right}.handsontable th span.ht_nestingLevel:after{bottom:3px;content:"┐";display:inline-block;font-size:9px;position:relative}.handsontable th div.ht_nestingButton{cursor:pointer;display:inline-block;left:unset;position:absolute;right:-2px}[dir=rtl].handsontable th div.ht_nestingButton{left:-2px;right:unset}.handsontable th div.ht_nestingButton.ht_nestingExpand:after{content:"+"}.handsontable th div.ht_nestingButton.ht_nestingCollapse:after{content:"-"}.handsontable.innerBorderInlineStart th div.ht_nestingButton,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:unset;right:0}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingButton,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:0;right:unset}`;function Qt(e){const t=document.createElement("template");return t.innerHTML=e,t.content.firstElementChild}function Ul(e,t){return new Promise(r=>{const n=t==null?void 0:t.waitSelector,i=(t==null?void 0:t.timeout)??3e3;if(i!==0){const s=document.querySelector(e);if(s){r(s);return}}const o=setTimeout(()=>{i!==0&&(a.disconnect(),r(null))},i),a=new MutationObserver(s=>{for(const l of s)for(const u of Array.from(l.addedNodes))if(u instanceof Element&&u.matches(n??e)){i!==0&&(a.disconnect(),clearTimeout(o)),r(n?document.querySelector(e):u);return}});a.observe(document.body,{childList:!0,subtree:!0})})}const VA=` -`,UA=` +`,zA=` -`,GA=` +`,UA=` -`,YA=` +`,GA=` -`,KA=` +`,YA=` -`,ZA=` +`,KA=` -`,Ri=(unsafeWindow==null?void 0:unsafeWindow.wrappedJSObject)??unsafeWindow,qA=typeof cloneInto=="function"?cloneInto:e=>e,XA=typeof exportFunction=="function"?exportFunction:e=>e;function QA(e){return qA(e,Ri,{cloneFunctions:!0,wrapReflectors:!0})}function JA(e){return XA(e,Ri)}function ex(e,t){return t??(t=Ri),function(...r){return e.call(t,...QA(r))}}const qf={},tx=ex(Ri.history.pushState,Ri.history);Ri.history.pushState=JA(rx);function rx(e,t,r){tx(e,t,r),vg()}addEventListener("popstate",()=>{vg()});function vg(){for(const e of Object.values(qf)){const t=e.pattern.test(location.pathname)?e.onCallbacks:e.offCallbacks;for(const r of t)r()}}function mg(e){const t=new RegExp(`^/${e.replaceAll("/","\\/")}$`);let r=qf[e];return r||(r={pattern:t,onCallbacks:[],offCallbacks:[]},qf[e]=r,r)}function nx(e,t){const r=mg(e),n=r.pattern.test(location.pathname);r.onCallbacks.push(t),n&&t()}function ix(e,t){const r=mg(e),n=r.pattern.test(location.pathname);r.offCallbacks.push(t),n||t()}const yg="[a-z]{2}/album/.+/.+";function Ei(e){nx(yg,e)}function Gl(e){ix(yg,e)}const pg=new Map;function Ln(e,t){return new Promise((r,n)=>{const i=pg.get(e);if(i){r(i.clone());return}GM.xmlHttpRequest({url:e,method:(t==null?void 0:t.method)??"GET",headers:Object.fromEntries(new Headers(t==null?void 0:t.headers)),responseType:"blob",onload(o){if((o.status<200||o.status>299)&&o.status!==404){n(new Error(`Fetching "${e}" responded with an erroneous status code.`));return}const a=o.responseHeaders.split(`\r -`).slice(0,-1).map(l=>l.split(": ")),s=new Response(o.response,{headers:Object.fromEntries(a),status:o.status,statusText:o.statusText});Object.defineProperty(s,"url",{value:e}),pg.set(e,s.clone()),r(s)},onerror(){n(new Error("Network request errored."))},ontimeout(){n(new Error("Network request timed out."))}})})}function ox(){return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=",2)))}function ua(e){return new Promise(t=>{setTimeout(t,e)})}function ax(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.download=t,n.href=r,document.body.appendChild(n),n.click(),URL.revokeObjectURL(r)}function sx(e){return new Promise(t=>{const r=setInterval(()=>{const n=e();n!=null&&(clearInterval(r),t(n))},100)})}let Yl="";async function Kl(){if(Yl)return Yl;const e=document.querySelector("script[type='module']");if(!e)throw new Error("Failed to find script with auth token.");const n=(await(await Ln(e.src)).text()).match(new RegExp('(?<=")eyJhbGciOiJ.+?(?=")'));if(!n)throw new Error("Failed to find auth token from script.");return Yl=n[0],Yl}function gg(){return location.pathname.split("/")[1]}function bg(){return ox().itua||null}async function wg(){return(await(await Ln("https://api.music.apple.com/v1/storefronts",{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Kl()}`}})).json()).data}function Xf(){return location.pathname.split("/")[4]}async function ca(e,t){t??(t=gg());const r=await Ln(`https://amp-api.music.apple.com/v1/catalog/${t}/albums/${e}?extend=extendedAssetUrls`,{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Kl()}`}});return r.status===404?null:(await r.json()).data[0]}Ei(async()=>{const e=await ca(Xf());if(!e)return;const t=await Ul(".headings__metadata-bottom");if(!t)return;const r=e.attributes.audioTraits;e.attributes.isMasteredForItunes&&r.push("adm");const n=Qt('

');r.includes("lossy-stereo")&&n.insertAdjacentHTML("beforeend",zA),r.includes("lossless")&&n.insertAdjacentHTML("beforeend",KA),r.includes("hi-res-lossless")&&n.insertAdjacentHTML("beforeend",YA),r.includes("atmos")&&n.insertAdjacentHTML("beforeend",GA),r.includes("adm")&&n.insertAdjacentHTML("beforeend",UA),r.includes("spatial")&&n.insertAdjacentHTML("beforeend",ZA),t.after(n)});const lx=` +`,Ri=(unsafeWindow==null?void 0:unsafeWindow.wrappedJSObject)??unsafeWindow,ZA=typeof cloneInto=="function"?cloneInto:e=>e,qA=typeof exportFunction=="function"?exportFunction:e=>e;function XA(e){return ZA(e,Ri,{cloneFunctions:!0,wrapReflectors:!0})}function QA(e){return qA(e,Ri)}function JA(e,t){return t??(t=Ri),function(...r){return e.call(t,...XA(r))}}const qf={},ex=JA(Ri.history.pushState,Ri.history);Ri.history.pushState=QA(tx);function tx(e,t,r){ex(e,t,r),vg()}addEventListener("popstate",()=>{vg()});function vg(){for(const e of Object.values(qf)){const t=e.pattern.test(location.pathname)?e.onCallbacks:e.offCallbacks;for(const r of t)r()}}function mg(e){const t=new RegExp(`^/${e.replaceAll("/","\\/")}$`);let r=qf[e];return r||(r={pattern:t,onCallbacks:[],offCallbacks:[]},qf[e]=r,r)}function rx(e,t){const r=mg(e),n=r.pattern.test(location.pathname);r.onCallbacks.push(t),n&&t()}function nx(e,t){const r=mg(e),n=r.pattern.test(location.pathname);r.offCallbacks.push(t),n||t()}const yg="[a-z]{2}/album/.+/.+";function Ei(e){rx(yg,e)}function Gl(e){nx(yg,e)}const pg=new Map;function Ln(e,t){return new Promise((r,n)=>{const i=pg.get(e);if(i){r(i.clone());return}GM.xmlHttpRequest({url:e,method:(t==null?void 0:t.method)??"GET",headers:Object.fromEntries(new Headers(t==null?void 0:t.headers)),responseType:"blob",onload(o){if((o.status<200||o.status>299)&&o.status!==404){n(new Error(`Fetching "${e}" responded with an erroneous status code.`));return}const a=o.responseHeaders.split(`\r +`).slice(0,-1).map(l=>l.split(": ")),s=new Response(o.response,{headers:Object.fromEntries(a),status:o.status,statusText:o.statusText});Object.defineProperty(s,"url",{value:e}),pg.set(e,s.clone()),r(s)},onerror(){n(new Error("Network request errored."))},ontimeout(){n(new Error("Network request timed out."))}})})}function ix(){return Object.fromEntries(document.cookie.split("; ").map(e=>e.split("=",2)))}function ua(e){return new Promise(t=>{setTimeout(t,e)})}function ox(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.download=t,n.href=r,document.body.appendChild(n),n.click(),URL.revokeObjectURL(r)}function ax(e){return new Promise(t=>{const r=setInterval(()=>{const n=e();n!=null&&(clearInterval(r),t(n))},100)})}let Yl="";async function Kl(){if(Yl)return Yl;const e=document.querySelector("script[type='module']");if(!e)throw new Error("Failed to find script with auth token.");const n=(await(await Ln(e.src)).text()).match(new RegExp('(?<=")eyJhbGciOiJ.+?(?=")'));if(!n)throw new Error("Failed to find auth token from script.");return Yl=n[0],Yl}function gg(){return location.pathname.split("/")[1]}function bg(){return ix().itua||null}async function wg(){return(await(await Ln("https://api.music.apple.com/v1/storefronts",{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Kl()}`}})).json()).data}function Xf(){return location.pathname.split("/")[4]}async function ca(e,t){t??(t=gg());const r=await Ln(`https://amp-api.music.apple.com/v1/catalog/${t}/albums/${e}?extend=extendedAssetUrls`,{headers:{Origin:"https://music.apple.com",Referer:"https://music.apple.com/",Authorization:`Bearer ${await Kl()}`}});return r.status===404?null:(await r.json()).data[0]}Ei(async()=>{const e=await ca(Xf());if(!e)return;const t=await Ul(".headings__metadata-bottom");if(!t)return;const r=e.attributes.audioTraits;e.attributes.isMasteredForItunes&&r.push("adm");const n=Qt('

');r.includes("lossy-stereo")&&n.insertAdjacentHTML("beforeend",VA),r.includes("lossless")&&n.insertAdjacentHTML("beforeend",YA),r.includes("hi-res-lossless")&&n.insertAdjacentHTML("beforeend",GA),r.includes("atmos")&&n.insertAdjacentHTML("beforeend",UA),r.includes("adm")&&n.insertAdjacentHTML("beforeend",zA),r.includes("spatial")&&n.insertAdjacentHTML("beforeend",KA),t.after(n)});const sx=` -`;function ux(e,t){let r=document.querySelector(e);if(r)return Sg(r);try{t()}catch{console.error(`Could not create menu reference element for selector "${e}".`)}if(r=document.querySelector(e),r)return Sg(r);throw new Error(`Could not find menu reference element by selector "${e}".`)}function Sg(e){return e.addMenuItem=(t,r)=>{let n=e;for(let i=0;i<100;i++){const o=n.nextElementSibling;if(!o||Number(o.getAttribute("data-index"))>r)break;n=o}return t.setAttribute("data-index",r.toString()),n.after(t),t},e}function fa(e,t){return Qt(` +`;function lx(e,t){let r=document.querySelector(e);if(r)return Sg(r);try{t()}catch{console.error(`Could not create menu reference element for selector "${e}".`)}if(r=document.querySelector(e),r)return Sg(r);throw new Error(`Could not find menu reference element by selector "${e}".`)}function Sg(e){return e.addMenuItem=(t,r)=>{let n=e;for(let i=0;i<100;i++){const o=n.nextElementSibling;if(!o||Number(o.getAttribute("data-index"))>r)break;n=o}return t.setAttribute("data-index",r.toString()),n.after(t),t},e}function fa(e,t){return Qt(` - `)}async function ha(e,t){await Ul("amp-chrome-player"),ux("#ame-sidebar",()=>{const n=document.querySelector(".navigation__scrollable-container");n==null||n.appendChild(Qt(` + `)}async function ha(e,t){await Ul("amp-chrome-player"),lx("#ame-sidebar",()=>{const n=document.querySelector(".navigation__scrollable-container");n==null||n.appendChild(Qt(`