(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[814],{59713:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},67154:e=>{function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t{var r=n(37316);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},37316:e=>{e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}},91247:(e,t,n)=>{"use strict";n.d(t,{cx:()=>Ae});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(b,--y):0,m--,10===_&&(m=1,v--),_}function O(){return _=y2||I(_)>3?"":" "}function w(e,t){for(;--t&&O()&&!(_<48||_>102||_>57&&_<65||_>70&&_<97););return P(e,C()+(t<6&&32==A()&&32==O()))}function D(e){for(;O();)switch(_){case e:return y;case 34:case 39:34!==e&&39!==e&&D(_);break;case 40:41===e&&D(e);break;case 92:O()}return y}function M(e,t){for(;O()&&e+_!==57&&(e+_!==84||47!==A()););return"/*"+P(t,y-1)+"*"+o(47===e?e:O())}function x(e){for(;!I(A());)O();return P(e,y)}var U="-ms-",F="-moz-",z="-webkit-",B="comm",V="rule",j="decl",H="@keyframes";function G(e,t){for(var n="",r=f(e),i=0;i6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?K(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+U+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+U+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+U+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+U+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+U+e+e}return e}function W(e){return N(Y("",null,null,null,[""],e=R(e),0,[0],e))}function Y(e,t,n,r,i,a,s,u,d){for(var f=0,v=0,m=s,g=0,y=0,_=0,b=1,E=1,S=1,P=0,I="",R=i,N=a,D=r,U=I;E;)switch(_=P,P=O()){case 40:if(108!=_&&58==U.charCodeAt(m-1)){-1!=c(U+=l(k(P),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:U+=k(P);break;case 9:case 10:case 13:case 32:U+=L(_);break;case 92:U+=w(C()-1,7);continue;case 47:switch(A()){case 42:case 47:h($(M(O(),C()),t,n),d);break;default:U+="/"}break;case 123*b:u[f++]=p(U)*S;case 125*b:case 59:case 0:switch(P){case 0:case 125:E=0;case 59+v:y>0&&p(U)-m&&h(y>32?X(U+";",r,n,m-1):X(l(U," ","")+";",r,n,m-2),d);break;case 59:U+=";";default:if(h(D=J(U,t,n,f,v,i,u,I,R=[],N=[],m),a),123===P)if(0===v)Y(U,t,D,D,R,a,m,u,N);else switch(g){case 100:case 109:case 115:Y(e,D,D,r&&h(J(e,D,D,0,0,i,u,I,i,R=[],m),N),i,N,m,u,r?R:N);break;default:Y(U,D,D,D,[""],N,0,u,N)}}f=v=y=0,b=S=1,I=U="",m=s;break;case 58:m=1+p(U),y=_;default:if(b<1)if(123==P)--b;else if(125==P&&0==b++&&125==T())continue;switch(U+=o(P),P*b){case 38:S=v>0?1:(U+="\f",-1);break;case 44:u[f++]=(p(U)-1)*S,S=1;break;case 64:45===A()&&(U+=k(O())),g=A(),v=m=p(I=U+=x(C())),P++;break;case 45:45===_&&2==p(U)&&(b=0)}}return a}function J(e,t,n,r,o,a,c,u,p,h,v){for(var m=o-1,g=0===o?a:[""],y=f(g),_=0,b=0,S=0;_0?g[T]+" "+O:l(O,/&\f/g,g[T])))&&(p[S++]=A);return E(e,t,n,0===o?V:u,p,h,v)}function $(e,t,n){return E(e,t,n,B,o(_),d(e,2,-2),0)}function X(e,t,n,r){return E(e,t,n,j,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,i=0;r=i,i=A(),38===r&&12===i&&(t[n]=1),!I(i);)O();return P(e,y)},Z=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(I(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=Q(y-1,t,n);break;case 2:e[n]+=k(r);break;case 4:if(44===r){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=O());return e}(R(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var i=[],o=Z(t,i),a=n.props,s=0,l=0;s-1&&!e.return)switch(e.type){case j:e.return=K(e.value,e.length);break;case H:return G([S(e,{value:l(e.value,"@","@"+z)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return G([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return G([S(e,{props:[l(t,/:(plac\w+)/,":-webkit-input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,U+"input-$1")]})],r)}return""}))}}];const ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,a,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var ae=n(40351),se=n(67866),le=/[A-Z]|^ms/g,ce=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ue=function(e){return 45===e.charCodeAt(1)},de=function(e){return null!=e&&"boolean"!=typeof e},pe=(0,se.Z)((function(e){return ue(e)?e:e.replace(le,"-$&").toLowerCase()})),fe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ce,(function(e,t,n){return ve={name:t,styles:n,next:ve},t}))}return 1===ae.Z[e]||ue(e)||"number"!=typeof t||0===t?t:t+"px"};function he(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ve={name:n.name,styles:n.styles,next:ve},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ve={name:r.name,styles:r.styles,next:ve},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},40351:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},20361:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A});var r=n(67294),i=n.n(r);function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(){return a=Object.assign||function(e){for(var t=1;t{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case v:case l:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===g)}},90971:(e,t,n)=>{"use strict";e.exports=n(41309)},96333:(e,t,n)=>{"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>r})},62057:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>r})},62556:(e,t,n)=>{"use strict";n.d(t,{Re:()=>o,Zq:()=>a,kK:()=>i});var r=n(62057);function i(e){return e instanceof(0,r.Z)(e).Element||e instanceof Element}function o(e){return e instanceof(0,r.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},17824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(96333),i=n(62556);const o={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];(0,i.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,i.Re)(o)&&(0,r.Z)(o)&&(Object.assign(o.style,s),Object.keys(a).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]}},63086:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{fi:()=>me});var i=n(62057);function o(e){var t=(0,i.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var a=n(62556);var s=n(96333);function l(e){return(((0,a.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return r(l(e)).left+o(e).scrollLeft}function u(e){return(0,i.Z)(e).getComputedStyle(e)}function d(e){var t=u(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function p(e,t,n){void 0===n&&(n=!1);var u,p,f=(0,a.Re)(t),h=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),v=l(t),m=r(e,h),g={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(f||!f&&!n)&&(("body"!==(0,s.Z)(t)||d(v))&&(g=(u=t)!==(0,i.Z)(u)&&(0,a.Re)(u)?{scrollLeft:(p=u).scrollLeft,scrollTop:p.scrollTop}:o(u)),(0,a.Re)(t)?((y=r(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):v&&(y.x=c(v))),{x:m.left+g.scrollLeft-y.x,y:m.top+g.scrollTop-y.y,width:m.width,height:m.height}}function f(e){var t=r(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function h(e){return"html"===(0,s.Z)(e)?e:e.assignedSlot||e.parentNode||((0,a.Zq)(e)?e.host:null)||l(e)}function v(e){return["html","body","#document"].indexOf((0,s.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&d(e)?e:v(h(e))}function m(e,t){var n;void 0===t&&(t=[]);var r=v(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=(0,i.Z)(r),s=o?[a].concat(a.visualViewport||[],d(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(m(h(s)))}function g(e){return["table","td","th"].indexOf((0,s.Z)(e))>=0}function y(e){return(0,a.Re)(e)&&"fixed"!==u(e).position?e.offsetParent:null}function _(e){for(var t=(0,i.Z)(e),n=y(e);n&&g(n)&&"static"===u(n).position;)n=y(n);return n&&("html"===(0,s.Z)(n)||"body"===(0,s.Z)(n)&&"static"===u(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,a.Re)(e)&&"fixed"===u(e).position)return null;for(var n=h(e);(0,a.Re)(n)&&["html","body"].indexOf((0,s.Z)(n))<0;){var r=u(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var b="top",E="bottom",S="right",T="left",O="auto",A=[b,E,S,T],C="start",P="end",I="viewport",R="popper",N=A.reduce((function(e,t){return e.concat([t+"-"+C,t+"-"+P])}),[]),k=[].concat(A,[O]).reduce((function(e,t){return e.concat([t,t+"-"+C,t+"-"+P])}),[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function w(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var D={placement:"bottom",modifiers:[],strategy:"absolute"};function M(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function j(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?z(i):null,a=i?B(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case b:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case S:t={x:n.x+n.width,y:l};break;case T:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?V(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case C:t[c]=t[c]-(n[u]/2-r[u]/2);break;case P:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}const H={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=j({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var G=Math.max,q=Math.min,K=Math.round,W={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,h=!0===f?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:K(K(t*r)/r)||0,y:K(K(n*r)/r)||0}}(s):"function"==typeof f?f(s):s,v=h.x,m=void 0===v?0:v,g=h.y,y=void 0===g?0:g,O=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),C=T,I=b,R=window;if(p){var N=_(n),k="clientHeight",L="clientWidth";N===(0,i.Z)(n)&&"static"!==u(N=l(n)).position&&"absolute"===c&&(k="scrollHeight",L="scrollWidth"),N=N,o!==b&&(o!==T&&o!==S||a!==P)||(I=E,y-=N[k]-r.height,y*=d?1:-1),o!==T&&(o!==b&&o!==E||a!==P)||(C=S,m-=N[L]-r.width,m*=d?1:-1)}var w,D=Object.assign({position:c},p&&W);return d?Object.assign({},D,((w={})[I]=A?"0":"",w[C]=O?"0":"",w.transform=(R.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",w)):Object.assign({},D,((t={})[I]=A?y+"px":"",t[C]=O?m+"px":"",t.transform="",t))}const J={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:z(t.placement),variation:B(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Y(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var $=n(17824);const X={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=k.reduce((function(e,n){return e[n]=function(e,t,n){var r=z(e),i=[T,b].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[T,S].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Q={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return Q[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t){return t===I?re(function(e){var t=(0,i.Z)(e),n=l(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:o,height:a,x:s+c(e),y:u}}(e)):(0,a.Re)(t)?function(e){var t=r(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=l(e),r=o(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=G(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=G(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-r.scrollLeft+c(e),p=-r.scrollTop;return"rtl"===u(i||n).direction&&(d+=G(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:d,y:p}}(l(e)))}function oe(e,t,n){var r="clippingParents"===t?function(e){var t=m(h(e)),n=["absolute","fixed"].indexOf(u(e).position)>=0&&(0,a.Re)(e)?_(e):e;return(0,a.kK)(n)?t.filter((function(e){return(0,a.kK)(e)&&ne(e,n)&&"body"!==(0,s.Z)(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],l=i.reduce((function(t,n){var r=ie(e,n);return t.top=G(r.top,t.top),t.right=q(r.right,t.right),t.bottom=q(r.bottom,t.bottom),t.left=G(r.left,t.left),t}),ie(e,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function le(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,d=void 0===u?I:u,p=n.elementContext,f=void 0===p?R:p,h=n.altBoundary,v=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,y=ae("number"!=typeof g?g:se(g,A)),_=f===R?"reference":R,T=e.rects.popper,O=e.elements[v?_:f],C=oe((0,a.kK)(O)?O:O.contextElement||l(e.elements.popper),c,d),P=r(e.elements.reference),N=j({reference:P,element:T,strategy:"absolute",placement:o}),k=re(Object.assign({},T,N)),L=f===R?k:P,w={top:C.top-L.top+y.top,bottom:L.bottom-C.bottom+y.bottom,left:C.left-L.left+y.left,right:L.right-C.right+y.right},D=e.modifiersData.offset;if(f===R&&D){var M=D[o];Object.keys(w).forEach((function(e){var t=[S,E].indexOf(e)>=0?1:-1,n=[b,E].indexOf(e)>=0?"y":"x";w[e]+=M[n]*t}))}return w}const ce={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,v=n.allowedAutoPlacements,m=t.options.placement,g=z(m),y=l||(g===m||!h?[Z(m)]:function(e){if(z(e)===O)return[];var t=Z(e);return[te(e),t,te(t)]}(m)),_=[m].concat(y).reduce((function(e,n){return e.concat(z(n)===O?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?k:l,u=B(r),d=u?s?N:N.filter((function(e){return B(e)===u})):A,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=le(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[z(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),P=t.rects.reference,I=t.rects.popper,R=new Map,L=!0,w=_[0],D=0;D<_.length;D++){var M=_[D],x=z(M),U=B(M)===C,F=[b,E].indexOf(x)>=0,V=F?"width":"height",j=le(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),H=F?U?S:T:U?E:b;P[V]>I[V]&&(H=Z(H));var G=Z(H),q=[];if(o&&q.push(j[x]<=0),s&&q.push(j[H]<=0,j[G]<=0),q.every((function(e){return e}))){w=M,L=!1;break}R.set(M,q)}if(L)for(var K=function(e){var t=_.find((function(t){var n=R.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return w=t,"break"},W=h?3:1;W>0;W--){if("break"===K(W))break}t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ue(e,t,n){return G(e,q(t,n))}const de={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,v=n.tetherOffset,m=void 0===v?0:v,g=le(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=z(t.placement),O=B(t.placement),A=!O,P=V(y),I="x"===P?"y":"x",R=t.modifiersData.popperOffsets,N=t.rects.reference,k=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,w={x:0,y:0};if(R){if(o||s){var D="y"===P?b:T,M="y"===P?E:S,x="y"===P?"height":"width",U=R[P],F=R[P]+g[D],j=R[P]-g[M],H=h?-k[x]/2:0,K=O===C?N[x]:k[x],W=O===C?-k[x]:-N[x],Y=t.elements.arrow,J=h&&Y?f(Y):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=$[D],Q=$[M],Z=ue(0,N[x],J[x]),ee=A?N[x]/2-H-Z-X-L:K-Z-X-L,te=A?-N[x]/2+H+Z+Q+L:W+Z+Q+L,ne=t.elements.arrow&&_(t.elements.arrow),re=ne?"y"===P?ne.clientTop||0:ne.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][P]:0,oe=R[P]+ee-ie-re,ae=R[P]+te-ie;if(o){var se=ue(h?q(F,oe):F,U,h?G(j,ae):j);R[P]=se,w[P]=se-U}if(s){var ce="x"===P?b:T,de="x"===P?E:S,pe=R[I],fe=pe+g[ce],he=pe-g[de],ve=ue(h?q(fe,oe):fe,pe,h?G(he,ae):he);R[I]=ve,w[I]=ve-pe}}t.modifiersData[r]=w}},requiresIfExists:["offset"]};const pe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=z(n.placement),l=V(s),c=[T,S].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,A))}(i.padding,n),d=f(o),p="y"===l?b:T,h="y"===l?E:S,v=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=_(o),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,O=v/2-m/2,C=u[p],P=y-d[c]-u[h],I=y/2-d[c]/2+O,R=ue(C,I,P),N=l;n.modifiersData[r]=((t={})[N]=R,t.centerOffset=R-I,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ne(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function he(e){return[b,S,E,T].some((function(t){return e[t]>=0}))}const ve={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=le(t,{elementContext:"reference"}),s=le(t,{altBoundary:!0}),l=fe(a,r),c=fe(s,i,o),u=he(l),d=he(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var me=x({defaultModifiers:[F,H,J,$.Z,X,ce,de,pe,ve]})},34537:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),r=0,i=2,o=!0;for(;i{"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(e,t,n){for(var i,o=null,a=[],s=0,l=0;t>2],i=(3&c)<<4,l=1;break;case 1:a[s++]=r[i|c>>4],i=(15&c)<<2,l=2;break;case 2:a[s++]=r[i|c>>6],a[s++]=r[63&c],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[i],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var r,o=n,s=0,l=0;l1)break;if(void 0===(c=i[c]))throw Error(a);switch(s){case 0:r=c,s=1;break;case 1:t[n++]=r<<2|(48&c)>>4,r=c,s=2;break;case 2:t[n++]=(15&r)<<4|(60&c)>>2,r=c,s=3;break;case 3:t[n++]=(3&r)<<6|c,s=0}}if(1===s)throw Error(a);return n-o},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},19211:e=>{"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function o(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?i:o,e.writeFloatBE=r?o:i,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function t(e,t,n,r){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),i=2*(r>>31)+1,o=r>>>23&255,a=8388607&r;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:o,e.writeDoubleBE=r?o:i,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,i,o){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,i,o+t),e(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))e(0,i,o+t),e(2146959360,i,o+n);else if(r>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,i,o+t),e((a<<31|s/4294967296)>>>0,i,o+n);else{var l=Math.floor(Math.log(r)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=r*Math.pow(2,-l))>>>0,i,o+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,i,o+n)}}}function a(e,t,n,r,i){var o=e(r,i+t),a=e(r,i+n),s=2*(a>>31)+1,l=a>>>20&2047,c=4294967296*(1048575&a)+o;return 2047===l?c?NaN:s*(1/0):0===l?5e-324*s*c:s*Math.pow(2,l-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},67199:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},76662:e=>{"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,o=null,a=r;return function(n){if(n<1||n>i)return e(n);a+n>r&&(o=e(r),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},94997:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?o[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(r>>10),o[a++]=56320+(1023&r)):o[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},n.write=function(e,t,n){for(var r,i,o=n,a=0;a>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&i),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-o}},93279:(e,t,n)=>{"use strict";n.d(t,{S1:()=>Jt});var r=n(2162),i=n(68518),o=n(12343);var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var e=[],t=0;t=0;t--){var n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function v(e){try{if(e.stacktrace)return h(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?h(t):null}catch(t){return(0,i.c)()&&o.kg.error("Cannot extract url for event "+(0,u.jH)(e)),null}}var m,g=n(20535),y=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){m=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t2?t[2]:void 0;if(r){var i=I,o=String(r);I=o,D("history",{from:i,to:o})}return e.apply(this,t)}}R.onpopstate=function(){for(var t=[],n=0;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function K(){for(var e=[],t=0;t1&&(u=p.slice(0,-1).join("/"),d=p.pop()),d){var f=d.match(/^\d+/);f&&(d=f[0])}return Z({host:s,pass:a,path:u,projectId:d,port:c,protocol:r,publicKey:i})}(e):Z(e);return function(e){if((0,i.c)()){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new $("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new $("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new $("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new $("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}var te=n(96893),ne=n(21170);function re(e,t,n){void 0===t&&(t=1/0),void 0===n&&(n=1/0);try{return oe("",e,t,n)}catch(e){return{ERROR:"**non-serializable** ("+e+")"}}}function ie(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,i=re(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ie(e,t-1,n):i}function oe(e,t,r,i,o){var a,s;void 0===r&&(r=1/0),void 0===i&&(i=1/0),void 0===o&&(a="function"==typeof WeakSet,s=a?new WeakSet:[],o=[function(e){if(a)return!!s.has(e)||(s.add(e),!1);for(var t=0;t=i){f[m]="[MaxProperties ~]";break}var y=v[m];f[m]=oe(m,y,r-1,i,o),h+=1}return u(t),f}var ae=[];function se(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function le(e){var t={};return function(e){var t=e.defaultIntegrations&&c(e.defaultIntegrations)||[],n=e.integrations,r=c(se(t));Array.isArray(n)?r=c(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),se(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name})),o="Debug";return-1!==i.indexOf(o)&&r.push.apply(r,c(r.splice(i.indexOf(o),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===ae.indexOf(e.name)&&(e.setupOnce(Y.c,r.Gd),ae.push(e.name),(0,i.c)()&&o.kg.log("Integration installed: "+e.name))}(e)})),(0,g.xp)(t,"initialized",!0),t}var ce="Not capturing exception because it's already been captured.",ue=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=ee(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!(0,u.YO)(e)){var a=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){a=e}))),a}(0,i.c)()&&o.kg.log(ce)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=(0,E.pt)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&(0,u.YO)(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}(0,i.c)()&&o.kg.log(ce)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?(0,i.c)()&&o.kg.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):(0,i.c)()&&o.kg.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=le(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return(0,i.c)()&&o.kg.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i=!1,o=!1,l=t.exception&&t.exception.values;if(l){o=!0;try{for(var c=s(l),u=c.next();!u.done;u=c.next()){var d=u.value.mechanism;if(d&&!1===d.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var p="ok"===e.status;(p&&0===e.errors||p&&i)&&(e.update(a(a({},i&&{status:"crashed"}),{errors:e.errors||Number(o||i)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new te.cW((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.normalizeDepth,s=void 0===o?3:o,l=i.normalizeMaxBreadth,c=void 0===l?1e3:l,d=a(a({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,u.DM)()),timestamp:e.timestamp||(0,ne.yW)()});this._applyClientOptions(d),this._applyIntegrationsMetadata(d);var p=t;n&&n.captureContext&&(p=Y.s.clone(p).update(n.captureContext));var f=(0,te.WD)(d);return p&&(f=p.applyToEvent(d,n)),f.then((function(e){return e&&(e.sdkProcessingMetadata=a(a({},e.sdkProcessingMetadata),{normalizeDepth:re(s)})),"number"==typeof s&&s>0?r._normalizeEvent(e,s,c):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=a(a(a(a(a({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return a(a({},e),e.data&&{data:re(e.data,t,n)})}))}),e.user&&{user:re(e.user,t,n)}),e.contexts&&{contexts:re(e.contexts,t,n)}),e.extra&&{extra:re(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=a(a({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,d.$G)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,d.$G)(s.value,a));var l=e.request;l&&l.url&&(l.url=(0,d.$G)(l.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=c(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){(0,i.c)()&&o.kg.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function l(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return(0,te.$2)(new $("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"==typeof a&&Math.random()>a?(l("sample_rate","event"),(0,te.$2)(new $("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw l("event_processor",e.type||"event"),new $("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,E.J8)(e))return e.then((function(e){if(!(0,E.PO)(e)&&null!==e)throw new $(t);return e}),(function(e){throw new $("beforeSend rejected with "+e)}));if(!(0,E.PO)(e)&&null!==e)throw new $(t);return e}(o(n,t))})).then((function(t){if(null===t)throw l("before_send",e.type||"event"),new $("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof $)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new $("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();!function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=ee(e),this.metadata=t,this._tunnel=n}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return pe(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return ve(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return me(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return ge(this._dsnObject,this._tunnel)}}();function de(e,t,n){return{initDsn:e,metadata:t||{},dsn:ee(e),tunnel:n}}function pe(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function fe(e,t){return""+pe(e)+e.projectId+"/"+t+"/"}function he(e){return(0,g._j)({sentry_key:e.publicKey,sentry_version:"7"})}function ve(e){return fe(e,"store")}function me(e){return ve(e)+"?"+he(e)}function ge(e,t){return t||function(e){return fe(e,"envelope")}(e)+"?"+he(e)}function ye(e,t){return void 0===t&&(t=[]),[e,t]}function _e(e){var t=(0,_.CR)(e,2),n=t[0],r=t[1],i=JSON.stringify(n);return r.reduce((function(e,t){var n=(0,_.CR)(t,2),r=n[0],i=n[1],o=(0,E.pt)(i)?String(i):JSON.stringify(i);return e+"\n"+JSON.stringify(r)+"\n"+o}),i)}function be(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function Ee(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=c(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=c(e.sdk.packages||[],t.packages||[]),e):e}function Se(e,t){var n=be(t),r="aggregates"in e?"sessions":"session";return[ye(a(a({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Q(t.dsn)}),[[{type:r},e]]),r]}var Te,Oe=function(){function e(){}return e.prototype.sendEvent=function(e){return(0,te.WD)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return(0,te.WD)(!0)},e}(),Ae=function(){function e(e){this._options=e,this._options.dsn||(0,i.c)()&&o.kg.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new $("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new $("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=function(e,t){var n=be(t),r=e.type||"event",i=(e.sdkProcessingMetadata||{}).transactionSampling||{},o=i.method,s=i.rate;return Ee(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,ye(a(a({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Q(t.dsn)}),[[{type:r,sample_rates:[{id:o,rate:s}]},e]])}(e,de(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(t).then(null,(function(e){(0,i.c)()&&o.kg.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){(0,i.c)()&&o.kg.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=l(Se(e,de(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(t).then(null,(function(e){(0,i.c)()&&o.kg.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){(0,i.c)()&&o.kg.error("Error while sending session:",e)}));else(0,i.c)()&&o.kg.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Oe},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(Te||(Te={}));var Ce="?";function Pe(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var Ie=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Re=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ne=[30,function(e){var t=Ie.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Re.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=q(Be(t[1]||Ce,t[2]),2),i=r[0];return Pe(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],ke=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Le=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,we=[50,function(e){var t,n=ke.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=Le.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||Ce;return o=(t=q(Be(o,i),2))[0],Pe(i=t[1],o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],De=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Me=[40,function(e){var t=De.exec(e);return t?Pe(t[2],t[1]||Ce,+t[3],t[4]?+t[4]:void 0):void 0}],xe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ue=[10,function(e){var t=xe.exec(e);return t?Pe(t[2],t[3]||Ce,+t[1]):void 0}],Fe=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ze=[20,function(e){var t=Fe.exec(e);return t?Pe(t[5],t[3]||t[4]||Ce,+t[1],+t[2]):void 0}],Be=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ce,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Ve(e){var t=He(e),n={type:e&&e.name,value:qe(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function je(e){return{exception:{values:[Ve(e)]}}}function He(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Ge.test(e.message))return 1}return 0}(e);try{return function(){for(var e=[],t=0;t0&&n(!1)}),e);t.forEach((function(e){(0,te.WD)(e).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function Je(e,t){return e[t]||e.all||0}function $e(e,t,n){return void 0===n&&(n=Date.now()),Je(e,t)>n}function Xe(e,t,n){var r,i,o,a;void 0===n&&(n=Date.now());var s=(0,_.pi)({},e),l=t["x-sentry-rate-limits"],c=t["retry-after"];if(l)try{for(var u=(0,_.XA)(l.trim().split(",")),d=u.next();!d.done;d=u.next()){var p=d.value.split(":",2),f=parseInt(p[0],10),h=1e3*(isNaN(f)?60:f);if(p[1])try{for(var v=(o=void 0,(0,_.XA)(p[1].split(";"))),m=v.next();!m.done;m=v.next()){s[m.value]=n+h}}catch(e){o={error:e}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}else s.all=n+h}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}else c&&(s.all=n+function(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(c,n));return s}function Qe(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}function Ze(e,t,n){void 0===n&&(n=Ye(e.bufferSize||30));var r={};return{send:function(e){var i=function(e){var t=(0,_.CR)(e,2),n=(0,_.CR)(t[1],1);return(0,_.CR)(n[0],1)[0].type}(e),o="event"===i?"error":i,a={category:o,body:_e(e)};return $e(r,o)?(0,te.$2)({status:"rate_limit",reason:et(r,o)}):n.add((function(){return t(a).then((function(e){var t=e.body,n=e.headers,i=e.reason,a=Qe(e.statusCode);return n&&(r=Xe(r,n)),"success"===a?(0,te.WD)({status:a,reason:i}):(0,te.$2)({status:a,reason:i||t||("rate_limit"===a?et(r,o):"Unknown transport error")})}))}))},flush:function(e){return n.drain(e)}}}function et(e,t){return"Too many "+t+" requests, backing off until: "+new Date(Je(e,t)).toISOString()}var tt,nt=(0,b.R)();function rt(){if(tt)return tt;if(C(nt.fetch))return tt=nt.fetch.bind(nt);var e=nt.document,t=nt.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){(0,i.c)()&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return tt=t.bind(nt)}function it(e,t){if("[object Navigator]"===Object.prototype.toString.call(nt&&nt.navigator)&&"function"==typeof nt.navigator.sendBeacon)return nt.navigator.sendBeacon.bind(nt.navigator)(e,t);if(A()){var n=rt();n(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}else;}function ot(e){return"event"===e?"error":e}var at=(0,b.R)(),st=function(){function e(e){var t=this;this.options=e,this._buffer=Ye(30),this._rateLimits={},this._outcomes={},this._api=de(e.dsn,e._metadata,e.tunnel),this.url=me(this._api.dsn),this.options.sendClientReports&&at.document&&at.document.addEventListener("visibilitychange",(function(){"hidden"===at.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var n,r=be(t),i=e.type||"event",o="transaction"===i||!!t.tunnel,s=(e.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,c=s.rate;Ee(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify(re(e))}catch(e){var u=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:u.message,stack:u.stack}})}}var d={body:n,type:i,url:o?ge(t.dsn,t.tunnel):me(t.dsn)};if(o){var p=ye(a(a({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:Q(t.dsn)}),[[{type:i,sample_rates:[{id:l,rate:c}]},d.body]]);d.body=_e(p)}return d}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var n=l(Se(e,t),2),r=n[0],i=n[1];return{body:_e(r),type:i,url:ge(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=ot(t)+":"+e;(0,i.c)()&&o.kg.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){(0,i.c)()&&o.kg.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t,n,r,a=ge(this._api.dsn,this._api.tunnel),s=Object.keys(e).map((function(t){var n=q(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}})),l=(t=s,ye((n=this._api.tunnel&&Q(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:r||(0,ne.yW)(),discarded_events:t}]]));try{it(a,_e(l))}catch(e){(0,i.c)()&&o.kg.error(e)}}else(0,i.c)()&&o.kg.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,a=e.resolve,s=e.reject,l=Qe(n.status);this._rateLimits=Xe(this._rateLimits,r),this._isRateLimited(t)&&(0,i.c)()&&o.kg.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==l?s(n):a({status:l})},e.prototype._disabledUntil=function(e){var t=ot(e);return new Date(Je(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=ot(e);return $e(this._rateLimits,t)},e}(),lt=function(e){function t(t,n){void 0===n&&(n=rt());var r=e.call(this,t)||this;return r._fetch=n,r}return H(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:P()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new te.cW((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof $?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(st);var ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new te.cW((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof $?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(st),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=Ke(e,t&&t.syntheticException||void 0,n);return(0,u.EG)(r),r.level=Te.Error,t&&t.event_id&&(r.event_id=t.event_id),(0,te.WD)(r)}(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=Te.Info),function(e,t,n,r){void 0===t&&(t=Te.Info);var i=We(e,n&&n.syntheticException||void 0,r);return i.level=t,n&&n.event_id&&(i.event_id=n.event_id),(0,te.WD)(i)}(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t,n,r=G(G({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=de(r.dsn,r._metadata,r.tunnel),o=ge(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(r);if(A()){var a=G({},r.fetchParameters);return this._newTransport=(t={requestOptions:a,url:o},void 0===n&&(n=rt()),Ze({bufferSize:t.bufferSize},(function(e){var r=G({body:e.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return n(t.url,r).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}))),new lt(r)}return this._newTransport=function(e){return Ze({bufferSize:e.bufferSize},(function(t){return new te.cW((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(e)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}({url:o,headers:r.headers}),new ct(r)},t}(Ae),dt=n(71371),pt=(0,b.R)(),ft=0;function ht(){return ft>0}function vt(){ft+=1,setTimeout((function(){ft-=1}))}function mt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,g.HK)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return mt(e,t)}));return e.apply(this,i)}catch(e){throw vt(),(0,dt.$e)((function(n){n.addEventProcessor((function(e){return t.mechanism&&((0,u.Db)(e,void 0,void 0),(0,u.EG)(e,t.mechanism)),e.extra=G(G({},e.extra),{arguments:r}),e})),(0,dt.Tb)(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}(0,g.$Q)(i,e),(0,g.xp)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(e){}return i}function gt(e){if(void 0===e&&(e={}),pt.document)if(e.eventId)if(e.dsn){var t=pt.document.createElement("script");t.async=!0,t.src=function(e,t){var n=ee(e),r=pe(n)+"embed/error-page/",i="dsn="+Q(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(i+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(i+="&email="+encodeURIComponent(t.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return r+"?"+i}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=pt.document.head||pt.document.body;n&&n.appendChild(t)}else(0,i.c)()&&o.kg.error("Missing dsn option in showReportDialog call");else(0,i.c)()&&o.kg.error("Missing eventId option in showReportDialog call")}var yt=n(58464),_t=["fatal","error","warning","log","info","debug","critical"];function bt(e){return"warn"===e?Te.Warning:function(e){return-1!==_t.indexOf(e)}(e)?e:Te.Log}var Et=function(){function e(t){this.name=e.id,this._options=G({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,r.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,u.jH)(e)},{event:e})},e.prototype.setupOnce=function(){this._options.console&&w("console",St),this._options.dom&&w("dom",function(e){function t(t){var n,i="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof i&&(i=[i]);try{n=t.event.target?(0,yt.R)(t.event.target,i):(0,yt.R)(t.event,i)}catch(e){n=""}0!==n.length&&(0,r.Gd)().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this._options.dom)),this._options.xhr&&w("xhr",Tt),this._options.fetch&&w("fetch",Ot),this._options.history&&w("history",At)},e.id="Breadcrumbs",e}();function St(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:bt(e.level),message:(0,d.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+((0,d.nK)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,r.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function Tt(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,i=t.url,o=t.status_code,a=t.body;(0,r.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:i,status_code:o},type:"http"},{xhr:e.xhr,input:a})}else;}function Ot(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,r.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:Te.Error,type:"http"},{data:e.error,input:e.args}):(0,r.Gd)().addBreadcrumb({category:"fetch",data:G(G({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function At(e){var t=(0,b.R)(),n=e.from,i=e.to,o=(0,u.en)(t.location.href),a=(0,u.en)(n),s=(0,u.en)(i);a.path||(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(n=a.relative),(0,r.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:i}})}var Ct=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:W}],version:W},e.call(this,ut,t)||this}return H(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,b.R)().document&&(this._isEnabled()?gt(G(G({},e),{dsn:e.dsn||this.getDsn()})):(0,i.c)()&&o.kg.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Et);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(ue),Pt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],It=function(){function e(t){this.name=e.id,this._options=G({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,b.R)();this._options.setTimeout&&(0,g.hl)(e,"setTimeout",Rt),this._options.setInterval&&(0,g.hl)(e,"setInterval",Rt),this._options.requestAnimationFrame&&(0,g.hl)(e,"requestAnimationFrame",Nt),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,g.hl)(XMLHttpRequest.prototype,"send",kt);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Pt).forEach(Lt)},e.id="TryCatch",e}();function Rt(e){return function(){for(var t=[],n=0;n0?t:(0,yt.l)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Ut(e,t,n,r){(0,u.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Ft(){var e=(0,r.Gd)(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var zt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,Y.c)((function(t,n){var i=(0,r.Gd)().getIntegration(e);return i?function(e,t,n,r){if(!(n.exception&&n.exception.values&&r&&(0,E.V9)(r.originalException,Error)))return n;var i=Bt(t,r.originalException,e);return n.exception.values=K(i,n.exception.values),n}(i._key,i._limit,t,n):t}))},e.id="LinkedErrors",e}();function Bt(e,t,n,r){if(void 0===r&&(r=[]),!(0,E.V9)(t[n],Error)||r.length+1>=e)return r;var i=Ve(t[n]);return Bt(e,t[n],n,K([i],r))}var Vt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Ht(e,t))return!1;if(!jt(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=Gt(t),r=Gt(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Ht(e,t))return!1;if(!jt(e,t))return!1;return!0}(e,t))return!0;return!1}(t,r._previousEvent))return(0,i.c)()&&o.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function jt(e,t){var n=qt(e),r=qt(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i{"use strict";n.d(t,{Gd:()=>m});var r=n(68907),i=n(62844),o=n(21170),a=n(12343),s=n(68518),l=n(82991),c=n(61422),u=n(46769),d=n(20535),p=function(){function e(e){this.errors=0,this.sid=(0,i.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,o.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,o.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,d.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),f=function(){function e(e,t,n){void 0===t&&(t=new u.s),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version{"use strict";n.d(t,{c:()=>u,s:()=>l});var r=n(68907),i=n(67597),o=n(21170),a=n(96893),s=n(82991),l=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=(0,r.fl)(t._breadcrumbs),n._tags=(0,r.pi)({},t._tags),n._extra=(0,r.pi)({},t._extra),n._contexts=(0,r.pi)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,r.fl)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=(0,r.pi)((0,r.pi)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=(0,r.pi)((0,r.pi)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=(0,r.pi)((0,r.pi)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=(0,r.pi)((0,r.pi)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,r.pi)((0,r.pi)({},this._tags),t._tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),t._extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,i.PO)(t)&&(t=t,this._tags=(0,r.pi)((0,r.pi)({},this._tags),t.tags),this._extra=(0,r.pi)((0,r.pi)({},this._extra),t.extra),this._contexts=(0,r.pi)((0,r.pi)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var i=(0,r.pi)({timestamp:(0,o.yW)()},e);return this._breadcrumbs=(0,r.fl)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,r.pi)((0,r.pi)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,r.pi)((0,r.pi)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,r.pi)((0,r.pi)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,r.pi)((0,r.pi)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,r.pi)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,r.pi)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=(0,r.fl)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,r.fl)(c(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=(0,r.pi)((0,r.pi)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,o){var s=this;return void 0===o&&(o=0),new a.cW((function(a,l){var c=e[o];if(null===t||"function"!=typeof c)a(t);else{var u=c((0,r.pi)({},t),n);(0,i.J8)(u)?u.then((function(t){return s._notifyEventProcessors(e,t,n,o+1).then(a)})).then(null,l):s._notifyEventProcessors(e,u,n,o+1).then(a).then(null,l)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){var e=(0,s.R)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function u(e){c().push(e)}},68907:(e,t,n)=>{"use strict";n.d(t,{fl:()=>o,pi:()=>r});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var e=[],t=0;t{"use strict";n.d(t,{x:()=>i});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{n_:()=>c,Tb:()=>s,e:()=>l,$e:()=>u});function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function i(){for(var e=[],t=0;t{"use strict";n.d(t,{R:()=>o,l:()=>s});var r=n(82991),i=n(67597);function o(e,t){try{for(var n=e,r=[],i=0,o=0,s=" > ".length,l=void 0;n&&i++<5&&!("html"===(l=a(n,t))||i>1&&o+r.length*s+l.length>=80);)r.push(l),o+=l.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return""}}function a(e,t){var n,r,o,a,s,l=e,c=[];if(!l||!l.tagName)return"";c.push(l.tagName.toLowerCase());var u=t&&t.length?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(u&&u.length)u.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&c.push("#"+l.id),(n=l.className)&&(0,i.HD)(n))for(r=n.split(/\s+/),s=0;s{"use strict";n.d(t,{c:()=>r,n:()=>i});function r(){return true}function i(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}},82991:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});var r=n(61422),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}},67597:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>m,HD:()=>c,J8:()=>v,Kj:()=>h,PO:()=>d,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>p,fm:()=>l,i2:()=>g,kK:()=>f,pt:()=>u});var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)==="[object "+t+"]"}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function p(e){return"undefined"!=typeof Event&&y(e,Event)}function f(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return o(e,"RegExp")}function v(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function m(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function g(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},12343:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>c,RU:()=>l,kg:()=>p});var r=n(50832),i=n(68518),o=n(82991),a=(0,o.R)(),s="Sentry Logger ",l=["debug","info","warn","error","log","assert"];function c(e){var t=(0,o.R)();if(!("console"in t))return e();var n=t.console,r={};l.forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}var u=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t{"use strict";n.d(t,{DM:()=>a,Db:()=>u,EG:()=>d,YO:()=>p,en:()=>s,jH:()=>c});var r=n(50832),i=n(82991),o=n(20535);function a(){var e=(0,i.R)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function l(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function c(e){var t=e.message,n=e.event_id;if(t)return t;var r=l(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"":n||""}function u(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function d(e,t){var n=l(e);if(n){var i=n.mechanism;if(n.mechanism=(0,r.pi)((0,r.pi)((0,r.pi)({},{type:"generic",handled:!0}),i),t),t&&"data"in t){var o=(0,r.pi)((0,r.pi)({},i&&i.data),t.data);n.mechanism.data=o}}}function p(e){if(e&&e.__sentry_captured__)return!0;try{(0,o.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}},61422:(e,t,n)=>{"use strict";n.d(t,{KV:()=>o,l$:()=>a});var r=n(68518);e=n.hmd(e);var i=n(34155);function o(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(e,t){return e.require(t)}},20535:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>c,HK:()=>u,Jr:()=>m,Sh:()=>p,_j:()=>d,hl:()=>s,xp:()=>l,zf:()=>v});var r=n(50832),i=n(58464),o=n(67597),a=n(57321);function s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{c(i,r)}catch(e){}e[t]=i}}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function c(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}function u(e){return e.__sentry_original__}function d(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function p(e){var t=e;if((0,o.VZ)(e))t=(0,r.pi)({message:e.message,name:e.name,stack:e.stack},h(e));else if((0,o.cO)(e)){var n=e;t=(0,r.pi)({type:n.type,target:f(n.target),currentTarget:f(n.currentTarget)},h(n)),"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=n.detail)}return t}function f(e){try{return(0,o.kK)(e)?(0,i.R)(e):Object.prototype.toString.call(e)}catch(e){return""}}function h(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function v(e,t){void 0===t&&(t=40);var n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,a.$G)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,a.$G)(i,t)}return""}function m(e){var t,n;if((0,o.PO)(e)){var i={};try{for(var a=(0,r.XA)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value;void 0!==e[l]&&(i[l]=m(e[l]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(m):e}},57321:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,nK:()=>o,zC:()=>a});var r=n(67597);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r{"use strict";n.d(t,{$2:()=>o,WD:()=>i,cW:()=>a});var r=n(67597);function i(e){return new a((function(t){t(e)}))}function o(e){return new a((function(t,n){n(e)}))}var a=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&((0,r.J8)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){i(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}()},21170:(e,t,n)=>{"use strict";n.d(t,{ph:()=>c,yW:()=>l});var r=n(82991),i=n(61422);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},l=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);!function(){var e=(0,r.R)().performance;if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o{"use strict";n.d(t,{CR:()=>s,XA:()=>a,ZT:()=>i,fl:()=>l,pi:()=>o});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(){for(var e=[],t=0;t{"use strict";n.r(t),n.d(t,{__assign:()=>o,__asyncDelegator:()=>b,__asyncGenerator:()=>_,__asyncValues:()=>E,__await:()=>y,__awaiter:()=>u,__classPrivateFieldGet:()=>A,__classPrivateFieldSet:()=>C,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>f,__extends:()=>i,__generator:()=>d,__importDefault:()=>O,__importStar:()=>T,__makeTemplateObject:()=>S,__metadata:()=>c,__param:()=>l,__read:()=>v,__rest:()=>a,__spread:()=>m,__spreadArrays:()=>g,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof y?Promise.resolve(e.value.v).then(l,c):u(o[0][2],e)}(i[e](t))}catch(e){u(o[0][3],e)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},87565:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ye,tippy:()=>Z,useSingleton:()=>ge});var r=n(63086),i=n(17824),o="tippy-content",a="tippy-backdrop",s="tippy-arrow",l="tippy-svg-arrow",c={passive:!0,capture:!0},u=function(){return document.body};function d(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function p(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function h(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function v(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function m(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function y(e){return e.split("-")[0]}function _(e){return[].slice.call(e)}function b(){return document.createElement("div")}function E(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function S(e){return p(e,"MouseEvent")}function T(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function O(e){return E(e)?[e]:function(e){return p(e,"NodeList")}(e)?_(e):Array.isArray(e)?e:_(document.querySelectorAll(e))}function A(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function C(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function P(e){var t,n=m(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function I(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function R(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==(r=null==n.getRootNode?void 0:n.getRootNode())?void 0:r.host}return!1}var N={isTouch:!1},k=0;function L(){N.isTouch||(N.isTouch=!0,window.performance&&document.addEventListener("mousemove",w))}function w(){var e=performance.now();e-k<20&&(N.isTouch=!1,document.removeEventListener("mousemove",w)),k=e}function D(){var e=document.activeElement;if(T(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var M=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var x={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},U=Object.assign({appendTo:u,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},x,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),F=Object.keys(U);function z(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=U[i])?r:o);return t}),{});return Object.assign({},e,{},t)}function B(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(z(Object.assign({},U,{plugins:t}))):F).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},U.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function V(e,t){e.innerHTML=t}function j(e){var t=b();return!0===e?t.className=s:(t.className=l,E(e)?t.appendChild(e):V(t,e)),t}function H(e,t){E(t.content)?(V(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?V(e,t.content):e.textContent=t.content)}function G(e){var t=e.firstElementChild,n=_(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(o)})),arrow:n.find((function(e){return e.classList.contains(s)||e.classList.contains(l)})),backdrop:n.find((function(e){return e.classList.contains(a)}))}}function q(e){var t=b(),n=b();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=b();function i(n,r){var i=G(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||H(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(j(r.arrow))):o.appendChild(j(r.arrow)):s&&o.removeChild(s)}return r.className=o,r.setAttribute("data-state","hidden"),H(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}q.$$tippy=!0;var K=1,W=[],Y=[];function J(e,t){var n,i,o,a,s,l,p,v,E,T=B(e,Object.assign({},U,{},z((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),O=!1,k=!1,L=!1,w=!1,D=[],x=h(be,T.interactiveDebounce),F=K++,V=(E=T.plugins).filter((function(e,t){return E.indexOf(e)===t})),j={id:F,reference:e,popper:b(),popperInstance:null,props:T,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:V,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(a)},setProps:function(t){0;if(j.state.isDestroyed)return;ae("onBeforeUpdate",[j,t]),ye();var n=j.props,r=B(e,Object.assign({},j.props,{},t,{ignoreAttributes:!0}));j.props=r,ge(),n.interactiveDebounce!==r.interactiveDebounce&&(ce(),x=h(be,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");le(),oe(),J&&J(n,r);j.popperInstance&&(Oe(),Ce().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[j,t])},setContent:function(e){j.setProps({content:e})},show:function(){0;var e=j.state.isVisible,t=j.state.isDestroyed,n=!j.state.isEnabled,r=N.isTouch&&!j.props.touch,i=d(j.props.duration,0,U.duration);if(e||t||n||r)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[j],!1),!1===j.props.onShow(j))return;j.state.isVisible=!0,ee()&&(q.style.visibility="visible");oe(),fe(),j.state.isMounted||(q.style.transition="none");if(ee()){var o=re(),a=o.box,s=o.content;A([a,s],0)}p=function(){var e;if(j.state.isVisible&&!w){if(w=!0,q.offsetHeight,q.style.transition=j.props.moveTransition,ee()&&j.props.animation){var t=re(),n=t.box,r=t.content;A([n,r],i),C([n,r],"visible")}se(),le(),g(Y,j),null==(e=j.popperInstance)||e.forceUpdate(),j.state.isMounted=!0,ae("onMount",[j]); if (j.popper?.firstChild?.id === "context-menu") { const container = j.popper.firstChild; if (!container.children.length) { const observer = new MutationObserver(() => { Spicetify.ContextMenu._addItems(j.popper); observer.disconnect(); }); observer.observe(container, { childList: true }); } else if (container.firstChild.classList.contains("main-userWidget-dropDownMenu")) { Spicetify.Menu._addItems(j.popper); } else { Spicetify.ContextMenu._addItems(j.popper); } };0,j.props.animation&&ee()&&function(e,t){ve(e,t)}(i,(function(){j.state.isShown=!0,ae("onShown",[j])}))}},function(){var e,t=j.props.appendTo,n=te();e=j.props.interactive&&t===u||"parent"===t?n.parentNode:f(t,[n]);e.contains(q)||e.appendChild(q);Oe(),!1}()},hide:function(){0;var e=!j.state.isVisible,t=j.state.isDestroyed,n=!j.state.isEnabled,r=d(j.props.duration,1,U.duration);if(e||t||n)return;if(ae("onHide",[j],!1),!1===j.props.onHide(j))return;j.state.isVisible=!1,j.state.isShown=!1,w=!1,O=!1,ee()&&(q.style.visibility="hidden");if(ce(),he(),oe(),ee()){var i=re(),o=i.box,a=i.content;j.props.animation&&(A([o,a],r),C([o,a],"hidden"))}se(),le(),j.props.animation?ee()&&function(e,t){ve(e,(function(){!j.state.isVisible&&q.parentNode&&q.parentNode.contains(q)&&t()}))}(r,j.unmount):j.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",x),g(W,x),x(e)},enable:function(){j.state.isEnabled=!0},disable:function(){j.hide(),j.state.isEnabled=!1},unmount:function(){0;j.state.isVisible&&j.hide();if(!j.state.isMounted)return;Ae(),Ce().forEach((function(e){e._tippy.unmount()})),q.parentNode&&q.parentNode.removeChild(q);Y=Y.filter((function(e){return e!==j})),j.state.isMounted=!1,ae("onHidden",[j])},destroy:function(){0;if(j.state.isDestroyed)return;j.clearDelayTimeouts(),j.unmount(),ye(),delete e._tippy,j.state.isDestroyed=!0,ae("onDestroy",[j])}};if(!T.render)return j;var H=T.render(j),q=H.popper,J=H.onUpdate;q.setAttribute("data-tippy-root",""),q.id="tippy-"+j.id,j.popper=q,e._tippy=j,q._tippy=j;var $=V.map((function(e){return e.fn(j)})),X=e.hasAttribute("aria-expanded");return ge(),le(),oe(),ae("onCreate",[j]),T.showOnCreate&&Pe(),q.addEventListener("mouseenter",(function(){j.props.interactive&&j.state.isVisible&&j.clearDelayTimeouts()})),q.addEventListener("mouseleave",(function(e){j.props.interactive&&j.props.trigger.indexOf("mouseenter")>=0&&(ne().addEventListener("mousemove",x),x(e))})),j;function Q(){var e=j.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===Q()[0]}function ee(){var e;return!!(null==(e=j.props.render)?void 0:e.$$tippy)}function te(){return v||e}function ne(){var e=te().parentNode;return e?P(e):document}function re(){return G(q)}function ie(e){return j.state.isMounted&&!j.state.isVisible||N.isTouch||s&&"focus"===s.type?0:d(j.props.delay,e?0:1,U.delay)}function oe(){q.style.pointerEvents=j.props.interactive&&j.state.isVisible?"":"none",q.style.zIndex=""+j.props.zIndex}function ae(e,t,n){var r;(void 0===n&&(n=!0),$.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=j.props)[e].apply(r,t)}function se(){var t=j.props.aria;if(t.content){var n="aria-"+t.content,r=q.id;m(j.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(j.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function le(){!X&&j.props.aria.expanded&&m(j.props.triggerTarget||e).forEach((function(e){j.props.interactive?e.setAttribute("aria-expanded",j.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",x),W=W.filter((function(e){return e!==x}))}function ue(e){if(!N.isTouch||!L&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!j.props.interactive||!R(q,t)){if(R(te(),t)){if(N.isTouch)return;if(j.state.isVisible&&j.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[j,e]);!0===j.props.hideOnClick&&(j.clearDelayTimeouts(),j.hide(),k=!0,setTimeout((function(){k=!1})),j.state.isMounted||he())}}}function de(){L=!0}function pe(){L=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,c),e.addEventListener("touchstart",pe,c),e.addEventListener("touchmove",de,c)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,c),e.removeEventListener("touchstart",pe,c),e.removeEventListener("touchmove",de,c)}function ve(e,t){var n=re().box;function r(e){e.target===n&&(I(n,"remove",r),t())}if(0===e)return t();I(n,"remove",l),I(n,"add",r),l=r}function me(t,n,r){void 0===r&&(r=!1),m(j.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),D.push({node:e,eventType:t,handler:n,options:r})}))}function ge(){var e;Z()&&(me("touchstart",_e,{passive:!0}),me("touchend",Ee,{passive:!0})),(e=j.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(me(e,_e),e){case"mouseenter":me("mouseleave",Ee);break;case"focus":me(M?"focusout":"blur",Se);break;case"focusin":me("focusout",Se)}}))}function ye(){D.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),D=[]}function _e(e){var t,n=!1;if(j.state.isEnabled&&!Te(e)&&!k){var r="focus"===(null==(t=s)?void 0:t.type);s=e,v=e.currentTarget,le(),!j.state.isVisible&&S(e)&&W.forEach((function(t){return t(e)})),"click"===e.type&&(j.props.trigger.indexOf("mouseenter")<0||O)&&!1!==j.props.hideOnClick&&j.state.isVisible?n=!0:Pe(e),"click"===e.type&&(O=!n),n&&!r&&Ie(e)}}function be(e){var t=e.target,n=te().contains(t)||q.contains(t);if("mousemove"!==e.type||!n){var r=Ce().concat(q).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:T}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=y(i.placement),s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-r+l>o,f=r-t.bottom-c>o,h=t.left-n+u>o,v=n-t.right-d>o;return p||f||h||v}))})(r,e)&&(ce(),Ie(e))}}function Ee(e){Te(e)||j.props.trigger.indexOf("click")>=0&&O||(j.props.interactive?j.hideWithInteractivity(e):Ie(e))}function Se(e){j.props.trigger.indexOf("focusin")<0&&e.target!==te()||j.props.interactive&&e.relatedTarget&&q.contains(e.relatedTarget)||Ie(e)}function Te(e){return!!N.isTouch&&Z()!==e.type.indexOf("touch")>=0}function Oe(){Ae();var t=j.props,n=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=ee()?G(q).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];ee()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),j.popperInstance=(0,r.fi)(c,q,Object.assign({},n,{placement:i,onFirstUpdate:p,modifiers:d}))}function Ae(){j.popperInstance&&(j.popperInstance.destroy(),j.popperInstance=null)}function Ce(){return _(q.querySelectorAll("[data-tippy-root]"))}function Pe(e){j.clearDelayTimeouts(),e&&ae("onTrigger",[j,e]),fe();var t=ie(!0),n=Q(),r=n[0],o=n[1];N.isTouch&&"hold"===r&&o&&(t=o),t?i=setTimeout((function(){j.show()}),t):j.show()}function Ie(e){if(j.clearDelayTimeouts(),ae("onUntrigger",[j,e]),j.state.isVisible){if(!(j.props.trigger.indexOf("mouseenter")>=0&&j.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&O)){var t=ie(!1);t?o=setTimeout((function(){j.state.isVisible&&j.hide()}),t):a=requestAnimationFrame((function(){j.hide()}))}}else he()}}function $(e,t){void 0===t&&(t={});var n=U.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",L,c),window.addEventListener("blur",D);var r=Object.assign({},t,{plugins:n}),i=O(e).reduce((function(e,t){var n=t&&J(t,r);return n&&e.push(n),e}),[]);return E(e)?i[0]:i}$.defaultProps=U,$.setDefaultProps=function(e){Object.keys(e).forEach((function(t){U[t]=e[t]}))},$.currentInput=N;var X=Object.assign({},i.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Q=function(e,t){var n;void 0===t&&(t={});var r,i=e,o=[],a=t.overrides,s=[],l=!1;function c(){o=i.map((function(e){return e.reference}))}function u(e){i.forEach((function(t){e?t.enable():t.disable()}))}function d(e){return i.map((function(t){var n=t.setProps;return t.setProps=function(i){n(i),t.reference===r&&e.setProps(i)},function(){t.setProps=n}}))}function p(e,t){var n=o.indexOf(t);if(t!==r){r=t;var s=(a||[]).concat("content").reduce((function(e,t){return e[t]=i[n].props[t],e}),{});e.setProps(Object.assign({},s,{getReferenceClientRect:"function"==typeof s.getReferenceClientRect?s.getReferenceClientRect:function(){return t.getBoundingClientRect()}}))}}u(!1),c();var f={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!l&&(l=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!l&&(l=!0,p(e,o[0]))},onTrigger:function(e,t){p(e,t.currentTarget)}}}},h=$(b(),Object.assign({},v(t,["overrides"]),{plugins:[f].concat(t.plugins||[]),triggerTarget:o,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[X])})})),m=h.show;h.show=function(e){if(m(),!r&&null==e)return p(h,o[0]);if(!r||null!=e){if("number"==typeof e)return o[e]&&p(h,o[e]);if(i.indexOf(e)>=0){var t=e.reference;return p(h,t)}return o.indexOf(e)>=0?p(h,e):void 0}},h.showNext=function(){var e=o[0];if(!r)return h.show(0);var t=o.indexOf(r);h.show(o[t+1]||e)},h.showPrevious=function(){var e=o[o.length-1];if(!r)return h.show(e);var t=o.indexOf(r),n=o[t-1]||e;h.show(n)};var g=h.setProps;return h.setProps=function(e){a=e.overrides||a,g(e)},h.setInstances=function(e){u(!0),s.forEach((function(e){return e()})),i=e,u(!1),c(),d(h),h.setProps({triggerTarget:o})},s=d(h),h};$.setDefaultProps({render:q});const Z=$;var ee=n(67294),te=n.n(ee),ne=n(73935);function re(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var ie="undefined"!=typeof window&&"undefined"!=typeof document;function oe(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function ae(){return ie&&document.createElement("div")}function se(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!se(e[n],t[n]))return!1}return!0}return!1}function le(e){var t=[];return e.forEach((function(e){t.find((function(t){return se(e,t)}))||t.push(e)})),t}function ce(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:le([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var ue=ie?ee.useLayoutEffect:ee.useEffect;function de(e){var t=(0,ee.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function pe(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var fe={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||pe(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&pe(t,"remove",e.props.className)},onAfterUpdate:r}}};function he(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,a=t.render,s=t.reference,l=t.disabled,c=void 0!==l&&l,u=t.ignoreAttributes,d=void 0===u||u,p=(t.__source,t.__self,re(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==i,h=void 0!==o,v=(0,ee.useState)(!1),m=v[0],g=v[1],y=(0,ee.useState)({}),_=y[0],b=y[1],E=(0,ee.useState)(),S=E[0],T=E[1],O=de((function(){return{container:ae(),renders:1}})),A=Object.assign({ignoreAttributes:d},p,{content:O.container});f&&(A.trigger="manual",A.hideOnClick=!1),h&&(c=!0);var C=A,P=A.plugins||[];a&&(C=Object.assign({},A,{plugins:h&&null!=o.data?[].concat(P,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,T(n.content)}}}}]):P,render:function(){return{popper:O.container}}}));var I=[s].concat(n?[n.type]:[]);return ue((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||O.ref||ae(),Object.assign({},C,{plugins:[fe].concat(A.plugins||[])}));return O.instance=n,c&&n.disable(),i&&n.show(),h&&o.hook({instance:n,content:r,props:C,setSingletonContent:T}),g(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),I),ue((function(){var e;if(1!==O.renders){var t=O.instance;t.setProps(ce(t.props,C)),null==(e=t.popperInstance)||e.forceUpdate(),c?t.disable():t.enable(),f&&(i?t.show():t.hide()),h&&o.hook({instance:t,content:r,props:C,setSingletonContent:T})}else O.renders++})),ue((function(){var e;if(a){var t=O.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;_.placement===n.placement&&_.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&_.escaped===(null==r?void 0:r.hasPopperEscaped)||b({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[_.placement,_.referenceHidden,_.escaped].concat(I)),te().createElement(te().Fragment,null,n?(0,ee.cloneElement)(n,{ref:function(e){O.ref=e,oe(n.ref,e)}}):null,m&&(0,ne.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(_),S,O.instance):r,O.container))}}function ve(e){return function(t){var n=void 0===t?{}:t,r=n.disabled,i=void 0!==r&&r,o=n.overrides,a=void 0===o?[]:o,s=(0,ee.useState)(!1),l=s[0],c=s[1],u=de({children:[],renders:1});return ue((function(){if(l){var t=u.children,n=u.sourceData;if(n){var r=e(t.map((function(e){return e.instance})),Object.assign({},n.props,{popperOptions:n.instance.props.popperOptions,overrides:a,plugins:[fe].concat(n.props.plugins||[])}));return u.instance=r,i&&r.disable(),function(){r.destroy(),u.children=t.filter((function(e){return!e.instance.state.isDestroyed}))}}}else c(!0)}),[l]),ue((function(){if(l)if(1!==u.renders){var e=u.children,t=u.instance,n=u.sourceData;if(t&&n){var r=n.props,o=(r.content,re(r,["content"]));t.setProps(ce(t.props,Object.assign({},o,{overrides:a}))),t.setInstances(e.map((function(e){return e.instance}))),i?t.disable():t.enable()}}else u.renders++})),(0,ee.useMemo)((function(){return[{data:u,hook:function(e){u.sourceData=e,u.setSingletonContent=e.setSingletonContent},cleanup:function(){u.sourceData=null}},{hook:function(e){var t,n;u.children=u.children.filter((function(t){var n=t.instance;return e.instance!==n})),u.children.push(e),(null==(t=u.instance)?void 0:t.state.isMounted)&&(null==(n=u.instance)?void 0:n.state.$$activeSingletonInstance)===e.instance&&(null==u.setSingletonContent||u.setSingletonContent(e.content)),u.instance&&!u.instance.state.isDestroyed&&u.instance.setInstances(u.children.map((function(e){return e.instance})))},cleanup:function(e){u.children=u.children.filter((function(t){return t.instance!==e})),u.instance&&!u.instance.state.isDestroyed&&u.instance.setInstances(u.children.map((function(e){return e.instance})))}}]}),[])}}var me=function(e,t){return(0,ee.forwardRef)((function(n,r){var i=n.children,o=re(n,["children"]);return te().createElement(e,Object.assign({},t,o),i?(0,ee.cloneElement)(i,{ref:function(e){oe(r,e),oe(i.ref,e)}}):null)}))},ge=ve(Q);const ye=me(he(Z))},71215:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>ae});var r=n(63086),i=n(17824),o="tippy-backdrop",a={passive:!0,capture:!0},s=function(){return document.body};function l(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function c(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function u(e,t){return"function"==typeof e?e.apply(void 0,t):e}function d(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function p(e){return[].concat(e)}function f(e,t){-1===e.indexOf(t)&&e.push(t)}function h(e){return e.split("-")[0]}function v(e){return[].slice.call(e)}function m(){return document.createElement("div")}function g(e){return["Element","Fragment"].some((function(t){return c(e,t)}))}function y(e){return c(e,"MouseEvent")}function _(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function b(e){return g(e)?[e]:function(e){return c(e,"NodeList")}(e)?v(e):Array.isArray(e)?e:v(document.querySelectorAll(e))}function E(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function S(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function T(e){var t,n=p(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function O(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function A(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==(r=null==n.getRootNode?void 0:n.getRootNode())?void 0:r.host}return!1}var C={isTouch:!1},P=0;function I(){C.isTouch||(C.isTouch=!0,window.performance&&document.addEventListener("mousemove",R))}function R(){var e=performance.now();e-P<20&&(C.isTouch=!1,document.removeEventListener("mousemove",R)),P=e}function N(){var e=document.activeElement;if(_(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var k=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var L={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},w=Object.assign({appendTo:s,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},L,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),D=Object.keys(w);function M(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=w[i])?r:o);return t}),{});return Object.assign({},e,{},t)}function x(e,t){var n=Object.assign({},t,{content:u(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(M(Object.assign({},w,{plugins:t}))):D).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},w.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function U(e){var t=e.firstElementChild,n=v(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains(o)}))}}var F=1,z=[],B=[];function V(e,t){var n,i,o,c,g,_,b,P,I,R=x(e,Object.assign({},w,{},M((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),N=!1,L=!1,D=!1,V=!1,j=[],H=d(be,R.interactiveDebounce),G=F++,q=(I=R.plugins).filter((function(e,t){return I.indexOf(e)===t})),K={id:G,reference:e,popper:m(),popperInstance:null,props:R,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:q,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(c)},setProps:function(t){0;if(K.state.isDestroyed)return;ae("onBeforeUpdate",[K,t]),ye();var n=K.props,r=x(e,Object.assign({},K.props,{},t,{ignoreAttributes:!0}));K.props=r,ge(),n.interactiveDebounce!==r.interactiveDebounce&&(ce(),H=d(be,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?p(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");le(),oe(),J&&J(n,r);K.popperInstance&&(Oe(),Ce().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[K,t])},setContent:function(e){K.setProps({content:e})},show:function(){0;var e=K.state.isVisible,t=K.state.isDestroyed,n=!K.state.isEnabled,r=C.isTouch&&!K.props.touch,i=l(K.props.duration,0,w.duration);if(e||t||n||r)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[K],!1),!1===K.props.onShow(K))return;K.state.isVisible=!0,ee()&&(Y.style.visibility="visible");oe(),fe(),K.state.isMounted||(Y.style.transition="none");if(ee()){var o=re(),a=o.box,c=o.content;E([a,c],0)}b=function(){var e;if(K.state.isVisible&&!V){if(V=!0,Y.offsetHeight,Y.style.transition=K.props.moveTransition,ee()&&K.props.animation){var t=re(),n=t.box,r=t.content;E([n,r],i),S([n,r],"visible")}se(),le(),f(B,K),null==(e=K.popperInstance)||e.forceUpdate(),K.state.isMounted=!0,ae("onMount",[K]); if (K.popper?.firstChild?.id === "context-menu") { const container = K.popper.firstChild; if (!container.children.length) { const observer = new MutationObserver(() => { Spicetify.ContextMenu._addItems(K.popper); observer.disconnect(); }); observer.observe(container, { childList: true }); } else if (container.firstChild.classList.contains("main-userWidget-dropDownMenu")) { Spicetify.Menu._addItems(K.popper); } else { Spicetify.ContextMenu._addItems(K.popper); } };0,K.props.animation&&ee()&&function(e,t){ve(e,t)}(i,(function(){K.state.isShown=!0,ae("onShown",[K])}))}},function(){var e,t=K.props.appendTo,n=te();e=K.props.interactive&&t===s||"parent"===t?n.parentNode:u(t,[n]);e.contains(Y)||e.appendChild(Y);Oe(),!1}()},hide:function(){0;var e=!K.state.isVisible,t=K.state.isDestroyed,n=!K.state.isEnabled,r=l(K.props.duration,1,w.duration);if(e||t||n)return;if(ae("onHide",[K],!1),!1===K.props.onHide(K))return;K.state.isVisible=!1,K.state.isShown=!1,V=!1,N=!1,ee()&&(Y.style.visibility="hidden");if(ce(),he(),oe(),ee()){var i=re(),o=i.box,a=i.content;K.props.animation&&(E([o,a],r),S([o,a],"hidden"))}se(),le(),K.props.animation?ee()&&function(e,t){ve(e,(function(){!K.state.isVisible&&Y.parentNode&&Y.parentNode.contains(Y)&&t()}))}(r,K.unmount):K.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",H),f(z,H),H(e)},enable:function(){K.state.isEnabled=!0},disable:function(){K.hide(),K.state.isEnabled=!1},unmount:function(){0;K.state.isVisible&&K.hide();if(!K.state.isMounted)return;Ae(),Ce().forEach((function(e){e._tippy.unmount()})),Y.parentNode&&Y.parentNode.removeChild(Y);B=B.filter((function(e){return e!==K})),K.state.isMounted=!1,ae("onHidden",[K])},destroy:function(){0;if(K.state.isDestroyed)return;K.clearDelayTimeouts(),K.unmount(),ye(),delete e._tippy,K.state.isDestroyed=!0,ae("onDestroy",[K])}};if(!R.render)return K;var W=R.render(K),Y=W.popper,J=W.onUpdate;Y.setAttribute("data-tippy-root",""),Y.id="tippy-"+K.id,K.popper=Y,e._tippy=K,Y._tippy=K;var $=q.map((function(e){return e.fn(K)})),X=e.hasAttribute("aria-expanded");return ge(),le(),oe(),ae("onCreate",[K]),R.showOnCreate&&Pe(),Y.addEventListener("mouseenter",(function(){K.props.interactive&&K.state.isVisible&&K.clearDelayTimeouts()})),Y.addEventListener("mouseleave",(function(e){K.props.interactive&&K.props.trigger.indexOf("mouseenter")>=0&&(ne().addEventListener("mousemove",H),H(e))})),K;function Q(){var e=K.props.touch;return Array.isArray(e)?e:[e,0]}function Z(){return"hold"===Q()[0]}function ee(){var e;return!!(null==(e=K.props.render)?void 0:e.$$tippy)}function te(){return P||e}function ne(){var e=te().parentNode;return e?T(e):document}function re(){return U(Y)}function ie(e){return K.state.isMounted&&!K.state.isVisible||C.isTouch||g&&"focus"===g.type?0:l(K.props.delay,e?0:1,w.delay)}function oe(){Y.style.pointerEvents=K.props.interactive&&K.state.isVisible?"":"none",Y.style.zIndex=""+K.props.zIndex}function ae(e,t,n){var r;(void 0===n&&(n=!0),$.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=K.props)[e].apply(r,t)}function se(){var t=K.props.aria;if(t.content){var n="aria-"+t.content,r=Y.id;p(K.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(K.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function le(){!X&&K.props.aria.expanded&&p(K.props.triggerTarget||e).forEach((function(e){K.props.interactive?e.setAttribute("aria-expanded",K.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",H),z=z.filter((function(e){return e!==H}))}function ue(e){if(!C.isTouch||!D&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!K.props.interactive||!A(Y,t)){if(A(te(),t)){if(C.isTouch)return;if(K.state.isVisible&&K.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[K,e]);!0===K.props.hideOnClick&&(K.clearDelayTimeouts(),K.hide(),L=!0,setTimeout((function(){L=!1})),K.state.isMounted||he())}}}function de(){D=!0}function pe(){D=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,a),e.addEventListener("touchstart",pe,a),e.addEventListener("touchmove",de,a)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,a),e.removeEventListener("touchstart",pe,a),e.removeEventListener("touchmove",de,a)}function ve(e,t){var n=re().box;function r(e){e.target===n&&(O(n,"remove",r),t())}if(0===e)return t();O(n,"remove",_),O(n,"add",r),_=r}function me(t,n,r){void 0===r&&(r=!1),p(K.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),j.push({node:e,eventType:t,handler:n,options:r})}))}function ge(){var e;Z()&&(me("touchstart",_e,{passive:!0}),me("touchend",Ee,{passive:!0})),(e=K.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(me(e,_e),e){case"mouseenter":me("mouseleave",Ee);break;case"focus":me(k?"focusout":"blur",Se);break;case"focusin":me("focusout",Se)}}))}function ye(){j.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),j=[]}function _e(e){var t,n=!1;if(K.state.isEnabled&&!Te(e)&&!L){var r="focus"===(null==(t=g)?void 0:t.type);g=e,P=e.currentTarget,le(),!K.state.isVisible&&y(e)&&z.forEach((function(t){return t(e)})),"click"===e.type&&(K.props.trigger.indexOf("mouseenter")<0||N)&&!1!==K.props.hideOnClick&&K.state.isVisible?n=!0:Pe(e),"click"===e.type&&(N=!n),n&&!r&&Ie(e)}}function be(e){var t=e.target,n=te().contains(t)||Y.contains(t);if("mousemove"!==e.type||!n){var r=Ce().concat(Y).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:R}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=h(i.placement),s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-r+l>o,f=r-t.bottom-c>o,v=t.left-n+u>o,m=n-t.right-d>o;return p||f||v||m}))})(r,e)&&(ce(),Ie(e))}}function Ee(e){Te(e)||K.props.trigger.indexOf("click")>=0&&N||(K.props.interactive?K.hideWithInteractivity(e):Ie(e))}function Se(e){K.props.trigger.indexOf("focusin")<0&&e.target!==te()||K.props.interactive&&e.relatedTarget&&Y.contains(e.relatedTarget)||Ie(e)}function Te(e){return!!C.isTouch&&Z()!==e.type.indexOf("touch")>=0}function Oe(){Ae();var t=K.props,n=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=ee()?U(Y).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];ee()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),K.popperInstance=(0,r.fi)(c,Y,Object.assign({},n,{placement:i,onFirstUpdate:b,modifiers:d}))}function Ae(){K.popperInstance&&(K.popperInstance.destroy(),K.popperInstance=null)}function Ce(){return v(Y.querySelectorAll("[data-tippy-root]"))}function Pe(e){K.clearDelayTimeouts(),e&&ae("onTrigger",[K,e]),fe();var t=ie(!0),n=Q(),r=n[0],o=n[1];C.isTouch&&"hold"===r&&o&&(t=o),t?i=setTimeout((function(){K.show()}),t):K.show()}function Ie(e){if(K.clearDelayTimeouts(),ae("onUntrigger",[K,e]),K.state.isVisible){if(!(K.props.trigger.indexOf("mouseenter")>=0&&K.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&N)){var t=ie(!1);t?o=setTimeout((function(){K.state.isVisible&&K.hide()}),t):c=requestAnimationFrame((function(){K.hide()}))}}else he()}}function j(e,t){void 0===t&&(t={});var n=w.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",I,a),window.addEventListener("blur",N);var r=Object.assign({},t,{plugins:n}),i=b(e).reduce((function(e,t){var n=t&&V(t,r);return n&&e.push(n),e}),[]);return g(e)?i[0]:i}j.defaultProps=w,j.setDefaultProps=function(e){Object.keys(e).forEach((function(t){w[t]=e[t]}))},j.currentInput=C;Object.assign({},i.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});j.setDefaultProps({animation:!1});const H=j;var G=n(67294),q=n.n(G),K=n(73935);function W(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Y="undefined"!=typeof window&&"undefined"!=typeof document;function J(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function $(){return Y&&document.createElement("div")}function X(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!X(e[n],t[n]))return!1}return!0}return!1}function Q(e){var t=[];return e.forEach((function(e){t.find((function(t){return X(e,t)}))||t.push(e)})),t}function Z(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Q([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var ee=Y?G.useLayoutEffect:G.useEffect;function te(e){var t=(0,G.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function ne(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var re={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||ne(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&ne(t,"remove",e.props.className)},onAfterUpdate:r}}};function ie(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,a=t.render,s=t.reference,l=t.disabled,c=void 0!==l&&l,u=t.ignoreAttributes,d=void 0===u||u,p=(t.__source,t.__self,W(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==i,h=void 0!==o,v=(0,G.useState)(!1),m=v[0],g=v[1],y=(0,G.useState)({}),_=y[0],b=y[1],E=(0,G.useState)(),S=E[0],T=E[1],O=te((function(){return{container:$(),renders:1}})),A=Object.assign({ignoreAttributes:d},p,{content:O.container});f&&(A.trigger="manual",A.hideOnClick=!1),h&&(c=!0);var C=A,P=A.plugins||[];a&&(C=Object.assign({},A,{plugins:h&&null!=o.data?[].concat(P,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,T(n.content)}}}}]):P,render:function(){return{popper:O.container}}}));var I=[s].concat(n?[n.type]:[]);return ee((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||O.ref||$(),Object.assign({},C,{plugins:[re].concat(A.plugins||[])}));return O.instance=n,c&&n.disable(),i&&n.show(),h&&o.hook({instance:n,content:r,props:C,setSingletonContent:T}),g(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),I),ee((function(){var e;if(1!==O.renders){var t=O.instance;t.setProps(Z(t.props,C)),null==(e=t.popperInstance)||e.forceUpdate(),c?t.disable():t.enable(),f&&(i?t.show():t.hide()),h&&o.hook({instance:t,content:r,props:C,setSingletonContent:T})}else O.renders++})),ee((function(){var e;if(a){var t=O.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;_.placement===n.placement&&_.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&_.escaped===(null==r?void 0:r.hasPopperEscaped)||b({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[_.placement,_.referenceHidden,_.escaped].concat(I)),q().createElement(q().Fragment,null,n?(0,G.cloneElement)(n,{ref:function(e){O.ref=e,J(n.ref,e)}}):null,m&&(0,K.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(_),S,O.instance):r,O.container))}}var oe=function(e,t){return(0,G.forwardRef)((function(n,r){var i=n.children,o=W(n,["children"]);return q().createElement(e,Object.assign({},t,o),i?(0,G.cloneElement)(i,{ref:function(e){J(r,e),J(i.ref,e)}}):null)}))};const ae=oe(ie(H),{render:function(){return""}})},28599:e=>{"use strict";const{AbortController:t,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},7092:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const r=200,i=0,o="linear",a=!0;class s{constructor(e={}){this._curve=e.curve||o,this._baseTime=e.baseTime||r,this._ceiling=e.ceiling||i,this._jitter="jitter"in e?!!e.jitter:a}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}},42427:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(7092);function i(){let e=()=>{},t=()=>{};return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}function o(){return Promise.reject(new Error("Backoff already consumed"))}const a={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class s{constructor(e,t){this._resolver=i(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1;const n=t||{};this._fn=e,this._maxDuration=n.maxDuration||a.maxDuration,this._maxRetries="maxRetries"in n?n.maxRetries:a.maxRetries,this._maxTime=n.maxTime||a.maxTime,this._retryPredicate=n.retryPredicate||a.retryPredicate,this._backoffInitial=!!n.backoffInitial,this._counter=new r.A({curve:n.curve,baseTime:n.baseTime,ceiling:n.ceiling}),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new s(e,t).start()}_destroy(){this._fn=o,this._resolver=i()}_failure(e){if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._resolver.resolve(...e),this._destroy()}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCountthis._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(e){return!this._fn&&e&&(this._fn=e),this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise}stop(){clearTimeout(this._tickInterval),this._isRunning=!1,this._destroy()}getRetryCount(){return this._callCount}}},31612:(e,t,n)=>{"use strict";var r;n.d(t,{eV:()=>i,Hx:()=>l,_p:()=>p}),function(e){e.INVALID_IDENT_DATA="INVALID_IDENT_DATA",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED"}(r||(r={}));const i={UNKNOWN:"unknown",EMPTY:"",ZERO:0,EMPTY_VERSION:"0.0.0"};class o extends Error{constructor(e,t,n){super(t),this.name="LoggingError",this.code=e,this.status=n||0}}function a(e,t){const n=e.indexOf(t);return-1===n?[e,""]:[e.slice(0,n),e.slice(n+t.length)]}const s=202;class l{constructor(e){this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/melody",this._batchQueue=[],this._identData=Promise.all([e.sdkId,e.platform,e.clientVersion]).then((([e,t,n])=>({sdk_id:e||i.EMPTY,platform:t||i.EMPTY,client_version:n||i.EMPTY_VERSION})))}_assertValidIdentData(e){if(!e.sdk_id)throw new o(r.INVALID_IDENT_DATA,"sdkId must be a non-empty string.",0)}_sendBatchedLogs(){return this._identData.then((e=>{this._assertValidIdentData(e);const t=this._batchQueue.splice(0,this._batchQueue.length);if(t.length){const i=(n="endpoint",t.reduce((function(e,t){var r;const i=t[n];return void 0===i||(e[i]=null!==(r=e[i])&&void 0!==r?r:[],e[i].push(t)),e}),{})),a=Object.keys(i).map((t=>{var n;const a=null===(n=i[t])||void 0===n?void 0:n.map((({payload:e})=>e));return(null==a?void 0:a.length)?this._transport.request(`${this._endpoint}${t}`,{method:"POST",payload:JSON.stringify(Object.assign({messages:a},e)),retry:{maxRetries:5,condition:e=>e.status!==s}}).then((({status:e})=>e===s||Promise.reject(new o(r.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e)))):Promise.resolve(!0)}));return Promise.all(a).then((()=>!0))}var n;return Promise.resolve(!0)}))}_sendLog(e,t){return this.sendLog(e,t)}sendLog(e,t,n){const i=null==n?void 0:n.forget;if(null==n?void 0:n.batch){if(i)throw new Error("'forget' cannot be used together with 'batch'.");return new Promise((n=>{this._batchQueue.push({endpoint:e,payload:t}),queueMicrotask((()=>{this._sendBatchedLogs().then(n)}))}))}return this._identData.then((n=>{this._assertValidIdentData(n);let r=this._endpoint+e;const o=i?this._transport.getLastToken():null;return o&&(r=function(e,t,n){const[r,i]=a(e,"#"),[o,s]=a(r,"?"),l=i?`#${i}`:"";let c=`${t}=${encodeURIComponent(n)}`;const u=s.split("&");for(const e of u)e.length>0&&a(e,"=")[0]!==t&&(c+=`&${e}`);return`${o}?${c}${l}`}(r,"access_token",o)),this._transport.request(r,{method:"POST",payload:JSON.stringify(Object.assign(Object.assign({},t),n)),forget:i,retry:{maxRetries:5,condition:e=>e.status!==s}})})).then((({status:e})=>!(!i&&e!==s)||Promise.reject(new o(r.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e))))}}const c=/(edge)[\s\/:]([\w\d\.]+)/,u=new RegExp("(opera|ie|firefox|chrome|trident|crios|version)[\\s/:]([\\w\\d\\.]+)?.*?(safari|(?:rv[\\s\\/:]|version[\\s\\/:])([\\w\\d\\.]+)|$)"),d={};function p(e){if(!e)return e;const t=function(e,t){var n,r,i;const o=e.toLowerCase();let a=t?t.toLowerCase():"";const s=`${o}:${a}`,l=d[s];if(l)return l;const p=o.match(c),f=o.match(u)||[null,"unknown",0],h=p||f;"trident"===h[1]?(h[1]="ie",h[4]&&(h[2]=h[4])):"crios"===h[1]&&(h[1]="chrome"),a=o.match(/ip(?:ad|od|hone)/)?"ios":null!==(n=(o.match(/(?:webos|android)/)||o.match(/mac|win|linux|cros/)||[])[0])&&void 0!==n?n:"other","win"===a&&(a="windows");const v="version"===h[1]?h[3]:h[1],m="opera"===h[1]&&h[4]?h[4]:h[2],g={name:null!==(r=null==v?void 0:v.toString())&&void 0!==r?r:"unknown",version:null!==(i=null==m?void 0:m.toString())&&void 0!==i?i:"unknown",platform:a};return d[s]=g,g}(navigator.userAgent,navigator.platform);return e.replace(/\{\{([^}]+?)\}\}/g,(function(e,n){return r=n,(i=t)&&i.hasOwnProperty(r)?t[n]:"";var r,i}))}},85406:(e,t,n)=>{"use strict";function r(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}n.d(t,{$:()=>r})},28667:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var r={};n.r(r),n.d(r,{disable:()=>g,disableAll:()=>b,enable:()=>m,enableAll:()=>_,forTag:()=>E,intercept:()=>f,list:()=>v,remove:()=>S,setLevel:()=>y,unintercept:()=>h});var i;n(34155);!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(i||(i={}));var o=n(34155);const a=void 0!==o&&"true"==={NODE_ENV:"production",DEBUG_EVENT_SENDER:!1,DEBUG_SEMANTIC_METRICS:void 0,PRODUCT_NAME:"desktop"}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=i.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){if(!(this._enabled||this._level&t))return;const r={args:n,type:e,tag:this.tag};this._predicate(r)||console[e](this._tagText,...n)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,r=t.length;e{}}function v(e){const t=Object.keys(c).filter((e=>c[e])).sort();return e?t.map((e=>({tag:e,description:c[e].description||"No description."}))):t.reduce(((e,t)=>(e[t]=c[t].description||"No description",e)),{})}function m(e){var t;const n=Array.isArray(e)?e:[e];let r=n.length;for(;r--;){const e=null===(t=n[r])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function g(e){var t;const n=Array.isArray(e)?e:[e];let r=n.length;for(;r--;){const e=null===(t=n[r])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.disable()}}}function y(e){p=e;let t=u.length;for(;t--;){const n=u[t];n&&n.setLevel(e)}}function _(){let e=u.length;for(;e--;)u[e]&&u[e].enable()}function b(){let e=u.length;for(;e--;)u[e]&&u[e].disable()}function E(e,t){let n,r;if("string"==typeof e?(n=e.toLowerCase(),r=t):(n=e.tag,r=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,r,d);return i.setLevel(p),c[n]=i,u.push(i),i}function S(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const r=u.indexOf(n);-1!==r&&u.splice(r,1)}},50619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=t.toBytes=t.fromBytes=void 0;var n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r={},i={};function o(e,t,n){for(var r=0,i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=4096,i=function(){for(var e=[],t=0;t<256;++t)e[t]=255;for(t=0;t>2),n.charAt((3&a)<<4),"==");break}var s=t.charCodeAt(o++);if(o===i){r.push(n.charAt(a>>2),n.charAt((3&a)<<4|(240&s)>>4),n.charAt((15&s)<<2),"=");break}var l=t.charCodeAt(o++);r.push(n.charAt(a>>2),n.charAt((3&a)<<4|(240&s)>>4),n.charAt((15&s)<<2|(192&l)>>6),n.charAt(63&l))}return r.join("")};t.encode=o;var a=function(e){for(var t,n,o=String(e),a=[],s=o.length,l=0;;){do{t=i.charCodeAt(255&o.charCodeAt(l++))}while(255===t&&l>4));do{t=i.charCodeAt(255&o.charCodeAt(l++))}while(255===t&&l>2));do{n=i.charCodeAt(255&o.charCodeAt(l++))}while(255===n&&l{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base64=t.Base62=void 0;var r=n(50619);t.Base62=r;var i=n(82391);t.Base64=i},58367:e=>{"undefined"!=typeof self&&self,e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}([function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n(6))},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=E}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){return!!e&&"object"==typeof e}function b(e){return h(e)?i(e):a(e)}var E=9007199254740991,S="[object Arguments]",T="[object Function]",O="[object GeneratorFunction]",A=/^(?:0|[1-9]\d*)$/,C=Object.prototype,P=C.hasOwnProperty,I=C.toString,R=C.propertyIsEnumerable,N=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),k=Math.max,L=!R.call({valueOf:1},"valueOf"),w=Array.isArray,D=function(e){return s((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&u(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r=0&&(t[r]=n.join(": "))}})),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=["x-cdn","content-type"]},function(e,t,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var l=function(){throw new o},c=s?function(){try{return l}catch(e){try{return s(arguments,"callee").get}catch(e){return l}}}():l,u=n(46)(),d=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?void 0:d(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?d((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?d(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return h[t]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(10),y=n(49),_=g.call(Function.call,Array.prototype.concat),b=g.call(Function.apply,Array.prototype.splice),E=g.call(Function.call,String.prototype.replace),S=g.call(Function.call,String.prototype.slice),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,A=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return E(e,T,(function(e,t,n,r){i[i.length]=n?E(r,O,"$1"):t||e})),i},C=function(e,t){var n,i=e;if(y(m,i)&&(i="%"+(n=m[i])[0]+"%"),y(h,i)){var a=h[i];if(a===p&&(a=v(i)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var n=A(e),i=n.length>0?n[0]:"",a=C("%"+i+"%",t),l=a.name,c=a.value,u=!1,d=a.alias;d&&(i=d[0],b(n,_([0,1],d)));for(var p=1,f=!0;p=n.length){var E=s(c,v);c=(f=!!E)&&"get"in E&&!("originalValue"in E.get)?E.get:c[v]}else f=y(c,v),c=c[v];f&&!u&&(h[l]=c)}}return c}},function(e,t,n){"use strict";var r=n(48);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findMediaElement=t.getMuxPlayerId=void 0;var r=n(7),i=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||(0,r.generateShortID)()),e.muxId):e},o=function(e){var t=void 0;return e&&void 0!==e.nodeName?e=i(t=e):t=document.querySelector(e),[t,e,t&&t.nodeName?t.nodeName.toLowerCase():""]};t.getMuxPlayerId=i,t.findMediaElement=o},function(e,t,n){"use strict";function r(){return"1"===(i.default.doNotTrack||i.default.navigator&&(i.default.navigator.doNotTrack||i.default.navigator.msDoNotTrack))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i={exists:function(){var e=r.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=r.default.performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=r.default.performance,t=e&&e.timing;return t&&t.navigationStart}};t.default=i},function(e,t,n){"use strict";var r=n(44),i=n(54),o=n(11);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){"use strict";var r=n(11),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r=0&&t<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(s=t,!1!==n&&i(t),r.call(c,t,e),typeof console===l&&t0||t.video_source_duration>0)&&(t.video_source_is_live=!1),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=(0,l.extractHostnameAndDomain)(t.video_source_url),r=i(n,2),o=r[0],s=r[1];t.video_source_domain=s,t.video_source_hostname=o}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},k.prototype._updateStateData=function(){(0,a.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},k.prototype._sanitizeData=function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n})),["player_source_url","video_source_url"].forEach((function(t){if(e.data[t]){var n=e.data[t].toLowerCase();0!==n.indexOf("data:")&&0!==n.indexOf("blob:")||(e.data[t]="MSE style URL")}}))},k.prototype._resetVideoData=function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))},k.prototype._resetViewData=function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1},k.prototype._resetErrorData=function(e,t){delete this.data.player_error_code,delete this.data.player_error_message},k.prototype._initializeViewData=function(){var e=this,t=this.data.view_id=(0,s.generateUUID)();this.data.video_id||(this.data.video_id=(0,p.default)(this.data.player_source_url));var n=function(){t===e.data.view_id&&(0,d.default)(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()},k.prototype._restartHeartBeat=function(){var e=this;c.default.clearTimeout(this._heartBeatTimeout),this.viewErrored||(this._heartBeatTimeout=c.default.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))},k.prototype.addHLSJS=function(e){return e.hlsjs?this.hlsjs?void this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,void(0,f.monitorHlsJs)(this.mux,this.id,e.hlsjs,{},e.Hls||c.default.Hls)):void this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")},k.prototype.removeHLSJS=function(){this.hlsjs&&((0,f.stopMonitoringHlsJs)(this.hlsjs),this.hlsjs=void 0)},k.prototype.addDashJS=function(e){return e.dashjs?this.dashjs?void this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,void(0,h.monitorDashJS)(this.mux,this.id,e.dashjs)):void this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")},k.prototype.removeDashJS=function(){this.dashjs&&((0,h.stopMonitoringDashJS)(this.dashjs),this.dashjs=void 0)},t.default=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=o.default.createElement("a");t.href=e;var n=t.pathname.replace(/\.[^/.]+$/,"");return a.default.encode(t.host+n).split("=")[0]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(n(23)),a=r(n(25))},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(24);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r}).call(t,n(6))},function(e,t){},function(e,t,n){(function(e,r){var i;!function(r){"object"==typeof e&&e&&e.exports;var o=function(e){this.message=e};o.prototype=new Error,o.prototype.name="InvalidCharacterError";var a=function(e){throw new o(e)},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c=function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",c=-1;++c>(-2*i&6)));return o},u=function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n=e.length%3,r="",i=-1,o=e.length-n;++i>18&63)+s.charAt(t>>12&63)+s.charAt(t>>6&63)+s.charAt(63&t);return 2==n?(t=(e.charCodeAt(i)<<8)+e.charCodeAt(++i),r+=s.charAt(t>>10)+s.charAt(t>>4&63)+s.charAt(t<<2&63)+"="):1==n&&(t=e.charCodeAt(i),r+=s.charAt(t>>2)+s.charAt(t<<4&63)+"=="),r},d={encode:u,decode:c,version:"0.1.0"};void 0!==(i=function(){return d}.call(t,n,t,e))&&(e.exports=i)}()}).call(t,n(26)(e),n(6))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringHlsJs=t.monitorHlsJs=void 0;var i=r(n(8)),o=r(n(14)),a=n(5),s=function(e){if(!e)return{};var t=o.default.navigationStart(),n=e.loading,r=n?n.start:e.trequest,i=n?n.first:e.tfirst,a=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+r),responseStart:Math.round(t+i),responseEnd:Math.round(t+a)}},l=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return(0,i.default)(e.getAllResponseHeaders())},c=function(e,t,n){var r=arguments[4],i=e.log;if(o.default.exists()){var c=function(n,r){return e.emit(t,n,r)},u=function(e,t){var n=t.levels,r=t.audioTracks,i=t.url,o=t.stats,u=t.networkDetails,d={},p={};n.forEach((function(e,t){d[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),r.forEach((function(e,t){p[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var f=s(o),h=f.bytesLoaded,v=f.requestStart,m=f.responseStart,g=f.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:h,request_start:v,request_response_start:m,request_response_end:g,request_type:"manifest",request_hostname:(0,a.extractHostname)(i),request_response_headers:l(u),request_rendition_lists:{media:d,audio:p,video:{}}})};n.on(r.Events.MANIFEST_LOADED,u);var d=function(e,t){var n=t.details,r=t.level,i=t.networkDetails,o=t.stats,u=s(o),d=u.bytesLoaded,p=u.requestStart,f=u.responseStart,h=u.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:d,request_start:p,request_response_start:f,request_response_end:h,request_current_level:r,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(i)})};n.on(r.Events.LEVEL_LOADED,d);var p=function(e,t){var n=t.details,r=t.networkDetails,i=t.stats,o=s(i),u=o.bytesLoaded,d=o.requestStart,p=o.responseStart,f=o.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(r)})};n.on(r.Events.AUDIO_TRACK_LOADED,p);var f=function(e,t){var r=t.stats,i=t.networkDetails,o=t.frag,u=s(r),d={request_event_type:e,request_bytes_loaded:u.bytesLoaded,request_start:u.requestStart,request_response_start:u.responseStart,request_response_end:u.responseEnd,request_hostname:i?(0,a.extractHostname)(i.responseURL):void 0,request_response_headers:l(i),request_media_duration:o.duration};"main"===o.type?(d.request_type="media",d.request_current_level=o.level,d.request_video_width=(n.levels[o.level]||{}).width,d.request_video_height=(n.levels[o.level]||{}).height):d.request_type=o.type,c("requestcompleted",d)};n.on(r.Events.FRAG_LOADED,f);var h=function(e,t){var n=t.details,i=t.response,o=t.context,s=t.frag;if(n===r.ErrorDetails.MANIFEST_LOAD_ERROR||n===r.ErrorDetails.MANIFEST_LOAD_TIMEOUT||n===r.ErrorDetails.FRAG_LOAD_ERROR||n===r.ErrorDetails.FRAG_LOAD_TIMEOUT||n===r.ErrorDetails.LEVEL_LOAD_ERROR||n===r.ErrorDetails.LEVEL_LOAD_TIMEOUT){var l=s&&s.url||o&&o.url||"";c("requestfailed",{request_error:n,request_url:l,request_hostname:(0,a.extractHostname)(l),request_type:n===r.ErrorDetails.FRAG_LOAD_ERROR||n===r.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":"manifest",request_error_code:i&&i.code,request_error_text:i&&i.text})}};n.on(r.Events.ERROR,h);var v=function(e,t){var n=t.frag,r=n&&n._url||"";c("requestcanceled",{request_cancel:e,request_url:r,request_type:"media",request_hostname:(0,a.extractHostname)(r)})};n.on(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,v);var m=function(e,t){var r=t.level,o=n.levels[r];if(o&&o.attrs&&o.attrs.BANDWIDTH){var a=o.attrs.BANDWIDTH;a?c("renditionchange",{video_source_bitrate:a,video_source_width:o.width,video_source_height:o.height}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(r.Events.LEVEL_SWITCHED,m),n._stopMuxMonitor=function(){n.off(r.Events.MANIFEST_LOADED,u),n.off(r.Events.LEVEL_LOADED,d),n.off(r.Events.AUDIO_TRACK_LOADED,p),n.off(r.Events.FRAG_LOADED,f),n.off(r.Events.ERROR,h),n.off(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,v),n.off(r.Events.LEVEL_SWITCHED,m),n.off(r.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(r.Events.DESTROYING,n._stopMuxMonitor)}else i.warn("performance timing not supported. Not tracking HLS.js.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorHlsJs=c,t.stopMonitoringHlsJs=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringDashJS=t.monitorDashJS=void 0;var i=r(n(0)),o=r(n(8)),a=n(5),s=function(e,t){if(!e||"function"!=typeof e.getRequests)return{};var n=e.getRequests({state:"executed"});if(0===n.length)return{};var r=n[n.length-1],i=(0,a.extractHostname)(r.url),s=r.bytesLoaded,l=new Date(r.requestStartDate).getTime(),c=new Date(r.firstByteDate).getTime(),u=new Date(r.requestEndDate).getTime(),d=isNaN(r.duration)?0:r.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(r.mediaType).HttpList:t.getDashMetrics().getHttpRequests(r.mediaType),f=void 0;return p.length>0&&(f=(0,o.default)(p[p.length-1]._responseHeaders||"")),{requestStart:l,requestResponseStart:c,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:f,requestMediaDuration:d,requestHostname:i}},l=function(e,t){var n=t.getQualityFor(e),r=t.getCurrentTrackFor(e).bitrateList;return r?{currentLevel:n,renditionWidth:r[n].width||null,renditionHeight:r[n].height||null,renditionBitrate:r[n].bandwidth}:{}},c=function(e,t,n){var r=e.log;if(n&&n.on){var o=function(n,r){return e.emit(t,n,r)},c=function(e){var t=e.type,n=(e.data||{}).url;o("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:(0,a.extractHostname)(n)})};n.on("manifestLoaded",c);var u={},d=function(e){var t=e.type,r=e.fragmentModel,i=(e.chunk||{}).mediaInfo||{},a=i.type,l=i.bitrateList,c={};(l=l||[]).forEach((function(e,t){c[t]={},c[t].width=e.width,c[t].height=e.height,c[t].bitrate=e.bandwidth,c[t].attrs={}})),"video"===a?u.video=c:"audio"===a?u.audio=c:u.media=c;var d=s(r,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,v=d.requestResponseHeaders,m=d.requestMediaDuration,g=d.requestHostname;o("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:-1,request_type:a+"_init",request_response_headers:v,request_hostname:g,request_media_duration:m,request_rendition_lists:u})};n.on("initFragmentLoaded",d);var p=function(e){var t=e.type,r=e.fragmentModel,i=e.chunk||{},a=i.mediaInfo,c=i.start,u=(a||{}).type,d=s(r,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,v=d.requestBytesLoaded,m=d.requestResponseHeaders,g=d.requestMediaDuration,y=d.requestHostname,_=l(u,n),b=_.currentLevel,E=_.renditionWidth,S=_.renditionHeight,T=_.renditionBitrate;o("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:v,request_type:u,request_response_headers:m,request_hostname:y,request_media_start_time:c,request_media_duration:g,request_current_level:b,request_labeled_bitrate:T,request_video_width:E,request_video_height:S})};n.on("mediaFragmentLoaded",p);var f={video:void 0,audio:void 0,totalBitrate:void 0},h=function(){if(f.video&&"number"==typeof f.video.bitrate){if(!f.video.width||!f.video.height)return void r.warn("have bitrate info for video but missing width/height");var e=f.video.bitrate;return f.audio&&"number"==typeof f.audio.bitrate&&(e+=f.audio.bitrate),e!==f.totalBitrate?(f.totalBitrate=e,{video_source_bitrate:e,video_source_height:f.video.height,video_source_width:f.video.width}):void 0}},v=function(e,t,i){if("number"==typeof e.newQuality){var a=e.mediaType;if("audio"===a||"video"===a){var s=n.getBitrateInfoListFor(a).find((function(t){return t.qualityIndex===e.newQuality}));if(!s||"number"!=typeof s.bitrate)return void r.warn("missing bitrate info for "+a);f[a]=s;var l=h();l&&o("renditionchange",l)}}else r.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",v);var m=function(e){var t=e.error,n=e.event,r=(n=n||{}).request||{},s=i.default.event&&i.default.event.currentTarget||{};o("requestfailed",{request_error:t+"_"+n.id+"_"+r.type,request_url:n.url,request_hostname:(0,a.extractHostname)(n.url),request_type:r.mediaType,request_error_code:s.status,request_error_type:s.statusText})};n.on("error",m),n._stopMuxMonitor=function(){n.off("manifestLoaded",c),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",p),n.off("qualityChangeRendered",v),n.off("error",m),delete n._stopMuxMonitor}}else r.warn("Invalid dash.js player reference. Monitoring blocked.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorDashJS=c,t.stopMonitoringDashJS=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){},i=0;r.prototype.on=function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++i,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t},r.prototype.off=function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,r){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(r,1)}))},r.prototype.one=function(e,t,n){var r=this;t._eventEmitterGuid=t._eventEmitterGuid||++i;var o=function i(){r.off(e,i),t.apply(n||this,arguments)};o._eventEmitterGuid=t._eventEmitterGuid,this.on(e,o)},r.prototype.emit=function(e,t){var n=this;if(this._listeners){t=t||{};var r=this._listeners["before*"]||[],i=this._listeners[e]||[],o=this._listeners["after"+e]||[],a=function(t,r){(t=t.slice()).forEach((function(t){t.call(n,{type:e},r)}))};a(r,t),a(i,t),a(o,t)}},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=function(){this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,this.on("playing",(function(){this._playheadShouldBeProgressing=!0})),this.on("play",this._startPlaybackHeartbeatInterval),this.on("playing",this._startPlaybackHeartbeatInterval),this.on("adbreakstart",this._startPlaybackHeartbeatInterval),this.on("adplay",this._startPlaybackHeartbeatInterval),this.on("adplaying",this._startPlaybackHeartbeatInterval),this.on("seeking",this._startPlaybackHeartbeatInterval),this.on("devicewake",this._startPlaybackHeartbeatInterval),this.on("viewstart",this._startPlaybackHeartbeatInterval),this.on("pause",this._stopPlaybackHeartbeatInterval),this.on("ended",this._stopPlaybackHeartbeatInterval),this.on("viewend",this._stopPlaybackHeartbeatInterval),this.on("error",this._stopPlaybackHeartbeatInterval),this.on("aderror",this._stopPlaybackHeartbeatInterval),this.on("adpause",this._stopPlaybackHeartbeatInterval),this.on("adended",this._stopPlaybackHeartbeatInterval),this.on("adbreakend",this._stopPlaybackHeartbeatInterval),this.on("seeked",(function(){this.data.player_is_paused?this._stopPlaybackHeartbeatInterval():this._startPlaybackHeartbeatInterval()})),this.on("timeupdate",(function(){null!==this._playbackHeartbeatInterval&&this.emit("playbackheartbeat")})),this.on("devicesleep",(function(e,t){null!==this._playbackHeartbeatInterval&&(r.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend",{viewer_time:t.viewer_time}),this._playbackHeartbeatInterval=null)}))};i.prototype._startPlaybackHeartbeatInterval=function(){var e=this;null===this._playbackHeartbeatInterval&&(this.emit("playbackheartbeat"),this._playbackHeartbeatInterval=r.default.setInterval((function(){e.emit("playbackheartbeat")}),this.playbackHeartbeatTime))},i.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(r.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)},t.default=i},function(e,t,n){"use strict";function r(){var e=this;this.on("viewinit",(function(){e.viewErrored=!1})),this.on("error",(function(){try{var t=e.errorTranslator({player_error_code:e.data.player_error_code,player_error_message:e.data.player_error_message});t?(e.data.player_error_code=t.player_error_code,e.data.player_error_message=t.player_error_message,e.viewErrored=!0):(delete e.data.player_error_code,delete e.data.player_error_message)}catch(t){e.mux.log.warn("Exception in error translator callback.",t),e.viewErrored=!0}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=function(){this._watchTimeTrackerLastCheckedTime=null,this.on("playbackheartbeat",this._updateWatchTime),this.on("playbackheartbeatend",this._clearWatchTimeState)};i.prototype._updateWatchTime=function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),(0,r.default)(this.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n},i.prototype._clearWatchTimeState=function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=function(){this._playbackTimeTrackerLastPlayheadPosition=-1,this.on("playbackheartbeat",this._updatePlaybackTime),this.on("playbackheartbeatend",this._clearPlaybackTimeState),this.on("seeking",this._clearPlaybackTimeState)};i.prototype._updatePlaybackTime=function(){var e=this.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&(0,r.default)(this.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e},i.prototype._clearPlaybackTimeState=function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){this.on("playbackheartbeat",this._updatePlayheadTime),this.on("playbackheartbeatend",this._updatePlayheadTime),this.on("timeupdate",this._updatePlayheadTime),this.on("destroy",(function(){this.off("timeupdate",this._updatePlayheadTime)}))};r.prototype._updateMaxPlayheadPosition=function(){this.data.view_max_playhead_position=void 0===this.data.view_max_playhead_position?this.data.player_playhead_time:Math.max(this.data.view_max_playhead_position,this.data.player_playhead_time)},r.prototype._updatePlayheadTime=function(e,t){if(t.player_playhead_time)this.data.player_playhead_time=t.player_playhead_time,this._updateMaxPlayheadPosition();else if(this.getPlayheadTime){var n=this.getPlayheadTime();void 0!==n&&(this.data.player_playhead_time=n,this._updateMaxPlayheadPosition())}},t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(3)),o=r(n(2)),a=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,this.on("playbackheartbeat",this._checkIfRebuffering),this.on("playbackheartbeatend",this._cleanupRebufferTracker),this.on("seeking",(function(){this._cleanupRebufferTracker(null,{viewer_time:i.default.now()})}))};a.prototype._checkIfRebuffering=function(e,t){if(!this.disableRebufferTracking){if(this.isSeeking||this.isAdBreak||!this._playheadShouldBeProgressing)return void this._cleanupRebufferTracker(e,t);if(null===this._lastCheckedTime)return this._prepareRebufferTrackerState(t.viewer_time),void this._updateRebufferMetrics();if(this._lastPlayheadTime!==this.data.player_playhead_time)return void this._cleanupRebufferTracker(e,t,!0);var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;n>=this.sustainedRebufferThreshold&&(this._rebuffering?this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime):(this._rebuffering=!0,(0,o.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(n),this.emit("rebufferstart"))),this._lastCheckedTime=t.viewer_time}},a.prototype._clearRebufferTrackerState=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null},a.prototype._prepareRebufferTrackerState=function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e},a.prototype._cleanupRebufferTracker=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.disableRebufferTracking){if(this._rebuffering)this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return void this._updateRebufferMetrics();var r=this.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;r>0&&i-r>this.minimumRebufferDuration?((0,o.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(i-r),this.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-r})):this._updateRebufferMetrics()}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}},a.prototype._updateRebufferMetrics=function(e){e>0&&(0,o.default)(this.data,"view_rebuffer_duration",e),this.data.view_watch_time>=0&&this.data.view_rebuffer_count>0&&(this.data.view_rebuffer_frequency=this.data.view_rebuffer_count/this.data.view_watch_time,this.data.view_rebuffer_percentage=this.data.view_rebuffer_duration/this.data.view_watch_time)},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(3)),i=function(){this.on("viewinit",(function(){var e=this.data,t=e.view_id;if(!e.view_program_changed){var n=function(e,n){var i=n.viewer_time;"playing"===e.type&&void 0===this.data.view_time_to_first_frame?this.calculateTimeToFirstFrame(i||r.default.now(),t):"adplaying"!==e.type||void 0!==this.data.view_time_to_first_frame&&!this.inPrerollPosition()||this.calculateTimeToFirstFrame(i||r.default.now(),t)};this.one("playing",n),this.one("adplaying",n),this.one("viewend",(function(){this.off("playing",n),this.off("adplaying",n)}))}}))};i.prototype.calculateTimeToFirstFrame=function(e,t){t===this.data.view_id&&(this._updateWatchTime(null,{viewer_time:e}),this.data.view_time_to_first_frame=this.data.view_watch_time,(this.data.player_autoplay_on||this.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.data.view_aggregate_startup_time=this.data.view_start+this.data.view_watch_time-this.NAVIGATION_START))},t.default=i},function(e,t,n){"use strict";function r(){var e=this;this.on("viewinit",(function(){this._lastPlayheadPosition=-1}));var t=["playing","hb"];["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(t){e.on(t,(function(){if(this._lastPlayheadPosition>=0&&this.data.player_playhead_time>=0&&this._lastPlayerWidth>=0&&this._lastSourceWidth>0&&this._lastPlayerHeight>=0&&this._lastSourceHeight>0){var e=this.data.player_playhead_time-this._lastPlayheadPosition;if(e<0)return void(this._lastPlayheadPosition=-1);var t=Math.min(this._lastPlayerWidth/this._lastSourceWidth,this._lastPlayerHeight/this._lastSourceHeight),n=Math.max(0,t-1),r=Math.max(0,1-t);this.data.view_max_upscale_percentage=Math.max(this.data.view_max_upscale_percentage||0,n),this.data.view_max_downscale_percentage=Math.max(this.data.view_max_downscale_percentage||0,r),(0,i.default)(this.data,"view_total_content_playback_time",e),(0,i.default)(this.data,"view_total_upscaling",n*e),(0,i.default)(this.data,"view_total_downscaling",r*e)}this._lastPlayheadPosition=-1}))})),t.forEach((function(t){e.on(t,(function(){this._lastPlayheadPosition=this.data.player_playhead_time,this._lastPlayerWidth=this.data.player_width,this._lastPlayerHeight=this.data.player_height,this._lastSourceWidth=this.data.video_source_width,this._lastSourceHeight=this.data.video_source_height}))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(){this.isSeeking=!1,this.on("seeking",(function(e,t){(0,s.default)(this.data,t),this._lastSeekingTime=o.default.now(),!1===this.isSeeking&&(this.isSeeking=!0,this.send("seeking"))})),this.on("seeked",(function(){this.isSeeking=!1;var e=this._lastSeekingTime||o.default.now(),t=o.default.now()-e;(0,a.default)(this.data,"view_seek_count",1),(0,a.default)(this.data,"view_seek_duration",t);var n=this.data.view_max_seek_time||0;this.data.view_max_seek_time=Math.max(n,t)})),this.on("viewend",(function(){this.isSeeking=!1}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(n(3)),a=r(n(2)),s=r(n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=r(n(2)),a=n(5),s=r(n(1)),l=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},c=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror"],u=function(){var e=this;this.on("viewinit",(function(){this.isAdBreak=!1,this._currentAdRequestNumber=0,this._currentAdResponseNumber=0,this._adRequests=[],this._adResponses=[],this._adHasPlayed=!1,this._wouldBeNewAdPlay=!0,this._prerollPlayTime=void 0})),c.forEach((function(t){return e.on(t,e._updateAdData)}));var t=function(){e.isAdBreak=!1};this.on("adbreakstart",(function(){this.isAdBreak=!0})),this.on("play",t),this.on("playing",t),this.on("viewend",t),this.on("adrequest",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdRequestNumber++},t),l(this._adRequests,t),(0,o.default)(this.data,"view_ad_request_count"),this.inPrerollPosition()&&(this.data.view_preroll_requested=!0,this._adHasPlayed||(0,o.default)(this.data,"view_preroll_request_count"))})),this.on("adresponse",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdResponseNumber++},t),l(this._adResponses,t);var n=this.findAdRequest(t.ad_request_id);n&&(0,o.default)(this.data,"view_ad_request_time",Math.max(0,t.viewer_time-n.viewer_time))})),this.on("adplay",(function(e,t){this._adHasPlayed=!0,this._wouldBeNewAdPlay&&(this._wouldBeNewAdPlay=!1,(0,o.default)(this.data,"view_ad_played_count")),this.inPrerollPosition()&&!this.data.view_preroll_played&&(this.data.view_preroll_played=!0,this._adRequests.length>0&&(this.data.view_preroll_request_time=Math.max(0,t.viewer_time-this._adRequests[0].viewer_time)),this.data.view_start&&(this.data.view_startup_preroll_request_time=Math.max(0,t.viewer_time-this.data.view_start)),this._prerollPlayTime=t.viewer_time)})),this.on("adplaying",(function(e,t){this.inPrerollPosition()&&void 0===this.data.view_preroll_load_time&&void 0!==this._prerollPlayTime&&(this.data.view_preroll_load_time=t.viewer_time-this._prerollPlayTime,this.data.view_startup_preroll_load_time=t.viewer_time-this._prerollPlayTime)})),this.on("adended",(function(){this._wouldBeNewAdPlay=!0})),this.on("aderror",(function(){this._wouldBeNewAdPlay=!0}))};u.prototype.inPrerollPosition=function(){return void 0===this.data.view_content_playback_time||this.data.view_content_playback_time<=1e3},u.prototype.findAdRequest=function(e){for(var t=0;t3e4&&(this.emit("devicesleep",{viewer_time:n}),(0,o.default)(this.data,{viewer_time:n}),this.send("devicesleep"),this.emit("devicewake",{viewer_time:t}),(0,o.default)(this.data,{viewer_time:t}),this.send("devicewake"))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(n(0)),a=n(43),s=r(n(4)),l=r(n(56)),c=r(n(13)),u=r(n(57)),d=r(n(17)),p=r(n(58)),f=r(n(1)),h=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],v=["viewstart","error","ended","viewend"],m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.mux=e,this.envKey=t,this.eventQueue=new p.default((0,l.default)(t,n.beaconDomain)),this.previousBeaconData=null,this.lastEventTime=null,this.sampleRate=n.sampleRate,this.disableCookies=n.disableCookies,this.respectDoNotTrack=n.respectDoNotTrack;var r=n.platform||{};this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:r.name,viewer_application_version:r.version,viewer_application_engine:r.layout,viewer_device_name:r.product,viewer_device_category:"",viewer_device_manufacturer:r.manufacturer,viewer_os_family:r.os&&r.os.family,viewer_os_architecture:r.os&&r.os.architecture,viewer_os_version:r.os&&r.os.version};var i=(0,u.default)();i&&(this.pageLevelData=(0,f.default)(this.pageLevelData,{viewer_connection_type:i})),void 0!==o.default&&o.default.location&&o.default.location.href&&(this.pageLevelData.page_url=o.default.location.href),this.viewerData=this.disableCookies?{}:(0,a.getAndUpdateViewerData)()};m.prototype.send=function(e,t){if(e){if(this.respectDoNotTrack&&(0,c.default)())return s.default.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==(void 0===t?"undefined":i(t)))return s.default.error("A data object was expected in send() but was not provided");var n=this.disableCookies?{}:(0,a.getAndUpdateSessionData)(),r={};(0,f.default)(r,this.pageLevelData),(0,f.default)(r,t),(0,f.default)(r,n),(0,f.default)(r,this.viewerData),r.event=e,r.env_key=this.envKey,r.user_id&&(r.viewer_user_id=r.user_id,delete r.user_id);var o=r.mux_sample_number>=this.sampleRate,l=this._deduplicateBeaconData(e,r),u=(0,d.default)(l);if(this.lastEventTime=this.mux.utils.now(),o)return s.default.info("Not sending event due to sample rate restriction",e,r,u);if(!this.envKey)return s.default.info("Not sending event due to missing environment key",e,r,u);if(!this.rateLimited)if(s.default.info("Sending event",e,r,u),this.rateLimited=!this.eventQueue.queueEvent(e,u),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(v.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return r.event="eventrateexceeded",u=(0,d.default)(r),this.eventQueue.queueEvent(r.event,u),s.default.error("Beaconing disabled due to rate limit.")}},m.prototype.destroy=function(){this.eventQueue.destroy(!1)};var g=function(e,t,n,r){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===(void 0===n?"undefined":i(n))&&"object"===(void 0===r?"undefined":i(r))&&Object.keys(n||{}).length===Object.keys(r||{}).length)},y=function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")};m.prototype._deduplicateBeaconData=function(e,t){var n=this,r={},i=t.view_id;if(!i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)r=(0,f.default)({},t),i&&(this.previousBeaconData=r),i&&"viewend"===e&&(this.previousBeaconData=null);else{var o=0===e.indexOf("request");Object.keys(t).forEach((function(i){var a=t[i];(a!==n.previousBeaconData[i]||h.indexOf(i)>-1||g(o,i,a,n.previousBeaconData[i])||y(e,i))&&(r[i]=a,n.previousBeaconData[i]=a)}))}return r},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAndUpdateSessionData=t.getAndUpdateViewerData=void 0;var i=r(n(15)),o=r(n(55)),a=n(7),s=r(n(3)),l=function(){var e=void 0;try{e=i.default.parse(o.default.get("muxData")||"")}catch(t){e={}}return e},c=function(e){try{o.default.set("muxData",i.default.stringify(e),{expires:7300})}catch(e){}},u=function(){var e=l();return e.mux_viewer_id=e.mux_viewer_id||(0,a.generateUUID)(),e.msn=e.msn||Math.random(),c(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},d=function(){var e=l(),t=s.default.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex0?S.join(",")||null:void 0}];else if(l(d))T=d;else{var A=Object.keys(S);T=p?A.sort(p):A}for(var C=0;C0?y+g:""}},function(e,t,n){"use strict";var r=n(9),i=n(50),o=n(52),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),p=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),v=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},m=function(e,t){var n=v(e,t);return n&&n.value},g=function(e,t,n){var r=v(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!v(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return p(t,r)}else if(n)return m(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return h(t,r)}else if(n)return y(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,i)):l?(t||(t=new l),f(t,r,i)):(n||(n={key:{},next:null}),g(n,r,i))}};return r}},function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(47);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),a=function(){if(this instanceof n){var i=t.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return t.apply(e,o.concat(r.call(arguments)))},s=Math.max(0,t.length-o.length),l=[],c=0;c-1?i(n):n}},function(e,t,n){"use strict";var r=n(10),i=n(9),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var d=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){function r(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function i(e){return String(e).replace(/"/g,""")}function o(e){return!("[object Array]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function a(e){return!("[object Date]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function s(e){return!("[object RegExp]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function l(e){return!("[object Error]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function c(e){return!("[object String]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function u(e){return!("[object Number]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function d(e){return!("[object Boolean]"!==v(e)||ne&&"object"==typeof e&&ne in e)}function p(e){if(X)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!$)return!1;try{return $.call(e),!0}catch(e){}return!1}function f(e){if(!e||"object"!=typeof e||!Y)return!1;try{return Y.call(e),!0}catch(e){}return!1}function h(e,t){return re.call(e,t)}function v(e){return q.call(e)}function m(e){if(e.name)return e.name;var t=W.call(K.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function g(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return O(e.slice(0,t.maxStringLength),t)+i}return r(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,A),"single",t)}function A(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function C(e){return"Object("+e+")"}function P(e){return e+" { ? }"}function I(e,t,n,r){return e+" ("+t+") {"+(r?k(n,r):n.join(", "))+"}"}function R(e){for(var t=0;t=0)return!1;return!0}function N(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}function k(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function L(e,t){var n=o(e),r=[];if(n){r.length=e.length;for(var i=0;i0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return O(t,U);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var V=void 0===U.depth?5:U.depth;if(void 0===A&&(A=0),A>=V&&V>0&&"object"==typeof t)return o(t)?"[Array]":"[Object]";var j=N(U,A);if(void 0===w)w=[];else if(g(w,t)>=0)return"[Circular]";if("function"==typeof t){var H=m(t),q=L(t,D);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(q.length>0?" { "+q.join(", ")+" }":"")}if(p(t)){var K=X?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):$.call(t);return"object"!=typeof t||X?K:C(K)}if(T(t)){for(var W="<"+String(t.nodeName).toLowerCase(),J=t.attributes||[],Q=0;Q"}if(o(t)){if(0===t.length)return"[]";var ee=L(t,D);return j&&!R(ee)?"["+k(ee,j)+"]":"[ "+ee.join(", ")+" ]"}if(l(t)){var re=L(t,D);return 0===re.length?"["+String(t)+"]":"{ ["+String(t)+"] "+re.join(", ")+" }"}if("object"==typeof t&&F){if(te&&"function"==typeof t[te])return t[te]();if("symbol"!==F&&"function"==typeof t.inspect)return t.inspect()}if(y(t)){var ie=[];return x.call(t,(function(e,n){ie.push(D(n,t,!0)+" => "+D(e,t))})),I("Map",M.call(t),ie,j)}if(E(t)){var oe=[];return B.call(t,(function(e){oe.push(D(e,t))})),I("Set",z.call(t),oe,j)}if(_(t))return P("WeakMap");if(S(t))return P("WeakSet");if(b(t))return P("WeakRef");if(u(t))return C(D(Number(t)));if(f(t))return C(D(Y.call(t)));if(d(t))return C(G.call(t));if(c(t))return C(D(String(t)));if(!a(t)&&!s(t)){var ae=L(t,D),se=Z?Z(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",ce=!se&&ne&&Object(t)===t&&ne in t?v(t).slice(8,-1):le?"Object":"",ue=(se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ce||le?"["+[].concat(ce||[],le||[]).join(": ")+"] ":"");return 0===ae.length?ue+"{}":j?ue+"{"+k(ae,j)+"}":ue+"{ "+ae.join(", ")+" }"}return String(t)};var re=Object.prototype.hasOwnProperty||function(e){return e in this}},function(e,t){},function(e,t,n){"use strict";var r=n(16),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),f=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(c,v)?c[v]=r.combine(c[v],m):c[v]=m}return c},u=function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[c]=i:a={0:i}}i=a}return i},d=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,d=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;d.push(c)}for(var p=0;n.depth>0&&null!==(l=s.exec(o))&&p1){if("number"==typeof(o=t({path:"/"},r.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",i,o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),i.default.clearTimeout(this._sendTimeout)},d.prototype._clearBeaconQueue=function(){var e=i.default.navigator,t=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,n=this._eventQueue.slice(t);if(t>0&&(0,s.default)(n[n.length-1],(0,l.default)({mux_view_message:"event queue truncated"})),e.sendBeacon)e.sendBeacon(this._beaconUrl,JSON.stringify({events:n}));else if(i.default.XMLHttpRequest){var r=new i.default.XMLHttpRequest;r.open("POST",this._beaconUrl),r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify({events:n}))}else a.default.send(this._beaconUrl,n[n.length-1])},d.prototype._sendBeaconQueue=function(){var e=this;if(i.default.XMLHttpRequest&&!this._postInFlight){var t=new i.default.XMLHttpRequest,n=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0,t.onreadystatechange=function(){4===t.readyState&&(200!==t.status?(e._eventQueue=n.concat(e._eventQueue),e._failureCount+=1,o.default.info("Error sending beacon: "+t.status),o.default.info(t.responseText)):e._failureCount=0,e._postInFlight=!1)},t.open("POST",this._beaconUrl),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify({events:n}))}},d.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},d.prototype._startBeaconSending=function(){var e=this;i.default.clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=i.default.setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=r(n(0)),a={send:function(e,t){function n(){r.src=s+(a?"&rc="+a:"")}var r=new Image,a=0,s=e+"?"+i.default.stringify(t);return r.addEventListener("error",(function(){a>3||o.default.setTimeout((function(){a++,n()}),5e3*a)})),n(),r}};t.default=a},function(e,t,n){"use strict";function r(){function e(e,t){var n=t.request_start,l=t.request_response_start,c=t.request_response_end,u=t.request_bytes_loaded;a++;var d=void 0,p=void 0;if(l?(d=l-n,p=c-l):p=c-n,p>0&&u>0){var f=u/p*8e3;s++,i+=u,o+=p,this.data.view_min_request_throughput=Math.min(this.data.view_min_request_throughput||1/0,f),this.data.view_average_request_throughput=i/o*8e3,this.data.view_request_count=a,d>0&&(r+=d,this.data.view_max_request_latency=Math.max(this.data.view_max_request_latency||0,d),this.data.view_average_request_latency=r/s)}}function t(e,t){a++,l++,this.data.view_request_count=a,this.data.view_request_failed_count=l}function n(e,t){a++,c++,this.data.view_request_count=a,this.data.view_request_canceled_count=c}var r=0,i=0,o=0,a=0,s=0,l=0,c=0;this.on("requestcompleted",e),this.on("requestfailed",t),this.on("requestcanceled",n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=(0,s.findMediaElement)(t),u=o(r,3),d=u[0],p=u[1],f=u[2],h=e.log,v=e.utils.getComputedStyle,m=e.utils.secondsToMs,g={automaticErrorTracking:!0};if(!d)return h.error("No element was found with the `"+p+"` query selector.");if("video"!==f&&"audio"!==f)return h.error("The element of `"+p+"` was not a media element.");(n=(0,a.default)(g,n)).data=(0,a.default)({player_software:"HTML5 Video Element",player_software_version:"No Versions",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:"4.2.3"},n.data),n.getPlayheadTime=function(){return m(d.currentTime)},n.getStateData=function(){var e=this.hlsjs&&this.hlsjs.url,t=this.dashjs&&i("function"===this.dashjs.getSource)&&this.dashjs.getSource();return{player_is_paused:d.paused,player_playhead_time:m(d.currentTime),player_width:parseInt(v(d,"width")),player_height:parseInt(v(d,"height")),player_autoplay_on:d.autoplay,player_preload_on:d.preload,video_poster_url:d.poster,video_source_url:e||t||d.currentSrc,video_source_duration:m(d.duration),video_source_height:d.videoHeight,video_source_width:d.videoWidth}},d.mux=d.mux||{},d.mux.deleted=!1,d.mux.emit=function(t,n){e.emit(p,t,n)};var y=function(){h.error("The monitor for this video element has already been destroyed.")};d.mux.destroy=function(){Object.keys(d.mux.listeners).forEach((function(e){d.removeEventListener(e,d.mux.listeners[e],!1)})),delete d.mux.listeners,d.mux.destroy=y,d.mux.swapElement=y,d.mux.emit=y,d.mux.addHLSJS=y,d.mux.addDashJS=y,d.mux.removeHLSJS=y,d.mux.removeDashJS=y,d.mux.deleted=!0,e.emit(p,"destroy")},d.mux.swapElement=function(t){var n=(0,s.findMediaElement)(t),r=o(n,3),i=r[0],l=r[1],c=r[2];return i?"video"!==c&&"audio"!==c?e.log.error("The element of `"+l+"` was not a media element."):(i.muxId=d.muxId,delete d.muxId,i.mux=i.mux||{},i.mux.listeners=(0,a.default)({},d.mux.listeners),delete d.mux.listeners,Object.keys(i.mux.listeners).forEach((function(e){d.removeEventListener(e,i.mux.listeners[e],!1),i.addEventListener(e,i.mux.listeners[e],!1)})),i.mux.swapElement=d.mux.swapElement,i.mux.destroy=d.mux.destroy,delete d.mux,void(d=i)):e.log.error("No element was found with the `"+l+"` query selector.")},d.mux.addHLSJS=function(t){e.addHLSJS(p,t)},d.mux.addDashJS=function(t){e.addDashJS(p,t)},d.mux.removeHLSJS=function(){e.removeHLSJS(p)},d.mux.removeDashJS=function(){e.removeDashJS(p)},e.init(p,n),e.emit(p,"playerready"),d.paused||(e.emit(p,"play"),d.readyState>2&&e.emit(p,"playing")),d.mux.listeners={},l.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(d.mux.listeners[t]=function(){var n={};if("error"===t){if(!d.error)return;n.player_error_code=d.error.code,n.player_error_message=c[d.error.code]||d.error.message}e.emit(p,t,n)},d.addEventListener(t,d.mux.listeners[t],!1))}))}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=r;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),s=n(12),l=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],c={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(63)),o=r(n(2)),a=r(n(64)),s=r(n(65)),l=r(n(1)),c=r(n(8)),u=n(5),d=r(n(3)),p={};p.safeCall=i.default,p.safeIncrement=o.default,p.getComputedStyle=a.default,p.secondsToMs=s.default,p.assign=l.default,p.headersStringToObject=c.default,p.extractHostnameAndDomain=u.extractHostnameAndDomain,p.extractHostname=u.extractHostname,p.now=d.default.now,t.default=p},function(e,t,n){"use strict";function r(e,t,n,r){var o=r;if(e&&"function"==typeof e[t])try{o=e[t].apply(e,n)}catch(e){i.default.info("safeCall error",e)}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(4))},function(e,t,n){"use strict";function r(e,t){if(e&&t&&i.default&&"function"==typeof i.default.getComputedStyle){var n=void 0;return o&&o.has(e)&&(n=o.get(e)),n||(n=i.default.getComputedStyle(e,null),o&&o.set(e,n)),n.getPropertyValue(t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),o=void 0;i.default&&i.default.WeakMap&&(o=new WeakMap)},function(e,t,n){"use strict";function r(e){return Math.floor(1e3*e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}])},27982:(e,t,n)=>{"use strict";var r;n.d(t,{D:()=>r}),function(e){e.CAPPING_USER_IS_CAPPED="CAPPING_USER_IS_CAPPED",e.EME_API_NOT_SUPPORTED="EME_API_NOT_SUPPORTED",e.EME_MEDIA_KEYS_NOT_SUPPORTED="EME_MEDIA_KEYS_NOT_SUPPORTED",e.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED="EME_MEDIA_KEY_SESSION_NOT_SUPPORTED",e.EME_NO_SUPPORTED_KEYSYSTEM="EME_NO_SUPPORTED_KEYSYSTEM",e.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED="EME_PLAYER_MEDIA_KEYS_SETTING_FAILED",e.EME_ERROR_UNKNOWN="EME_ERROR_UNKNOWN",e.EME_LICENSE_REQUEST_EMPTY_RESPONSE="EME_LICENSE_REQUEST_EMPTY_RESPONSE",e.EME_LICENSE_REQUEST_FAILED_WITH_STATUS="EME_LICENSE_REQUEST_FAILED_WITH_STATUS",e.EME_LICENSE_REQUEST_WIDEVINE_ERROR="EME_LICENSE_REQUEST_WIDEVINE_ERROR",e.EME_LICENSE_UPDATE_FAILED="EME_LICENSE_UPDATE_FAILED",e.EME_HEADER_KEY_VALUE_MISMATCH="EME_HEADER_KEY_VALUE_MISMATCH",e.EME_HEADER_MISSING_CHALLENGE="EME_HEADER_MISSING_CHALLENGE",e.EME_INIT_DATA_MALFORMED="EME_INIT_DATA_MALFORMED",e.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM="EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM",e.EME_MEDIA_KEY_SESSION_V0_1B_ERROR="EME_MEDIA_KEY_SESSION_V0_1B_ERROR",e.EME_MEDIA_KEY_SESSION_SAFARI_ERROR="EME_MEDIA_KEY_SESSION_SAFARI_ERROR",e.EME_NO_SUPPORTED_CONFIGURATION="EME_NO_SUPPORTED_CONFIGURATION",e.EME_NOT_SUPPORTED_ERROR="EME_NOT_SUPPORTED_ERROR",e.EME_INVALID_STATE_ERROR="EME_INVALID_STATE_ERROR",e.EME_UNKNOWN_ERROR="EME_UNKNOWN_ERROR",e.DISALLOW_PROTECTED_TRACK_ERROR="DISALLOW_PROTECTED_TRACK_ERROR",e.FILE_FORMAT_NOT_SUPPORTED="FILE_FORMAT_NOT_SUPPORTED",e.FILE_MALFORMED_SEEKTABLE="FILE_MALFORMED_SEEKTABLE",e.FILE_MALFORMED_PSSH="FILE_MALFORMED_PSSH",e.FILE_NOT_RESOLVED="FILE_NOT_RESOLVED",e.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO="FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_ZERO="FRAGMENT_REQUEST_FAILED_WITH_ZERO",e.FRAGMENT_REQUEST_FAILED_WITH_STATUS="FRAGMENT_REQUEST_FAILED_WITH_STATUS",e.FRAGMENT_REQUEST_EMPTY_RESPONSE="FRAGMENT_REQUEST_EMPTY_RESPONSE",e.FRAGMENT_REQUEST_UNEXPECTED_LENGTH="FRAGMENT_REQUEST_UNEXPECTED_LENGTH",e.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE="PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE",e.PLAYER_BUFFER_QUOTA_EXCEEDED="PLAYER_BUFFER_QUOTA_EXCEEDED",e.PLAYER_CANNOT_FIND_PLAYABLE_URI="PLAYER_CANNOT_FIND_PLAYABLE_URI",e.PLAYER_INVALID_INTERNAL_STATE="PLAYER_INVALID_INTERNAL_STATE",e.PLAYER_MEDIA_ERROR="PLAYER_MEDIA_ERROR",e.PLAYER_PLAYBACK_ERROR="PLAYER_PLAYBACK_ERROR",e.MEDIA_ABORTED="MEDIA_ABORTED",e.MEDIA_DECODING_ERROR="MEDIA_DECODING_ERROR",e.MEDIA_NETWORK_ERROR="MEDIA_NETWORK_ERROR",e.MEDIA_NOT_SUPPORTED="MEDIA_NOT_SUPPORTED",e.LICENSE_RESOLVE_INVALID_RESPONSE="LICENSE_RESOLVE_INVALID_RESPONSE",e.LICENSE_RESOLVER_CANT_RESOLVE_URL="LICENSE_RESOLVER_CANT_RESOLVE_URL",e.LICENSE_RESOLVER_DEPRECATED_VERSION="LICENSE_RESOLVER_DEPRECATED_VERSION",e.LIST_PLAYER_NO_TRACK_PLAYER="LIST_PLAYER_NO_TRACK_PLAYER",e.LIST_PLAYER_NO_LIST="LIST_PLAYER_NO_LIST",e.LIST_PLAYER_INVALID_ARGUMENT="LIST_PLAYER_INVALID_ARGUMENT",e.LIST_PLAYER_FORBIDDEN="LIST_PLAYER_FORBIDDEN",e.STORAGE_ERROR="STORAGE_ERROR",e.STORAGE_FAILED_WITH_STATUS="STORAGE_FAILED_WITH_STATUS",e.STORAGE_RETURNED_NO_TRACKS="STORAGE_RETURNED_NO_TRACKS",e.STORAGE_TRACK_MANIFEST_FAILED="STORAGE_TRACK_MANIFEST_FAILED",e.STORAGE_TRACK_MANIFEST_EMPTY="STORAGE_TRACK_MANIFEST_EMPTY",e.STORAGE_VIDEO_MANIFEST_FAILED="STORAGE_VIDEO_MANIFEST_FAILED",e.TRACK_DATA_ALREADY_FINALIZED="TRACK_DATA_ALREADY_FINALIZED",e.TSV_SENDING_FAILED="TSV_SENDING_FAILED",e.PLAYBACK_STATS_SENDING_FAILED="PLAYBACK_STATS_SENDING_FAILED",e.PLAYBACK_START_SENDING_FAILED="PLAYBACK_START_SENDING_FAILED",e.UNKNOWN="UNKNOWN"}(r||(r={}))},79399:(e,t,n)=>{"use strict";var r;n.d(t,{K:()=>r}),function(e){e.APPLOAD="appload",e.BACK_BUTTON="backbtn",e.CLICK_ROW="clickrow",e.CLICK_SIDE="clickside",e.END_PLAY="endplay",e.FORWARD_BUTTON="fwdbtn",e.LOGOUT="logout",e.PLAY_BUTTON="playbtn",e.POPUP="popup",e.REMOTE="remote",e.TRACK_DONE="trackdone",e.TRACK_ERROR="trackerror",e.UNKNOWN="unknown",e.URI_OPEN="uriopen",e.CAPPED="capped",e.SEEK="seek"}(r||(r={}))},17063:(e,t,n)=>{"use strict";n.d(t,{OT:()=>he,D1:()=>p.D,vk:()=>i,Le:()=>dt,_8:()=>bt,OU:()=>u,J_:()=>c,rU:()=>r,cJ:()=>ht,KG:()=>gt.K,zq:()=>vt,nA:()=>mt,MD:()=>St});var r,i,o=n(58367),a=n(28667),s=n(33178),l=n(36570);!function(e){e.KEY_SESSION_MESSAGE="message",e.KEY_SESSION_STATUSES_CHANGE="keystatuseschange",e.MEDIA_SOURCE_OPEN="sourceopen",e.MEDIA_SOURCE_CLOSE="sourceclose",e.SOURCE_BUFFER_UPDATE_END="updateend",e.MS_KEY_ADDED="mskeyadded",e.MS_KEY_ERROR="mskeyerror",e.MS_KEY_MESSAGE="mskeymessage",e.MS_NEEDKEY="msneedkey",e.WEBKIT_KEY_ADDED="webkitkeyadded",e.WEBKIT_KEY_ERROR="webkitkeyerror",e.WEBKIT_KEY_MESSAGE="webkitkeymessage",e.WEBKIT_NEEDKEY="webkitneedkey",e.V0_1B_KEY_ADDED="keyadded",e.V0_1B_KEY_ERROR="keyerror",e.V0_1B_KEY_MESSAGE="keymessage",e.V0_1B_NEEDKEY="needkey",e.MEDIA_CANPLAY="canplay",e.MEDIA_CANPLAYTHROUGH="canplaythrough",e.MEDIA_DURATIONCHANGE="durationchange",e.MEDIA_ENCRYPTED="encrypted",e.MEDIA_ENDED="ended",e.MEDIA_ERROR="error",e.MEDIA_LOADEDMETADATA="loadedmetadata",e.MEDIA_PAUSE="pause",e.MEDIA_PLAY="play",e.MEDIA_PLAYING="playing",e.MEDIA_SEEKING="seeking",e.MEDIA_TIMEUPDATE="timeupdate",e.MEDIA_WAITING="waiting",e.MEDIA_RATECHANGE="ratechange",e.MEDIA_RESIZE="resize",e.INTERNAL_ENCRYPTED="__encrypted",e.INTERNAL_PLAYER_CANPLAY="__canplay",e.INTERNAL_PLAYER_CANPLAYTHROUGH="__canplaythrough",e.INTERNAL_MEDIA_REQUIRES_DURATION="__requiresduration",e.INTERNAL_PLAYER_LOADED_METADATA="__loadedmetadata",e.BUFFER_APPEND_ERROR="append_error",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.BUFFER_STALLED="stalled",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.EME_LICENSE_REQUEST_ERROR="license_request_error",e.EME_LICENSE_REQUEST_CAPPED="license_request_capped",e.LIST_PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.LIST_PLAYER_BEFORE_LIST_CHANGE="before_list_change",e.LIST_PLAYER_BEFORE_NEXT="before_next",e.LIST_PLAYER_BEFORE_PLAYER_LOAD="before_player_load",e.LIST_PLAYER_BEFORE_PREVIOUS="before_previous",e.LIST_PLAYER_BEFORE_TRACK_LOAD="before_track_load",e.LIST_PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.LIST_PLAYER_BUFFER_STALLED="stalled",e.LIST_PLAYER_BUFFERING_START="buffering_start",e.LIST_PLAYER_BUFFERING_END="buffering_end",e.LIST_PLAYER_CAPPED="capped",e.LIST_PLAYER_CLEARED="cleared",e.LIST_PLAYER_DURATION_CHANGED="duration_changed",e.LIST_PLAYER_ERROR="error",e.LIST_PLAYER_ERROR_SYNC="error_sync",e.LIST_PLAYER_LIST_CHANGED="list_change",e.LIST_PLAYER_LIST_ENDED="list_ended",e.LIST_PLAYER_LOAD_VIDEO="load_video",e.LIST_PLAYER_MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.LIST_PLAYER_PAUSED="paused",e.LIST_PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.LIST_PLAYER_PLAYER_LOAD="player_load",e.LIST_PLAYER_PLAYING="playing",e.LIST_PLAYER_POSITION_CHANGED="position_changed",e.LIST_PLAYER_PROGRESS="progress",e.LIST_PLAYER_REPEAT_MODE_CHANGED="repeat_mode_changed",e.LIST_PLAYER_SHUFFLE_CHANGED="shuffle_changed",e.LIST_PLAYER_STOPPED="stopped",e.LIST_PLAYER_STOPPED_VIDEO="stopped_video",e.LIST_PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_TRACK_ENDED="track_ended",e.LIST_PLAYER_TRACK_LOADED="track_loaded",e.LIST_PLAYER_TRACK_TIMEOUT="track_timeout",e.LIST_PLAYER_TRACK_UNPLAYABLE="track_unplayable",e.LIST_PLAYER_DATA_CREATED="tracking_data_created",e.LIST_PLAYER_DATA_FINALIZED="tracking_data_finalized",e.LIST_PLAYER_VOLUME_CHANGED="volume_changed",e.LIST_PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.LIST_PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.LIST_PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.LIST_PLAYER_SEEK_HANDLED="list_player_seek_handled",e.LIST_PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.LIST_PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.LOGGER_ERROR="error",e.PLAYER_AUTOPLAY_FAILED="player_autoplay_failed",e.PLAYER_BEFORE_LOAD="before_load",e.PLAYER_BEFORE_STOP="before_stop",e.PLAYER_BEFORE_VOLUME_CHANGE="before_volume_change",e.PLAYER_BUFFER_STALLED="stalled",e.PLAYER_BUFFERING_START="buffering_start",e.PLAYER_BUFFERING_END="buffering_end",e.PLAYER_CAN_PRELOAD="can_preload",e.PLAYER_CAPPED="capped",e.PLAYER_DURATION_CHANGED="duration_changed",e.PLAYER_ENDED="ended",e.PLAYER_ENDED_VIDEO="ended_video",e.PLAYER_ERROR="error",e.PLAYER_WARNING="warning",e.PLAYER_FIRST_BYTES="first_bytes",e.PLAYER_KEY_RECEIVED="key",e.PLAYER_LOAD="load",e.PLAYER_LOAD_VIDEO="load_video",e.PLAYER_LOADING_FAILED="loading_failed",e.PLAYER_PAUSED="paused",e.PLAYER_PLAY="play",e.PLAYER_PLAYING="playing",e.PLAYER_POSITION_CHANGED="position_changed",e.PLAYER_PRELOADING_ERROR="preloading_error",e.PLAYER_PROGRESS="progress",e.PLAYER_STALLED="stalled",e.PLAYER_STOPPED="stopped",e.PLAYER_STOPPED_VIDEO="stopped_video",e.PLAYER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.PLAYER_TIMEOUT="timeout",e.PLAYER_PLAYBACK_START="playback_start",e.PLAYER_TRACKING_DATA_CREATED="tracking_data_created",e.PLAYER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.PLAYER_VIDEO_ELEMENT_APPENDED="video_element_appended",e.PLAYER_VIDEO_ELEMENT_REMOVED="video_element_removed",e.PLAYER_VIDEO_PROFILE_CHANGED="video_profile_changed",e.PLAYER_DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.PLAYER_SEEKING="seeking",e.PLAYER_FRAGMENT_FETCHED="fragment_fetched",e.PLAYER_FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.PLAYER_VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.PLAYER_PLAYBACK_SPEED_CHANGED="playback_speed_changed",e.PLAYER_SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.PLAYER_VIDEO_RESIZED="resize",e.PLAYER_MANAGER_READY="ready",e.TRACKER_PLAYBACK_START="playback_start",e.TRACKER_PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.TRACKER_TRACKING_DATA_CREATED="tracking_data_created",e.TRACKER_TRACKING_DATA_FINALIZED="tracking_data_finalized",e.VIDEO_MANIFEST_RESOLVED="video_manifest_resolved",e.VIDEO_MANIFEST_RESOLVE_FAILED="video_manifest_resolve_failed",e.ABR_MANAGER_BITRATE_CHANGE="bitrate_change"}(r||(r={})),function(e){e.WIDEVINE="com.widevine.alpha",e.PLAYREADY="com.microsoft.playready",e.PLAYREADY_HARDWARE="com.microsoft.playready.hardware",e.FAIRPLAY="com.apple.fps.1_0",e.INVALID_SPOTIFY_KEY="com.spotify.invalid"}(i||(i={}));var c,u,d,p=n(27982);!function(e){e.SUCCESS="RESULT_SUCCESS",e.INVALID="RESULT_INVALID",e.FORBIDDEN="RESULT_FORBIDDEN",e.OUT_OF_BOUNDS="RESULT_OUT_OF_BOUNDS",e.NO_LIST="RESULT_NO_LIST",e.NO_TRACK="RESULT_NO_TRACK",e.LIST_END="RESULT_LIST_END",e.INVALID_TRACK="RESULT_INVALID_TRACK",e.CANCELLED="CANCELLED",e.NO_TRACK_PLAYER="NO_TRACK_PLAYER"}(c||(c={})),function(e){e.MP3="MP3",e.MP4="MP4",e.MP4_DUAL="MP4_DUAL",e.MP4_CBCS="MP4_CBCS",e.MP4_FLAC="MP4_FLAC",e.MANIFEST_ID="MANIFEST_ID"}(u||(u={})),function(e){e.FRAGMENT_FETCHED="fragment_fetched",e.FRAGMENT_FETCH_ERROR="fragment_fetch_error",e.VIDEO_PROFILE_CHANGED="video_profile",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded"}(d||(d={}));class f extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.code=e,this.message=t,this.name="PlaybackError"}static fatal(e,t){const n=new f(e,t);return n.unrecoverable=!0,n}}class h extends Error{constructor(e=p.D.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}var v=n(85406);class m extends Error{constructor(e=p.D.EME_ERROR_UNKNOWN,t){super(t),this.status=-1,this.licenseServer="",this.shouldRefreshEndpoint=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.message=t,this.name="EMEError"}static fatal(e=p.D.EME_ERROR_UNKNOWN,t){const n=new m(e,t);return n.unrecoverable=!0,n}}class g extends Error{constructor(e,t){super(t),this.name="CappingError",this.message=t,this.code=e}}function y(e){const t=document.createEvent("Event");t.initEvent("encrypted",!1,!1),t.initDataType="cenc",t.initData=e.initData,t.fromPolyfill=!0,this.dispatchEvent(t)}class _ extends s.B{constructor(e){super(r.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class b extends s.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,v.$)(),this._lastGenerateDeferred=(0,v.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){const e=this._nativeKeySession;e&&(e.addEventListener(r.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(r.MS_KEY_ERROR,this._onKeyError),e.addEventListener(r.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(r.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(r.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(r.MS_KEY_MESSAGE,this._onKeyMessage))}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _(e.message.buffer)),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null))}_onKeyAdded(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve(!0),this._lastGenerateDeferred=null),this.emit(r.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error;this._lastGenerateDeferred&&(this._lastGenerateDeferred.reject(e),this._lastGenerateDeferred=null),this._lastUpdateDeferred&&(this._lastUpdateDeferred.reject(e),this._lastUpdateDeferred=null),this.emit(r.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return new Promise(((e,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=e,this._lastGenerateDeferred.reject=n),this._nativeKeySession=this._nativeMediaKeys.createSession("audio/mp4",new Uint8Array(t),null),this._attach()}))}update(e){return new Promise(((t,n)=>{this._lastGenerateDeferred&&(this._lastGenerateDeferred.resolve=t,this._lastGenerateDeferred.reject=n),this._nativeKeySession&&this._nativeKeySession.update(new Uint8Array(e))}))}close(){return new Promise((e=>{this._nativeKeySession&&this._nativeKeySession.close(),this._detach(),e(!0)}))}}class E{constructor(e){this._lastBoundSetter=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new MSMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.msSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(r.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(r.MEDIA_LOADEDMETADATA,n),e.addEventListener(r.MS_NEEDKEY,y),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(r.MS_NEEDKEY,y),e.removeEventListener(r.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new m(p.D.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new b(this._nativeMediaKeys)}}function S(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class T{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new m(p.D.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const r=this.keySystem;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:i.label};let o;if(i.audioCapabilities&&i.audioCapabilities.length&&e.audioCapabilities){o=!1;for(const n of i.audioCapabilities){const i=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(r,i)&&(e.audioCapabilities.push(n),o=!0)}}if(i.videoCapabilities&&i.videoCapabilities.length&&e.videoCapabilities){o=!1;for(const t of i.videoCapabilities){const i=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(r,i)&&(e.videoCapabilities.push(t),o=!0)}}if(o)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new E(this.keySystem))}))}}const O=a.P.forTag("eme_polyfill.v0_1b");class A extends s.vp{constructor(e,t,n){super(),this._mediaElement=null,this._lastUpdateDeferred=null,this._lastGenerateResolver=null,this.sessionId=null,this._keySystem=e,this._mediaElement=t,this._prefix=n,this.addEventListener=this.addListener,this.removeEventListener=this.removeListener}_addPrefix(e){return this._prefix?this._prefix+e.replace(/\b[a-z]/,(function(e){return e.toUpperCase()})):e}generateComplete(e){this.emitEvent(new _(e)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null)}updateComplete(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this.emit(r.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new m(p.D.EME_MEDIA_KEY_SESSION_V0_1B_ERROR,"MediaKeySession v0.1b Error");t.debug.errorCode=e.errorCode,t.debug.systemCode=e.systemCode,!e.sessionId&&this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):e.sessionId&&this._lastUpdateDeferred?(this._lastUpdateDeferred.reject(t),this._lastUpdateDeferred=null):this.emit(r.KEY_SESSION_STATUSES_CHANGE,null)}generateRequest(e,t){return this._mediaElement?new Promise(((e,n)=>{this._lastGenerateResolver={resolve:e,reject:n};try{this._mediaElement[this._addPrefix("generateKeyRequest")](this._keySystem,new Uint8Array(t))}catch(e){n(e),this._lastGenerateResolver=null}})):Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."))}update(e){if(!this._mediaElement)return Promise.reject(new ReferenceError("InvalidState: Media keys are not attached."));if(this._lastUpdateDeferred){const t=this.update.bind(this,e);return this._lastUpdateDeferred.promise.then(t,t)}const t=(0,v.$)();this._lastUpdateDeferred=t;try{this._mediaElement[this._addPrefix("addKey")](this._keySystem,new Uint8Array(e),null,this.sessionId)}catch(e){t.reject(e),this._lastUpdateDeferred=null}return t.promise}close(){if(this.sessionId&&this._mediaElement)try{this._mediaElement[this._addPrefix("cancelKeyRequest")](this._keySystem,this.sessionId)}catch(e){O.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class C{constructor(e,t=""){this._mediaElement=null,this._waitingForSessionIds=[],this._sessionMap={},this.shouldRefreshPerTrack=!0,this._keySystem=e,this._prefix=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}attach(e){this._mediaElement=e;const t=this._prefix;e.addEventListener(t+r.V0_1B_NEEDKEY,y);const n=e.addEventListener.bind(e);n(t+r.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+r.V0_1B_KEY_ERROR,this._onKeyError),n(t+r.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+r.V0_1B_NEEDKEY,y);const n=e.removeEventListener.bind(e);n(t+r.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+r.V0_1B_KEY_ERROR,this._onKeyError),n(t+r.V0_1B_KEY_MESSAGE,this._onKeyMessage)}_getSession(e){const t=this._sessionMap[e];if(t)return t;const n=this._waitingForSessionIds.shift();return n?(n.sessionId=e,this._sessionMap[e]=n,n):null}_onKeyMessage(e){const t=this._getSession(e.sessionId);t?t.generateComplete(e.message):O.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():O.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):O.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new m(p.D.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new A(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function P(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e&&e.attach(this),Promise.resolve()}class I{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new m(p.D.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const r=this.keySystem,i=document.createElement("video");for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:o.label};let a=!1;if(o.audioCapabilities&&o.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of o.audioCapabilities){const o=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];o&&i.canPlayType(o,r)&&(e.audioCapabilities.push(n),a=!0)}}if(o.videoCapabilities&&o.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of o.videoCapabilities){const o=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];o&&i.canPlayType(o,r)&&(e.videoCapabilities.push(t),a=!0)}}if(a)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new C(this.keySystem,this._prefix))}))}}function R(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((r=>{r(new I(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=P}const N=a.P.forTag("eme_polyfill.safari");class k extends s.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,v.$)(),this._lastUpdateResolver=(0,v.$)(),this.addEventListener=this.addListener,this.removeEventListener=this.removeListener,this._nativeMediaKeys=e,this._serverCertificate=t,this._onKeyMessage=this._onKeyMessage.bind(this),this._onKeyAdded=this._onKeyAdded.bind(this),this._onKeyError=this._onKeyError.bind(this)}_attach(){if(this._attached)return;const e=this._nativeKeySession;e?(e.addEventListener(r.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(r.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(r.WEBKIT_KEY_ERROR,this._onKeyError)):N.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(r.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(r.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(r.WEBKIT_KEY_ERROR,this._onKeyError)):N.warn("Tried to detach with no WebKitMediaKeySession")}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _(e.message.buffer)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null))}_onKeyAdded(){this._lastUpdateResolver&&(this._lastUpdateResolver.resolve(!0),this._lastUpdateResolver=null),this.emit(r.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new m(p.D.EME_MEDIA_KEY_SESSION_SAFARI_ERROR,e&&e.message||"MediaKeySession Safari Error");e&&(t.debug.errorCode=e.code,t.debug.systemCode=e.systemCode),this._lastGenerateResolver?(this._lastGenerateResolver.reject(t),this._lastGenerateResolver=null):this._lastUpdateResolver&&(this._lastUpdateResolver.reject(t),this._lastUpdateResolver=null)}_rebuildInitData(e){const t=new Uint8Array(e);if(new DataView(t.buffer).getUint32(0,!0)+4!==t.byteLength)throw new m(p.D.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),r=new DataView(e.buffer);for(let e=0;e{this._lastGenerateResolver={resolve:e,reject:n};try{const e=this._rebuildInitData(t);this._nativeKeySession=this._nativeMediaKeys.createSession("video/mp4",new Uint8Array(e),null),this._attach()}catch(e){this._lastGenerateResolver=null,n(e)}}))}update(e){const t=(0,v.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return N.warn("Tried to update with no WebKitMediaKeySession"),t.promise;try{this._nativeKeySession.update(new Uint8Array(e))}catch(e){t.reject(e)}return t.promise}close(){return new Promise((e=>{this._detach(),e(!0)}))}}class L{constructor(e){this._lastBoundSetter=null,this._serverCertificate=null,this.shouldRefreshPerTrack=!0,this._nativeMediaKeys=new WebKitMediaKeys(e)}attach(e){return new Promise((t=>{if(e.readyState>=1)return e.webkitSetMediaKeys(this._nativeMediaKeys),void t();const n=()=>{e.removeEventListener(r.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(r.MEDIA_LOADEDMETADATA,n),e.addEventListener(r.WEBKIT_NEEDKEY,y),t()}))}detach(e){e.removeEventListener(r.WEBKIT_NEEDKEY,y),this._lastBoundSetter&&(e.removeEventListener(r.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new m(p.D.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new k(this._nativeMediaKeys,this._serverCertificate)}}class w{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new m(p.D.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(r.audioCapabilities)for(const i of r.audioCapabilities){if(!i.contentType)continue;const r=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,r)&&(e.audioCapabilities.push(i),n=!0)}if(r.videoCapabilities)for(const i of r.videoCapabilities){if(!i.contentType)continue;const r=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,r)&&(e.videoCapabilities.push(i),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new L(this.keySystem))}))}}function D(e){const t=this.mediaKeys;return t&&t!==e&&t.detach(this),delete this.mediaKeys,this.mediaKeys=e,e?e.attach(this):Promise.resolve()}const M=a.P.forTag("eme_polyfills.tester");function x(){return"undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.requestMediaKeySystemAccess)&&"undefined"==typeof WebKitMediaKeys&&"undefined"!=typeof MediaKeySystemAccess&&(null===MediaKeySystemAccess||void 0===MediaKeySystemAccess?void 0:MediaKeySystemAccess.prototype.getConfiguration)?(M.log("Using native EME implementation."),"native"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.webkitGenerateKeyRequest)?(M.log('Detected "webkit" Prefixed EME v0.1b. Polyfilling.'),R("webkit"),"v0.1b-webkit"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.generateKeyRequest)?(M.log("Detected Unprefixed EME v0.1b. Polyfilling."),R(),"v0.1b"):"undefined"!=typeof MSMediaKeys?(M.log("Detected MS IE EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new T(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=S}(),"ms-ie"):"function"==typeof WebKitMediaKeys?(M.log("Detected Safari EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new w(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=D}(),"safari"):(M.warn("Detected no EME APIs."),null)}const U={[i.WIDEVINE]:{commonName:"widevine",licenseServer:"https://@webgate/widevine-license",withCertificate:!0,pssh_field:{audio:"pssh_widevine",video:"encryption_data"}},[i.PLAYREADY]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[i.PLAYREADY_HARDWARE]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[i.FAIRPLAY]:{commonName:"fairplay",licenseServer:"https://@webgate/fairplay-license",withCertificate:!0,pssh_field:{audio:"pssh_fairplay",video:"asset_id"}},[i.INVALID_SPOTIFY_KEY]:{commonName:"spotify-invalid",licenseServer:"https://@webgate",withCertificate:!1,pssh_field:{audio:"pssh_invalid",video:"encryption_data"}}},F=[{label:"video-sw-decode",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_DECODE"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_DECODE"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/webm; codecs="vp8"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:"SW_SECURE_CRYPTO"}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"video-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/webm; codecs="opus"',robustness:""},{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[{contentType:'video/webm; codecs="vp9"',robustness:""},{contentType:'video/webm; codecs="vp8"',robustness:""},{contentType:'video/mp4; codecs="avc1.4d401f"',robustness:""},{contentType:'video/mp2t; codecs="avc1.4d401f"',robustness:""}],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:"SW_SECURE_CRYPTO"},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-flac-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="flac"',robustness:""},{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-sw-crypto",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:"SW_SECURE_CRYPTO"}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]},{label:"audio-no-robustness",initDataTypes:["cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"',robustness:""}],videoCapabilities:[],distinctiveIdentifier:"optional",persistentState:"optional",sessionTypes:["temporary"]}];function z(e,t){var n,r;for(const i of e){const e={audioCapabilities:[],videoCapabilities:[]};let o,a=!1;if(null===(n=i.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of i.audioCapabilities)o=n.contentType,o&&t(o)&&(e.audioCapabilities.push(n),a=!0)}if(null===(r=i.videoCapabilities)||void 0===r?void 0:r.length){a=!1;for(const n of i.videoCapabilities)o=n.contentType,o&&t(o)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const B=/([^;]+)(?:;\s?codecs="(.*)")?/;function V(e){var t;const[,n="unknown",r="unknown"]=null!==(t=e.match(B))&&void 0!==t?t:[];return{mimeType:n,codec:r,contentType:e}}const j=/([^;]+)(?:;\s?codecs="(.*)")?/,H=a.P.forTag("playback.eme_manager"),G={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function q(e,t){var n;const r=[],i=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)i.test(null!==(n=t.contentType)&&void 0!==n?n:"")||r.push(t);return r.length?r:null}function K(e,{audio:t,video:n}){var r,i,o,a;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length))return e;let{audioCapabilities:s,videoCapabilities:l}=e;return(null==t?void 0:t.length)&&(null===(r=e.audioCapabilities)||void 0===r?void 0:r.length)&&(s=null!==(i=q(e.audioCapabilities,t))&&void 0!==i?i:void 0,!s)||(null==n?void 0:n.length)&&(null===(o=e.videoCapabilities)||void 0===o?void 0:o.length)&&(l=null!==(a=q(e.videoCapabilities,n))&&void 0!==a?a:void 0,!l)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:l})}class W extends s.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,v.$)(),this._configuration=(0,v.$)(),this._keySystemSettings=null,this._keySessions=[],this._configs=[],this._pendingCertificateRequest=null,this._certificate=null,this._transport=e.transport,this._emeImpl=e.emeImpl,this._noServerCertificate=!!e.noServerCertificate,this._precacheServerCertificate=null===(t=e.precacheServerCertificate)||void 0===t||t,this._unauthServerCertificateBase=e.unauthServerCertificateBase||"https://spclient.wg.spotify.com",this._configFilter=function(e){const t=["--ensure-no-match--"];if(null==e?void 0:e.length){let n=e.length;for(;n--;){const r=e[n];r&&G.hasOwnProperty(r)&&t.push(G[r])}}return new RegExp(`(${t.join("|")})$`)}(e.disallowRobustnessValues||[]),this._disallowCodecs=e.disallowCodecs,this._preferredKeySystems=e.preferredKeySystems||[i.WIDEVINE,i.PLAYREADY,i.PLAYREADY_HARDWARE,i.FAIRPLAY]}static create(e){return new Promise((t=>{const n=x();if(!n)throw m.fatal(p.D.EME_API_NOT_SUPPORTED,"Platform does not support navigator.requestMediaKeySystemAccess");t(new W(Object.assign(Object.assign({},e),{emeImpl:n})).init())}))}_prepareConfiguration(e){const t=e.getConfiguration();H.info("KeySystem configured as ",t.label),t.audioCapabilities&&t.audioCapabilities.length||this._appendProbableMediaCapabilities(e.keySystem,t);const n={keySystem:e.keySystem,keySystemImpl:this._emeImpl,audioFormats:this._parseCapabilities(t.audioCapabilities),videoFormats:this._parseCapabilities(t.videoCapabilities)};return this._keySystemSettings=U[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const r of e){if(!(null==r?void 0:r.contentType))continue;const[,e,i]=null!==(t=r.contentType.match(j))&&void 0!==t?t:[];e&&n.push({contentType:r.contentType,mimeType:e,codec:null!=i?i:""})}return n}_appendProbableMediaCapabilities(e,t){const n=z(this._configs,(t=>(-1===t.indexOf("webm")||e!==i.PLAYREADY&&e!==i.PLAYREADY_HARDWARE)&&!!MediaSource.isTypeSupported(t)));n&&(t.audioCapabilities=n.audioCapabilities,t.videoCapabilities=n.videoCapabilities)}_trySetServerCertificate(e,t){const n=this._certificate;return(n&&n.expiry>Date.now()?Promise.resolve(n):this._requestServerCertificate(e)).then((e=>t.setServerCertificate(e.contents))).then((()=>this)).catch((e=>(H.warn("Error from setting server certificate",e),this)))}_cacheServerCertificate(e){let t="";switch(e){case i.FAIRPLAY:t="fairplay";break;case i.WIDEVINE:t="widevine";break;default:return Promise.resolve(this)}return this._requestServerCertificate(`${this._unauthServerCertificateBase}/${t}-license`,!1).then((()=>this),(e=>(H.warn("Cannot precache server certificate",e),this)))}_requestServerCertificate(e,t=!0){if(this._pendingCertificateRequest)return this._pendingCertificateRequest;return this._transport.request(`${e}/v1/application-certificate`,{authorize:t,responseType:"arraybuffer",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()===t.SERVER_ERROR}}).then((e=>{var t;if(!e.body)throw new TypeError("Response body is invalid");this._pendingCertificateRequest=null;let n=3600;const r=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(r){const e=r.match(/(?:^|,|\s)max-age=(\d+)(?:,|$)/);e&&e[1]&&(n=1e3*parseInt(e[1],10))}return this._certificate={expiry:Date.now()+(n-600),contents:e.body},this._certificate}))}_extractPlayReadyChallenge(e,t){var n;let i=null;const o=new Uint16Array(e),a=String.fromCharCode.apply(null,o);if(-1===a.indexOf("PlayReadyKeyMessage"))return H.info("Using unextracted PlayReady message."),e;const s=(new DOMParser).parseFromString(a,"application/xml"),l=s.getElementsByTagName("Challenge")[0],c=null===(n=null==l?void 0:l.childNodes[0])||void 0===n?void 0:n.nodeValue;if(c)try{i=atob(c);const e=s.getElementsByTagName("name"),t=s.getElementsByTagName("value");if(e.length!==t.length)throw new m(p.D.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header / pair in key message")}catch(e){this.emit(r.EME_LICENSE_REQUEST_ERROR,{playId:t,error:e}),i=null}else this.emit(r.EME_LICENSE_REQUEST_ERROR,{playId:t,error:new m(p.D.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header / pair in key message")});return i}_onMessage(e,t){e.timeMap.generate.end=Date.now();let n="message"in t?t.message:null;const r="messageType"in t?t.messageType:void 0;if(H.info("Got EME message event with type",r),n&&e.keySystem===i.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.playId)),!n)return void H.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void H.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let o=e.licenseServer;e.keySystem===i.FAIRPLAY&&(o=`${o}${-1!==o.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(o,{method:"POST",payload:n,responseType:"arraybuffer",retry:{condition:(e,t)=>400!==e.status&&402!==e.status&&403!==e.status&&(!e.body||e.getStatusFamily()!==t.SUCCESS)}}).then(this._handleLicenseResponse.bind(this,e))}_handleLicenseResponse(e,t){const n=t=>{t.playId=e.playId,e.licenseServer&&(t.licenseServer=e.licenseServer),this.emit(r.EME_LICENSE_REQUEST_ERROR,{playId:e.playId,error:t})};let i,o;if(e.timeMap.request.end=Date.now(),200!==t.status){try{if(t.body){const e=new Uint8Array(t.body),n=String.fromCharCode.apply(String,e);o=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(r.EME_LICENSE_REQUEST_CAPPED,{playId:e.playId,error:new g(p.D.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===o?(i=m.fatal(p.D.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),i.status=t.status,i.shouldRefreshEndpoint=!0,n(i)):(i=new m(p.D.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${o||"unknown"})`),i.status=t.status,i.shouldRefreshEndpoint=400===t.status||403===t.status,n(i))}else{if(!t.body)return i=new m(p.D.EME_LICENSE_REQUEST_EMPTY_RESPONSE,"Empty license response body"),i.status=t.status,void n(i);try{e.timeMap.update.start=Date.now(),e.keySession.update(t.body).catch((e=>{n(new m(p.D.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),H.info("KeySession updated.")}catch(e){const{message:t}=e;n(new m(p.D.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,r=t.length;n{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(m.fatal(p.D.EME_MEDIA_KEYS_NOT_SUPPORTED,"Cannot create MediaKeys from KeySystemAccess"));e.keySystem===i.FAIRPLAY&&t.setServerCertificate(new ArrayBuffer(0));try{if(!t.createSession())throw new Error("")}catch(e){const{message:t}=e;return Promise.reject(m.fatal(p.D.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(H.error(e.name),Promise.reject(m.fatal(p.D.EME_MEDIA_KEYS_NOT_SUPPORTED,e.message||"Unknown error")))))}_saveSession(e){this._keySessions.push(e)}destroySessions(){const e=[],t=this._keySessions;for(const n of t)try{const t=n.keySession;if(!t)continue;n.onMessageListener&&t.removeEventListener(r.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(r.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const i=Promise.resolve(t.close()).catch((e=>{H.warn("Failed to close KeySession",e)}));e.push(i),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,H.info("Closed KeySession")}catch(e){H.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=this._keySystemDeferred,t={},n=[],r=[];for(let e of F)if(!e.label||!this._configFilter.test(e.label)){if(this._disallowCodecs){const t=K(e,this._disallowCodecs);if(!t)continue;e=t}r.push(e)}this._configs=r;for(const e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;const o=e;n.push(navigator.requestMediaKeySystemAccess(i[o],r).then((e=>{t[e.keySystem]=e})).catch((()=>{})))}return Promise.all(n).then(this._selectKeySystem.bind(this,t)).then((e=>e?this._testMediaKeys(e):Promise.reject(new m(p.D.EME_NO_SUPPORTED_KEYSYSTEM,"No supported keysystem was found.")))).then((t=>(this._prepareConfiguration(t),e.resolve(t),this._precacheServerCertificate?this._cacheServerCertificate(t.keySystem):this))).catch((t=>{const n=t.code||p.D.EME_NO_SUPPORTED_KEYSYSTEM,r=t.message||"No supported keysystem";return e.reject(m.fatal(n,r)),e.promise.then((()=>this))}))}createMediaKeys(e){return this._keySystemDeferred.promise.then((e=>e.createMediaKeys())).then((t=>Promise.all([e.setMediaKeys(t),t]))).then((([t,n])=>{if(!e.mediaKeys)throw new m(p.D.EME_PLAYER_MEDIA_KEYS_SETTING_FAILED,"Failed to set MediaKeys on HTMLMediaElement");return this._configuration.promise.then((()=>{const e=this._keySystemSettings;return e&&!this._noServerCertificate&&e.withCertificate?this._trySetServerCertificate(e.licenseServer,n):this}))}))}removeMediaKeys(e){return Promise.resolve(e.setMediaKeys(null)).then((()=>this))}getKeySystemInfo(){return this._configuration.promise}getKeySystemImpl(){return this._emeImpl}createSessionWithParams(e){return new Promise(((t,n)=>{H.info("Creating KeySession",e.keySystem);const i=e.mediaKeys.createSession(),o={generate:{start:0,end:0},request:{start:0,end:0},update:{start:0,end:0}},a=this._keySystemSettings&&this._keySystemSettings.licenseServer||void 0,s=this._onMessage.bind(this,{keySystem:e.keySystem,keySession:i,licenseServer:e.licenseServer||a,playId:e.playId,timeMap:o});i.addEventListener(r.KEY_SESSION_MESSAGE,s);const l=()=>{H.info("KeyStatus change"),o.update.end=Date.now(),t({elapsed:{generate:Math.max(o.generate.end-o.generate.start,0),request:Math.max(o.request.end-o.request.start,0),update:Math.max(o.update.end-o.update.start,0)}})};return i.addEventListener(r.KEY_SESSION_STATUSES_CHANGE,l),this._saveSession({keySession:i,onMessageListener:s,onKeyStatusChangeListener:l}),H.info("Generating KeySession request",e.keySystem),o.generate.start=Date.now(),Promise.resolve(i.generateRequest(e.initDataType,e.initData.buffer)).catch((e=>{if(!e)return;let t;switch(e.name){case"NotSupportedError":t=p.D.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=p.D.EME_INVALID_STATE_ERROR;break;default:t=p.D.EME_UNKNOWN_ERROR}n(new m(t,e.message||"Unknown error message."))}))}))}}class Y extends Error{constructor(e,t,n,r={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=r,this.name="FragmentError"}}var J=n(73157);class ${constructor(e){var t;if(this._fallbackURLs=[],this._fragments=[],this._loaded=!1,this._mediaType="audio",this._noAuth=!1,this._resolvedURLs=[],this._segmentLength=0,this._duration=0,!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this._abrManager=e.abrManager,this._mediator=e.mediator,this._disableCache=e.disableCache,this._fileId=e.fileId,this._format=e.format,this._isAd=e.isAd||!1,this._keySystem=e.keySystem,this._keySystemSettings=U[this._keySystem],this._licenseEndpoint=e.licenseEndpoint,this._logData=e.logData||{displayTrack:"",playbackId:""},this._resolver=e.resolver,this._resolvedURL=e.resolvedURL,this._noAuth=null!==(t=e.noAuth)&&void 0!==t&&t,this._transport=e.transport,this._uri=e.uri}_parsePSSHBox(e){const t=J.Base64.decode(e),n=new Uint8Array(t.length);for(let e=0,r=t.length;e{if(e.byteEnd&&void 0!==e.byteStart){let t=""+(1+e.byteEnd-e.byteStart);return t+=`@${e.byteStart}`,`#EXTINF:${e.duration},\n#EXT-X-BYTERANGE:${t}\n${e.url}`}return`#EXTINF:${e.duration},\n${e.url}`})).join("\n")}(e.segments),r=e.assetID?`#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://${e.assetID}",KEYFORMATVERSIONS="1",KEYFORMAT="com.apple.streamingkeydelivery"`:"";let i=e.map?`#EXT-X-MAP:URI="${e.map.url}"`:"";return(null===(t=e.map)||void 0===t?void 0:t.byteEnd)&&void 0!==e.map.byteStart&&(i+=`,BYTERANGE="${1+e.map.byteEnd}@${e.map.byteStart}"`),`#EXTM3U\n#EXT-X-VERSION:6\n#EXT-X-TARGETDURATION:${Math.floor(e.targetDuration)}\n#EXT-X-MEDIA-SEQUENCE:0\n#EXT-X-PLAYLIST-TYPE:VOD\n${i?`${r}\n${i}`:r}\n${n}\n#EXT-X-ENDLIST`}function Z(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function ee(e){const t=new Blob([e],{type:X});return URL.createObjectURL(t)}function te(e){return ee(Q(e))}function ne(e){return Z(Q(e))}const re=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/;function ie(e,t){const n=e.toLowerCase().match(re),r=t.toLowerCase().match(re);if(!n||!r)return!1;const[,i,o,a]=n,[,s,l,c]=r;return i===s||"4d"===o&&"4d"===l&&parseInt(a,16)>=parseInt(c,16)}function oe(e,t){return e.sort(((e,n)=>"video_bitrate"in e&&"video_bitrate"in n?t?e.video_resolution===n.video_resolution?e.video_bitrate-n.video_bitrate:e.video_resolution-n.video_resolution:e.video_bitrate-n.video_bitrate:e.max_bitrate-n.max_bitrate))}function ae(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function se(e,t){if(!t)return!1;return t(Object.assign({mimeType:e.mime_type},function(e){return"video_codec"in e}(e)?{type:"video",codec:e.video_codec,bitrate:e.video_bitrate,height:e.video_height,width:e.video_width}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function le(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function ce(e){const{codec:t,formats:n,profiles:r,encryptionIndex:o,disallowProfile:a,preferredKeySystem:s,preferredVideoResolution:l,allowMixedAVC1Codecs:c}=e;for(const e of n){const n=[];let u="spotify/unknown-mimetype",d="unknown-codec";for(const l of r){const r=le(l);!(t in l)||ae(l,o)||s===i.FAIRPLAY&&"ts"!==l.file_type||se(l,a)||(s!==i.FAIRPLAY||"ts"!==l.file_type?"unknown-codec"!==d||l.mime_type!==e.mimeType||r!==e.codec&&!ie(e.codec,r)?l.mime_type===u&&(r===d||c&&ie(d,r))&&(n.push(l),l.__effective_codec=d):(u=e.mimeType,d=c?e.codec:r,n.push(l),l.__effective_codec=e.codec):n.push(l))}if(n.length)return oe(n,l)}return[]}const ue=a.P.forTag("playback.video_content");function de(e){if(!e)return"";const t=e.__effective_codec||("audio_codec"in e?e.audio_codec:e.video_codec);return`${e.mime_type};codecs="${t}"`}const pe={method:"GET",responseType:"arraybuffer",timing:!0,retry:{condition:(e,t)=>{if(0===e.status)return!0;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR}}};class fe extends ${constructor(e){super(e),this._assetId="",this._endTime=0,this._videoFormats=[],this._audioFormats=[],this._subtitleLanguages=[],this._videoProfile=null,this._videoProfiles=[],this._audioProfile=null,this._audioProfiles=[],this._baseURL="",this._initTemplate="",this._segmentTemplate="",this._subtitleTemplate="",this._initSegments={},this._hlsURLs=[],this._allowMixedAVC1Codecs=!1,this._initTemplate="",this._isAd=e.isAd||!1,this._mediaType="video",this._resolver=e.resolver,this._videoFormats=e.videoFormats,this._audioFormats=e.audioFormats,this._disallowProfile=e.disallowProfile,this._videoResolution=e.videoResolution,this._allowMixedAVC1Codecs=!!e.allowMixedAVC1Codecs,this._keySystem===i.FAIRPLAY&&this._audioFormats.unshift({mimeType:"audio/mp2t",codec:"mp4a.40.2"}),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new fe(e)}_isQualityMatched(e,t,n){var r,i,o,a;if(this._videoResolution){const t=null!==(r=this._videoResolution.max)&&void 0!==r?r:Number.MAX_SAFE_INTEGER,a=null!==(i=this._videoResolution.min)&&void 0!==i?i:0;if(n){const n=null!==(o=this._videoResolution.start)&&void 0!==o?o:t;return e.video_resolution<=n}return e.video_resolution>=a&&e.video_resolution<=t}const s=null!==(a=null==t?void 0:t.audio_bitrate)&&void 0!==a?a:0,l=this._abrManager.getBandwidthEstimate();return e.video_bitrate+s<2*l-1e5}_updateVariants(e){var t;const n=this._audioProfiles[0];this._audioProfile=null!=n?n:null;const r=this._videoProfiles,i=this._videoProfile;let o=null,a=r.length;if(a){for(;a--;){const t=r[a];if(t&&this._isQualityMatched(t,n,!!e)){o=t;break}}o||(o=r[0]),this._videoProfile=o,(null==i?void 0:i.id)!==o.id&&(ue.log(`Video profile changed. ID ${o.id} (${o.video_codec}), Bitrate ${o.video_bitrate}, ${o.video_width}x${o.video_height}`),null===(t=this._mediator)||void 0===t||t.emit(d.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:o.mime_type,codec:o.video_codec,bitrate:o.video_bitrate,height:o.video_height,width:o.video_width}}))}}_constructFragmentURL(e,t,n){if(!t&&!n)throw new Error("Both audioProfile and videoProfile is null");return e.init?this._resolver.getInitSegmentURLs(this._baseURL,this._initTemplate,t,n):this._resolver.getSegmentURLs(this._baseURL,this._segmentTemplate,e.timeStart,t,n)}_fetchBufferData(e,t,n,r){return this._transport.request(e,Object.assign(Object.assign({},pe),{metadata:{timeStart:Date.now(),fragment:t,profile:n,loggingURL:r}})).then(this._parseFragmentResponse)}_fetchInitSegmentBuffers(e,t){const n=this._initFragment;if(!n)return Promise.reject(new h(p.D.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let r;try{r=this._constructFragmentURL(n,e,t)}catch(e){return Promise.reject(e)}const i=this._initSegments;let o=Promise.resolve(null);if(e){const t=i[e.id];(null==t?void 0:t.buffer.byteLength)?o=Promise.resolve(t):(null==r?void 0:r.audio)&&(o=this._fetchBufferData(r.audio,n,e,r.audioLogging).then((t=>(i[e.id]=t,t))))}let a=Promise.resolve(null);if(t){const e=i[t.id];(null==e?void 0:e.buffer.byteLength)?a=Promise.resolve(e):(null==r?void 0:r.video)&&(a=this._fetchBufferData(r.video,n,t,r.videoLogging).then((e=>(i[t.id]=e,e))))}return Promise.all([o,a]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferForFragment(e,t,n){let r;try{r=this._constructFragmentURL(e,t,n)}catch(e){return Promise.reject(e)}return Promise.all([this._fetchInitSegmentBuffers(t,n),!e.init&&r.audio?this._fetchBufferData(r.audio,e,t,r.audioLogging):null,!e.init&&r.video?this._fetchBufferData(r.video,e,n,r.videoLogging):null]).then((([t,n,r])=>{var i,o;let a;return e.init?a={audio:null!==(i=t.audio)&&void 0!==i?i:void 0,video:null!==(o=t.video)&&void 0!==o?o:void 0}:(a={audio:null!=n?n:void 0,video:null!=r?r:void 0},e.cacheBufferSet&&(e.bufferSet=a),a.audio&&(null==t?void 0:t.audio)&&(a.audio.initBuffer=t.audio.buffer),a.video&&(null==t?void 0:t.video)&&(a.video.initBuffer=t.video.buffer)),a})).catch((e=>Promise.reject(e)))}_parseFragmentResponse(e){var t,n,r,i;const{fragment:o,profile:a,timeStart:s,loggingURL:l}=e.metadata,c=de(a),u=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(a),f="video_resolution"in a?a.video_resolution:void 0,h=`${o.timeStart}-${o.timeEnd}`,v="video_resolution"in a?"video":"audio";switch(e.status){case 0:{const e=new Y(p.D.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:h,mimetype:c,resolution:f,bitrate:u});return null===(t=this._mediator)||void 0===t||t.emit(d.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:v,url:l,start_time:s,init:o.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new Y(p.D.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:h,mimetype:c,resolution:f,bitrate:u});return null===(n=this._mediator)||void 0===n||n.emit(d.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:v,url:l,start_time:s,init:o.init,error:t}),Promise.reject(t)}const i=t.byteLength;this._abrManager.sample(i,Date.now()-s),this._updateVariants();const m=8e3*i/e.timing.completed;return null===(r=this._mediator)||void 0===r||r.emit(d.FRAGMENT_FETCHED,{media_type:"video",segment_type:v,url:l,init:o.init,byte_length:i,start_time:s,end_time:Date.now(),bandwidth:m}),Promise.resolve({profileId:`${this._fileId}-${a.id}`,bufferURL:l,buffer:t,byteStart:0,byteEnd:i-1,mimetype:c,resolution:f,bitrate:u,bandwidth:m})}}const m=new Y(p.D.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:h,mimetype:c,resolution:f,bitrate:u});return null===(i=this._mediator)||void 0===i||i.emit(d.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:v,url:l,init:o.init,start_time:s,error:m}),Promise.reject(m)}_getHLSURLForProfile(e){const t=this._duration,n=this._segmentLength,r=this._segmentTemplate,i=[];for(let o=0;ot?t-o:n,s=r.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",o.toString(10)).replace("{{file_type}}",e.file_type);i.push({duration:a,url:`${this._baseURL}${s}`})}const o=("undefined"==typeof MediaSource?te:ne)({assetID:this._assetId,targetDuration:n,segments:i});return this._hlsURLs.push(o),o}_calculateFragments(e){this._duration=e.end_time_millis/1e3;const t=this._segmentLength;this._initFragment={init:!0,cacheBufferSet:!1,timeStart:-1,timeEnd:-1,byteRanges:{}};for(let e=0;e=r.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferForFragment(e,null!=n?n:void 0,null!=r?r:void 0)}clearCachedBuffers(){this._initFragment&&(this._initSegments={}),this._fragments.forEach((function(e){e.bufferSet=null}))}getDuration(){return this._endTime}getFragmentAfterTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[1];for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return this._fragments[0];for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getSubtitleLanguages(){return this._subtitleLanguages}getSubtitles(){return this._subtitleLanguages.map((e=>({lang:e,url:this._subtitleTemplate.replace("{{language_code}}",e)})))}load(e={resolveLatency:0,manifestLatency:0}){if(this._loaded)return e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this);if(!this._fileId)throw new TypeError("Missing: provide either fileId or resolvedURL");const t=Date.now();return this._resolver.getManifest(this._fileId,this._noAuth).then((n=>{var r,i,o;let a;e.resolveLatency=0,e.manifestLatency=Date.now()-t;const s=n.contents[0];if(!s)return a=new h(p.D.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),a.track=this.toLogJSON(),Promise.reject(a);this._resolvedURLs=n.base_urls.slice();const[l,...c]=n.base_urls;let u;if(l&&(this._baseURL=l,this._fallbackURLs=c),this._resolvedURL=this._baseURL,this._initTemplate=n.initialization_template,this._segmentTemplate=n.segment_template,this._segmentLength=s.segment_length,null===(r=s.encryption_infos)||void 0===r?void 0:r.length){const e=s.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let r=0,i=e.length;r!!e))}getAudioProfile(){return this._audioProfile}getVideoProfile(){return this._videoProfile}getVideoProfiles(){return this._videoProfiles}getHLSURL(){if(!this._resolvedURL)throw new h(p.D.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const e=[],t=this._audioProfiles[0];t&&e.push(`#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,URI="${this._getHLSURLForProfile(t)}"`);for(const n of this._videoProfiles)e.push(`#EXT-X-STREAM-INF:BANDWIDTH=${n.max_bitrate},RESOLUTION=${n.video_width}x${n.video_height},CODECS="${(null==t?void 0:t.audio_codec)?`mp4a.40.2, ${n.video_codec}`:n.video_codec}"${(null==t?void 0:t.audio_codec)?',AUDIO="audio"':""}\n${this._getHLSURLForProfile(n)}`);const n=`#EXTM3U\n${e.join("\n")}`,r=("undefined"==typeof MediaSource?ee:Z)(n);return this._hlsURLs.push(r),r}releaseHLSURL(){for(const e of this._hlsURLs)URL.revokeObjectURL(e);this._hlsURLs=[]}canLowerBitrate(){var e;const t=this._videoProfiles[0];return(null===(e=this._videoProfile)||void 0===e?void 0:e.id)!==(null==t?void 0:t.id)}}var he;!function(e){e[e.MP3_256=3]="MP3_256",e[e.MP3_320=4]="MP3_320",e[e.MP3_160=5]="MP3_160",e[e.MP3_96=6]="MP3_96",e[e.MP4_128=10]="MP4_128",e[e.MP4_256=11]="MP4_256",e[e.MP4_128_DUAL=12]="MP4_128_DUAL",e[e.MP4_256_DUAL=13]="MP4_256_DUAL",e[e.MP4_128_CBCS=14]="MP4_128_CBCS",e[e.MP4_256_CBCS=15]="MP4_256_CBCS",e[e.MP4_FLAC=17]="MP4_FLAC"}(he||(he={}));const ve={[he.MP3_256]:"audio/mp3",[he.MP3_320]:"audio/mp3",[he.MP3_160]:"audio/mp3",[he.MP3_96]:"audio/mp3",[he.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[he.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[he.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[he.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[he.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[he.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[he.MP4_FLAC]:'audio/mp4; codecs="flac"'};class me extends ${constructor(e){if(super(e),this._lastResolveTimestamp=0,this._profileId=`${Date.now()}`,this._initBufferPromise=null,this._lastFetchedBuffer=null,this._hlsURL=null,this._bypassResolve=!!this._resolvedURL,this._emitWarning=e.emitWarning||function(){},this._mediaType="audio",this._noManifest=!!e.noManifest,this._preloadedManifest=e.preloadedManifest,this._resolver=e.resolver,this._segmentLength=0,this._fileFormat=e.fileFormat,this._fileFormat)this._audioCodec=ve[this._fileFormat];else switch(this._format){case u.MP3:this._audioCodec=ve[he.MP3_160];break;case u.MP4:case u.MP4_DUAL:case u.MP4_CBCS:this._audioCodec=ve[he.MP4_128];break;default:throw new TypeError(`Unknown audio format ${this._format}`)}this._fileId&&(this._profileId=this._fileId),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new me(e)}_parseFragmentResponse(e){const{requestURL:t,fragment:n,byteRangeHeader:r,expectedLength:i}=e.metadata,o=`${n.timeStart}-${n.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new Y(p.D.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:o,byte_range:r}));const i=new Y(p.D.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let a=!1;return this._resolvedURL!==t?a=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(a=!0,this._resolvedURL=this._fallbackURLs.shift()),i.debug.has_fallback=a,a?(this._emitWarning(i,this.toLogJSON()),this.getBufferForFragment(n)):Promise.reject(i)}case 200:case 206:{const a=e.body;if(!a)return Promise.reject(new Y(p.D.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:o,byte_range:r}));if(a.byteLength!==i)return Promise.reject(new Y(p.D.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:o,byte_range:r,received_length:a.byteLength,expected_length:i}));const s={audio:{profileId:this._profileId,bufferURL:t,byteStart:n.byteRanges.audio.start,byteEnd:n.byteRanges.audio.end,buffer:a,mimetype:this._audioCodec,bandwidth:8e3*a.byteLength/e.timing.completed}};if(n.cacheBufferSet&&a&&a.byteLength){n.bufferSet=s;const e=n.sliceInto;if(null==e?void 0:e.length)for(const t of e){const e=t.fragment;(null==e?void 0:e.cacheBufferSet)&&(e.bufferSet={audio:Object.assign(Object.assign({},s.audio),{buffer:a.slice(t.start,t.end),byteStart:e.byteRanges.audio.start,byteEnd:e.byteRanges.audio.end})})}}return this._abrManager.sample(a.byteLength,e.timing.completed),Promise.resolve(s)}case 403:return this.resolve().then((()=>this.getBufferForFragment(n)));default:{let i=!1;return this._resolvedURL!==t?i=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(i=!0,this._resolvedURL=this._fallbackURLs.shift()),i?this.getBufferForFragment(n):Promise.reject(new Y(p.D.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:o,byte_range:r}))}}}_getInitBuffer(){var e,t;if(!this._initFragment)throw new h(p.D.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return(null===(t=null===(e=this._initFragment.bufferSet)||void 0===e?void 0:e.audio)||void 0===t?void 0:t.buffer.byteLength)?Promise.resolve(this._initFragment.bufferSet.audio.buffer):(this._initBufferPromise||(this._initBufferPromise=this.getBufferForFragment(this._initFragment).then((e=>{var t;if(!(null===(t=e.audio)||void 0===t?void 0:t.buffer.byteLength))throw new Error("Empty initialization segment buffer");return e.audio.buffer}))),this._initBufferPromise)}_calculateFragments(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.segments,r=e.timescale,i=n.length,o=new Array(i);let a=0,s=0;for(let e=0,l=i;ethis._segmentLength&&(this._segmentLength=Math.floor(u))}o[o.length-1].isLastFragment=!0,this._fragments=o,this._duration=s/r}_calculateFragmentsV1(e){let t=e.offset;this._initFragment={init:!0,cacheBufferSet:!this._disableCache,timeStart:0,timeEnd:0,byteRanges:{audio:{start:0,end:t-1}}};const n=e.references,r=e.timescale,i=n.length,o=new Array(i);let a=0,s=0;for(let e=0,l=i;ethis._segmentLength&&(this._segmentLength=Math.floor(l))}o[o.length-1].isLastFragment=!0,this._fragments=o,this._duration=a/r}_getManifest(e){if(this._noManifest)return e&&(e.manifestLatency=0),Promise.resolve(null);if(this._preloadedManifest)return e&&(e.manifestLatency=0),Promise.resolve(this._preloadedManifest);if(!this._fileId)throw new TypeError("Missing: fileId");const t=Date.now();return this._resolver.getManifest(this._fileId).then((function(n){return e&&(e.manifestLatency=Date.now()-t),n}))}getHLSURL(){var e,t;const n=this._resolvedURL,r=this._initFragment;if(!n||!r)throw new h(p.D.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const i={url:n,byteStart:null===(e=r.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=r.byteRanges.audio)||void 0===t?void 0:t.end},o=this._fragments.map((e=>{var t,r;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(r=e.byteRanges.audio)||void 0===r?void 0:r.end}})),a="undefined"==typeof MediaSource?te:ne;return this._hlsURL=a({assetID:this._fileId,targetDuration:10,map:i,segments:o}),this._hlsURL}releaseHLSURL(){this._hlsURL&&URL.revokeObjectURL(this._hlsURL),this._hlsURL=null}clearCachedBuffers(){this._headFragment&&delete this._headFragment,this._initFragment&&(this._initFragment.bufferSet=null),this._fragments[0]&&(this._fragments[0].bufferSet=null),this._lastFetchedBuffer=null}getPlayableCodecs(){return[this._audioCodec]}getFirstFragment(){var e;return null!==(e=this._fragments[0])&&void 0!==e?e:null}getHeadFragment(){const e=this._initFragment,t=this._fragments[0];if(!(null==e?void 0:e.byteRanges.audio)||!(null==t?void 0:t.byteRanges.audio))throw new h(p.D.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");return this._headFragment||(this._headFragment={init:!0,cacheBufferSet:!0,timeStart:0,timeEnd:0,byteRanges:{audio:{start:e.byteRanges.audio.start,end:t.byteRanges.audio.end}},sliceInto:[{fragment:e,start:0,end:t.byteRanges.audio.start},{fragment:t,start:t.byteRanges.audio.start,end:void 0}]}),this._headFragment}getFragmentAfterTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[1])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart>e)return t;return null}getFragmentForTime(e){var t,n;if(!(null===(t=this._fragments)||void 0===t?void 0:t.length))return null;if(0===e||.01===e)return null!==(n=this._fragments[0])&&void 0!==n?n:null;for(const t of this._fragments)if(t.timeStart<=e&&t.timeEnd>=e)return t;return null}getBufferForFragment(e){var t;if(!e)return Promise.reject(new Error("FIXME: error type?"));if((null===(t=this._lastFetchedBuffer)||void 0===t?void 0:t.fragment)===e)return Promise.resolve(this._lastFetchedBuffer.bufferSet);if(e.bufferSet)return Promise.resolve(e.bufferSet);if(!this._resolvedURL)return Promise.reject(new h(p.D.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const n=e.byteRanges.audio,r=`${n.start}-${n.end}`,i=n.end+1-n.start,o=this._resolvedURL,a=e.init?Promise.resolve(null):this._getInitBuffer();return Promise.all([a,this._transport.request(o,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${r}`},timing:!0,metadata:{requestURL:o,fragment:e,byteRangeHeader:r,expectedLength:i},retry:{condition:(e,t)=>{if(0===e.status)return e.offline;const n=e.getStatusFamily();return n===t.CONNECTION_ERROR||n===t.SERVER_ERROR||!(n!==t.SUCCESS||!e.body)&&e.body.byteLength!==i}}}).then(this._parseFragmentResponse)]).then((([t,n])=>(t&&n.audio&&(n.audio.initBuffer=t),this._lastFetchedBuffer={fragment:e,bufferSet:n},n)))}resolve(e){const t=this._fileId;if(this._bypassResolve)return e&&(e.resolveLatency=0),Promise.resolve({uri:this._resolvedURL,uris:[],protection:this._preloadedManifest||!this._noManifest?"cenc":void 0});if(!t)throw new TypeError("Missing: fileId is required to resolve content URL");clearTimeout(this._lastResolveToken);const n=()=>(this._lastResolveTimestamp=Date.now(),this._resolver.getCDNURL(t,this._fileFormat).then((t=>(e&&(e.resolveLatency=Date.now()-this._lastResolveTimestamp),t)))),r=Date.now()-this._lastResolveTimestamp;let i;return i=r<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-r)})):n(),i.then((e=>{this._resolvedURLs=[];for(const t of e.uris){const e=t.split("?")[0];this._resolvedURLs.push(e)}return this._fallbackURLs=e.uris,this._resolvedURL=this._fallbackURLs.shift(),e})).catch((e=>(e&&(e.track=this.toLogJSON()),Promise.reject(e))))}load(e={resolveLatency:0,manifestLatency:0}){return this._loaded?(e.resolveLatency=0,e.manifestLatency=0,Promise.resolve(this)):Promise.all([this.resolve(e),this._getManifest(e)]).then((([e,t])=>{var n;if(this._loaded=!0,!e.protection||!t)return this;if(this._keySystem===i.INVALID_SPOTIFY_KEY)return this._protection=t.protection||"cenc",this._psshBox=new Uint8Array(0),this;let r;const o=this._keySystemSettings.pssh_field.audio;let a=function(e,t){return t.hasOwnProperty(e)}(o,t)?t[o]:null;if(!a&&"pssh_widevine"===o&&"pssh"in t&&(a=null!==(n=t.pssh)&&void 0!==n?n:null),!a)return r=new h(p.D.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),r.track=this.toLogJSON(),Promise.reject(r);if(this._protection=t.protection||"cenc",this._psshBox=this._parsePSSHBox(a),"segments"in t&&t.segments)this._calculateFragments(t);else{if(!("references"in t)||!t.references)return r=new h(p.D.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),r.track=this.toLogJSON(),Promise.reject(r);this._calculateFragmentsV1(t)}return this}))}adaptToBandwidth(){return Promise.resolve(!1)}}const ge=a.P.forTag("playback.content_buffer");var ye;function _e(){}!function(e){e[e.AUDIO=10]="AUDIO",e[e.VIDEO=20]="VIDEO"}(ye||(ye={}));class be extends s.vp{constructor(e,t=[],n={}){super(),this._mediaSource=null,this._sourceBuffers={},this._appendingFragments=[],this._currentInitSegments={},this._updateQueue=[],this._codecs=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="",this._codecs=t,this._tracker=e,this._disableBufferAbort=!!n.disableBufferAbort,this._customSourceBufferParams=this._parseCodecParam(n.customSourceBufferParams),this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),n.noInit||this._init()}static create(e,t=[],n={}){return new be(e,t,n)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(r.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(r.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_parseCodecParam(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n]?`="${e[n]}"`:"";t.push(`${n}${r}`)}return t.length?`; ${t.join("; ")}`:""}_onSourceOpen(){ge.info("MediaSource opened.");const e=this._mediaSource;if(e&&0===e.sourceBuffers.length&&"open"===e.readyState){ge.info("Creating source buffers for codecs",this._codecs);for(const e of this._codecs)this._addSourceBuffer(e)}this.dequeueUpdates(),this.emit(r.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){ge.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(r.BUFFER_SOURCE_CLOSE,null)}_removeAppendingFragment(e){if(!e)return;const t=this._appendingFragments,n=t.indexOf(e);-1!==n&&t.splice(n,1)}_addSourceBuffer(e){if(this._mediaSource){const t=this._mediaSource.addSourceBuffer(e+this._customSourceBufferParams);t.addEventListener(r.SOURCE_BUFFER_UPDATE_END,this.dequeueUpdates),this._sourceBuffers[e]=t}}_trackBufferingProgress(e){e.audio&&e.audio.buffer&&this._tracker.trackBytesDownloaded(e.audio.buffer.byteLength),e.video&&e.video.buffer&&this._tracker.trackBytesDownloaded(e.video.buffer.byteLength)}_checkStalling(e,t,n){var i,o;const a=t.byteRanges.video?t.byteRanges.video.start:null!==(o=null===(i=t.byteRanges.audio)||void 0===i?void 0:i.start)&&void 0!==o?o:-1;var s;e>9e3&&this.emit(r.BUFFER_STALLED,{byteStart:a,timeStart:(s=t.timeStart,Math.ceil(1e3*s)),stallAmount:e-9e3,didTimeout:n})}_appendBufferData(e,t,n,i=Date.now()){this.emit(r.BUFFERING_END,null);const o=[];if(e.audio){const r=(0,v.$)();this.tryUpdate({playId:n,timestamp:i,fragment:t,type:"append",profileId:e.audio.profileId,buffer:e.audio.buffer,initBuffer:e.audio.initBuffer,codec:e.audio.mimetype,init:!!t.init,resolve:r.resolve}),o.push(r.promise),null!==e.audio.bandwidth&&this._tracker.trackBufferURL(e.audio.bufferURL||"",{bandwidth:e.audio.bandwidth||0})}if(e.video){const r=(0,v.$)();this.tryUpdate({playId:n,timestamp:i,fragment:t,type:"append",profileId:e.video.profileId,buffer:e.video.buffer,initBuffer:e.video.initBuffer,codec:e.video.mimetype,init:!!t.init,resolve:r.resolve}),o.push(r.promise),null!==e.video.bandwidth&&this._tracker.trackBufferURL(e.video.bufferURL||"",{bandwidth:e.video.bandwidth||0})}return Promise.all(o)}_appendUpdate(e){var t,n;const i=this._sourceBuffers[e.codec];if(!i||i.updating)return void this._updateQueue.push(e);let o=e.buffer;if(e.fragment.init&&this._currentInitSegments[e.codec]===e.profileId)return null===(t=e.resolve)||void 0===t||t.call(e,!0),void Promise.resolve().then(this.dequeueUpdates);if(e.initBuffer&&e.buffer&&this._currentInitSegments[e.codec]!==e.profileId){const t=new Uint8Array(e.initBuffer.byteLength+e.buffer.byteLength);t.set(new Uint8Array(e.initBuffer),0),t.set(new Uint8Array(e.buffer),e.initBuffer.byteLength),o=t.buffer}try{i.appendBuffer(o)}catch(t){let n=!1;return"QuotaExceededError"===t.name?(ge.warn("Failed to append buffer: exceeded quota."),n=!0,this.emitSync(r.BUFFER_QUOTA_EXCEEDED,null)):ge.warn("Failed to append buffer",t),void new Promise((e=>{n?setTimeout(e,500):e()})).then((()=>{this._removeAppendingFragment(e.fragment),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}this._removeAppendingFragment(e.fragment);const a=o.byteLength>e.buffer.byteLength;(e.fragment.init||a)&&(this._currentInitSegments[e.codec]=e.profileId),null===(n=e.resolve)||void 0===n||n.call(e,!0),a?ge.info(`Injected combined init segment and playable segment (${e.codec}, ${e.profileId})`):e.init&&ge.info(`Injected individual init segment (${e.codec}, ${e.profileId})`)}_abortUpdate(e){"fragment"in e&&this._removeAppendingFragment(e.fragment),e.resolve&&e.resolve(!1),Promise.resolve().then(this.dequeueUpdates)}_processUpdate(e){"end"===e.type?this._endUpdate(e):"duration"===e.type?this._durationUpdate(e):"append"===e.type&&this._appendUpdate(e)}_isUpdating(){if(!this._mediaSource)return!1;const e=this._mediaSource.sourceBuffers;for(let t=0,n=e.length;t(this._trackBufferingProgress(e),o!==this._playId?(ge.info("Append fragment dropped: playId has changed."),[]):(n||this._checkStalling(Date.now()-i,t,!1),this._appendBufferData(e,t,o,i))))).catch((e=>(this._removeAppendingFragment(t),n||this._checkStalling(Date.now()-i,t,!0),this.emit(r.BUFFER_APPEND_ERROR,{error:e,canPlayNext:!0,track:a}),Promise.reject(e))))}abort(e=!1){if(this._lastBufferClearTime=Date.now(),this._appendingFragments=[],this._disableBufferAbort)return void ge.info("MediaSource abort skipped; action disabled.");const t=this._mediaSource;if(t){const n=t.sourceBuffers;for(let r=0,i=n.length;rr.duration)return void("open"===r.readyState&&this._endOfStream());const s=e.getFragmentLength();Math.ceil(n/s)>Math.floor(a.end/s)&&(o=e.getFragmentForTime(n),o&&this.appendFragment(e,o,t).catch(_e));const l=Math.floor(a.end-n);if(l>i)return;const c=Math.min(e.getFragmentLength(),i-l);if(c<1)return;const u=Math.floor(a.end+c);o=e.getFragmentForTime(u),o?this.appendFragment(e,o,t).catch(_e):this._endOfStream()}else if(o=e.getFragmentForTime(n),o){if(this.appendFragment(e,o,t).catch(_e),o.timeEndArray.from(e):e=>Oe.call(e);function Ce(e,t){const n=Ae(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Pe(e){const t=e;return{id:t.id,text:t.text}}const Ie="visible",Re="hidden",Ne=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$/;class ke extends s.vp{constructor(e){super(),this._isVisible=!1,this._player=null,this._crossOrigin=null,this._currentVideoContent=null,this._unsubscribers=[],this._displayedCues=[],this._deactivateListeners=!1,this._activeLanguage=void 0,this._preferredLanguage=e.language.toLowerCase(),e.deactivateListeners&&(this._deactivateListeners=!0),this._onEnter=this._onEnter.bind(this),this._onExit=this._onExit.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this.setPlayer(e.player)}_subscribeToCueEvents(e){var t;const{track:n}=e;if(!n)throw new Error("No track");if(null===(t=n.cues)||void 0===t?void 0:t.length){n.mode=this._isVisible?Te.SHOWING:Te.HIDDEN,this._displayedCues=n.activeCues?Array.from(n.activeCues):[],this._emitDisplayedCues();for(let e=0;e{t.removeEventListener("enter",this._onEnter),t.removeEventListener("exit",this._onExit)})))}}else{const t=()=>{this._subscribeToCueEvents(e),e.removeEventListener("load",t)};e.addEventListener("load",t)}}_unsubscribeFromCueEvents(){this._unsubscribers.forEach((e=>e())),this._unsubscribers=[]}_onEnter(e){const t=e.target;this._displayedCues.indexOf(t)>-1||(this._displayedCues.push(t),this._emitDisplayedCues())}_onExit(e){const t=e.target,n=this._displayedCues.indexOf(t);n>-1&&(this._displayedCues.splice(n,1),this._emitDisplayedCues())}_emitDisplayedCues(){this.emit(r.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Pe)})}_updateVisibleState(){var e,t;if(!this._player)return;const n=this.getActiveLanguage();Array.from(null!==(t=null===(e=this._player)||void 0===e?void 0:e.querySelectorAll("track"))&&void 0!==t?t:[]).forEach((e=>{e.style.visibility=this._isVisible?Ie:Re}));const r=this._player.textTracks;for(let e=0,t=r.length;e=1?this._onLoadedMetadata():this._currentVideoContent&&e.addEventListener(r.MEDIA_LOADEDMETADATA,this._onLoadedMetadata))}_onLoadedMetadata(){const e=this._player;if(!e)return;if(Ce(e,"track"),!this._currentVideoContent)return;e.crossOrigin="anonymous";const t=this._updateActiveLanguage();for(const{lang:n,url:r}of this._currentVideoContent.getSubtitles()){const i=n.toLowerCase()===t,o=document.createElement("track");o.label=`${n} subtitles`,o.kind="subtitles",o.srclang=n,o.src=r,o.default=i,o.style.visibility=this._isVisible?Ie:Re,e.appendChild(o),i&&!this._deactivateListeners&&this._subscribeToCueEvents(o)}}_updateActiveLanguage(){if(!this._player||!this._currentVideoContent)return void(this._activeLanguage=void 0);const e=this._currentVideoContent.getSubtitleLanguages(),t=this._preferredLanguage.split("-")[0];let n=null;for(const r of e){const e=r.toLowerCase();if(e===this._preferredLanguage)return this._activeLanguage=e,this._activeLanguage;e.split("-")[0]===t&&null===n&&(n=e)}return this._activeLanguage=null!=n?n:"en-us",this._activeLanguage}getActiveLanguage(){if(this._player&&this._currentVideoContent)return this._activeLanguage}setVideoContent(e){this._unsubscribeFromCueEvents(),this._displayedCues=[],this._currentVideoContent=e,e||this.clear(),this._updateTextTracks()}setPlayer(e){var t;const n="VIDEO"===(null==e?void 0:e.tagName)?e:null;this._player!==n&&this.clear(),this._player=n||null,this._crossOrigin=null!==(t=null==n?void 0:n.crossOrigin)&&void 0!==t?t:null,this._updateTextTracks()}getAvailableLanguages(){var e,t;return null!==(t=null===(e=this._currentVideoContent)||void 0===e?void 0:e.getSubtitleLanguages())&&void 0!==t?t:[]}setLanguage(e){if(!e.length)throw new TypeError("Argument `code` must be a non-empty string. Hide subtitles using `hideSubtitles()`.");if(!Ne.test(e))throw new TypeError("Argument `code` must be a valid BCP 47 formatted language code");this._preferredLanguage=e.toLowerCase(),this._updateTextTracks()}hide(){this._isVisible=!1,this._updateVisibleState()}show(){this._isVisible=!0,this._updateVisibleState()}deactivateListeners(){if(this._deactivateListeners)return;this._player&&(this._deactivateListeners=!0,this._unsubscribeFromCueEvents())}activateListeners(){this._deactivateListeners&&(this._deactivateListeners=!1,this._updateTextTracks())}areListenersActivated(){return!this._deactivateListeners}clear(){const e=this._player;e&&(this._unsubscribeFromCueEvents(),this._currentVideoContent=null,this._displayedCues=[],Ce(e,"track"),e.removeEventListener(r.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class Le{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new Le(e)}getSample(e,t){var n,r;const i=this.bandwidthEstimator.getBandwidthEstimate(),o=function(e,t){const n=e.length;for(let r=0;re.video_bitrate)),height:null==s?void 0:s.video_height,width:null==s?void 0:s.video_width,resolution:null==s?void 0:s.video_resolution,contentType:de(null!=s?s:void 0)},audio:{bitrate:null==a?void 0:a.audio_bitrate,contentType:de(null!=a?a:void 0)}}}}const we=a.P.forTag("playback.player"),De=/^blob:/,Me={[u.MP4]:!0,[u.MP4_DUAL]:!0,[u.MP4_CBCS]:!0,[u.MP4_FLAC]:!0,[u.MP3]:!1,[u.MANIFEST_ID]:!1};function xe(e){return Math.ceil(1e3*e)}function Ue(e){return e/1e3}function Fe(e){return document.createElement(e)}class ze extends s.vp{constructor(e){super(),this._cubicVolume=!1,this._player=null,this._emeManager=null,this._mediator=new s.vp,this._currentContent=null,this._upcomingContent=null,this._preloadingTracks={},this._playId=0,this._loaded=!1,this._licenseRequested=!1,this._playerActivated=!1,this._pauseToken=0,this._syntheticEndedToken=0,this._activeCodecs=[],this._playerVolume=1,this._playerSpeed=1,this._fatalOnNextError=!1,this._canPreloadEmitted=!1,this._lastTimeUpdatePostion=0,this._buffering=!1,this._preferredBitrate=0,this._disableLicensePrefetch=!1,this._allowMixedAVC1Codecs=!1,this._disableBufferingBeforeLicense=!1,this._audioResolver=e.audioResolver,this._clearBufferOnSeek=!!e.clearBufferOnSeek,this._createPlayer=e.createPlayer||Fe,this._cubicVolume=e.cubicVolume,this._disableCache=!!e.disableCache,this._licenseURLResolver=e.licenseURLResolver,this._newBufferPerTrack=!!e.newBufferPerTrack,this._newElementPerTrack=!!e.newElementPerTrack,this._newMediaKeysPerTrack=!!e.newMediaKeysPerTrack,this._rebufferOnQuotaExceeded=!!e.rebufferOnQuotaExceeded,this._disableLicensePrefetch=!!e.disableLicensePrefetch,this._synthesizeEnded=!!e.synthesizeEnded,this._tracker=e.tracker,this._transport=e.transport,this._videoPlayerContainer=e.videoPlayerContainer,this._audioPlayerContainer=e.audioPlayerContainer,this._allowMixedAVC1Codecs=e.allowMixedAVC1Codecs,this._videoResolver=e.videoResolver,this._abrManager=new Se,this._emeManager=e.disallowProtectedTracks?null:e.emeManager||null,this._disallowProfile=e.disallowProfile,this._disableBufferingBeforeLicense=!!e.disableBufferingBeforeLicense,this._cache=new l.z(e.trackCacheSize||2),this._subtitleManager=new ke({language:e.preferredSubtitleLanguage||navigator.language,player:this._player}),this._videoResolution=e.videoResolution,we.info("Setting Player track cache to:",e.trackCacheSize||2),this._buffer=be.create(this._tracker,void 0,{disableBufferAbort:!!e.disableBufferAbort,reinjectInitsOnAbort:!!e.reinjectInitsOnAbort,noInit:!0,customSourceBufferParams:e.customSourceBufferParams}),this._statistics=Le.create({bandwidthEstimator:this._abrManager}),this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onTimeUpdate=this._onTimeUpdate.bind(this),this._onDurationChange=this._onDurationChange.bind(this),this._onPlay=this._onPlay.bind(this),this._onPlaying=this._onPlaying.bind(this),this._onPause=this._onPause.bind(this),this._onSeeking=this._onSeeking.bind(this),this._onEncrypted=this._onEncrypted.bind(this),this._onEnded=this._onEnded.bind(this),this._onError=this._onError.bind(this),this._onRequiresDuration=this._onRequiresDuration.bind(this),this._onQuotaExceeded=this._onQuotaExceeded.bind(this),this._onLoadedMetadata=this._onLoadedMetadata.bind(this),this._onWaiting=this._onWaiting.bind(this),this._onFragmentFetched=this._onFragmentFetched.bind(this),this._onProfileChanged=this._onProfileChanged.bind(this),this._onPlayedThresholdReached=this._onPlayedThresholdReached.bind(this),this._onSyntheticEnded=this._onSyntheticEnded.bind(this),this._onLicenseRequestCapped=this._onLicenseRequestCapped.bind(this),this._onLicenseRequestError=this._onLicenseRequestError.bind(this),this._onNavigatorOffline=this._onNavigatorOffline.bind(this),this._onBufferError=this._onBufferError.bind(this),this._emitWarning=this._emitWarning.bind(this),this._handleLoadingComplete=this._handleLoadingComplete.bind(this),this._onRateChange=this._onRateChange.bind(this),this._onVideoResize=this._onVideoResize.bind(this),this._init()}static create(e){const t=Object.assign({},e);return e.disallowProtectedTracks?ze.createWithOptions(t):W.create({transport:e.transport,disallowRobustnessValues:e.disallowRobustnessValues,disallowCodecs:e.disallowCodecs,noServerCertificate:e.noServerCertificate,precacheServerCertificate:e.precacheServerCertificate,unauthServerCertificateBase:e.unauthServerCertificateBase,preferredKeySystems:e.preferredKeySystems}).then((e=>{t.emeManager=e;const n=new ze(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return ze.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new ze(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&we.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[r.TRACKER_TRACKING_DATA_CREATED]:r.PLAYER_TRACKING_DATA_CREATED,[r.TRACKER_TRACKING_DATA_FINALIZED]:r.PLAYER_TRACKING_DATA_FINALIZED,[r.TRACKER_PLAYBACK_START]:r.PLAYER_PLAYBACK_START}),this._tracker.on(r.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[r.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[r.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._buffer.addListeners({[r.BUFFER_APPEND_ERROR]:this._onBufferError,[r.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded}),this.proxyEmitAll(this._buffer,{[r.BUFFER_STALLED]:r.PLAYER_BUFFER_STALLED}),this._mediator.addListeners({[d.FRAGMENT_FETCHED]:this._onFragmentFetched,[d.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[d.FRAGMENT_FETCH_ERROR]:r.PLAYER_FRAGMENT_FETCH_ERROR,[d.SUBTITLE_LANGUAGES_LOADED]:r.PLAYER_SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitSync(this._subtitleManager,r.PLAYER_DISPLAYED_CUES_CHANGED,r.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmitAll(this._videoResolver,{[r.VIDEO_MANIFEST_RESOLVED]:r.PLAYER_VIDEO_MANIFEST_RESOLVED,[r.VIDEO_MANIFEST_RESOLVE_FAILED]:r.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED})}_onRateChange(){this._player&&(this._tracker.trackSpeedChanged(this._player.playbackRate),this.emit(r.PLAYER_PLAYBACK_SPEED_CHANGED,{playback_speed:this._player.playbackRate}))}_onLicenseRequestError(e){if(e.data.playId!==this._playId)return;const t=this._currentContent;if(!t)return;const n=e.data.error;n.shouldRefreshEndpoint&&this._licenseURLResolver.remove(t.getKeySystem(),t.getMediaType()),this._emitError(n,!n.unrecoverable,t.toLogJSON())}_onFragmentFetched(e){const{data:t}=e;this._tracker.setBandwidth(t.bandwidth),this.emit(r.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.setRenditionCount(t.profile.bitrate),this.emit(r.PLAYER_VIDEO_PROFILE_CHANGED,t)}_onLicenseRequestCapped(e){if(e.data.playId!==this._playId)return;this._currentContent&&(this.pause(),this.emit(r.PLAYER_CAPPED,null))}_shouldNextErrorBeFatal(){const e=this._currentContent;if(!e)return!1;if(e.isAd()||!e.isProtected())return!1;if(!this._player)return!1;const t=this._player.error;if(!(t&&t instanceof MediaError))return this._fatalOnNextError=!1,!1;switch(t.code){case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:case MediaError.MEDIA_ERR_DECODE:return!0;default:return!1}}_onNavigatorOffline(){this._tracker.trackNavigatorOffline()}_onBufferError(e){this._emitError(e.data.error,e.data.canPlayNext,e.data.track)}_addPlayerEvents(e){e.addEventListener(r.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(r.MEDIA_PLAY,this._onPlay),e.addEventListener(r.MEDIA_PLAYING,this._onPlaying),e.addEventListener(r.MEDIA_PAUSE,this._onPause),e.addEventListener(r.MEDIA_SEEKING,this._onSeeking),e.addEventListener(r.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(r.MEDIA_ENDED,this._onEnded),e.addEventListener(r.MEDIA_ERROR,this._onError),e.addEventListener(r.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(r.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(r.MEDIA_WAITING,this._onWaiting),e.addEventListener(r.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(r.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(r.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(r.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(r.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(r.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(r.MEDIA_PLAY,this._onPlay),e.removeEventListener(r.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(r.MEDIA_PAUSE,this._onPause),e.removeEventListener(r.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(r.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(r.MEDIA_ENDED,this._onEnded),e.removeEventListener(r.MEDIA_ERROR,this._onError),e.removeEventListener(r.MEDIA_WAITING,this._onWaiting),e.removeEventListener(r.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(r.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(r.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(r.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(r.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(r.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(r.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,i){if(t!==this._playId)return we.info("Recreate player dropped: playId has changed."),Promise.resolve(!1);const o=this._player;if(o){if(!this._newElementPerTrack&&("AUDIO"!==o.tagName||"video"!==n)){let t=!0;for(const n of e)if('audio/mp2t;codecs="mp4a.40.2"'!==n&&!o.canPlayType(n)){t=!1;break}if(t)return we.info("Reusing media element."),e.join(",")===this._activeCodecs.join(",")&&!this._newBufferPerTrack||i||(we.info("Recreating buffer."),this._buffer.recreate(e),this._activeCodecs=e),Promise.resolve(!0)}this._removePlayerEvents(o),o.pause(),this._emeManager&&this._emeManager.removeMediaKeys(o).catch((function(e){we.warn("Failed to remove media keys.",e)})),this._player=null;const t=this._getContainerElement(this._videoPlayerContainer);t&&o.parentNode===t&&(t.removeChild(o),this.emit(r.PLAYER_VIDEO_ELEMENT_REMOVED,null));const a=this._getContainerElement(this._audioPlayerContainer);a&&o.parentNode===a&&a.removeChild(o)}we.info("Creating new media element.");const a=this._createPlayer(n),s=this._playerVolume;return a.volume=this._cubicVolume?s*s*s:s,a.autoplay=!1,a.loop=!1,"playsInline"in a&&(a.playsInline=!0),this._player=a,this._subtitleManager.setPlayer(a),this._playerActivated=!1,this._addPlayerEvents(a),i||this._buffer.recreate(e),this._activeCodecs=e,Promise.resolve(!0)}_getContainerElement(e){return"string"==typeof e?document.querySelector(e):e||null}_onVideoResize(){if(!(this._player instanceof HTMLVideoElement))return;const{videoWidth:e,videoHeight:t}=this._player;this.emit(r.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){const e=this._playId,t=()=>{if(!this._player)return;if(e!==this._playId)return void we.info("Duration changed drop: playId has changed.");const t=xe(this._player.duration),n=xe(this._player.currentTime);this._tracker.setActualDuration(t),this.emit(r.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:t})};this._loaded?t():this.once(r.PLAYER_LOAD,t)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=xe(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(r.PLAYER_PLAY,{timestamp:Date.now(),position:t,logData:null!==(e=this._currentContent.getLogData())&&void 0!==e?e:null})}_onPlaying(){if(!this._player)return;this._playerActivated=!0;const e=this._currentContent,t=xe(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(r.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){if(!this._player)return;const e=xe(this._player.currentTime);this._tracker.trackPaused(e);const t=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(r.PLAYER_PAUSED,{position:e,logData:t})}),10)}_onSeeking(){this.emit(r.PLAYER_SEEKING,null),this._buffer.abort(this._clearBufferOnSeek),this._lastTimeUpdatePostion=0,this._onTimeUpdate()}_onRequiresDuration(){this._currentContent&&this._currentContent.isProtected()&&this._player&&(this._player.duration=this._currentContent.getCalculatedDuration())}_onQuotaExceeded(){this._player&&this._rebufferOnQuotaExceeded&&(we.info("Exceeded quota: rebuffering current track."),this._buffer.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){we.info("Got Encrypted event");this._currentContent&&this.emitSync(r.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(we.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(we.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const r=this._currentContent;let i,o,a,s=!1;r&&(n=r.isProtected(),t=r.toLogJSON(),s=r.isAd(),r.clearCachedBuffers());let l=!0;const c=!r||s||!this._fatalOnNextError,u=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,d=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:i=p.D.MEDIA_ABORTED,o="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:i=p.D.MEDIA_NETWORK_ERROR,o="Network error.";break;case MediaError.MEDIA_ERR_DECODE:i=p.D.MEDIA_DECODING_ERROR,o="Media decoding error.",l=c;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:i=p.D.MEDIA_NOT_SUPPORTED,o="Media not supported.",l=c;break;default:i=p.D.PLAYER_MEDIA_ERROR,o="Media error.",a=!0}o+=` (${e.message||u||d||e.toString()})`}else i=p.D.PLAYER_PLAYBACK_ERROR,o="Error message undefined",a=!0;this._buffer.abort(!0);const h=new f(i,o);l||(h.unrecoverable=!0),h.listPlayerIgnore=s,h.debug.src_url=d,h.debug.protected=n,h.debug.extendedCode=u,h.debug.rawExCode=e&&e.msExtendedCode||null,a&&e&&(h.debug.nativeCode=e.code||null,h.debug.errorData=e),this._emitError(h,l,t)}_onLoadedMetadata(){this.emitSync(r.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._buffering=!1,this.emitSync(r.INTERNAL_PLAYER_CANPLAY,null),this.emit(r.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this.emitSync(r.INTERNAL_PLAYER_CANPLAYTHROUGH,null)}_onWaiting(){clearTimeout(this._syntheticEndedToken);const e=this._player;if(!e||!this._currentContent)return;const t=e.seeking;this._buffering=!0;const n=this._currentContent.canLowerBitrate(),i=this._tracker;this.emit(r.PLAYER_BUFFERING_START,Object.assign({position:xe(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,seeking:t},i.getStallsInformation())),this._getBufferingLatency().then((o=>{t||this._tracker.trackMsStalled(o),this.emit(r.PLAYER_BUFFERING_END,Object.assign({position:xe(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,msStalled:o,seeking:t},i.getStallsInformation()))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(r.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:xe(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(r.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(r.PLAYER_ENDED,null)}_emitError(e,t,n){we.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(r.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?xe(this._player.currentTime):0})}_emitWarning(e,t){we.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(r.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?xe(this._player.currentTime):0})}_prepareMediaElement(e,t){return t===this._playId&&this._upcomingContent?this._recreateMediaElement(this._upcomingContent.getPlayableCodecs(),t,this._upcomingContent.getMediaType(),this._upcomingContent.getKeySystem()===i.FAIRPLAY).then((n=>{var r;if(!n||t!==this._playId)return we.info("Loading content dropped after recreate: playId has changed."),Promise.resolve(!1);this._player.playbackRate=(null===(r=this._loadingOptions)||void 0===r?void 0:r.useDefaultPlaybackSpeed)?1:this._playerSpeed;const i=this._player;return"VIDEO"===(null==i?void 0:i.tagName)&&(e.poster?i.poster=e.poster:i.removeAttribute("poster")),i&&this._upcomingContent&&this._upcomingContent.isProtected()&&this._emeManager&&(!i.mediaKeys||i.mediaKeys.shouldRefreshPerTrack||this._newMediaKeysPerTrack)?(we.info("Creating media keys"),this._emeManager.createMediaKeys(i).then((()=>!0)).catch((e=>(e.unrecoverable=!0,this._emitError(e,!1,this._upcomingContent?this._upcomingContent.toLogJSON():void 0),Promise.reject(e))))):Promise.resolve(!0)})):(we.info("Loading content dropped: playId has changed."),Promise.resolve(!1))}_handleLoadingComplete(e){const t=this._currentContent&&this._currentContent.getMediaType(),n=this._getContainerElement("video"===t?this._videoPlayerContainer:this._audioPlayerContainer);return n&&this._player&&this._player.parentNode!==n&&(n.appendChild(this._player),"video"===t&&this.emit(r.PLAYER_VIDEO_ELEMENT_APPENDED,null)),this._upcomingContent=null,e}_handleLoadingError(e,t,n,i){if(this._upcomingContent=null,n!==this._playId)return Promise.resolve(!1);if(this._tracker.trackLoadFailed(),this.emit(r.PLAYER_LOADING_FAILED,{uri:e,logData:t.logData}),i){const n=i.track||{uri:e,fileId:t.fileId,format:t.format,deviceId:t.logData.deviceId};this._emitError(i,"StorageError"!==i.name||!!i.canPlayNext,n)}return Promise.reject(i)}_handleLoadedMetadata(e,t,n){if(e!==this._playId)return void we.info("LoadedMetadata operations dropped: playId has changed.");this._loaded=!0;const i=this._player;if(!i)return;this._buffer.dequeueUpdates();const o=n.position>i.duration?0:n.position;this._lastTimeUpdatePostion=0,i.currentTime{this._onTimeUpdate()}));let a=()=>{i.currentTime{if(i.currentTimee(this._player&&this._player.play()))).catch((e=>{if(e){if("NotSupportedError"===e.name)return Promise.reject(e);if("NotAllowedError"===e.name)return this.emit(r.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),i.readyState>2?(we.info("Ready to play, triggering play."),a()):(we.info("Waiting to be playable."),this.once(r.INTERNAL_PLAYER_CANPLAY,a))}_handleCanPlayThrough(e){e===this._playId?this._tracker.trackCanPlayThrough():we.info("CanPlayThrough operations dropped: playId has changed.")}_loadContent(e,t){if(t!==this._playId||!this._upcomingContent)return we.info("Loading content dropped: playId has changed."),Promise.resolve(!1);if(!this._player)throw new f(p.D.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._subtitleManager.setVideoContent(n instanceof fe?n:null);const o=e.callback;o&&this.once(r.PLAYER_LOAD,(()=>{this._playId&&t===this._playId?o():we.info("Load content event dropped: playId has changed.")})),this.once(r.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(r.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let a=e.position;const s=n.getCalculatedDuration();s&&a>s&&(a=e.position=0);try{this._player.currentTime=a}catch(e){we.warn("Cannot set initial position before loading.",e)}const l=n.isProtected();return this._tracker.setProtected(l),n.getKeySystem()===i.FAIRPLAY?n instanceof me&&!l?Promise.resolve(this._loadUnprotectedTrack()):Promise.resolve(this._loadHLSProtectedTrack(e,t)):n instanceof fe?this._loadVideoTrack(e,t):l?this._loadProtectedTrack(e,t):Promise.resolve(this._loadUnprotectedTrack())}_getBufferingLatency(){return new Promise((e=>{if(!this._player)return void e(0);const t=Date.now();this._player.addEventListener("canplaythrough",(function n(){this.removeEventListener("canplaythrough",n),e(Date.now()-t)}))}))}_loadVideoTrack(e,t){if(!(this._player&&this._currentContent&&this._currentContent instanceof fe))return Promise.resolve(!1);const n=this._currentContent;we.info("_loadVideoTrack");const i=()=>{this._currentContent&&this._currentContent.isProtected()&&this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}))};this._disableLicensePrefetch?this.once(r.INTERNAL_ENCRYPTED,i):this._buffer.once(r.BUFFER_SOURCE_OPEN,i),this._player.src=URL.createObjectURL(this._buffer.getMediaSource());const o=n.getVideoProfile(),a=n.getAudioProfile();return a||o?(this._tracker.trackVideoLoadStart({bitrate:null==o?void 0:o.video_bitrate,audioProfile:null!=a?a:void 0,videoProfile:null!=o?o:void 0}),this._tracker.trackBufferLoadStart(),this._buffer.appendFragment(n,n.getInitFragment()).then((()=>this._buffer.setDuration(n.getCalculatedDuration()))).then(this._onAppendedHeadSegment(t))):Promise.resolve(!1)}_loadHLSProtectedTrack(e,t){if(we.info("Load HLS Protected Track"),!this._player||!this._currentContent)return!1;const n=this._currentContent.getResolvedURL();if(!n)throw new h(p.D.FILE_NOT_RESOLVED,"Cannot load HLS protected track: File not resolved.");const i=e=>{e.data.fromPolyfill&&(this.removeListener(r.INTERNAL_ENCRYPTED,i),this._requestLicense(t,{initData:e.data.initData}))};this.on(r.INTERNAL_ENCRYPTED,i);const o=this._currentContent;if(o instanceof fe){const e=o.getVideoProfile(),t=o.getAudioProfile();this._tracker.trackVideoLoadStart({bitrate:null==e?void 0:e.video_bitrate,audioProfile:null!=t?t:void 0,videoProfile:null!=e?e:void 0})}this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(n,{bandwidth:0});const a=document.createElement("source");return a.src=this._currentContent.getHLSURL(),a.type=X,this._player.appendChild(a),this._player.load(),!0}_loadUnprotectedTrack(){if(!this._player||!this._currentContent)return!1;const e=this._currentContent.getResolvedURL();return!!e&&(we.info("_loadUnprotectedTrack",this._currentContent.getURI()),this._tracker.trackBufferLoadStart(),this._tracker.trackBufferURL(e,{bandwidth:0}),this._player.src=e,this._player.load(),!0)}_onAppendedHeadSegment(e){return()=>e===this._playId&&(this._player&&this._player.spload&&this._player.spload(),we.info("Head segment appended."),!0)}_loadProtectedTrack(e,t){if(!(this._currentContent&&this._player&&this._currentContent instanceof me))return Promise.resolve(!1);const n=this._currentContent;we.info("_loadProtectedTrack",n.getURI());const i=()=>this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(r.INTERNAL_ENCRYPTED,i):this._buffer.once(r.BUFFER_SOURCE_OPEN,i),this._player.src=URL.createObjectURL(this._buffer.getMediaSource()),this._tracker.trackBufferLoadStart();const o=n.getFragmentForTime(e.position);let a=null;return o===n.getFirstFragment()?(we.info("Appending combined init and playable fragment."),a=this._buffer.appendFragment(n,n.getHeadFragment())):(we.info("Appending split init and playable fragment."),a=this._buffer.appendFragment(n,o)),a.then(this._onAppendedHeadSegment(t)).then((()=>Promise.resolve(t===this._playId)))}_requestLicense(e,t={}){if(e!==this._playId){const e="Request license dropped: playId has changed.";return we.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),i=this._player.mediaKeys,o=this._currentContent,a=o.getFileId(),s=o.getLogData(),l=o.toLogJSON(),c=o.getKeySystem(),u=o.getLicenseEndpoint();let d;if(u)d=Promise.resolve(u);else{if(!a)return Promise.reject(new TypeError("Missing: fileId or licenseEndpoint"));d=this._licenseURLResolver.get(c,o.getMediaType()).then((e=>e.replace(/\{contentId\}/,a)))}const p=this._emeManager,f=this._tracker;return f.setKeySystem(c),f.setKeySystemImpl(p.getKeySystemImpl()),Promise.all([d,o.getInitParams()]).then((([r,o])=>{f.setLicenseSessionLatency(Date.now()-n);const a=o.initDataType,s=t.initData||o.initData;if(i&&s&&a){const t=Object.assign(Object.assign({},o),{playId:e,initData:s,mediaKeys:i,licenseServer:r,initDataType:a});return p.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e!==this._playId)return we.info("License tracking dropped: playId has changed."),Promise.resolve(!1);"boolean"!=typeof t&&"elapsed"in t&&(f.setLicenseGenerationLatency(t.elapsed.generate),f.setLicenseRequestLatency(t.elapsed.request),f.setLicenseUpdateLatency(t.elapsed.update));const i=Date.now()-n;return f.setKeyLatency(i),this.emit(r.PLAYER_KEY_RECEIVED,{requestTime:i,logData:s}),we.info("License updated."),Promise.resolve(!0)})).catch((t=>{if(!t||e!==this._playId)return Promise.resolve(!1);const n=!t||!("canPlayNext"in t)||t.canPlayNext;return this._emitError(t,n,l),Promise.reject(t)}))}_onTimeUpdate(){var e;if(!this._loaded||!(null===(e=this._player)||void 0===e?void 0:e.readyState)||!this._currentContent)return;const t=this._currentContent,n=this._player.seeking,o=this._player.currentTime,a="video"===t.getMediaType();if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void we.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===o)return void we.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:o,t.getKeySystem()!==i.FAIRPLAY&&(a||t.isProtected())&&this._buffer.progress(t,n,o);const s=this._player.duration,l=xe(o),c=t.getLogData();n?(this._tracker.trackPositionChanged(l),this.emit(r.PLAYER_POSITION_CHANGED,{position:l,logData:c})):(this._tracker.trackProgress(l,"getCurrentBitrate"in t?t.getCurrentBitrate():0),this.emit(r.PLAYER_PROGRESS,{timestamp:Date.now(),position:l,played:this._tracker.getMSPlayed(),interval:500,logData:c})),!this._canPreloadEmitted&&s-o<=10?(this._canPreloadEmitted=!0,this.emit(r.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted=!1,clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,xe(s-o)))}_isPlaying(){return!!this._player&&!this._player.paused}_createAudioContent(e,t){const n={manifestLatency:0,resolveLatency:0};return(this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve({keySystem:i.INVALID_SPOTIFY_KEY})).then((r=>me.create({abrManager:this._abrManager,mediator:this._mediator,keySystem:r.keySystem,licenseEndpoint:t.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:e,fileId:t.fileId,fileFormat:t.fileFormat,format:t.format,isAd:t.isAd,resolvedURL:t.resolvedURL,noManifest:t.noManifest,preloadedManifest:t.preloadedManifest,logData:t.logData,disableCache:this._disableCache,emitWarning:this._emitWarning}).load(n))).then((e=>{const r=this._tracker;return r.setResolveLatency(n.resolveLatency),r.setManifestLatency(n.manifestLatency),e.isProtected()&&t.fileId&&!this._disableCache&&this._cache.set(t.fileId,e),e}))}_createVideoContent(e,t){const n={manifestLatency:0,resolveLatency:0},r=t.fileId;return(this._emeManager?this._emeManager.getKeySystemInfo():this.getMediaConfig().then((e=>({keySystem:i.INVALID_SPOTIFY_KEY,audioFormats:e.formatsInfo.audio,videoFormats:e.formatsInfo.video})))).then((i=>fe.create({uri:e,abrManager:this._abrManager,mediator:this._mediator,resolver:this._videoResolver,keySystem:i.keySystem,licenseEndpoint:t.licenseEndpoint,fileId:r,noAuth:t.noAuth,format:u.MANIFEST_ID,isAd:t.isAd,transport:this._transport,videoFormats:i.videoFormats,videoResolution:this._videoResolution,audioFormats:i.audioFormats,disableCache:this._disableCache,disallowProfile:this._disallowProfile,allowMixedAVC1Codecs:this._allowMixedAVC1Codecs}).load(n))).then((e=>{const t=this._tracker;return t.setResolveLatency(n.resolveLatency),t.setManifestLatency(n.manifestLatency),e.isProtected()&&r&&!this._disableCache&&this._cache.set(r,e),e}))}_preinitMediaElement(){return this._player||!this._emeManager?Promise.resolve(this):this._emeManager.getKeySystemInfo().then((e=>{var t,n;const r=[];return(null===(t=e.audioFormats)||void 0===t?void 0:t[0])&&r.push(e.audioFormats[0].contentType),(null===(n=e.videoFormats)||void 0===n?void 0:n[0])&&r.push(e.videoFormats[0].contentType),!!r.length&&this._recreateMediaElement(r,this._playId,r.length>1?"video":"audio",e.keySystem!==i.FAIRPLAY)})).then((()=>this),(e=>(we.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}getCodecInfo(){return{audiocodec:"mp3",bitrate:160}}getMediaSource(){return this._buffer.getMediaSource()}load(e,t,n){var i;const o=function(e,t){return t&&t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",a=e[o];if(we.info("load",a),!a)return Promise.reject(new f(p.D.PLAYER_CANNOT_FIND_PLAYABLE_URI,"Cannot find a playable URI."));if(!e.logData)return Promise.reject(new Error("Invalid track: logging info not specified"));this.stop(e.logData,e.mediaType),this._loaded=!1,this._licenseRequested=!1,this._buffering=!0,this._currentContent=null,this._subtitleManager.setVideoContent(null);const s=++this._playId,l=this._tracker;let c;l.trackLoadStart(a,e.fileId,s.toString(),e.logData,e.metadata),this.emit(r.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:a,timestamp:Date.now()}),this._buffer.setPlayId(s),this._loadingOptions={position:Ue(t.position||0),autoplay:!("autoplay"in t)||t.autoplay,poster:e.poster,useDefaultPlaybackSpeed:!!(null===(i=e.options)||void 0===i?void 0:i.useDefaultPlaybackSpeed),callback:n},l.setPlayIntended(this._loadingOptions.autoplay),l.setPlayedThreshold(t.playedThreshold);const u=this._cache,d="video"===e.mediaType?this._createVideoContent.bind(this,a,e):this._createAudioContent.bind(this,a,e,s);if(e.fileId){const t=e.fileId,n=this._preloadingTracks[t],r=this._disableCache?null:u.get(t);n?(we.info("Waiting for preloading track.",t),c=n.then((e=>(we.info("Preloading succeeded.",t),l.setResolveLatency(e.resolveLatency),l.setManifestLatency(e.manifestLatency),u.get(t))),(()=>(we.info("Preloading failed, creating new track",t),d())))):r?(we.info("Using cached track.",t,r),l.setMemoryCached(!0),c=Promise.resolve(r)):(we.info("Creating new track from fileId",t),c=d())}else we.info("Creating new track without fileId",e.resolvedURL),c=d();return c.then((t=>t.isProtected()&&!this._emeManager?Promise.reject(new f(p.D.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported")):(t.setLogData(e.logData),l.setCalculatedDuration(xe(t.getCalculatedDuration())),this._upcomingContent=t,Promise.resolve()))).then(this._prepareMediaElement.bind(this,this._loadingOptions,s)).then(this._loadContent.bind(this,this._loadingOptions,s)).then(this._handleLoadingComplete,this._handleLoadingError.bind(this,a,e,s))}preload(e){const t=!this._disableCache,n=e.uri,i=e.fileId,o=this._cache;if(!t||!i||!this._emeManager)return Promise.resolve(null);const a="video"===e.mediaType;if(!(Me[e.format]&&!a)||o.get(i))return Promise.resolve(null);const s=this._preloadingTracks,l=s[i];if(l)return l;we.info("Preloading track",i);const c={manifestLatency:0,resolveLatency:0},u=this._emeManager.getKeySystemInfo().then((t=>me.create({abrManager:this._abrManager,keySystem:t.keySystem,licenseEndpoint:e.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:n,fileId:i,format:e.format,fileFormat:e.fileFormat,isAd:e.isAd,resolvedURL:e.resolvedURL,noManifest:e.noManifest,preloadedManifest:e.preloadedManifest,logData:e.logData,disableCache:this._disableCache,emitWarning:this._emitWarning}).load(c))).then((t=>Promise.all([t,"MP4_CBCS"!==e.format?t.getBufferForFragment(t.getHeadFragment()):null]))).then((([e])=>(o.set(i,e),delete s[i],we.info("Cached",i),c))).catch((e=>(delete s[i],we.warn("Preloading error",e),this.emit(r.PLAYER_PRELOADING_ERROR,{error:e,track:e.track||null,canPlayNext:!("canPlayNext"in e)||e.canPlayNext,preloading:!0}),Promise.reject(e))));return s[i]=u,u}togglePlay(){return this._isPlaying()?this.pause():this.resume()}setSubtitleLanguage(e){this._subtitleManager.setLanguage(e)}getSubtitleLanguages(){return this._subtitleManager.getAvailableLanguages()}getActiveSubtitleLanguage(){return this._subtitleManager.getActiveLanguage()}deactivateCueEvents(){this._subtitleManager.deactivateListeners()}activateCueEvents(){this._subtitleManager.activateListeners()}setVolume(e,t){if(!this.emitSync(r.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new f(p.D.PLAYER_ATTEMPTED_VOLUME_OUT_OF_RANGE,"Volume should be in range [0, 1]");this._playerVolume=e,this._player&&(this._player.volume=this._cubicVolume?e*e*e:e)}}getVolume(){return this._playerVolume}getPlayerState(){var e,t,n;const r=this._player,i=this._currentContent,o={src:(null==r?void 0:r.src)?`data:${(null==i?void 0:i.getFileId())||"unknown"}`:void 0,height:(null==r?void 0:r.clientWidth)||0,width:(null==r?void 0:r.clientHeight)||0},a={};if(i){const[e,t]=i.getPlayableCodecs();a.audio_format=e,a.video_format=t,i instanceof fe&&r instanceof HTMLVideoElement&&(a.video_height=r.videoHeight,a.video_width=r.videoWidth,o.poster=r.poster)}return{playing:null!==(e=!(null==r?void 0:r.paused))&&void 0!==e&&e,position:r?xe(r.currentTime):0,duration:r?xe(r.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==r?void 0:r.playbackRate)&&void 0!==n?n:0,buffering:this._buffering,media_type:(null==i?void 0:i.getMediaType())||null,media_info:a,player_element:o}}getPlayerPosition(){return this._player?xe(this._player.currentTime):0}seek(e){if(!this._player)return;const t=this._playId,n=()=>{if(!this._player||t!==this._playId)return void we.info("Seek dropped: playId has changed.");let n=Ue(e);n<0?n=0:n>=this._player.duration&&(n=this._player.duration),this._player.currentTime=n};this._loaded?n():this.once(r.PLAYER_LOAD,n),this._getBufferingLatency().then((e=>{this._tracker.trackSeekRebuffering(e)}))}pause(){return new Promise((e=>{this._player&&this._isPlaying()?e(this._player&&this._player.pause()):e()}))}resume(){return new Promise((e=>{this._player&&!this._isPlaying()?e(this._player&&this._player.play()):e()}))}stop(e,t){var n;const i=[],o=e||{};this.emit(r.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:o}),this._tracker.trackStopped(this._player?xe(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._buffer.abort(!0),this._emeManager&&i.push(this._emeManager.destroySessions());const a=this._player;if(a){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&we.warn("MediaError detected: next immediate media error will be fatal.");const e=a.src;if(e)De.test(e)&&URL.revokeObjectURL(e),a.removeAttribute("src");else{const e=Ae(a.getElementsByTagName("source"));we.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)a.removeChild(t);we.info("Releasing HLS URLs"),null===(n=this._currentContent)||void 0===n||n.releaseHLSURL()}a.load()}if(this._currentContent&&this._disableCache&&this._currentContent.clearCachedBuffers(),a&&this._currentContent&&"video"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._videoPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"video"!==t)&&(this._subtitleManager.setPlayer(null),e.removeChild(a),this.emit(r.PLAYER_VIDEO_ELEMENT_REMOVED,null))}else if(a&&this._currentContent&&"audio"===this._currentContent.getMediaType()){const e=this._getContainerElement(this._audioPlayerContainer);e&&a.parentNode===e&&(this._newElementPerTrack||"audio"!==t)&&e.removeChild(a)}return this.emit(r.PLAYER_STOPPED,null),Promise.all(i).then((()=>!0))}hideSubtitles(){this._subtitleManager.hide()}showSubtitles(){this._subtitleManager.show()}areSubtitlesShown(){return this._subtitleManager.visible()}getKeySystemInfo(){return this._emeManager?this._emeManager.getKeySystemInfo():Promise.resolve(null)}getVideoVariants(){if(!(this._currentContent&&this._currentContent instanceof fe))return[];const e=[],t=this._currentContent.getVideoProfiles();for(const n of t)e.push({width:n.video_width,height:n.video_height,bitrate:n.video_bitrate});return e}setPreferredBitrate(e){return"number"!=typeof e?Promise.resolve(c.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._buffer.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(c.SUCCESS))}getCurrentBandwidth(){return this._abrManager.getBandwidthEstimate()}setBackgrounded(e){this._abrManager.overrideBitrate(e?1e-32:this._preferredBitrate)}setVideoResolution(e){this._videoResolution=Object.assign(Object.assign({},this._videoResolution),e),this._currentContent instanceof fe&&this._currentContent.setVideoResolution(this._videoResolution)}activateElement(){return!(this._playerActivated||!this._player||this._player.src)&&(this._player.load(),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||document.createElement("video"),r=e=>{n.canPlayType("audio/mp3")&&(e.formats.audio.push("audio/mp3"),e.formatsInfo.audio.push({mimeType:"audio/mp3",codec:"mp3",contentType:'audio/mp3; codecs="mp3"'}),e.supports.unprotected_audio=!0)};if(e)return e.getKeySystemInfo().then((e=>{const{audioFormats:t,videoFormats:n}=e,i={supports:{protected_audio:!!t.length,unprotected_audio:!0,protected_video:!!n.length,unprotected_video:!0},formats:{audio:t.map((e=>e.contentType)),video:n.map((e=>e.contentType))},formatsInfo:{audio:[...t],video:[...n]}};return i.keysystem=e.keySystem,i.keysystem_impl=e.keySystemImpl,r(i),i}));const i="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),o=z([F[0]],i),a=[],s=[],l=[],c=[];if(o){const{audioCapabilities:e,videoCapabilities:t}=o;for(const t of e)a.push(t.contentType),l.push(V(t.contentType));for(const e of t)s.push(e.contentType),c.push(V(e.contentType))}const u={supports:{protected_audio:!1,unprotected_audio:!!a.length,protected_video:!1,unprotected_video:!!s.length},formats:{audio:a,video:s},formatsInfo:{audio:l,video:c}};return r(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){var t;return!(!Number.isFinite(e)||e<=0)&&(!(null===(t=this._loadingOptions)||void 0===t?void 0:t.useDefaultPlaybackSpeed)&&(this._playerSpeed=null!=e?e:1,this._player&&(this._player.playbackRate=this._playerSpeed,this._tracker.trackSpeedChanged(this._playerSpeed)),!0))}getStatistics(){return this._player&&this._currentContent?this._statistics.getSample(this._player,this._currentContent):null}}var Be=n(31612);class Ve extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const je="7.18.1-5339452",He="7.18.1",Ge=a.P.forTag("playback.logger");class qe extends s.vp{constructor(e){super(),this._currentTrackingData=null,this._sequenceId=0,this._sequenceSessionStorage={},this._sessionId="0",this._transport=e.transport,this._logSender=e.logSender,this._player=e.player,this._init()}static create(e){return new qe(e)}_init(){const e=this._player;e.on(r.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(r.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(r.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(r.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(r.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(r.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(r.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(r.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,r,i;const o=t.data,a=this._currentTrackingData;if(!a||a.noLog)return;const s=o.error,l=null!==(n=null==s?void 0:s.debug)&&void 0!==n?n:{};l.position="position"in o?o.position:0;const c={track:o.track||{},debug:l,preloading:"preloading"in o&&!!o.preloading,session_id:this._sessionId,playback_id:a.playbackId||null,player_play_id:"playId"in o?o.playId:null,http_status_code:null!==(r=null==s?void 0:s.status)&&void 0!==r?r:null,license_server:null!==(i=null==s?void 0:s.licenseServer)&&void 0!==i?i:null};this._logError(s.code||p.D.UNKNOWN,s,c,a,e)}_onPlayerLoad(e){const t=e.data.logData;if(t)if(t.impressionURLs)for(const e of t.impressionURLs)this._logImpression(e);else t.impressionURL&&this._logImpression(t.impressionURL)}_onPlaybackStart(e){const t=e.data.trackingData;t.noLog||t.noStats||this._logPlaybackStart(t)}_onTrackingDataCreated(e){const t=e.data.trackingData;t.noLog?this._currentTrackingData=null:(this._currentTrackingData=t,this._setSessionId(),t.noTSV||this._setSequenceId())}_setSessionId(){this._sessionId=this._transport.getInitTime().toString()}_setSequenceId(){this._sessionId&&(this._sequenceId=this._getSequenceId(this._sessionId))}_onTrackingDataFinalized(e){const t=e.data.trackingData;if(t.noLog)return;const n=this._sessionId!==this._transport.getInitTime().toString();if(n&&this._setSessionId(),t.playbackId&&!t.noTSV){if(n&&this._setSequenceId(),!t.playIntended&&!t.played)return void this._rollbackSequenceId(this._sessionId);this._logTrackStreamVerification(t)}t.noStats||this._logPlaybackStats(t)}_logTrackStreamVerification(e){const t={play_track:e.currentTrackUri,playback_id:e.playbackId,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,session_id:this._sessionId,sequence_id:this._sequenceId,next_playback_id:e.nextPlaybackId};Ge.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const r=new Ve(p.D.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(r.code,n,t,e,!1),this._emitError(r,e)}))}_logPlaybackStats(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,internal_play_id:e.internalPlayId,memory_cached:e.memoryCached,persistent_cached:e.persistentCached,audio_format:e.audiocodec||"",video_format:e.videocodec||"",manifest_id:e.fileId,protected:!1,key_system:e.keySystem,key_system_impl:e.keySystemImpl,urls_json:JSON.stringify(e.urls),start_time:e.loadTime,end_time:e.stopTime,external_start_time:e.externalLoadTime,ms_play_latency:e.msPlayLatency,ms_init_latency:e.msInitLatency,ms_head_latency:e.msHeadLatency,ms_manifest_latency:e.msManifestLatency,ms_resolve_latency:e.msResolveLatency,ms_license_session_latency:e.msLicenseSessionLatency,ms_license_generation_latency:e.msLicenseGenerationLatency,ms_license_request_latency:e.msLicenseRequestLatency,ms_license_update_latency:e.msLicenseUpdateLatency,ms_played:e.msPlayed,ms_nominal_played:e.msNominalPlayed,ms_file_duration:e.msFileDuration,ms_actual_duration:e.msActualDuration,ms_start_position:e.startPosition,ms_end_position:e.position,ms_seek_rebuffer:e.msSeekRebuffering,ms_seek_rebuffer_longest:e.maxMsSeekRebuffering,ms_stall_rebuffer:e.msStalled,ms_stall_rebuffer_longest:e.maxMsStalled,n_stalls:e.nStalls,n_rendition_upgrade:e.nRenditionUpgrade,n_rendition_downgrade:e.nRenditionDowngrade,bps_bandwidth_max:e.bpsBandwidthMax,bps_bandwidth_min:e.bpsBandwidthMin,bps_bandwidth_avg:e.bpsBandwidthAvg,n_seekback:e.nSeeksBackward,n_seekforward:e.nSeeksForward,start_bitrate:e.startBitrate||e.bitrate||0,audio_quality:e.audioQuality,time_weighted_bitrate:e.timeWeightedBitrate,reason_start:e.reasonStart,reason_end:e.reasonEnd,initially_paused:!e.playIntended,had_error:e.hadError,n_warnings:e.nWarnings,n_navigator_offline:e.nOffline,session_id:this._sessionId,sequence_id:this._sequenceId,client_id:e.clientId,correlation_id:e.correlationId,n_dropped_video_frames:e.droppedVideoFrames,n_total_video_frames:e.totalVideoFrames};Ge.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const r=new Ve(p.D.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(r.code,n,t,e,!1),this._emitError(r,e)}))}_logPlaybackStart(e){const t={play_track:e.currentTrackUri,file_id:e.fileId,playback_id:e.playbackId,session_id:this._sessionId,ms_start_position:e.startPosition,initially_paused:!e.playIntended,client_id:e.clientId,correlation_id:e.correlationId};Ge.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const r=new Ve(p.D.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(r.code,n,t,e,!1),this._emitError(r,e)}))}_getSequenceId(e){let t=this._sequenceSessionStorage[e];return t||(t=0),t+1>=9007199254740991&&(t=0),this._sequenceSessionStorage[e]=t+1,t}_rollbackSequenceId(e){const t=this._sequenceSessionStorage[e];t&&(this._sequenceSessionStorage[e]=Math.max(t-1,0))}_logImpression(e){this._transport.request(e,{forget:!0}).catch((function(e){Ge.warn("Unable to send impression request",e)}))}_logError(e,t,n,r,i){let o="";t&&(o=t.stack||"",o||(o=t.toString()));const a={source:"playback",source_version:je||Be.eV.UNKNOWN,type:e||Be.eV.UNKNOWN,message:t&&t.message||Be.eV.EMPTY,stack:JSON.stringify(o),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:r.clientId,correlation_id:r.correlationId};i?this._logSender.logJSSDKWarning(a).catch((e=>Ge.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>Ge.warn("Failed to log error",a,e)))}}class Ke extends Error{constructor(e=p.D.STORAGE_ERROR,t="Storage Error"){super(t),this.status=-1,this.fileId="",this.debug={},this.canPlayNext=!0,this.code=e,this.message=t,this.name="StorageError"}}const We=a.P.forTag("playback.storage_resolve");class Ye{constructor(e){this._transport=e}_parseResponse(e,t){var n;let r;if(200!==t.status)return r=new Ke(p.D.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),r.status=t.status,r.fileId=e,Promise.reject(r);const i=t.body;if(!(null===(n=null==i?void 0:i.cdnurl)||void 0===n?void 0:n.length))return r=new Ke(p.D.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),r.fileId=e,Promise.reject(r);const o={uri:i.cdnurl[0],uris:i.cdnurl,protection:"cenc"};return Promise.resolve(o)}getCDNURL(e,t){We.info("Requesting CDN URL for ",e);const n="files/audio/interactive",r=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(r,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then(this._parseResponse.bind(this,e))}getManifest(e){const t=`https://seektables.scdn.co/seektable/${e}.json`;return We.info("Requesting JSON manifest for ",e),this._transport.request(t,{responseType:"json",retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS}}).then((t=>{let n;return 200!==t.status?(n=new Ke(p.D.STORAGE_TRACK_MANIFEST_FAILED,`Track manifest request failed with status code ${t.status}`),n.debug.file_id=e,n.status=t.status,Promise.reject(n)):t.body?t.body:(n=new Ke(p.D.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class Je extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class $e{constructor(){this._version="1.0.0",this._map={}}clear(){this._map={}}track(e,t){let n=this._map[e];n||(n={url:e,segments:0,bandwidths:[],totalBandwidth:0},this._map[e]=n),n.segments+=1,n.bandwidths.push(t.bandwidth),n.totalBandwidth+=t.bandwidth}toJSON(){const e=[];for(const t in this._map){if(!this._map[t])continue;const n=this._map[t];n&&e.push({url:t,segments:n.segments,avg_bw:parseFloat((n.totalBandwidth/n.bandwidths.length).toFixed(7))})}return{version:this._version,urls:e}}}class Xe{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new $e,this._currentSpeed=1,this.audiocodec=null,this.bitrate=0,this.audioQuality=void 0,this.bufferingPercentage=0,this.bufferLoadStartTime=0,this.urls={},this.currentTrackUri="",this.displayTrack="",this.externalLoadTime=0,this.fileId="",this.gaiaDevId="none",this.hadError=!1,this.internalPlayId="",this.isProtected=!1,this.keySystem="",this.keySystemImpl="",this.lastPlayPosition=-1,this.loadTime=0,this.localTimeMs=-1,this.maxContinuous=0,this.maxMsSeekRebuffering=0,this.maxMsStalled=0,this.memoryCached=!1,this.msActualDuration=0,this.msFileDuration=0,this.msHeadLatency=0,this.msInitLatency=0,this.msKeyLatency=0,this.msLicenseGenerationLatency=0,this.msLicenseRequestLatency=0,this.msLicenseSessionLatency=0,this.msLicenseUpdateLatency=0,this.msManifestLatency=0,this.msPlayed=0,this.msNominalPlayed=0,this.msPlayedUnion=0,this.msPlayLatency=0,this.msResolveLatency=0,this.msSeekRebuffering=0,this.msSeeksBackward=0,this.msSeeksForward=0,this.nextPlaybackId="",this.nOffline=0,this.noLog=!1,this.noTSV=!1,this.noStats=!1,this.nWarnings=0,this.msStalled=0,this.nSeeksBackward=0,this.nSeeksForward=0,this.nSpeedChanges=!1,this.nStalls=0,this.nRenditionUpgrade=0,this.nRenditionDowngrade=0,this.bpsBandwidthMax=0,this.bpsBandwidthMin=0,this.bpsBandwidthAvg=0,this.nBandwidthSamples=0,this.totalBandwidth=0,this.lastVideoProfileBitrate=0,this.persistentCached=!1,this.playbackId="",this.playContext="",this.played=!1,this.position=0,this.reasonEnd="unknown",this.reasonStart="unknown",this.referrer="unknown",this.referrerVendor="unknown",this.referrerVersion="unknown",this.sourceEnd="unknown",this.sourceStart="unknown",this.startPosition=0,this.stopTime=0,this.streamingRule="none",this.timeWeightedBitrate=0,this.totalBytes=0,this.playIntended=!1,this.videocodec=null,this.clientId="unknown",this.correlationId="unknown",this.droppedVideoFrames=0,this.totalVideoFrames=0}static create(){return new Xe}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,r=0,i=0,o=0,a=0,s=this.maxContinuous;for(;os?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));i0&&(n+=parseInt(r,10)*t[r]/e);return Math.round(n)}registerVideoVariant(e){const t=e.bitrate;t&&(this._bitrates[t]=this._bitrates[t]||0,this.startBitrate||(this.startBitrate=t)),e.audioProfile&&e.audioProfile.audio_codec&&(this.audiocodec=e.audioProfile.audio_codec),e.videoProfile&&e.videoProfile.video_codec&&(this.lastVideoProfileBitrate=e.videoProfile.video_bitrate,this.videocodec=e.videoProfile.video_codec)}addStartSegment(){this._segments.push({type:"start",time:this.position}),this._needsEndSegment=!0}addEndSegment(){this._needsEndSegment&&(this._segments.push({type:"end",time:this.position}),this._needsEndSegment=!1)}addMSPlayed(e){if(e){if(e<0)throw new TypeError(`Cannot add negative msPlayed value: ${e}`);this.msPlayed+=e/this._currentSpeed,this.msNominalPlayed+=e}}addSpeedChange(e){this.nSpeedChanges=!0,this._currentSpeed=e}trackBitrate(e,t){const n=e||"dummy";this._bitrates[n]=this._bitrates[n]||0,this._bitrates[n]+=t}trackBufferURL(e,t){this._cdnURLTracker.track(e,t)}finalize(){var e;if(this._isFinalized)throw new Je(p.D.TRACK_DATA_ALREADY_FINALIZED,"TrackData already finalized.");this.msPlayedUnion=this._calculateUnion(),this.nSeeksBackward||this.nSeeksForward||this.nSpeedChanges||(this.msNominalPlayed=this.maxContinuous=this.msPlayedUnion,this.msPlayed=this.msNominalPlayed/this._currentSpeed,this.nSpeedChanges=!1);const t=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(t),this.bufferingPercentage=this.msStalled/t,this.startBitrate||(this.startBitrate=this.bitrate),this.bpsBandwidthAvg=null!==(e=this.totalBandwidth/this.nBandwidthSamples)&&void 0!==e?e:0,this.urls=this._cdnURLTracker.toJSON(),this._isFinalized=!0,!0}getURLsJSON(){var e,t;return null!==(t=null===(e=this._cdnURLTracker.toJSON().urls)||void 0===e?void 0:e.map((({url:e})=>e)))&&void 0!==t?t:[]}getPlaybackStats(){let e;switch(this.keySystem){case i.WIDEVINE:e="widevine";break;case i.PLAYREADY:case i.PLAYREADY_HARDWARE:e="playready";break;default:e="none"}return{ms_total_est:this.msActualDuration,ms_manifest_latency:this.msManifestLatency,ms_latency:this.msPlayLatency,start_offset_ms:this.startPosition,ms_initial_buffering:this.msPlayLatency,ms_seek_rebuffering:this.msSeekRebuffering,ms_stalled:this.msStalled,max_ms_seek_rebuffering:this.maxMsSeekRebuffering,max_ms_stalled:this.maxMsStalled,n_stalls:this.nStalls,n_rendition_upgrade:this.nRenditionUpgrade,n_rendition_downgrade:this.nRenditionDowngrade,bps_bandwidth_max:this.bpsBandwidthMax,bps_bandwidth_min:this.bpsBandwidthMin,bps_bandwidth_avg:this.bpsBandwidthAvg,audiocodec:this.audiocodec?this.audiocodec.toLowerCase():void 0,videocodec:this.videocodec?this.videocodec.toLowerCase():void 0,start_bitrate:this.startBitrate||this.bitrate||void 0,full_screen:void 0,time_weighted_bitrate:this.timeWeightedBitrate,buffering_percentage:void 0,prefetched_bytes:void 0,prefetched_bytes_loaded:void 0,prefetched_initial_bitrate:void 0,key_system:e,ms_key_latency:this.msKeyLatency,total_bytes:this.totalBytes,local_time_ms:this.localTimeMs,ms_played_background:void 0,n_dropped_video_frames:this.droppedVideoFrames,n_total_video_frames:this.totalVideoFrames}}isFinalized(){return this._isFinalized}}const Qe=a.P.forTag("playback.tracker");class Ze extends s.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._playedThreshold=e.playerThreshold||31e3}static create(e){return new Ze(e)}_checkPlayedThreshold(){const e=this._trackingData;!e||!this._playedThreshold||this._playedThresholdReached||e.msPlayedt.maxMsSeekRebuffering&&(t.maxMsSeekRebuffering=e),t.msSeekRebuffering+=e)}trackMsStalled(e){const t=this._trackingData;t&&(e>t.maxMsStalled&&(t.maxMsStalled=e),t.msStalled+=e,t.nStalls++)}trackLoadFailed(){const e=this._trackingData;e&&(e.msPlayLatency=Date.now()-e.loadTime,e.position=0,e.addStartSegment())}trackStopped(e,t,n){var i,o,a,s;const l=this._trackingData;if(!l||l.isFinalized())return;const c=Date.now();if(l.stopTime=c,l.lastPlayPosition>=0&&e>=0&&l.lastPlayPositionn?(t.nSeeksForward++,t.msSeeksForward+=e-n):e=0&&t.lastPlayPosition=0&&t.lastPlayPosition=0){if(r=e-n.lastPlayPosition,r<0)return void Qe.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(r)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,t&&n.trackBitrate(t,r)}trackSpeedChanged(e){const t=this._trackingData;t&&t.addSpeedChange(e)}trackVideoLoadStart(e){const t=this._trackingData;t&&t.registerVideoVariant(e)}trackWarning(){const e=this._trackingData;e&&e.nWarnings++}trackOffline(){const e=this._trackingData;e&&e.nOffline++}setActualDuration(e){const t=this._trackingData;t&&(t.msActualDuration=e)}setKeySystem(e){const t=this._trackingData;t&&(t.keySystem=e)}setKeySystemImpl(e){const t=this._trackingData;t&&(t.keySystemImpl=e)}setManifestLatency(e){const t=this._trackingData;t&&(t.msManifestLatency=e)}setPlayIntended(e){const t=this._trackingData;t&&(t.playIntended=e)}setKeyLatency(e){const t=this._trackingData;t&&(t.msKeyLatency=e)}setMemoryCached(e){const t=this._trackingData;t&&(t.memoryCached=e)}setPersistentCached(e){const t=this._trackingData;t&&(t.persistentCached=e)}setProtected(e){const t=this._trackingData;t&&(t.isProtected=e)}setHadError(e){const t=this._trackingData;t&&(t.hadError=e)}setLicenseSessionLatency(e){const t=this._trackingData;t&&(t.msLicenseSessionLatency=e)}setLicenseGenerationLatency(e){const t=this._trackingData;t&&(t.msLicenseGenerationLatency=e)}setLicenseRequestLatency(e){const t=this._trackingData;t&&(t.msLicenseRequestLatency=e)}setLicenseUpdateLatency(e){const t=this._trackingData;t&&(t.msLicenseUpdateLatency=e)}setResolveLatency(e){const t=this._trackingData;t&&(t.msResolveLatency=e)}setCalculatedDuration(e){const t=this._trackingData;t&&(t.msFileDuration=e)}setPlayedThreshold(e){this._playedThreshold=e}setBandwidth(e){const t=this._trackingData;t&&((et.bpsBandwidthMax&&(t.bpsBandwidthMax=e),t.totalBandwidth+=e,t.nBandwidthSamples++)}setRenditionCount(e){const t=this._trackingData;t&&(et.lastVideoProfileBitrate&&t.nRenditionUpgrade++,t.lastVideoProfileBitrate=e)}}class et extends s.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new et(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Ke(p.D.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(r.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const i=e.body,o=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(r.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:o?parseInt(o,10):JSON.stringify(i).length,start_time:n,end_time:Date.now()}),Promise.resolve(i)}getInitSegmentURLs(e,t,n,r){let i="";n&&(i=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let o="";return r&&(o=e+t.replace("{{profile_id}}",r.id.toString(10)).replace("{{file_type}}",r.file_type)),{audio:i,video:o,audioLogging:i,videoLogging:o}}getSegmentURLs(e,t,n,r,i){let o="";r&&(o=e+t.replace("{{profile_id}}",r.id.toString(10)).replace("{{file_type}}",r.file_type));let a="";return i&&(a=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:o.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:o,videoLogging:a}}getManifest(e,t=!1){const n=`${t?"@webgate/manifests/v8/unauth/json/sources":"@webgate/manifests/v7/json/sources"}/${e}/options/supports_drm`;return this._transport.request(n,{authorize:!t,responseType:"json",parseResponseHeaders:!0,retry:{condition:(e,t)=>e.getStatusFamily()!==t.SUCCESS},metadata:{startTime:Date.now()}}).then(this._parseManifestResponse)}}class tt extends Error{constructor(e,t){super(),this.status=-1,this.debug={},this.canPlayNext=!0,this.unrecoverable=!1,this.name="LicenseError",this.code=e,this.message=t}static fatal(e,t){const n=new tt(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class nt{constructor(e){this._sdk={name:"",version:""},this._securityLevel=null,this._urls={},e.sdk&&(this._sdk=e.sdk),e.securityLevel&&(this._securityLevel=e.securityLevel),this._transport=e.transport,this._useTestLicenseServer=!!e.useTestLicenseServer,this._transport.on(this._transport.EVENT_CONNECTION_ID,(()=>{this._urls={}}))}get(e,t){const n=`${e}:${t}`,r=this._urls[n];if(r&&r.expires>Date.now()+6e4)return Promise.resolve(r.uri);const i=this._useTestLicenseServer?"&use_test_license_server=true":"",o=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${i}`;return this._transport.request(o,{responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>{const t=e.body;if(t&&200===e.status)return t.expires*=1e3,t.uri=`@webgate/${t.uri}`,this._securityLevel&&(t.uri+=[-1!==t.uri.indexOf("?")?"&":"?","sl=",this._securityLevel].join("")),this._urls[n]=t,t.uri;let r;return r=t?400===e.status&&t&&"deprecated-version"===t.code?tt.fatal(p.D.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new tt(p.D.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):tt.fatal(p.D.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),r.status=e.status,Promise.reject(r)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class rt{constructor(e){this._melodyLogger=new Be.Hx(e)}logTrackStreamVerification(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"track_stream_verification",message:e},{batch:!0})}logJSSDKPlaybackStats(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_stats",message:e},{batch:!0})}logJSSDKPlaybackStart(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_playback_start",message:e},{batch:!0})}logJSSDKError(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:e},{batch:!0})}logJSSDKWarning(e){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_warning",message:e},{batch:!0})}}var it;!function(e){e[e.ABORTED=101]="ABORTED",e[e.NETWORK=102]="NETWORK",e[e.MEDIA_DECODING=103]="MEDIA_DECODING",e[e.SRC_NOT_SUPPORTED=104]="SRC_NOT_SUPPORTED",e[e.EME=105]="EME",e[e.GENERIC=100]="GENERIC"}(it||(it={}));const ot={[p.D.MEDIA_ABORTED]:it.ABORTED,[p.D.MEDIA_DECODING_ERROR]:it.MEDIA_DECODING,[p.D.MEDIA_NOT_SUPPORTED]:it.SRC_NOT_SUPPORTED,[p.D.MEDIA_NETWORK_ERROR]:it.NETWORK};function at(e){let t=ot[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=it.NETWORK:t||(t=/^EME_/.test(e)?it.EME:it.GENERIC),t}function st(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var lt;!function(e){e.READY="playerready",e.VIDEO_CHANGE="videochange",e.PLAY="play",e.PLAYING="playing",e.PAUSE="pause",e.TIMEUPDATE="timeupdate",e.SEEKING="seeking",e.SEEKED="seeked",e.ERROR="error",e.ENDED="ended",e.RENDITION_CHANGE="renditionchange",e.REQUEST_COMPLETED="requestcompleted",e.REQUEST_FAILED="requestfailed",e.REQUEST_CANCELED="requestcanceled"}(lt||(lt={}));const ct={player_is_paused:!0,player_width:0,player_height:0,video_source_height:0,video_source_width:0,player_is_fullscreen:void 0,player_autoplay_on:void 0,player_preload_on:void 0,video_source_url:void 0,video_source_mime_type:void 0,video_source_duration:void 0,video_poster_url:void 0,player_language_code:void 0};class ut{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,v.$)(),this._isMuxInitialized=!1,this._muxInitData=null,this._player=e.player,this._mux=e.mux,this._getPlayheadTime=this._getPlayheadTime.bind(this),this._getStateData=this._getStateData.bind(this),this._init(e)}static create(e){return new ut(e)}_init(e){Promise.all([Promise.resolve(e.deviceInfo)]).then((([t])=>{var n;this._muxInitData={data:Object.assign({env_key:e.envKey||"2qbjhhcl4u87btjbo7dh8vi2n",player_name:null!==(n=null==t?void 0:t.platform_name)&&void 0!==n?n:null==t?void 0:t.platform,player_version:null==t?void 0:t.version,viewer_device_manufacturer:null==t?void 0:t.brand,viewer_device_category:null==t?void 0:t.type,viewer_device_name:null==t?void 0:t.model,player_software_name:e.sdk||"spotify-playback",player_software_version:e.sdkVersion||He,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:He},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[r.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[r.PLAYER_PLAY]:this._onPlay.bind(this),[r.PLAYER_PLAYING]:this._onPlaying.bind(this),[r.PLAYER_PAUSED]:this._onPause.bind(this),[r.PLAYER_PROGRESS]:this._onProgress.bind(this),[r.PLAYER_SEEKING]:this._onSeeking.bind(this),[r.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[r.PLAYER_ERROR]:this._onError.bind(this),[r.PLAYER_ENDED]:this._onEnded.bind(this),[r.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[r.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[r.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[r.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[r.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[r.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[r.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED]:this._onVideoManifestResolveFailed.bind(this)})})).then(this._readyDeferred.resolve,this._readyDeferred.reject)}_getPlayheadTime(){return this._player.getPlayerPosition()}_getStateData(){return this._currentContentInfo?Object.assign(Object.assign({},this._currentContentInfo.stateData),{player_language_code:this._player.getActiveSubtitleLanguage()}):null}_onDurationChanged(e){this._currentContentInfo&&(this._currentContentInfo.stateData.video_source_duration=e.data.duration)}_onVideoResized(e){this._currentContentInfo&&(this._currentContentInfo.stateData.player_width=e.data.width,this._currentContentInfo.stateData.player_height=e.data.height)}_onBeforeLoad(e){const{track:t,options:n,logData:r}=e.data,i=!!this._currentContentInfo;if("video"!==t.mediaType||(null==r?void 0:r.noLog)||(null==r?void 0:r.noMuxEvents))return i&&this._mux.emit(this._playerId,lt.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const o={video_id:t.fileId,video_title:(null==r?void 0:r.displayTitle)||void 0,video_series:(null==r?void 0:r.displayGroup)||void 0,video_duration:(null==r?void 0:r.displayDuration)||void 0},a=Object.assign({},ct);this._currentContentInfo={track:t,options:n,videoData:o,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,lt.READY),this._isMuxInitialized=!0):i&&this._mux.emit(this._playerId,lt.VIDEO_CHANGE,o)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,r=this._player.getPlayerState(),i=r.media_info,o=(null===(t=null===(e=this._currentContentInfo)||void 0===e?void 0:e.options)||void 0===t?void 0:t.autoplay)||!1,{width:a,height:s,src:l,poster:c}=r.player_element;n.player_is_paused=!r.playing,n.player_width=a||0,n.player_height=s||0,n.video_source_height=i.video_height||0,n.video_source_width=i.video_width||0,n.player_autoplay_on=o,n.video_source_url=l,n.video_source_mime_type=i.video_format,n.video_source_duration=r.duration,n.video_poster_url=c,this._mux.emit(this._playerId,lt.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,lt.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,lt.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,lt.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,lt.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,lt.SEEKED)}_onError(e){var t,n;const r=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&r&&this._mux.emit(this._playerId,lt.ERROR,{player_error_code:at(r),player_error_message:r})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,lt.ENDED)}_onVideoProfileChanged(e){if(!this._currentContentInfo)return;const t=e.data.profile,n=this._currentContentInfo.stateData;n.video_source_height=t.height||0,n.video_source_width=t.width||0,n.video_source_mime_type=t.mimeType,this._mux.emit(this._playerId,lt.RENDITION_CHANGE,{video_source_bitrate:t.bitrate,video_source_width:t.width,video_source_height:t.height})}_onFragmentFetched(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,lt.REQUEST_COMPLETED,{request_type:n,request_hostname:st(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.byte_length})}_onFragmentFetchError(e){const t=e.data;if(!this._currentContentInfo&&"video"!==t.media_type)return;const n=`${t.segment_type}${t.init?"_init":""}`;this._mux.emit(this._playerId,lt.REQUEST_FAILED,{request_type:n,request_hostname:st(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}_onVideoManifestResolved(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,lt.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:st(t.url),request_start:t.start_time,request_response_end:t.end_time,request_bytes_loaded:t.manifest_size})}_onVideoManifestResolveFailed(e){const t=e.data;this._currentContentInfo&&this._mux.emit(this._playerId,lt.REQUEST_FAILED,{request_type:"manifest",request_hostname:st(t.url),request_start:t.start_time,request_error:t.error.code,request_error_code:t.error.status,request_error_text:""})}ready(){return this._readyDeferred.promise}}var dt,pt,ft;!function(e){e.NULL_VALUE="NULL_VALUE",e.LIST_START="LIST_START",e.LIST_END="LIST_END",e.FORBIDDEN="FORBIDDEN",e.IGNORE="IGNORE",e.PAUSE="PAUSE"}(dt||(dt={})),function(e){e.MP4_AUDIO="audio/mp4",e.MP4_VIDEO="video/mp4",e.MTS_VIDEO="video/mp2t",e.WEBM_AUDIO="audio/webm",e.WEBM_VIDEO="video/webm"}(pt||(pt={})),function(e){e.AAC_LC="mp4a.40.2",e.FLAC="flac",e.OPUS="opus",e.VP9="vp9",e.VP8="vp8",e.H264_31="avc1.4d401f"}(ft||(ft={}));var ht,vt,mt,gt=n(79399);!function(e){e.UNKNOWN="UNKNOWN",e.DEFAULT="DEFAULT",e.LOW="LOW",e.NORMAL="NORMAL",e.HIGH="HIGH",e.VERY_HIGH="VERY_HIGH",e.HIFI="HIFI"}(ht||(ht={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(vt||(vt={})),function(e){e.EMPTY="EMPTY",e.SW_CRYPTO="SW_CRYPTO",e.SW_DECODE="SW_DECODE",e.HW_CRYPTO="HW_CRYPTO",e.HW_DECODE="HW_DECODE",e.HW_ALL="HW_ALL"}(mt||(mt={}));class yt extends Error{constructor(e,t){super(),this.unrecoverable=!1,this.listPlayerIgnore=!1,this.debug={},this.name="PlaybackError",this.code=e,this.message=t}static fatal(e,t){const n=new yt(e,t);return n.unrecoverable=!0,n}}function _t(e){return"uri"in e}class bt extends s.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,v.$)(),this._maxListErrors=5,this._uid=0,this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this._listPlayCount=0,this._listErrorCount=0,this._shuffled=!1,this._repeatMode=vt.NONE,this._currentSeqId=0,!e.trackPlayer)throw new TypeError("Argument `options.trackPlayerManager` not found.");e.maxListErrors&&(this._maxListErrors=e.maxListErrors),this._setListOptions=this._setListOptions.bind(this),this._replaceCurrentList=this._replaceCurrentList.bind(this),this._handleCapped=this._handleCapped.bind(this),this._handlePlaying=this._handlePlaying.bind(this),this._handlePaused=this._handlePaused.bind(this),this._handleEnded=this._handleEnded.bind(this),this._handleCanPreload=this._handleCanPreload.bind(this),this._handleError=this._handleError.bind(this),this._handlePositionChanged=this._handlePositionChanged.bind(this),this._handleDurationChanged=this._handleDurationChanged.bind(this),this._handleTimeout=this._handleTimeout.bind(this),this._handlePlayerInitError=this._handlePlayerInitError.bind(this),this._handleProgress=this._handleProgress.bind(this),this._handlePlayedThresholdReached=this._handlePlayedThresholdReached.bind(this),this._handleBeforeLoad=this._handleBeforeLoad.bind(this),this._init(e.trackPlayer)}static create(e){return new bt(e)}_init(e){this._trackPlayerPromise.promise.catch((()=>{})),Promise.resolve(e).then((e=>{this._attachPlayerEvents(e),this._trackPlayerPromise.resolve(e)})).catch(this._handlePlayerInitError)}_attachPlayerEvents(e){e.addListeners({[r.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[r.PLAYER_CAPPED]:this._handleCapped,[r.PLAYER_ENDED]:this._handleEnded,[r.PLAYER_ERROR]:this._handleError,[r.PLAYER_PAUSED]:this._handlePaused,[r.PLAYER_PLAYING]:this._handlePlaying,[r.PLAYER_TIMEOUT]:this._handleTimeout,[r.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[r.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[r.PLAYER_PROGRESS]:this._handleProgress,[r.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[r.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[r.PLAYER_BEFORE_VOLUME_CHANGE]:r.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[r.PLAYER_LOAD]:r.LIST_PLAYER_PLAYER_LOAD}),this.proxyEmitAll(e,{[r.PLAYER_AUTOPLAY_FAILED]:r.LIST_PLAYER_AUTOPLAY_FAILED,[r.PLAYER_TRACKING_DATA_CREATED]:r.LIST_PLAYER_TRACKING_DATA_CREATED,[r.PLAYER_TRACKING_DATA_FINALIZED]:r.LIST_PLAYER_TRACKING_DATA_FINALIZED,[r.PLAYER_BUFFER_STALLED]:r.LIST_PLAYER_BUFFER_STALLED,[r.PLAYER_BUFFERING_START]:r.LIST_PLAYER_BUFFERING_START,[r.PLAYER_BUFFERING_END]:r.LIST_PLAYER_BUFFERING_END,[r.PLAYER_VIDEO_ELEMENT_APPENDED]:r.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[r.PLAYER_VIDEO_ELEMENT_REMOVED]:r.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[r.PLAYER_DISPLAYED_CUES_CHANGED]:r.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[r.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:r.PLAYER_VIDEO_PROFILE_CHANGED,[r.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:r.PLAYER_PLAYBACK_SPEED_CHANGED,[r.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:r.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,r;return null!==(r=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:e}_translateDuration(e){var t,n,r;return null!==(r=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==r?r:e}_handleProgress(e){const{data:t}=e;this.emit(r.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(r.LIST_PLAYER_BEFORE_PLAYER_LOAD,Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{position:this._translatePosition(t.options.position)})}))}_handlePlayerInitError(e){this._trackPlayerPromise.reject(new yt(p.D.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(r.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(r.LIST_PLAYER_PLAYING,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handlePaused(e){const t=this._currentTrack;t&&this.emit(r.LIST_PLAYER_PAUSED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleCanPreload(){this._preloadUpcomingTrack().catch((()=>{}))}_handleEnded(){const e=this._currentTrack;e&&(this.emit(r.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(gt.K.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(r.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(gt.K.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(r.LIST_PLAYER_POSITION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position)})}_handleDurationChanged(e){const t=this._currentTrack;t&&this.emit(r.LIST_PLAYER_DURATION_CHANGED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,position:this._translatePosition(e.data.position),duration:this._translateDuration(e.data.duration)})}_handlePlayedThresholdReached(e){const t=this._currentTrack;t&&this.emit(r.LIST_PLAYER_PLAYED_THRESHOLD_REACHED,{uid:this._uid,track:t,options:this._currentTrackOptions,list:this._loadedList,threshold:e.data.threshold,position:this._translatePosition(e.data.position)})}_handleError(e){const t=this._currentTrack,n=e.data;if(!t)return;n.position=this._translatePosition(e.data.position),this.emit(r.LIST_PLAYER_ERROR,n),this.emitSync(r.LIST_PLAYER_ERROR_SYNC,n);const i=!!n.error&&n.error.listPlayerIgnore;i||this._listErrorCount++,n.canPlayNext&&(i||this._listErrorCount<=this._maxListErrors?this.next(gt.K.TRACK_ERROR):this.emit(r.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(r.LIST_PLAYER_TRACK_LOADED,e)}_incrementSeqId(){return this._currentSeqId>=9007199254740991?this._currentSeqId=0:this._currentSeqId+=1,this._currentSeqId}_getTrackPlayer(){return this._trackPlayerPromise.promise}_setListIndex(e,t){const n=t.index&&-1!==t.index?t.index:0;return Promise.all([e,t,e.startAt(n)])}_setListOptions([e,t,n]){return Promise.all([e.setShuffle(!!this._shuffled),e.setRepeatMode(this._repeatMode)]).then((()=>[e,t]))}_replaceCurrentList([e,t]){return this.emitSync(r.LIST_PLAYER_BEFORE_LIST_CHANGE,{newList:e,newOptions:t,oldList:this._loadedList,oldOptions:this._loadedOptions}),this._loadedList=e,this._loadedOptions=t,this._listPlayCount=0,this._listErrorCount=0,this.emit(r.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),c.SUCCESS}_preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),c.SUCCESS)))}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(c.CANCELLED);this.emitSync(r.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const i=++this._listPlayCount,o=this._loadedOptions;let a=!0,s=0,l=3e4;o&&(1===i?(a=!o.paused,s=o.initialPosition||o.position||0):s=o.position||0);const u=t===gt.K.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(a=!t.paused),void 0!==t.position&&(s=t.position),void 0!==t.playedThreshold&&(l=t.playedThreshold)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!a,position:s,playedThreshold:l};const d=this._handleTrackLoaded.bind(this,{uid:this._uid,track:this._currentTrack,options:this._currentTrackOptions,list:this._loadedList});return this._getTrackPlayer().then((t=>this._currentSeqId!==n?c.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:a,position:s,playedThreshold:l,continuePrevious:u},d)).catch((()=>{})),c.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;if(!e)return Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));const t={reason:gt.K.TRACK_DONE,listConstants:dt};return e.peekNext(t).then((e=>e===dt.FORBIDDEN?c.FORBIDDEN:e===dt.NULL_VALUE?this._preloadUpcomingTrack():e===dt.LIST_END?c.LIST_END:_t(e)&&e.playable?this._preloadTrack(e):c.INVALID))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),c.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,duration:-1,paused:!1,reason:gt.K.UNKNOWN};return void 0!==e.index&&(t.index=e.index),void 0!==e.position&&(t.position=e.position),void 0!==e.initialPosition&&(t.initialPosition=e.initialPosition),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.paused&&(t.paused=e.paused),void 0!==e.reason&&(t.reason=e.reason),t}(t||this._loadedOptions||{});return this._setListIndex(e,n).then(this._setListOptions).then(this._replaceCurrentList)}play(e,t){return this.load(e,t).then((()=>{if(this._loadedList!==e)return c.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:gt.K.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:gt.K.FORWARD_BUTTON,listConstants:dt}).then((e=>e!==dt.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new yt(p.D.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(r.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:dt};return t.next(i).then((i=>this._currentSeqId!==n?c.CANCELLED:i===dt.FORBIDDEN?c.FORBIDDEN:i===dt.NULL_VALUE?this.next(e):i===dt.LIST_END?(this.emit(r.LIST_PLAYER_LIST_ENDED,{list:t,reason:gt.K.END_PLAY}),this.clear(e),c.LIST_END):_t(i)?i.playable?this._changeTrack(i,e,n):(this.emit(r.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.next(e)):c.INVALID))}previous(e){if(!e)return Promise.reject(new yt(p.D.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(r.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:dt};return t.previous(i).then((i=>this._currentSeqId!==n?c.CANCELLED:i===dt.FORBIDDEN?c.FORBIDDEN:i===dt.NULL_VALUE?this.previous(e):i===dt.LIST_START?(this.emit(r.LIST_PLAYER_LIST_ENDED,{list:t,reason:gt.K.END_PLAY}),this.clear(e),c.LIST_END):_t(i)?i.playable?this._changeTrack(i,e,n):(this.emit(r.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.previous(e)):c.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>c.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?c.CANCELLED:c.FORBIDDEN)))):Promise.resolve(c.SUCCESS):Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>c.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?c.CANCELLED:c.FORBIDDEN)))):Promise.resolve(c.SUCCESS):Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>c.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?c.CANCELLED:c.FORBIDDEN)))):Promise.resolve(c.SUCCESS):Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||gt.K.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(r.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),c.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(r.LIST_PLAYER_CLEARED,null),c.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(r.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(c.SUCCESS)}setRepeatMode(e){if(!(e in vt))return Promise.reject(new yt(p.D.LIST_PLAYER_INVALID_ARGUMENT,"The value of repeat mode is not a correct RepeatMode enum value"));if(this._repeatMode!==e){this._repeatMode=e,this.emit(r.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(c.SUCCESS)}getVolume(){return this._getTrackPlayer().then((e=>e.getVolume()))}setVolume(e,t=null){return this._getTrackPlayer().then((n=>(n.setVolume(e,{commandId:null!=t?t:void 0}),this.emit(r.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),c.SUCCESS)))}seek(e,t=gt.K.SEEK){var n,i;const o=this._loadedList;if(!o)return Promise.reject(new yt(p.D.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof o.allowSeeking&&!o.allowSeeking())return Promise.reject(new yt(p.D.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const a=null!==(i=null===(n=o.handleSeek)||void 0===n?void 0:n.call(o,e,{reason:t,listConstants:dt}))&&void 0!==i?i:e;return a===dt.PAUSE?this.pause().then((t=>(this.emit(r.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),t))):a===dt.IGNORE?(this.emit(r.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),Promise.resolve(c.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(a),c.SUCCESS))):Promise.resolve(c.SUCCESS)}getListConstants(){return dt}getLoadedList(){return this._loadedList}getLoadedOptions(){return this._loadedOptions}getPlayerState(){return this._getTrackPlayer().then((e=>{const t=e.getPlayerState();return Object.assign(Object.assign({},t),{position:this._translatePosition(t.position),duration:this._translateDuration(t.duration)})}))}getState(){return this.getPlayerState().then((e=>({playbackState:e,track:this._currentTrack,list:this._loadedList,options:this._loadedOptions})))}getMediaConfig(){return this._getTrackPlayer().then((e=>e.getMediaConfig()))}hideSubtitles(){return this._getTrackPlayer().then((e=>e.hideSubtitles())).then((()=>c.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>c.SUCCESS))}areSubtitlesShown(){return this._getTrackPlayer().then((e=>e.areSubtitlesShown()))}getSubtitleLanguages(){return this._getTrackPlayer().then((e=>e.getSubtitleLanguages()))}getActiveSubtitleLanguage(){return this._getTrackPlayer().then((e=>{var t;return null!==(t=e.getActiveSubtitleLanguage())&&void 0!==t?t:null}))}deactivateCueEvents(){return this._getTrackPlayer().then((e=>e.deactivateCueEvents())).then((()=>c.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>c.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>c.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?c.SUCCESS:c.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}}const Et=a.P.forTag("playback.init");function St(e){return new Promise(((t,n)=>{var r,i,a,s,l,c,u;if(!e.transport)return void n(new TypeError("Argument transport is required."));if("undefined"!=typeof window){("boolean"==typeof window.isSecureContext?window.isSecureContext:function(){if("undefined"==typeof window||!window.location)return!1;const e=window.location;if("https"===e.protocol||"file"===e.protocol)return!0;const t=e.hostname;return!!/^127(\.[0-255]){3}$|^locahost\.?$|\.localhost\.?$/.test(t)}())||null===(r=window.console)||void 0===r||r.warn("%cDRM might not be available from unsecure contexts","background: #222; color: #bada55; font-size: 40px")}const{transport:d}=e,[p="",f=""]=(e.sdkId||"").split(":"),h=Object.assign(Object.assign({},e),{tracker:Ze.create(),audioResolver:new Ye(d),videoResolver:new et(d),licenseURLResolver:new nt({transport:d,sdk:{name:p,version:f},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(i=e.newBufferPerTrack)||void 0===i||i,preinitMediaElement:null===(a=e.preinitMediaElement)||void 0===a||a});e.unauthenticatedLogs&&!(null===(s=e.loggerOptions)||void 0===s?void 0:s.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(l=null==e?void 0:e.loggerOptions)||void 0===l?void 0:l.deviceInfo)||Promise.all([null===(c=e.loggerOptions)||void 0===c?void 0:c.platform,null===(u=e.loggerOptions)||void 0===u?void 0:u.clientVersion]).then((([t,n])=>{e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{deviceInfo:{platform:t,version:n}})})),ze.create(h).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),r=function(e){return new rt(e)}(Object.assign(Object.assign({},n),{transport:d,sdkId:e.sdkId,platform:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.platform)&&void 0!==t?t:""})),clientVersion:Promise.resolve(n.deviceInfo).then((e=>{var t;return null!==(t=null==e?void 0:e.version)&&void 0!==t?t:""}))})),i=qe.create({transport:d,player:t,logSender:r});return n.disableMux||ut.create({player:t,mux:o,envKey:null==n?void 0:n.muxEnvKey,sdk:p,sdkVersion:f,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>Et.info("MuxReporter ready")),(e=>Et.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:i}})).then(t,n)}))}},27434:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArtistNpv:()=>_t});var r=n(67294),i=n.n(r);function o(e){return i().createElement("div",{className:`npv-video-overlay npv-video-overlay--${e.mediaType} ${e.isActive&&"npv-video-overlay--active"} ${e.trackMetadataVisible&&"npv-video-overlay--visible"}`},i().createElement("div",{className:`npv-video-overlay-top ${e.contextMetadataVisible&&"npv-video-overlay-top--active"}`}))}const a=i().createContext((()=>0)),s=i().createContext(0);function l(){const e=(0,r.useContext)(a);return(0,r.useMemo)(e,[e])}function c(){return(0,r.useContext)(s)}function u(e=0,t){const n=36e5,r=Math.floor(e/1e3),i=Math.floor(r/60),o=d(i%60),a=d(r%60);if(void 0===t?e>=n:t>=n){return`${d(Math.floor(i/60))}:${o}:${a}`}return`${o}:${a}`}function d(e){return e<10?`0${e}`:`${e}`}var p=n(37723);const f=({visible:e,children:t,disableAnimationsAndTransitions:n=!1,classNames:r="fade-in-and-out-transition",timeout:o=500})=>t?n?e?i().createElement(i().Fragment,null,t):null:i().createElement(p.Z,{in:e,appear:!0,mountOnEnter:!0,unmountOnExit:!0,classNames:r,timeout:o},t):null;function h(e){const t={animation:function(e,t=1){const n=l(),[i,o]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=setTimeout((()=>o(!1)),100);return o(!0),()=>clearTimeout(e)}),[n,e]),function(e,r){return void 0===e?"":`${"spotifyinternal-artistnpv-"+(i?"progress-reset":"progress")} ${e/t}ms linear -${n}ms ${r?"paused":"running"}`}}(e.duration,e.playbackSpeed)(e.duration,e.isPaused)};return i().createElement(f,{visible:e.progressBarVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,classNames:`npv-progress-bar-transition--${e.mediaType}`},i().createElement("div",{className:"npv-progress-bar"},i().createElement("div",{className:"npv-progress-bar__bar"},i().createElement("div",{className:"npv-progress-bar__rail"}),i().createElement("div",{className:"npv-progress-bar__mark",style:t})),i().createElement("div",{className:"npv-progress-bar__timestamp"},i().createElement("time",{className:"npv-progress-bar__time npv-progress-bar__position"},i().createElement(v,{duration:e.duration})),i().createElement("time",{className:"npv-progress-bar__time npv-progress-bar__duration"},u(e.duration)))))}function v({duration:e}){const t=c();return i().createElement(i().Fragment,null,u(t,e))}const m=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z"}),r.createElement("path",{d:"M7.25 9V4h1.5v5h-1.5zm0 3.026v-1.5h1.5v1.5h-1.5z"})),g=(0,r.memo)(m),y=e=>{var t;return i().createElement(i().Fragment,null,i().createElement(g,{className:"npv-modal__icon"}),i().createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title),e.errorDetails&&i().createElement("p",{className:"npv-modal__text npv-modal__details"},e.errorDetails))},_=({indicatorSize:e="md",className:t})=>i().createElement("div",{className:`${t} npv-loading-indicator`},i().createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),i().createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),i().createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`})),b=()=>i().createElement(_,null),E=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M1.665 15.226a.67.67 0 0 0 .915-.245l7.675-13.292a.67.67 0 1 0-1.161-.67L7.95 3H5a5 5 0 0 0-2.453 9.358L1.42 14.31a.67.67 0 0 0 .245.915zm1.632-4.167A3.5 3.5 0 0 1 5 4.5h2.084l-3.787 6.559zm2.368 4.167a.67.67 0 0 0 .915-.245L7.724 13H11a5 5 0 0 0 2.203-9.49l1.052-1.82a.67.67 0 1 0-1.161-.671L5.42 14.311a.67.67 0 0 0 .245.915zM12.45 4.814A3.501 3.501 0 0 1 11 11.5H8.59l3.86-6.686z"})),S=(0,r.memo)(E),T=e=>{var t;return i().createElement(i().Fragment,null,i().createElement(S,{className:"npv-modal__icon"}),i().createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title))},O={ar:JSON.parse('{"ERROR_GENERIC":"حدث خطأ ما","PLAYING_FROM_X":"أنت تستمع إلى الأغاني من {CONTEXT}","CONTEXT_ALBUM":"ألبوم","CONTEXT_SEARCH":"بحث","CONTEXT_TRACK":"مقطع صوتي","CONTEXT_PLAYLIST":"قائمة الأغاني","CONTEXT_COLLECTION":"مجموعة","CONTEXT_RADIO":"راديو","CONTEXT_STATION":"راديو","CONTEXT_EPISODE":"بودكاست","CONTEXT_SHOW":"عرض","CONTEXT_ARTIST":"فنان","NOTIFICATION_UP_NEXT":"التالي","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"يبدو أنه ليس لدينا كلمات لهذه الأغنية.","NO_LYRICS_MSG_2":"عذراً، ما زلنا نحاول الحصول على الكلمات.","NO_LYRICS_MSG_3":"نحن لا نعرف كلمات هذه الأغنية.","NO_LYRICS_MSG_4":"للأسف، عليك تخمين الكلمات بنفسك.","LYRICS_CREDITS":"مُرخّصة ومزوّدة من قِبل {PROVIDER}","LYRICS_UNSYNCED":"لم تتم مزامنة هذه الكلمات مع الأغنية حتى الآن.","LYRICS_ERROR_MESSAGE":"تعذَّر تحميل كلمات هذه الأغنية. يرجى إعادة المحاولة لاحقاً."}'),cs:JSON.parse('{"ERROR_GENERIC":"Něco se pokazilo.","PLAYING_FROM_X":"Zdroj pro přehrávání: {CONTEXT}","CONTEXT_ALBUM":"Album","CONTEXT_SEARCH":"hledání","CONTEXT_TRACK":"nahrávka","CONTEXT_PLAYLIST":"Playlist","CONTEXT_COLLECTION":"sbírka","CONTEXT_RADIO":"rádio","CONTEXT_STATION":"rádio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"pořad","CONTEXT_ARTIST":"umělec","NOTIFICATION_UP_NEXT":"Následuje","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Vypadá to, že text téhle skladby nemáme.","NO_LYRICS_MSG_2":"Teď jsi nás načapal/a, stále se snažíme získat text.","NO_LYRICS_MSG_3":"Hmm. K tomu text neznáme.","NO_LYRICS_MSG_4":"Promiň, ale text si budeš muset domyslet.","LYRICS_CREDITS":"Licencuje a poskytuje: {PROVIDER}","LYRICS_UNSYNCED":"Tenhle text ještě není synchronizovaný se skladbou.","LYRICS_ERROR_MESSAGE":"Text skladby se nepodařilo načíst. Zkus to prosím později."}'),de:JSON.parse('{"ERROR_GENERIC":"Irgendwas ist schiefgelaufen.","PLAYING_FROM_X":"Wiedergabe von {CONTEXT}","CONTEXT_ALBUM":"Album","CONTEXT_SEARCH":"Suche","CONTEXT_TRACK":"Titel","CONTEXT_PLAYLIST":"Playlist","CONTEXT_COLLECTION":"Sammlung","CONTEXT_RADIO":"Radio","CONTEXT_STATION":"Radio","CONTEXT_EPISODE":"Podcast","CONTEXT_SHOW":"Show","CONTEXT_ARTIST":"Künstler*in","NOTIFICATION_UP_NEXT":"Als Nächstes","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Leider haben wir den Text zu diesem Song nicht.","NO_LYRICS_MSG_2":"Jetzt hast du uns erwischt, wir arbeiten noch am Songtext.","NO_LYRICS_MSG_3":"Hmm. Wir kennen den Text zu diesem Song leider nicht.","NO_LYRICS_MSG_4":"Tut uns leid, bei diesem Song musst du beim Text improvisieren.","LYRICS_CREDITS":"Lizenzierung und Bereitstellung durch {PROVIDER}","LYRICS_UNSYNCED":"Dieser Songtext ist noch nicht auf den Song abgestimmt.","LYRICS_ERROR_MESSAGE":"Der Text zu diesem Song konnte nicht geladen werden. Versuch’s später nochmal."}'),el:JSON.parse('{"ERROR_GENERIC":"Κάτι δεν πήγε καλά","PLAYING_FROM_X":"Αναπαραγωγή από {CONTEXT}","CONTEXT_ALBUM":"άλμπουμ","CONTEXT_SEARCH":"αναζήτηση","CONTEXT_TRACK":"κομμάτι","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"συλλογή","CONTEXT_RADIO":"ραδιόφωνο","CONTEXT_STATION":"ραδιόφωνο","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"εκπομπή","CONTEXT_ARTIST":"καλλιτέχνης","NOTIFICATION_UP_NEXT":"ΕΠΟΜΕΝΟ","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Φαίνεται ότι δεν έχουμε τους στίχους αυτού του τραγουδιού.","NO_LYRICS_MSG_2":"Μας τσάκωσες, ακόμα προσπαθούμε να βρούμε τους στίχους.","NO_LYRICS_MSG_3":"Χμ... Δεν ξέρουμε τους στίχους του.","NO_LYRICS_MSG_4":"Συγγνώμη. Θα πρέπει να μαντέψεις τους στίχους.","LYRICS_CREDITS":"Οι στίχοι παρέχονται κατόπιν άδειας από την {PROVIDER}","LYRICS_UNSYNCED":"Αυτοί οι στίχοι δεν είναι ακόμα συγχρονισμένοι με το τραγούδι.","LYRICS_ERROR_MESSAGE":"Δεν ήταν δυνατή η φόρτωση των στίχων γι\' αυτό το τραγούδι. Δοκίμασε ξανά αργότερα."}'),en:JSON.parse('{"ERROR_GENERIC":"Something went wrong","PLAYING_FROM_X":"Playing from {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"search","CONTEXT_TRACK":"track","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artist","NOTIFICATION_UP_NEXT":"Up Next","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Looks like we don\'t have the lyrics to this song.","NO_LYRICS_MSG_2":"You caught us, we\'re still working on getting lyrics.","NO_LYRICS_MSG_3":"Hmm. We don\'t know the lyrics for this one.","NO_LYRICS_MSG_4":"Sorry, you\'ll have to guess the lyrics.","LYRICS_CREDITS":"Licensed & Provided by {PROVIDER}","LYRICS_UNSYNCED":"These lyrics aren’t synced to the song yet.","LYRICS_ERROR_MESSAGE":"Couldn’t load the lyrics for this song. Try again later."}'),"es-419":JSON.parse('{"ERROR_GENERIC":"Algo salió mal","PLAYING_FROM_X":"Reproduciendo desde {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"canción","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"colección","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","NOTIFICATION_UP_NEXT":"Siguiente","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Parece que no tenemos la letra de esta canción.","NO_LYRICS_MSG_2":"Nos descubriste, todavía estamos trabajando para conseguir la letra.","NO_LYRICS_MSG_3":"Mmm… No nos sabemos esta letra.","NO_LYRICS_MSG_4":"Lo sentimos, tendrás que adivinar la letra esta vez.","LYRICS_CREDITS":"Licencias y distribución por {PROVIDER}","LYRICS_UNSYNCED":"La letra todavía no está sincronizada con la canción.","LYRICS_ERROR_MESSAGE":"No se pudo cargar la letra de esta canción. Inténtalo de nuevo más tarde."}'),es:JSON.parse('{"ERROR_GENERIC":"Algo no ha ido como debía","PLAYING_FROM_X":"Reproduciendo desde {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"canción","CONTEXT_PLAYLIST":"lista","CONTEXT_COLLECTION":"colección","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"pódcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","NOTIFICATION_UP_NEXT":"A continuación","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Parece que no tenemos la letra de esta canción.","NO_LYRICS_MSG_2":"¡Nos has pillado! Aún estamos aprendiéndonos la letra de esta.","NO_LYRICS_MSG_3":"Vaya. La verdad es que no nos sabemos la letra de esta.","NO_LYRICS_MSG_4":"Lo sentimos, pero la letra de esta la vas a tener que sacar tú.","LYRICS_CREDITS":"Letra licenciada y proporcionada por {PROVIDER}","LYRICS_UNSYNCED":"Esta letra aún no está sincronizada con la canción.","LYRICS_ERROR_MESSAGE":"No se ha podido cargar la letra de esta canción. Inténtalo de nuevo más tarde."}'),fi:JSON.parse('{"ERROR_GENERIC":"Jotain meni vikaan","PLAYING_FROM_X":"Toistetaan täältä: {CONTEXT}","CONTEXT_ALBUM":"albumi","CONTEXT_SEARCH":"haku","CONTEXT_TRACK":"kappale","CONTEXT_PLAYLIST":"soittolista","CONTEXT_COLLECTION":"kokoelma","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"ohjelma","CONTEXT_ARTIST":"artisti","NOTIFICATION_UP_NEXT":"Seuraavana vuorossa","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Vaikuttaa siltä, että meillä ei ole tämän kappaleen sanoja.","NO_LYRICS_MSG_2":"Kiinni jäimme. Sanat ovat vielä työn alla.","NO_LYRICS_MSG_3":"Hmm. Emme tiedä tämän sanoja.","NO_LYRICS_MSG_4":"Pahoittelut, sinun täytyy toistaiseksi yrittää kuunnella sanoja itse.","LYRICS_CREDITS":"Lisenssin haltija ja tarjoaja: {PROVIDER}","LYRICS_UNSYNCED":"Näitä sanoja ei ole vielä synkronoitu kappaleeseen.","LYRICS_ERROR_MESSAGE":"Tämän kappaleen sanoja ei voitu ladata. Yritä myöhemmin uudelleen."}'),"fr-CA":JSON.parse('{"ERROR_GENERIC":"Une erreur s\'est produite","PLAYING_FROM_X":"Lecture à partir de {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"rechercher","CONTEXT_TRACK":"titre","CONTEXT_PLAYLIST":"liste de lecture","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"balado","CONTEXT_SHOW":"émission","CONTEXT_ARTIST":"artiste","NOTIFICATION_UP_NEXT":"Prochains titres","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"On dirait que nous n\'avons pas les paroles de cette chanson.","NO_LYRICS_MSG_2":"Vous avez été trop rapide pour nous, nous tentons d\'obtenir les paroles.","NO_LYRICS_MSG_3":"Hum. Nous ne connaissons pas les paroles de cette chanson.","NO_LYRICS_MSG_4":"Nous sommes désolés! Vous devrez deviner les paroles.","LYRICS_CREDITS":"Autorisées et fournies par {PROVIDER}","LYRICS_UNSYNCED":"Ces paroles ne sont pas encore synchronisées avec la chanson.","LYRICS_ERROR_MESSAGE":"Impossible de charger les paroles de cette chanson. Réessayez plus tard."}'),fr:JSON.parse('{"ERROR_GENERIC":"Une erreur s\'est produite.","PLAYING_FROM_X":"Lecture à partir de {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"rechercher","CONTEXT_TRACK":"titre","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"collection","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"émission","CONTEXT_ARTIST":"artiste","NOTIFICATION_UP_NEXT":"Prochains titres","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Il semble que nous ne disposions pas des paroles de ce titre.","NO_LYRICS_MSG_2":"Vous nous avez pris de court, nous essayons encore d\'obtenir les paroles.","NO_LYRICS_MSG_3":"Hum, nous ne connaissons pas les paroles de ce titre.","NO_LYRICS_MSG_4":"Désolés, vous allez devoir deviner les paroles.","LYRICS_CREDITS":"Autorisées sous licence et fournies par {PROVIDER}","LYRICS_UNSYNCED":"Ces paroles n\'ont pas encore été synchronisées avec le titre.","LYRICS_ERROR_MESSAGE":"Impossible de charger les paroles de ce titre. Veuillez réessayer plus tard."}'),hu:JSON.parse('{"ERROR_GENERIC":"Valami hiba történt","PLAYING_FROM_X":"Lejátszás: {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"keresés","CONTEXT_TRACK":"szám","CONTEXT_PLAYLIST":"műsorlista","CONTEXT_COLLECTION":"gyűjtemény","CONTEXT_RADIO":"rádió","CONTEXT_STATION":"rádió","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"műsor","CONTEXT_ARTIST":"előadó","NOTIFICATION_UP_NEXT":"Program","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Úgy tűnik, nincs meg nekünk a dal szövege.","NO_LYRICS_MSG_2":"Most lebuktunk, még dolgozunk ennek a dalszövegnek a megszerzésén.","NO_LYRICS_MSG_3":"Hmm. Ennek a dalnak nem tudjuk a szövegét.","NO_LYRICS_MSG_4":"Bocsi, de muszáj lesz egyedül kitalálnod a dalszöveget.","LYRICS_CREDITS":"Tulajdonos és szolgáltató: {PROVIDER}","LYRICS_UNSYNCED":"Ezt a dalszöveget még nem szinkronizáltuk a dallal.","LYRICS_ERROR_MESSAGE":"Nem sikerült betölteni a dalszöveget ehhez a dalhoz. Próbálkozz újra később."}'),id:JSON.parse('{"ERROR_GENERIC":"Ada yang salah","PLAYING_FROM_X":"Memutar dari {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"cari","CONTEXT_TRACK":"track","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"koleksi","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"acara","CONTEXT_ARTIST":"artis","NOTIFICATION_UP_NEXT":"Berikutnya","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Tampaknya kami tidak punya lirik lagu ini.","NO_LYRICS_MSG_2":"Ups, kami masih terus berusaha mengumpulkan lirik.","NO_LYRICS_MSG_3":"Hmm. Kami juga tidak tahu lirik lagu ini.","NO_LYRICS_MSG_4":"Maaf, kamu harus menebak liriknya.","LYRICS_CREDITS":"Berlisensi & Disediakan oleh {PROVIDER}","LYRICS_UNSYNCED":"Lirik ini belum disinkronkan ke lagu.","LYRICS_ERROR_MESSAGE":"Tidak bisa memuat lirik untuk lagu ini. Coba lagi nanti."}'),it:JSON.parse('{"ERROR_GENERIC":"Si è verificato un problema","PLAYING_FROM_X":"Riproduzione da {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"ricerca","CONTEXT_TRACK":"brano","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"libreria","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artista","NOTIFICATION_UP_NEXT":"In coda","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Il testo di questo brano non è disponibile.","NO_LYRICS_MSG_2":"Ci hai beccato: stiamo ancora lavorando per rendere disponibile il testo di questo brano.","NO_LYRICS_MSG_3":"Uhm. Non conosciamo il testo di questo brano.","NO_LYRICS_MSG_4":"Siamo spiacenti! Dovrai scoprire tu il testo di questo brano.","LYRICS_CREDITS":"Testo fornito in licenza da {PROVIDER}","LYRICS_UNSYNCED":"Questo testo non è ancora sincronizzato con il brano.","LYRICS_ERROR_MESSAGE":"Impossibile caricare il testo di questo brano. Riprova più tardi."}'),ja:JSON.parse('{"ERROR_GENERIC":"エラーが発生したようです","PLAYING_FROM_X":"{CONTEXT} から再生中","CONTEXT_ALBUM":"アルバム","CONTEXT_SEARCH":"検索","CONTEXT_TRACK":"曲","CONTEXT_PLAYLIST":"プレイリスト","CONTEXT_COLLECTION":"コレクション","CONTEXT_RADIO":"ラジオ","CONTEXT_STATION":"ラジオ","CONTEXT_EPISODE":"ポッドキャスト","CONTEXT_SHOW":"ショー","CONTEXT_ARTIST":"アーティスト","NOTIFICATION_UP_NEXT":"次はこちら","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"この曲の歌詞情報がありません。","NO_LYRICS_MSG_2":"歌詞情報は現在収集中です。","NO_LYRICS_MSG_3":"申し訳ありません。この曲の歌詞情報がありません。","NO_LYRICS_MSG_4":"申し訳ありません。歌詞情報は準備できていません。","LYRICS_CREDITS":"ライセンス&歌詞提供:{PROVIDER}","LYRICS_UNSYNCED":"この歌詞はまだ曲と同期されていません。","LYRICS_ERROR_MESSAGE":"この楽曲の歌詞を読み込めませんでした。しばらくしてから、再度お試しください。"}'),ko:JSON.parse('{"ERROR_GENERIC":"문제가 발생했습니다","PLAYING_FROM_X":"{CONTEXT}에서 재생","CONTEXT_ALBUM":"앨범","CONTEXT_SEARCH":"검색","CONTEXT_TRACK":"트랙","CONTEXT_PLAYLIST":"플레이리스트","CONTEXT_COLLECTION":"컬렉션","CONTEXT_RADIO":"라디오","CONTEXT_STATION":"라디오","CONTEXT_EPISODE":"팟캐스트","CONTEXT_SHOW":"Show","CONTEXT_ARTIST":"아티스트","NOTIFICATION_UP_NEXT":"다음 순서","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"이 곡은 아직 가사가 없는 것 같습니다.","NO_LYRICS_MSG_2":"죄송합니다. 가사를 아직 준비 중입니다.","NO_LYRICS_MSG_3":"죄송합니다. 가사를 찾을 수 없습니다.","NO_LYRICS_MSG_4":"죄송합니다. 가사가 제공되지 않습니다.","LYRICS_CREDITS":"라이선스 소유 및 가사 제공: {PROVIDER}","LYRICS_UNSYNCED":"가사가 아직 동기화되지 않았습니다.","LYRICS_ERROR_MESSAGE":"이 곡의 가사를 로드할 수 없습니다. 나중에 다시 시도하세요."}'),ms:JSON.parse('{"ERROR_GENERIC":"Sesuatu kesilapan berlaku","PLAYING_FROM_X":"Memainkan dari {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"cari","CONTEXT_TRACK":"lagu","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"koleksi","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"rancangan","CONTEXT_ARTIST":"artis","NOTIFICATION_UP_NEXT":"Seterusnya","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Nampaknya kami tiada lirik untuk lagu ini.","NO_LYRICS_MSG_2":"Kami mengaku, kami masih berusaha mendapatkan lirik ini.","NO_LYRICS_MSG_3":"Hmm. Kami tidak tahu lirik untuk lagu ini.","NO_LYRICS_MSG_4":"Maaf, anda perlu meneka lirik ini sendiri.","LYRICS_CREDITS":"Dilesenkan & Disediakan oleh {PROVIDER}","LYRICS_UNSYNCED":"Lirik ini belum disegerakkan dengan lagu tersebut.","LYRICS_ERROR_MESSAGE":"Tidak dapat memuatkan lirik untuk lagu ini. Cuba lagi kemudian."}'),nl:JSON.parse('{"ERROR_GENERIC":"Er is iets fout gegaan.","PLAYING_FROM_X":"Afspelen vanaf {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"zoeken","CONTEXT_TRACK":"nummer","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"verzameling","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"show","CONTEXT_ARTIST":"artiest","NOTIFICATION_UP_NEXT":"Wachtrij","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Voor dit nummer hebben we geen songtekst.","NO_LYRICS_MSG_2":"Je hebt ons betrapt, we zijn nog steeds bezig met de songtekst.","NO_LYRICS_MSG_3":"Hmm. Hier kennen we de songtekst niet van.","NO_LYRICS_MSG_4":"Helaas! Je zal goed moeten luisteren wat de songtekst is.","LYRICS_CREDITS":"Aangeboden door en onder licentie van {PROVIDER}","LYRICS_UNSYNCED":"Deze songteksten zijn nog niet gesynchroniseerd met het nummer.","LYRICS_ERROR_MESSAGE":"Kan de songtekst van dit nummer niet laden. Probeer het later opnieuw."}'),pl:JSON.parse('{"ERROR_GENERIC":"Coś się nie udało","PLAYING_FROM_X":"Odtwarzanie z {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"wyszukaj","CONTEXT_TRACK":"utwór","CONTEXT_PLAYLIST":"playlista","CONTEXT_COLLECTION":"kolekcja","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"artysta","NOTIFICATION_UP_NEXT":"Następne","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Chyba nie mamy tekstu tego utworu.","NO_LYRICS_MSG_2":"I tu nas masz. Ciągle staramy się zdobyć tekst tej piosenki.","NO_LYRICS_MSG_3":"Hmmm. My też nie znamy tekstu.","NO_LYRICS_MSG_4":"Przykro nam, musisz improwizować bez tekstu.","LYRICS_CREDITS":"Licencja i udostępnienie: {PROVIDER}","LYRICS_UNSYNCED":"Ten tekst nie jest jeszcze zsynchronizowany czasowo z utworem.","LYRICS_ERROR_MESSAGE":"Nie udało się pobrać tekstu piosenki. Spróbuj ponownie później."}'),"pt-BR":JSON.parse('{"ERROR_GENERIC":"Algo deu errado","PLAYING_FROM_X":"Tocando de {CONTEXT}","CONTEXT_ALBUM":"álbum","CONTEXT_SEARCH":"buscar","CONTEXT_TRACK":"faixa","CONTEXT_PLAYLIST":"playlist","CONTEXT_COLLECTION":"coleção","CONTEXT_RADIO":"rádio","CONTEXT_STATION":"rádio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"programa","CONTEXT_ARTIST":"artista","NOTIFICATION_UP_NEXT":"Próxima","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Parece que nós não temos a letra desta música.","NO_LYRICS_MSG_2":"Ih, foi mal! Ainda estamos aprendendo a cantar esta.","NO_LYRICS_MSG_3":"Hmm. Parece que ainda não aprendemos esta letra.","NO_LYRICS_MSG_4":"Eita! Essa letra você vai ter que inventar.","LYRICS_CREDITS":"Licenciada e oferecida por {PROVIDER}","LYRICS_UNSYNCED":"A letra ainda não foi sincronizada com a música.","LYRICS_ERROR_MESSAGE":"Não foi possível carregar a letra desta música. Tente de novo mais tarde."}'),ru:JSON.parse('{"ERROR_GENERIC":"Что-то пошло не так","PLAYING_FROM_X":"Источник: {CONTEXT}","CONTEXT_ALBUM":"альбом","CONTEXT_SEARCH":"поиск","CONTEXT_TRACK":"трек","CONTEXT_PLAYLIST":"плейлист","CONTEXT_COLLECTION":"коллекция","CONTEXT_RADIO":"радио","CONTEXT_STATION":"радио","CONTEXT_EPISODE":"подкаст","CONTEXT_SHOW":"шоу","CONTEXT_ARTIST":"исполнитель","NOTIFICATION_UP_NEXT":"Далее","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Похоже, у нас нет текста этой песни.","NO_LYRICS_MSG_2":"Увы! Этого текста у нас пока нет.","NO_LYRICS_MSG_3":"Вот так да! Мы не знаем текста этой песни.","NO_LYRICS_MSG_4":"Текста пока нет, придется фантазировать.","LYRICS_CREDITS":"Лицензиар и источник: {PROVIDER}.","LYRICS_UNSYNCED":"Текст этой песни пока не синхронизирован.","LYRICS_ERROR_MESSAGE":"Не удалось загрузить текст песни. Попробуй позже."}'),sv:JSON.parse('{"ERROR_GENERIC":"Något blev fel","PLAYING_FROM_X":"Spelar upp från {CONTEXT}","CONTEXT_ALBUM":"Det här albumet","CONTEXT_SEARCH":"sök","CONTEXT_TRACK":"spår","CONTEXT_PLAYLIST":"Den här spellistan","CONTEXT_COLLECTION":"samling","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podd","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"artist","NOTIFICATION_UP_NEXT":"Nästa","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Vi verkar inte ha texten till den här låten.","NO_LYRICS_MSG_2":"Du kom på oss, vi jobbar fortfarande på att hitta låttexten.","NO_LYRICS_MSG_3":"Hmm. Vi kan inte den här låttexten.","NO_LYRICS_MSG_4":"Vi ber om ursäkt! Du får försöka gissa låttexten.","LYRICS_CREDITS":"Licensierad och tillhandahållen av {PROVIDER}","LYRICS_UNSYNCED":"Den här låttexten är inte synkroniserad med låten än.","LYRICS_ERROR_MESSAGE":"Det gick inte att läsa in texten till den här låten. Försök igen senare."}'),th:JSON.parse('{"ERROR_GENERIC":"เกิดข้อผิดพลาด","PLAYING_FROM_X":"กำลังเล่นจาก {CONTEXT}","CONTEXT_ALBUM":"อัลบั้ม","CONTEXT_SEARCH":"ค้นหา","CONTEXT_TRACK":"แทร็ก","CONTEXT_PLAYLIST":"เพลย์ลิสต์","CONTEXT_COLLECTION":"คอลเลกชัน","CONTEXT_RADIO":"วิทยุ","CONTEXT_STATION":"วิทยุ","CONTEXT_EPISODE":"พอดแคสต์","CONTEXT_SHOW":"รายการโชว์","CONTEXT_ARTIST":"ศิลปิน","NOTIFICATION_UP_NEXT":"ถัดไป","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"ดูเหมือนเราจะไม่มีเนื้อเพลงของเพลงนี้","NO_LYRICS_MSG_2":"โดนจับได้ซะแล้ว เรากำลังหาเนื้อเพลงอยู่","NO_LYRICS_MSG_3":"อืมม เราไม่รู้เนื้อเพลงของเพลงนี้","NO_LYRICS_MSG_4":"ขออภัย คุณคงต้องเดาเนื้อเพลงนี้ไปก่อน","LYRICS_CREDITS":"ได้รับอนุญาตและให้บริการโดย {PROVIDER}","LYRICS_UNSYNCED":"เนื้อเพลงเหล่านี้ยังไม่ได้ซิงค์กับเพลง","LYRICS_ERROR_MESSAGE":"ไม่สามารถโหลดเนื้อเพลงสำหรับเพลงนี้ได้ โปรดลองอีกครั้งในภายหลัง"}'),tr:JSON.parse('{"ERROR_GENERIC":"Bir şeyler ters gitti","PLAYING_FROM_X":"{CONTEXT}\'den çalınıyor","CONTEXT_ALBUM":"albüm","CONTEXT_SEARCH":"ara","CONTEXT_TRACK":"parça","CONTEXT_PLAYLIST":"çalma listesi","CONTEXT_COLLECTION":"koleksiyon","CONTEXT_RADIO":"radyo","CONTEXT_STATION":"radyo","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"program","CONTEXT_ARTIST":"sanatçı","NOTIFICATION_UP_NEXT":"Sıradaki","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Bu şarkının sözlerini şu anda gösteremiyoruz.","NO_LYRICS_MSG_2":"Şarkının sözleri üzerinde çalışıyoruz.","NO_LYRICS_MSG_3":"Hımm. Bu şarkının sözlerini bilmiyoruz.","NO_LYRICS_MSG_4":"Maalesef şarkının sözlerini kendin çıkarman gerekecek.","LYRICS_CREDITS":"Lisans Sahibi ve Sağlayan: {PROVIDER}","LYRICS_UNSYNCED":"Bu şarkı sözleri henüz şarkı ile senkronize değil.","LYRICS_ERROR_MESSAGE":"Bu şarkının sözleri yüklenemedi. Lütfen daha sonra tekrar dene."}'),vi:JSON.parse('{"ERROR_GENERIC":"Đã có sự cố xảy ra","PLAYING_FROM_X":"Phát từ {CONTEXT}","CONTEXT_ALBUM":"album","CONTEXT_SEARCH":"tìm kiếm","CONTEXT_TRACK":"bản nhạc","CONTEXT_PLAYLIST":"danh sách phát","CONTEXT_COLLECTION":"bộ sưu tập","CONTEXT_RADIO":"radio","CONTEXT_STATION":"radio","CONTEXT_EPISODE":"podcast","CONTEXT_SHOW":"chương trình","CONTEXT_ARTIST":"nghệ sĩ","NOTIFICATION_UP_NEXT":"Phát tiếp theo","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"Có vẻ như chúng tôi chưa có lời cho bài hát này.","NO_LYRICS_MSG_2":"Bạn thấy đấy, chúng tôi vẫn đang tìm lời cho bài hát này.","NO_LYRICS_MSG_3":"Rất tiếc. Chúng tôi vẫn chưa có lời bài hát này.","NO_LYRICS_MSG_4":"Chúng tôi rất tiếc, bạn sẽ phải đoán lời bài hát này thôi.","LYRICS_CREDITS":"Do {PROVIDER} cấp phép và cung cấp","LYRICS_UNSYNCED":"Lời bài hát này chưa được đồng bộ hóa với bài hát.","LYRICS_ERROR_MESSAGE":"Không tải được lời cho bài hát này. Hãy thử lại sau."}'),"zh-Hant":JSON.parse('{"ERROR_GENERIC":"發生錯誤","PLAYING_FROM_X":"從 {CONTEXT} 播放","CONTEXT_ALBUM":"專輯","CONTEXT_SEARCH":"搜尋","CONTEXT_TRACK":"歌曲","CONTEXT_PLAYLIST":"播放清單","CONTEXT_COLLECTION":"收藏","CONTEXT_RADIO":"電台","CONTEXT_STATION":"電台","CONTEXT_EPISODE":"Podcast","CONTEXT_SHOW":"節目","CONTEXT_ARTIST":"藝人","NOTIFICATION_UP_NEXT":"即將播放","OFFLINE":"You’re offline","NO_LYRICS_MSG_1":"我們好像沒有這首歌曲的歌詞。","NO_LYRICS_MSG_2":"被你發現了,我們還在努力找出歌詞。","NO_LYRICS_MSG_3":"嗯,我們也不知道這首歌曲的歌詞。","NO_LYRICS_MSG_4":"非常抱歉,你必須自己猜歌詞了。","LYRICS_CREDITS":"由「{PROVIDER}」授權及提供","LYRICS_UNSYNCED":"這些歌詞尚未與歌曲同步。","LYRICS_ERROR_MESSAGE":"無法載入這首歌曲的歌詞。請稍後再試。"}')},A=O.en;let C="en",P=A;const I={},R=(e,t)=>(e.match(/\{[A-Z_]+\}/g)||[]).map((e=>e.replace(/[\{\}]/g,""))).reduce(((e,n)=>{let r=null;return r="number"==typeof t[n]?(e=>{try{return e.toLocaleString(C)}catch(t){return e.toString()}})(t[n]):t[n]||P[n]||n,e.replace(`{${n}}`,r)}),e),N=(e,t={})=>{if(!e)return"???";let n=P[e]||A[e]||e;if("string"!=typeof n&&void 0!==t.N){const e=((e,t)=>{try{return(I[e]||(I[e]=new Intl.PluralRules(e))).select(t)}catch(e){return"other"}})(C,parseInt(t.N,10));n[e]?n=n[e]:n.other&&(n=n.other)}return R(n,t)};function k(e){const t=function(e){return e.hasError?{className:"npv-modal__error",component:y,props:{errorDetails:e.errorDetails,l10n:{title:N("ERROR_GENERIC")}}}:function(e){const{playbackIsBuffering:t,currentTrack:n}=e,r=(null==n?void 0:n.mediaType)&&n.mediaType.toLowerCase();return!!t&&"video"===r}(e)?{className:"npv-modal__loading",component:b}:e.isOffline?{className:"npv-modal__offline",component:T,props:{l10n:{title:N("OFFLINE")}}}:{hidden:!0}}(e),n=null==t?void 0:t.component,r=e.disableAnimationsAndTransitions?0:1e3;return i().createElement(p.Z,{in:!t.hidden,classNames:"npv-modal",timeout:r,mountOnEnter:!0,unmountOnExit:!0},i().createElement("div",{className:`npv-modal ${null==t?void 0:t.className}`},i().createElement("div",{className:"npv-modal__content"},n&&i().createElement(n,Object.assign({},t.props)))))}const L=({children:e,className:t})=>{const n=(0,r.useRef)(null),o=(0,r.useRef)(null),[a,s]=(0,r.useState)(0),[l,c]=(0,r.useState)(0),[u,d]=(0,r.useState)(0),p=(0,r.useRef)(e);(0,r.useEffect)((()=>{var t,r,i,a;const l=1-(null!==(r=null===(t=n.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==r?r:1)/(null!==(a=null===(i=o.current)||void 0===i?void 0:i.getBoundingClientRect().width)&&void 0!==a?a:1);l>0?(s(1),c(-100*l),d(10*l),p.current=e):(s(0),c(0),d(0))}),[e]),(0,r.useEffect)((()=>{if(0===a||0===u)return;const e=setTimeout((()=>{s((e=>1!==e?1:2))}),1e3*(u+.8));return()=>{clearTimeout(e)}}),[a,u]);const f=1===a?`translate3d(${l}%, 0, 0)`:"translate3d(0, 0, 0)",h=0===a?"none":`transform linear ${u}s`,v={transform:f,WebkitTransform:f,transition:h,WebkitTransition:h};return i().createElement("p",{className:`${t} npv-marquee`,ref:n},i().createElement("span",{className:"npv-marquee__text",style:p.current===e?v:void 0,ref:o},e))};var w=n(69518),D=n.n(w);function M(e){const t=function(e){const t=c();return!!e&&e-t<=3e4}(e.duration);return e.canRender?i().createElement(f,{visible:t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},i().createElement("div",{className:`npv-up-next npv-up-next--${e.trackType}`},i().createElement("img",{src:e.coverArtImageUrl,className:"npv-up-next__image",alt:"up next image"}),i().createElement("div",{className:"npv-up-next__info"},i().createElement("div",{className:"npv-up-next__text"},e.l10n.upNext),e.disableAnimationsAndTransitions?i().createElement("span",{className:"npv-up-next__metadata npv-up-next__metadata--static"},e.metadata):i().createElement(L,{className:"npv-up-next__metadata"},e.metadata)))):null}function x({position:e,timestamp:t,isPaused:n,isBuffering:o,playbackSpeed:l=1,children:c}){const[,u]=(0,r.useState)(0),d=!n&&!o;(0,r.useEffect)((()=>{if(!d)return;const e=setInterval((()=>{u((e=>e+1))}),1e3/l);return()=>{clearInterval(e)}}),[d,l]);const p=(0,r.useCallback)((()=>function(e,t,n,r){return e+(r?Date.now()-t:0)*n}(e,t,l,d)),[e,t,l,d]);return i().createElement(a.Provider,{value:p},i().createElement(s.Provider,{value:p()},c))}function U(e,t){const n={contextName:e.contextName,isGuestMode:e.isGuestMode,guestName:e.guestName,guestAvatarImage:e.guestAvatarImage,l10n:{playingFromContextType:""},contextMetadataVisible:!!e.contextMetadataVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,mediaType:t},r=function(e){if(!e)return"";const t=D().from(e),n=D().Type;return[n.ALBUM,n.SEARCH,n.TRACK,n.PLAYLIST,n.PLAYLIST_V2,n.COLLECTION,n.RADIO,n.STATION,n.EPISODE,n.SHOW,n.ARTIST].includes(null==t?void 0:t.type)?`CONTEXT_${t.type.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${null==t?void 0:t.type}`),"")}(e.contextUri);return r?(n.l10n.playingFromContextType=N("PLAYING_FROM_X",{CONTEXT:N(r)}),n):n}function F(e,t){var n;return!(!e.backgroundImageUrl&&!t)||"video"===(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)}function z(e){(e=>{if(e===C)return;const t=e.replace("_","-");P=O[t]||A,C=e})(e||navigator.language)}n(84633);const B={isAnimating:!1,isAnimationDone:!1},V={isAnimating:!0,isAnimationDone:!1},j={isAnimating:!1,isAnimationDone:!0};function H(e,t=0){let n;return function(...r){const i=this;clearTimeout(n),n=setTimeout((()=>e.apply(i,r)),t)}}const G=i().memo((e=>{const t=(0,r.useRef)(),[n,o]=(0,r.useState)(B),[a,s]=(0,r.useState)({current:e.src}),l=(0,r.useCallback)((()=>{s({previous:t.current,current:e.src}),o(B),t.current=e.src}),[e.src]),c=(0,r.useCallback)(H((()=>{o(V)})),[]),u=(0,r.useCallback)(H((()=>{o(j)})),[]);(0,r.useEffect)((()=>{const t=setImmediate((()=>{if(e.src){const t=new Image;t.src=e.src,t.onload=()=>{c()}}}));return l(),()=>{clearImmediate(t)}}),[e.src]);const{isAnimating:d,isAnimationDone:p}=n;return i().createElement("div",{className:`npv-cross-fade-container ${e.className}`},a.previous&&!p&&i().createElement("img",{className:"npv-cross-fade-image npv-cross-fade-image--previous "+(d||p?"npv-cross-fade-image--fade-out":""),onAnimationEnd:u,onLoad:c,src:a.previous,alt:e.alt}),a.current&&(d||p)&&i().createElement("img",{className:"npv-cross-fade-image npv-cross-fade--next "+(d?"npv-cross-fade-image--fade-in":""),onAnimationEnd:u,src:a.current,alt:e.alt}))}));function q(e){return i().createElement("div",{className:`npv-background-image ${e.showBackgroundImage&&"npv-background-image--active"}`},i().createElement(G,{src:e.backgroundImageUrl}),i().createElement("div",{className:"npv-background-image__overlay"}))}function K(e){const t=function(e,t){const n=[e];return"gradient"===t.modifier&&n.push(`${e}--gradient`),t.animated&&n.push(`${e}--animated`),n.join(" ")}("npv-background-color",e);return i().createElement("div",{className:t,style:{backgroundColor:e.backgroundColor,backgroundImage:"noise"===e.modifier?`linear-gradient(to bottom, ${e.backgroundColor}, ${e.backgroundColor})`:void 0}})}function W(e){const t=["npv-playback-controls__action"];return e.className&&t.push(e.className),e.isActive&&t.push("npv-playback-controls__action--active"),t.join(" ")}const Y=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M13.151.922a.75.75 0 1 0-1.06 1.06L13.109 3H11.16a3.75 3.75 0 0 0-2.873 1.34l-6.173 7.356A2.25 2.25 0 0 1 .39 12.5H0V14h.391a3.75 3.75 0 0 0 2.873-1.34l6.173-7.356a2.25 2.25 0 0 1 1.724-.804h1.947l-1.017 1.018a.75.75 0 0 0 1.06 1.06L15.98 3.75 13.15.922zM.391 3.5H0V2h.391c1.109 0 2.16.49 2.873 1.34L4.89 5.277l-.979 1.167-1.796-2.14A2.25 2.25 0 0 0 .39 3.5z"}),r.createElement("path",{d:"m7.5 10.723.98-1.167.957 1.14a2.25 2.25 0 0 0 1.724.804h1.947l-1.017-1.018a.75.75 0 1 1 1.06-1.06l2.829 2.828-2.829 2.828a.75.75 0 1 1-1.06-1.06L13.109 13H11.16a3.75 3.75 0 0 1-2.873-1.34l-.787-.938z"})),J=(0,r.memo)(Y);function $(e){return i().createElement("div",{className:W(e)},e.children,!e.hideDot&&i().createElement("div",{className:"npv-playback-controls__dot"}))}function X(e){return i().createElement($,{className:"npv-playback-controls__shuffle",isActive:e.isActive},i().createElement(J,{className:"npv-playback-controls__icon"}))}const Q=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M0 4.75A3.75 3.75 0 0 1 3.75 1h8.5A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25h-8.5A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5z"})),Z=(0,r.memo)(Q),ee=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M0 4.75A3.75 3.75 0 0 1 3.75 1h.75v1.5h-.75A2.25 2.25 0 0 0 1.5 4.75v5A2.25 2.25 0 0 0 3.75 12H5v1.5H3.75A3.75 3.75 0 0 1 0 9.75v-5zM12.25 2.5h-.75V1h.75A3.75 3.75 0 0 1 16 4.75v5a3.75 3.75 0 0 1-3.75 3.75H9.81l1.018 1.018a.75.75 0 1 1-1.06 1.06L6.939 12.75l2.829-2.828a.75.75 0 1 1 1.06 1.06L9.811 12h2.439a2.25 2.25 0 0 0 2.25-2.25v-5a2.25 2.25 0 0 0-2.25-2.25z"}),r.createElement("path",{d:"M9.12 8V1H7.787c-.128.72-.76 1.293-1.787 1.313V3.36h1.57V8h1.55z"})),te=(0,r.memo)(ee);function ne(e){return i().createElement($,{className:"npv-playback-controls__repeat",isActive:!!e.mode&&"off"!==e.mode},function(e){switch(e){case"all":return i().createElement(Z,{className:"npv-playback-controls__icon"});case"one":return i().createElement(te,{className:"npv-playback-controls__icon"});default:return null}}(e.mode))}const re=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M15.724 4.22A4.313 4.313 0 0 0 12.192.814a4.269 4.269 0 0 0-3.622 1.13.837.837 0 0 1-1.14 0 4.272 4.272 0 0 0-6.21 5.855l5.916 7.05a1.128 1.128 0 0 0 1.727 0l5.916-7.05a4.228 4.228 0 0 0 .945-3.577z"})),ie=(0,r.memo)(re);function oe(e){return i().createElement($,{className:"npv-playback-controls__heart",isActive:e.isActive,hideDot:!0},i().createElement(ie,{className:"npv-playback-controls__icon"}))}const ae=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M3 1.713a.7.7 0 0 1 1.05-.607l10.89 6.288a.7.7 0 0 1 0 1.212L4.05 14.894A.7.7 0 0 1 3 14.288V1.713z"})),se=(0,r.memo)(ae);function le(e){const t=e.isPaused?"":"npv-playback-controls__play-pause--playing";return i().createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},i().createElement(se,{className:"npv-playback-controls__icon"}))}const ce=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M2.7 1a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7H2.7zm8 0a.7.7 0 0 0-.7.7v12.6a.7.7 0 0 0 .7.7h2.6a.7.7 0 0 0 .7-.7V1.7a.7.7 0 0 0-.7-.7h-2.6z"})),ue=(0,r.memo)(ce);function de(e){const t=e.isPaused?"npv-playback-controls__play-pause--paused":"";return i().createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},i().createElement(ue,{className:"npv-playback-controls__icon"}))}function pe(e){return r.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H106C108.209 0 110 1.79086 110 4V44C110 46.2091 108.209 48 106 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"black",fillOpacity:"0.5"}),r.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z",fill:"white"}),r.createElement("path",{d:"M43.9931 32V21.2383H40.6005V32H43.9931ZM40.3104 17.9271C40.3104 18.9882 41.2031 19.8543 42.2745 19.8543C43.3905 19.8543 44.2832 18.9882 44.2832 17.9271C44.2832 16.8661 43.3905 16 42.2745 16C41.2031 16 40.3104 16.8661 40.3104 17.9271Z",fill:"white"}),r.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z",fill:"white"}),r.createElement("path",{d:"M63.0432 32V21.2383H59.6506V32H63.0432ZM59.3604 17.9271C59.3604 18.9882 60.2532 19.8543 61.3246 19.8543C62.4406 19.8543 63.3333 18.9882 63.3333 17.9271C63.3333 16.8661 62.4406 16 61.3246 16C60.2532 16 59.3604 16.8661 59.3604 17.9271Z",fill:"white"}),r.createElement("circle",{cx:"78",cy:"24",r:"7",stroke:"white",strokeOpacity:"0.3",strokeWidth:"2"}))}function fe(e){return r.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H106C108.209 0 110 1.79086 110 4V44C110 46.2091 108.209 48 106 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"black",fillOpacity:"0.5"}),r.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z"}),r.createElement("path",{d:"M43.9931 32V21.2383H40.6005V32H43.9931ZM40.3104 17.9271C40.3104 18.9882 41.2031 19.8543 42.2745 19.8543C43.3905 19.8543 44.2832 18.9882 44.2832 17.9271C44.2832 16.8661 43.3905 16 42.2745 16C41.2031 16 40.3104 16.8661 40.3104 17.9271Z"}),r.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z"}),r.createElement("path",{d:"M63.0432 32V21.2383H59.6506V32H63.0432ZM59.3605 17.9271C59.3605 18.9882 60.2532 19.8543 61.3246 19.8543C62.4406 19.8543 63.3333 18.9882 63.3333 17.9271C63.3333 16.8661 62.4406 16 61.3246 16C60.2532 16 59.3605 16.8661 59.3605 17.9271Z"}),r.createElement("circle",{cx:"80.2222",cy:"24",r:"8"}))}const he=r.memo(pe),ve=r.memo(fe);function me(e){return!0===e.status?r.createElement(ve,{className:"npv-playback-controls__hifi--on"}):r.createElement(he,{className:"npv-playback-controls__hifi--off"})}function ge(e){return void 0===e.playbackHiFiStatus?null:r.createElement("div",{className:"npv-playback-controls__action npv-playback-controls__action--active npv-playback-controls__hifi"},r.createElement(me,{status:e.playbackHiFiStatus}))}function ye(e){return i().createElement(f,{visible:e.isActive,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},i().createElement("div",{className:"npv-playback-controls"},i().createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--left"},i().createElement(ge,{playbackHiFiStatus:e.playbackHiFiStatus}),i().createElement(oe,{isActive:null==e?void 0:e.isTrackLiked}),i().createElement(X,{isActive:null==e?void 0:e.playbackIsShuffled}),i().createElement(ne,{mode:null==e?void 0:e.playbackRepeatMode})),i().createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--center"}),i().createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--right"},i().createElement(le,{isPaused:null==e?void 0:e.isPaused}),i().createElement(de,{isPaused:null==e?void 0:e.isPaused}))))}function _e(e){var t;return null!==(t=e.CustomPlaybackControls)&&void 0!==t?t:i().createElement(ye,Object.assign({},function(e){var t;const{playbackRepeatMode:n,playbackIsShuffled:r,playbackHiFiStatus:i,disableAnimationsAndTransitions:o}=e;return{playbackIsShuffled:r,playbackRepeatMode:n,isTrackLiked:null===(t=e.currentTrack)||void 0===t?void 0:t.isLiked,isPaused:e.playbackIsPaused||e.playbackIsBuffering,playbackHiFiStatus:i,isActive:!!e.controlsVisible,disableAnimationsAndTransitions:o}}(e)))}function be(e){var t,n,r;return{name:null===(t=e.currentTrack)||void 0===t?void 0:t.name,creatorName:null===(n=e.currentTrack)||void 0===n?void 0:n.creatorName,coverArtImageUrl:null===(r=e.currentTrack)||void 0===r?void 0:r.coverArtImageUrl,hidden:!e.trackMetadataVisible}}var Ee=n(19818),Se=n.n(Ee);const Te={UNKNOWN:"UNKNOWN",UNSYNCED:"UNSYNCED",LINE_SYNCED:"LINE_SYNCED",SYLLABLE_SYNCED:"SYLLABLE_SYNCED"};function Oe(e,t,n){const r=n/t,i=Math.floor(e.length*r);return Math.max(Math.min(i,e.length-4),0)}function Ae(e){if(!e)return;const{provider:t,lines:n,syncType:r}=e;return n&&t&&r&&Object.values(Te).includes(r)&&function(e){return e.every((e=>void 0!==e.text&&void 0!==e.timestamp))&&!!e.length}(n)?{provider:t,lines:n,syncType:r}:void 0}const Ce=(e,t)=>{var n,r;const[i,o,a]=null!==(r=null===(n=Se().get(e))||void 0===n?void 0:n.value)&&void 0!==r?r:[0,0,0];return`rgba(${i}, ${o}, ${a}, ${t})`};function Pe(e){return e.reduce(((e,t)=>e+t),0)}function Ie(e,t,n,i){const o=(0,r.useRef)([]);return(0,r.useEffect)((()=>{o.current=[]}),[e]),(0,r.useCallback)((r=>{Pe(o.current)>=140||(r.forEach((e=>{o.current[e.index]=e.text.length})),Pe(o.current)>=140&&i(e,t,n))}),[i,e,t,n])}function Re(e,t){const[n,i]=(0,r.useState)();return(0,r.useEffect)((()=>{var n,r;const o=Array.prototype.slice.call(null!==(r=null===(n=e.current)||void 0===n?void 0:n.querySelectorAll("[data-lyrics-line]"))&&void 0!==r?r:[]);i({key:t,value:o.map(((e,n)=>{const r=t[n];if(void 0!==r)return{element:e,text:r.text,index:n}})).filter((e=>void 0!==e))})}),[t]),(null==n?void 0:n.key)===t?n.value:[]}function Ne(e){const t=c(),n=(0,r.useMemo)((()=>function(e,t){for(let n=0;nt)return Math.max(0,n-1);return e.length-1}(e,t)),[t,e]);return{firstVisibleIndex:Math.max(n-1,0),currentIndex:n}}function ke(e,t,n,i){const o=function(e){var t;const[n,i]=(0,r.useState)(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height);return(0,r.useEffect)((()=>{const t=setInterval((()=>{var t;i(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height)}),1e3);return()=>{clearInterval(t)}}),[]),n}(e);(0,r.useEffect)((()=>{if(!n.length||!o)return;const e=function(e,t,n){var r;const i=null===(r=e[t])||void 0===r?void 0:r.element.offsetTop;return e.filter((e=>e.element.offsetTop>=i&&e.element.offsetTop{const n=c();return(0,r.useMemo)((()=>{const r=Oe(e,t,n);return e.slice(r)}),[e,t,n])};var we=n(73935),De=n.n(we);const Me=e=>{var t;const n=(()=>{var e,t;let n=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0];if(!n){const e=null===(t=document.getElementsByTagName("html"))||void 0===t?void 0:t[0];if(!e)return void console.error("Cannot creat head element since no html element found");n=document.createElement("head"),e.appendChild(n)}return n})();return n?De().createPortal(i().createElement("style",{type:null!==(t=e.type)&&void 0!==t?t:"text/css"},e.styles.map((e=>(({styles:e,selector:t})=>{if(0===e.length||0===t.length)return"";let n=`${t} {`;for(const t of e)for(const[e,r]of Object.entries(t))n+=`\n ${e}: ${r};`;return`${n}\n}`})(e)))),n):null},xe=i().memo(Me),Ue=e=>{const{showGradient:t,currentColor:n}=function(e){const[t,n]=(0,r.useState)(e),[i,o]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{n(e),o(!1);const t=setTimeout((()=>{o(!0)}),100);return()=>clearTimeout(t)}),[e]),{showGradient:i,currentColor:t}}(e.backgroundColor||""),o="npv-lyrics__gradient-background",a=Ce(n,0),s=Ce(n,.6),l=[{selector:`.${o}`,styles:[{background:`-webkit-gradient(linear, left top, left bottom, from(${a}), color-stop(30%, ${s}), color-stop(60%, ${n}))`},{background:`-webkit-linear-gradient(top, ${a} 0%, ${s} 30%, ${n} 60%)`},{background:`linear-gradient(to bottom, ${a} 0%, ${s} 30%, ${n} 60%)`}]}],c=`npv-lyrics__gradient ${o}\n ${t&&"npv-lyrics__gradient--shown"}\n ${e.fullScreen&&"npv-lyrics__gradient--full-screen"}\n `;return i().createElement(i().Fragment,null,i().createElement(xe,{styles:l}),i().createElement("div",{className:c}))},Fe=(0,r.memo)(Ue);function ze(e){return i().createElement("div",{className:"npv-lyrics__sentences",style:{transform:`translateY(${-e.offsetTop}px)`},dir:"auto"},e.lyrics.lines.map(((t,n,r)=>{const o=function(e,t,n,r){return[n===t&&"npv-lyrics__text-wrapper--current",n>t&&"npv-lyrics__text-wrapper--next",n!1!==e)).join(" ")}(e.firstVisibleIndex,e.currentIndex,n,r.length);return i().createElement("div",{className:`npv-lyrics__text-wrapper ${o}`,key:n},i().createElement("p",{"data-lyrics-line":!0,className:"npv-lyrics__text"},t.text||" "))})),i().createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},N("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}const Be=e=>{var t;const{firstVisibleIndex:n,currentIndex:o}=Ne(e.lyrics.lines),a=Re(e.containerRef,e.lyrics.lines),s=Ie(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);ke(e.containerRef,s,a,n);const l=null===(t=a[n])||void 0===t?void 0:t.element,c=(0,r.useMemo)((()=>{var e;return null!==(e=null==l?void 0:l.offsetTop)&&void 0!==e?e:0}),[l]);return i().createElement(i().Fragment,null,i().createElement(ze,{firstVisibleIndex:n,currentIndex:o,offsetTop:c,lyrics:e.lyrics}),i().createElement(Fe,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))};function Ve(e,t,n){const r=t.syllables||[],i=r[n];if(r.length>n+1){return r[n+1].timestamp-i.timestamp}return e.lines.length>t.index+1?e.lines[t.index+1].timestamp-i.timestamp:100}function je(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null),o=(0,r.useRef)({index:e.line.index,text:e.line.text}),[,a]=(0,r.useReducer)((e=>e+1),0),[s,l]=(0,r.useState)(0),[c,u]=(0,r.useState)(0),[d,p]=(0,r.useState)("");return(0,r.useEffect)((()=>{function r(){null!==n.current&&(clearTimeout(n.current),n.current=null)}if(o.current.index!==e.line.index||o.current.text!==e.line.text)u(0),l(0),r(),n.current=setTimeout((()=>{a()}),0),o.current={index:e.line.index,text:e.line.text};else{const{alreadyShownSyllablesLength:n,currentSyllableDurationMs:r}=function(e,t,n){const r=t.syllables||[];let i=null,o=0;for(let e=0;en)break;i=t,o+=t.length}return null===i?{alreadyShownSyllablesLength:0,currentSyllableDurationMs:0}:{alreadyShownSyllablesLength:o,currentSyllableDurationMs:Ve(e,t,i.index)}}(e.lyrics,e.line,e.songProgressMs),i=e.line.text.slice(0,n);u(function(e,t,n){if(!e||!t||!t.current)return 0;const r=window.getComputedStyle(t.current);return e.style.position="absolute",e.style.visibility="hidden",e.style.fontFamily=r.fontFamily,e.style.fontSize=r.fontSize,e.style.fontWeight=r.fontWeight,e.innerText=n,e.getBoundingClientRect().width}(e.textMeasurer,t,i)),l(r),p(i)}return()=>{r()}}),[e.lyrics,e.songProgressMs,e.line.index,e.line.text]),i().createElement(i().Fragment,null,i().createElement("span",{ref:t,className:"syllable-synced-animated-lyrics__full-text"},e.line.text),i().createElement("span",{className:"syllable-synced-animated-lyrics__progressing-text",style:{width:`${c}px`,transitionDuration:`${s}ms`}},d))}function He(e){const t=(0,r.useRef)(null),[n,o]=(0,r.useState)(null),[a,s]=(0,r.useState)(null),l=Ie(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return(0,r.useEffect)((()=>(t.current=function(){const e=document.createElement("span");return document.body.appendChild(e),e}(),()=>{var e;t.current&&(null===(e=t.current.parentNode)||void 0===e||e.removeChild(t.current))})),[]),(0,r.useEffect)((()=>{const{currentLine:t,nextLine:r}=function(e,t){const n=e.lines,r=n.length;let i=-1;for(let e=0;et);++e)i=e;if(-1===i)return{currentLine:null,nextLine:null};const o=n[i+1];return{currentLine:Object.assign({index:i},n[i]),nextLine:o?Object.assign({index:i+1},o):null}}(e.lyrics,e.songProgressMs);(null==n?void 0:n.index)!==(null==t?void 0:t.index)&&(o(t),s(r))}),[e.lyrics,e.songProgressMs]),function(e,t,n,i,o){const a=(0,r.useRef)(null),s=(0,r.useRef)(null);(0,r.useEffect)((()=>{a.current=new Set,s.current=[]}),[e]),(0,r.useEffect)((()=>{a.current&&s.current&&(void 0===n||a.current.has(n)||(a.current.add(n),s.current.push({index:n,text:t[n].text})),void 0===i||a.current.has(i)||(a.current.add(i),s.current.push({index:i,text:t[i].text})),o(s.current))}),[o,n,i])}(e.trackUri,e.lyrics.lines,null==n?void 0:n.index,null==a?void 0:a.index,l),i().createElement(i().Fragment,null,i().createElement("div",{className:"syllable-synced-lyrics__container"},i().createElement("div",{className:"syllable-synced-animated-lyrics"},n&&t.current&&i().createElement(je,{textMeasurer:t.current,lyrics:e.lyrics,line:n,songProgressMs:e.songProgressMs}))),a&&i().createElement("span",{className:"syllable-synced-lyrics__next-line"},a.text),i().createElement(Fe,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))}function Ge(e){return i().createElement("div",{className:"npv-track-metadata","aria-hidden":e.hidden},i().createElement("div",{className:"npv-track-metadata__content-wrapper"},e.coverArtImageUrl&&i().createElement(G,{className:"npv-track-metadata__cover-art",src:e.coverArtImageUrl,alt:""}),(e.name||e.creatorName)&&i().createElement("div",{className:"npv-track-metadata__text-wrapper"},e.name&&i().createElement("div",{className:"npv-track-metadata__name"},e.name),e.creatorName&&i().createElement("div",{className:"npv-track-metadata__creator-name"},e.creatorName))))}function qe(e){return i().createElement("div",{className:"npv-lyrics__sentences",style:e.style,dir:"auto"},e.lyrics.lines.map(((e,t)=>i().createElement("p",{className:"npv-lyrics__text npv-lyrics__text--unsynced","data-lyrics-line":!0,key:t},e.text))),i().createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},N("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}function Ke(e){const t=l(),n=function(e,t){const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=setTimeout((()=>i(!1)),100);return i(!0),()=>clearTimeout(e)}),[t]),(t,r,i)=>`${e}${n?"-reset":""} ${r}ms linear -${t}ms ${i?"paused":"running"}`}("slide-up",t),o=n(t,e.duration,e.isPaused),a={WebkitAnimation:o,animation:o};return i().createElement(qe,Object.assign({},e,{style:a}))}function We(e){const t=Object.assign(Object.assign({},e.lyrics),{lines:Le(e.lyrics.lines,e.duration)});return i().createElement(qe,Object.assign({},e,{lyrics:t}))}const Ye=e=>{const t=e.disableAnimationsAndTransitions?We:Ke,n=Ie(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return function(e,t,n,i){const o=Re(e,n),a=c();ke(e,t,o,(0,r.useMemo)((()=>Oe(n,i,a)),[n,i,a]))}(e.containerRef,n,e.lyrics.lines,e.duration),i().createElement(i().Fragment,null,i().createElement("p",{className:"npv-lyrics__text--unsynced-warning"},N("LYRICS_UNSYNCED")),i().createElement("div",{className:"npv-lyrics__container--unsynced"},i().createElement(t,{duration:e.duration,isPaused:e.isPaused,lyrics:e.lyrics})),i().createElement(Fe,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},Je=e=>i().createElement("div",{className:"npv-lyrics__message"},i().createElement("p",{className:"npv-lyrics__text npv-lyrics__text--message"},e.children)),$e=e=>{const[t,n]=(0,r.useState)("");return(0,r.useEffect)((()=>{const e=function(e){const t=["NO_LYRICS_MSG_1","NO_LYRICS_MSG_2","NO_LYRICS_MSG_3","NO_LYRICS_MSG_4"].filter((t=>t!==e));return t[Math.floor(Math.random()*(t.length-1))]}(t);n(e)}),[e.trackUri]),i().createElement(Je,null,t?N(t):"")},Xe=e=>{const t=(0,r.useRef)(null);return i().createElement("div",{className:`npv-lyrics ${e.className}`},i().createElement(K,{backgroundColor:e.backgroundColor,modifier:"noise"}),i().createElement(Ge,Object.assign({},e.trackMetadataProps)),i().createElement("div",{ref:t,className:`npv-lyrics__content ${e.fullScreen&&"npv-lyrics__content--full-screen"}`},!e.content&&"success"===e.status&&i().createElement($e,{trackUri:e.trackUri}),!e.content&&"error"===e.status&&i().createElement(Je,null,N("LYRICS_ERROR_MESSAGE")),e.trackUri&&e.content&&e.content.syncType===Te.LINE_SYNCED&&i().createElement(Be,{lyrics:e.content,backgroundColor:e.backgroundColor,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Te.UNSYNCED&&i().createElement(Ye,{lyrics:e.content,backgroundColor:e.backgroundColor,duration:e.duration,isPaused:e.isPaused,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Te.SYLLABLE_SYNCED&&i().createElement(He,{lyrics:e.content,backgroundColor:e.backgroundColor,songProgressMs:e.position||0,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen})))};function Qe(e){return i().createElement("div",{className:`npv-cover-art npv-cover-art--${e.mediaType}\n ${e.hasNoExpandedCover&&"npv-cover-art--not-expanded"}\n ${e.trackMetadataVisible&&"npv-cover-art--visible"}\n ${e.isEpisode&&"npv-cover-art--episode"}`},i().createElement(G,{src:e.coverArtImageUrl,alt:"Cover Art"}))}function Ze(e){return i().createElement("div",{className:`npv-track npv-track--${e.mediaType} ${e.hasNoExpandedCover&&"npv-track--not-expanded"} ${e.trackMetadataVisible&&"npv-track--visible"}`},i().createElement("div",{className:"npv-track__name"},e.trackName),i().createElement("div",{className:"npv-track__creator-name"},e.trackCreatorName))}const et=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),r.createElement("path",{d:"M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.669 11.539a.498.498 0 0 1-.686.166c-1.878-1.148-4.243-1.408-7.028-.772a.499.499 0 0 1-.222-.972c3.048-.696 5.662-.396 7.77.892a.5.5 0 0 1 .166.686zm.979-2.178a.624.624 0 0 1-.858.205c-2.15-1.322-5.428-1.705-7.972-.932a.624.624 0 1 1-.362-1.194c2.905-.882 6.517-.455 8.987 1.063a.624.624 0 0 1 .205.858zm.084-2.269C10.153 5.561 5.9 5.42 3.438 6.167a.748.748 0 1 1-.434-1.432c2.826-.857 7.523-.692 10.492 1.07a.748.748 0 0 1-.764 1.287z"})),tt=(0,r.memo)(et),nt=({src:e,className:t,focused:n})=>i().createElement("div",{className:`npv-avatar ${t}}`},e&&i().createElement("div",{className:"npv-avatar__image "+(n?"npv-avatar__image--focused":""),style:{backgroundImage:`url(${e})`}}));function rt({name:e,avatarImage:t}){return i().createElement("div",{className:"npv-guest"},i().createElement("p",{className:"npv-guest__name"},e),i().createElement(nt,{className:"npv-guest__avatar",src:t}))}function it(e){var t;return i().createElement(f,{visible:null!==(t=e.contextMetadataVisible)&&void 0!==t&&t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},i().createElement("div",{className:`npv-header npv-header--${e.mediaType}`},i().createElement(tt,{className:"npv-header__logo"}),i().createElement("div",{className:"npv-header__metadata placeholder"},e.l10n.playingFromContextType&&i().createElement("div",{className:"npv-header__context-type"},e.l10n.playingFromContextType),i().createElement("div",{className:"npv-header__context-name"},e.contextName)),e.isGuestMode&&i().createElement(rt,{name:e.guestName,avatarImage:e.guestAvatarImage})))}function ot(e){return i().createElement("div",{className:`npv-what-is-playing ${e.className}`},i().createElement(it,Object.assign({},e.headerProps)),i().createElement("div",{className:`npv-what-is-playing__metadata ${e.progressBarVisible&&"npv-what-is-playing__metadata--docked"} npv-what-is-playing__metadata--${e.mediaType}`},i().createElement(Qe,Object.assign({},e)),i().createElement(Ze,Object.assign({},e))))}var at,st,lt=n(10139),ct=(n(66149),n(12666)),ut=n(220);var dt="out-in",pt="in-out",ft=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},ht=((at={})[dt]=function(e){var t=e.current,n=e.changeState;return i().cloneElement(t,{in:!1,onExited:ft(t,"onExited",(function(){n(ct.d0,null)}))})},at[pt]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i().cloneElement(r,{in:!0,onEntered:ft(r,"onEntered",(function(){n(ct.d0)}))})]},at),vt=((st={})[dt]=function(e){var t=e.children,n=e.changeState;return i().cloneElement(t,{in:!0,onEntered:ft(t,"onEntered",(function(){n(ct.cn,i().cloneElement(t,{in:!0}))}))})},st[pt]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i().cloneElement(t,{in:!1,onExited:ft(t,"onExited",(function(){r(ct.cn,i().cloneElement(n,{in:!0}))}))}),i().cloneElement(n,{in:!0})]},st),mt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{const t=e.lyricsProps?"lyrics":"what-is-playing",n=e.disableAnimationsAndTransitions?0:500;return i().createElement(gt,null,i().createElement(p.Z,{key:t,classNames:"npv-main-container__visibility-transition",timeout:n},e.lyricsProps?i().createElement(Xe,Object.assign({},e.lyricsProps,{className:"npv-main-container__lyrics"})):i().createElement(ot,Object.assign({},e.whatIsPlayingProps,{className:"npv-main-container__what-is-playing"}))))};function _t(e){var t;z(e.locale);const n=function(e){var t,n,r;if(e.lyrics&&e.onLyricsReport)return{trackUri:null===(t=e.currentTrack)||void 0===t?void 0:t.uri,content:"success"===e.lyrics.status?Ae(e.lyrics.content):void 0,status:e.lyrics.status,onLyricsReport:e.onLyricsReport,position:e.position,trackMetadataProps:be(e),backgroundColor:"error"!==e.lyrics.status?e.backgroundColor:"#7F7F7F",duration:(null===(n=e.currentTrack)||void 0===n?void 0:n.duration)||0,isPaused:e.playbackIsPaused||!1,disableAnimationsAndTransitions:null!==(r=e.disableAnimationsAndTransitions)&&void 0!==r&&r,fullScreen:!e.controlsVisible}}(e),r=void 0!==n,a="video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType),s=function(e){var t;return"video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType)?{backgroundColor:"#000",animated:!1}:{backgroundColor:e.backgroundColor,modifier:"gradient",animated:!0}}(e),l=function(e,t){const{backgroundImageUrl:n}=e;return{backgroundImageUrl:n,showBackgroundImage:!t&&!!e.backgroundImageUrl}}(e,r),c=function(e){var t,n,r,i,o,a,s,l;const c=(null===(t=e.nextTrack)||void 0===t?void 0:t.coverArtImageUrl)&&(null===(n=e.nextTrack)||void 0===n?void 0:n.name)&&(null===(r=e.nextTrack)||void 0===r?void 0:r.creatorName),u=D().from(null===(i=e.nextTrack)||void 0===i?void 0:i.uri),d=null==u?void 0:u.type.toLowerCase();return{canRender:!!c,coverArtImageUrl:null===(o=e.nextTrack)||void 0===o?void 0:o.coverArtImageUrl,metadata:`${null===(a=e.nextTrack)||void 0===a?void 0:a.name} • ${null===(s=e.nextTrack)||void 0===s?void 0:s.creatorName}`,l10n:{upNext:N("NOTIFICATION_UP_NEXT")},disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,duration:null===(l=e.currentTrack)||void 0===l?void 0:l.duration,trackType:d}}(e),u=function(e,t){var n,r,i,o,a,s,l;const c=(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)||"audio",u={coverArtImageUrl:null===(r=e.currentTrack)||void 0===r?void 0:r.coverArtImageUrl,trackName:null===(i=e.currentTrack)||void 0===i?void 0:i.name,trackCreatorName:null===(o=e.currentTrack)||void 0===o?void 0:o.creatorName,trackUri:null===(a=e.currentTrack)||void 0===a?void 0:a.uri,headerProps:U(e,c),hasNoExpandedCover:F(e,t),progressBarVisible:!!e.progressBarVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:c,isEpisode:!1};if(null===(s=e.currentTrack)||void 0===s?void 0:s.uri){const t=D().from(null===(l=e.currentTrack)||void 0===l?void 0:l.uri).type.toLowerCase();u.isEpisode="episode"===t}return u}(e,r),d=function(e,t){var n;return{duration:null===(n=e.currentTrack)||void 0===n?void 0:n.duration,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed,progressBarVisible:!!e.progressBarVisible&&!e.CustomPlaybackControls,disableAnimationsAndTransitions:!!e.disableAnimationsAndTransitions,mediaType:t}}(e,u.mediaType),p=function(e){return{position:e.position,timestamp:e.timestamp,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed}}(e),f=function(e,t){return{contextMetadataVisible:!!e.contextMetadataVisible,isActive:!!e.controlsVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:t}}(e,u.mediaType),v=function(e,t){const n={};return t&&(n.backgroundColor=e.backgroundColor),n}(e,r),m=(e=>{const t=["spotifyinternal-artistnpv"];e.progressBarVisible&&t.push("npv-has-progress-bar");const n=e.disableAnimationsAndTransitions?"npv-has-no-animations-and-transitions":"npv-has-animations-and-transitions";return t.push(n),t.join(" ")})(e);return i().createElement("div",{className:m},i().createElement(x,Object.assign({},p),i().createElement(K,Object.assign({},s)),a?i().createElement(o,Object.assign({},f)):i().createElement(q,Object.assign({},l)),i().createElement("div",{className:"npv-main-container",style:v},i().createElement(yt,{disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,lyricsProps:n,whatIsPlayingProps:u}),i().createElement(M,Object.assign({},c)),i().createElement(h,Object.assign({},d)),i().createElement(_e,Object.assign({},e))),i().createElement(k,Object.assign({},e))))}_t.defaultProps={contextMetadataVisible:!0,controlsVisible:!0,trackMetadataVisible:!0,progressBarVisible:!0}},24269:(e,t,n)=>{"use strict";n.d(t,{xc:()=>Jt,UR:()=>Yt,xu:()=>ye,Xs:()=>vn,ET:()=>Wt,lA:()=>F,ON:()=>Ht,H6:()=>jt,me:()=>We,ZP:()=>gn});var r,i,o,a=n(7550);!function(e){e[e.EMPTY=0]="EMPTY",e[e.TRACK=1]="TRACK",e[e.EPISODE=2]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r||(r={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.MISSING=1]="MISSING",e[e.COMPLETE=2]="COMPLETE",e[e.NOT_APPLICABLE=3]="NOT_APPLICABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i||(i={})),function(e){e[e.OK=0]="OK",e[e.TEMPORARY_ERROR=1]="TEMPORARY_ERROR",e[e.PERMANENT_ERROR=2]="PERMANENT_ERROR",e[e.DISK_FULL=3]="DISK_FULL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o||(o={}));var s;!function(e){e[e.OTHER=0]="OTHER",e[e.AUDIO=1]="AUDIO",e[e.DRM=2]="DRM",e[e.IMAGE=3]="IMAGE",e[e.VIDEO=4]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s||(s={}));var l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:0,n=(b[e[t+0]]+b[e[t+1]]+b[e[t+2]]+b[e[t+3]]+"-"+b[e[t+4]]+b[e[t+5]]+"-"+b[e[t+6]]+b[e[t+7]]+"-"+b[e[t+8]]+b[e[t+9]]+"-"+b[e[t+10]]+b[e[t+11]]+b[e[t+12]]+b[e[t+13]]+b[e[t+14]]+b[e[t+15]]).toLowerCase();if(!_(n))throw TypeError("Stringified UUID is invalid");return n};const T=function(e,t,n){var r=(e=e||{}).random||(e.rng||g)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return S(r)};var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1})).sort((function(e,t){return Math.abs(e.bitrate-640)-Math.abs(t.bitrate-640)}));return n.length?n[0].url:null};function P(e,t){var n;return null===(n=null==t?void 0:t.find((function(t){return t.isPlayable(e)})))||void 0===n?void 0:n.getMediaUrl(e)}var I=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},R=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0,r=(t.video?t.video.video_bitrate:0)+(t.audio?t.audio.audio_bitrate:0);return{id:this.curId_++,language:"und",primary:!1,audio:t.audio?this.loadStream_(e,t.audio,"audio",n):null,video:t.video?this.loadStream_(e,t.video,"video",n):null,bandwidth:r,allowedByApplication:!0,allowedByKeySystem:!0,roles:[]}},L.prototype.loadTextStreams_=function(e){var t,n=this,r=[];return(null===(t=this.data.subtitle_language_codes)||void 0===t?void 0:t.length)&&(r=this.data.subtitle_language_codes.map((function(e){return{id:n.curId_++,mime_type:"text/vtt",language:e}}))),r.map((function(t){return n.loadStream_(e,t,"text",!1)}))},L.prototype.loadStream_=function(e,t,n,r){var i=this.getSegmentIndex_(e,t,n),o="";return"video"===n&&(o=t.video_codec),"audio"===n&&(o=t.audio_codec),{id:this.curId_++,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:i,mimeType:t.mime_type,codecs:o,bandwidth:t.max_bitrate,width:"video"===n?t.video_width:void 0,height:"video"===n?t.video_height:void 0,kind:"text"===n?"subtitles":void 0,encrypted:r,keyIds:[],language:"text"===n?t.language:"und",type:n,primary:!1,trickModeVideo:null,containsEmsgBoxes:!1,allowedByApplication:!0,allowedByKeySystem:!0,roles:[],drmInfos:r?[{keySystem:"com.widevine.alpha"}]:[]}},L.prototype.getInitSegmentReference_=function(e){var t=this;if(this.profileInitSegmentReferences.has(e))return this.profileInitSegmentReferences.get(e);var n=new a.media.InitSegmentReference((function(){return t.data.base_urls.map((function(n){return(n+t.data.initialization_template).replace(t.PROFILE_ID_PLACEHOLDER,e.id).replace(t.FILE_TYPE_PLACEHOLDER,e.file_type)}))}),0,null);return this.profileInitSegmentReferences.set(e,n),n},L.prototype.getSegmentIndex_=function(e,t,n){var r=this,i=[],o=e.start_time_millis/1e3,s=e.end_time_millis/1e3;if("text"===n){i=[new a.media.SegmentReference(o,s,(function(){var e=null;return r.data.subtitle_base_urls?e=r.data.subtitle_base_urls.map((function(e){return(e+r.data.subtitle_template).replace(r.LANGUAGE_CODE_PLACEHOLDER,t.language)})):a.log.warning("subtitle codes provided but no subtitle_base_urls\n found in manifest. Are you using v6 (or later) manifests?"),e}),0,null,null,o,o,1/0)]}else for(var l=e.segment_length,c=o;c0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?Math.round(c/s):-1;n={id:this.betamaxPluginId,download:{link:l,complete:!1,fileSize:u,bytesDownloaded:c,error:o.OK},identify:void 0,remove:void 0,stopDownload:void 0};break;case"completed":var d=t.offlineAsset;n={id:this.betamaxPluginId,download:{link:this.getEpisodeUri(d),complete:!0,fileSize:d.size,bytesDownloaded:d.size,error:o.OK},identify:void 0,remove:void 0,stopDownload:void 0};break;case"error":var p=t,f=(i=p.partialAsset,p.error),h=o.PERMANENT_ERROR;f.code===a.util.Error.Code.QUOTA_EXCEEDED_ERROR&&(h=o.DISK_FULL),n={id:this.betamaxPluginId,download:{link:this.getEpisodeUri(i),complete:!1,fileSize:i.size,bytesDownloaded:i.size,error:h},identify:void 0,remove:void 0,stopDownload:void 0}}n&&this.configuration.cosmos.post(this.offlineCosmosEndpoint,n,this.pluginHeaders)},e.prototype.onCommandReceived=function(e){return x(this,void 0,void 0,(function(){var t;return U(this,(function(n){switch(n.label){case 0:return this.offlineManager?e.download||e.identify||e.remove?(t=void 0,e.download?[4,this.onDownloadCommand(e.download)]:[3,2]):[2,Promise.reject("unknown command")]:[2,Promise.reject("not initialized")];case 1:t=n.sent(),n.label=2;case 2:return e.identify?[4,this.onIdentifyCommand(e.identify)]:[3,4];case 3:t=n.sent(),n.label=4;case 4:return e.remove?[4,this.onRemoveCommand(e.remove)]:[3,6];case 5:n.sent(),n.label=6;case 6:return t&&this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders),[2,Promise.resolve()]}}))}))},e.prototype.onDownloadCommand=function(e){var t;return x(this,void 0,void 0,(function(){var n,r,i,a,s;return U(this,(function(l){switch(l.label){case 0:return n={id:this.betamaxPluginId,download:{link:"",complete:!1,fileSize:0,bytesDownloaded:0,error:0},identify:void 0,remove:void 0,stopDownload:void 0},r=e.link,[4,this.getEpisodeMetadata(r).catch((function(){return{mediaUri:void 0,mediaType:void 0}}))];case 1:return i=l.sent(),a=i.mediaUri,s=i.mediaType,void 0===a||void 0===s?(n.download&&(n.download.error=o.TEMPORARY_ERROR),[2,n]):this.isVideo(s)?(null===(t=this.offlineManager)||void 0===t||t.download(a,{episodeUri:r}),[2,void 0]):(n.download&&(n.download.error=o.PERMANENT_ERROR),[2,n])}}))}))},e.prototype.onIdentifyCommand=function(e){var t,n;return x(this,void 0,void 0,(function(){var r,o,a,s,l,c,u,d,p,f;return U(this,(function(h){switch(h.label){case 0:r={},o=0,a=e.query,h.label=1;case 1:return o0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=2&&"spotify"===r[0]&&r[1]?r[1]:void 0;i&&(n=i)}if(n)return t="".concat(t,"-").concat(n);return t}(e),i.playback_id=e.track.playback_id,Y(Y({},i),o)}function ve(e){var t=e["video.subtitles"],n=e["video.subtitles_cc"];return""===t?B:function(e,t){return e?{languageTag:t?"".concat(e,"-x-").concat("cc"):e}:B}(t,n)}function me(e){return e["audio.episode.speed"]}var ge,ye,_e,be=function(){function e(e,t){var n=this;this.cosmos=e,this.userTracking=t,this.rules="",this.cosmos.sub("sp://product-state/v1/values/streaming-rules",(function(e){n.rules=e["streaming-rules"]}),(function(){})),this.cosmos.sub("sp://scrobble/v1/incognito",(function(e){n.incognito=e&&!!e.enabled}),(function(){}))}return e.prototype.streamingRules=function(){return this.rules},e}(),Ee=function(){function e(e,t){var n,r;this.betamaxSdkConfig=t,this.player=new a.Player(e),(null===(r=null===(n=this.betamaxSdkConfig)||void 0===n?void 0:n.mux)||void 0===r?void 0:r.enabled)&&W().init(this.player,this.betamaxSdkConfig)}return e.prototype.configure=function(e){return this.player.configure(e)},e.prototype.getNetworkingEngine=function(){return this.player.getNetworkingEngine()},e.prototype.load=function(e,t,n){return this.player.load(e,t,n).catch((function(e){throw W().loadErrorHandler(e),e}))},e.prototype.unload=function(){var e;return null===(e=this.player.mux)||void 0===e||e.destroy(),this.player.unload()},e.prototype.keySystem=function(){return this.player.keySystem()},e.prototype.getTextTracks=function(){return this.player.getTextTracks()},e.prototype.getVariantTracks=function(){return this.player.getVariantTracks()},e.prototype.getStats=function(){return this.player.getStats()},e.prototype.addEventListener=function(e,t,n){return this.player.addEventListener(e,t,n)},e.prototype.removeEventListener=function(e,t,n){return this.player.removeEventListener(e,t,n)},e.prototype.selectTextLanguage=function(e,t){return this.player.selectTextLanguage(e,t)},e.prototype.setTextTrackVisibility=function(e){return this.player.setTextTrackVisibility(e)},e.prototype.isTextTrackVisible=function(){return this.player.isTextTrackVisible()},e.prototype.selectVariantTrack=function(e,t,n){return this.player.selectVariantTrack(e,t,n)},e.prototype.isLive=function(){return this.player.isLive()},e}(),Se=function(){function e(){var e=this;this.tokenCounter=1,this.handleTimeUpdate=function(t){e.processPeriodicObserverEvents(t),e.processPositionObserverEvents(t)},this.positionObservers=[],this.periodicObservers=[]}return e.prototype.removePositionObserver=function(e){this.positionObservers=this.positionObservers.filter((function(t){return t.token!==e}))},e.prototype.removePeriodicObserver=function(e){this.periodicObservers=this.periodicObservers.filter((function(t){return t.token!==e}))},e.prototype.addObserverForMediaPositions=function(e,t){for(var n=this.nextToken(),r=0,i=e;r=this.lastProgress&&i.position=r.intervalInSeconds&&(r.callback(i),r.lastReportedPosition=Math.floor(i))}},e.prototype.removePositionObserverByReference=function(e){this.positionObservers=this.positionObservers.filter((function(t){return t!==e}))},e}();!function(e){e.INITIAL="initial",e.SEEK="seek",e.STALL="stall"}(ge||(ge={})),function(e){e.PLAYED_TO_END="played-to-end",e.FATAL_ERROR="error",e.REQUESTED="requested-end",e.SHUTDOWN="shutdown"}(ye||(ye={})),function(e){e.CREATED="created",e.MANIFEST_LOADING="manifestLoading",e.MANIFEST_LOADED="manifestLoaded",e.ENCRYPTION_KEY_LOADING="encryptionKeyLoading",e.ENCRYPTION_KEY_LOADED="encryptionKeyLoaded",e.BUFFERING="buffering",e.DROPPED_FRAMES="droppedFrames",e.READY="ready",e.STARTED="started",e.PAUSED="paused",e.RESUMED="resumed",e.SEEKING="seeking",e.SEEKED="seeked",e.ENDED="ended",e.RECOVERABLE_ERROR="recoverableError",e.FATAL_ERROR="fatalError",e.BYTES_TRANSFERRED="bytesTransferred",e.SUBTITLE_CHANGED="subtitleChanged",e.VIDEO_FORMAT_CHANGED="videoFormatChanged",e.AUDIO_FORMAT_CHANGED="audioFormatChanged",e.FULLSCREEN_CHANGED="fullscreenChanged",e.MINIMIZE_BITRATE_CHANGED="minimizeBitrateChanged",e.VOLUME_CHANGED="volumeChanged",e.PROGRESS="progress",e.POSITION_UPDATE="positionUpdate",e.DURATION_CHANGED="durationChanged",e.NEW_SESSION_LOADED="newSessionLoaded",e.PLAYBACK_SPEED_CHANGED="playbackSpeedChanged"}(_e||(_e={}));var Te=function(){return Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]n&&(t=n),this.lastSeekTime=t,this.state.currentTime=this.node.currentTime,this.state.isSeeking=!0,this.state.seekingFrom=this.node.currentTime,this.state.currentTime=t,this.state.hasInitiallySeeked=!0,this.node.currentTime=t,this},e.prototype.setVolume=function(e){if(this.node){var t=Math.pow(e,3);this.node.volume=t}},e.prototype.setAudioDisabled=function(e){this.node&&(this.node.muted=e)},e.prototype.setPlaybackSpeed=function(e){void 0!==this.node&&e>0&&(this.node.defaultPlaybackRate=e,this.node.playbackRate=e)},e.prototype.reattach=function(){this.containerElementMutationObserver=new MutationObserver(this.checkContainerElementByClass),this.containerElement?this.containerElement.appendChild(this.node):this.containerElementClass&&(this.containerElementMutationObserver.observe(document.documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass())},e.prototype.playWithOptions=function(e,t){var n=this;return this.sessionPromise=new Promise((function(r){return Oe(n,void 0,void 0,(function(){var n,i,o,a,s,l,c,u,d,p,f,h,v,m,g,y,_,b,E,S,T,O,C,I,R,N,k=this;return Ae(this,(function(L){switch(L.label){case 0:return n=this.validatePlaybackRequest(Te(Te({},e),t)),i=A(),o=n.mediaUrl,a=null!==(h=P(o,this.playbackSessionConfiguration.mediaExtensions))&&void 0!==h?h:o,s=!1,this.offlineManager?[4,this.offlineManager.isAssetOffline(o)]:[3,2];case 1:s=L.sent(),L.label=2;case 2:return l=s?"offline":"on_demand",this.session=Te({sessionId:i,streamingType:l},n),this.node=document.createElement("video"),void 0!==this.videoElementConfig.controls&&(this.node.controls=this.videoElementConfig.controls),void 0!==this.videoElementConfig.loop&&(this.node.loop=this.videoElementConfig.loop),void 0!==this.videoElementConfig.style&&(this.node.style.cssText=this.videoElementConfig.style),void 0!==this.videoElementConfig.width&&(this.node.width=this.videoElementConfig.width),void 0!==this.videoElementConfig.height&&(this.node.height=this.videoElementConfig.height),this.containerElement?this.containerElement.appendChild(this.node):this.containerElementClass&&(this.containerElementMutationObserver.observe(document.documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass()),this.node.setAttribute("preload","auto"),this.node.setAttribute("data-sessionId",this.session.sessionId),this.internalObserver.initiateObservers(this.session,this.playbackSessionConfiguration),this.internalObserver.onPlaybackCreated({playbackIdentity:Te({},this.session),initialConfiguration:{position:t.initialPosition,volume:e.volume,preferredSubtitle:e.preferredSubtitle,playbackSpeed:e.playbackSpeed,minimizeBitrate:null!==(v=e.minimizeBitrate)&&void 0!==v&&v},timeObservable:this.playbackTimeObservable}),this.playerBufferInterval=0,this.playerTimeUpdateInterval=0,this.state=this.getInitialState(e,t),this.latencyStartTimes={},this.setVolume(e.volume),this.setPlaybackSpeed(e.playbackSpeed),(null===(g=null===(m=this.configuration.betamaxSdkConfig)||void 0===m?void 0:m.mux)||void 0===g?void 0:g.enabled)&&W().newSession({view_session_id:this.session.sessionId,video_title:null===(y=this.session.metadata)||void 0===y?void 0:y.album_title,video_id:null===(_=this.session.metadata)||void 0===_?void 0:_["media.manifest_id"],video_stream_type:l,video_source_url:o,video_content_type:null===(b=this.session.metadata)||void 0===b?void 0:b.feature_identifier}),this.internalPlayer=new Ee(this.node,this.configuration.betamaxSdkConfig),e.minimizeBitrate&&this.enableMinimizeBitrate(),c=null!==(T=null===(S=null===(E=this.configuration.betamaxSdkConfig)||void 0===E?void 0:E.streaming)||void 0===S?void 0:S.rebufferingGoal)&&void 0!==T?T:4,u=null!==(I=null===(C=null===(O=this.configuration.betamaxSdkConfig)||void 0===O?void 0:O.retry)||void 0===C?void 0:C.attempts)&&void 0!==I?I:10,d={manifest:{retryParameters:{maxAttempts:u}},abr:{defaultBandwidthEstimate:e.bandwidthEstimate},abrFactory:function(){return k.abrManager},drm:Te({retryParameters:{maxAttempts:u}},this.configuration.drm),streaming:{rebufferingGoal:c,retryParameters:{maxAttempts:u}}},this.internalPlayer.configure(d),p=this.internalPlayer.getNetworkingEngine(),this.configureNetworkingEngine(p),this.startListening(),this.offlineManager&&s?[4,this.offlineManager.getPlayableOfflineUrl(o)]:[3,4];case 3:(f=L.sent())&&(a=f),L.label=4;case 4:return this.playerLoadPromise=this.internalPlayer.load(a,t.initialPosition),(null===(N=null===(R=this.configuration.betamaxSdkConfig)||void 0===R?void 0:R.streaming)||void 0===N?void 0:N.autoplayVideoOnLoad)||(this.node.autoplay=t.playWhenReady,this.setPaused(!t.playWhenReady)),this.playerLoadPromise.then((function(){var n,i,o,a;k.state.isLoaded=!0,k.state.keySystem=k.internalPlayer.keySystem(),(null===(i=null===(n=k.configuration.betamaxSdkConfig)||void 0===n?void 0:n.subtitles)||void 0===i?void 0:i.enabled)&&void 0!==e.preferredSubtitle&&k.setPreferredSubtitle(e.preferredSubtitle),(null===(a=null===(o=k.configuration.betamaxSdkConfig)||void 0===o?void 0:o.streaming)||void 0===a?void 0:a.autoplayVideoOnLoad)&&k.setPaused(!t.playWhenReady),r(k)})).catch((function(e){k.handleError("player-load",{type:"error",detail:e})})),[2]}}))}))})),this.sessionPromise},e.prototype.setPreferredSubtitle=function(e){if(e.languageTag!==B.languageTag){var t=function(e,t){if(e.languageTag!==B.languageTag){var n=t.find((function(t){return t.languageTag===e.languageTag}));if(n)return n;var r=t.find((function(t){return V(t)===V(e)}));return r||(t.find((function(t){return j(t)===j(e)}))||void 0)}}(e,this.internalPlayer.getTextTracks().map((function(e){return{languageTag:e.language}})));if(void 0!==t){var n=this.getSubtitleLanguageTag();t.languageTag!==n&&this.setSubtitle(t)}else this.removeSubtitle()}else this.removeSubtitle()},e.prototype.newSessionLoaded=function(e){this.state.isEnded||this.internalObserver.onEndingPlayback({playbackRequest:e})},e.prototype.getBandwidthEstimate=function(){var e,t=this.getStats();return null!==(e=null==t?void 0:t.estimatedBandwidth)&&void 0!==e?e:void 0},e.prototype.stop=function(e){var t,n,r;return Oe(this,void 0,void 0,(function(){var i,o,a;return Ae(this,(function(s){switch(s.label){case 0:return void 0===this.sessionPromise?[3,2]:[4,this.sessionPromise];case 1:s.sent(),s.label=2;case 2:if(i=(null===(t=this.node)||void 0===t?void 0:t.currentTime)?this.node.currentTime:this.state.currentTime,this.disablePlayTimers(),this.state.isEnded||this.emitEndedEvent(ye.REQUESTED,i),this.state.isEnded=!0,this.state.endReason=e,this.state.stats=this.getStats(),this.stopListening(),void 0===this.internalPlayer)return[3,7];s.label=3;case 3:return s.trys.push([3,5,,6]),[4,this.playerLoadPromise];case 4:return s.sent(),this.internalPlayer.unload(),[3,6];case 5:return o=s.sent(),this.handleError("player-unload",{type:"error",detail:o}),[3,6];case 6:(a=this.internalPlayer.getNetworkingEngine())&&(a.clearAllRequestFilters(),a.clearAllResponseFilters()),this.containerElementMutationObserver.disconnect(),s.label=7;case 7:return null===(r=null===(n=this.node)||void 0===n?void 0:n.parentNode)||void 0===r||r.removeChild(this.node),[2]}}))}))},e.prototype.emitForPercentages=function(e){this.state.progressPercentages=Ce([],Array.from(new Set(Ce(Ce([],this.state.progressPercentages,!0),e,!0))),!0).sort()},e.prototype.clearEmittedPercentages=function(){this.state.progressPercentages=[]},e.prototype.getPlaybackId=function(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.endvideo_playback_id)||""},e.prototype.getNode=function(){return this.node},e.prototype.hideNode=function(){this.node.style.display&&(this.storedDisplayStyle=this.node.style.display),this.node.style.display="none"},e.prototype.showNode=function(){this.storedDisplayStyle?this.node.style.display=this.storedDisplayStyle:this.node.style.display="inline"},Object.defineProperty(e.prototype,"muted",{get:function(){return this.state.isMuted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.state.volume},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"started",{get:function(){return this.state.isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.state.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){var e;return null===(e=this.state)||void 0===e?void 0:e.isEnded},enumerable:!1,configurable:!0}),e.prototype.getPlaybackStats=function(){return this.state.stats=this.getStats(),this.state.stats},e.prototype.setMinimizeBitrate=function(e){this.state.minimizeBitrate!==e&&(this.state.minimizeBitrate=e,this.internalPlayer&&(e?this.enableMinimizeBitrate():this.disableMinimizeBitrate()))},e.prototype.assignDefaultConfiguration=function(e){return Te(Te({},{manifestUrlTemplate:null,widevineLicenseUrl:"",subtitlesEnabled:!0,offlineEnabled:!1,videoPlaybackSessionLoggingEnabled:!0}),e)},e.prototype.validatePlaybackRequest=function(e){if(!e)throw new Error("Missing playbackRequest");if(!e.mediaUrl)throw new Error("mediaUrl must be set");if("boolean"!=typeof e.isRoyaltyMedia)throw new Error("Missing or wrong isRoyaltyMedia value");return e.initialPosition<0&&(e.initialPosition=0),e},e.prototype.configureNetworkingEngine=function(e){this.configuration.networkConfiguration&&d(e,this.configuration.networkConfiguration),e&&(e.registerRequestFilter(this.networkRequestFilter.bind(this)),e.registerResponseFilter(this.networkResponseFilter.bind(this)))},e.prototype.startListening=function(){var e=this;document.addEventListener("fullscreenchange",this.onFullScreenChange.bind(this)),this.videoElementEventHandlers.forEach((function(t){e.node.addEventListener(t.event,t.handler.bind(e))})),this.internalPlayer&&this.shakaPlayerEventHandlers.forEach((function(t){e.internalPlayer.addEventListener(t.event,t.handler.bind(e))}))},e.prototype.stopListening=function(){var e=this;document.removeEventListener("fullscreenchange",this.onFullScreenChange),this.videoElementEventHandlers.forEach((function(t){e.node.removeEventListener(t.event,t.handler)})),this.internalPlayer&&this.shakaPlayerEventHandlers.forEach((function(t){e.internalPlayer.removeEventListener(t.event,t.handler)}))},e.prototype.onFullScreenChange=function(){this.handleFullScreenChange(document.fullscreenElement)},e.prototype.handleFullScreenChange=function(e){if(e){var t="[data-sessionId='".concat(this.session.sessionId,"']");!(!e.matches(t)&&!e.querySelector(t))&&(this.state.fullscreen=!0,this.internalObserver.onFullscreenChanged({position:this.node.currentTime,fullscreen:!0}))}else this.state.fullscreen&&(this.state.fullscreen=!1,this.internalObserver.onFullscreenChanged({position:this.node.currentTime,fullscreen:!1}))},e.prototype.getInitialState=function(e,t){var n=e.playbackSpeed,r=e.minimizeBitrate,i=t.playWhenReady,o=t.initialPosition;return{time:(new Date).getTime(),playWhenReady:i,isStarted:!1,isPlaying:!1,isPaused:!i,isEnded:!1,isError:!1,isBuffering:!1,isLoaded:!1,isSeeking:!1,seekingFrom:0,firstUnhandledSeek:null,timeBuffering:0,readyTimeBuffering:0,isMuted:this.node.muted||0===this.node.volume,duration:this.node.duration||-1,currentTime:this.node.currentTime||o,progress:0,volume:this.node.muted?0:this.node.volume,bitrate:0,currentAudioFormat:void 0,currentVideoFormat:void 0,stats:void 0,endReason:void 0,hasInitiallySeeked:!1,hasInitiallyReadied:!1,currentVariantId:null,progressPercentages:[],playbackSpeed:n,preferredSubtitle:B,minimizeBitrate:null!=r&&r,fullscreen:!1,bufferType:ge.INITIAL,lastBufferStart:0,timeUpdate:!1}},e.prototype.networkRequestFilter=function(e,t){e!==a.net.NetworkingEngine.RequestType.LICENSE&&e!==a.net.NetworkingEngine.RequestType.MANIFEST||"HEAD"!==t.method&&(this.latencyStartTimes[e]=Date.now(),e===a.net.NetworkingEngine.RequestType.MANIFEST&&this.internalObserver.onManifestLoading(),e===a.net.NetworkingEngine.RequestType.LICENSE&&this.internalObserver.onEncryptionKeyLoading())},e.prototype.networkResponseFilter=function(e,t){var n;(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.byteLength)&&t.timeMs&&this.internalObserver.onBytesTransferred({bytes:t.data.byteLength,timeMs:t.timeMs,uri:t.uri,requestType:e})},e.prototype.emitEndedEvent=function(e,t){var n,r=this.getStats(),i=r?r.droppedFrames:0;i>0&&this.internalObserver.onDroppedVideoFrames({droppedFrames:i});var o={playTime:1e3*(null!==(n=null==r?void 0:r.playTime)&&void 0!==n?n:0)};this.internalObserver.onPlaybackEnded({position:t,reason:e,playbackStats:o})},e.prototype.handleEnded=function(){this.disablePlayTimers(),this.state.isEnded||this.emitEndedEvent(ye.PLAYED_TO_END,this.node.currentTime),this.state.isEnded=!0,this.state.endReason=ye.PLAYED_TO_END,this.state.stats=this.getStats()},e.prototype.handleDurationchange=function(){var e=this.node.duration,t=this.node.currentTime;this.state.duration=e,this.state.progress=this.calculateProgress(t,e),this.state.stats=this.getStats(),this.internalObserver.onDurationChanged({duration:e})},e.prototype.handleManifestParsed=function(){var e=this.internalPlayer.getTextTracks().map((function(e){return{languageTag:e.language}}));this.internalObserver.onManifestLoaded({availableSubtitles:e})},e.prototype.handleRateChange=function(){var e=this.node.playbackRate;e!==this.state.playbackSpeed&&0!==e&&(this.state.playbackSpeed=e,this.internalObserver.onPlaybackSpeedChanged({position:this.node.currentTime,speed:e}))},e.prototype.handleTimeUpdate=function(e){if(this.state.isLoaded&&this.state.isStarted){var t=this.lastSeekTime||this.node.currentTime||0;this.state.currentTime=t,this.state.stats=this.getStats(),this.state.progress=this.calculateProgress(t,this.node.duration),this.playbackTimeObservable.handleTimeUpdate(e)}},e.prototype.calculateProgress=function(e,t){var n=null;return t>0&&e>=0&&(n=e/t,n=Math.min(Math.max(n,0),1)),n},e.prototype.handleLoadeddata=function(){this.state.hasInitiallyReadied||(this.state.hasInitiallyReadied=!0),this.internalObserver.onReady({position:this.node.currentTime,playWhenReady:!this.state.isPaused,streamingType:this.session.streamingType})},e.prototype.handlePlaying=function(){this.state.isPlaying=!0,this.state.isStarted=!0,this.state.isEnded=!1,this.state.isBuffering=!1,this.state.stats=this.getStats(),this.internalObserver.onResumed({position:this.node.currentTime})},e.prototype.handlePause=function(){this.state.isPlaying=!1,this.state.stats=this.getStats();var e=this.node.currentTime;this.node.duration&&e===this.node.duration||this.internalObserver.onPaused({position:e})},e.prototype.handleVolumechange=function(){this.state.volume=this.node.muted?0:this.node.volume,this.state.isMuted=this.node.muted||0===this.node.volume,this.internalObserver.onVolumeChanged({position:this.node.currentTime,volume:this.state.volume})},e.prototype.handleShakaError=function(e){this.handleError("shaka-event",e)},e.prototype.handleError=function(e,t){var n,r,i,o,s,l={type:"".concat(t.type)};void 0!==(null===(n=t.detail)||void 0===n?void 0:n.code)&&(l.error_code=t.detail.code),void 0!==(null===(r=t.detail)||void 0===r?void 0:r.category)&&(l.error_category=t.detail.category);var c=this.getStats();c&&(c.bufferingTime&&(l.buffering_time="".concat(c.bufferingTime)),c.droppedFrames&&(l.dropped_frames="".concat(c.droppedFrames)),c.loadLatency&&(l.playback_latency="".concat(c.loadLatency))),t.detail&&t.detail.category===a.util.Error.Category.NETWORK&&t.detail.data&&(l.uri=t.detail.data[0],t.detail.code===a.util.Error.Code.BAD_HTTP_STATUS&&(l.httpStatus=t.detail.data[1],l.responseText=t.detail.data[2],l.responseHeaders=t.detail.data[3]));var u=!1;null!==(o=null===(i=l.uri)||void 0===i?void 0:i.includes("subtitle"))&&void 0!==o&&o&&(u=!0),l.canRecover=u;var d=(null===(s=this.node)||void 0===s?void 0:s.currentTime)?this.node.currentTime:this.state.currentTime,p={kind:e,data:t,betamaxData:l};u?this.internalObserver.onRecoverableError({error:p,position:d}):this.internalObserver.onFatalError({error:p,position:d}),this.state.isEnded||u||this.emitEndedEvent(ye.FATAL_ERROR,d),this.state.isEnded=!u,this.state.isError=!0,this.state.stats=c,this.state.endReason=ye.FATAL_ERROR},e.prototype.handleAdaptation=function(e){var t,n,r,i,o,a;if(this.internalPlayer&&("adaptation"===e.type||"variantchanged"===e.type)){var s=this.internalPlayer.getVariantTracks().find((function(e){return e.active}));if(s&&(this.state.bitrate=s.bandwidth,this.state.currentVariantId!==s.id)){var l={id:s.id,audioCodec:s.audioCodec,audioBitrate:null!==(t=s.audioBandwidth)&&void 0!==t?t:void 0,totalBitrate:null!==(n=s.bandwidth)&&void 0!==n?n:void 0},c={id:s.id,width:s.width,height:s.height,videoCodec:s.videoCodec,videoBitrate:null!==(r=s.videoBandwidth)&&void 0!==r?r:void 0,totalBitrate:null!==(i=s.bandwidth)&&void 0!==i?i:void 0};(null===(o=this.state.currentAudioFormat)||void 0===o?void 0:o.id)!==l.id&&this.internalObserver.onAudioFormatChanged({format:l,position:this.node.currentTime}),(null===(a=this.state.currentVideoFormat)||void 0===a?void 0:a.id)!==c.id&&this.internalObserver.onVideoFormatChanged({format:c,position:this.node.currentTime}),this.state.currentVariantId=s.id,this.state.currentAudioFormat=l,this.state.currentVideoFormat=c}}},e.prototype.handleSeeking=function(){var e;this.state.hasInitiallySeeked&&(null===this.state.firstUnhandledSeek&&(this.state.firstUnhandledSeek=this.state.seekingFrom),this.state.isSeeking=!0,this.internalObserver.onSeeking({fromPosition:null!==(e=this.state.seekingFrom)&&void 0!==e?e:0,toPosition:this.node.currentTime}))},e.prototype.handleSeeked=function(){if(this.state.hasInitiallySeeked){var e=null!==this.state.firstUnhandledSeek?this.state.firstUnhandledSeek:this.state.seekingFrom;this.state.isSeeking=!1,this.state.seekingFrom=null,this.state.progress=this.calculateProgress(this.state.currentTime,this.node.currentTime),this.state.firstUnhandledSeek=null,this.lastSeekTime=0,this.internalObserver.onSeeked({fromPosition:null!=e?e:0,toPosition:this.node.currentTime})}else this.state.hasInitiallySeeked=!0},e.prototype.onBufferingStateChange=function(e){if(e.buffering){var t=ge.INITIAL;this.state.hasInitiallyReadied&&(t=this.state.isSeeking?ge.SEEK:ge.STALL),this.state.isBuffering=!0,this.state.bufferType=t,this.state.lastBufferStart=Date.now(),this.state.isPlaying=!1,this.internalObserver.onBuffering({position:this.node.currentTime,playWhenReady:this.state.playWhenReady,type:t})}else{var n=this.state.isBuffering&&this.state.bufferType===ge.STALL;this.state.isBuffering=!1,this.state.bufferType=null,n&&(this.node.paused||(this.state.isPlaying=!0),this.internalObserver.onReady({position:this.node.currentTime,playWhenReady:!this.state.isPaused,streamingType:this.session.streamingType}))}},e.prototype.onEncryptionKeyLoaded=function(){this.internalObserver.onEncryptionKeyLoaded(this.internalPlayer.keySystem())},e.prototype.enablePlayTimers=function(){var e=this;if(!this.playerBufferInterval){var t=function(){e.state.timeUpdate=!0,e.state.timeUpdate=!1};t(),this.playerTimeUpdateInterval=window.setInterval(t,15e3)}},e.prototype.disablePlayTimers=function(){window.clearInterval(this.playerBufferInterval),window.clearInterval(this.playerTimeUpdateInterval),this.playerBufferInterval=0,this.playerTimeUpdateInterval=0,this.state.isBuffering=!1,this.state.timeBuffering=0},e.prototype.getStats=function(){return void 0!==this.internalPlayer&&this.state.isLoaded?this.internalPlayer.getStats():void 0},e.prototype.setPaused=function(e){return e?(this.node.pause(),this.disablePlayTimers()):(this.node.play(),this.enablePlayTimers()),this.state.isPaused=e,this},e.prototype.enableMinimizeBitrate=function(){this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:1}}}),this.internalObserver.onMinimizeBitrateChanged({position:this.node.currentTime,minimizeBitrate:!0})},e.prototype.disableMinimizeBitrate=function(){var e,t,n;this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:void 0}}});var r=this.abrManager.chooseVariant(),i=null!==(n=null===(t=null===(e=this.configuration.betamaxSdkConfig)||void 0===e?void 0:e.minimizeBitrate)||void 0===t?void 0:t.bufferMargin)&&void 0!==n?n:4;this.internalPlayer.selectVariantTrack(r,!0,i),this.internalObserver.onMinimizeBitrateChanged({position:this.node.currentTime,minimizeBitrate:!1})},e.prototype.getSubtitleLanguageTag=function(){if(this.internalPlayer.isTextTrackVisible()){var e=this.internalPlayer.getTextTracks().find((function(e){return e.active}));return e?e.language:void 0}},e.prototype.setSubtitle=function(e){var t=e.languageTag;this.internalPlayer.selectTextLanguage(t),this.internalPlayer.configure({preferredTextLanguage:t}),this.internalPlayer.setTextTrackVisibility(""!==t),this.internalObserver.onSubtitleChanged({position:this.node.currentTime,subtitle:{languageTag:t}})},e.prototype.removeSubtitle=function(){this.setSubtitle(B)},e.prototype._isLive=function(){return this.internalPlayer.isLive()},e}(),Ie=function(){return Ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0},e.prototype.startStallTimer=function(){var e=this;this.stopStallTimerIfRunning(),this.stallTimeoutId=setTimeout((function(){e.cosmosSender.sendContextPlayerError({type:"playback_stuck"})}),this.stallTimeoutMs)},e.prototype.stopStallTimerIfRunning=function(){void 0!==this.stallTimeoutId&&(clearTimeout(this.stallTimeoutId),this.stallTimeoutId=void 0)},e}(),Ge=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},qe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?Math.floor(1e3*t.duration):-1,r=t.currentTime>-1?Math.floor(1e3*t.currentTime):-1,i=t.isPlaying&&!t.isPaused?t.playbackSpeed:0,o={timestamp:(new Date).getTime(),playback_id:e||"",is_paused:t.isPaused,is_buffering:t.isBuffering||!1,playback_speed:i,position_as_of_timestamp:r,duration:n};this.cosmos.post("".concat(this.cosmosVideoPlayerEndpoint,"/state"),o)}}},e.prototype.setMinimizeBitrate=function(e){var t;null===(t=this.playerRouter)||void 0===t||t.setMinimizeBitrate(e)},e.prototype.isSeekPastStopPosition=function(e){var t=this.playerInterruptor?this.playerInterruptor.getStopPosition():void 0;return void 0!==t&&e>=t},e.prototype.shouldResumeCurrentTrack=function(e,t){if(void 0===t)return!1;var n=e.track.playback_id;return void 0!==this.playerRouter&&this.playerRouter.hasPlaybackId(n)},e.prototype.resumeCurrentPlayback=function(e,t){var n,r=t.track.playback_id;null===(n=this.playerRouter)||void 0===n||n.switchPlayer(r);var i=me(t.config);if(e.setPlaybackSpeed(i),e.resume(r),void 0!==t.seek_to&&t.seek_to>=0){var o=t.seek_to/1e3;e.seekTo(r,o)}},e.prototype.makeVideoContextPlayerCoordinatorError=function(e,t){var n=new Error(t);return n.name="VideoContextPlayerCoordinatorError",n.reason=e,n},e.prototype.backendErrorToContextPlayerError=function(e){if(!e.responseText&&!e.httpStatus)return e.error_code&&e.error_code===Ke.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE?{type:"video_unsupported_key_system"}:6===e.error_category?{type:"video_playback_error"}:e.canRecover?null:{type:"unknown"};if(401===e.httpStatus)return{type:"video_playback_error"};var t=null;try{if(e.responseHeaders&&"content-type"in e.responseHeaders)if("application/json"===e.responseHeaders["content-type"]&&e.responseText)t=JSON.parse(e.responseText).reason}catch(e){return{type:"unknown"}}switch(t){case"GEO_RESTRICTED":return{type:"video_georestricted"};case"UNSUPPORTED_CLIENT_VERSION":return{type:"video_unsupported_client_version"};case"UNSUPPORTED_PLATFORM_VERSION":return{type:"video_unsupported_platform_version"};case"COUNTRY_RESTRICTED":return{type:"video_country_restricted"};case"UNAVAILABLE":return{type:"video_unavailable"};case"CATALOGUE_RESTRICTED":return{type:"video_catalogue_restricted"};default:return{type:"unknown"}}},e.prototype.stopAndUnloadCurrentTrack=function(){if(this.playerRouter){var e=this.playerRouter.getNode();this.currentTrack&&!this.playerRouter.ended&&this.playerRouter.stopAll(),this.currentTrack=void 0,this.stallTimeoutMs=void 0,e&&e.remove()}},e}();!function(e){e[e.MANIFEST=0]="MANIFEST",e[e.SEGMENT=1]="SEGMENT",e[e.LICENSE=2]="LICENSE",e[e.APP=3]="APP",e[e.TIMING=4]="TIMING",e[e.SERVER_CERTIFICATE=5]="SERVER_CERTIFICATE"}(Ue||(Ue={}));var Ye,Je,$e=function(){function e(){this.sessionEvents=[]}return e.prototype.onBuffering=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.BUFFERING})},e.prototype.onEncryptionKeyLoaded=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.ENCRYPTION_KEY_LOADED})},e.prototype.onDurationChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.DURATION_CHANGED})},e.prototype.onManifestLoaded=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.MANIFEST_LOADED})},e.prototype.onFatalError=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.FATAL_ERROR})},e.prototype.onRecoverableError=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.RECOVERABLE_ERROR})},e.prototype.onPlaybackCreated=function(e,t){this.sessionEvents.push({data:e,timestamp:t,type:_e.CREATED})},e.prototype.onEndingPlayback=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.NEW_SESSION_LOADED})},e.prototype.onPlaybackEnded=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.ENDED})},e.prototype.onReady=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.READY})},e.prototype.onResumed=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.RESUMED})},e.prototype.onPaused=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.PAUSED})},e.prototype.onSeeking=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.SEEKING})},e.prototype.onSeeked=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.SEEKED})},e.prototype.onAudioFormatChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.AUDIO_FORMAT_CHANGED})},e.prototype.onVideoFormatChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.VIDEO_FORMAT_CHANGED})},e.prototype.onVolumeChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.VOLUME_CHANGED})},e.prototype.onManifestLoading=function(e){this.sessionEvents.push({timestamp:e,data:void 0,type:_e.MANIFEST_LOADING})},e.prototype.onEncryptionKeyLoading=function(e){this.sessionEvents.push({timestamp:e,data:void 0,type:_e.ENCRYPTION_KEY_LOADING})},e.prototype.onBytesTransferred=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.BYTES_TRANSFERRED})},e.prototype.onSubtitleChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.SUBTITLE_CHANGED})},e.prototype.onFullscreenChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.FULLSCREEN_CHANGED})},e.prototype.onMinimizeBitrateChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.MINIMIZE_BITRATE_CHANGED})},e.prototype.onPlaybackSpeedChanged=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.PLAYBACK_SPEED_CHANGED})},e.prototype.onDroppedVideoFrames=function(e,t){this.sessionEvents.push({timestamp:t,data:e,type:_e.DROPPED_FRAMES})},e}();!function(e){e.SESSION_ID="session_id",e.MEDIA_URL="media_url",e.MS_START_POSITION="ms_start_position",e.MS_DURATION="ms_duration",e.MS_START_TIME="ms_start_time",e.MS_MANIFEST_LOAD_TIME="ms_manifest_load_time",e.MS_ENCRYPTION_LOAD_TIME="ms_encryption_load_time",e.MS_INITIAL_BUFFERING="ms_initial_buffering",e.MS_PLAYED="ms_played",e.MS_PLAYED_NOMINAL="ms_played_nominal",e.MS_PLAYED_SUBTITLES="ms_played_subtitles",e.MS_PLAYED_FULLSCREEN="ms_played_fullscreen",e.MS_PLAYED_VIDEO_DISABLED="ms_played_video_disabled",e.ENCRYPTION_TYPE="encryption_type",e.EXIT_REASON="exit_reason",e.LAST_USED_SUBTITLE="last_used_subtitle",e.N_STALLS="n_stalls",e.MS_BUFFERING_STALL="ms_buffering_stall",e.MS_BUFFERING_STALL_LONGEST="ms_buffering_stall_longest",e.N_SEEKBACK="n_seekback",e.N_SEEKFORWARD="n_seekforward",e.MS_BUFFERING_SEEK="ms_buffering_seek",e.MS_BUFFERING_SEEK_LONGEST="ms_buffering_seek_longest",e.KBPS_AVERAGE_BANDWIDTH="kbps_average_bandwidth",e.KBYTES_DOWNLOADED="kbytes_downloaded",e.N_DROPPED_FRAMES="n_dropped_frames",e.ASPECT_RATIO="aspect_ratio",e.FEATURE_IDENTIFIER="feature_identifier",e.START_BITRATE="start_bitrate",e.MS_PLAYED_BACKGROUND="ms_played_background",e.CONNECTION_TYPE_START="connection_type_start",e.CONNECTION_TYPE_END="connection_type_end",e.N_VIEW_TRANSITIONS="n_view_transitions",e.AVERAGE_DEVICE_ORIENTATION="average_device_orientation",e.KBYTES_PLAYED="kbytes_played",e.IS_ROYALTY_MEDIA="is_royalty_media",e.STREAMING_TYPE="streaming_type",e.DESKTOP_UI="desktop_ui"}(Ye||(Ye={})),function(e){e.PLAY_CONTEXT="play_context",e.REFERRER_VENDOR="referrer_vendor",e.PLAYBACK_ID="playback_id",e.MS_TOTAL_EST="ms_total_est",e.AUDIOCODEC="audiocodec",e.N_SEEKFWD="n_seekfwd",e.PREFETCHED_BYTES_LOADED="prefetched_bytes_loaded",e.TOTAL_BYTES="total_bytes",e.FEATURE_IDENTIFIER="feature_identifier",e.VIEW_URI="view_uri",e.START_BITRATE="start_bitrate",e.KEY_SYSTEM="key_system",e.CONNECTION_TYPE_END="connection_type_end",e.VIDEO_SESSION_ID="video_session_id",e.LOCAL_TIME_MS="local_time_ms",e.TIME_WEIGHTED_BITRATE="time_weighted_bitrate",e.MS_LATENCY="ms_latency",e.CONNECTION_TYPE_START="connection_type_start",e.MS_PLAYED_BACKGROUND="ms_played_background",e.FILE_ID="file_id",e.MS_SEEKFWD="ms_seekfwd",e.UI_LATENCY="ui_latency",e.REFERRER_VERSION="referrer_version",e.REASON_START="reason_start",e.N_STALLS="n_stalls",e.VIDEOCODEC="videocodec",e.FEATURE_VERSION="feature_version",e.N_SEEKBACK="n_seekback",e.MAX_MS_SEEK_REBUFFERING="max_ms_seek_rebuffering",e.INCOGNITO_MODE="incognito_mode",e.MAX_MS_STALLED="max_ms_stalled",e.MS_MANIFEST_LATENCY="ms_manifest_latency",e.PROVIDER="provider",e.SEQUENCE_ID="sequence_id",e.PLAY_TRACK="play_track",e.MS_STALLED="ms_stalled",e.LIVE="live",e.START_OFFSET_MS="start_offset_ms",e.MS_SEEK_REBUFFERING="ms_seek_rebuffering",e.GAIA_DEV_ID="gaia_dev_id",e.PREFETCHED_BYTES="prefetched_bytes",e.MS_KEY_LATENCY="ms_key_latency",e.MS_INITIAL_BUFFERING="ms_initial_buffering",e.SEQUENCE_NUMBER="sequence_number",e.REFERRER="referrer",e.MS_SEEKBACK="ms_seekback",e.UNION_PLAYED="union_played",e.STREAMING_RULE="streaming_rule",e.MS_PLAYED="ms_played",e.MS_NOMINAL_PLAYED="ms_nominal_played",e.REASON_END="reason_end",e.MAX_CONTINOUS="max_continous",e.SHUFFLE="shuffle",e.FULL_SCREEN="full_screen",e.PAGE_INSTANCE_ID="page_instance_id",e.INTERACTION_ID="interaction_id"}(Je||(Je={}));var Xe=function(){return Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)switch(e.bufferingType){case ge.SEEK:i[Ye.MS_BUFFERING_SEEK]+=r,r>i[Ye.MS_BUFFERING_SEEK_LONGEST]&&(i[Ye.MS_BUFFERING_SEEK_LONGEST]=r);break;case ge.STALL:i[Ye.MS_BUFFERING_STALL]+=r,r>i[Ye.MS_BUFFERING_STALL_LONGEST]&&(i[Ye.MS_BUFFERING_STALL_LONGEST]=r);break;case ge.INITIAL:i[Ye.MS_INITIAL_BUFFERING]+=r}return i}var Tt=function(e,t,n){return n>0?Math.round(bt(t,Ct(e))/n):0},Ot=function(e,t){if(e.type!==_e.PLAYBACK_SPEED_CHANGED)return t;var n=e;return Et(Et({},t),{playbackSpeed:n.data.speed})},At=function(e,t){var n=bt(t.playingPosition,Ct(e));return Et(Et({},t),{msPlayed:n+t.msPlayed,playing:!1,playingPosition:0})};function Ct(e){var t=e.data,n=e.type;if(t){if(Number.isFinite(t.position))return t.position;if(n===_e.SEEKING&&Number.isFinite(t.fromPosition))return t.fromPosition}return 1/0}var Pt=function(e,t){var n;if(e.type!==_e.SUBTITLE_CHANGED)return t;var r=e;return Et(Et({},t),{subtitlesEnabled:!!(null===(n=r.data)||void 0===n?void 0:n.subtitle.languageTag)})},It=function(e,t){if(e.type!==_e.FULLSCREEN_CHANGED)return t;var n=e;return Et(Et({},t),{fullscreen:n.data.fullscreen})},Rt=function(e,t){if(e.type!==_e.MINIMIZE_BITRATE_CHANGED)return t;var n=e;return Et(Et({},t),{minimizeBitrate:n.data.minimizeBitrate})},Nt=function(e,t){if(e.type!==_e.CREATED)return t;var n=e;return Et(Et({},t),{minimizeBitrate:n.data.initialConfiguration.minimizeBitrate})},kt=function(e,t){var n=Et({},t),r=function(e){var t=e.playing&&e.subtitlesEnabled,n=void 0!==e.playingWithSubtitlesPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"}(n);return"started"===r&&(n.playingWithSubtitlesPosition=Ct(e)),"finished"===r&&void 0!==n.playingWithSubtitlesPosition&&(n.msPlayedSubtitles+=Tt(e,n.playingWithSubtitlesPosition,n.playbackSpeed),n.playingWithSubtitlesPosition=void 0),n},Lt=function(e,t){var n=Et({},t),r=function(e){var t=e.playing&&e.fullscreen,n=void 0!==e.playingWhileFullscreenPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"}(n);return"started"===r&&(n.playingWhileFullscreenPosition=Ct(e)),"finished"===r&&void 0!==n.playingWhileFullscreenPosition&&(n.msPlayedFullscreen+=Tt(e,n.playingWhileFullscreenPosition,n.playbackSpeed),n.playingWhileFullscreenPosition=void 0),n},wt=function(e,t){var n=Et({},t),r=function(e){var t=e.playing&&e.minimizeBitrate,n=void 0!==e.playingWithMinimizeBitratePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"}(n);return"started"===r&&(n.playingWithMinimizeBitratePosition=Ct(e)),"finished"===r&&void 0!==n.playingWithMinimizeBitratePosition&&(n.msPlayedDisabled+=Tt(e,n.playingWithMinimizeBitratePosition,n.playbackSpeed),n.playingWithMinimizeBitratePosition=void 0),n},Dt=function(e,t){var n=bt(t.playingPosition,Ct(e)),r=Tt(e,t.playingPosition,t.playbackSpeed);return Et(Et({},t),{msNominalPlayed:n+t.msNominalPlayed,msPlayed:r+t.msPlayed,playing:!1,playingPosition:0})},Mt=function(e,t){var n=e;return Et(Et({},t),{playbackSpeed:n.data.initialConfiguration.playbackSpeed})};function xt(e){var t,n=function(e,t){return e.filter((function(e){return e.type===t})).reduce((function(e,t){return t.timestamp}),Qe)}(e,_e.MANIFEST_LOADING);return e.filter(ut).reduce((function(e,t){var r;return n!==Qe?((r={})[Ye.MS_MANIFEST_LOAD_TIME]=Math.round(t.timestamp-n),r):e}),((t={})[Ye.MS_MANIFEST_LOAD_TIME]=Qe,t))}function Ut(e){return Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et(Et({},function(e){var t;return e.filter(rt).reduce((function(e,t){var n,r=t.data;return(n={})[Ye.SESSION_ID]=r.playbackIdentity.sessionId,n[Ye.MEDIA_URL]=r.playbackIdentity.mediaUrl,n}),((t={})[Ye.SESSION_ID]="",t[Ye.MEDIA_URL]="",t))}(e)),function(e){var t;return e.filter(it).reduce((function(e,t){var n,r=t.data;return(n={})[Ye.MS_START_POSITION]=Math.round(1e3*r.position),n[Ye.STREAMING_TYPE]=r.streamingType,n}),((t={})[Ye.MS_START_POSITION]=Qe,t[Ye.STREAMING_TYPE]="unknown",t))}(e)),function(e){var t;return e.filter(ot).reduce((function(e,t){var n,r=t.data;return(n={})[Ye.MS_DURATION]=Math.round(1e3*r.duration),n}),((t={})[Ye.MS_DURATION]=Qe,t))}(e)),function(e){var t,n,r=_t(e,_e.CREATED),i=_t(e,_e.READY);if(r===Qe||i===Qe)return(t={})[Ye.MS_START_TIME]=Qe,t;var o=Math.round(i-r);return o=o>=0?o:Qe,(n={})[Ye.MS_START_TIME]=o,n}(e)),function(e){var t;return e.filter(et).reduce((function(e,t){var n,r=t.data;return(n={})[Ye.EXIT_REASON]=r.reason,n}),((t={})[Ye.EXIT_REASON]="",t))}(e)),function(e){var t;return e.filter(st).reduce((function(e,t){var n,r=t.data;return(n={})[Ye.ASPECT_RATIO]=r.format.width&&r.format.height?r.format.width/r.format.height:e[Ye.ASPECT_RATIO],n[Ye.START_BITRATE]=r.format.totalBitrate&&!e[Ye.START_BITRATE]?r.format.totalBitrate:e[Ye.START_BITRATE],n}),((t={})[Ye.ASPECT_RATIO]=0,t[Ye.START_BITRATE]=0,t))}(e)),function(e){for(var t,n,r,i=0,o=e;ii.toPosition?Et(Et({},e),((n={})[Ye.N_SEEKBACK]=e[Ye.N_SEEKBACK]+1,n)):i.fromPosition<=i.toPosition?Et(Et({},e),((r={})[Ye.N_SEEKFORWARD]=e[Ye.N_SEEKFORWARD]+1,r)):e}),((t={})[Ye.N_SEEKBACK]=0,t[Ye.N_SEEKFORWARD]=0,t))}(e)),function(e){var t,n={totalBytes:0,totalTransferTimeSeconds:0};return e.filter(ft).reduce((function(e,t){var r,i=t.data;return n.totalBytes+=i.bytes,n.totalTransferTimeSeconds+=i.timeMs/1e3,(r={})[Ye.KBPS_AVERAGE_BANDWIDTH]=Math.round(n.totalBytes/n.totalTransferTimeSeconds*.008),r[Ye.KBYTES_DOWNLOADED]=Math.round(n.totalBytes/1e3),r}),((t={})[Ye.KBYTES_DOWNLOADED]=0,t[Ye.KBPS_AVERAGE_BANDWIDTH]=0,t))}(e)),function(e){for(var t,n={buffering:!1,bufferingType:"",bufferingStart:0},r=((t={})[Ye.N_STALLS]=0,t[Ye.MS_BUFFERING_SEEK]=0,t[Ye.MS_BUFFERING_SEEK_LONGEST]=0,t[Ye.MS_BUFFERING_STALL]=0,t[Ye.MS_INITIAL_BUFFERING]=0,t[Ye.MS_BUFFERING_STALL_LONGEST]=0,t),i=0,o=e;it.to?-1:e.tot.from?(e[r-1]={from:i.from,to:t.to},e):i.toi.toPosition?$t($t({},e),((n={})[Je.MS_SEEKBACK]=Math.round(e[Je.MS_SEEKBACK]+1e3*(i.fromPosition-i.toPosition)),n)):i.fromPosition<=i.toPosition?$t($t({},e),((r={})[Je.MS_SEEKFWD]=Math.round(e[Je.MS_SEEKFWD]+1e3*(i.toPosition-i.fromPosition)),r)):e}),((t={})[Je.MS_SEEKBACK]=0,t[Je.MS_SEEKFWD]=0,t))}(e)),function(e){var t=e.filter(rt).reduce((function(e,t){return Ze(t.data.playbackIdentity.metadata||{})}),{}),n=t,r=se,i=n[r],o=Xt(n,[r+""]),a=$t({},o);return void 0!==i&&(a[Je.SHUFFLE]="true"===i),a}(e)),function(e){for(var t,n,r,i,o,a=0,s=e;a0&&(o=Math.round(l.timestamp-i));break}}return null!=o||(o=Qe),(t={})[Je.UI_LATENCY]=o,t}(e)),ln(e)),function(e){for(var t,n={playing:!1,subtitlesEnabled:!1,playingWithSubtitlesPosition:void 0,msPlayedSubtitles:0,msPlayed:0,msNominalPlayed:0,msPlayedRangeStartTime:0,playingPosition:0,fullscreen:!1,playingWhileFullscreenPosition:void 0,msPlayedFullscreen:0,minimizeBitrate:!1,playingWithMinimizeBitratePosition:void 0,msPlayedDisabled:0,playedRanges:[],unionPlayed:0,maxContinous:0,playbackSpeed:1},r=0,i=e;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{"use strict";"undefined"!=typeof self&&self,e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){e.exports=n(1).default},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){function n(t){return e.getMediaElement()&&e.getMediaElement()[t]}function r(t){var n=e.getMediaElement();if(n)return parseInt(d(n,t))}function i(){var e=n("preload");return"auto"===e||"metadata"===e}function h(){var t=a.default.fullscreenElement||a.default.webkitFullscreenElement||a.default.mozFullScreenElement||a.default.msFullscreenElement;return t?t===e.getMediaElement():void 0}function v(){S=!0;var t=e.getMediaElement();if(!t)return l.warn("[shakaPlayer-mux] Unable to getMediaElement() on shaka.Player instance when attempting to attachMediaElementEvents()");_.forEach((function(n){b[n]=function(){var r={};"timeupdate"===n&&(r.player_playhead_time=t.currentTime),e.mux.emit(n,r)},t.addEventListener(n,b[n],!1)}))}var m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.shaka;if("object"!==(void 0===e?"undefined":o(e))||void 0===e.constructor.version)return l.warn("[shakaPlayer-mux] You must provide a valid shakaPlayer to initShakaPlayerMux."),{emit:function(){l.warn("[shakaPlayer-mux] emit is a no-op because initShakaPlayerMux was not initialized correctly")},loadErrorHandler:function(){l.warn("[shakaPlayer-mux] loadErrorHandler is a no-op because initShakaPlayerMux was not initialized correctly")}};var g={};try{Object.keys(m.util.Error.Category).forEach((function(e,t){var n=m.util.Error.Category[e];g[n]=e}))}catch(e){l.warn("[shakaPlayer-mux] Error creating map of ERROR_CATEGORY_CODES.")}(t=u({automaticErrorTracking:!0},t)).data=u({player_software_name:"Shaka Player",player_software_version:e.constructor.version,player_mux_plugin_name:"shakaplayer-mux",player_mux_plugin_version:"4.0.1"},t.data);var y=f();e.mux={},e.mux.emit=function(e,t){s.default.emit(y,e,t)},t.getPlayheadTime=function(){return c(n("currentTime"))},t.getStateData=function(){return{player_is_paused:n("paused"),player_width:r("width"),player_height:r("height"),video_source_height:e.getStats().height,video_source_width:e.getStats().width,player_is_fullscreen:h(),player_autoplay_on:n("autoplay"),player_preload_on:i(),video_source_url:e.getAssetUri(),video_source_duration:c(n("duration")),video_poster_url:n("poster"),player_language_code:n("lang")}};var _=["pause","play","playing","seeking","seeked","timeupdate","stalled","waiting","ended"],b={},E={},S=!1;E.onstatechange=function(t){!S&&e.getMediaElement()&&v(),"load"===t.state&&e.mux.emit("playerready")};var T=void 0,O=function(){var t=e.getVariantTracks(),n=t&&t.filter((function(e){return e.active})),r=n&&n.map((function(e){return e.bandwidth}));return r&&r.reduce((function(e,t){return e+t}),0)},A=function(){var t=O();t&&t!==T&&(T=t,e.mux.emit("renditionchange",{video_source_bitrate:T}))};E.adaptation=function(e){A()},E.variantchanged=function(e){A()},e.addEventListener("onstatechange",E.onstatechange),e.addEventListener("adaptation",E.adaptation),e.addEventListener("variantchanged",E.variantchanged);var C=function(e){return e.message?e.message:g[e.category]||e.category},P=function(t){2===t.severity&&e.mux.emit("error",{player_error_code:t&&t.code,player_error_message:t&&C(t)})};E.error=function(e){if(t.automaticErrorTracking){var n=e.detail;P(n)}},e.addEventListener("error",E.error),e.mux.destroy=function(){Object.keys(E).forEach((function(t){e.removeEventListener(t,E[t]),delete E[t]})),Object.keys(b).forEach((function(t){var n=e.getMediaElement();n&&n.removeEventListener(t,b[t],!1),delete b[t]})),e.mux.emit("destroy")};var I={0:"manifest",1:"media"};return e.getNetworkingEngine().registerResponseFilter((function(t,n){var r=s.default.utils.now();if(!n.fromCache){var i=I[t&&t.toString()];if(t){var o={request_bytes_loaded:n.data.byteLength,request_hostname:p(n.uri),request_response_headers:n.headers,request_type:i,request_start:n.timeMs?r-n.timeMs:void 0,request_response_end:r};e.mux.emit("requestcompleted",o)}}})),s.default.init(y,t),{emit:e.mux.emit,loadErrorHandler:P}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=i;var a=r(n(2)),s=r(n(5)),l=s.default.log,c=s.default.utils.secondsToMs,u=s.default.utils.assign,d=s.default.utils.getComputedStyle,p=s.default.utils.extractHostname,f=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)}},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(4);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r}).call(t,n(3))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){},function(e,t,n){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}([function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n(6))},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){for(var n=-1,r=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=E}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){return!!e&&"object"==typeof e}function b(e){return h(e)?i(e):a(e)}var E=9007199254740991,S="[object Arguments]",T="[object Function]",O="[object GeneratorFunction]",A=/^(?:0|[1-9]\d*)$/,C=Object.prototype,P=C.hasOwnProperty,I=C.toString,R=C.propertyIsEnumerable,N=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),k=Math.max,L=!R.call({valueOf:1},"valueOf"),w=Array.isArray,D=function(e){return s((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&u(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r=0&&t<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(s=t,!1!==n&&i(t),r.call(c,t,e),typeof console===l&&t0||t.video_source_duration>0)&&(t.video_source_is_live=!1),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=(0,l.extractHostnameAndDomain)(t.video_source_url),r=i(n,2),o=r[0],s=r[1];t.video_source_domain=s,t.video_source_hostname=o}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},k.prototype._updateStateData=function(){(0,a.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},k.prototype._sanitizeData=function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach((function(t){var n=parseInt(e.data[t],10);e.data[t]=isNaN(n)?void 0:n})),["player_source_url","video_source_url"].forEach((function(t){e.data[t]&&0===e.data[t].toLowerCase().indexOf("data:")&&(e.data[t]="MSE style URL")}))},k.prototype._resetVideoData=function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))},k.prototype._resetViewData=function(){var e=this;Object.keys(this.data).forEach((function(t){0===t.indexOf("view_")&&delete e.data[t]})),this.data.view_sequence_number=1},k.prototype._resetErrorData=function(e,t){delete this.data.player_error_code,delete this.data.player_error_message},k.prototype._initializeViewData=function(){var e=this,t=this.data.view_id=(0,s.generateUUID)();this.data.video_id||(this.data.video_id=(0,p.default)(this.data.player_source_url));var n=function(){t===e.data.view_id&&(0,d.default)(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()},k.prototype._restartHeartBeat=function(){var e=this;c.default.clearTimeout(this._heartBeatTimeout),this.viewErrored||(this._heartBeatTimeout=c.default.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))},k.prototype.addHLSJS=function(e){return e.hlsjs?this.hlsjs?void this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,void(0,f.monitorHlsJs)(this.mux,this.id,e.hlsjs,{},e.Hls||c.default.Hls)):void this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")},k.prototype.removeHLSJS=function(){this.hlsjs&&((0,f.stopMonitoringHlsJs)(this.hlsjs),this.hlsjs=void 0)},k.prototype.addDashJS=function(e){return e.dashjs?this.dashjs?void this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,void(0,h.monitorDashJS)(this.mux,this.id,e.dashjs)):void this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")},k.prototype.removeDashJS=function(){this.dashjs&&((0,h.stopMonitoringDashJS)(this.dashjs),this.dashjs=void 0)},t.default=k},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=o.default.createElement("a");t.href=e;var n=t.pathname.replace(/\.[^\/.]+$/,"");return a.default.encode(t.host+n).split("=")[0]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(n(13)),a=r(n(24))},function(e,t){},function(e,t,n){(function(e,r){var i;!function(r){var o=("object"==typeof e&&e&&e.exports,function(e){this.message=e});o.prototype=new Error,o.prototype.name="InvalidCharacterError";var a=function(e){throw new o(e)},s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,c=function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9\/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",c=-1;++c>(-2*i&6)));return o},u=function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n=e.length%3,r="",i=-1,o=e.length-n;++i>18&63)+s.charAt(t>>12&63)+s.charAt(t>>6&63)+s.charAt(63&t);return 2==n?(t=(e.charCodeAt(i)<<8)+e.charCodeAt(++i),r+=s.charAt(t>>10)+s.charAt(t>>4&63)+s.charAt(t<<2&63)+"="):1==n&&(t=e.charCodeAt(i),r+=s.charAt(t>>2)+s.charAt(t<<4&63)+"=="),r},d={encode:u,decode:c,version:"0.1.0"};void 0!==(i=function(){return d}.call(t,n,t,e))&&(e.exports=i)}()}).call(t,n(14)(e),n(6))},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringHlsJs=t.monitorHlsJs=void 0;var i=r(n(8)),o=r(n(12)),a=n(5),s=function(e){if(!e)return{};var t=o.default.navigationStart();return{bytesLoaded:e.total,requestStart:Math.round(t+e.trequest),responseStart:Math.round(t+e.tfirst),responseEnd:Math.round(t+e.tload)}},l=function(e){if(e&&"function"==typeof e.getAllResponseHeaders)return(0,i.default)(e.getAllResponseHeaders())},c=function(e,t,n){var r=arguments[4],i=e.log;if(o.default.exists()){var c=function(n,r){return e.emit(t,n,r)},u=function(e,t){var n=t.levels,r=t.audioTracks,i=t.url,o=t.stats,u=t.networkDetails,d={},p={};n.forEach((function(e,t){d[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),r.forEach((function(e,t){p[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var f=s(o),h=f.bytesLoaded,v=f.requestStart,m=f.responseStart,g=f.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:h,request_start:v,request_response_start:m,request_response_end:g,request_type:"manifest",request_hostname:(0,a.extractHostname)(i),request_response_headers:l(u),request_rendition_lists:{media:d,audio:p,video:{}}})};n.on(r.Events.MANIFEST_LOADED,u);var d=function(e,t){var n=t.details,r=t.level,i=t.networkDetails,o=t.stats,u=s(o),d=u.bytesLoaded,p=u.requestStart,f=u.responseStart,h=u.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:d,request_start:p,request_response_start:f,request_response_end:h,request_current_level:r,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(i)})};n.on(r.Events.LEVEL_LOADED,d);var p=function(e,t){var n=t.details,r=t.networkDetails,i=t.stats,o=s(i),u=o.bytesLoaded,d=o.requestStart,p=o.responseStart,f=o.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(r)})};n.on(r.Events.AUDIO_TRACK_LOADED,p);var f=function(e,t){var r=t.stats,i=t.networkDetails,o=t.frag,u=s(r),d={request_event_type:e,request_bytes_loaded:u.bytesLoaded,request_start:u.requestStart,request_response_start:u.responseStart,request_response_end:u.responseEnd,request_hostname:i?(0,a.extractHostname)(i.responseURL):void 0,request_response_headers:l(i),request_media_duration:o.duration};"main"===o.type?(d.request_type="media",d.request_current_level=o.level,d.request_video_width=(n.levels[o.level]||{}).width,d.request_video_height=(n.levels[o.level]||{}).height):d.request_type=o.type,c("requestcompleted",d)};n.on(r.Events.FRAG_LOADED,f);var h=function(e,t){var n=t.details,i=t.response,o=t.context,s=t.frag;if(n===r.ErrorDetails.MANIFEST_LOAD_ERROR||n===r.ErrorDetails.MANIFEST_LOAD_TIMEOUT||n===r.ErrorDetails.FRAG_LOAD_ERROR||n===r.ErrorDetails.FRAG_LOAD_TIMEOUT||n===r.ErrorDetails.LEVEL_LOAD_ERROR||n===r.ErrorDetails.LEVEL_LOAD_TIMEOUT){var l=s&&s.url||o&&o.url||"";c("requestfailed",{request_error:n,request_url:l,request_hostname:(0,a.extractHostname)(l),request_type:n===r.ErrorDetails.FRAG_LOAD_ERROR||n===r.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":"manifest",request_error_code:i&&i.code,request_error_text:i&&i.text})}};n.on(r.Events.ERROR,h);var v=function(e,t){var n=t.frag,r=n&&n._url||"";c("requestcanceled",{request_cancel:e,request_url:r,request_type:"media",request_hostname:(0,a.extractHostname)(r)})};n.on(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,v);var m=function(e,t){var r=t.level,o=n.levels.find((function(e){return e.level===r}));if(o&&o.attrs.BANDWIDTH){var a=o.attrs.BANDWIDTH;a?c("renditionchange",{video_source_bitrate:a,video_source_width:o.width,video_source_height:o.height}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(r.Events.LEVEL_SWITCHED,m),n._stopMuxMonitor=function(){n.off(r.Events.MANIFEST_LOADED,u),n.off(r.Events.LEVEL_LOADED,d),n.off(r.Events.AUDIO_TRACK_LOADED,p),n.off(r.Events.FRAG_LOADED,f),n.off(r.Events.ERROR,h),n.off(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,v),n.off(r.Events.LEVEL_SWITCHED,m),n.off(r.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(r.Events.DESTROYING,n._stopMuxMonitor)}else i.warn("performance timing not supported. Not tracking HLS.js.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorHlsJs=c,t.stopMonitoringHlsJs=u},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringDashJS=t.monitorDashJS=void 0;var i=r(n(0)),o=r(n(8)),a=n(5),s=function(e,t){if(!e||"function"!=typeof e.getRequests)return{};var n=e.getRequests({state:"executed"});if(0===n.length)return{};var r=n[n.length-1],i=(0,a.extractHostname)(r.url),s=r.bytesLoaded,l=new Date(r.requestStartDate).getTime(),c=new Date(r.firstByteDate).getTime(),u=new Date(r.requestEndDate).getTime(),d=isNaN(r.duration)?0:r.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(r.mediaType).HttpList:t.getDashMetrics().getHttpRequests(r.mediaType),f=void 0;return p.length>0&&(f=(0,o.default)(p[p.length-1]._responseHeaders||"")),{requestStart:l,requestResponseStart:c,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:f,requestMediaDuration:d,requestHostname:i}},l=function(e,t){var n=t.getQualityFor(e),r=t.getCurrentTrackFor(e).bitrateList;return r?{currentLevel:n,renditionWidth:r[n].width||null,renditionHeight:r[n].height||null,renditionBitrate:r[n].bandwidth}:{}},c=function(e,t,n){var r=e.log;if(n&&n.on){var o=function(n,r){return e.emit(t,n,r)},c=function(e){var t=e.type,n=(e.data||{}).url;o("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:(0,a.extractHostname)(n)})};n.on("manifestLoaded",c);var u={},d=function(e){var t=e.type,r=e.fragmentModel,i=(e.chunk||{}).mediaInfo||{},a=i.type,l=i.bitrateList,c={};(l=l||[]).forEach((function(e,t){c[t]={},c[t].width=e.width,c[t].height=e.height,c[t].bitrate=e.bandwidth,c[t].attrs={}})),"video"===a?u.video=c:"audio"===a?u.audio=c:u.media=c;var d=s(r,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,v=d.requestResponseHeaders,m=d.requestMediaDuration,g=d.requestHostname;o("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:-1,request_type:a+"_init",request_response_headers:v,request_hostname:g,request_media_duration:m,request_rendition_lists:u})};n.on("initFragmentLoaded",d);var p=function(e){var t=e.type,r=e.fragmentModel,i=e.chunk||{},a=i.mediaInfo,c=i.start,u=(a||{}).type,d=s(r,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,v=d.requestBytesLoaded,m=d.requestResponseHeaders,g=d.requestMediaDuration,y=d.requestHostname,_=l(u,n),b=_.currentLevel,E=_.renditionWidth,S=_.renditionHeight,T=_.renditionBitrate;o("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:v,request_type:u,request_response_headers:m,request_hostname:y,request_media_start_time:c,request_media_duration:g,request_current_level:b,request_labeled_bitrate:T,request_video_width:E,request_video_height:S})};n.on("mediaFragmentLoaded",p);var f={video:void 0,audio:void 0,totalBitrate:void 0},h=function(){if(f.video&&"number"==typeof f.video.bitrate){if(!f.video.width||!f.video.height)return void r.warn("have bitrate info for video but missing width/height");var e=f.video.bitrate;return f.audio&&"number"==typeof f.audio.bitrate&&(e+=f.audio.bitrate),e!==f.totalBitrate?(f.totalBitrate=e,{video_source_bitrate:e,video_source_height:f.video.height,video_source_width:f.video.width}):void 0}},v=function(e,t,i){if("number"==typeof e.newQuality){var a=e.mediaType;if("audio"===a||"video"===a){var s=n.getBitrateInfoListFor(a).find((function(t){return t.qualityIndex===e.newQuality}));if(!s||"number"!=typeof s.bitrate)return void r.warn("missing bitrate info for "+a);f[a]=s;var l=h();l&&o("renditionchange",l)}}else r.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",v);var m=function(e){var t=e.error,n=e.event,r=(n=n||{}).request||{},s=i.default.event&&i.default.event.currentTarget||{};o("requestfailed",{request_error:t+"_"+n.id+"_"+r.type,request_url:n.url,request_hostname:(0,a.extractHostname)(n.url),request_type:r.mediaType,request_error_code:s.status,request_error_type:s.statusText})};n.on("error",m),n._stopMuxMonitor=function(){n.off("manifestLoaded",c),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",p),n.off("qualityChangeRendered",v),n.off("error",m),delete n._stopMuxMonitor}}else r.warn("Invalid dash.js player reference. Monitoring blocked.")},u=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()};t.monitorDashJS=c,t.stopMonitoringDashJS=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){},i=0;r.prototype.on=function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++i,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t},r.prototype.off=function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,r){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(r,1)}))},r.prototype.one=function(e,t,n){var r=this;t._eventEmitterGuid=t._eventEmitterGuid||++i;var o=function i(){r.off(e,i),t.apply(n||this,arguments)};o._eventEmitterGuid=t._eventEmitterGuid,this.on(e,o)},r.prototype.emit=function(e,t){var n=this;if(this._listeners){t=t||{};var r=this._listeners["before*"]||[],i=this._listeners[e]||[],o=this._listeners["after"+e]||[],a=function(t,r){(t=t.slice()).forEach((function(t){t.call(n,{type:e},r)}))};a(r,t),a(i,t),a(o,t)}},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=function(){this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,this.on("playing",(function(){this._playheadShouldBeProgressing=!0})),this.on("play",this._startPlaybackHeartbeatInterval),this.on("playing",this._startPlaybackHeartbeatInterval),this.on("adbreakstart",this._startPlaybackHeartbeatInterval),this.on("adplay",this._startPlaybackHeartbeatInterval),this.on("adplaying",this._startPlaybackHeartbeatInterval),this.on("seeking",this._startPlaybackHeartbeatInterval),this.on("devicewake",this._startPlaybackHeartbeatInterval),this.on("viewstart",this._startPlaybackHeartbeatInterval),this.on("pause",this._stopPlaybackHeartbeatInterval),this.on("ended",this._stopPlaybackHeartbeatInterval),this.on("viewend",this._stopPlaybackHeartbeatInterval),this.on("error",this._stopPlaybackHeartbeatInterval),this.on("aderror",this._stopPlaybackHeartbeatInterval),this.on("adpause",this._stopPlaybackHeartbeatInterval),this.on("adended",this._stopPlaybackHeartbeatInterval),this.on("adbreakend",this._stopPlaybackHeartbeatInterval),this.on("seeked",(function(){this.data.player_is_paused?this._stopPlaybackHeartbeatInterval():this._startPlaybackHeartbeatInterval()})),this.on("timeupdate",(function(){null!==this._playbackHeartbeatInterval&&this.emit("playbackheartbeat")})),this.on("devicesleep",(function(e,t){null!==this._playbackHeartbeatInterval&&(r.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend",{viewer_time:t.viewer_time}),this._playbackHeartbeatInterval=null)}))};i.prototype._startPlaybackHeartbeatInterval=function(){var e=this;null===this._playbackHeartbeatInterval&&(this.emit("playbackheartbeat"),this._playbackHeartbeatInterval=r.default.setInterval((function(){e.emit("playbackheartbeat")}),this.playbackHeartbeatTime))},i.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(r.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)},t.default=i},function(e,t,n){function r(){var e=this;this.on("viewinit",(function(){e.viewErrored=!1})),this.on("error",(function(){try{var t=e.errorTranslator({player_error_code:e.data.player_error_code,player_error_message:e.data.player_error_message});t?(e.data.player_error_code=t.player_error_code,e.data.player_error_message=t.player_error_message,e.viewErrored=!0):(delete e.data.player_error_code,delete e.data.player_error_message)}catch(t){e.mux.log.warn("Exception in error translator callback.",t),e.viewErrored=!0}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=function(){this._watchTimeTrackerLastCheckedTime=null,this.on("playbackheartbeat",this._updateWatchTime),this.on("playbackheartbeatend",this._clearWatchTimeState)};i.prototype._updateWatchTime=function(e,t){var n=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=n),(0,r.default)(this.data,"view_watch_time",n-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=n},i.prototype._clearWatchTimeState=function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=function(){this._playbackTimeTrackerLastPlayheadPosition=-1,this.on("playbackheartbeat",this._updatePlaybackTime),this.on("playbackheartbeatend",this._clearPlaybackTimeState),this.on("seeking",this._clearPlaybackTimeState)};i.prototype._updatePlaybackTime=function(){var e=this.data.player_playhead_time;if(this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&(0,r.default)(this.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e},i.prototype._clearPlaybackTimeState=function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1},t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){this.on("playbackheartbeat",this._updatePlayheadTime),this.on("playbackheartbeatend",this._updatePlayheadTime),this.on("timeupdate",this._updatePlayheadTime),this.on("destroy",(function(){this.off("timeupdate",this._updatePlayheadTime)}))};r.prototype._updatePlayheadTime=function(e,t){if(t.player_playhead_time)this.data.player_playhead_time=t.player_playhead_time;else if(this.getPlayheadTime){var n=this.getPlayheadTime();void 0!==n&&(this.data.player_playhead_time=n)}},t.default=r},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(3)),o=r(n(2)),a=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,this.on("playbackheartbeat",this._checkIfRebuffering),this.on("playbackheartbeatend",this._cleanupRebufferTracker),this.on("seeking",(function(){this._cleanupRebufferTracker(null,{viewer_time:i.default.now()})}))};a.prototype._checkIfRebuffering=function(e,t){if(!this.disableRebufferTracking){if(this.isSeeking||this.isAdBreak||!this._playheadShouldBeProgressing)return void this._cleanupRebufferTracker(e,t);if(null===this._lastCheckedTime)return this._prepareRebufferTrackerState(t.viewer_time),void this._updateRebufferMetrics();if(this._lastPlayheadTime!==this.data.player_playhead_time)return void this._cleanupRebufferTracker(e,t,!0);var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;n>=this.sustainedRebufferThreshold&&(this._rebuffering?this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime):(this._rebuffering=!0,(0,o.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(n),this.emit("rebufferstart"))),this._lastCheckedTime=t.viewer_time}},a.prototype._clearRebufferTrackerState=function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null},a.prototype._prepareRebufferTrackerState=function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e},a.prototype._cleanupRebufferTracker=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.disableRebufferTracking){if(this._rebuffering)this._rebuffering=!1,this._updateRebufferMetrics(t.viewer_time-this._lastCheckedTime),this.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return void this._updateRebufferMetrics();var r=this.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;r>0&&i-r>this.minimumRebufferDuration?((0,o.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(i-r),this.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-r})):this._updateRebufferMetrics()}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}},a.prototype._updateRebufferMetrics=function(e){e>0&&(0,o.default)(this.data,"view_rebuffer_duration",e),this.data.view_watch_time>=0&&this.data.view_rebuffer_count>0&&(this.data.view_rebuffer_frequency=this.data.view_rebuffer_count/this.data.view_watch_time,this.data.view_rebuffer_percentage=this.data.view_rebuffer_duration/this.data.view_watch_time)},t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(3)),i=function(){this.on("viewinit",(function(){var e=this.data,t=e.view_id;if(!e.view_program_changed){var n=function(e,n){var i=n.viewer_time;"playing"===e.type&&void 0===this.data.view_time_to_first_frame?this.calculateTimeToFirstFrame(i||r.default.now(),t):"adplaying"!==e.type||void 0!==this.data.view_time_to_first_frame&&!this.inPrerollPosition()||this.calculateTimeToFirstFrame(i||r.default.now(),t)};this.one("playing",n),this.one("adplaying",n),this.one("viewend",(function(){this.off("playing",n),this.off("adplaying",n)}))}}))};i.prototype.calculateTimeToFirstFrame=function(e,t){t===this.data.view_id&&(this._updateWatchTime(null,{viewer_time:e}),this.data.view_time_to_first_frame=this.data.view_watch_time,(this.data.player_autoplay_on||this.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.data.view_aggregate_startup_time=this.data.view_start+this.data.view_watch_time-this.NAVIGATION_START))},t.default=i},function(e,t,n){function r(){var e=this;this.on("viewinit",(function(){this._lastPlayheadPosition=-1}));var t=["playing","hb"];["pause","rebufferstart","seeking","error","adbreakstart","hb"].forEach((function(t){e.on(t,(function(){if(this._lastPlayheadPosition>=0&&this.data.player_playhead_time>=0&&this._lastPlayerWidth>=0&&this._lastSourceWidth>0&&this._lastPlayerHeight>=0&&this._lastSourceHeight>0){var e=this.data.player_playhead_time-this._lastPlayheadPosition;if(e<0)return void(this._lastPlayheadPosition=-1);var t=Math.min(this._lastPlayerWidth/this._lastSourceWidth,this._lastPlayerHeight/this._lastSourceHeight),n=Math.max(0,t-1),r=Math.max(0,1-t);this.data.view_max_upscale_percentage=Math.max(this.data.view_max_upscale_percentage||0,n),this.data.view_max_downscale_percentage=Math.max(this.data.view_max_downscale_percentage||0,r),(0,i.default)(this.data,"view_total_content_playback_time",e),(0,i.default)(this.data,"view_total_upscaling",n*e),(0,i.default)(this.data,"view_total_downscaling",r*e)}this._lastPlayheadPosition=-1}))})),t.forEach((function(t){e.on(t,(function(){this._lastPlayheadPosition=this.data.player_playhead_time,this._lastPlayerWidth=this.data.player_width,this._lastPlayerHeight=this.data.player_height,this._lastSourceWidth=this.data.video_source_width,this._lastSourceHeight=this.data.video_source_height}))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2))},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(){this.isSeeking=!1,this.on("seeking",(function(e,t){(0,s.default)(this.data,t),this._lastSeekingTime=o.default.now(),!1===this.isSeeking&&(this.isSeeking=!0,this.send("seeking"))})),this.on("seeked",(function(){this.isSeeking=!1;var e=this._lastSeekingTime||o.default.now(),t=o.default.now()-e;(0,a.default)(this.data,"view_seek_count",1),(0,a.default)(this.data,"view_seek_duration",t);var n=this.data.view_max_seek_time||0;this.data.view_max_seek_time=Math.max(n,t)})),this.on("viewend",(function(){this.isSeeking=!1}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var o=r(n(3)),a=r(n(2)),s=r(n(1))},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=r(n(2)),a=n(5),s=r(n(1)),l=function(e,t){e.push(t),e.sort((function(e,t){return e.viewer_time-t.viewer_time}))},c=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror"],u=function(){var e=this;this.on("viewinit",(function(){this.isAdBreak=!1,this._currentAdRequestNumber=0,this._currentAdResponseNumber=0,this._adRequests=[],this._adResponses=[],this._adHasPlayed=!1,this._wouldBeNewAdPlay=!0,this._prerollPlayTime=void 0})),c.forEach((function(t){return e.on(t,e._updateAdData)}));var t=function(){e.isAdBreak=!1};this.on("adbreakstart",(function(){this.isAdBreak=!0})),this.on("play",t),this.on("playing",t),this.on("viewend",t),this.on("adrequest",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdRequestNumber++},t),l(this._adRequests,t),(0,o.default)(this.data,"view_ad_request_count"),this.inPrerollPosition()&&(this.data.view_preroll_requested=!0,this._adHasPlayed||(0,o.default)(this.data,"view_preroll_request_count"))})),this.on("adresponse",(function(e,t){t=(0,s.default)({ad_request_id:"generatedAdRequestId"+this._currentAdResponseNumber++},t),l(this._adResponses,t);var n=this.findAdRequest(t.ad_request_id);n&&(0,o.default)(this.data,"view_ad_request_time",Math.max(0,t.viewer_time-n.viewer_time))})),this.on("adplay",(function(e,t){this._adHasPlayed=!0,this._wouldBeNewAdPlay&&(this._wouldBeNewAdPlay=!1,(0,o.default)(this.data,"view_ad_played_count")),this.inPrerollPosition()&&!this.data.view_preroll_played&&(this.data.view_preroll_played=!0,this._adRequests.length>0&&(this.data.view_preroll_request_time=Math.max(0,t.viewer_time-this._adRequests[0].viewer_time)),this.data.view_start&&(this.data.view_startup_preroll_request_time=Math.max(0,t.viewer_time-this.data.view_start)),this._prerollPlayTime=t.viewer_time)})),this.on("adplaying",(function(e,t){this.inPrerollPosition()&&void 0===this.data.view_preroll_load_time&&void 0!==this._prerollPlayTime&&(this.data.view_preroll_load_time=t.viewer_time-this._prerollPlayTime,this.data.view_startup_preroll_load_time=t.viewer_time-this._prerollPlayTime)})),this.on("adended",(function(){this._wouldBeNewAdPlay=!0})),this.on("aderror",(function(){this._wouldBeNewAdPlay=!0}))};u.prototype.inPrerollPosition=function(){return void 0===this.data.view_content_playback_time||this.data.view_content_playback_time<=1e3},u.prototype.findAdRequest=function(e){for(var t=0;t3e4&&(this.emit("devicesleep",{viewer_time:n}),(0,o.default)(this.data,{viewer_time:n}),this.send("devicesleep"),this.emit("devicewake",{viewer_time:t}),(0,o.default)(this.data,{viewer_time:t}),this.send("devicewake"))}},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(n(0)),a=n(41),s=r(n(4)),l=r(n(45)),c=r(n(11)),u=r(n(46)),d=r(n(17)),p=r(n(47)),f=r(n(49)),h=r(n(1)),v=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id"],m=["viewstart","error","ended","viewend"],g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.mux=e,this.envKey=t,this.eventQueue=new p.default((0,l.default)(t,n.beaconDomain)),this.previousBeaconData=null,this.lastEventTime=null,this.sampleRate=n.sampleRate,this.disableCookies=n.disableCookies,this.respectDoNotTrack=n.respectDoNotTrack;var r=(0,h.default)(f.default,n.platform||{});this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed_version:this.mux.VERSION,viewer_application_name:r.name,viewer_application_version:r.version,viewer_application_engine:r.layout,viewer_device_name:r.product,viewer_device_category:"",viewer_device_manufacturer:r.manufacturer,viewer_os_family:r.os&&r.os.family,viewer_os_architecture:r.os&&r.os.architecture,viewer_os_version:r.os&&r.os.version};var i=(0,u.default)();i&&(this.pageLevelData=(0,h.default)(this.pageLevelData,{viewer_connection_type:i})),void 0!==o.default&&o.default.location&&o.default.location.href&&(this.pageLevelData.page_url=o.default.location.href),this.viewerData=this.disableCookies?{}:(0,a.getAndUpdateViewerData)()};g.prototype.send=function(e,t){if(e){if(this.respectDoNotTrack&&(0,c.default)())return s.default.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==(void 0===t?"undefined":i(t)))return s.default.error("A data object was expected in send() but was not provided");var n=this.disableCookies?{}:(0,a.getAndUpdateSessionData)(),r={};(0,h.default)(r,this.pageLevelData),(0,h.default)(r,t),(0,h.default)(r,n),(0,h.default)(r,this.viewerData),r.event=e,r.env_key=this.envKey,r.user_id&&(r.viewer_user_id=r.user_id,delete r.user_id);var o=r.mux_sample_number>=this.sampleRate,l=this._deduplicateBeaconData(e,r),u=(0,d.default)(l);if(this.lastEventTime=this.mux.utils.now(),o)return s.default.info("Not sending event due to sample rate restriction",e,r,u);if(!this.envKey)return s.default.info("Not sending event due to missing environment key",e,r,u);if(!this.rateLimited)if(s.default.info("Sending event",e,r,u),this.rateLimited=!this.eventQueue.queueEvent(e,u),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(m.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return r.event="eventrateexceeded",u=(0,d.default)(r),this.eventQueue.queueEvent(r.event,u),s.default.error("Beaconing disabled due to rate limit.")}},g.prototype.destroy=function(){this.eventQueue.destroy(!1)};var y=function(e,t,n,r){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===(void 0===n?"undefined":i(n))&&"object"===(void 0===r?"undefined":i(r))&&Object.keys(n||{}).length===Object.keys(r||{}).length)},_=function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")};g.prototype._deduplicateBeaconData=function(e,t){var n=this,r={},i=t.view_id;if(!i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)r=(0,h.default)({},t),i&&(this.previousBeaconData=r),i&&"viewend"===e&&(this.previousBeaconData=null);else{var o=0===e.indexOf("request");Object.keys(t).forEach((function(i){var a=t[i];(a!==n.previousBeaconData[i]||v.indexOf(i)>-1||y(o,i,a,n.previousBeaconData[i])||_(e,i))&&(r[i]=a,n.previousBeaconData[i]=a)}))}return r},t.default=g},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAndUpdateSessionData=t.getAndUpdateViewerData=void 0;var i=r(n(15)),o=r(n(44)),a=n(7),s=r(n(3)),l=function(){var e=void 0;try{e=i.default.parse(o.default.get("muxData")||"")}catch(t){e={}}return e},c=function(e){o.default.set("muxData",i.default.stringify(e),{expires:7300})},u=function(){var e=l();return e.mux_viewer_id=e.mux_viewer_id||(0,a.generateUUID)(),e.msn=e.msn||Math.random(),c(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},d=function(){var e=l(),t=s.default.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex0?m+f:""}},function(e,t,n){var r=n(9),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){if(o(e)){for(var n=[],r=0;r-1&&(g=o(g)?[g]:g),i.call(u,m)?u[m]=r.combine(u[m],g):u[m]=g}return u},d=function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[c]=i:a={0:i}}i=a}return i},p=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(l=s.exec(o))&&p1){if("number"==typeof(o=t({path:"/"},r.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",i,o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),i.default.clearTimeout(this._sendTimeout)},d.prototype._clearBeaconQueue=function(){var e=i.default.navigator,t=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,n=this._eventQueue.slice(t);if(t>0&&(0,s.default)(n[n.length-1],(0,l.default)({mux_view_message:"event queue truncated"})),e.sendBeacon)e.sendBeacon(this._beaconUrl,JSON.stringify({events:n}));else if(i.default.XMLHttpRequest){var r=new i.default.XMLHttpRequest;r.open("POST",this._beaconUrl),r.setRequestHeader("Content-Type","application/json"),r.send(JSON.stringify({events:n}))}else a.default.send(this._beaconUrl,n[n.length-1])},d.prototype._sendBeaconQueue=function(){var e=this;if(i.default.XMLHttpRequest&&!this._postInFlight){var t=new i.default.XMLHttpRequest,n=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0,t.onreadystatechange=function(){4===t.readyState&&(200!==t.status?(e._eventQueue=n.concat(e._eventQueue),e._failureCount+=1,o.default.info("Error sending beacon: "+t.status),o.default.info(t.responseText)):e._failureCount=0,e._postInFlight=!1)},t.open("POST",this._beaconUrl),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify({events:n}))}},d.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},d.prototype._startBeaconSending=function(){var e=this;i.default.clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=i.default.setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},t.default=d},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=r(n(0)),a={send:function(e,t){function n(){r.src=s+(a?"&rc="+a:"")}var r=new Image,a=0,s=e+"?"+i.default.stringify(t);return r.addEventListener("error",(function(){a>3||o.default.setTimeout((function(){a++,n()}),5e3*a)})),n(),r}};t.default=a},function(e,t,n){(function(e,r){var i;(function(){function o(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function a(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),l(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function s(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=E)for(;++n3?"WebKit":/\bOpera\b/.test(z)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(F)&&"WebKit"||!F&&/\bMSIE\b/i.test(e)&&("Mac OS"==j?"Tasman":"Trident")||"WebKit"==F&&/\bPlayStation\b(?! Vita\b)/i.test(z)&&"NetFront")&&(F=[m]),"IE"==z&&(m=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(z+=" Mobile",j="Windows Phone "+(/\+$/.test(m)?m:m+".x"),D.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(z="IE Mobile",j="Windows Phone 8.x",D.unshift("desktop mode"),U||(U=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=z&&"Trident"==F&&(m=/\brv:([\d.]+)/.exec(e))&&(z&&D.push("identifying as "+z+(U?" "+U:"")),z="IE",U=m[1]),x){if(d(r,"global"))if(C&&(w=(m=C.lang.System).getProperty("os.arch"),j=j||m.getProperty("os.name")+" "+m.getProperty("os.version")),P){try{U=r.require("ringo/engine").version.join("."),z="RingoJS"}catch(e){(m=r.system)&&m.global.system==r.system&&(z="Narwhal",j||(j=m[0].os||null))}z||(z="Rhino")}else"object"==typeof r.process&&!r.process.browser&&(m=r.process)&&("object"==typeof m.versions&&("string"==typeof m.versions.electron?(D.push("Node "+m.versions.node),z="Electron",U=m.versions.electron):"string"==typeof m.versions.nw&&(D.push("Chromium "+U,"Node "+m.versions.node),z="NW.js",U=m.versions.nw)),z||(z="Node.js",w=m.arch,j=m.platform,U=(U=/[\d.]+/.exec(m.version))?U[0]:null));else u(m=r.runtime)==b?(z="Adobe AIR",j=m.flash.system.Capabilities.os):u(m=r.phantom)==O?(z="PhantomJS",U=(m=m.version||null)&&m.major+"."+m.minor+"."+m.patch):"number"==typeof N.documentMode&&(m=/\bTrident\/(\d+)/i.exec(e))?(U=[U,N.documentMode],(m=+m[1]+4)!=U[1]&&(D.push("IE "+U[1]+" mode"),F&&(F[1]=""),U[1]=m),U="IE"==z?String(U[1].toFixed(1)):U[0]):"number"==typeof N.documentMode&&/^(?:Chrome|Firefox)\b/.test(z)&&(D.push("masking as "+z+" "+U),z="IE",U="11.0",F=["Trident"],j="Windows");j=j&&l(j)}if(U&&(m=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(U)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(x&&o.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(M=/b/i.test(m)?"beta":"alpha",U=U.replace(RegExp(m+"\\+?$"),"")+("beta"==M?R:I)+(/\d+\+?/.exec(m)||"")),"Fennec"==z||"Firefox"==z&&/\b(?:Android|Firefox OS)\b/.test(j))z="Firefox Mobile";else if("Maxthon"==z&&U)U=U.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(B))"Xbox 360"==B&&(j=null),"Xbox 360"==B&&/\bIEMobile\b/.test(e)&&D.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(z)&&(!z||B||/Browser|Mobi/.test(z))||"Windows CE"!=j&&!/Mobi/i.test(e))if("IE"==z&&x)try{null===r.external&&D.unshift("platform preview")}catch(e){D.unshift("embedded")}else(/\bBlackBerry\b/.test(B)||/\bBB10\b/.test(e))&&(m=(RegExp(B.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||U)?(j=((m=[m,/BB10/.test(e)])[1]?(B=null,V="BlackBerry"):"Device Software")+" "+m[0],U=null):this!=c&&"Wii"!=B&&(x&&k||/Opera/.test(z)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==z&&/\bOS X (?:\d+\.){2,}/.test(j)||"IE"==z&&(j&&!/^Win/.test(j)&&U>5.5||/\bWindows XP\b/.test(j)&&U>8||8==U&&!/\bTrident\b/.test(e)))&&!S.test(m=v.call(c,e.replace(S,"")+";"))&&m.name&&(m="ing as "+m.name+((m=m.version)?" "+m:""),S.test(z)?(/\bIE\b/.test(m)&&"Mac OS"==j&&(j=null),m="identify"+m):(m="mask"+m,z=L?l(L.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(m)&&(j=null),x||(U=null)),F=["Presto"],D.push(m));else z+=" Mobile";(m=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(m=[parseFloat(m.replace(/\.(\d)$/,".0$1")),m],"Safari"==z&&"+"==m[1].slice(-1)?(z="WebKit Nightly",M="alpha",U=m[1].slice(0,-1)):U!=m[1]&&U!=(m[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(U=null),m[1]=(/\bChrome\/([\d.]+)/i.exec(e)||0)[1],537.36==m[0]&&537.36==m[2]&&parseFloat(m[1])>=28&&"WebKit"==F&&(F=["Blink"]),x&&(_||m[1])?(F&&(F[1]="like Chrome"),m=m[1]||((m=m[0])<530?1:m<532?2:m<532.05?3:m<533?4:m<534.03?5:m<534.07?6:m<534.1?7:m<534.13?8:m<534.16?9:m<534.24?10:m<534.3?11:m<535.01?12:m<535.02?"13+":m<535.07?15:m<535.11?16:m<535.19?17:m<536.05?18:m<536.1?19:m<537.01?20:m<537.11?"21+":m<537.13?23:m<537.18?24:m<537.24?25:m<537.36?26:"Blink"!=F?"27":"28")):(F&&(F[1]="like Safari"),m=(m=m[0])<400?1:m<500?2:m<526?3:m<533?4:m<534?"4+":m<535?5:m<537?6:m<538?7:m<601?8:"8"),F&&(F[1]+=" "+(m+="number"==typeof m?".x":/[.+]/.test(m)?"":"+")),"Safari"==z&&(!U||parseInt(U)>45)&&(U=m)),"Opera"==z&&(m=/\bzbov|zvav$/.exec(j))?(z+=" ",D.unshift("desktop mode"),"zvav"==m?(z+="Mini",U=null):z+="Mobile",j=j.replace(RegExp(" *"+m+"$"),"")):"Safari"==z&&/\bChrome\b/.exec(F&&F[1])&&(D.unshift("desktop mode"),z="Chrome Mobile",U=null,/\bOS X\b/.test(j)?(V="Apple",j="iOS 4.3+"):j=null),U&&0==U.indexOf(m=/[\d.]+$/.exec(j))&&e.indexOf("/"+m+"-")>-1&&(j=h(j.replace(m,""))),F&&!/\b(?:Avant|Nook)\b/.test(z)&&(/Browser|Lunascape|Maxthon/.test(z)||"Safari"!=z&&/^iOS/.test(j)&&/\bSafari\b/.test(F[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(z)&&F[1])&&(m=F[F.length-1])&&D.push(m),D.length&&(D=["("+D.join("; ")+")"]),V&&B&&B.indexOf(V)<0&&D.push("on "+V),B&&D.push((/^on /.test(D[D.length-1])?"":"on ")+B),j&&(m=/ ([\d.+]+)$/.exec(j),y=m&&"/"==j.charAt(j.length-m[0].length-1),j={architecture:32,family:m&&!y?j.replace(m[0],""):j,version:m?m[1]:null,toString:function(){var e=this.version;return this.family+(e&&!y?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(m=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(w))&&!/\bi686\b/i.test(w)?(j&&(j.architecture=64,j.family=j.family.replace(RegExp(" *"+m),"")),z&&(/\bWOW64\b/i.test(e)||x&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(e))&&D.unshift("32-bit")):j&&/^OS X/.test(j.family)&&"Chrome"==z&&parseFloat(U)>=39&&(j.architecture=64),e||(e=null);var H={};return H.description=e,H.layout=F&&F[0],H.manufacturer=V,H.name=z,H.prerelease=M,H.product=B,H.ua=e,H.version=z&&U,H.os=j||{architecture:null,family:null,version:null,toString:function(){return"null"}},H.parse=v,H.toString=n,H.version&&D.unshift(U),H.name&&D.unshift(z),j&&z&&(j!=String(j).split(" ")[0]||j!=z.split(" ")[0]&&!B)&&D.push(B?"("+j+")":"on "+j),D.length&&(H.description=D.join(" ")),H}var m={function:!0,object:!0},g=m[typeof window]&&window||this,y=m[typeof t]&&t,_=m[typeof e]&&e&&!e.nodeType&&e,b=y&&_&&"object"==typeof r&&r;!b||b.global!==b&&b.window!==b&&b.self!==b||(g=b);var E=Math.pow(2,53)-1,S=/\bOpera/,T=Object.prototype,O=T.hasOwnProperty,A=T.toString,C=v();g.platform=C,void 0!==(i=function(){return C}.call(t,n,t,e))&&(e.exports=i)}).call(this)}).call(t,n(14)(e),n(6))},function(e,t,n){function r(){function e(e,t){var n=t.request_start,l=t.request_response_start,c=t.request_response_end,u=t.request_bytes_loaded;a++;var d=void 0,p=void 0;if(l?(d=l-n,p=c-l):p=c-n,p>0&&u>0){var f=u/p*8e3;s++,i+=u,o+=p,this.data.view_min_request_throughput=Math.min(this.data.view_min_request_throughput||1/0,f),this.data.view_average_request_throughput=i/o*8e3,this.data.view_request_count=a,d>0&&(r+=d,this.data.view_max_request_latency=Math.max(this.data.view_max_request_latency||0,d),this.data.view_average_request_latency=r/s)}}function t(e,t){a++,l++,this.data.view_request_count=a,this.data.view_request_failed_count=l}function n(e,t){a++,c++,this.data.view_request_count=a,this.data.view_request_canceled_count=c}var r=0,i=0,o=0,a=0,s=0,l=0,c=0;this.on("requestcompleted",e),this.on("requestfailed",t),this.on("requestcanceled",n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){function r(e,t,n){var r=(0,s.findMediaElement)(t),u=o(r,3),d=u[0],p=u[1],f=u[2],h=e.log,v=e.utils.getComputedStyle,m=e.utils.secondsToMs,g={automaticErrorTracking:!0};return d?"video"!==f&&"audio"!==f?h.error("The element of `"+p+"` was not a media element."):((n=(0,a.default)(g,n)).data=(0,a.default)({player_software:"HTML5 Video Element",player_software_version:"No Versions",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:"3.4.0"},n.data),n.getPlayheadTime=function(){return m(d.currentTime)},n.getStateData=function(){var e=this.hlsjs&&this.hlsjs.url,t=this.dashjs&&i("function"===this.dashjs.getSource)&&this.dashjs.getSource();return{player_is_paused:d.paused,player_playhead_time:m(d.currentTime),player_width:parseInt(v(d,"width")),player_height:parseInt(v(d,"height")),player_autoplay_on:d.autoplay,player_preload_on:d.preload,video_poster_url:d.poster,video_source_url:e||t||d.currentSrc,video_source_duration:m(d.duration),video_source_height:d.videoHeight,video_source_width:d.videoWidth}},d.mux=d.mux||{},d.mux.emit=function(t,n){e.emit(p,t,n)},d.mux.destroy=function(){Object.keys(d.mux.listeners).forEach((function(e){d.removeEventListener(e,d.mux.listeners[e],!1)})),delete d.mux.listeners,e.emit(p,"destroy")},d.mux.swapElement=function(t){var n=(0,s.findMediaElement)(t),r=o(n,3),i=r[0],l=r[1],c=r[2];return i?"video"!==c&&"audio"!==c?e.log.error("The element of `"+l+"` was not a media element."):(i.muxId=d.muxId,delete d.muxId,i.mux=i.mux||{},i.mux.listeners=(0,a.default)({},d.mux.listeners),delete d.mux.listeners,Object.keys(i.mux.listeners).forEach((function(e){d.removeEventListener(e,i.mux.listeners[e],!1),i.addEventListener(e,i.mux.listeners[e],!1)})),i.mux.swapElement=d.mux.swapElement,i.mux.destroy=d.mux.destroy,delete d.mux,void(d=i)):e.log.error("No element was found with the `"+l+"` query selector.")},d.mux.addHLSJS=function(t){e.addHLSJS(p,t)},d.mux.addDashJS=function(t){e.addDashJS(p,t)},d.mux.removeHLSJS=function(){e.removeHLSJS(p)},d.mux.removeDashJS=function(){e.removeDashJS(p)},e.init(p,n),e.emit(p,"playerready"),d.paused||(e.emit(p,"play"),d.readyState>2&&e.emit(p,"playing")),d.mux.listeners={},void l.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(d.mux.listeners[t]=function(){var n={};"error"===t&&(n.player_error_code=d.error&&d.error.code,n.player_error_message=d.error&&c[d.error.code]),e.emit(p,t,n)},d.addEventListener(t,d.mux.listeners[t],!1))}))):h.error("No element was found with the `"+p+"` query selector.")}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=r;var a=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),s=n(10),l=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],c={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"}},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(53)),o=r(n(2)),a=r(n(54)),s=r(n(55)),l=r(n(1)),c=r(n(8)),u=n(5),d=r(n(3)),p={};p.safeCall=i.default,p.safeIncrement=o.default,p.getComputedStyle=a.default,p.secondsToMs=s.default,p.assign=l.default,p.headersStringToObject=c.default,p.extractHostnameAndDomain=u.extractHostnameAndDomain,p.extractHostname=u.extractHostname,p.now=d.default.now,t.default=p},function(e,t,n){function r(e,t,n,r){var o=r;if(e&&"function"==typeof e[t])try{o=e[t].apply(e,n)}catch(e){i.default.info("safeCall error",e)}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(4))},function(e,t,n){function r(e,t){if(i.default.defaultView&&i.default.defaultView.getComputedStyle)return i.default.defaultView.getComputedStyle(e,null).getPropertyValue(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13))},function(e,t,n){function r(e){return Math.floor(1e3*e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r}])}))}])},7550:(e,t,n)=>{"use strict";!function(){var e="undefined"!=typeof window?window:n.g,r={};for(var i in function(e,t,n){var r;function i(e){var t=0;return function(){return ti&&(i=Math.max(i+r,0));i=i}}));var U="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;nthis.a?e:Math.min(j(this.b),j(this.c))};var W=new Set;if(e.console&&e.console.log.bind){var Y={},J=(Y[1]=console.error.bind(console),Y[2]=console.warn.bind(console),Y[3]=console.info.bind(console),Y[4]=console.log.bind(console),Y[5]=console.debug.bind(console),Y[6]=console.debug.bind(console),Y);K=J[2],q=J[1]}function $(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next())n.push(t(i.value));return n}var X=function e(t){var n;return L(e,(function(e){return 1==e.a&&(n=0),3!=e.a?nt)throw Error("Bad port number "+t);e.Ua=t}else e.Ua=null}function re(e,t,n){t instanceof pe?e.a=t:(n||(t=oe(t,ue)),e.a=new pe(t))}function ie(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function oe(e,t,n){return null!=e?(e=encodeURI(e).replace(t,ae),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ae(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(r=ee.prototype).ka="",r.Ka="",r.ja="",r.Ua=null,r.ba="",r.Ba="",r.toString=function(){var e=[],t=this.ka;if(t&&e.push(oe(t,se,!0),":"),t=this.ja){e.push("//");var n=this.Ka;n&&e.push(oe(n,se,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Ua)&&e.push(":",String(t))}return(t=this.ba)&&(this.ja&&"/"!=t.charAt(0)&&e.push("/"),e.push(oe(t,"/"==t.charAt(0)?ce:le,!0))),(t=this.a.toString())&&e.push("?",t),(t=this.Ba)&&e.push("#",oe(t,de)),e.join("")},r.resolve=function(e){var t=this.clone();"data"===t.ka&&(t=new ee);var n=!!e.ka;n?te(t,e.ka):n=!!e.Ka,n?t.Ka=e.Ka:n=!!e.ja,n?t.ja=e.ja:n=null!=e.Ua;var r=e.ba;if(n)ne(t,e.Ua);else if(n=!!e.ba){if("/"!=r.charAt(0))if(this.ja&&!this.ba)r="/"+r;else{var i=t.ba.lastIndexOf("/");-1!=i&&(r=t.ba.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a=e.j){if(!e.c)throw new fe(2,7,1010);e.a=1,e.b=e.f}return t=e.a,e.a++,0==t?r.return():(n=e.b*(1+(2*Math.random()-1)*e.h),b(r,new Promise((function(e){new ve(e).O(n/1e3)})),2))}e.b*=e.g,E(r)}))}function ye(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function _e(e,t){this.promise=e,this.c=t,this.a=!1}function be(e){return new _e(Promise.reject(e),(function(){return Promise.resolve()}))}function Ee(){var e=Promise.reject(new fe(2,7,7001));return e.catch((function(){})),new _e(e,(function(){return Promise.resolve()}))}function Se(e){return new _e(Promise.resolve(e),(function(){return Promise.resolve()}))}function Te(e){return new _e(e,(function(){return e.catch((function(){}))}))}function Oe(){}function Ae(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(Ce(e)==Ce(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;for(var n=Ie(e),r=Ie(t),i=c(X(e.byteLength)),o=i.next();!o.done;o=i.next())if(n[o=o.value]!=r[o])return!1;return!0}function Ce(e){return e instanceof ArrayBuffer?e:e.buffer}function Pe(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Ie(e,t,n){return Ne(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Re(e,t,n){return Ne(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Ne(e,t,n,r){var i=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,i)),new r(Ce(e),t,Math.min(t+Math.max(n,0),i)-t)}function ke(t,n){for(var r in n=void 0===n?{}:n)Object.defineProperty(this,r,{value:n[r],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.a=!1}function Le(){this.a={}}function we(){this.Zb=new Le,this.Bc=this}function De(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var r=n.constructor==Array;if(n.constructor!=Object&&!r)return null;t.add(n);var i,o=r?[]:{};for(i in n)o[i]=e(n[i]);return r&&(o.length=n.length),o}}(e)}function Me(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function xe(e,t){var n=e.indexOf(t);-1=r.priority)&&(Ye[e]={priority:n,Jd:t})}function je(e,t){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null}}function He(e,t,n,r,i,o,a){var s=new ee(n.uris[i]),l=s.ka,c=!1;l||(te(s,l=(l=location.protocol).slice(0,-1)),n.uris[i]=s.toString()),l=l.toLowerCase();var u,d=(l=Ye[l])?l.Jd:null;return d?Te(ge(r)).W((function(){return e.f?Ee():(u=Date.now(),d(n.uris[i],n,t,(function(n,r,i){e.c&&t==Ke&&(e.c(n,r),c=!0,a.a=i)})))})).W((function(e){return null==e.timeMs&&(e.timeMs=Date.now()-u),{response:e,Dd:c}}),(function(s){if(e.f)return Ee();if(s instanceof fe){if(7001==s.code)throw s;if(1010==s.code)throw o;if(1==s.severity){var l=new ke("retry",{error:s});return e.dispatchEvent(l),i=(i+1)%n.uris.length,He(e,t,n,r,i,s,a)}}throw s})):be(new fe(2,1,1e3,s))}function Ge(){this.a=0}function qe(e,t,n){_e.call(this,e,t),this.b=n}(r=pe.prototype).aa=null,r.wb=null,r.add=function(e,t){if(!this.aa&&(this.aa={},this.wb=0,this.a))for(var n=this.a.split("&"),r=0;r=n[e]}if(!e)return"";var n=Ie(e);if(239==n[0]&&187==n[1]&&191==n[2])return nt(n);if(254==n[0]&&255==n[1])return rt(n.subarray(2),!1);if(255==n[0]&&254==n[1])return rt(n.subarray(2),!0);if(0==n[0]&&0==n[2])return rt(e,!1);if(0==n[1]&&0==n[3])return rt(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return nt(e);throw new fe(2,2,2003)}function ot(e){e=encodeURIComponent(e);var t=unescape(e);e=new Uint8Array(t.length);for(var n=(t=c(Q(t))).next();!n.done;n=t.next())e[(n=n.value).$]=n.item.charCodeAt(0);return Pe(e)}function at(e,t){for(var n=new ArrayBuffer(2*e.length),r=new DataView(n),i=c(Q(e)),o=i.next();!o.done;o=i.next())o=o.value,r.setUint16(2*o.$,o.item.charCodeAt(0),t);return n}function st(e){return lt.value()(e)}et.prototype.value=function(){return null==this.a&&(this.a=this.b()),this.a},z("shaka.util.StringUtils",tt),tt.resetFromCharCode=function(){lt.a=void 0},tt.toUTF16=at,tt.toUTF8=ot,tt.fromBytesAutoDetect=it,tt.fromUTF16=rt,tt.fromUTF8=nt;var lt=new et((function(){function e(e){try{var t=new Uint8Array(e);return 0i&&(i+=Math.pow(2,32)),i="0x"+i.toString(16)}e.g(new fe(2,6,6006,t.message,t,i))}}))}(e,t,n)}function Jt(e){return e?e.keySystem:""}function $t(e,t){return!!Lt("Edge/")||e.v.has(t.toLowerCase())}function Xt(e){return e=$(e=e.f.keys(),(function(e){return e.sessionId})),Array.from(e)}function Qt(e,t){var n,r,i,o,a,s,l,u,d,p,f,h,v,m,g,y,_,E,T,C,P;return w((function(I){switch(I.a){case 1:if(1==t.size&&t.has(""))throw new fe(2,6,6e3);for(n=c(t.values()),r=n.next();!r.done;r=n.next())0==(i=r.value).audioCapabilities.length&&delete i.audioCapabilities,0==i.videoCapabilities.length&&delete i.videoCapabilities;a=c([!0,!1]),s=a.next();case 2:if(s.done){I.m(4);break}l=s.value,u=c(t.keys()),d=u.next();case 5:if(d.done){I.m(7);break}if(p=d.value,f=t.get(p),f.drmInfos.some((function(e){return!!e.licenseServerUri}))!=l){I.m(6);break}return S(I,8),b(I,navigator.requestMediaKeySystemAccess(p,[f]),10);case 10:o=I.b,I.m(7);break;case 8:A(I);case 9:$e(e.B);case 6:d=u.next(),I.m(5);break;case 7:if(o){I.m(4);break}s=a.next(),I.m(2);break;case 4:if(!o)throw new fe(2,6,6001);for($e(e.B),S(I,11),e.v.clear(),h=o.getConfiguration(),v=h.audioCapabilities||[],m=h.videoCapabilities||[],g=c(v),y=g.next();!y.done;y=g.next())_=y.value,e.v.add(_.contentType.toLowerCase());for(E=c(m),y=E.next();!y.done;y=E.next())T=y.value,e.v.add(T.contentType.toLowerCase());if(e.c=function(e,t){var n=[],r=[],i=[],o=new Set;return function(e,t,n,r,i){for(var o={},a=(e=c(e)).next();!a.done;o={da:o.da},a=e.next()){if(o.da=a.value,t.includes(o.da.licenseServerUri)||t.push(o.da.licenseServerUri),o.da.serverCertificate&&(n.some(function(e){return function(t){return Ae(t,e.da.serverCertificate)}}(o))||n.push(o.da.serverCertificate)),o.da.initData){a={};for(var s=c(o.da.initData),l=s.next();!l.done;a={mb:a.mb},l=s.next())a.mb=l.value,r.some(function(e){return function(t){var n=e.mb;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&Ae(t.initData,n.initData)}}(a))||r.push(a.mb)}if(o.da.keyIds)for(s=(a=c(o.da.keyIds)).next();!s.done;s=a.next())i.add(s.value)}}(t.drmInfos,n,r,i,o),{keySystem:e,licenseServerUri:n[0],distinctiveIdentifierRequired:"required"==t.distinctiveIdentifier,persistentStateRequired:"required"==t.persistentState,audioRobustness:(t.audioCapabilities?t.audioCapabilities[0].robustness:"")||"",videoRobustness:(t.videoCapabilities?t.videoCapabilities[0].robustness:"")||"",serverCertificate:r[0],initData:i,keyIds:o}}(o.keySystem,t.get(o.keySystem)),!e.c.licenseServerUri)throw new fe(2,6,6012,e.c.keySystem);return b(I,o.createMediaKeys(),13);case 13:C=I.b,$e(e.B),e.h=C,e.N=!0,O(I,0);break;case 11:if(P=A(I),$e(e.B,P),e.c=null,e.v.clear(),P instanceof fe)throw P;throw new fe(2,6,6002,P.message)}}))}function Zt(e,t){var n,r,i,o,a;return w((function(s){switch(s.a){case 1:try{n=e.h.createSession("persistent-license")}catch(t){return r=new fe(2,6,6005,t.message),e.g(r),s.return(Promise.reject(r))}return e.b.C(n,"message",(function(t){e.a&&e.i.delayLicenseRequestUntilPlayed&&e.a.paused&&!e.L?e.D.push(t):tn(e,t)})),e.b.C(n,"keystatuseschange",(function(t){return nn(e,t)})),i={initData:null,loaded:!1,nc:1/0,pa:null},e.f.set(n,i),S(s,2),b(s,n.load(t),4);case 4:return o=s.b,$e(e.B),o?(i.loaded=!0,sn(e)&&e.j.resolve(),s.return(n)):(e.f.delete(n),e.g(new fe(2,6,6013)),s.return(Promise.resolve()));case 2:a=A(s),$e(e.B,a),e.f.delete(n),e.g(new fe(2,6,6005,a.message));case 3:return s.return(Promise.resolve())}}))}function en(e,t,n){return"skd"==t&&(t=n.serverCertificate,e=dt(e,n=ut(e),t)),e}function tn(e,t){var n,r,i,o,a,s,l,u,d,p,f,h;w((function(v){switch(v.a){case 1:return n=t.target,e.i.logLicenseExchange&&Ft(t.message),r=e.f.get(n),i=e.c.licenseServerUri,o=e.i.advanced[e.c.keySystem],"individualization-request"==t.messageType&&o&&o.individualizationServer&&(i=o.individualizationServer),(a=je([i],e.i.retryParameters)).body=t.message,a.method="POST",a.licenseRequestType=t.messageType,a.sessionId=n.sessionId,"com.microsoft.playready"!=e.c.keySystem&&"com.chromecast.playready"!=e.c.keySystem||function(e){var t=rt(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((t=(new DOMParser).parseFromString(t,"application/xml")).getElementsByTagName("HttpHeader")),r=n.next();!r.done;r=n.next())r=r.value,e.headers[r.getElementsByTagName("name")[0].textContent]=r.getElementsByTagName("value")[0].textContent;e.body=zt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(a),s=Date.now(),S(v,2),b(v,e.s.Sa.request(2,a).promise,4);case 4:l=v.b,O(v,3);break;case 2:return u=A(v),d=new fe(2,6,6007,u),e.g(d),r&&r.pa&&r.pa.reject(d),v.return();case 3:return e.B.a?v.return():(e.G+=(Date.now()-s)/1e3,e.i.logLicenseExchange&&Ft(l.data),S(v,5),b(v,n.update(l.data),7));case 7:O(v,6);break;case 5:return p=A(v),f=new fe(2,6,6008,p.message),e.g(f),r&&r.pa&&r.pa.reject(f),v.return();case 6:h=new ke("drmsessionupdate"),e.s.onEvent(h),r&&(r.pa&&r.pa.resolve(),new ve((function(){r.loaded=!0,sn(e)&&e.j.resolve()})).O(un)),E(v)}}))}function nn(e,t){var n=t.target,r=e.f.get(n),i=!1;n.keyStatuses.forEach((function(t,n){if("string"==typeof n){var o=n;n=t,t=o}if("com.microsoft.playready"==e.c.keySystem&&16==n.byteLength&&(Lt("Trident/")||Lt("Edge/"))){var a=(o=Re(n)).getUint32(0,!0),s=o.getUint16(4,!0),l=o.getUint16(6,!0);o.setUint32(0,a,!1),o.setUint16(4,s,!1),o.setUint16(6,l,!1)}"com.microsoft.playready"==e.c.keySystem&&"status-pending"==t&&(t="usable"),"status-pending"!=t&&(r.loaded=!0),"expired"==t&&(i=!0),o=Vt(n),e.Y.set(o,t)}));var o=n.expiration-Date.now();(0>o||i&&1e3>o)&&r&&!r.pa&&(e.f.delete(n),n.close().catch((function(){}))),sn(e)&&(e.j.resolve(),e.M.O(dn))}function rn(e){var t;return w((function(n){return t=Array.from(e.f.keys()),e.f.clear(),b(n,Promise.all(t.map((function(e){return w((function(t){return 1==t.a?(S(t,2),b(t,function(e){var t;return w((function(n){return 1==n.a?(t=new Promise((function(e,t){new ve(t).O(cn)})),S(n,2),b(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.a?O(n,0):(A(n),void E(n))}))}(e),4)):2!=t.a?O(t,0):(A(t),void E(t))}))}))),0)}))}function on(e,t){var n=t.audio,r=t.video;if(n&&n.encrypted&&!$t(e,At(n.mimeType,n.codecs))||r&&r.encrypted&&!$t(e,At(r.mimeType,r.codecs)))return!1;var i=Jt(e.c);return 0==(n=(r?r.drmInfos:[]).concat(n?n.drmInfos:[])).length||n.some((function(e){return e.keySystem==i}))}function an(e,t){if(e.length&&t.length){if(e.length)if(t.length)for(var n=[],r=c(e),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=c(t),a=o.next();!a.done;a=o.next())if(a=a.value,i.keySystem==a.keySystem){o=(o=(o=[]).concat(i.initData||[])).concat(a.initData||[]);var s=i.keyIds&&a.keyIds?new Set(u(i.keyIds).concat(u(a.keyIds))):i.keyIds||a.keyIds;n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||a.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||a.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||a.persistentStateRequired,videoRobustness:i.videoRobustness||a.videoRobustness,audioRobustness:i.audioRobustness||a.audioRobustness,serverCertificate:i.serverCertificate||a.serverCertificate,initData:o,keyIds:s});break}}else n=e;else n=t;n=0e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function mn(e,t,n){return n=void 0===n?0:n,!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t+n>=e.start(0)}function gn(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,r=c(yn(e)),i=r.next();!i.done;i=r.next()){var o=i.value;i=o.start,(o=o.end)>t&&(n+=o-Math.max(i,t))}return n}function yn(e){if(!e)return[];for(var t=[],n=c(X(e.length)),r=n.next();!r.done;r=n.next())r=r.value,t.push({start:e.start(r),end:e.end(r)});return t}function _n(){var e=this;this.a=new muxjs.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.b=null,this.h=[],this.c=[],this.g=[],this.f=!1,this.a.on("data",(function(t){e.c=t.captions,e.g=t.metadata,e.h.push(jt(t.initSegment,t.data))})),this.a.on("done",(function(){var t={data:jt.apply(xt,u(e.h)),captions:e.c,metadata:e.g};e.b.resolve(t),e.f=!1}))}function bn(t,n){if(!e.muxjs||"mp2t"!=t.toLowerCase().split(";")[0].split("/")[1])return!1;if(n)return MediaSource.isTypeSupported(En(n,t));var r=En("audio",t),i=En("video",t);return MediaSource.isTypeSupported(r)||MediaSource.isTypeSupported(i)}function En(e,t){var n=t.replace(/mp2t/i,"mp4");"audio"==e&&(n=n.replace("video","audio"));var r=/avc1\.(66|77|100)\.(\d+)/.exec(n);if(r){var i="avc1.",o=r[1],a=Number(r[2]);i=("66"==o?i+"4200":"77"==o?i+"4d00":i+"6400")+(a>>4).toString(16),i+=(15&a).toString(16),n=n.replace(r[0],i)}return n}function Sn(e,t,n){this.startTime=e,this.direction=In,this.endTime=t,this.payload=n,this.region=new xn,this.position=null,this.positionAlign=Tn,this.size=0,this.textAlign=On,this.writingMode=Rn,this.lineInterpretation=Nn,this.line=null,this.lineHeight="",this.lineAlign=kn,this.displayAlign=Cn,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=wn,this.fontStyle=Dn,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.spacer=!1,this.cellResolution={columns:32,rows:15}}fn.prototype.init=function(e){var t=muxjs.mp4.probe;e=Ie(e),this.g=t.videoTrackIds(e),this.f=t.timescale(e),this.a.init()},fn.prototype.b=function(e,t){var n=Ie(e);(n=this.a.parse(n,this.g,this.f))&&n.captions&&t(n.captions),this.a.clearParsedCaptions()},fn.prototype.c=function(){this.a.resetCaptionStream()},hn.prototype.init=function(){},hn.prototype.b=function(){},hn.prototype.c=function(){},_n.prototype.destroy=function(){return this.a.dispose(),this.a=null,Promise.resolve()},Sn.prototype.clone=function(){var e,t=new Sn(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},z("shaka.text.Cue",Sn);var Tn="auto";Sn.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Tn};var On="center",An={LEFT:"left",RIGHT:"right",CENTER:On,START:"start",END:"end"};Sn.textAlign=An;var Cn="after",Pn={BEFORE:"before",CENTER:"center",AFTER:Cn};Sn.displayAlign=Pn;var In="ltr";Sn.direction={HORIZONTAL_LEFT_TO_RIGHT:In,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Rn="horizontal-tb";Sn.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Rn,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Nn=0;Sn.lineInterpretation={LINE_NUMBER:Nn,PERCENTAGE:1};var kn="start",Ln={CENTER:"center",START:kn,END:"end"};Sn.lineAlign=Ln;var wn=400;Sn.fontWeight={NORMAL:wn,BOLD:700};var Dn="normal",Mn={NORMAL:Dn,ITALIC:"italic",OBLIQUE:"oblique"};function xn(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Un,this.scroll=Fn}Sn.fontStyle=Mn,Sn.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},z("shaka.text.CueRegion",xn);var Un=1;xn.units={PX:0,PERCENTAGE:Un,LINES:2};var Fn="";function zn(e){this.o=null,this.c=e,this.f=this.v=0,this.g=1/0,this.b=this.a=null,this.j="",this.h=new Map}function Bn(t){return!!(jn[t]||e.muxjs&&"application/cea-608"==t)}function Vn(e,t,n,r,i){for(var o=n+" "+r,a=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,a.has(s)||a.set(s,new Map),a.get(s).has(o)||a.get(s).set(o,[]),l.startTime+=i,l.endTime+=i,l.startTime>=e.f&&l.startTime=n.b||(e<=n.a&&t>=n.b?n.a=n.b=null:e<=n.a&&tn.a&&t>=n.b&&(n.b=e)),E(r)}))},z("shaka.text.TextEngine",zn),zn.prototype.destroy=zn.prototype.destroy,zn.unregisterParser=function(e){delete jn[e]},zn.registerParser=function(e,t){jn[e]=t};var jn={};function Hn(e,t,n,r){var i=this;this.a=e,this.h=n,this.f={},this.c=null,this.D=r||function(){},this.g={},this.b=new Xe,this.o={},this.v=t,this.A=new ye,this.j=function(e,t){var n=new MediaSource;return e.b.fa(n,"sourceopen",t.resolve),e.a.src=ir(n),n}(this,this.A),this.B=new Je((function(){return function(e){var t,n,r,i,o,a,s;return w((function(l){if(1==l.a){for(n in t=[],e.g)for(r=e.g[n],i=r[0],e.g[n]=r.slice(0,1),i&&t.push(i.p.catch(yt)),o=c(r.slice(1)),a=o.next();!a.done;a=o.next())a.value.p.reject(new fe(2,7,7003,void 0));for(s in e.c&&t.push(e.c.destroy()),e.h&&t.push(e.h.destroy()),e.o)t.push(e.o[s].destroy());return b(l,Promise.all(t),2)}e.b&&(e.b.release(),e.b=null),e.a&&(e.a.removeAttribute("src"),e.a.load(),e.a=null),e.j=null,e.c=null,e.h=null,e.f={},e.o={},e.v=null,e.g={},E(l)}))}(i)}))}function Gn(e){var t=At(e.mimeType,e.codecs),n=function(e){var t=[e.mimeType];return Pt.forEach((function(n,r){var i=e[r];i&&t.push(n+'="'+i+'"')})),t.join(";")}(e);return Bn(t)||MediaSource.isTypeSupported(n)||bn(t,e.type)}function qn(e,t){e.c||(e.c=new zn(e.h)),"application/cea-608"!=t&&(e.c.o=bt(jn[t]))}function Kn(e){return!e.j||"ended"==e.j.readyState}function Wn(e,t){if("text"==t)var n=e.c.a;else n=!(n=Jn(e,t))||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function Yn(e,t){return"text"==t?e.c.b:vn(Jn(e,t))}function Jn(e,t){try{return e.f[t].buffered}catch(e){return null}}function $n(t,n,r,i,o,a){var s,l,c,u;return w((function(d){return 1==d.a?n==(s=St).U?b(d,function(e,t,n,r){var i,o,a;return w((function(s){return 1==s.a?b(s,Promise.resolve(),2):e.o&&e.c?null==n||null==r?(e.o.parseInit(Ie(t)),s.return()):(i={periodStart:e.v,segmentStart:n,segmentEnd:r},o=e.o.parseMedia(Ie(t),i),a=o.filter((function(t){return t.startTime>=e.f&&t.startTime=n?Zn(e,t):e.f[t].remove(0,n)})),0)}))}function Zn(e,t){var n=e.g[t][0];n&&(n.p.resolve(),nr(e,t))}function er(e,t,n){return $e(e.B),n={start:n,p:new ye},e.g[t].push(n),1==e.g[t].length&&rr(e,t),n.p}function tr(e,t){var n,r,i,o,a;return w((function(s){switch(s.a){case 1:for(i in $e(e.B),n=[],r={},e.f)r.Xa=new ye,o={start:function(e){return function(){return e.Xa.resolve()}}(r),p:r.Xa},e.g[i].push(o),n.push(r.Xa),1==e.g[i].length&&o.start(),r={Xa:r.Xa};return S(s,2),b(s,Promise.all(n),4);case 4:O(s,3);break;case 2:throw A(s);case 3:try{t()}catch(e){throw new fe(2,3,3015,e)}finally{for(a in e.f)nr(e,a)}E(s)}}))}function nr(e,t){e.g[t].shift(),rr(e,t)}function rr(e,t){var n=e.g[t][0];if(n)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new fe(2,3,3017,t)):n.p.reject(new fe(2,3,3015,r)),nr(e,t)}}(r=Hn.prototype).destroy=function(){return this.B.destroy()},r.init=function(e,t){var n,r,i,o,a,s,l,u=this;return w((function(d){if(1==d.a)return n=St,b(d,u.A,2);for(r={},i=c(e.keys()),o=i.next();!o.done;r={ca:r.ca},o=i.next())r.ca=o.value,a=e.get(r.ca),s=At(a.mimeType,a.codecs),r.ca==n.U?qn(u,s):(!t&&MediaSource.isTypeSupported(s)||!bn(s,r.ca)||(u.o[r.ca]=new _n,s=En(r.ca,s)),l=u.j.addSourceBuffer(s),u.b.C(l,"error",function(e){return function(){u.g[e.ca][0].p.reject(new fe(2,3,3014,u.a.error?u.a.error.code:0))}}(r)),u.b.C(l,"updateend",function(e){return function(){return Zn(u,e.ca)}}(r)),u.f[r.ca]=l,u.g[r.ca]=[]);E(d)}))},r.zb=function(){var e={total:yn(this.a.buffered),audio:yn(Jn(this,"audio")),video:yn(Jn(this,"video")),text:[]};if(this.c){var t=this.c.a,n=this.c.b;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},r.remove=function(e,t,n){var r=this;return w((function(i){return b(i,e==St.U?r.c.remove(t,n):er(r,e,(function(){n<=t?Zn(r,e):r.f[e].remove(t,n)})),0)}))},r.flush=function(e){var t=this;return w((function(n){return e==St.U?n.return():b(n,er(t,e,(function(){t.a.currentTime-=.001,Zn(t,e)})),0)}))},r.endOfStream=function(e){var t=this;return w((function(n){return b(n,tr(t,(function(){Kn(t)||(e?t.j.endOfStream(e):t.j.endOfStream())})),0)}))},r.wa=function(e){var t=this;return w((function(n){return b(n,tr(t,(function(){t.j.duration=e})),0)}))},r.getDuration=function(){return this.j.duration};var ir=e.URL.createObjectURL;function or(e,t){return e=lr(e),t=lr(t),e.split("-")[0]==t.split("-")[0]}function ar(e,t){e=lr(e),t=lr(t);var n=e.split("-"),r=t.split("-");return n[0]==r[0]&&1==n.length&&2==r.length}function sr(e,t){e=lr(e),t=lr(t);var n=e.split("-"),r=t.split("-");return 2==n.length&&2==r.length&&n[0]==r[0]}function lr(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=pr.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function cr(e,t){return e=lr(e),(t=lr(t))==e?4:ar(t,e)?3:sr(t,e)?2:ar(e,t)?1:0}function ur(e){return e.language?lr(e.language):e.audio&&e.audio.language?lr(e.audio.language):e.video&&e.video.language?lr(e.video.language):"und"}function dr(e,t){for(var n=lr(e),r=new Set,i=c(t),o=i.next();!o.done;o=i.next())r.add(lr(o.value));for(o=(i=c(r)).next();!o.done;o=i.next())if((o=o.value)==n)return o;for(o=(i=c(r)).next();!o.done;o=i.next())if(ar(o=o.value,n))return o;for(o=(i=c(r)).next();!o.done;o=i.next())if(sr(o=o.value,n))return o;for(o=(r=c(r)).next();!o.done;o=r.next())if(ar(n,o=o.value))return o;return null}var pr=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function fr(e,t){function n(e){var t="";e.video&&(t=Ct(e.video.codecs)[0]);var n="";return e.audio&&(n=Ct(e.audio.codecs)[0]),t+"-"+n}for(var r=Sr(e.variants,t),i=new Le,o=(r=c(r)).next();!o.done;o=r.next()){var a=n(o=o.value);i.push(a,o)}var s=null,l=1/0;!function(e,t){for(var n in e.a)t(n,e.a[n])}(i,(function(e,t){for(var n=0,r=0,i=c(t),o=i.next();!o.done;o=i.next())n+=o.value.bandwidth||0,++r;(n/=r)=t&&e<=n}var i=e.video;return!(i&&i.width&&i.height&&(!r(i.width,t.minWidth,Math.min(t.maxWidth,n.width))||!r(i.height,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function vr(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function mr(e){var t=e.audio,n=e.video,r=t?t.codecs:null,i=n?n.codecs:null,o=[];i&&o.push(i),r&&o.push(r);var a=[];n&&a.push(n.mimeType),t&&a.push(t.mimeType),a=a[0]||null;var s=[];t&&s.push(t.kind),n&&s.push(n.kind),s=s[0]||null;var l=new Set;if(t)for(var u=c(t.roles),d=u.next();!d.done;d=u.next())l.add(d.value);if(n)for(d=(u=c(n.roles)).next();!d.done;d=u.next())l.add(d.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:s,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:a,codecs:o.join(", "),audioCodec:r,videoCodec:i,primary:e.primary,roles:Array.from(l),audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.label=t.label,e.audioRoles=t.roles),e}function gr(e){return{id:e.id,active:!1,type:"text",bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:e.mimeType,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId}}function yr(e){return e.__shaka_id||(e.__shaka_id=Ar++),e.__shaka_id}function _r(e){var t=br(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind]),t}function br(e){return{id:yr(e),active:!1,type:"",bandwidth:0,language:lr(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null}}function Er(e){return e.allowedByApplication&&e.allowedByKeySystem}function Sr(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),r=new Map,i=(n=c(n)).next();!i.done;i=n.next()){var o=(i=i.value).audio.channelsCount;r.has(o)||r.set(o,[]),r.get(o).push(i)}return 0==(n=Array.from(r.keys())).length?e:(i=n.filter((function(e){return e<=t}))).length?r.get(Math.max.apply(Math,u(i))):r.get(Math.min.apply(Math,u(n)))}function Tr(e,t,n){var r=e,i=e.filter((function(e){return e.primary}));i.length&&(r=i);var o=r.length?r[0].language:"";if(r=r.filter((function(e){return e.language==o})),t){var a=dr(lr(t),e.map((function(e){return e.language})));a&&(r=e.filter((function(e){return lr(e.language)==a})))}if(n){if((e=Or(r,n)).length)return e}else if((e=r.filter((function(e){return 0==e.roles.length}))).length)return e;return(e=r.map((function(e){return e.roles})).reduce(gt,[])).length?Or(r,e[0]):r}function Or(e,t){return e.filter((function(e){return e.roles.includes(t)}))}var Ar=0;function Cr(){this.h=null,this.c=!1,this.a=new H,this.b=[],this.g=1,this.j=!1,this.i=this.f=null}function Pr(e,t){return e&&(t=t.filter((function(t){return hr(t,e,{width:1/0,height:1/0})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}function Ir(e,t,n,r){this.a=e,this.type=t,this.P=n,this.segments=r||null}function Rr(e,t,n,r){this.id=e,this.name=t,this.a=n,this.value=void 0===r?null:r}function Nr(e,t){var n=e.a.filter((function(e){return e.name==t}));return n.length?n[0]:null}function kr(e,t,n){return(e=Nr(e,t))?e.value:n||null}function Lr(e,t){var n=Nr(e,t);if(!n)throw new fe(2,4,4023,t);return n.value}function wr(e,t){this.P=t,this.a=e}function Dr(e,t){this.name=e,this.value=t}function Mr(e,t){return e.filter((function(e){return e.name==t}))}function xr(e,t){return e.filter((function(e){return Lr(e,"TYPE")==t}))}function Ur(e,t){var n=Mr(e,t);return n.length?n[0]:null}function Fr(e,t,n){return n=void 0===n?0:n,(e=Ur(e,t))?Number(e.value):n}function zr(e){this.b=e,this.a=0}function Br(e){Vr(e,/[ \t]+/gm)}function Vr(e,t){t.lastIndex=e.a;var n=t.exec(e.b);return n=null==n?null:{position:n.index,length:n[0].length,results:n},e.a==e.b.length||null==n||n.position!=e.a?null:(e.a+=n.length,n.results)}function jr(e){return e.a==e.b.length?null:(e=Vr(e,/[^ \t\n]*/gm))?e[0]:null}function Hr(){this.a=0}function Gr(e,t,n){var r=(t=(t=nt(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new fe(2,4,4015);t=0;for(var i=!0,o=c(r),a=o.next();!a.done;a=o.next())if(a=a.value,/^#(?!EXT)/m.test(a)||i)i=!1;else{if(a=qr(e.a++,a),--e.a,Kr.includes(a.name)){t=1;break}"EXT-X-STREAM-INF"==a.name&&(i=!0)}o=[],i=!0;for(var s=(a=c(Q(r))).next();!s.done;s=a.next()){var l=s.value;s=l.$;var u=l.item;if(l=l.next,/^#(?!EXT)/m.test(u)||i)i=!1;else{if(u=qr(e.a++,u),Wr.includes(u.name)){if(1!=t)throw new fe(2,4,4017);for(u=r.splice(s,r.length-s),r=n,i=[],a=[],s=null,l=(u=c(u)).next();!l.done;l=u.next())l=l.value,/^(#EXT)/.test(l)?(l=qr(e.a++,l),Kr.includes(l.name)?o.push(l):"EXT-X-MAP"==l.name?s=l:a.push(l)):/^#(?!EXT)/m.test(l)||(l=Et([r],[l.trim()])[0],s&&a.push(s),i.push(new wr(l,a)),a=[]);return new Ir(n,t,o,i)}o.push(u),"EXT-X-STREAM-INF"==u.name&&(u.a.push(new Dr("URI",l)),i=!0)}}return new Ir(n,t,o)}function qr(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new fe(2,4,4016,t);var r,i=n[1],o=n[2];if(n=[],o){var a;(a=Vr(o=new zr(o),/^([^,=]+)(?:,|$)/g))&&(r=a[1]);for(var s=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;a=Vr(o,s);)n.push(new Dr(a[1],a[2]||a[3]))}return new Rr(e,i,n,r)}(r=Cr.prototype).stop=function(){this.h=null,this.c=!1,this.b=[],this.g=1,this.f=null},r.init=function(e){this.h=e},r.chooseVariant=function(){var e=Pr(this.i.restrictions,this.b),t=this.a.getBandwidthEstimate(this.i.defaultBandwidthEstimate);this.b.length&&!e.length&&(e=[(e=Pr(null,this.b))[0]]);for(var n=e[0]||null,r=(e=c(Q(e))).next();!r.done;r=e.next()){var i=r.value;r=i.item;var o=isNaN(this.g)?1:Math.abs(this.g);i=o*(i.next||{bandwidth:1/0}).bandwidth/this.i.bandwidthUpgradeTarget,t>=o*r.bandwidth/this.i.bandwidthDowngradeTarget&&t<=i&&(n=r)}return this.f=Date.now(),n},r.enable=function(){this.c=!0},r.disable=function(){this.c=!1},r.segmentDownloaded=function(e,t){var n=this.a;if(!(16e3>t)){var r=8e3*t/e,i=e/1e3;n.a+=t,V(n.b,i,r),V(n.c,i,r)}if(null!=this.f&&this.c)e:{if(this.j){if(Date.now()-this.f<1e3*this.i.switchInterval)break e}else{if(!(128e3<=this.a.a))break e;this.j=!0}n=this.chooseVariant(),this.a.getBandwidthEstimate(this.i.defaultBandwidthEstimate),n&&this.h(n)}},r.getBandwidthEstimate=function(){return this.a.getBandwidthEstimate(this.i.defaultBandwidthEstimate)},r.setVariants=function(e){this.b=e},r.playbackRateChanged=function(e){this.g=e},r.configure=function(e){this.i=e},z("shaka.abr.SimpleAbrManager",Cr),Cr.prototype.configure=Cr.prototype.configure,Cr.prototype.playbackRateChanged=Cr.prototype.playbackRateChanged,Cr.prototype.setVariants=Cr.prototype.setVariants,Cr.prototype.getBandwidthEstimate=Cr.prototype.getBandwidthEstimate,Cr.prototype.segmentDownloaded=Cr.prototype.segmentDownloaded,Cr.prototype.disable=Cr.prototype.disable,Cr.prototype.enable=Cr.prototype.enable,Cr.prototype.chooseVariant=Cr.prototype.chooseVariant,Cr.prototype.init=Cr.prototype.init,Cr.prototype.stop=Cr.prototype.stop,Rr.prototype.toString=function(){var e="#"+this.name,t=this.a?this.a.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0n.length||"data"!=n[0])throw new fe(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new fe(2,1,1004,t);var r=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=r.split(";"),r=n[0];var i=!1;return 1=n.startTime&&e(e-=this.c)||e>=this.a.length?null:this.a[e]},r.offset=function(e){for(var t=c(this.a),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},r.Fb=function(e){var t,n=this.a[this.a.length-1];t=this.a.length?e.filter((function(e){return e.startTime>=n.startTime})):e,n&&t.length&&t[0].startTime==n.startTime&&this.a.pop(),this.a.push.apply(this.a,u(t))},r.xb=function(e){var t=this.a.length;this.a=this.a.filter((function(t){return t.endTime>e})),this.c+=t-this.a.length},r.yb=function(e,t){for(;this.a.length&&this.a[this.a.length-1].startTime>=t;)this.a.pop();for(;this.a.length&&this.a[0].endTime<=e;)this.a.shift(),this.c++;if(0!=this.a.length){var n=this.a[this.a.length-1];this.a[this.a.length-1]=new Jr(n.startTime,t,n.c,n.b,n.a,n.f,n.timestampOffset,n.appendWindowStart,n.appendWindowEnd)}},r.Ac=function(e,t){var n=this;this.b&&this.b.stop(),this.b=new ve((function(){var e=t();n.a.push.apply(n.a,u(e)),0==n.a.length&&(n.b.stop(),n.b=null)})),this.b.ga(e)},ni.prototype[Symbol.iterator]=function(){return new ii(this)},z("shaka.media.SegmentIndex",ni),ni.forSingleSegment=ri,ni.prototype.updateEvery=ni.prototype.Ac,ni.prototype.fit=ni.prototype.yb,ni.prototype.evict=ni.prototype.xb,ni.prototype.merge=ni.prototype.Fb,ni.prototype.offset=ni.prototype.offset,ni.prototype.get=ni.prototype.get,ni.prototype.find=ni.prototype.find,ni.prototype.release=ni.prototype.release,ni.prototype.destroy=ni.prototype.destroy,ii.prototype.seek=function(e){return null==(e=this.b.find(e))?(this.a=Math.pow(2,31),null):(this.a=e,this.b.get(this.a++))},ii.prototype.current=function(){return this.b.get(this.a-1)},ii.prototype.next=function(){var e=this.b.get(this.a++);return{value:e,done:!e}},z("shaka.media.SegmentIterator",ii),ii.prototype.next=ii.prototype.next,ii.prototype.current=ii.prototype.current,ii.prototype.seek=ii.prototype.seek,m(oi,ni),(r=oi.prototype).clone=function(){var e=new oi;return e.f=this.f.slice(),e},r.release=function(){for(var e=c(this.f),t=e.next();!t.done;t=e.next())t.value.release();this.f=[]},r.find=function(e){for(var t=0,n=c(this.f),r=n.next();!r.done;r=n.next()){var i=(r=r.value).find(e);if(null!=i)return i+t;t+=r.c+r.a.length}return null},r.get=function(e){for(var t=0,n=c(this.f),r=n.next();!r.done;r=n.next()){var i=(r=r.value).get(e-t);if(i)return i;t+=r.c+r.a.length}return null},r.offset=function(){},r.Fb=function(){},r.xb=function(){},r.yb=function(){},r.Ac=function(){},z("shaka.media.MetaSegmentIndex",oi),oi.prototype.updateEvery=oi.prototype.Ac,oi.prototype.fit=oi.prototype.yb,oi.prototype.evict=oi.prototype.xb,oi.prototype.merge=oi.prototype.Fb,oi.prototype.offset=oi.prototype.offset,oi.prototype.get=oi.prototype.get,oi.prototype.find=oi.prototype.find,oi.prototype.release=oi.prototype.release,z("shaka.net.DataUriPlugin",ai),ai.parse=si,Ve("data",si),(r=ci.prototype).Eb=function(){return this.wthis.J.byteLength)throw ui();var t=Ie(this.J,this.w,e);return this.w+=e,t},r.skip=function(e){if(this.w+e>this.J.byteLength)throw ui();this.w+=e},r.Rc=function(e){if(this.we||e>this.J.byteLength)throw ui();this.w=e},r.rc=function(){for(var e=this.w;this.Eb()&&0!=this.J.getUint8(this.w);)this.w+=1;return e=Ie(this.J,e,this.w-e),this.w+=1,nt(e)},z("shaka.util.DataViewReader",ci),ci.prototype.readTerminatedString=ci.prototype.rc,ci.prototype.seek=ci.prototype.seek,ci.prototype.rewind=ci.prototype.Rc,ci.prototype.skip=ci.prototype.skip,ci.prototype.readBytes=ci.prototype.Ha,ci.prototype.readUint64=ci.prototype.Mb,ci.prototype.readInt32=ci.prototype.Qc,ci.prototype.readUint32=ci.prototype.K,ci.prototype.readUint16=ci.prototype.Lb,ci.prototype.readUint8=ci.prototype.na,ci.prototype.getLength=ci.prototype.nd,ci.prototype.getPosition=ci.prototype.wd,ci.prototype.hasMoreData=ci.prototype.Eb;var di=1;function pi(){this.c=[],this.b=[],this.a=!1}function fi(e){for(var t=null!=e.flags?12:8;e.reader.Eb()&&!e.parser.a;)e.parser.Jb(e.start+t,e.reader,e.partialOkay)}function hi(e){for(var t=null!=e.flags?12:8,n=e.reader.K(),r=(n=c(X(n))).next();!r.done&&(e.parser.Jb(e.start+t,e.reader,e.partialOkay),!e.parser.a);r=n.next());}function vi(e){return function(t){e(t.reader.Ha(t.reader.J.byteLength-t.reader.w))}}function mi(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function gi(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}ci.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:di},(r=pi.prototype).H=function(e,t){var n=mi(e);return this.c[n]=yi,this.b[n]=t,this},r.ea=function(e,t){var n=mi(e);return this.c[n]=_i,this.b[n]=t,this},r.stop=function(){this.a=!0},r.parse=function(e,t){var n=new ci(e,0);for(this.a=!1;n.Eb()&&!this.a;)this.Jb(0,n,t)},r.Jb=function(e,t,n){var r=t.w,i=t.K(),o=t.K();switch(i){case 0:i=t.J.byteLength-r;break;case 1:i=t.Mb()}var a=this.b[o];if(a){var s=null,l=null;this.c[o]==_i&&(s=(l=t.K())>>>24,l&=16777215),o=r+i,n&&o>t.J.byteLength&&(o=t.J.byteLength),a({parser:this,partialOkay:n||!1,version:s,flags:l,reader:t=new ci(t=0<(o-=t.w)?t.Ha(o):new Uint8Array(0),0),size:i,start:r+e})}else t.skip(Math.min(r+i-t.w,t.J.byteLength-t.w))},z("shaka.util.Mp4Parser",pi),pi.typeToString=gi,pi.allData=vi,pi.sampleDescription=hi,pi.children=fi,pi.prototype.parseNext=pi.prototype.Jb,pi.prototype.parse=pi.prototype.parse,pi.prototype.stop=pi.prototype.stop,pi.prototype.fullBox=pi.prototype.ea,pi.prototype.box=pi.prototype.H;var yi=0,_i=1;function bi(e,t,n,r){return e=je(e,r),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Ei(){var e=this;this.i=this.s=null,this.ra=1,this.j=new Map,this.g=new Map,this.ia=new Set,this.a=new Map,this.b=null,this.M="",this.G=new Hr,this.Y=0,this.h=new ve((function(){e.pc()})),this.c=Gi,this.l=null,this.N=0,this.S=1/0,this.o=new Fe,this.T=[],this.A=new Map,this.qa=!1,this.f=new Map,this.D=null,this.L=new Map,this.v=new Map}function Si(e,t){var n,r,i,o,a,s,l,c,u;return w((function(d){if(1==d.a)return n=Wi,r=t.ad,b(d,zi(e,je([r],e.i.retryParameters),0),2);if(3!=d.a){if(i=d.b,1!=(o=Gr(e.G,i.data,i.uri)).type)throw new fe(2,4,4017);return a=Mr(o.P,"EXT-X-DEFINE"),s=Ti(e,a),l=t.stream,b(d,ki(e,t.Pb,o,l.mimeType,t.Jc,s),3)}c=d.b,l.segmentIndex.Fb(c),c.length&&l.segmentIndex.xb(c[0].startTime),u=c[c.length-1],Ur(o.P,"EXT-X-ENDLIST")&&(Fi(e,n.Zc),e.b.wa(u.endTime)),E(d)}))}function Ti(e,t){for(var n=new Map,r=c(t),i=r.next();!i.done;i=r.next()){var o=i.value;i=kr(o,"NAME");var a=kr(o,"VALUE");o=kr(o,"IMPORT"),i&&a&&n.set(i,a),o&&(i=e.j.get(o))&&n.set(o,i)}return n}function Oi(e){var t=kr(e,"CODECS","avc1.42E01E,mp4a.40.2").split(/\s*,\s*/);e=new Set;for(var n=[],r=(t=c(t)).next();!r.done;r=t.next()){var i=Ct(r=r.value)[0];e.has(i)||(n.push(r),e.add(i))}return n}function Ai(e){return lr(e=kr(e,"LANGUAGE")||"und")}function Ci(e,t){var n,r,i,o,a,s,l,c,u,d,p,f;return w((function(h){if(1==h.a){n=Lr(t,"GROUP-ID"),r="";var v=Lr(t,"TYPE").toLowerCase();return"subtitles"==v&&(v="text"),"text"!=(i=v)&&n&&e.f.has(n)&&(r=e.f.get(n)),o=xi(Lr(t,"URI"),e.j),e.a.has(o)?h.return(e.a.get(o)):(a=Ai(t),s=kr(t,"NAME"),l=Nr(t,"DEFAULT"),c=Nr(t,"AUTOSELECT"),u=!!l||!!c,v="audio"==i&&(v=kr(t,"CHANNELS"))?parseInt(v.split("/")[0],10):null,d=v,p=kr(t,"CHARACTERISTICS"),b(h,Pi(e,o,r,i,a,u,s,d,null,p),2))}return f=h.b,e.g.has(n)?e.g.get(n).push(f):e.g.set(n,[f]),null==f?h.return(null):e.a.has(o)?h.return(e.a.get(o)):(e.a.set(o,f),h.return(f))}))}function Pi(e,t,n,r,i,o,a,s,l,d){var p,f,h,v,m,g,y,_,E,T,C,P,I,R,N,k,L,D,M,x,U,F,z,B,V,j,H,G,q,W,Y,J,$;return w((function(X){switch(X.a){case 1:return p=Et([e.M],[t])[0],b(X,zi(e,je([p],e.i.retryParameters),0),2);case 2:if(f=X.b,p=f.uri,1!=(h=Gr(e.G,f.data,p)).type)throw new fe(2,4,4017);if(v=[],h.segments)for(m=c(h.segments),g=m.next();!g.done;g=m.next())y=g.value,_=Mr(y.P,"EXT-X-KEY"),v.push.apply(v,u(_));for(E=!1,T=[],C=new Set,P=c(v),I=P.next();!I.done;I=P.next())if(R=I.value,"NONE"!=(N=Lr(R,"METHOD"))){if(E=!0,"AES-128"==N)return e.qa=!0,X.return(null);if(k=Lr(R,"KEYFORMAT"),D=(L=Hi[k])?L(R):null){if(D.keyIds)for(M=c(D.keyIds),x=M.next();!x.done;x=M.next())U=x.value,C.add(U);T.push(D)}}if(E&&!T.length)throw new fe(2,4,4026);return F=Mr(h.P,"EXT-X-DEFINE"),z=Ti(e,F),function(e,t){var n=Ur(t.P,"EXT-X-PLAYLIST-TYPE"),r=Ur(t.P,"EXT-X-ENDLIST");r=n&&"VOD"==n.value||r,n=n&&"EVENT"==n.value&&!r,n=!r&&!n,r?Fi(e,Gi):(Fi(e,n?Ki:qi),r=Ui(t.P,"EXT-X-TARGETDURATION"),r=Number(r.value),e.N=Math.max(r,e.N),e.S=Math.min(r,e.S))}(e,h),b(X,function(e,t,n,r,i){var o,a,s,l,c,u,d,p,f,h;return w((function(v){if(1==v.a)return o=St,a=Ke,s=xi(r.segments[0].a,i),l=new ee(s),c=l.ba.split(".").pop(),u=ji[t],(d=u[c])?v.return(d):t==o.U?n&&"vtt"!=n&&"wvtt"!=n?v.return("application/mp4"):v.return("text/vtt"):((p=je([s],e.i.retryParameters)).method="HEAD",b(v,zi(e,p,a),2));if(f=v.b,!(h=f.headers["content-type"]))throw new fe(2,4,4021,c);return v.return(h.split(";")[0])}))}(e,r,n,h,z),3);case 3:return B=X.b,Vi.includes(B)&&(n=""),V=new Map,S(X,4),b(X,ki(e,t,h,B,V,z),6);case 6:j=X.b,O(X,5);break;case 4:if(4035==(H=A(X)).code)return K("Skipping unsupported HLS stream",B,t),X.return(null);throw H;case 5:return G=j[0].startTime,q=j[j.length-1].endTime,W=new ni(j),Y="text"==r?"subtitle":void 0,J=[],d&&J.push(d),$={id:e.ra++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:W,mimeType:B,codecs:n,kind:Y,encrypted:E,drmInfos:T,keyIds:C,language:i,label:a,type:r,primary:o,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:J,channelsCount:s,audioSamplingRate:null,closedCaptions:l},X.return({stream:$,Pb:t,ad:p,Kc:G,Fd:q,Jc:V})}}))}function Ii(e,t,n,r){return(n=Ur(n,"EXT-X-MAP"))?(t=[r=xi(Et([t],[Lr(n,"URI")])[0],r),kr(n,"BYTERANGE","")].join("-"),e.L.has(t)||(n=function(e,t){var n=0,r=null,i=kr(t,"BYTERANGE");return i&&(n=i.split("@"),r=Number(n[0]),n=Number(n[1]),r=n+r-1),new Yr((function(){return[e]}),n,r)}(r,n),e.L.set(t,n)),e.L.get(t)):null}function Ri(e,t,n,r,i,o){var a=n.P,s=xi(n.a,o);n=Ui(a,"EXTINF").value.split(","),n=r+Number(n[0]),o=0;var l=null;return(a=Ur(a,"EXT-X-BYTERANGE"))&&(o=a.value.split("@"),a=Number(o[0]),l=(o=o[1]?Number(o[1]):t.a+1)+a-1),new Jr(r,n,(function(){return[s]}),o,l,e,i,0,1/0)}function Ni(e){if(e.b){for(var t=c(e.T),n=t.next();!n.done;n=t.next())e.b.mc(n.value);e.T=[]}}function ki(e,t,n,r,i,o){var a,s,l,u,d,p,f,h,v,m,g,y,_,E,S,T,O;return w((function(A){switch(A.a){case 1:if(a=n.segments,l=Fr(n.P,"EXT-X-MEDIA-SEQUENCE",0),e.c!=Gi&&i.has(l)){u=i.get(l),A.m(2);break}if(null!=e.D){A.m(3);break}return s=Ii(e,n.a,a[0].P,o),d=e,b(A,wi(e,t,s,r,l,!1,a[0],o),4);case 4:d.D=A.b;case 3:u=e.D;case 2:a[0].a.split("/").pop(),p=Fr(n.P,"EXT-X-DISCONTINUITY-SEQUENCE"),f=e.v.get(p)||0,h=[],v=c(function(e){return Q(e)}(a)),m=v.next();case 5:if(m.done){A.m(7);break}if(g=m.value,y=g.$,_=g.item,E=h[h.length-1],S=0==y?u:E.endTime,T=l+y,i.set(T,S),s=Ii(e,n.a,_.P,o),!Ur(_.P,"EXT-X-DISCONTINUITY")){A.m(8);break}return p++,b(A,function(e,t,n,r,i,o,a,s,l){var c,u;return w((function(d){return 1==d.a?(c=0,e.v.has(t)?(c=e.v.get(t),d.m(2)):b(d,wi(e,n,r,i,o,!0,a,s),3)):(2!=d.a&&(u=d.b,c=l-u,e.v.set(t,c)),d.return(c))}))}(e,p,t,s,r,T,_,o,S),9);case 9:f=A.b;case 8:O=Ri(s,E,_,S,f,o),h.push(O),m=v.next(),A.m(5);break;case 7:return e.T.push(h),Ni(e),A.return(h)}}))}function Li(e,t){var n,r,i,o,a,s;return w((function(l){switch(l.a){case 1:return n=Ke,r=bi(t.c(),t.b,t.a,e.i.retryParameters),e.i.hls.useFullSegmentsForStartTime?l.return(zi(e,r,n)):(i=bi(t.c(),t.b,t.b+2048-1,e.i.retryParameters),S(l,2),b(l,zi(e,i,n),4));case 4:return o=l.b,l.return(o);case 2:if(7001==(a=A(l)).code)throw a;return K("Unable to fetch a partial HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",i.uris[0]),b(l,zi(e,r,n),5);case 5:return s=l.b,l.return(s)}}))}function wi(e,t,n,r,i,o,a,s){var l,c,u,d,p,f,h,v;return w((function(m){switch(m.a){case 1:if(l=Ri(n,null,a,0,0,s),e.l&&!o&&(c=e.a.get(t),null!=(u=c.Jc.get(i))))return m.return(u);if(r=r.toLowerCase(),Vi.includes(r))throw K("Raw formats are not yet supported. Skipping "+r),new fe(1,4,4035);if("video/webm"==r)throw K("WebM in HLS is not yet supported. Skipping."),new fe(1,4,4035);if("video/mp4"!=r&&"audio/mp4"!=r){m.m(2);break}return d=[Li(e,l)],n&&d.push(Li(e,n)),b(m,Promise.all(d),3);case 3:return p=m.b,f=p[0],h=p[1]||p[0],m.return(function(e,t,n,r){var i=0;if((new pi).H("moov",fi).H("trak",fi).H("mdia",fi).ea("mdhd",(function(e){e.reader.skip(0==e.version?8:16),i=e.reader.K(),e.parser.stop()})).parse(r,!0),!i)throw new fe(2,4,4030,e,t);var o=0,a=!1;if((new pi).H("moof",fi).H("traf",fi).ea("tfdt",(function(e){o=(0==e.version?e.reader.K():e.reader.Mb())/i,a=!0,e.parser.stop()})).parse(n,!0),!a)throw new fe(2,4,4030,e,t);return o}(t,f.uri,f.data,h.data));case 2:if("video/mp2t"!=r){m.m(4);break}return b(m,Li(e,l),5);case 5:return v=m.b,m.return(function(e,t,n){function r(){o.seek(a+188),71!=(s=o.na())&&(o.seek(a+192),s=o.na()),71!=s&&(o.seek(a+204),s=o.na()),71!=s&&i(),o.Rc(1)}function i(){throw new fe(2,4,4030,e,t)}for(var o=new ci(n,0),a=0,s=0;;)if(a=o.w,71!=(s=o.na())&&i(),8191==(8191&(n=o.Lb())))r();else if(16384&n){if(0!=(n=(48&o.na())>>4)&&2!=n||i(),3==n&&(n=o.na(),o.skip(n)),1==o.K()>>8)return o.skip(3),0!=(n=o.na()>>6)&&1!=n||i(),0==o.na()&&i(),(1073741824*((14&(n=o.na()))>>1)+((65534&o.Lb())<<14|(65534&o.Lb())>>1))/9e4;r()}else r()}(t,v.uri,v.data));case 4:throw new fe(2,4,4030,t)}}))}function Di(e,t){if(1==t.length)return t[0];var n=Mi(e,t);if(null!=n)return n;throw new fe(2,4,4025,t)}function Mi(e,t){for(var n=c(Bi[e]),r=n.next();!r.done;r=n.next()){r=r.value;for(var i=c(t),o=i.next();!o.done;o=i.next())if(o=o.value,r.test(o.trim()))return o.trim()}return"text"==e?"":null}function xi(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),r=n.match(/{\$\w*}/g);if(r)for(var i=(r=c(r)).next();!i.done;i=r.next()){var o=(i=i.value).slice(2,i.length-1),a=t.get(o);if(!a)throw new fe(2,4,4039,o);n=n.replace(i,a)}return n}function Ui(e,t){var n=Ur(e,t);if(!n)throw new fe(2,4,4024,t);return n}function Fi(e,t){e.c=t,e.b&&e.b.Ob(e.c==Gi),e.c!=Gi||e.h.stop()}function zi(e,t,n){if(!e.o)throw new fe(2,7,7001);return t=e.s.networkingEngine.request(n,t),ze(e.o,t),t.promise}(r=Ei.prototype).configure=function(e){this.i=e},r.start=function(e,t){var n,r,i=this;return w((function(o){return 1==o.a?(i.s=t,b(o,zi(i,je([e],i.i.retryParameters),0),2)):3!=o.a?(n=o.b,i.M=n.uri,b(o,function(e,t){var n,r,i,o,a,s,l,u,d,p,f,h,v,m;return w((function(g){switch(g.a){case 1:if(0!=(n=Gr(e.G,t,e.M)).type)throw new fe(2,4,4022);for(var y=c(Mr(n.P,"EXT-X-DEFINE")),_=y.next();!_.done;_=y.next()){var E=_.value;_=kr(E,"NAME"),E=kr(E,"VALUE"),_&&E&&(e.j.has(_)||e.j.set(_,E))}for(r=Mr(n.P,"EXT-X-MEDIA"),_=(y=c(i=Mr(n.P,"EXT-X-STREAM-INF"))).next();!_.done;_=y.next()){var T=_.value;E=kr(T,"AUDIO"),_=kr(T,"VIDEO");var O=kr(T,"SUBTITLES");if(T=Oi(T),O){var C=Mi("text",T);e.f.set(O,C),xe(T,C)}E&&(O=Di("audio",T),e.f.set(E,O)),_&&(E=Di("video",T),e.f.set(_,E))}return b(g,function(e,t){var n;return w((function(r){return 1==r.a?(t=t.filter((function(e){var t=kr(e,"URI")||"";return"SUBTITLES"!=kr(e,"TYPE")&&""!=t})),t.length?b(r,Ci(e,t[0]),2):r.m(2)):(n=t.slice(1).map((function(t){return Ci(e,t)})),b(r,Promise.all(n),0))}))}(e,r),2);case 2:for(_=(y=c(y=xr(r,"CLOSED-CAPTIONS"))).next();!_.done;_=y.next())_=Ai(O=_.value),E=Lr(O,"GROUP-ID"),O=Lr(O,"INSTREAM-ID"),e.A.get(E)||e.A.set(E,new Map),e.A.get(E).set(O,_);return b(g,function(e,t){var n,r,i;return w((function(o){return 1==o.a?(n=t.map((function(t){var n,r,i,o,a,s,l;return w((function(u){return 1==u.a?(n=kr(t,"FRAME-RATE"),r=Number(Lr(t,"BANDWIDTH")),i=kr(t,"RESOLUTION"),o=c(i?i.split("x"):[null,null]),a=o.next().value,s=o.next().value,b(u,function(e,t,n,r){var i,o,a,s,l,u,d,p,f,h,v,m,g,y;return w((function(_){if(1==_.a)return i=St,o=Oi(t),a=kr(t,"AUDIO"),s=kr(t,"VIDEO"),u=(l=a||s)&&e.g.has(l)?e.g.get(l):[],d={audio:a?u:[],video:s?u:[]},f=!1,h=Lr(t,"URI"),v=d.audio.find((function(e){return e&&e.Pb==h})),m=Mi(i.za,o),g=n||r||m,1!=o.length||g?!u.length&&1n.end-.5)){t=!0;break e}t=!1}return t}function so(e,t,n,r,i){var o=this;this.a=e,this.A=t,this.i=n,this.o=i,this.b=new Xe,this.j=!1,this.v=e.readyState,this.f=!1,this.c=r,this.h=!1,this.b.C(e,"waiting",(function(){return lo(o)})),this.g=new ve((function(){lo(o)})).ga(.25)}function lo(e){if(0!=e.a.readyState){if(e.a.seeking){if(!e.j)return}else e.j=!1;if(!e.a.paused){var t;if(e.a.readyState!=e.v&&(e.f=!1,e.v=e.a.readyState),!(t=!e.c)){var n=(t=e.c).g,r=ao(n),i=n.a.currentTime,o=Date.now()/1e3;t.a==i&&t.h==r||(t.f=o,t.a=i,t.h=r,t.b=!1),(r=(i=o-t.f)>=t.j&&r&&!t.b)&&(t.c(t.a,i),t.b=!0,t.a=n.a.currentTime),t=!r}if(t){var a=e.i.smallGapLimit;if(i=e.a.currentTime,n=function(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return null;var n=Lt("Edge/")||Lt("Trident/")||Lt("Tizen")||Lt("CrKey")?.5:.1,r=yn(e).findIndex((function(e,r,i){return e.start>t&&(0==r||i[r-1].end-t<=n)}));return 0<=r?r:null}(t=e.a.buffered,i),!(null==n||0==n&&!e.h||(r=t.start(n),r>=e.A.ta()))){a=(o=r-i)<=a;var s=!1;.001>o||(a||e.f||(e.f=!0,(i=new ke("largegap",{currentTime:i,gapSize:o})).cancelable=!0,e.o(i),e.i.jumpLargeGaps&&!i.defaultPrevented&&(s=!0)),!a&&!s)||(0!=n&&t.end(n-1),e.a.currentTime=r)}}}}}function co(e){var t=this;this.a=e,this.f=!1,this.b=this.a.Cb(),this.c=new ve((function(){t.a.Lc(.25*t.b)}))}function uo(e){e.c.stop();var t=e.f?0:e.b;if(0<=t)try{return void(e.a.Cb()!=t&&e.a.xc(t))}catch(e){}e.c.ga(.25),0!=e.a.Cb()&&e.a.xc(0)}function po(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=fo.get(t),n.fa(e,t,r))}io.prototype.release=function(){this.g=null,this.c=function(){}},so.prototype.release=function(){this.b&&(this.b.release(),this.b=null),null!=this.g&&(this.g.stop(),this.g=null),this.c&&(this.c.release(),this.c=null),this.a=this.A=this.o=null},so.prototype.oc=function(){this.h=!0,lo(this)},co.prototype.release=function(){this.c&&(this.c.stop(),this.c=null),this.a=null},co.prototype.set=function(e){this.b=e,uo(this)};var fo=new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]]);function ho(e,t,n){var r=this;this.a=e,this.g=t,this.f=n,this.h=!1,this.b=new Xe,this.c=new _o(e),po(this.a,HTMLMediaElement.HAVE_METADATA,this.b,(function(){go(r,r.f)}))}function vo(e){return e.h?e.a.currentTime:e.f}function mo(e,t){0Math.abs(e.a.currentTime-t)?yo(e):(e.b.fa(e.a,"seeking",(function(){yo(e)})),bo(e.c,0==e.a.currentTime?t:e.a.currentTime))}function yo(e){e.h=!0,e.b.C(e.a,"seeking",(function(){return e.g()}))}function _o(e){var t=this;this.b=e,this.h=10,this.g=this.f=this.c=0,this.a=new ve((function(){0>=t.c||t.b.currentTime!=t.f?t.a.stop():(t.b.currentTime=t.g,t.c--)}))}function bo(e,t){e.f=e.b.currentTime,e.g=t,e.c=e.h,e.b.currentTime=t,e.a.ga(.1)}function Eo(e){var t=this;this.a=e,this.f=!1,this.c=null,this.b=new Xe,po(this.a,HTMLMediaElement.HAVE_CURRENT_DATA,this.b,(function(){null==t.c?t.f=!0:(t.b.fa(t.a,"seeking",(function(){t.f=!0})),t.a.currentTime=Math.max(0,t.a.currentTime+t.c))}))}function So(e,t,n,r,i,o){var a=this;this.b=e,this.a=t.presentationTimeline,this.D=t.minBufferTime||0,this.i=n,this.A=i,this.j=null,this.f=new so(e,t.presentationTimeline,n,function(e,t){if(!t.stallEnabled)return null;var n=t.stallSkip,r=new io(new oo(e),t.stallThreshold);return function(e,t){e.c=t}(r,(function(){n?e.currentTime+=n:(e.pause(),e.play())})),r}(e,n),o),this.c=new ho(e,(function(){var e=a.f;e.j=!0,e.h=!1,e.f=!1;var t=vo(a.c);return e=Oo(a,t),.001e.a.getDuration()?e.a.Qa():e.a.ta():0>t&&(t=e.a.ta()+t),To(e,Ao(e,t))}(this,r)),this.h=new ve((function(){if(0!=a.b.readyState&&!a.b.paused){var e=a.b.currentTime,t=a.a.Qa(),n=a.a.ta();3>n-t&&(t=n-3),e=n?n-e.i.durationBackoff:t}function Oo(e,t){var n=Math.max(e.D,e.i.rebufferingGoal),r=e.i.safeSeekOffset,i=e.a.Qa(),o=e.a.ta(),a=e.a.getDuration();3>o-i&&(i=o-3);var s=e.a.hb(n),l=e.a.hb(r);return n=e.a.hb(n+r),t>=a?To(e,t):t>o?o:t=s||mn(e.b.buffered,t)?t:n}function Ao(e,t){var n=e.a.Qa();return t(n=e.a.ta())?n:t}function Co(e){var t=this;this.c=e,this.a=new Set,this.b=new ve((function(){Po(t,!1)})).ga(.25)}function Po(e,t){for(var n=c(e.a),r=n.next();!r.done;r=n.next()){r=r.value;for(var i=e.c.currentTime,o=t,a=c(r.g.a),s=a.next();!s.done;s=a.next()){s=s.value;var l=r.f.get(s),u=is.endTime?Lo:ko;r.f.set(s,u);for(var d=c(r.h),p=d.next();!p.done;p=d.next())(p=p.value).Ma==l&&p.La==u&&p.Da(s,o)}}}function Io(e){var t=this;this.b=function(){},this.a=new Set,this.f=e,this.c=new ve((function(){for(var e=t.f(),n=c(t.a),r=n.next();!r.done;r=n.next())(r=r.value).endTimel):o=!1,o&&t.ua.abort(),E(i)}))}(e,o).catch((function(t){e.s&&e.s.onError(t)}))):function(e,t){var n,r,i,o;w((function(a){switch(a.a){case 1:return n=St,S(a,2),b(a,Qn(e.s.F,n.U),4);case 4:O(a,3);break;case 2:r=A(a),e.s&&e.s.onError(r);case 3:i=At(t.mimeType,t.codecs),qn(e.s.F,i),(e.s.F.h.isTextVisible()||e.i.alwaysStreamText)&&(o=zo(t),e.a.set(n.U,o),qo(e,o,0)),E(a)}}))}(e,t)}function Fo(e,t){t.cb||t.Va||(t.Ga?(t.Va=!0,t.vb=0):null==Wn(e.s.F,t.type)?null==t.xa&&qo(e,t,0):(Ko(t),Go(e,t,!1,0).catch((function(t){e.s&&e.s.onError(t)}))))}function zo(e){var t=e.segmentIndex?e.segmentIndex[Symbol.iterator]():null;return{stream:e,type:e.type,jb:null,oa:t,Aa:null,kc:null,lc:null,jc:null,ic:null,Ja:null,endOfStream:!1,Ga:!1,xa:null,Va:!1,vb:0,Qb:!1,cb:!1,sc:!1,ib:!1,ua:null}}function Bo(e,t,n,r){return t.stream==t.jb?t.oa.current():t.Aa?t.oa.seek(t.Aa.endTime):r?t.oa.seek(r):((r=t.oa.seek(Math.max(n-e.i.inaccurateManifestTolerance,0)))&&Vo(e,r)||(r=t.oa.seek(n)),r)}function Vo(e,t){var n=e.l.presentationTimeline,r=n.Ra();return!(t.endTimer)}function jo(e){return e&&"text"==e.type&&"application/cea-608"==e.stream.mimeType}function Ho(e,t,n){var r,i,o,a;return w((function(s){return 1==s.a?(r=Ke,i=bi(n.c(),n.b,n.a,e.i.retryParameters),o=e.s.Sa.request(r,i),t.ua=o,b(s,o.promise,2)):(a=s.b,t.ua=null,s.return(a.data))}))}function Go(e,t,n,r){var i,o;return w((function(a){return 1==a.a?(t.Va=!1,t.Qb=!1,t.vb=0,t.cb=!0,r?(i=e.s.Bb(),o=e.s.F.getDuration(),b(a,e.s.F.remove(t.type,i+r,o),3)):b(a,Qn(e.s.F,t.type),4)):3!=a.a?($e(e.B),n?b(a,e.s.F.flush(t.type),3):a.m(3)):($e(e.B),t.jb=null,t.Aa=null,t.cb=!1,t.endOfStream=!1,qo(e,t,0),void E(a))}))}function qo(e,t,n){t.xa=new he((function(){var n;return w((function(r){return 1==r.a?(S(r,2),b(r,e.pc(t),4)):2!=r.a?O(r,0):(n=A(r),e.s&&e.s.onError(n),void E(r))}))})).O(n)}function Ko(e){null!=e.xa&&(e.xa.stop(),e.xa=null)}function Wo(e){return w((function(t){return e.ua?b(t,e.ua.abort(),0):t.m(0)}))}function Yo(e,t){w((function(n){if(1==n.a)return b(n,ge(e.j),2);$e(e.B),e.s.onError(t),t.handled||e.i.failureCallback(t),E(n)}))}function Jo(e,t,n,r,i,o){if(200<=n&&299>=n&&202!=n)return{uri:i||r,Pc:r,data:t,headers:e,fromCache:!!e["x-shaka-from-cache"]};i=null;try{i=it(t)}catch(e){}throw new fe(401==n||403==n?2:1,1,1001,r,n,i,e,o)}function $o(){}function Xo(e,t,n,r){var i=new na;Tt(t.headers).forEach((function(e,t){i.append(t,e)}));var o=new ea,a={Dc:!1,Wc:!1};if(e=function(e,t,n,r,i){var o,a,s,l,c,u,d,p,f,h,v,m;return w((function(g){switch(g.a){case 1:return o=Zo,a=ta,u=c=0,d=Date.now(),S(g,2),b(g,o(e,n),4);case 4:return s=g.b,p=s.clone().body.getReader(),h=(f=s.headers.get("Content-Length"))?parseInt(f,10):0,new a({start:function(e){function t(){var n,r;return w((function(o){switch(o.a){case 1:return S(o,2),b(o,p.read(),4);case 4:n=o.b,O(o,3);break;case 2:return A(o),o.return();case 3:n.done||(c+=n.value.byteLength),(100<(r=Date.now())-d||n.done)&&(i(r-d,c-u,h-c),u=c,d=r),n.done?e.close():(e.enqueue(n.value),t()),E(o)}}))}t()}}),b(g,s.arrayBuffer(),5);case 5:l=g.b,O(g,3);break;case 2:if(v=A(g),r.Dc)throw new fe(1,1,7001,e,t);if(r.Wc)throw new fe(1,1,1003,e,t);throw new fe(1,1,1002,e,v,t);case 3:return m={},s.headers.forEach((function(e,t){m[t.trim()]=e})),g.return(Jo(m,l,s.status,e,s.url,t))}}))}(e,n,{body:t.body||void 0,headers:i,method:t.method,signal:o.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},a,r),e=new _e(e,(function(){return a.Dc=!0,o.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var s=new ve((function(){a.Wc=!0,o.abort()}));s.O(t/1e3),e.finally((function(){s.stop()}))}return e}function Qo(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}wo.prototype.destroy=function(){return this.B.destroy()},wo.prototype.configure=function(e){this.i=e,this.j=new me({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0},!0)},wo.prototype.start=function(){var e=this;return w((function(t){if(1==t.a)return b(t,function(e){var t,n,r,i,o,a,s,l,u,d;return w((function(p){if(1==p.a){if(t=St,!e.b)throw new fe(2,5,5006);return n=new Map,r=new Set,e.b.audio&&(n.set(t.Za,e.b.audio),r.add(e.b.audio)),e.b.video&&(n.set(t.za,e.b.video),r.add(e.b.video)),e.c&&(n.set(t.U,e.c),r.add(e.c)),i=e.s.F,o=e.i.forceTransmuxTS,b(p,i.init(n,o),2)}$e(e.B);var f=e.l.presentationTimeline.getDuration();for(1/0>f?e.s.F.wa(f):e.s.F.wa(Math.pow(2,32)),a=c(n.keys()),s=a.next();!s.done;s=a.next())l=s.value,u=n.get(l),e.a.has(l)||(d=zo(u),e.a.set(l,d),qo(e,d,0));E(p)}))}(e),2);$e(e.B),e.h=!0,E(t)}))},wo.prototype.pc=function(e){var t,n,r,i,o=this;return w((function(a){switch(a.a){case 1:if($e(o.B),e.Ga||null==e.xa||e.cb)return a.return();if(e.xa=null,!e.Va){a.m(2);break}return b(a,Go(o,e,e.Qb,e.vb),3);case 3:return a.return();case 2:if(e.stream.segmentIndex){a.m(4);break}return t=e.stream,b(a,e.stream.createSegmentIndex(),5);case 5:if(t!=e.stream)return null==e.xa&&qo(o,e,0),a.return();jo(e)||(e.oa=e.stream.segmentIndex[Symbol.iterator]());case 4:try{n=function(e,t){if(jo(t))return Xn(e.s.F,t.stream.originalId||""),null;var n=e.s.Bb(),r=t.jb&&t.Aa?t.Aa.endTime:n,i=function(e,t,n){return"text"==t?null==(e=e.c).b||e.b=e.l.presentationTimeline.getDuration())return t.endOfStream=!0,"video"==t.type&&(n=e.a.get("text"))&&jo(n)&&(n.endOfStream=!0),null;if(t.endOfStream=!1,i>=o)return.5;if(i=Yn(e.s.F,t.type),!(i=Bo(e,t,n,i))||!Vo(e,i))return 1;o=1/0;for(var a=Array.from(e.a.values()),s=(a=c(a)).next();!s.done;s=a.next())jo(s=s.value)||(o=Math.min(o,s.jb&&s.Aa?s.Aa.endTime:n));return r>=o+e.l.presentationTimeline.a?1:(function(e,t,n,r){var i,o,a,s,l,c,u,d;return w((function(p){switch(p.a){case 1:return i=St,o=t.stream,t.Ga=!0,a=function(e,t,n){var r,i,o,a,s,l,c;return w((function(u){return r=[],i=Math.max(0,n.appendWindowStart-.1),o=n.appendWindowEnd+.01,(a=n.timestampOffset)==t.lc&&i==t.jc&&o==t.ic||(s=function(){var n;return w((function(r){if(1==r.a)return S(r,2),t.jc=i,t.ic=o,t.lc=a,b(r,function(e,t,n,r,i){return w((function(o){return t==St.U?(e.c.v=n,function(e,t,n){e.f=t,e.g=n}(e.c,r,i),o.return()):b(o,Promise.all([er(e,t,(function(){var n=e.f[t].appendWindowStart,r=e.f[t].appendWindowEnd;e.f[t].abort(),e.f[t].appendWindowStart=n,e.f[t].appendWindowEnd=r,Zn(e,t)})),er(e,t,(function(){var r=n;0>r&&(r+=.001),e.f[t].timestampOffset=r,Zn(e,t)})),er(e,t,(function(){e.f[t].appendWindowStart=0,e.f[t].appendWindowEnd=i,e.f[t].appendWindowStart=r,Zn(e,t)}))]),0)}))}(e.s.F,t.type,a,i,o),4);if(2!=r.a)return O(r,0);throw n=A(r),t.jc=null,t.ic=null,t.lc=null,n}))},r.push(s())),n.f!=t.kc&&(t.kc=n.f)&&(l=Ho(e,t,n.f),c=function(){var n,r,i;return w((function(o){switch(o.a){case 1:return S(o,2),b(o,l,4);case 4:return n=o.b,$e(e.B),r=t.stream.closedCaptions&&0=(o=n-i-r)?a.return():b(a,e.s.F.remove(t.type,i,i+o),2);$e(e.B),E(a)}))}(e,t,n),2)):3!=s.a?($e(e.B),b(s,$n(e.s.F,t.type,o,i.startTime,i.endTime,a),3)):($e(e.B),t.jb=r,t.Aa=i,t.stream==r&&t.oa.next(),void E(s))}))}(e,t,n,o,r,l[1]),5);case 5:if($e(e.B),e.g)return p.return();t.Ga=!1,t.sc=!1,c=e.s.F.zb(),u=c[t.type],JSON.stringify(u),t.Va||e.s.oc(),qo(e,t,0),O(p,0);break;case 2:if(d=A(p),$e(e.B,d),e.g)return p.return();t.Ga=!1,t.type==i.U&&e.i.ignoreTextStreamFailures?e.a.delete(i.U):7001==d.code?(t.Ga=!1,t.xa=null,qo(e,t,0)):3017==d.code?function(e,t,n){if(!Array.from(e.a.values()).some((function(e){return e!=t&&e.sc}))){var r=Math.round(100*e.f);if(20r||!(ir.length||!(i.lengthr)return!0;if(ir.length)return!0;if(i.lengthe){if(n<=e||n-et-e)return Ba}else{if(n>e)return Ba;if(e-ne-t)return Ba}return za}function Ua(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function cs(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var r=c(Array.from(e.cues)),i=r.next();!i.done;i=r.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}function us(){}function ds(e,t){var n=this;this.h=!1,this.f=[],this.a=e,this.g=t,this.b=document.createElement("div"),this.b.classList.add("shaka-text-container"),this.g.appendChild(this.b),this.j=new ve((function(){ps(n)})).ga(.25),this.c=new Map}function ps(e){function t(t){return e.f.includes(t)&&e.h&&t.startTime<=n&&t.endTime>=n}for(var n=e.a.currentTime,r=c(e.c.keys()),i=r.next();!i.done;i=r.next())if(!t(i=i.value)){var o=e.c.get(i);e.b.removeChild(o),e.c.delete(i)}for(r=new Set(e.c.values()),o=(i=c(Array.from(e.b.childNodes))).next();!o.done;o=i.next())o=o.value,r.has(o)||e.b.removeChild(o);for(i=(r=c(r=e.f.filter((function(n){return t(n)&&!e.c.has(n)})).sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})))).next();!i.done;i=r.next())hs(e,e.b,i.value)}function fs(e,t,n,r){var i=document.createElement("span");return r&&i.classList.add("shaka-nested-cue"),n.spacer?i.style.display="block":vs(e,i,n,!0),t.appendChild(i),i}function hs(e,t,n){if(n.nestedCues.length){var r=document.createElement("p");r.style.width="100%",vs(e,r,n,!1);for(var i=0;i(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(r[o=e.substring(o,i).replace(/\\\./g,".")]={},r=r[o],o=i+1),i+=1;return r[e.substring(o).replace(/\\\./g,".")]=t,n}function bs(){}function Es(){var e=1e6,t=1/0;navigator.connection&&(navigator.connection.downlink&&(e=1e6*navigator.connection.downlink),navigator.connection.saveData&&(t=360));var n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:en,logLicenseExchange:!1,updateExpirationTime:1},r={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},i={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},failureCallback:function(e){return[e]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};(Lt("Web0S")||Lt("Tizen")||Lt("CrKey"))&&(i.stallSkip=0);var o={trackSelectionCallback:function(e){return w((function(t){return t.return(e)}))},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0},a={drm:n,manifest:r,streaming:i,offline:o,abrFactory:function(){return new Cr},abr:{enabled:!0,defaultBandwidthEstimate:e,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:t,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null}};return o.trackSelectionCallback=function(e){return w((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),r=[],i=dr(t,n.map((function(e){return e.language})));i&&(r=n.filter((function(e){return lr(e.language)==i}))),0==r.length&&(r=n.filter((function(e){return e.primary}))),0==r.length&&(n.map((function(e){return e.language})),r=n);var o=r.filter((function(e){return e.height&&480>=e.height}));if(o.length&&(o.sort((function(e,t){return t.height-e.height})),r=o.filter((function(e){return e.height==o[0].height}))),n=[],r.length){var a=Math.floor(r.length/2);r.sort((function(e,t){return e.bandwidth-t.bandwidth})),n.push(r[a])}for(r=c(e),a=r.next();!a.done;a=r.next())"text"==(a=a.value).type&&n.push(a);return n}(e,a.preferredAudioLanguage))}))},a}function Ss(e,t,n){var r={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return ys(e,t,n||Es(),r,"")}function Ts(){this.a=null,this.b=[]}function Os(e,t){if(null==e.a)e.a={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.a.duration=n-e.a.timestamp,e.a.state!=t&&(e.b.push(e.a),e.a={timestamp:n,state:t,duration:0})}}function As(e,t){var n=0;e.a&&e.a.state==t&&(n+=e.a.duration);for(var r=c(e.b),i=r.next();!i.done;i=r.next())n+=(i=i.value).state==t?i.duration:0;return n}function Cs(){this.b=this.c=null,this.a=[]}function Ps(e,t,n){e.c!=t&&(e.c=t,e.a.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth}))}function Is(e,t,n){e.b!=t&&(e.b=t,e.a.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Rs(){this.g=this.h=this.A=this.o=this.D=this.c=this.v=this.f=this.G=this.L=this.M=this.j=this.N=NaN,this.b=new Ts,this.a=new Cs}function Ns(t,n){we.call(this);var r=this;this.g=Dl,this.tb=this.a=null,this.S=!1,this.b=new Xe,this.Vb=this.j=this.$a=this.l=this.rb=this.o=this.c=this.sb=this.D=this.pb=this.A=this.qa=this.v=this.G=this.h=this.I=null,this.Cc=1e9,this.i=zs(this),this.ac={width:1/0,height:1/0},this.f=null,this.ab=new Zi(this.i.preferredAudioLanguage,this.i.preferredVariantRole,this.i.preferredAudioChannelCount),this.Y=this.i.preferredTextLanguage,this.qb=this.i.preferredTextRole,this.Wb=[],n&&n(this),this.I=function(e){return new Be((function(t,n){e.j&&e.j.segmentDownloaded(t,n)}))}(this),this.L=null,Bl&&(this.L=bt(Bl)),this.b.C(e,"online",(function(){r.tc()})),this.Z={name:"detach"},this.sa={name:"attach"},this.N={name:"unload"},this.bc={name:"manifest-parser"},this.$b={name:"manifest"},this.ia={name:"media-source"},this.Xb={name:"drm-engine"},this.M={name:"load"},this.Rb={name:"src-equals-drm-engine"},this.ra={name:"src-equals"};var i=new Map;i.set(this.sa,(function(e,t){return Te(function(e,t,n){return null==t.u&&(t.u=n.u,e.b.C(t.u,"error",(function(){var t=Zs(e);t&&Xs(e,t)}))),e.a=t.u,Promise.resolve()}(r,e,t))})),i.set(this.Z,(function(e){return e.u&&(r.b.ha(e.u,"error"),e.u=null),r.a=null,Te(e=Promise.resolve())})),i.set(this.N,(function(e){return Te(Ls(r,e))})),i.set(this.ia,(function(t){return t=function(t,n){var r,i,o,a;return w((function(s){if(1==s.a)return r=e.muxjs?new fn:new hn,i=t.i.textDisplayFactory,o=bt(i),t.Yb=i,a=function(e,t,n,r){return new Hn(e,t,n,r)}(n.u,r,o,(function(e,n,r){for(var i=(e=c(e)).next();!i.done;i=e.next())if((i=i.value).data&&i.cueTime&&i.frames){for(var o=i.cueTime+n,a=r,s=c(i.frames),l=s.next();!l.done;l=s.next())ws(t,o,a,"ID3",l.value);t.L&&t.L.onHlsTimedMetadata(i,o)}})),b(s,a.A,2);t.G=a,E(s)}))}(r,t),Te(t)})),i.set(this.bc,(function(e,t){var n=function(e,t,n){var r,i,o,a;return w((function(s){if(1==s.a)return t.mimeType=n.mimeType,t.uri=n.uri,r=t.uri,i=e.I,e.$a=r,o=e,b(s,Xr(r,i,e.i.manifest.retryParameters,t.mimeType),2);o.rb=s.b,e.o=bt(e.rb),a=De(e.i.manifest),n.u&&"AUDIO"===n.u.nodeName&&(a.disableVideo=!0),e.o.configure(a),E(s)}))}(r,e,t);return Te(n)})),i.set(this.$b,(function(e){return function(e,t){var n=t.uri,r=e.I;e.sb=new Io((function(){return e.uc()})),function(e,t){e.b=t}(e.sb,(function(t){Qs(e,Pl,t),e.L&&e.L.onDashTimedMetadata(t)}));var i={networkingEngine:r,filter:function(t){return w((function(n){return n.return(e.Pa(t))}))},onTimelineRegionAdded:function(t){var n=e.sb;e:{for(var r=c(n.a),i=r.next();!i.done;i=r.next())if((i=i.value).schemeIdUri==t.schemeIdUri&&i.id==t.id&&i.startTime==t.startTime&&i.endTime==t.endTime){r=i;break e}r=null}null==r&&(n.a.add(t),n.b(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Xs(e,t)}},o=Date.now()/1e3;return new _e(function(){var t,r,a,s;return w((function(l){if(1==l.a)return t=e,b(l,e.o.start(n,i),2);if(t.l=l.b,r=ks(_l),e.dispatchEvent(r),0==e.l.variants.length)throw new fe(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.l),a=Date.now()/1e3,s=a-o,e.f.v=s,E(l)}))}(),(function(){return e.o.stop()}))}(r,e)})),i.set(this.Xb,(function(){var e=function(e){var t,n;return w((function(r){if(1==r.a)return t=Date.now()/1e3,n=!0,e.h=Ds(e,{Sa:e.I,onError:function(t){Xs(e,t)},Hb:function(t){el(e,t)},onExpirationUpdated:function(t,n){tl(e,t,n)},onEvent:function(r){e.dispatchEvent(r),r.type==fl&&n&&(n=!1,e.f.c=Date.now()/1e3-t)}}),e.h.configure(e.i.drm),b(r,Gt(e.h,e.l.variants,e.l.offlineSessionIds),2);e.Pa(e.l),E(r)}))}(r);return Te(e)})),i.set(this.M,(function(e,t){return Te(function(e,t,n){var r,i,o,a,s,l,u,d,p,f;return w((function(h){switch(h.a){case 1:return t.startTime=n.startTime,r=t.u,i=t.uri,e.$a=i,e.A=new co({Cb:function(){return t.u.playbackRate},xc:function(e){t.u.playbackRate=e},Lc:function(e){t.u.currentTime+=e}}),o=function(){return js(e)},a=function(){return Vs(e)},e.b.C(r,"playing",o),e.b.C(r,"pause",o),e.b.C(r,"ended",o),e.b.C(r,"ratechange",a),s=e.i.abrFactory,e.j&&e.Vb==s||(e.Vb=s,e.j=bt(s),"function"!=typeof e.j.playbackRateChanged&&(ft("AbrManager","Please use an AbrManager with playbackRateChanged function."),e.j.playbackRateChanged=function(){}),e.j.configure(e.i.abr)),function(e){for(var t=new Map,n=c(e.l.variants),r=n.next();!r.done;r=n.next())if((r=r.value).video&&r.video.closedCaptions)for(var i=c((r=r.video).closedCaptions.keys()),o=i.next();!o.done;o=i.next())if(o=o.value,!t.has(o)){var a={id:e.Cc++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"application/cea-608",codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:r.closedCaptions.get(o),label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,channelsCount:null,audioSamplingRate:null,closedCaptions:null};t.set(o,a)}for(t=c(t.values()),n=t.next();!n.done;n=t.next())e.l.textStreams.push(n.value)}(e),e.ab=new Zi(e.i.preferredAudioLanguage,e.i.preferredVariantRole,e.i.preferredAudioChannelCount),e.Y=e.i.preferredTextLanguage,function(e,t,n){0=a.a&&n, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),i.resolve()),e.b.fa(e.a,"error",(function(){i.reject(Zs(e))})),new _e(i,(function(){return i.reject(new fe(2,7,7001)),Promise.resolve()}))}(r,e,t)})),this.T=new is(this.Z,{td:function(e,t,n,i){var o=null;return e==r.Z&&(o=n==r.Z?r.Z:r.sa),e==r.sa&&(o=n==r.Z||t.u!=i.u?r.Z:n==r.sa?r.sa:n==r.ia||n==r.M?r.ia:n==r.ra?r.Rb:null),e==r.ia&&(o=n==r.M&&t.u==i.u?r.bc:r.N),e==r.bc&&(o=sl(r.M,r.$b,r.N,n,t,i)),e==r.$b&&(o=sl(r.M,r.Xb,r.N,n,t,i)),e==r.Xb&&(o=sl(r.M,r.M,r.N,n,t,i)),e==r.Rb&&(o=n==r.ra&&t.u==i.u?r.ra:r.N),e!=r.M&&e!=r.ra||(o=r.N),e==r.N&&(o=i.u&&t.u==i.u?r.sa:r.Z),o},fd:function(e,t,n){return r.dispatchEvent(ks(El,{state:e.name})),i.get(e)(t,n)},handleError:function(e){return w((function(t){return 1==t.a?b(t,Ls(r,e),2):t.return(e.u?r.sa:r.Z)}))},Hd:function(e){r.dispatchEvent(ks(Sl,{state:e.name}))}}),t&&this.bb(t,!0)}function ks(e,t){return new ke(e,t)}function Ls(e,t){var n,r,i,o,a,s,l,u,d;return w((function(p){switch(p.a){case 1:return e.g!=wl&&(e.g=Dl),n=e.Wb.map((function(e){return e()})),e.Wb=[],b(p,Promise.all(n),2);case 2:if(e.dispatchEvent(ks(kl)),t.mimeType=null,t.startTime=null,t.uri=null,t.u&&(e.b.ha(t.u,"loadedmetadata"),e.b.ha(t.u,"playing"),e.b.ha(t.u,"pause"),e.b.ha(t.u,"ended"),e.b.ha(t.u,"ratechange")),e.qa&&(e.qa.release(),e.qa=null),e.pb&&(e.pb.stop(),e.pb=null),!e.o){p.m(3);break}return b(p,e.o.stop(),4);case 4:e.o=null,e.rb=null;case 3:if(!e.j){p.m(5);break}return b(p,e.j.stop(),5);case 5:if(!e.c){p.m(7);break}return b(p,e.c.destroy(),8);case 8:e.c=null;case 7:if(e.A&&(e.A.release(),e.A=null),e.v&&(e.v.release(),e.v=null),!e.G){p.m(9);break}return b(p,e.G.destroy(),10);case 10:e.G=null;case 9:if(e.L&&e.L.onAssetUnload(),!t.u||!t.u.src){p.m(11);break}return b(p,new Promise((function(e){return new ve(e).O(.1)})),12);case 12:t.u.removeAttribute("src"),t.u.load();case 11:if(!e.h){p.m(13);break}return b(p,e.h.destroy(),14);case 14:e.h=null;case 13:if(e.$a=null,e.D=null,e.l){for(r=c(e.l.variants),i=r.next();!i.done;i=r.next())for(o=i.value,a=c([o.audio,o.video]),s=a.next();!s.done;s=a.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(u=c(e.l.textStreams),s=u.next();!s.done;s=u.next())(d=s.value).segmentIndex&&d.segmentIndex.release()}e.l=null,e.f=new Rs,e.Yb=null,Bs(e),E(p)}}))}function ws(e,t,n,r,i){e.dispatchEvent(ks(bl,{startTime:t,endTime:n,ee:r,payload:i}))}function Ds(e,t){return new Ht(t,e.i.drm.updateExpirationTime)}function Ms(e,t){e.D=new eo,e.D.a=no,to(e.D,t,Math.min(.5,t/2)),Bs(e),e.pb=new ve((function(){xs(e)})).ga(.25)}function xs(e){switch(e.g){case xl:if(e.a.ended)var t=!0;else{var n=vn(e.a.buffered);t=null!=n&&n>=e.a.duration-1}break;case Ml:e:if(e.a.ended||Kn(e.G))t=!0;else{if(e.l.presentationTimeline.X()){n=e.l.presentationTimeline.Ra();var r=vn(e.a.buffered);if(null!=r&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=gn(e.a.buffered,e.a.currentTime);var i=t,o=(n=e.D).b.get(n.a);t=n.a,r=i||r>=o?ro:no,n.a=r,t!=r&&Bs(e)}function Us(e){if(e.o){var t=De(e.i.manifest);e.a&&"AUDIO"===e.a.nodeName&&(t.disableVideo=!0),e.o.configure(t)}if(e.h&&e.h.configure(e.i.drm),e.c){e.c.configure(e.i.streaming);try{e.Pa(e.l)}catch(t){Xs(e,t)}e.j&&Hs(e),!(t=e.c.b)||t.allowedByApplication&&t.allowedByKeySystem||Gs(e)}if(e.G&&(t=e.i.textDisplayFactory,e.Yb!=t)){var n=bt(t),r=e.G,i=r.h;r.h=n,i&&(n.setTextVisibility(i.isTextVisible()),i.destroy()),r.c&&(r.c.c=n),e.Yb=t,e.c&&((n=(t=e.c).a.get("text"))&&Uo(t,n.stream,!0,0,!0))}e.j&&(e.j.configure(e.i.abr),e.i.abr.enabled?e.j.enable():e.j.disable(),$s(e)),e.D&&(t=e.i.streaming.rebufferingGoal,e.l&&(t=Math.max(t,e.l.minBufferTime)),to(e.D,t,Math.min(.5,t/2)))}function Fs(e){return Array.from(e.a.textTracks).filter((function(e){return"metadata"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function zs(e){var t=Es();return t.streaming.failureCallback=function(t){e.X()&&[1001,1002,1003].includes(t.code)&&(t.severity=1,e.tc())},t.textDisplayFactory=function(){return e.tb?new ds(e.a,e.tb):new ss(e.a)},t}function Bs(e){var t=e.Hc();if(e.f&&e.D&&e.v){var n=e.A;n.f=t,uo(n),js(e)}e.dispatchEvent(ks(pl,{buffering:t}))}function Vs(e){var t=e.a.playbackRate;0!=t&&(e.A&&e.A.set(t),t=ks(Tl),e.dispatchEvent(t))}function js(e){if(e.f&&e.D){var t=e.f.b;e.D.a==no?Os(t,"buffering"):e.a.paused?Os(t,"paused"):e.a.ended?Os(t,"ended"):Os(t,"playing")}}function Hs(e){try{nl(e,e.l)}catch(t){return Xs(e,t),!1}var t=e.l.variants.filter((function(e){return Er(e)}));return t=e.ab.create(t),e.j.setVariants(Array.from(t.values())),!0}function Gs(e){var t;if(t=Hs(e)?e.j.chooseVariant():null){if(t==e.c.b)return;Ps(e.f.a,t,!0),Mo(e.c,t,!0,0),Ws(e)}qs(e)}function qs(e){rl(e,ks(dl))}function Ks(e){rl(e,ks(Nl))}function Ws(e){rl(e,ks(Ll))}function Ys(e){rl(e,ks(Al))}function Js(e){rl(e,ks(Cl))}function $s(e){rl(e,ks(ul,{fe:e.i.abr.enabled}))}function Xs(e,t){if(e.g!=wl){var n=ks(vl,{detail:t});e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function Qs(e,t,n){e.dispatchEvent(ks(t,{detail:{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}}))}function Zs(e){if(!e.a.error)return null;var t=e.a.error.code;if(1==t)return null;var n=e.a.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new fe(2,3,3016,t,n,e.a.error.message)}function el(e,t){if(e.c){var n=Object.keys(t),r=1==n.length&&"00"==n[0],i=!1;if(n.length)for(var o=(n=c(e.l.variants)).next();!o.done;o=n.next()){var a=[];(o=o.value).audio&&a.push(o.audio),o.video&&a.push(o.video);for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;if(s=o.allowedByKeySystem,l.keyIds.size){o.allowedByKeySystem=!0;for(var u=(l=c(l.keyIds)).next();!u.done;u=l.next())u=u.value,u=t[r?"00":u],o.allowedByKeySystem=o.allowedByKeySystem&&!!u&&!Fl.includes(u)}s!=o.allowedByKeySystem&&(i=!0)}}i&&Hs(e),(r=e.c.b)&&!r.allowedByKeySystem&&Gs(e),i&&Ks(e)}}function tl(e,t,n){e.o&&e.o.onExpirationUpdated&&e.o.onExpirationUpdated(t,n),t=ks(ml),e.dispatchEvent(t)}function nl(e,t){var n=e.h?Ot(e.h.S):{},r=Object.keys(n);r=r.length&&"00"==r[0];for(var i=!1,o=!1,a=new Set,s=new Set,l=c(t.variants),u=l.next();!u.done;u=l.next()){var d=[];(u=u.value).audio&&d.push(u.audio),u.video&&d.push(u.video);for(var p=(d=c(d)).next();!p.done;p=d.next())if((p=p.value).keyIds.size)for(var f=(p=c(p.keyIds)).next();!f.done;f=p.next()){f=f.value;var h=n[r?"00":f];h?Fl.includes(h)&&s.add(h):a.add(f)}u.allowedByApplication?u.allowedByKeySystem&&(i=!0):o=!0}if(!i)throw new fe(2,4,4012,n={hasAppRestrictions:o,missingKeys:Array.from(a),restrictedKeyStatuses:Array.from(s)})}function rl(e,t){w((function(n){if(1==n.a)return b(n,Promise.resolve(),2);e.g!=wl&&e.dispatchEvent(t),E(n)}))}function il(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(lr(n.language)):t.add("und");return t}function ol(e){for(var t=new Map,n=(e=c(e)).next();!n.done;n=e.next()){var r=n.value;n="und";var i=[];for(r.language&&(n=lr(r.language)),(i="variant"==r.type?r.audioRoles:r.roles)&&i.length||(i=[""]),t.has(n)||t.set(n,new Set),i=(r=c(i)).next();!i.done;i=r.next())i=i.value,t.get(n).add(i)}var o=[];return t.forEach((function(e,t){for(var n=c(e),r=n.next();!r.done;r=n.next())o.push({language:t,role:r.value})})),o}function al(){return new fe(2,7,7e3)}function sl(e,t,n,r,i,o){return r==e&&i.u==o.u&&i.uri==o.uri&&i.mimeType==o.mimeType?t:n}function ll(){return{u:null,mimeType:null,startTime:null,yc:NaN,uri:null}}function cl(e){return new Promise((function(t,n){e.Fa=function(){return n(al())},e.Gb=function(){return t()},e.onError=function(e){return n(e)},e.Ib=function(){return n(al())}}))}m(Va,ma),Va.prototype.updateManifestExpiration=function(e,t){var n,r,i,o=this;return w((function(a){return n=ha(o.b,o.a),r=n.store(),i=new ye,r.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,r.put(n),i.resolve()):i.reject(new fe(2,9,9012,"Could not find values for "+e))},b(a,Promise.all([n.promise(),i]),0)}))},Va.prototype.eb=function(e){var t,n,r,i,o,a;return w((function(s){if(1==s.a){for(t=[],n=0;nt,!s||!l){u.m(3);break}return b(u,i.updateManifestExpiration(n.key(),t),3);case 3:return C(u),b(u,r.destroy(),10);case 10:P(u,0);break;case 2:A(u),u.m(3)}}))},Zr["application/x-offline-manifest"]=function(){return new Za},z("shaka.offline.OfflineScheme",es),es.plugin=ts,Ve("offline",ts),is.prototype.destroy=function(){return this.B.destroy()},(r=ss.prototype).remove=function(e,t){return!!this.a&&(cs(this.a,(function(n){return n.startTimee})),!0)},r.append=function(e){var t=e.map((function(e){if(e.nestedCues.length){var t=e.nestedCues.map((function(e){return e.spacer?"\n":e.payload+" "})).join("").replace(/ $/m,"");return(e=e.clone()).nestedCues=[],e.payload=t,e}return e})),n=[];e=this.a.cues?Array.from(this.a.cues):[];for(var r={},i=(t=c(t)).next();!i.done;r={Oa:r.Oa},i=t.next())r.Oa=i.value,e.some(function(e){return function(t){return t.startTime==e.Oa.startTime&&t.endTime==e.Oa.endTime&&t.text==e.Oa.payload}}(r))||(i=ls(r.Oa))&&n.push(i);for(r=(e=c(e=n.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)})))).next();!r.done;r=e.next())this.a.addCue(r.value)},r.destroy=function(){return this.a&&(cs(this.a,(function(){return!0})),this.a.mode="disabled"),this.a=null,Promise.resolve()},r.isTextVisible=function(){return"showing"==this.a.mode},r.setTextVisibility=function(e){this.a.mode=e?"showing":"hidden"},z("shaka.text.SimpleTextDisplayer",ss),ss.prototype.setTextVisibility=ss.prototype.setTextVisibility,ss.prototype.isTextVisible=ss.prototype.isTextVisible,ss.prototype.destroy=ss.prototype.destroy,ss.prototype.append=ss.prototype.append,ss.prototype.remove=ss.prototype.remove,z("shaka.util.Dom",us),us.removeAllChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},(r=ds.prototype).append=function(e){for(var t={},n=(e=c(e)).next();!n.done;t={Na:t.Na},n=e.next())t.Na=n.value,this.f.some(function(e){return function(t){return t.payload==e.Na.payload&&t.startTime==e.Na.startTime&&t.endTime==e.Na.endTime}}(t))||this.f.push(t.Na);ps(this)},r.destroy=function(){this.g.removeChild(this.b),this.b=null,this.h=!1,this.f=[],this.j&&this.j.stop(),this.c.clear()},r.remove=function(e,t){return!!this.b&&(this.f=this.f.filter((function(n){return n.startTime=t})),ps(this),!0)},r.isTextVisible=function(){return this.h},r.setTextVisibility=function(e){this.h=e},z("shaka.text.UITextDisplayer",ds),ds.prototype.setTextVisibility=ds.prototype.setTextVisibility,ds.prototype.isTextVisible=ds.prototype.isTextVisible,ds.prototype.remove=ds.prototype.remove,ds.prototype.destroy=ds.prototype.destroy,ds.prototype.append=ds.prototype.append,z("shaka.util.ConfigUtils",gs),gs.convertToConfigObject=_s,gs.mergeConfigObjects=ys,z("shaka.util.PlayerConfiguration",bs),bs.mergeConfigObjects=Ss,m(Ns,we),(r=Ns.prototype).destroy=function(){var e,t=this;return w((function(n){switch(n.a){case 1:return t.g==wl?n.return():(t.g=wl,e=os(t.T,(function(){return{node:t.Z,payload:ll(),Ca:!1}})),b(n,new Promise((function(t){e.Ta=function(){},e.Gb=function(){t()},e.Fa=function(){t()},e.onError=function(){t()},e.Ib=function(){t()}})),2));case 2:return b(n,t.T.destroy(),3);case 3:if(t.b&&(t.b.release(),t.b=null),t.Vb=null,t.j=null,t.i=null,t.f=null,t.tb=null,!t.I){n.m(0);break}return b(n,t.I.destroy(),5);case 5:t.I=null,E(n)}}))},r.bb=function(e,t){if(t=void 0===t||t,this.g==wl)return Promise.reject(al());var n=ll();n.u=e,It()||(t=!1);var r=t?this.ia:this.sa,i=os(this.T,(function(){return{node:r,payload:n,Ca:!1}}));return i.Ta=function(){},cl(i)},r.detach=function(){var e=this;if(this.g==wl)return Promise.reject(al());var t=os(this.T,(function(){return{node:e.Z,payload:ll(),Ca:!1}}));return t.Ta=function(){},cl(t)},r.Yd=function(e){var t=this;if(e=void 0===e||e,this.g==wl)return Promise.reject(al());It()||(e=!1);var n=ll(),r=os(this.T,(function(r){var i=r.u&&e?t.ia:r.u?t.sa:t.Z;return n.u=r.u,{node:i,payload:n,Ca:!1}}));return r.Ta=function(){},cl(r)},r.load=function(e,t,n){var r=this;if(this.g==wl)return Promise.reject(al());this.dispatchEvent(ks(yl));var i=ll();i.uri=e,i.yc=Date.now()/1e3,n&&(i.mimeType=n),void 0!==t&&(i.startTime=t);var o=function(e,t){if(!It())return!0;var n=t.mimeType,r=t.uri||"";return n||(n={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"}[Qr(r)]),!!n&&(""!=(t.u||wt()).canPlayType(n)&&(!It()||!(n in Zr)&&!(Qr(r)in ei)||Nt()&&e.i.streaming.useNativeHlsOnSafari))}(this,i)?this.ra:this.M,a=os(this.T,(function(e){return null==e.u?null:(i.u=e.u,{node:o,payload:i,Ca:!0})}));return this.f=new Rs,a.Ta=function(){},new Promise((function(e,t){a.Ib=function(){return t(new fe(2,7,7002))},a.Gb=function(){e(),r.dispatchEvent(ks(gl))},a.Fa=function(){return t(al())},a.onError=function(e){return t(e)}}))},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=_s(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ft("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay);var n=Ss(this.i,e,zs(this));return Us(this),n},r.getConfiguration=function(){var e=zs(this);return Ss(e,this.i,zs(this)),e},r.Od=function(){for(var e in this.i)delete this.i[e];Ss(this.i,zs(this),zs(this)),Us(this)},r.od=function(){return this.g},r.sd=function(){return this.a},r.Ab=function(){return this.I},r.hd=function(){return this.$a},r.gd=function(){return function(e,t){for(var n=[],r=1;rt||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!It()||Rt("application/x-mpegurl"))},Ns.setAdManagerFactory=function(e){Bl=e},Ns.registerSupportPlugin=function(e,t){zl[e]=t},Ns.prototype.destroy=Ns.prototype.destroy;var ul="abrstatuschanged",dl="adaptation",pl="buffering",fl="drmsessionupdate",hl="emsg",vl="error",ml="expirationupdated",gl="loaded",yl="loading",_l="manifestparsed",bl="metadata",El="onstatechange",Sl="onstateidle",Tl="ratechange",Ol="streaming",Al="textchanged",Cl="texttrackvisibility",Pl="timelineregionadded",Il="timelineregionenter",Rl="timelineregionexit",Nl="trackschanged",kl="unloading",Ll="variantchanged",wl=0,Dl=1,Ml=2,xl=3;Ns.LoadMode={DESTROYED:wl,NOT_LOADED:Dl,MEDIA_SOURCE:Ml,SRC_EQUALS:xl},Ns.version="3.0.4-npm-dirty";var Ul=["","0"];mt=new function(e){this.a=e,this.c=ht,this.b=vt}(new pt(Number(Ul[0]),Number(Ul[1])));var Fl=["output-restricted","internal-error"],zl={},Bl=null;function Vl(e,t){var n=Xa(new $a(e.ma(),e.V()),t),r=t.appMetadata||{};return n=jl(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r}}function jl(e){for(var t=[],n=function(e){return e.filter((function(e){return Er(e)}))}(e.variants),r=(n=c(n)).next();!r.done;r=n.next())t.push(mr(r.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(gr(n.value));return t}function Hl(){this.a={}}function Gl(e,t){var n=e.a[t];return null==n&&(n=0),n}function ql(e){var t=this;if(e&&e.constructor!=Ns)throw new fe(2,9,9008);this.I=this.i=null,e?(this.i=e.i,this.I=e.Ab()):(this.i=Es(),this.I=new Be),this.Nb=[],this.kb=[],this.qc=[],this.a=new Map,this.a.set(null,Promise.resolve(null)),this.b=new Map;var n=!e;this.B=new Je((function(){var e,r,i,o,a;return w((function(s){switch(s.a){case 1:return b(s,Promise.all(t.qc.map((function(e){return ca(e)}))),2);case 2:for(e=function(){},r=[],i=c(t.kb),o=i.next();!o.done;o=i.next())a=o.value,r.push(a.then(e,e));return b(s,Promise.all(r),3);case 3:if(!n){s.m(4);break}return b(s,t.I.destroy(),4);case 4:t.i=null,t.I=null,E(s)}}))}))}function Kl(){if(It())e:{for(var e=c(Oa.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function Wl(e,t){for(var n=[],r=c(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&"video"==i.type?n.push({contentType:At(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:At(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function Yl(e,t,n){return w((function(r){return b(r,function(e,t,n,r){var i,o,a;return w((function(s){return 1==s.a?r.drmInfo?(i=function(e){var t=Array.from(e.a.keys());if(!t.length)throw new fe(2,9,9e3,"No supported storage mechanisms found");return e.a.get(t[0]).getEmeSessionCell()}(n),o=r.sessionIds.map((function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:Wl(r,!1),videoCapabilities:Wl(r,!0)}})),b(s,ns(t,e,o),2)):s.return():3!=s.a?(a=s.b,b(s,i.remove(a),3)):b(s,i.add(o.filter((function(e){return!a.includes(e.sessionId)}))),0)}))}(e.I,e.i.drm,n,t),0)}))}function Jl(e,t,n){function r(){}var i=function(e){for(var t=[],n=(e=c(e.streams)).next();!n.done;n=e.next())for(var r=(n=c(n.value.segments)).next();!r.done;r=n.next())null!=(r=r.value).initSegmentKey&&t.push(r.initSegmentKey),t.push(r.dataKey);return t}(n);return Vl(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}function $l(e,t,n,r,i,o,a){var s={id:o.id,originalId:o.originalId,primary:o.primary,type:o.type,mimeType:o.mimeType,codecs:o.codecs,frameRate:o.frameRate,pixelAspectRatio:o.pixelAspectRatio,kind:o.kind,language:o.language,label:o.label,width:o.width||null,height:o.height||null,encrypted:o.encrypted,keyIds:o.keyIds,segments:[],variantIds:[],roles:o.roles,channelsCount:o.channelsCount,audioSamplingRate:o.audioSamplingRate,closedCaptions:o.closedCaptions},l=o.id;return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var r=e.segmentIndex.get(t);r;)n(r),r=e.segmentIndex.get(++t)}(o,i.presentationTimeline.dc(),(function(i){var c=function(e,t,n,r,i,o,a,s){return e.a.has(a)?e.a.get(a):(s=bi(a.c(),a.b,a.a,s.streaming.retryParameters),t=ua(t,n,s,.5*Gl(o,r),!0,(function(t){var n;return w((function(r){return 1==r.a?b(r,i.addSegments([{data:t}]),2):(n=r.b,e.Nb.push(n[0]),r.return(n[0]))}))})),e.a.set(a,t),t)}(e,t,l,o.id,n,r,i.f,a),u=function(e,t,n,r,i,o,a,s){var l=[a.c()[0],a.b,a.a].join("-");return e.b.has(l)?e.b.get(l):(s=bi(a.c(),a.b,a.a,s.streaming.retryParameters),t=ua(t,n,s,function(e,t,n){return n=n.endTime-n.startTime,Gl(e,t)*n}(o,r,a),!1,(function(t){var n;return w((function(r){return 1==r.a?b(r,i.addSegments([{data:t}]),2):(n=r.b,e.Nb.push(n[0]),r.return(n[0]))}))})),e.b.set(l,t),t)}(e,t,l,o.id,n,r,i,a);!function(e,t,n){$e(e.B);var r=(e.a.get(t)||Promise.resolve()).then((function(){return w((function(e){return b(e,n(),0)}))}));e.a.set(t,r)}(t,l,(function(){var e,t;return w((function(n){return 1==n.a?b(n,c,2):3!=n.a?(e=n.b,b(n,u,3)):(t=n.b,s.segments.push({initSegmentKey:e,startTime:i.startTime,endTime:i.endTime,appendWindowStart:i.appendWindowStart,appendWindowEnd:i.appendWindowEnd,timestampOffset:i.timestampOffset,dataKey:t}),void E(n))}))}))})),s}function Xl(e){if(e.B.a)throw new fe(2,9,7001)}function Ql(){if(!Kl())throw new fe(2,9,9e3)}function Zl(e,t){return w((function(n){return 1==n.a?(e.kb.push(t),T(n),b(n,t,4)):2!=n.a?n.return(n.b):(C(n),xe(e.kb,t),P(n,0))}))}function ec(e){for(var t=new Set,n=c(e.textStreams),r=n.next();!r.done;r=n.next())t.add(r.value);for(n=(e=c(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}(r=ql.prototype).destroy=function(){return this.B.destroy()},r.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=_s(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ft("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),Ss(this.i,e)},r.getConfiguration=function(){var e=Es();return Ss(e,this.i,Es()),e},r.Ab=function(){return this.I},r.store=function(e,t,n){var r=this,i=this.getConfiguration(),o=new la(this.I);this.qc.push(o),t=function(e,t,n,r,i,o){var a,s,l,u,d,p,f,h,v,m;return w((function(g){switch(g.a){case 1:return Ql(),s=a=null,l=new Ea,d=u=null,S(g,2,3),b(g,r(),5);case 5:return a=g.b,b(g,function(e,t,n,r){var i,o,a,s,l;return w((function(c){if(1==c.a)return i=null,o=e.I,a={networkingEngine:o,filter:function(){return Promise.resolve()},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e}},n.configure(r.manifest),Xl(e),b(c,n.start(t,a),2);if(3!=c.a)return s=c.b,Xl(e),l=ec(s),b(c,Promise.all($(l,(function(e){return e.createSegmentIndex()}))),3);if(Xl(e),i)throw i;return c.return(s)}))}(e,t,a,i),6);case 6:if(p=g.b,Xl(e),!(!p.presentationTimeline.X()&&!p.presentationTimeline.Ea()))throw new fe(2,9,9005,t);return b(g,function(e,t,n,r){var i;return w((function(o){switch(o.a){case 1:return(i=new Ht({Sa:e.I,onError:n,Hb:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(r.drm),b(o,function(e,t,n){return e.o=[],e.A=n,qt(e,t)}(i,t.variants,r.offline.usePersistentLicense),2);case 2:return b(o,Kt(i),3);case 3:return b(o,Wt(i),4);case 4:return o.return(i)}}))}(e,p,(function(e){d=d||e}),i),7);case 7:if(s=g.b,Xl(e),d)throw d;return b(g,e.Pa(p,s,i),8);case 8:return b(g,l.init(),9);case 9:return Xl(e),b(g,function(e){var t=null;if(e.a.forEach((function(e,n){e.getCells().forEach((function(e,r){e.hasFixedKeySpace()||t||(t={path:{ma:n,V:r},V:e})}))})),t)return t;throw new fe(2,9,9013,"Could not find a cell that supports add-operations")}(l),10);case 10:return u=g.b,Xl(e),b(g,function(e,t,n,r,i,o,a,s){var l,u,d,p,f,h,v,m,g,y;return w((function(_){switch(_.a){case 1:return l=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=jl(t),appMetadata:n}}(i,r,o),u=a.offline.progressCallback,function(e,t,n){e.Oc=t,e.Nc=n}(s,(function(e,t){l.size=t,u(l,e)}),(function(e,t){f&&a.offline.usePersistentLicense&&h==t&&Yt(n,"cenc",e)})),d=r.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t})),p=r.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))})),h=null,(f=d&&!p)&&(v=n.c,h=tc.get(v.keySystem)),T(_),g=m=function(e,t,n,r,i,o,a,s){for(var l=new Hl,u=c(i.variants),d=u.next();!d.done;d=u.next()){var p=l,f=(d=d.value).audio,h=d.video;if(f&&!h&&(p.a[f.id]=f.bandwidth||d.bandwidth),!f&&h&&(p.a[h.id]=h.bandwidth||d.bandwidth),f&&h){var v=f.bandwidth||393216,m=h.bandwidth||d.bandwidth-v;0>=m&&(m=d.bandwidth),p.a[f.id]=v,p.a[h.id]=m}}for(u=c(i.textStreams),p=u.next();!p.done;p=u.next())l.a[p.value.id]=52;for(p=ec(i),u=new Map,p=c(p),d=p.next();!d.done;d=p.next())d=d.value,f=$l(e,t,n,l,i,d,s),u.set(d.id,f);for(e=c(i.variants),d=e.next();!d.done;d=e.next())(t=d.value).audio&&u.get(t.audio.id).variantIds.push(t.id),t.video&&u.get(t.video.id).variantIds.push(t.id);return e=Array.from(u.values()),s=s.offline.usePersistentLicense,(t=r.c)&&s&&(t.initData=[]),{creationTime:Date.now(),originalManifestUri:o,duration:i.presentationTimeline.getDuration(),size:0,expiration:r.gb(),streams:e,sessionIds:s?Xt(r):[],drmInfo:t,appMetadata:a}}(e,s,t,n,r,i,o,a),b(_,function(e){return w((function(t){return 1==t.a?b(t,Promise.all(e.a.values()),2):t.return(e.fb.a)}))}(s),4);case 4:if(g.size=_.b,m.expiration=n.gb(),y=Xt(n),m.sessionIds=a.offline.usePersistentLicense?y:[],d&&a.offline.usePersistentLicense&&!y.length)throw new fe(2,9,9007);return _.return(m);case 2:return C(_),b(_,s.destroy(),5);case 5:P(_,0)}}))}(e,u.V,s,p,t,n,i,o),11);case 11:if(f=g.b,Xl(e),d)throw d;return b(g,u.V.addManifests([f]),12);case 12:return h=g.b,Xl(e),v=new Ya("manifest",u.path.ma,u.path.V,h[0]),g.return(Vl(v,f));case 3:return C(g),e.Nb=[],b(g,l.destroy(),13);case 13:if(!a){g.m(14);break}return b(g,a.stop(),14);case 14:if(!s){g.m(16);break}return b(g,s.destroy(),16);case 16:P(g,0);break;case 2:if(m=A(g),!u){g.m(18);break}return b(g,u.V.removeSegments(e.Nb,(function(){})),18);case 18:throw d||m}}))}(this,e,t||{},(function(){var t;return w((function(o){return 1==o.a?b(o,Xr(e,r.I,i.manifest.retryParameters,n||null),2):(t=o.b,o.return(bt(t)))}))}),i,o);var a=new _e(t,(function(){return ca(o)}));return a.finally((function(){xe(r.qc,o)})),a.then=function(e){return ft("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead."),a.promise.then(e)},function(e,t){var n=t.promise;return e.kb.push(n),t.finally((function(){xe(e.kb,n)}))}(this,a)},r.zd=function(){return ft("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},r.Pa=function(e,t,n){var r,i,o,a,s,l,u,d,p,f,h,v,m,g,y;return w((function(_){if(1==_.a){for(r={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return hr(e,t,n)}))}(e,n.restrictions,r),function(e){e.variants=e.variants.filter((function(e){var t=!0;return e.audio&&(t=t&&Gn(e.audio)),e.video&&(t=t&&Gn(e.video)),t}))}(e),function(e,t){e.variants=e.variants.filter((function(e){return on(t,e)}))}(e,t),i=[],o=n.preferredAudioChannelCount,fr(e,o),a=c(e.variants),s=a.next();!s.done;s=a.next())l=s.value,i.push(mr(l));for(u=c(e.textStreams),d=u.next();!d.done;d=u.next())p=d.value,i.push(gr(p));return b(_,n.offline.trackSelectionCallback(i),2)}for(f=_.b,h=new Set,v=new Set,m=c(f),g=m.next();!g.done;g=m.next())"variant"==(y=g.value).type&&h.add(y.id),"text"==y.type&&v.add(y.id);e.variants=e.variants.filter((function(e){return h.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return v.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=c(t),r=n.next();!r.done;r=n.next())for(var i=(r=c(t)).next();!i.done;i=r.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),r=n.next();!r.done;r=n.next());}(e),E(_)}))},r.remove=function(e){return Zl(this,function(e,t){var n,r,i,o,a,s;return w((function(l){switch(l.a){case 1:if(Ql(),null==(n=Ja(t))||"manifest"!=n.a)throw new fe(2,9,9004,t);return r=n,i=new Ea,T(l),b(l,i.init(),4);case 4:return b(l,Sa(i,r.ma(),r.V()),5);case 5:return b(l,(o=l.b).getManifests([r.key()]),6);case 6:return a=l.b,s=a[0],b(l,Promise.all([Yl(e,s,i),Jl(o,r,s)]),2);case 2:return C(l),b(l,i.destroy(),8);case 8:P(l,0)}}))}(this,e))},r.Nd=function(){return Zl(this,function(e){var t,n,r,i,o,a,s,l,u,d;return w((function(p){switch(p.a){case 1:return Ql(),t=e.I,n=e.i.drm,r=new Ea,i=!1,T(p),b(p,r.init(),4);case 4:o=[],function(e,t){e.a.forEach((function(e){t(e.getEmeSessionCell())}))}(r,(function(e){return o.push(e)})),a=c(o),s=a.next();case 5:if(s.done){p.m(2);break}return b(p,(l=s.value).getAll(),8);case 8:return u=p.b,b(p,ns(n,t,u),9);case 9:return d=p.b,b(p,l.remove(d),10);case 10:d.length!=u.length&&(i=!0),s=a.next(),p.m(5);break;case 2:return C(p),b(p,r.destroy(),11);case 11:P(p,3);break;case 3:return p.return(!i)}}))}(this))},r.list=function(){return Zl(this,function(){var e,t,n;return w((function(r){switch(r.a){case 1:return Ql(),e=[],t=new Ea,T(r),b(r,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.a.forEach((function(e,n){e.getCells().forEach((function(e,r){t({ma:n,V:r},e)}))}))}(t,(function(t,r){n=n.then((function(){return w((function(n){if(1==n.a)return b(n,r.getAllManifests(),2);n.b.forEach((function(n,r){var i=Vl(new Ya("manifest",t.ma,t.V,r),n);e.push(i)})),E(n)}))}))})),b(r,n,2);case 2:return C(r),b(r,t.destroy(),6);case 6:P(r,3);break;case 3:return r.return(e)}}))}())},z("shaka.offline.Storage",ql),ql.deleteAll=function(){var e;return w((function(t){return 1==t.a?(e=new Ea,T(t),b(t,function(e){var t,n;return w((function(r){return 1==r.a?(t=Array.from(e.a.values()),(n=0=t.data.length)return e;e=[];for(var n={},r=(t=c(t.data)).next();!r.done;n={lb:n.lb},r=t.next())n.lb=r.value,e.some(function(e){return function(t){return Ae(t,e.lb)}}(n))||e.push(n.lb);return jt.apply(xt,u(e))}(e.initData)),this.dispatchEvent(t)}}function _c(e,t){this.keySystem=e;for(var n=!1,r=c(t),i=r.next();!i.done;i=r.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(i=i.value).initDataTypes,sessionTypes:["temporary"],label:i.label},a=!1;if(i.audioCapabilities)for(var s=c(i.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(o.audioCapabilities.push(l),n=!0));if(i.videoCapabilities)for(l=(s=c(i.videoCapabilities)).next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(o.videoCapabilities.push(l),n=!0));if(a||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==i.persistentState&&(n=!1),n)return void(this.a=o)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function bc(e){var t=this.mediaKeys;return t&&t!=e&&Sc(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Sc(e,this):Promise.resolve()}function Ec(e){this.a=new MSMediaKeys(e),this.b=new Xe}function Sc(e,t){if(e.b.Ia(),!t)return Promise.resolve();e.b.C(t,"msneedkey",yc);try{return po(t,HTMLMediaElement.HAVE_METADATA,e.b,(function(){t.msSetMediaKeys(e.a)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Tc(e){we.call(this),this.f=null,this.g=e,this.c=this.a=null,this.b=new Xe,this.sessionId="",this.expiration=NaN,this.closed=new ye,this.keyStatuses=new Ac}function Oc(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.a=t,n=new ke("keystatuseschange"),e.dispatchEvent(n)}function Ac(){this.size=0,this.a=void 0}function Cc(){return Promise.reject(Error("The key system specified is not supported."))}function Pc(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function Ic(){throw new TypeError("Illegal constructor.")}function Rc(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Nc(e){return jc?jc+e.charAt(0).toUpperCase()+e.slice(1):e}function kc(e,t){try{var n=new wc(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Lc(e){var t=this.mediaKeys;return t&&t!=e&&Mc(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Mc(e,this),Promise.resolve()}function wc(e,t){this.a=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.a="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var o=c(t),a=o.next();!a.done;a=o.next()){var s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},l=!1;if(a.audioCapabilities)for(var u=c(a.audioCapabilities),d=u.next();!d.done;d=u.next())(d=d.value).contentType&&(l=!0,i.canPlayType(d.contentType.split(";")[0],this.a)&&(s.audioCapabilities.push(d),r=!0));if(a.videoCapabilities)for(d=(u=c(a.videoCapabilities)).next();!d.done;d=u.next())(d=d.value).contentType&&(l=!0,i.canPlayType(d.contentType,this.a)&&(s.videoCapabilities.push(d),r=!0));if(l||(r=i.canPlayType("video/mp4",this.a)||i.canPlayType("video/webm",this.a)),"required"==a.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):r=!1),r)return void(this.b=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(n=Error(n)).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function Dc(e){this.g=e,this.a=null,this.b=new Xe,this.c=[],this.f=new Map}function Mc(e,t){e.a=t,e.b.Ia();var n=jc;t&&(e.b.C(t,n+"needkey",(function(t){var n=document.createEvent("CustomEvent");n.initCustomEvent("encrypted",!1,!1,null),n.initDataType="cenc",n.initData=Pe(t.initData),e.a.dispatchEvent(n)})),e.b.C(t,n+"keymessage",(function(t){var n=xc(e,t.sessionId);n&&(t=new ke("message",{messageType:null==n.keyStatuses.a?"licenserequest":"licenserenewal",message:t.message}),n.b&&(n.b.resolve(),n.b=null),n.dispatchEvent(t))})),e.b.C(t,n+"keyadded",(function(t){(t=xc(e,t.sessionId))&&(Bc(t,"usable"),t.a&&t.a.resolve(),t.a=null)})),e.b.C(t,n+"keyerror",(function(t){var n=xc(e,t.sessionId);n&&n.handleError(t)})))}function xc(e,t){var n=e.f.get(t);return n||((n=e.c.shift())?(n.sessionId=t,e.f.set(t,n),n):null)}function Uc(e,t,n){we.call(this),this.f=e,this.h=!1,this.a=this.b=null,this.c=t,this.g=n,this.sessionId="",this.expiration=NaN,this.closed=new ye,this.keyStatuses=new Vc}function Fc(e,t,n){if(e.h)return Promise.reject(Error("The session is already initialized."));e.h=!0;try{if("persistent-license"==e.g)if(n)var r=Ie(ot("LOAD_SESSION|"+n));else{var i=ot("PERSISTENT|");r=jt(i,t)}else r=Ie(t)}catch(e){return Promise.reject(e)}e.b=new ye;var o=Nc("generateKeyRequest");try{e.f[o](e.c,r)}catch(t){if("InvalidStateError"!=t.name)return e.b=null,Promise.reject(t);new ve((function(){try{e.f[o](e.c,r)}catch(t){e.b.reject(t),e.b=null}})).O(.01)}return e.b}function zc(e,t,n){if(e.a)e.a.then((function(){return zc(e,t,n)})).catch((function(){return zc(e,t,n)}));else{if(e.a=t,"webkit-org.w3.clearkey"==e.c){var r=nt(n),i=JSON.parse(r);"oct"!=i.keys[0].kty&&(e.a.reject(Error("Response is not a valid JSON Web Key Set.")),e.a=null),r=zt(i.keys[0].k),i=zt(i.keys[0].kid)}else r=Ie(n),i=null;var o=Nc("addKey");try{e.f[o](e.c,r,i,e.sessionId)}catch(t){e.a.reject(t),e.a=null}}}function Bc(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.a=t,n=new ke("keystatuseschange"),e.dispatchEvent(n)}function Vc(){this.size=0,this.a=void 0}rc((function(){qu()}),-1),rc((function(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",oc),document.addEventListener("webkitfullscreenerror",oc),document.addEventListener("mozfullscreenchange",oc),document.addEventListener("mozfullscreenerror",oc),document.addEventListener("MSFullscreenChange",oc),document.addEventListener("MSFullscreenError",oc)}})),rc((function(){var t=!1;if(Lt("CrKey"))t=!0;else try{e.indexedDB&&(t=!1)}catch(e){t=!0}t&&delete e.indexedDB})),rc((function(){Lt("Trident/")&&!HTMLInputElement.prototype.originalAddEventListener&&(HTMLInputElement.prototype.originalAddEventListener=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=ac)})),rc((function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})})),rc((function(){})),rc((function(){var t=kt();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?(function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(/ *; */)[0].split("/")[1].toLowerCase()&&e(t)}}(),12>=t?(sc(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):sc()):(Lt("Tizen 2")||Lt("Tizen 3")||Lt("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=Ct(t)[0]&&e(t)}}())})),dc.prototype.createMediaKeys=function(){var e=new pc(this.keySystem);return Promise.resolve(e)},dc.prototype.getConfiguration=function(){return this.a},pc.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new hc(this.a,e)},pc.prototype.setServerCertificate=function(){return Promise.resolve(!1)},m(hc,we),(r=hc.prototype).generateRequest=function(e,t){var n=this;this.a=new ye;try{var r=this.g.createSession("video/mp4",Ie(t));this.f=r,this.sessionId=r.sessionId||"",this.b.C(this.f,"webkitkeymessage",(function(e){n.a&&(n.a.resolve(),n.a=null),e=new ke("message",{messageType:null==n.keyStatuses.a?"license-request":"license-renewal",message:Pe(e.message)}),n.dispatchEvent(e)})),this.b.C(r,"webkitkeyadded",(function(){n.c&&(vc(n,"usable"),n.c.resolve(),n.c=null)})),this.b.C(r,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.f.error,null!=n.a)n.a.reject(e),n.a=null;else if(null!=n.c)n.c.reject(e),n.c=null;else switch(n.f.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:vc(n,"output-not-allowed");break;default:vc(n,"internal-error")}})),vc(this,"status-pending")}catch(e){this.a.reject(e)}return this.a},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.c=new ye;try{this.f.update(Ie(e))}catch(e){this.c.reject(e)}return this.c},r.close=function(){try{this.f.close(),this.closed.resolve(),this.b.Ia()}catch(e){this.closed.reject(e)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=mc.prototype).forEach=function(e){this.a&&e(this.a,pn.value())},r.get=function(e){if(this.has(e))return this.a},r.has=function(e){var t=pn.value();return!(!this.a||!Ae(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},rc((function(){e.HTMLVideoElement&&e.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=cc,e.MediaKeys=pc,e.MediaKeySystemAccess=dc,navigator.requestMediaKeySystemAccess=lc)})),_c.prototype.createMediaKeys=function(){var e=new Ec(this.keySystem);return Promise.resolve(e)},_c.prototype.getConfiguration=function(){return this.a},Ec.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Tc(this.a,e)},Ec.prototype.setServerCertificate=function(){return Promise.resolve(!1)},m(Tc,we),(r=Tc.prototype).generateRequest=function(e,t){var n=this;this.a=new ye;try{this.f=this.g.createSession("video/mp4",Ie(t),null),this.b.C(this.f,"mskeymessage",(function(e){n.a&&(n.a.resolve(),n.a=null),e=new ke("message",{messageType:null==n.keyStatuses.a?"license-request":"license-renewal",message:Pe(e.message)}),n.dispatchEvent(e)})),this.b.C(this.f,"mskeyadded",(function(){n.a?(Oc(n,"usable"),n.a.resolve(),n.a=null):n.c&&(Oc(n,"usable"),n.c.resolve(),n.c=null)})),this.b.C(this.f,"mskeyerror",(function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=n.f.error,null!=n.a)n.a.reject(e),n.a=null;else if(null!=n.c)n.c.reject(e),n.c=null;else switch(n.f.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:Oc(n,"output-not-allowed");break;default:Oc(n,"internal-error")}})),Oc(this,"status-pending")}catch(e){this.a.reject(e)}return this.a},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.c=new ye;try{this.f.update(Ie(e))}catch(e){this.c.reject(e)}return this.c},r.close=function(){try{this.f.close(),this.closed.resolve(),this.b.Ia()}catch(e){this.closed.reject(e)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=Ac.prototype).forEach=function(e){this.a&&e(this.a,pn.value())},r.get=function(e){if(this.has(e))return this.a},r.has=function(e){var t=pn.value();return!(!this.a||!Ae(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},rc((function(){!e.HTMLVideoElement||!e.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,e.MediaKeys=Ec,e.MediaKeySystemAccess=_c,navigator.requestMediaKeySystemAccess=gc,HTMLMediaElement.prototype.setMediaKeys=bc)})),Ic.prototype.createSession=function(){},Ic.prototype.setServerCertificate=function(){},Rc.prototype.getConfiguration=function(){},Rc.prototype.createMediaKeys=function(){},rc((function(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Cc,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Pc,e.MediaKeys=Ic,e.MediaKeySystemAccess=Rc)}),-10),wc.prototype.createMediaKeys=function(){var e=new Dc(this.a);return Promise.resolve(e)},wc.prototype.getConfiguration=function(){return this.b},Dc.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.a||document.createElement("video");return t.src||(t.src="about:blank"),e=new Uc(t,this.g,e),this.c.push(e),e},Dc.prototype.setServerCertificate=function(){return Promise.resolve(!1)},m(Uc,we),(r=Uc.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.b?(45==e.systemCode&&(t.message="Unsupported session type."),this.b.reject(t),this.b=null):e.sessionId&&this.a?(this.a.reject(t),this.a=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Bc(this,"output-restricted"):Bc(this,1==t?"expired":"internal-error"))},r.generateRequest=function(e,t){return Fc(this,t,null)},r.load=function(e){return"persistent-license"==this.g?Fc(this,null,e):Promise.reject(Error("Not a persistent session."))},r.update=function(e){var t=new ye;return zc(this,t,e),t},r.close=function(){if("persistent-license"!=this.g){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Nc("cancelKeyRequest");try{this.f[e](this.c,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},r.remove=function(){return"persistent-license"!=this.g?Promise.reject(Error("Not a persistent session.")):this.close()},(r=Vc.prototype).forEach=function(e){this.a&&e(this.a,pn.value())},r.get=function(e){if(this.has(e))return this.a},r.has=function(e){var t=pn.value();return!(!this.a||!Ae(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var jc="";function Hc(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function Gc(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function qc(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function Kc(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function Wc(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function Yc(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function Jc(t,n,r){return new e.TextTrackCue(t,n,r)}function $c(t,n,r){return new e.TextTrackCue(t+"-"+n+"-"+r,t,n,r)}function Xc(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Qc(){}function Zc(e){var t=[];if(!e)return t;for(var n=c(e.childNodes),r=n.next();!r.done;r=n.next())(r=r.value).nodeType==Node.ELEMENT_NODE&&"br"!==r.nodeName&&(r=Zc(r),t=t.concat(r));return t.length||t.push(e),t}function eu(e){if(!e)return[];for(var t=[],n=(e=c(e.childNodes)).next();!n.done;n=e.next())(n=n.value)instanceof Element&&(n.hasAttribute("begin")?t.push(n):t=t.concat(eu(n)));return t}function tu(e,t){for(var n="",r=c(e.childNodes),i=r.next();!i.done;i=r.next())"br"==(i=i.value).nodeName&&e.childNodes[0]!==i?n+="\n":i.childNodes&&0n.length)return i;var o=e;for(e=null;o&&!(e=o.getAttribute(t))&&(o=o.parentNode)instanceof Element;);if(t=e)for(e=(t=c(t.split(" "))).next();!e.done;e=t.next()){e=e.value;for(var a=(o=c(n)).next();!a.done;a=o.next())if(r+(a=a.value).getAttribute("xml:id")==e){i.push(a);break}}return i}function cu(e,t){var n=null;if(yu.test(e)){n=yu.exec(e);var r=Number(n[1]),i=Number(n[2]),o=Number(n[3]),a=Number(n[4]);n=(o+=(a+=(Number(n[5])||0)/t.b)/t.frameRate)+60*i+3600*r}else _u.test(e)?n=uu(_u,e):bu.test(e)?n=uu(bu,e):Eu.test(e)?(n=Eu.exec(e),n=Number(n[1])/t.frameRate):Su.test(e)?(n=Su.exec(e),n=Number(n[1])/t.a):Tu.test(e)&&(n=uu(Tu,e));return n}function uu(e,t){var n=e.exec(t);return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function du(e,t,n,r){this.frameRate=Number(e)||30,this.b=Number(t)||1,this.a=Number(r),0==this.a&&(this.a=e?this.frameRate*this.b:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}rc((function(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)jc="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=kc,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Lc,e.MediaKeys=Dc,e.MediaKeySystemAccess=wc}})),rc((function(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=Gc,Object.defineProperty(t,"disablePictureInPicture",{get:Kc,set:Wc,enumerable:!0,configurable:!0}),document.exitPictureInPicture=qc,document.addEventListener("webkitpresentationmodechanged",Hc,!0))}})),rc((function(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}})),rc((function(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=Yc)}})),rc((function(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Jc;else if(6==n)t=$c;else{try{var r=!!Jc(1,2,"")}catch(e){r=!1}r&&(t=Jc)}t&&(e.VTTCue=function(e,n,r){return t(e,n,r)})}})),Qc.prototype.parseInit=function(){},Qc.prototype.parseMedia=function(e,t){var n=nt(e),r=[],i=new DOMParser,o=null;if(""==n)return r;try{o=i.parseFromString(n,"text/xml")}catch(e){throw new fe(2,2,2005,"Failed to parse TTML.")}if(o){if(n=o.getElementsByTagName("parsererror")[0])throw new fe(2,2,2005,n.textContent);if(!(i=o.getElementsByTagName("tt")[0]))throw new fe(2,2,2005,"TTML does not contain tag.");var a=Xc(i,"http://www.w3.org/ns/ttml#parameter","frameRate"),s=Xc(i,"http://www.w3.org/ns/ttml#parameter","subFrameRate"),l=Xc(i,"http://www.w3.org/ns/ttml#parameter","frameRateMultiplier"),u=Xc(i,"http://www.w3.org/ns/ttml#parameter","tickRate"),d=Xc(i,"http://www.w3.org/ns/ttml#parameter","cellResolution");if(o=i.getAttribute("xml:space")||"default",n=i.getAttribute("tts:extent"),"default"!=o&&"preserve"!=o)throw new fe(2,2,2005,"Invalid xml:space value: "+o);o="default"==o,a=new du(a,s,l,u),d=d&&(d=/^(\d+) (\d+)$/.exec(d))?{columns:parseInt(d[1],10),rows:parseInt(d[2],10)}:null,s=Zc(i.getElementsByTagName("metadata")[0]),l=Zc(i.getElementsByTagName("styling")[0]);for(var p=[],f=c(u=Zc(i.getElementsByTagName("layout")[0])),h=f.next();!h.done;h=f.next()){var v=h.value,m=n;h=new xn;var g,y,_=v.getAttribute("xml:id");if(_)h.id=_,_=null,m&&(_=hu.exec(m)||gu.exec(m)),m=_?Number(_[1]):null,_=_?Number(_[2]):null,(g=ou(v,l,"extent"))&&(null!=(g=(y=hu.exec(g))||gu.exec(g))&&(h.width=null!=m?100*Number(g[1])/m:Number(g[1]),h.height=null!=_?100*Number(g[2])/_:Number(g[2]),h.widthUnits=y||null!=m?Un:0,h.heightUnits=y||null!=_?Un:0)),(v=ou(v,l,"origin"))&&(null!=(g=(y=hu.exec(v))||gu.exec(v))&&(h.viewportAnchorX=null!=_?100*Number(g[1])/_:Number(g[1]),h.viewportAnchorY=null!=m?100*Number(g[2])/m:Number(g[2]),h.viewportAnchorUnits=y||null!=m?Un:0));else h=null;h&&p.push(h)}for(n=eu(i.getElementsByTagName("body")[0]),i=(n=c(n)).next();!i.done;i=n.next())(i=nu(i.value,t.periodStart,a,s,l,u,p,o,!1,d))&&r.push(i)}return r},z("shaka.text.TtmlTextParser",Qc),Qc.prototype.parseMedia=Qc.prototype.parseMedia,Qc.prototype.parseInit=Qc.prototype.parseInit;var pu,fu,hu=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,vu=/^(\d{1,2}(?:\.\d+)?|100)%$/,mu=/^(\d+px|\d+em|\d*\.?\d+c)$/,gu=/^(\d+)px (\d+)px$/,yu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,_u=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,bu=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Eu=/^(\d*(?:\.\d*)?)f$/,Su=/^(\d*(?:\.\d*)?)t$/,Tu=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,Ou={left:kn,center:"center",right:"end",start:kn,end:"end"},Au={left:"line-left",center:"center",right:"line-right"};function Cu(){this.o=new Qc}function Pu(){}function Iu(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],e.textAlign="middle"==t?On:An[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==r[1]?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(r=/^region:(.*)$/.exec(t))?(t=function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length?n[0]:null}(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=Ln[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=Nn,e.line=Number(n[1]),n[2]&&(e.lineAlign=Ln[n[2].toUpperCase()]))}function Ru(e){if(null==(e=Vr(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59{"use strict";n.d(t,{X:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{r:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{p:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{f:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{v:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n(59713);var r=n(43720),i=n.n(r),o=n(62100),a=n.n(o);a().util.Long!==i()&&(a().util.Long=i(),a().configure())},26982:(e,t,n)=>{"use strict";n(59713);var r=n(43720),i=n.n(r),o=n(62100),a=n.n(o);n(31214),n(4787),n(30826),n(25329),n(50313),n(29701),n(49479),n(91111),n(17677),n(61200),n(71458),n(33849),n(93284),n(6985),n(32707),n(68225),n(88879);a().util.Long!==i()&&(a().util.Long=i(),a().configure())},46380:(e,t,n)=>{"use strict";n.d(t,{HM:()=>_});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(31214),u=n(4787),d=n(30826);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te?v.toJSON(e):void 0)):t.item=[],void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.loadingContents&&(t.loadingContents=e.loadingContents),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),e.groupIndex?t.groupIndex=e.groupIndex.map((e=>e?g.toJSON(e):void 0)):t.groupIndex=[],t},fromPartial(e){const t=f({},y);if(t.item=[],t.groupIndex=[],void 0!==e.item&&null!==e.item)for(const n of e.item)t.item.push(v.fromPartial(n));if(void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=e.unfilteredLength:t.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=e.unrangedLength:t.unrangedLength=0,void 0!==e.loadingContents&&null!==e.loadingContents?t.loadingContents=e.loadingContents:t.loadingContents=!1,void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,void 0!==e.groupIndex&&null!==e.groupIndex)for(const n of e.groupIndex)t.groupIndex.push(g.fromPartial(n));return t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},45057:(e,t,n)=>{"use strict";n.d(t,{HM:()=>_});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(25329),u=n(50313),d=n(29701);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te?v.toJSON(e):void 0)):t.item=[],void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.loadingContents&&(t.loadingContents=e.loadingContents),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),e.groupIndex?t.groupIndex=e.groupIndex.map((e=>e?g.toJSON(e):void 0)):t.groupIndex=[],t},fromPartial(e){const t=f({},y);if(t.item=[],t.groupIndex=[],void 0!==e.item&&null!==e.item)for(const n of e.item)t.item.push(v.fromPartial(n));if(void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=e.unfilteredLength:t.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=e.unrangedLength:t.unrangedLength=0,void 0!==e.loadingContents&&null!==e.loadingContents?t.loadingContents=e.loadingContents:t.loadingContents=!1,void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,void 0!==e.groupIndex&&null!==e.groupIndex)for(const n of e.groupIndex)t.groupIndex.push(g.fromPartial(n));return t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},61745:(e,t,n)=>{"use strict";n(59713);var r=n(43720),i=n.n(r),o=n(62100),a=n.n(o);n(49479),n(91111),n(17677),n(61200);a().util.Long!==i()&&(a().util.Long=i(),a().configure())},44121:(e,t,n)=>{"use strict";n.d(t,{HM:()=>g});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(71458),u=n(33849),d=n(93284);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te?v.toJSON(e):void 0)):t.item=[],void 0!==e.numOfflinedEpisodes&&(t.numOfflinedEpisodes=e.numOfflinedEpisodes),void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.loadingContents&&(t.loadingContents=e.loadingContents),t},fromPartial(e){const t=f({},m);if(t.item=[],void 0!==e.item&&null!==e.item)for(const n of e.item)t.item.push(v.fromPartial(n));return void 0!==e.numOfflinedEpisodes&&null!==e.numOfflinedEpisodes?t.numOfflinedEpisodes=e.numOfflinedEpisodes:t.numOfflinedEpisodes=0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=e.unfilteredLength:t.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=e.unrangedLength:t.unrangedLength=0,void 0!==e.loadingContents&&null!==e.loadingContents?t.loadingContents=e.loadingContents:t.loadingContents=!1,t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},36166:(e,t,n)=>{"use strict";n(59713);var r=n(43720),i=n.n(r),o=n(62100),a=n.n(o);a().util.Long!==i()&&(a().util.Long=i(),a().configure())},91433:(e,t,n)=>{"use strict";n.d(t,{HM:()=>b});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(6985),u=n(32707),d=n(68225),p=n(88879);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;te?m.toJSON(e):void 0)):t.item=[],void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.loadingContents&&(t.loadingContents=e.loadingContents),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),e.groupIndex?t.groupIndex=e.groupIndex.map((e=>e?y.toJSON(e):void 0)):t.groupIndex=[],t},fromPartial(e){const t=h({},_);if(t.item=[],t.groupIndex=[],void 0!==e.item&&null!==e.item)for(const n of e.item)t.item.push(m.fromPartial(n));if(void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=e.unfilteredLength:t.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=e.unrangedLength:t.unrangedLength=0,void 0!==e.loadingContents&&null!==e.loadingContents?t.loadingContents=e.loadingContents:t.loadingContents=!1,void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,void 0!==e.groupIndex&&null!==e.groupIndex)for(const n of e.groupIndex)t.groupIndex.push(y.fromPartial(n));return t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},62463:(e,t,n)=>{"use strict";n(59713);var r=n(43720),i=n.n(r),o=n(62100),a=n.n(o);n(49479),n(91111),n(17677),n(61200);a().util.Long!==i()&&(a().util.Long=i(),a().configure())},31214:(e,t,n)=>{"use strict";n.d(t,{H_:()=>v});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(15098);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te?f.toJSON(e):void 0)):t.artists=[],void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),e.copyright?t.copyright=e.copyright.map((e=>e)):t.copyright=[],void 0!==e.covers&&(t.covers=e.covers?c.q.toJSON(e.covers):void 0),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t=d({},h);if(t.artists=[],t.copyright=[],void 0!==e.artists&&null!==e.artists)for(const n of e.artists)t.artists.push(f.fromPartial(n));if(void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.copyright&&null!==e.copyright)for(const n of e.copyright)t.copyright.push(n);return void 0!==e.covers&&null!==e.covers?t.covers=c.q.fromPartial(e.covers):t.covers=void 0,void 0!==e.year&&null!==e.year?t.year=e.year:t.year=0,void 0!==e.numDiscs&&null!==e.numDiscs?t.numDiscs=e.numDiscs:t.numDiscs=0,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=e.numTracks:t.numTracks=0,void 0!==e.playability&&null!==e.playability?t.playability=e.playability:t.playability=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=e.isPremiumOnly:t.isPremiumOnly=!1,t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},25329:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(15098);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{SI:()=>y});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(15098),u=n(59254);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te?u.h.toJSON(e):void 0)):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),t},fromPartial(e){const t=p({},g);if(t.extension=[],void 0!==e.show&&null!==e.show?t.show=m.fromPartial(e.show):t.show=void 0,void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.covers&&null!==e.covers?t.covers=c.q.fromPartial(e.covers):t.covers=void 0,void 0!==e.manifestId&&null!==e.manifestId?t.manifestId=e.manifestId:t.manifestId="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=e.publishDate:t.publishDate="0",void 0!==e.freezeFrames&&null!==e.freezeFrames?t.freezeFrames=c.q.fromPartial(e.freezeFrames):t.freezeFrames=void 0,void 0!==e.language&&null!==e.language?t.language=e.language:t.language="",void 0!==e.available&&null!==e.available?t.available=e.available:t.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=e.mediaTypeEnum:t.mediaTypeEnum=0,void 0!==e.number&&null!==e.number?t.number=e.number:t.number=0,void 0!==e.backgroundable&&null!==e.backgroundable?t.backgroundable=e.backgroundable:t.backgroundable=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?t.previewManifestId=e.previewManifestId:t.previewManifestId="",void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=e.previewId:t.previewId="",void 0!==e.episodeType&&null!==e.episodeType?t.episodeType=e.episodeType:t.episodeType=0,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(u.h.fromPartial(n));return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=e.is19PlusOnly:t.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?t.isBookChapter=e.isBookChapter:t.isBookChapter=!1,t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},59254:(e,t,n)=>{"use strict";n.d(t,{h:()=>f});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);let c;function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{if(void 0!==h)return h;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const v=h.atob||(e=>h.Buffer.from(e,"base64").toString("binary"));const m=h.btoa||(e=>h.Buffer.from(e,"binary").toString("base64"));l().util.Long!==a()&&(l().util.Long=a(),l().configure())},15098:(e,t,n)=>{"use strict";n.d(t,{q:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{$:()=>h});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(15098),u=n(59254);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te)):t.copyright=[],void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>e?u.h.toJSON(e):void 0)):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),t},fromPartial(e){const t=p({},f);if(t.copyright=[],t.extension=[],void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.popularity&&null!==e.popularity?t.popularity=e.popularity:t.popularity=0,void 0!==e.publisher&&null!==e.publisher?t.publisher=e.publisher:t.publisher="",void 0!==e.language&&null!==e.language?t.language=e.language:t.language="",void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.covers&&null!==e.covers?t.covers=c.q.fromPartial(e.covers):t.covers=void 0,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=e.numEpisodes:t.numEpisodes=0,void 0!==e.consumptionOrder&&null!==e.consumptionOrder?t.consumptionOrder=e.consumptionOrder:t.consumptionOrder="",void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=e.mediaTypeEnum:t.mediaTypeEnum=0,void 0!==e.copyright&&null!==e.copyright)for(const n of e.copyright)t.copyright.push(n);if(void 0!==e.trailerUri&&null!==e.trailerUri?t.trailerUri=e.trailerUri:t.trailerUri="",void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(u.h.fromPartial(n));return void 0!==e.isBook&&null!==e.isBook?t.isBook=e.isBook:t.isBook=!1,t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},6985:(e,t,n)=>{"use strict";n.d(t,{Pe:()=>E});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(15098);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te?g.toJSON(e):void 0)):t.artist=[],void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?t.trackDescriptors=e.trackDescriptors.map((e=>e?_.toJSON(e):void 0)):t.trackDescriptors=[],t},fromPartial(e){const t=d({},b);if(t.artist=[],t.trackDescriptors=[],void 0!==e.album&&null!==e.album?t.album=v.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist)for(const n of e.artist)t.artist.push(g.fromPartial(n));if(void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.discNumber&&null!==e.discNumber?t.discNumber=e.discNumber:t.discNumber=0,void 0!==e.trackNumber&&null!==e.trackNumber?t.trackNumber=e.trackNumber:t.trackNumber=0,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=e.previewId:t.previewId="",void 0!==e.isLocal&&null!==e.isLocal?t.isLocal=e.isLocal:t.isLocal=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?t.playableLocalTrack=e.playableLocalTrack:t.playableLocalTrack=!1,void 0!==e.hasLyrics&&null!==e.hasLyrics?t.hasLyrics=e.hasLyrics:t.hasLyrics=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=e.isPremiumOnly:t.isPremiumOnly=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?t.locallyPlayable=e.locallyPlayable:t.locallyPlayable=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?t.playableTrackLink=e.playableTrackLink:t.playableTrackLink="",void 0!==e.popularity&&null!==e.popularity?t.popularity=e.popularity:t.popularity=0,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=e.is19PlusOnly:t.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors)for(const n of e.trackDescriptors)t.trackDescriptors.push(_.fromPartial(n));return t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},61200:(e,t,n)=>{"use strict";n.d(t,{V:()=>f});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(4295);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{xC:()=>c,y1:()=>l});var r=n(43720),i=n.n(r),o=n(62100),a=n.n(o);let s;function l(e){switch(e){case 0:case"UNKNOWN":return s.UNKNOWN;case 1:case"NO_RESTRICTION":return s.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return s.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return s.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return s.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return s.NOT_AVAILABLE_OFFLINE;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN:return"UNKNOWN";case s.NO_RESTRICTION:return"NO_RESTRICTION";case s.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case s.AGE_RESTRICTED:return"AGE_RESTRICTED";case s.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case s.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";default:return"UNKNOWN"}}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s||(s={})),a().util.Long!==i()&&(a().util.Long=i(),a().configure())},93284:(e,t,n)=>{"use strict";n.d(t,{v:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{F:()=>f});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(4295);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t{"use strict";n.d(t,{w:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{W:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{$:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";n.d(t,{n:()=>p});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectServiceClient=void 0;const i=n(62100),o=n(78679);class a{constructor(e){r(this,"transport",void 0),this.transport=e}startDiscovery(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"StartDiscovery",payload:o.StartDiscoveryRequest.encode(e).finish()}).then((e=>o.StartDiscoveryResponse.decode(i.Reader.create(e))))}forceDiscover(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"ForceDiscover",payload:o.ForceDiscoverRequest.encode(e).finish()}).then((e=>o.ForceDiscoverResponse.decode(i.Reader.create(e))))}logout(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"Logout",payload:o.LogoutRequest.encode(e).finish()}).then((e=>o.LogoutResponse.decode(i.Reader.create(e))))}transfer(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"Transfer",payload:o.TransferRequest.encode(e).finish()}).then((e=>o.TransferResponse.decode(i.Reader.create(e))))}pull(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"Pull",payload:o.PullRequest.encode(e).finish()}).then((e=>o.PullResponse.decode(i.Reader.create(e))))}volumeUp(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"VolumeUp",payload:o.VolumeUpRequest.encode(e).finish()}).then((e=>o.VolumeUpResponse.decode(i.Reader.create(e))))}volumeDown(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"VolumeDown",payload:o.VolumeDownRequest.encode(e).finish()}).then((e=>o.VolumeDownResponse.decode(i.Reader.create(e))))}volumeSet(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"VolumeSet",payload:o.VolumeSetRequest.encode(e).finish()}).then((e=>o.VolumeSetResponse.decode(i.Reader.create(e))))}volume(e){return this.transport.callSingle({service:"spotify.connect.esperanto.proto.ConnectService",method:"Volume",payload:o.VolumeRequest.encode(e).finish()}).then((e=>o.VolumeResponse.decode(i.Reader.create(e))))}}r(a,"SERVICE_ID","spotify.connect.esperanto.proto.ConnectService"),r(a,"DECODERS",{StartDiscovery:{request:o.StartDiscoveryRequest.decode,response:o.StartDiscoveryResponse.decode},ForceDiscover:{request:o.ForceDiscoverRequest.decode,response:o.ForceDiscoverResponse.decode},Logout:{request:o.LogoutRequest.decode,response:o.LogoutResponse.decode},Transfer:{request:o.TransferRequest.decode,response:o.TransferResponse.decode},Pull:{request:o.PullRequest.decode,response:o.PullResponse.decode},VolumeUp:{request:o.VolumeUpRequest.decode,response:o.VolumeUpResponse.decode},VolumeDown:{request:o.VolumeDownRequest.decode,response:o.VolumeDownResponse.decode},VolumeSet:{request:o.VolumeSetRequest.decode,response:o.VolumeSetResponse.decode},Volume:{request:o.VolumeRequest.decode,response:o.VolumeResponse.decode}}),t.ConnectServiceClient=a},19325:(e,t,n)=>{"use strict";t.M$=t.YC=t.iu=t.Qb=t.bU=void 0;var r=n(78679);Object.defineProperty(t,"bU",{enumerable:!0,get:function(){return r.StartDiscoveryRequest}}),Object.defineProperty(t,"Qb",{enumerable:!0,get:function(){return r.ForceDiscoverRequest}}),Object.defineProperty(t,"iu",{enumerable:!0,get:function(){return r.LogoutRequest}}),Object.defineProperty(t,"YC",{enumerable:!0,get:function(){return r.LogoutResponse}});var i=n(50279);Object.defineProperty(t,"M$",{enumerable:!0,get:function(){return i.ConnectServiceClient}})},78679:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VolumeResponse=t.VolumeRequest=t.VolumeSetResponse=t.VolumeSetRequest=t.VolumeDownResponse=t.VolumeDownRequest=t.VolumeUpResponse=t.VolumeUpRequest=t.PullResponse=t.PullRequest=t.TransferResponse=t.TransferRequest=t.LogoutResponse=t.LogoutRequest=t.StartDiscoveryResponse=t.StartDiscoveryRequest=t.ForceDiscoverResponse=t.ForceDiscoverRequest=t.LoggingParams=t.statusToJSON=t.statusFromJSON=t.Status=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;function s(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_FOUND":return a.NOT_FOUND;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.OK:return"OK";case a.NOT_FOUND:return"NOT_FOUND";default:return"UNKNOWN"}}function c(e){return e.toString()}function u(e){return null!=e}t.protobufPackage="spotify.connect.esperanto.proto",function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Status||(t.Status={})),t.statusFromJSON=s,t.statusToJSON=l,t.LoggingParams={encode(e,t=o.default.Writer.create()){void 0!==e.commandInitiatedTime&&t.uint32(8).int64(e.commandInitiatedTime),void 0!==e.commandReceivedTime&&t.uint32(16).int64(e.commandReceivedTime);for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};for(;n.pos>>3){case 1:i.commandInitiatedTime=c(n.int64());break;case 2:i.commandReceivedTime=c(n.int64());break;case 3:i.pageInstanceIds.push(n.string());break;case 4:i.interactionIds.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({commandInitiatedTime:u(e.commandInitiatedTime)?String(e.commandInitiatedTime):void 0,commandReceivedTime:u(e.commandReceivedTime)?String(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(null==e?void 0:e.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(null==e?void 0:e.interactionIds)?e.interactionIds.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],t},fromPartial(e){var t,n,r,i;const o={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};return o.commandInitiatedTime=null!==(t=e.commandInitiatedTime)&&void 0!==t?t:void 0,o.commandReceivedTime=null!==(n=e.commandReceivedTime)&&void 0!==n?n:void 0,o.pageInstanceIds=(null===(r=e.pageInstanceIds)||void 0===r?void 0:r.map((e=>e)))||[],o.interactionIds=(null===(i=e.interactionIds)||void 0===i?void 0:i.map((e=>e)))||[],o}},t.ForceDiscoverRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.ForceDiscoverResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.StartDiscoveryRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.StartDiscoveryResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.LogoutRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.connectCosmosIdentifier&&t.uint32(10).string(e.connectCosmosIdentifier),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={connectCosmosIdentifier:""};for(;n.pos>>3==1)i.connectCosmosIdentifier=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({connectCosmosIdentifier:u(e.connectCosmosIdentifier)?String(e.connectCosmosIdentifier):""}),toJSON(e){const t={};return void 0!==e.connectCosmosIdentifier&&(t.connectCosmosIdentifier=e.connectCosmosIdentifier),t},fromPartial(e){var t;const n={connectCosmosIdentifier:""};return n.connectCosmosIdentifier=null!==(t=e.connectCosmosIdentifier)&&void 0!==t?t:"",n}},t.LogoutResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t;const n={status:0};return n.status=null!==(t=e.status)&&void 0!==t?t:0,n}},t.TransferRequest={encode:(e,n=o.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),""!==e.connectCosmosIdentifier&&n.uint32(18).string(e.connectCosmosIdentifier),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={loggingParams:void 0,connectCosmosIdentifier:""};for(;r.pos>>3){case 1:a.loggingParams=t.LoggingParams.decode(r,r.uint32());break;case 2:a.connectCosmosIdentifier=r.string();break;default:r.skipType(7&e)}}return a},fromJSON:e=>({loggingParams:u(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0,connectCosmosIdentifier:u(e.connectCosmosIdentifier)?String(e.connectCosmosIdentifier):""}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.connectCosmosIdentifier&&(n.connectCosmosIdentifier=e.connectCosmosIdentifier),n},fromPartial(e){var n;const r={loggingParams:void 0,connectCosmosIdentifier:""};return r.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,r.connectCosmosIdentifier=null!==(n=e.connectCosmosIdentifier)&&void 0!==n?n:"",r}},t.TransferResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t;const n={status:0};return n.status=null!==(t=e.status)&&void 0!==t?t:0,n}},t.PullRequest={encode:(e,n=o.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={loggingParams:void 0};for(;r.pos>>3==1)a.loggingParams=t.LoggingParams.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON:e=>({loggingParams:u(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={loggingParams:void 0};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.PullResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t;const n={status:0};return n.status=null!==(t=e.status)&&void 0!==t?t:0,n}},t.VolumeUpRequest={encode:(e,n=o.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={loggingParams:void 0};for(;r.pos>>3==1)a.loggingParams=t.LoggingParams.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON:e=>({loggingParams:u(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={loggingParams:void 0};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.VolumeUpResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t;const n={status:0};return n.status=null!==(t=e.status)&&void 0!==t?t:0,n}},t.VolumeDownRequest={encode:(e,n=o.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={loggingParams:void 0};for(;r.pos>>3==1)a.loggingParams=t.LoggingParams.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON:e=>({loggingParams:u(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){const n={loggingParams:void 0};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.VolumeDownResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t;const n={status:0};return n.status=null!==(t=e.status)&&void 0!==t?t:0,n}},t.VolumeSetRequest={encode:(e,n=o.default.Writer.create())=>(0!==e.volume&&n.uint32(8).int32(e.volume),void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={volume:0,loggingParams:void 0};for(;r.pos>>3){case 1:a.volume=r.int32();break;case 2:a.loggingParams=t.LoggingParams.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({volume:u(e.volume)?Number(e.volume):0,loggingParams:u(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const n={};return void 0!==e.volume&&(n.volume=Math.round(e.volume)),void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),n},fromPartial(e){var n;const r={volume:0,loggingParams:void 0};return r.volume=null!==(n=e.volume)&&void 0!==n?n:0,r.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,r}},t.VolumeSetResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={status:0};for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t;const n={status:0};return n.status=null!==(t=e.status)&&void 0!==t?t:0,n}},t.VolumeRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.VolumeResponse={encode:(e,t=o.default.Writer.create())=>(void 0!==e.volume&&t.uint32(8).int32(e.volume),0!==e.status&&t.uint32(16).int32(e.status),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={volume:void 0,status:0};for(;n.pos>>3){case 1:i.volume=n.int32();break;case 2:i.status=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({volume:u(e.volume)?Number(e.volume):void 0,status:u(e.status)?s(e.status):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.status&&(t.status=l(e.status)),t},fromPartial(e){var t,n;const r={volume:void 0,status:0};return r.volume=null!==(t=e.volume)&&void 0!==t?t:void 0,r.status=null!==(n=e.status)&&void 0!==n?n:0,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},36508:(e,t,n)=>{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0}),t.LocalFilesClient=void 0;const i=n(62100),o=n(50364),a=n(92738);class s{constructor(e){r(this,"transport",void 0),this.transport=e}getTracks(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetTracks",payload:o.GetTracksRequest.encode(e).finish()}).then((e=>o.GetTracksResponse.decode(i.Reader.create(e))))}subscribeTracks(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeTracks",payload:o.GetTracksRequest.encode(e).finish()},(e=>t(o.GetTracksResponse.decode(i.Reader.create(e)))))}getScannerStatus(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetScannerStatus",payload:a.Empty.encode(e).finish()}).then((e=>o.GetScannerStatusResponse.decode(i.Reader.create(e))))}subscribeScannerStatus(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeScannerStatus",payload:a.Empty.encode(e).finish()},(e=>t(o.GetScannerStatusResponse.decode(i.Reader.create(e)))))}getSources(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetSources",payload:a.Empty.encode(e).finish()}).then((e=>o.GetSourcesResponse.decode(i.Reader.create(e))))}subscribeSources(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeSources",payload:a.Empty.encode(e).finish()},(e=>t(o.GetSourcesResponse.decode(i.Reader.create(e)))))}mutateDefaultSource(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"MutateDefaultSource",payload:o.DefaultSource.encode(e).finish()}).then((e=>o.MutateSourceResponse.decode(i.Reader.create(e))))}addFolder(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"AddFolder",payload:o.Folder.encode(e).finish()}).then((e=>o.MutateSourceResponse.decode(i.Reader.create(e))))}removeFolder(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"RemoveFolder",payload:o.Folder.encode(e).finish()}).then((e=>o.MutateSourceResponse.decode(i.Reader.create(e))))}provideMediaStoreReader(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"ProvideMediaStoreReader",payload:o.JavaObjectValue.encode(e).finish()},(e=>t(a.Empty.decode(i.Reader.create(e)))))}notifyDefaultSources(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"NotifyDefaultSources",payload:a.Empty.encode(e).finish()}).then((e=>a.Empty.decode(i.Reader.create(e))))}}r(s,"SERVICE_ID","spotify.local_files_esperanto.proto.LocalFiles"),r(s,"DECODERS",{GetTracks:{request:o.GetTracksRequest.decode,response:o.GetTracksResponse.decode},SubscribeTracks:{request:o.GetTracksRequest.decode,response:o.GetTracksResponse.decode},GetScannerStatus:{request:a.Empty.decode,response:o.GetScannerStatusResponse.decode},SubscribeScannerStatus:{request:a.Empty.decode,response:o.GetScannerStatusResponse.decode},GetSources:{request:a.Empty.decode,response:o.GetSourcesResponse.decode},SubscribeSources:{request:a.Empty.decode,response:o.GetSourcesResponse.decode},MutateDefaultSource:{request:o.DefaultSource.decode,response:o.MutateSourceResponse.decode},AddFolder:{request:o.Folder.decode,response:o.MutateSourceResponse.decode},RemoveFolder:{request:o.Folder.decode,response:o.MutateSourceResponse.decode},ProvideMediaStoreReader:{request:o.JavaObjectValue.decode,response:a.Empty.decode},NotifyDefaultSources:{request:a.Empty.decode,response:a.Empty.decode}}),t.LocalFilesClient=s},81052:(e,t,n)=>{"use strict";t._X=t.g1=t.Y=t.uh=void 0;var r=n(64625);var i=n(2014);var o=n(88940);var a=n(89771);var s=n(10757);var l=n(10245);var c=n(21773);var u=n(50364);Object.defineProperty(t,"uh",{enumerable:!0,get:function(){return u.Query_SortBy}}),Object.defineProperty(t,"Y",{enumerable:!0,get:function(){return u.DefaultSource_Id}}),Object.defineProperty(t,"g1",{enumerable:!0,get:function(){return u.MutateSourceResponse_Result}});var d=n(36508);Object.defineProperty(t,"_X",{enumerable:!0,get:function(){return d.LocalFilesClient}})},50364:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaObjectValue=t.MutateSourceResponse=t.GetSourcesResponse=t.Folder=t.DefaultSource=t.GetScannerStatusResponse=t.GetTracksResponse=t.GetTracksRequest=t.Query=t.Range=t.ResponseStatus=t.Response=t.Item=t.mutateSourceResponse_ResultToJSON=t.mutateSourceResponse_ResultFromJSON=t.MutateSourceResponse_Result=t.defaultSource_IdToJSON=t.defaultSource_IdFromJSON=t.DefaultSource_Id=t.getScannerStatusResponse_ScannerStatusToJSON=t.getScannerStatusResponse_ScannerStatusFromJSON=t.GetScannerStatusResponse_ScannerStatus=t.query_SortByToJSON=t.query_SortByFromJSON=t.Query_SortBy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(2014),s=n(21773),l=n(10757);var c,u,d,p;function f(e){switch(e){case 0:case"NO_SORT":return c.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return c.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return c.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return c.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return c.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return c.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return c.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return c.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return c.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return c.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return c.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return c.NAME_ASC;case 12:case"NAME_DESC":return c.NAME_DESC;case 13:case"ADD_TIME_ASC":return c.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return c.ADD_TIME_DESC;case 15:case"LENGTH_ASC":return c.LENGTH_ASC;case 16:case"LENGTH_DESC":return c.LENGTH_DESC;default:return c.UNRECOGNIZED}}function h(e){switch(e){case c.NO_SORT:return"NO_SORT";case c.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case c.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case c.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case c.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case c.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case c.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case c.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case c.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case c.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case c.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case c.NAME_ASC:return"NAME_ASC";case c.NAME_DESC:return"NAME_DESC";case c.ADD_TIME_ASC:return"ADD_TIME_ASC";case c.ADD_TIME_DESC:return"ADD_TIME_DESC";case c.LENGTH_ASC:return"LENGTH_ASC";case c.LENGTH_DESC:return"LENGTH_DESC";default:return"UNKNOWN"}}function v(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"IDLE":return u.IDLE;case 2:case"IN_PROGRESS":return u.IN_PROGRESS;default:return u.UNRECOGNIZED}}function m(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.IDLE:return"IDLE";case u.IN_PROGRESS:return"IN_PROGRESS";default:return"UNKNOWN"}}function g(e){switch(e){case 0:case"UNKNOWN":return d.UNKNOWN;case 1:case"ITUNES":return d.ITUNES;case 2:case"DOWNLOADS":return d.DOWNLOADS;case 3:case"MY_MUSIC":return d.MY_MUSIC;case 4:case"WINDOWS_MUSIC_LIBRARY":return d.WINDOWS_MUSIC_LIBRARY;case 5:case"ANDROID_MEDIA_STORE":return d.ANDROID_MEDIA_STORE;default:return d.UNRECOGNIZED}}function y(e){switch(e){case d.UNKNOWN:return"UNKNOWN";case d.ITUNES:return"ITUNES";case d.DOWNLOADS:return"DOWNLOADS";case d.MY_MUSIC:return"MY_MUSIC";case d.WINDOWS_MUSIC_LIBRARY:return"WINDOWS_MUSIC_LIBRARY";case d.ANDROID_MEDIA_STORE:return"ANDROID_MEDIA_STORE";default:return"UNKNOWN"}}function _(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"SUCCESS":return p.SUCCESS;case 2:case"NOT_FOUND":return p.NOT_FOUND;case 3:case"NOT_CHANGED":return p.NOT_CHANGED;default:return p.UNRECOGNIZED}}function b(e){switch(e){case p.UNKNOWN:return"UNKNOWN";case p.SUCCESS:return"SUCCESS";case p.NOT_FOUND:return"NOT_FOUND";case p.NOT_CHANGED:return"NOT_CHANGED";default:return"UNKNOWN"}}function E(){return{javaObject:new Uint8Array}}t.protobufPackage="spotify.local_files_esperanto.proto",function(e){e[e.NO_SORT=0]="NO_SORT",e[e.ALBUM_ARTIST_NAME_ASC=1]="ALBUM_ARTIST_NAME_ASC",e[e.ALBUM_ARTIST_NAME_DESC=2]="ALBUM_ARTIST_NAME_DESC",e[e.TRACK_NUMBER_ASC=3]="TRACK_NUMBER_ASC",e[e.TRACK_NUMBER_DESC=4]="TRACK_NUMBER_DESC",e[e.DISC_NUMBER_ASC=5]="DISC_NUMBER_ASC",e[e.DISC_NUMBER_DESC=6]="DISC_NUMBER_DESC",e[e.ALBUM_NAME_ASC=7]="ALBUM_NAME_ASC",e[e.ALBUM_NAME_DESC=8]="ALBUM_NAME_DESC",e[e.ARTIST_NAME_ASC=9]="ARTIST_NAME_ASC",e[e.ARTIST_NAME_DESC=10]="ARTIST_NAME_DESC",e[e.NAME_ASC=11]="NAME_ASC",e[e.NAME_DESC=12]="NAME_DESC",e[e.ADD_TIME_ASC=13]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=14]="ADD_TIME_DESC",e[e.LENGTH_ASC=15]="LENGTH_ASC",e[e.LENGTH_DESC=16]="LENGTH_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.Query_SortBy||(t.Query_SortBy={})),t.query_SortByFromJSON=f,t.query_SortByToJSON=h,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.IDLE=1]="IDLE",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.GetScannerStatusResponse_ScannerStatus||(t.GetScannerStatusResponse_ScannerStatus={})),t.getScannerStatusResponse_ScannerStatusFromJSON=v,t.getScannerStatusResponse_ScannerStatusToJSON=m,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ITUNES=1]="ITUNES",e[e.DOWNLOADS=2]="DOWNLOADS",e[e.MY_MUSIC=3]="MY_MUSIC",e[e.WINDOWS_MUSIC_LIBRARY=4]="WINDOWS_MUSIC_LIBRARY",e[e.ANDROID_MEDIA_STORE=5]="ANDROID_MEDIA_STORE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.DefaultSource_Id||(t.DefaultSource_Id={})),t.defaultSource_IdFromJSON=g,t.defaultSource_IdToJSON=y,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SUCCESS=1]="SUCCESS",e[e.NOT_FOUND=2]="NOT_FOUND",e[e.NOT_CHANGED=3]="NOT_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p=t.MutateSourceResponse_Result||(t.MutateSourceResponse_Result={})),t.mutateSourceResponse_ResultFromJSON=_,t.mutateSourceResponse_ResultToJSON=b,t.Item={encode:(e,t=o.default.Writer.create())=>(void 0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.metadata&&a.TrackMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.collectionState&&s.TrackCollectionState.encode(e.collectionState,t.uint32(26).fork()).ldelim(),void 0!==e.rowId&&t.uint32(34).string(e.rowId),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};for(;n.pos>>3){case 1:i.addTime=n.uint32();break;case 2:i.metadata=a.TrackMetadata.decode(n,n.uint32());break;case 3:i.collectionState=s.TrackCollectionState.decode(n,n.uint32());break;case 4:i.rowId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({addTime:C(e.addTime)?Number(e.addTime):void 0,metadata:C(e.metadata)?a.TrackMetadata.fromJSON(e.metadata):void 0,collectionState:C(e.collectionState)?s.TrackCollectionState.fromJSON(e.collectionState):void 0,rowId:C(e.rowId)?String(e.rowId):void 0}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.metadata&&(t.metadata=e.metadata?a.TrackMetadata.toJSON(e.metadata):void 0),void 0!==e.collectionState&&(t.collectionState=e.collectionState?s.TrackCollectionState.toJSON(e.collectionState):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),t},fromPartial(e){var t,n;const r={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};return r.addTime=null!==(t=e.addTime)&&void 0!==t?t:void 0,r.metadata=void 0!==e.metadata&&null!==e.metadata?a.TrackMetadata.fromPartial(e.metadata):void 0,r.collectionState=void 0!==e.collectionState&&null!==e.collectionState?s.TrackCollectionState.fromPartial(e.collectionState):void 0,r.rowId=null!==(n=e.rowId)&&void 0!==n?n:void 0,r}},t.Response={encode(e,n=o.default.Writer.create()){for(const r of e.item)t.Item.encode(r,n.uint32(10).fork()).ldelim();return void 0!==e.unfilteredLength&&n.uint32(16).uint32(e.unfilteredLength),n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={item:[],unfilteredLength:void 0};for(;r.pos>>3){case 1:a.item.push(t.Item.decode(r,r.uint32()));break;case 2:a.unfilteredLength=r.uint32();break;default:r.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(null==e?void 0:e.item)?e.item.map((e=>t.Item.fromJSON(e))):[],unfilteredLength:C(e.unfilteredLength)?Number(e.unfilteredLength):void 0}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),n},fromPartial(e){var n,r;const i={item:[],unfilteredLength:void 0};return i.item=(null===(n=e.item)||void 0===n?void 0:n.map((e=>t.Item.fromPartial(e))))||[],i.unfilteredLength=null!==(r=e.unfilteredLength)&&void 0!==r?r:void 0,i}},t.ResponseStatus={encode:(e,t=o.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={statusCode:0,reason:""};for(;n.pos>>3){case 1:i.statusCode=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({statusCode:C(e.statusCode)?Number(e.statusCode):0,reason:C(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){var t,n;const r={statusCode:0,reason:""};return r.statusCode=null!==(t=e.statusCode)&&void 0!==t?t:0,r.reason=null!==(n=e.reason)&&void 0!==n?n:"",r}},t.Range={encode:(e,t=o.default.Writer.create())=>(0!==e.start&&t.uint32(8).int32(e.start),0!==e.length&&t.uint32(16).int32(e.length),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={start:0,length:0};for(;n.pos>>3){case 1:i.start=n.int32();break;case 2:i.length=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({start:C(e.start)?Number(e.start):0,length:C(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){var t,n;const r={start:0,length:0};return r.start=null!==(t=e.start)&&void 0!==t?t:0,r.length=null!==(n=e.length)&&void 0!==n?n:0,r}},t.Query={encode:(e,n=o.default.Writer.create())=>(""!==e.textFilter&&n.uint32(10).string(e.textFilter),0!==e.sortBy&&n.uint32(16).int32(e.sortBy),void 0!==e.range&&t.Range.encode(e.range,n.uint32(26).fork()).ldelim(),0!==e.minLength&&n.uint32(32).uint32(e.minLength),!0===e.removeDuplicateLinks&&n.uint32(40).bool(e.removeDuplicateLinks),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};for(;r.pos>>3){case 1:a.textFilter=r.string();break;case 2:a.sortBy=r.int32();break;case 3:a.range=t.Range.decode(r,r.uint32());break;case 4:a.minLength=r.uint32();break;case 5:a.removeDuplicateLinks=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON:e=>({textFilter:C(e.textFilter)?String(e.textFilter):"",sortBy:C(e.sortBy)?f(e.sortBy):0,range:C(e.range)?t.Range.fromJSON(e.range):void 0,minLength:C(e.minLength)?Number(e.minLength):0,removeDuplicateLinks:!!C(e.removeDuplicateLinks)&&Boolean(e.removeDuplicateLinks)}),toJSON(e){const n={};return void 0!==e.textFilter&&(n.textFilter=e.textFilter),void 0!==e.sortBy&&(n.sortBy=h(e.sortBy)),void 0!==e.range&&(n.range=e.range?t.Range.toJSON(e.range):void 0),void 0!==e.minLength&&(n.minLength=Math.round(e.minLength)),void 0!==e.removeDuplicateLinks&&(n.removeDuplicateLinks=e.removeDuplicateLinks),n},fromPartial(e){var n,r,i,o;const a={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};return a.textFilter=null!==(n=e.textFilter)&&void 0!==n?n:"",a.sortBy=null!==(r=e.sortBy)&&void 0!==r?r:0,a.range=void 0!==e.range&&null!==e.range?t.Range.fromPartial(e.range):void 0,a.minLength=null!==(i=e.minLength)&&void 0!==i?i:0,a.removeDuplicateLinks=null!==(o=e.removeDuplicateLinks)&&void 0!==o&&o,a}},t.GetTracksRequest={encode:(e,n=o.default.Writer.create())=>(void 0!==e.query&&t.Query.encode(e.query,n.uint32(10).fork()).ldelim(),void 0!==e.policy&&l.PlaylistTrackDecorationPolicy.encode(e.policy,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={query:void 0,policy:void 0};for(;r.pos>>3){case 1:a.query=t.Query.decode(r,r.uint32());break;case 2:a.policy=l.PlaylistTrackDecorationPolicy.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({query:C(e.query)?t.Query.fromJSON(e.query):void 0,policy:C(e.policy)?l.PlaylistTrackDecorationPolicy.fromJSON(e.policy):void 0}),toJSON(e){const n={};return void 0!==e.query&&(n.query=e.query?t.Query.toJSON(e.query):void 0),void 0!==e.policy&&(n.policy=e.policy?l.PlaylistTrackDecorationPolicy.toJSON(e.policy):void 0),n},fromPartial(e){const n={query:void 0,policy:void 0};return n.query=void 0!==e.query&&null!==e.query?t.Query.fromPartial(e.query):void 0,n.policy=void 0!==e.policy&&null!==e.policy?l.PlaylistTrackDecorationPolicy.fromPartial(e.policy):void 0,n}},t.GetTracksResponse={encode:(e,n=o.default.Writer.create())=>(void 0!==e.status&&t.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.Response.encode(e.data,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={status:void 0,data:void 0};for(;r.pos>>3){case 1:a.status=t.ResponseStatus.decode(r,r.uint32());break;case 2:a.data=t.Response.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({status:C(e.status)?t.ResponseStatus.fromJSON(e.status):void 0,data:C(e.data)?t.Response.fromJSON(e.data):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.ResponseStatus.toJSON(e.status):void 0),void 0!==e.data&&(n.data=e.data?t.Response.toJSON(e.data):void 0),n},fromPartial(e){const n={status:void 0,data:void 0};return n.status=void 0!==e.status&&null!==e.status?t.ResponseStatus.fromPartial(e.status):void 0,n.data=void 0!==e.data&&null!==e.data?t.Response.fromPartial(e.data):void 0,n}},t.GetScannerStatusResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.scannerStatus&&t.uint32(8).int32(e.scannerStatus),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={scannerStatus:0};for(;n.pos>>3==1)i.scannerStatus=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({scannerStatus:C(e.scannerStatus)?v(e.scannerStatus):0}),toJSON(e){const t={};return void 0!==e.scannerStatus&&(t.scannerStatus=m(e.scannerStatus)),t},fromPartial(e){var t;const n={scannerStatus:0};return n.scannerStatus=null!==(t=e.scannerStatus)&&void 0!==t?t:0,n}},t.DefaultSource={encode:(e,t=o.default.Writer.create())=>(0!==e.id&&t.uint32(8).int32(e.id),!0===e.enabled&&t.uint32(16).bool(e.enabled),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={id:0,enabled:!1};for(;n.pos>>3){case 1:i.id=n.int32();break;case 2:i.enabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({id:C(e.id)?g(e.id):0,enabled:!!C(e.enabled)&&Boolean(e.enabled)}),toJSON(e){const t={};return void 0!==e.id&&(t.id=y(e.id)),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial(e){var t,n;const r={id:0,enabled:!1};return r.id=null!==(t=e.id)&&void 0!==t?t:0,r.enabled=null!==(n=e.enabled)&&void 0!==n&&n,r}},t.Folder={encode:(e,t=o.default.Writer.create())=>(""!==e.path&&t.uint32(10).string(e.path),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={path:""};for(;n.pos>>3==1)i.path=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({path:C(e.path)?String(e.path):""}),toJSON(e){const t={};return void 0!==e.path&&(t.path=e.path),t},fromPartial(e){var t;const n={path:""};return n.path=null!==(t=e.path)&&void 0!==t?t:"",n}},t.GetSourcesResponse={encode(e,n=o.default.Writer.create()){for(const r of e.defaultSources)t.DefaultSource.encode(r,n.uint32(10).fork()).ldelim();for(const r of e.folders)t.Folder.encode(r,n.uint32(18).fork()).ldelim();return n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={defaultSources:[],folders:[]};for(;r.pos>>3){case 1:a.defaultSources.push(t.DefaultSource.decode(r,r.uint32()));break;case 2:a.folders.push(t.Folder.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON:e=>({defaultSources:Array.isArray(null==e?void 0:e.defaultSources)?e.defaultSources.map((e=>t.DefaultSource.fromJSON(e))):[],folders:Array.isArray(null==e?void 0:e.folders)?e.folders.map((e=>t.Folder.fromJSON(e))):[]}),toJSON(e){const n={};return e.defaultSources?n.defaultSources=e.defaultSources.map((e=>e?t.DefaultSource.toJSON(e):void 0)):n.defaultSources=[],e.folders?n.folders=e.folders.map((e=>e?t.Folder.toJSON(e):void 0)):n.folders=[],n},fromPartial(e){var n,r;const i={defaultSources:[],folders:[]};return i.defaultSources=(null===(n=e.defaultSources)||void 0===n?void 0:n.map((e=>t.DefaultSource.fromPartial(e))))||[],i.folders=(null===(r=e.folders)||void 0===r?void 0:r.map((e=>t.Folder.fromPartial(e))))||[],i}},t.MutateSourceResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={result:0};for(;n.pos>>3==1)i.result=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({result:C(e.result)?_(e.result):0}),toJSON(e){const t={};return void 0!==e.result&&(t.result=b(e.result)),t},fromPartial(e){var t;const n={result:0};return n.result=null!==(t=e.result)&&void 0!==t?t:0,n}},t.JavaObjectValue={encode:(e,t=o.default.Writer.create())=>(0!==e.javaObject.length&&t.uint32(10).bytes(e.javaObject),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=E();for(;n.pos>>3==1)i.javaObject=n.bytes();else n.skipType(7&e)}return i},fromJSON:e=>({javaObject:C(e.javaObject)?O(e.javaObject):new Uint8Array}),toJSON(e){const t={};return void 0!==e.javaObject&&(t.javaObject=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return A(t.join(""))}(void 0!==e.javaObject?e.javaObject:new Uint8Array)),t},fromPartial(e){var t;const n=E();return n.javaObject=null!==(t=e.javaObject)&&void 0!==t?t:new Uint8Array,n}};var S=(()=>{if(void 0!==S)return S;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const T=S.atob||(e=>S.Buffer.from(e,"base64").toString("binary"));function O(e){const t=T(e),n=new Uint8Array(t.length);for(let e=0;eS.Buffer.from(e,"binary").toString("base64"));function C(e){return null!=e}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},92738:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},64625:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=o.default.Writer.create())=>(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos>>3){case 1:i.standardLink=n.string();break;case 2:i.smallLink=n.string();break;case 3:i.largeLink=n.string();break;case 4:i.xlargeLink=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({standardLink:a(e.standardLink)?String(e.standardLink):"",smallLink:a(e.smallLink)?String(e.smallLink):"",largeLink:a(e.largeLink)?String(e.largeLink):"",xlargeLink:a(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){var t,n,r,i;const o={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return o.standardLink=null!==(t=e.standardLink)&&void 0!==t?t:"",o.smallLink=null!==(n=e.smallLink)&&void 0!==n?n:"",o.largeLink=null!==(r=e.largeLink)&&void 0!==r?r:"",o.xlargeLink=null!==(i=e.xlargeLink)&&void 0!==i?i:"",o}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},2014:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackMetadata=t.TrackDescriptor=t.TrackArtistMetadata=t.TrackAlbumMetadata=t.TrackAlbumArtistMetadata=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(64625);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=o.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={link:"",name:""};for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){var t,n;const r={link:"",name:""};return r.link=null!==(t=e.link)&&void 0!==t?t:"",r.name=null!==(n=e.name)&&void 0!==n?n:"",r}},t.TrackAlbumMetadata={encode:(e,n=o.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;r.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(r,r.uint32());break;case 2:s.link=r.string();break;case 3:s.name=r.string();break;case 4:s.covers=a.ImageGroup.decode(r,r.uint32());break;default:r.skipType(7&e)}}return s},fromJSON:e=>({artist:s(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){var n,r;const i={artist:void 0,link:"",name:"",covers:void 0};return i.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,i.link=null!==(n=e.link)&&void 0!==n?n:"",i.name=null!==(r=e.name)&&void 0!==r?r:"",i.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,i}},t.TrackArtistMetadata={encode:(e,t=o.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={link:"",name:"",portraits:void 0};for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",portraits:s(e.portraits)?a.ImageGroup.fromJSON(e.portraits):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){var t,n;const r={link:"",name:"",portraits:void 0};return r.link=null!==(t=e.link)&&void 0!==t?t:"",r.name=null!==(n=e.name)&&void 0!==n?n:"",r.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,r}},t.TrackDescriptor={encode:(e,t=o.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={name:""};for(;n.pos>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({name:s(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){var t;const n={name:""};return n.name=null!==(t=e.name)&&void 0!==t?t:"",n}},t.TrackMetadata={encode(e,n=o.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const r of e.artist)t.TrackArtistMetadata.encode(r,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const r of e.trackDescriptors)t.TrackDescriptor.encode(r,n.uint32(154).fork()).ldelim();return n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[]};for(;r.pos>>3){case 1:a.album=t.TrackAlbumMetadata.decode(r,r.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(r,r.uint32()));break;case 3:a.link=r.string();break;case 4:a.name=r.string();break;case 5:a.length=r.uint32();break;case 6:a.playable=r.bool();break;case 7:a.discNumber=r.uint32();break;case 8:a.trackNumber=r.uint32();break;case 9:a.isExplicit=r.bool();break;case 10:a.previewId=r.string();break;case 11:a.isLocal=r.bool();break;case 12:a.playableLocalTrack=r.bool();break;case 13:a.hasLyrics=r.bool();break;case 14:a.isPremiumOnly=r.bool();break;case 15:a.locallyPlayable=r.bool();break;case 16:a.playableTrackLink=r.string();break;case 17:a.popularity=r.uint32();break;case 18:a.is19PlusOnly=r.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(null==e?void 0:e.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,playable:!!s(e.playable)&&Boolean(e.playable),discNumber:s(e.discNumber)?Number(e.discNumber):0,trackNumber:s(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:s(e.previewId)?String(e.previewId):"",isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:s(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:s(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(null==e?void 0:e.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=Math.round(e.discNumber)),void 0!==e.trackNumber&&(n.trackNumber=Math.round(e.trackNumber)),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=Math.round(e.popularity)),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],n},fromPartial(e){var n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,g,y,_;const b={album:void 0,artist:[],link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1,trackDescriptors:[]};return b.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,b.artist=(null===(n=e.artist)||void 0===n?void 0:n.map((e=>t.TrackArtistMetadata.fromPartial(e))))||[],b.link=null!==(r=e.link)&&void 0!==r?r:"",b.name=null!==(i=e.name)&&void 0!==i?i:"",b.length=null!==(o=e.length)&&void 0!==o?o:0,b.playable=null!==(a=e.playable)&&void 0!==a&&a,b.discNumber=null!==(s=e.discNumber)&&void 0!==s?s:0,b.trackNumber=null!==(l=e.trackNumber)&&void 0!==l?l:0,b.isExplicit=null!==(c=e.isExplicit)&&void 0!==c&&c,b.previewId=null!==(u=e.previewId)&&void 0!==u?u:"",b.isLocal=null!==(d=e.isLocal)&&void 0!==d&&d,b.playableLocalTrack=null!==(p=e.playableLocalTrack)&&void 0!==p&&p,b.hasLyrics=null!==(f=e.hasLyrics)&&void 0!==f&&f,b.isPremiumOnly=null!==(h=e.isPremiumOnly)&&void 0!==h&&h,b.locallyPlayable=null!==(v=e.locallyPlayable)&&void 0!==v&&v,b.playableTrackLink=null!==(m=e.playableTrackLink)&&void 0!==m?m:"",b.popularity=null!==(g=e.popularity)&&void 0!==g?g:0,b.is19PlusOnly=null!==(y=e.is19PlusOnly)&&void 0!==y&&y,b.trackDescriptors=(null===(_=e.trackDescriptors)||void 0===_?void 0:_.map((e=>t.TrackDescriptor.fromPartial(e))))||[],b}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},21773:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackOfflineState=t.TrackCollectionState=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.TrackCollectionState={encode:(e,t=o.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){var t,n,r,i;const o={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return o.isInCollection=null!==(t=e.isInCollection)&&void 0!==t&&t,o.canAddToCollection=null!==(n=e.canAddToCollection)&&void 0!==n&&n,o.isBanned=null!==(r=e.isBanned)&&void 0!==r&&r,o.canBan=null!==(i=e.canBan)&&void 0!==i&&i,o}},t.TrackOfflineState={encode:(e,t=o.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={offline:""};for(;n.pos>>3==1)i.offline=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):""}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){var t;const n={offline:""};return n.offline=null!==(t=e.offline)&&void 0!==t?t:"",n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},88940:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncDecorationPolicy=t.AlbumCollectionDecorationPolicy=t.AlbumDecorationPolicy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.copyrights=n.bool();break;case 4:i.covers=n.bool();break;case 5:i.year=n.bool();break;case 6:i.numDiscs=n.bool();break;case 7:i.numTracks=n.bool();break;case 8:i.playability=n.bool();break;case 9:i.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),covers:!!a(e.covers)&&Boolean(e.covers),year:!!a(e.year)&&Boolean(e.year),numDiscs:!!a(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!a(e.numTracks)&&Boolean(e.numTracks),playability:!!a(e.playability)&&Boolean(e.playability),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){var t,n,r,i,o,a,s,l,c;const u={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return u.link=null!==(t=e.link)&&void 0!==t&&t,u.name=null!==(n=e.name)&&void 0!==n&&n,u.copyrights=null!==(r=e.copyrights)&&void 0!==r&&r,u.covers=null!==(i=e.covers)&&void 0!==i&&i,u.year=null!==(o=e.year)&&void 0!==o&&o,u.numDiscs=null!==(a=e.numDiscs)&&void 0!==a&&a,u.numTracks=null!==(s=e.numTracks)&&void 0!==s&&s,u.playability=null!==(l=e.playability)&&void 0!==l&&l,u.isPremiumOnly=null!==(c=e.isPremiumOnly)&&void 0!==c&&c,u}},t.AlbumCollectionDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos>>3){case 1:i.collectionLink=n.bool();break;case 2:i.numTracksInCollection=n.bool();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:!!a(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!a(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!a(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){var t,n,r;const i={collectionLink:!1,numTracksInCollection:!1,complete:!1};return i.collectionLink=null!==(t=e.collectionLink)&&void 0!==t&&t,i.numTracksInCollection=null!==(n=e.numTracksInCollection)&&void 0!==n&&n,i.complete=null!==(r=e.complete)&&void 0!==r&&r,i}},t.AlbumSyncDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({inferredOffline:!!a(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){var t,n,r;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};return i.inferredOffline=null!==(t=e.inferredOffline)&&void 0!==t&&t,i.offlineState=null!==(n=e.offlineState)&&void 0!==n&&n,i.syncProgress=null!==(r=e.syncProgress)&&void 0!==r&&r,i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},89771:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncDecorationPolicy=t.ArtistCollectionDecorationPolicy=t.ArtistDecorationPolicy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.isVariousArtists=n.bool();break;case 4:i.portraits=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),isVariousArtists:!!a(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!a(e.portraits)&&Boolean(e.portraits)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){var t,n,r,i;const o={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return o.link=null!==(t=e.link)&&void 0!==t&&t,o.name=null!==(n=e.name)&&void 0!==n&&n,o.isVariousArtists=null!==(r=e.isVariousArtists)&&void 0!==r&&r,o.portraits=null!==(i=e.portraits)&&void 0!==i&&i,o}},t.ArtistCollectionDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:i.collectionLink=n.bool();break;case 2:i.isFollowed=n.bool();break;case 3:i.numTracksInCollection=n.bool();break;case 4:i.numAlbumsInCollection=n.bool();break;case 5:i.isBanned=n.bool();break;case 6:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:!!a(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!a(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!a(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!a(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){var t,n,r,i,o,a;const s={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return s.collectionLink=null!==(t=e.collectionLink)&&void 0!==t&&t,s.isFollowed=null!==(n=e.isFollowed)&&void 0!==n&&n,s.numTracksInCollection=null!==(r=e.numTracksInCollection)&&void 0!==r&&r,s.numAlbumsInCollection=null!==(i=e.numAlbumsInCollection)&&void 0!==i&&i,s.isBanned=null!==(o=e.isBanned)&&void 0!==o&&o,s.canBan=null!==(a=e.canBan)&&void 0!==a&&a,s}},t.ArtistSyncDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({inferredOffline:!!a(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){var t,n,r;const i={inferredOffline:!1,offlineState:!1,syncProgress:!1};return i.inferredOffline=null!==(t=e.inferredOffline)&&void 0!==t&&t,i.offlineState=null!==(n=e.offlineState)&&void 0!==n&&n,i.syncProgress=null!==(r=e.syncProgress)&&void 0!==r&&r,i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},69192:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistAlbumDecorationPolicy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(88940),s=n(89771);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAlbumDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(void 0!==e.album&&a.AlbumDecorationPolicy.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&s.ArtistDecorationPolicy.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={album:void 0,artist:void 0};for(;n.pos>>3){case 1:i.album=a.AlbumDecorationPolicy.decode(n,n.uint32());break;case 2:i.artist=s.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({album:l(e.album)?a.AlbumDecorationPolicy.fromJSON(e.album):void 0,artist:l(e.artist)?s.ArtistDecorationPolicy.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=e.album?a.AlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?s.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t={album:void 0,artist:void 0};return t.album=void 0!==e.album&&null!==e.album?a.AlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?s.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},10757:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistTrackDecorationPolicy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(10245),s=n(75958),l=n(69192),c=n(89771);function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistTrackDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(void 0!==e.track&&a.TrackDecorationPolicy.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&l.PlaylistAlbumDecorationPolicy.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&c.ArtistDecorationPolicy.encode(e.artist,t.uint32(114).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0};for(;n.pos>>3){case 1:i.track=a.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.rowId=n.bool();break;case 3:i.addTime=n.bool();break;case 4:i.inCollection=n.bool();break;case 5:i.canAddToCollection=n.bool();break;case 6:i.isBanned=n.bool();break;case 7:i.canBan=n.bool();break;case 8:i.localFile=n.bool();break;case 9:i.offline=n.bool();break;case 10:i.formatListAttributes=n.bool();break;case 11:i.displayCovers=n.bool();break;case 12:i.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 13:i.album=l.PlaylistAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:i.artist=c.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({track:u(e.track)?a.TrackDecorationPolicy.fromJSON(e.track):void 0,rowId:!!u(e.rowId)&&Boolean(e.rowId),addTime:!!u(e.addTime)&&Boolean(e.addTime),inCollection:!!u(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!u(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!u(e.isBanned)&&Boolean(e.isBanned),canBan:!!u(e.canBan)&&Boolean(e.canBan),localFile:!!u(e.localFile)&&Boolean(e.localFile),offline:!!u(e.offline)&&Boolean(e.offline),formatListAttributes:!!u(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!u(e.displayCovers)&&Boolean(e.displayCovers),addedBy:u(e.addedBy)?s.UserDecorationPolicy.fromJSON(e.addedBy):void 0,album:u(e.album)?l.PlaylistAlbumDecorationPolicy.fromJSON(e.album):void 0,artist:u(e.artist)?c.ArtistDecorationPolicy.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.TrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),void 0!==e.localFile&&(t.localFile=e.localFile),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.album&&(t.album=e.album?l.PlaylistAlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?c.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){var t,n,r,i,o,u,d,p,f,h;const v={track:void 0,rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1,addedBy:void 0,album:void 0,artist:void 0};return v.track=void 0!==e.track&&null!==e.track?a.TrackDecorationPolicy.fromPartial(e.track):void 0,v.rowId=null!==(t=e.rowId)&&void 0!==t&&t,v.addTime=null!==(n=e.addTime)&&void 0!==n&&n,v.inCollection=null!==(r=e.inCollection)&&void 0!==r&&r,v.canAddToCollection=null!==(i=e.canAddToCollection)&&void 0!==i&&i,v.isBanned=null!==(o=e.isBanned)&&void 0!==o&&o,v.canBan=null!==(u=e.canBan)&&void 0!==u&&u,v.localFile=null!==(d=e.localFile)&&void 0!==d&&d,v.offline=null!==(p=e.offline)&&void 0!==p&&p,v.formatListAttributes=null!==(f=e.formatListAttributes)&&void 0!==f&&f,v.displayCovers=null!==(h=e.displayCovers)&&void 0!==h&&h,v.addedBy=void 0!==e.addedBy&&null!==e.addedBy?s.UserDecorationPolicy.fromPartial(e.addedBy):void 0,v.album=void 0!==e.album&&null!==e.album?l.PlaylistAlbumDecorationPolicy.fromPartial(e.album):void 0,v.artist=void 0!==e.artist&&null!==e.artist?c.ArtistDecorationPolicy.fromPartial(e.artist):void 0,v}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},10245:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncDecorationPolicy=t.TrackCollectionDecorationPolicy=t.TrackPlayedStateDecorationPolicy=t.TrackDecorationPolicy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1};for(;n.pos>>3){case 1:i.hasLyrics=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.length=n.bool();break;case 5:i.playable=n.bool();break;case 6:i.isAvailableInMetadataCatalogue=n.bool();break;case 7:i.locallyPlayable=n.bool();break;case 8:i.playableLocalTrack=n.bool();break;case 9:i.discNumber=n.bool();break;case 10:i.trackNumber=n.bool();break;case 11:i.isExplicit=n.bool();break;case 12:i.previewId=n.bool();break;case 13:i.isLocal=n.bool();break;case 14:i.isPremiumOnly=n.bool();break;case 15:i.playableTrackLink=n.bool();break;case 16:i.popularity=n.bool();break;case 17:i.is19PlusOnly=n.bool();break;case 18:i.trackDescriptors=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({hasLyrics:!!a(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),length:!!a(e.length)&&Boolean(e.length),playable:!!a(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!a(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!a(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!a(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!a(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!a(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!a(e.previewId)&&Boolean(e.previewId),isLocal:!!a(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!a(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!a(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!a(e.trackDescriptors)&&Boolean(e.trackDescriptors)}),toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),t},fromPartial(e){var t,n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,g,y;const _={hasLyrics:!1,link:!1,name:!1,length:!1,playable:!1,isAvailableInMetadataCatalogue:!1,locallyPlayable:!1,playableLocalTrack:!1,discNumber:!1,trackNumber:!1,isExplicit:!1,previewId:!1,isLocal:!1,isPremiumOnly:!1,playableTrackLink:!1,popularity:!1,is19PlusOnly:!1,trackDescriptors:!1};return _.hasLyrics=null!==(t=e.hasLyrics)&&void 0!==t&&t,_.link=null!==(n=e.link)&&void 0!==n&&n,_.name=null!==(r=e.name)&&void 0!==r&&r,_.length=null!==(i=e.length)&&void 0!==i&&i,_.playable=null!==(o=e.playable)&&void 0!==o&&o,_.isAvailableInMetadataCatalogue=null!==(a=e.isAvailableInMetadataCatalogue)&&void 0!==a&&a,_.locallyPlayable=null!==(s=e.locallyPlayable)&&void 0!==s&&s,_.playableLocalTrack=null!==(l=e.playableLocalTrack)&&void 0!==l&&l,_.discNumber=null!==(c=e.discNumber)&&void 0!==c&&c,_.trackNumber=null!==(u=e.trackNumber)&&void 0!==u&&u,_.isExplicit=null!==(d=e.isExplicit)&&void 0!==d&&d,_.previewId=null!==(p=e.previewId)&&void 0!==p&&p,_.isLocal=null!==(f=e.isLocal)&&void 0!==f&&f,_.isPremiumOnly=null!==(h=e.isPremiumOnly)&&void 0!==h&&h,_.playableTrackLink=null!==(v=e.playableTrackLink)&&void 0!==v&&v,_.popularity=null!==(m=e.popularity)&&void 0!==m&&m,_.is19PlusOnly=null!==(g=e.is19PlusOnly)&&void 0!==g&&g,_.trackDescriptors=null!==(y=e.trackDescriptors)&&void 0!==y&&y,_}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos>>3){case 1:i.playable=n.bool();break;case 2:i.isCurrentlyPlayable=n.bool();break;case 3:i.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({playable:!!a(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!a(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction)}),toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){var t,n,r;const i={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return i.playable=null!==(t=e.playable)&&void 0!==t&&t,i.isCurrentlyPlayable=null!==(n=e.isCurrentlyPlayable)&&void 0!==n&&n,i.playabilityRestriction=null!==(r=e.playabilityRestriction)&&void 0!==r&&r,i}},t.TrackCollectionDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!a(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!a(e.isBanned)&&Boolean(e.isBanned),canBan:!!a(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){var t,n,r,i;const o={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return o.isInCollection=null!==(t=e.isInCollection)&&void 0!==t&&t,o.canAddToCollection=null!==(n=e.canAddToCollection)&&void 0!==n&&n,o.isBanned=null!==(r=e.isBanned)&&void 0!==r&&r,o.canBan=null!==(i=e.canBan)&&void 0!==i&&i,o}},t.TrackSyncDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:i.offlineState=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offlineState:!!a(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){var t,n;const r={offlineState:!1,syncProgress:!1};return r.offlineState=null!==(t=e.offlineState)&&void 0!==t&&t,r.syncProgress=null!==(n=e.syncProgress)&&void 0!==n&&n,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},75958:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollaboratingUsersDecorationPolicy=t.CollaboratorPolicy=t.UserDecorationPolicy=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=o.default.Writer.create())=>(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos>>3){case 1:i.username=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.image=n.bool();break;case 5:i.thumbnail=n.bool();break;case 6:i.color=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({username:!!a(e.username)&&Boolean(e.username),link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),image:!!a(e.image)&&Boolean(e.image),thumbnail:!!a(e.thumbnail)&&Boolean(e.thumbnail),color:!!a(e.color)&&Boolean(e.color)}),toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.image&&(t.image=e.image),void 0!==e.thumbnail&&(t.thumbnail=e.thumbnail),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){var t,n,r,i,o,a;const s={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return s.username=null!==(t=e.username)&&void 0!==t&&t,s.link=null!==(n=e.link)&&void 0!==n&&n,s.name=null!==(r=e.name)&&void 0!==r&&r,s.image=null!==(i=e.image)&&void 0!==i&&i,s.thumbnail=null!==(o=e.thumbnail)&&void 0!==o&&o,s.color=null!==(a=e.color)&&void 0!==a&&a,s}},t.CollaboratorPolicy={encode:(e,n=o.default.Writer.create())=>(void 0!==e.user&&t.UserDecorationPolicy.encode(e.user,n.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&n.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&n.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&n.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&n.uint32(40).bool(e.isOwner),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;r.pos>>3){case 1:a.user=t.UserDecorationPolicy.decode(r,r.uint32());break;case 2:a.numberOfItems=r.bool();break;case 3:a.numberOfTracks=r.bool();break;case 4:a.numberOfEpisodes=r.bool();break;case 5:a.isOwner=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON:e=>({user:a(e.user)?t.UserDecorationPolicy.fromJSON(e.user):void 0,numberOfItems:!!a(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!a(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!a(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!a(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const n={};return void 0!==e.user&&(n.user=e.user?t.UserDecorationPolicy.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(n.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(n.isOwner=e.isOwner),n},fromPartial(e){var n,r,i,o;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return a.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,a.numberOfItems=null!==(n=e.numberOfItems)&&void 0!==n&&n,a.numberOfTracks=null!==(r=e.numberOfTracks)&&void 0!==r&&r,a.numberOfEpisodes=null!==(i=e.numberOfEpisodes)&&void 0!==i&&i,a.isOwner=null!==(o=e.isOwner)&&void 0!==o&&o,a}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=o.default.Writer.create())=>(!0===e.count&&n.uint32(8).bool(e.count),0!==e.limit&&n.uint32(16).int32(e.limit),void 0!==e.collaborator&&t.CollaboratorPolicy.encode(e.collaborator,n.uint32(26).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;r.pos>>3){case 1:a.count=r.bool();break;case 2:a.limit=r.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({count:!!a(e.count)&&Boolean(e.count),limit:a(e.limit)?Number(e.limit):0,collaborator:a(e.collaborator)?t.CollaboratorPolicy.fromJSON(e.collaborator):void 0}),toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),void 0!==e.limit&&(n.limit=Math.round(e.limit)),void 0!==e.collaborator&&(n.collaborator=e.collaborator?t.CollaboratorPolicy.toJSON(e.collaborator):void 0),n},fromPartial(e){var n,r;const i={count:!1,limit:0,collaborator:void 0};return i.count=null!==(n=e.count)&&void 0!==n&&n,i.limit=null!==(r=e.limit)&&void 0!==r?r:0,i.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},5291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackServiceClient=void 0;const r=n(62100),i=n(1256),o=n(13135);class a{constructor(e){this.transport=e}getVolume(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"GetVolume",payload:i.Empty.encode(e).finish()}).then((e=>o.GetVolumeResponse.decode(r.Reader.create(e))))}subVolume(e,t){return this.transport.callStream({service:"spotify.playback_esperanto.proto.PlaybackService",method:"SubVolume",payload:i.Empty.encode(e).finish()},(e=>t(o.SubVolumeResponse.decode(r.Reader.create(e)))))}setVolume(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"SetVolume",payload:o.SetVolumeRequest.encode(e).finish()}).then((e=>i.Empty.decode(r.Reader.create(e))))}raiseVolume(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"RaiseVolume",payload:o.NudgeVolumeRequest.encode(e).finish()}).then((e=>i.Empty.decode(r.Reader.create(e))))}lowerVolume(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"LowerVolume",payload:o.NudgeVolumeRequest.encode(e).finish()}).then((e=>i.Empty.decode(r.Reader.create(e))))}getPlaybackInfo(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"GetPlaybackInfo",payload:i.Empty.encode(e).finish()}).then((e=>o.PlaybackInfoResponse.decode(r.Reader.create(e))))}subPlaybackInfo(e,t){return this.transport.callStream({service:"spotify.playback_esperanto.proto.PlaybackService",method:"SubPlaybackInfo",payload:i.Empty.encode(e).finish()},(e=>t(o.PlaybackInfoResponse.decode(r.Reader.create(e)))))}getFormats(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"GetFormats",payload:i.Empty.encode(e).finish()}).then((e=>o.GetFormatsResponse.decode(r.Reader.create(e))))}subPosition(e,t){return this.transport.callStream({service:"spotify.playback_esperanto.proto.PlaybackService",method:"SubPosition",payload:o.SubPositionRequest.encode(e).finish()},(e=>t(o.SubPositionResponse.decode(r.Reader.create(e)))))}getFiles(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"GetFiles",payload:o.GetFilesRequest.encode(e).finish()}).then((e=>o.GetFilesResponse.decode(r.Reader.create(e))))}duck(e){return this.transport.callSingle({service:"spotify.playback_esperanto.proto.PlaybackService",method:"Duck",payload:o.DuckRequest.encode(e).finish()}).then((e=>o.DuckResponse.decode(r.Reader.create(e))))}}t.PlaybackServiceClient=a,a.SERVICE_ID="spotify.playback_esperanto.proto.PlaybackService",a.DECODERS={GetVolume:{request:i.Empty.decode,response:o.GetVolumeResponse.decode},SubVolume:{request:i.Empty.decode,response:o.SubVolumeResponse.decode},SetVolume:{request:o.SetVolumeRequest.decode,response:i.Empty.decode},RaiseVolume:{request:o.NudgeVolumeRequest.decode,response:i.Empty.decode},LowerVolume:{request:o.NudgeVolumeRequest.decode,response:i.Empty.decode},GetPlaybackInfo:{request:i.Empty.decode,response:o.PlaybackInfoResponse.decode},SubPlaybackInfo:{request:i.Empty.decode,response:o.PlaybackInfoResponse.decode},GetFormats:{request:i.Empty.decode,response:o.GetFormatsResponse.decode},SubPosition:{request:o.SubPositionRequest.decode,response:o.SubPositionResponse.decode},GetFiles:{request:o.GetFilesRequest.decode,response:o.GetFilesResponse.decode},Duck:{request:o.DuckRequest.decode,response:o.DuckResponse.decode}}},68741:(e,t,n)=>{"use strict";t.tp=t.ao=t.No=void 0;var r=n(5291);Object.defineProperty(t,"No",{enumerable:!0,get:function(){return r.PlaybackServiceClient}});var i=n(13135);Object.defineProperty(t,"ao",{enumerable:!0,get:function(){return i.GetFilesStatus}}),Object.defineProperty(t,"tp",{enumerable:!0,get:function(){return i.VolumeChangeSource}})},1256:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;tt,decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.poso({},c),toJSON:e=>({}),fromPartial:e=>o({},c)},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},13135:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(17).double(e.volume),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},E);for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.volume=n.double();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},E);return void 0!==e.status&&null!==e.status?t.status=f(e.status):t.status=0,void 0!==e.volume&&null!==e.volume?t.volume=Number(e.volume):t.volume=0,t},toJSON(e){const t={};return void 0!==e.status&&(t.status=h(e.status)),void 0!==e.volume&&(t.volume=e.volume),t},fromPartial(e){const t=o({},E);return void 0!==e.status&&null!==e.status?t.status=e.status:t.status=0,void 0!==e.volume&&null!==e.volume?t.volume=e.volume:t.volume=0,t}};const S={status:0,volume:0,source:0};t.SubVolumeResponse={encode:(e,t=l.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),0!==e.volume&&t.uint32(17).double(e.volume),0!==e.source&&t.uint32(24).int32(e.source),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},S);for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.volume=n.double();break;case 3:i.source=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},S);return void 0!==e.status&&null!==e.status?t.status=f(e.status):t.status=0,void 0!==e.volume&&null!==e.volume?t.volume=Number(e.volume):t.volume=0,void 0!==e.source&&null!==e.source?t.source=g(e.source):t.source=0,t},toJSON(e){const t={};return void 0!==e.status&&(t.status=h(e.status)),void 0!==e.volume&&(t.volume=e.volume),void 0!==e.source&&(t.source=y(e.source)),t},fromPartial(e){const t=o({},S);return void 0!==e.status&&null!==e.status?t.status=e.status:t.status=0,void 0!==e.volume&&null!==e.volume?t.volume=e.volume:t.volume=0,void 0!==e.source&&null!==e.source?t.source=e.source:t.source=0,t}};const T={source:0,volume:0};t.SetVolumeRequest={encode:(e,t=l.default.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),0!==e.volume&&t.uint32(17).double(e.volume),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},T);for(;n.pos>>3){case 1:i.source=n.int32();break;case 2:i.volume=n.double();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},T);return void 0!==e.source&&null!==e.source?t.source=g(e.source):t.source=0,void 0!==e.volume&&null!==e.volume?t.volume=Number(e.volume):t.volume=0,t},toJSON(e){const t={};return void 0!==e.source&&(t.source=y(e.source)),void 0!==e.volume&&(t.volume=e.volume),t},fromPartial(e){const t=o({},T);return void 0!==e.source&&null!==e.source?t.source=e.source:t.source=0,void 0!==e.volume&&null!==e.volume?t.volume=e.volume:t.volume=0,t}};const O={source:0};t.NudgeVolumeRequest={encode:(e,t=l.default.Writer.create())=>(0!==e.source&&t.uint32(8).int32(e.source),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},O);for(;n.pos>>3==1)i.source=n.int32();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},O);return void 0!==e.source&&null!==e.source?t.source=g(e.source):t.source=0,t},toJSON(e){const t={};return void 0!==e.source&&(t.source=y(e.source)),t},fromPartial(e){const t=o({},O);return void 0!==e.source&&null!==e.source?t.source=e.source:t.source=0,t}};const A={status:0,lengthMs:"0",positionMs:"0",playing:!1,buffering:!1,error:0,fileId:"",fileType:"",resolvedContentUrl:"",fileBitrate:0,codecName:"",playbackSpeed:0,gainAdjustment:0,hasLoudness:!1,loudness:0,strategy:"",targetBitrate:0,advisedBitrate:0,targetFileAvailable:!1};t.PlaybackInfoResponse={encode:(e,t=l.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),"0"!==e.lengthMs&&t.uint32(16).uint64(e.lengthMs),"0"!==e.positionMs&&t.uint32(24).uint64(e.positionMs),!0===e.playing&&t.uint32(32).bool(e.playing),!0===e.buffering&&t.uint32(40).bool(e.buffering),0!==e.error&&t.uint32(48).int32(e.error),""!==e.fileId&&t.uint32(58).string(e.fileId),""!==e.fileType&&t.uint32(66).string(e.fileType),""!==e.resolvedContentUrl&&t.uint32(74).string(e.resolvedContentUrl),0!==e.fileBitrate&&t.uint32(80).int32(e.fileBitrate),""!==e.codecName&&t.uint32(90).string(e.codecName),0!==e.playbackSpeed&&t.uint32(97).double(e.playbackSpeed),0!==e.gainAdjustment&&t.uint32(109).float(e.gainAdjustment),!0===e.hasLoudness&&t.uint32(112).bool(e.hasLoudness),0!==e.loudness&&t.uint32(125).float(e.loudness),""!==e.strategy&&t.uint32(138).string(e.strategy),0!==e.targetBitrate&&t.uint32(144).int32(e.targetBitrate),0!==e.advisedBitrate&&t.uint32(152).int32(e.advisedBitrate),!0===e.targetFileAvailable&&t.uint32(160).bool(e.targetFileAvailable),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},A);for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.lengthMs=M(n.uint64());break;case 3:i.positionMs=M(n.uint64());break;case 4:i.playing=n.bool();break;case 5:i.buffering=n.bool();break;case 6:i.error=n.int32();break;case 7:i.fileId=n.string();break;case 8:i.fileType=n.string();break;case 9:i.resolvedContentUrl=n.string();break;case 10:i.fileBitrate=n.int32();break;case 11:i.codecName=n.string();break;case 12:i.playbackSpeed=n.double();break;case 13:i.gainAdjustment=n.float();break;case 14:i.hasLoudness=n.bool();break;case 15:i.loudness=n.float();break;case 17:i.strategy=n.string();break;case 18:i.targetBitrate=n.int32();break;case 19:i.advisedBitrate=n.int32();break;case 20:i.targetFileAvailable=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},A);return void 0!==e.status&&null!==e.status?t.status=f(e.status):t.status=0,void 0!==e.lengthMs&&null!==e.lengthMs?t.lengthMs=String(e.lengthMs):t.lengthMs="0",void 0!==e.positionMs&&null!==e.positionMs?t.positionMs=String(e.positionMs):t.positionMs="0",void 0!==e.playing&&null!==e.playing?t.playing=Boolean(e.playing):t.playing=!1,void 0!==e.buffering&&null!==e.buffering?t.buffering=Boolean(e.buffering):t.buffering=!1,void 0!==e.error&&null!==e.error?t.error=Number(e.error):t.error=0,void 0!==e.fileId&&null!==e.fileId?t.fileId=String(e.fileId):t.fileId="",void 0!==e.fileType&&null!==e.fileType?t.fileType=String(e.fileType):t.fileType="",void 0!==e.resolvedContentUrl&&null!==e.resolvedContentUrl?t.resolvedContentUrl=String(e.resolvedContentUrl):t.resolvedContentUrl="",void 0!==e.fileBitrate&&null!==e.fileBitrate?t.fileBitrate=Number(e.fileBitrate):t.fileBitrate=0,void 0!==e.codecName&&null!==e.codecName?t.codecName=String(e.codecName):t.codecName="",void 0!==e.playbackSpeed&&null!==e.playbackSpeed?t.playbackSpeed=Number(e.playbackSpeed):t.playbackSpeed=0,void 0!==e.gainAdjustment&&null!==e.gainAdjustment?t.gainAdjustment=Number(e.gainAdjustment):t.gainAdjustment=0,void 0!==e.hasLoudness&&null!==e.hasLoudness?t.hasLoudness=Boolean(e.hasLoudness):t.hasLoudness=!1,void 0!==e.loudness&&null!==e.loudness?t.loudness=Number(e.loudness):t.loudness=0,void 0!==e.strategy&&null!==e.strategy?t.strategy=String(e.strategy):t.strategy="",void 0!==e.targetBitrate&&null!==e.targetBitrate?t.targetBitrate=Number(e.targetBitrate):t.targetBitrate=0,void 0!==e.advisedBitrate&&null!==e.advisedBitrate?t.advisedBitrate=Number(e.advisedBitrate):t.advisedBitrate=0,void 0!==e.targetFileAvailable&&null!==e.targetFileAvailable?t.targetFileAvailable=Boolean(e.targetFileAvailable):t.targetFileAvailable=!1,t},toJSON(e){const t={};return void 0!==e.status&&(t.status=h(e.status)),void 0!==e.lengthMs&&(t.lengthMs=e.lengthMs),void 0!==e.positionMs&&(t.positionMs=e.positionMs),void 0!==e.playing&&(t.playing=e.playing),void 0!==e.buffering&&(t.buffering=e.buffering),void 0!==e.error&&(t.error=e.error),void 0!==e.fileId&&(t.fileId=e.fileId),void 0!==e.fileType&&(t.fileType=e.fileType),void 0!==e.resolvedContentUrl&&(t.resolvedContentUrl=e.resolvedContentUrl),void 0!==e.fileBitrate&&(t.fileBitrate=e.fileBitrate),void 0!==e.codecName&&(t.codecName=e.codecName),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),void 0!==e.gainAdjustment&&(t.gainAdjustment=e.gainAdjustment),void 0!==e.hasLoudness&&(t.hasLoudness=e.hasLoudness),void 0!==e.loudness&&(t.loudness=e.loudness),void 0!==e.strategy&&(t.strategy=e.strategy),void 0!==e.targetBitrate&&(t.targetBitrate=e.targetBitrate),void 0!==e.advisedBitrate&&(t.advisedBitrate=e.advisedBitrate),void 0!==e.targetFileAvailable&&(t.targetFileAvailable=e.targetFileAvailable),t},fromPartial(e){const t=o({},A);return void 0!==e.status&&null!==e.status?t.status=e.status:t.status=0,void 0!==e.lengthMs&&null!==e.lengthMs?t.lengthMs=e.lengthMs:t.lengthMs="0",void 0!==e.positionMs&&null!==e.positionMs?t.positionMs=e.positionMs:t.positionMs="0",void 0!==e.playing&&null!==e.playing?t.playing=e.playing:t.playing=!1,void 0!==e.buffering&&null!==e.buffering?t.buffering=e.buffering:t.buffering=!1,void 0!==e.error&&null!==e.error?t.error=e.error:t.error=0,void 0!==e.fileId&&null!==e.fileId?t.fileId=e.fileId:t.fileId="",void 0!==e.fileType&&null!==e.fileType?t.fileType=e.fileType:t.fileType="",void 0!==e.resolvedContentUrl&&null!==e.resolvedContentUrl?t.resolvedContentUrl=e.resolvedContentUrl:t.resolvedContentUrl="",void 0!==e.fileBitrate&&null!==e.fileBitrate?t.fileBitrate=e.fileBitrate:t.fileBitrate=0,void 0!==e.codecName&&null!==e.codecName?t.codecName=e.codecName:t.codecName="",void 0!==e.playbackSpeed&&null!==e.playbackSpeed?t.playbackSpeed=e.playbackSpeed:t.playbackSpeed=0,void 0!==e.gainAdjustment&&null!==e.gainAdjustment?t.gainAdjustment=e.gainAdjustment:t.gainAdjustment=0,void 0!==e.hasLoudness&&null!==e.hasLoudness?t.hasLoudness=e.hasLoudness:t.hasLoudness=!1,void 0!==e.loudness&&null!==e.loudness?t.loudness=e.loudness:t.loudness=0,void 0!==e.strategy&&null!==e.strategy?t.strategy=e.strategy:t.strategy="",void 0!==e.targetBitrate&&null!==e.targetBitrate?t.targetBitrate=e.targetBitrate:t.targetBitrate=0,void 0!==e.advisedBitrate&&null!==e.advisedBitrate?t.advisedBitrate=e.advisedBitrate:t.advisedBitrate=0,void 0!==e.targetFileAvailable&&null!==e.targetFileAvailable?t.targetFileAvailable=e.targetFileAvailable:t.targetFileAvailable=!1,t}};const C={};t.GetFormatsResponse={encode(e,n=l.default.Writer.create()){for(const r of e.formats)t.GetFormatsResponse_Format.encode(r,n.uint32(10).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},C);for(a.formats=[];r.pos>>3==1)a.formats.push(t.GetFormatsResponse_Format.decode(r,r.uint32()));else r.skipType(7&e)}return a},fromJSON(e){const n=o({},C);if(n.formats=[],void 0!==e.formats&&null!==e.formats)for(const r of e.formats)n.formats.push(t.GetFormatsResponse_Format.fromJSON(r));return n},toJSON(e){const n={};return e.formats?n.formats=e.formats.map((e=>e?t.GetFormatsResponse_Format.toJSON(e):void 0)):n.formats=[],n},fromPartial(e){const n=o({},C);if(n.formats=[],void 0!==e.formats&&null!==e.formats)for(const r of e.formats)n.formats.push(t.GetFormatsResponse_Format.fromPartial(r));return n}};const P={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};t.GetFormatsResponse_Format={encode:(e,t=l.default.Writer.create())=>(""!==e.enumKey&&t.uint32(10).string(e.enumKey),0!==e.enumValue&&t.uint32(16).uint32(e.enumValue),!0===e.supported&&t.uint32(24).bool(e.supported),0!==e.bitrate&&t.uint32(32).uint32(e.bitrate),""!==e.mimeType&&t.uint32(42).string(e.mimeType),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},P);for(;n.pos>>3){case 1:i.enumKey=n.string();break;case 2:i.enumValue=n.uint32();break;case 3:i.supported=n.bool();break;case 4:i.bitrate=n.uint32();break;case 5:i.mimeType=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},P);return void 0!==e.enumKey&&null!==e.enumKey?t.enumKey=String(e.enumKey):t.enumKey="",void 0!==e.enumValue&&null!==e.enumValue?t.enumValue=Number(e.enumValue):t.enumValue=0,void 0!==e.supported&&null!==e.supported?t.supported=Boolean(e.supported):t.supported=!1,void 0!==e.bitrate&&null!==e.bitrate?t.bitrate=Number(e.bitrate):t.bitrate=0,void 0!==e.mimeType&&null!==e.mimeType?t.mimeType=String(e.mimeType):t.mimeType="",t},toJSON(e){const t={};return void 0!==e.enumKey&&(t.enumKey=e.enumKey),void 0!==e.enumValue&&(t.enumValue=e.enumValue),void 0!==e.supported&&(t.supported=e.supported),void 0!==e.bitrate&&(t.bitrate=e.bitrate),void 0!==e.mimeType&&(t.mimeType=e.mimeType),t},fromPartial(e){const t=o({},P);return void 0!==e.enumKey&&null!==e.enumKey?t.enumKey=e.enumKey:t.enumKey="",void 0!==e.enumValue&&null!==e.enumValue?t.enumValue=e.enumValue:t.enumValue=0,void 0!==e.supported&&null!==e.supported?t.supported=e.supported:t.supported=!1,void 0!==e.bitrate&&null!==e.bitrate?t.bitrate=e.bitrate:t.bitrate=0,void 0!==e.mimeType&&null!==e.mimeType?t.mimeType=e.mimeType:t.mimeType="",t}};const I={position:"0"};t.SubPositionRequest={encode:(e,t=l.default.Writer.create())=>("0"!==e.position&&t.uint32(8).uint64(e.position),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},I);for(;n.pos>>3==1)i.position=M(n.uint64());else n.skipType(7&e)}return i},fromJSON(e){const t=o({},I);return void 0!==e.position&&null!==e.position?t.position=String(e.position):t.position="0",t},toJSON(e){const t={};return void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t=o({},I);return void 0!==e.position&&null!==e.position?t.position=e.position:t.position="0",t}};const R={status:0,position:"0"};t.SubPositionResponse={encode:(e,t=l.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),"0"!==e.position&&t.uint32(16).uint64(e.position),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},R);for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.position=M(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},R);return void 0!==e.status&&null!==e.status?t.status=f(e.status):t.status=0,void 0!==e.position&&null!==e.position?t.position=String(e.position):t.position="0",t},toJSON(e){const t={};return void 0!==e.status&&(t.status=h(e.status)),void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t=o({},R);return void 0!==e.status&&null!==e.status?t.status=e.status:t.status=0,void 0!==e.position&&null!==e.position?t.position=e.position:t.position="0",t}};const N={uri:""};t.GetFilesRequest={encode:(e,t=l.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},N);for(;n.pos>>3==1)i.uri=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},N);return void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t=o({},N);return void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",t}};const k={status:0};t.GetFilesResponse={encode(e,n=l.default.Writer.create()){0!==e.status&&n.uint32(8).int32(e.status);for(const r of e.files)t.GetFilesResponse_File.encode(r,n.uint32(18).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},k);for(a.files=[];r.pos>>3){case 1:a.status=r.int32();break;case 2:a.files.push(t.GetFilesResponse_File.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},k);if(n.files=[],void 0!==e.status&&null!==e.status?n.status=v(e.status):n.status=0,void 0!==e.files&&null!==e.files)for(const r of e.files)n.files.push(t.GetFilesResponse_File.fromJSON(r));return n},toJSON(e){const n={};return void 0!==e.status&&(n.status=m(e.status)),e.files?n.files=e.files.map((e=>e?t.GetFilesResponse_File.toJSON(e):void 0)):n.files=[],n},fromPartial(e){const n=o({},k);if(n.files=[],void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.files&&null!==e.files)for(const r of e.files)n.files.push(t.GetFilesResponse_File.fromPartial(r));return n}};const L={fileId:"",format:"",bitrate:0,formatEnum:0};t.GetFilesResponse_File={encode:(e,t=l.default.Writer.create())=>(""!==e.fileId&&t.uint32(10).string(e.fileId),""!==e.format&&t.uint32(18).string(e.format),0!==e.bitrate&&t.uint32(24).uint32(e.bitrate),0!==e.formatEnum&&t.uint32(32).uint32(e.formatEnum),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},L);for(;n.pos>>3){case 1:i.fileId=n.string();break;case 2:i.format=n.string();break;case 3:i.bitrate=n.uint32();break;case 4:i.formatEnum=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},L);return void 0!==e.fileId&&null!==e.fileId?t.fileId=String(e.fileId):t.fileId="",void 0!==e.format&&null!==e.format?t.format=String(e.format):t.format="",void 0!==e.bitrate&&null!==e.bitrate?t.bitrate=Number(e.bitrate):t.bitrate=0,void 0!==e.formatEnum&&null!==e.formatEnum?t.formatEnum=Number(e.formatEnum):t.formatEnum=0,t},toJSON(e){const t={};return void 0!==e.fileId&&(t.fileId=e.fileId),void 0!==e.format&&(t.format=e.format),void 0!==e.bitrate&&(t.bitrate=e.bitrate),void 0!==e.formatEnum&&(t.formatEnum=e.formatEnum),t},fromPartial(e){const t=o({},L);return void 0!==e.fileId&&null!==e.fileId?t.fileId=e.fileId:t.fileId="",void 0!==e.format&&null!==e.format?t.format=e.format:t.format="",void 0!==e.bitrate&&null!==e.bitrate?t.bitrate=e.bitrate:t.bitrate=0,void 0!==e.formatEnum&&null!==e.formatEnum?t.formatEnum=e.formatEnum:t.formatEnum=0,t}};const w={action:0,volume:0,fadeDurationMs:0};t.DuckRequest={encode:(e,t=l.default.Writer.create())=>(0!==e.action&&t.uint32(16).int32(e.action),0!==e.volume&&t.uint32(25).double(e.volume),0!==e.fadeDurationMs&&t.uint32(32).uint32(e.fadeDurationMs),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},w);for(;n.pos>>3){case 2:i.action=n.int32();break;case 3:i.volume=n.double();break;case 4:i.fadeDurationMs=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},w);return void 0!==e.action&&null!==e.action?t.action=_(e.action):t.action=0,void 0!==e.volume&&null!==e.volume?t.volume=Number(e.volume):t.volume=0,void 0!==e.fadeDurationMs&&null!==e.fadeDurationMs?t.fadeDurationMs=Number(e.fadeDurationMs):t.fadeDurationMs=0,t},toJSON(e){const t={};return void 0!==e.action&&(t.action=b(e.action)),void 0!==e.volume&&(t.volume=e.volume),void 0!==e.fadeDurationMs&&(t.fadeDurationMs=e.fadeDurationMs),t},fromPartial(e){const t=o({},w);return void 0!==e.action&&null!==e.action?t.action=e.action:t.action=0,void 0!==e.volume&&null!==e.volume?t.volume=e.volume:t.volume=0,void 0!==e.fadeDurationMs&&null!==e.fadeDurationMs?t.fadeDurationMs=e.fadeDurationMs:t.fadeDurationMs=0,t}};const D={status:0};function M(e){return e.toString()}t.DuckResponse={encode:(e,t=l.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},D);for(;n.pos>>3==1)i.status=n.int32();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},D);return void 0!==e.status&&null!==e.status?t.status=f(e.status):t.status=0,t},toJSON(e){const t={};return void 0!==e.status&&(t.status=h(e.status)),t},fromPartial(e){const t=o({},D);return void 0!==e.status&&null!==e.status?t.status=e.status:t.status=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},14144:(e,t,n)=>{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsClient=void 0;const i=n(62100),o=n(90937);class a{constructor(e){r(this,"transport",void 0),this.transport=e}putShowSubscription(e){return this.transport.callSingle({service:"spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls",method:"PutShowSubscription",payload:o.PodcastPaywallsShowSubscriptionRequest.encode(e).finish()}).then((e=>o.PodcastPaywallsShowSubscriptionResponse.decode(i.Reader.create(e))))}}r(a,"SERVICE_ID","spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls"),r(a,"DECODERS",{PutShowSubscription:{request:o.PodcastPaywallsShowSubscriptionRequest.decode,response:o.PodcastPaywallsShowSubscriptionResponse.decode}}),t.PodcastPaywallsClient=a},29205:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsClient=void 0;var o=n(14144);Object.defineProperty(t,"PodcastPaywallsClient",{enumerable:!0,get:function(){return o.PodcastPaywallsClient}}),i(n(90937),t)},90937:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsShowSubscriptionResponse=t.PodcastPaywallsShowSubscriptionRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.podcast_paywalls_esperanto.proto",t.PodcastPaywallsShowSubscriptionRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.showUri&&t.uint32(10).string(e.showUri),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={showUri:""};for(;n.pos>>3==1)i.showUri=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({showUri:a(e.showUri)?String(e.showUri):""}),toJSON(e){const t={};return void 0!==e.showUri&&(t.showUri=e.showUri),t},fromPartial(e){var t;const n={showUri:""};return n.showUri=null!==(t=e.showUri)&&void 0!==t?t:"",n}},t.PodcastPaywallsShowSubscriptionResponse={encode:(e,t=o.default.Writer.create())=>(!0===e.isUserSubscribed&&t.uint32(8).bool(e.isUserSubscribed),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={isUserSubscribed:!1};for(;n.pos>>3==1)i.isUserSubscribed=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isUserSubscribed:!!a(e.isUserSubscribed)&&Boolean(e.isUserSubscribed)}),toJSON(e){const t={};return void 0!==e.isUserSubscribed&&(t.isUserSubscribed=e.isUserSubscribed),t},fromPartial(e){var t;const n={isUserSubscribed:!1};return n.isUserSubscribed=null!==(t=e.isUserSubscribed)&&void 0!==t&&t,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},5699:(e,t,n)=>{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0}),t.PrefsClient=void 0;const i=n(62100),o=n(9195);class a{constructor(e){r(this,"transport",void 0),this.transport=e}get(e){return this.transport.callSingle({service:"spotify.prefs.esperanto.proto.Prefs",method:"Get",payload:o.GetParams.encode(e).finish()}).then((e=>o.PrefValues.decode(i.Reader.create(e))))}sub(e,t){return this.transport.callStream({service:"spotify.prefs.esperanto.proto.Prefs",method:"Sub",payload:o.SubParams.encode(e).finish()},(e=>t(o.PrefValues.decode(i.Reader.create(e)))))}getAll(e){return this.transport.callSingle({service:"spotify.prefs.esperanto.proto.Prefs",method:"GetAll",payload:o.GetAllParams.encode(e).finish()}).then((e=>o.PrefValues.decode(i.Reader.create(e))))}subAll(e,t){return this.transport.callStream({service:"spotify.prefs.esperanto.proto.Prefs",method:"SubAll",payload:o.SubAllParams.encode(e).finish()},(e=>t(o.PrefValues.decode(i.Reader.create(e)))))}set(e){return this.transport.callSingle({service:"spotify.prefs.esperanto.proto.Prefs",method:"Set",payload:o.SetParams.encode(e).finish()}).then((e=>o.PrefValues.decode(i.Reader.create(e))))}create(e){return this.transport.callSingle({service:"spotify.prefs.esperanto.proto.Prefs",method:"Create",payload:o.CreateParams.encode(e).finish()}).then((e=>o.PrefValues.decode(i.Reader.create(e))))}}r(a,"SERVICE_ID","spotify.prefs.esperanto.proto.Prefs"),r(a,"DECODERS",{Get:{request:o.GetParams.decode,response:o.PrefValues.decode},Sub:{request:o.SubParams.decode,response:o.PrefValues.decode},GetAll:{request:o.GetAllParams.decode,response:o.PrefValues.decode},SubAll:{request:o.SubAllParams.decode,response:o.PrefValues.decode},Set:{request:o.SetParams.decode,response:o.PrefValues.decode},Create:{request:o.CreateParams.decode,response:o.PrefValues.decode}}),t.PrefsClient=a},43867:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.makePrefs=t.SimplePrefs=t.PrefsClient=void 0;const a=n(5699);Object.defineProperty(t,"PrefsClient",{enumerable:!0,get:function(){return a.PrefsClient}});const s=o(n(74822));t.SimplePrefs=s.default,i(n(9195),t),t.makePrefs=function(e){return new a.PrefsClient(e)}},74822:(e,t,n)=>{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0});const i=n(43867),o=e=>"string"==typeof e?{string:e}:"boolean"==typeof e?{bool:e}:{number:String(e)},a=e=>Object.fromEntries(Object.entries(e.entries).map((([e,{string:t,bool:n,number:r}])=>{var i;return[e,null!==(i=null!=t?t:n)&&void 0!==i?i:r]})));t.default=class{constructor(e){r(this,"prefs",void 0),this.prefs=new i.PrefsClient(e)}getAll(){return this.prefs.getAll({}).then((e=>a(e)))}get(e){return this.prefs.get({key:e}).then((t=>a(t)[e]))}async set(e,t){await this.prefs.set({entries:{[e]:o(t)}})}}},9195:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrefValues_EntriesEntry=t.PrefValues=t.CreateParams_EntriesEntry=t.CreateParams=t.SetParams_EntriesEntry=t.SetParams=t.Value=t.SubAllParams=t.GetAllParams=t.SubParams=t.GetParams=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.prefs.esperanto.proto",t.GetParams={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:""};for(;n.pos>>3==1)i.key=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({key:s(e.key)?String(e.key):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),t},fromPartial(e){var t;const n={key:""};return n.key=null!==(t=e.key)&&void 0!==t?t:"",n}},t.SubParams={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:""};for(;n.pos>>3==1)i.key=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({key:s(e.key)?String(e.key):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),t},fromPartial(e){var t;const n={key:""};return n.key=null!==(t=e.key)&&void 0!==t?t:"",n}},t.GetAllParams={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubAllParams={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.Value={encode:(e,t=o.default.Writer.create())=>(void 0!==e.number&&t.uint32(8).int64(e.number),void 0!==e.bool&&t.uint32(16).bool(e.bool),void 0!==e.string&&t.uint32(26).string(e.string),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={number:void 0,bool:void 0,string:void 0};for(;n.pos>>3){case 1:i.number=n.int64().toString();break;case 2:i.bool=n.bool();break;case 3:i.string=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({number:s(e.number)?String(e.number):void 0,bool:s(e.bool)?Boolean(e.bool):void 0,string:s(e.string)?String(e.string):void 0}),toJSON(e){const t={};return void 0!==e.number&&(t.number=e.number),void 0!==e.bool&&(t.bool=e.bool),void 0!==e.string&&(t.string=e.string),t},fromPartial(e){var t,n,r;const i={number:void 0,bool:void 0,string:void 0};return i.number=null!==(t=e.number)&&void 0!==t?t:void 0,i.bool=null!==(n=e.bool)&&void 0!==n?n:void 0,i.string=null!==(r=e.string)&&void 0!==r?r:void 0,i}},t.SetParams={encode:(e,n=o.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,r])=>{t.SetParams_EntriesEntry.encode({key:e,value:r},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={entries:{}};for(;r.pos>>3==1){const e=t.SetParams_EntriesEntry.decode(r,r.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else r.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,r])=>(e[n]=t.Value.fromJSON(r),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,r])=>{n.entries[e]=t.Value.toJSON(r)})),n},fromPartial(e){var n;const r={entries:{}};return r.entries=Object.entries(null!==(n=e.entries)&&void 0!==n?n:{}).reduce(((e,[n,r])=>(void 0!==r&&(e[n]=t.Value.fromPartial(r)),e)),{}),r}},t.SetParams_EntriesEntry={encode:(e,n=o.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Value.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={key:"",value:void 0};for(;r.pos>>3){case 1:a.key=r.string();break;case 2:a.value=t.Value.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?t.Value.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Value.toJSON(e.value):void 0),n},fromPartial(e){var n;const r={key:"",value:void 0};return r.key=null!==(n=e.key)&&void 0!==n?n:"",r.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,r}},t.CreateParams={encode:(e,n=o.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,r])=>{t.CreateParams_EntriesEntry.encode({key:e,value:r},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={entries:{}};for(;r.pos>>3==1){const e=t.CreateParams_EntriesEntry.decode(r,r.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else r.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,r])=>(e[n]=t.Value.fromJSON(r),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,r])=>{n.entries[e]=t.Value.toJSON(r)})),n},fromPartial(e){var n;const r={entries:{}};return r.entries=Object.entries(null!==(n=e.entries)&&void 0!==n?n:{}).reduce(((e,[n,r])=>(void 0!==r&&(e[n]=t.Value.fromPartial(r)),e)),{}),r}},t.CreateParams_EntriesEntry={encode:(e,n=o.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Value.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={key:"",value:void 0};for(;r.pos>>3){case 1:a.key=r.string();break;case 2:a.value=t.Value.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?t.Value.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Value.toJSON(e.value):void 0),n},fromPartial(e){var n;const r={key:"",value:void 0};return r.key=null!==(n=e.key)&&void 0!==n?n:"",r.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,r}},t.PrefValues={encode:(e,n=o.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,r])=>{t.PrefValues_EntriesEntry.encode({key:e,value:r},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={entries:{}};for(;r.pos>>3==1){const e=t.PrefValues_EntriesEntry.decode(r,r.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else r.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,r])=>(e[n]=t.Value.fromJSON(r),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,r])=>{n.entries[e]=t.Value.toJSON(r)})),n},fromPartial(e){var n;const r={entries:{}};return r.entries=Object.entries(null!==(n=e.entries)&&void 0!==n?n:{}).reduce(((e,[n,r])=>(void 0!==r&&(e[n]=t.Value.fromPartial(r)),e)),{}),r}},t.PrefValues_EntriesEntry={encode:(e,n=o.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Value.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={key:"",value:void 0};for(;r.pos>>3){case 1:a.key=r.string();break;case 2:a.value=t.Value.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?t.Value.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Value.toJSON(e.value):void 0),n},fromPartial(e){var n;const r={key:"",value:void 0};return r.key=null!==(n=e.key)&&void 0!==n?n:"",r.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},81473:(e,t,n)=>{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0}),t.StorageClient=void 0;const i=n(62100),o=n(29403),a=n(43818);class s{constructor(e){r(this,"transport",void 0),this.transport=e}getCacheSizeLimit(e){return this.transport.callSingle({service:"spotify.storage.esperanto.proto.Storage",method:"GetCacheSizeLimit",payload:o.GetCacheSizeLimitParams.encode(e).finish()}).then((e=>o.CacheSizeLimit.decode(i.Reader.create(e))))}setCacheSizeLimit(e){return this.transport.callSingle({service:"spotify.storage.esperanto.proto.Storage",method:"SetCacheSizeLimit",payload:o.SetCacheSizeLimitParams.encode(e).finish()}).then((e=>a.Empty.decode(i.Reader.create(e))))}deleteExpiredItems(e){return this.transport.callSingle({service:"spotify.storage.esperanto.proto.Storage",method:"DeleteExpiredItems",payload:o.DeleteExpiredItemsParams.encode(e).finish()}).then((e=>a.Empty.decode(i.Reader.create(e))))}deleteUnlockedItems(e){return this.transport.callSingle({service:"spotify.storage.esperanto.proto.Storage",method:"DeleteUnlockedItems",payload:o.DeleteUnlockedItemsParams.encode(e).finish()}).then((e=>a.Empty.decode(i.Reader.create(e))))}getStats(e){return this.transport.callSingle({service:"spotify.storage.esperanto.proto.Storage",method:"GetStats",payload:o.GetStatsParams.encode(e).finish()}).then((e=>o.Stats.decode(i.Reader.create(e))))}getFileRanges(e){return this.transport.callSingle({service:"spotify.storage.esperanto.proto.Storage",method:"GetFileRanges",payload:o.GetFileRangesParams.encode(e).finish()}).then((e=>o.FileRanges.decode(i.Reader.create(e))))}}r(s,"SERVICE_ID","spotify.storage.esperanto.proto.Storage"),r(s,"DECODERS",{GetCacheSizeLimit:{request:o.GetCacheSizeLimitParams.decode,response:o.CacheSizeLimit.decode},SetCacheSizeLimit:{request:o.SetCacheSizeLimitParams.decode,response:a.Empty.decode},DeleteExpiredItems:{request:o.DeleteExpiredItemsParams.decode,response:a.Empty.decode},DeleteUnlockedItems:{request:o.DeleteUnlockedItemsParams.decode,response:a.Empty.decode},GetStats:{request:o.GetStatsParams.decode,response:o.Stats.decode},GetFileRanges:{request:o.GetFileRangesParams.decode,response:o.FileRanges.decode}}),t.StorageClient=s},34882:(e,t,n)=>{"use strict";t.t=void 0;const r=n(81473);t.t=function(e){return new r.StorageClient(e)}},29403:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetFileRangesParams=t.FileRanges_Range=t.FileRanges=t.GetStatsParams=t.Stats=t.RealmStats=t.DeleteUnlockedItemsParams=t.DeleteExpiredItemsParams=t.SetCacheSizeLimitParams=t.GetCacheSizeLimitParams=t.CacheSizeLimit=t.realmToJSON=t.realmFromJSON=t.Realm=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;function s(e){switch(e){case 0:case"STREAM":return a.STREAM;case 1:case"COVER_ART":return a.COVER_ART;case 4:case"PLAYLIST":return a.PLAYLIST;case 5:case"AUDIO_SHOW":return a.AUDIO_SHOW;case 7:case"HEAD_FILES":return a.HEAD_FILES;case 8:case"EXTERNAL_AUDIO_SHOW":return a.EXTERNAL_AUDIO_SHOW;case 9:case"KARAOKE_MASK":return a.KARAOKE_MASK;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.STREAM:return"STREAM";case a.COVER_ART:return"COVER_ART";case a.PLAYLIST:return"PLAYLIST";case a.AUDIO_SHOW:return"AUDIO_SHOW";case a.HEAD_FILES:return"HEAD_FILES";case a.EXTERNAL_AUDIO_SHOW:return"EXTERNAL_AUDIO_SHOW";case a.KARAOKE_MASK:return"KARAOKE_MASK";default:return"UNKNOWN"}}function c(e){return e.toString()}function u(e){return null!=e}t.protobufPackage="spotify.storage.esperanto.proto",function(e){e[e.STREAM=0]="STREAM",e[e.COVER_ART=1]="COVER_ART",e[e.PLAYLIST=4]="PLAYLIST",e[e.AUDIO_SHOW=5]="AUDIO_SHOW",e[e.HEAD_FILES=7]="HEAD_FILES",e[e.EXTERNAL_AUDIO_SHOW=8]="EXTERNAL_AUDIO_SHOW",e[e.KARAOKE_MASK=9]="KARAOKE_MASK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Realm||(t.Realm={})),t.realmFromJSON=s,t.realmToJSON=l,t.CacheSizeLimit={encode:(e,t=o.default.Writer.create())=>("0"!==e.size&&t.uint32(8).int64(e.size),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={size:"0"};for(;n.pos>>3==1)i.size=c(n.int64());else n.skipType(7&e)}return i},fromJSON:e=>({size:u(e.size)?String(e.size):"0"}),toJSON(e){const t={};return void 0!==e.size&&(t.size=e.size),t},fromPartial(e){var t;const n={size:"0"};return n.size=null!==(t=e.size)&&void 0!==t?t:"0",n}},t.GetCacheSizeLimitParams={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SetCacheSizeLimitParams={encode:(e,n=o.default.Writer.create())=>(void 0!==e.limit&&t.CacheSizeLimit.encode(e.limit,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={limit:void 0};for(;r.pos>>3==1)a.limit=t.CacheSizeLimit.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON:e=>({limit:u(e.limit)?t.CacheSizeLimit.fromJSON(e.limit):void 0}),toJSON(e){const n={};return void 0!==e.limit&&(n.limit=e.limit?t.CacheSizeLimit.toJSON(e.limit):void 0),n},fromPartial(e){const n={limit:void 0};return n.limit=void 0!==e.limit&&null!==e.limit?t.CacheSizeLimit.fromPartial(e.limit):void 0,n}},t.DeleteExpiredItemsParams={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.DeleteUnlockedItemsParams={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.RealmStats={encode:(e,t=o.default.Writer.create())=>(0!==e.realm&&t.uint32(8).int32(e.realm),"0"!==e.size&&t.uint32(16).int64(e.size),"0"!==e.numEntries&&t.uint32(24).int64(e.numEntries),"0"!==e.numCompleteEntries&&t.uint32(32).int64(e.numCompleteEntries),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={realm:0,size:"0",numEntries:"0",numCompleteEntries:"0"};for(;n.pos>>3){case 1:i.realm=n.int32();break;case 2:i.size=c(n.int64());break;case 3:i.numEntries=c(n.int64());break;case 4:i.numCompleteEntries=c(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({realm:u(e.realm)?s(e.realm):0,size:u(e.size)?String(e.size):"0",numEntries:u(e.numEntries)?String(e.numEntries):"0",numCompleteEntries:u(e.numCompleteEntries)?String(e.numCompleteEntries):"0"}),toJSON(e){const t={};return void 0!==e.realm&&(t.realm=l(e.realm)),void 0!==e.size&&(t.size=e.size),void 0!==e.numEntries&&(t.numEntries=e.numEntries),void 0!==e.numCompleteEntries&&(t.numCompleteEntries=e.numCompleteEntries),t},fromPartial(e){var t,n,r,i;const o={realm:0,size:"0",numEntries:"0",numCompleteEntries:"0"};return o.realm=null!==(t=e.realm)&&void 0!==t?t:0,o.size=null!==(n=e.size)&&void 0!==n?n:"0",o.numEntries=null!==(r=e.numEntries)&&void 0!==r?r:"0",o.numCompleteEntries=null!==(i=e.numCompleteEntries)&&void 0!==i?i:"0",o}},t.Stats={encode(e,n=o.default.Writer.create()){""!==e.cacheId&&n.uint32(10).string(e.cacheId),"0"!==e.creationDateSec&&n.uint32(16).int64(e.creationDateSec),"0"!==e.maxCacheSize&&n.uint32(24).int64(e.maxCacheSize),"0"!==e.currentSize&&n.uint32(32).int64(e.currentSize),"0"!==e.currentLockedSize&&n.uint32(40).int64(e.currentLockedSize),"0"!==e.freeSpace&&n.uint32(48).int64(e.freeSpace),"0"!==e.totalSpace&&n.uint32(56).int64(e.totalSpace),"0"!==e.currentNumfiles&&n.uint32(64).int64(e.currentNumfiles);for(const r of e.realmStats)t.RealmStats.encode(r,n.uint32(74).fork()).ldelim();return n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={cacheId:"",creationDateSec:"0",maxCacheSize:"0",currentSize:"0",currentLockedSize:"0",freeSpace:"0",totalSpace:"0",currentNumfiles:"0",realmStats:[]};for(;r.pos>>3){case 1:a.cacheId=r.string();break;case 2:a.creationDateSec=c(r.int64());break;case 3:a.maxCacheSize=c(r.int64());break;case 4:a.currentSize=c(r.int64());break;case 5:a.currentLockedSize=c(r.int64());break;case 6:a.freeSpace=c(r.int64());break;case 7:a.totalSpace=c(r.int64());break;case 8:a.currentNumfiles=c(r.int64());break;case 9:a.realmStats.push(t.RealmStats.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON:e=>({cacheId:u(e.cacheId)?String(e.cacheId):"",creationDateSec:u(e.creationDateSec)?String(e.creationDateSec):"0",maxCacheSize:u(e.maxCacheSize)?String(e.maxCacheSize):"0",currentSize:u(e.currentSize)?String(e.currentSize):"0",currentLockedSize:u(e.currentLockedSize)?String(e.currentLockedSize):"0",freeSpace:u(e.freeSpace)?String(e.freeSpace):"0",totalSpace:u(e.totalSpace)?String(e.totalSpace):"0",currentNumfiles:u(e.currentNumfiles)?String(e.currentNumfiles):"0",realmStats:Array.isArray(null==e?void 0:e.realmStats)?e.realmStats.map((e=>t.RealmStats.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.cacheId&&(n.cacheId=e.cacheId),void 0!==e.creationDateSec&&(n.creationDateSec=e.creationDateSec),void 0!==e.maxCacheSize&&(n.maxCacheSize=e.maxCacheSize),void 0!==e.currentSize&&(n.currentSize=e.currentSize),void 0!==e.currentLockedSize&&(n.currentLockedSize=e.currentLockedSize),void 0!==e.freeSpace&&(n.freeSpace=e.freeSpace),void 0!==e.totalSpace&&(n.totalSpace=e.totalSpace),void 0!==e.currentNumfiles&&(n.currentNumfiles=e.currentNumfiles),e.realmStats?n.realmStats=e.realmStats.map((e=>e?t.RealmStats.toJSON(e):void 0)):n.realmStats=[],n},fromPartial(e){var n,r,i,o,a,s,l,c,u;const d={cacheId:"",creationDateSec:"0",maxCacheSize:"0",currentSize:"0",currentLockedSize:"0",freeSpace:"0",totalSpace:"0",currentNumfiles:"0",realmStats:[]};return d.cacheId=null!==(n=e.cacheId)&&void 0!==n?n:"",d.creationDateSec=null!==(r=e.creationDateSec)&&void 0!==r?r:"0",d.maxCacheSize=null!==(i=e.maxCacheSize)&&void 0!==i?i:"0",d.currentSize=null!==(o=e.currentSize)&&void 0!==o?o:"0",d.currentLockedSize=null!==(a=e.currentLockedSize)&&void 0!==a?a:"0",d.freeSpace=null!==(s=e.freeSpace)&&void 0!==s?s:"0",d.totalSpace=null!==(l=e.totalSpace)&&void 0!==l?l:"0",d.currentNumfiles=null!==(c=e.currentNumfiles)&&void 0!==c?c:"0",d.realmStats=(null===(u=e.realmStats)||void 0===u?void 0:u.map((e=>t.RealmStats.fromPartial(e))))||[],d}},t.GetStatsParams={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.FileRanges={encode(e,n=o.default.Writer.create()){!0===e.byteSizeKnown&&n.uint32(8).bool(e.byteSizeKnown),"0"!==e.byteSize&&n.uint32(16).uint64(e.byteSize);for(const r of e.ranges)t.FileRanges_Range.encode(r,n.uint32(26).fork()).ldelim();return n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={byteSizeKnown:!1,byteSize:"0",ranges:[]};for(;r.pos>>3){case 1:a.byteSizeKnown=r.bool();break;case 2:a.byteSize=c(r.uint64());break;case 3:a.ranges.push(t.FileRanges_Range.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON:e=>({byteSizeKnown:!!u(e.byteSizeKnown)&&Boolean(e.byteSizeKnown),byteSize:u(e.byteSize)?String(e.byteSize):"0",ranges:Array.isArray(null==e?void 0:e.ranges)?e.ranges.map((e=>t.FileRanges_Range.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.byteSizeKnown&&(n.byteSizeKnown=e.byteSizeKnown),void 0!==e.byteSize&&(n.byteSize=e.byteSize),e.ranges?n.ranges=e.ranges.map((e=>e?t.FileRanges_Range.toJSON(e):void 0)):n.ranges=[],n},fromPartial(e){var n,r,i;const o={byteSizeKnown:!1,byteSize:"0",ranges:[]};return o.byteSizeKnown=null!==(n=e.byteSizeKnown)&&void 0!==n&&n,o.byteSize=null!==(r=e.byteSize)&&void 0!==r?r:"0",o.ranges=(null===(i=e.ranges)||void 0===i?void 0:i.map((e=>t.FileRanges_Range.fromPartial(e))))||[],o}},t.FileRanges_Range={encode:(e,t=o.default.Writer.create())=>("0"!==e.fromByte&&t.uint32(8).uint64(e.fromByte),"0"!==e.toByte&&t.uint32(16).uint64(e.toByte),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={fromByte:"0",toByte:"0"};for(;n.pos>>3){case 1:i.fromByte=c(n.uint64());break;case 2:i.toByte=c(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromByte:u(e.fromByte)?String(e.fromByte):"0",toByte:u(e.toByte)?String(e.toByte):"0"}),toJSON(e){const t={};return void 0!==e.fromByte&&(t.fromByte=e.fromByte),void 0!==e.toByte&&(t.toByte=e.toByte),t},fromPartial(e){var t,n;const r={fromByte:"0",toByte:"0"};return r.fromByte=null!==(t=e.fromByte)&&void 0!==t?t:"0",r.toByte=null!==(n=e.toByte)&&void 0!==n?n:"0",r}},t.GetFileRangesParams={encode:(e,t=o.default.Writer.create())=>(0!==e.realm&&t.uint32(8).int32(e.realm),""!==e.fileId&&t.uint32(18).string(e.fileId),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={realm:0,fileId:""};for(;n.pos>>3){case 1:i.realm=n.int32();break;case 2:i.fileId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({realm:u(e.realm)?s(e.realm):0,fileId:u(e.fileId)?String(e.fileId):""}),toJSON(e){const t={};return void 0!==e.realm&&(t.realm=l(e.realm)),void 0!==e.fileId&&(t.fileId=e.fileId),t},fromPartial(e){var t,n;const r={realm:0,fileId:""};return r.realm=null!==(t=e.realm)&&void 0!==t?t:0,r.fileId=null!==(n=e.fileId)&&void 0!==n?n:"",r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},43818:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Empty=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},33178:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,vp:()=>p});class r{constructor(e,t){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=e,this.data=t}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}n(84633);const i="undefined"!=typeof window,o=[];function a(){var e;const t=o.splice(0);if(t.length)for(let n=0,r=t.length;n{const t=!o.length;o.push(e),t&&s()};function c(e,t,n){for(let r=0,i=e.length;rthis._dispatchFromStore(this._listeners,n))),n}emitSync(e,t){if(!e)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(e,t);return this._dispatchFromStore(this._listeners,n),n}emitEvent(e){return l((()=>this._dispatchFromStore(this._listeners,e))),e}emitEventSync(e){return this._dispatchFromStore(this._listeners,e),e}emitAndWait(e,t,n){if(!e)throw new TypeError("Argument `eventType` is required.");const r=this.createEvent(e,t);return l((()=>{this._dispatchFromStore(this._listeners,r),n.call(this,r)})),r}emitEventAndWait(e,t){return l((()=>{this._dispatchFromStore(this._listeners,e),t.call(this,e)})),e}proxyEmit(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=e=>{e.stopped||this.emitAndWait(n,e.data,(t=>{t.defaultPrevented&&e.preventDefault()}))};return e.on(t,r),r}proxyEmitSync(e,t,n){if(!e||"function"!=typeof e.on)throw new TypeError("Proxy source must be an EventEmitter");if(e===this)throw new ReferenceError("Cannot create recursive proxy.");if(!t||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=e=>{if(e.stopped)return;const t=this.createEvent(n,e.data);this.emitEventSync(t),t.defaultPrevented&&e.preventDefault()};return e.on(t,r),r}proxyEmitAll(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmit(e,n,t[n])}proxyEmitAllSync(e,t){for(const n in t)t.hasOwnProperty(n)&&this.proxyEmitSync(e,n,t[n])}onAddListener(e,t,n={}){const r=this._metaListeners.add;return u(r,e,t,n)&&d(r,e,t,n),this}onRemoveListener(e,t,n={}){const r=this._metaListeners.remove;return u(r,e,t,n)&&d(r,e,t,n),this}}},72406:(e,t,n)=>{"use strict";n.d(t,{AHr:()=>T,Asd:()=>y,BSu:()=>C,DgY:()=>p,EfK:()=>d,GW5:()=>P,I_u:()=>h,MpZ:()=>c,Otb:()=>r,QBe:()=>E,QJq:()=>i,Ra7:()=>g,Ue_:()=>f,VW9:()=>S,Vro:()=>u,Y5F:()=>s,YtU:()=>m,bxl:()=>b,gIt:()=>_,h2J:()=>O,l8e:()=>v,w8Q:()=>l,x3d:()=>a,xXe:()=>o,xi7:()=>A});const r="96px",i="72px",o="48px",a="96px",s="72px",l="48px",c={fontSize:"16px",lineHeight:"24px",textTransform:"none",letterSpacing:"normal",fontWeight:400},u={fontSize:"16px",lineHeight:"24px",textTransform:"none",letterSpacing:"normal",fontWeight:700},d={fontSize:"14px",lineHeight:"20px",textTransform:"none",letterSpacing:"normal",fontWeight:400},p={fontSize:"14px",lineHeight:"20px",textTransform:"none",letterSpacing:"normal",fontWeight:700},f={fontSize:"14px",lineHeight:"16px",textTransform:"none",letterSpacing:"normal",fontWeight:400},h={fontSize:"14px",lineHeight:"16px",textTransform:"none",letterSpacing:"normal",fontWeight:700},v={fontSize:"96px",lineHeight:"96px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:900},m={fontSize:"72px",lineHeight:"72px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:900},g={fontSize:"48px",lineHeight:"48px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:700},y={fontSize:"14px",lineHeight:"16px",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:700},_={fontSize:"12px",lineHeight:"16px",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:400},b={fontSize:"12px",lineHeight:"16px",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:700},E={fontSize:"11px",lineHeight:"16px",textTransform:"none",letterSpacing:"normal",fontWeight:400},S={fontSize:"11px",lineHeight:"16px",textTransform:"none",letterSpacing:"normal",fontWeight:700},T={fontSize:"48px",lineHeight:"48px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:700},O={fontSize:"32px",lineHeight:"36px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:700},A={fontSize:"24px",lineHeight:"28px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:700},C={fontSize:"24px",lineHeight:"28px",textTransform:"none",letterSpacing:"-0.04em",fontWeight:700},P={fontSize:"18px",lineHeight:"24px",textTransform:"none",letterSpacing:"normal",fontWeight:700}},73012:(e,t,n)=>{"use strict";n.d(t,{$_Y:()=>F,$p6:()=>u,A2L:()=>K,F4X:()=>W,F_T:()=>C,Fzl:()=>r,HjQ:()=>p,JBZ:()=>N,KGD:()=>j,OFm:()=>z,SA3:()=>M,SIq:()=>x,Sns:()=>s,Snx:()=>y,TMf:()=>H,URx:()=>q,X33:()=>c,XfI:()=>m,YhY:()=>b,cQs:()=>k,crY:()=>E,d1r:()=>l,dG:()=>f,dly:()=>T,dt8:()=>V,ekl:()=>g,eqR:()=>B,g4V:()=>P,gXv:()=>D,hM$:()=>S,hcr:()=>Y,ixZ:()=>_,jN0:()=>i,k77:()=>o,kEW:()=>$,lM8:()=>L,m1g:()=>v,mGT:()=>I,mTH:()=>R,nuo:()=>O,o78:()=>A,pCU:()=>h,poE:()=>J,s8M:()=>d,tGJ:()=>a,uOY:()=>w,vmZ:()=>U,w_O:()=>G});const r="#4100f5",i="#1e3264",o="#121212",a="#333333",s="#535353",l="#7f7f7f",c="rgba(0, 0, 0, 0)",u="rgba(0, 0, 0, 0.7)",d="#834f34",p="#ef77a1",f="#af93c4",h="#59a0f6",v="#ff7439",m="#19e68c",g="var(--spice-button)",y="#000000",_="var(--spice-text)",b="0.3",E="0.7",S="4px",T="8px",O="12px",A="16px",C="20px",P="24px",I="32px",R="40px",N="48px",k="56px",L="64px",w="72px",D="767px",M="768px",x="991px",U="992px",F={aquamarine:"#9bf0e1",aubergine:"#503750",azure:"#509bf5",bole:"#c87d55",brightRed:"#e61e32",chocolate:"#7d4b32",citric:"#cdf564",electricSeafoam:"#19e68c",factoryYellow:"#fae62d",forest:"#006450",fuchsia:"#dc148c",gold:"#f59b23",kleinBlue:r,lavender:"#b49bc8",maroon:"#8c1932",midnight:i,neonGreen:"#5ff550",orange:"#ff6437",pink:"#ffcdd2",plum:"#705378",powderGreen:"#c3f0c8",royalBlue:"#2d46b9",salmon:"#f573a0",spearmint:"#27856a",storm:"#a0c3d2",sunflower:"#ffc864",tan:"#c39687",tangerine:"#e3230e",violet:"#af2896",gray7:o,gray10:"#181818",gray15:"#282828",gray20:a,gray30:s,gray50:l,gray70:"var(--spice-subtext)",gray80:"#cccccc",gray85:"#d9d9d9",gray90:"#eeeeee",gray95:"#f8f8f8",opacityBlack0:c,opacityBlack10:"rgba(0, 0, 0, 0.1)",opacityBlack30:"rgba(0, 0, 0, 0.3)",opacityBlack50:"rgba(0, 0, 0, 0.5)",opacityBlack60:"rgba(0, 0, 0, 0.6)",opacityBlack70:"rgba(0, 0, 0, 0.7)",opacityBlack90:"rgba(0, 0, 0, 0.9)",opacityWhite0:"rgba(255, 255, 255, 0)",opacityWhite10:"rgba(255, 255, 255, 0.1)",opacityWhite30:"rgba(255, 255, 255, 0.3)",opacityWhite50:"rgba(255, 255, 255, 0.5)",opacityWhite60:"rgba(255, 255, 255, 0.6)",opacityWhite70:"rgba(255, 255, 255, 0.7)",opacityWhite90:"rgba(255, 255, 255, 0.9)",black0:"rgba(0, 0, 0, 0)",black10:"rgba(0, 0, 0, 0.1)",black30:"rgba(0, 0, 0, 0.3)",black50:"rgba(0, 0, 0, 0.5)",black60:"rgba(0, 0, 0, 0.6)",black70:u,black90:"rgba(0, 0, 0, 0.9)",white0:"rgba(255, 255, 255, 0)",white10:"rgba(255, 255, 255, 0.1)",white30:"rgba(255, 255, 255, 0.3)",white50:"rgba(255, 255, 255, 0.5)",white60:"rgba(255, 255, 255, 0.6)",white70:"rgba(255, 255, 255, 0.7)",white90:"rgba(255, 255, 255, 0.9)",black20:"rgba(0, 0, 0, 0.2)",black40:"rgba(0, 0, 0, 0.4)",white5:"rgba(255, 255, 255, 0.05)",white20:"rgba(255, 255, 255, 0.2)",white40:"rgba(255, 255, 255, 0.4)",solidBlack0:"#000000",solidWhite200:"var(--spice-text)",spotifyBlack7:"#121212",midnight35:"#202f72",aubergine46:"#503659",maroon55:"#8a202b",royalBlue55:"#283ea3",kleinBlue61:"#4100f4",forest75:"#056952",chocolate75:d,violet84:"#b02897",brightRed100:"#e91429",spearmint114:"#4b917d",fuchsia115:"#f036a4",tangerine120:"#ff4834",bole123:"#c87d55",salmon135:p,lavender135:f,azure135:h,pumpkin135:v,tan135:"#c19384",storm155:"#a5bbd1",gold155:"#ffa42b",spotifyGreen157:"#1ed760",sunflower172:"#ffc862",rose180:"#ffd2d7",aquamarine180:"#91eeda",factoryYellow184:"#fce54f",powderGreen185:"#c5f0c9",citric186:"#cff56a",neonGreen176:"#5ff550",electricSeafoam167:m,redOrange25:"#560f00",redOrange55:"#911600",redOrange75:"#b71800",redOrange100:"#e81b00",redOrange120:"#ff4834",redOrange135:"#ff7163",redOrange155:"#ff9e95",redOrange180:"#ffd3cf",brown25:"#3d2418",brown55:"#683e2a",brown75:"#834f34",brown100:"#a96440",brown123:"#c87d55",brown135:"#d38e67",brown155:"#e5ac8a",brown180:"#f7d7c3",brownDesat25:"#3b251d",brownDesat55:"#653f32",brownDesat75:"#805040",brownDesat100:"#a36652",brownDesat135:"#c19384",brownDesat155:"#d2b1a6",brownDesat180:"#eadad5",orange25:"#4f1800",orange55:"#862800",orange75:"#a83200",orange100:"#d64000",orange135:"#ff7439",orange155:"#ffa178",orange180:"#ffd4c2",brownYellow25:"#491e00",brownYellow55:"#793500",brownYellow75:"#964400",brownYellow100:"#bc5900",brownYellow135:"#f47e00",brownYellow155:"#ffa42b",brownYellow172:"#ffc862",brownYellow180:"#ffd97e",brownYellowDesat25:"#39260e",brownYellowDesat55:"#624218",brownYellowDesat75:"#7c531e",brownYellowDesat100:"#9f6b27",brownYellowDesat135:"#d0913f",brownYellowDesat155:"#deb076",brownYellowDesat180:"#efdabf",yellow25:"#352901",yellow55:"#594602",yellow75:"#705903",yellow100:"#8e7203",yellow135:"#bd9a03",yellow155:"#dab503",yellow184:"#fce54f",yellowGreen25:"#222e03",yellowGreen55:"#3b4f05",yellowGreen75:"#4a6406",yellowGreen100:"#5f8008",yellowGreen135:"#80ac0b",yellowGreen155:"#95c90d",yellowGreen186:"#cff56a",yellowGreenDesat25:"#262d11",yellowGreenDesat55:"#414d1e",yellowGreenDesat75:"#526226",yellowGreenDesat100:"#697d30",yellowGreenDesat135:"#8da841",yellowGreenDesat155:"#a9c261",yellowGreenDesat180:"#d7e3b5",green25:"#073116",green55:"#0c5426",green75:"#0f6a2f",green100:"#13873c",green135:"#19b551",green157:"#1ed760",green180:"#96f0b6",greenDesat25:"#182f21",greenDesat55:"#265135",greenDesat75:"#2d6740",greenDesat100:"#34854d",greenDesat135:"#3db35e",greenDesat155:"#5cce77",greenDesat185:"#c5f0c9",greenBlue25:"#013126",greenBlue55:"#035341",greenBlue75:"#056952",greenBlue100:"#088569",greenBlue135:"#10b28e",greenBlue155:"#16d0a6",greenBlue180:"#91eeda",greenBlueDesat25:"#182e28",greenBlueDesat55:"#294f44",greenBlueDesat75:"#346557",greenBlueDesat100:"#43816f",greenBlueDesat114:"#4b917d",greenBlueDesat135:"#5eac96",greenBlueDesat155:"#8bc3b3",greenBlueDesat180:"#c9e3db",blue25:"#052a56",blue55:"#084791",blue75:"#0a59b8",blue100:"#0d72ea",blue135:"#59a0f6",blue155:"#89bcf8",blue180:"#c8e0fc",blueDesat25:"#1d2b3a",blueDesat55:"#324b64",blueDesat75:"#405e7e",blueDesat100:"#5179a1",blueDesat135:"#82a1c0",blueDesat155:"#a5bbd1",blueDesat180:"#d4dfe9",blueViolet25:"#26008d",blueViolet55:"#3c00e4",blueViolet61:"#4100f4",blueViolet75:"#5925ff",blueViolet100:"#7358ff",blueViolet135:"#9691ff",blueViolet155:"#afb1ff",blueViolet180:"#d7dbff",blueVioletDesat25:"#1b2658",blueVioletDesat35:"#202f72",blueVioletDesat55:"#283ea3",blueVioletDesat75:"#334fcd",blueVioletDesat100:"#576dd6",blueVioletDesat135:"#8a9ae3",blueVioletDesat155:"#aab6ea",blueVioletDesat180:"#d7dcf5",violet25:"#400073",violet55:"#6900ba",violet75:"#8400e7",violet100:"#a833ff",violet135:"#c87dff",violet155:"#d8a3ff",violet180:"#edd4ff",violetDesat25:"#35243a",violetDesat46:"#503659",violetDesat75:"#734d85",violetDesat100:"#8e65a9",violetDesat135:"#af93c4",violetDesat155:"#c4b1d4",violetDesat180:"#e3daeb",violetPink25:"#4c1141",violetPink55:"#801d6d",violetPink75:"#a1258a",violetPink84:"#b02897",violetPink100:"#cc2faf",violetPink135:"#e079cd",violetPink155:"#e9a1dc",violetPink180:"#f5d3ef",violetPinkDesat25:"#3c1c4c",violetPinkDesat55:"#673081",violetPinkDesat67:"#773796",violetPinkDesat100:"#9e57bf",violetPinkDesat135:"#bb8dd0",violetPinkDesat155:"#cdaddc",violetPinkDesat180:"#e7d9ed",pink25:"#550635",pink55:"#8d0b58",pink75:"#b00d6e",pink100:"#df118b",pink115:"#f036a4",pink135:"#f46ebe",pink155:"#f79bd2",pink180:"#fcd2eb",pinkDesat25:"#4c172a",pinkDesat55:"#871f43",pinkDesat75:"#ad2152",pinkDesat100:"#de2666",pinkDesat135:"#ef77a1",pinkDesat155:"#f1a2bc",pinkDesat180:"#f4d6df",red25:"#590810",red55:"#930d1a",red75:"#b81021",red100:"#e91429",red135:"#f97481",red155:"#fe9da7",red180:"#ffd2d7",redDesat25:"#521319",redDesat55:"#8a202b",redDesat75:"#ad2836",redDesat100:"#d33f4e",redDesat135:"#e2828c",redDesat155:"#eaa6ad",redDesat180:"#f5d6d9",fluorescentRed109:"#ff001a",fluorescentOrange144:"#ff8b1f",fluorescentYellow194:"#f3ff46",fluorescentGreen176:"#5ff550",fluorescentGreenBlue167:"#19e68c",fluorescentCyan185:"#00ffff",fluorescentBlueViolet69:"#2d28ff",fluorescentViolet111:"#c13fff",fluorescentPink119:"#ff1abf",green:g,greenLight:"#1ed760",greenFocus:"#1da64d",greenDark:"#14833b",black:y,white:_,red:"#cd1a2b",redLight:"#e22134",redDark:"#941320",blue:"#2e77d0",blueLight:"#4687d6",blueFacebook:"#1877f2",blueDark:"#1d4c85",orangeLight:"#ff5722"},z={spacer4:S,spacer8:T,spacer12:O,spacer16:A,spacer20:C,spacer24:P,spacer32:I,spacer40:R,spacer48:N,spacer56:k,spacer64:L,spacer72:w,spacer80:"80px"},B={screenXxsMax:"479px",screenXsMin:"480px",screenXsMax:D,screenSmMin:M,screenSmMax:x,screenMdMin:U,screenMdMax:"1199px",screenLgMin:"1200px",screenLgMax:"1919px",screenXlMin:"1920px"},V={body1Font:"Circular",body1FontSize:"16px",body1FontWeight:400,body1LineHeight:"24px",body1LetterSpacing:"0px",body2Font:"Circular",body2FontSize:"14px",body2FontWeight:400,body2LineHeight:"20px",body2LetterSpacing:"0.25px",body3Font:"Circular",body3FontSize:"12px",body3FontWeight:400,body3LineHeight:"16px",body3LetterSpacing:"0.25px",body4Font:"Circular",body4FontSize:"10px",body4FontWeight:400,body4LineHeight:"16px",body4LetterSpacing:"0.25px",cta1Font:"Circular",cta1FontSize:"16px",cta1FontWeight:700,cta1LineHeight:"16px",cta1LetterSpacing:"2px",cta1Uppercase:"uppercase",cta2Font:"Circular",cta2FontSize:"14px",cta2FontWeight:700,cta2LineHeight:"16px",cta2LetterSpacing:"1px",cta2Uppercase:"uppercase",cta3Font:"Circular",cta3FontSize:"12px",cta3FontWeight:700,cta3LineHeight:"16px",cta3LetterSpacing:"1px",cta3Uppercase:"uppercase",cta4Font:"Circular",cta4FontSize:"10px",cta4FontWeight:700,cta4LineHeight:"16px",cta4LetterSpacing:"1px",cta4Uppercase:"uppercase",display1Font:"Circular",display1FontSmall:"Circular",display1FontXSmall:"Circular",display1FontSize:"96px",display1FontSizeSmall:"80px",display1FontSizeXSmall:"56px",display1FontWeight:900,display1FontWeightSmall:900,display1FontWeightXSmall:900,display1LineHeight:"104px",display1LineHeightSmall:"88px",display1LineHeightXSmall:"64px",display1PaddingBottom:"0.67em",display1PaddingBottomSmall:"0.67em",display1PaddingBottomXSmall:"0.67em",display1LetterSpacing:"-2px",display1LetterSpacingSmall:"-2px",display1LetterSpacingXSmall:"-1.75px",display2Font:"Circular",display2FontSmall:"Circular",display2FontXSmall:"Circular",display2FontSize:"80px",display2FontSizeSmall:"64px",display2FontSizeXSmall:"48px",display2FontWeight:900,display2FontWeightSmall:900,display2FontWeightXSmall:900,display2LineHeight:"88px",display2LineHeightSmall:"72px",display2LineHeightXSmall:"56px",display2PaddingBottom:"0.67em",display2PaddingBottomSmall:"0.67em",display2PaddingBottomXSmall:"0.67em",display2LetterSpacing:"-2px",display2LetterSpacingSmall:"-2px",display2LetterSpacingXSmall:"-1.75px",heading1Font:"Circular",heading1FontSmall:"Circular",heading1FontXSmall:"Circular",heading1FontSize:"48px",heading1FontSizeSmall:"40px",heading1FontSizeXSmall:"32px",heading1FontWeight:900,heading1FontWeightSmall:900,heading1FontWeightXSmall:900,heading1LineHeight:"56px",heading1LineHeightSmall:"48px",heading1LineHeightXSmall:"40px",heading1PaddingBottom:"0.67em",heading1PaddingBottomSmall:"0.67em",heading1PaddingBottomXSmall:"0.67em",heading1LetterSpacing:"-1px",heading1LetterSpacingSmall:"-1px",heading1LetterSpacingXSmall:"-1px",heading2Font:"Circular",heading2FontSmall:"Circular",heading2FontSize:"32px",heading2FontSizeSmall:"28px",heading2FontWeight:900,heading2FontWeightSmall:900,heading2LineHeight:"40px",heading2LineHeightSmall:"36px",heading2PaddingBottom:"0.75em",heading2PaddingBottomSmall:"0.75em",heading2LetterSpacing:"-0.5px",heading2LetterSpacingSmall:"-0.25px",heading3Font:"Circular",heading3FontSmall:"Circular",heading3FontSize:"24px",heading3FontSizeSmall:"20px",heading3FontWeight:900,heading3FontWeightSmall:900,heading3LineHeight:"32px",heading3LineHeightSmall:"28px",heading3LetterSpacing:"-0.25px",heading3LetterSpacingSmall:"-0.25px",heading4Font:"Circular",heading4FontSize:"18px",heading4FontWeight:400,heading4LineHeight:"26px",heading4LetterSpacing:"0px"},j={fontSize:"16px",fontWeight:400,lineHeight:"24px",letterSpacing:"0px"},H={fontSize:"14px",fontWeight:400,lineHeight:"20px",letterSpacing:"0.25px"},G={fontSize:"12px",fontWeight:400,lineHeight:"16px",letterSpacing:"0.25px"},q={fontSize:"10px",fontWeight:400,lineHeight:"16px",letterSpacing:"0.25px"},K={fontSize:"16px",fontWeight:700,lineHeight:"16px",letterSpacing:"2px",textTransform:"uppercase"},W={fontSize:"14px",fontWeight:700,lineHeight:"16px",letterSpacing:"1px",textTransform:"uppercase"},Y={fontSize:"12px",fontWeight:700,lineHeight:"16px",letterSpacing:"1px",textTransform:"uppercase"},J={fontSize:"10px",fontWeight:700,lineHeight:"16px",letterSpacing:"1px",textTransform:"uppercase"},$={fontSize:"18px",fontWeight:400,lineHeight:"26px",letterSpacing:"0px"}},26625:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(67294),i=n.n(r),o=n(93727),a=function(e){var t=e.useBrowserDefaultFocusStyle,n=void 0===t||t,r=e.children;return i().createElement(o.W.Provider,{value:{useBrowserDefaultFocusStyle:n}},r)}},39838:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(69334);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var o=function(e){for(var t=1;t{"use strict";n.d(t,{D:()=>x});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(93727),l=n(46939),c=n(89390),u=n(13446),d=n(14134),p=n(29131),f=n(10586),h=n(49366),v=f.ZP.div.withConfig({displayName:"ButtonFocus",componentId:"sc-2hq6ey-0"})(["",""],(function(e){return e.isUsingKeyboard&&(0,h.k2)(p.Dx)})),m=f.ZP.div.withConfig({displayName:"ButtonInner",componentId:"sc-14ud5tc-0"})(["",";",""],(function(e){var t=e.UNSAFE_colorSet;return t?(0,d.D6)(t):""}),(function(e){var t=e.fallbackSet,n=e.buttonSize,r=e.fullWidth,i=e.iconLeading,o=e.iconTrailing,a=e.iconOnly,s=e.status,l=(0,p.ZG)(n,i,o,a,void 0,s);return(0,f.iv)(["position:relative;background-color:var(--background-base,",");color:var(--text-base,",");border-radius:",";font-size:inherit;"," ",""],t.background.base,t.text.base,p.Dx,l,(r||i||o)&&(0,f.iv)(["display:flex;align-items:center;justify-content:center;"]))})),g=["component","buttonSize","hover","active","focus","fallbackSet","colorSet","useBrowserDefaultFocusStyle","status","fullWidth","UNSAFE_colorSet"],y=(0,f.ZP)(a().forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,o=(e.buttonSize,e.hover,e.active,e.focus,e.fallbackSet,e.colorSet,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.UNSAFE_colorSet,(0,i.Z)(e,g));return a().createElement(r,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"Button",componentId:"qlcn5g-0"})(["",""],(function(e){var t=e.fallbackSet,n=e.useBrowserDefaultFocusStyle,r=e.status,i=e.buttonSize,o=e.fullWidth,a=e.hover,s=e.active,l=e.focus,c=(0,f.iv)(["","{",";background-color:var(--background-base,",");color:var(--text-base,",");}","{border-color:transparent;}"],m,p.cp,t.background.base,t.text.base,v),u=(0,f.iv)(["","{background-color:var(--background-press,",");box-shadow:none;transform:scale(1);}","{transform:scale(1);}"],m,t.background.press,v),d=(0,f.iv)([""," ","{background-color:var(--background-highlight,",");}"],!o&&(0,f.iv)(["",",","{","}"],m,v,p.l_),m,t.background.highlight),g=(0,f.iv)(["","{border-color:",";}"],v,h.Bg);return(0,f.iv)(["",";padding:0;min-inline-size:0;align-self:center;"," &:hover{",";}"," &:active{",";}"," &:focus{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,p.Lm)(i,n,r),o&&(0,f.iv)(["inline-size:100%;"]),d,a&&(0,f.iv)(["&&{","}"],d),u,s&&(0,f.iv)(["&&{","}"],u),g,l&&(0,f.iv)(["&&{","}"],g),c)})),_=n(26613),b=f.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-1hf1hjl-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,r=e.position,i=p.FN[t],o=((0,_.zg)(p.hs[t])-(0,_.zg)(n))/2;return(0,f.iv)(["display:flex;position:absolute;"," "," ",""],"only"===r&&(0,f.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],o,o,o),"leading"===r&&(0,f.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===r&&(0,f.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),E=function(e){var t=e.position,n=e.buttonSize,r=e.icon,i="only"===t&&"lg"===n?"28px":p.Vt[n];return a().createElement(b,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},a().createElement(r,{iconSize:(0,_.zg)(i)}))},S=function(e){var t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing,i=e.children,o=e.buttonSize,s=function(e,t){return t&&a().createElement(E,{icon:t,position:e,buttonSize:o})};return t?a().createElement(a().Fragment,null,s("only",t)):a().createElement(a().Fragment,null,s("leading",n),i,s("trailing",r))},T=n(28538),O=["component","buttonSize","hover","active","focus","fallbackSet","colorSet","useBrowserDefaultFocusStyle","UNSAFE_colorSet"],A=["component","colorSet","buttonSize","children","className","UNSAFE_colorSet","iconLeading","iconTrailing","iconOnly","fullWidth","theme"],C=f.ZP.div.withConfig({displayName:"ButtonLegacy__ButtonLegacyInner",componentId:"o653de-0"})([""," ",""],(function(e){var t=e.UNSAFE_colorSet;return t?(0,d.D6)(t):""}),(function(e){var t=e.fallbackSet,n=e.buttonSize,r=(0,T.n)(n),i=r.paddingTopBottom,o=r.paddingLeftRight;return(0,f.iv)(["display:flex;align-items:center;background-color:var(--background-base,",");color:var(--text-base,",");border-radius:",";font-size:inherit;padding:","px ","px;"],t.background.base,t.text.base,p.Dx,i,o)})),P=(0,f.ZP)(a().forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,o=(e.buttonSize,e.hover,e.active,e.focus,e.fallbackSet,e.colorSet,e.useBrowserDefaultFocusStyle,e.UNSAFE_colorSet,(0,i.Z)(e,O));return a().createElement(r,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"ButtonLegacy",componentId:"o653de-1"})(["",""],(function(e){var t=e.fallbackSet,n=e.useBrowserDefaultFocusStyle,r=e.buttonSize,i=e.hover,o=e.active,a=e.focus,s=(0,f.iv)(["","{",";background-color:var(--background-base,",");color:var(--text-base,",");}","{border-color:transparent;}"],C,p.cp,t.background.base,t.text.base,v),l=(0,f.iv)(["","{background-color:var(--background-press,",");box-shadow:none;transform:scale(1);}","{transform:scale(1);}"],C,t.background.press,v),c=(0,f.iv)(["",",","{","}","{background-color:var(--background-highlight,",");}"],C,v,p.l_,C,t.background.highlight),u=(0,f.iv)(["","{border-color:",";}"],v,h.Bg);return(0,f.iv)(["",";align-self:center;padding:0;&:hover{",";}"," &:active{",";}"," &:focus{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,T.M)(r,n),c,i&&(0,f.iv)(["&&{","}"],c),l,o&&(0,f.iv)(["&&{","}"],l),u,a&&(0,f.iv)(["&&{","}"],u),s)})),I=a().forwardRef((function(e,t){var n=e.component,r=e.colorSet,l=void 0===r?"brightAccent":r,p=e.buttonSize,f=void 0===p?"md":p,h=e.children,m=e.className,g=e.UNSAFE_colorSet,y=e.iconLeading,_=e.iconTrailing,b=e.iconOnly,E=e.fullWidth,S=e.theme,T=(0,i.Z)(e,A);S&&(0,u.iw)("theme","colorSet"),(b||y||_||E)&&console.warn("ButtonPrimary's `buttonLegacy` feature does not support `iconOnly`, `iconLeading`, `iconTrailing`, or `fullWidth`");var O=(0,o.useContext)(c.t).isUsingKeyboard,I=(0,o.useContext)(s.W).useBrowserDefaultFocusStyle,R=T.href&&"_blank"===T.target?"noopener noreferrer":null,N=d.uH[l];return a().createElement(P,Object.assign({},T,{rel:R,ref:t,component:!n&&T.href?"a":n,buttonSize:f,fallbackSet:N,useBrowserDefaultFocusStyle:I}),a().createElement(C,{className:g?m:(0,d.Mg)(l,m),UNSAFE_colorSet:g,buttonSize:f,fallbackSet:N},h),!I&&a().createElement(v,{isUsingKeyboard:O}))})),R=["component","colorSet","buttonSize","fullWidth","iconLeading","iconTrailing","iconOnly","children","className","UNSAFE_colorSet","aria-label","aria-labelledby","buttonLegacy","theme"],N=["buttonLegacy"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t{"use strict";n.d(t,{P:()=>M});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(93727),l=n(46939),c=n(89390),u=n(13446),d=n(29131),p=n(10586),f=n(14134),h=n(49366),v=["component","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status","buttonLegacy","fullWidth","iconLeading","iconTrailing","iconOnly"],m=(0,p.ZP)(a().forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,o=(e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,e.buttonLegacy,e.fullWidth,e.iconLeading,e.iconTrailing,e.iconOnly,(0,i.Z)(e,v));return a().createElement(r,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"Button",componentId:"y0gtbx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.hover,r=e.active,i=e.focus,o=e.useBrowserDefaultFocusStyle,a=e.status,s=e.isUsingKeyboard,l=e.fullWidth,c=e.iconLeading,u=e.iconTrailing,v=e.iconOnly,m=(0,f.NE)(f.iK.essentialSubdued),g=(0,f.NE)(f.iK.essentialBase),y=(0,p.iv)([""," border-color:",";"],!l&&d.l_,g),_=(0,p.iv)([""," border-color:",";"],d.IT,m),b=(0,p.iv)([""," border-color:",";&::after{border-color:transparent;}"],d.cp,m),E=(0,d.ZG)(t,c,u,v,1);return(0,p.iv)(["",";"," ",";border:","px solid ",";color:",";min-line-size:0;"," "," &:hover{",";}"," &:active{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}"],(0,d.Lm)(t,o,a),E,!o&&(0,h.s8)(d.Dx,s,i),1,m,(0,f.NE)(f.iK.textBase),l&&(0,p.iv)(["inline-size:100%;"]),(l||c||u)&&(0,p.iv)(["&&{display:inline-flex;align-items:center;justify-content:center;}"]),y,n&&y,_,r&&_,b)})),g=n(26613),y=p.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"ihacte-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,r=e.position,i=d.FN[t],o=((0,g.zg)(d.hs[t])-(0,g.zg)(n))/2-1;return(0,p.iv)(["display:flex;position:absolute;"," "," ",""],"only"===r&&(0,p.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],o,o,o),"leading"===r&&(0,p.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===r&&(0,p.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),_=function(e){var t=e.position,n=e.buttonSize,r=e.icon,i="only"===t&&"lg"===n?"28px":d.Vt[n];return a().createElement(y,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},a().createElement(r,{iconSize:(0,g.zg)(i)}))},b=function(e){var t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing,i=e.children,o=e.buttonSize,s=function(e,t){return t&&a().createElement(_,{icon:t,position:e,buttonSize:o})};return t?a().createElement(a().Fragment,null,s("only",t)):a().createElement(a().Fragment,null,s("leading",n),i,s("trailing",r))},E=n(28538),S=["component","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle"],T=["component","theme","iconOnly","iconLeading","iconTrailing","fullWidth"],O=(0,f.NE)(f.iK.essentialSubdued),A=(0,f.NE)(f.iK.essentialBase),C=(0,p.ZP)(a().forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,o=(e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,(0,i.Z)(e,S));return a().createElement(r,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"ButtonLegacy",componentId:"sakkxz-0"})(["",""],(function(e){var t=e.buttonSize,n=void 0===t?"md":t,r=e.hover,i=e.active,o=e.focus,a=e.useBrowserDefaultFocusStyle,s=e.isUsingKeyboard,l=(0,E.n)(n),c=l.paddingTopBottom,u=l.paddingLeftRight,v=(0,p.iv)([""," border-color:",";"],d.l_,A),m=(0,p.iv)([""," border-color:",";"],d.IT,O),g=(0,p.iv)([""," border-color:",";&::after{border-color:transparent;}"],d.cp,O);return(0,p.iv)(["",";padding:","px ","px;border:","px solid ",";color:",";line-height:0.8;"," &:hover{",";}"," &:active{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}"],(0,E.M)(n,a),c,u,1,O,(0,f.NE)(f.iK.textBase),!a&&(0,h.s8)(d.Dx,s,o),v,r&&v,m,i&&m,g)})),P=a().forwardRef((function(e,t){var n=e.component,r=e.theme,l=e.iconOnly,d=e.iconLeading,p=e.iconTrailing,f=e.fullWidth,h=(0,i.Z)(e,T);r&&(0,u.Zh)("theme","This component is intended to inherit its parent’s color set or color."),(l||d||p||f)&&console.warn("ButtonSecondary's `buttonLegacy` feature does not support `iconOnly`, `iconLeading`, `iconTrailing`, or `fullWidth`");var v=(0,o.useContext)(c.t).isUsingKeyboard,m=(0,o.useContext)(s.W).useBrowserDefaultFocusStyle,g=h.href&&"_blank"===h.target?"noopener noreferrer":null;return a().createElement(C,Object.assign({},h,{rel:g,ref:t,component:!n&&h.href?"a":n,isUsingKeyboard:v,useBrowserDefaultFocusStyle:m}))})),I=["component","buttonSize","iconLeading","iconTrailing","iconOnly","children","aria-label","aria-labelledby","buttonLegacy","theme"],R=["buttonLegacy"];function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t{"use strict";n.d(t,{oM:()=>D});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(73012),l=n(93727),c=n(46939),u=n(89390),d=n(13446),p=n(29131),f=n(10586),h=n(14134),v=n(49366),m=n(26613),g=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],y=(0,f.ZP)(a().forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,o=(e.semanticColor,e.condensed,e.condensedAll,e.iconLeading,e.iconTrailing,e.iconOnly,e.buttonSize,e.iconSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,(0,i.Z)(e,g));return a().createElement(r,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,r=void 0===n?"textSubdued":n,i=e.hover,o=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.condensed,d=e.condensedAll,g=e.iconLeading,y=e.iconTrailing,_=e.iconOnly,b=e.iconSize,E=(0,p.lK)(t),S=E.paddingTopBottom,T=E.paddingLeftRight,O="md"===t&&(g||y)?-2:0,A="".concat((0,m.zg)(S)+O,"px"),C=p.FN[t],P="".concat(((0,m.zg)(p.hs[t])-(0,m.zg)(b))/2,"px"),I=(0,f.iv)([""," "," "," "," ",""],!d&&(0,f.iv)(["padding-block-start:",";padding-block-end:",";"],_?P:A,_?P:A),d&&(0,f.iv)(["padding:0;"]),u&&(0,f.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!u&&!d&&!_&&(0,f.iv)(["padding-inline-start:",";padding-inline-end:",";"],g?C:T,y?C:T),!u&&!d&&_&&(0,f.iv)(["padding-inline-start:",";padding-inline-end:",";"],P,P)),R=(0,f.iv)([""," ",""],p.l_,"textSubdued"===r&&(0,f.iv)(["color:",";"],(0,h.NE)(h.iK.textBase))),N=(0,f.iv)([""," color:",";"],p.IT,(0,h.NE)(h.iK.textSubdued)),k=(0,f.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],p.cp,(0,h.NE)(h.iK.textSubdued));return(0,f.iv)([""," color:",";min-inline-size:0;",";"," &:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,p.Lm)(t,s,l),(0,h.NE)(r),I,(g||y)&&(0,f.iv)(["display:inline-flex;align-items:center;justify-content:center;"]),R,i&&R,N,o&&N,(function(){var e=(d?0:(0,m.zg)(A))+v.Ef,t=_?b:"calc(100% - ".concat(u||d?0:2*(g||y?(0,m.zg)(C):(0,m.zg)(T)),"px)");return(0,f.iv)(["",";&::after{inline-size:",";}"],!s&&(0,v.qy)(e,c,a),t)}),k)})),_=f.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,f.iv)([""," ",""],"leading"===n&&(0,f.iv)(["margin-inline-end:",";"],p.Z7[t]),"trailing"===n&&(0,f.iv)(["margin-inline-start:",";"],p.Z7[t]))})),b=function(e){var t=e.position,n=e.buttonSize,r=e.icon,i=e.iconSize,o=r;return a().createElement(_,{position:t,buttonSize:n,"aria-hidden":"true"},a().createElement(o,{iconSize:(0,m.zg)(i)}))},E=function(e){var t=e.iconOnly,n=e.iconLeading,r=e.iconTrailing,i=e.children,o=e.buttonSize,s=e.iconSize,l=function(e,t){return t&&a().createElement(b,{icon:t,position:e,buttonSize:o,iconSize:s})};return t?a().createElement(a().Fragment,null,l("only",t)):a().createElement(a().Fragment,null,l("leading",n),i,l("trailing",r))},S=n(28538),T=["component","semanticColor","condensed","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","iconOnly","iconLeading","iconTrailing"],O=["component"],A=(0,f.ZP)(a().forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,o=(e.semanticColor,e.condensed,e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.iconOnly),s=e.iconLeading,l=e.iconTrailing,c=(0,i.Z)(e,T);return(o||s||l)&&console.warn("ButtonTertiary's `buttonLegacy` feature does not support `iconOnly`, `iconLeading`, or `iconTrailing`"),a().createElement(r,Object.assign({},c,{ref:t}))}))).withConfig({displayName:"ButtonLegacy",componentId:"sc-1oh201n-0"})(["",""],(function(e){var t=e.buttonSize,n=void 0===t?"md":t,r=e.semanticColor,i=void 0===r?"textSubdued":r,o=e.hover,a=e.active,s=e.focus,l=e.useBrowserDefaultFocusStyle,c=e.isUsingKeyboard,u=e.condensed,d=(0,f.iv)([""," ",""],p.l_,"textSubdued"===i&&(0,f.iv)(["color:",";"],(0,h.NE)(h.iK.textBase))),m=(0,f.iv)([""," color:",";"],p.IT,(0,h.NE)(h.iK.textSubdued)),g=(0,f.iv)([""," color:",";&::after{border-color:transparent;}"],p.cp,(0,h.NE)(h.iK.textSubdued)),y=(0,S.n)(n),_=y.paddingTopBottom,b=y.paddingLeftRight,E=_+v.Ef;return(0,f.iv)([""," color:",";padding:","px ","px;"," &::after{width:",";}&:hover{","}"," &:active{","}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,S.M)(n,l),(0,h.NE)(i),_,u?0:b,!l&&(0,v.qy)(E,c,s),"calc(100% - ".concat(u?0:2*b,"px)"),d,o&&d,m,a&&m,g)})),C=a().forwardRef((function(e,t){var n=e.component,r=(0,i.Z)(e,O),s=r.href&&"_blank"===r.target?"noopener noreferrer":null,c=(0,o.useContext)(l.W).useBrowserDefaultFocusStyle;return a().createElement(A,Object.assign({},r,{rel:s,ref:t,component:!n&&r.href?"a":n,useBrowserDefaultFocusStyle:c}))})),P=["component","color","theme","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"],I=["buttonLegacy"];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t{"use strict";n.d(t,{A:()=>b});var r=n(2214),i=n(67294),o=n.n(i),a=n(93727),s=n(89390),l=n(14134),c=n(73012),u=n(10586),d=n(53384),p=n(29131),f=n(49366),h=c.mGT,v=u.ZP.button.withConfig({displayName:"Chip__ChipComponent",componentId:"ry3uox-0"})(["",""],(function(e){var t=e.isUsingKeyboard,n=e.useBrowserDefaultFocusStyle,r=e.secondary,i=e.size;return(0,u.iv)(["",";",";",";border-radius:",";display:inline-flex;vertical-align:middle;max-inline-size:100%;margin-block-end:",";text-decoration:none;overflow-wrap:break-word;position:relative;flex-shrink:0;z-index:1;"," &:not(:last-child){margin-inline-end:",";}"],(0,d.D)(),(0,p.BX)(n),!n&&(0,f.s8)(h,t),h,c.dly,r&&(0,u.iv)(["&:not(:first-child){margin-inline-start:-",";z-index:0;","}"],"sm"===i?c.mTH:c.cQs,t&&(0,u.iv)(["&:focus{z-index:1;margin-inline-start:-",";}"],"sm"===i?c.nuo:c.o78)),c.dly)})),m=n(23109),g=n(38974),y=u.ZP.div.withConfig({displayName:"ChipInner",componentId:"sc-1ly6j4j-0"})(["",""],(function(e){var t=e.size,n=e.selected,r=e.secondary,i=e.isUsingKeyboard;return(0,u.iv)(["",";border-radius:",";color:",";transition:background-color 0.2s,color 0.2s;min-inline-size:0;padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";","[href] > &&{",";}",":not([href]) > &&{",";}"," ",":hover > &&{background-color:",";}",":active > &&{background-color:",";}","[disabled] > &&,","[aria-disabled='true'] > &&{background-color:",";opacity:",";cursor:",";}"],(0,d.D)(),h,(0,l.NE)(l.iK.textBase),"sm"===t?c.dly:c.nuo,"sm"===t?c.dly:c.nuo,"sm"===t?c.nuo:c.o78,"sm"===t?c.nuo:c.o78,v,"sm"===t?(0,m.I_)():(0,m.Vr)(),v,"sm"===t?(0,m.Ue)():(0,m.Mp)(),r?(0,u.iv)(["background-color:",";",":not(:focus) > &&{padding-inline-start:",";}",":focus > &&{","}"],(0,l.NE)(l.iK.decorativeSubdued),v,"sm"===t?c.mTH:c.cQs,v,!i&&(0,u.iv)(["padding-inline-start:",";"],"sm"===t?c.mTH:c.cQs)):(0,u.iv)(["background-color:",";"],n?(0,l.NE)(l.iK.backgroundBase):(0,l.NE)(l.iK.backgroundTintedBase)),v,n?(0,l.NE)(l.iK.backgroundHighlight):(0,l.NE)(l.iK.backgroundTintedHighlight),v,n?(0,l.NE)(l.iK.backgroundPress):(0,l.NE)(l.iK.backgroundTintedPress),v,v,n?(0,l.NE)(l.iK.backgroundBase):(0,l.NE)(l.iK.backgroundTintedBase),g.Zx,g.fn)})),_=["size","secondary","selected","selectedColorSet","className","children"],b=o().forwardRef((function(e,t){var n=e.size,c=void 0===n?"sm":n,u=e.secondary,d=e.selected,p=e.selectedColorSet,f=void 0===p?"invertedDark":p,h=e.className,m=e.children,g=(0,r.Z)(e,_),b=(0,i.useContext)(s.t).isUsingKeyboard,E=(0,i.useContext)(a.W).useBrowserDefaultFocusStyle;return o().createElement(v,Object.assign({secondary:u,size:c,isUsingKeyboard:b,useBrowserDefaultFocusStyle:E,ref:t,role:g.href?void 0:"checkbox","aria-checked":g.href?void 0:d},g),o().createElement(y,{selected:d,isUsingKeyboard:b,size:c,secondary:u,className:d?(0,l.Mg)(f,h):h},m))}))},42619:(e,t,n)=>{"use strict";n.d(t,{b:()=>c});var r=n(69334),i=n(67294),o=n.n(i),a=n(46939);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>o});var r=n(10586),i=n(14134);const o=r.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-1bi12j5-0"})(["*{vector-effect:non-scaling-stroke;}",""],(function(e){return e.iconColor?(0,r.iv)(["fill:","};"],(0,i.NE)(e.iconColor)):(0,r.iv)(["fill:currentColor;"])}))},73197:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},92976:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},91362:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},6577:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},62012:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},68156:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},20042:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},52284:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},74594:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},77385:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},26115:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},40378:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},23957:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},8909:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},80722:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},64610:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},54801:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},77990:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},82343:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},39102:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},54872:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},70375:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},64656:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},86693:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},73692:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},41054:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},79858:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},6394:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},71915:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},88441:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},77770:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},94722:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},50020:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},96895:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},83298:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},95688:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},44461:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},99121:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},8455:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},78740:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},58526:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},27229:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},67693:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},28393:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},12356:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},23836:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},44546:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},92467:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},35304:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},96483:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},59786:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},19264:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},22905:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},92744:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},14991:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},86337:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},16216:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},70606:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},66233:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},83828:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},85818:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},69143:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},2576:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},90193:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},47886:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},2585:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},10925:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},24737:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},82583:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},75762:(e,t,n)=>{"use strict";n.d(t,{o:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},10264:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},35980:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},95381:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},36368:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},98400:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},28342:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},52482:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},87596:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},9296:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},37077:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},13105:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},83993:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},31:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},97493:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},7856:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},96989:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},86912:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},47130:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},61623:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},11289:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},62543:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},2025:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},89975:(e,t,n)=>{"use strict";n.d(t,{S:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},69259:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},96908:(e,t,n)=>{"use strict";n.d(t,{p:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},85042:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},61094:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},80628:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},58407:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},67418:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},28170:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},1806:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},572:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},96672:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},62345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},23100:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},95930:(e,t,n)=>{"use strict";n.d(t,{H:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},16582:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},79202:(e,t,n)=>{"use strict";n.d(t,{j:()=>s});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}},90135:(e,t,n)=>{"use strict";n.d(t,{Cn:()=>u,Lr:()=>c});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(80919),l=["iconSize","semanticColor","color"],c=function(e,t){return e.sort((function(e,t){return e.size-t.size})).reduce((function(e,n){return n.size<=t&&n.size>e.size?n:e}))},u=function(e){var t=e.iconSize,n=void 0===t?24:t,i=e.semanticColor,c=e.color,u=(0,r.Z)(e,l);return(0,a.o7)({color:c}),o().createElement(s.Z,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:i},u))}},96685:(e,t,n)=>{"use strict";n.d(t,{LF:()=>T});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(73012),l=n(13446),c=n(10586),u=n(38974),d=n(23109),p=n(53384),f=n(14134),h=n(26613),v=function(e){switch(e){case"book":return u.tE;case"bold":return u.Y$;case"black":return u.nj;default:return(0,h.vE)(e)}},m=c.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"hpzrpd-0"})(["",";margin-top:0;margin-bottom:0;",";"," ",";",";"],(0,p.D)(),(function(e){return e.variant?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(e){case"bass":return(0,d.l8)(t);case"forte":return(0,d.Yt)(t,n&&v(n));case"brio":return(0,d.R)(t);case"alto":return(0,d.h2)(t);case"canon":return(0,d.xi)(t);case"cello":return(0,d.GW)(t);case"ballad":return(0,d.Mp)(t);case"balladBold":return(0,d.Vr)(t);case"viola":return(0,d.Ef)(t);case"violaBold":return(0,d.Dg)(t);case"mesto":return(0,d.Ue)(t);case"mestoBold":return(0,d.I_)(t);case"metronome":return(0,d.As)(t);case"finale":return(0,d.QB)(t);case"finaleBold":return(0,d.VW)(t);case"minuet":return(0,d.gI)(t);case"minuetBold":return(0,d.bx)(t);default:return(0,h.vE)(e)}}(e.variant,e.pxLegacy,e.weight):void 0}),(function(e){return e.semanticColor?(0,c.iv)(["color:",";"],(0,f.NE)(e.semanticColor)):(0,c.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,c.iv)(["font-weight:",";"],v(e.weight))}),(function(e){return e.paddingBottom&&(0,c.iv)(["padding-bottom:",";"],e.paddingBottom)})),g=["color","semanticColor","paddingBottom","pxLegacy","variant"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t{"use strict";n.d(t,{z:()=>O});var r=n(2214),i=n(67294),o=n.n(i),a=n(89390),s=n(13446),l=n(25879),c=n(10586),u=n(37213),d=c.ZP.div.withConfig({displayName:"Checkbox",componentId:"svpvf6-0"})(["",";"],(0,u.d_)()),p=n(49366),f=n(14134),h=n(38974),v=function(e){var t=(0,p.F5)(),n=t.dimension,r=t.position;return(0,c.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(n," + ").concat(2*e,"px)"),"calc(100% + ".concat(n," + ").concat(2*e,"px)"),"calc(".concat(r," - ").concat(e,"px)"),"calc(".concat(r," - ").concat(e,"px)"))},m=c.ZP.span.withConfig({displayName:"Indicator",componentId:"sc-1airx73-0"})(["",""],(function(e){var t=(0,c.iv)(["",";"," input + label &{background-color:",";}input:focus + label &::after{border-color:",";}"," input:active + label &{border-color:",";}"," input:disabled + label &{cursor:",";opacity:",";}"],(0,u.oi)("".concat(3,"px")),(0,p.s8)("".concat(3+p.Ef,"px"),e.isUsingKeyboard),(0,f.NE)(f.iK.backgroundBase),(0,f.NE)(f.iK.essentialBase),e.isFocus&&(0,c.iv)(["&::after{border-color:",";}"],(0,f.NE)(f.iK.essentialBase)),(0,f.NE)(e.semanticColor),e.isActive&&(0,c.iv)(["input + label &{border-color:",";}"],(0,f.NE)(e.semanticColor)),h.fn,h.Zx),n=(0,c.iv)(["input:not(:checked) + label &{border:","px solid ",";}input:not(:checked):focus + label &::after{","}"," input:not(:checked):hover + label &{border-color:",";}"," input:not(:checked):active + label &{border-width:","px;border-color:",";}input:not(:checked):active:focus + label &::after{","}"," "," input:not(:checked):disabled + label &{background-color:",";border-color:",";border-width:","px;}"],1,(0,f.NE)(f.iK.essentialSubdued),v(1),e.isFocus&&(0,c.iv)(["input:not(:checked) + label &::after{","}input:not(:checked):active + label &::after{","}"],v(1),v(2)),(0,f.NE)(e.semanticColor),e.isHover&&(0,c.iv)(["input:not(:checked) + label &{border-color:",";}"],(0,f.NE)(e.semanticColor)),2,(0,f.NE)(e.semanticColor),v(2),e.isActive&&(0,c.iv)(["input:not(:checked) + label &{border-width:","px;border-color:",";}input:not(:checked):focus + label &::after{","}"],2,(0,f.NE)(e.semanticColor),v(2)),e.isActive&&e.isFocus&&(0,c.iv)(["input:not(:checked) + label &::after{","}"],v(2)),(0,f.NE)(f.iK.backgroundBase),(0,f.NE)(f.iK.essentialSubdued),1),r=(0,c.iv)(["input:checked + label &{background-color:",";border-width:0;&::before{box-sizing:border-box;background-color:unset;border-bottom:2px solid;border-left:2px solid;border-color:",";display:block;content:'';block-size:5px;inline-size:9px;position:absolute;top:46%;left:50%;transform:translate3d(-50%,-50%,0) rotate(-48deg);}}input:checked:disabled + label &{background-color:",";}"],(0,f.NE)(e.semanticColor),(0,f.NE)(f.iK.backgroundBase),(0,f.NE)(e.semanticColor)),i=(0,c.iv)(["input + label &.Encore_indeterminate{background-color:",";border-width:0;&::before{background-color:",";content:'';block-size:0.15em;left:50%;position:absolute;top:51%;transform:translate(-50%,-50%);inline-size:0.5em;}}input:disabled + label &.Encore_indeterminate{background-color:",";}"],(0,f.NE)(e.semanticColor),(0,f.NE)(f.iK.backgroundBase),(0,f.NE)(e.semanticColor));return(0,c.iv)(["",";"," "," ",""],t,!e.indeterminate&&n,e.indeterminate&&i,r)})),g=c.ZP.label.withConfig({displayName:"Label",componentId:"cpoq-0"})(["display:flex;position:relative;min-inline-size:0;"]),y=n(73012),_=n(3293),b=n(4592),E=n(23109),S=c.ZP.span.withConfig({displayName:"TextForLabel",componentId:"sc-1jqya9m-0"})(["position:relative;top:-2px;color:",";overflow-wrap:break-word;min-inline-size:0;"," padding-inline-start:",";padding-inline-end:",";input:disabled + label &{cursor:",";opacity:",";}"],(0,f.NE)(f.iK.textBase),(function(e){return e.small?(0,c.iv)(["top:0;",""],(0,_.i)((0,b.E4)(),(0,E.QB)())):(0,_.i)((0,b.Mr)(),(0,E.Ef)())}),y.nuo,y.g4V,h.fn,h.Zx),T=["small","indeterminate","id","children","semanticColor","isHover","isFocus","isActive","theme"],O=o().forwardRef((function(e,t){var n=e.small,c=e.indeterminate,u=e.id,p=e.children,f=e.semanticColor,h=void 0===f?"essentialBrightAccent":f,v=e.isHover,y=e.isFocus,_=e.isActive,b=e.theme,E=(0,r.Z)(e,T);b&&(0,s.iw)("theme","semanticColor");var O=(0,i.useContext)(a.t).isUsingKeyboard;return o().createElement(d,null,o().createElement(l.T,Object.assign({component:"input",type:"checkbox",ref:t,id:u},E)),o().createElement(g,{htmlFor:u},o().createElement(m,{className:c?"Encore_indeterminate":"",indeterminate:c,isUsingKeyboard:O,semanticColor:h,isHover:v,isFocus:y,isActive:_}),p&&o().createElement(S,{small:n},p)))}))},12191:(e,t,n)=>{"use strict";n.d(t,{cw:()=>C});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(25879),l=n(73012),c=n(10586),u=n(53384),d=c.ZP.div.withConfig({displayName:"Group",componentId:"u9bcx5-0"})(["",";padding-block-end:",";",";"],(0,u.D)(),l.g4V,(function(e){return"fieldset"===e.as&&(0,c.iv)(["min-inline-size:0;padding-inline-start:0;padding-inline-end:0;padding-block-start:0;margin:0;border:0;"])})),p=n(14134),f=c.ZP.span.withConfig({displayName:"IndicatorText",componentId:"sc-7u3ecx-0"})(["color:",";padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,p.NE)(p.iK.textSubdued),l.hM$,l.gXv),h=c.ZP.div.withConfig({displayName:"InlineGroup",componentId:"sc-4o5aq4-0"})(["display:flex;flex-wrap:wrap;"]),v=c.ZP.label.withConfig({displayName:"Label",componentId:"sc-1c0cv3r-0"})(["color:",";"],(0,p.NE)(p.iK.textBase)),m=n(3293),g=n(4592),y=n(23109),_=n(38974),b=n(67382),E=c.ZP.div.withConfig({displayName:"LabelGroup",componentId:"sc-1ibddrg-0"})(["",";",";align-items:center;display:flex;font-weight:",";inline-size:100%;padding-block-end:",";@media (max-width:","){justify-content:space-between;}",";",";"],(0,u.D)(),(function(){return(0,m.i)((0,g.Mr)(),(0,y.Ef)())}),_.Y$,l.dly,l.gXv,(function(e){return"legend"===e.as&&(0,c.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(function(e){return e.isHidden&&(0,c.iv)(["",""],(0,b.j)())})),S=c.ZP.span.withConfig({displayName:"LabelInner",componentId:"sc-19pye2k-0"})(["display:inline-block;"]),T=c.ZP.span.withConfig({displayName:"Popover",componentId:"sc-19tjcmc-0"})(["display:inline-flex;margin-inline-start:",";"],l.hM$),O=c.ZP.span.withConfig({displayName:"Required",componentId:"sc-7zzom7-0"})(["color:",";border-block-end:0;text-decoration:none;padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,p.NE)(p.iK.textNegative),l.hM$,l.gXv),A=["withFieldset","children","indicator","inline","label","labelFor","hideLabel","popover","optionalIndicatorText","requiredIndicatorTextForScreenReader","theme"],C=function(e){var t=e.withFieldset,n=e.children,i=e.indicator,l=e.inline,c=e.label,u=e.labelFor,p=e.hideLabel,m=e.popover,g=e.optionalIndicatorText,y=void 0===g?"(Optional)":g,_=e.requiredIndicatorTextForScreenReader,b=void 0===_?"(required)":_,C=e.theme,P=(0,r.Z)(e,A);return C&&(0,a.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement(d,Object.assign({as:t?"fieldset":void 0},P),c&&o().createElement(E,{as:t?"legend":void 0,isHidden:!!p},t?c:o().createElement(v,{htmlFor:u},o().createElement(S,null,c),i&&function(e,t,n){switch(e){case"optional":return o().createElement(f,null,t);case"required":return o().createElement(o().Fragment,null,o().createElement(O,{"aria-hidden":"true"},"*"),o().createElement(s.T,null,n));default:return o().createElement(f,null,"(",e,")")}}(i,y,b)),m&&o().createElement(T,null,m)),l?o().createElement(h,null,n):n)}},27827:(e,t,n)=>{"use strict";n.d(t,{y:()=>h});var r=n(2214),i=n(67294),o=n.n(i),a=n(89390),s=n(13446),l=n(73012),c=n(10586),u=n(37213),d=n(53384),p=c.ZP.input.withConfig({displayName:"Input",componentId:"sc-1gbx9xe-0"})(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding:","px;",";&[type='date'],&[type='month'],&[type='time'],&[type='week']{@media (min-width:","){padding-block-end:",";}}&[type='color']{@media (max-width:","){padding:0;border-block-end:0;&:focus,&:hover:focus{padding:0;}@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){border-block-end:1px solid;padding-block-start:10px;padding-block-end:9px;&:focus,&:hover:focus{padding-block-start:10px;padding-block-end:",";border-block-end-width:2px;}}}}@media (min-width:","){padding:",";block-size:",";inline-size:",";@media not all and (min-resolution:0.001dpcm){@supports (-webkit-appearance:none){inline-size:100%;padding:14px;}}}}&[type='file']{padding-inline-start:0;padding-inline-end:0;padding-block-start:",";padding-block-end:0;line-height:17px;@media (max-width:","){border-block-end:0;}@media (min-width:","){box-shadow:none;}&:focus,&:hover:focus{@media (min-width:","){box-shadow:none;}}}"],u.lm,(0,d.D)(),l.hM$,14,(function(e){return(0,u.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error})}),l.SA3,l.nuo,l.gXv,l.dly,l.SA3,l.hM$,l.JBZ,l.JBZ,l.dly,l.gXv,l.SA3,l.SA3),f=["error","theme"],h=o().forwardRef((function(e,t){var n=e.error,l=e.theme,c=(0,r.Z)(e,f);l&&(0,s.Zh)("theme","This component is intended to inherit its parent’s color set or color.");var u=(0,i.useContext)(a.t).isUsingKeyboard;return o().createElement(p,Object.assign({ref:t,isUsingKeyboard:u,error:n,"aria-invalid":n},c))}))},28906:(e,t,n)=>{"use strict";n.d(t,{i:()=>_});var r=n(2214),i=n(67294),o=n.n(i),a=n(89390),s=n(13446),l=n(10586),c=n(37213),u=l.ZP.select.withConfig({displayName:"Select",componentId:"sc-3qvhho-0"})(["",";",";",";"],(0,c.lm)(),(0,c.GN)(),(function(e){return(0,c.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error})})),d=n(46939),p=n(90135);function f(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],r=(0,i.useContext)(d.S9),a=(0,d.lR)(d.U0.icon,r),s=0===t.length?n:t,l=(0,p.Lr)(a===d.k3.deprecated?s:n,e.iconSize||24);return o().createElement(p.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:l.svgContent}}))}var h=n(10691);function v(e){var t=(0,i.useContext)(d.S9);return(0,d.lR)(d.U0.icon,t)!==d.k3.deprecated?o().createElement(f,e):o().createElement(h.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}var m=(0,l.ZP)(v).attrs({iconSize:16,"aria-hidden":"true"}).withConfig({displayName:"SelectArrow",componentId:"sc-12qvh0d-0"})(["",";"],(0,c.DW)()),g=l.ZP.div.withConfig({displayName:"SelectContainer",componentId:"wv4dj5-0"})(["position:relative;inline-size:100%;display:flex;align-items:center;"]),y=["theme"],_=o().forwardRef((function(e,t){var n=e.theme,l=(0,r.Z)(e,y);n&&(0,s.Zh)("theme","This component is intended to inherit its parent’s color set or color.");var c=(0,i.useContext)(a.t).isUsingKeyboard;return o().createElement(g,null,o().createElement(u,Object.assign({ref:t,isUsingKeyboard:c},l)),o().createElement(m,null))}))},45322:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(91362),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.u,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},68101:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(68156),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.i,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},11927:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(74594),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.m,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},6433:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(26115),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.q,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},34031:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(8909),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.$,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},29547:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(80722),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.n,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},91730:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(47886),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.F,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},68251:(e,t,n)=>{"use strict";n.d(t,{U:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(28342),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.e,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},28151:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(37077),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.n,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},60417:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r=n(67294),i=n.n(r),o=n(46939),a=n(90135);function s(e){var t=[{size:16,svgContent:""},{size:24,svgContent:""},{size:32,svgContent:""},{size:48,svgContent:""},{size:64,svgContent:""}],n=[{size:16,svgContent:""},{size:24,svgContent:""}],s=(0,r.useContext)(o.S9),l=(0,o.lR)(o.U0.icon,s),c=0===t.length?n:t,u=(0,a.Lr)(l===o.k3.deprecated?c:n,e.iconSize||24);return i().createElement(a.Cn,Object.assign({},e,{viewBox:"0 0 ".concat(u.size," ").concat(u.size),dangerouslySetInnerHTML:{__html:u.svgContent}}))}var l=n(10691);function c(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(s,e):i().createElement(l.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},79458:(e,t,n)=>{"use strict";n.d(t,{f:()=>l});var r=n(67294),i=n.n(r),o=n(46939),a=n(28170),s=n(10691);function l(e){var t=(0,r.useContext)(o.S9);return(0,o.lR)(o.U0.icon,t)!==o.k3.deprecated?i().createElement(a.D,e):i().createElement(s.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}},71456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(10586),i=n(14134),o={16:"0.8pt",24:"1pt",32:"1.2pt",48:"1.4pt",64:"1.6pt"};const a=r.ZP.svg.withConfig({displayName:"Svg",componentId:"ytk21e-0"})(["",";*{vector-effect:non-scaling-stroke;}*[fill='#181818']{","}*[stroke='#181818']{","}"],(function(e){return(0,r.iv)(["stroke-width:",";"],o[e.iconSize])}),(function(e){return e.iconColor?(0,r.iv)(["fill:",";"],(0,i.NE)(e.iconColor)):(0,r.iv)(["fill:currentColor;"])}),(function(e){return e.iconColor?(0,r.iv)(["stroke:",";"],(0,i.NE)(e.iconColor)):(0,r.iv)(["stroke:currentColor;"])}))},10691:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(71456),l=["iconSize","semanticColor","color"];function c(e){var t=e.iconSize,n=void 0===t?24:t,i=e.semanticColor,c=e.color,u=(0,r.Z)(e,l);return(0,a.o7)({color:c}),o().createElement(s.Z,Object.assign({role:"img",focusable:"false",height:n,width:n,iconSize:n,viewBox:"0 0 24 24",iconColor:i},u))}},59507:(e,t,n)=>{"use strict";n.d(t,{M:()=>h});var r=n(2214),i=n(67294),o=n.n(i),a=n(73012),s=n(10586),l=n(13446),c=n(14134),u=n(80919),d=n(71456),p=["icon","iconSize","semanticColor","children","color"],f=s.ZP.div.attrs((function(e){return{spacer:e.spacer||a.o78}})).withConfig({displayName:"IconWithText__Container",componentId:"xkmm7u-0"})(["display:inline-flex;align-items:center;flex-direction:",";"," ",",","{flex-shrink:0;margin-right:",";margin-left:",";[dir='rtl'] &{margin-right:",";margin-left:",";}}"],(function(e){return e.rightAlign?void 0:"row-reverse"}),(function(e){return e.semanticColor&&(0,s.iv)(["color:",";"],(0,c.NE)(e.semanticColor))}),d.Z,u.Z,(function(e){return e.rightAlign?void 0:e.spacer}),(function(e){return e.rightAlign?e.spacer:void 0}),(function(e){return e.rightAlign?e.spacer:"unset"}),(function(e){return e.rightAlign?"unset":e.spacer}));function h(e){var t=e.icon,n=e.iconSize,i=e.semanticColor,a=e.children,s=e.color,c=(0,r.Z)(e,p);(0,l.o7)({color:s});var u=t;return o().createElement(f,Object.assign({semanticColor:i},c),a,u&&o().createElement(u,{semanticColor:i,iconSize:n,"aria-hidden":"true"}))}},82716:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;ty});var i=n(55536),o=n(2214),a=n(67294),s=n.n(a),l=n(10586),c=function(){return(0,l.iv)(["vertical-align:middle;"])},u=function(){return(0,l.iv)(["",";",";",";",";",";"],(function(e){return e.imageWidth&&(0,l.iv)(["inline-size:",";"],e.imageWidth)}),(function(e){return e.imageHeight&&(0,l.iv)(["block-size:",";"],e.imageHeight)}),(function(e){return e.circle&&(0,l.iv)(["border-radius:50%;"])}),(function(e){return e.crop&&(0,l.iv)(["object-fit:cover;"])}),(function(e){return e.fluid&&(0,l.iv)(["max-inline-size:100%;block-size:auto;"])}))},d=l.ZP.div.withConfig({displayName:"Image__PlaceholderImageWrapper",componentId:"sc-1u215sg-0"})(["overflow:hidden;img{",";filter:blur(20px);transform:scale(1.03);}",";"],c(),u()),p=l.ZP.img.withConfig({displayName:"Image__PlaceholderImage",componentId:"sc-1u215sg-1"})(["",";inline-size:100%;block-size:100%;"],c()),f=l.ZP.img.withConfig({displayName:"Image__StyledLazyImage",componentId:"sc-1u215sg-2"})(["",";display:",";",";"],c(),(function(e){return e.isLoaded?"initial":"none"}),u());const h=l.ZP.img.withConfig({displayName:"Image",componentId:"sc-1u215sg-3"})(["",";"],u());function v(e,t){var n="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype,r=(0,a.useRef)(null),i=(0,a.useCallback)((function(n){n.forEach((function(n){n.isIntersecting&&r.current&&e.current&&(r.current.unobserve(e.current),t())}))}),[t,e]),o=(0,a.useCallback)((function(){n?(r.current=new IntersectionObserver(i),e.current&&r.current.observe(e.current)):t()}),[t,i,n,e]);(0,a.useEffect)((function(){o()}),[o])}var m=["alt","onLoad"];var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.StyledLazyImage,n=void 0===t?f:t,r=e.PlaceholderImage,l=void 0===r?p:r,c=e.useInView,u=void 0===c?v:c;return function(e){var t=e.alt,r=void 0===t?"":t,c=e.onLoad,p=(0,o.Z)(e,m),f=(0,a.useRef)(null),h=(0,a.useState)(!1),v=(0,i.Z)(h,2),g=v[0],y=v[1],_=(0,a.useState)(!1),b=(0,i.Z)(_,2),E=b[0],S=b[1],T=s().createElement(n,Object.assign({},p,{alt:r,ref:f,onLoad:function(e){S(!0),c&&c(e)},isLoaded:E})),O=s().createElement(d,p,s().createElement(l,{alt:r,ref:f,src:p.placeholderSrc}));return u(f,(function(){y(!0)})),g?s().createElement(s().Fragment,null,!E&&O,T):O}}(),y=function(e){var t=r({},e);return"placeholderSrc"in t&&t.placeholderSrc?s().createElement(g,t):s().createElement(h,t)}},6060:(e,t,n)=>{"use strict";n.d(t,{T:()=>v});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(10586),l=n(14134),c=(0,s.F4)(["0%{animation-timing-function:cubic-bezier(1,0,0.7,1);opacity:0.5;transform:scale(1);}40%{animation-timing-function:cubic-bezier(0.3,0,0,1);opacity:0.75;transform:scale(1.3);}72.5%{animation-timing-function:linear;opacity:0.5;transform:scale(1);}100%{opacity:0.5;transform:scale(1);}"]),u=s.ZP.circle.withConfig({displayName:"LoadingIndicatorCircle",componentId:"enjajd-0"})(["fill:",";animation:"," 1.32s linear infinite;transform-origin:center;&:nth-of-type(2){animation-delay:0.1s;}&:nth-of-type(3){animation-delay:0.2s;}[dir='rtl'] &{&:nth-of-type(1){animation-delay:0.2s;}&:nth-of-type(3){animation-delay:0s;}}"],(0,l.NE)(l.iK.essentialBase),c),d=n(26613),p=function(e){switch(e){case"sm":return 56;case"md":return 84;case"lg":return 112;default:return(0,d.vE)(e)}},f=s.ZP.svg.withConfig({displayName:"LoadingIndicatorSvg",componentId:"dj4dcm-0"})(["content:'';block-size:","px;inline-size:","px;"],(function(e){return p(e.indicatorSize)/4.5}),(function(e){return p(e.indicatorSize)})),h=["indicatorSize","role","ariaValueText","theme"];var v=Object.assign((function(e){var t=e.indicatorSize,n=void 0===t?"sm":t,i=e.role,s=void 0===i?"progressbar":i,l=e.ariaValueText,c=void 0===l?"Loading":l,d=e.theme,p=(0,r.Z)(e,h);return d&&(0,a.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement(f,Object.assign({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 1 100",xmlSpace:"preserve",indicatorSize:n,role:s,"aria-valuetext":c},p),o().createElement(u,{stroke:"none",cx:"-140",cy:"50",r:"32"}),o().createElement(u,{stroke:"none",cx:"0",cy:"50",r:"32"}),o().createElement(u,{stroke:"none",cx:"140",cy:"50",r:"32"}))}),{sm:"sm",md:"md",lg:"lg"})},29325:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var r=n(2214),i=n(67294),o=n.n(i),a=n(10586),s=n(13446),l=n(14134),c=["list","children","theme"],u=a.ZP.div.withConfig({displayName:"NavBar__NavBarPage",componentId:"sc-1guraqe-0"})(["color:",";overflow-wrap:break-word;"],(0,l.NE)(l.iK.textBase)),d=function(e){var t=e.list,n=e.children,i=e.theme,a=(0,r.Z)(e,c);return i&&(0,s.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement("section",a,t,o().createElement(u,null,n))}},77991:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(73012),i=n(10586),o=n(53384),a=i.ZP.ul.attrs((function(e){return{role:e.role||"list"}})).withConfig({displayName:"List",componentId:"sc-64p3hb-0"})(["",";padding-inline-start:0;padding-inline-end:0;margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],(0,o.D)(),(function(e){return!1!==e.listStyleReset&&(0,i.iv)(["list-style-type:none;"])}));var s=(0,i.ZP)(a).withConfig({displayName:"NavBarList",componentId:"sc-19lzbdt-0"})(["display:flex;margin-block-end:",";overflow-x:auto;overflow-wrap:break-word;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"],r.nuo)},14338:(e,t,n)=>{"use strict";n.d(t,{c:()=>E});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(73012),l=n(10586),c=n(3293),u=n(4592),d=n(23109),p=n(38974),f=n(14134),h=["component","isActive","isDisabled","isHover","isFocus","sentenceCase"],v=o().forwardRef((function(e,t){var n=e.component,i=(e.isActive,e.isDisabled,e.isHover,e.isFocus,e.sentenceCase,(0,r.Z)(e,h));return o().createElement(n,Object.assign({ref:t},i))}));v.displayName="NavBarListItemLink";var m=(0,l.ZP)(v).withConfig({displayName:"Link",componentId:"sc-1g2blu2-0"})(["",";border:0;display:inline-block;font-weight:",";padding-block-start:",";padding-inline-end:",";padding-block-end:10px;padding-inline-start:",";text-decoration:none;transition:"," color linear;color:",";",";",";",";",";li:first-child > &{margin-inline-start:0;padding-inline-start:0;}li:last-child > &{margin-inline-end:0;padding-inline-end:0;}&[href]:focus{outline:none;",";}&::after{background-color:transparent;content:'';display:block;block-size:2px;margin-block-start:0;margin-inline-end:auto;margin-block-end:-2px;margin-inline-start:auto;position:relative;top:",";transition:background-color ",";inline-size:",";",";",";}"],(function(e){var t=e.sentenceCase?(0,u.mZ)():(0,u.D$)(),n=e.sentenceCase?(0,d.Mp)():(0,d.bx)();return(0,l.iv)(["",""],(function(){return(0,c.i)(t,n)}))}),p.Y$,s.nuo,s.o78,s.o78,"0.2s",(0,f.NE)(f.iK.textSubdued),(function(e){return!e.isActive&&!e.isDisabled&&(0,l.iv)(["&:hover{color:",";}&:active{opacity:",";}"],(0,f.NE)(f.iK.textBase),p.MQ)}),(function(e){return(e.isActive||e.isHover)&&(0,l.iv)(["color:",";"],(0,f.NE)(f.iK.textBase))}),(function(e){return e.isFocus&&e.sentenceCase&&(0,l.iv)(["color:",";"],(0,f.NE)(f.iK.textBase))}),(function(e){return e.isDisabled&&(0,l.iv)(["opacity:",";cursor:not-allowed;pointer-events:none;"],p.Zx)}),(function(e){return e.sentenceCase?(0,l.iv)(["color:",";"],(0,f.NE)(f.iK.textBase)):(0,l.iv)(["&:after{background-color:",";inline-size:100%;}"],(0,f.NE)(f.iK.essentialBase))}),s.dly,"0.3s",(function(e){return e.sentenceCase?s.o78:"30px"}),(function(e){return e.isFocus&&!e.sentenceCase&&(0,l.iv)(["background-color:",";inline-size:100%;"],(0,f.NE)(f.iK.essentialBase))}),(function(e){return e.isActive&&(0,l.iv)(["background-color:",";"],e.sentenceCase?(0,f.NE)(f.iK.essentialBase):(0,f.NE)(f.iK.essentialBrightAccent))})),g=n(53384),y=l.ZP.li.withConfig({displayName:"ListItem",componentId:"sc-14osqn3-0"})(["",";list-style-type:none;"],(0,g.D)());var _=(0,l.ZP)(y).withConfig({displayName:"ListItem",componentId:"qa47qy-0"})(["",";overflow-wrap:break-word;"],(0,g.D)()),b=["label","active","disabled","isHover","isFocus","component","sentenceCase","theme"],E=o().forwardRef((function(e,t){var n=e.label,i=e.active,s=e.disabled,l=e.isHover,c=e.isFocus,u=e.component,d=void 0===u?"a":u,p=e.sentenceCase,f=void 0!==p&&p,h=e.theme,v=(0,r.Z)(e,b);return h&&(0,a.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement(_,null,o().createElement(m,Object.assign({ref:t,isActive:i,isDisabled:s,isHover:l,isFocus:c,component:d,sentenceCase:f,"aria-current":i?"page":void 0},v),n))}))},37467:(e,t,n)=>{"use strict";n.d(t,{aV:()=>s});var r=n(73012),i=n(10586),o=n(38974),a="17px",s=i.ZP.div.withConfig({displayName:"Overlay",componentId:"u80gmt-0"})(["display:flex;min-width:296px;pointer-events:none;position:absolute;z-index:",";",";",";",";",";",";",";",";",";",";",";",";",";"],o.rp,(function(e){return"top"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:center;left:50%;transform:translate(-50%,-",");"],r.nuo)}),(function(e){return"topStart"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:flex-end;right:50%;transform:translate(",",-",");[dir='rtl'] &{right:unset;left:50%;transform:translate(-",",-",");}"],a,r.nuo,a,r.nuo)}),(function(e){return"topEnd"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:flex-start;left:50%;transform:translate(-",",-",");[dir='rtl'] &{right:50%;transform:translate(",",-",");}"],a,r.nuo,a,r.nuo)}),(function(e){return"bottom"===e.placement&&(0,i.iv)(["justify-content:center;left:50%;top:100%;transform:translate(-50%,",");"],r.nuo)}),(function(e){return"bottomStart"===e.placement&&(0,i.iv)(["justify-content:flex-end;right:50%;top:100%;transform:translate(",",",");[dir='rtl'] &{right:unset;left:50%;transform:translate(-",",",");}"],a,r.nuo,a,r.nuo)}),(function(e){return"bottomEnd"===e.placement&&(0,i.iv)(["justify-content:flex-start;left:50%;top:100%;transform:translate(-",",",");[dir='rtl'] &{left:unset;right:50%;transform:translate(",",",");}"],a,r.nuo,a,r.nuo)}),(function(e){return"start"===e.placement&&(0,i.iv)(["justify-content:flex-end;right:100%;top:50%;transform:translate(-",",-50%);[dir='rtl'] &{right:unset;left:100%;transform:translate(",",-50%);}"],r.nuo,r.nuo)}),(function(e){return"startTop"===e.placement&&(0,i.iv)(["bottom:50%;justify-content:flex-end;right:100%;transform:translate(-",",",");[dir='rtl'] &{right:unset;left:100%;transform:translate(",",",");}"],r.nuo,a,r.nuo,a)}),(function(e){return"startBottom"===e.placement&&(0,i.iv)(["justify-content:flex-end;right:100%;top:50%;transform:translate(-",",-",");[dir='rtl'] &{right:unset;left:100%;transform:translate(",",-",");}"],r.nuo,a,r.nuo,a)}),(function(e){return"end"===e.placement&&(0,i.iv)(["justify-content:flex-start;left:100%;top:50%;transform:translate(",",-50%);[dir='rtl'] &{left:unset;right:100%;transform:translate(-",",-50%);}"],r.nuo,r.nuo)}),(function(e){return"endTop"===e.placement&&(0,i.iv)(["bottom:50%;justify-content:flex-start;left:100%;transform:translate(",",",");[dir='rtl'] &{left:unset;right:100%;transform:translate(-",",",");}"],r.nuo,a,r.nuo,a)}),(function(e){return"endBottom"===e.placement&&(0,i.iv)(["justify-content:flex-start;left:100%;top:50%;transform:translate(",",-",");[dir='rtl'] &{left:unset;right:100%;transform:translate(-",",-",");}"],r.nuo,a,r.nuo,a)}))},64856:(e,t,n)=>{"use strict";n.d(t,{J:()=>w});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(13446),l=n(14134),c=n(70534),u=n(46939),d=n(79202),p=n(10691);function f(e){var t=(0,o.useContext)(u.S9);return(0,u.lR)(u.U0.icon,t)!==u.k3.deprecated?a().createElement(d.j,e):a().createElement(p.J,Object.assign({},e,{dangerouslySetInnerHTML:{__html:''}}))}var h=n(73012),v=n(10586),m=n(21770),g=(0,v.ZP)(m.oM).withConfig({displayName:"CloseButton",componentId:"i2fggp-0"})(["position:absolute;top:",";right:",";[dir='rtl'] &{right:unset;left:",";}"],h.hM$,h.hM$,h.hM$),y=n(3293),_=n(74152),b=n(53384),E=n(4592),S=n(23109),T=n(37467),O=["arrow"],A=function(e){return e.large?"600px":"296px"},C=v.ZP.div.withConfig({displayName:"Popover__StyledPopover",componentId:"sc-1iog353-0"})(["",";",";",";",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";text-transform:initial;overflow-wrap:break-word;"," &{pointer-events:all;}"],(function(e){return(0,_.IJ)({maxWidth:A(e),colorSet:e.colorSet})}),(function(e){return e.arrow&&(0,_.qE)(e.arrow)}),(0,b.D)(),(function(){return(0,y.i)((0,E.Mr)(),(0,S.Ef)())}),h.o78,h.o78,h.F_T,(function(e){return e.paddedBody?h.lM8:h.F_T}),T.aV),P=function(e){var t=e.arrow,n=(0,i.Z)(e,O);return t&&(0,s.u_)(t),a().createElement(C,Object.assign({arrow:(0,c.a)(t)},n))},I=n(28760),R=(0,v.ZP)(I.Dy.h1).attrs({variant:"cello",weight:"black"}).withConfig({displayName:"Title",componentId:"bugxpe-0"})(["padding-block-end:",";padding-inline-end:",";"],h.dly,h.JBZ),N=["colorSet","popoverTitle","children","onClose","className","closeButtonAriaLabel","theme"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var L=function(e){for(var t=1;t{"use strict";n.d(t,{x:()=>S});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(13446),l=n(10586);var c=n(70534),u=n(73935),d=n.n(u),p=n(38974),f=l.ZP.div.withConfig({displayName:"Container__OverlayPortalContainer",componentId:"sc-1vwgkyp-0"})(["position:fixed;top:","px;left:","px;width:","px;height:","px;pointer-events:none;z-index:",";"],(function(e){return e.overlayPosition.top}),(function(e){return e.overlayPosition.left}),(function(e){return e.overlayPosition.width}),(function(e){return e.overlayPosition.height}),p.rp),h=["overlayPosition","closeOverlay"],v=function(e){var t=e.overlayPosition,n=void 0===t?{width:0,height:0,top:0,left:0}:t,r=e.closeOverlay,s=(0,i.Z)(e,h);return(0,o.useEffect)((function(){return r?(window.addEventListener("scroll",r,!0),function(){window.removeEventListener("scroll",r,!0)}):function(){}}),[r]),d().createPortal(a().createElement(f,Object.assign({overlayPosition:n},s)),document.body)};var m=n(37467),g=["children","overlay","onHide","onShow","hideCloseButton","withPortal","placement"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var _=l.ZP.div.withConfig({displayName:"PopoverTrigger__PopoverTriggerContainer",componentId:"yux5vv-0"})(["display:inline-flex;position:relative;"]),b=l.ZP.div.withConfig({displayName:"PopoverTrigger__TriggerContainer",componentId:"yux5vv-1"})(["display:inline-flex;"]);var E=function(e){for(var t=1;t{"use strict";n.d(t,{i:()=>a});var r=n(67294),i=n.n(r),o=n(10586).ZP.table.withConfig({displayName:"Table__TableElement",componentId:"evwssh-0"})(["max-inline-size:100%;inline-size:100%;text-align:start;border-collapse:collapse;overflow-wrap:break-word;"]),a=function(e){return i().createElement(o,e)}},39054:(e,t,n)=>{"use strict";n.d(t,{p:()=>P});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(73012),l=n(10586),c=n(3293),u=n(53384),d=n(4592),p=n(23109),f=n(38974),h=n(14134),v=n(29131),m=n(49366),g=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],y=["semanticColor"],_=(0,l.iv)(["color:",";"],(0,h.NE)(h.iK.textBase)),b=(0,l.iv)([""," color:",";"],v.IT,(0,h.NE)(h.iK.textSubdued)),E=(0,l.ZP)(o().forwardRef((function(e,t){var n=e.component,i=void 0===n?"button":n,a=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,r.Z)(e,g));return o().createElement(i,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,i=(0,r.Z)(e,y);return(0,l.iv)(["",";",";cursor:inherit;display:inline-flex;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],(0,u.D)(),(!i.component||"button"===i.component)&&(0,v.BX)(i.useBrowserDefaultFocusStyle),(0,h.NE)(n),_,i.isHover&&_,b,v.cp,(0,h.NE)(n),i.isActive&&b,!i.useBrowserDefaultFocusStyle&&(0,m.qy)(0,i.isUsingKeyboard,i.isFocus))})),S=n(71456),T=n(37467),O=l.ZP.span.withConfig({displayName:"Trigger",componentId:"sc-1qpjssw-0"})(["display:inline-flex;position:relative;"]);var A=l.ZP.td.withConfig({displayName:"TableCell__TableCellElement",componentId:"sc-1nn7cfv-0"})(["",";",";font-feature-settings:",";font-weight:",";text-align:",";vertical-align:middle;padding:",";color:",";&:first-child{@media (max-width:","){padding-inline-start:",";}}&:last-child{@media (max-width:","){padding-inline-end:",";}}&:focus{outline:none;font-weight:",";color:",";}",";> ",",> ",",> "," span:not(",") ","{position:relative;top:3px;}"],(0,u.D)(),(function(){return(0,c.i)((0,d.Mr)(),(0,p.Ef)())}),(function(e){return e.numerical?"'tnum'":void 0}),(function(e){return e.highlight?f.Y$:void 0}),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),(function(e){return e.condensed?0:s.nuo}),(function(e){return e.highlight?(0,h.NE)(h.iK.textBase):"inherit"}),s.gXv,(function(e){return e.condensed?0:s.hM$}),s.gXv,(function(e){return e.condensed?0:s.hM$}),f.Y$,(0,h.NE)(h.iK.textBase),(function(e){return e.truncate&&(0,l.iv)(["",";max-inline-size:0;inline-size:100%;@media (min-width:","){max-inline-size:150px;inline-size:auto;}@media (min-width:",") and (max-width:","){max-inline-size:85px;inline-size:auto;}"],(0,l.iv)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),s.vmZ,s.SA3,s.SIq)}),S.Z,E,O,T.aV,E),C=["align","theme"],P=function(e){var t=e.align,n=void 0===t?"start":t,i=e.theme,s=(0,r.Z)(e,C);return i&&(0,a.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement(A,Object.assign({align:n},s))}},31937:(e,t,n)=>{"use strict";n.d(t,{x:()=>v});var r=n(55536),i=n(2214),o=n(67294),a=n.n(o),s=n(73012),l=n(10586),c=n(14134),u=n(4802),d=function(){return(0,l.iv)(["@media screen and (max-width:","){display:block;inline-size:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;}"],s.gXv)},p=function(){return(0,l.iv)(["overflow:auto;max-block-size:100%;","{background-color:",";position:sticky;z-index:1;top:0;",";}"],u.T,(0,c.NE)(c.iK.backgroundBase),(function(e){return e.isSticky&&(0,l.iv)(["box-shadow:-3px 0 0 ",",3px 0 0 ",",0 1px 6px ",";"],(0,c.NE)(c.iK.backgroundBase),(0,c.NE)(c.iK.backgroundBase),(0,c.NE)(c.iK.backgroundTintedBase))}))},f=l.ZP.div.withConfig({displayName:"TableContainer__Container",componentId:"sc-86p3fa-0"})(["",";",";"],(function(e){return e.responsive&&d}),(function(e){return e.stickyHeader&&p})),h=["responsive","stickyHeader"],v=function(e){var t=e.responsive,n=e.stickyHeader,s=(0,i.Z)(e,h),l=(0,o.useState)(!1),c=(0,r.Z)(l,2),u=c[0],d=c[1];return a().createElement(f,Object.assign({responsive:t,stickyHeader:n,onScroll:function(e){return d(e.target instanceof HTMLElement&&0!==e.target.scrollTop)},isSticky:u},s))}},4802:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var r=n(73012),i=n(10586),o=n(3293),a=n(53384),s=n(4592),l=n(23109),c=n(14134),u=i.ZP.th.withConfig({displayName:"TableHeaderCell__TableHeaderCellElement",componentId:"sc-16kf5kl-0"})(["",";"," color:",";padding:",";text-align:",";vertical-align:bottom;&:first-child{@media (max-width:","){padding-inline-start:",";}}&:last-child{@media (max-width:","){padding-inline-end:",";}}",";",";"],(0,a.D)(),(function(){return(0,o.i)((0,s.yd)(),(0,l.VW)())}),(function(e){return e.active?(0,c.NE)(c.iK.textBase):(0,c.NE)(c.iK.textSubdued)}),r.nuo,(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),r.gXv,r.hM$,r.gXv,r.hM$,(function(e){return e.selectable&&(0,i.iv)(["cursor:default;&:hover{color:",";}"],(0,c.NE)(c.iK.textBase))}),(function(e){return e.isHover&&(0,i.iv)(["color:",";"],(0,c.NE)(c.iK.textBase))}))},73493:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(4802),l=["align","scope","isHover","theme"],c=function(e){var t=e.align,n=void 0===t?"left":t,i=e.scope,c=void 0===i?"col":i,u=e.isHover,d=e.theme,p=(0,r.Z)(e,l);return d&&(0,a.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement(s.T,Object.assign({align:n,scope:c},p,{isHover:u}))}},9279:(e,t,n)=>{"use strict";n.d(t,{S:()=>p});var r=n(2214),i=n(67294),o=n.n(i),a=n(13446),s=n(10586),l=n(14134),c=(0,s.iv)(["outline:none;border:3px solid ",";"],(0,l.NE)(l.iK.essentialBase)),u=s.ZP.tr.withConfig({displayName:"TableRow__TableRowElement",componentId:"sc-1kuhzdh-0"})(["border-bottom:1px solid ",";color:",";",";",";",";&:focus{","}"],(0,l.NE)(l.iK.decorativeSubdued),(0,l.NE)(l.iK.textSubdued),(function(e){return e.hover&&(0,s.iv)(["cursor:default;&:hover{background-color:",";border-bottom-color:",";color:",";}"],(0,l.NE)(l.iK.backgroundTintedHighlight),(0,l.NE)(l.iK.decorativeSubdued),(0,l.NE)(l.iK.textBase))}),(function(e){return e.select&&(0,s.iv)(["background-color:",";border-bottom-color:",";color:",";"],(0,l.NE)(l.iK.backgroundTintedHighlight),(0,l.NE)(l.iK.decorativeSubdued),(0,l.NE)(l.iK.textBase))}),(function(e){return e.isFocus&&c}),c),d=["theme"],p=(0,i.forwardRef)((function(e,t){var n=e.theme,i=(0,r.Z)(e,d);return n&&(0,a.Zh)("theme","This component is intended to inherit its parent’s color set or color."),o().createElement(u,Object.assign({ref:t},i))}))},39148:(e,t,n)=>{"use strict";n.d(t,{u:()=>g});var r=n(2214),i=n(67294),o=n.n(i),a=n(73012),s=n(10586),l=n(13446),c=n(3293),u=n(53384),d=n(74152),p=n(4592),f=n(23109),h=n(14134),v=["colorSet","className","theme"],m=s.ZP.div.withConfig({displayName:"Tooltip__TooltipWrapper",componentId:"muq3yw-0"})(["",";",";",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";text-transform:initial;color:var(--text-base,",");overflow-wrap:break-word;"],(0,u.D)(),(0,d.IJ)({maxWidth:"240px"}),(function(){return(0,c.i)((0,p.Mr)(),(0,f.Ef)())}),a.dly,a.dly,a.nuo,a.nuo,h.cv.text.base),g=o().forwardRef((function(e,t){var n=e.colorSet,i=void 0===n?"base":n,a=e.className,s=e.theme,c=(0,r.Z)(e,v);return s&&(0,l.iw)("theme","colorSet"),o().createElement(m,Object.assign({ref:t,className:(0,h.Mg)(i,a),role:"tooltip"},c))}))},28760:(e,t,n)=>{"use strict";n.d(t,{Dy:()=>P});var r=n(69334),i=n(2214),o=n(67294),a=n.n(o),s=n(46939),l=n(13446),c=n(4592),u=n(26613),d={display1:"display1",display2:"display2",heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",body1:"body1",body2:"body2",body3:"body3",body4:"body4",cta1:"cta1",cta2:"cta2",cta3:"cta3",cta4:"cta4"},p={bass:d.display1,forte:d.display2,altoBrio:d.heading1,alto:d.heading2,celloCanon:d.heading3,cello:d.heading4,ballad:d.body1,viola:d.body2,finale:d.body4,metronome:d.cta2,minuetBold:d.cta3,finaleBold:d.cta4};function f(e,t,n){return t===s.k3.deprecated&&p.hasOwnProperty(e)?n||function(e){return p[e]}(e):e}var h=function(e){switch(e){case"display1":return(0,c.yP)();case"display2":return(0,c.Xc)();case"heading1":return(0,c.It)();case"heading2":return(0,c.KD)();case"heading3":return(0,c.Sf)();case"heading4":return(0,c.yE)();case"body1":return(0,c.mZ)();case"body2":return(0,c.Mr)();case"body3":return(0,c.E4)();case"body4":return(0,c.Bk)();case"cta1":return(0,c.Gh)();case"cta2":return(0,c.c_)();case"cta3":return(0,c.D$)();case"cta4":return(0,c.yd)();default:return(0,u.vE)(e)}};var v=n(10586),m=n(38974),g=n(23109),y=n(53384),_=n(14134),b=function(e){switch(e){case"book":return m.tE;case"bold":return m.Y$;case"black":return m.nj;default:return(0,u.vE)(e)}},E=v.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"goli3j-0"})(["",";"," margin-block-start:0;margin-block-end:0;",";",";"," ",";"],(0,y.D)(),(function(e){return e.isLegacyVariant&&e.as&&"string"==typeof e.as&&["h1","h2","h3","h4","p","li","small"].includes(e.as)&&(0,v.iv)(["display:block;padding:0 0 1em;"])}),(function(e){return e.variant?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;switch(e){case"bass":return(0,g.l8)(t);case"forte":return(0,g.Yt)(t,n&&b(n));case"brio":return(0,g.R)(t);case"altoBrio":return(0,g.AH)(t);case"alto":return(0,g.h2)(t);case"canon":return(0,g.xi)(t);case"celloCanon":return(0,g.BS)(t);case"cello":return(0,g.GW)(t);case"ballad":return(0,g.Mp)(t);case"balladBold":return(0,g.Vr)(t);case"viola":return(0,g.Ef)(t);case"violaBold":return(0,g.Dg)(t);case"mesto":return(0,g.Ue)(t);case"mestoBold":return(0,g.I_)(t);case"metronome":return(0,g.As)(t);case"finale":return(0,g.QB)(t);case"finaleBold":return(0,g.VW)(t);case"minuet":return(0,g.gI)(t);case"minuetBold":return(0,g.bx)(t);default:return h(e)}}(e.variant,e.pxLegacy,e.weight):void 0}),(function(e){return e.paddingBottom&&(0,v.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,v.iv)(["color:",";"],(0,_.NE)(e.semanticColor)):(0,v.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,v.iv)(["font-weight:",";"],b(e.weight))})),S=["color","semanticColor","paddingBottom","pxLegacy","variant","deprecatedVariant","condensed"];function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t{"use strict";n.d(t,{T:()=>u});var r=n(2214),i=n(67294),o=n.n(i),a=n(10586),s=n(67382),l=["component"],c=o().forwardRef((function(e,t){var n=e.component,i=void 0===n?"span":n,a=(0,r.Z)(e,l);return o().createElement(i,Object.assign({},a,{ref:t}))})),u=(0,a.ZP)(c).withConfig({displayName:"VisuallyHidden",componentId:"sc-17bibe8-0"})(["",""],(0,s.j)())},93727:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(67294),i={useBrowserDefaultFocusStyle:!1},o=n.n(r)().createContext(i);o.displayName="BrowserDefault"},46939:(e,t,n)=>{"use strict";n.d(t,{S9:()=>l,U0:()=>o,W1:()=>a,k3:()=>i,lR:()=>s});var r=n(67294),i={experimental:"experimental",next:"next",deprecated:"deprecated"},o={type:"type",button:"button",icon:"icon"},a={experimental:[],next:[],deprecated:[]},s=function(e,t){var n=void 0;return Object.keys(i).forEach((function(r){(function(e,t){return t.indexOf(e)>-1})(e,t[r])&&(n=r)})),n},l=n.n(r)().createContext(a);l.displayName="Encore"},89390:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(67294),i={isUsingKeyboard:!0},o=n.n(r)().createContext(i);o.displayName="KeyboardDetection"},13446:(e,t,n)=>{"use strict";n.d(t,{Zh:()=>i,iw:()=>o,o7:()=>a,u_:()=>s});var r=n(70534);function i(e,t){console.warn("The ".concat(e," prop has been deprecated. ").concat(t||""))}function o(e,t,n){console.warn("The ".concat(e," prop has been deprecated. Please use ").concat(t," instead. ").concat(n||""))}function a(e){var t=e.color,n=e.oldProp,r=void 0===n?"color":n,i=e.newProp,a=void 0===i?"semanticColor":i,s=e.additionalInfo;t&&o(r,a,void 0===s?"":s)}function s(e){return Object.keys(r.F).filter((function(e){return"top"!==e&&"bottom"!==e})).includes(e)?o(e,(0,r.a)(e),"This allows us to support localization."):null}},3293:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(67294),i=n(46939);function o(e,t){var n=(0,r.useContext)(i.S9);return(0,i.lR)(i.U0.type,n)===i.k3.deprecated?e:t}},53384:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(10586),i=function(){return(0,r.iv)(["box-sizing:border-box;font-family:var(--font-family,spotify-circular),Helvetica,Arial,sans-serif;-webkit-tap-highlight-color:transparent;"])}},28538:(e,t,n)=>{"use strict";n.d(t,{M:()=>h,n:()=>v});var r,i,o=n(69334),a=n(10586),s=n(38974),l=n(53384),c=n(29131),u=n(49366),d=s.Y$,p=(r={},(0,o.Z)(r,c.DL.sm,"12px"),(0,o.Z)(r,c.DL.md,"14px"),(0,o.Z)(r,c.DL.lg,"16px"),r),f=(i={},(0,o.Z)(i,c.DL.sm,"10px"),(0,o.Z)(i,c.DL.md,"17px"),(0,o.Z)(i,c.DL.lg,"20px"),i),h=function(e,t){return(0,a.iv)(["",";"," background-color:transparent;border:0;border-radius:",";display:inline-block;font-size:",";font-weight:",";letter-spacing:2px;line-height:",";text-align:center;text-decoration:none;text-transform:uppercase;touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],(0,l.D)(),!t&&u.Cs,c.Dx,p[e],d,"1",c.cS)};function v(e){var t=parseInt(p[e],10),n=parseInt(f[e],10);return{paddingTopBottom:n,paddingLeftRight:t+2*n}}},29131:(e,t,n)=>{"use strict";n.d(t,{BX:()=>U,DL:()=>_,Dx:()=>E,FN:()=>C,IT:()=>M,Lm:()=>w,Vt:()=>I,Z7:()=>P,ZG:()=>L,cS:()=>S,cp:()=>D,hs:()=>b,lK:()=>k,l_:()=>x});var r,i,o,a,s,l,c,u=n(69334),d=n(73012),p=n(10586),f=n(46939),h=n(23109),v=n(53384),m=n(49366),g=n(38974),y=n(26613),_={sm:"sm",md:"md",lg:"lg"},b=(r={},(0,u.Z)(r,_.sm,d.mGT),(0,u.Z)(r,_.md,d.JBZ),(0,u.Z)(r,_.lg,d.cQs),r),E="500px",S="33ms",T=(i={},(0,u.Z)(i,_.sm,d.dly),(0,u.Z)(i,_.md,"14px"),(0,u.Z)(i,_.lg,d.o78),i),O=(o={},(0,u.Z)(o,_.sm,d.dly),(0,u.Z)(o,_.md,"12px"),(0,u.Z)(o,_.lg,d.o78),o),A=(a={},(0,u.Z)(a,_.sm,d.o78),(0,u.Z)(a,_.md,d.mGT),(0,u.Z)(a,_.lg,d.JBZ),a),C=(s={},(0,u.Z)(s,_.sm,d.nuo),(0,u.Z)(s,_.md,d.F_T),(0,u.Z)(s,_.lg,d.g4V),s),P=(l={},(0,u.Z)(l,_.sm,"5px"),(0,u.Z)(l,_.md,d.nuo),(0,u.Z)(l,_.lg,"10px"),l),I=(c={},(0,u.Z)(c,_.sm,d.o78),(0,u.Z)(c,_.md,d.g4V),(0,u.Z)(c,_.lg,d.g4V),c),R=function(e,t){if(t===f.k3.next)return function(e){switch(e){case _.sm:return(0,h.I_)();case _.md:return(0,h.Vr)();case _.lg:return(0,h.GW)();default:return(0,h.Vr)()}}(e);switch(e){case _.sm:return(0,h.VW)(!0);case _.md:return(0,h.Dg)(!0);case _.lg:return(0,h.Vr)(!0);default:return(0,h.Dg)(!0)}},N=function(e){var t=C[e],n=P[e],r=I[e];return(0,y.zg)(t)+(0,y.zg)(r)+(0,y.zg)(n)},k=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;t="".concat("next"===r?(0,y.zg)(O[e])-n:(0,y.zg)(T[e])-n,"px");var i="".concat((0,y.zg)(A[e])-n,"px"),o="".concat(N(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:i,withIconPaddingLeftRight:o}},L=function(e,t,n,r,i,o){var a=k(e,i,o),s=a.paddingTopBottom,l=a.paddingLeftRight,c=a.withIconPaddingLeftRight,u=(0,p.iv)(["inline-size:",";block-size:",";"],b[e],b[e]),d=(0,p.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],s,s,l,l),f=(0,p.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],s,s,c,c),h=(0,p.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],s,s,t?c:l,n?c:l);return r?u:t||n?t&&n?f:h:d},w=function(e,t,n){return(0,p.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";display:inline-block;position:relative;text-align:center;text-decoration:none;text-transform:",";touch-action:manipulation;transition-duration:",";transition-property:background-color,border-color,color,box-shadow,filter,transform;user-select:none;vertical-align:middle;transform:translate3d(0,0,0);"],(0,v.D)(),!t&&m.Cs,R(e,n),E,"none",S)},D=(0,p.iv)(["cursor:",";opacity:",";transform:scale(1);"],g.fn,g.Zx),M=(0,p.iv)(["opacity:",";outline:none;transform:scale(1);"],g.MQ),x=(0,p.iv)(["transform:scale(",");"],"1.04"),U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,p.iv)(["background-color:transparent;border:0;color:inherit;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&m.Cs)}},49366:(e,t,n)=>{"use strict";n.d(t,{Bg:()=>a,Cs:()=>s,Ef:()=>o,F5:()=>l,k2:()=>u,qy:()=>f,s8:()=>p});var r=n(10586),i=n(14134),o=3,a=(0,i.NE)(i.iK.essentialBase),s=(0,r.iv)(["&:focus{outline:none;}"]);function l(){return{dimension:"".concat(4*o,"px"),position:"-".concat(2*o,"px")}}var c=(0,r.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],"200ms","ease-in"),u=function(e){return(0,r.iv)([""," "," background:transparent;border-radius:",";border:","px solid transparent;"],c,(t=l(),n=t.dimension,i=t.position,(0,r.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(n,")"),"calc(100% + ".concat(n,")"),i,i)),e,o);var t,n,i},d=function(e){return(0,r.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],c,e-2*o,o)},p=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.iv)(["position:relative;"," ",""],s,t&&(0,r.iv)(["&::after{"," content:'';}&:focus::after{border-color:",";}",""],u(e),a,n&&(0,r.iv)(["&::after{border-color:",";}"],a)))},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.iv)(["position:relative;"," ",""],s,t&&(0,r.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],d(e),n&&(0,r.iv)(["&::after{border-color:inherit;}"])))}},37213:(e,t,n)=>{"use strict";n.d(t,{DW:()=>f,GN:()=>p,O0:()=>m,d_:()=>h,lm:()=>d,oi:()=>v});var r=n(73012),i=n(10586),o=n(3293),a=n(14134),s=n(38974),l=n(53384),c=n(4592),u=n(23109),d=function(){return(0,i.iv)(["-webkit-appearance:none;background-image:none;border:0;display:block;",";transition:box-shadow ease-in-out 0.1s,color fade 0.1s;inline-size:100%;&::placeholder{opacity:1;}&:focus,&:hover:focus{outline:0;}&:disabled,&[readonly]{cursor:not-allowed;opacity:1;}"],(function(){return(0,o.i)((0,c.mZ)(),(0,u.Mp)())}))},p=function(){return(0,i.iv)(["",";margin-block-start:0;margin-block-end:0;appearance:none;box-shadow:none;text-indent:0.01px;text-overflow:'';&::-ms-expand{display:none;}border-radius:",";padding-block-start:14px;padding-block-end:14px;padding-inline-start:14px;padding-inline-end:44px;"],(0,l.D)(),r.hM$)},f=function(){return(0,i.iv)(["color:",";pointer-events:none;position:absolute;right:14px;[dir='rtl'] &{left:14px;right:auto;}"],(0,a.NE)(a.iK.essentialSubdued))},h=function(){return(0,i.iv)(["",";align-items:center;display:flex;padding-block-end:",";padding-block-start:",";position:relative;min-block-size:",";"],(0,l.D)(),r.hM$,r.hM$,r.mGT)},v=function(e){return(0,i.iv)(["",";background:transparent;border-radius:",";display:inline-block;block-size:",";position:relative;user-select:none;inline-size:",";flex-shrink:0;align-self:flex-start;top:0;"],(0,l.D)(),e,r.o78,r.o78)},m=function(e){var t=e.isUsingKeyboard,n=void 0===t||t,r=e.isHover,o=e.isFocus,l=e.error,c=(0,i.iv)(["box-shadow:inset 0 0 0 1px ",";"],(0,a.NE)(a.iK.essentialBase)),u=(0,i.iv)(["box-shadow:inset 0 0 0 ","px ",";"],n?3:1.5,(0,a.NE)(a.iK.essentialBase)),d=(0,i.iv)(["&,&:hover{box-shadow:inset 0 0 0 1px ",";}&:focus{box-shadow:inset 0 0 0 ","px ",";}"],(0,a.NE)(a.iK.essentialNegative),n?3:1.5,(0,a.NE)(a.iK.essentialNegative));return(0,i.iv)(["background-color:",";box-shadow:inset 0 0 0 1px ",";color:",";&:hover{","}"," &:focus{","}&&{",";}&::placeholder{color:",";}&:disabled,&[readonly]{box-shadow:inset 0 0 0 1px ",";opacity:",";}&:invalid{",";}",""],(0,a.NE)(a.iK.backgroundBase),(0,a.NE)(a.iK.essentialSubdued),(0,a.NE)(a.iK.textBase),c,r&&c,u,o&&u,(0,a.NE)(a.iK.textSubdued),(0,a.NE)(a.iK.essentialSubdued),s.Zx,void 0===l&&d,l&&d)}},4592:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>h,D$:()=>g,E4:()=>f,Gh:()=>v,It:()=>s,KD:()=>l,Mr:()=>p,Sf:()=>c,Xc:()=>a,c_:()=>m,mZ:()=>d,yE:()=>u,yP:()=>o,yd:()=>y});var r=n(73012),i=n(10586),o=function(){return(0,i.iv)(["font-size:",";font-weight:",";letter-spacing:",";line-height:",";padding-bottom:",";@media (min-width:","){font-size:",";line-height:",";letter-spacing:",";}@media (min-width:","){font-size:",";line-height:",";}"],r.dt8.display1FontSizeXSmall,r.dt8.display1FontWeightXSmall,r.dt8.display1LetterSpacingXSmall,r.dt8.display1LineHeightXSmall,r.dt8.display1PaddingBottomXSmall,r.eqR.screenSmMin,r.dt8.display1FontSizeSmall,r.dt8.display1LineHeightSmall,r.dt8.display1LetterSpacingSmall,r.eqR.screenMdMin,r.dt8.display1FontSize,r.dt8.display1LineHeight)},a=function(){return(0,i.iv)(["font-size:",";font-weight:",";letter-spacing:",";line-height:",";padding-bottom:",";@media (min-width:","){font-size:",";line-height:",";letter-spacing:",";}@media (min-width:","){font-size:",";line-height:",";}"],r.dt8.display2FontSizeXSmall,r.dt8.display2FontWeightXSmall,r.dt8.display2LetterSpacingXSmall,r.dt8.display2LineHeightXSmall,r.dt8.display2PaddingBottomXSmall,r.eqR.screenSmMin,r.dt8.display2FontSizeSmall,r.dt8.display2LineHeightSmall,r.dt8.display2LetterSpacingSmall,r.eqR.screenMdMin,r.dt8.display2FontSize,r.dt8.display2LineHeight)},s=function(){return(0,i.iv)(["font-size:",";font-weight:",";letter-spacing:",";line-height:",";padding-bottom:",";@media (min-width:","){font-size:",";line-height:",";}@media (min-width:","){font-size:",";line-height:",";}"],r.dt8.heading1FontSizeXSmall,r.dt8.heading1FontWeightXSmall,r.dt8.heading1LetterSpacingXSmall,r.dt8.heading1LineHeightXSmall,r.dt8.heading1PaddingBottomXSmall,r.eqR.screenSmMin,r.dt8.heading1FontSizeSmall,r.dt8.heading1LineHeightSmall,r.eqR.screenMdMin,r.dt8.heading1FontSize,r.dt8.heading1LineHeight)},l=function(){return(0,i.iv)(["font-size:",";font-weight:",";letter-spacing:",";line-height:",";padding-bottom:",";@media (min-width:","){font-size:",";line-height:",";letter-spacing:",";}"],r.dt8.heading2FontSizeSmall,r.dt8.heading2FontWeightSmall,r.dt8.heading2LetterSpacingSmall,r.dt8.heading2LineHeightSmall,r.dt8.heading2PaddingBottomSmall,r.eqR.screenSmMin,r.dt8.heading2FontSize,r.dt8.heading2LineHeight,r.dt8.heading2LetterSpacing)},c=function(){return(0,i.iv)(["font-size:",";font-weight:",";line-height:",";letter-spacing:",";@media (min-width:","){font-size:",";line-height:",";}"],r.dt8.heading3FontSizeSmall,r.dt8.heading3FontWeightSmall,r.dt8.heading3LineHeightSmall,r.dt8.heading3LetterSpacingSmall,r.eqR.screenSmMin,r.dt8.heading3FontSize,r.dt8.heading3LineHeight)},u=function(){return(0,i.iv)(["",";"],r.kEW)},d=function(){return(0,i.iv)(["",";"],r.KGD)},p=function(){return(0,i.iv)(["",";"],r.TMf)},f=function(){return(0,i.iv)(["",";"],r.w_O)},h=function(){return(0,i.iv)(["",";"],r.URx)},v=function(){return(0,i.iv)(["",";"],r.A2L)},m=function(){return(0,i.iv)(["",";"],r.F4X)},g=function(){return(0,i.iv)(["",";"],r.hcr)},y=function(){return(0,i.iv)(["",";"],r.poE)}},70534:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,a:()=>a});var r=n(74152),i={top:"top",topRight:"topRight",topLeft:"topLeft",left:"left",leftTop:"leftTop",leftBottom:"leftBottom",bottom:"bottom",bottomLeft:"bottomLeft",bottomRight:"bottomRight",right:"right",rightTop:"rightTop",rightBottom:"rightBottom"},o={top:"top",topRight:"topEnd",topLeft:"topStart",left:"start",leftTop:"startTop",leftBottom:"startBottom",bottom:"bottom",bottomLeft:"bottomStart",bottomRight:"bottomEnd",right:"end",rightTop:"endTop",rightBottom:"endBottom"};function a(e){var t,n;if(e)return t=e,n=r.LR,t in n?e:o[e]}},74152:(e,t,n)=>{"use strict";n.d(t,{IJ:()=>f,qE:()=>h,LR:()=>p});var r=n(73012),i=n(10586),o=n(38974),a=n(26613),s=n(14134),l="rgba(0, 0, 0, 0.05)",c="var(--background-elevated-base, ".concat(s.cv.background.elevated.base,")"),u=function(e){var t=e.color,n=void 0===t?c:t,o=e.position,a=e.offset,s=e.width,u=void 0===s?r.dly:s,d="-".concat(u);return(0,i.iv)(["position:relative;&::after{bottom:auto;content:'';left:auto;position:absolute;right:auto;top:auto;",";",";",";",";",";",";",";",";}"],"bottom"===o&&(0,i.iv)(["border-block-end:0;border-inline-start:"," solid transparent;border-inline-end:"," solid transparent;border-block-start:"," solid ",";"],u,u,u,n),"top"===o&&(0,i.iv)(["border-block-end:"," solid ",";border-inline-start:"," solid transparent;border-inline-end:"," solid transparent;border-block-start:0;"],u,n,u,u),"end"===o&&(0,i.iv)(["border-block-end:"," solid transparent;border-inline-start:"," solid ",";border-inline-end:0;border-block-start:"," solid transparent;"],u,u,n,u),"start"===o&&(0,i.iv)(["border-block-end:"," solid transparent;border-inline-start:0;border-inline-end:"," solid ",";border-block-start:"," solid transparent;"],u,u,n,u),"top"===o&&(0,i.iv)(["left:",";top:",";filter:drop-shadow(0 -2px 1px ",");[dir='rtl'] &{left:unset;right:",";i}"],"center"===a?"calc(50% - ".concat(u,")"):a,d,l,"center"===a?"calc(50% - ".concat(u,")"):a),"bottom"===o&&(0,i.iv)(["bottom:",";left:",";filter:drop-shadow(0 2px 1px ",");[dir='rtl'] &{left:unset;right:",";i}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,"center"===a?"calc(50% - ".concat(u,")"):a),"start"===o&&(0,i.iv)(["left:",";top:",";filter:drop-shadow(-2px 0 1px ",");[dir='rtl'] &{left:unset;right:",";filter:drop-shadow(2px 0 1px ",");}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,d,l),"end"===o&&(0,i.iv)(["right:",";top:",";filter:drop-shadow(2px 0 1px ",");[dir='rtl'] &{right:unset;left:",";filter:drop-shadow(-2px 0 1px ",");}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,d,l))},d="0 ".concat(r.hM$," ").concat(r.nuo," 0 rgba(0, 0, 0, 0.2)"),p={top:"top",topEnd:"topEnd",topStart:"topStart",start:"start",startTop:"startTop",startBottom:"startBottom",bottom:"bottom",bottomStart:"bottomStart",bottomEnd:"bottomEnd",end:"end",endTop:"endTop",endBottom:"endBottom"},f=function(e){var t=e.maxWidth,n=void 0===t?"296px":t,a=e.colorSet,l=void 0===a?"base":a;return(0,i.iv)(["background:",";color:",";border-radius:",";box-shadow:",";font-weight:",";text-align:start;cursor:default;display:inline-block;max-inline-size:",";position:relative;"],(0,s.NE)(s.iK.backgroundElevatedBase,s.uH[l].background.elevated.base),(0,s.NE)(s.iK.textBase,s.uH[l].text.base),r.dly,d,o.tE,n)},h=function(e){switch(e){case"top":return u({offset:"center",position:"top"});case"topStart":return u({offset:r.dly,position:"top"});case"topEnd":return u({offset:"calc(100% - ".concat(r.g4V,")"),position:"top"});case"bottom":return u({offset:"center",position:"bottom"});case"bottomStart":return u({offset:r.dly,position:"bottom"});case"bottomEnd":return u({offset:"calc(100% - ".concat(r.g4V,")"),position:"bottom"});case"start":return u({offset:"center",position:"start"});case"startTop":return u({offset:r.dly,position:"start"});case"startBottom":return u({offset:"calc(100% - ".concat(r.g4V,")"),position:"start"});case"end":return u({offset:"center",position:"end"});case"endTop":return u({offset:r.dly,position:"end"});case"endBottom":return u({offset:"calc(100% - ".concat(r.g4V,")"),position:"end"});default:return(0,a.vE)(e)}}},23109:(e,t,n)=>{"use strict";n.d(t,{h2:()=>x,AH:()=>U,Mp:()=>V,Vr:()=>j,l8:()=>w,R:()=>M,xi:()=>F,GW:()=>z,BS:()=>B,QB:()=>Y,VW:()=>J,Yt:()=>D,Ue:()=>q,I_:()=>K,As:()=>W,gI:()=>$,bx:()=>X,Ef:()=>H,Dg:()=>G});var r=n(2214),i=n(69334);const o={fontSize:"16px",lineHeight:"24px",fontWeight:400},a={fontSize:"16px",lineHeight:"24px",fontWeight:700},s={fontSize:"14px",lineHeight:"20px",fontWeight:400},l={fontSize:"14px",lineHeight:"20px",fontWeight:700},c={fontSize:"13px",lineHeight:"16px",fontWeight:400},u={fontSize:"13px",lineHeight:"16px",fontWeight:700},d={fontSize:"56px",lineHeight:"56px",letterSpacing:"-0.04em",fontWeight:900},p={fontSize:"48px",lineHeight:"48px",letterSpacing:"-0.04em",fontWeight:700},f={fontSize:"40px",lineHeight:"40px",letterSpacing:"-0.04em",fontWeight:700},h={fontSize:"11px",lineHeight:"16px",fontWeight:400},v={fontSize:"11px",lineHeight:"16px",fontWeight:700},m={fontSize:"10px",lineHeight:"16px",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:400},g={fontSize:"10px",lineHeight:"16px",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:700},y={fontSize:"14px",lineHeight:"16px",textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:700},_={fontSize:"32px",lineHeight:"36px",letterSpacing:"-0.04em",fontWeight:700},b={fontSize:"32px",lineHeight:"36px",letterSpacing:"-0.04em",fontWeight:700},E={fontSize:"24px",lineHeight:"28px",letterSpacing:"-0.04em",fontWeight:700},S={fontSize:"18px",lineHeight:"24px",fontWeight:700},T={fontSize:"18px",lineHeight:"24px",fontWeight:700};var O=n(73012),A=n(72406),C=n(10586),P=["fontWeight"];function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],i=(t.fontWeight,(0,r.Z)(t,P));return(0,C.iv)(["",";@media (min-width:","){",";}"],k(e,n),O.eqR.screenSmMin,k(i,n))},w=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(d,A.l8e,e)},D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return(0,C.iv)(["",";@media (min-width:","){",";",";}"],k(p,e),O.eqR.screenSmMin,k(A.YtU,e),t&&(0,C.iv)(["font-weight:",";"],t))},M=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(f,A.Ra7,e)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(b,A.h2J,e)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(_,A.AHr,e)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(E,A.xi7,e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(T,A.GW5,e)},B=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(S,A.BSu,e)},V=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(o,A.MpZ,e)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(a,A.Vro,e)},H=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(s,A.EfK,e)},G=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(l,A.DgY,e)},q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(c,A.Ue_,e)},K=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(u,A.I_u,e)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(y,A.Asd,e)},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(h,A.QBe,e)},J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(v,A.VW9,e)},$=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(m,A.gIt,e)},X=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(g,A.bxl,e)}},67382:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(10586),i=function(){return(0,r.iv)(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"])}},14134:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>g,Ev:()=>T,D6:()=>_,NE:()=>b,cv:()=>d,uH:()=>u,iK:()=>E});var r=n(69334),i=n(55536);const o={base:{background:{base:"var(--spice-text)",highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:"var(--spice-text)",highlight:"#f6f6f6",press:"#b7b7b7"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:"var(--spice-text)",highlight:"var(--spice-text)",press:"var(--spice-text)"}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#117a37",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#169b45",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},negative:{background:{base:"#e91429",highlight:"#de1327",press:"#920d1a",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:"var(--spice-text)",subdued:"var(--spice-text)",brightAccent:"var(--spice-text)",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},essential:{base:"var(--spice-text)",subdued:"var(--spice-text)",brightAccent:"var(--spice-text)",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},decorative:{base:"var(--spice-text)",subdued:"#ee3a4c"}},warning:{background:{base:"#ffa42b",highlight:"#ffaf45",press:"#c57100",elevated:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},tinted:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"},unsafeForSmallText:{base:"#ffa42b",highlight:"#ffa42b",press:"#ffa42b"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#f18900"}},positive:{background:{base:"#1ed760",highlight:"#1fdf64",press:"#169c46",elevated:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},tinted:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"},unsafeForSmallText:{base:"#1ed760",highlight:"#1ed760",press:"#1ed760"}},text:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#000000",brightAccent:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#1abc54"}},announcement:{background:{base:"#0d72ea",highlight:"#0c6ddf",press:"#084791",elevated:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},tinted:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"},unsafeForSmallText:{base:"#0d72ea",highlight:"#0d72ea",press:"#0d72ea"}},text:{base:"var(--spice-text)",subdued:"var(--spice-text)",brightAccent:"var(--spice-text)",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},essential:{base:"var(--spice-text)",subdued:"var(--spice-text)",brightAccent:"var(--spice-text)",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},decorative:{base:"var(--spice-text)",subdued:"#2a86f3"}},invertedDark:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",elevated:{base:"#000000",highlight:"#000000",press:"#000000"},tinted:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:"var(--spice-text)",subdued:"#8f8f8f",brightAccent:"#1ed760",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},essential:{base:"var(--spice-text)",subdued:"#5e5e5e",brightAccent:"#1ed760",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},decorative:{base:"var(--spice-text)",subdued:"#1f1f1f"}},invertedLight:{background:{base:"var(--spice-text)",highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:"var(--spice-text)",highlight:"var(--spice-text)",press:"var(--spice-text)"},tinted:{base:"var(--spice-text)",highlight:"var(--spice-text)",press:"var(--spice-text)"},unsafeForSmallText:{base:"var(--spice-text)",highlight:"var(--spice-text)",press:"var(--spice-text)"}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#12833a",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#17a449",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},elevated:{base:"#121212",highlight:"#121212",press:"#121212"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:"var(--spice-text)",subdued:"#a7a7a7",brightAccent:"#1ed760",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},essential:{base:"var(--spice-text)",subdued:"#727272",brightAccent:"#1ed760",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},decorative:{base:"var(--spice-text)",subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.53)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.71)",unsafeForSmallText:{base:"rgba(0, 0, 0, 0.42)",highlight:"rgba(0, 0, 0, 0.44)",press:"rgba(0, 0, 0, 0.61)"},elevated:{base:"rgba(0, 0, 0, 0.53)",highlight:"rgba(0, 0, 0, 0.53)",press:"rgba(0, 0, 0, 0.53)"},tinted:{base:"rgba(0, 0, 0, 0.53)",highlight:"rgba(0, 0, 0, 0.53)",press:"rgba(0, 0, 0, 0.53)"}},text:{base:"var(--spice-text)",subdued:"var(--spice-text)",brightAccent:"var(--spice-text)",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},essential:{base:"var(--spice-text)",subdued:"var(--spice-text)",brightAccent:"var(--spice-text)",negative:"var(--spice-text)",warning:"var(--spice-text)",positive:"var(--spice-text)",announcement:"var(--spice-text)"},decorative:{base:"var(--spice-text)",subdued:"rgba(255, 255, 255, 0.13)"}}};var a=n(6767),s=n.n(a);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,r){var o=(0,i.Z)(r,2),a=o[0],s=o[1],l=a;return""!==n&&(l="".concat(n).concat(p(a))),"object"==typeof s?c(c({},t),e(s,l)):"string"==typeof s?(t[l]=s,t):t}),{})};function h(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function v(e){return e?"encore-".concat(h(e),"-set"):""}function m(e){if(!e)return"";var t=e.replace("Set","");return"encore-".concat(h(t),"-set")}function g(e,t){return e in o?[v(e),t].join(" ").trim():[m(e),t].join(" ").trim()}function y(e){return"--".concat(h(e))}function _(e){return Object.entries(f(e)).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return"\n ".concat(y(n),": ").concat(r," !important;\n ")}))}function b(e,t){var n=f(d)[e];return t&&(n=t),"var(".concat(y(e),", ").concat(n,")")}var E=c(c(c(c({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),{textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"}),{essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"}),{decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"}),S=function(e,t){return e.contrast(t)},T=function(e,t){var n=s()(e),r=void 0;t&&(r=s()(t));var i=r&&S(n,r)>=4.45?r:function(e){var t=s()("#FFFFFF"),n=s()("#000000");return S(e,t)>=S(e,n)?t:n}(n),o=i.luminosity()>=n.luminosity(),a=o?s()(n.lightness(n.hsl().object().l-5)):s()(n.lightness(n.hsl().object().l+5)),l=o?s()(a.lightness(a.hsl().object().l-5)):s()(a.lightness(a.hsl().object().l+5));return{background:{base:n.hex(),highlight:a.hex(),press:l.hex(),elevated:{base:n.hex(),highlight:a.hex(),press:l.hex()},tinted:{base:n.hex(),highlight:a.hex(),press:l.hex()},unsafeForSmallText:{base:n.hex(),highlight:a.hex(),press:l.hex()}},text:{base:i.hex(),subdued:i.hex(),brightAccent:i.hex(),negative:i.hex(),warning:i.hex(),positive:i.hex(),announcement:i.hex()},essential:{base:i.hex(),subdued:i.hex(),brightAccent:i.hex(),negative:i.hex(),warning:i.hex(),positive:i.hex(),announcement:i.hex()},decorative:{base:i.hex(),subdued:i.hex()}}}},38974:(e,t,n)=>{"use strict";n.d(t,{MQ:()=>c,Y$:()=>o,Zx:()=>l,fn:()=>u,nj:()=>a,rp:()=>s,tE:()=>i});var r=n(73012),i=400,o=700,a=900,s=1060,l=r.YhY,c=r.crY,u="not-allowed"},26613:(e,t,n)=>{"use strict";function r(e){throw new Error("Unreachable value")}n.d(t,{vE:()=>r,zg:()=>i});var i=function(e){return parseInt(e,10)}},603:(e,t)=>{"use strict";t.i=void 0,t.i=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},20809:(e,t)=>{"use strict";t.t=void 0,t.t=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}},35533:(e,t)=>{"use strict";t.x=void 0,t.x=function(e){return{name:"WwwExperiments",environments:["browser"],data:e}}},45623:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}},10522:(e,t,n)=>{"use strict";function r(e){return{name:"AdError",environments:["device"],data:e}}n.d(t,{v:()=>r})},79638:(e,t,n)=>{"use strict";function r(e){return{name:"AdEvent",environments:["browser","device","desktop"],data:e}}n.d(t,{X:()=>r})},29254:(e,t,n)=>{"use strict";function r(e){return{name:"AdViewContext",environments:["browser","device","desktop"],data:e}}n.d(t,{u:()=>r})},9342:(e,t,n)=>{"use strict";function r(e){return{name:"BetamaxPlaybackErrorDevice",environments:["device","desktop"],data:e}}n.d(t,{c:()=>r})},91279:(e,t,n)=>{"use strict";function r(e){return{name:"CastTransfer",environments:["device","browser"],data:e}}n.d(t,{I:()=>r})},58393:(e,t,n)=>{"use strict";function r(e){return{name:"ClickableExtendedCredit",environments:["browser"],data:e}}n.d(t,{v:()=>r})},24261:(e,t,n)=>{"use strict";function r(e){return{name:"ClickableExtendedCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{Y:()=>r})},79177:(e,t,n)=>{"use strict";function r(e){return{name:"ClickableTrackCredit",environments:["browser","device","desktop"],data:e}}n.d(t,{x:()=>r})},68067:(e,t,n)=>{"use strict";function r(e){return{name:"ClickableTrackCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{d:()=>r})},91625:(e,t,n)=>{"use strict";function r(e){return{name:"ConnectDevicePickerClosed",environments:["device","desktop","browser"],data:e}}n.d(t,{n:()=>r})},72586:(e,t,n)=>{"use strict";function r(e){return{name:"DeeplinkOpen",environments:["browser","device"],data:e}}n.d(t,{K:()=>r})},39828:(e,t,n)=>{"use strict";function r(e){return{name:"KmInteraction",environments:["browser"],data:e}}n.d(t,{p:()=>r})},76362:(e,t,n)=>{"use strict";function r(e){return{name:"KmInteractionNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>r})},48591:(e,t,n)=>{"use strict";function r(e){return{name:"KmPageView",environments:["browser"],data:e}}n.d(t,{v:()=>r})},7088:(e,t,n)=>{"use strict";function r(e){return{name:"KmPageViewNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{t:()=>r})},24643:(e,t,n)=>{"use strict";function r(e){return{name:"MinimumLyricsCharactersSeen",environments:["device","desktop"],data:e}}n.d(t,{N:()=>r})},1486:(e,t,n)=>{"use strict";function r(e){return{name:"PodcastAdCtaCardEvent",environments:["desktop"],data:e}}n.d(t,{$:()=>r})},31722:(e,t,n)=>{"use strict";function r(e){return{name:"ScrollTrackCredits",environments:["browser","desktop","device"],data:e}}n.d(t,{d:()=>r})},3018:(e,t,n)=>{"use strict";function r(e){return{name:"ScrollTrackCreditsNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{W:()=>r})},25557:(e,t,n)=>{"use strict";function r(e){return{name:"Share",environments:["browser","device"],data:e}}n.d(t,{G:()=>r})},11886:(e,t,n)=>{"use strict";function r(e){return{name:"WwwAnalytics",environments:["browser"],data:e}}n.d(t,{t:()=>r})},12870:(e,t,n)=>{"use strict";function r(e){return{name:"WwwAnalyticsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>r})},82789:(e,t,n)=>{"use strict";function r(e){return{name:"WwwExperiments",environments:["browser"],data:e}}n.d(t,{x:()=>r})},88914:(e,t,n)=>{"use strict";function r(e){return()=>({name:"context_application",data:e})}n.d(t,{UR:()=>r,jx:()=>a,sr:()=>s,yD:()=>l,IE:()=>c,Hv:()=>u,Mb:()=>d});var i=n(73157);function o(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");const t=e.split("").reduce(((e,t,n)=>n%2==0?(e.push(t),e):(e[e.length-1]=`${e[e.length-1]}${t}`,e)),[]),n=String.fromCharCode.apply(null,t.map((e=>{const t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return i.Base64.encode(n)}function a(e){const t=o(e);return()=>({name:"context_client_id",data:{value:t}})}function s(e){return()=>({name:"context_correlation_id",data:{value:e}})}function l(e){return()=>({name:"context_device",data:e})}function c(e){const t=o(e);return()=>({name:"context_installation_id",data:{value:t}})}function u(e){return()=>({name:"context_os",data:e})}function d(e){if(!e&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return()=>({name:"context_user_agent",data:{value:e||navigator.userAgent}})}},48510:(e,t,n)=>{"use strict";var r;n.d(t,{_S:()=>h,mi:()=>w}),function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(r||(r={}));var i,o=n(78578);!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(i||(i={}));const a="true"==={NODE_ENV:"production",DEBUG_EVENT_SENDER:!1,DEBUG_SEMANTIC_METRICS:void 0,PRODUCT_NAME:"desktop"}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=i.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){if(!(this._enabled||this._level&t))return;const r={args:n,type:e,tag:this.tag};this._predicate(r)||console[e](this._tagText,...n)}matchesTag(e){const t=Array.isArray(e)?e:e.split("."),n=this._tagParts;if(t.length>n.length)return!1;for(let e=0,r=t.length;ee.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:e}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{body:r,headers:i,status:o}=n,a=this._authorize;if(200!==o||!r)return m.warn("Upload request failed",n),this.emit(h.UPLOAD_REQUEST_FAILED,{authorize:a,status:o}),this._backoff=!0,Promise.resolve(e);const s=[],l=[],c=[];if(r.error&&r.error.length){m.info("response errors",e,r.error);for(let t=0,n=r.error.length;t0&&this.emit(h.UPLOAD_FAILED,{authorize:a,rejected:c,will_retry:l}),d>0&&this.emit(h.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:d}),Promise.resolve(s)}upload(e,t=[]){let n=t;if(!e.length)return Promise.resolve({nack:n,backoff:this._backoff});const r=[...e];return this._uploadBatch(r.splice(0,20)).then((e=>{if(n=[...n,...e],this._backoff)n=[...n,...r];else if(r.length)return this.upload(r,n);return{nack:n,backoff:this._backoff}}))}lastUpload(e){return e.length?this._uploadBatch(e.splice(0,100),!0).then((e=>0===e.length),(()=>!1)):Promise.resolve(!0)}shouldBackoff(){return this._backoff}}function _(e){return new y(e)}var b,E=n(42427),S=n(20809);!function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(b||(b={}));const T="2.2.0";var O=n(603);class A{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class C{_addEventsToEventSenderStatsData(e,t){Object.keys(t).map((n=>{for(let r=0;r{if(A.isMissingFromArray(t.sequence_ids,e))t.sequence_ids.push(e),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(n).length);else{const r=t.sequence_ids.indexOf(e);t.loss_stats_num_entries_per_sequence_id[r]+=Object.keys(n).length}Object.entries(n).map((([e,n])=>{A.pushToArrIfMissing(t.event_names,e);const r=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(r);const i=Object.keys(n);for(let e=0;ee&&t)).catch((()=>!1))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this._instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}initFlush(e){const t=this._uploaders[e].shouldBackoff(),{ceiling:n,maxDuration:r,baseTime:i}=this._backoffTimeSettings;return E.V.init((()=>this.upload(e)),{curve:"exponential",backoffInitial:t,retryPredicate:()=>this._transport.isOnline(),ceiling:n,baseTime:t?n:i,maxDuration:r})}waitForConnection(){return new Promise((e=>{this._transport.once(o.TransportEvent.CONNECTION_ONLINE,(()=>e()))}))}upload(e){return this._uploaders[e].upload(this._events[e].splice(0)).then((t=>{if(t.nack.length)throw this._events[e]=t.nack.concat(this._events[e]),new Error("Backoff requested");return t}))}sendToGabito(e){const t=e?"authorized":"unauthorized";this._transport.isOnline()||this._ongoingUploads[t]||(this._ongoingUploads[t]=this.waitForConnection());const n=this._ongoingUploads[t];if(n)return this._uploadWaiting[t]||(this._uploadWaiting[t]=!0,this._ongoingUploads[t]=n.then((()=>(this._ongoingUploads[t]=!1,this._uploadWaiting[t]=!1,this.sendToGabito(e))))),this._ongoingUploads[t];if(!this._events[t].length)return Promise.resolve({nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()});if(!this._hasFlushed||Date.now()-this._essLastSent.getTime()>18e4){this._hasFlushed=!0;const e=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(e)}const r=this.initFlush(t).then((e=>(this._ongoingUploads[t]=!1,e))).catch((()=>(this._ongoingUploads[t]=!1,this._transport.isOnline()?(L.consoleLogger.warn(`The events in the queue could not be uploaded. Throwing away ${this._events[t].length} ${t} events.`),this._events[t]=[],{nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()}):this.sendToGabito(e))));return this._ongoingUploads[t]=r,r}storeEvent(e,t){const n=this.makeEvent(t);this._events[e?"authorized":"unauthorized"].push(n)}makeEvent(e){const t=this._sequenceIdGenerator;return{sequence_id:t.getSequenceId(),sequence_number:t.nextSequenceNumber(e.name),event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:T,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:e.data})}}validateEventData(e,t,n){let r=null;if(e.name){if(function(e){let t=e.length,n=t;for(;n--;){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}(JSON.stringify(e.data))>5e3)r=b.PAYLOAD_SIZE_LIMIT_EXCEEDED;else if(t&&n&&!n())return b.UNKNOWN_OWNER}else r=b.INVALID_NAME;return r||null}checkIsEventAuthorized(e){return!e.endsWith("NonAuth")}flush(e=!0){return this.sendToGabito(e).then((()=>{})).catch((()=>{}))}flushAll(){return Promise.all([this.sendToGabito(!0),this.sendToGabito(!1)]).then((()=>{})).catch((()=>{}))}finalFlush(){return this.uploadFlush()}log(e,t={}){this.send(e,t)}send(e,{flush:t=!0}={}){const n=this.checkIsEventAuthorized(e.name);let r=this.validateEventData(e,n,this._ownerProvider);if(r===b.UNKNOWN_OWNER&&(L.consoleLogger.warn(`Trying to send an authenticated event without a current owner: ${e.name}`),r=null),r){const t=(0,S.t)({event_name:e.name,reject_reason:r});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${r}`))}return this.storeEvent(n,e),t?this.flush(n):Promise.resolve()}hasContext(...e){return e.every((e=>!!this._instanceContexts[e]))}}function w(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new L(Object.assign(Object.assign({},e),{uploaders:{authorized:_(t),unauthorized:_(Object.assign(Object.assign({},t),{authorize:!1}))}}))}L.consoleLogger=f("EventSender")},68723:(e,t,n)=>{"use strict";n.d(t,{Yi:()=>R,_j:()=>ze,cI:()=>f,ih:()=>p,cJ:()=>H.cJ,zq:()=>h,nA:()=>H.nA,BE:()=>Be});var r,i=n(27982),o=n(64638);!function(e){e.USER_INFO_REQUEST_EMPTY_RESPONSE="USER_INFO_REQUEST_EMPTY_RESPONSE",e.USER_INFO_REQUEST_FAILED_WITH_STATUS="USER_INFO_REQUEST_FAILED_WITH_STATUS",e.HARMONY_NO_TRACKS_LOADED="HARMONY_NO_TRACKS_LOADED",e.HARMONY_OPERATION_FORBIDDEN="HARMONY_OPERATION_FORBIDDEN",e.HARMONY_LOCAL_PLAYER_DISABLED="HARMONY_LOCAL_PLAYER_DISABLED",e.HARMONY_INVALID_DESCRIPTOR_ID="HARMONY_INVALID_DESCRIPTOR_ID",e.CONNECTAPI_CLIENT_INVALID_ARGUMENTS="CONNECTAPI_CLIENT_INVALID_ARGUMENTS",e.CONNECTAPI_CLIENT_MISSING_DEVICE_ID="CONNECTAPI_CLIENT_MISSING_DEVICE_ID",e.CONNECTAPI_CLIENT_NO_CONNECTION_ID="CONNECT_API_CLIENT_NO_CONNECTION_ID",e.CONNECTAPI_CLIENT_NO_DEVICE="CONNECTAPI_CLIENT_NO_DEVICE",e.CONNECTAPI_CLIENT_NO_SESSION_ID="CONNECTAPI_CLIENT_NO_SESSION_ID",e.CONNECTAPI_CLIENT_NO_STATE="CONNECTAPI_CLIENT_NO_STATE",e.CONNECTAPI_CLIENT_INVALID_POSITION="CONNECT_API_CLIENT_INVALID_POSITION",e.CONNECTAPI_CLIENT_INVALID_VOLUME="CONNECT_API_CLIENT_INVALID_VOLUME",e.CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED="CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED",e.CONNECTAPI_REGISTRATION_FAILED_WITH_STATUS="CONNECTAPI_REGISTRATION_FAILED_WITH_STATUS",e.CP_NO_DEVICE_DESCRIPTOR="CP_NO_DEVICE_DESCRIPTOR",e.CP_NO_CONNECTION_ID="CP_NO_CONNECTION_ID",e.CP_REGISTRATION_FAILED_WITH_STATUS="CP_REGISTRATION_FAILED_WITH_STATUS",e.CP_REQUEST_FAILED_WITH_STATUS="CP_REQUEST_FAILED_WITH_STATUS",e.CP_NO_DEVICE_ID="CP_NO_DEVICE_ID",e.CP_NO_COMMAND_ID="CP_NO_COMMAND_ID",e.CP_NO_RESPONSE_BODY="CP_NO_RESPONSE_BODY",e.CP_NO_TRACKING_DATA="CP_NO_TRACKING_DATA",e.CP_INVALID_STATE="CP_INVALID_STATE",e.QUEUE_MANAGER_NO_STATE="QUEUE_MANAGER_NO_STATE",e.QUEUE_OPERATION_STALE_REVISION="QUEUE_OPERATION_STALE_REVISION",e.TP_NO_RESPONSE_BODY="TP_NO_RESPONSE_BODY",e.TP_REGISTRATION_FAILED_NON_PREMIUM="TP_REGISTRATION_FAILED_NON_PREMIUM",e.TP_REGISTRATION_FAILED_WITH_STATUS="TP_REGISTRATION_FAILED_WITH_STATUS",e.TP_MAX_SUBSCRIPTIONS_REACHED="TP_MAX_SUBSCRIPTIONS_REACHED",e.TP_UPDATE_REQUEST_EMPTY_RESPONSE="TP_UPDATE_REQUEST_EMPTY_RESPONSE",e.TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS="TP_PARSE_STATE_UPDATE_FAILED_WITH_STATUS",e.TP_UNKNOWN_COMMAND="TP_UNKNOWN_COMMAND",e.TP_CANNOT_CREATE_STATE_REF="TP_CANNOT_CREATE_STATE_REF",e.TP_MISSING_INITIAL_STATE="TP_MISSING_INITIAL_STATE",e.TP_INVALID_STATE_REFERENCE="TP_INVALID_STATE_REFERENCE",e.TP_CONFLICT_REQUEST_FAILED_WITH_STATUS="TP_CONFLICT_REQUEST_FAILED_WITH_STATUS"}(r||(r={}));n(27105);var a=n(78578);var s=n(33178),l=n(79399),c=n(85406);const u="@local",d=65535;var p,f,h;!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_ERROR="authentication_error",e.AUTOPLAY_FAILED="autoplay_failed",e.BEFORE_DISCONNECT="before_disconnect",e.BEFORE_VOLUME_CHANGE="before_volume_change",e.BUFFER_STALLED="stalled",e.BUFFERING_END="buffering_end",e.BUFFERING_START="buffering_start",e.CONNECTED="connected",e.CONNECTION_ERROR="connection_error",e.DEVICES_CHANGED="devices_changed",e.DEVICE_DEACTIVATED="device_deactivated",e.DEVICE_DESCRIPTOR_CHANGED="descriptor_changed",e.DISCONNECTED="disconnected",e.DURATION_CHANGED="duration_changed",e.ERROR="error",e.LAST_ACTIVE_DEVICE_INFO_CHANGED="last_active_device_info_changed",e.LOCAL_CONTEXT_ENDED="local_context_ended",e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.LOCAL_PLAYER_ENABLED="local_player_enabled",e.LOCAL_PLAYER_LOGGED_OUT="local_player_logged_out",e.LOGGED_OUT="logged_out",e.MAX_LIST_ERRORS_REACHED="max_list_errors_reached",e.MAX_SUBSCRIPTIONS_REACHED="max_subscriptions_reached",e.PLAYBACK_CAPPED="playback_capped",e.PLAYER_INITIALIZATION_DONE="player_initialization_done",e.PLAYER_INITIALIZATION_FAILED="player_initialization_failed",e.PRODUCT_STATE_CHANGED="product_state_changed",e.PROGRESS="progress",e.PLAYER_QUEUE_CHANGED="player_queue_changed",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.REMOTE_OBSERVER_DISABLED="remote_observer_disabled",e.REMOTE_OBSERVER_ENABLED="remote_observer_enabled",e.SERVICE_REGISTRATION_ERROR="service_registration_error",e.STATE_CHANGED="state_changed",e.STOPPED_ON_BACKGROUND="stopped_on_background",e.TRACK_ENDED="track_ended",e.UNRECOVERABLE_FAILURE="unrecoverable_failure",e.VIDEO_ELEMENT_APPENDED="video_element_appended",e.VIDEO_ELEMENT_REMOVED="video_element_removed",e.VOLUME_CHANGED="volume_changed",e.DISPLAYED_CUES_CHANGED="displayed_cues_changed",e.SUBTITLE_LANGUAGES_LOADED="subtitle_languages_loaded",e.SPEED_CHANGED="speed_changed"}(p||(p={})),function(e){e.CLOUD_PLAYBACK="cloud-playback",e.CONNECT_API="connect-api",e.HARMONY="harmony",e.PLAYBACK="playback",e.TRACK_PLAYBACK="track-playback",e.TRANSPORT="transport"}(f||(f={})),function(e){e[e.OFF=0]="OFF",e[e.CONTEXT=1]="CONTEXT",e[e.TRACK=2]="TRACK"}(h||(h={}));class v extends Error{constructor(e,t){super(t),this.status=-1,this.unrecoverable=!1,this.debug={},this.code=e,this.name="HarmonyError"}static fatal(e,t){const n=new v(e,t);return n.unrecoverable=!0,n}}function m(e,t){return!e&&!t||!(!e||!t)&&(e.id===t.id&&e.is_active===t.is_active&&e.is_controllable===t.is_controllable&&e.is_observable===t.is_observable&&e.local===t.local&&e.name===t.name&&e.type===t.type&&e.version===t.version&&e.volume===t.volume)}class g extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.code=e,this.name="PlayerQueueError"}}function y(e,t={ignoreMetaForTrack:!1}){var n,r,i,o;const a=[],s=[];let l=!1,c=!1;if(!(null==e?void 0:e.length))return{items:a,tracks:s,hasQueuedTracks:l};for(const u of e){const e="spotify:delimiter"===u.uri||/^spotify:meta:/.test(u.uri)?"meta":"track",d=`${u.uid}:::${null===(n=u.metadata)||void 0===n?void 0:n.iteration}`,p={type:e,uri:u.uri,uid:u.uid,qid:d,metadata:u.metadata||{},hidden:"true"===(null===(r=u.metadata)||void 0===r?void 0:r.hidden),queued:"true"===(null===(i=u.metadata)||void 0===i?void 0:i.is_queued),provider:u.provider,removed_reasons:u.removed,$blck_rs:u.blocked};p.queued&&(l=!0),a.push(p),"meta"===p.type?c=!0:!t.ignoreMetaForTrack&&c||"track"!==p.type||p.hidden||(null===(o=p.removed_reasons)||void 0===o?void 0:o.length)||s.push(p)}return{items:a,tracks:s,hasQueuedTracks:l}}function _(e,t={}){if(!Array.isArray(e))throw new TypeError("Items is not an array.");if(!e.length)return[];const n=[];for(let r of e){if(!r)continue;"string"==typeof r&&(r={type:"track",uri:r});const e={uri:r.uri,uid:r.uid,metadata:r.metadata||{},removed:r.removed_reasons,blocked:r.$blck_rs,provider:r.provider};(r.queued||t.queued)&&(e.metadata.is_queued="true",e.provider="queue"),(r.hidden||"meta"===r.type)&&(e.metadata.hidden="true"),n.push(e)}return n}function b(e){const[t,n]=e.split(":::"),r={type:"track",uid:t};return n&&(r.metadata={iteration:n}),r}class E extends s.vp{constructor(e){super(),this._hasInitialState=!1,this._reportInactiveQueues=!1,this._onlyLocalQueue=!1,this._currentPlayerState=null,this._currentInternalQueue=null,this._currentQueue=null,this._hasQueuedTracks=!1,this._connectClient=e.connectClient,this._runner=e.runner||(e=>e()),this._parsePlayerState=this._parsePlayerState.bind(this),this._onlyLocalQueue=!!e.onlyLocalQueue,this._reportInactiveQueues=!!e.reportInactiveQueues,this._connectClient.on("player_state_changed",this._onPlayerStateChanged.bind(this)),e.initialContextPlayerState&&this._parsePlayerState(e.initialContextPlayerState)}static create(e){return new E(e)}_onPlayerStateChanged(e){const{playerState:t,orphaned:n,isLocal:r}=e.data;this._parsePlayerState(t,n,r)}_parsePlayerState(e,t,n){var r,i,o;if(this._hasInitialState=!0,this._onlyLocalQueue&&!n||!this._reportInactiveQueues&&t)this._currentPlayerState=null,this._currentInternalQueue=null,this._currentQueue=null;else if(this._currentPlayerState=null!=e?e:null,e){if(e.queue_revision===(null===(r=this._currentInternalQueue)||void 0===r?void 0:r.revision))return null;this._hasQueuedTracks=!1;const t={ignoreMetaForTrack:null===(i=e.options)||void 0===i?void 0:i.repeating_context},n=e.queue_revision,a=y([e.track]).items[0],s=y(e.next_tracks,t),l=y(e.prev_tracks,t);this._hasQueuedTracks=s.hasQueuedTracks;const c={uri:e.context_uri,metadata:null!==(o=e.context_metadata)&&void 0!==o?o:void 0};this._currentInternalQueue={revision:n,context:c,current_track:a,next_items:s.items,previous_items:l.items},this._currentQueue={revision:n,context:c,current_track:a,next_tracks:s.tracks,previous_tracks:l.tracks}}else this._hasQueuedTracks=!1,this._currentInternalQueue=null,this._currentQueue=null;return this.emit(p.PLAYER_QUEUE_CHANGED,{internalPlayerQueue:this._currentInternalQueue,playerQueue:this._currentQueue}),this._currentInternalQueue}_setQueueNext(e,t){const n=this._currentPlayerState;if(!n)return Promise.reject(new g(r.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const i={next_tracks:e,prev_tracks:n.prev_tracks,queue_revision:n.queue_revision};return this._runner((()=>this._connectClient.setQueue(i,t)),t)}_appendQueued(e,t){var n,i;const o=this._currentPlayerState;if(!o)return Promise.reject(new g(r.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const a=Array.from(null!==(n=o.next_tracks)&&void 0!==n?n:[]);if(this._hasQueuedTracks){let t=!1;for(let n=0,r=a.length;n{this.on(p.PLAYER_QUEUE_CHANGED,(t=>{e(t.data.internalPlayerQueue)}))}))}getPlayerQueue(){return this._hasInitialState?Promise.resolve(this._currentQueue):new Promise((e=>{this.on(p.PLAYER_QUEUE_CHANGED,(t=>{e(t.data.playerQueue)}))}))}setInternalPlayerQueue(e,t,n={ignoreRevision:!1}){if(!this._currentPlayerState)return Promise.reject(new g(r.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));if(e.revision!==this._currentPlayerState.queue_revision&&!n.ignoreRevision)return Promise.reject(new g(r.QUEUE_OPERATION_STALE_REVISION,"Cannot perform operation; revision is stale."));const i={next_tracks:_(e.next_items),prev_tracks:_(e.previous_items),queue_revision:n.ignoreRevision?void 0:this._currentPlayerState.queue_revision};return this._runner((()=>this._connectClient.setQueue(i,t)),t)}addToQueue(e,t){if(!Array.isArray(e))return Promise.reject(new TypeError("Argument `items` must be an array."));const n=_(e,{queued:!0});return n.length?1===n.length?this._runner((()=>this._connectClient.addToQueue(n[0],t)),t):this._appendQueued(n,t):Promise.resolve(!1)}removeNext(e,t){var n,i,o;const a=this._currentPlayerState;if(!a)return Promise.reject(new g(r.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));let s;s="string"==typeof e?b(e):e;const l=Array.from(null!==(n=a.next_tracks)&&void 0!==n?n:[]),c=l.length;for(let e=0;e{this._onDeviceStateChanged(e.data)})),t.on("devices_changed",this._onDevicesChanged.bind(this)),t.on("state_changed",this._onPlayerStateChanged.bind(this)),t.on("progress",this._onControllerProgress.bind(this)),this.proxyEmitAll(t,{max_subscriptions_reached:p.MAX_SUBSCRIPTIONS_REACHED,device_deactivated:p.DEVICE_DEACTIVATED}),t.on("registered",this.emit.bind(this,p.REMOTE_OBSERVER_ENABLED,null)),t.on("deregistered",this.emit.bind(this,p.REMOTE_OBSERVER_DISABLED,null));const n=this._streamer;n?(n.on("deregistered",this._onStreamerDeregistered.bind(this)),n.on("registered",this._onStreamerRegistered.bind(this)),n.on("registration_aborted",this._onStreamerRegistrationAborted.bind(this)),n.on("state_changed",this._onStreamerStateChanged.bind(this)),n.on("stopped_on_background",this._onStreamerStoppedOnBackground.bind(this)),n.on("streamer_seek_handled",this._onSeekHandled.bind(this)),this.proxyEmitSync(n,"before_volume_change",p.BEFORE_VOLUME_CHANGE),this.proxyEmit(n,"autoplay_failed",p.AUTOPLAY_FAILED),this.proxyEmit(n,"stalled",p.BUFFER_STALLED),this.proxyEmit(n,"buffering_end",p.BUFFERING_END),this.proxyEmit(n,"buffering_start",p.BUFFERING_START),this.proxyEmit(n,"duration_changed",p.DURATION_CHANGED),this.proxyEmit(n,"max_list_errors_reached",p.MAX_LIST_ERRORS_REACHED),this.proxyEmit(n,"max_subscriptions_reached",p.MAX_SUBSCRIPTIONS_REACHED),this.proxyEmit(n,"playback_capped",p.PLAYBACK_CAPPED),this.proxyEmit(n,"player_initialization_done",p.PLAYER_INITIALIZATION_DONE),this.proxyEmit(n,"player_initialization_failed",p.PLAYER_INITIALIZATION_FAILED),this.proxyEmit(n,"progress",p.PROGRESS),this.proxyEmit(n,"registration_error",p.SERVICE_REGISTRATION_ERROR),this.proxyEmit(n,"track_ended",p.TRACK_ENDED),this.proxyEmit(n,"video_element_appended",p.VIDEO_ELEMENT_APPENDED),this.proxyEmit(n,"video_element_removed",p.VIDEO_ELEMENT_REMOVED),this.proxyEmit(n,"volume_changed",p.VOLUME_CHANGED),this.proxyEmit(n,"displayed_cues_changed",p.DISPLAYED_CUES_CHANGED),this.proxyEmit(n,"subtitle_languages_loaded",p.SUBTITLE_LANGUAGES_LOADED),this.proxyEmitSync(n,"internal_endcontent","internal_endcontent"),n.on("context_ended",this.emit.bind(this,p.LOCAL_CONTEXT_ENDED,null)),n.on("logged_out",this.emit.bind(this,p.LOCAL_PLAYER_LOGGED_OUT,null))):(this._disableLocalTarget(),this.on(p.AUTHENTICATED,(()=>{this.emit(p.LOCAL_PLAYER_DISABLED,null)})))}_createStreamerDeferred(){this._deferredStreamer=(0,c.$)(),this._deferredStreamer.promise.catch((function(){}))}_isTargetIdLocal(e){return e?e===u?Promise.resolve(!0):this._client.getDeviceDescriptor().then((function(t){return e===t.getId()})):Promise.resolve(!!this._localPlayback)}_onStreamerRegistered(e){this._deferredStreamer.resolve(e.data),this._createStreamerDeferred(),this._deferredStreamer.resolve(e.data),this._localPlayerEnabled=!0,this._controller.register(),this.emit(p.LOCAL_PLAYER_ENABLED,null)}_onStreamerDeregistered(){this._disableLocalTarget(),this.emit(p.LOCAL_PLAYER_DISABLED,null)}_onStreamerRegistrationAborted(){this._disableLocalTarget(),this._enableControllerWithoutStreamer&&this._controller.register(),this.emit(p.LOCAL_PLAYER_DISABLED,null)}_disableLocalTarget(){this._localPlayerEnabled=!1;const e=new v(r.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot perform command; local player is disabled.");this._deferredStreamer.reject(e),this._createStreamerDeferred(),this._deferredStreamer.reject(e)}_onStreamerConnect(){return this._deferredStreamer.promise}_onDeviceStateChanged(e){const t=!!this._localPlayback,n=(e=!1)=>{this._generateLocalDeviceInfo(e).then((e=>{this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,{deviceInfo:e,hasOrphanedState:!1})}))};if(this._localPlayerEnabled&&e.hasOrphanedState&&this._claimInactivePlayerStates)return this._hasFakeState=!0,void n(!0);if(this._hasFakeState=!1,this._localPlayback=!(!e.deviceInfo||!e.deviceInfo.local),this._localPlayback){if(!this._streamer)throw new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");this._streamer.getVolume().then((t=>{e.deviceInfo&&(e.deviceInfo.volume=t),this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,e)})).catch((function(){}))}else this._onlyLocalState?(this._localPlayback||t)&&n():this.emit(p.LAST_ACTIVE_DEVICE_INFO_CHANGED,e)}_onDevicesChanged(e){const t=this._lastDeviceList;this._parseDeviceList(e.data).then((e=>{(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Invalid devices list.");if(e.length!==t.length)return!1;for(let n=0,r=e.length;nPromise.resolve(e)));return t.length&&e.localDevice?this._hasFakeState&&e.localDevice&&(e.localDevice.is_active=!0):t.push(this._generateLocalDeviceInfo(this._hasFakeState)),Promise.all(t).then((e=>(this._lastDeviceList=e,e)))}_triggerLocalStateChanges(e){this._generateLocalDeviceInfo().then((e=>{this._onDeviceStateChanged({deviceInfo:e,hasOrphanedState:!1})})),this.emit(p.STATE_CHANGED,e)}_canStartNewContext(e){return this._runOnDevice(e,(()=>this._streamer?Promise.resolve(!0):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided."))),(()=>Promise.resolve(!0)),!0)}_activateElement(){this._autoActivateElement=!1,this._streamer&&this._streamer.activateElement().catch((()=>{}))}_runOnDevice(e,t,n,r){return this._hasFakeState&&!r?(this._autoActivateElement&&this._activateElement(),this._claimStateAndRun(n)):this._isTargetIdLocal(e).then((e=>e?this._onStreamerConnect().then(t):n()))}_claimStateAndRun(e){return this._onStreamerConnect().then((()=>(this._hasFakeState=!1,Promise.all([this._controller.transfer(u,{paused:!0}),new Promise(((e,t)=>{this._streamer?this._streamer.once("track_loaded",e):t(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided."))}))])))).then((()=>e()))}_generateLocalDeviceInfo(e=!1){const t=this._client,n=this._streamer;let r=Promise.resolve(!1),i=Promise.resolve(-1);return this._localPlayerEnabled&&(e?r=Promise.resolve(!0):n&&(r=n.getCurrentState().then((e=>!!e))),n&&(i=n.getVolume())),Promise.all([t.getClientDescriptor(),t.getSDKId(),r,i]).then((([e,t,n,r])=>{var i;const o={hifi_status:{fully_supported:void 0,user_eligible:void 0,device_supported:null===(i=e.capabilities)||void 0===i?void 0:i.lossless_playback}};return{hidden:this._hidden,id:e.id,is_active:n,is_group:!1,is_being_activated:!1,is_controllable:this._localPlayerEnabled,is_observable:!!this._localPlayerEnabled&&!this._hidden,local:!0,metadata:e.metadata||{},name:e.name,type:e.type,version:t,volume:r,capabilities:{supports_lossless_audio:!1},playback_features:o,has_inactive_player_state:this._hasFakeState}}))}_movePosition(e,t){return this.getCurrentState().then((n=>{if(!n||isNaN(n.position))return Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Seeking not allowed with invalid track."));const i=e,o=Math.min(n.duration,Math.max(0,n.position+i));return this.seek(o,t)}))}_prepareSkipTrack(e){let t;return t="string"==typeof e?b(e):e,t}_cycleRepeatMode(e){return this.getCurrentState().then((t=>{if(!t)return Promise.reject(new v(r.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));let n=null;const i=t.disallows;switch(t.repeat_mode){case h.OFF:if(i.toggling_repeat_context){if(i.toggling_repeat_track)return Promise.resolve(!1);n=h.TRACK}else n=h.CONTEXT;break;case h.CONTEXT:n=i.toggling_repeat_track?h.OFF:h.TRACK;break;case h.TRACK:default:n=h.OFF}return this.setRepeatMode(n,e)}))}_onSeekHandled(e){this._controller.seek(e.data.position)}getClientDescriptor(){return this._client.getClientDescriptor()}getProductState(){return this._client.getProductState()}getPublicTransport(){return this._client.getPublicTransport()}getUserInfo(){return this._client.getUserInfo()}getVersionDescriptor(){return this._client.getVersionDescriptor()}logAppMetrics(e,t){return this._client.logAppMetrics(e,t)}setName(e){return this._client.setName(e)}setNameTemplate(e){return this._client.setNameTemplate(e)}getContextPlayerState(){return this._controller.getContextPlayerState()}updateCurrentContext(e,t){return this._controller.updateCurrentContext(e,t)}getLastActiveDevice(){return this._onlyLocalState||this._hasFakeState?this._generateLocalDeviceInfo(this._hasFakeState):this._controller.getActiveDevice().then((e=>(null==e?void 0:e.local)&&this._streamer?(e.hidden=this._hidden,this._streamer.getVolume().then((t=>(e.volume=t,e)))):e))}getCurrentState(){if(!this._onlyLocalState&&(this._preferController||!this._localPlayback)){const e=!this._localPlayerEnabled||!this._claimInactivePlayerStates;return this._controller.getCurrentState(e).then((e=>!this._preferController&&this._localPlayback?this.getCurrentState():e))}return this._onStreamerConnect().then(this._streamer.getCurrentState.bind(this._streamer))}togglePlay(e){return this._runOnDevice(e,(()=>this._streamer.togglePlay()),this._controller.togglePlay.bind(this._controller,e))}pause(e){return this._runOnDevice(e,(()=>this._streamer.pause()),this._controller.pause.bind(this._controller,e))}resume(e){return this._runOnDevice(e,(()=>this._streamer.resume()),this._controller.resume.bind(this._controller,e))}playURI(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playURI(e,t,n))))}playPages(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playPages(e,t,n))))}playTracks(e,t,n){return this._canStartNewContext(t).then((()=>(this._autoActivateElement&&this._activateElement(),this._controller.playTracks(e,t,n))))}nextTrack(e,t){const n={};let r=()=>this._streamer.nextTrack(l.K.FORWARD_BUTTON);const i=this._controller.nextTrack.bind(this._controller,e,n);return(null==t?void 0:t.track)&&(r=i,n.track=this._prepareSkipTrack(t.track)),this._runOnDevice(e,r,i)}smartPreviousTrack(e){return this.getCurrentState().then((t=>{if(!t)return Promise.reject(new v(r.HARMONY_NO_TRACKS_LOADED,"No current state."));return(t.disallows||{}).seeking||t.position<3e3&&t.track_window&&t.track_window.previous_tracks&&t.track_window.previous_tracks.length>0?this.previousTrack(e):this.seek(0,e)}))}previousTrack(e,t){const n={};let r=()=>this._streamer.previousTrack(l.K.FORWARD_BUTTON);const i=this._controller.previousTrack.bind(this._controller,e,n);return(null==t?void 0:t.track)&&(r=i,n.track=this._prepareSkipTrack(t.track)),this._runOnDevice(e,r,i)}seek(e,t){return this._runOnDevice(t,(()=>this._streamer.seek(e)),this._controller.seek.bind(this._controller,e,t))}seekForward(e=15e3,t){return this._movePosition(e,t)}seekBackward(e=15e3,t){return this._movePosition(-1*e,t)}getVolume(){return this._streamer?this._streamer.getVolume():Promise.resolve(-1)}setVolume(e,t){return this._runOnDevice(t,(()=>this._streamer.setVolume(e)),this._controller.setVolume.bind(this._controller,e),!0)}getVideoProfiles(){if(!this._streamer)throw new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");return this._streamer.getVideoVariants()}setPreferredBitrate(e){if(!this._streamer)throw new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");return this._streamer.setPreferredBitrate(e)}getDevices(){return this._controller.getDevices().then(this._parseDeviceList.bind(this))}setQueue(e,t,n){console.warn("Harmony.setQueue is deprecated; migrate to new PlayerQueue API");const r=this._controller.setQueue.bind(this._controller,e,t,n);return this._runOnDevice(n,r,r)}addToQueue(e,t){const n=e.map((e=>"string"==typeof e?e:e.uri));return this._controller.getQueueManager().addToQueue(n,t)}setShuffle(e,t){const n=this._controller.setShuffle.bind(this._controller,e,t);return this._runOnDevice(t,n,n)}toggleShuffle(e){const t=this._controller.toggleShuffle.bind(this._controller,e);return this._runOnDevice(e,t,t)}setRepeatMode(e,t){const n=this._controller.setRepeatMode.bind(this._controller,e,t);return this._runOnDevice(t,n,n)}cycleRepeatMode(e){const t=this._cycleRepeatMode.bind(this,e);return this._runOnDevice(e,t,t)}transfer(e,t){const n=e||u,r=this._controller.transfer.bind(this._controller,n,t);return this._autoActivateElement&&this._activateElement(),this._runOnDevice(n,r,r,!0)}logout(e){return this._controller.logout(e||u)}activateElement(){return this._streamer?this._streamer.activateElement():Promise.reject(new v(r.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot activate element; local player is disabled."))}getQueueManager(){return this._controller.getQueueManager(((e,t)=>this._runOnDevice(t,e,e)),{reportInactiveQueues:this._claimInactivePlayerStates,onlyLocalQueue:this._onlyLocalState,reportInitial:this._hasFakeState||this._localPlayback})}hideSubtitles(){return this._localPlayback?this._streamer?this._streamer.hideSubtitles():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot hide subtitles on remote player."))}showSubtitles(){return this._localPlayback?this._streamer?this._streamer.showSubtitles():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."))}areSubtitlesShown(){return this._localPlayback?this._streamer?this._streamer.areSubtitlesShown():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."))}getSubtitleLanguages(){return this._localPlayback?this._streamer?this._streamer.getSubtitleLanguages():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle languages on remote player."))}getActiveSubtitleLanguage(){return this._localPlayback?this._streamer?this._streamer.getActiveSubtitleLanguage():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle language on remote player."))}setSubtitleLanguage(e){return this._localPlayback?this._streamer?this._streamer.setSubtitleLanguage(e):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot set subtitle languages on remote player."))}deactivateSubtitleEvents(){return this._localPlayback?this._streamer?this._streamer.activateSubtitleEvents():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot deactivate subtitle events on remote player."))}activateSubtitleEvents(){return this._localPlayback?this._streamer?this._streamer.activateSubtitleEvents():Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot activate subtitle events on remote player."))}setBackgrounded(e){return this._localPlayback?this._streamer?this._streamer.setBackgrounded(e):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot set background mode on remote player."))}setVideoResolution(e){return this._localPlayback?this._streamer?this._streamer.setVideoResolution(e):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new v(r.HARMONY_OPERATION_FORBIDDEN,"Cannot set preferred video resolution on remote player."))}getMediaConfig(){return this._streamer?this._streamer.getMediaConfig():Promise.reject(new v(r.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot activate element; local player is disabled."))}}var T=n(28667),O=n(65546),A=n(82761);const C="spotify:user:attributes:mutated";class P extends s.vp{constructor(e){super(),this._currentState=null,this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/melody",this._handleUserUpdate=this._handleUserUpdate.bind(this),this._init()}static create(e){return new P(e)}_init(){this.register()}_handleUserUpdate(){clearTimeout(this._debounce),this._debounce=setTimeout((()=>{this._transport.forceTokenRefresh().catch((function(){})),this.getCurrentState(!0).then((e=>{this.emit(A.j.PRODUCT_STATE_CHANGED,{productState:e})}))}),300)}_shouldRetry(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}getCurrentState(e){return!e&&this._currentState?Promise.resolve(this._currentState):this._transport.request(`${this._endpoint}/v1/product_state`,{method:"GET",responseType:"json",retry:{condition:this._shouldRetry}}).then((e=>{if(e.status!==O.G.OK||!e.body)throw this._currentState=null,new Error("Cannot get the user's product state.");return this._currentState=e.body,e.body}))}register(){return this._transport.matchMessages(C,this._handleUserUpdate),Promise.resolve(!0)}deregister(){return this._transport.unmatchMessages(C,this._handleUserUpdate),Promise.resolve(!0)}}var I,R,N=n(31612);!function(e){e.FILE_URLS_MP3="file_urls_mp3",e.FILE_URLS_EXTERNAL="file_urls_external",e.FILE_IDS_MP3="file_ids_mp3",e.FILE_IDS_MP4="file_ids_mp4",e.FILE_IDS_MP4_DUAL="file_ids_mp4_dual",e.FILE_IDS_CBCS="file_ids_mp4_cbcs",e.FILE_IDS_MP4FLAC="file_ids_mp4flac",e.MANIFEST_IDS_VIDEO="manifest_ids_video"}(I||(I={})),function(e){e.UNKNOWN="unknown",e.COMPUTER="computer",e.TABLET="tablet",e.SMARTPHONE="smartphone",e.SPEAKER="speaker",e.TV="tv",e.AVR="avr",e.STB="stb",e.AUDIO_DONGLE="audio_dongle",e.GAME_CONSOLE="game_console",e.CAST_VIDEO="cast_video",e.CAST_AUDIO="cast_audio",e.AUTOMOBILE="automobile",e.SMARTWATCH="smartwatch",e.CHROMEBOOK="chromebook"}(R||(R={}));var k=n(73157);function L(){const e=new Uint8Array(16);crypto.getRandomValues(e);return k.Base62.toHex(e.join(""),40).slice(0,40)}function w(){const e=new Array(27);let t=e.length;for(;t--;)e[t]=Math.floor(8*Math.random());return k.Base62.toHex(e.join(""),40)}const D="undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?L:w,M="_spharmony_device_id";const x={get:function(e,t=!1){if(e&&"string"==typeof e)return e;if(t)return D();let n=localStorage.getItem(M);return n||(n=D(),localStorage.setItem(M,n)),n},generate:D,generateWithCrypto:L,generateWithRandom:w};class U extends s.vp{constructor(e){var t;if(super(),this._platformVersion="",this._metadata={},this._manifestPrependOffset=0,!e)throw new TypeError("Invalid argument `options`.");if(!e.id)throw new TypeError("Argument `options.id` is required.");if(!e.name||!e.model||!e.type)throw new TypeError("Incomplete `options` value.");this._id=e.id,this._type=e.type,this._brand=e.brand,this._model=e.model,this._isGroup=!!e.is_group,this._name=e.name,this._platformName=e.platform_name,this._platformIdentifier=e.platform_identifier,this._platformVersion=e.platform_version||"",this._metadata=e.metadata||{},this._capabilities=e.capabilities||{manifest_formats:[]},this._manifestPrependOffset=(null===(t=this._capabilities.manifest_formats)||void 0===t?void 0:t.length)||0}static create(e){return new U({id:x.get(e.id,e.randomizeId),model:e.model||(0,N._p)("harmony-{{name}}.{{version}}-{{platform}}").toLowerCase(),name:e.nameTemplate?(0,N._p)(e.nameTemplate):e.name||(t=(0,N._p)("Spotify ({{name}}/{{platform}})"),t.replace(/\b[a-z]/g,(e=>e.toUpperCase()))),type:e.type||R.COMPUTER,brand:e.brand||"SpotifyHarmonyGeneric",platform_name:e.platform_name,platform_identifier:e.platform_identifier,platform_version:e.platform_version,metadata:e.metadata||{},capabilities:e.capabilities||{},is_group:!!e.is_group});var t}getId(){return this._id}setCapability(e,t){if("manifest_formats"===e)throw new TypeError('Cannot change capability "manifest_formats"');return this._capabilities[e]=t,this.emit("descriptor_changed",{descriptor:this.toJSON()}),!0}getCapability(e){if("manifest_formats"===e)throw new TypeError("Use `descriptor.getManifestFormats()`.");return this._capabilities[e]}setName(e){return this._name=e,this.emit("descriptor_changed",{descriptor:this.toJSON()}),!0}getName(){return this._name}getType(){return this._type}getBrand(){return this._brand}getModel(){return this._model}getPlatformIdentifier(){return this._platformIdentifier||`Partner ${this._brand} ${this._model}`}getPlatformName(){return this._platformName||this.getPlatformIdentifier()}getPlatformVersion(){return this._platformVersion}getManifestFormats(){return this._capabilities.manifest_formats||[]}appendManifestFormat(...e){const t=this._capabilities.manifest_formats;Array.isArray(t)&&t.push(...e)}prependManifestFormat(...e){const t=this._capabilities.manifest_formats;Array.isArray(t)&&t.splice(this._manifestPrependOffset,0,...e)}toJSON(){return{brand:this._brand,capabilities:Object.assign({},this._capabilities),id:this._id,metadata:Object.assign({},this._metadata),model:this._model,name:this._name,platform_name:this._platformName,platform_identifier:this._platformIdentifier,platform_version:this._platformVersion,type:this._type}}toTrackPlaybackDeviceInfo(){return{brand:this._brand,capabilities:Object.assign({},this._capabilities),device_id:this._id,device_type:this._type,metadata:Object.assign({},this._metadata),model:this._model,name:this._name,platform_name:this._platformName,platform_identifier:this._platformIdentifier,is_group:this._isGroup}}}const F={tagged:"4.24.0-ed6fca3",version:"4.24.0",revision:"ed6fca3"};class z{constructor(e){this._melodyLogger=new N.Hx(e)}logClientEvent(e,t){return e?this._melodyLogger.sendLog("/v1/msg/batch",{type:"client_event",message:{source:e.source||N.eV.UNKNOWN,context:e.context||N.eV.UNKNOWN,event:e.event||N.eV.UNKNOWN,event_version:e.event_version||N.eV.EMPTY,test_version:e.test_version||N.eV.EMPTY,source_version:e.source_version||N.eV.UNKNOWN,source_vendor:e.source_vendor||N.eV.UNKNOWN,json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{})}},{batch:!0}):Promise.reject(new TypeError("Logger.logClientEvent `data` cannot be null."))}logMetrics(e,t){if(!e&&!t)return Promise.resolve(!0);const n=e||[],r=t||[];if(!n.length&&!r.length)return Promise.resolve(!0);if(!Array.isArray(n)||!Array.isArray(r))return Promise.reject(new TypeError("Logger.logMetrics `meters` and `timers` must be null or an array."));for(const e of n)if(!("what"in e)||!("result"in e)||!("reason"in e))return Promise.reject(new TypeError("Logger.logMetrics: Invalid meter format in `meters` array."));for(const e of r)if(!("what"in e)||!("duration"in e))return Promise.reject(new TypeError("Logger.logMetrics: Invalid timer format in `timers` array."));return this._melodyLogger.sendLog("/v1/metric",{sdk_id:void 0,platform:void 0,client_version:void 0,meters:n,timers:r})}logJSSDKError(e,t){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:{source:e.source||N.eV.UNKNOWN,source_version:e.source_version||N.eV.UNKNOWN,type:e.type||N.eV.UNKNOWN,message:e.message||N.eV.EMPTY,stack:JSON.stringify(e.stack||N.eV.EMPTY),json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{}),json_data_version:e.json_data_version||N.eV.EMPTY_VERSION}},{batch:!0})}logJSSDKContentRequest(e){var t;return this._melodyLogger.sendLog("/v1/msg/jssdk_content_request",{source:e.source||N.eV.UNKNOWN,type:e.type||N.eV.UNKNOWN,http_status:null!==(t=e.http_status)&&void 0!==t?t:void 0,ms_request_duration:e.ms_request_duration||N.eV.EMPTY,n_retries:e.n_retries||N.eV.ZERO,playback_id:e.playback_id||N.eV.EMPTY})}}const B=T.P.forTag("harmonyclient"),V=/^[a-zA-Z0-9_%:-]{1,40}$/;class j extends s.vp{constructor(e){if(super(),this._platformIdentifier=(0,c.$)(),this._platformVersion=(0,c.$)(),!e)throw new TypeError("Argument `options` is not defined.");if(!e.transport)throw new TypeError("No Transport instance provided");if(!e.transport.hasPlugin("dealer"))throw new TypeError("Transport has no Dealer plugin.");this._transport=e.transport,this._deviceDescriptor=this._initDeviceDescriptor(e),this._logger=new z({transport:this._transport.toPublic(),sdkId:this.getSDKId(),platform:this._platformIdentifier.promise,clientVersion:this._platformVersion.promise}),this._productStateObserver=P.create({transport:this._transport}),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onConnectionError=this._onConnectionError.bind(this),this._onAuthenticationError=this._onAuthenticationError.bind(this),this._onShortSessionDisconnect=this._onShortSessionDisconnect.bind(this),this._attachListeners()}static create(e){return new j(e)}static of(e){return e._client}_createDeviceDescriptor(e,t={}){var n,i;if((null==t?void 0:t.id)&&!V.test(t.id))throw v.fatal(r.HARMONY_INVALID_DESCRIPTOR_ID,"Invalid device id.");const o=t.capabilities||{},a={change_volume:null===(n=o.change_volume)||void 0===n||n,endsong_snooping:o.endsong_snooping,enable_play_token:!0,supports_file_media_type:!0,play_token_lost_behavior:e.playTokenLostBehavior||"pause",disable_connect:!!e.hidden,audio_podcasts:null===(i=o.audio_podcasts)||void 0===i||i,video_playback:o.video_playback,lossless_playback:o.lossless_playback,volume_steps:void 0!==o.volume_steps&&o.volume_steps>=0&&o.volume_steps(this._onError(f.HARMONY,{error:e}),Promise.reject(e))))}_attachListeners(){const e=this._transport;e.on(a.TransportEvent.CONNECTED,this._onConnected),e.on(a.TransportEvent.AUTHENTICATED,this._onAuthenticated),e.on(a.TransportEvent.CONNECTION_FAILED,this._onConnectionError),e.on(a.TransportEvent.AUTHENTICATION_FAILED,this._onAuthenticationError),this.proxyEmit(e,a.TransportEvent.RECONNECTING,"reconnecting"),this.proxyEmit(e,a.TransportEvent.RECONNECTED,"reconnected"),this.proxyEmit(e,a.TransportEvent.LOGGED_OUT,"logged_out"),this.proxyEmitSync(e,a.TransportEvent.BEFORE_OFFLINE_DISCONNECT,"before_offline_disconnect"),this.proxyEmitSync(e,a.TransportEvent.BEFORE_ONLINE_DISCONNECT,"before_disconnect"),e.on(a.TransportEvent.SHORT_SESSION_DISCONNECTED,this._onShortSessionDisconnect.bind(this)),this.proxyEmit(this._productStateObserver,a.TransportEvent.PRODUCT_STATE_CHANGED,"product_state_changed"),this.on("before_disconnect",(e=>{const t=this._productStateObserver.deregister().catch((()=>{}));e.data.awaitPromise(t)}))}_onError(e,t){this.emit("error",{source:e,error:t.error}),t.error&&t.error.unrecoverable&&this.emit("unrecoverable_failure",{source:e,error:t.error})}_onConnected(){this.emit("connected",null)}_onAuthenticated(){this.emit("authenticated",null)}_onConnectionError(e){this._onError(f.TRANSPORT,{error:e.data.error}),this.emit("connection_error",e.data)}_onAuthenticationError(e){this._onError(f.TRANSPORT,{error:e.data.error}),this.emit("authentication_error",e.data)}_onShortSessionDisconnect(e){this._logger.logClientEvent({source:"transport",source_version:F.tagged,source_vendor:"spotify",event:e.type,event_version:"1.0.0",json_data:{disconnectCount:e.data.disconnectCount,sessionLength:e.data.sessionLength}},"object").catch((t=>B.warn(`${e.type} Logging Error:`,t)))}getVersionDescriptor(){return Object.assign({},F)}getSDKId(){return`harmony:${F.tagged}`}getUntaggedSDKId(){return`harmony:${F.version}`}getPlatformIdentifier(){return this._platformIdentifier.promise}getPlatformVersion(){return this._platformVersion.promise}getLogger(){return this._logger}logAppMetrics(e,t){if(!this._logger)throw new TypeError("Invalid logger instance");return this._logger.logMetrics(e,t)}request(e,t){return this._transport.request(e,t)}getPublicTransport(){return this._transport.toPublic()}getClientDescriptor(){return this._deviceDescriptor.then((e=>e.toJSON()))}getDeviceDescriptor(){return this._deviceDescriptor}getUserInfo(){return this._transport.request("@webapi/v1/me",{responseType:"json"}).then((e=>{const t=e.body;if(200!==e.status){const t=new v(r.USER_INFO_REQUEST_FAILED_WITH_STATUS,`User info request failed with status ${e.status}`);return t.status=e.status,Promise.reject(t)}return t?{display_name:t.display_name,followers:t.followers,id:t.id,images:t.images,uri:t.uri}:Promise.reject(new v(r.USER_INFO_REQUEST_EMPTY_RESPONSE,"Unexpected empty response."))}))}getProductState(){return this._productStateObserver.getCurrentState()}setName(e){return this._deviceDescriptor.then((function(t){return t.setName(e)}))}setNameTemplate(e){return this.setName((0,N._p)(e))}setCapability(e,t){return this._deviceDescriptor.then((n=>n.setCapability(e,t)))}notifyError(e,t){this._onError(e,{error:t})}}var H=n(17063);class G extends s.vp{constructor(e){super(),this._client=e.client,this._initialVolume=e.initialVolume,this._listPlayer=e.listPlayer,this._playerPromise=e.playerPromise,this._playbackServiceClient=e.playbackServiceClient,this._playbackStateObserver=e.playbackStateObserver,this._stopOnBackground=e.stopOnBackground,this._init()}_init(){this._client.addListeners({before_disconnect:this._onClientBeforeDisconnect.bind(this),before_offline_disconnect:this._onClientBeforeOfflineDisconnect.bind(this)});const e=this._listPlayer;e.addListeners({[H.rU.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[H.rU.LIST_PLAYER_TRACK_ENDED]:this._onTrackEnded.bind(this),[H.rU.LIST_PLAYER_BEFORE_VOLUME_CHANGE]:this._onBeforeVolumeChange.bind(this),[H.rU.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[H.rU.LIST_PLAYER_ERROR]:e=>{this._onError(e,f.PLAYBACK)}}),this.proxyEmitAll(e,{[H.rU.LIST_PLAYER_AUTOPLAY_FAILED]:"autoplay_failed",[H.rU.LIST_PLAYER_TRACK_LOADED]:"track_loaded",[H.rU.LIST_PLAYER_DURATION_CHANGED]:"duration_changed",[H.rU.LIST_PLAYER_POSITION_CHANGED]:"position_changed",[H.rU.LIST_PLAYER_PROGRESS]:"progress",[H.rU.LIST_PLAYER_BUFFER_STALLED]:"stalled",[H.rU.LIST_PLAYER_BUFFERING_END]:"buffering_end",[H.rU.LIST_PLAYER_BUFFERING_START]:"buffering_start",[H.rU.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:"max_list_errors_reached",[H.rU.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:"video_element_appended",[H.rU.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:"video_element_removed",[H.rU.LIST_PLAYER_LIST_ENDED]:"context_ended",[H.rU.LIST_PLAYER_SEEK_HANDLED]:"streamer_seek_handled",[H.rU.LIST_PLAYER_DISPLAYED_CUES_CHANGED]:"displayed_cues_changed",[H.rU.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:"subtitle_languages_loaded",[H.rU.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:"speed_changed"});const t=this._playbackServiceClient;t.addListeners({logout:this._onPlaybackClientLogout.bind(this),error:e=>{this._onError(e,e.data.source)}}),this.proxyEmitAll(t,{max_subscriptions_reached:"max_subscriptions_reached",deregistered:"deregistered",registered:"registered",registration_aborted:"registration_aborted",internal_endcontent:"internal_endcontent"}),this.proxyEmit(this._playbackStateObserver,"state_changed","state_changed"),this._stopOnBackground&&document.addEventListener&&document.addEventListener("visibilitychange",(()=>{document.hidden&&this.stop()&&this.emitSync("stopped_on_background",null)})),this._playerPromise.then((e=>{e.setVolume(this._initialVolume),this.emit("player_initialization_done",null)}),(e=>{this.emit("player_initialization_failed",{reason:e.message,error:e})}))}_assertOperationSuccess(e){return e===H.J_.SUCCESS}_onTrackEnded(){this.emit("track_ended",null)}_onClientBeforeDisconnect(e){e.data.awaitPromise(this.deregister().catch((()=>{})))}_onClientBeforeOfflineDisconnect(e){e.data.awaitPromise(this.pause().catch((()=>{})))}_onBeforeVolumeChange(e){var t;this.emitSync("before_volume_change",{volume:e.data.volume,remote:!!(null===(t=e.data.options)||void 0===t?void 0:t.commandId)}).defaultPrevented&&e.preventDefault()}_onVolumeChanged(e){this.emit("volume_changed",{volume:e.data.volume,remote:!!e.data.commandId})}_onCapped(){this.emit("playback_capped",null)}_onError(e,t){const{error:n}=e.data;n&&(n&&"registration"in n&&n.registration&&t===f.TRACK_PLAYBACK&&this.emit("registration_error",{error:n}),this.emit("error",{source:t,error:n}),this._client.notifyError(t,n))}_onPlaybackClientLogout(){this.emit("logged_out",null)}stop(){return this._playbackServiceClient.stop()}register(){return this._playbackServiceClient.register()}deregister(){return this._playbackServiceClient.deregister()}resume(){return this._listPlayer.resume().then(this._assertOperationSuccess)}pause(){return this._listPlayer.pause().then(this._assertOperationSuccess)}nextTrack(e=H.KG.FORWARD_BUTTON){return this._listPlayer.next(e).then(this._assertOperationSuccess)}canChangeTrack(){return this._listPlayer.canChangeTrack()}previousTrack(e=H.KG.BACK_BUTTON){return this._listPlayer.previous(e).then(this._assertOperationSuccess)}togglePlay(){return this._listPlayer.togglePlay().then(this._assertOperationSuccess)}setVolume(e){return this._listPlayer.setVolume(e).then(this._assertOperationSuccess)}getVolume(){return this._listPlayer.getVolume()}seek(e){return this._listPlayer.seek(e).then(this._assertOperationSuccess)}getCurrentState(){return this._playbackStateObserver.getCurrentState()}getVideoVariants(){return this._playerPromise.then((e=>e.getVideoVariants()))}setPreferredBitrate(e){return this._playerPromise.then((t=>t.setPreferredBitrate(e).then(this._assertOperationSuccess)))}setVideoResolution(e){return this._playerPromise.then((t=>t.setVideoResolution(e)))}setBackgrounded(e){return this._playerPromise.then((t=>t.setBackgrounded(e)))}activateElement(){return this._playerPromise.then((e=>e.activateElement()))}hideSubtitles(){return this._listPlayer.hideSubtitles().then(this._assertOperationSuccess)}showSubtitles(){return this._listPlayer.showSubtitles().then(this._assertOperationSuccess)}areSubtitlesShown(){return this._listPlayer.areSubtitlesShown()}getSubtitleLanguages(){return this._listPlayer.getSubtitleLanguages()}getActiveSubtitleLanguage(){return this._listPlayer.getActiveSubtitleLanguage()}setSubtitleLanguage(e){return this._listPlayer.setSubtitleLanguage(e).then(this._assertOperationSuccess)}getMediaConfig(){return this._listPlayer.getMediaConfig()}setPlaybackSpeed(e){return this._listPlayer.setPlaybackSpeed(e).then(this._assertOperationSuccess)}deactivateSubtitleEvents(){return this._listPlayer.deactivateCueEvents().then(this._assertOperationSuccess)}activateSubtitleEvents(){return this._listPlayer.activateCueEvents().then(this._assertOperationSuccess)}}class q extends Error{constructor(e,t){super(t),this.status=-1,this.maxedSubscriptions=!1,this.unrecoverable=!1,this.debug={},this.registration=!1,this.code=e,this.name="TrackPlayerAPIClientError"}static fatal(e,t){const n=new q(e,t);return n.unrecoverable=!0,n}}class K{constructor(e,t){this._stateMachine=null,this._currentState=null,this._currentStateIndex=null,this._pausedState=!1,this._initialPlaybackPosition=null,this._uri=e,this._manifestTrackResolver=t}static create(e,t){return new K(e,t)}setPaused(e){this._pausedState=e}isPaused(){return this._currentStateIndex&&this._currentStateIndex<0&&this._currentState&&this._currentState.transitions.advance?!!this._currentState.transitions.advance.paused:this._pausedState}setInitialPosition(e){this._initialPlaybackPosition=e}setStateMachine(e){this._stateMachine=e}setDeviceId(e){this._deviceId=e}startAtState(e){const t=this._stateMachine&&this._stateMachine.states[e.state_index];if(!t)throw new q(r.TP_MISSING_INITIAL_STATE,"Invalid state reference.");const n=t.transitions;this._currentStateIndex=-1,this._currentState={decoy:!0,paused:!!e.paused,track:-1,state_id:null,transitions:{advance:e,show_next:n.show_next,show_prev:n.show_prev,skip_next:e,skip_prev:n.skip_prev},duration_override:t.duration_override,position_offset:t.position_offset}}setCurrentState(e){const t=e.state_index;this._currentStateIndex=t,this._currentState=this._stateMachine&&this._stateMachine.states[t]}getStateMachine(){return this._stateMachine}getInternalStateRef(){let e=this._pausedState,t=this._currentStateIndex;if(!t)return null;if(t&&t<0){const n=this._currentState&&this._currentState.transitions.advance;n&&(t=n.state_index,e=!!n.paused)}return{paused:e,state_index:t}}getStateRef(){const e=this._stateMachine;if(!e||null===this._currentStateIndex)return null;let t,n;if(this._currentStateIndex<0){const r=this._currentState&&this._currentState.transitions.advance;r&&(t=e.states[r.state_index],n=r.paused)}else t=e.states[this._currentStateIndex],n=this._pausedState;return t?{state_machine_id:e.state_machine_id,state_id:t.state_id,paused:!!n}:null}getCurrentTrack(){const e=this._stateMachine;if(!e||null===this._currentStateIndex)return null;let t;if(this._currentStateIndex<0){const n=this._currentState&&this._currentState.transitions.advance;n&&(t=e.states[n.state_index])}else t=e.states[this._currentStateIndex];return t?e.tracks[t.track]:null}startAt(){return Promise.resolve(H.J_.SUCCESS)}setShuffle(){return Promise.resolve(H.J_.SUCCESS)}setRepeatMode(){return Promise.resolve(H.J_.SUCCESS)}next(e){const t=this._currentState;let n=null;if(t){const r=t.transitions;if(e.reason===H.KG.FORWARD_BUTTON)"skip_next"in r&&(n=r.skip_next);else"advance"in r&&(n=r.advance)}return this._transitionTo(e,n,!1)}peekNext(e){const t=this._currentState;let n=null;if(t){const r=t.transitions;if(e.reason===H.KG.FORWARD_BUTTON)"skip_next"in r&&(n=r.skip_next);else"advance"in r&&(n=r.advance)}return this._transitionTo(e,n,!0)}previous(e){const t=this._currentState;let n=null;if(t){n=t.transitions.skip_prev}return this._transitionTo(e,n,!1)}translatePosition(e){var t,n;return(null!==(n=null===(t=this._currentState)||void 0===t?void 0:t.position_offset)&&void 0!==n?n:0)+e}translateDuration(e){var t,n;return null!==(n=null===(t=this._currentState)||void 0===t?void 0:t.duration_override)&&void 0!==n?n:e}handleSeek(e,t){var n;return(null===(n=this._currentState)||void 0===n?void 0:n.duration_override)&&t.reason!==H.KG.REMOTE?t.listConstants.IGNORE:e}allowSeeking(){return!!this._currentState&&!this._currentState.disallow_seeking}_transitionTo(e,t,n=!1){return new Promise((r=>{var i;const o=e.reason,a=e.listConstants;if(!t)return r(a.FORBIDDEN);const s=this._stateMachine;if(!s)return r(a.NULL_VALUE);const l=s.states[t.state_index];if(!l)return r(a.NULL_VALUE);const c=s.tracks[l.track];if(!(null===(i=null==c?void 0:c.metadata)||void 0===i?void 0:i.uri))return r(a.NULL_VALUE);if(!this._currentState)return r(a.NULL_VALUE);const u=this._currentState,d=u.decoy?!!u.paused:t.paused;n||(this._currentState=l,this._currentStateIndex=t.state_index,this._pausedState=!!d);let p=0;return n||null===this._initialPlaybackPosition?"initial_playback_position"in l&&(p=l.initial_playback_position||0):(p=this._initialPlaybackPosition,this._initialPlaybackPosition=null),this._manifestTrackResolver.resolveFromStateTrack(c).then((e=>{if(!e)return r(a.NULL_VALUE);let t=this._uri;c.metadata&&c.metadata.context_uri&&(t=c.metadata.context_uri);const n=o,i=c.ms_played_until_update,s={playbackQuality:e.playbackQuality,hifiStatus:e.hifi_status},u={uri:e.uri,playableURI:e.uri,fileId:e.fileId,resolvedURL:e.resolvedURL,playable:e.playable,isAd:e.isAd,format:e.format,fileFormat:e.fileFormat,mediaType:e.mediaType,noManifest:e.noManifest,metadata:s,options:{position:p,paused:d,playedThreshold:i},logData:{noLog:!!e.noLog,noTSV:!!e.noTSV,noStats:!!e.noStats,deviceId:this._deviceId,playbackId:l.state_id?l.state_id:void 0,reason:n,displayTrack:e.uri,playContext:t,impressionURL:e.impressionURL,impressionURLs:e.impressionURLs,format:{codec:e.format,bitrate:e.bitrate},uriType:e.uriType,displayTitle:c.metadata.name,displayGroup:c.metadata.group_name,displayDuration:c.metadata.duration},stateId:l.state_id?l.state_id:void 0};return r(u)}))}))}getCurrentState(){return this._currentState}}var W,Y=n(69518);!function(e){e.ON="ON",e.OFF="OFF",e.NONE="NONE"}(W||(W={}));const J=/^disallow_([^]+)_reasons$/;const $=T.P.forTag("tp.stream.PlaybackStateObserver");class X extends s.vp{constructor(e,t={}){super(),this._tpApiClient=e,this._numPreviousTracks=t.numPrevious||2,this._numNextTracks=t.numNextTracks||2,this._currentState=null,this._init()}static create(e,t){return new X(e,t)}_init(){this._tpApiClient.on("state_changed",this._onStateChanged.bind(this)),this._tpApiClient.on("state_cleared",this._onStateCleared.bind(this))}_onStateChanged(e){var t,n,r,i,o,a,s,l,c;const{stateMachine:u,stateRef:d,position:p,paused:f,loading:h,currentTrackInfo:v}=e.data,m=null==u?void 0:u.states;if(!u||!(null==m?void 0:m.length)||!d)return void $.warn("_onStateChanged called with no current state",e);const g=m[d.state_index],y=u.tracks[null==g?void 0:g.track];if(!g||!y)return void $.warn("_onStateChanged called with no current state or track",e);let _=null!==(t=v.duration)&&void 0!==t?t:0;const b=this._createTrackWindow(u,g,_);_||(_=null!==(r=null===(n=b.current_track)||void 0===n?void 0:n.duration_ms)&&void 0!==r?r:0);const E=function(e,t){const n={};for(const t in e)e.hasOwnProperty(t)&&"disallow_resuming_reasons"!==t&&"disallow_pausing_reasons"!==t&&(n[t]=e[t]);return t?n.disallow_pausing_reasons=["already_paused"]:n.disallow_resuming_reasons=["not_paused"],n}(g.restrictions||{},f),S=function(e){const t={};for(const n in e)if(e.hasOwnProperty(n)){const r=e[n],i=!(!r||!r.length);t[n.replace(J,"$1")]=i}return t}(E),T={timestamp:Date.now(),context:{uri:null!==(o=null===(i=y.metadata)||void 0===i?void 0:i.context_uri)&&void 0!==o?o:null,metadata:{}},position:p,duration:_,paused:f,playback_quality:null!==(a=v.playbackQuality)&&void 0!==a?a:H.cJ.UNKNOWN,playback_features:{hifi_status:null!==(s=v.hifiStatus)&&void 0!==s?s:W.NONE,change_playback_speed:null!==(l=v.changePlaybackSpeed)&&void 0!==l&&l},shuffle:this._getShuffleSetting(u),repeat_mode:this._getRepeatSetting(u),track_window:b,restrictions:E,disallows:S,loading:h,playback_speed:v.playbackSpeed,playback_id:g.state_id};(null===(c=y.metadata)||void 0===c?void 0:c.context_description)&&(T.context.metadata.context_description=y.metadata.context_description),this._currentState=T,this.emit("state_changed",{state:T?Object.assign({},T):null})}_createTrackWindow(e,t,n){const r=e.states;return{current_track:this._getTrackMetadata(e,t,n),next_tracks:this._getNextStates(t,r).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e)),previous_tracks:this._getPreviousStates(t,r).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e))}}_onStateCleared(){this._currentState=null,this.emit("state_changed",{state:null})}_getRepeatSetting(e){const t=e.attributes.options;return t.repeating_track?h.TRACK:t.repeating_context?h.CONTEXT:h.OFF}_getShuffleSetting(e){return e.attributes.options.shuffling_context}_getNextStates(e,t){const n=this._numNextTracks,r=[];let i=e;for(;i&&"show_next"in i.transitions&&i.transitions.show_next;){const e=t[i.transitions.show_next.state_index];if(e&&r.push(e),i=e,r.length>=n)break}return r}_getPreviousStates(e,t){const n=this._numPreviousTracks,r=[];let i=e;for(;i&&"show_prev"in i.transitions&&i.transitions.show_prev;){const e=t[i.transitions.show_prev.state_index];if(e&&r.unshift(e),i=e,r.length>=n)break}return r}_getTrackMetadata(e,t,n){const r=null==e?void 0:e.tracks[t.track];if(!(null==r?void 0:r.metadata))return null;const i=r.metadata,o=r.manifest&&"manifest_ids_video"in r.manifest,a=r.track_type.toLowerCase(),s=Y.from(i.uri),l=i.linked_from_uri?Y.from(i.linked_from_uri):null;return{id:s?Y.hexToId(s.id):null,uri:i.uri,type:(null==s?void 0:s.type)||"unknown",uid:t.track_uid,linked_from:{uri:i.linked_from_uri||null,id:l?Y.hexToId(l.id):null},media_type:o?"video":"audio",track_type:a,name:i.name,duration_ms:n||i.duration,artists:i.authors,album:{uri:i.group_uri,name:i.group_name,images:i.images},is_playable:!0}}getCurrentState(){const e=this._currentState;if(e&&!e.paused){const t=Date.now(),n=e.position+(t-e.timestamp);e.position=n,e.timestamp=t}return Promise.resolve(this._currentState?Object.assign({},this._currentState):null)}}const Q=/^https:\/\//,Z={[I.FILE_URLS_MP3]:H.OU.MP3,[I.FILE_URLS_EXTERNAL]:H.OU.MP3,[I.FILE_IDS_MP3]:H.OU.MP3,[I.FILE_IDS_MP4]:H.OU.MP4,[I.FILE_IDS_MP4_DUAL]:H.OU.MP4,[I.FILE_IDS_CBCS]:H.OU.MP4_CBCS,[I.FILE_IDS_MP4FLAC]:H.OU.MP4_FLAC,[I.MANIFEST_IDS_VIDEO]:H.OU.MANIFEST_ID};class ee{constructor(e){this._descriptor=e.descriptor,this._listPlayer=e.listPlayer}static create(e){return new ee(e)}_resolveFromStateTrack(e,t,n){var r,i,o,a;const s=e.manifest,l=e.metadata.uri,c=Y.from(l);let u=null;for(const e of n){const n=s[e];if(n)for(const s of n){if(!s.file_id&&!Q.test(null!==(r=s.file_url)&&void 0!==r?r:""))continue;const n=!(!c||c.type!==Y.Type.AD&&c.type!==Y.Type.INTERRUPTION);if(e===I.FILE_IDS_MP3&&!n)continue;let d,p;if(d=s.track_type?s.track_type.toLowerCase():e===I.MANIFEST_IDS_VIDEO?"video":"audio",s.format){const e=parseInt(s.format,10);H.OT[e]&&(p=e)}const f=null!==(i=s.bitrate)&&void 0!==i?i:e===I.FILE_IDS_MP4FLAC?1411200:128e3,h=null!==(o=s.bitrate)&&void 0!==o?o:e===I.FILE_IDS_MP4FLAC?7e5:128e3,v=Z[e];if(u={uri:l,uriType:c&&c.type?c.type:void 0,fileId:null!==(a=s.file_id)&&void 0!==a?a:"",resolvedURL:s.file_url,mediaType:d,format:v,bitrate:h,fileFormat:null!=p?p:void 0,playbackQuality:s.audio_quality,hifi_status:s.hifi_status,impressionURL:s.impression_url,impressionURLs:s.impression_urls,isAd:n,noLog:!1,noTSV:n,noStats:n,noManifest:v===H.OU.MP3,playable:!0},e===I.MANIFEST_IDS_VIDEO||f<=t)return u}}return u}resolveFromStateTrack(e){return Promise.all([Promise.resolve(this._descriptor),this._listPlayer.getCurrentBandwidth()]).then((([t,n])=>this._resolveFromStateTrack(e,n,t.getManifestFormats())))}}const te=1e3,ne=0,re=!1;class ie{constructor(e,t={}){this._cancelFn=null,this._deferredTimer=0,this._fn=e,this._cancelFn=t.cancel||null,this._threshold=t.threshold||te,this._ts=t.initialTimetamp||ne,this._blockInital=t.blockInitial||re}_deferFn(e){this._fn.apply(this._fn,e)}_deferPromise(e,t){this._fn.apply(this._fn,e).then((e=>{t.resolve(e)}))}sync(...e){const t=Date.now()-this._ts;if(this._ts=Date.now(),t{e=n,t=r})),resolve:e,reject:t}}();return this._deferredTimer=setTimeout(this._deferPromise.bind(this,e,t),this._threshold),t.promise}return!0===this._blockInital?this.async.apply(this,e):this._fn.apply(this._fn,e)}setCancel(e){this._cancelFn=e}}var oe;!function(e){e.TRACK_DATA_FINALIZED="track_data_finalized",e.DEREGISTER="deregister",e.REGISTER="register",e.BEFORE_TRACK_LOAD="before_track_load",e.CAPPED="capped",e.ERROR="error",e.PAUSE="pause",e.RESUME="resume",e.PLAYED_THRESHOLD_REACHED="played_threshold_reached",e.POSITION_CHANGED="position_changed",e.SPEED_CHANGED="speed_changed",e.STARTED_PLAYING="started_playing",e.PROGRESS="progress",e.PING="ping",e.MODIFY_CURRENT_STATE="modify_current_state",e.STATE_CLEAR="state_clear"}(oe||(oe={}));const ae=T.P.forTag("tpapiclient"),se=T.P.forTag("tpapiclient.endsong"),le=T.P.forTag("tpapiclient.endsongs"),ce=/^hm:\/\/track-playback\/v1/,ue=/^hm:\/\/play-token\/lost/,de=function(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR},pe={condition:de,maxRetries:8},fe={condition:de,maxRetries:2};class he extends s.vp{constructor(e){super(),this._deviceId=null,this._sequenceNumber=0,this._currentContext=null,this._loading=!1,this._lastSentStateUpdatePayload=null,this._isSendingConflict=!1,this._queuedRejectedStates=[],this._isSendingUpdate=!1,this._queueSendUpdate=[],this._currentTrackInfo={},this._registered=!1,this._isDeregistering=!1,this._waitingForTrackingData=(0,c.$)(),this._lastProcessedStateId=null,this._limitStateUpdates=!1,this._lastUpdateStateTime=0,this._initialUpdateSent=!1,this._startedPlayingUpdateSent=!1,this._nextFinalizedDataPayload=null,this._switchingContext=!1,this._connectionId=null,this._transport=e.transport,this._logger=e.logger,this._endpoint=e.endpoint||"http://@webgate/track-playback",this._listPlayer=e.listPlayer,this._ListClass=e.ListClass,this._currentGaiaVolume=e.initialVolume*d,this._clientVersion=e.clientVersion,this._manifestTrackResolver=e.manifestTrackResolver,this._descriptorPromise=Promise.resolve(e.descriptor),this._init(),this._performCommand=this._performCommand.bind(this),this._handleRegisterResponse=this._handleRegisterResponse.bind(this),this._handleStateConflictResponse=this._handleStateConflictResponse.bind(this),this.register=this.register.bind(this),this._parseDescriptor=this._parseDescriptor.bind(this),this._volumeDebouncer=new ie(this._sendVolume.bind(this),{blockInitial:!0})}static create(e){return new he(e)}_init(){this._waitingForTrackingData=(0,c.$)(),this._waitingForTrackingData.resolve(!0),this._transport.on(this._transport.EVENT_CONNECTION_ID,this._onConnectionId.bind(this)),this._transport.matchMessages(ue,this._onPlayTokenLost.bind(this)),this._transport.matchMessages(ce,this._onTrackPlaybackMessage.bind(this)),this._listPlayer.addListeners({[H.rU.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[H.rU.LIST_PLAYER_ERROR_SYNC]:this._onError.bind(this),[H.rU.LIST_PLAYER_BEFORE_NEXT]:this._onBeforeTrackChange.bind(this),[H.rU.LIST_PLAYER_BEFORE_PREVIOUS]:this._onBeforeTrackChange.bind(this),[H.rU.LIST_PLAYER_BEFORE_PLAYER_LOAD]:this._onBeforePlayerLoad.bind(this),[H.rU.LIST_PLAYER_PLAYER_LOAD]:this._onListPlayerLoad.bind(this),[H.rU.LIST_PLAYER_BEFORE_TRACK_LOAD]:this._onBeforeTrackLoad.bind(this),[H.rU.LIST_PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[H.rU.LIST_PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[H.rU.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[H.rU.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:this._onSpeedChanged.bind(this),[H.rU.LIST_PLAYER_PAUSED]:this._onPlayPause.bind(this,!0),[H.rU.LIST_PLAYER_PLAYING]:this._onPlayPause.bind(this,!1),[H.rU.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:this._onPlayThresholdReached.bind(this),[H.rU.LIST_PLAYER_PROGRESS]:this._onProgress.bind(this),[H.rU.LIST_PLAYER_TRACKING_DATA_CREATED]:this._onTrackDataCreatedEvent.bind(this),[H.rU.LIST_PLAYER_TRACKING_DATA_FINALIZED]:this._onTrackDataFinalizedEvent.bind(this)}),this._descriptorPromise.then((e=>{e.on("descriptor_changed",(()=>{this._parseDescriptor(e),this._updateDeviceInfo()}))}))}_onBeforeTrackChange(){var e,t;if(this._nextFinalizedDataPayload||this._switchingContext)return;const n=null!==(t=null===(e=this._currentContext)||void 0===e?void 0:e.getStateRef())&&void 0!==t?t:null,r=this._generateStatePayload(n,oe.TRACK_DATA_FINALIZED);this._setSequenceNumber(r),this._nextFinalizedDataPayload=r}_onBeforeTrackLoad(e){var t;this._loading=!0,this._switchingContext=!1,this._currentTrackInfo.duration=void 0,this._stateEventPositionOverride=null===(t=e.data.newTrack.options)||void 0===t?void 0:t.position}_onBeforePlayerLoad(e){var t,n,r,i,o,a,s,l;const c=this._currentContext;if(!c)return;const u=c.getCurrentTrack(),d=null===(t=c.getCurrentState)||void 0===t?void 0:t.call(c),p=null!==(r=null!==(n=null==d?void 0:d.duration_override)&&void 0!==n?n:null==u?void 0:u.metadata.duration)&&void 0!==r?r:0,{data:f}=e,h=f.track.metadata||{},v=this._currentTrackInfo.playbackSpeed||1;this._currentTrackInfo={duration:p,mediaType:f.track.mediaType.toUpperCase(),fileFormat:f.track.fileFormat,bitrate:null===(o=null===(i=f.logData)||void 0===i?void 0:i.format)||void 0===o?void 0:o.bitrate,playbackQuality:h.playbackQuality,hifiStatus:h.hifiStatus,changePlaybackSpeed:null!==(s=!(null===(a=f.track.options)||void 0===a?void 0:a.useDefaultPlaybackSpeed))&&void 0!==s&&s,playbackSpeed:(null===(l=e.data.track.options)||void 0===l?void 0:l.useDefaultPlaybackSpeed)?1:v};const m=f.options;c.setPaused(!m.autoplay),this._setCurrentTrackPosition(m&&m.position||0),this._updateState(oe.BEFORE_TRACK_LOAD),this._startedPlayingUpdateSent=!1,this._initialUpdateSent=!1}_onCapped(){this._listPlayer.clear(H.KG.CAPPED),this._currentContext=null,this._updateState(oe.CAPPED),this._setCurrentTrackPosition(void 0),this._lastProcessedStateId=null,this.emit("state_cleared",null)}_onConnectionId(e){this._connectionId=e.data.id,this._isDeregistering||(this._registered=!1,Promise.all([this._listPlayer.getVolume(),this._descriptorPromise.then(this._parseDescriptor)]).then(this.register,(e=>{ae.info("Skipping registration due to error",e),this.emit("registration_aborted",{reason_error:e,source:f.TRACK_PLAYBACK})})).catch((()=>{})))}_onDurationChanged(e){var t;const n=null===(t=this._currentContext)||void 0===t?void 0:t.getCurrentTrack();(null==n?void 0:n.metadata.uri)===e.data.track.uri&&(this._currentTrackInfo.duration=e.data.duration,this._emitStateChanged())}_onError(e){"position"in e.data&&(this._setCurrentTrackPosition(e.data.position),this._updateState(oe.ERROR))}_onSpeedChanged(e){this._currentTrackInfo.playbackSpeed=e.data.playback_speed,this._updateState(oe.SPEED_CHANGED)}_onPlayPause(e,t){const n=this._currentContext;n&&(n.setPaused(e),"position"in t.data&&this._setAllTrackPositions(t.data.position),t.data.track.stateId&&this._shouldSendUpdateForEvent(t.data.track.stateId)?this._updateState(e?oe.PAUSE:oe.RESUME):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onPlayThresholdReached(e){this._initialUpdateSent=!0,this._setAllTrackPositions(e.data.position),this._updateState(oe.PLAYED_THRESHOLD_REACHED)}_onPlayTokenLost(){this._listPlayer.pause().catch((function(){}))}_onPositionChanged(e){this._loading||(this._setCurrentTrackPosition(e.data.position),e.data.track&&this._shouldSendUpdateForEvent(e.data.track.stateId)?this._updateState(oe.POSITION_CHANGED):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onProgress(e){if(this._loading||!this._currentContext)return;this._setAllTrackPositions(e.data.position),!this._startedPlayingUpdateSent&&e.data.played>1e3&&(this._startedPlayingUpdateSent=!0,this._updateState(oe.STARTED_PLAYING));if(!e.data.logData)return;const t=this._currentContext.getCurrentTrack(),n=t&&"number"==typeof t.ms_playing_update_interval?t.ms_playing_update_interval:null;this._initialUpdateSent&&null!==n&&n>0&&Date.now()-this._lastUpdateStateTime>n&&this._updateState(oe.PROGRESS)}_onTrackDataCreatedEvent(){this._waitingForTrackingData=(0,c.$)()}_onTrackDataFinalizedEvent(e){const t=this._nextFinalizedDataPayload;t&&(t.playback_stats=e.data.playbackStats,this._updateState(oe.TRACK_DATA_FINALIZED,t)),this._nextFinalizedDataPayload=null,this._waitingForTrackingData&&this._waitingForTrackingData.resolve(!0)}_onListPlayerLoad(e){this._loading=!1;const t=this._currentContext;t&&(t.setPaused(!e.data.autoplay),this._setCurrentTrackPosition(e.data.position||0))}_onTrackPlaybackMessage(e){const t=e.payloads;Array.isArray(t)&&t.length&&this._performCommand(t[0])}_onVolumeChanged(e){var t;if(this._currentGaiaVolume=e.data.volume*d,!this._registered)return;const n=null!==(t=e.data.commandId)&&void 0!==t?t:"",r={seq_num:void 0,volume:this._currentGaiaVolume,command_id:n};this._volumeDebouncer.async(r)}_clearSessionData(){this._connectionId=null,this._sequenceNumber=0,this._currentContext=null,this._lastSentStateUpdatePayload=null,this._isSendingConflict=!1,this._isSendingUpdate=!1,this._queueSendUpdate=[],this._previousTrackPosition=void 0,this._currentTrackPosition=void 0,this._currentTrackInfo={},this._lastProcessedStateId=null,this.emit("state_cleared",null)}_createStateRef(e,t){if(!t)return null;const n=e.states[t.state_index];if(!n)throw new q(r.TP_CANNOT_CREATE_STATE_REF,"Invalid state reference.");return{state_machine_id:e.state_machine_id,state_id:n.state_id,paused:t.paused}}_deregisterFromService(e){let t=null;const n=this._currentContext;n&&(e&&(n.setPaused(!e.playing),this._setAllTrackPositions(e.position)),t=n.getStateRef());const r=this._generateStatePayload(t,oe.DEREGISTER);this._setSequenceNumber(r);const i=`${this._endpoint}/v1/devices/${this._deviceId}`;return this._transport.request(i,{authorize:!0,method:"DELETE",payload:JSON.stringify(r),responseType:"json",retry:fe}).then((e=>{if(200!==e.status&&204!==e.status)return this._registered=!0,!1;const{body:t}=e;return t&&(t.endsong&&se.log(t.endsong),t.endsongs&&(le.log(t.endsongs),this.emit("internal_endcontent",{endcontents:t.endsongs}))),this._clearSessionData(),this.emit("deregistered",null),!0}))}_emitError(e,t={}){this._logger.logJSSDKError({source:"tpapi-client",source_version:F.tagged,type:e.code,message:e&&e.message,stack:e&&e.stack,json_data:t,json_data_version:"1.0.0"},"object").catch((function(e){ae.error("Track-Playback Logging Error",e)})),this.emit("error",{error:e,source:f.TRACK_PLAYBACK})}_emitStateChanged(){const e=this._currentContext;if(!e)return;let t=this._currentTrackPosition||0;void 0!==this._stateEventPositionOverride&&(t=this._stateEventPositionOverride,this._stateEventPositionOverride=void 0),this.emit("state_changed",{position:t,currentTrackInfo:this._currentTrackInfo,stateMachine:e.getStateMachine(),stateRef:e.getInternalStateRef(),paused:e.isPaused(),loading:this._loading})}_generateStatePayload(e,t){const n=this._currentTrackInfo;return{seq_num:void 0,seq_nums:void 0,state_ref:e,sub_state:{playback_speed:(null==e?void 0:e.paused)?0:this._currentTrackInfo.playbackSpeed||1,position:this._currentTrackPosition,duration:n.duration||void 0,media_type:n.mediaType,bitrate:n.bitrate,audio_quality:n.playbackQuality,format:n.fileFormat},previous_position:this._previousTrackPosition,playback_stats:void 0,rejected_state_refs:void 0,debug_source:t}}_handleRegisterResponse(e){let t;if(429===e.status)return t=q.fatal(r.TP_MAX_SUBSCRIPTIONS_REACHED,"Max connections reached"),t.maxedSubscriptions=!0,t.status=e.status,this.emit("max_subscriptions_reached",{error:t}),Promise.reject(t);if(403===e.status&&e.body&&"PREMIUM_REQUIRED"===e.body.error_type?t=q.fatal(r.TP_REGISTRATION_FAILED_NON_PREMIUM,"Cannot register to Track Playback with non-premium user."):200!==e.status?t=q.fatal(r.TP_REGISTRATION_FAILED_WITH_STATUS,`track-playback service responded with status ${e.status} when registering device`):e.body||(t=q.fatal(r.TP_NO_RESPONSE_BODY,"Unexpected empty response body from registration request.")),t)return t.status=e.status,Promise.reject(t);const n=e.body;return n.endsong&&se.log(n.endsong),n.endsongs&&(le.log(n.endsongs),this.emit("internal_endcontent",{endcontents:n.endsongs})),this._sequenceNumber=n.initial_seq_num,this._registered=!0,this.emit("registered",{deviceId:this._deviceId}),Promise.resolve(!0)}_handleStateConflictResponse(e){var t;if(e.status>=200&&e.status<300){const n=null===(t=e.body)||void 0===t?void 0:t.commands;if(!n||!n.length)return;for(let e=0,t=n.length;e{ae.error("Track-Playback Logging Error",e)}))}_logout(){this._listPlayer.pause().catch((()=>{})),this.emit("state_cleared",null),this.deregister().then((e=>{this._currentContext=null,this._setCurrentTrackPosition(void 0),e&&this.emit("logout",null)}))}_parseDescriptor(e){return this._deviceId=e.getId(),this._deviceInfo=e.toTrackPlaybackDeviceInfo(),!0}_performCommand(e){switch(e.type){case"set_volume":this._setVolume(e);break;case"log_out":this._logout();break;case"replace_state":this._replaceState(e);break;case"ping":this._updateState(oe.PING);break;default:this._emitError(new q(r.TP_UNKNOWN_COMMAND,"Received unknown command."),{command:e})}}_rejectState(e){const t=this._queuedRejectedStates;if(void 0!==e&&t.push(e),!this._registered||this._isSendingConflict||!t.length)return;this._isSendingConflict=!0;const n=t.splice(0,5),r=this._currentContext?this._currentContext.getStateRef():null,i=this._generateStatePayload(r);i.rejected_state_refs=n,this._setSequenceNumbers(i,n.length);const o=()=>{this._isSendingConflict=!1,this._rejectState()},a=`${this._endpoint}/v1/devices/${this._deviceId}/state_conflict`;this._transport.request(a,{authorize:!0,method:"POST",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(i),retry:fe}).then(this._handleStateConflictResponse).then(o,o)}_replaceState(e){var t,n,r;const i=this._listPlayer,o=e.state_machine,a=e.state_ref,s=this._createStateRef(o,a);if(!this._isCurrentStateRef(e.prev_state_ref))return void this._rejectState(s);if(!a)return void this._clearContextAndState();const l=null!==(n=null===(t=this._currentContext)||void 0===t?void 0:t.getStateRef())&&void 0!==n?n:null;if(function(e,t){if(!e)throw new Error(`Assertion failed: ${t}`)}(null!==s,"New state reference is null"),this._currentContext&&(null==l?void 0:l.state_id)===s.state_id){const t=this._currentContext;t.setStateMachine(o),t.setCurrentState(a);let n=!1;t.isPaused()!==a.paused&&(n=!0),a.paused?(t.setPaused(!0),i.pause()):(t.setPaused(!1),i.resume());const r=parseInt(e.seek_to,10);t.allowSeeking()&&!isNaN(r)&&(i.seek(r,H.KG.REMOTE),this._setCurrentTrackPosition(r),n=!0),n?this._emitStateChanged():(this._lastProcessedStateId=null,this._updateState(oe.MODIFY_CURRENT_STATE))}else{this._lastProcessedStateId=null!==(r=s.state_id)&&void 0!==r?r:null,this._currentContext&&this._onBeforeTrackChange();const t=this._ListClass.create("spotify:app:jsspeaker",this._manifestTrackResolver);t.setStateMachine(o),t.startAtState(a),this._deviceId&&t.setDeviceId(this._deviceId),this._currentContext=t;const n=e.seek_to||0;t.setInitialPosition(n),this._loading=!0,this._switchingContext=!0,i.play(t,{reason:H.KG.REMOTE})}}_clearContextAndState(){const e=this._listPlayer;e.pause().catch((function(){})),e.clear(H.KG.REMOTE),this._currentContext=null,this._updateState(oe.STATE_CLEAR),this._setAllTrackPositions(void 0),this._lastProcessedStateId=null,this.emit("state_cleared",null),this._loading=!0}_sendDevicesRequest(e,t){let n=`${this._endpoint}/v1/devices`;return"PUT"===e&&(n=`${n}/${this._deviceId}`),this._transport.request(n,{authorize:!0,method:e||"POST",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(t),retry:pe})}_sendVolume(e){const t=`${this._endpoint}/v1/devices/${this._deviceId}/volume`;return this._setSequenceNumber(e),this._transport.request(t,{authorize:!0,method:"PUT",headers:{"Content-Type":"application/json"},payload:JSON.stringify(e)})}_setAllTrackPositions(e){this._previousTrackPosition=e,this._currentTrackPosition=e}_setCurrentTrackPosition(e){this._previousTrackPosition=this._currentTrackPosition,this._currentTrackPosition=e}_setSequenceNumber(e){return void 0===e.seq_num&&(e.seq_num=++this._sequenceNumber),e}_setSequenceNumbers(e,t){e.seq_nums=[];for(let n=0;n{204===e.status&&this.emit("registration_updated",null)}))}_updateState(e,t){var n,r;if(!this._registered)return;let i,o;if(t?(i=t.state_ref,o=t):(i=null!==(r=null===(n=this._currentContext)||void 0===n?void 0:n.getStateRef())&&void 0!==r?r:null,o=this._generateStatePayload(i,e)),!this._wasStatePayloadSentRecently(o))return void ae.info("State update ignored (duplicate).",o);if(this._emitStateChanged(),this._isSendingUpdate&&this._limitStateUpdates)return this._logUnsentStateUpdate(o),void this._queueSendUpdate.push(e);this._isSendingUpdate=!0,this._queueSendUpdate=[],this._setSequenceNumber(o),this._lastSentStateUpdatePayload=o;const a=()=>{this._isSendingUpdate=!1,this._queueSendUpdate.length&&this._updateState(this._queueSendUpdate[this._queueSendUpdate.length-1]),ae.info("State update sent.",e,o)},s=`${this._endpoint}/v1/devices/${this._deviceId}/state`;this._lastUpdateStateTime=Date.now(),this._transport.request(s,{authorize:!0,method:"PUT",headers:{"Content-Type":"application/json"},responseType:"json",payload:JSON.stringify(o),retry:pe}).then(this._handleStateUpdateResponse.bind(this,i)).then(a,(e=>{this._emitError(e),a()}))}_wasStatePayloadSentRecently(e){const t=this._lastSentStateUpdatePayload;if(!t||!t.state_ref||!e.state_ref)return!0;const n=e.state_ref,r=t.state_ref;if(n.paused!==r.paused||n.state_id!==r.state_id||n.state_machine_id!==r.state_machine_id)return!0;const i=e.sub_state,o=t.sub_state;return i.playback_speed!==o.playback_speed||i.position!==o.position||i.duration!==o.duration||e.previous_position!==t.previous_position}stop(){return!(!this._registered||!this._currentContext)&&(this._clearContextAndState(),!0)}deregister(){return this._registered?(this._isDeregistering=!0,this._registered=!1,this._listPlayer.getPlayerState().then((e=>Promise.all([this._deregisterFromService(e),this._waitingForTrackingData.promise,this._listPlayer.stop().catch((()=>{}))]).then((([e])=>(this._isDeregistering=!1,e)))),(()=>(this._isDeregistering=!1,this._registered=!0,!1)))):Promise.resolve(!1)}register(){if(this._registered)return Promise.resolve(!1);if(!this._deviceInfo)return Promise.reject(new Error("Need DeviceInfo for device registration."));if(!this._connectionId)return Promise.reject(new Error("Need connection-id for device registration"));let e;const t=this._currentContext;return t&&(e=this._generateStatePayload(t.getStateRef(),oe.REGISTER),this._setSequenceNumber(e)),this._sendDevicesRequest("POST",{device:this._deviceInfo,outro_endcontent_snooping:"true"==={NODE_ENV:"production",DEBUG_EVENT_SENDER:!1,DEBUG_SEMANTIC_METRICS:void 0,PRODUCT_NAME:"desktop"}.OUTRO_SNOOPING,connection_id:this._connectionId,client_version:this._clientVersion,previous_session_state:e,volume:this._currentGaiaVolume}).then(this._handleRegisterResponse).catch((e=>(e&&!e.maxedSubscriptions&&(e.registration=!0,this._emitError(e)),!1)))}}function ve(e,t={}){return function(e,t,n={}){var r,i,o,a,s,l;const c=e.getSDKId(),u=e.getPublicTransport(),d=e.getLogger(),p=e.getDeviceDescriptor(),f="initialVolume"in n&&void 0!==n.initialVolume?n.initialVolume:1,h=Object.assign(Object.assign({},n),{transport:u,sdkId:e.getUntaggedSDKId(),loggerOptions:{disableMux:null===(o=null!==(i=null===(r=null==n?void 0:n.mux)||void 0===r?void 0:r.disable)&&void 0!==i?i:null==n?void 0:n.disableMux)||void 0===o||o,muxEnvKey:null!==(s=null===(a=null==n?void 0:n.mux)||void 0===a?void 0:a.envKey)&&void 0!==s?s:null==n?void 0:n.muxEnvKey,deviceInfo:p.then((e=>({platform_name:e.getPlatformName(),platform:e.getPlatformIdentifier(),version:e.getPlatformVersion(),brand:e.getBrand(),model:e.getModel(),type:e.getType()}))),muxCustomDimensions:null===(l=null==n?void 0:n.mux)||void 0===l?void 0:l.customDimensions,platform:e.getPlatformIdentifier(),clientVersion:e.getPlatformVersion()}}),v=(0,H.MD)(h).then((({player:e})=>e)),m=v.then((e=>e.getMediaConfig())),g=Promise.all([p,m]).then((([e,t])=>(e.getCapability("audio_podcasts")&&!n.disableExternalFiles&&e.appendManifestFormat(I.FILE_URLS_EXTERNAL),t.keysystem===H.vk.FAIRPLAY?e.appendManifestFormat(I.FILE_IDS_CBCS):t.keysystem!==H.vk.WIDEVINE||n.preferMultiDRMFormat?e.appendManifestFormat(I.FILE_IDS_MP4_DUAL,I.FILE_IDS_MP4):(-1!==t.formats.audio.indexOf('audio/mp4; codecs="flac"')&&e.getCapability("lossless_playback")&&e.appendManifestFormat(I.FILE_IDS_MP4FLAC),e.appendManifestFormat(I.FILE_IDS_MP4,I.FILE_IDS_MP4_DUAL)),t.supports.protected_video&&e.getCapability("video_playback")&&e.prependManifestFormat(I.MANIFEST_IDS_VIDEO),e))),y=H._8.create({trackPlayer:v}),_=ee.create({descriptor:p,listPlayer:y}),{playbackServiceClient:b,playbackStateObserver:E}=t({initialVolume:f,listPlayer:y,logger:d,transport:u,clientVersion:c,descriptor:g,endpoint:n.endpoint,manifestTrackResolver:_}),S="stopOnBackground"in n?n.stopOnBackground:"undefined"==typeof MediaSource;return new G({client:e,playbackServiceClient:b,playbackStateObserver:E,initialVolume:f,playerPromise:v,listPlayer:y,stopOnBackground:S})}(e,(e=>{const t=he.create(Object.assign(Object.assign({},e),{ListClass:K}));return{playbackServiceClient:t,playbackStateObserver:X.create(t)}}),t)}const me=T.P.forTag("transport.server_time");class ge{constructor(e){this._serverTime=0,this._serverTimeFetchedAt=0,this._transport=e}static create(e){return new ge(e)}_parseServiceResponse(e,t){const n=Date.now(),r=t.status;return r===O.G.OK?this._serverTime=parseInt(t.body.timestamp,10)+Math.round((n-e)/2):(me.error(`Cannot fetch server time. Service responded with ${r}`),this._serverTime=n),this._serverTimeFetchedAt=n,this._serverTime}get(){const e=Date.now();return this._transport.request("@webgate/melody/v1/time",{responseType:"json"}).then(this._parseServiceResponse.bind(this,e))}getApproximate(){if(!this._serverTime)return this.get(),Date.now();const e=Date.now()-this._serverTimeFetchedAt;return e>18e4&&this.get(),this._serverTime+e}}var ye;!function(e){e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.STOPPED="stopped",e.REMOTE_ACTIVATED="remote_activated",e.UNKNOWN="unknown"}(ye||(ye={}));class _e extends Error{constructor(e,t){super(t),this.status=-1,this.maxedSubscriptions=!1,this.unrecoverable=!1,this.debug={},this.code=e,this.name="PlayerAPIClientError"}static fatal(e,t){const n=new _e(e,t);return n.unrecoverable=!0,n}}var be=n(36570);class Ee{constructor(e){this._transport=e.transport,this._metadataCache=new be.z(e.cacheSize||20)}static create(e){return new Ee(e)}_decorateTrackWindow(e){const t=this._metadataCache,n={current_track:null,next_tracks:[],previous_tracks:[]};let r,i,o;e.current_track&&(i=t&&e.current_track&&"uri"in e.current_track&&t.get(e.current_track.uri),n.current_track=Object.assign({uid:e.current_track.uid},i||e.current_track)),r=e.next_tracks.length;for(;r--;)o=e.next_tracks[r],i=t&&o&&"uri"in o&&t.get(o.uri),n.next_tracks[r]=Object.assign({uid:o.uid},i||o);for(r=e.previous_tracks.length;r--;)o=e.previous_tracks[r],i=t&&o&&"uri"in o&&t.get(o.uri),n.previous_tracks[r]=Object.assign({uid:o.uid},i||o);return n}_buildTrackList(e){const t=[],n={},r=[e.current_track,...e.next_tracks,...e.previous_tracks];for(const e of r)e&&!n[e.uri]&&t.push(e.uri);return t}_cacheMetadata(e){const t=[],n=[],r=this._metadataCache;for(const i of e){if(r.get(i))continue;const e=Y.from(i);if(!e)continue;const o=Y.hexToId(e.id);e.type===Y.Type.TRACK?n.push(o):e.type===Y.Type.EPISODE&&t.push(o)}return t.length||n.length?Promise.all([this._requestMultiData("episodes",t),this._requestMultiData("tracks",n)]).then((([e,t])=>!!e||!!t)):Promise.resolve(!0)}_requestMultiData(e,t){if(!t.length)return Promise.resolve(!1);const n=this._metadataCache,r=["https://@webapi/v1/",e,"?ids=",t.join(","),"&market=from_token"].join("");return this._transport.request(r,{responseType:"json"}).then((t=>{var r;if(200!==t.status)return!1;const i=null===(r=t.body)||void 0===r?void 0:r[e];if(!i)return!1;let o=i.length;for(;o--;){let t=i[o];t&&("episodes"===e?t=this._formatEpisodeData(t):(t.track_type="audio",t.media_type="audio"),n&&n.set(t.uri,t),n&&t.linked_from&&t.linked_from.uri&&n.set(t.linked_from.uri,t))}return!0}))}_formatEpisodeData(e){const t="audio"===e.show.media_type?"audio":"video";return{id:e.id,uri:e.uri,type:"episode",media_type:t,track_type:e.show.media_type,name:e.name,artists:[{uri:e.show.uri,name:e.show.publisher}],album:{uri:e.show.uri,name:e.show.name,images:e.images},duration_ms:e.duration_ms||0,is_playable:!0}}formatLocalTrack(e,t){if(!e||e.type!==Y.Type.LOCAL)return null;return{uri:e.toURI(),type:"local",uid:t,media_type:"audio",track_type:"audio",name:e.track,artists:[{uri:Y.localArtistURI(e.artist).toURI(),name:e.artist}],album:{uri:Y.localAlbumURI(e.artist,e.album).toURI(),name:e.album,images:[{url:""}]},duration_ms:e.duration?1e3*e.duration:0,is_playable:!1}}formatAd(e,t){if(!e||e.type!==Y.Type.AD&&e.type!==Y.Type.INTERRUPTION)return null;if(!t||!t.metadata)return null;const n=t.metadata;return{id:e.id,uri:e.toURI(),type:e.type,uid:t.uid,media_type:"audio",track_type:"audio",name:n.advertiser,artists:[{uri:n.click_url,name:n.buttonMessage||n.advertiser}],album:{uri:n.click_url,name:n.advertiser,images:[{url:n.image_url}]},duration_ms:parseInt(n.duration,10),is_playable:!1}}decorateTrackWindow(e,t){const n=null!=t?t:this._buildTrackList(e);return this._cacheMetadata(n).then((t=>t?this._decorateTrackWindow(e):e))}}const Se=T.P.forTag("harmony.controller"),Te=/^disallow_([^]+)_reasons$/,Oe={disallow_pausing_reasons:!0,disallow_peeking_next_reasons:!0,disallow_peeking_prev_reasons:!0,disallow_resuming_reasons:!0,disallow_seeking_reasons:!0,disallow_skipping_next_reasons:!0,disallow_skipping_prev_reasons:!0,disallow_toggling_repeat_context_reasons:!0,disallow_toggling_repeat_track_reasons:!0,disallow_toggling_shuffle_reasons:!0,disallow_transferring_playback_reasons:!0},Ae="premium",Ce="on-demand",Pe={unknown:H.cJ.UNKNOWN,default:H.cJ.DEFAULT,low:H.cJ.LOW,normal:H.cJ.NORMAL,normalized:H.cJ.NORMAL,high:H.cJ.HIGH,veryhigh:H.cJ.VERY_HIGH,hifi:H.cJ.HIFI},Ie={on:W.ON,off:W.OFF,none:W.NONE};function Re(e,t){if(!e)return[];const n=[],r=[Y.Type.TRACK,Y.Type.EPISODE];for(let i=0,o=e.length;i{})))}_onDeviceStateChanged(e){var t,n;const{deviceState:r,hasOrphanedState:i}=e.data,o=!!(null===(n=null===(t=this._lastDeviceInfoData)||void 0===t?void 0:t.deviceInfo)||void 0===n?void 0:n.local);this._lastDeviceInfoData={deviceInfo:r,hasOrphanedState:i},o&&!(null==r?void 0:r.local)&&this._playerClient.getDevices().then((({localDevice:e})=>{let t=ye.STOPPED;i?e||(t=ye.LOCAL_PLAYER_DISABLED):t=ye.REMOTE_ACTIVATED,this.emit("device_deactivated",{reason:t})})).catch((e=>{Se.warn("Device deactivation checking failed.",e)})),this._suppressed||this.emit("device_info_changed",this._lastDeviceInfoData)}_startProgressTracking(){this._stopProgressTracking(),this._lastProgressTs=Date.now(),this._onProgressTracking(),this._trackingIntervalId=setInterval(this._onProgressTracking,500)}_stopProgressTracking(){this._trackingIntervalId&&(clearInterval(this._trackingIntervalId),this._trackingIntervalId=0)}_onProgressTracking(){var e;const t=Date.now(),n=(null===(e=this._lastPlayerState)||void 0===e?void 0:e.playback_speed)||1;this._progressPosition+=n*(t-this._lastProgressTs),this.emit("progress",{position:this._progressPosition,timestamp:Date.now()}),this._lastProgressTs=t}_getLicense(){return this._client.getProductState().then((e=>"premium"===e.product?Ae:Ce)).catch((()=>Ce))}_generatePlayOptions(e,t){return this._getLicense().then((n=>{const r={license:n};if(!e)return r;if(("index"in e||"trackUID"in e||"trackURI"in e||"pageIndex"in e)&&(r.skip_to={track_uid:e.trackUID,track_index:e.index,track_uri:e.trackURI,page_index:e.pageIndex}),"initialOffset"in e&&(r.seek_to=e.initialOffset),"paused"in e&&(r.initially_paused=e.paused),"alwaysPlaySomething"in e&&(r.always_play_something=e.alwaysPlaySomething),t)return r;r.player_options_override={};const i=r.player_options_override;if("shuffle"in e&&(i.shuffling_context=e.shuffle),"repeatMode"in e)switch(e.repeatMode){case h.CONTEXT:i.repeating_context=!0,i.repeating_track=!1;break;case h.TRACK:i.repeating_track=!0,i.repeating_context=!1;break;case h.OFF:i.repeating_track=!1,i.repeating_context=!1}return r}))}_setFilterAndSort(e,t){t&&t.filter&&e.metadata&&(e.metadata["filtering.predicate"]=t.filter),t&&t.sort&&e.metadata&&(e.metadata["sorting.criteria"]=t.sort)}_setMetadataOptions(e,t){if(!t)return;const n=e.metadata||{};"autoplayCandidate"in t&&(n.autoplay_candidate=t.autoplayCandidate?"true":"false"),e.metadata=n}_generatePlayOrigin(e){if(e&&e.featureClasses&&!Array.isArray(e.featureClasses))throw new TypeError("PlayOptions playOrigin.featureClasses must be an array of strings.");return{feature_identifier:e&&e.featureIdentifier||"harmony",feature_version:e&&e.featureVersion||this._version,feature_classes:e&&e.featureClasses,view_uri:e&&e.viewURI,external_referrer:e&&e.externalReferrer,referrer_identifier:e&&e.referrerIdentifier}}_generateLoggingParams(e){const{pageInstanceId:t,interactionId:n}=e;return{page_instance_ids:t?[t]:[],interaction_ids:n?[n]:[]}}_parseRestrictions(e){const t={};for(const n in e.restrictions)e.restrictions.hasOwnProperty(n)&&Oe[n]?t[n]=e.restrictions[n]:Oe[n]&&(t[n]=[]);return t}_parseDisallows(e){const t={},n=e.restrictions;for(const e in n)if(n.hasOwnProperty(e)&&Oe[e]){const r=n[e],i=!(!r||!r.length);t[e.replace(Te,"$1")]=i}return t}_onPlayerStateChanged(e){this._isOrphanedState=e.data.orphaned,this._parsePlayerState(e.data.playerState).then((t=>{this._state=t,this._suppressed||this.emit("state_changed",{state:t?Object.assign({},t):null,orphaned:e.data.orphaned}),!this._disableProgress&&t&&(this._progressPosition=t.position,t.paused?this._stopProgressTracking():this._startProgressTracking())}))}_parsePlayerState(e){return this._lastPlayerState=e,e?this._getTrackWindow(e).then((t=>{var n,r,i,o,a,s,l,c;return{context:{uri:e.context_uri||null,metadata:e.context_metadata||{}},timestamp:e.timestamp,duration:e.duration||t.current_track&&"uri"in t.current_track&&t.current_track.duration_ms||0,position:e.is_paused?e.position_as_of_timestamp:this._offsetPosition(e.timestamp,e.position_as_of_timestamp,null===(n=this._lastPlayerState)||void 0===n?void 0:n.playback_speed),playback_id:null,playback_quality:null!==(o=Pe[null!==(i=null===(r=e.playback_quality)||void 0===r?void 0:r.bitrate_level)&&void 0!==i?i:"unknown"])&&void 0!==o?o:H.cJ.UNKNOWN,playback_features:{hifi_status:Ie[null!==(s=null===(a=e.playback_quality)||void 0===a?void 0:a.hifi_status)&&void 0!==s?s:"none"]},paused:!!e.is_paused,shuffle:!(!e.options||!e.options.shuffling_context),repeat_mode:this._getStateRepeatMode(e),restrictions:this._parseRestrictions(e),disallows:this._parseDisallows(e),track_window:t,bitrate:null,loading:null!==(c=null===(l=this._state)||void 0===l?void 0:l.loading)&&void 0!==c&&c}})):Promise.resolve(null)}_offsetPosition(e,t,n=1,r){const i=t+((r||this._serverTime.getApproximate())-e)*n;return i<0?0:i}_isRestricted(e,t){if(!e||!e.restrictions)return!1;const n=`disallow_${t}_reasons`;return!!(e.restrictions[n]||[]).length}_getTrackWindow(e){const t={current_track:null,next_tracks:[],previous_tracks:[]},n={},r=[];if(!e.track)return Promise.resolve(t);const i=e.track.uri;if(!i)return Promise.resolve(t);const o=this._metadataDecorator,a=Y.from(i),s=o.formatLocalTrack(a,e.track.uid),l=o.formatAd(a,e.track);return t.current_track=s||l||{uri:i,uid:e.track.uid,type:a&&a.type?a.type:"unknown"},s||l||(n[i]=1,r.push(i)),this._isRestricted(e,"peeking_next")||this._fillWindow(r,t.next_tracks,n,e.next_tracks?e.next_tracks.slice(0,5):[]),this._isRestricted(e,"peeking_prev")||this._fillWindow(r,t.previous_tracks,n,e.prev_tracks?e.prev_tracks.slice(-5):[],!0),this._decorate?this._metadataDecorator.decorateTrackWindow(t,r):Promise.resolve(t)}_fillWindow(e,t,n,r,i){i&&r.reverse();for(const o of r){const r=o.uri,a=Y.from(r);if(!r||"spotify:delimiter"===r||a&&(a.type===Y.Type.AD||a.type===Y.Type.INTERRUPTION))continue;const s=this._metadataDecorator.formatLocalTrack(a,o.uid),l=s||{uri:r,uid:o.uid,type:"unknown"};if(s||r in n||(n[r]=1,e.push(r)),i?t.unshift(l):t.push(l),2===t.length)break}}_getStateRepeatMode(e){const t=e.options;return t&&t.repeating_track?h.TRACK:t&&t.repeating_context?h.CONTEXT:h.OFF}_play(e,t,n){return this._setFilterAndSort(e,n),this._setMetadataOptions(e,n),this._generatePlayOptions(n).then((r=>{const i={context:e,play_origin:this._generatePlayOrigin(n&&n.playOrigin),options:r};return(null==n?void 0:n.loggingParams)&&(i.logging_params=this._generateLoggingParams(n.loggingParams)),this._playerClient.play(i,t)}))}getActiveDevice(){return this._playerClient.getActiveDevice()}getCurrentState(e){var t;if(e&&this._isOrphanedState)return Promise.resolve(null);const n=this._state;if(n&&!n.paused){const e=this._serverTime.getApproximate();n.position=this._offsetPosition(n.timestamp,n.position,null===(t=this._lastPlayerState)||void 0===t?void 0:t.playback_speed,e),n.timestamp=e}return Promise.resolve(n?Object.assign({},n):null)}getContextPlayerState(){return Se.warn("The `getContextPlayerState()` method is not well supported. Please avoid using it directly."),this._playerClient.getContextPlayerState()}getDevices(){return this._playerClient.getDevices()}playURI(e,t,n){if(!Y.from(e))return Promise.reject(new TypeError("Invalid Spotify URI"));const r={uri:e,url:`context://${e}`,metadata:n&&n.contextMetadata||{}};return this._play(r,t,n)}playPages(e,t,n){var r;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid pages array."));let i;try{i=function(e){var t,n,r;const i=[];for(const o of e)i.push({tracks:Array.isArray(o.tracks)?Re(o.tracks):void 0,page_url:null!==(t=Ne(o.pageURL))&&void 0!==t?t:void 0,next_page_url:null!==(n=Ne(o.nextPageURL))&&void 0!==n?n:void 0,metadata:null!==(r=o.metadata)&&void 0!==r?r:void 0});return i}(e)}catch(e){return Promise.reject(e)}const o={uri:null!==(r=null==n?void 0:n.contextURI)&&void 0!==r?r:"spotify:internal:harmony-play-pages",metadata:(null==n?void 0:n.contextMetadata)||{},pages:i};return this._play(o,t,n)}playTracks(e,t,n){var r;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid tracks array."));let i;try{i=Re(e)}catch(e){return Promise.reject(e)}const o={uri:null!==(r=null==n?void 0:n.contextURI)&&void 0!==r?r:"spotify:internal:harmony-play-tracks",metadata:(null==n?void 0:n.contextMetadata)||{},pages:[{tracks:i}]};return this._play(o,t,n)}updateCurrentContext(e,t={}){return this._playerClient.updateCurrentContext(e,t)}setQueue(e,t,n){if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid nextTracks array."));if(!Array.isArray(t))return Promise.reject(new TypeError("Invalid previousTracks array."));let r,i;try{r=Re(e),i=Re(t)}catch(e){return Promise.reject(e)}const o={next_tracks:r.length?r:void 0,prev_tracks:i.length?i:void 0};return this._playerClient.setQueue(o,n)}togglePlay(e){return this._playerClient.togglePlay(e)}transfer(e,t={}){return this._playerClient.transfer(e,t)}pause(e){return this._playerClient.pause(e)}resume(e){return this._playerClient.resume(e)}nextTrack(e,t){const n={};return(null==t?void 0:t.track)&&(n.track=_([t.track])[0]),this._playerClient.nextTrack(e,n)}previousTrack(e,t){const n={};return(null==t?void 0:t.track)&&(n.track=_([t.track])[0]),this._playerClient.previousTrack(e,n)}seek(e,t){return this._playerClient.seek(e,t)}setShuffle(e,t){return this._playerClient.setShuffle(e,t)}toggleShuffle(e){return this._playerClient.toggleShuffle(e)}setVolume(e,t){return this._playerClient.setVolume(e,t)}logout(e){return this._playerClient.logout(e)}setRepeatMode(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const i=this._playerClient,o=n.disallows;switch(e){case h.OFF:return(!o.toggling_repeat_context||!o.toggling_repeat_track)&&i.setOptions({repeating_context:!!o.toggling_repeat_context&&void 0,repeating_track:!!o.toggling_repeat_track&&void 0},t);case h.CONTEXT:return!o.toggling_repeat_context&&i.setOptions({repeating_context:!0,repeating_track:!!o.toggling_repeat_track&&void 0},t);case h.TRACK:return!o.toggling_repeat_track&&i.setOptions({repeating_context:!o.toggling_repeat_context||void 0,repeating_track:!0},t);default:return Promise.reject(new TypeError("Unknown repeat mode."))}}))}register(){return this._playerClient.register()}suppressEvents(){this._suppressed=!0}unsuppressEvents(){this._suppressed=!1,this._lastDeviceInfoData&&this.emit("device_info_changed",this._lastDeviceInfoData),this._state&&this.emit("state_changed",{state:this._state})}getQueueManager(e,t={}){if(!this._queue){const n=t.reportInitial?this._lastPlayerState:null;this._queue=new E(Object.assign({connectClient:this._playerClient,initialContextPlayerState:n,runner:e},t))}return this._queue}}var Le=n(45298);const we=/connect-state\/v1\/cluster$/,De=/^([a-zA-Z0-9_%:-]{1,40}).*$/;function Me(e){var t,n,r;return!!e.track&&0===(null!==(r=null===(n=null===(t=e.restrictions)||void 0===t?void 0:t.disallow_transferring_playback_reasons)||void 0===n?void 0:n.length)&&void 0!==r?r:0)}const xe="::a_";function Ue(e){if(!e)return{deviceId:null};const[t,n]=e.split(xe);return{deviceId:t,aliasId:n?parseInt(n,10):void 0}}class Fe extends s.vp{constructor(e){super(),this._autoregister=!0,this._connectionId="",this._localDeviceId="",this._localObserverDeviceId=null,this._lastActiveDevice=null,this._lastKnownPlayerState=null,this._lastKnownDevices=[],this._localDevice=null,this._fetchedInitialState=!1,this._awaitingAcknowledgment={},this._acknowledgementMaps=[],this._lastProcessedTimestamp=0,this._descriptor=e.descriptor,this._transport=e.transport,this._endpoint=e.endpoint||"@webgate/connect-state",this._autoregister=!("autoregister"in e)||!!e.autoregister,this._onConnectionId=this._onConnectionId.bind(this),this._onClusterMessage=this._onClusterMessage.bind(this),this._awaitResponseWithAck=this._awaitResponseWithAck.bind(this),this._transport.on(this._transport.EVENT_CONNECTION_ID,(e=>{this._onConnectionId(e.data.id)})),this._transport.matchMessages(we,this._onClusterMessage),this._descriptorPromise=Promise.resolve(this._descriptor).then((e=>(this._localDeviceId=e.id||"",this._localObserverDeviceId=("hobs_"+this._localDeviceId).replace(De,"$1"),!0)))}static create(e){return new Fe(e)}_onConnectionId(e){this._connectionId=e,this._autoregister&&this.register()}_onClusterMessage(e){const t=e.payloads&&e.payloads[0];if(t){if(t.ack_id){const e=t.ack_id,n=this._awaitingAcknowledgment[e];if(n)n.resolve(!0);else{const t=this._acknowledgementMaps;for(const n of t)n[e]=(0,c.$)()}}this._parseCluster(t.cluster)}}_resolveTargetDevice(e){return this._descriptorPromise.then((()=>{const t=this._localDeviceId;return Ue(e?e===u?t:e:this._lastActiveDevice?this._lastActiveDevice.id:t)}))}_makeEndpoint(e,t,n){return this._descriptorPromise.then((()=>{const r=this._localDeviceId;return`${this._endpoint}/${e}/${t}/from/${r}/to/${n}`}))}_sendPlayerCommand(e,t=null,n={}){n.endpoint=e;const i={command:n};return this._resolveTargetDevice(t).then((e=>{if(!e.deviceId)throw new _e(r.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return!i.target_alias_id&&e.aliasId&&(i.target_alias_id=e.aliasId),this._makeEndpoint("v1","player/command",e.deviceId)})).then((e=>this._sendRequest(Le.n.POST,e,i))).then(this._awaitResponseWithAck)}_sendConnectCommand(e,t=null,n={}){const i="volume"===e?Le.n.PUT:Le.n.POST,o="volume"===e||"logout"===e;return this._resolveTargetDevice(t).then((t=>{if(!t.deviceId)throw new _e(r.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return t.aliasId&&(o?n.command_options={target_alias_id:t.aliasId}:n.target_alias_id||(n.target_alias_id=t.aliasId)),this._makeEndpoint("v1",`connect/${e}`,t.deviceId)})).then((e=>this._sendRequest(i,e,n))).then(this._awaitResponseWithAck)}_sendRequest(e,t,n){const r=this._acknowledgementMaps,i={};r.push(i);const o=()=>{const e=r.indexOf(i);-1!==e&&r.splice(e,1)};return this._transport.request(t,{method:e,payload:n?JSON.stringify(n):void 0,responseType:"json",retry:{condition:(e,t)=>{const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}}}).then((e=>(o(),{response:e,map:i})),(e=>(o(),Promise.reject(e))))}_awaitResponseWithAck(e){var t,n;if(404===e.response.status)return Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_DEVICE,"No such device."));const i=null===(t=e.response.body)||void 0===t?void 0:t.ack_id;if(200===e.response.status&&i){if(null===(n=e.map)||void 0===n?void 0:n[i])return Promise.resolve(!0);const t=(0,c.$)();return this._awaitingAcknowledgment[i]=t,t.promise}return Promise.resolve(202===e.response.status&&!i)}_parseCluster(e){if(!e)return;const t=parseInt(e.timestamp,10);this._lastProcessedTimestamp>t||(this._lastProcessedTimestamp=t,this._parseClusterDevices(e),this._parseClusterPlayerState(e))}_parseClusterDevices(e){const t=this._lastActiveDevice;this._lastActiveDevice=null,this._lastKnownDevices=[],this._localDevice=null;const n=[];for(const t in e.devices)e.devices.hasOwnProperty(t)&&n.push(t);if(n.sort(),n.length){const t=e.active_device_id;for(const r of n){const n=e.devices[r],i=this._formatClusterDevice(n,t);this._lastKnownDevices.push(...i);for(const e of i)e.is_active&&(this._lastActiveDevice=e),e.local&&(this._localDevice=e)}}if(!this._fetchedInitialState||!m(this._lastActiveDevice,t)){const n=e.player_state,r=n&&Me(n);this.emit("device_state_changed",{deviceState:this._lastActiveDevice,hasOrphanedState:!this._lastActiveDevice&&!!r,disappeared:!!t&&!this._lastActiveDevice})}this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice})}_formatClusterDevice(e,t){const n={};if(e&&Array.isArray(e.metadata))for(let t=0,r=e.metadata.length;t{429===e.status?this.emit("max_subscriptions_reached",{error:new _e(r.CONNECTAPI_MAX_SUBSCRIPTIONS_REACHED,"Max connections reached")}):200===e.status&&(this.emit("registered",null),e.body&&(this._parseCluster(e.body),this._fetchedInitialState=!0)),429!==e.status&&408!==e.status||(this._lastKnownDevices=this._lastKnownDevices.map((e=>(e.is_being_activated=!1,e))),this._localDevice&&(this._localDevice.is_being_activated=!1),this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice}))}))}register(){return this._connectionId?this._descriptorPromise.then(this._register.bind(this)):Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_CONNECTION_ID,"Cannot register: no connection id."))}deregister(){const e=`${this._endpoint}/v1/devices/${this._localObserverDeviceId}`;return this._transport.request(e,{method:"DELETE",responseType:"json"}).then((e=>{200===e.status&&this.emit("deregistered",null)}))}getDevices(){return this._fetchedInitialState?Promise.resolve({devices:this._lastKnownDevices,localDevice:this._localDevice}):new Promise((e=>{this.once("device_state_changed",(()=>{e({devices:this._lastKnownDevices,localDevice:this._localDevice})}))}))}getActiveDevice(){return this._fetchedInitialState?Promise.resolve(this._lastActiveDevice):new Promise((e=>{this.once("device_state_changed",(t=>{e(t.data.deviceState)}))}))}getContextPlayerState(){return this._fetchedInitialState?Promise.resolve(this._lastKnownPlayerState):new Promise((e=>{this.once("player_state_changed",(t=>{e(t.data.playerState)}))}))}play(e,t=null){return e?this._sendPlayerCommand("play",t,e):Promise.reject(new _e(r.CONNECTAPI_CLIENT_INVALID_ARGUMENTS,"Descriptor is required for play commands"))}updateCurrentContext(e=null,t={}){return this.getContextPlayerState().then((n=>n?n.session_id?n.context_url||t.forceNonUpdateable?this._sendPlayerCommand("update_context",e,{context:{url:n.context_url||`context://${n.context_uri}`},session_id:n.session_id}):Promise.resolve(!1):Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_SESSION_ID,"The current state does not have a session id")):Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}setQueue(e,t){return this._sendPlayerCommand("set_queue",t,e)}addToQueue(e,t){return this._sendPlayerCommand("add_to_queue",t,{track:e})}togglePlay(e){return this.getContextPlayerState().then((t=>t?t.is_paused?this.resume(e):this.pause(e):Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}transfer(e,t={}){var n,r;this._lastKnownDevices=this._lastKnownDevices.map((t=>(t.is_being_activated=t.id===e,t))),this._localDevice&&(this._localDevice.is_being_activated=e===u),this.emit("devices_changed",{devices:this._lastKnownDevices,localDevice:this._localDevice});const i={restore_paused:"restore"};return"paused"in t&&(i.restore_paused=t.paused?"pause":"resume"),this._sendConnectCommand("transfer",e||u,{transfer_options:i,page_instance_id:null===(n=t.loggingParams)||void 0===n?void 0:n.pageInstanceId,interaction_id:null===(r=t.loggingParams)||void 0===r?void 0:r.interactionId})}pause(e){return this._sendPlayerCommand("pause",e)}resume(e){return this._sendPlayerCommand("resume",e)}nextTrack(e,t){return this._sendPlayerCommand("skip_next",e,t)}previousTrack(e,t){return this._sendPlayerCommand("skip_prev",e,t)}seek(e,t){return isNaN(e)||e<0?Promise.reject(new _e(r.CONNECTAPI_CLIENT_INVALID_POSITION,"Invalid position.")):this._sendPlayerCommand("seek_to",t,{value:e})}setShuffle(e,t){return this._sendPlayerCommand("set_shuffling_context",t,{value:!!e})}toggleShuffle(e){return this.getContextPlayerState().then((t=>{if(!t)return Promise.reject(new _e(r.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const n=t.options&&t.options.shuffling_context;return this.setShuffle(!n,e)}))}setRepeatingContext(e,t){return this._sendPlayerCommand("set_repeating_context",t,{value:e})}setRepeatingTrack(e,t){return this._sendPlayerCommand("set_repeating_track",t,{value:!!e})}setOptions(e,t){return this._sendPlayerCommand("set_options",t,Object.assign({},e))}setVolume(e,t){if(isNaN(e)||e<0)return Promise.reject(new _e(r.CONNECTAPI_CLIENT_INVALID_VOLUME,"Invalid volume."));const n=Math.round(e*d);return this._sendConnectCommand("volume",t,{volume:n})}logout(e){return this._sendConnectCommand("logout",e)}}const ze=Object.assign(Object.assign(Object.assign({},r),o.J),i.D);function Be(e){var t;const n=e.transport;if(!n)throw new TypeError("No Transport instance provided");const r=function(e){return j.create(e)}(Object.assign(Object.assign({},e.client),{transport:n,hidden:!!e.hidden,playTokenLostBehavior:e.hidden&&!e.onlyLocalState?"stop":"pause"})),i=e.streamer||{},o=e.controller||{};let a,s=!1;e.streamer&&e.streamer.disabled?(e.hidden=!0,e.onlyLocalState=!1,e.claimInactivePlayerStates=!1,s=!0):(a=ve(r,i),o.autoregister=!1,e.onlyLocalState&&(o.decorateTrackWindow=!1,o.disableProgress=!0));const l=function(e,t={}){const n=e.getPublicTransport(),r=e.getVersionDescriptor().tagged,i=Fe.create({autoregister:!("autoregister"in t)||t.autoregister,descriptor:e.getClientDescriptor(),transport:n});return ke.create({client:e,playerClient:i,version:r,serverTime:ge.create(n),decorateTrackWindow:"boolean"!=typeof t.decorateTrackWindow||t.decorateTrackWindow,disableProgress:t.disableProgress})}(r,o);return S.create({transport:n,client:r,streamer:a,controller:l,enableControllerWithoutStreamer:s,hidden:e.hidden,onlyLocalState:e.onlyLocalState,claimInactivePlayerStates:e.claimInactivePlayerStates,autoActivateElement:null!==(t=e.autoActivateElement)&&void 0!==t?t:"undefined"!=typeof WebKitMediaKeys,experimentalDeactivateOnStop:e.experimentalDeactivateOnStop})}},78e3:(e,t,n)=>{"use strict";n.d(t,{FP:()=>E,Of:()=>T});var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t0){var r=t[n[0]],i=r.click_actions,o=r.html_content,a=r.impression_url;return{actions:i,format:r.creative_type,htmlContent:o,impressionUrl:a}}}function s(e,t){var n={"App-Platform":e.platform,"Content-Type":"application/json","X-Client-Id":e.clientId};return t&&(n["X-Spotify-Quicksilver-Uri"]=t),{method:"GET",authorize:!0,headers:n,rejectNotOk:!0,responseType:"json"}}function l(e){return"prod"===e?"quicksilver/v2/":"quicksilverdev/v2/"}var c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},u=function(){for(var e=[],t=0;t1&&o.push("Triggers must all be of the same type."),o}function p(e,t){var n=t.actions,r=t.app,i=t.appUri,c=t.enableLogs,p=t.formats,f=t.locale,h=t.env,v=t.triggers,m=d({formats:p,triggers:v});return m.length>0?(c&&console.error("In-App Messaging: Please fix the following request errors: "+m.join(" ")),Promise.resolve(void 0)):e.request.apply(e,u(function(e){var t=e.actions,n=e.app,r=e.appUri,i=e.formats,a=e.locale,c=e.env,u=e.triggers,d=l(c),p=o("trigger",u.map((function(e){return encodeURIComponent(e.pattern)}))),f=o("ctv_type",i),h=o("action",t);return["@webgate/"+d+"messages?"+f+p+h+"locale="+a+"&trig_type="+u[0].type,s(n,r)]}({actions:n,app:r,appUri:i,formats:p,locale:f,env:h,triggers:v}))).then((function(e){return a(e)}))}var f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},h=function(){for(var e=[],t=0;t0?(o&&console.error("In-App Messaging: Please fix the following preview request errors: "+d.join(" ")),Promise.resolve(void 0)):e.request.apply(e,h(function(e){var t=e.app,n=e.appUri,r=e.creativeId,i=e.locale,o=l(e.env),a=encodeURIComponent("spotify:home");return["@webgate/"+o+"preview?trigger="+a+"&locale="+i+"&trig_type=URI&return_messages=true&relay_creative=true&creative_id="+r,s(t,n)]}({app:n,appUri:r,creativeId:i,locale:c,env:u}))).then((function(e){return a(e)}))}var m=function(e){var t=e.actions,n=e.app,r=e.enableLogs,i=e.formats,a=e.locale,c=e.transport;return{requestMessage:function(e){var o=e.appUri,s=e.env,l=e.triggers;return p(c,{actions:t,app:n,appUri:o,enableLogs:r,formats:i,locale:a,env:s,triggers:l})},previewMessage:function(e){var t=e.appUri,i=e.creativeId,o=e.env;return v(c,{app:n,appUri:t,creativeId:i,enableLogs:r,locale:a,env:o})},getTriggers:function(e,t){return function(e,t){var n=t.app,r=t.triggerTypes,i=t.env,a=t.formats,s="@webgate/"+l(i)+"triggers?"+o("trig_type",r)+o("ctv_type",a);return e.request(s,{method:"GET",authorize:!0,headers:{"App-Platform":n.platform,"Content-Type":"application/json","X-Client-Id":n.clientId},rejectNotOk:!0,responseType:"json"}).then((function(e){return function(e){return e.body||[]}(e)})).catch((function(){return[]}))}(c,{app:n,formats:i,env:t,triggerTypes:e})},track:function(e){return function(e,t,n){e.request(t,s(n))}(c,e,n)}}},g=["DISMISS","URL","EXTERNAL_URL","SELECT_OPTION"];function y(e,t,n){var r=document.createElement("iframe");return r.srcdoc=e.htmlContent,r.addEventListener("load",(function(){!function(e,t,n){var r=e.contentDocument,i=e.contentWindow;r&&r.querySelectorAll("[data-click-to-action-id]").forEach((function(e){i&&e instanceof i.HTMLElement&&e.addEventListener("click",(function(e){var r,o=e.currentTarget;if(o instanceof i.HTMLElement){var a=o.dataset.clickToActionId,s=a&&t[a];s&&(r=s.action,g.some((function(e){return e===r})))&&n(s)}}))}))}(r,e.actions,n),function(e){var t=e.contentDocument;t&&(e.style.width=(t.body.getAttribute("data-iframe-width")||500)+"px",e.style.height=t.body.scrollHeight+"px")}(r),t()}),{once:!0}),r}var _=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},b=function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.silly=t.verbose=t.debug=t.info=t.warn=t.error=t.log=t.logger=void 0,t.logger={log:(...e)=>console.log(...e),error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e),info:(...e)=>console.info(...e),debug:(...e)=>console.debug(...e),verbose:(...e)=>console.log("verbose:",...e),silly:(...e)=>console.log("silly:",...e)},t.default=t.logger,t.log=t.logger.log.bind(t.logger),t.error=t.logger.error.bind(t.logger),t.warn=t.logger.warn.bind(t.logger),t.info=t.logger.info.bind(t.logger),t.debug=t.logger.debug.bind(t.logger),t.verbose=t.logger.verbose.bind(t.logger),t.silly=t.logger.silly.bind(t.logger)},36570:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});const r="Node already exists in another list!";class i{constructor(e){this.listId=null,this.key="",this.prev=null,this.next=null,this.value=null,this.value=e}}class o{constructor(){this._id={},this.length=0,this.first=null,this.last=null}append(e){if(e.listId)throw new Error(r);return e.listId=this._id,this.first?this.last&&(e.prev=this.last,e.next=null,this.last.next=e,this.last=e):(this.first=e,this.last=e),++this.length}insertAfter(e,t){if(t.listId)throw new Error(r);return t.listId=this._id,t.prev=e,t.next=e.next,e.next&&(e.next.prev=t),e.next=t,t.prev===this.last&&(this.last=t),++this.length}remove(e){return!(!this.length||e.listId!==this._id)&&(this.length>1?(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this.first?this.first=e.next:e===this.last&&(this.last=e.prev)):(this.first=null,this.last=null),e.listId=null,e.prev=null,e.next=null,this.length--,!0)}}class a{constructor(e){this._limit=100,this._list=new o,this._map={},this._limit=e}get(e){const t=this._map[e];if(!t)return null;const n=this._list;return n.remove(t),n.append(t),t.value}set(e,t){if(!e)throw new TypeError("Cache key cannot be empty.");const n=this._list,r=this._map;if(n.length>=this._limit){const e=n.first;r[e.key]=null,n.remove(e)}let o=r[e];o?(n.remove(o),o.value=t):(o=new i(t),o.key=e),n.append(o),r[e]=o}remove(e){const t=this._map,n=t[e];return n?(this._list.remove(n),t[e]=null,n.value):null}keys(){const e=[];let t=this._list.first;for(;t;)e.push(t.key),t=t.next;return e.reverse()}values(){const e=[];let t=this._list.first;for(;t;)e.push(t.value),t=t.next;return e.reverse()}size(){return this._list.length}clear(){const e=this._list.length;return this._list=new o,this._map={},e}}},46971:(e,t,n)=>{"use strict";n.d(t,{$:()=>Sr});var r=n(67294),i=n.n(r);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,r.Component);var t=p(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e)).container=i().createRef(),r}return function(e,t,n){t&&a(e.prototype,t)}(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.this,n=u(e,["this"]);this.instance=new t({target:this.container.current,hydrate:!0,props:n})}},{key:"componentDidUpdate",value:function(){var e=this.props,t=(e.this,u(e,["this"]));this.instance.$set(t)}},{key:"componentWillUnmount",value:function(){this.instance.$destroy()}},{key:"render",value:function(){return i().createElement("div",{ref:this.container,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0})}}]),n}(),h=function(e,t){return function(t){return i().createElement(f,s({this:e},t))}};function v(e){return(v="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0}function ve(e,t,n,r,i,o,a){for(var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/r,c="{\n",u=0;u<=1;u+=l){var d=t+(n-t)*o(u);c+=100*u+"%{".concat(a(d,1-d),"}\n")}var p=c+"100% {".concat(a(n,1-n),"}\n}"),f="__svelte_".concat(he(p),"_").concat(s),h=e.ownerDocument;pe.add(h);var v=h.__svelte_stylesheet||(h.__svelte_stylesheet=h.head.appendChild(X("style")).sheet),m=h.__svelte_rules||(h.__svelte_rules={});m[f]||(m[f]=!0,v.insertRule("@keyframes ".concat(f," ").concat(p),v.cssRules.length));var g=e.style.animation||"";return e.style.animation="".concat(g?"".concat(g,", "):"").concat(f," ").concat(r,"ms linear ").concat(i,"ms 1 both"),fe+=1,f}function me(e,t){var n=(e.style.animation||"").split(", "),r=n.filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}),i=n.length-r.length;i&&(e.style.animation=r.join(", "),(fe-=i)||H((function(){fe||(pe.forEach((function(e){for(var t=e.__svelte_stylesheet,n=t.cssRules.length;n--;)t.deleteRule(n);e.__svelte_rules={}})),pe.clear())})))}function ge(e){de=e}function ye(){if(!de)throw new Error("Function called outside component initialization");return de}function _e(e){ye().$$.on_mount.push(e)}var be=[],Ee=[],Se=[],Te=[],Oe=Promise.resolve(),Ae=!1;function Ce(e){Se.push(e)}var Pe,Ie=!1,Re=new Set;function Ne(){if(!Ie){Ie=!0;do{for(var e=0;e=y)return v(1,0),we(e,!0,"end"),l(),a=!1;if(t>=g){var n=f((t-g)/d);v(n,1-n)}}return a}))}var u=!1;return{start:function(){u||(me(e),U(o)?(o=o(),Le().then(c)):c())},invalidate:function(){u=!1},end:function(){a&&(l(),a=!1)}}}function je(e,t,n,r){var i=t(e,n),o=r?0:1,a=null,s=null,l=null;function c(){l&&me(e,l)}function u(e,t){var n=e.b-o;return t*=Math.abs(n),{a:o,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function d(t){var n=i||Be,r=n.delay,d=void 0===r?0:r,p=n.duration,f=void 0===p?300:p,h=n.easing,v=void 0===h?L:h,m=n.tick,g=void 0===m?k:m,y=n.css,_={start:j()+d,b:t};t||(_.group=De,De.r+=1),a?s=_:(y&&(c(),l=ve(e,o,t,f,d,v,y)),t&&g(0,1),a=u(_,f),Ce((function(){return we(e,t,"start")})),K((function(t){if(s&&t>s.start&&(a=u(s,f),s=null,we(e,a.b,"start"),y&&(c(),l=ve(e,o,a.b,a.duration,0,v,i.css))),a)if(t>=a.end)g(o=a.b,1-o),we(e,a.b,"end"),s||(a.b?c():--a.group.r||x(a.group.c)),a=null;else if(t>=a.start){var n=t-a.start;o=a.a+a.d*v(n/a.duration),g(o,1-o)}return!(!a&&!s)})))}return{run:function(e){U(i)?Le().then((function(){i=i(),d(e)})):d(e)},end:function(){c(),a=s=null}}}var He="undefined"!=typeof window?window:n.g;function Ge(e,t){for(var n={},r={},i={$$scope:1},o=e.length;o--;){var a=e[o],s=t[o];if(s){for(var l in a)l in s||(r[l]=1);for(var c in s)i[c]||(n[c]=s[c],i[c]=1);e[o]=s}else for(var u in a)i[u]=1}for(var d in r)d in n||(n[d]=void 0);return n}function qe(e){return"object"===v(e)&&null!==e?e:{}}function Ke(e){e&&e.c()}function We(e,t){e&&e.l(t)}function Ye(e,t,n){var r=e.$$,i=r.fragment,o=r.on_mount,a=r.on_destroy,s=r.after_update;i&&i.m(t,n),Ce((function(){var t=o.map(D).filter(U);a?a.push.apply(a,I(t)):x(t),e.$$.on_mount=[]})),s.forEach(Ce)}function Je(e,t){var n=e.$$;null!==n.fragment&&(x(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $e(e,t){-1===e.$$.dirty[0]&&(be.push(e),Ae||(Ae=!0,Oe.then(Ne)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<6&&void 0!==arguments[6]?arguments[6]:[-1],s=de;ge(e);var l=t.props||{},c=e.$$={fragment:null,ctx:null,props:o,update:k,not_equal:i,bound:M(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:M(),dirty:a},u=!1;if(c.ctx=n?n(e,l,(function(t,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return c.ctx&&i(c.ctx[t],c.ctx[t]=r)&&(c.bound[t]&&c.bound[t](r),u&&$e(e,t)),n})):[],c.update(),u=!0,x(c.before_update),c.fragment=!!r&&r(c.ctx),t.target){if(t.hydrate){var d=oe(t.target);c.fragment&&c.fragment.l(d),d.forEach(J)}else c.fragment&&c.fragment.c();t.intro&&Fe(e.$$.fragment),Ye(e,t.target,t.anchor),Ne()}ge(s)}var Qe=function(){function e(){m(this,e)}return y(e,[{key:"$destroy",value:function(){Je(this,1),this.$destroy=k}},{key:"$on",value:function(e,t){var n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},{key:"$set",value:function(){}}]),e}();function Ze(e){var t,n,r,i=e.name,o=e.expirationDays,a=e.multiDomain,s=["".concat(i,"=1"),"Path=/","Expires=".concat((t=o,n=new Date,n.setDate(n.getDate()+t),n.toUTCString()))];if(a){var l=P(window.location.host.split(":"),1)[0].split(".").slice(-2).join(".");s.push("Domain=".concat(l))}r=s.join("; "),document.cookie=r}function et(e,t){var n=e.name;return("string"==typeof t?t:document.cookie).split("; ").some((function(e){return e==="".concat(n,"=1")}))}var tt=function(){return Promise.race([new Promise((function(e){var t=new XMLHttpRequest;t.addEventListener("load",e),t.open("GET","https://pixel.spotify.com/v1/cpua",!0),t.send()})),new Promise((function(e){return setTimeout(e,1e3)}))])},nt=["data-tracking","data-ga-category","data-ga-action","data-gtm-event-name"];function rt(e){return e?Object.keys(e).filter((function(e){return nt.includes(e)})).reduce((function(t,n){return E(E({},t),{},_({},n,e[n]))}),{}):null}function it(e){var t,n,r,i,o,a,s;return{c:function(){t=X("span"),n=Q("svg"),r=Q("g"),i=Q("path"),o=ee(),a=Z(e[0]),this.h()},l:function(s){var l=oe(t=ae(s,"SPAN",{class:!0})),c=oe(n=ae(l,"svg",{viewBox:!0,xmlns:!0,preserveAspectRatio:!0},1)),u=oe(r=ae(c,"g",{"fill-rule":!0,class:!0},1));oe(i=ae(u,"path",{d:!0},1)).forEach(J),u.forEach(J),c.forEach(J),o=le(l),a=se(l,e[0]),l.forEach(J),this.h()},h:function(){re(i,"d","M61.842 9.506a1.02 1.02 0 0 1-1.023-1.024c0-.562.453-1.03 1.029-1.03a1.02 1.02 0 0 1 1.023 1.024 1.03 1.03 0 0 1-1.029 1.03m.006-1.952a.915.915 0 0 0-.922.928c0 .51.394.921.916.921a.916.916 0 0 0 .922-.927.908.908 0 0 0-.916-.922m.226 1.027l.29.406h-.244l-.26-.372h-.225v.372h-.204V7.912h.48c.249 0 .413.128.413.343 0 .176-.102.284-.25.326m-.172-.485h-.267v.34h.267c.133 0 .212-.065.212-.17 0-.11-.08-.17-.212-.17m-12.804-3.52a1.043 1.043 0 1 0-.001 2.086 1.043 1.043 0 0 0 0-2.087m.72 2.89h-1.454a.107.107 0 0 0-.106.107v6.346c0 .06.047.107.106.107h1.455a.107.107 0 0 0 .107-.107V7.572a.107.107 0 0 0-.107-.107m3.233.006v-.2c0-.592.227-.856.736-.856.303 0 .546.06.82.152a.106.106 0 0 0 .14-.102V5.24a.107.107 0 0 0-.076-.102 3.993 3.993 0 0 0-1.21-.174c-1.343 0-2.053.757-2.053 2.188v.308h-.699a.107.107 0 0 0-.107.106v1.257c0 .059.048.107.107.107h.699v4.99c0 .058.047.106.106.106h1.455a.107.107 0 0 0 .106-.107v-4.99h1.358l2.081 4.99c-.236.523-.468.628-.785.628-.257 0-.527-.077-.803-.228a.109.109 0 0 0-.084-.008.106.106 0 0 0-.063.058l-.493 1.081a.106.106 0 0 0 .045.138c.515.279.98.398 1.554.398 1.074 0 1.668-.5 2.191-1.847L60.6 7.617a.106.106 0 0 0-.099-.146h-1.514a.107.107 0 0 0-.1.072l-1.552 4.431-1.7-4.434a.106.106 0 0 0-.099-.069h-2.485m-5.577-.006h-1.6V5.828a.106.106 0 0 0-.107-.106h-1.455a.107.107 0 0 0-.106.106v1.637h-.7a.106.106 0 0 0-.106.107v1.25c0 .059.048.107.106.107h.7v3.234c0 1.308.65 1.97 1.934 1.97.522 0 .954-.107 1.362-.338a.106.106 0 0 0 .054-.093v-1.19a.106.106 0 0 0-.154-.096c-.28.141-.551.206-.854.206-.467 0-.675-.211-.675-.686V8.929h1.6a.106.106 0 0 0 .107-.107v-1.25a.106.106 0 0 0-.106-.107m-7.671-.133c-1.96 0-3.497 1.51-3.497 3.437 0 1.907 1.526 3.4 3.473 3.4 1.967 0 3.508-1.504 3.508-3.424 0-1.914-1.53-3.413-3.484-3.413m0 5.362c-1.043 0-1.83-.838-1.83-1.95 0-1.115.76-1.924 1.806-1.924 1.05 0 1.84.838 1.84 1.95 0 1.115-.763 1.924-1.816 1.924m-7.014-5.362c-.82 0-1.492.323-2.046.984v-.744a.107.107 0 0 0-.106-.107h-1.455a.107.107 0 0 0-.106.107v8.27c0 .058.048.106.106.106h1.455a.107.107 0 0 0 .106-.106v-2.61c.555.621 1.227.925 2.046.925 1.522 0 3.063-1.172 3.063-3.412s-1.54-3.413-3.063-3.413m1.372 3.413c0 1.14-.703 1.937-1.709 1.937-.995 0-1.745-.833-1.745-1.937s.75-1.937 1.745-1.937c.99 0 1.71.814 1.71 1.937m-8.437-1.81c-1.624-.388-1.913-.66-1.913-1.231 0-.54.508-.903 1.264-.903.732 0 1.459.275 2.22.843a.107.107 0 0 0 .15-.023l.794-1.119a.107.107 0 0 0-.02-.144c-.906-.728-1.927-1.081-3.12-1.081-1.755 0-2.98 1.052-2.98 2.559 0 1.615 1.057 2.187 2.884 2.628 1.554.358 1.817.658 1.817 1.195 0 .594-.53.963-1.385.963-.948 0-1.721-.32-2.587-1.068a.11.11 0 0 0-.078-.026.105.105 0 0 0-.073.038l-.89 1.058a.105.105 0 0 0 .011.148 5.303 5.303 0 0 0 3.581 1.373c1.89 0 3.112-1.033 3.112-2.631 0-1.351-.807-2.098-2.787-2.58M9.507.305a9.41 9.41 0 1 0 0 18.82 9.41 9.41 0 0 0 0-18.82m4.316 13.572a.586.586 0 0 1-.807.195c-2.21-1.35-4.99-1.655-8.266-.907a.586.586 0 1 1-.261-1.143c3.584-.82 6.659-.467 9.139 1.049.276.169.363.53.195.806m1.15-2.562a.734.734 0 0 1-1.008.242c-2.529-1.555-6.385-2.005-9.377-1.097a.735.735 0 0 1-.426-1.404c3.418-1.037 7.666-.534 10.57 1.25a.734.734 0 0 1 .242 1.01m.1-2.669C12.04 6.846 7.036 6.68 4.141 7.56a.88.88 0 1 1-.511-1.684c3.323-1.01 8.849-.814 12.34 1.258a.88.88 0 0 1-.898 1.514"),re(r,"fill-rule","evenodd"),re(r,"class","svelte-1gcdbl9"),re(n,"viewBox","0 0 63 20"),re(n,"xmlns","http://www.w3.org/2000/svg"),re(n,"preserveAspectRatio","xMidYMin meet"),re(t,"class",s=B(e[1])+" svelte-1gcdbl9")},m:function(e,s){Y(e,t,s),W(t,n),W(n,r),W(r,i),W(t,o),W(t,a)},p:function(e,n){var r=P(n,1)[0];1&r&&ce(a,e[0]),2&r&&s!==(s=B(e[1])+" svelte-1gcdbl9")&&re(t,"class",s)},i:k,o:k,d:function(e){e&&J(t)}}}function ot(e,t,n){var r=t.alt,i=t.className;return e.$set=function(e){"alt"in e&&n(0,r=e.alt),"className"in e&&n(1,i=e.className)},[r,i]}var at=function(e){S(n,Qe);var t=C(n);function n(e){var r;return m(this,n),Xe(O(r=t.call(this)),e,ot,it,F,{alt:0,className:1}),r}return n}();function st(e){for(var t,n,r=new at({props:{alt:e[1],className:e[2]}}),i=[{href:e[0]},{class:e[2]},e[3]],o={},a=0;a=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=gt(t,n,r);if(0===o)return t;t-=(mt(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,i){var o,a,s=0;do{(o=mt(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}return function(e){return 0===e?0:1===e?1:mt(a(e),t,r)}},bt={in:_t(.3,0,0,1),out:_t(1,0,.7,1)},Et=function(e){return function(e,t){var n=t.delay,r=void 0===n?0:n,i=t.duration,o=void 0===i?400:i,a=t.easing,s=void 0===a?L:a,l=+getComputedStyle(e).opacity;return{delay:r,duration:o,easing:s,css:function(e){return"opacity: ".concat(e*l)}}}(e,{duration:240,easing:bt.in})},St=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delayMultiplier,r=void 0===n?0:n,i=t.duration,o=void 0===i?300:i,a=t.easing,s=void 0===a?bt.in:a,l=t.x,c=void 0===l?100:l,u=getComputedStyle(e).direction;return dt(e,{delay:17*r,duration:o,easing:s,x:"rtl"===u?-1*c:c})};function Tt(e){for(var t,n,r,i,o=[{href:e[1]},{class:2===e[3]?e[4].secondary:e[4].primary},e[5]],a={},s=0;s=m)return f(0,1),we(e,!1,"end"),--a.r||x(a.c),!1;if(t>=v){var n=d((t-v)/c);f(1-n,n)}}return o}))}return a.r+=1,U(i)?Le().then((function(){i=i(),s()})):s(),{end:function(t){t&&i.tick&&i.tick(1,0),o&&(r&&me(e,r),o=!1)}}}(i),p=!1},d:function(e){e&&J(t),e&&n&&n.end(),e&&J(r),e&&J(i),$(v,e),Je(E),e&&d&&d.end(),f()}}}function un(e){var t,n=new It({props:{colorClassNames:e[4],index:e[17]}});return{c:function(){Ke(n.$$.fragment)},l:function(e){We(n.$$.fragment,e)},m:function(e,r){Ye(n,e,r),t=!0},p:function(e,t){var r={};16&t&&(r.colorClassNames=e[4]),n.$set(r)},i:function(e){t||(Fe(n.$$.fragment,e),t=!0)},o:function(e){ze(n.$$.fragment,e),t=!1},d:function(e){Je(n,e)}}}function dn(e){for(var t,n=[{colorClassNames:e[4]},{index:e[17]},e[15].parameters],r={},i=0;i0&&ln(e),y=e[9]&&cn(e);return{c:function(){Ke(d.$$.fragment),t=ee(),n=X("nav"),r=X("ul");for(var e=0;e0?g?(g.p(e,o),Fe(g,1)):((g=ln(e)).c(),Fe(g,1),g.m(a,l)):g&&(xe(),ze(g,1,1,(function(){g=null})),Ue()),e[9]?y?(y.p(e,o),Fe(y,1)):((y=cn(e)).c(),Fe(y,1),y.m(a,null)):y&&(xe(),ze(y,1,1,(function(){y=null})),Ue())},i:function(e){if(!c){Fe(d.$$.fragment,e);for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:"masthead";return function(t){var n=t.target,r=n.dataset,i=n.href;_n(r.gaAction)&&bn()&&window.navigator.sendBeacon("https://www.spotify.com/api/growth-events/wwwanalyticsagnostic",JSON.stringify({action:"click",category:e,destination_url:i,label:yn[r.gaAction],context:"".concat(window.location)}))}},Sn=En("masthead-footer"),Tn=En("masthead");function On(e){var t,n;return{c:function(){t=X("a"),n=Z(e[13]),this.h()},l:function(r){var i=oe(t=ae(r,"A",{class:!0,href:!0}));n=se(i,e[13]),i.forEach(J),this.h()},h:function(){re(t,"class","mh-skip-link svelte-1irxfym"),re(t,"href","#start-of-content")},m:function(e,r){Y(e,t,r),W(t,n)},p:function(e,t){8192&t&&ce(n,e[13])},d:function(e){e&&J(t)}}}function An(e){var t,n,r,i,o,a,s,l,c,u,d,p=!1,f=function(){p=!1};Ce(e[16]),Ce(e[17]);for(var h=e[13]&&On(e),v=[{className:e[14]>30&&e[5]&&e[15]>992?e[1].primary:e[0].primary},e[7]],m={},g=0;g30&&e[5]&&e[15]>992?e[1]:e[0],scrollingElementAccessor:e[6],items:e[11],user:e[8],desktopAriaLabel:e[9],mobileAriaLabel:e[10],brand:e[7],mobileMenu:e[12]}});return{c:function(){n=X("header"),h&&h.c(),r=ee(),i=X("div"),o=X("div"),Ke(y.$$.fragment),a=ee(),Ke(_.$$.fragment),l=ee(),c=X("div"),this.h()},l:function(e){var t=oe(n=ae(e,"HEADER",{role:!0,class:!0}));h&&h.l(t),r=le(t);var s=oe(i=ae(t,"DIV",{class:!0})),u=oe(o=ae(s,"DIV",{class:!0}));We(y.$$.fragment,u),u.forEach(J),a=le(s),We(_.$$.fragment,s),s.forEach(J),t.forEach(J),l=le(e),oe(c=ae(e,"DIV",{id:!0,class:!0})).forEach(J),this.h()},h:function(){re(o,"class","mh-brand-wrapper svelte-1irxfym"),re(i,"class","mh-container svelte-1irxfym"),re(n,"role","banner"),re(n,"class",s=(e[14]>30&&e[5]&&e[15]>992?e[1].hover:e[0].hover)+" "+e[2]+" svelte-1irxfym"),ue(n,"mh-transparent",e[3]),ue(n,"mh-semitransparent-top",e[3]&&"semitransparent"===e[4]),ue(n,"mh-fixed",e[5]),ue(n,"mh-sticky",e[14]>30&&e[5]),re(c,"id","start-of-content"),re(c,"class","svelte-1irxfym")},m:function(s,v,m){Y(s,n,v),h&&h.m(n,null),W(n,r),W(n,i),W(i,o),Ye(y,o,null),W(i,a),Ye(_,i,null),Y(s,l,v),Y(s,c,v),u=!0,m&&x(d),d=[ne(window,"scroll",(function(){p=!0,clearTimeout(t),t=setTimeout(f,100),e[16]()})),ne(window,"resize",e[17]),ne(n,"click",Tn)]},p:function(e,i){var o=P(i,1)[0];16384&o&&!p&&(p=!0,clearTimeout(t),scrollTo(window.pageXOffset,e[14]),t=setTimeout(f,100)),e[13]?h?h.p(e,o):((h=On(e)).c(),h.m(n,r)):h&&(h.d(1),h=null);var a=49315&o?Ge(v,[49187&o&&{className:e[14]>30&&e[5]&&e[15]>992?e[1].primary:e[0].primary},128&o&&qe(e[7])]):{};y.$set(a);var l={};49187&o&&(l.colorClassNames=e[14]>30&&e[5]&&e[15]>992?e[1]:e[0]),64&o&&(l.scrollingElementAccessor=e[6]),2048&o&&(l.items=e[11]),256&o&&(l.user=e[8]),512&o&&(l.desktopAriaLabel=e[9]),1024&o&&(l.mobileAriaLabel=e[10]),128&o&&(l.brand=e[7]),4096&o&&(l.mobileMenu=e[12]),_.$set(l),(!u||49191&o&&s!==(s=(e[14]>30&&e[5]&&e[15]>992?e[1].hover:e[0].hover)+" "+e[2]+" svelte-1irxfym"))&&re(n,"class",s),49199&o&&ue(n,"mh-transparent",e[3]),49215&o&&ue(n,"mh-semitransparent-top",e[3]&&"semitransparent"===e[4]),49191&o&&ue(n,"mh-fixed",e[5]),49191&o&&ue(n,"mh-sticky",e[14]>30&&e[5])},i:function(e){u||(Fe(y.$$.fragment,e),Fe(_.$$.fragment,e),u=!0)},o:function(e){ze(y.$$.fragment,e),ze(_.$$.fragment,e),u=!1},d:function(e){e&&J(n),h&&h.d(),Je(y),Je(_),e&&J(l),e&&J(c),x(d)}}}function Cn(e,t,n){var r,i,o=t.zIndexClassName,a=t.colorClassNames,s=t.scrollColorClassNames,l=t.transparent,c=t.topTransparencyMode,u=t.fixed,d=t.scrollingElementAccessor,p=t.brand,f=void 0===p?null:p,h=t.user,v=void 0===h?null:h,m=t.desktopAriaLabel,g=void 0===m?null:m,y=t.mobileAriaLabel,_=void 0===y?null:y,b=t.nav,E=void 0===b?null:b,S=t.mobileMenu,T=void 0===S?null:S,O=t.skipLinkText,A=void 0===O?null:O;return e.$set=function(e){"zIndexClassName"in e&&n(2,o=e.zIndexClassName),"colorClassNames"in e&&n(0,a=e.colorClassNames),"scrollColorClassNames"in e&&n(1,s=e.scrollColorClassNames),"transparent"in e&&n(3,l=e.transparent),"topTransparencyMode"in e&&n(4,c=e.topTransparencyMode),"fixed"in e&&n(5,u=e.fixed),"scrollingElementAccessor"in e&&n(6,d=e.scrollingElementAccessor),"brand"in e&&n(7,f=e.brand),"user"in e&&n(8,v=e.user),"desktopAriaLabel"in e&&n(9,g=e.desktopAriaLabel),"mobileAriaLabel"in e&&n(10,_=e.mobileAriaLabel),"nav"in e&&n(11,E=e.nav),"mobileMenu"in e&&n(12,T=e.mobileMenu),"skipLinkText"in e&&n(13,A=e.skipLinkText)},e.$$.update=function(){1&e.$$.dirty&&n(0,a=Object.assign({primary:"mh-header-primary",secondary:"mh-header-secondary",hover:"mh-header-hover"},a)),3&e.$$.dirty&&n(1,s=Object.assign({primary:a.primary,secondary:a.secondary,hover:a.hover},s))},[a,s,o,l,c,u,d,f,v,g,_,E,T,A,r,i,function(){n(14,r=window.pageYOffset)},function(){n(15,i=window.innerWidth)}]}var Pn=function(e){S(n,Qe);var t=C(n);function n(e){var r;return m(this,n),Xe(O(r=t.call(this)),e,Cn,An,F,{zIndexClassName:2,colorClassNames:0,scrollColorClassNames:1,transparent:3,topTransparencyMode:4,fixed:5,scrollingElementAccessor:6,brand:7,user:8,desktopAriaLabel:9,mobileAriaLabel:10,nav:11,mobileMenu:12,skipLinkText:13}),r}return n}();function In(e){var t,n,r;return{c:function(){t=X("button"),n=Z(e[3]),this.h()},l:function(r){var i=oe(t=ae(r,"BUTTON",{class:!0}));n=se(i,e[3]),i.forEach(J),this.h()},h:function(){re(t,"class","mh-active-acknowledge svelte-1x96mcl")},m:function(i,o,a){Y(i,t,o),W(t,n),a&&r(),r=ne(t,"click",(function(){U(e[0])&&e[0].apply(this,arguments)}))},p:function(t,r){e=t,8&r&&ce(n,e[3])},d:function(e){e&&J(t),r()}}}function Rn(e){var t,n,r,i,o,a,s;return{c:function(){t=X("button"),n=X("span"),r=Z("✕"),i=ee(),o=X("span"),a=Z("Close"),this.h()},l:function(e){var s=oe(t=ae(e,"BUTTON",{class:!0})),l=oe(n=ae(s,"SPAN",{"aria-hidden":!0}));r=se(l,"✕"),l.forEach(J),i=le(s);var c=oe(o=ae(s,"SPAN",{class:!0}));a=se(c,"Close"),c.forEach(J),s.forEach(J),this.h()},h:function(){re(n,"aria-hidden","true"),re(o,"class","mh-screen-reader-only svelte-1x96mcl"),re(t,"class","mh-close svelte-1x96mcl")},m:function(l,c,u){Y(l,t,c),W(t,n),W(n,r),W(t,i),W(t,o),W(o,a),u&&s(),s=ne(t,"click",(function(){U(e[0])&&e[0].apply(this,arguments)}))},p:function(t,n){e=t},d:function(e){e&&J(t),s()}}}function Nn(e){for(var t,n,r,i,o,a=[{class:"mh-html-text"},e[2]?{dir:e[2]}:{}],s={},l=0;l{"use strict";n.d(t,{oQ:()=>r,zq:()=>i.zq,Sy:()=>f,cr:()=>h,SK:()=>p});var r,i=n(17063),o=n(78578),a=n(33178);!function(e){e.PLAYER_INITIALIZATION_DONE="PLAYER_INITIALIZATION_DONE",e.PLAYER_INITIALIZATION_FAILED="PLAYER_INITIALIZATION_FAILED",e.STATE_CHANGED="STATE_CHANGED",e.AUTOPLAY_FAILED="AUTOPLAY_FAILED",e.BEFORE_LIST_CHANGE="BEFORE_LIST_CHANGE",e.BEFORE_NEXT="BEFORE_NEXT",e.BEFORE_PREVIOUS="BEFORE_PREVIOUS",e.BEFORE_TRACK_LOAD="BEFORE_TRACK_LOAD",e.BUFFER_STALLED="BUFFER_STALLED",e.BUFFERING_START="BUFFERING_START",e.BUFFERING_END="BUFFERING_END",e.CAPPED="CAPPED",e.CLEARED="CLEARED",e.DISPLAYED_CUES_CHANGED="DISPLAYED_CUES_CHANGED",e.SUBTITLE_LANGUAGES_LOADED="SUBTITLE_LANGUAGES_LOADED",e.DURATION_CHANGED="DURATION_CHANGED",e.ERROR="ERROR",e.ERROR_SYNC="ERROR_SYNC",e.LIST_CHANGED="LIST_CHANGED",e.LIST_ENDED="LIST_ENDED",e.LOAD_VIDEO="LOAD_VIDEO",e.MAX_LIST_ERRORS_REACHED="MAX_LIST_ERRORS_REACHED",e.PAUSED="PAUSED",e.PLAYING="PLAYING",e.PLAYED_THRESHOLD_REACHED="PLAYED_THRESHOLD_REACHED",e.POSITION_CHANGED="POSITION_CHANGED",e.PROGRESS="PROGRESS",e.REPEAT_MODE_CHANGED="REPEAT_MODE_CHANGED",e.SHUFFLE_CHANGED="SHUFFLE_CHANGED",e.STOPPED="STOPPED",e.STOPPED_VIDEO="STOPPED_VIDEO",e.TRACKING_DATA_CREATED="TRACKING_DATA_CREATED",e.TRACKING_DATA_FINALIZED="TRACKING_DATA_FINALIZED",e.TRACK_ENDED="TRACK_ENDED",e.TRACK_LOADED="TRACK_LOADED",e.TRACK_TIMEOUT="TRACK_TIMEOUT",e.TRACK_UNPLAYABLE="TRACK_UNPLAYABLE",e.VOLUME_CHANGED="VOLUME_CHANGED",e.VIDEO_ELEMENT_APPENDED="VIDEO_ELEMENT_APPENDED",e.VIDEO_ELEMENT_REMOVED="VIDEO_ELEMENT_REMOVED"}(r||(r={}));const s={MP3:i.OU.MP3,MP4:i.OU.MP4,MP4_DUAL:i.OU.MP4_DUAL,MP4_CBCS:i.OU.MP4_CBCS,MP4_FLAC:i.OU.MP4_FLAC,MANIFEST_ID:i.OU.MANIFEST_ID};class l{constructor(e){var t,n,r,i;if(this.isAd=!1,!e.uri)throw new TypeError("Missing required `uri` option.");if(!e.fileId&&!e.resolvedURL)throw new TypeError("Missing: provide either fileId or resolvedURL");this.uri=e.uri,this.playableURI=this.uri,this.fileId=e.fileId||"",this.playable=null===(t=e.playable)||void 0===t||t,this.mediaType=e.mediaType||"audio",this.metadata=e.metadata||{},this.resolvedURL=e.resolvedURL,this.noManifest=null!==(n=e.noManifest)&&void 0!==n?n:!!this.resolvedURL,this.noAuth=null!==(r=e.noAuth)&&void 0!==r&&r,this.preloadedManifest=e.preloadedManifest,this.licenseEndpoint=e.licenseEndpoint,this.fileFormat=e.fileFormat,this.poster=e.poster,this.options=e.options;const o=null!==(i=e.format)&&void 0!==i?i:"MP4";if(!s.hasOwnProperty(o))throw new TypeError("Invalid `format` option.");this.format=s[o],this.logData=Object.assign(Object.assign({},e.logData),{noLog:!1,noTSV:!0,noStats:!1})}static create(e){return new l(e)}}class c{constructor(e){this._index=-1,this._tracks=[],this._tracks=e.tracks}static create(e){const t=[];for(const n of e.tracks)n instanceof l?t.push(n):t.push(l.create(n));return new c({tracks:t})}startAt(e){return e>this._tracks.length||e<0?this._index=-1:this._index=e-1,Promise.resolve(i.J_.SUCCESS)}next(e,t){const n=this._index+1;if(n>=this._tracks.length)return Promise.resolve(e.listConstants.LIST_END);const r=this._tracks[n];return t||(this._index=n),r?Promise.resolve(r):Promise.reject(i.Le.NULL_VALUE)}peekNext(e){return this.next(e,!0)}allowSeeking(){return!0}previous(e){const t=this._index-1;if(t<0)return Promise.resolve(e.listConstants.LIST_START);const n=this._tracks[t];return this._index=t,n?Promise.resolve(n):Promise.reject(i.Le.NULL_VALUE)}setShuffle(){return Promise.resolve(i.J_.SUCCESS)}setRepeatMode(){return Promise.resolve(i.J_.SUCCESS)}}class u extends a.vp{constructor(e){super(),this._playerPromise=e.playerPromise,this._listPlayer=e.listPlayer,this._transport=e.transport,this._autoActivateElement=!!e.autoActivateElement,this._init()}static create(e){return new u(e)}_init(){const e=this._listPlayer;this.proxyEmitAll(e,{[i.rU.LIST_PLAYER_AUTOPLAY_FAILED]:r.AUTOPLAY_FAILED,[i.rU.LIST_PLAYER_BEFORE_LIST_CHANGE]:r.BEFORE_LIST_CHANGE,[i.rU.LIST_PLAYER_BUFFER_STALLED]:r.BUFFER_STALLED,[i.rU.LIST_PLAYER_BUFFERING_START]:r.BUFFERING_START,[i.rU.LIST_PLAYER_BUFFERING_END]:r.BUFFERING_END,[i.rU.LIST_PLAYER_CLEARED]:r.CLEARED,[i.rU.LIST_PLAYER_DURATION_CHANGED]:r.DURATION_CHANGED,[i.rU.LIST_PLAYER_ERROR]:r.ERROR,[i.rU.LIST_PLAYER_LIST_CHANGED]:r.LIST_CHANGED,[i.rU.LIST_PLAYER_LIST_ENDED]:r.LIST_ENDED,[i.rU.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:r.MAX_LIST_ERRORS_REACHED,[i.rU.LIST_PLAYER_PAUSED]:r.PAUSED,[i.rU.LIST_PLAYER_PLAYING]:r.PLAYING,[i.rU.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:r.PLAYED_THRESHOLD_REACHED,[i.rU.LIST_PLAYER_POSITION_CHANGED]:r.POSITION_CHANGED,[i.rU.LIST_PLAYER_PROGRESS]:r.PROGRESS,[i.rU.LIST_PLAYER_REPEAT_MODE_CHANGED]:r.REPEAT_MODE_CHANGED,[i.rU.LIST_PLAYER_SHUFFLE_CHANGED]:r.SHUFFLE_CHANGED,[i.rU.LIST_PLAYER_STOPPED]:r.STOPPED,[i.rU.LIST_PLAYER_TRACKING_DATA_CREATED]:r.TRACKING_DATA_CREATED,[i.rU.LIST_PLAYER_TRACKING_DATA_FINALIZED]:r.TRACKING_DATA_FINALIZED,[i.rU.LIST_PLAYER_TRACK_ENDED]:r.TRACK_ENDED,[i.rU.LIST_PLAYER_TRACK_LOADED]:r.TRACK_LOADED,[i.rU.LIST_PLAYER_TRACK_TIMEOUT]:r.TRACK_TIMEOUT,[i.rU.LIST_PLAYER_TRACK_UNPLAYABLE]:r.TRACK_UNPLAYABLE,[i.rU.LIST_PLAYER_VOLUME_CHANGED]:r.VOLUME_CHANGED,[i.rU.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:r.VIDEO_ELEMENT_APPENDED,[i.rU.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:r.VIDEO_ELEMENT_REMOVED,[i.rU.LIST_PLAYER_AUTOPLAY_FAILED]:r.AUTOPLAY_FAILED,[i.rU.PLAYER_DISPLAYED_CUES_CHANGED]:r.DISPLAYED_CUES_CHANGED,[i.rU.PLAYER_SUBTITLE_LANGUAGES_LOADED]:r.SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitAllSync(e,{[i.rU.LIST_PLAYER_BEFORE_NEXT]:r.BEFORE_NEXT,[i.rU.LIST_PLAYER_BEFORE_PREVIOUS]:r.BEFORE_PREVIOUS,[i.rU.LIST_PLAYER_BEFORE_TRACK_LOAD]:r.BEFORE_TRACK_LOAD,[i.rU.LIST_PLAYER_ERROR_SYNC]:r.ERROR_SYNC}),this._emitStateChanged=this._emitStateChanged.bind(this),this.on(r.CLEARED,this._emitStateChanged),this.on(r.PAUSED,this._emitStateChanged),this.on(r.PLAYING,this._emitStateChanged),this.on(r.POSITION_CHANGED,this._emitStateChanged),this.on(r.STOPPED,this._emitStateChanged),this.on(r.LIST_CHANGED,this._emitStateChanged),this.on(r.VOLUME_CHANGED,this._emitStateChanged),this._playerPromise.then((()=>this.emit(r.PLAYER_INITIALIZATION_DONE,null))).catch((e=>this.emit(r.PLAYER_INITIALIZATION_FAILED,{error:e}))),this._transport.on(o.TransportEvent.BEFORE_ONLINE_DISCONNECT,(e=>{e.data.awaitPromise(this._listPlayer.stop(i.KG.END_PLAY).catch((e=>{})))}))}_emitStateChanged(){this._listPlayer.getState().then((e=>{this.emit(r.STATE_CHANGED,{state:e})}))}playTracks(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),new Promise((t=>{t(c.create({tracks:e}))})).then((e=>this._listPlayer.play(e,t)))}playList(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),this._listPlayer.play(e,t)}getState(){return this.getCurrentState()}getCurrentState(){return this._listPlayer.getState()}pause(){return this._listPlayer.pause()}resume(){return this._listPlayer.resume()}togglePlay(){return this._listPlayer.togglePlay()}stop(){return this._listPlayer.stop(i.KG.END_PLAY)}seek(e){return this._listPlayer.seek(e)}nextTrack(){return this._listPlayer.next(i.KG.FORWARD_BUTTON)}previousTrack(){return this._listPlayer.previous(i.KG.BACK_BUTTON)}getVolume(){return this._listPlayer.getVolume()}setVolume(e){return this._listPlayer.setVolume(e)}activateElement(){return this._listPlayer.activateElement()}hideSubtitles(){return this._listPlayer.hideSubtitles()}showSubtitles(){return this._listPlayer.showSubtitles()}getSubtitleLanguages(){return this._listPlayer.getSubtitleLanguages()}setSubtitleLanguage(e){return this._listPlayer.setSubtitleLanguage(e)}areSubtitlesShown(){return this._listPlayer.areSubtitlesShown()}getActiveSubtitleLanguage(){return this._listPlayer.getActiveSubtitleLanguage()}getMediaConfig(){return this._listPlayer.getMediaConfig()}deactivateSubtitleEvents(){return this._listPlayer.deactivateCueEvents()}activateSubtitleEvents(){return this._listPlayer.activateCueEvents()}}const d="2.16.0",p=(Object.assign(Object.assign({},o.TransportErrors),i.D1),l.create),f=c.create;function h(e){var t,n,r;const{transport:o,autoActivateElement:a,config:s}=e,l=null==s?void 0:s.mux,c=(0,i.MD)(Object.assign(Object.assign({},e.config),{loggerOptions:{platform:e.platform_identifier,disableMux:null===(n=null!==(t=null==l?void 0:l.disable)&&void 0!==t?t:null==s?void 0:s.disableMux)||void 0===n||n,muxEnvKey:null!==(r=null==l?void 0:l.envKey)&&void 0!==r?r:null==s?void 0:s.muxEnvKey,muxCustomDimensions:null==l?void 0:l.customDimensions,deviceInfo:null==l?void 0:l.deviceInfo},sdkId:`overture:${d}`,transport:o.toPublic()})).then((e=>e.player)),p=i._8.create({trackPlayer:c});return u.create({listPlayer:p,playerPromise:c,transport:o,autoActivateElement:a})}},84367:(e,t,n)=>{"use strict";var r=n(59713);Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerClient=void 0;const i=n(62100),o=n(90943),a=n(44014),s=n(55703),l=n(81455),c=n(87341),u=n(25570),d=n(5272),p=n(47854),f=n(46023),h=n(22842),v=n(88035),m=n(21930),g=n(61640),y=n(17596),_=n(52394),b=n(53397),E=n(62652),S=n(66994),T=n(89457),O=n(28102),A=n(9508),C=n(86746),P=n(64920),I=n(76833),R=n(10560),N=n(61451),k=n(89687),L=n(56114);class w{constructor(e){r(this,"transport",void 0),this.transport=e}preparePlay(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"PreparePlay",payload:o.PreparePlayRequest.encode(e).finish()}).then((e=>a.SessionResponse.decode(i.Reader.create(e))))}playPrepared(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"PlayPrepared",payload:s.PlayPreparedRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}deleteSession(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"DeleteSession",payload:c.DeleteSessionRequest.encode(e).finish()}).then((e=>c.DeleteSessionResponse.decode(i.Reader.create(e))))}updateContext(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"UpdateContext",payload:u.UpdateContextRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}updateContextPage(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"UpdateContextPage",payload:u.UpdateContextPageRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}updateContextTrack(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"UpdateContextTrack",payload:u.UpdateContextTrackRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}updateViewUri(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"UpdateViewUri",payload:u.UpdateViewUriRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}play(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"Play",payload:s.PlayRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}pause(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"Pause",payload:d.PauseRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}resume(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"Resume",payload:p.ResumeRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}skipNext(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SkipNext",payload:f.SkipNextRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}skipPrev(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SkipPrev",payload:h.SkipPrevRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}seekTo(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SeekTo",payload:v.SeekToRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}stop(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"Stop",payload:m.StopRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}setOptions(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SetOptions",payload:g.SetOptionsRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}setRepeatingContext(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SetRepeatingContext",payload:y.SetRepeatingContextRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}setRepeatingTrack(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SetRepeatingTrack",payload:_.SetRepeatingTrackRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}setShufflingContext(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SetShufflingContext",payload:b.SetShufflingContextRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}getQueue(e,t){return this.transport.callStream({service:"spotify.player.esperanto.proto.ContextPlayer",method:"GetQueue",payload:E.GetQueueRequest.encode(e).finish()},(e=>t(S.Queue.decode(i.Reader.create(e)))))}setQueue(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"SetQueue",payload:T.SetQueueRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}addToQueue(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"AddToQueue",payload:O.AddToQueueRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}getError(e,t){return this.transport.callStream({service:"spotify.player.esperanto.proto.ContextPlayer",method:"GetError",payload:A.GetErrorRequest.encode(e).finish()},(e=>t(C.ContextPlayerError.decode(i.Reader.create(e)))))}getState(e,t){return this.transport.callStream({service:"spotify.player.esperanto.proto.ContextPlayer",method:"GetState",payload:P.GetStateRequest.encode(e).finish()},(e=>t(I.ContextPlayerState.decode(i.Reader.create(e)))))}getPlayHistory(e,t){return this.transport.callStream({service:"spotify.player.esperanto.proto.ContextPlayer",method:"GetPlayHistory",payload:R.GetPlayHistoryRequest.encode(e).finish()},(e=>t(R.GetPlayHistoryResponse.decode(i.Reader.create(e)))))}getPositionState(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"GetPositionState",payload:N.GetPositionStateRequest.encode(e).finish()}).then((e=>N.GetPositionStateResponse.decode(i.Reader.create(e))))}isFodEnabled(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"IsFodEnabled",payload:k.IsFodEnabledRequest.encode(e).finish()}).then((e=>k.IsFodEnabledResponse.decode(i.Reader.create(e))))}enableFod(e){return this.transport.callSingle({service:"spotify.player.esperanto.proto.ContextPlayer",method:"EnableFod",payload:L.EnableFodRequest.encode(e).finish()}).then((e=>l.ResponseWithReasons.decode(i.Reader.create(e))))}}r(w,"SERVICE_ID","spotify.player.esperanto.proto.ContextPlayer"),r(w,"DECODERS",{PreparePlay:{request:o.PreparePlayRequest.decode,response:a.SessionResponse.decode},PlayPrepared:{request:s.PlayPreparedRequest.decode,response:l.ResponseWithReasons.decode},DeleteSession:{request:c.DeleteSessionRequest.decode,response:c.DeleteSessionResponse.decode},UpdateContext:{request:u.UpdateContextRequest.decode,response:l.ResponseWithReasons.decode},UpdateContextPage:{request:u.UpdateContextPageRequest.decode,response:l.ResponseWithReasons.decode},UpdateContextTrack:{request:u.UpdateContextTrackRequest.decode,response:l.ResponseWithReasons.decode},UpdateViewUri:{request:u.UpdateViewUriRequest.decode,response:l.ResponseWithReasons.decode},Play:{request:s.PlayRequest.decode,response:l.ResponseWithReasons.decode},Pause:{request:d.PauseRequest.decode,response:l.ResponseWithReasons.decode},Resume:{request:p.ResumeRequest.decode,response:l.ResponseWithReasons.decode},SkipNext:{request:f.SkipNextRequest.decode,response:l.ResponseWithReasons.decode},SkipPrev:{request:h.SkipPrevRequest.decode,response:l.ResponseWithReasons.decode},SeekTo:{request:v.SeekToRequest.decode,response:l.ResponseWithReasons.decode},Stop:{request:m.StopRequest.decode,response:l.ResponseWithReasons.decode},SetOptions:{request:g.SetOptionsRequest.decode,response:l.ResponseWithReasons.decode},SetRepeatingContext:{request:y.SetRepeatingContextRequest.decode,response:l.ResponseWithReasons.decode},SetRepeatingTrack:{request:_.SetRepeatingTrackRequest.decode,response:l.ResponseWithReasons.decode},SetShufflingContext:{request:b.SetShufflingContextRequest.decode,response:l.ResponseWithReasons.decode},GetQueue:{request:E.GetQueueRequest.decode,response:S.Queue.decode},SetQueue:{request:T.SetQueueRequest.decode,response:l.ResponseWithReasons.decode},AddToQueue:{request:O.AddToQueueRequest.decode,response:l.ResponseWithReasons.decode},GetError:{request:A.GetErrorRequest.decode,response:C.ContextPlayerError.decode},GetState:{request:P.GetStateRequest.decode,response:I.ContextPlayerState.decode},GetPlayHistory:{request:R.GetPlayHistoryRequest.decode,response:R.GetPlayHistoryResponse.decode},GetPositionState:{request:N.GetPositionStateRequest.decode,response:N.GetPositionStateResponse.decode},IsFodEnabled:{request:k.IsFodEnabledRequest.decode,response:k.IsFodEnabledResponse.decode},EnableFod:{request:L.EnableFodRequest.decode,response:l.ResponseWithReasons.decode}}),t.ContextPlayerClient=w},87531:(e,t,n)=>{"use strict";t.ed=t.HM=t.pR=t.c_=t.RN=t.eS=t.$5=t.aS=t.a4=t.L6=t.Nr=t.vy=t.Yr=t.l7=t.jX=t.yb=t.o7=t.as=t.vf=t.nh=t.Td=t.dj=t.oW=t.ST=t.uF=t._y=t.R3=void 0,t.eB=t.n=t.t6=void 0;var r=n(84367);Object.defineProperty(t,"R3",{enumerable:!0,get:function(){return r.ContextPlayerClient}});var i=n(28102);var o=n(30620);var a=n(13344);Object.defineProperty(t,"_y",{enumerable:!0,get:function(){return a.Context}});var s=n(94419);Object.defineProperty(t,"uF",{enumerable:!0,get:function(){return s.ContextPage}});var l=n(86746);var c=n(80552);Object.defineProperty(t,"ST",{enumerable:!0,get:function(){return c.ContextPlayerOptionOverrides}});var u=n(76833);Object.defineProperty(t,"oW",{enumerable:!0,get:function(){return u.PlaybackQuality_BitrateLevel}}),Object.defineProperty(t,"dj",{enumerable:!0,get:function(){return u.PlaybackQuality_BitrateStrategy}}),Object.defineProperty(t,"Td",{enumerable:!0,get:function(){return u.PlaybackQuality_HiFiStatus}});var d=n(82500);Object.defineProperty(t,"nh",{enumerable:!0,get:function(){return d.ContextTrack}});var p=n(87341);var f=n(9508);Object.defineProperty(t,"vf",{enumerable:!0,get:function(){return f.GetErrorRequest}});var h=n(10560);var v=n(61451);var m=n(62652);Object.defineProperty(t,"as",{enumerable:!0,get:function(){return m.GetQueueRequest}});var g=n(64920);Object.defineProperty(t,"o7",{enumerable:!0,get:function(){return g.GetStateRequest}});var y=n(64386);Object.defineProperty(t,"yb",{enumerable:!0,get:function(){return y.LoggingParams}});var _=n(80666);var b=n(5272);Object.defineProperty(t,"jX",{enumerable:!0,get:function(){return b.PauseRequest}});var E=n(55703);Object.defineProperty(t,"l7",{enumerable:!0,get:function(){return E.PlayRequest}});var S=n(63470);var T=n(935);Object.defineProperty(t,"Yr",{enumerable:!0,get:function(){return T.PlayOrigin}});var O=n(90943);Object.defineProperty(t,"vy",{enumerable:!0,get:function(){return O.PreparePlayRequest}});var A=n(560);Object.defineProperty(t,"Nr",{enumerable:!0,get:function(){return A.PreparePlayOptions}});var C=n(13036);Object.defineProperty(t,"L6",{enumerable:!0,get:function(){return C.ProvidedTrack}});var P=n(66994);var I=n(81455);Object.defineProperty(t,"a4",{enumerable:!0,get:function(){return I.ResponseWithReasons_Error}});var R=n(9874);Object.defineProperty(t,"aS",{enumerable:!0,get:function(){return R.Restrictions}});var N=n(47854);Object.defineProperty(t,"$5",{enumerable:!0,get:function(){return N.ResumeRequest}});var k=n(88035);Object.defineProperty(t,"eS",{enumerable:!0,get:function(){return k.SeekToRequest}}),Object.defineProperty(t,"RN",{enumerable:!0,get:function(){return k.SeekToRequest_Relative}});var L=n(44014);var w=n(61640);var D=n(89457);Object.defineProperty(t,"c_",{enumerable:!0,get:function(){return D.SetQueueRequest}});var M=n(17596);Object.defineProperty(t,"pR",{enumerable:!0,get:function(){return M.SetRepeatingContextRequest}});var x=n(52394);Object.defineProperty(t,"HM",{enumerable:!0,get:function(){return x.SetRepeatingTrackRequest}});var U=n(53397);Object.defineProperty(t,"ed",{enumerable:!0,get:function(){return U.SetShufflingContextRequest}});var F=n(46023);Object.defineProperty(t,"t6",{enumerable:!0,get:function(){return F.SkipNextRequest}});var z=n(22842);Object.defineProperty(t,"n",{enumerable:!0,get:function(){return z.SkipPrevRequest}});var B=n(22808);var V=n(21930);var j=n(25570);Object.defineProperty(t,"eB",{enumerable:!0,get:function(){return j.UpdateContextRequest}})},28102:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddToQueueRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(82500),s=n(30620),l=n(64386);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.AddToQueueRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.track&&a.ContextTrack.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.options&&s.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={track:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.track=a.ContextTrack.decode(n,n.uint32());break;case 2:i.options=s.CommandOptions.decode(n,n.uint32());break;case 3:i.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({track:c(e.track)?a.ContextTrack.fromJSON(e.track):void 0,options:c(e.options)?s.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.ContextTrack.toJSON(e.track):void 0),void 0!==e.options&&(t.options=e.options?s.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={track:void 0,options:void 0,loggingParams:void 0};return t.track=void 0!==e.track&&null!==e.track?a.ContextTrack.fromPartial(e.track):void 0,t.options=void 0!==e.options&&null!==e.options?s.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},30620:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommandOptions=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(){return{overrideRestrictions:!1,onlyForLocalDevice:!1,systemInitiated:!1,onlyForPlaybackId:new Uint8Array}}t.protobufPackage="spotify.player.esperanto.proto",t.CommandOptions={encode:(e,t=o.default.Writer.create())=>(!0===e.overrideRestrictions&&t.uint32(8).bool(e.overrideRestrictions),!0===e.onlyForLocalDevice&&t.uint32(16).bool(e.onlyForLocalDevice),!0===e.systemInitiated&&t.uint32(24).bool(e.systemInitiated),0!==e.onlyForPlaybackId.length&&t.uint32(34).bytes(e.onlyForPlaybackId),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=a();for(;n.pos>>3){case 1:i.overrideRestrictions=n.bool();break;case 2:i.onlyForLocalDevice=n.bool();break;case 3:i.systemInitiated=n.bool();break;case 4:i.onlyForPlaybackId=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({overrideRestrictions:!!d(e.overrideRestrictions)&&Boolean(e.overrideRestrictions),onlyForLocalDevice:!!d(e.onlyForLocalDevice)&&Boolean(e.onlyForLocalDevice),systemInitiated:!!d(e.systemInitiated)&&Boolean(e.systemInitiated),onlyForPlaybackId:d(e.onlyForPlaybackId)?c(e.onlyForPlaybackId):new Uint8Array}),toJSON(e){const t={};return void 0!==e.overrideRestrictions&&(t.overrideRestrictions=e.overrideRestrictions),void 0!==e.onlyForLocalDevice&&(t.onlyForLocalDevice=e.onlyForLocalDevice),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.onlyForPlaybackId&&(t.onlyForPlaybackId=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return u(t.join(""))}(void 0!==e.onlyForPlaybackId?e.onlyForPlaybackId:new Uint8Array)),t},fromPartial(e){var t,n,r,i;const o=a();return o.overrideRestrictions=null!==(t=e.overrideRestrictions)&&void 0!==t&&t,o.onlyForLocalDevice=null!==(n=e.onlyForLocalDevice)&&void 0!==n&&n,o.systemInitiated=null!==(r=e.systemInitiated)&&void 0!==r&&r,o.onlyForPlaybackId=null!==(i=e.onlyForPlaybackId)&&void 0!==i?i:new Uint8Array,o}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const l=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));function c(e){const t=l(e),n=new Uint8Array(t.length);for(let e=0;es.Buffer.from(e,"binary").toString("base64"));function d(e){return null!=e}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},13344:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context_MetadataEntry=t.Context=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(94419),s=n(9874);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=o.default.Writer.create()){for(const t of e.pages)a.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,r])=>{t.Context_MetadataEntry.encode({key:e,value:r},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoaded&&n.uint32(40).bool(e.isLoaded),void 0!==e.restrictions&&s.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoaded:!1,restrictions:void 0};for(;r.pos>>3){case 1:l.pages.push(a.ContextPage.decode(r,r.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(r,r.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=r.string();break;case 4:l.url=r.string();break;case 5:l.isLoaded=r.bool();break;case 6:l.restrictions=s.Restrictions.decode(r,r.uint32());break;default:r.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(null==e?void 0:e.pages)?e.pages.map((e=>a.ContextPage.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),uri:l(e.uri)?String(e.uri):"",url:l(e.url)?String(e.url):"",isLoaded:!!l(e.isLoaded)&&Boolean(e.isLoaded),restrictions:l(e.restrictions)?s.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?a.ContextPage.toJSON(e):void 0)):t.pages=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.url&&(t.url=e.url),void 0!==e.isLoaded&&(t.isLoaded=e.isLoaded),void 0!==e.restrictions&&(t.restrictions=e.restrictions?s.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){var t,n,r,i,o;const l={pages:[],metadata:{},uri:"",url:"",isLoaded:!1,restrictions:void 0};return l.pages=(null===(t=e.pages)||void 0===t?void 0:t.map((e=>a.ContextPage.fromPartial(e))))||[],l.metadata=Object.entries(null!==(n=e.metadata)&&void 0!==n?n:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),l.uri=null!==(r=e.uri)&&void 0!==r?r:"",l.url=null!==(i=e.url)&&void 0!==i?i:"",l.isLoaded=null!==(o=e.isLoaded)&&void 0!==o&&o,l.restrictions=void 0!==e.restrictions&&null!==e.restrictions?s.Restrictions.fromPartial(e.restrictions):void 0,l}},t.Context_MetadataEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:l(e.key)?String(e.key):"",value:l(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},94419:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPage_MetadataEntry=t.ContextPage=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(82500);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=o.default.Writer.create()){for(const t of e.tracks)a.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,r])=>{t.ContextPage_MetadataEntry.encode({key:e,value:r},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoaded&&n.uint32(40).bool(e.isLoaded),n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoaded:!1};for(;r.pos>>3){case 1:s.tracks.push(a.ContextTrack.decode(r,r.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(r,r.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=r.string();break;case 4:s.nextPageUrl=r.string();break;case 5:s.isLoaded=r.bool();break;default:r.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(null==e?void 0:e.tracks)?e.tracks.map((e=>a.ContextTrack.fromJSON(e))):[],metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}),pageUrl:s(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:s(e.nextPageUrl)?String(e.nextPageUrl):"",isLoaded:!!s(e.isLoaded)&&Boolean(e.isLoaded)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?a.ContextTrack.toJSON(e):void 0)):t.tracks=[],t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.nextPageUrl&&(t.nextPageUrl=e.nextPageUrl),void 0!==e.isLoaded&&(t.isLoaded=e.isLoaded),t},fromPartial(e){var t,n,r,i,o;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoaded:!1};return s.tracks=(null===(t=e.tracks)||void 0===t?void 0:t.map((e=>a.ContextTrack.fromPartial(e))))||[],s.metadata=Object.entries(null!==(n=e.metadata)&&void 0!==n?n:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),s.pageUrl=null!==(r=e.pageUrl)&&void 0!==r?r:"",s.nextPageUrl=null!==(i=e.nextPageUrl)&&void 0!==i?i:"",s.isLoaded=null!==(o=e.isLoaded)&&void 0!==o&&o,s}},t.ContextPage_MetadataEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},86746:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerError_DataEntry=t.ContextPlayerError=t.contextPlayerError_ErrorCodeToJSON=t.contextPlayerError_ErrorCodeFromJSON=t.ContextPlayerError_ErrorCode=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;function s(e){switch(e){case 0:case"SUCCESS":return a.SUCCESS;case 1:case"PLAYBACK_STUCK":return a.PLAYBACK_STUCK;case 2:case"PLAYBACK_ERROR":return a.PLAYBACK_ERROR;case 3:case"LICENSE_CHANGE":return a.LICENSE_CHANGE;case 4:case"PLAY_RESTRICTED":return a.PLAY_RESTRICTED;case 5:case"STOP_RESTRICTED":return a.STOP_RESTRICTED;case 6:case"UPDATE_RESTRICTED":return a.UPDATE_RESTRICTED;case 7:case"PAUSE_RESTRICTED":return a.PAUSE_RESTRICTED;case 8:case"RESUME_RESTRICTED":return a.RESUME_RESTRICTED;case 9:case"SKIP_TO_PREV_RESTRICTED":return a.SKIP_TO_PREV_RESTRICTED;case 10:case"SKIP_TO_NEXT_RESTRICTED":return a.SKIP_TO_NEXT_RESTRICTED;case 11:case"SKIP_TO_NON_EXISTENT_TRACK":return a.SKIP_TO_NON_EXISTENT_TRACK;case 12:case"SEEK_TO_RESTRICTED":return a.SEEK_TO_RESTRICTED;case 13:case"TOGGLE_REPEAT_CONTEXT_RESTRICTED":return a.TOGGLE_REPEAT_CONTEXT_RESTRICTED;case 14:case"TOGGLE_REPEAT_TRACK_RESTRICTED":return a.TOGGLE_REPEAT_TRACK_RESTRICTED;case 15:case"SET_OPTIONS_RESTRICTED":return a.SET_OPTIONS_RESTRICTED;case 16:case"TOGGLE_SHUFFLE_RESTRICTED":return a.TOGGLE_SHUFFLE_RESTRICTED;case 17:case"SET_QUEUE_RESTRICTED":return a.SET_QUEUE_RESTRICTED;case 18:case"INTERRUPT_PLAYBACK_RESTRICTED":return a.INTERRUPT_PLAYBACK_RESTRICTED;case 19:case"ONE_TRACK_UNPLAYABLE":return a.ONE_TRACK_UNPLAYABLE;case 20:case"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED":return a.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED;case 21:case"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED":return a.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED;case 22:case"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED":return a.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED;case 23:case"QUEUE_REVISION_MISMATCH":return a.QUEUE_REVISION_MISMATCH;case 24:case"VIDEO_PLAYBACK_ERROR":return a.VIDEO_PLAYBACK_ERROR;case 25:case"VIDEO_GEOGRAPHICALLY_RESTRICTED":return a.VIDEO_GEOGRAPHICALLY_RESTRICTED;case 26:case"VIDEO_UNSUPPORTED_PLATFORM_VERSION":return a.VIDEO_UNSUPPORTED_PLATFORM_VERSION;case 27:case"VIDEO_UNSUPPORTED_CLIENT_VERSION":return a.VIDEO_UNSUPPORTED_CLIENT_VERSION;case 28:case"VIDEO_UNSUPPORTED_KEY_SYSTEM":return a.VIDEO_UNSUPPORTED_KEY_SYSTEM;case 29:case"VIDEO_MANIFEST_DELETED":return a.VIDEO_MANIFEST_DELETED;case 30:case"VIDEO_COUNTRY_RESTRICTED":return a.VIDEO_COUNTRY_RESTRICTED;case 31:case"VIDEO_UNAVAILABLE":return a.VIDEO_UNAVAILABLE;case 32:case"VIDEO_CATALOGUE_RESTRICTED":return a.VIDEO_CATALOGUE_RESTRICTED;case 33:case"INVALID":return a.INVALID;case 34:case"TIMEOUT":return a.TIMEOUT;case 35:case"PLAYBACK_REPORTING_ERROR":return a.PLAYBACK_REPORTING_ERROR;case 36:case"UNKNOWN":return a.UNKNOWN;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.SUCCESS:return"SUCCESS";case a.PLAYBACK_STUCK:return"PLAYBACK_STUCK";case a.PLAYBACK_ERROR:return"PLAYBACK_ERROR";case a.LICENSE_CHANGE:return"LICENSE_CHANGE";case a.PLAY_RESTRICTED:return"PLAY_RESTRICTED";case a.STOP_RESTRICTED:return"STOP_RESTRICTED";case a.UPDATE_RESTRICTED:return"UPDATE_RESTRICTED";case a.PAUSE_RESTRICTED:return"PAUSE_RESTRICTED";case a.RESUME_RESTRICTED:return"RESUME_RESTRICTED";case a.SKIP_TO_PREV_RESTRICTED:return"SKIP_TO_PREV_RESTRICTED";case a.SKIP_TO_NEXT_RESTRICTED:return"SKIP_TO_NEXT_RESTRICTED";case a.SKIP_TO_NON_EXISTENT_TRACK:return"SKIP_TO_NON_EXISTENT_TRACK";case a.SEEK_TO_RESTRICTED:return"SEEK_TO_RESTRICTED";case a.TOGGLE_REPEAT_CONTEXT_RESTRICTED:return"TOGGLE_REPEAT_CONTEXT_RESTRICTED";case a.TOGGLE_REPEAT_TRACK_RESTRICTED:return"TOGGLE_REPEAT_TRACK_RESTRICTED";case a.SET_OPTIONS_RESTRICTED:return"SET_OPTIONS_RESTRICTED";case a.TOGGLE_SHUFFLE_RESTRICTED:return"TOGGLE_SHUFFLE_RESTRICTED";case a.SET_QUEUE_RESTRICTED:return"SET_QUEUE_RESTRICTED";case a.INTERRUPT_PLAYBACK_RESTRICTED:return"INTERRUPT_PLAYBACK_RESTRICTED";case a.ONE_TRACK_UNPLAYABLE:return"ONE_TRACK_UNPLAYABLE";case a.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED:return"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED";case a.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED:return"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED";case a.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED:return"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED";case a.QUEUE_REVISION_MISMATCH:return"QUEUE_REVISION_MISMATCH";case a.VIDEO_PLAYBACK_ERROR:return"VIDEO_PLAYBACK_ERROR";case a.VIDEO_GEOGRAPHICALLY_RESTRICTED:return"VIDEO_GEOGRAPHICALLY_RESTRICTED";case a.VIDEO_UNSUPPORTED_PLATFORM_VERSION:return"VIDEO_UNSUPPORTED_PLATFORM_VERSION";case a.VIDEO_UNSUPPORTED_CLIENT_VERSION:return"VIDEO_UNSUPPORTED_CLIENT_VERSION";case a.VIDEO_UNSUPPORTED_KEY_SYSTEM:return"VIDEO_UNSUPPORTED_KEY_SYSTEM";case a.VIDEO_MANIFEST_DELETED:return"VIDEO_MANIFEST_DELETED";case a.VIDEO_COUNTRY_RESTRICTED:return"VIDEO_COUNTRY_RESTRICTED";case a.VIDEO_UNAVAILABLE:return"VIDEO_UNAVAILABLE";case a.VIDEO_CATALOGUE_RESTRICTED:return"VIDEO_CATALOGUE_RESTRICTED";case a.INVALID:return"INVALID";case a.TIMEOUT:return"TIMEOUT";case a.PLAYBACK_REPORTING_ERROR:return"PLAYBACK_REPORTING_ERROR";case a.UNKNOWN:default:return"UNKNOWN"}}function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.SUCCESS=0]="SUCCESS",e[e.PLAYBACK_STUCK=1]="PLAYBACK_STUCK",e[e.PLAYBACK_ERROR=2]="PLAYBACK_ERROR",e[e.LICENSE_CHANGE=3]="LICENSE_CHANGE",e[e.PLAY_RESTRICTED=4]="PLAY_RESTRICTED",e[e.STOP_RESTRICTED=5]="STOP_RESTRICTED",e[e.UPDATE_RESTRICTED=6]="UPDATE_RESTRICTED",e[e.PAUSE_RESTRICTED=7]="PAUSE_RESTRICTED",e[e.RESUME_RESTRICTED=8]="RESUME_RESTRICTED",e[e.SKIP_TO_PREV_RESTRICTED=9]="SKIP_TO_PREV_RESTRICTED",e[e.SKIP_TO_NEXT_RESTRICTED=10]="SKIP_TO_NEXT_RESTRICTED",e[e.SKIP_TO_NON_EXISTENT_TRACK=11]="SKIP_TO_NON_EXISTENT_TRACK",e[e.SEEK_TO_RESTRICTED=12]="SEEK_TO_RESTRICTED",e[e.TOGGLE_REPEAT_CONTEXT_RESTRICTED=13]="TOGGLE_REPEAT_CONTEXT_RESTRICTED",e[e.TOGGLE_REPEAT_TRACK_RESTRICTED=14]="TOGGLE_REPEAT_TRACK_RESTRICTED",e[e.SET_OPTIONS_RESTRICTED=15]="SET_OPTIONS_RESTRICTED",e[e.TOGGLE_SHUFFLE_RESTRICTED=16]="TOGGLE_SHUFFLE_RESTRICTED",e[e.SET_QUEUE_RESTRICTED=17]="SET_QUEUE_RESTRICTED",e[e.INTERRUPT_PLAYBACK_RESTRICTED=18]="INTERRUPT_PLAYBACK_RESTRICTED",e[e.ONE_TRACK_UNPLAYABLE=19]="ONE_TRACK_UNPLAYABLE",e[e.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED=20]="ONE_TRACK_UNPLAYABLE_AUTO_STOPPED",e[e.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED=21]="ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED",e[e.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED=22]="SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED",e[e.QUEUE_REVISION_MISMATCH=23]="QUEUE_REVISION_MISMATCH",e[e.VIDEO_PLAYBACK_ERROR=24]="VIDEO_PLAYBACK_ERROR",e[e.VIDEO_GEOGRAPHICALLY_RESTRICTED=25]="VIDEO_GEOGRAPHICALLY_RESTRICTED",e[e.VIDEO_UNSUPPORTED_PLATFORM_VERSION=26]="VIDEO_UNSUPPORTED_PLATFORM_VERSION",e[e.VIDEO_UNSUPPORTED_CLIENT_VERSION=27]="VIDEO_UNSUPPORTED_CLIENT_VERSION",e[e.VIDEO_UNSUPPORTED_KEY_SYSTEM=28]="VIDEO_UNSUPPORTED_KEY_SYSTEM",e[e.VIDEO_MANIFEST_DELETED=29]="VIDEO_MANIFEST_DELETED",e[e.VIDEO_COUNTRY_RESTRICTED=30]="VIDEO_COUNTRY_RESTRICTED",e[e.VIDEO_UNAVAILABLE=31]="VIDEO_UNAVAILABLE",e[e.VIDEO_CATALOGUE_RESTRICTED=32]="VIDEO_CATALOGUE_RESTRICTED",e[e.INVALID=33]="INVALID",e[e.TIMEOUT=34]="TIMEOUT",e[e.PLAYBACK_REPORTING_ERROR=35]="PLAYBACK_REPORTING_ERROR",e[e.UNKNOWN=36]="UNKNOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ContextPlayerError_ErrorCode||(t.ContextPlayerError_ErrorCode={})),t.contextPlayerError_ErrorCodeFromJSON=s,t.contextPlayerError_ErrorCodeToJSON=l,t.ContextPlayerError={encode:(e,n=o.default.Writer.create())=>(0!==e.code&&n.uint32(8).int32(e.code),""!==e.message&&n.uint32(18).string(e.message),Object.entries(e.data).forEach((([e,r])=>{t.ContextPlayerError_DataEntry.encode({key:e,value:r},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={code:0,message:"",data:{}};for(;r.pos>>3){case 1:a.code=r.int32();break;case 2:a.message=r.string();break;case 3:const n=t.ContextPlayerError_DataEntry.decode(r,r.uint32());void 0!==n.value&&(a.data[n.key]=n.value);break;default:r.skipType(7&e)}}return a},fromJSON(e){return{code:c(e.code)?s(e.code):0,message:c(e.message)?String(e.message):"",data:(t=e.data,"object"==typeof t&&null!==t?Object.entries(e.data).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.code&&(t.code=l(e.code)),void 0!==e.message&&(t.message=e.message),t.data={},e.data&&Object.entries(e.data).forEach((([e,n])=>{t.data[e]=n})),t},fromPartial(e){var t,n,r;const i={code:0,message:"",data:{}};return i.code=null!==(t=e.code)&&void 0!==t?t:0,i.message=null!==(n=e.message)&&void 0!==n?n:"",i.data=Object.entries(null!==(r=e.data)&&void 0!==r?r:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),i}},t.ContextPlayerError_DataEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:c(e.key)?String(e.key):"",value:c(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},80552:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerOptionOverrides=t.ContextPlayerOptions=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(80666);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=o.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),!0===e.repeatingContext&&t.uint32(16).bool(e.repeatingContext),!0===e.repeatingTrack&&t.uint32(24).bool(e.repeatingTrack),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos>>3){case 1:i.shufflingContext=n.bool();break;case 2:i.repeatingContext=n.bool();break;case 3:i.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({shufflingContext:!!s(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!s(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!s(e.repeatingTrack)&&Boolean(e.repeatingTrack)}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),t},fromPartial(e){var t,n,r;const i={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return i.shufflingContext=null!==(t=e.shufflingContext)&&void 0!==t&&t,i.repeatingContext=null!==(n=e.repeatingContext)&&void 0!==n&&n,i.repeatingTrack=null!==(r=e.repeatingTrack)&&void 0!==r&&r,i}},t.ContextPlayerOptionOverrides={encode:(e,t=o.default.Writer.create())=>(void 0!==e.shufflingContext&&a.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&a.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&a.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos>>3){case 1:i.shufflingContext=a.OptionalBoolean.decode(n,n.uint32());break;case 2:i.repeatingContext=a.OptionalBoolean.decode(n,n.uint32());break;case 3:i.repeatingTrack=a.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({shufflingContext:s(e.shufflingContext)?a.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:s(e.repeatingContext)?a.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:s(e.repeatingTrack)?a.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?a.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?a.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?a.OptionalBoolean.toJSON(e.repeatingTrack):void 0),t},fromPartial(e){const t={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};return t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?a.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?a.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?a.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},76833:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerState_PageMetadataEntry=t.ContextPlayerState_ContextMetadataEntry=t.ContextPlayerState=t.PlaybackQuality=t.ContextIndex=t.playbackQuality_HiFiStatusToJSON=t.playbackQuality_HiFiStatusFromJSON=t.PlaybackQuality_HiFiStatus=t.playbackQuality_BitrateStrategyToJSON=t.playbackQuality_BitrateStrategyFromJSON=t.PlaybackQuality_BitrateStrategy=t.playbackQuality_BitrateLevelToJSON=t.playbackQuality_BitrateLevelFromJSON=t.PlaybackQuality_BitrateLevel=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(560),s=n(9874),l=n(935),c=n(13036),u=n(80666),d=n(80552);var p,f,h;function v(e){switch(e){case 0:case"UNKNOWN":return p.UNKNOWN;case 1:case"LOW":return p.LOW;case 2:case"NORMAL":return p.NORMAL;case 3:case"HIGH":return p.HIGH;case 4:case"VERY_HIGH":return p.VERY_HIGH;case 5:case"HIFI":return p.HIFI;default:return p.UNRECOGNIZED}}function m(e){switch(e){case p.UNKNOWN:return"UNKNOWN";case p.LOW:return"LOW";case p.NORMAL:return"NORMAL";case p.HIGH:return"HIGH";case p.VERY_HIGH:return"VERY_HIGH";case p.HIFI:return"HIFI";default:return"UNKNOWN"}}function g(e){switch(e){case 0:case"UNKNOWN_STRATEGY":return f.UNKNOWN_STRATEGY;case 1:case"BEST_MATCHING":return f.BEST_MATCHING;case 2:case"BACKEND_ADVISED":return f.BACKEND_ADVISED;case 3:case"OFFLINED_FILE":return f.OFFLINED_FILE;case 4:case"CACHED_FILE":return f.CACHED_FILE;case 5:case"LOCAL_FILE":return f.LOCAL_FILE;default:return f.UNRECOGNIZED}}function y(e){switch(e){case f.UNKNOWN_STRATEGY:return"UNKNOWN_STRATEGY";case f.BEST_MATCHING:return"BEST_MATCHING";case f.BACKEND_ADVISED:return"BACKEND_ADVISED";case f.OFFLINED_FILE:return"OFFLINED_FILE";case f.CACHED_FILE:return"CACHED_FILE";case f.LOCAL_FILE:return"LOCAL_FILE";default:return"UNKNOWN"}}function _(e){switch(e){case 0:case"NONE":return h.NONE;case 1:case"OFF":return h.OFF;case 2:case"ON":return h.ON;default:return h.UNRECOGNIZED}}function b(e){switch(e){case h.NONE:return"NONE";case h.OFF:return"OFF";case h.ON:return"ON";default:return"UNKNOWN"}}function E(){return{timestamp:"0",contextUri:"",contextUrl:"",contextRestrictions:void 0,playOrigin:void 0,index:void 0,track:void 0,playbackId:new Uint8Array,playbackQuality:void 0,playbackSpeed:void 0,positionAsOfTimestamp:void 0,duration:void 0,isPlaying:!1,isPaused:!1,isBuffering:!1,isSystemInitiated:!1,options:void 0,restrictions:void 0,suppressions:[],prevTracks:[],nextTracks:[],contextMetadata:{},pageMetadata:{},sessionId:"",queueRevision:"0",audioStream:0}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.LOW=1]="LOW",e[e.NORMAL=2]="NORMAL",e[e.HIGH=3]="HIGH",e[e.VERY_HIGH=4]="VERY_HIGH",e[e.HIFI=5]="HIFI",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p=t.PlaybackQuality_BitrateLevel||(t.PlaybackQuality_BitrateLevel={})),t.playbackQuality_BitrateLevelFromJSON=v,t.playbackQuality_BitrateLevelToJSON=m,function(e){e[e.UNKNOWN_STRATEGY=0]="UNKNOWN_STRATEGY",e[e.BEST_MATCHING=1]="BEST_MATCHING",e[e.BACKEND_ADVISED=2]="BACKEND_ADVISED",e[e.OFFLINED_FILE=3]="OFFLINED_FILE",e[e.CACHED_FILE=4]="CACHED_FILE",e[e.LOCAL_FILE=5]="LOCAL_FILE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.PlaybackQuality_BitrateStrategy||(t.PlaybackQuality_BitrateStrategy={})),t.playbackQuality_BitrateStrategyFromJSON=g,t.playbackQuality_BitrateStrategyToJSON=y,function(e){e[e.NONE=0]="NONE",e[e.OFF=1]="OFF",e[e.ON=2]="ON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(h=t.PlaybackQuality_HiFiStatus||(t.PlaybackQuality_HiFiStatus={})),t.playbackQuality_HiFiStatusFromJSON=_,t.playbackQuality_HiFiStatusToJSON=b,t.ContextIndex={encode:(e,t=o.default.Writer.create())=>("0"!==e.page&&t.uint32(8).uint64(e.page),"0"!==e.track&&t.uint32(16).uint64(e.track),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={page:"0",track:"0"};for(;n.pos>>3){case 1:i.page=C(n.uint64());break;case 2:i.track=C(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({page:I(e.page)?String(e.page):"0",track:I(e.track)?String(e.track):"0"}),toJSON(e){const t={};return void 0!==e.page&&(t.page=e.page),void 0!==e.track&&(t.track=e.track),t},fromPartial(e){var t,n;const r={page:"0",track:"0"};return r.page=null!==(t=e.page)&&void 0!==t?t:"0",r.track=null!==(n=e.track)&&void 0!==n?n:"0",r}},t.PlaybackQuality={encode:(e,t=o.default.Writer.create())=>(0!==e.bitrateLevel&&t.uint32(8).int32(e.bitrateLevel),0!==e.strategy&&t.uint32(16).int32(e.strategy),0!==e.targetBitrateLevel&&t.uint32(24).int32(e.targetBitrateLevel),!0===e.targetBitrateAvailable&&t.uint32(32).bool(e.targetBitrateAvailable),0!==e.hifiStatus&&t.uint32(40).int32(e.hifiStatus),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};for(;n.pos>>3){case 1:i.bitrateLevel=n.int32();break;case 2:i.strategy=n.int32();break;case 3:i.targetBitrateLevel=n.int32();break;case 4:i.targetBitrateAvailable=n.bool();break;case 5:i.hifiStatus=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({bitrateLevel:I(e.bitrateLevel)?v(e.bitrateLevel):0,strategy:I(e.strategy)?g(e.strategy):0,targetBitrateLevel:I(e.targetBitrateLevel)?v(e.targetBitrateLevel):0,targetBitrateAvailable:!!I(e.targetBitrateAvailable)&&Boolean(e.targetBitrateAvailable),hifiStatus:I(e.hifiStatus)?_(e.hifiStatus):0}),toJSON(e){const t={};return void 0!==e.bitrateLevel&&(t.bitrateLevel=m(e.bitrateLevel)),void 0!==e.strategy&&(t.strategy=y(e.strategy)),void 0!==e.targetBitrateLevel&&(t.targetBitrateLevel=m(e.targetBitrateLevel)),void 0!==e.targetBitrateAvailable&&(t.targetBitrateAvailable=e.targetBitrateAvailable),void 0!==e.hifiStatus&&(t.hifiStatus=b(e.hifiStatus)),t},fromPartial(e){var t,n,r,i,o;const a={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};return a.bitrateLevel=null!==(t=e.bitrateLevel)&&void 0!==t?t:0,a.strategy=null!==(n=e.strategy)&&void 0!==n?n:0,a.targetBitrateLevel=null!==(r=e.targetBitrateLevel)&&void 0!==r?r:0,a.targetBitrateAvailable=null!==(i=e.targetBitrateAvailable)&&void 0!==i&&i,a.hifiStatus=null!==(o=e.hifiStatus)&&void 0!==o?o:0,a}},t.ContextPlayerState={encode(e,n=o.default.Writer.create()){"0"!==e.timestamp&&n.uint32(8).uint64(e.timestamp),""!==e.contextUri&&n.uint32(18).string(e.contextUri),""!==e.contextUrl&&n.uint32(26).string(e.contextUrl),void 0!==e.contextRestrictions&&s.Restrictions.encode(e.contextRestrictions,n.uint32(34).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,n.uint32(42).fork()).ldelim(),void 0!==e.index&&t.ContextIndex.encode(e.index,n.uint32(50).fork()).ldelim(),void 0!==e.track&&c.ProvidedTrack.encode(e.track,n.uint32(58).fork()).ldelim(),0!==e.playbackId.length&&n.uint32(66).bytes(e.playbackId),void 0!==e.playbackQuality&&t.PlaybackQuality.encode(e.playbackQuality,n.uint32(74).fork()).ldelim(),void 0!==e.playbackSpeed&&u.OptionalDouble.encode(e.playbackSpeed,n.uint32(82).fork()).ldelim(),void 0!==e.positionAsOfTimestamp&&u.OptionalInt64.encode(e.positionAsOfTimestamp,n.uint32(90).fork()).ldelim(),void 0!==e.duration&&u.OptionalInt64.encode(e.duration,n.uint32(98).fork()).ldelim(),!0===e.isPlaying&&n.uint32(104).bool(e.isPlaying),!0===e.isPaused&&n.uint32(112).bool(e.isPaused),!0===e.isBuffering&&n.uint32(120).bool(e.isBuffering),!0===e.isSystemInitiated&&n.uint32(128).bool(e.isSystemInitiated),void 0!==e.options&&d.ContextPlayerOptions.encode(e.options,n.uint32(138).fork()).ldelim(),void 0!==e.restrictions&&s.Restrictions.encode(e.restrictions,n.uint32(146).fork()).ldelim();for(const t of e.suppressions)n.uint32(154).string(t);for(const t of e.prevTracks)c.ProvidedTrack.encode(t,n.uint32(162).fork()).ldelim();for(const t of e.nextTracks)c.ProvidedTrack.encode(t,n.uint32(170).fork()).ldelim();return Object.entries(e.contextMetadata).forEach((([e,r])=>{t.ContextPlayerState_ContextMetadataEntry.encode({key:e,value:r},n.uint32(178).fork()).ldelim()})),Object.entries(e.pageMetadata).forEach((([e,r])=>{t.ContextPlayerState_PageMetadataEntry.encode({key:e,value:r},n.uint32(186).fork()).ldelim()})),""!==e.sessionId&&n.uint32(194).string(e.sessionId),"0"!==e.queueRevision&&n.uint32(200).uint64(e.queueRevision),0!==e.audioStream&&n.uint32(208).int32(e.audioStream),n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=E();for(;r.pos>>3){case 1:a.timestamp=C(r.uint64());break;case 2:a.contextUri=r.string();break;case 3:a.contextUrl=r.string();break;case 4:a.contextRestrictions=s.Restrictions.decode(r,r.uint32());break;case 5:a.playOrigin=l.PlayOrigin.decode(r,r.uint32());break;case 6:a.index=t.ContextIndex.decode(r,r.uint32());break;case 7:a.track=c.ProvidedTrack.decode(r,r.uint32());break;case 8:a.playbackId=r.bytes();break;case 9:a.playbackQuality=t.PlaybackQuality.decode(r,r.uint32());break;case 10:a.playbackSpeed=u.OptionalDouble.decode(r,r.uint32());break;case 11:a.positionAsOfTimestamp=u.OptionalInt64.decode(r,r.uint32());break;case 12:a.duration=u.OptionalInt64.decode(r,r.uint32());break;case 13:a.isPlaying=r.bool();break;case 14:a.isPaused=r.bool();break;case 15:a.isBuffering=r.bool();break;case 16:a.isSystemInitiated=r.bool();break;case 17:a.options=d.ContextPlayerOptions.decode(r,r.uint32());break;case 18:a.restrictions=s.Restrictions.decode(r,r.uint32());break;case 19:a.suppressions.push(r.string());break;case 20:a.prevTracks.push(c.ProvidedTrack.decode(r,r.uint32()));break;case 21:a.nextTracks.push(c.ProvidedTrack.decode(r,r.uint32()));break;case 22:const n=t.ContextPlayerState_ContextMetadataEntry.decode(r,r.uint32());void 0!==n.value&&(a.contextMetadata[n.key]=n.value);break;case 23:const i=t.ContextPlayerState_PageMetadataEntry.decode(r,r.uint32());void 0!==i.value&&(a.pageMetadata[i.key]=i.value);break;case 24:a.sessionId=r.string();break;case 25:a.queueRevision=C(r.uint64());break;case 26:a.audioStream=r.int32();break;default:r.skipType(7&e)}}return a},fromJSON:e=>({timestamp:I(e.timestamp)?String(e.timestamp):"0",contextUri:I(e.contextUri)?String(e.contextUri):"",contextUrl:I(e.contextUrl)?String(e.contextUrl):"",contextRestrictions:I(e.contextRestrictions)?s.Restrictions.fromJSON(e.contextRestrictions):void 0,playOrigin:I(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0,index:I(e.index)?t.ContextIndex.fromJSON(e.index):void 0,track:I(e.track)?c.ProvidedTrack.fromJSON(e.track):void 0,playbackId:I(e.playbackId)?O(e.playbackId):new Uint8Array,playbackQuality:I(e.playbackQuality)?t.PlaybackQuality.fromJSON(e.playbackQuality):void 0,playbackSpeed:I(e.playbackSpeed)?u.OptionalDouble.fromJSON(e.playbackSpeed):void 0,positionAsOfTimestamp:I(e.positionAsOfTimestamp)?u.OptionalInt64.fromJSON(e.positionAsOfTimestamp):void 0,duration:I(e.duration)?u.OptionalInt64.fromJSON(e.duration):void 0,isPlaying:!!I(e.isPlaying)&&Boolean(e.isPlaying),isPaused:!!I(e.isPaused)&&Boolean(e.isPaused),isBuffering:!!I(e.isBuffering)&&Boolean(e.isBuffering),isSystemInitiated:!!I(e.isSystemInitiated)&&Boolean(e.isSystemInitiated),options:I(e.options)?d.ContextPlayerOptions.fromJSON(e.options):void 0,restrictions:I(e.restrictions)?s.Restrictions.fromJSON(e.restrictions):void 0,suppressions:Array.isArray(null==e?void 0:e.suppressions)?e.suppressions.map((e=>String(e))):[],prevTracks:Array.isArray(null==e?void 0:e.prevTracks)?e.prevTracks.map((e=>c.ProvidedTrack.fromJSON(e))):[],nextTracks:Array.isArray(null==e?void 0:e.nextTracks)?e.nextTracks.map((e=>c.ProvidedTrack.fromJSON(e))):[],contextMetadata:P(e.contextMetadata)?Object.entries(e.contextMetadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},pageMetadata:P(e.pageMetadata)?Object.entries(e.pageMetadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},sessionId:I(e.sessionId)?String(e.sessionId):"",queueRevision:I(e.queueRevision)?String(e.queueRevision):"0",audioStream:I(e.audioStream)?(0,a.preparePlayOptions_AudioStreamFromJSON)(e.audioStream):0}),toJSON(e){const n={};return void 0!==e.timestamp&&(n.timestamp=e.timestamp),void 0!==e.contextUri&&(n.contextUri=e.contextUri),void 0!==e.contextUrl&&(n.contextUrl=e.contextUrl),void 0!==e.contextRestrictions&&(n.contextRestrictions=e.contextRestrictions?s.Restrictions.toJSON(e.contextRestrictions):void 0),void 0!==e.playOrigin&&(n.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),void 0!==e.index&&(n.index=e.index?t.ContextIndex.toJSON(e.index):void 0),void 0!==e.track&&(n.track=e.track?c.ProvidedTrack.toJSON(e.track):void 0),void 0!==e.playbackId&&(n.playbackId=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return A(t.join(""))}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.playbackQuality&&(n.playbackQuality=e.playbackQuality?t.PlaybackQuality.toJSON(e.playbackQuality):void 0),void 0!==e.playbackSpeed&&(n.playbackSpeed=e.playbackSpeed?u.OptionalDouble.toJSON(e.playbackSpeed):void 0),void 0!==e.positionAsOfTimestamp&&(n.positionAsOfTimestamp=e.positionAsOfTimestamp?u.OptionalInt64.toJSON(e.positionAsOfTimestamp):void 0),void 0!==e.duration&&(n.duration=e.duration?u.OptionalInt64.toJSON(e.duration):void 0),void 0!==e.isPlaying&&(n.isPlaying=e.isPlaying),void 0!==e.isPaused&&(n.isPaused=e.isPaused),void 0!==e.isBuffering&&(n.isBuffering=e.isBuffering),void 0!==e.isSystemInitiated&&(n.isSystemInitiated=e.isSystemInitiated),void 0!==e.options&&(n.options=e.options?d.ContextPlayerOptions.toJSON(e.options):void 0),void 0!==e.restrictions&&(n.restrictions=e.restrictions?s.Restrictions.toJSON(e.restrictions):void 0),e.suppressions?n.suppressions=e.suppressions.map((e=>e)):n.suppressions=[],e.prevTracks?n.prevTracks=e.prevTracks.map((e=>e?c.ProvidedTrack.toJSON(e):void 0)):n.prevTracks=[],e.nextTracks?n.nextTracks=e.nextTracks.map((e=>e?c.ProvidedTrack.toJSON(e):void 0)):n.nextTracks=[],n.contextMetadata={},e.contextMetadata&&Object.entries(e.contextMetadata).forEach((([e,t])=>{n.contextMetadata[e]=t})),n.pageMetadata={},e.pageMetadata&&Object.entries(e.pageMetadata).forEach((([e,t])=>{n.pageMetadata[e]=t})),void 0!==e.sessionId&&(n.sessionId=e.sessionId),void 0!==e.queueRevision&&(n.queueRevision=e.queueRevision),void 0!==e.audioStream&&(n.audioStream=(0,a.preparePlayOptions_AudioStreamToJSON)(e.audioStream)),n},fromPartial(e){var n,r,i,o,a,p,f,h,v,m,g,y,_,b,S,T;const O=E();return O.timestamp=null!==(n=e.timestamp)&&void 0!==n?n:"0",O.contextUri=null!==(r=e.contextUri)&&void 0!==r?r:"",O.contextUrl=null!==(i=e.contextUrl)&&void 0!==i?i:"",O.contextRestrictions=void 0!==e.contextRestrictions&&null!==e.contextRestrictions?s.Restrictions.fromPartial(e.contextRestrictions):void 0,O.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,O.index=void 0!==e.index&&null!==e.index?t.ContextIndex.fromPartial(e.index):void 0,O.track=void 0!==e.track&&null!==e.track?c.ProvidedTrack.fromPartial(e.track):void 0,O.playbackId=null!==(o=e.playbackId)&&void 0!==o?o:new Uint8Array,O.playbackQuality=void 0!==e.playbackQuality&&null!==e.playbackQuality?t.PlaybackQuality.fromPartial(e.playbackQuality):void 0,O.playbackSpeed=void 0!==e.playbackSpeed&&null!==e.playbackSpeed?u.OptionalDouble.fromPartial(e.playbackSpeed):void 0,O.positionAsOfTimestamp=void 0!==e.positionAsOfTimestamp&&null!==e.positionAsOfTimestamp?u.OptionalInt64.fromPartial(e.positionAsOfTimestamp):void 0,O.duration=void 0!==e.duration&&null!==e.duration?u.OptionalInt64.fromPartial(e.duration):void 0,O.isPlaying=null!==(a=e.isPlaying)&&void 0!==a&&a,O.isPaused=null!==(p=e.isPaused)&&void 0!==p&&p,O.isBuffering=null!==(f=e.isBuffering)&&void 0!==f&&f,O.isSystemInitiated=null!==(h=e.isSystemInitiated)&&void 0!==h&&h,O.options=void 0!==e.options&&null!==e.options?d.ContextPlayerOptions.fromPartial(e.options):void 0,O.restrictions=void 0!==e.restrictions&&null!==e.restrictions?s.Restrictions.fromPartial(e.restrictions):void 0,O.suppressions=(null===(v=e.suppressions)||void 0===v?void 0:v.map((e=>e)))||[],O.prevTracks=(null===(m=e.prevTracks)||void 0===m?void 0:m.map((e=>c.ProvidedTrack.fromPartial(e))))||[],O.nextTracks=(null===(g=e.nextTracks)||void 0===g?void 0:g.map((e=>c.ProvidedTrack.fromPartial(e))))||[],O.contextMetadata=Object.entries(null!==(y=e.contextMetadata)&&void 0!==y?y:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),O.pageMetadata=Object.entries(null!==(_=e.pageMetadata)&&void 0!==_?_:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),O.sessionId=null!==(b=e.sessionId)&&void 0!==b?b:"",O.queueRevision=null!==(S=e.queueRevision)&&void 0!==S?S:"0",O.audioStream=null!==(T=e.audioStream)&&void 0!==T?T:0,O}},t.ContextPlayerState_ContextMetadataEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:I(e.key)?String(e.key):"",value:I(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}},t.ContextPlayerState_PageMetadataEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:I(e.key)?String(e.key):"",value:I(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}};var S=(()=>{if(void 0!==S)return S;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const T=S.atob||(e=>S.Buffer.from(e,"base64").toString("binary"));function O(e){const t=T(e),n=new Uint8Array(t.length);for(let e=0;eS.Buffer.from(e,"binary").toString("base64"));function C(e){return e.toString()}function P(e){return"object"==typeof e&&null!==e}function I(e){return null!=e}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},82500:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTrack_MetadataEntry=t.ContextTrack=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=o.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),""!==e.uid&&n.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,r])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:r},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a={uri:"",uid:"",metadata:{}};for(;r.pos>>3){case 1:a.uri=r.string();break;case 2:a.uid=r.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(r,r.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:r.skipType(7&e)}}return a},fromJSON(e){return{uri:a(e.uri)?String(e.uri):"",uid:a(e.uid)?String(e.uid):"",metadata:(t=e.metadata,"object"==typeof t&&null!==t?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.uid&&(t.uid=e.uid),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){var t,n,r;const i={uri:"",uid:"",metadata:{}};return i.uri=null!==(t=e.uri)&&void 0!==t?t:"",i.uid=null!==(n=e.uid)&&void 0!==n?n:"",i.metadata=Object.entries(null!==(r=e.metadata)&&void 0!==r?r:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),i}},t.ContextTrack_MetadataEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:a(e.key)?String(e.key):"",value:a(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},87341:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteSessionResponse=t.DeleteSessionRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.player.esperanto.proto",t.DeleteSessionRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:""};for(;n.pos>>3==1)i.sessionId=n.string();else n.skipType(7&e)}return i},fromJSON(e){return{sessionId:(t=e.sessionId,null!=t?String(e.sessionId):"")};var t},toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),t},fromPartial(e){var t;const n={sessionId:""};return n.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",n}},t.DeleteSessionResponse={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},56114:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EnableFodRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.EnableFodRequest={encode:(e,t=o.default.Writer.create())=>("0"!==e.duration&&t.uint32(8).int64(e.duration),!0===e.useStreamTime&&t.uint32(16).bool(e.useStreamTime),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={duration:"0",useStreamTime:!1};for(;n.pos>>3){case 1:i.duration=n.int64().toString();break;case 2:i.useStreamTime=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({duration:a(e.duration)?String(e.duration):"0",useStreamTime:!!a(e.useStreamTime)&&Boolean(e.useStreamTime)}),toJSON(e){const t={};return void 0!==e.duration&&(t.duration=e.duration),void 0!==e.useStreamTime&&(t.useStreamTime=e.useStreamTime),t},fromPartial(e){var t,n;const r={duration:"0",useStreamTime:!1};return r.duration=null!==(t=e.duration)&&void 0!==t?t:"0",r.useStreamTime=null!==(n=e.useStreamTime)&&void 0!==n&&n,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},9508:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetErrorRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.player.esperanto.proto",t.GetErrorRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},10560:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetPlayHistoryResponse=t.GetPlayHistoryRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(82500);t.protobufPackage="spotify.player.esperanto.proto",t.GetPlayHistoryRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetPlayHistoryResponse={encode(e,t=o.default.Writer.create()){for(const n of e.tracks)a.ContextTrack.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={tracks:[]};for(;n.pos>>3==1)i.tracks.push(a.ContextTrack.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({tracks:Array.isArray(null==e?void 0:e.tracks)?e.tracks.map((e=>a.ContextTrack.fromJSON(e))):[]}),toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?a.ContextTrack.toJSON(e):void 0)):t.tracks=[],t},fromPartial(e){var t;const n={tracks:[]};return n.tracks=(null===(t=e.tracks)||void 0===t?void 0:t.map((e=>a.ContextTrack.fromPartial(e))))||[],n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},61451:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetPositionStateResponse=t.GetPositionStateRequest=t.getPositionStateResponse_ErrorToJSON=t.getPositionStateResponse_ErrorFromJSON=t.GetPositionStateResponse_Error=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;function s(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_FOUND":return a.NOT_FOUND;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.OK:return"OK";case a.NOT_FOUND:return"NOT_FOUND";default:return"UNKNOWN"}}function c(e){return e.toString()}function u(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.OK=0]="OK",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.GetPositionStateResponse_Error||(t.GetPositionStateResponse_Error={})),t.getPositionStateResponse_ErrorFromJSON=s,t.getPositionStateResponse_ErrorToJSON=l,t.GetPositionStateRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetPositionStateResponse={encode:(e,t=o.default.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),"0"!==e.timestamp&&t.uint32(16).uint64(e.timestamp),"0"!==e.position&&t.uint32(24).uint64(e.position),0!==e.playbackSpeed&&t.uint32(33).double(e.playbackSpeed),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={error:0,timestamp:"0",position:"0",playbackSpeed:0};for(;n.pos>>3){case 1:i.error=n.int32();break;case 2:i.timestamp=c(n.uint64());break;case 3:i.position=c(n.uint64());break;case 4:i.playbackSpeed=n.double();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({error:u(e.error)?s(e.error):0,timestamp:u(e.timestamp)?String(e.timestamp):"0",position:u(e.position)?String(e.position):"0",playbackSpeed:u(e.playbackSpeed)?Number(e.playbackSpeed):0}),toJSON(e){const t={};return void 0!==e.error&&(t.error=l(e.error)),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.position&&(t.position=e.position),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},fromPartial(e){var t,n,r,i;const o={error:0,timestamp:"0",position:"0",playbackSpeed:0};return o.error=null!==(t=e.error)&&void 0!==t?t:0,o.timestamp=null!==(n=e.timestamp)&&void 0!==n?n:"0",o.position=null!==(r=e.position)&&void 0!==r?r:"0",o.playbackSpeed=null!==(i=e.playbackSpeed)&&void 0!==i?i:0,o}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},62652:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetQueueRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.player.esperanto.proto",t.GetQueueRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},64920:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetStateRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(80666);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.GetStateRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.prevTracksCap&&a.OptionalInt64.encode(e.prevTracksCap,t.uint32(10).fork()).ldelim(),void 0!==e.nextTracksCap&&a.OptionalInt64.encode(e.nextTracksCap,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={prevTracksCap:void 0,nextTracksCap:void 0};for(;n.pos>>3){case 1:i.prevTracksCap=a.OptionalInt64.decode(n,n.uint32());break;case 2:i.nextTracksCap=a.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({prevTracksCap:s(e.prevTracksCap)?a.OptionalInt64.fromJSON(e.prevTracksCap):void 0,nextTracksCap:s(e.nextTracksCap)?a.OptionalInt64.fromJSON(e.nextTracksCap):void 0}),toJSON(e){const t={};return void 0!==e.prevTracksCap&&(t.prevTracksCap=e.prevTracksCap?a.OptionalInt64.toJSON(e.prevTracksCap):void 0),void 0!==e.nextTracksCap&&(t.nextTracksCap=e.nextTracksCap?a.OptionalInt64.toJSON(e.nextTracksCap):void 0),t},fromPartial(e){const t={prevTracksCap:void 0,nextTracksCap:void 0};return t.prevTracksCap=void 0!==e.prevTracksCap&&null!==e.prevTracksCap?a.OptionalInt64.fromPartial(e.prevTracksCap):void 0,t.nextTracksCap=void 0!==e.nextTracksCap&&null!==e.nextTracksCap?a.OptionalInt64.fromPartial(e.nextTracksCap):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},89687:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsFodEnabledResponse=t.IsFodEnabledRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.player.esperanto.proto",t.IsFodEnabledRequest={encode:(e,t=o.default.Writer.create())=>t,decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.IsFodEnabledResponse={encode:(e,t=o.default.Writer.create())=>(!0===e.enabled&&t.uint32(8).bool(e.enabled),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={enabled:!1};for(;n.pos>>3==1)i.enabled=n.bool();else n.skipType(7&e)}return i},fromJSON(e){return{enabled:(t=e.enabled,null!=t&&Boolean(e.enabled))};var t},toJSON(e){const t={};return void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial(e){var t;const n={enabled:!1};return n.enabled=null!==(t=e.enabled)&&void 0!==t&&t,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},64386:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingParams=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(80666);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=o.default.Writer.create()){void 0!==e.commandInitiatedTime&&a.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&a.OptionalInt64.encode(e.commandReceivedTime,t.uint32(18).fork()).ldelim();for(const n of e.pageInstanceIds)t.uint32(26).string(n);for(const n of e.interactionIds)t.uint32(34).string(n);return""!==e.deviceIdentifier&&t.uint32(42).string(e.deviceIdentifier),t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos>>3){case 1:i.commandInitiatedTime=a.OptionalInt64.decode(n,n.uint32());break;case 2:i.commandReceivedTime=a.OptionalInt64.decode(n,n.uint32());break;case 3:i.pageInstanceIds.push(n.string());break;case 4:i.interactionIds.push(n.string());break;case 5:i.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({commandInitiatedTime:s(e.commandInitiatedTime)?a.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:s(e.commandReceivedTime)?a.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(null==e?void 0:e.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(null==e?void 0:e.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:s(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?a.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?a.OptionalInt64.toJSON(e.commandReceivedTime):void 0),e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),t},fromPartial(e){var t,n,r;const i={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return i.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?a.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,i.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?a.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,i.pageInstanceIds=(null===(t=e.pageInstanceIds)||void 0===t?void 0:t.map((e=>e)))||[],i.interactionIds=(null===(n=e.interactionIds)||void 0===n?void 0:n.map((e=>e)))||[],i.deviceIdentifier=null!==(r=e.deviceIdentifier)&&void 0!==r?r:"",i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},80666:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalBoolean=t.OptionalDouble=t.OptionalInt64=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=o.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={value:"0"};for(;n.pos>>3==1)i.value=n.int64().toString();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?String(e.value):"0"}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:"0"};return n.value=null!==(t=e.value)&&void 0!==t?t:"0",n}},t.OptionalDouble={encode:(e,t=o.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos>>3==1)i.value=n.double();else n.skipType(7&e)}return i},fromJSON:e=>({value:a(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:0};return n.value=null!==(t=e.value)&&void 0!==t?t:0,n}},t.OptionalBoolean={encode:(e,t=o.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!a(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:!1};return n.value=null!==(t=e.value)&&void 0!==t&&t,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},5272:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PauseRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PauseRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:l(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0};return t.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},55703:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayPreparedRequest=t.PlayRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(90943),s=n(63470),l=n(30620),c=n(64386);function u(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.preparePlayRequest&&a.PreparePlayRequest.encode(e.preparePlayRequest,t.uint32(10).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(18).fork()).ldelim(),void 0!==e.options&&l.CommandOptions.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&c.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.preparePlayRequest=a.PreparePlayRequest.decode(n,n.uint32());break;case 2:i.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 3:i.options=l.CommandOptions.decode(n,n.uint32());break;case 4:i.loggingParams=c.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({preparePlayRequest:u(e.preparePlayRequest)?a.PreparePlayRequest.fromJSON(e.preparePlayRequest):void 0,playOptions:u(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,options:u(e.options)?l.CommandOptions.fromJSON(e.options):void 0,loggingParams:u(e.loggingParams)?c.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.preparePlayRequest&&(t.preparePlayRequest=e.preparePlayRequest?a.PreparePlayRequest.toJSON(e.preparePlayRequest):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.options&&(t.options=e.options?l.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?c.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};return t.preparePlayRequest=void 0!==e.preparePlayRequest&&null!==e.preparePlayRequest?a.PreparePlayRequest.fromPartial(e.preparePlayRequest):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.options=void 0!==e.options&&null!==e.options?l.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?c.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.PlayPreparedRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(18).fork()).ldelim(),void 0!==e.options&&l.CommandOptions.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&c.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.sessionId=n.string();break;case 2:i.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 3:i.options=l.CommandOptions.decode(n,n.uint32());break;case 4:i.loggingParams=c.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sessionId:u(e.sessionId)?String(e.sessionId):"",playOptions:u(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,options:u(e.options)?l.CommandOptions.fromJSON(e.options):void 0,loggingParams:u(e.loggingParams)?c.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.options&&(t.options=e.options?l.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?c.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};return n.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",n.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,n.options=void 0!==e.options&&null!==e.options?l.CommandOptions.fromPartial(e.options):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?c.LoggingParams.fromPartial(e.loggingParams):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},63470:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOptions=t.playOptions_TriggerToJSON=t.playOptions_TriggerFromJSON=t.PlayOptions_Trigger=t.playOptions_OperationToJSON=t.playOptions_OperationFromJSON=t.PlayOptions_Operation=t.playOptions_ReasonToJSON=t.playOptions_ReasonFromJSON=t.PlayOptions_Reason=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a,s,l;function c(e){switch(e){case 0:case"INTERACTIVE":return a.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return a.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return a.LICENSE_CHANGE;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.INTERACTIVE:return"INTERACTIVE";case a.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case a.LICENSE_CHANGE:return"LICENSE_CHANGE";default:return"UNKNOWN"}}function d(e){switch(e){case 0:case"REPLACE":return s.REPLACE;case 1:case"ENQUEUE":return s.ENQUEUE;case 2:case"PUSH":return s.PUSH;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.REPLACE:return"REPLACE";case s.ENQUEUE:return"ENQUEUE";case s.PUSH:return"PUSH";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"IMMEDIATELY":return l.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return l.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return l.ADVANCED_PAST_CONTEXT;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.IMMEDIATELY:return"IMMEDIATELY";case l.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case l.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";default:return"UNKNOWN"}}function v(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.LICENSE_CHANGE=2]="LICENSE_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=c,t.playOptions_ReasonToJSON=u,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=d,t.playOptions_OperationToJSON=p,function(e){e[e.IMMEDIATELY=0]="IMMEDIATELY",e[e.ADVANCED_PAST_TRACK=1]="ADVANCED_PAST_TRACK",e[e.ADVANCED_PAST_CONTEXT=2]="ADVANCED_PAST_CONTEXT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=f,t.playOptions_TriggerToJSON=h,t.PlayOptions={encode:(e,t=o.default.Writer.create())=>(0!==e.reason&&t.uint32(8).int32(e.reason),0!==e.operation&&t.uint32(16).int32(e.operation),0!==e.trigger&&t.uint32(24).int32(e.trigger),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={reason:0,operation:0,trigger:0};for(;n.pos>>3){case 1:i.reason=n.int32();break;case 2:i.operation=n.int32();break;case 3:i.trigger=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({reason:v(e.reason)?c(e.reason):0,operation:v(e.operation)?d(e.operation):0,trigger:v(e.trigger)?f(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=u(e.reason)),void 0!==e.operation&&(t.operation=p(e.operation)),void 0!==e.trigger&&(t.trigger=h(e.trigger)),t},fromPartial(e){var t,n,r;const i={reason:0,operation:0,trigger:0};return i.reason=null!==(t=e.reason)&&void 0!==t?t:0,i.operation=null!==(n=e.operation)&&void 0!==n?n:0,i.trigger=null!==(r=e.trigger)&&void 0!==r?r:0,i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},935:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayOrigin=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=o.default.Writer.create()){""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(18).string(e.featureVersion),""!==e.viewUri&&t.uint32(26).string(e.viewUri),""!==e.externalReferrer&&t.uint32(34).string(e.externalReferrer),""!==e.referrerIdentifier&&t.uint32(42).string(e.referrerIdentifier),""!==e.deviceIdentifier&&t.uint32(50).string(e.deviceIdentifier);for(const n of e.featureClasses)t.uint32(58).string(n);return t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[]};for(;n.pos>>3){case 1:i.featureIdentifier=n.string();break;case 2:i.featureVersion=n.string();break;case 3:i.viewUri=n.string();break;case 4:i.externalReferrer=n.string();break;case 5:i.referrerIdentifier=n.string();break;case 6:i.deviceIdentifier=n.string();break;case 7:i.featureClasses.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({featureIdentifier:a(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:a(e.featureVersion)?String(e.featureVersion):"",viewUri:a(e.viewUri)?String(e.viewUri):"",externalReferrer:a(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:a(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(null==e?void 0:e.featureClasses)?e.featureClasses.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),void 0!==e.featureVersion&&(t.featureVersion=e.featureVersion),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.externalReferrer&&(t.externalReferrer=e.externalReferrer),void 0!==e.referrerIdentifier&&(t.referrerIdentifier=e.referrerIdentifier),void 0!==e.deviceIdentifier&&(t.deviceIdentifier=e.deviceIdentifier),e.featureClasses?t.featureClasses=e.featureClasses.map((e=>e)):t.featureClasses=[],t},fromPartial(e){var t,n,r,i,o,a,s;const l={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[]};return l.featureIdentifier=null!==(t=e.featureIdentifier)&&void 0!==t?t:"",l.featureVersion=null!==(n=e.featureVersion)&&void 0!==n?n:"",l.viewUri=null!==(r=e.viewUri)&&void 0!==r?r:"",l.externalReferrer=null!==(i=e.externalReferrer)&&void 0!==i?i:"",l.referrerIdentifier=null!==(o=e.referrerIdentifier)&&void 0!==o?o:"",l.deviceIdentifier=null!==(a=e.deviceIdentifier)&&void 0!==a?a:"",l.featureClasses=(null===(s=e.featureClasses)||void 0===s?void 0:s.map((e=>e)))||[],l}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},90943:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(13344),s=n(560),l=n(935);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PreparePlayRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.context&&a.Context.encode(e.context,t.uint32(10).fork()).ldelim(),void 0!==e.options&&s.PreparePlayOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={context:void 0,options:void 0,playOrigin:void 0};for(;n.pos>>3){case 1:i.context=a.Context.decode(n,n.uint32());break;case 2:i.options=s.PreparePlayOptions.decode(n,n.uint32());break;case 3:i.playOrigin=l.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({context:c(e.context)?a.Context.fromJSON(e.context):void 0,options:c(e.options)?s.PreparePlayOptions.fromJSON(e.options):void 0,playOrigin:c(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.context&&(t.context=e.context?a.Context.toJSON(e.context):void 0),void 0!==e.options&&(t.options=e.options?s.PreparePlayOptions.toJSON(e.options):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),t},fromPartial(e){const t={context:void 0,options:void 0,playOrigin:void 0};return t.context=void 0!==e.context&&null!==e.context?a.Context.fromPartial(e.context):void 0,t.options=void 0!==e.options&&null!==e.options?s.PreparePlayOptions.fromPartial(e.options):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},560:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PreparePlayOptions_ConfigurationOverrideEntry=t.PreparePlayOptions=t.preparePlayOptions_AudioStreamToJSON=t.preparePlayOptions_AudioStreamFromJSON=t.PreparePlayOptions_AudioStream=t.preparePlayOptions_PrefetchLevelToJSON=t.preparePlayOptions_PrefetchLevelFromJSON=t.PreparePlayOptions_PrefetchLevel=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(22808),s=n(80666),l=n(80552);var c,u;function d(e){switch(e){case 0:case"NONE":return c.NONE;case 1:case"MEDIA":return c.MEDIA;default:return c.UNRECOGNIZED}}function p(e){switch(e){case c.NONE:return"NONE";case c.MEDIA:return"MEDIA";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"DEFAULT":return u.DEFAULT;case 1:case"ALARM":return u.ALARM;default:return u.UNRECOGNIZED}}function h(e){switch(e){case u.DEFAULT:return"DEFAULT";case u.ALARM:return"ALARM";default:return"UNKNOWN"}}function v(){return{playbackId:new Uint8Array,alwaysPlaySomething:!1,skipTo:void 0,seekTo:void 0,initiallyPaused:!1,systemInitiated:!1,playerOptionsOverride:void 0,suppressions:[],prefetchLevel:0,audioStream:0,sessionId:"",license:"",configurationOverride:{}}}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.MEDIA=1]="MEDIA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=d,t.preparePlayOptions_PrefetchLevelToJSON=p,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=f,t.preparePlayOptions_AudioStreamToJSON=h,t.PreparePlayOptions={encode(e,n=o.default.Writer.create()){0!==e.playbackId.length&&n.uint32(10).bytes(e.playbackId),!0===e.alwaysPlaySomething&&n.uint32(16).bool(e.alwaysPlaySomething),void 0!==e.skipTo&&a.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&s.OptionalInt64.encode(e.seekTo,n.uint32(34).fork()).ldelim(),!0===e.initiallyPaused&&n.uint32(40).bool(e.initiallyPaused),!0===e.systemInitiated&&n.uint32(48).bool(e.systemInitiated),void 0!==e.playerOptionsOverride&&l.ContextPlayerOptionOverrides.encode(e.playerOptionsOverride,n.uint32(58).fork()).ldelim();for(const t of e.suppressions)n.uint32(66).string(t);return 0!==e.prefetchLevel&&n.uint32(72).int32(e.prefetchLevel),0!==e.audioStream&&n.uint32(80).int32(e.audioStream),""!==e.sessionId&&n.uint32(90).string(e.sessionId),""!==e.license&&n.uint32(98).string(e.license),Object.entries(e.configurationOverride).forEach((([e,r])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:r},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const r=e instanceof o.default.Reader?e:new o.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const c=v();for(;r.pos>>3){case 1:c.playbackId=r.bytes();break;case 2:c.alwaysPlaySomething=r.bool();break;case 3:c.skipTo=a.SkipToTrack.decode(r,r.uint32());break;case 4:c.seekTo=s.OptionalInt64.decode(r,r.uint32());break;case 5:c.initiallyPaused=r.bool();break;case 6:c.systemInitiated=r.bool();break;case 7:c.playerOptionsOverride=l.ContextPlayerOptionOverrides.decode(r,r.uint32());break;case 8:c.suppressions.push(r.string());break;case 9:c.prefetchLevel=r.int32();break;case 10:c.audioStream=r.int32();break;case 11:c.sessionId=r.string();break;case 12:c.license=r.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(r,r.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:r.skipType(7&e)}}return c},fromJSON(e){return{playbackId:b(e.playbackId)?y(e.playbackId):new Uint8Array,alwaysPlaySomething:!!b(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:b(e.skipTo)?a.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:b(e.seekTo)?s.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!b(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!b(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:b(e.playerOptionsOverride)?l.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(null==e?void 0:e.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:b(e.prefetchLevel)?d(e.prefetchLevel):0,audioStream:b(e.audioStream)?f(e.audioStream):0,sessionId:b(e.sessionId)?String(e.sessionId):"",license:b(e.license)?String(e.license):"",configurationOverride:(t=e.configurationOverride,"object"==typeof t&&null!==t?Object.entries(e.configurationOverride).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{})};var t},toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return _(t.join(""))}(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.alwaysPlaySomething&&(t.alwaysPlaySomething=e.alwaysPlaySomething),void 0!==e.skipTo&&(t.skipTo=e.skipTo?a.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?s.OptionalInt64.toJSON(e.seekTo):void 0),void 0!==e.initiallyPaused&&(t.initiallyPaused=e.initiallyPaused),void 0!==e.systemInitiated&&(t.systemInitiated=e.systemInitiated),void 0!==e.playerOptionsOverride&&(t.playerOptionsOverride=e.playerOptionsOverride?l.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=p(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=h(e.audioStream)),void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.license&&(t.license=e.license),t.configurationOverride={},e.configurationOverride&&Object.entries(e.configurationOverride).forEach((([e,n])=>{t.configurationOverride[e]=n})),t},fromPartial(e){var t,n,r,i,o,c,u,d,p,f;const h=v();return h.playbackId=null!==(t=e.playbackId)&&void 0!==t?t:new Uint8Array,h.alwaysPlaySomething=null!==(n=e.alwaysPlaySomething)&&void 0!==n&&n,h.skipTo=void 0!==e.skipTo&&null!==e.skipTo?a.SkipToTrack.fromPartial(e.skipTo):void 0,h.seekTo=void 0!==e.seekTo&&null!==e.seekTo?s.OptionalInt64.fromPartial(e.seekTo):void 0,h.initiallyPaused=null!==(r=e.initiallyPaused)&&void 0!==r&&r,h.systemInitiated=null!==(i=e.systemInitiated)&&void 0!==i&&i,h.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?l.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,h.suppressions=(null===(o=e.suppressions)||void 0===o?void 0:o.map((e=>e)))||[],h.prefetchLevel=null!==(c=e.prefetchLevel)&&void 0!==c?c:0,h.audioStream=null!==(u=e.audioStream)&&void 0!==u?u:0,h.sessionId=null!==(d=e.sessionId)&&void 0!==d?d:"",h.license=null!==(p=e.license)&&void 0!==p?p:"",h.configurationOverride=Object.entries(null!==(f=e.configurationOverride)&&void 0!==f?f:{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),h}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=o.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={key:"",value:""};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:b(e.key)?String(e.key):"",value:b(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n;const r={key:"",value:""};return r.key=null!==(t=e.key)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:"",r}};var m=(()=>{if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const g=m.atob||(e=>m.Buffer.from(e,"base64").toString("binary"));function y(e){const t=g(e),n=new Uint8Array(t.length);for(let e=0;em.Buffer.from(e,"binary").toString("base64"));function b(e){return null!=e}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},13036:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProvidedTrack=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(82500);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ProvidedTrack={encode(e,t=o.default.Writer.create()){void 0!==e.contextTrack&&a.ContextTrack.encode(e.contextTrack,t.uint32(10).fork()).ldelim();for(const n of e.removed)t.uint32(18).string(n);for(const n of e.blocked)t.uint32(26).string(n);return""!==e.provider&&t.uint32(34).string(e.provider),t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={contextTrack:void 0,removed:[],blocked:[],provider:""};for(;n.pos>>3){case 1:i.contextTrack=a.ContextTrack.decode(n,n.uint32());break;case 2:i.removed.push(n.string());break;case 3:i.blocked.push(n.string());break;case 4:i.provider=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({contextTrack:s(e.contextTrack)?a.ContextTrack.fromJSON(e.contextTrack):void 0,removed:Array.isArray(null==e?void 0:e.removed)?e.removed.map((e=>String(e))):[],blocked:Array.isArray(null==e?void 0:e.blocked)?e.blocked.map((e=>String(e))):[],provider:s(e.provider)?String(e.provider):""}),toJSON(e){const t={};return void 0!==e.contextTrack&&(t.contextTrack=e.contextTrack?a.ContextTrack.toJSON(e.contextTrack):void 0),e.removed?t.removed=e.removed.map((e=>e)):t.removed=[],e.blocked?t.blocked=e.blocked.map((e=>e)):t.blocked=[],void 0!==e.provider&&(t.provider=e.provider),t},fromPartial(e){var t,n,r;const i={contextTrack:void 0,removed:[],blocked:[],provider:""};return i.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?a.ContextTrack.fromPartial(e.contextTrack):void 0,i.removed=(null===(t=e.removed)||void 0===t?void 0:t.map((e=>e)))||[],i.blocked=(null===(n=e.blocked)||void 0===n?void 0:n.map((e=>e)))||[],i.provider=null!==(r=e.provider)&&void 0!==r?r:"",i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},66994:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Queue=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(13036);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Queue={encode(e,t=o.default.Writer.create()){"0"!==e.queueRevision&&t.uint32(8).uint64(e.queueRevision),void 0!==e.track&&a.ProvidedTrack.encode(e.track,t.uint32(18).fork()).ldelim();for(const n of e.nextTracks)a.ProvidedTrack.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.prevTracks)a.ProvidedTrack.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={queueRevision:"0",track:void 0,nextTracks:[],prevTracks:[]};for(;n.pos>>3){case 1:i.queueRevision=n.uint64().toString();break;case 2:i.track=a.ProvidedTrack.decode(n,n.uint32());break;case 3:i.nextTracks.push(a.ProvidedTrack.decode(n,n.uint32()));break;case 4:i.prevTracks.push(a.ProvidedTrack.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({queueRevision:s(e.queueRevision)?String(e.queueRevision):"0",track:s(e.track)?a.ProvidedTrack.fromJSON(e.track):void 0,nextTracks:Array.isArray(null==e?void 0:e.nextTracks)?e.nextTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[],prevTracks:Array.isArray(null==e?void 0:e.prevTracks)?e.prevTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.queueRevision&&(t.queueRevision=e.queueRevision),void 0!==e.track&&(t.track=e.track?a.ProvidedTrack.toJSON(e.track):void 0),e.nextTracks?t.nextTracks=e.nextTracks.map((e=>e?a.ProvidedTrack.toJSON(e):void 0)):t.nextTracks=[],e.prevTracks?t.prevTracks=e.prevTracks.map((e=>e?a.ProvidedTrack.toJSON(e):void 0)):t.prevTracks=[],t},fromPartial(e){var t,n,r;const i={queueRevision:"0",track:void 0,nextTracks:[],prevTracks:[]};return i.queueRevision=null!==(t=e.queueRevision)&&void 0!==t?t:"0",i.track=void 0!==e.track&&null!==e.track?a.ProvidedTrack.fromPartial(e.track):void 0,i.nextTracks=(null===(n=e.nextTracks)||void 0===n?void 0:n.map((e=>a.ProvidedTrack.fromPartial(e))))||[],i.prevTracks=(null===(r=e.prevTracks)||void 0===r?void 0:r.map((e=>a.ProvidedTrack.fromPartial(e))))||[],i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},81455:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseWithReasons=t.responseWithReasons_ErrorToJSON=t.responseWithReasons_ErrorFromJSON=t.ResponseWithReasons_Error=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;function s(e){switch(e){case 0:case"OK":return a.OK;case 1:case"FORBIDDEN":return a.FORBIDDEN;case 2:case"NOT_FOUND":return a.NOT_FOUND;case 3:case"CONFLICT":return a.CONFLICT;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.OK:return"OK";case a.FORBIDDEN:return"FORBIDDEN";case a.NOT_FOUND:return"NOT_FOUND";case a.CONFLICT:return"CONFLICT";default:return"UNKNOWN"}}function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.OK=0]="OK",e[e.FORBIDDEN=1]="FORBIDDEN",e[e.NOT_FOUND=2]="NOT_FOUND",e[e.CONFLICT=3]="CONFLICT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ResponseWithReasons_Error||(t.ResponseWithReasons_Error={})),t.responseWithReasons_ErrorFromJSON=s,t.responseWithReasons_ErrorToJSON=l,t.ResponseWithReasons={encode:(e,t=o.default.Writer.create())=>(0!==e.error&&t.uint32(8).int32(e.error),""!==e.reasons&&t.uint32(18).string(e.reasons),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={error:0,reasons:""};for(;n.pos>>3){case 1:i.error=n.int32();break;case 2:i.reasons=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({error:c(e.error)?s(e.error):0,reasons:c(e.reasons)?String(e.reasons):""}),toJSON(e){const t={};return void 0!==e.error&&(t.error=l(e.error)),void 0!==e.reasons&&(t.reasons=e.reasons),t},fromPartial(e){var t,n;const r={error:0,reasons:""};return r.error=null!==(t=e.error)&&void 0!==t?t:0,r.reasons=null!==(n=e.reasons)&&void 0!==n?n:"",r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},9874:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Restrictions=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=o.default.Writer.create()){for(const n of e.disallowPausingReasons)t.uint32(10).string(n);for(const n of e.disallowResumingReasons)t.uint32(18).string(n);for(const n of e.disallowSeekingReasons)t.uint32(26).string(n);for(const n of e.disallowPeekingPrevReasons)t.uint32(34).string(n);for(const n of e.disallowPeekingNextReasons)t.uint32(42).string(n);for(const n of e.disallowSkippingPrevReasons)t.uint32(50).string(n);for(const n of e.disallowSkippingNextReasons)t.uint32(58).string(n);for(const n of e.disallowTogglingRepeatContextReasons)t.uint32(66).string(n);for(const n of e.disallowTogglingRepeatTrackReasons)t.uint32(74).string(n);for(const n of e.disallowTogglingShuffleReasons)t.uint32(82).string(n);for(const n of e.disallowSetQueueReasons)t.uint32(90).string(n);for(const n of e.disallowInterruptingPlaybackReasons)t.uint32(98).string(n);for(const n of e.disallowTransferringPlaybackReasons)t.uint32(106).string(n);for(const n of e.disallowRemoteControlReasons)t.uint32(114).string(n);for(const n of e.disallowInsertingIntoNextTracksReasons)t.uint32(122).string(n);for(const n of e.disallowInsertingIntoContextTracksReasons)t.uint32(130).string(n);for(const n of e.disallowReorderingInNextTracksReasons)t.uint32(138).string(n);for(const n of e.disallowReorderingInContextTracksReasons)t.uint32(146).string(n);for(const n of e.disallowRemovingFromNextTracksReasons)t.uint32(154).string(n);for(const n of e.disallowRemovingFromContextTracksReasons)t.uint32(162).string(n);for(const n of e.disallowUpdatingContextReasons)t.uint32(170).string(n);return t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[]};for(;n.pos>>3){case 1:i.disallowPausingReasons.push(n.string());break;case 2:i.disallowResumingReasons.push(n.string());break;case 3:i.disallowSeekingReasons.push(n.string());break;case 4:i.disallowPeekingPrevReasons.push(n.string());break;case 5:i.disallowPeekingNextReasons.push(n.string());break;case 6:i.disallowSkippingPrevReasons.push(n.string());break;case 7:i.disallowSkippingNextReasons.push(n.string());break;case 8:i.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:i.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:i.disallowTogglingShuffleReasons.push(n.string());break;case 11:i.disallowSetQueueReasons.push(n.string());break;case 12:i.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:i.disallowTransferringPlaybackReasons.push(n.string());break;case 14:i.disallowRemoteControlReasons.push(n.string());break;case 15:i.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:i.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:i.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:i.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:i.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:i.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:i.disallowUpdatingContextReasons.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({disallowPausingReasons:Array.isArray(null==e?void 0:e.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(null==e?void 0:e.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(null==e?void 0:e.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(null==e?void 0:e.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(null==e?void 0:e.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(null==e?void 0:e.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(null==e?void 0:e.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(null==e?void 0:e.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(null==e?void 0:e.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(null==e?void 0:e.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(null==e?void 0:e.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(null==e?void 0:e.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(null==e?void 0:e.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(null==e?void 0:e.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(null==e?void 0:e.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(null==e?void 0:e.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(null==e?void 0:e.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(null==e?void 0:e.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(null==e?void 0:e.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(null==e?void 0:e.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(null==e?void 0:e.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[]}),toJSON(e){const t={};return e.disallowPausingReasons?t.disallowPausingReasons=e.disallowPausingReasons.map((e=>e)):t.disallowPausingReasons=[],e.disallowResumingReasons?t.disallowResumingReasons=e.disallowResumingReasons.map((e=>e)):t.disallowResumingReasons=[],e.disallowSeekingReasons?t.disallowSeekingReasons=e.disallowSeekingReasons.map((e=>e)):t.disallowSeekingReasons=[],e.disallowPeekingPrevReasons?t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons.map((e=>e)):t.disallowPeekingPrevReasons=[],e.disallowPeekingNextReasons?t.disallowPeekingNextReasons=e.disallowPeekingNextReasons.map((e=>e)):t.disallowPeekingNextReasons=[],e.disallowSkippingPrevReasons?t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons.map((e=>e)):t.disallowSkippingPrevReasons=[],e.disallowSkippingNextReasons?t.disallowSkippingNextReasons=e.disallowSkippingNextReasons.map((e=>e)):t.disallowSkippingNextReasons=[],e.disallowTogglingRepeatContextReasons?t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons.map((e=>e)):t.disallowTogglingRepeatContextReasons=[],e.disallowTogglingRepeatTrackReasons?t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons.map((e=>e)):t.disallowTogglingRepeatTrackReasons=[],e.disallowTogglingShuffleReasons?t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons.map((e=>e)):t.disallowTogglingShuffleReasons=[],e.disallowSetQueueReasons?t.disallowSetQueueReasons=e.disallowSetQueueReasons.map((e=>e)):t.disallowSetQueueReasons=[],e.disallowInterruptingPlaybackReasons?t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons.map((e=>e)):t.disallowInterruptingPlaybackReasons=[],e.disallowTransferringPlaybackReasons?t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons.map((e=>e)):t.disallowTransferringPlaybackReasons=[],e.disallowRemoteControlReasons?t.disallowRemoteControlReasons=e.disallowRemoteControlReasons.map((e=>e)):t.disallowRemoteControlReasons=[],e.disallowInsertingIntoNextTracksReasons?t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons.map((e=>e)):t.disallowInsertingIntoNextTracksReasons=[],e.disallowInsertingIntoContextTracksReasons?t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons.map((e=>e)):t.disallowInsertingIntoContextTracksReasons=[],e.disallowReorderingInNextTracksReasons?t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons.map((e=>e)):t.disallowReorderingInNextTracksReasons=[],e.disallowReorderingInContextTracksReasons?t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons.map((e=>e)):t.disallowReorderingInContextTracksReasons=[],e.disallowRemovingFromNextTracksReasons?t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons.map((e=>e)):t.disallowRemovingFromNextTracksReasons=[],e.disallowRemovingFromContextTracksReasons?t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons.map((e=>e)):t.disallowRemovingFromContextTracksReasons=[],e.disallowUpdatingContextReasons?t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons.map((e=>e)):t.disallowUpdatingContextReasons=[],t},fromPartial(e){var t,n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,g,y,_,b,E;const S={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[]};return S.disallowPausingReasons=(null===(t=e.disallowPausingReasons)||void 0===t?void 0:t.map((e=>e)))||[],S.disallowResumingReasons=(null===(n=e.disallowResumingReasons)||void 0===n?void 0:n.map((e=>e)))||[],S.disallowSeekingReasons=(null===(r=e.disallowSeekingReasons)||void 0===r?void 0:r.map((e=>e)))||[],S.disallowPeekingPrevReasons=(null===(i=e.disallowPeekingPrevReasons)||void 0===i?void 0:i.map((e=>e)))||[],S.disallowPeekingNextReasons=(null===(o=e.disallowPeekingNextReasons)||void 0===o?void 0:o.map((e=>e)))||[],S.disallowSkippingPrevReasons=(null===(a=e.disallowSkippingPrevReasons)||void 0===a?void 0:a.map((e=>e)))||[],S.disallowSkippingNextReasons=(null===(s=e.disallowSkippingNextReasons)||void 0===s?void 0:s.map((e=>e)))||[],S.disallowTogglingRepeatContextReasons=(null===(l=e.disallowTogglingRepeatContextReasons)||void 0===l?void 0:l.map((e=>e)))||[],S.disallowTogglingRepeatTrackReasons=(null===(c=e.disallowTogglingRepeatTrackReasons)||void 0===c?void 0:c.map((e=>e)))||[],S.disallowTogglingShuffleReasons=(null===(u=e.disallowTogglingShuffleReasons)||void 0===u?void 0:u.map((e=>e)))||[],S.disallowSetQueueReasons=(null===(d=e.disallowSetQueueReasons)||void 0===d?void 0:d.map((e=>e)))||[],S.disallowInterruptingPlaybackReasons=(null===(p=e.disallowInterruptingPlaybackReasons)||void 0===p?void 0:p.map((e=>e)))||[],S.disallowTransferringPlaybackReasons=(null===(f=e.disallowTransferringPlaybackReasons)||void 0===f?void 0:f.map((e=>e)))||[],S.disallowRemoteControlReasons=(null===(h=e.disallowRemoteControlReasons)||void 0===h?void 0:h.map((e=>e)))||[],S.disallowInsertingIntoNextTracksReasons=(null===(v=e.disallowInsertingIntoNextTracksReasons)||void 0===v?void 0:v.map((e=>e)))||[],S.disallowInsertingIntoContextTracksReasons=(null===(m=e.disallowInsertingIntoContextTracksReasons)||void 0===m?void 0:m.map((e=>e)))||[],S.disallowReorderingInNextTracksReasons=(null===(g=e.disallowReorderingInNextTracksReasons)||void 0===g?void 0:g.map((e=>e)))||[],S.disallowReorderingInContextTracksReasons=(null===(y=e.disallowReorderingInContextTracksReasons)||void 0===y?void 0:y.map((e=>e)))||[],S.disallowRemovingFromNextTracksReasons=(null===(_=e.disallowRemovingFromNextTracksReasons)||void 0===_?void 0:_.map((e=>e)))||[],S.disallowRemovingFromContextTracksReasons=(null===(b=e.disallowRemovingFromContextTracksReasons)||void 0===b?void 0:b.map((e=>e)))||[],S.disallowUpdatingContextReasons=(null===(E=e.disallowUpdatingContextReasons)||void 0===E?void 0:E.map((e=>e)))||[],S}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},47854:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResumeRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ResumeRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:l(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0};return t.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},88035:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SeekToRequest=t.seekToRequest_RelativeToJSON=t.seekToRequest_RelativeFromJSON=t.SeekToRequest_Relative=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);var l;function c(e){switch(e){case 0:case"BEGINNING":return l.BEGINNING;case 1:case"END":return l.END;case 2:case"CURRENT":return l.CURRENT;default:return l.UNRECOGNIZED}}function u(e){switch(e){case l.BEGINNING:return"BEGINNING";case l.END:return"END";case l.CURRENT:return"CURRENT";default:return"UNKNOWN"}}function d(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.BEGINNING=0]="BEGINNING",e[e.END=1]="END",e[e.CURRENT=2]="CURRENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.SeekToRequest_Relative||(t.SeekToRequest_Relative={})),t.seekToRequest_RelativeFromJSON=c,t.seekToRequest_RelativeToJSON=u,t.SeekToRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),"0"!==e.position&&t.uint32(24).int64(e.position),0!==e.relative&&t.uint32(32).int32(e.relative),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={options:void 0,loggingParams:void 0,position:"0",relative:0};for(;n.pos>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 3:i.position=n.int64().toString();break;case 4:i.relative=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:d(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:d(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,position:d(e.position)?String(e.position):"0",relative:d(e.relative)?c(e.relative):0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.position&&(t.position=e.position),void 0!==e.relative&&(t.relative=u(e.relative)),t},fromPartial(e){var t,n;const r={options:void 0,loggingParams:void 0,position:"0",relative:0};return r.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,r.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,r.position=null!==(t=e.position)&&void 0!==t?t:"0",r.relative=null!==(n=e.relative)&&void 0!==n?n:0,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},44014:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SessionResponse=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.player.esperanto.proto",t.SessionResponse={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:""};for(;n.pos>>3==1)i.sessionId=n.string();else n.skipType(7&e)}return i},fromJSON(e){return{sessionId:(t=e.sessionId,null!=t?String(e.sessionId):"")};var t},toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),t},fromPartial(e){var t;const n={sessionId:""};return n.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},61640:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetOptionsRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(80666),s=n(30620),l=n(64386);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetOptionsRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.repeatingTrack&&a.OptionalBoolean.encode(e.repeatingTrack,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&a.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.shufflingContext&&a.OptionalBoolean.encode(e.shufflingContext,t.uint32(26).fork()).ldelim(),void 0!==e.options&&s.CommandOptions.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.repeatingTrack=a.OptionalBoolean.decode(n,n.uint32());break;case 2:i.repeatingContext=a.OptionalBoolean.decode(n,n.uint32());break;case 3:i.shufflingContext=a.OptionalBoolean.decode(n,n.uint32());break;case 4:i.options=s.CommandOptions.decode(n,n.uint32());break;case 5:i.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({repeatingTrack:c(e.repeatingTrack)?a.OptionalBoolean.fromJSON(e.repeatingTrack):void 0,repeatingContext:c(e.repeatingContext)?a.OptionalBoolean.fromJSON(e.repeatingContext):void 0,shufflingContext:c(e.shufflingContext)?a.OptionalBoolean.fromJSON(e.shufflingContext):void 0,options:c(e.options)?s.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?a.OptionalBoolean.toJSON(e.repeatingTrack):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?a.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?a.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.options&&(t.options=e.options?s.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0};return t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?a.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?a.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?a.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.options=void 0!==e.options&&null!==e.options?s.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},89457:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetQueueRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(13036),s=n(30620),l=n(64386);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetQueueRequest={encode(e,t=o.default.Writer.create()){for(const n of e.nextTracks)a.ProvidedTrack.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.prevTracks)a.ProvidedTrack.encode(n,t.uint32(18).fork()).ldelim();return"0"!==e.queueRevision&&t.uint32(24).uint64(e.queueRevision),void 0!==e.options&&s.CommandOptions.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t},decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={nextTracks:[],prevTracks:[],queueRevision:"0",options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.nextTracks.push(a.ProvidedTrack.decode(n,n.uint32()));break;case 2:i.prevTracks.push(a.ProvidedTrack.decode(n,n.uint32()));break;case 3:i.queueRevision=n.uint64().toString();break;case 4:i.options=s.CommandOptions.decode(n,n.uint32());break;case 5:i.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({nextTracks:Array.isArray(null==e?void 0:e.nextTracks)?e.nextTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[],prevTracks:Array.isArray(null==e?void 0:e.prevTracks)?e.prevTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[],queueRevision:c(e.queueRevision)?String(e.queueRevision):"0",options:c(e.options)?s.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return e.nextTracks?t.nextTracks=e.nextTracks.map((e=>e?a.ProvidedTrack.toJSON(e):void 0)):t.nextTracks=[],e.prevTracks?t.prevTracks=e.prevTracks.map((e=>e?a.ProvidedTrack.toJSON(e):void 0)):t.prevTracks=[],void 0!==e.queueRevision&&(t.queueRevision=e.queueRevision),void 0!==e.options&&(t.options=e.options?s.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t,n,r;const i={nextTracks:[],prevTracks:[],queueRevision:"0",options:void 0,loggingParams:void 0};return i.nextTracks=(null===(t=e.nextTracks)||void 0===t?void 0:t.map((e=>a.ProvidedTrack.fromPartial(e))))||[],i.prevTracks=(null===(n=e.prevTracks)||void 0===n?void 0:n.map((e=>a.ProvidedTrack.fromPartial(e))))||[],i.queueRevision=null!==(r=e.queueRevision)&&void 0!==r?r:"0",i.options=void 0!==e.options&&null!==e.options?s.CommandOptions.fromPartial(e.options):void 0,i.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},17596:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetRepeatingContextRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetRepeatingContextRequest={encode:(e,t=o.default.Writer.create())=>(!0===e.repeatingContext&&t.uint32(8).bool(e.repeatingContext),void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={repeatingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.repeatingContext=n.bool();break;case 2:i.options=a.CommandOptions.decode(n,n.uint32());break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({repeatingContext:!!l(e.repeatingContext)&&Boolean(e.repeatingContext),options:l(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext),void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={repeatingContext:!1,options:void 0,loggingParams:void 0};return n.repeatingContext=null!==(t=e.repeatingContext)&&void 0!==t&&t,n.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},52394:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetRepeatingTrackRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetRepeatingTrackRequest={encode:(e,t=o.default.Writer.create())=>(!0===e.repeatingTrack&&t.uint32(8).bool(e.repeatingTrack),void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={repeatingTrack:!1,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.repeatingTrack=n.bool();break;case 2:i.options=a.CommandOptions.decode(n,n.uint32());break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({repeatingTrack:!!l(e.repeatingTrack)&&Boolean(e.repeatingTrack),options:l(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack),void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={repeatingTrack:!1,options:void 0,loggingParams:void 0};return n.repeatingTrack=null!==(t=e.repeatingTrack)&&void 0!==t&&t,n.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},53397:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetShufflingContextRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetShufflingContextRequest={encode:(e,t=o.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={shufflingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.shufflingContext=n.bool();break;case 2:i.options=a.CommandOptions.decode(n,n.uint32());break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({shufflingContext:!!l(e.shufflingContext)&&Boolean(e.shufflingContext),options:l(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext),void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={shufflingContext:!1,options:void 0,loggingParams:void 0};return n.shufflingContext=null!==(t=e.shufflingContext)&&void 0!==t&&t,n.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},46023:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipNextRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386),l=n(82500);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipNextRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.track&&l.ContextTrack.encode(e.track,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={options:void 0,loggingParams:void 0,track:void 0};for(;n.pos>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 3:i.track=l.ContextTrack.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:c(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,track:c(e.track)?l.ContextTrack.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.track&&(t.track=e.track?l.ContextTrack.toJSON(e.track):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,track:void 0};return t.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t.track=void 0!==e.track&&null!==e.track?l.ContextTrack.fromPartial(e.track):void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},22842:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipPrevRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386),l=n(82500);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipPrevRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),!0===e.allowSeeking&&t.uint32(16).bool(e.allowSeeking),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),void 0!==e.track&&l.ContextTrack.encode(e.track,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};for(;n.pos>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.allowSeeking=n.bool();break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 4:i.track=l.ContextTrack.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:c(e.options)?a.CommandOptions.fromJSON(e.options):void 0,allowSeeking:!!c(e.allowSeeking)&&Boolean(e.allowSeeking),loggingParams:c(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,track:c(e.track)?l.ContextTrack.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.allowSeeking&&(t.allowSeeking=e.allowSeeking),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.track&&(t.track=e.track?l.ContextTrack.toJSON(e.track):void 0),t},fromPartial(e){var t;const n={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};return n.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,n.allowSeeking=null!==(t=e.allowSeeking)&&void 0!==t&&t,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n.track=void 0!==e.track&&null!==e.track?l.ContextTrack.fromPartial(e.track):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},22808:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SkipToTrack=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(80666);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=o.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&a.OptionalInt64.encode(e.pageIndex,t.uint32(18).fork()).ldelim(),""!==e.trackUid&&t.uint32(26).string(e.trackUid),""!==e.trackUri&&t.uint32(34).string(e.trackUri),void 0!==e.trackIndex&&a.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos>>3){case 1:i.pageUrl=n.string();break;case 2:i.pageIndex=a.OptionalInt64.decode(n,n.uint32());break;case 3:i.trackUid=n.string();break;case 4:i.trackUri=n.string();break;case 5:i.trackIndex=a.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({pageUrl:s(e.pageUrl)?String(e.pageUrl):"",pageIndex:s(e.pageIndex)?a.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:s(e.trackUid)?String(e.trackUid):"",trackUri:s(e.trackUri)?String(e.trackUri):"",trackIndex:s(e.trackIndex)?a.OptionalInt64.fromJSON(e.trackIndex):void 0}),toJSON(e){const t={};return void 0!==e.pageUrl&&(t.pageUrl=e.pageUrl),void 0!==e.pageIndex&&(t.pageIndex=e.pageIndex?a.OptionalInt64.toJSON(e.pageIndex):void 0),void 0!==e.trackUid&&(t.trackUid=e.trackUid),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.trackIndex&&(t.trackIndex=e.trackIndex?a.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){var t,n,r;const i={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return i.pageUrl=null!==(t=e.pageUrl)&&void 0!==t?t:"",i.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?a.OptionalInt64.fromPartial(e.pageIndex):void 0,i.trackUid=null!==(n=e.trackUid)&&void 0!==n?n:"",i.trackUri=null!==(r=e.trackUri)&&void 0!==r?r:"",i.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?a.OptionalInt64.fromPartial(e.trackIndex):void 0,i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},21930:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StopRequest=t.stopRequest_ReasonToJSON=t.stopRequest_ReasonFromJSON=t.StopRequest_Reason=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(30620),s=n(64386);var l;function c(e){switch(e){case 0:case"INTERACTIVE":return l.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return l.REMOTE_TRANSFER;case 2:case"SHUTDOWN":return l.SHUTDOWN;default:return l.UNRECOGNIZED}}function u(e){switch(e){case l.INTERACTIVE:return"INTERACTIVE";case l.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case l.SHUTDOWN:return"SHUTDOWN";default:return"UNKNOWN"}}function d(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",function(e){e[e.INTERACTIVE=0]="INTERACTIVE",e[e.REMOTE_TRANSFER=1]="REMOTE_TRANSFER",e[e.SHUTDOWN=2]="SHUTDOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.StopRequest_Reason||(t.StopRequest_Reason={})),t.stopRequest_ReasonFromJSON=c,t.stopRequest_ReasonToJSON=u,t.StopRequest={encode:(e,t=o.default.Writer.create())=>(void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),0!==e.reason&&t.uint32(16).int32(e.reason),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={options:void 0,reason:0,loggingParams:void 0};for(;n.pos>>3){case 1:i.options=a.CommandOptions.decode(n,n.uint32());break;case 2:i.reason=n.int32();break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({options:d(e.options)?a.CommandOptions.fromJSON(e.options):void 0,reason:d(e.reason)?c(e.reason):0,loggingParams:d(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?a.CommandOptions.toJSON(e.options):void 0),void 0!==e.reason&&(t.reason=u(e.reason)),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={options:void 0,reason:0,loggingParams:void 0};return n.options=void 0!==e.options&&null!==e.options?a.CommandOptions.fromPartial(e.options):void 0,n.reason=null!==(t=e.reason)&&void 0!==t?t:0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},25570:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateViewUriRequest=t.UpdateContextTrackRequest=t.UpdateContextPageRequest=t.UpdateContextRequest=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(13344),s=n(64386),l=n(94419),c=n(82500);function u(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.UpdateContextRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.context&&a.Context.encode(e.context,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:"",context:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.sessionId=n.string();break;case 2:i.context=a.Context.decode(n,n.uint32());break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sessionId:u(e.sessionId)?String(e.sessionId):"",context:u(e.context)?a.Context.fromJSON(e.context):void 0,loggingParams:u(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.context&&(t.context=e.context?a.Context.toJSON(e.context):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={sessionId:"",context:void 0,loggingParams:void 0};return n.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",n.context=void 0!==e.context&&null!==e.context?a.Context.fromPartial(e.context):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.UpdateContextPageRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextPage&&l.ContextPage.encode(e.contextPage,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:"",contextPage:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.sessionId=n.string();break;case 2:i.contextPage=l.ContextPage.decode(n,n.uint32());break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sessionId:u(e.sessionId)?String(e.sessionId):"",contextPage:u(e.contextPage)?l.ContextPage.fromJSON(e.contextPage):void 0,loggingParams:u(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.contextPage&&(t.contextPage=e.contextPage?l.ContextPage.toJSON(e.contextPage):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={sessionId:"",contextPage:void 0,loggingParams:void 0};return n.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",n.contextPage=void 0!==e.contextPage&&null!==e.contextPage?l.ContextPage.fromPartial(e.contextPage):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.UpdateContextTrackRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextTrack&&c.ContextTrack.encode(e.contextTrack,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:"",contextTrack:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:i.sessionId=n.string();break;case 2:i.contextTrack=c.ContextTrack.decode(n,n.uint32());break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sessionId:u(e.sessionId)?String(e.sessionId):"",contextTrack:u(e.contextTrack)?c.ContextTrack.fromJSON(e.contextTrack):void 0,loggingParams:u(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.contextTrack&&(t.contextTrack=e.contextTrack?c.ContextTrack.toJSON(e.contextTrack):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t;const n={sessionId:"",contextTrack:void 0,loggingParams:void 0};return n.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",n.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?c.ContextTrack.fromPartial(e.contextTrack):void 0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.UpdateViewUriRequest={encode:(e,t=o.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),""!==e.viewUri&&t.uint32(18).string(e.viewUri),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof o.default.Reader?e:new o.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i={sessionId:"",viewUri:"",loggingParams:void 0};for(;n.pos>>3){case 1:i.sessionId=n.string();break;case 2:i.viewUri=n.string();break;case 3:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sessionId:u(e.sessionId)?String(e.sessionId):"",viewUri:u(e.viewUri)?String(e.viewUri):"",loggingParams:u(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.sessionId&&(t.sessionId=e.sessionId),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?s.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){var t,n;const r={sessionId:"",viewUri:"",loggingParams:void 0};return r.sessionId=null!==(t=e.sessionId)&&void 0!==t?t:"",r.viewUri=null!==(n=e.viewUri)&&void 0!==n?n:"",r.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},29173:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},73933:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.copyrights&&t.uint32(24).bool(e.copyrights),!0===e.covers&&t.uint32(32).bool(e.covers),!0===e.year&&t.uint32(40).bool(e.year),!0===e.numDiscs&&t.uint32(48).bool(e.numDiscs),!0===e.numTracks&&t.uint32(56).bool(e.numTracks),!0===e.playability&&t.uint32(64).bool(e.playability),!0===e.isPremiumOnly&&t.uint32(72).bool(e.isPremiumOnly),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.copyrights=n.bool();break;case 4:i.covers=n.bool();break;case 5:i.year=n.bool();break;case 6:i.numDiscs=n.bool();break;case 7:i.numTracks=n.bool();break;case 8:i.playability=n.bool();break;case 9:i.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=Boolean(e.copyrights):t.copyrights=!1,void 0!==e.covers&&null!==e.covers?t.covers=Boolean(e.covers):t.covers=!1,void 0!==e.year&&null!==e.year?t.year=Boolean(e.year):t.year=!1,void 0!==e.numDiscs&&null!==e.numDiscs?t.numDiscs=Boolean(e.numDiscs):t.numDiscs=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=Boolean(e.numTracks):t.numTracks=!1,void 0!==e.playability&&null!==e.playability?t.playability=Boolean(e.playability):t.playability=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=Boolean(e.isPremiumOnly):t.isPremiumOnly=!1,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.year&&(t.year=e.year),void 0!==e.numDiscs&&(t.numDiscs=e.numDiscs),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.playability&&(t.playability=e.playability),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),t},fromPartial(e){const t=o({},c);return void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=e.copyrights:t.copyrights=!1,void 0!==e.covers&&null!==e.covers?t.covers=e.covers:t.covers=!1,void 0!==e.year&&null!==e.year?t.year=e.year:t.year=!1,void 0!==e.numDiscs&&null!==e.numDiscs?t.numDiscs=e.numDiscs:t.numDiscs=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=e.numTracks:t.numTracks=!1,void 0!==e.playability&&null!==e.playability?t.playability=e.playability:t.playability=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=e.isPremiumOnly:t.isPremiumOnly=!1,t}};const u={collectionLink:!1,numTracksInCollection:!1,complete:!1};t.AlbumCollectionDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.numTracksInCollection&&t.uint32(16).bool(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.collectionLink=n.bool();break;case 2:i.numTracksInCollection=n.bool();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=Boolean(e.collectionLink):t.collectionLink=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=Boolean(e.numTracksInCollection):t.numTracksInCollection=!1,void 0!==e.complete&&null!==e.complete?t.complete=Boolean(e.complete):t.complete=!1,t},toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t=o({},u);return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=e.collectionLink:t.collectionLink=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=e.numTracksInCollection:t.numTracksInCollection=!1,void 0!==e.complete&&null!==e.complete?t.complete=e.complete:t.complete=!1,t}};const d={inferredOffline:!1,offlineState:!1,syncProgress:!1};t.AlbumSyncDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=Boolean(e.inferredOffline):t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=Boolean(e.offlineState):t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t=o({},d);return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=e.inferredOffline:t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},58485:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),!0===e.portraits&&t.uint32(32).bool(e.portraits),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.isVariousArtists=n.bool();break;case 4:i.portraits=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.isVariousArtists&&null!==e.isVariousArtists?t.isVariousArtists=Boolean(e.isVariousArtists):t.isVariousArtists=!1,void 0!==e.portraits&&null!==e.portraits?t.portraits=Boolean(e.portraits):t.portraits=!1,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits),t},fromPartial(e){const t=o({},c);return void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.isVariousArtists&&null!==e.isVariousArtists?t.isVariousArtists=e.isVariousArtists:t.isVariousArtists=!1,void 0!==e.portraits&&null!==e.portraits?t.portraits=e.portraits:t.portraits=!1,t}};const u={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};t.ArtistCollectionDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.collectionLink&&t.uint32(8).bool(e.collectionLink),!0===e.isFollowed&&t.uint32(16).bool(e.isFollowed),!0===e.numTracksInCollection&&t.uint32(24).bool(e.numTracksInCollection),!0===e.numAlbumsInCollection&&t.uint32(32).bool(e.numAlbumsInCollection),!0===e.isBanned&&t.uint32(40).bool(e.isBanned),!0===e.canBan&&t.uint32(48).bool(e.canBan),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.collectionLink=n.bool();break;case 2:i.isFollowed=n.bool();break;case 3:i.numTracksInCollection=n.bool();break;case 4:i.numAlbumsInCollection=n.bool();break;case 5:i.isBanned=n.bool();break;case 6:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=Boolean(e.collectionLink):t.collectionLink=!1,void 0!==e.isFollowed&&null!==e.isFollowed?t.isFollowed=Boolean(e.isFollowed):t.isFollowed=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=Boolean(e.numTracksInCollection):t.numTracksInCollection=!1,void 0!==e.numAlbumsInCollection&&null!==e.numAlbumsInCollection?t.numAlbumsInCollection=Boolean(e.numAlbumsInCollection):t.numAlbumsInCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,t},toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.isFollowed&&(t.isFollowed=e.isFollowed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=e.numTracksInCollection),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=e.numAlbumsInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t=o({},u);return void 0!==e.collectionLink&&null!==e.collectionLink?t.collectionLink=e.collectionLink:t.collectionLink=!1,void 0!==e.isFollowed&&null!==e.isFollowed?t.isFollowed=e.isFollowed:t.isFollowed=!1,void 0!==e.numTracksInCollection&&null!==e.numTracksInCollection?t.numTracksInCollection=e.numTracksInCollection:t.numTracksInCollection=!1,void 0!==e.numAlbumsInCollection&&null!==e.numAlbumsInCollection?t.numAlbumsInCollection=e.numAlbumsInCollection:t.numAlbumsInCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,t}};const d={inferredOffline:!1,offlineState:!1,syncProgress:!1};t.ArtistSyncDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.inferredOffline&&t.uint32(8).bool(e.inferredOffline),!0===e.offlineState&&t.uint32(16).bool(e.offlineState),!0===e.syncProgress&&t.uint32(24).bool(e.syncProgress),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.inferredOffline=n.bool();break;case 2:i.offlineState=n.bool();break;case 3:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=Boolean(e.inferredOffline):t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=Boolean(e.offlineState):t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t=o({},d);return void 0!==e.inferredOffline&&null!==e.inferredOffline?t.inferredOffline=e.inferredOffline:t.inferredOffline=!1,void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},95488:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>3){case 1:i.link=n.bool();break;case 2:i.length=n.bool();break;case 3:i.name=n.bool();break;case 4:i.manifestId=n.bool();break;case 5:i.previewId=n.bool();break;case 6:i.previewManifestId=n.bool();break;case 7:i.description=n.bool();break;case 8:i.publishDate=n.bool();break;case 9:i.covers=n.bool();break;case 10:i.freezeFrames=n.bool();break;case 11:i.language=n.bool();break;case 12:i.available=n.bool();break;case 13:i.mediaTypeEnum=n.bool();break;case 14:i.number=n.bool();break;case 15:i.backgroundable=n.bool();break;case 16:i.isExplicit=n.bool();break;case 17:i.type=n.bool();break;case 18:i.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.posc.extensionKindToJSON(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),t},fromPartial(e){const t=o({},u);if(t.extension=[],void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.manifestId&&null!==e.manifestId?t.manifestId=e.manifestId:t.manifestId=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=e.previewId:t.previewId=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?t.previewManifestId=e.previewManifestId:t.previewManifestId=!1,void 0!==e.description&&null!==e.description?t.description=e.description:t.description=!1,void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=e.publishDate:t.publishDate=!1,void 0!==e.covers&&null!==e.covers?t.covers=e.covers:t.covers=!1,void 0!==e.freezeFrames&&null!==e.freezeFrames?t.freezeFrames=e.freezeFrames:t.freezeFrames=!1,void 0!==e.language&&null!==e.language?t.language=e.language:t.language=!1,void 0!==e.available&&null!==e.available?t.available=e.available:t.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=e.mediaTypeEnum:t.mediaTypeEnum=!1,void 0!==e.number&&null!==e.number?t.number=e.number:t.number=!1,void 0!==e.backgroundable&&null!==e.backgroundable?t.backgroundable=e.backgroundable:t.backgroundable=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.type&&null!==e.type?t.type=e.type:t.type=!1,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(n);return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=e.is19PlusOnly:t.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?t.isBookChapter=e.isBookChapter:t.isBookChapter=!1,t}};const d={isFollowingShow:!1,isInListenLater:!1,isNew:!1};t.EpisodeCollectionDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isInListenLater&&t.uint32(16).bool(e.isInListenLater),!0===e.isNew&&t.uint32(24).bool(e.isNew),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isInListenLater=n.bool();break;case 3:i.isNew=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=Boolean(e.isFollowingShow):t.isFollowingShow=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=Boolean(e.isInListenLater):t.isInListenLater=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=Boolean(e.isNew):t.isNew=!1,t},toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),void 0!==e.isNew&&(t.isNew=e.isNew),t},fromPartial(e){const t=o({},d);return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=e.isFollowingShow:t.isFollowingShow=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=e.isInListenLater:t.isInListenLater=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=e.isNew:t.isNew=!1,t}};const p={offline:!1,syncProgress:!1};t.EpisodeSyncDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.offline&&t.uint32(8).bool(e.offline),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.offline=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.offline&&null!==e.offline?t.offline=Boolean(e.offline):t.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t=o({},p);return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}};const f={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};t.EpisodePlayedStateDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.timeLeft&&t.uint32(8).bool(e.timeLeft),!0===e.isPlayed&&t.uint32(16).bool(e.isPlayed),!0===e.playable&&t.uint32(24).bool(e.playable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.lastPlayedAt&&t.uint32(40).bool(e.lastPlayedAt),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},f);for(;n.pos>>3){case 1:i.timeLeft=n.bool();break;case 2:i.isPlayed=n.bool();break;case 3:i.playable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},f);return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=Boolean(e.timeLeft):t.timeLeft=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=Boolean(e.isPlayed):t.isPlayed=!1,void 0!==e.playable&&null!==e.playable?t.playable=Boolean(e.playable):t.playable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=Boolean(e.playabilityRestriction):t.playabilityRestriction=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=Boolean(e.lastPlayedAt):t.lastPlayedAt=!1,t},toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),t},fromPartial(e){const t=o({},f);return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=e.timeLeft:t.timeLeft=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=e.isPlayed:t.isPlayed=!1,void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=e.lastPlayedAt:t.lastPlayedAt=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},11076:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.rowId&&t.uint32(8).bool(e.rowId),!0===e.id&&t.uint32(16).bool(e.id),!0===e.link&&t.uint32(24).bool(e.link),!0===e.name&&t.uint32(32).bool(e.name),!0===e.folders&&t.uint32(40).bool(e.folders),!0===e.playlists&&t.uint32(48).bool(e.playlists),!0===e.recursiveFolders&&t.uint32(56).bool(e.recursiveFolders),!0===e.recursivePlaylists&&t.uint32(64).bool(e.recursivePlaylists),!0===e.rows&&t.uint32(72).bool(e.rows),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.rowId=n.bool();break;case 2:i.id=n.bool();break;case 3:i.link=n.bool();break;case 4:i.name=n.bool();break;case 5:i.folders=n.bool();break;case 6:i.playlists=n.bool();break;case 7:i.recursiveFolders=n.bool();break;case 8:i.recursivePlaylists=n.bool();break;case 9:i.rows=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.rowId&&null!==e.rowId?t.rowId=Boolean(e.rowId):t.rowId=!1,void 0!==e.id&&null!==e.id?t.id=Boolean(e.id):t.id=!1,void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.folders&&null!==e.folders?t.folders=Boolean(e.folders):t.folders=!1,void 0!==e.playlists&&null!==e.playlists?t.playlists=Boolean(e.playlists):t.playlists=!1,void 0!==e.recursiveFolders&&null!==e.recursiveFolders?t.recursiveFolders=Boolean(e.recursiveFolders):t.recursiveFolders=!1,void 0!==e.recursivePlaylists&&null!==e.recursivePlaylists?t.recursivePlaylists=Boolean(e.recursivePlaylists):t.recursivePlaylists=!1,void 0!==e.rows&&null!==e.rows?t.rows=Boolean(e.rows):t.rows=!1,t},toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.id&&(t.id=e.id),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.folders&&(t.folders=e.folders),void 0!==e.playlists&&(t.playlists=e.playlists),void 0!==e.recursiveFolders&&(t.recursiveFolders=e.recursiveFolders),void 0!==e.recursivePlaylists&&(t.recursivePlaylists=e.recursivePlaylists),void 0!==e.rows&&(t.rows=e.rows),t},fromPartial(e){const t=o({},c);return void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId=!1,void 0!==e.id&&null!==e.id?t.id=e.id:t.id=!1,void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.folders&&null!==e.folders?t.folders=e.folders:t.folders=!1,void 0!==e.playlists&&null!==e.playlists?t.playlists=e.playlists:t.playlists=!1,void 0!==e.recursiveFolders&&null!==e.recursiveFolders?t.recursiveFolders=e.recursiveFolders:t.recursiveFolders=!1,void 0!==e.recursivePlaylists&&null!==e.recursivePlaylists?t.recursivePlaylists=e.recursivePlaylists:t.recursivePlaylists=!1,void 0!==e.rows&&null!==e.rows?t.rows=e.rows:t.rows=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},73979:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.album&&c.AlbumDecorationPolicy.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&u.ArtistDecorationPolicy.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.album=c.AlbumDecorationPolicy.decode(n,n.uint32());break;case 2:i.artist=u.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.album&&null!==e.album?t.album=c.AlbumDecorationPolicy.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=u.ArtistDecorationPolicy.fromJSON(e.artist):t.artist=void 0,t},toJSON(e){const t={};return void 0!==e.album&&(t.album=e.album?c.AlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?u.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t=o({},d);return void 0!==e.album&&null!==e.album?t.album=c.AlbumDecorationPolicy.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=u.ArtistDecorationPolicy.fromPartial(e.artist):t.artist=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},94082:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.insert&&t.uint32(8).bool(e.insert),!0===e.remove&&t.uint32(16).bool(e.remove),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.insert=n.bool();break;case 2:i.remove=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.insert&&null!==e.insert?t.insert=Boolean(e.insert):t.insert=!1,void 0!==e.remove&&null!==e.remove?t.remove=Boolean(e.remove):t.remove=!1,t},toJSON(e){const t={};return void 0!==e.insert&&(t.insert=e.insert),void 0!==e.remove&&(t.remove=e.remove),t},fromPartial(e){const t=o({},d);return void 0!==e.insert&&null!==e.insert?t.insert=e.insert:t.insert=!1,void 0!==e.remove&&null!==e.remove?t.remove=e.remove:t.remove=!1,t}};const p={rowId:!1,link:!1,name:!1,loadState:!1,loaded:!1,collaborative:!1,length:!1,lastModification:!1,totalLength:!1,duration:!1,description:!1,picture:!1,playable:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,canReportAnnotationAbuse:!1,followed:!1,followers:!1,ownedBySelf:!1,offline:!1,syncProgress:!1,published:!1,browsableOffline:!1,formatListType:!1,formatListAttributes:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsTracks:!1,containsEpisodes:!1,containsAudioEpisodes:!1,onlyContainsExplicit:!1,isOnDemandInFree:!1,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,basePermission:!1,userCapabilities:!1,extension:0};t.PlaylistDecorationPolicy={encode(e,n=l.default.Writer.create()){!0===e.rowId&&n.uint32(8).bool(e.rowId),!0===e.link&&n.uint32(16).bool(e.link),!0===e.name&&n.uint32(24).bool(e.name),!0===e.loadState&&n.uint32(32).bool(e.loadState),!0===e.loaded&&n.uint32(40).bool(e.loaded),!0===e.collaborative&&n.uint32(48).bool(e.collaborative),!0===e.length&&n.uint32(56).bool(e.length),!0===e.lastModification&&n.uint32(64).bool(e.lastModification),!0===e.totalLength&&n.uint32(72).bool(e.totalLength),!0===e.duration&&n.uint32(80).bool(e.duration),!0===e.description&&n.uint32(88).bool(e.description),!0===e.picture&&n.uint32(96).bool(e.picture),!0===e.playable&&n.uint32(104).bool(e.playable),!0===e.descriptionFromAnnotate&&n.uint32(112).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(120).bool(e.pictureFromAnnotate),!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.followed&&n.uint32(136).bool(e.followed),!0===e.followers&&n.uint32(144).bool(e.followers),!0===e.ownedBySelf&&n.uint32(152).bool(e.ownedBySelf),!0===e.offline&&n.uint32(160).bool(e.offline),!0===e.syncProgress&&n.uint32(168).bool(e.syncProgress),!0===e.published&&n.uint32(176).bool(e.published),!0===e.browsableOffline&&n.uint32(184).bool(e.browsableOffline),!0===e.formatListType&&n.uint32(192).bool(e.formatListType),!0===e.formatListAttributes&&n.uint32(200).bool(e.formatListAttributes),!0===e.hasExplicitContent&&n.uint32(208).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(216).bool(e.containsSpotifyTracks),!0===e.containsTracks&&n.uint32(224).bool(e.containsTracks),!0===e.containsEpisodes&&n.uint32(232).bool(e.containsEpisodes),!0===e.containsAudioEpisodes&&n.uint32(240).bool(e.containsAudioEpisodes),!0===e.onlyContainsExplicit&&n.uint32(248).bool(e.onlyContainsExplicit),!0===e.isOnDemandInFree&&n.uint32(256).bool(e.isOnDemandInFree),void 0!==e.owner&&c.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&c.UserDecorationPolicy.encode(e.madeFor,n.uint32(274).fork()).ldelim(),void 0!==e.allows&&t.PlaylistAllowsDecorationPolicy.encode(e.allows,n.uint32(282).fork()).ldelim(),!0===e.numberOfEpisodes&&n.uint32(288).bool(e.numberOfEpisodes),!0===e.numberOfTracks&&n.uint32(296).bool(e.numberOfTracks),!0===e.preferLinearPlayback&&n.uint32(304).bool(e.preferLinearPlayback),!0===e.onDemandInFreeReason&&n.uint32(312).bool(e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&c.CollaboratingUsersDecorationPolicy.encode(e.collaboratingUsers,n.uint32(322).fork()).ldelim(),!0===e.basePermission&&n.uint32(328).bool(e.basePermission),!0===e.userCapabilities&&n.uint32(336).bool(e.userCapabilities),n.uint32(346).fork();for(const t of e.extension)n.int32(t);return n.ldelim(),n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},p);for(a.extension=[];r.pos>>3){case 1:a.rowId=r.bool();break;case 2:a.link=r.bool();break;case 3:a.name=r.bool();break;case 4:a.loadState=r.bool();break;case 5:a.loaded=r.bool();break;case 6:a.collaborative=r.bool();break;case 7:a.length=r.bool();break;case 8:a.lastModification=r.bool();break;case 9:a.totalLength=r.bool();break;case 10:a.duration=r.bool();break;case 11:a.description=r.bool();break;case 12:a.picture=r.bool();break;case 13:a.playable=r.bool();break;case 14:a.descriptionFromAnnotate=r.bool();break;case 15:a.pictureFromAnnotate=r.bool();break;case 16:a.canReportAnnotationAbuse=r.bool();break;case 17:a.followed=r.bool();break;case 18:a.followers=r.bool();break;case 19:a.ownedBySelf=r.bool();break;case 20:a.offline=r.bool();break;case 21:a.syncProgress=r.bool();break;case 22:a.published=r.bool();break;case 23:a.browsableOffline=r.bool();break;case 24:a.formatListType=r.bool();break;case 25:a.formatListAttributes=r.bool();break;case 26:a.hasExplicitContent=r.bool();break;case 27:a.containsSpotifyTracks=r.bool();break;case 28:a.containsTracks=r.bool();break;case 29:a.containsEpisodes=r.bool();break;case 30:a.containsAudioEpisodes=r.bool();break;case 31:a.onlyContainsExplicit=r.bool();break;case 32:a.isOnDemandInFree=r.bool();break;case 33:a.owner=c.UserDecorationPolicy.decode(r,r.uint32());break;case 34:a.madeFor=c.UserDecorationPolicy.decode(r,r.uint32());break;case 35:a.allows=t.PlaylistAllowsDecorationPolicy.decode(r,r.uint32());break;case 36:a.numberOfEpisodes=r.bool();break;case 37:a.numberOfTracks=r.bool();break;case 38:a.preferLinearPlayback=r.bool();break;case 39:a.onDemandInFreeReason=r.bool();break;case 40:a.collaboratingUsers=c.CollaboratingUsersDecorationPolicy.decode(r,r.uint32());break;case 41:a.basePermission=r.bool();break;case 42:a.userCapabilities=r.bool();break;case 43:if(2==(7&e)){const e=r.uint32()+r.pos;for(;r.posu.extensionKindToJSON(e))):n.extension=[],n},fromPartial(e){const n=o({},p);if(n.extension=[],void 0!==e.rowId&&null!==e.rowId?n.rowId=e.rowId:n.rowId=!1,void 0!==e.link&&null!==e.link?n.link=e.link:n.link=!1,void 0!==e.name&&null!==e.name?n.name=e.name:n.name=!1,void 0!==e.loadState&&null!==e.loadState?n.loadState=e.loadState:n.loadState=!1,void 0!==e.loaded&&null!==e.loaded?n.loaded=e.loaded:n.loaded=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=e.collaborative:n.collaborative=!1,void 0!==e.length&&null!==e.length?n.length=e.length:n.length=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=e.lastModification:n.lastModification=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=e.totalLength:n.totalLength=!1,void 0!==e.duration&&null!==e.duration?n.duration=e.duration:n.duration=!1,void 0!==e.description&&null!==e.description?n.description=e.description:n.description=!1,void 0!==e.picture&&null!==e.picture?n.picture=e.picture:n.picture=!1,void 0!==e.playable&&null!==e.playable?n.playable=e.playable:n.playable=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=e.descriptionFromAnnotate:n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=e.pictureFromAnnotate:n.pictureFromAnnotate=!1,void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=e.canReportAnnotationAbuse:n.canReportAnnotationAbuse=!1,void 0!==e.followed&&null!==e.followed?n.followed=e.followed:n.followed=!1,void 0!==e.followers&&null!==e.followers?n.followers=e.followers:n.followers=!1,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=e.ownedBySelf:n.ownedBySelf=!1,void 0!==e.offline&&null!==e.offline?n.offline=e.offline:n.offline=!1,void 0!==e.syncProgress&&null!==e.syncProgress?n.syncProgress=e.syncProgress:n.syncProgress=!1,void 0!==e.published&&null!==e.published?n.published=e.published:n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=e.browsableOffline:n.browsableOffline=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=e.formatListType:n.formatListType=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?n.formatListAttributes=e.formatListAttributes:n.formatListAttributes=!1,void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=e.hasExplicitContent:n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=e.containsSpotifyTracks:n.containsSpotifyTracks=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=e.containsTracks:n.containsTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=e.containsEpisodes:n.containsEpisodes=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=e.containsAudioEpisodes:n.containsAudioEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=e.onlyContainsExplicit:n.onlyContainsExplicit=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=e.isOnDemandInFree:n.isOnDemandInFree=!1,void 0!==e.owner&&null!==e.owner?n.owner=c.UserDecorationPolicy.fromPartial(e.owner):n.owner=void 0,void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=c.UserDecorationPolicy.fromPartial(e.madeFor):n.madeFor=void 0,void 0!==e.allows&&null!==e.allows?n.allows=t.PlaylistAllowsDecorationPolicy.fromPartial(e.allows):n.allows=void 0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=e.numberOfEpisodes:n.numberOfEpisodes=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=e.numberOfTracks:n.numberOfTracks=!1,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=e.preferLinearPlayback:n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=e.onDemandInFreeReason:n.onDemandInFreeReason=!1,void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?n.collaboratingUsers=c.CollaboratingUsersDecorationPolicy.fromPartial(e.collaboratingUsers):n.collaboratingUsers=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=e.basePermission:n.basePermission=!1,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=e.userCapabilities:n.userCapabilities=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(t);return n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},66982:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.episode&&c.EpisodeDecorationPolicy.encode(e.episode,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.formatListAttributes&&t.uint32(32).bool(e.formatListAttributes),void 0!==e.collection&&c.EpisodeCollectionDecorationPolicy.encode(e.collection,t.uint32(42).fork()).ldelim(),void 0!==e.sync&&c.EpisodeSyncDecorationPolicy.encode(e.sync,t.uint32(50).fork()).ldelim(),void 0!==e.playedState&&c.EpisodePlayedStateDecorationPolicy.encode(e.playedState,t.uint32(58).fork()).ldelim(),void 0!==e.addedBy&&u.UserDecorationPolicy.encode(e.addedBy,t.uint32(66).fork()).ldelim(),void 0!==e.show&&d.ShowDecorationPolicy.encode(e.show,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.episode=c.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:i.rowId=n.bool();break;case 3:i.addTime=n.bool();break;case 4:i.formatListAttributes=n.bool();break;case 5:i.collection=c.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 6:i.sync=c.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 7:i.playedState=c.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 8:i.addedBy=u.UserDecorationPolicy.decode(n,n.uint32());break;case 9:i.show=d.ShowDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.episode&&null!==e.episode?t.episode=c.EpisodeDecorationPolicy.fromJSON(e.episode):t.episode=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=Boolean(e.rowId):t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=Boolean(e.formatListAttributes):t.formatListAttributes=!1,void 0!==e.collection&&null!==e.collection?t.collection=c.EpisodeCollectionDecorationPolicy.fromJSON(e.collection):t.collection=void 0,void 0!==e.sync&&null!==e.sync?t.sync=c.EpisodeSyncDecorationPolicy.fromJSON(e.sync):t.sync=void 0,void 0!==e.playedState&&null!==e.playedState?t.playedState=c.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedState):t.playedState=void 0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=u.UserDecorationPolicy.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.show&&null!==e.show?t.show=d.ShowDecorationPolicy.fromJSON(e.show):t.show=void 0,t},toJSON(e){const t={};return void 0!==e.episode&&(t.episode=e.episode?c.EpisodeDecorationPolicy.toJSON(e.episode):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.collection&&(t.collection=e.collection?c.EpisodeCollectionDecorationPolicy.toJSON(e.collection):void 0),void 0!==e.sync&&(t.sync=e.sync?c.EpisodeSyncDecorationPolicy.toJSON(e.sync):void 0),void 0!==e.playedState&&(t.playedState=e.playedState?c.EpisodePlayedStateDecorationPolicy.toJSON(e.playedState):void 0),void 0!==e.addedBy&&(t.addedBy=e.addedBy?u.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.show&&(t.show=e.show?d.ShowDecorationPolicy.toJSON(e.show):void 0),t},fromPartial(e){const t=o({},p);return void 0!==e.episode&&null!==e.episode?t.episode=c.EpisodeDecorationPolicy.fromPartial(e.episode):t.episode=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=e.formatListAttributes:t.formatListAttributes=!1,void 0!==e.collection&&null!==e.collection?t.collection=c.EpisodeCollectionDecorationPolicy.fromPartial(e.collection):t.collection=void 0,void 0!==e.sync&&null!==e.sync?t.sync=c.EpisodeSyncDecorationPolicy.fromPartial(e.sync):t.sync=void 0,void 0!==e.playedState&&null!==e.playedState?t.playedState=c.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedState):t.playedState=void 0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=u.UserDecorationPolicy.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.show&&null!==e.show?t.show=d.ShowDecorationPolicy.fromPartial(e.show):t.show=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},66007:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.playlist&&c.PlaylistDecorationPolicy.encode(e.playlist,t.uint32(10).fork()).ldelim(),void 0!==e.track&&u.PlaylistTrackDecorationPolicy.encode(e.track,t.uint32(18).fork()).ldelim(),void 0!==e.episode&&d.PlaylistEpisodeDecorationPolicy.encode(e.episode,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.playlist=c.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 2:i.track=u.PlaylistTrackDecorationPolicy.decode(n,n.uint32());break;case 3:i.episode=d.PlaylistEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.playlist&&null!==e.playlist?t.playlist=c.PlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.track&&null!==e.track?t.track=u.PlaylistTrackDecorationPolicy.fromJSON(e.track):t.track=void 0,void 0!==e.episode&&null!==e.episode?t.episode=d.PlaylistEpisodeDecorationPolicy.fromJSON(e.episode):t.episode=void 0,t},toJSON(e){const t={};return void 0!==e.playlist&&(t.playlist=e.playlist?c.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.track&&(t.track=e.track?u.PlaylistTrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.episode&&(t.episode=e.episode?d.PlaylistEpisodeDecorationPolicy.toJSON(e.episode):void 0),t},fromPartial(e){const t=o({},p);return void 0!==e.playlist&&null!==e.playlist?t.playlist=c.PlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.track&&null!==e.track?t.track=u.PlaylistTrackDecorationPolicy.fromPartial(e.track):t.track=void 0,void 0!==e.episode&&null!==e.episode?t.episode=d.PlaylistEpisodeDecorationPolicy.fromPartial(e.episode):t.episode=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},3151:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.track&&c.TrackDecorationPolicy.encode(e.track,t.uint32(10).fork()).ldelim(),!0===e.rowId&&t.uint32(16).bool(e.rowId),!0===e.addTime&&t.uint32(24).bool(e.addTime),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.canAddToCollection&&t.uint32(40).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(48).bool(e.isBanned),!0===e.canBan&&t.uint32(56).bool(e.canBan),!0===e.localFile&&t.uint32(64).bool(e.localFile),!0===e.offline&&t.uint32(72).bool(e.offline),!0===e.formatListAttributes&&t.uint32(80).bool(e.formatListAttributes),!0===e.displayCovers&&t.uint32(88).bool(e.displayCovers),void 0!==e.addedBy&&u.UserDecorationPolicy.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&d.PlaylistAlbumDecorationPolicy.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&p.ArtistDecorationPolicy.encode(e.artist,t.uint32(114).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},f);for(;n.pos>>3){case 1:i.track=c.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.rowId=n.bool();break;case 3:i.addTime=n.bool();break;case 4:i.inCollection=n.bool();break;case 5:i.canAddToCollection=n.bool();break;case 6:i.isBanned=n.bool();break;case 7:i.canBan=n.bool();break;case 8:i.localFile=n.bool();break;case 9:i.offline=n.bool();break;case 10:i.formatListAttributes=n.bool();break;case 11:i.displayCovers=n.bool();break;case 12:i.addedBy=u.UserDecorationPolicy.decode(n,n.uint32());break;case 13:i.album=d.PlaylistAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:i.artist=p.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},f);return void 0!==e.track&&null!==e.track?t.track=c.TrackDecorationPolicy.fromJSON(e.track):t.track=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=Boolean(e.rowId):t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.inCollection&&null!==e.inCollection?t.inCollection=Boolean(e.inCollection):t.inCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=Boolean(e.canAddToCollection):t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,void 0!==e.localFile&&null!==e.localFile?t.localFile=Boolean(e.localFile):t.localFile=!1,void 0!==e.offline&&null!==e.offline?t.offline=Boolean(e.offline):t.offline=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=Boolean(e.formatListAttributes):t.formatListAttributes=!1,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=Boolean(e.displayCovers):t.displayCovers=!1,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=u.UserDecorationPolicy.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.album&&null!==e.album?t.album=d.PlaylistAlbumDecorationPolicy.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=p.ArtistDecorationPolicy.fromJSON(e.artist):t.artist=void 0,t},toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?c.TrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),void 0!==e.localFile&&(t.localFile=e.localFile),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.formatListAttributes&&(t.formatListAttributes=e.formatListAttributes),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers),void 0!==e.addedBy&&(t.addedBy=e.addedBy?u.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.album&&(t.album=e.album?d.PlaylistAlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?p.ArtistDecorationPolicy.toJSON(e.artist):void 0),t},fromPartial(e){const t=o({},f);return void 0!==e.track&&null!==e.track?t.track=c.TrackDecorationPolicy.fromPartial(e.track):t.track=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId=!1,void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.inCollection&&null!==e.inCollection?t.inCollection=e.inCollection:t.inCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=e.canAddToCollection:t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,void 0!==e.localFile&&null!==e.localFile?t.localFile=e.localFile:t.localFile=!1,void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline=!1,void 0!==e.formatListAttributes&&null!==e.formatListAttributes?t.formatListAttributes=e.formatListAttributes:t.formatListAttributes=!1,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=e.displayCovers:t.displayCovers=!1,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=u.UserDecorationPolicy.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.album&&null!==e.album?t.album=d.PlaylistAlbumDecorationPolicy.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=p.ArtistDecorationPolicy.fromPartial(e.artist):t.artist=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},49816:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.folder&&c.FolderDecorationPolicy.encode(e.folder,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.addTime=n.bool();break;case 2:i.folder=c.FolderDecorationPolicy.decode(n,n.uint32());break;case 3:i.groupLabel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.folder&&null!==e.folder?t.folder=c.FolderDecorationPolicy.fromJSON(e.folder):t.folder=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=Boolean(e.groupLabel):t.groupLabel=!1,t},toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.folder&&(t.folder=e.folder?c.FolderDecorationPolicy.toJSON(e.folder):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t=o({},u);return void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.folder&&null!==e.folder?t.folder=c.FolderDecorationPolicy.fromPartial(e.folder):t.folder=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},40638:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.playlist&&c.PlaylistDecorationPolicy.encode(e.playlist,t.uint32(18).fork()).ldelim(),!0===e.groupLabel&&t.uint32(24).bool(e.groupLabel),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.addTime=n.bool();break;case 2:i.playlist=c.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 3:i.groupLabel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.addTime&&null!==e.addTime?t.addTime=Boolean(e.addTime):t.addTime=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=c.PlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=Boolean(e.groupLabel):t.groupLabel=!1,t},toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.playlist&&(t.playlist=e.playlist?c.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t=o({},u);return void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=c.PlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},83845:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.unfilteredLength&&t.uint32(8).bool(e.unfilteredLength),!0===e.unrangedLength&&t.uint32(16).bool(e.unrangedLength),!0===e.isLoadingContents&&t.uint32(24).bool(e.isLoadingContents),void 0!==e.playlist&&c.RootlistPlaylistDecorationPolicy.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.folder&&u.RootlistFolderDecorationPolicy.encode(e.folder,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.unfilteredLength=n.bool();break;case 2:i.unrangedLength=n.bool();break;case 3:i.isLoadingContents=n.bool();break;case 4:i.playlist=c.RootlistPlaylistDecorationPolicy.decode(n,n.uint32());break;case 5:i.folder=u.RootlistFolderDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=Boolean(e.unfilteredLength):t.unfilteredLength=!1,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=Boolean(e.unrangedLength):t.unrangedLength=!1,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?t.isLoadingContents=Boolean(e.isLoadingContents):t.isLoadingContents=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=c.RootlistPlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.folder&&null!==e.folder?t.folder=u.RootlistFolderDecorationPolicy.fromJSON(e.folder):t.folder=void 0,t},toJSON(e){const t={};return void 0!==e.unfilteredLength&&(t.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(t.unrangedLength=e.unrangedLength),void 0!==e.isLoadingContents&&(t.isLoadingContents=e.isLoadingContents),void 0!==e.playlist&&(t.playlist=e.playlist?c.RootlistPlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.folder&&(t.folder=e.folder?u.RootlistFolderDecorationPolicy.toJSON(e.folder):void 0),t},fromPartial(e){const t=o({},d);return void 0!==e.unfilteredLength&&null!==e.unfilteredLength?t.unfilteredLength=e.unfilteredLength:t.unfilteredLength=!1,void 0!==e.unrangedLength&&null!==e.unrangedLength?t.unrangedLength=e.unrangedLength:t.unrangedLength=!1,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?t.isLoadingContents=e.isLoadingContents:t.isLoadingContents=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=c.RootlistPlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.folder&&null!==e.folder?t.folder=u.RootlistFolderDecorationPolicy.fromPartial(e.folder):t.folder=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},3854:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>3){case 1:i.link=n.bool();break;case 2:i.name=n.bool();break;case 3:i.description=n.bool();break;case 4:i.popularity=n.bool();break;case 5:i.publisher=n.bool();break;case 6:i.language=n.bool();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=n.bool();break;case 9:i.numEpisodes=n.bool();break;case 10:i.consumptionOrder=n.bool();break;case 11:i.mediaTypeEnum=n.bool();break;case 12:i.copyrights=n.bool();break;case 13:i.trailerUri=n.bool();break;case 14:i.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.posc.extensionKindToJSON(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),t},fromPartial(e){const t=o({},u);if(t.extension=[],void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.description&&null!==e.description?t.description=e.description:t.description=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=e.popularity:t.popularity=!1,void 0!==e.publisher&&null!==e.publisher?t.publisher=e.publisher:t.publisher=!1,void 0!==e.language&&null!==e.language?t.language=e.language:t.language=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.covers&&null!==e.covers?t.covers=e.covers:t.covers=!1,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=e.numEpisodes:t.numEpisodes=!1,void 0!==e.consumptionOrder&&null!==e.consumptionOrder?t.consumptionOrder=e.consumptionOrder:t.consumptionOrder=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?t.mediaTypeEnum=e.mediaTypeEnum:t.mediaTypeEnum=!1,void 0!==e.copyrights&&null!==e.copyrights?t.copyrights=e.copyrights:t.copyrights=!1,void 0!==e.trailerUri&&null!==e.trailerUri?t.trailerUri=e.trailerUri:t.trailerUri=!1,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const n of e.extension)t.extension.push(n);return void 0!==e.isBook&&null!==e.isBook?t.isBook=e.isBook:t.isBook=!1,t}};const d={latestPlayedEpisodeLink:!1};t.ShowPlayedStateDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3==1)i.latestPlayedEpisodeLink=n.bool();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},d);return void 0!==e.latestPlayedEpisodeLink&&null!==e.latestPlayedEpisodeLink?t.latestPlayedEpisodeLink=Boolean(e.latestPlayedEpisodeLink):t.latestPlayedEpisodeLink=!1,t},toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),t},fromPartial(e){const t=o({},d);return void 0!==e.latestPlayedEpisodeLink&&null!==e.latestPlayedEpisodeLink?t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink:t.latestPlayedEpisodeLink=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},22110:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.hasLyrics&&t.uint32(8).bool(e.hasLyrics),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.length&&t.uint32(32).bool(e.length),!0===e.playable&&t.uint32(40).bool(e.playable),!0===e.isAvailableInMetadataCatalogue&&t.uint32(48).bool(e.isAvailableInMetadataCatalogue),!0===e.locallyPlayable&&t.uint32(56).bool(e.locallyPlayable),!0===e.playableLocalTrack&&t.uint32(64).bool(e.playableLocalTrack),!0===e.discNumber&&t.uint32(72).bool(e.discNumber),!0===e.trackNumber&&t.uint32(80).bool(e.trackNumber),!0===e.isExplicit&&t.uint32(88).bool(e.isExplicit),!0===e.previewId&&t.uint32(96).bool(e.previewId),!0===e.isLocal&&t.uint32(104).bool(e.isLocal),!0===e.isPremiumOnly&&t.uint32(112).bool(e.isPremiumOnly),!0===e.playableTrackLink&&t.uint32(120).bool(e.playableTrackLink),!0===e.popularity&&t.uint32(128).bool(e.popularity),!0===e.is19PlusOnly&&t.uint32(136).bool(e.is19PlusOnly),!0===e.trackDescriptors&&t.uint32(144).bool(e.trackDescriptors),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.hasLyrics=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.length=n.bool();break;case 5:i.playable=n.bool();break;case 6:i.isAvailableInMetadataCatalogue=n.bool();break;case 7:i.locallyPlayable=n.bool();break;case 8:i.playableLocalTrack=n.bool();break;case 9:i.discNumber=n.bool();break;case 10:i.trackNumber=n.bool();break;case 11:i.isExplicit=n.bool();break;case 12:i.previewId=n.bool();break;case 13:i.isLocal=n.bool();break;case 14:i.isPremiumOnly=n.bool();break;case 15:i.playableTrackLink=n.bool();break;case 16:i.popularity=n.bool();break;case 17:i.is19PlusOnly=n.bool();break;case 18:i.trackDescriptors=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.hasLyrics&&null!==e.hasLyrics?t.hasLyrics=Boolean(e.hasLyrics):t.hasLyrics=!1,void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.length&&null!==e.length?t.length=Boolean(e.length):t.length=!1,void 0!==e.playable&&null!==e.playable?t.playable=Boolean(e.playable):t.playable=!1,void 0!==e.isAvailableInMetadataCatalogue&&null!==e.isAvailableInMetadataCatalogue?t.isAvailableInMetadataCatalogue=Boolean(e.isAvailableInMetadataCatalogue):t.isAvailableInMetadataCatalogue=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?t.locallyPlayable=Boolean(e.locallyPlayable):t.locallyPlayable=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?t.playableLocalTrack=Boolean(e.playableLocalTrack):t.playableLocalTrack=!1,void 0!==e.discNumber&&null!==e.discNumber?t.discNumber=Boolean(e.discNumber):t.discNumber=!1,void 0!==e.trackNumber&&null!==e.trackNumber?t.trackNumber=Boolean(e.trackNumber):t.trackNumber=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=Boolean(e.isExplicit):t.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=Boolean(e.previewId):t.previewId=!1,void 0!==e.isLocal&&null!==e.isLocal?t.isLocal=Boolean(e.isLocal):t.isLocal=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=Boolean(e.isPremiumOnly):t.isPremiumOnly=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?t.playableTrackLink=Boolean(e.playableTrackLink):t.playableTrackLink=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=Boolean(e.popularity):t.popularity=!1,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=Boolean(e.is19PlusOnly):t.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors?t.trackDescriptors=Boolean(e.trackDescriptors):t.trackDescriptors=!1,t},toJSON(e){const t={};return void 0!==e.hasLyrics&&(t.hasLyrics=e.hasLyrics),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=e.length),void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isAvailableInMetadataCatalogue&&(t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue),void 0!==e.locallyPlayable&&(t.locallyPlayable=e.locallyPlayable),void 0!==e.playableLocalTrack&&(t.playableLocalTrack=e.playableLocalTrack),void 0!==e.discNumber&&(t.discNumber=e.discNumber),void 0!==e.trackNumber&&(t.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.isPremiumOnly&&(t.isPremiumOnly=e.isPremiumOnly),void 0!==e.playableTrackLink&&(t.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(t.popularity=e.popularity),void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.trackDescriptors&&(t.trackDescriptors=e.trackDescriptors),t},fromPartial(e){const t=o({},c);return void 0!==e.hasLyrics&&null!==e.hasLyrics?t.hasLyrics=e.hasLyrics:t.hasLyrics=!1,void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=!1,void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.isAvailableInMetadataCatalogue&&null!==e.isAvailableInMetadataCatalogue?t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue:t.isAvailableInMetadataCatalogue=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?t.locallyPlayable=e.locallyPlayable:t.locallyPlayable=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?t.playableLocalTrack=e.playableLocalTrack:t.playableLocalTrack=!1,void 0!==e.discNumber&&null!==e.discNumber?t.discNumber=e.discNumber:t.discNumber=!1,void 0!==e.trackNumber&&null!==e.trackNumber?t.trackNumber=e.trackNumber:t.trackNumber=!1,void 0!==e.isExplicit&&null!==e.isExplicit?t.isExplicit=e.isExplicit:t.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?t.previewId=e.previewId:t.previewId=!1,void 0!==e.isLocal&&null!==e.isLocal?t.isLocal=e.isLocal:t.isLocal=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?t.isPremiumOnly=e.isPremiumOnly:t.isPremiumOnly=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?t.playableTrackLink=e.playableTrackLink:t.playableTrackLink=!1,void 0!==e.popularity&&null!==e.popularity?t.popularity=e.popularity:t.popularity=!1,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?t.is19PlusOnly=e.is19PlusOnly:t.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors?t.trackDescriptors=e.trackDescriptors:t.trackDescriptors=!1,t}};const u={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};t.TrackPlayedStateDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.playable&&t.uint32(8).bool(e.playable),!0===e.isCurrentlyPlayable&&t.uint32(16).bool(e.isCurrentlyPlayable),!0===e.playabilityRestriction&&t.uint32(24).bool(e.playabilityRestriction),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.playable=n.bool();break;case 2:i.isCurrentlyPlayable=n.bool();break;case 3:i.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.playable&&null!==e.playable?t.playable=Boolean(e.playable):t.playable=!1,void 0!==e.isCurrentlyPlayable&&null!==e.isCurrentlyPlayable?t.isCurrentlyPlayable=Boolean(e.isCurrentlyPlayable):t.isCurrentlyPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=Boolean(e.playabilityRestriction):t.playabilityRestriction=!1,t},toJSON(e){const t={};return void 0!==e.playable&&(t.playable=e.playable),void 0!==e.isCurrentlyPlayable&&(t.isCurrentlyPlayable=e.isCurrentlyPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),t},fromPartial(e){const t=o({},u);return void 0!==e.playable&&null!==e.playable?t.playable=e.playable:t.playable=!1,void 0!==e.isCurrentlyPlayable&&null!==e.isCurrentlyPlayable?t.isCurrentlyPlayable=e.isCurrentlyPlayable:t.isCurrentlyPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=!1,t}};const d={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};t.TrackCollectionDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=Boolean(e.isInCollection):t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=Boolean(e.canAddToCollection):t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t=o({},d);return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=e.isInCollection:t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=e.canAddToCollection:t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,t}};const p={offlineState:!1,syncProgress:!1};t.TrackSyncDecorationPolicy={encode:(e,t=l.default.Writer.create())=>(!0===e.offlineState&&t.uint32(8).bool(e.offlineState),!0===e.syncProgress&&t.uint32(16).bool(e.syncProgress),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.offlineState=n.bool();break;case 2:i.syncProgress=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=Boolean(e.offlineState):t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Boolean(e.syncProgress):t.syncProgress=!1,t},toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t=o({},p);return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState=!1,void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},76334:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.username&&t.uint32(8).bool(e.username),!0===e.link&&t.uint32(16).bool(e.link),!0===e.name&&t.uint32(24).bool(e.name),!0===e.image&&t.uint32(32).bool(e.image),!0===e.thumbnail&&t.uint32(40).bool(e.thumbnail),!0===e.color&&t.uint32(48).bool(e.color),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.username=n.bool();break;case 2:i.link=n.bool();break;case 3:i.name=n.bool();break;case 4:i.image=n.bool();break;case 5:i.thumbnail=n.bool();break;case 6:i.color=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.username&&null!==e.username?t.username=Boolean(e.username):t.username=!1,void 0!==e.link&&null!==e.link?t.link=Boolean(e.link):t.link=!1,void 0!==e.name&&null!==e.name?t.name=Boolean(e.name):t.name=!1,void 0!==e.image&&null!==e.image?t.image=Boolean(e.image):t.image=!1,void 0!==e.thumbnail&&null!==e.thumbnail?t.thumbnail=Boolean(e.thumbnail):t.thumbnail=!1,void 0!==e.color&&null!==e.color?t.color=Boolean(e.color):t.color=!1,t},toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.image&&(t.image=e.image),void 0!==e.thumbnail&&(t.thumbnail=e.thumbnail),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t=o({},c);return void 0!==e.username&&null!==e.username?t.username=e.username:t.username=!1,void 0!==e.link&&null!==e.link?t.link=e.link:t.link=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name=!1,void 0!==e.image&&null!==e.image?t.image=e.image:t.image=!1,void 0!==e.thumbnail&&null!==e.thumbnail?t.thumbnail=e.thumbnail:t.thumbnail=!1,void 0!==e.color&&null!==e.color?t.color=e.color:t.color=!1,t}};const u={numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};t.CollaboratorPolicy={encode:(e,n=l.default.Writer.create())=>(void 0!==e.user&&t.UserDecorationPolicy.encode(e.user,n.uint32(10).fork()).ldelim(),!0===e.numberOfItems&&n.uint32(16).bool(e.numberOfItems),!0===e.numberOfTracks&&n.uint32(24).bool(e.numberOfTracks),!0===e.numberOfEpisodes&&n.uint32(32).bool(e.numberOfEpisodes),!0===e.isOwner&&n.uint32(40).bool(e.isOwner),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},u);for(;r.pos>>3){case 1:a.user=t.UserDecorationPolicy.decode(r,r.uint32());break;case 2:a.numberOfItems=r.bool();break;case 3:a.numberOfTracks=r.bool();break;case 4:a.numberOfEpisodes=r.bool();break;case 5:a.isOwner=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},u);return void 0!==e.user&&null!==e.user?n.user=t.UserDecorationPolicy.fromJSON(e.user):n.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?n.numberOfItems=Boolean(e.numberOfItems):n.numberOfItems=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=Boolean(e.numberOfTracks):n.numberOfTracks=!1,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=Boolean(e.numberOfEpisodes):n.numberOfEpisodes=!1,void 0!==e.isOwner&&null!==e.isOwner?n.isOwner=Boolean(e.isOwner):n.isOwner=!1,n},toJSON(e){const n={};return void 0!==e.user&&(n.user=e.user?t.UserDecorationPolicy.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(n.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(n.isOwner=e.isOwner),n},fromPartial(e){const n=o({},u);return void 0!==e.user&&null!==e.user?n.user=t.UserDecorationPolicy.fromPartial(e.user):n.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?n.numberOfItems=e.numberOfItems:n.numberOfItems=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=e.numberOfTracks:n.numberOfTracks=!1,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=e.numberOfEpisodes:n.numberOfEpisodes=!1,void 0!==e.isOwner&&null!==e.isOwner?n.isOwner=e.isOwner:n.isOwner=!1,n}};const d={count:!1,limit:0};t.CollaboratingUsersDecorationPolicy={encode:(e,n=l.default.Writer.create())=>(!0===e.count&&n.uint32(8).bool(e.count),0!==e.limit&&n.uint32(16).int32(e.limit),void 0!==e.collaborator&&t.CollaboratorPolicy.encode(e.collaborator,n.uint32(26).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},d);for(;r.pos>>3){case 1:a.count=r.bool();break;case 2:a.limit=r.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},d);return void 0!==e.count&&null!==e.count?n.count=Boolean(e.count):n.count=!1,void 0!==e.limit&&null!==e.limit?n.limit=Number(e.limit):n.limit=0,void 0!==e.collaborator&&null!==e.collaborator?n.collaborator=t.CollaboratorPolicy.fromJSON(e.collaborator):n.collaborator=void 0,n},toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),void 0!==e.limit&&(n.limit=e.limit),void 0!==e.collaborator&&(n.collaborator=e.collaborator?t.CollaboratorPolicy.toJSON(e.collaborator):void 0),n},fromPartial(e){const n=o({},d);return void 0!==e.count&&null!==e.count?n.count=e.count:n.count=!1,void 0!==e.limit&&null!==e.limit?n.limit=e.limit:n.limit=0,void 0!==e.collaborator&&null!==e.collaborator?n.collaborator=t.CollaboratorPolicy.fromPartial(e.collaborator):n.collaborator=void 0,n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},78849:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.isFollowingShow&&t.uint32(8).bool(e.isFollowingShow),!0===e.isNew&&t.uint32(16).bool(e.isNew),!0===e.isInListenLater&&t.uint32(24).bool(e.isInListenLater),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.isFollowingShow=n.bool();break;case 2:i.isNew=n.bool();break;case 3:i.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=Boolean(e.isFollowingShow):t.isFollowingShow=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=Boolean(e.isNew):t.isNew=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=Boolean(e.isInListenLater):t.isInListenLater=!1,t},toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){const t=o({},c);return void 0!==e.isFollowingShow&&null!==e.isFollowingShow?t.isFollowingShow=e.isFollowingShow:t.isFollowingShow=!1,void 0!==e.isNew&&null!==e.isNew?t.isNew=e.isNew:t.isNew=!1,void 0!==e.isInListenLater&&null!==e.isInListenLater?t.isInListenLater=e.isInListenLater:t.isInListenLater=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},79852:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>3==1)i.items.push(n.string());else n.skipType(7&e)}return i},fromJSON(e){const t=o({},c);if(t.items=[],void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(String(n));return t},toJSON(e){const t={};return e.items?t.items=e.items.map((e=>e)):t.items=[],t},fromPartial(e){const t=o({},c);if(t.items=[],void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(n);return t}};const u={found:!1};t.ContainsResponse={encode(e,t=l.default.Writer.create()){t.uint32(10).fork();for(const n of e.found)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(i.found=[];n.pos>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pose)):t.found=[],t},fromPartial(e){const t=o({},u);if(t.found=[],void 0!==e.found&&null!==e.found)for(const n of e.found)t.found.push(n);return t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},50805:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},36271:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sync_request=t.set_member_permission_request=t.rootlist_request=t.playlist_set_permission_request=t.playlist_request=t.playlist_playback_request=t.offline_playlists_containing=t.modification_request=t.members_response=t.members_request=t.contains_request=void 0;const a=o(n(79852));t.contains_request=a;const s=o(n(67380));t.members_request=s;const l=o(n(21971));t.members_response=l;const c=o(n(16795));t.modification_request=c;const u=o(n(36443));t.offline_playlists_containing=u;const d=o(n(60730));t.playlist_playback_request=d;const p=o(n(16988));t.playlist_request=p;const f=o(n(19766));t.playlist_set_permission_request=f;const h=o(n(69163));t.rootlist_request=h;const v=o(n(62795));t.set_member_permission_request=v;const m=o(n(17005));t.sync_request=m},67380:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3==1)i.value=n.uint32();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},c);return void 0!==e.value&&null!==e.value?t.value=Number(e.value):t.value=0,t},toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t=o({},c);return void 0!==e.value&&null!==e.value?t.value=e.value:t.value=0,t}};const u={uri:""};t.PlaylistMembersRequest={encode:(e,n=l.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),void 0!==e.limit&&t.OptionalLimit.encode(e.limit,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},u);for(;r.pos>>3){case 1:a.uri=r.string();break;case 2:a.limit=t.OptionalLimit.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},u);return void 0!==e.uri&&null!==e.uri?n.uri=String(e.uri):n.uri="",void 0!==e.limit&&null!==e.limit?n.limit=t.OptionalLimit.fromJSON(e.limit):n.limit=void 0,n},toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),void 0!==e.limit&&(n.limit=e.limit?t.OptionalLimit.toJSON(e.limit):void 0),n},fromPartial(e){const n=o({},u);return void 0!==e.uri&&null!==e.uri?n.uri=e.uri:n.uri="",void 0!==e.limit&&null!==e.limit?n.limit=t.OptionalLimit.fromPartial(e.limit):n.limit=void 0,n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},21971:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.user&&u.User.encode(e.user,t.uint32(10).fork()).ldelim(),!0===e.isOwner&&t.uint32(16).bool(e.isOwner),0!==e.numTracks&&t.uint32(24).uint32(e.numTracks),0!==e.numEpisodes&&t.uint32(32).uint32(e.numEpisodes),0!==e.followState&&t.uint32(40).int32(e.followState),0!==e.permissionLevel&&t.uint32(48).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},h);for(;n.pos>>3){case 1:i.user=u.User.decode(n,n.uint32());break;case 2:i.isOwner=n.bool();break;case 3:i.numTracks=n.uint32();break;case 4:i.numEpisodes=n.uint32();break;case 5:i.followState=n.int32();break;case 6:i.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},h);return void 0!==e.user&&null!==e.user?t.user=u.User.fromJSON(e.user):t.user=void 0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=Boolean(e.isOwner):t.isOwner=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=Number(e.numTracks):t.numTracks=0,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=Number(e.numEpisodes):t.numEpisodes=0,void 0!==e.followState&&null!==e.followState?t.followState=p(e.followState):t.followState=0,void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=c.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?u.User.toJSON(e.user):void 0),void 0!==e.isOwner&&(t.isOwner=e.isOwner),void 0!==e.numTracks&&(t.numTracks=e.numTracks),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.followState&&(t.followState=f(e.followState)),void 0!==e.permissionLevel&&(t.permissionLevel=c.permissionLevelToJSON(e.permissionLevel)),t},fromPartial(e){const t=o({},h);return void 0!==e.user&&null!==e.user?t.user=u.User.fromPartial(e.user):t.user=void 0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=e.isOwner:t.isOwner=!1,void 0!==e.numTracks&&null!==e.numTracks?t.numTracks=e.numTracks:t.numTracks=0,void 0!==e.numEpisodes&&null!==e.numEpisodes?t.numEpisodes=e.numEpisodes:t.numEpisodes=0,void 0!==e.followState&&null!==e.followState?t.followState=e.followState:t.followState=0,void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,t}};const v={title:"",numTotalMembers:0,basePermissionLevel:0};t.PlaylistMembersResponse={encode(e,n=l.default.Writer.create()){""!==e.title&&n.uint32(10).string(e.title),0!==e.numTotalMembers&&n.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&c.Capabilities.encode(e.capabilities,n.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&n.uint32(32).int32(e.basePermissionLevel);for(const r of e.members)t.Member.encode(r,n.uint32(42).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},v);for(a.members=[];r.pos>>3){case 1:a.title=r.string();break;case 2:a.numTotalMembers=r.uint32();break;case 3:a.capabilities=c.Capabilities.decode(r,r.uint32());break;case 4:a.basePermissionLevel=r.int32();break;case 5:a.members.push(t.Member.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},v);if(n.members=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.numTotalMembers&&null!==e.numTotalMembers?n.numTotalMembers=Number(e.numTotalMembers):n.numTotalMembers=0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=c.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,void 0!==e.basePermissionLevel&&null!==e.basePermissionLevel?n.basePermissionLevel=c.permissionLevelFromJSON(e.basePermissionLevel):n.basePermissionLevel=0,void 0!==e.members&&null!==e.members)for(const r of e.members)n.members.push(t.Member.fromJSON(r));return n},toJSON(e){const n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.numTotalMembers&&(n.numTotalMembers=e.numTotalMembers),void 0!==e.capabilities&&(n.capabilities=e.capabilities?c.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.basePermissionLevel&&(n.basePermissionLevel=c.permissionLevelToJSON(e.basePermissionLevel)),e.members?n.members=e.members.map((e=>e?t.Member.toJSON(e):void 0)):n.members=[],n},fromPartial(e){const n=o({},v);if(n.members=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.numTotalMembers&&null!==e.numTotalMembers?n.numTotalMembers=e.numTotalMembers:n.numTotalMembers=0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=c.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,void 0!==e.basePermissionLevel&&null!==e.basePermissionLevel?n.basePermissionLevel=e.basePermissionLevel:n.basePermissionLevel=0,void 0!==e.members&&null!==e.members)for(const r of e.members)n.members.push(t.Member.fromPartial(r));return n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},93878:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.publisher&&t.uint32(26).string(e.publisher),void 0!==e.covers&&c.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},g);for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.publisher=n.string();break;case 4:i.covers=c.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},g);return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.publisher&&null!==e.publisher?t.publisher=String(e.publisher):t.publisher="",void 0!==e.covers&&null!==e.covers?t.covers=c.ImageGroup.fromJSON(e.covers):t.covers=void 0,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?c.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t=o({},g);return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.publisher&&null!==e.publisher?t.publisher=e.publisher:t.publisher="",void 0!==e.covers&&null!==e.covers?t.covers=c.ImageGroup.fromPartial(e.covers):t.covers=void 0,t}};const y={link:"",name:"",length:0,manifestId:"",description:"",publishDate:"0",language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,is19PlusOnly:!1,isBookChapter:!1};t.EpisodeMetadata={encode(e,n=l.default.Writer.create()){void 0!==e.show&&t.EpisodeShowMetadata.encode(e.show,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),0!==e.length&&n.uint32(32).uint32(e.length),void 0!==e.covers&&c.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),""!==e.manifestId&&n.uint32(50).string(e.manifestId),""!==e.description&&n.uint32(58).string(e.description),"0"!==e.publishDate&&n.uint32(64).int64(e.publishDate),void 0!==e.freezeFrames&&c.ImageGroup.encode(e.freezeFrames,n.uint32(74).fork()).ldelim(),""!==e.language&&n.uint32(82).string(e.language),!0===e.available&&n.uint32(88).bool(e.available),0!==e.mediaTypeEnum&&n.uint32(96).int32(e.mediaTypeEnum),0!==e.number&&n.uint32(104).int32(e.number),!0===e.backgroundable&&n.uint32(112).bool(e.backgroundable),""!==e.previewManifestId&&n.uint32(122).string(e.previewManifestId),!0===e.isExplicit&&n.uint32(128).bool(e.isExplicit),""!==e.previewId&&n.uint32(138).string(e.previewId),0!==e.episodeType&&n.uint32(144).int32(e.episodeType),!0===e.isMusicAndTalk&&n.uint32(152).bool(e.isMusicAndTalk);for(const t of e.extension)u.Extension.encode(t,n.uint32(178).fork()).ldelim();return!0===e.is19PlusOnly&&n.uint32(184).bool(e.is19PlusOnly),!0===e.isBookChapter&&n.uint32(192).bool(e.isBookChapter),n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},y);for(a.extension=[];r.pos>>3){case 1:a.show=t.EpisodeShowMetadata.decode(r,r.uint32());break;case 2:a.link=r.string();break;case 3:a.name=r.string();break;case 4:a.length=r.uint32();break;case 5:a.covers=c.ImageGroup.decode(r,r.uint32());break;case 6:a.manifestId=r.string();break;case 7:a.description=r.string();break;case 8:a.publishDate=r.int64().toString();break;case 9:a.freezeFrames=c.ImageGroup.decode(r,r.uint32());break;case 10:a.language=r.string();break;case 11:a.available=r.bool();break;case 12:a.mediaTypeEnum=r.int32();break;case 13:a.number=r.int32();break;case 14:a.backgroundable=r.bool();break;case 15:a.previewManifestId=r.string();break;case 16:a.isExplicit=r.bool();break;case 17:a.previewId=r.string();break;case 18:a.episodeType=r.int32();break;case 19:a.isMusicAndTalk=r.bool();break;case 22:a.extension.push(u.Extension.decode(r,r.uint32()));break;case 23:a.is19PlusOnly=r.bool();break;case 24:a.isBookChapter=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},y);if(n.extension=[],void 0!==e.show&&null!==e.show?n.show=t.EpisodeShowMetadata.fromJSON(e.show):n.show=void 0,void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.length&&null!==e.length?n.length=Number(e.length):n.length=0,void 0!==e.covers&&null!==e.covers?n.covers=c.ImageGroup.fromJSON(e.covers):n.covers=void 0,void 0!==e.manifestId&&null!==e.manifestId?n.manifestId=String(e.manifestId):n.manifestId="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.publishDate&&null!==e.publishDate?n.publishDate=String(e.publishDate):n.publishDate="0",void 0!==e.freezeFrames&&null!==e.freezeFrames?n.freezeFrames=c.ImageGroup.fromJSON(e.freezeFrames):n.freezeFrames=void 0,void 0!==e.language&&null!==e.language?n.language=String(e.language):n.language="",void 0!==e.available&&null!==e.available?n.available=Boolean(e.available):n.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?n.mediaTypeEnum=v(e.mediaTypeEnum):n.mediaTypeEnum=0,void 0!==e.number&&null!==e.number?n.number=Number(e.number):n.number=0,void 0!==e.backgroundable&&null!==e.backgroundable?n.backgroundable=Boolean(e.backgroundable):n.backgroundable=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?n.previewManifestId=String(e.previewManifestId):n.previewManifestId="",void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=Boolean(e.isExplicit):n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=String(e.previewId):n.previewId="",void 0!==e.episodeType&&null!==e.episodeType?n.episodeType=f(e.episodeType):n.episodeType=0,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?n.isMusicAndTalk=Boolean(e.isMusicAndTalk):n.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(u.Extension.fromJSON(t));return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=Boolean(e.is19PlusOnly):n.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?n.isBookChapter=Boolean(e.isBookChapter):n.isBookChapter=!1,n},toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=e.length),void 0!==e.covers&&(n.covers=e.covers?c.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?c.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=m(e.mediaTypeEnum)),void 0!==e.number&&(n.number=e.number),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=h(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?u.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),n},fromPartial(e){const n=o({},y);if(n.extension=[],void 0!==e.show&&null!==e.show?n.show=t.EpisodeShowMetadata.fromPartial(e.show):n.show=void 0,void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.length&&null!==e.length?n.length=e.length:n.length=0,void 0!==e.covers&&null!==e.covers?n.covers=c.ImageGroup.fromPartial(e.covers):n.covers=void 0,void 0!==e.manifestId&&null!==e.manifestId?n.manifestId=e.manifestId:n.manifestId="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.publishDate&&null!==e.publishDate?n.publishDate=e.publishDate:n.publishDate="0",void 0!==e.freezeFrames&&null!==e.freezeFrames?n.freezeFrames=c.ImageGroup.fromPartial(e.freezeFrames):n.freezeFrames=void 0,void 0!==e.language&&null!==e.language?n.language=e.language:n.language="",void 0!==e.available&&null!==e.available?n.available=e.available:n.available=!1,void 0!==e.mediaTypeEnum&&null!==e.mediaTypeEnum?n.mediaTypeEnum=e.mediaTypeEnum:n.mediaTypeEnum=0,void 0!==e.number&&null!==e.number?n.number=e.number:n.number=0,void 0!==e.backgroundable&&null!==e.backgroundable?n.backgroundable=e.backgroundable:n.backgroundable=!1,void 0!==e.previewManifestId&&null!==e.previewManifestId?n.previewManifestId=e.previewManifestId:n.previewManifestId="",void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=e.isExplicit:n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=e.previewId:n.previewId="",void 0!==e.episodeType&&null!==e.episodeType?n.episodeType=e.episodeType:n.episodeType=0,void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?n.isMusicAndTalk=e.isMusicAndTalk:n.isMusicAndTalk=!1,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(u.Extension.fromPartial(t));return void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=e.is19PlusOnly:n.is19PlusOnly=!1,void 0!==e.isBookChapter&&null!==e.isBookChapter?n.isBookChapter=e.isBookChapter:n.isBookChapter=!1,n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},67649:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind),0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(i.data=new Uint8Array;n.pos>>3){case 1:i.extensionKind=n.int32();break;case 2:i.data=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return t.data=new Uint8Array,void 0!==e.extensionKind&&null!==e.extensionKind?t.extensionKind=c.extensionKindFromJSON(e.extensionKind):t.extensionKind=0,void 0!==e.data&&null!==e.data&&(t.data=function(e){const t=p(e),n=new Uint8Array(t.length);for(let e=0;e{if(void 0!==d)return d;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const p=d.atob||(e=>d.Buffer.from(e,"base64").toString("binary"));const f=d.btoa||(e=>d.Buffer.from(e,"binary").toString("base64"));l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},74514:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.standardLink&&t.uint32(10).string(e.standardLink),""!==e.smallLink&&t.uint32(18).string(e.smallLink),""!==e.largeLink&&t.uint32(26).string(e.largeLink),""!==e.xlargeLink&&t.uint32(34).string(e.xlargeLink),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.standardLink=n.string();break;case 2:i.smallLink=n.string();break;case 3:i.largeLink=n.string();break;case 4:i.xlargeLink=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.standardLink&&null!==e.standardLink?t.standardLink=String(e.standardLink):t.standardLink="",void 0!==e.smallLink&&null!==e.smallLink?t.smallLink=String(e.smallLink):t.smallLink="",void 0!==e.largeLink&&null!==e.largeLink?t.largeLink=String(e.largeLink):t.largeLink="",void 0!==e.xlargeLink&&null!==e.xlargeLink?t.xlargeLink=String(e.xlargeLink):t.xlargeLink="",t},toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){const t=o({},c);return void 0!==e.standardLink&&null!==e.standardLink?t.standardLink=e.standardLink:t.standardLink="",void 0!==e.smallLink&&null!==e.smallLink?t.smallLink=e.smallLink:t.smallLink="",void 0!==e.largeLink&&null!==e.largeLink?t.largeLink=e.largeLink:t.largeLink="",void 0!==e.xlargeLink&&null!==e.xlargeLink?t.xlargeLink=e.xlargeLink:t.xlargeLink="",t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},70753:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t=o({},u);return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",t}};const d={link:"",name:""};t.TrackAlbumMetadata={encode:(e,n=l.default.Writer.create())=>(void 0!==e.artist&&t.TrackAlbumArtistMetadata.encode(e.artist,n.uint32(10).fork()).ldelim(),""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name),void 0!==e.covers&&c.ImageGroup.encode(e.covers,n.uint32(34).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},d);for(;r.pos>>3){case 1:a.artist=t.TrackAlbumArtistMetadata.decode(r,r.uint32());break;case 2:a.link=r.string();break;case 3:a.name=r.string();break;case 4:a.covers=c.ImageGroup.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},d);return void 0!==e.artist&&null!==e.artist?n.artist=t.TrackAlbumArtistMetadata.fromJSON(e.artist):n.artist=void 0,void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.covers&&null!==e.covers?n.covers=c.ImageGroup.fromJSON(e.covers):n.covers=void 0,n},toJSON(e){const n={};return void 0!==e.artist&&(n.artist=e.artist?t.TrackAlbumArtistMetadata.toJSON(e.artist):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.covers&&(n.covers=e.covers?c.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n=o({},d);return void 0!==e.artist&&null!==e.artist?n.artist=t.TrackAlbumArtistMetadata.fromPartial(e.artist):n.artist=void 0,void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.covers&&null!==e.covers?n.covers=c.ImageGroup.fromPartial(e.covers):n.covers=void 0,n}};const p={link:"",name:""};t.TrackArtistMetadata={encode:(e,t=l.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),void 0!==e.portraits&&c.ImageGroup.encode(e.portraits,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.portraits=c.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.portraits&&null!==e.portraits?t.portraits=c.ImageGroup.fromJSON(e.portraits):t.portraits=void 0,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.portraits&&(t.portraits=e.portraits?c.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t=o({},p);return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.portraits&&null!==e.portraits?t.portraits=c.ImageGroup.fromPartial(e.portraits):t.portraits=void 0,t}};const f={name:""};t.TrackDescriptor={encode:(e,t=l.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},f);for(;n.pos>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},f);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",t},toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t=o({},f);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",t}};const h={link:"",name:"",length:0,playable:!1,discNumber:0,trackNumber:0,isExplicit:!1,previewId:"",isLocal:!1,playableLocalTrack:!1,hasLyrics:!1,isPremiumOnly:!1,locallyPlayable:!1,playableTrackLink:"",popularity:0,is19PlusOnly:!1};t.TrackMetadata={encode(e,n=l.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const r of e.artist)t.TrackArtistMetadata.encode(r,n.uint32(18).fork()).ldelim();""!==e.link&&n.uint32(26).string(e.link),""!==e.name&&n.uint32(34).string(e.name),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.playable&&n.uint32(48).bool(e.playable),0!==e.discNumber&&n.uint32(56).uint32(e.discNumber),0!==e.trackNumber&&n.uint32(64).uint32(e.trackNumber),!0===e.isExplicit&&n.uint32(72).bool(e.isExplicit),""!==e.previewId&&n.uint32(82).string(e.previewId),!0===e.isLocal&&n.uint32(88).bool(e.isLocal),!0===e.playableLocalTrack&&n.uint32(96).bool(e.playableLocalTrack),!0===e.hasLyrics&&n.uint32(104).bool(e.hasLyrics),!0===e.isPremiumOnly&&n.uint32(112).bool(e.isPremiumOnly),!0===e.locallyPlayable&&n.uint32(120).bool(e.locallyPlayable),""!==e.playableTrackLink&&n.uint32(130).string(e.playableTrackLink),0!==e.popularity&&n.uint32(136).uint32(e.popularity),!0===e.is19PlusOnly&&n.uint32(144).bool(e.is19PlusOnly);for(const r of e.trackDescriptors)t.TrackDescriptor.encode(r,n.uint32(154).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},h);for(a.artist=[],a.trackDescriptors=[];r.pos>>3){case 1:a.album=t.TrackAlbumMetadata.decode(r,r.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(r,r.uint32()));break;case 3:a.link=r.string();break;case 4:a.name=r.string();break;case 5:a.length=r.uint32();break;case 6:a.playable=r.bool();break;case 7:a.discNumber=r.uint32();break;case 8:a.trackNumber=r.uint32();break;case 9:a.isExplicit=r.bool();break;case 10:a.previewId=r.string();break;case 11:a.isLocal=r.bool();break;case 12:a.playableLocalTrack=r.bool();break;case 13:a.hasLyrics=r.bool();break;case 14:a.isPremiumOnly=r.bool();break;case 15:a.locallyPlayable=r.bool();break;case 16:a.playableTrackLink=r.string();break;case 17:a.popularity=r.uint32();break;case 18:a.is19PlusOnly=r.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},h);if(n.artist=[],n.trackDescriptors=[],void 0!==e.album&&null!==e.album?n.album=t.TrackAlbumMetadata.fromJSON(e.album):n.album=void 0,void 0!==e.artist&&null!==e.artist)for(const r of e.artist)n.artist.push(t.TrackArtistMetadata.fromJSON(r));if(void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.length&&null!==e.length?n.length=Number(e.length):n.length=0,void 0!==e.playable&&null!==e.playable?n.playable=Boolean(e.playable):n.playable=!1,void 0!==e.discNumber&&null!==e.discNumber?n.discNumber=Number(e.discNumber):n.discNumber=0,void 0!==e.trackNumber&&null!==e.trackNumber?n.trackNumber=Number(e.trackNumber):n.trackNumber=0,void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=Boolean(e.isExplicit):n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=String(e.previewId):n.previewId="",void 0!==e.isLocal&&null!==e.isLocal?n.isLocal=Boolean(e.isLocal):n.isLocal=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?n.playableLocalTrack=Boolean(e.playableLocalTrack):n.playableLocalTrack=!1,void 0!==e.hasLyrics&&null!==e.hasLyrics?n.hasLyrics=Boolean(e.hasLyrics):n.hasLyrics=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?n.isPremiumOnly=Boolean(e.isPremiumOnly):n.isPremiumOnly=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?n.locallyPlayable=Boolean(e.locallyPlayable):n.locallyPlayable=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?n.playableTrackLink=String(e.playableTrackLink):n.playableTrackLink="",void 0!==e.popularity&&null!==e.popularity?n.popularity=Number(e.popularity):n.popularity=0,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=Boolean(e.is19PlusOnly):n.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors)for(const r of e.trackDescriptors)n.trackDescriptors.push(t.TrackDescriptor.fromJSON(r));return n},toJSON(e){const n={};return void 0!==e.album&&(n.album=e.album?t.TrackAlbumMetadata.toJSON(e.album):void 0),e.artist?n.artist=e.artist.map((e=>e?t.TrackArtistMetadata.toJSON(e):void 0)):n.artist=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=e.length),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.discNumber&&(n.discNumber=e.discNumber),void 0!==e.trackNumber&&(n.trackNumber=e.trackNumber),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.playableLocalTrack&&(n.playableLocalTrack=e.playableLocalTrack),void 0!==e.hasLyrics&&(n.hasLyrics=e.hasLyrics),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),void 0!==e.locallyPlayable&&(n.locallyPlayable=e.locallyPlayable),void 0!==e.playableTrackLink&&(n.playableTrackLink=e.playableTrackLink),void 0!==e.popularity&&(n.popularity=e.popularity),void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),e.trackDescriptors?n.trackDescriptors=e.trackDescriptors.map((e=>e?t.TrackDescriptor.toJSON(e):void 0)):n.trackDescriptors=[],n},fromPartial(e){const n=o({},h);if(n.artist=[],n.trackDescriptors=[],void 0!==e.album&&null!==e.album?n.album=t.TrackAlbumMetadata.fromPartial(e.album):n.album=void 0,void 0!==e.artist&&null!==e.artist)for(const r of e.artist)n.artist.push(t.TrackArtistMetadata.fromPartial(r));if(void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.length&&null!==e.length?n.length=e.length:n.length=0,void 0!==e.playable&&null!==e.playable?n.playable=e.playable:n.playable=!1,void 0!==e.discNumber&&null!==e.discNumber?n.discNumber=e.discNumber:n.discNumber=0,void 0!==e.trackNumber&&null!==e.trackNumber?n.trackNumber=e.trackNumber:n.trackNumber=0,void 0!==e.isExplicit&&null!==e.isExplicit?n.isExplicit=e.isExplicit:n.isExplicit=!1,void 0!==e.previewId&&null!==e.previewId?n.previewId=e.previewId:n.previewId="",void 0!==e.isLocal&&null!==e.isLocal?n.isLocal=e.isLocal:n.isLocal=!1,void 0!==e.playableLocalTrack&&null!==e.playableLocalTrack?n.playableLocalTrack=e.playableLocalTrack:n.playableLocalTrack=!1,void 0!==e.hasLyrics&&null!==e.hasLyrics?n.hasLyrics=e.hasLyrics:n.hasLyrics=!1,void 0!==e.isPremiumOnly&&null!==e.isPremiumOnly?n.isPremiumOnly=e.isPremiumOnly:n.isPremiumOnly=!1,void 0!==e.locallyPlayable&&null!==e.locallyPlayable?n.locallyPlayable=e.locallyPlayable:n.locallyPlayable=!1,void 0!==e.playableTrackLink&&null!==e.playableTrackLink?n.playableTrackLink=e.playableTrackLink:n.playableTrackLink="",void 0!==e.popularity&&null!==e.popularity?n.popularity=e.popularity:n.popularity=0,void 0!==e.is19PlusOnly&&null!==e.is19PlusOnly?n.is19PlusOnly=e.is19PlusOnly:n.is19PlusOnly=!1,void 0!==e.trackDescriptors&&null!==e.trackDescriptors)for(const r of e.trackDescriptors)n.trackDescriptors.push(t.TrackDescriptor.fromPartial(r));return n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},16795:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>3){case 1:a.operation=r.string();break;case 2:a.before=r.string();break;case 3:a.after=r.string();break;case 4:a.name=r.string();break;case 5:a.playlist=r.bool();break;case 6:a.attributes=t.ModificationRequest_Attributes.decode(r,r.uint32());break;case 7:a.uris.push(r.string());break;case 8:a.rows.push(r.string());break;case 9:a.contents=r.bool();break;case 10:a.itemId=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},c);if(n.uris=[],n.rows=[],void 0!==e.operation&&null!==e.operation?n.operation=String(e.operation):n.operation="",void 0!==e.before&&null!==e.before?n.before=String(e.before):n.before="",void 0!==e.after&&null!==e.after?n.after=String(e.after):n.after="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.playlist&&null!==e.playlist?n.playlist=Boolean(e.playlist):n.playlist=!1,void 0!==e.attributes&&null!==e.attributes?n.attributes=t.ModificationRequest_Attributes.fromJSON(e.attributes):n.attributes=void 0,void 0!==e.uris&&null!==e.uris)for(const t of e.uris)n.uris.push(String(t));if(void 0!==e.rows&&null!==e.rows)for(const t of e.rows)n.rows.push(String(t));return void 0!==e.contents&&null!==e.contents?n.contents=Boolean(e.contents):n.contents=!1,void 0!==e.itemId&&null!==e.itemId?n.itemId=String(e.itemId):n.itemId="",n},toJSON(e){const n={};return void 0!==e.operation&&(n.operation=e.operation),void 0!==e.before&&(n.before=e.before),void 0!==e.after&&(n.after=e.after),void 0!==e.name&&(n.name=e.name),void 0!==e.playlist&&(n.playlist=e.playlist),void 0!==e.attributes&&(n.attributes=e.attributes?t.ModificationRequest_Attributes.toJSON(e.attributes):void 0),e.uris?n.uris=e.uris.map((e=>e)):n.uris=[],e.rows?n.rows=e.rows.map((e=>e)):n.rows=[],void 0!==e.contents&&(n.contents=e.contents),void 0!==e.itemId&&(n.itemId=e.itemId),n},fromPartial(e){const n=o({},c);if(n.uris=[],n.rows=[],void 0!==e.operation&&null!==e.operation?n.operation=e.operation:n.operation="",void 0!==e.before&&null!==e.before?n.before=e.before:n.before="",void 0!==e.after&&null!==e.after?n.after=e.after:n.after="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.playlist&&null!==e.playlist?n.playlist=e.playlist:n.playlist=!1,void 0!==e.attributes&&null!==e.attributes?n.attributes=t.ModificationRequest_Attributes.fromPartial(e.attributes):n.attributes=void 0,void 0!==e.uris&&null!==e.uris)for(const t of e.uris)n.uris.push(t);if(void 0!==e.rows&&null!==e.rows)for(const t of e.rows)n.rows.push(t);return void 0!==e.contents&&null!==e.contents?n.contents=e.contents:n.contents=!1,void 0!==e.itemId&&null!==e.itemId?n.itemId=e.itemId:n.itemId="",n}};const u={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};t.ModificationRequest_Attributes={encode:(e,t=l.default.Writer.create())=>(!0===e.published&&t.uint32(8).bool(e.published),!0===e.collaborative&&t.uint32(16).bool(e.collaborative),""!==e.name&&t.uint32(26).string(e.name),""!==e.description&&t.uint32(34).string(e.description),""!==e.imageUri&&t.uint32(42).string(e.imageUri),""!==e.picture&&t.uint32(50).string(e.picture),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.published=n.bool();break;case 2:i.collaborative=n.bool();break;case 3:i.name=n.string();break;case 4:i.description=n.string();break;case 5:i.imageUri=n.string();break;case 6:i.picture=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.published&&null!==e.published?t.published=Boolean(e.published):t.published=!1,void 0!==e.collaborative&&null!==e.collaborative?t.collaborative=Boolean(e.collaborative):t.collaborative=!1,void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=String(e.imageUri):t.imageUri="",void 0!==e.picture&&null!==e.picture?t.picture=String(e.picture):t.picture="",t},toJSON(e){const t={};return void 0!==e.published&&(t.published=e.published),void 0!==e.collaborative&&(t.collaborative=e.collaborative),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.picture&&(t.picture=e.picture),t},fromPartial(e){const t=o({},u);return void 0!==e.published&&null!==e.published?t.published=e.published:t.published=!1,void 0!==e.collaborative&&null!==e.collaborative?t.collaborative=e.collaborative:t.collaborative=!1,void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=e.imageUri:t.imageUri="",void 0!==e.picture&&null!==e.picture?t.picture=e.picture:t.picture="",t}};const d={success:!1,uri:""};t.ModificationResponse={encode:(e,t=l.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),""!==e.uri&&t.uint32(18).string(e.uri),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.success=n.bool();break;case 2:i.uri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.success&&null!==e.success?t.success=Boolean(e.success):t.success=!1,void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",t},toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t=o({},d);return void 0!==e.success&&null!==e.success?t.success=e.success:t.success=!1,void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},36443:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.playlistLink&&t.uint32(10).string(e.playlistLink),""!==e.playlistName&&t.uint32(18).string(e.playlistName),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.playlistLink=n.string();break;case 2:i.playlistName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.playlistLink&&null!==e.playlistLink?t.playlistLink=String(e.playlistLink):t.playlistLink="",void 0!==e.playlistName&&null!==e.playlistName?t.playlistName=String(e.playlistName):t.playlistName="",t},toJSON(e){const t={};return void 0!==e.playlistLink&&(t.playlistLink=e.playlistLink),void 0!==e.playlistName&&(t.playlistName=e.playlistName),t},fromPartial(e){const t=o({},c);return void 0!==e.playlistLink&&null!==e.playlistLink?t.playlistLink=e.playlistLink:t.playlistLink="",void 0!==e.playlistName&&null!==e.playlistName?t.playlistName=e.playlistName:t.playlistName="",t}};const u={};t.OfflinePlaylistsContainingItemResponse={encode(e,n=l.default.Writer.create()){for(const r of e.playlists)t.OfflinePlaylistContainingItem.encode(r,n.uint32(10).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},u);for(a.playlists=[];r.pos>>3==1)a.playlists.push(t.OfflinePlaylistContainingItem.decode(r,r.uint32()));else r.skipType(7&e)}return a},fromJSON(e){const n=o({},u);if(n.playlists=[],void 0!==e.playlists&&null!==e.playlists)for(const r of e.playlists)n.playlists.push(t.OfflinePlaylistContainingItem.fromJSON(r));return n},toJSON(e){const n={};return e.playlists?n.playlists=e.playlists.map((e=>e?t.OfflinePlaylistContainingItem.toJSON(e):void 0)):n.playlists=[],n},fromPartial(e){const n=o({},u);if(n.playlists=[],void 0!==e.playlists&&null!==e.playlists)for(const r of e.playlists)n.playlists.push(t.OfflinePlaylistContainingItem.fromPartial(r));return n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},44659:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.onDemandInFreeReasonToJSON=t.onDemandInFreeReasonFromJSON=t.OnDemandInFreeReason=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.on_demand_set.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_ON_DEMAND=1]="NOT_ON_DEMAND",e[e.ON_DEMAND=2]="ON_DEMAND",e[e.ON_DEMAND_EPISODES_ONLY=3]="ON_DEMAND_EPISODES_ONLY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.OnDemandInFreeReason||(t.OnDemandInFreeReason={})),t.onDemandInFreeReasonFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NOT_ON_DEMAND":return a.NOT_ON_DEMAND;case 2:case"ON_DEMAND":return a.ON_DEMAND;case 3:case"ON_DEMAND_EPISODES_ONLY":return a.ON_DEMAND_EPISODES_ONLY;default:return a.UNRECOGNIZED}},t.onDemandInFreeReasonToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NOT_ON_DEMAND:return"NOT_ON_DEMAND";case a.ON_DEMAND:return"ON_DEMAND";case a.ON_DEMAND_EPISODES_ONLY:return"ON_DEMAND_EPISODES_ONLY";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},45690:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.timeLeft&&t.uint32(8).uint32(e.timeLeft),!0===e.isPlayable&&t.uint32(16).bool(e.isPlayable),!0===e.isPlayed&&t.uint32(24).bool(e.isPlayed),0!==e.lastPlayedAt&&t.uint32(32).uint32(e.lastPlayedAt),0!==e.playabilityRestriction&&t.uint32(40).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.timeLeft=n.uint32();break;case 2:i.isPlayable=n.bool();break;case 3:i.isPlayed=n.bool();break;case 4:i.lastPlayedAt=n.uint32();break;case 5:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=Number(e.timeLeft):t.timeLeft=0,void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=Boolean(e.isPlayable):t.isPlayable=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=Boolean(e.isPlayed):t.isPlayed=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=Number(e.lastPlayedAt):t.lastPlayedAt=0,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=c.playabilityRestrictionFromJSON(e.playabilityRestriction):t.playabilityRestriction=0,t},toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=e.timeLeft),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=e.lastPlayedAt),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=c.playabilityRestrictionToJSON(e.playabilityRestriction)),t},fromPartial(e){const t=o({},u);return void 0!==e.timeLeft&&null!==e.timeLeft?t.timeLeft=e.timeLeft:t.timeLeft=0,void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=e.isPlayable:t.isPlayable=!1,void 0!==e.isPlayed&&null!==e.isPlayed?t.isPlayed=e.isPlayed:t.isPlayed=!1,void 0!==e.lastPlayedAt&&null!==e.lastPlayedAt?t.lastPlayedAt=e.lastPlayedAt:t.lastPlayedAt=0,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},52242:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return a.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return a.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return a.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return a.NOT_AVAILABLE_OFFLINE;default:return a.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case a.AGE_RESTRICTED:return"AGE_RESTRICTED";case a.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case a.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},52091:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.isPlayable&&t.uint32(8).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(16).int32(e.playabilityRestriction),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.isPlayable=n.bool();break;case 2:i.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=Boolean(e.isPlayable):t.isPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=c.playabilityRestrictionFromJSON(e.playabilityRestriction):t.playabilityRestriction=0,t},toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=c.playabilityRestrictionToJSON(e.playabilityRestriction)),t},fromPartial(e){const t=o({},u);return void 0!==e.isPlayable&&null!==e.isPlayable?t.isPlayable=e.isPlayable:t.isPlayable=!1,void 0!==e.playabilityRestriction&&null!==e.playabilityRestriction?t.playabilityRestriction=e.playabilityRestriction:t.playabilityRestriction=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},53131:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.id&&t.uint32(10).string(e.id),""!==e.name&&t.uint32(18).string(e.name),0!==e.numFolders&&t.uint32(24).uint32(e.numFolders),0!==e.numPlaylists&&t.uint32(32).uint32(e.numPlaylists),0!==e.numRecursiveFolders&&t.uint32(40).uint32(e.numRecursiveFolders),0!==e.numRecursivePlaylists&&t.uint32(48).uint32(e.numRecursivePlaylists),""!==e.link&&t.uint32(58).string(e.link),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.id=n.string();break;case 2:i.name=n.string();break;case 3:i.numFolders=n.uint32();break;case 4:i.numPlaylists=n.uint32();break;case 5:i.numRecursiveFolders=n.uint32();break;case 6:i.numRecursivePlaylists=n.uint32();break;case 7:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.id&&null!==e.id?t.id=String(e.id):t.id="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.numFolders&&null!==e.numFolders?t.numFolders=Number(e.numFolders):t.numFolders=0,void 0!==e.numPlaylists&&null!==e.numPlaylists?t.numPlaylists=Number(e.numPlaylists):t.numPlaylists=0,void 0!==e.numRecursiveFolders&&null!==e.numRecursiveFolders?t.numRecursiveFolders=Number(e.numRecursiveFolders):t.numRecursiveFolders=0,void 0!==e.numRecursivePlaylists&&null!==e.numRecursivePlaylists?t.numRecursivePlaylists=Number(e.numRecursivePlaylists):t.numRecursivePlaylists=0,void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",t},toJSON(e){const t={};return void 0!==e.id&&(t.id=e.id),void 0!==e.name&&(t.name=e.name),void 0!==e.numFolders&&(t.numFolders=e.numFolders),void 0!==e.numPlaylists&&(t.numPlaylists=e.numPlaylists),void 0!==e.numRecursiveFolders&&(t.numRecursiveFolders=e.numRecursiveFolders),void 0!==e.numRecursivePlaylists&&(t.numRecursivePlaylists=e.numRecursivePlaylists),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t=o({},c);return void 0!==e.id&&null!==e.id?t.id=e.id:t.id="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.numFolders&&null!==e.numFolders?t.numFolders=e.numFolders:t.numFolders=0,void 0!==e.numPlaylists&&null!==e.numPlaylists?t.numPlaylists=e.numPlaylists:t.numPlaylists=0,void 0!==e.numRecursiveFolders&&null!==e.numRecursiveFolders?t.numRecursiveFolders=e.numRecursiveFolders:t.numRecursiveFolders=0,void 0!==e.numRecursivePlaylists&&null!==e.numRecursivePlaylists?t.numRecursivePlaylists=e.numRecursivePlaylists:t.numRecursivePlaylists=0,void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},50481:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.revision.length&&t.uint32(10).bytes(e.revision),0!==e.permissionLevel&&t.uint32(16).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(i.revision=new Uint8Array;n.pos>>3){case 1:i.revision=n.bytes();break;case 2:i.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return t.revision=new Uint8Array,void 0!==e.revision&&null!==e.revision&&(t.revision=function(e){const t=N(e),n=new Uint8Array(t.length);for(let e=0;e>>3){case 1:i.canView=n.bool();break;case 2:i.canAdministratePermissions=n.bool();break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.posd(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),void 0!==e.canCancelMembership&&(t.canCancelMembership=e.canCancelMembership),t},fromPartial(e){const t=o({},f);if(t.grantableLevel=[],void 0!==e.canView&&null!==e.canView?t.canView=e.canView:t.canView=!1,void 0!==e.canAdministratePermissions&&null!==e.canAdministratePermissions?t.canAdministratePermissions=e.canAdministratePermissions:t.canAdministratePermissions=!1,void 0!==e.grantableLevel&&null!==e.grantableLevel)for(const n of e.grantableLevel)t.grantableLevel.push(n);return void 0!==e.canEditMetadata&&null!==e.canEditMetadata?t.canEditMetadata=e.canEditMetadata:t.canEditMetadata=!1,void 0!==e.canEditItems&&null!==e.canEditItems?t.canEditItems=e.canEditItems:t.canEditItems=!1,void 0!==e.canCancelMembership&&null!==e.canCancelMembership?t.canCancelMembership=e.canCancelMembership:t.canCancelMembership=!1,t}};const h={fallbackUsername:"",fallbackUserId:"",fallbackUri:""};t.CapabilitiesMultiRequest={encode(e,n=l.default.Writer.create()){for(const r of e.request)t.CapabilitiesRequest.encode(r,n.uint32(10).fork()).ldelim();return""!==e.fallbackUsername&&n.uint32(18).string(e.fallbackUsername),""!==e.fallbackUserId&&n.uint32(26).string(e.fallbackUserId),""!==e.fallbackUri&&n.uint32(34).string(e.fallbackUri),n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},h);for(a.request=[];r.pos>>3){case 1:a.request.push(t.CapabilitiesRequest.decode(r,r.uint32()));break;case 2:a.fallbackUsername=r.string();break;case 3:a.fallbackUserId=r.string();break;case 4:a.fallbackUri=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},h);if(n.request=[],void 0!==e.request&&null!==e.request)for(const r of e.request)n.request.push(t.CapabilitiesRequest.fromJSON(r));return void 0!==e.fallbackUsername&&null!==e.fallbackUsername?n.fallbackUsername=String(e.fallbackUsername):n.fallbackUsername="",void 0!==e.fallbackUserId&&null!==e.fallbackUserId?n.fallbackUserId=String(e.fallbackUserId):n.fallbackUserId="",void 0!==e.fallbackUri&&null!==e.fallbackUri?n.fallbackUri=String(e.fallbackUri):n.fallbackUri="",n},toJSON(e){const n={};return e.request?n.request=e.request.map((e=>e?t.CapabilitiesRequest.toJSON(e):void 0)):n.request=[],void 0!==e.fallbackUsername&&(n.fallbackUsername=e.fallbackUsername),void 0!==e.fallbackUserId&&(n.fallbackUserId=e.fallbackUserId),void 0!==e.fallbackUri&&(n.fallbackUri=e.fallbackUri),n},fromPartial(e){const n=o({},h);if(n.request=[],void 0!==e.request&&null!==e.request)for(const r of e.request)n.request.push(t.CapabilitiesRequest.fromPartial(r));return void 0!==e.fallbackUsername&&null!==e.fallbackUsername?n.fallbackUsername=e.fallbackUsername:n.fallbackUsername="",void 0!==e.fallbackUserId&&null!==e.fallbackUserId?n.fallbackUserId=e.fallbackUserId:n.fallbackUserId="",void 0!==e.fallbackUri&&null!==e.fallbackUri?n.fallbackUri=e.fallbackUri:n.fallbackUri="",n}};const v={username:"",userId:"",uri:"",userIsOwner:!1};t.CapabilitiesRequest={encode:(e,t=l.default.Writer.create())=>(""!==e.username&&t.uint32(10).string(e.username),""!==e.userId&&t.uint32(18).string(e.userId),""!==e.uri&&t.uint32(26).string(e.uri),!0===e.userIsOwner&&t.uint32(32).bool(e.userIsOwner),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},v);for(;n.pos>>3){case 1:i.username=n.string();break;case 2:i.userId=n.string();break;case 3:i.uri=n.string();break;case 4:i.userIsOwner=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},v);return void 0!==e.username&&null!==e.username?t.username=String(e.username):t.username="",void 0!==e.userId&&null!==e.userId?t.userId=String(e.userId):t.userId="",void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",void 0!==e.userIsOwner&&null!==e.userIsOwner?t.userIsOwner=Boolean(e.userIsOwner):t.userIsOwner=!1,t},toJSON(e){const t={};return void 0!==e.username&&(t.username=e.username),void 0!==e.userId&&(t.userId=e.userId),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.userIsOwner&&(t.userIsOwner=e.userIsOwner),t},fromPartial(e){const t=o({},v);return void 0!==e.username&&null!==e.username?t.username=e.username:t.username="",void 0!==e.userId&&null!==e.userId?t.userId=e.userId:t.userId="",void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",void 0!==e.userIsOwner&&null!==e.userIsOwner?t.userIsOwner=e.userIsOwner:t.userIsOwner=!1,t}};const m={};t.CapabilitiesMultiResponse={encode(e,n=l.default.Writer.create()){for(const r of e.response)t.CapabilitiesResponse.encode(r,n.uint32(10).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},m);for(a.response=[];r.pos>>3==1)a.response.push(t.CapabilitiesResponse.decode(r,r.uint32()));else r.skipType(7&e)}return a},fromJSON(e){const n=o({},m);if(n.response=[],void 0!==e.response&&null!==e.response)for(const r of e.response)n.response.push(t.CapabilitiesResponse.fromJSON(r));return n},toJSON(e){const n={};return e.response?n.response=e.response.map((e=>e?t.CapabilitiesResponse.toJSON(e):void 0)):n.response=[],n},fromPartial(e){const n=o({},m);if(n.response=[],void 0!==e.response&&null!==e.response)for(const r of e.response)n.response.push(t.CapabilitiesResponse.fromPartial(r));return n}};const g={};t.CapabilitiesResponse={encode:(e,n=l.default.Writer.create())=>(void 0!==e.status&&t.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},g);for(;r.pos>>3){case 1:a.status=t.ResponseStatus.decode(r,r.uint32());break;case 2:a.capabilities=t.Capabilities.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},g);return void 0!==e.status&&null!==e.status?n.status=t.ResponseStatus.fromJSON(e.status):n.status=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,n},toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.ResponseStatus.toJSON(e.status):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n=o({},g);return void 0!==e.status&&null!==e.status?n.status=t.ResponseStatus.fromPartial(e.status):n.status=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,n}};const y={permissionLevel:0};t.SetPermissionLevelRequest={encode:(e,t=l.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},y);for(;n.pos>>3==1)i.permissionLevel=n.int32();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},y);return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=u(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=d(e.permissionLevel)),t},fromPartial(e){const t=o({},y);return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,t}};const _={};t.SetPermissionResponse={encode:(e,n=l.default.Writer.create())=>(void 0!==e.resultingPermission&&t.Permission.encode(e.resultingPermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},_);for(;r.pos>>3==1)a.resultingPermission=t.Permission.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON(e){const n=o({},_);return void 0!==e.resultingPermission&&null!==e.resultingPermission?n.resultingPermission=t.Permission.fromJSON(e.resultingPermission):n.resultingPermission=void 0,n},toJSON(e){const n={};return void 0!==e.resultingPermission&&(n.resultingPermission=e.resultingPermission?t.Permission.toJSON(e.resultingPermission):void 0),n},fromPartial(e){const n=o({},_);return void 0!==e.resultingPermission&&null!==e.resultingPermission?n.resultingPermission=t.Permission.fromPartial(e.resultingPermission):n.resultingPermission=void 0,n}};const b={};t.GetMemberPermissionsResponse={encode:(e,n=l.default.Writer.create())=>(Object.entries(e.memberPermissions).forEach((([e,r])=>{t.GetMemberPermissionsResponse_MemberPermissionsEntry.encode({key:e,value:r},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},b);for(a.memberPermissions={};r.pos>>3==1){const e=t.GetMemberPermissionsResponse_MemberPermissionsEntry.decode(r,r.uint32());void 0!==e.value&&(a.memberPermissions[e.key]=e.value)}else r.skipType(7&e)}return a},fromJSON(e){const n=o({},b);return n.memberPermissions={},void 0!==e.memberPermissions&&null!==e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,r])=>{n.memberPermissions[e]=t.Permission.fromJSON(r)})),n},toJSON(e){const n={memberPermissions:{}};return e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,r])=>{n.memberPermissions[e]=t.Permission.toJSON(r)})),n},fromPartial(e){const n=o({},b);return n.memberPermissions={},void 0!==e.memberPermissions&&null!==e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,r])=>{void 0!==r&&(n.memberPermissions[e]=t.Permission.fromPartial(r))})),n}};const E={key:""};t.GetMemberPermissionsResponse_MemberPermissionsEntry={encode:(e,n=l.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.Permission.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},E);for(;r.pos>>3){case 1:a.key=r.string();break;case 2:a.value=t.Permission.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},E);return void 0!==e.key&&null!==e.key?n.key=String(e.key):n.key="",void 0!==e.value&&null!==e.value?n.value=t.Permission.fromJSON(e.value):n.value=void 0,n},toJSON(e){const n={};return void 0!==e.key&&(n.key=e.key),void 0!==e.value&&(n.value=e.value?t.Permission.toJSON(e.value):void 0),n},fromPartial(e){const n=o({},E);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key="",void 0!==e.value&&null!==e.value?n.value=t.Permission.fromPartial(e.value):n.value=void 0,n}};const S={};t.Permissions={encode:(e,n=l.default.Writer.create())=>(void 0!==e.basePermission&&t.Permission.encode(e.basePermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},S);for(;r.pos>>3==1)a.basePermission=t.Permission.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON(e){const n=o({},S);return void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=t.Permission.fromJSON(e.basePermission):n.basePermission=void 0,n},toJSON(e){const n={};return void 0!==e.basePermission&&(n.basePermission=e.basePermission?t.Permission.toJSON(e.basePermission):void 0),n},fromPartial(e){const n=o({},S);return void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=t.Permission.fromPartial(e.basePermission):n.basePermission=void 0,n}};const T={isPrivate:!1,isCollaborative:!1};t.PermissionState={encode:(e,n=l.default.Writer.create())=>(void 0!==e.permissions&&t.Permissions.encode(e.permissions,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),!0===e.isPrivate&&n.uint32(24).bool(e.isPrivate),!0===e.isCollaborative&&n.uint32(32).bool(e.isCollaborative),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},T);for(;r.pos>>3){case 1:a.permissions=t.Permissions.decode(r,r.uint32());break;case 2:a.capabilities=t.Capabilities.decode(r,r.uint32());break;case 3:a.isPrivate=r.bool();break;case 4:a.isCollaborative=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},T);return void 0!==e.permissions&&null!==e.permissions?n.permissions=t.Permissions.fromJSON(e.permissions):n.permissions=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,void 0!==e.isPrivate&&null!==e.isPrivate?n.isPrivate=Boolean(e.isPrivate):n.isPrivate=!1,void 0!==e.isCollaborative&&null!==e.isCollaborative?n.isCollaborative=Boolean(e.isCollaborative):n.isCollaborative=!1,n},toJSON(e){const n={};return void 0!==e.permissions&&(n.permissions=e.permissions?t.Permissions.toJSON(e.permissions):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.isPrivate&&(n.isPrivate=e.isPrivate),void 0!==e.isCollaborative&&(n.isCollaborative=e.isCollaborative),n},fromPartial(e){const n=o({},T);return void 0!==e.permissions&&null!==e.permissions?n.permissions=t.Permissions.fromPartial(e.permissions):n.permissions=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,void 0!==e.isPrivate&&null!==e.isPrivate?n.isPrivate=e.isPrivate:n.isPrivate=!1,void 0!==e.isCollaborative&&null!==e.isCollaborative?n.isCollaborative=e.isCollaborative:n.isCollaborative=!1,n}};const O={};t.PermissionStatePub={encode:(e,n=l.default.Writer.create())=>(void 0!==e.permissionState&&t.PermissionState.encode(e.permissionState,n.uint32(10).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},O);for(;r.pos>>3==1)a.permissionState=t.PermissionState.decode(r,r.uint32());else r.skipType(7&e)}return a},fromJSON(e){const n=o({},O);return void 0!==e.permissionState&&null!==e.permissionState?n.permissionState=t.PermissionState.fromJSON(e.permissionState):n.permissionState=void 0,n},toJSON(e){const n={};return void 0!==e.permissionState&&(n.permissionState=e.permissionState?t.PermissionState.toJSON(e.permissionState):void 0),n},fromPartial(e){const n=o({},O);return void 0!==e.permissionState&&null!==e.permissionState?n.permissionState=t.PermissionState.fromPartial(e.permissionState):n.permissionState=void 0,n}};const A={ttlMs:"0"};t.PermissionGrantOptions={encode:(e,n=l.default.Writer.create())=>(void 0!==e.permission&&t.Permission.encode(e.permission,n.uint32(10).fork()).ldelim(),"0"!==e.ttlMs&&n.uint32(16).int64(e.ttlMs),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},A);for(;r.pos>>3){case 1:a.permission=t.Permission.decode(r,r.uint32());break;case 2:a.ttlMs=r.int64().toString();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},A);return void 0!==e.permission&&null!==e.permission?n.permission=t.Permission.fromJSON(e.permission):n.permission=void 0,void 0!==e.ttlMs&&null!==e.ttlMs?n.ttlMs=String(e.ttlMs):n.ttlMs="0",n},toJSON(e){const n={};return void 0!==e.permission&&(n.permission=e.permission?t.Permission.toJSON(e.permission):void 0),void 0!==e.ttlMs&&(n.ttlMs=e.ttlMs),n},fromPartial(e){const n=o({},A);return void 0!==e.permission&&null!==e.permission?n.permission=t.Permission.fromPartial(e.permission):n.permission=void 0,void 0!==e.ttlMs&&null!==e.ttlMs?n.ttlMs=e.ttlMs:n.ttlMs="0",n}};const C={token:""};t.PermissionGrant={encode:(e,n=l.default.Writer.create())=>(""!==e.token&&n.uint32(10).string(e.token),void 0!==e.permissionGrantOptions&&t.PermissionGrantOptions.encode(e.permissionGrantOptions,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},C);for(;r.pos>>3){case 1:a.token=r.string();break;case 2:a.permissionGrantOptions=t.PermissionGrantOptions.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},C);return void 0!==e.token&&null!==e.token?n.token=String(e.token):n.token="",void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?n.permissionGrantOptions=t.PermissionGrantOptions.fromJSON(e.permissionGrantOptions):n.permissionGrantOptions=void 0,n},toJSON(e){const n={};return void 0!==e.token&&(n.token=e.token),void 0!==e.permissionGrantOptions&&(n.permissionGrantOptions=e.permissionGrantOptions?t.PermissionGrantOptions.toJSON(e.permissionGrantOptions):void 0),n},fromPartial(e){const n=o({},C);return void 0!==e.token&&null!==e.token?n.token=e.token:n.token="",void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?n.permissionGrantOptions=t.PermissionGrantOptions.fromPartial(e.permissionGrantOptions):n.permissionGrantOptions=void 0,n}};const P={};t.ClaimPermissionGrantResponse={encode:(e,n=l.default.Writer.create())=>(void 0!==e.userPermission&&t.Permission.encode(e.userPermission,n.uint32(10).fork()).ldelim(),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},P);for(;r.pos>>3){case 1:a.userPermission=t.Permission.decode(r,r.uint32());break;case 2:a.capabilities=t.Capabilities.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},P);return void 0!==e.userPermission&&null!==e.userPermission?n.userPermission=t.Permission.fromJSON(e.userPermission):n.userPermission=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,n},toJSON(e){const n={};return void 0!==e.userPermission&&(n.userPermission=e.userPermission?t.Permission.toJSON(e.userPermission):void 0),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n=o({},P);return void 0!==e.userPermission&&null!==e.userPermission?n.userPermission=t.Permission.fromPartial(e.userPermission):n.userPermission=void 0,void 0!==e.capabilities&&null!==e.capabilities?n.capabilities=t.Capabilities.fromPartial(e.capabilities):n.capabilities=void 0,n}};const I={statusCode:0,statusMessage:""};t.ResponseStatus={encode:(e,t=l.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.statusMessage&&t.uint32(18).string(e.statusMessage),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},I);for(;n.pos>>3){case 1:i.statusCode=n.int32();break;case 2:i.statusMessage=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},I);return void 0!==e.statusCode&&null!==e.statusCode?t.statusCode=Number(e.statusCode):t.statusCode=0,void 0!==e.statusMessage&&null!==e.statusMessage?t.statusMessage=String(e.statusMessage):t.statusMessage="",t},toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=e.statusCode),void 0!==e.statusMessage&&(t.statusMessage=e.statusMessage),t},fromPartial(e){const t=o({},I);return void 0!==e.statusCode&&null!==e.statusCode?t.statusCode=e.statusCode:t.statusCode=0,void 0!==e.statusMessage&&null!==e.statusMessage?t.statusMessage=e.statusMessage:t.statusMessage="",t}};var R=(()=>{if(void 0!==R)return R;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const N=R.atob||(e=>R.Buffer.from(e,"base64").toString("binary"));const k=R.btoa||(e=>R.Buffer.from(e,"binary").toString("base64"));l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},60730:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},c);return void 0!==e.success&&null!==e.success?t.success=Boolean(e.success):t.success=!1,t},toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),t},fromPartial(e){const t=o({},c);return void 0!==e.success&&null!==e.success?t.success=e.success:t.success=!1,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},55795:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t=o({},p);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};const f={canInsert:!1,canRemove:!1};t.Allows={encode:(e,t=l.default.Writer.create())=>(!0===e.canInsert&&t.uint32(8).bool(e.canInsert),!0===e.canRemove&&t.uint32(16).bool(e.canRemove),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},f);for(;n.pos>>3){case 1:i.canInsert=n.bool();break;case 2:i.canRemove=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},f);return void 0!==e.canInsert&&null!==e.canInsert?t.canInsert=Boolean(e.canInsert):t.canInsert=!1,void 0!==e.canRemove&&null!==e.canRemove?t.canRemove=Boolean(e.canRemove):t.canRemove=!1,t},toJSON(e){const t={};return void 0!==e.canInsert&&(t.canInsert=e.canInsert),void 0!==e.canRemove&&(t.canRemove=e.canRemove),t},fromPartial(e){const t=o({},f);return void 0!==e.canInsert&&null!==e.canInsert?t.canInsert=e.canInsert:t.canInsert=!1,void 0!==e.canRemove&&null!==e.canRemove?t.canRemove=e.canRemove:t.canRemove=!1,t}};const h={link:"",name:"",ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",canReportAnnotationAbuse:!1,isLoaded:!1,loadState:""};t.PlaylistMetadata={encode(e,n=l.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&c.User.encode(e.owner,n.uint32(26).fork()).ldelim(),!0===e.ownedBySelf&&n.uint32(32).bool(e.ownedBySelf),!0===e.collaborative&&n.uint32(40).bool(e.collaborative),0!==e.totalLength&&n.uint32(48).uint32(e.totalLength),""!==e.description&&n.uint32(58).string(e.description),void 0!==e.pictures&&u.ImageGroup.encode(e.pictures,n.uint32(66).fork()).ldelim(),!0===e.followed&&n.uint32(72).bool(e.followed),!0===e.published&&n.uint32(80).bool(e.published),!0===e.browsableOffline&&n.uint32(88).bool(e.browsableOffline),!0===e.descriptionFromAnnotate&&n.uint32(96).bool(e.descriptionFromAnnotate),!0===e.pictureFromAnnotate&&n.uint32(104).bool(e.pictureFromAnnotate),""!==e.formatListType&&n.uint32(114).string(e.formatListType);for(const r of e.formatListAttributes)t.FormatListAttribute.encode(r,n.uint32(122).fork()).ldelim();!0===e.canReportAnnotationAbuse&&n.uint32(128).bool(e.canReportAnnotationAbuse),!0===e.isLoaded&&n.uint32(136).bool(e.isLoaded),void 0!==e.allows&&t.Allows.encode(e.allows,n.uint32(146).fork()).ldelim(),""!==e.loadState&&n.uint32(154).string(e.loadState),void 0!==e.madeFor&&c.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)d.Extension.encode(t,n.uint32(170).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},h);for(a.formatListAttributes=[],a.extension=[];r.pos>>3){case 1:a.link=r.string();break;case 2:a.name=r.string();break;case 3:a.owner=c.User.decode(r,r.uint32());break;case 4:a.ownedBySelf=r.bool();break;case 5:a.collaborative=r.bool();break;case 6:a.totalLength=r.uint32();break;case 7:a.description=r.string();break;case 8:a.pictures=u.ImageGroup.decode(r,r.uint32());break;case 9:a.followed=r.bool();break;case 10:a.published=r.bool();break;case 11:a.browsableOffline=r.bool();break;case 12:a.descriptionFromAnnotate=r.bool();break;case 13:a.pictureFromAnnotate=r.bool();break;case 14:a.formatListType=r.string();break;case 15:a.formatListAttributes.push(t.FormatListAttribute.decode(r,r.uint32()));break;case 16:a.canReportAnnotationAbuse=r.bool();break;case 17:a.isLoaded=r.bool();break;case 18:a.allows=t.Allows.decode(r,r.uint32());break;case 19:a.loadState=r.string();break;case 20:a.madeFor=c.User.decode(r,r.uint32());break;case 21:a.extension.push(d.Extension.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},h);if(n.formatListAttributes=[],n.extension=[],void 0!==e.link&&null!==e.link?n.link=String(e.link):n.link="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.owner&&null!==e.owner?n.owner=c.User.fromJSON(e.owner):n.owner=void 0,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=Boolean(e.ownedBySelf):n.ownedBySelf=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=Boolean(e.collaborative):n.collaborative=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=Number(e.totalLength):n.totalLength=0,void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.pictures&&null!==e.pictures?n.pictures=u.ImageGroup.fromJSON(e.pictures):n.pictures=void 0,void 0!==e.followed&&null!==e.followed?n.followed=Boolean(e.followed):n.followed=!1,void 0!==e.published&&null!==e.published?n.published=Boolean(e.published):n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=Boolean(e.browsableOffline):n.browsableOffline=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=Boolean(e.descriptionFromAnnotate):n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=Boolean(e.pictureFromAnnotate):n.pictureFromAnnotate=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=String(e.formatListType):n.formatListType="",void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const r of e.formatListAttributes)n.formatListAttributes.push(t.FormatListAttribute.fromJSON(r));if(void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=Boolean(e.canReportAnnotationAbuse):n.canReportAnnotationAbuse=!1,void 0!==e.isLoaded&&null!==e.isLoaded?n.isLoaded=Boolean(e.isLoaded):n.isLoaded=!1,void 0!==e.allows&&null!==e.allows?n.allows=t.Allows.fromJSON(e.allows):n.allows=void 0,void 0!==e.loadState&&null!==e.loadState?n.loadState=String(e.loadState):n.loadState="",void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=c.User.fromJSON(e.madeFor):n.madeFor=void 0,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(d.Extension.fromJSON(t));return n},toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.owner&&(n.owner=e.owner?c.User.toJSON(e.owner):void 0),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.description&&(n.description=e.description),void 0!==e.pictures&&(n.pictures=e.pictures?u.ImageGroup.toJSON(e.pictures):void 0),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.formatListType&&(n.formatListType=e.formatListType),e.formatListAttributes?n.formatListAttributes=e.formatListAttributes.map((e=>e?t.FormatListAttribute.toJSON(e):void 0)):n.formatListAttributes=[],void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.isLoaded&&(n.isLoaded=e.isLoaded),void 0!==e.allows&&(n.allows=e.allows?t.Allows.toJSON(e.allows):void 0),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.madeFor&&(n.madeFor=e.madeFor?c.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?d.Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n=o({},h);if(n.formatListAttributes=[],n.extension=[],void 0!==e.link&&null!==e.link?n.link=e.link:n.link="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.owner&&null!==e.owner?n.owner=c.User.fromPartial(e.owner):n.owner=void 0,void 0!==e.ownedBySelf&&null!==e.ownedBySelf?n.ownedBySelf=e.ownedBySelf:n.ownedBySelf=!1,void 0!==e.collaborative&&null!==e.collaborative?n.collaborative=e.collaborative:n.collaborative=!1,void 0!==e.totalLength&&null!==e.totalLength?n.totalLength=e.totalLength:n.totalLength=0,void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.pictures&&null!==e.pictures?n.pictures=u.ImageGroup.fromPartial(e.pictures):n.pictures=void 0,void 0!==e.followed&&null!==e.followed?n.followed=e.followed:n.followed=!1,void 0!==e.published&&null!==e.published?n.published=e.published:n.published=!1,void 0!==e.browsableOffline&&null!==e.browsableOffline?n.browsableOffline=e.browsableOffline:n.browsableOffline=!1,void 0!==e.descriptionFromAnnotate&&null!==e.descriptionFromAnnotate?n.descriptionFromAnnotate=e.descriptionFromAnnotate:n.descriptionFromAnnotate=!1,void 0!==e.pictureFromAnnotate&&null!==e.pictureFromAnnotate?n.pictureFromAnnotate=e.pictureFromAnnotate:n.pictureFromAnnotate=!1,void 0!==e.formatListType&&null!==e.formatListType?n.formatListType=e.formatListType:n.formatListType="",void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const r of e.formatListAttributes)n.formatListAttributes.push(t.FormatListAttribute.fromPartial(r));if(void 0!==e.canReportAnnotationAbuse&&null!==e.canReportAnnotationAbuse?n.canReportAnnotationAbuse=e.canReportAnnotationAbuse:n.canReportAnnotationAbuse=!1,void 0!==e.isLoaded&&null!==e.isLoaded?n.isLoaded=e.isLoaded:n.isLoaded=!1,void 0!==e.allows&&null!==e.allows?n.allows=t.Allows.fromPartial(e.allows):n.allows=void 0,void 0!==e.loadState&&null!==e.loadState?n.loadState=e.loadState:n.loadState="",void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=c.User.fromPartial(e.madeFor):n.madeFor=void 0,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(d.Extension.fromPartial(t));return n}};const v={offline:"",syncProgress:0};t.PlaylistOfflineState={encode:(e,t=l.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},v);for(;n.pos>>3){case 1:i.offline=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},v);return void 0!==e.offline&&null!==e.offline?t.offline=String(e.offline):t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Number(e.syncProgress):t.syncProgress=0,t},toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t=o({},v);return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},16988:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>3){case 1:i.headerField=n.string();break;case 2:i.addTime=n.uint32();break;case 3:i.addedBy=u.User.decode(n,n.uint32());break;case 4:i.trackMetadata=d.TrackMetadata.decode(n,n.uint32());break;case 5:i.trackCollectionState=p.TrackCollectionState.decode(n,n.uint32());break;case 6:i.trackOfflineState=p.TrackOfflineState.decode(n,n.uint32());break;case 7:i.rowId=n.string();break;case 8:i.trackPlayState=f.TrackPlayState.decode(n,n.uint32());break;case 9:i.formatListAttributes.push(h.FormatListAttribute.decode(n,n.uint32()));break;case 10:i.episodeMetadata=v.EpisodeMetadata.decode(n,n.uint32());break;case 11:i.episodeOfflineState=m.EpisodeSyncState.decode(n,n.uint32());break;case 12:i.episodeCollectionState=g.EpisodeCollectionState.decode(n,n.uint32());break;case 13:i.episodePlayState=y.EpisodePlayState.decode(n,n.uint32());break;case 14:i.displayCovers=_.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},E);if(t.formatListAttributes=[],void 0!==e.headerField&&null!==e.headerField?t.headerField=String(e.headerField):t.headerField="",void 0!==e.addTime&&null!==e.addTime?t.addTime=Number(e.addTime):t.addTime=0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=u.User.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=d.TrackMetadata.fromJSON(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=p.TrackCollectionState.fromJSON(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=p.TrackOfflineState.fromJSON(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=String(e.rowId):t.rowId="",void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=f.TrackPlayState.fromJSON(e.trackPlayState):t.trackPlayState=void 0,void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const n of e.formatListAttributes)t.formatListAttributes.push(h.FormatListAttribute.fromJSON(n));return void 0!==e.episodeMetadata&&null!==e.episodeMetadata?t.episodeMetadata=v.EpisodeMetadata.fromJSON(e.episodeMetadata):t.episodeMetadata=void 0,void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?t.episodeOfflineState=m.EpisodeSyncState.fromJSON(e.episodeOfflineState):t.episodeOfflineState=void 0,void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?t.episodeCollectionState=g.EpisodeCollectionState.fromJSON(e.episodeCollectionState):t.episodeCollectionState=void 0,void 0!==e.episodePlayState&&null!==e.episodePlayState?t.episodePlayState=y.EpisodePlayState.fromJSON(e.episodePlayState):t.episodePlayState=void 0,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=_.ImageGroup.fromJSON(e.displayCovers):t.displayCovers=void 0,t},toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.addedBy&&(t.addedBy=e.addedBy?u.User.toJSON(e.addedBy):void 0),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?d.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?p.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?p.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?f.TrackPlayState.toJSON(e.trackPlayState):void 0),e.formatListAttributes?t.formatListAttributes=e.formatListAttributes.map((e=>e?h.FormatListAttribute.toJSON(e):void 0)):t.formatListAttributes=[],void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?v.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?m.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?g.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?y.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers?_.ImageGroup.toJSON(e.displayCovers):void 0),t},fromPartial(e){const t=o({},E);if(t.formatListAttributes=[],void 0!==e.headerField&&null!==e.headerField?t.headerField=e.headerField:t.headerField="",void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=u.User.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=d.TrackMetadata.fromPartial(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=p.TrackCollectionState.fromPartial(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=p.TrackOfflineState.fromPartial(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId="",void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=f.TrackPlayState.fromPartial(e.trackPlayState):t.trackPlayState=void 0,void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const n of e.formatListAttributes)t.formatListAttributes.push(h.FormatListAttribute.fromPartial(n));return void 0!==e.episodeMetadata&&null!==e.episodeMetadata?t.episodeMetadata=v.EpisodeMetadata.fromPartial(e.episodeMetadata):t.episodeMetadata=void 0,void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?t.episodeOfflineState=m.EpisodeSyncState.fromPartial(e.episodeOfflineState):t.episodeOfflineState=void 0,void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?t.episodeCollectionState=g.EpisodeCollectionState.fromPartial(e.episodeCollectionState):t.episodeCollectionState=void 0,void 0!==e.episodePlayState&&null!==e.episodePlayState?t.episodePlayState=y.EpisodePlayState.fromPartial(e.episodePlayState):t.episodePlayState=void 0,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=_.ImageGroup.fromPartial(e.displayCovers):t.displayCovers=void 0,t}};const S={};t.Playlist={encode:(e,t=l.default.Writer.create())=>(void 0!==e.playlistMetadata&&h.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&h.PlaylistOfflineState.encode(e.playlistOfflineState,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},S);for(;n.pos>>3){case 1:i.playlistMetadata=h.PlaylistMetadata.decode(n,n.uint32());break;case 2:i.playlistOfflineState=h.PlaylistOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},S);return void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=h.PlaylistMetadata.fromJSON(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=h.PlaylistOfflineState.fromJSON(e.playlistOfflineState):t.playlistOfflineState=void 0,t},toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?h.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?h.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),t},fromPartial(e){const t=o({},S);return void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=h.PlaylistMetadata.fromPartial(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=h.PlaylistOfflineState.fromPartial(e.playlistOfflineState):t.playlistOfflineState=void 0,t}};const T={};t.RecommendationItem={encode:(e,t=l.default.Writer.create())=>(void 0!==e.trackMetadata&&d.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&p.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&p.TrackOfflineState.encode(e.trackOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.trackPlayState&&f.TrackPlayState.encode(e.trackPlayState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},T);for(;n.pos>>3){case 1:i.trackMetadata=d.TrackMetadata.decode(n,n.uint32());break;case 2:i.trackCollectionState=p.TrackCollectionState.decode(n,n.uint32());break;case 3:i.trackOfflineState=p.TrackOfflineState.decode(n,n.uint32());break;case 4:i.trackPlayState=f.TrackPlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},T);return void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=d.TrackMetadata.fromJSON(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=p.TrackCollectionState.fromJSON(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=p.TrackOfflineState.fromJSON(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=f.TrackPlayState.fromJSON(e.trackPlayState):t.trackPlayState=void 0,t},toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?d.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?p.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?p.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?f.TrackPlayState.toJSON(e.trackPlayState):void 0),t},fromPartial(e){const t=o({},T);return void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=d.TrackMetadata.fromPartial(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=p.TrackCollectionState.fromPartial(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=p.TrackOfflineState.fromPartial(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=f.TrackPlayState.fromPartial(e.trackPlayState):t.trackPlayState=void 0,t}};const O={numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};t.Collaborator={encode:(e,t=l.default.Writer.create())=>(void 0!==e.user&&u.User.encode(e.user,t.uint32(10).fork()).ldelim(),0!==e.numberOfItems&&t.uint32(16).uint32(e.numberOfItems),0!==e.numberOfTracks&&t.uint32(24).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&t.uint32(32).uint32(e.numberOfEpisodes),!0===e.isOwner&&t.uint32(40).bool(e.isOwner),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},O);for(;n.pos>>3){case 1:i.user=u.User.decode(n,n.uint32());break;case 2:i.numberOfItems=n.uint32();break;case 3:i.numberOfTracks=n.uint32();break;case 4:i.numberOfEpisodes=n.uint32();break;case 5:i.isOwner=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},O);return void 0!==e.user&&null!==e.user?t.user=u.User.fromJSON(e.user):t.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?t.numberOfItems=Number(e.numberOfItems):t.numberOfItems=0,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?t.numberOfTracks=Number(e.numberOfTracks):t.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?t.numberOfEpisodes=Number(e.numberOfEpisodes):t.numberOfEpisodes=0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=Boolean(e.isOwner):t.isOwner=!1,t},toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?u.User.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(t.numberOfItems=e.numberOfItems),void 0!==e.numberOfTracks&&(t.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(t.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.isOwner&&(t.isOwner=e.isOwner),t},fromPartial(e){const t=o({},O);return void 0!==e.user&&null!==e.user?t.user=u.User.fromPartial(e.user):t.user=void 0,void 0!==e.numberOfItems&&null!==e.numberOfItems?t.numberOfItems=e.numberOfItems:t.numberOfItems=0,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?t.numberOfTracks=e.numberOfTracks:t.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?t.numberOfEpisodes=e.numberOfEpisodes:t.numberOfEpisodes=0,void 0!==e.isOwner&&null!==e.isOwner?t.isOwner=e.isOwner:t.isOwner=!1,t}};const A={count:0};t.Collaborators={encode(e,n=l.default.Writer.create()){0!==e.count&&n.uint32(8).uint32(e.count);for(const r of e.collaborator)t.Collaborator.encode(r,n.uint32(18).fork()).ldelim();return n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},A);for(a.collaborator=[];r.pos>>3){case 1:a.count=r.uint32();break;case 2:a.collaborator.push(t.Collaborator.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},A);if(n.collaborator=[],void 0!==e.count&&null!==e.count?n.count=Number(e.count):n.count=0,void 0!==e.collaborator&&null!==e.collaborator)for(const r of e.collaborator)n.collaborator.push(t.Collaborator.fromJSON(r));return n},toJSON(e){const n={};return void 0!==e.count&&(n.count=e.count),e.collaborator?n.collaborator=e.collaborator.map((e=>e?t.Collaborator.toJSON(e):void 0)):n.collaborator=[],n},fromPartial(e){const n=o({},A);if(n.collaborator=[],void 0!==e.count&&null!==e.count?n.count=e.count:n.count=0,void 0!==e.collaborator&&null!==e.collaborator)for(const r of e.collaborator)n.collaborator.push(t.Collaborator.fromPartial(r));return n}};const C={unfilteredLength:0,unrangedLength:0,duration:"0",loadingContents:!1,lastModification:"0",numFollowers:0,playable:!1,hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0};function P(e){return e.toString()}t.Response={encode(e,n=l.default.Writer.create()){for(const r of e.item)t.Item.encode(r,n.uint32(10).fork()).ldelim();void 0!==e.playlist&&t.Playlist.encode(e.playlist,n.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),"0"!==e.duration&&n.uint32(40).uint64(e.duration),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),"0"!==e.lastModification&&n.uint32(56).uint64(e.lastModification),0!==e.numFollowers&&n.uint32(64).uint32(e.numFollowers),!0===e.playable&&n.uint32(72).bool(e.playable);for(const r of e.recommendations)t.RecommendationItem.encode(r,n.uint32(82).fork()).ldelim();return!0===e.hasExplicitContent&&n.uint32(88).bool(e.hasExplicitContent),!0===e.containsSpotifyTracks&&n.uint32(96).bool(e.containsSpotifyTracks),!0===e.containsEpisodes&&n.uint32(104).bool(e.containsEpisodes),!0===e.onlyContainsExplicit&&n.uint32(112).bool(e.onlyContainsExplicit),!0===e.containsAudioEpisodes&&n.uint32(120).bool(e.containsAudioEpisodes),!0===e.containsTracks&&n.uint32(128).bool(e.containsTracks),!0===e.isOnDemandInFree&&n.uint32(136).bool(e.isOnDemandInFree),0!==e.numberOfTracks&&n.uint32(144).uint32(e.numberOfTracks),0!==e.numberOfEpisodes&&n.uint32(152).uint32(e.numberOfEpisodes),!0===e.preferLinearPlayback&&n.uint32(160).bool(e.preferLinearPlayback),0!==e.onDemandInFreeReason&&n.uint32(168).int32(e.onDemandInFreeReason),void 0!==e.collaborators&&t.Collaborators.encode(e.collaborators,n.uint32(178).fork()).ldelim(),void 0!==e.basePermission&&b.Permission.encode(e.basePermission,n.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&b.Capabilities.encode(e.userCapabilities,n.uint32(194).fork()).ldelim(),n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},C);for(a.item=[],a.recommendations=[];r.pos>>3){case 1:a.item.push(t.Item.decode(r,r.uint32()));break;case 2:a.playlist=t.Playlist.decode(r,r.uint32());break;case 3:a.unfilteredLength=r.uint32();break;case 4:a.unrangedLength=r.uint32();break;case 5:a.duration=P(r.uint64());break;case 6:a.loadingContents=r.bool();break;case 7:a.lastModification=P(r.uint64());break;case 8:a.numFollowers=r.uint32();break;case 9:a.playable=r.bool();break;case 10:a.recommendations.push(t.RecommendationItem.decode(r,r.uint32()));break;case 11:a.hasExplicitContent=r.bool();break;case 12:a.containsSpotifyTracks=r.bool();break;case 13:a.containsEpisodes=r.bool();break;case 14:a.onlyContainsExplicit=r.bool();break;case 15:a.containsAudioEpisodes=r.bool();break;case 16:a.containsTracks=r.bool();break;case 17:a.isOnDemandInFree=r.bool();break;case 18:a.numberOfTracks=r.uint32();break;case 19:a.numberOfEpisodes=r.uint32();break;case 20:a.preferLinearPlayback=r.bool();break;case 21:a.onDemandInFreeReason=r.int32();break;case 22:a.collaborators=t.Collaborators.decode(r,r.uint32());break;case 23:a.basePermission=b.Permission.decode(r,r.uint32());break;case 24:a.userCapabilities=b.Capabilities.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},C);if(n.item=[],n.recommendations=[],void 0!==e.item&&null!==e.item)for(const r of e.item)n.item.push(t.Item.fromJSON(r));if(void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromJSON(e.playlist):n.playlist=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=Number(e.unfilteredLength):n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=Number(e.unrangedLength):n.unrangedLength=0,void 0!==e.duration&&null!==e.duration?n.duration=String(e.duration):n.duration="0",void 0!==e.loadingContents&&null!==e.loadingContents?n.loadingContents=Boolean(e.loadingContents):n.loadingContents=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=String(e.lastModification):n.lastModification="0",void 0!==e.numFollowers&&null!==e.numFollowers?n.numFollowers=Number(e.numFollowers):n.numFollowers=0,void 0!==e.playable&&null!==e.playable?n.playable=Boolean(e.playable):n.playable=!1,void 0!==e.recommendations&&null!==e.recommendations)for(const r of e.recommendations)n.recommendations.push(t.RecommendationItem.fromJSON(r));return void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=Boolean(e.hasExplicitContent):n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=Boolean(e.containsSpotifyTracks):n.containsSpotifyTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=Boolean(e.containsEpisodes):n.containsEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=Boolean(e.onlyContainsExplicit):n.onlyContainsExplicit=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=Boolean(e.containsAudioEpisodes):n.containsAudioEpisodes=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=Boolean(e.containsTracks):n.containsTracks=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=Boolean(e.isOnDemandInFree):n.isOnDemandInFree=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=Number(e.numberOfTracks):n.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=Number(e.numberOfEpisodes):n.numberOfEpisodes=0,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=Boolean(e.preferLinearPlayback):n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=c.onDemandInFreeReasonFromJSON(e.onDemandInFreeReason):n.onDemandInFreeReason=0,void 0!==e.collaborators&&null!==e.collaborators?n.collaborators=t.Collaborators.fromJSON(e.collaborators):n.collaborators=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=b.Permission.fromJSON(e.basePermission):n.basePermission=void 0,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=b.Capabilities.fromJSON(e.userCapabilities):n.userCapabilities=void 0,n},toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.playlist&&(n.playlist=e.playlist?t.Playlist.toJSON(e.playlist):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(n.unrangedLength=e.unrangedLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.numFollowers&&(n.numFollowers=e.numFollowers),void 0!==e.playable&&(n.playable=e.playable),e.recommendations?n.recommendations=e.recommendations.map((e=>e?t.RecommendationItem.toJSON(e):void 0)):n.recommendations=[],void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=c.onDemandInFreeReasonToJSON(e.onDemandInFreeReason)),void 0!==e.collaborators&&(n.collaborators=e.collaborators?t.Collaborators.toJSON(e.collaborators):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission?b.Permission.toJSON(e.basePermission):void 0),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities?b.Capabilities.toJSON(e.userCapabilities):void 0),n},fromPartial(e){const n=o({},C);if(n.item=[],n.recommendations=[],void 0!==e.item&&null!==e.item)for(const r of e.item)n.item.push(t.Item.fromPartial(r));if(void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromPartial(e.playlist):n.playlist=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=e.unfilteredLength:n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=e.unrangedLength:n.unrangedLength=0,void 0!==e.duration&&null!==e.duration?n.duration=e.duration:n.duration="0",void 0!==e.loadingContents&&null!==e.loadingContents?n.loadingContents=e.loadingContents:n.loadingContents=!1,void 0!==e.lastModification&&null!==e.lastModification?n.lastModification=e.lastModification:n.lastModification="0",void 0!==e.numFollowers&&null!==e.numFollowers?n.numFollowers=e.numFollowers:n.numFollowers=0,void 0!==e.playable&&null!==e.playable?n.playable=e.playable:n.playable=!1,void 0!==e.recommendations&&null!==e.recommendations)for(const r of e.recommendations)n.recommendations.push(t.RecommendationItem.fromPartial(r));return void 0!==e.hasExplicitContent&&null!==e.hasExplicitContent?n.hasExplicitContent=e.hasExplicitContent:n.hasExplicitContent=!1,void 0!==e.containsSpotifyTracks&&null!==e.containsSpotifyTracks?n.containsSpotifyTracks=e.containsSpotifyTracks:n.containsSpotifyTracks=!1,void 0!==e.containsEpisodes&&null!==e.containsEpisodes?n.containsEpisodes=e.containsEpisodes:n.containsEpisodes=!1,void 0!==e.onlyContainsExplicit&&null!==e.onlyContainsExplicit?n.onlyContainsExplicit=e.onlyContainsExplicit:n.onlyContainsExplicit=!1,void 0!==e.containsAudioEpisodes&&null!==e.containsAudioEpisodes?n.containsAudioEpisodes=e.containsAudioEpisodes:n.containsAudioEpisodes=!1,void 0!==e.containsTracks&&null!==e.containsTracks?n.containsTracks=e.containsTracks:n.containsTracks=!1,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?n.isOnDemandInFree=e.isOnDemandInFree:n.isOnDemandInFree=!1,void 0!==e.numberOfTracks&&null!==e.numberOfTracks?n.numberOfTracks=e.numberOfTracks:n.numberOfTracks=0,void 0!==e.numberOfEpisodes&&null!==e.numberOfEpisodes?n.numberOfEpisodes=e.numberOfEpisodes:n.numberOfEpisodes=0,void 0!==e.preferLinearPlayback&&null!==e.preferLinearPlayback?n.preferLinearPlayback=e.preferLinearPlayback:n.preferLinearPlayback=!1,void 0!==e.onDemandInFreeReason&&null!==e.onDemandInFreeReason?n.onDemandInFreeReason=e.onDemandInFreeReason:n.onDemandInFreeReason=0,void 0!==e.collaborators&&null!==e.collaborators?n.collaborators=t.Collaborators.fromPartial(e.collaborators):n.collaborators=void 0,void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=b.Permission.fromPartial(e.basePermission):n.basePermission=void 0,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=b.Capabilities.fromPartial(e.userCapabilities):n.userCapabilities=void 0,n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},19766:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(16).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.permissionLevel=n.int32();break;case 2:i.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=c.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=Number(e.timeoutMs):t.timeoutMs=0,t},toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=c.permissionLevelToJSON(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=e.timeoutMs),t},fromPartial(e){const t=o({},u);return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=e.timeoutMs:t.timeoutMs=0,t}};const d={};t.SetBasePermissionResponse={encode:(e,t=l.default.Writer.create())=>(void 0!==e.basePermission&&c.Permission.encode(e.basePermission,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3==1)i.basePermission=c.Permission.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){const t=o({},d);return void 0!==e.basePermission&&null!==e.basePermission?t.basePermission=c.Permission.fromJSON(e.basePermission):t.basePermission=void 0,t},toJSON(e){const t={};return void 0!==e.basePermission&&(t.basePermission=e.basePermission?c.Permission.toJSON(e.basePermission):void 0),t},fromPartial(e){const t=o({},d);return void 0!==e.basePermission&&null!==e.basePermission?t.basePermission=c.Permission.fromPartial(e.basePermission):t.basePermission=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},15084:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),!0===e.canAddToCollection&&t.uint32(16).bool(e.canAddToCollection),!0===e.isBanned&&t.uint32(24).bool(e.isBanned),!0===e.canBan&&t.uint32(32).bool(e.canBan),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.isInCollection=n.bool();break;case 2:i.canAddToCollection=n.bool();break;case 3:i.isBanned=n.bool();break;case 4:i.canBan=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=Boolean(e.isInCollection):t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=Boolean(e.canAddToCollection):t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=Boolean(e.isBanned):t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=Boolean(e.canBan):t.canBan=!1,t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.canAddToCollection&&(t.canAddToCollection=e.canAddToCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t=o({},c);return void 0!==e.isInCollection&&null!==e.isInCollection?t.isInCollection=e.isInCollection:t.isInCollection=!1,void 0!==e.canAddToCollection&&null!==e.canAddToCollection?t.canAddToCollection=e.canAddToCollection:t.canAddToCollection=!1,void 0!==e.isBanned&&null!==e.isBanned?t.isBanned=e.isBanned:t.isBanned=!1,void 0!==e.canBan&&null!==e.canBan?t.canBan=e.canBan:t.canBan=!1,t}};const u={offline:""};t.TrackOfflineState={encode:(e,t=l.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3==1)i.offline=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},u);return void 0!==e.offline&&null!==e.offline?t.offline=String(e.offline):t.offline="",t},toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t=o({},u);return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},54918:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.link&&t.uint32(10).string(e.link),""!==e.username&&t.uint32(18).string(e.username),""!==e.displayName&&t.uint32(26).string(e.displayName),""!==e.imageUri&&t.uint32(34).string(e.imageUri),""!==e.thumbnailUri&&t.uint32(42).string(e.thumbnailUri),0!==e.color&&t.uint32(48).int32(e.color),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.username=n.string();break;case 3:i.displayName=n.string();break;case 4:i.imageUri=n.string();break;case 5:i.thumbnailUri=n.string();break;case 6:i.color=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.link&&null!==e.link?t.link=String(e.link):t.link="",void 0!==e.username&&null!==e.username?t.username=String(e.username):t.username="",void 0!==e.displayName&&null!==e.displayName?t.displayName=String(e.displayName):t.displayName="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=String(e.imageUri):t.imageUri="",void 0!==e.thumbnailUri&&null!==e.thumbnailUri?t.thumbnailUri=String(e.thumbnailUri):t.thumbnailUri="",void 0!==e.color&&null!==e.color?t.color=Number(e.color):t.color=0,t},toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.username&&(t.username=e.username),void 0!==e.displayName&&(t.displayName=e.displayName),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.thumbnailUri&&(t.thumbnailUri=e.thumbnailUri),void 0!==e.color&&(t.color=e.color),t},fromPartial(e){const t=o({},c);return void 0!==e.link&&null!==e.link?t.link=e.link:t.link="",void 0!==e.username&&null!==e.username?t.username=e.username:t.username="",void 0!==e.displayName&&null!==e.displayName?t.displayName=e.displayName:t.displayName="",void 0!==e.imageUri&&null!==e.imageUri?t.imageUri=e.imageUri:t.imageUri="",void 0!==e.thumbnailUri&&null!==e.thumbnailUri?t.thumbnailUri=e.thumbnailUri:t.thumbnailUri="",void 0!==e.color&&null!==e.color?t.color=e.color:t.color=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},50058:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.type&&t.uint32(8).int32(e.type),0!==e.index&&t.uint32(16).uint32(e.index),0!==e.length&&t.uint32(24).uint32(e.length),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.type=n.int32();break;case 2:i.index=n.uint32();break;case 3:i.length=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.type&&null!==e.type?t.type=u(e.type):t.type=0,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.length&&null!==e.length?t.length=Number(e.length):t.length=0,t},toJSON(e){const t={};return void 0!==e.type&&(t.type=d(e.type)),void 0!==e.index&&(t.index=e.index),void 0!==e.length&&(t.length=e.length),t},fromPartial(e){const t=o({},p);return void 0!==e.type&&null!==e.type?t.type=e.type:t.type=0,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},69163:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&c.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&c.PlaylistOfflineState.encode(e.playlistOfflineState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),!0===e.isOnDemandInFree&&t.uint32(40).bool(e.isOnDemandInFree),""!==e.groupLabel&&t.uint32(50).string(e.groupLabel),void 0!==e.capabilities&&u.Capabilities.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},f);for(;n.pos>>3){case 1:i.rowId=n.string();break;case 2:i.playlistMetadata=c.PlaylistMetadata.decode(n,n.uint32());break;case 3:i.playlistOfflineState=c.PlaylistOfflineState.decode(n,n.uint32());break;case 4:i.addTime=n.uint32();break;case 5:i.isOnDemandInFree=n.bool();break;case 6:i.groupLabel=n.string();break;case 7:i.capabilities=u.Capabilities.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},f);return void 0!==e.rowId&&null!==e.rowId?t.rowId=String(e.rowId):t.rowId="",void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=c.PlaylistMetadata.fromJSON(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=c.PlaylistOfflineState.fromJSON(e.playlistOfflineState):t.playlistOfflineState=void 0,void 0!==e.addTime&&null!==e.addTime?t.addTime=Number(e.addTime):t.addTime=0,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?t.isOnDemandInFree=Boolean(e.isOnDemandInFree):t.isOnDemandInFree=!1,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=String(e.groupLabel):t.groupLabel="",void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=u.Capabilities.fromJSON(e.capabilities):t.capabilities=void 0,t},toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?c.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?c.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.isOnDemandInFree&&(t.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.capabilities&&(t.capabilities=e.capabilities?u.Capabilities.toJSON(e.capabilities):void 0),t},fromPartial(e){const t=o({},f);return void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId="",void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=c.PlaylistMetadata.fromPartial(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=c.PlaylistOfflineState.fromPartial(e.playlistOfflineState):t.playlistOfflineState=void 0,void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=0,void 0!==e.isOnDemandInFree&&null!==e.isOnDemandInFree?t.isOnDemandInFree=e.isOnDemandInFree:t.isOnDemandInFree=!1,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel="",void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=u.Capabilities.fromPartial(e.capabilities):t.capabilities=void 0,t}};const h={headerField:""};t.Item={encode:(e,n=l.default.Writer.create())=>(""!==e.headerField&&n.uint32(10).string(e.headerField),void 0!==e.folder&&t.Folder.encode(e.folder,n.uint32(18).fork()).ldelim(),void 0!==e.playlist&&t.Playlist.encode(e.playlist,n.uint32(26).fork()).ldelim(),void 0!==e.delta&&d.Delta.encode(e.delta,n.uint32(34).fork()).ldelim(),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},h);for(;r.pos>>3){case 1:a.headerField=r.string();break;case 2:a.folder=t.Folder.decode(r,r.uint32());break;case 3:a.playlist=t.Playlist.decode(r,r.uint32());break;case 4:a.delta=d.Delta.decode(r,r.uint32());break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},h);return void 0!==e.headerField&&null!==e.headerField?n.headerField=String(e.headerField):n.headerField="",void 0!==e.folder&&null!==e.folder?n.folder=t.Folder.fromJSON(e.folder):n.folder=void 0,void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromJSON(e.playlist):n.playlist=void 0,void 0!==e.delta&&null!==e.delta?n.delta=d.Delta.fromJSON(e.delta):n.delta=void 0,n},toJSON(e){const n={};return void 0!==e.headerField&&(n.headerField=e.headerField),void 0!==e.folder&&(n.folder=e.folder?t.Folder.toJSON(e.folder):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.Playlist.toJSON(e.playlist):void 0),void 0!==e.delta&&(n.delta=e.delta?d.Delta.toJSON(e.delta):void 0),n},fromPartial(e){const n=o({},h);return void 0!==e.headerField&&null!==e.headerField?n.headerField=e.headerField:n.headerField="",void 0!==e.folder&&null!==e.folder?n.folder=t.Folder.fromPartial(e.folder):n.folder=void 0,void 0!==e.playlist&&null!==e.playlist?n.playlist=t.Playlist.fromPartial(e.playlist):n.playlist=void 0,void 0!==e.delta&&null!==e.delta?n.delta=d.Delta.fromPartial(e.delta):n.delta=void 0,n}};const v={rowId:"",addTime:0,groupLabel:""};t.Folder={encode(e,n=l.default.Writer.create()){for(const r of e.item)t.Item.encode(r,n.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&p.FolderMetadata.encode(e.folderMetadata,n.uint32(18).fork()).ldelim(),""!==e.rowId&&n.uint32(26).string(e.rowId),0!==e.addTime&&n.uint32(32).uint32(e.addTime),""!==e.groupLabel&&n.uint32(42).string(e.groupLabel),n},decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},v);for(a.item=[];r.pos>>3){case 1:a.item.push(t.Item.decode(r,r.uint32()));break;case 2:a.folderMetadata=p.FolderMetadata.decode(r,r.uint32());break;case 3:a.rowId=r.string();break;case 4:a.addTime=r.uint32();break;case 5:a.groupLabel=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},v);if(n.item=[],void 0!==e.item&&null!==e.item)for(const r of e.item)n.item.push(t.Item.fromJSON(r));return void 0!==e.folderMetadata&&null!==e.folderMetadata?n.folderMetadata=p.FolderMetadata.fromJSON(e.folderMetadata):n.folderMetadata=void 0,void 0!==e.rowId&&null!==e.rowId?n.rowId=String(e.rowId):n.rowId="",void 0!==e.addTime&&null!==e.addTime?n.addTime=Number(e.addTime):n.addTime=0,void 0!==e.groupLabel&&null!==e.groupLabel?n.groupLabel=String(e.groupLabel):n.groupLabel="",n},toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],void 0!==e.folderMetadata&&(n.folderMetadata=e.folderMetadata?p.FolderMetadata.toJSON(e.folderMetadata):void 0),void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.addTime&&(n.addTime=e.addTime),void 0!==e.groupLabel&&(n.groupLabel=e.groupLabel),n},fromPartial(e){const n=o({},v);if(n.item=[],void 0!==e.item&&null!==e.item)for(const r of e.item)n.item.push(t.Item.fromPartial(r));return void 0!==e.folderMetadata&&null!==e.folderMetadata?n.folderMetadata=p.FolderMetadata.fromPartial(e.folderMetadata):n.folderMetadata=void 0,void 0!==e.rowId&&null!==e.rowId?n.rowId=e.rowId:n.rowId="",void 0!==e.addTime&&null!==e.addTime?n.addTime=e.addTime:n.addTime=0,void 0!==e.groupLabel&&null!==e.groupLabel?n.groupLabel=e.groupLabel:n.groupLabel="",n}};const m={unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};t.Response={encode:(e,n=l.default.Writer.create())=>(void 0!==e.root&&t.Folder.encode(e.root,n.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(16).int32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(24).int32(e.unrangedLength),!0===e.isLoadingContents&&n.uint32(32).bool(e.isLoadingContents),n),decode(e,n){const r=e instanceof l.default.Reader?e:new l.default.Reader(e);let i=void 0===n?r.len:r.pos+n;const a=o({},m);for(;r.pos>>3){case 1:a.root=t.Folder.decode(r,r.uint32());break;case 2:a.unfilteredLength=r.int32();break;case 3:a.unrangedLength=r.int32();break;case 4:a.isLoadingContents=r.bool();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=o({},m);return void 0!==e.root&&null!==e.root?n.root=t.Folder.fromJSON(e.root):n.root=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=Number(e.unfilteredLength):n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=Number(e.unrangedLength):n.unrangedLength=0,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?n.isLoadingContents=Boolean(e.isLoadingContents):n.isLoadingContents=!1,n},toJSON(e){const n={};return void 0!==e.root&&(n.root=e.root?t.Folder.toJSON(e.root):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=e.unfilteredLength),void 0!==e.unrangedLength&&(n.unrangedLength=e.unrangedLength),void 0!==e.isLoadingContents&&(n.isLoadingContents=e.isLoadingContents),n},fromPartial(e){const n=o({},m);return void 0!==e.root&&null!==e.root?n.root=t.Folder.fromPartial(e.root):n.root=void 0,void 0!==e.unfilteredLength&&null!==e.unfilteredLength?n.unfilteredLength=e.unfilteredLength:n.unfilteredLength=0,void 0!==e.unrangedLength&&null!==e.unrangedLength?n.unrangedLength=e.unrangedLength:n.unrangedLength=0,void 0!==e.isLoadingContents&&null!==e.isLoadingContents?n.isLoadingContents=e.isLoadingContents:n.isLoadingContents=!1,n}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},62795:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.playlistUri&&t.uint32(10).string(e.playlistUri),""!==e.username&&t.uint32(18).string(e.username),0!==e.permissionLevel&&t.uint32(24).int32(e.permissionLevel),0!==e.timeoutMs&&t.uint32(32).uint32(e.timeoutMs),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.playlistUri=n.string();break;case 2:i.username=n.string();break;case 3:i.permissionLevel=n.int32();break;case 4:i.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.playlistUri&&null!==e.playlistUri?t.playlistUri=String(e.playlistUri):t.playlistUri="",void 0!==e.username&&null!==e.username?t.username=String(e.username):t.username="",void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=c.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=Number(e.timeoutMs):t.timeoutMs=0,t},toJSON(e){const t={};return void 0!==e.playlistUri&&(t.playlistUri=e.playlistUri),void 0!==e.username&&(t.username=e.username),void 0!==e.permissionLevel&&(t.permissionLevel=c.permissionLevelToJSON(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=e.timeoutMs),t},fromPartial(e){const t=o({},u);return void 0!==e.playlistUri&&null!==e.playlistUri?t.playlistUri=e.playlistUri:t.playlistUri="",void 0!==e.username&&null!==e.username?t.username=e.username:t.username="",void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,void 0!==e.timeoutMs&&null!==e.timeoutMs?t.timeoutMs=e.timeoutMs:t.timeoutMs=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},80277:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(""!==e.offlineState&&t.uint32(10).string(e.offlineState),0!==e.syncProgress&&t.uint32(16).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(;n.pos>>3){case 1:i.offlineState=n.string();break;case 2:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},c);return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=String(e.offlineState):t.offlineState="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=Number(e.syncProgress):t.syncProgress=0,t},toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=e.syncProgress),t},fromPartial(e){const t=o({},c);return void 0!==e.offlineState&&null!==e.offlineState?t.offlineState=e.offlineState:t.offlineState="",void 0!==e.syncProgress&&null!==e.syncProgress?t.syncProgress=e.syncProgress:t.syncProgress=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},17005:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t>>3==1)i.playlistUris.push(n.string());else n.skipType(7&e)}return i},fromJSON(e){const t=o({},c);if(t.playlistUris=[],void 0!==e.playlistUris&&null!==e.playlistUris)for(const n of e.playlistUris)t.playlistUris.push(String(n));return t},toJSON(e){const t={};return e.playlistUris?t.playlistUris=e.playlistUris.map((e=>e)):t.playlistUris=[],t},fromPartial(e){const t=o({},c);if(t.playlistUris=[],void 0!==e.playlistUris&&null!==e.playlistUris)for(const n of e.playlistUris)t.playlistUris.push(n);return t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},8821:(e,t,n)=>{"use strict";n.d(t,{wm:()=>ne,B3:()=>he,ck:()=>C,_c:()=>_,ow:()=>ue,Op:()=>ee,Sh:()=>E,hA:()=>pe,rf:()=>S});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t>>3){case 1:i.canView=n.bool();break;case 2:i.canAdministratePermissions=n.bool();break;case 3:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.posf(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),t},fromPartial(e){const t=u({},h);if(t.grantableLevel=[],void 0!==e.canView&&null!==e.canView?t.canView=e.canView:t.canView=!1,void 0!==e.canAdministratePermissions&&null!==e.canAdministratePermissions?t.canAdministratePermissions=e.canAdministratePermissions:t.canAdministratePermissions=!1,void 0!==e.grantableLevel&&null!==e.grantableLevel)for(const n of e.grantableLevel)t.grantableLevel.push(n);return void 0!==e.canEditMetadata&&null!==e.canEditMetadata?t.canEditMetadata=e.canEditMetadata:t.canEditMetadata=!1,void 0!==e.canEditItems&&null!==e.canEditItems?t.canEditItems=e.canEditItems:t.canEditItems=!1,t}};var m=(()=>{if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();m.atob;m.btoa;function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.attributes&&F.encode(e.attributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},A);for(;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.attributes=F.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},A);return void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",void 0!==e.attributes&&null!==e.attributes?t.attributes=F.fromJSON(e.attributes):t.attributes=void 0,t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.attributes&&(t.attributes=e.attributes?F.toJSON(e.attributes):void 0),t},fromPartial(e){const t=y({},A);return void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",void 0!==e.attributes&&null!==e.attributes?t.attributes=F.fromPartial(e.attributes):t.attributes=void 0,t}},P={length:0,timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1},I={encode:(e,t=l().Writer.create())=>(0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.attributes&&x.encode(e.attributes,t.uint32(18).fork()).ldelim(),0!==e.length&&t.uint32(24).int32(e.length),"0"!==e.timestamp&&t.uint32(32).int64(e.timestamp),""!==e.ownerUsername&&t.uint32(42).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(48).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&v.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},P);for(i.revision=new Uint8Array;n.pos>>3){case 1:i.revision=n.bytes();break;case 2:i.attributes=x.decode(n,n.uint32());break;case 3:i.length=n.int32();break;case 4:i.timestamp=be(n.int64());break;case 5:i.ownerUsername=n.string();break;case 6:i.abuseReportingEnabled=n.bool();break;case 7:i.capabilities=v.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},P);return t.revision=new Uint8Array,void 0!==e.revision&&null!==e.revision&&(t.revision=ge(e.revision)),void 0!==e.attributes&&null!==e.attributes?t.attributes=x.fromJSON(e.attributes):t.attributes=void 0,void 0!==e.length&&null!==e.length?t.length=Number(e.length):t.length=0,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=String(e.timestamp):t.timestamp="0",void 0!==e.ownerUsername&&null!==e.ownerUsername?t.ownerUsername=String(e.ownerUsername):t.ownerUsername="",void 0!==e.abuseReportingEnabled&&null!==e.abuseReportingEnabled?t.abuseReportingEnabled=Boolean(e.abuseReportingEnabled):t.abuseReportingEnabled=!1,void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=v.fromJSON(e.capabilities):t.capabilities=void 0,t},toJSON(e){const t={};return void 0!==e.revision&&(t.revision=_e(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.attributes&&(t.attributes=e.attributes?x.toJSON(e.attributes):void 0),void 0!==e.length&&(t.length=e.length),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.ownerUsername&&(t.ownerUsername=e.ownerUsername),void 0!==e.abuseReportingEnabled&&(t.abuseReportingEnabled=e.abuseReportingEnabled),void 0!==e.capabilities&&(t.capabilities=e.capabilities?v.toJSON(e.capabilities):void 0),t},fromPartial(e){const t=y({},P);return void 0!==e.revision&&null!==e.revision?t.revision=e.revision:t.revision=new Uint8Array,void 0!==e.attributes&&null!==e.attributes?t.attributes=x.fromPartial(e.attributes):t.attributes=void 0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp="0",void 0!==e.ownerUsername&&null!==e.ownerUsername?t.ownerUsername=e.ownerUsername:t.ownerUsername="",void 0!==e.abuseReportingEnabled&&null!==e.abuseReportingEnabled?t.abuseReportingEnabled=e.abuseReportingEnabled:t.abuseReportingEnabled=!1,void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=v.fromPartial(e.capabilities):t.capabilities=void 0,t}},R={pos:0,truncated:!1},N={encode(e,t=l().Writer.create()){0!==e.pos&&t.uint32(8).int32(e.pos),!0===e.truncated&&t.uint32(16).bool(e.truncated);for(const n of e.items)C.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.metaItems)I.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},R);for(i.items=[],i.metaItems=[];n.pos>>3){case 1:i.pos=n.int32();break;case 2:i.truncated=n.bool();break;case 3:i.items.push(C.decode(n,n.uint32()));break;case 4:i.metaItems.push(I.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},R);if(t.items=[],t.metaItems=[],void 0!==e.pos&&null!==e.pos?t.pos=Number(e.pos):t.pos=0,void 0!==e.truncated&&null!==e.truncated?t.truncated=Boolean(e.truncated):t.truncated=!1,void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(C.fromJSON(n));if(void 0!==e.metaItems&&null!==e.metaItems)for(const n of e.metaItems)t.metaItems.push(I.fromJSON(n));return t},toJSON(e){const t={};return void 0!==e.pos&&(t.pos=e.pos),void 0!==e.truncated&&(t.truncated=e.truncated),e.items?t.items=e.items.map((e=>e?C.toJSON(e):void 0)):t.items=[],e.metaItems?t.metaItems=e.metaItems.map((e=>e?I.toJSON(e):void 0)):t.metaItems=[],t},fromPartial(e){const t=y({},R);if(t.items=[],t.metaItems=[],void 0!==e.pos&&null!==e.pos?t.pos=e.pos:t.pos=0,void 0!==e.truncated&&null!==e.truncated?t.truncated=e.truncated:t.truncated=!1,void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(C.fromPartial(n));if(void 0!==e.metaItems&&null!==e.metaItems)for(const n of e.metaItems)t.metaItems.push(I.fromPartial(n));return t}},k={key:"",value:""},L={encode:(e,t=l().Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},k);for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},k);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){const t=y({},k);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}},w={targetName:"",url:""},D={encode:(e,t=l().Writer.create())=>(""!==e.targetName&&t.uint32(10).string(e.targetName),""!==e.url&&t.uint32(18).string(e.url),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},w);for(;n.pos>>3){case 1:i.targetName=n.string();break;case 2:i.url=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},w);return void 0!==e.targetName&&null!==e.targetName?t.targetName=String(e.targetName):t.targetName="",void 0!==e.url&&null!==e.url?t.url=String(e.url):t.url="",t},toJSON(e){const t={};return void 0!==e.targetName&&(t.targetName=e.targetName),void 0!==e.url&&(t.url=e.url),t},fromPartial(e){const t=y({},w);return void 0!==e.targetName&&null!==e.targetName?t.targetName=e.targetName:t.targetName="",void 0!==e.url&&null!==e.url?t.url=e.url:t.url="",t}},M={name:"",description:"",collaborative:!1,pl3Version:"",deletedByOwner:!1,clientId:"",format:""},x={encode(e,t=l().Writer.create()){""!==e.name&&t.uint32(10).string(e.name),""!==e.description&&t.uint32(18).string(e.description),0!==e.picture.length&&t.uint32(26).bytes(e.picture),!0===e.collaborative&&t.uint32(32).bool(e.collaborative),""!==e.pl3Version&&t.uint32(42).string(e.pl3Version),!0===e.deletedByOwner&&t.uint32(48).bool(e.deletedByOwner),""!==e.clientId&&t.uint32(82).string(e.clientId),""!==e.format&&t.uint32(90).string(e.format);for(const n of e.formatAttributes)L.encode(n,t.uint32(98).fork()).ldelim();for(const n of e.pictureSize)D.encode(n,t.uint32(106).fork()).ldelim();return t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},M);for(i.formatAttributes=[],i.pictureSize=[],i.picture=new Uint8Array;n.pos>>3){case 1:i.name=n.string();break;case 2:i.description=n.string();break;case 3:i.picture=n.bytes();break;case 4:i.collaborative=n.bool();break;case 5:i.pl3Version=n.string();break;case 6:i.deletedByOwner=n.bool();break;case 10:i.clientId=n.string();break;case 11:i.format=n.string();break;case 12:i.formatAttributes.push(L.decode(n,n.uint32()));break;case 13:i.pictureSize.push(D.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},M);if(t.formatAttributes=[],t.pictureSize=[],t.picture=new Uint8Array,void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.picture&&null!==e.picture&&(t.picture=ge(e.picture)),void 0!==e.collaborative&&null!==e.collaborative?t.collaborative=Boolean(e.collaborative):t.collaborative=!1,void 0!==e.pl3Version&&null!==e.pl3Version?t.pl3Version=String(e.pl3Version):t.pl3Version="",void 0!==e.deletedByOwner&&null!==e.deletedByOwner?t.deletedByOwner=Boolean(e.deletedByOwner):t.deletedByOwner=!1,void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.format&&null!==e.format?t.format=String(e.format):t.format="",void 0!==e.formatAttributes&&null!==e.formatAttributes)for(const n of e.formatAttributes)t.formatAttributes.push(L.fromJSON(n));if(void 0!==e.pictureSize&&null!==e.pictureSize)for(const n of e.pictureSize)t.pictureSize.push(D.fromJSON(n));return t},toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.picture&&(t.picture=_e(void 0!==e.picture?e.picture:new Uint8Array)),void 0!==e.collaborative&&(t.collaborative=e.collaborative),void 0!==e.pl3Version&&(t.pl3Version=e.pl3Version),void 0!==e.deletedByOwner&&(t.deletedByOwner=e.deletedByOwner),void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.format&&(t.format=e.format),e.formatAttributes?t.formatAttributes=e.formatAttributes.map((e=>e?L.toJSON(e):void 0)):t.formatAttributes=[],e.pictureSize?t.pictureSize=e.pictureSize.map((e=>e?D.toJSON(e):void 0)):t.pictureSize=[],t},fromPartial(e){const t=y({},M);if(t.formatAttributes=[],t.pictureSize=[],void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.picture&&null!==e.picture?t.picture=e.picture:t.picture=new Uint8Array,void 0!==e.collaborative&&null!==e.collaborative?t.collaborative=e.collaborative:t.collaborative=!1,void 0!==e.pl3Version&&null!==e.pl3Version?t.pl3Version=e.pl3Version:t.pl3Version="",void 0!==e.deletedByOwner&&null!==e.deletedByOwner?t.deletedByOwner=e.deletedByOwner:t.deletedByOwner=!1,void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.format&&null!==e.format?t.format=e.format:t.format="",void 0!==e.formatAttributes&&null!==e.formatAttributes)for(const n of e.formatAttributes)t.formatAttributes.push(L.fromPartial(n));if(void 0!==e.pictureSize&&null!==e.pictureSize)for(const n of e.pictureSize)t.pictureSize.push(D.fromPartial(n));return t}},U={addedBy:"",timestamp:"0",seenAt:"0",public:!1},F={encode(e,t=l().Writer.create()){""!==e.addedBy&&t.uint32(10).string(e.addedBy),"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),"0"!==e.seenAt&&t.uint32(72).int64(e.seenAt),!0===e.public&&t.uint32(80).bool(e.public);for(const n of e.formatAttributes)L.encode(n,t.uint32(90).fork()).ldelim();return 0!==e.itemId.length&&t.uint32(98).bytes(e.itemId),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},U);for(i.formatAttributes=[],i.itemId=new Uint8Array;n.pos>>3){case 1:i.addedBy=n.string();break;case 2:i.timestamp=be(n.int64());break;case 9:i.seenAt=be(n.int64());break;case 10:i.public=n.bool();break;case 11:i.formatAttributes.push(L.decode(n,n.uint32()));break;case 12:i.itemId=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},U);if(t.formatAttributes=[],t.itemId=new Uint8Array,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=String(e.addedBy):t.addedBy="",void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=String(e.timestamp):t.timestamp="0",void 0!==e.seenAt&&null!==e.seenAt?t.seenAt=String(e.seenAt):t.seenAt="0",void 0!==e.public&&null!==e.public?t.public=Boolean(e.public):t.public=!1,void 0!==e.formatAttributes&&null!==e.formatAttributes)for(const n of e.formatAttributes)t.formatAttributes.push(L.fromJSON(n));return void 0!==e.itemId&&null!==e.itemId&&(t.itemId=ge(e.itemId)),t},toJSON(e){const t={};return void 0!==e.addedBy&&(t.addedBy=e.addedBy),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.seenAt&&(t.seenAt=e.seenAt),void 0!==e.public&&(t.public=e.public),e.formatAttributes?t.formatAttributes=e.formatAttributes.map((e=>e?L.toJSON(e):void 0)):t.formatAttributes=[],void 0!==e.itemId&&(t.itemId=_e(void 0!==e.itemId?e.itemId:new Uint8Array)),t},fromPartial(e){const t=y({},U);if(t.formatAttributes=[],void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=e.addedBy:t.addedBy="",void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp="0",void 0!==e.seenAt&&null!==e.seenAt?t.seenAt=e.seenAt:t.seenAt="0",void 0!==e.public&&null!==e.public?t.public=e.public:t.public=!1,void 0!==e.formatAttributes&&null!==e.formatAttributes)for(const n of e.formatAttributes)t.formatAttributes.push(L.fromPartial(n));return void 0!==e.itemId&&null!==e.itemId?t.itemId=e.itemId:t.itemId=new Uint8Array,t}},z={fromIndex:0,addLast:!1,addFirst:!1},B={encode(e,t=l().Writer.create()){0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex);for(const n of e.items)C.encode(n,t.uint32(18).fork()).ldelim();return!0===e.addLast&&t.uint32(32).bool(e.addLast),!0===e.addFirst&&t.uint32(40).bool(e.addFirst),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},z);for(i.items=[];n.pos>>3){case 1:i.fromIndex=n.int32();break;case 2:i.items.push(C.decode(n,n.uint32()));break;case 4:i.addLast=n.bool();break;case 5:i.addFirst=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},z);if(t.items=[],void 0!==e.fromIndex&&null!==e.fromIndex?t.fromIndex=Number(e.fromIndex):t.fromIndex=0,void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(C.fromJSON(n));return void 0!==e.addLast&&null!==e.addLast?t.addLast=Boolean(e.addLast):t.addLast=!1,void 0!==e.addFirst&&null!==e.addFirst?t.addFirst=Boolean(e.addFirst):t.addFirst=!1,t},toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=e.fromIndex),e.items?t.items=e.items.map((e=>e?C.toJSON(e):void 0)):t.items=[],void 0!==e.addLast&&(t.addLast=e.addLast),void 0!==e.addFirst&&(t.addFirst=e.addFirst),t},fromPartial(e){const t=y({},z);if(t.items=[],void 0!==e.fromIndex&&null!==e.fromIndex?t.fromIndex=e.fromIndex:t.fromIndex=0,void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(C.fromPartial(n));return void 0!==e.addLast&&null!==e.addLast?t.addLast=e.addLast:t.addLast=!1,void 0!==e.addFirst&&null!==e.addFirst?t.addFirst=e.addFirst:t.addFirst=!1,t}},V={fromIndex:0,length:0,itemsAsKey:!1},j={encode(e,t=l().Writer.create()){0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),0!==e.length&&t.uint32(16).int32(e.length);for(const n of e.items)C.encode(n,t.uint32(26).fork()).ldelim();return!0===e.itemsAsKey&&t.uint32(56).bool(e.itemsAsKey),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},V);for(i.items=[];n.pos>>3){case 1:i.fromIndex=n.int32();break;case 2:i.length=n.int32();break;case 3:i.items.push(C.decode(n,n.uint32()));break;case 7:i.itemsAsKey=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},V);if(t.items=[],void 0!==e.fromIndex&&null!==e.fromIndex?t.fromIndex=Number(e.fromIndex):t.fromIndex=0,void 0!==e.length&&null!==e.length?t.length=Number(e.length):t.length=0,void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(C.fromJSON(n));return void 0!==e.itemsAsKey&&null!==e.itemsAsKey?t.itemsAsKey=Boolean(e.itemsAsKey):t.itemsAsKey=!1,t},toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=e.fromIndex),void 0!==e.length&&(t.length=e.length),e.items?t.items=e.items.map((e=>e?C.toJSON(e):void 0)):t.items=[],void 0!==e.itemsAsKey&&(t.itemsAsKey=e.itemsAsKey),t},fromPartial(e){const t=y({},V);if(t.items=[],void 0!==e.fromIndex&&null!==e.fromIndex?t.fromIndex=e.fromIndex:t.fromIndex=0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(C.fromPartial(n));return void 0!==e.itemsAsKey&&null!==e.itemsAsKey?t.itemsAsKey=e.itemsAsKey:t.itemsAsKey=!1,t}},H={fromIndex:0,length:0,toIndex:0},G={encode:(e,t=l().Writer.create())=>(0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),0!==e.length&&t.uint32(16).int32(e.length),0!==e.toIndex&&t.uint32(24).int32(e.toIndex),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},H);for(;n.pos>>3){case 1:i.fromIndex=n.int32();break;case 2:i.length=n.int32();break;case 3:i.toIndex=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},H);return void 0!==e.fromIndex&&null!==e.fromIndex?t.fromIndex=Number(e.fromIndex):t.fromIndex=0,void 0!==e.length&&null!==e.length?t.length=Number(e.length):t.length=0,void 0!==e.toIndex&&null!==e.toIndex?t.toIndex=Number(e.toIndex):t.toIndex=0,t},toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=e.fromIndex),void 0!==e.length&&(t.length=e.length),void 0!==e.toIndex&&(t.toIndex=e.toIndex),t},fromPartial(e){const t=y({},H);return void 0!==e.fromIndex&&null!==e.fromIndex?t.fromIndex=e.fromIndex:t.fromIndex=0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.toIndex&&null!==e.toIndex?t.toIndex=e.toIndex:t.toIndex=0,t}},q={noValue:0},K={encode(e,t=l().Writer.create()){void 0!==e.values&&F.encode(e.values,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.noValue)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},q);for(i.noValue=[];n.pos>>3){case 1:i.values=F.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.posfunction(e){switch(e){case b.ITEM_UNKNOWN:return"ITEM_UNKNOWN";case b.ITEM_ADDED_BY:return"ITEM_ADDED_BY";case b.ITEM_TIMESTAMP:return"ITEM_TIMESTAMP";case b.ITEM_SEEN_AT:return"ITEM_SEEN_AT";case b.ITEM_PUBLIC:return"ITEM_PUBLIC";case b.ITEM_FORMAT_ATTRIBUTES:return"ITEM_FORMAT_ATTRIBUTES";case b.ITEM_ID:return"ITEM_ID";default:return"UNKNOWN"}}(e))):t.noValue=[],t},fromPartial(e){const t=y({},q);if(t.noValue=[],void 0!==e.values&&null!==e.values?t.values=F.fromPartial(e.values):t.values=void 0,void 0!==e.noValue&&null!==e.noValue)for(const n of e.noValue)t.noValue.push(n);return t}},W={noValue:0},Y={encode(e,t=l().Writer.create()){void 0!==e.values&&x.encode(e.values,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.noValue)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},W);for(i.noValue=[];n.pos>>3){case 1:i.values=x.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.posfunction(e){switch(e){case _.LIST_UNKNOWN:return"LIST_UNKNOWN";case _.LIST_NAME:return"LIST_NAME";case _.LIST_DESCRIPTION:return"LIST_DESCRIPTION";case _.LIST_PICTURE:return"LIST_PICTURE";case _.LIST_COLLABORATIVE:return"LIST_COLLABORATIVE";case _.LIST_PL3_VERSION:return"LIST_PL3_VERSION";case _.LIST_DELETED_BY_OWNER:return"LIST_DELETED_BY_OWNER";case _.LIST_CLIENT_ID:return"LIST_CLIENT_ID";case _.LIST_FORMAT:return"LIST_FORMAT";case _.LIST_FORMAT_ATTRIBUTES:return"LIST_FORMAT_ATTRIBUTES";case _.LIST_PICTURE_SIZE:return"LIST_PICTURE_SIZE";default:return"UNKNOWN"}}(e))):t.noValue=[],t},fromPartial(e){const t=y({},W);if(t.noValue=[],void 0!==e.values&&null!==e.values?t.values=x.fromPartial(e.values):t.values=void 0,void 0!==e.noValue&&null!==e.noValue)for(const n of e.noValue)t.noValue.push(n);return t}},J={index:0},$={encode:(e,t=l().Writer.create())=>(0!==e.index&&t.uint32(8).int32(e.index),void 0!==e.newAttributes&&K.encode(e.newAttributes,t.uint32(18).fork()).ldelim(),void 0!==e.oldAttributes&&K.encode(e.oldAttributes,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},J);for(;n.pos>>3){case 1:i.index=n.int32();break;case 2:i.newAttributes=K.decode(n,n.uint32());break;case 3:i.oldAttributes=K.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},J);return void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.newAttributes&&null!==e.newAttributes?t.newAttributes=K.fromJSON(e.newAttributes):t.newAttributes=void 0,void 0!==e.oldAttributes&&null!==e.oldAttributes?t.oldAttributes=K.fromJSON(e.oldAttributes):t.oldAttributes=void 0,t},toJSON(e){const t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?K.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?K.toJSON(e.oldAttributes):void 0),t},fromPartial(e){const t=y({},J);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.newAttributes&&null!==e.newAttributes?t.newAttributes=K.fromPartial(e.newAttributes):t.newAttributes=void 0,void 0!==e.oldAttributes&&null!==e.oldAttributes?t.oldAttributes=K.fromPartial(e.oldAttributes):t.oldAttributes=void 0,t}},X={},Q={encode:(e,t=l().Writer.create())=>(void 0!==e.newAttributes&&Y.encode(e.newAttributes,t.uint32(10).fork()).ldelim(),void 0!==e.oldAttributes&&Y.encode(e.oldAttributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},X);for(;n.pos>>3){case 1:i.newAttributes=Y.decode(n,n.uint32());break;case 2:i.oldAttributes=Y.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},X);return void 0!==e.newAttributes&&null!==e.newAttributes?t.newAttributes=Y.fromJSON(e.newAttributes):t.newAttributes=void 0,void 0!==e.oldAttributes&&null!==e.oldAttributes?t.oldAttributes=Y.fromJSON(e.oldAttributes):t.oldAttributes=void 0,t},toJSON(e){const t={};return void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?Y.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?Y.toJSON(e.oldAttributes):void 0),t},fromPartial(e){const t=y({},X);return void 0!==e.newAttributes&&null!==e.newAttributes?t.newAttributes=Y.fromPartial(e.newAttributes):t.newAttributes=void 0,void 0!==e.oldAttributes&&null!==e.oldAttributes?t.oldAttributes=Y.fromPartial(e.oldAttributes):t.oldAttributes=void 0,t}},Z={kind:0},ee={encode:(e,t=l().Writer.create())=>(0!==e.kind&&t.uint32(8).int32(e.kind),void 0!==e.add&&B.encode(e.add,t.uint32(18).fork()).ldelim(),void 0!==e.rem&&j.encode(e.rem,t.uint32(26).fork()).ldelim(),void 0!==e.mov&&G.encode(e.mov,t.uint32(34).fork()).ldelim(),void 0!==e.updateItemAttributes&&$.encode(e.updateItemAttributes,t.uint32(42).fork()).ldelim(),void 0!==e.updateListAttributes&&Q.encode(e.updateListAttributes,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},Z);for(;n.pos>>3){case 1:i.kind=n.int32();break;case 2:i.add=B.decode(n,n.uint32());break;case 3:i.rem=j.decode(n,n.uint32());break;case 4:i.mov=G.decode(n,n.uint32());break;case 5:i.updateItemAttributes=$.decode(n,n.uint32());break;case 6:i.updateListAttributes=Q.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},Z);return void 0!==e.kind&&null!==e.kind?t.kind=function(e){switch(e){case 0:case"KIND_UNKNOWN":return E.KIND_UNKNOWN;case 2:case"ADD":return E.ADD;case 3:case"REM":return E.REM;case 4:case"MOV":return E.MOV;case 5:case"UPDATE_ITEM_ATTRIBUTES":return E.UPDATE_ITEM_ATTRIBUTES;case 6:case"UPDATE_LIST_ATTRIBUTES":return E.UPDATE_LIST_ATTRIBUTES;default:return E.UNRECOGNIZED}}(e.kind):t.kind=0,void 0!==e.add&&null!==e.add?t.add=B.fromJSON(e.add):t.add=void 0,void 0!==e.rem&&null!==e.rem?t.rem=j.fromJSON(e.rem):t.rem=void 0,void 0!==e.mov&&null!==e.mov?t.mov=G.fromJSON(e.mov):t.mov=void 0,void 0!==e.updateItemAttributes&&null!==e.updateItemAttributes?t.updateItemAttributes=$.fromJSON(e.updateItemAttributes):t.updateItemAttributes=void 0,void 0!==e.updateListAttributes&&null!==e.updateListAttributes?t.updateListAttributes=Q.fromJSON(e.updateListAttributes):t.updateListAttributes=void 0,t},toJSON(e){const t={};return void 0!==e.kind&&(t.kind=function(e){switch(e){case E.KIND_UNKNOWN:return"KIND_UNKNOWN";case E.ADD:return"ADD";case E.REM:return"REM";case E.MOV:return"MOV";case E.UPDATE_ITEM_ATTRIBUTES:return"UPDATE_ITEM_ATTRIBUTES";case E.UPDATE_LIST_ATTRIBUTES:return"UPDATE_LIST_ATTRIBUTES";default:return"UNKNOWN"}}(e.kind)),void 0!==e.add&&(t.add=e.add?B.toJSON(e.add):void 0),void 0!==e.rem&&(t.rem=e.rem?j.toJSON(e.rem):void 0),void 0!==e.mov&&(t.mov=e.mov?G.toJSON(e.mov):void 0),void 0!==e.updateItemAttributes&&(t.updateItemAttributes=e.updateItemAttributes?$.toJSON(e.updateItemAttributes):void 0),void 0!==e.updateListAttributes&&(t.updateListAttributes=e.updateListAttributes?Q.toJSON(e.updateListAttributes):void 0),t},fromPartial(e){const t=y({},Z);return void 0!==e.kind&&null!==e.kind?t.kind=e.kind:t.kind=0,void 0!==e.add&&null!==e.add?t.add=B.fromPartial(e.add):t.add=void 0,void 0!==e.rem&&null!==e.rem?t.rem=j.fromPartial(e.rem):t.rem=void 0,void 0!==e.mov&&null!==e.mov?t.mov=G.fromPartial(e.mov):t.mov=void 0,void 0!==e.updateItemAttributes&&null!==e.updateItemAttributes?t.updateItemAttributes=$.fromPartial(e.updateItemAttributes):t.updateItemAttributes=void 0,void 0!==e.updateListAttributes&&null!==e.updateListAttributes?t.updateListAttributes=Q.fromPartial(e.updateListAttributes):t.updateListAttributes=void 0,t}},te={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0},ne={encode:(e,t=l().Writer.create())=>(""!==e.user&&t.uint32(10).string(e.user),"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),!0===e.admin&&t.uint32(24).bool(e.admin),!0===e.undo&&t.uint32(32).bool(e.undo),!0===e.redo&&t.uint32(40).bool(e.redo),!0===e.merge&&t.uint32(48).bool(e.merge),!0===e.compressed&&t.uint32(56).bool(e.compressed),!0===e.migration&&t.uint32(64).bool(e.migration),0!==e.splitId&&t.uint32(72).int32(e.splitId),void 0!==e.source&&ie.encode(e.source,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},te);for(;n.pos>>3){case 1:i.user=n.string();break;case 2:i.timestamp=be(n.int64());break;case 3:i.admin=n.bool();break;case 4:i.undo=n.bool();break;case 5:i.redo=n.bool();break;case 6:i.merge=n.bool();break;case 7:i.compressed=n.bool();break;case 8:i.migration=n.bool();break;case 9:i.splitId=n.int32();break;case 10:i.source=ie.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},te);return void 0!==e.user&&null!==e.user?t.user=String(e.user):t.user="",void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=String(e.timestamp):t.timestamp="0",void 0!==e.admin&&null!==e.admin?t.admin=Boolean(e.admin):t.admin=!1,void 0!==e.undo&&null!==e.undo?t.undo=Boolean(e.undo):t.undo=!1,void 0!==e.redo&&null!==e.redo?t.redo=Boolean(e.redo):t.redo=!1,void 0!==e.merge&&null!==e.merge?t.merge=Boolean(e.merge):t.merge=!1,void 0!==e.compressed&&null!==e.compressed?t.compressed=Boolean(e.compressed):t.compressed=!1,void 0!==e.migration&&null!==e.migration?t.migration=Boolean(e.migration):t.migration=!1,void 0!==e.splitId&&null!==e.splitId?t.splitId=Number(e.splitId):t.splitId=0,void 0!==e.source&&null!==e.source?t.source=ie.fromJSON(e.source):t.source=void 0,t},toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.undo&&(t.undo=e.undo),void 0!==e.redo&&(t.redo=e.redo),void 0!==e.merge&&(t.merge=e.merge),void 0!==e.compressed&&(t.compressed=e.compressed),void 0!==e.migration&&(t.migration=e.migration),void 0!==e.splitId&&(t.splitId=e.splitId),void 0!==e.source&&(t.source=e.source?ie.toJSON(e.source):void 0),t},fromPartial(e){const t=y({},te);return void 0!==e.user&&null!==e.user?t.user=e.user:t.user="",void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp="0",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin=!1,void 0!==e.undo&&null!==e.undo?t.undo=e.undo:t.undo=!1,void 0!==e.redo&&null!==e.redo?t.redo=e.redo:t.redo=!1,void 0!==e.merge&&null!==e.merge?t.merge=e.merge:t.merge=!1,void 0!==e.compressed&&null!==e.compressed?t.compressed=e.compressed:t.compressed=!1,void 0!==e.migration&&null!==e.migration?t.migration=e.migration:t.migration=!1,void 0!==e.splitId&&null!==e.splitId?t.splitId=e.splitId:t.splitId=0,void 0!==e.source&&null!==e.source?t.source=ie.fromPartial(e.source):t.source=void 0,t}},re={client:0,app:"",source:"",version:""},ie={encode:(e,t=l().Writer.create())=>(0!==e.client&&t.uint32(8).int32(e.client),""!==e.app&&t.uint32(26).string(e.app),""!==e.source&&t.uint32(34).string(e.source),""!==e.version&&t.uint32(42).string(e.version),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},re);for(;n.pos>>3){case 1:i.client=n.int32();break;case 3:i.app=n.string();break;case 4:i.source=n.string();break;case 5:i.version=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},re);return void 0!==e.client&&null!==e.client?t.client=function(e){switch(e){case 0:case"CLIENT_UNKNOWN":return S.CLIENT_UNKNOWN;case 1:case"NATIVE_HERMES":return S.NATIVE_HERMES;case 2:case"CLIENT":return S.CLIENT;case 3:case"PYTHON":return S.PYTHON;case 4:case"JAVA":return S.JAVA;case 5:case"WEBPLAYER":return S.WEBPLAYER;case 6:case"LIBSPOTIFY":return S.LIBSPOTIFY;default:return S.UNRECOGNIZED}}(e.client):t.client=0,void 0!==e.app&&null!==e.app?t.app=String(e.app):t.app="",void 0!==e.source&&null!==e.source?t.source=String(e.source):t.source="",void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",t},toJSON(e){const t={};return void 0!==e.client&&(t.client=function(e){switch(e){case S.CLIENT_UNKNOWN:return"CLIENT_UNKNOWN";case S.NATIVE_HERMES:return"NATIVE_HERMES";case S.CLIENT:return"CLIENT";case S.PYTHON:return"PYTHON";case S.JAVA:return"JAVA";case S.WEBPLAYER:return"WEBPLAYER";case S.LIBSPOTIFY:return"LIBSPOTIFY";default:return"UNKNOWN"}}(e.client)),void 0!==e.app&&(t.app=e.app),void 0!==e.source&&(t.source=e.source),void 0!==e.version&&(t.version=e.version),t},fromPartial(e){const t=y({},re);return void 0!==e.client&&null!==e.client?t.client=e.client:t.client=0,void 0!==e.app&&null!==e.app?t.app=e.app:t.app="",void 0!==e.source&&null!==e.source?t.source=e.source:t.source="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",t}},oe={},ae={encode(e,t=l().Writer.create()){0!==e.baseVersion.length&&t.uint32(10).bytes(e.baseVersion);for(const n of e.ops)ee.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.info&&ne.encode(e.info,t.uint32(34).fork()).ldelim(),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},oe);for(i.ops=[],i.baseVersion=new Uint8Array;n.pos>>3){case 1:i.baseVersion=n.bytes();break;case 2:i.ops.push(ee.decode(n,n.uint32()));break;case 4:i.info=ne.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},oe);if(t.ops=[],t.baseVersion=new Uint8Array,void 0!==e.baseVersion&&null!==e.baseVersion&&(t.baseVersion=ge(e.baseVersion)),void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(ee.fromJSON(n));return void 0!==e.info&&null!==e.info?t.info=ne.fromJSON(e.info):t.info=void 0,t},toJSON(e){const t={};return void 0!==e.baseVersion&&(t.baseVersion=_e(void 0!==e.baseVersion?e.baseVersion:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?ee.toJSON(e):void 0)):t.ops=[],void 0!==e.info&&(t.info=e.info?ne.toJSON(e.info):void 0),t},fromPartial(e){const t=y({},oe);if(t.ops=[],void 0!==e.baseVersion&&null!==e.baseVersion?t.baseVersion=e.baseVersion:t.baseVersion=new Uint8Array,void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(ee.fromPartial(n));return void 0!==e.info&&null!==e.info?t.info=ne.fromPartial(e.info):t.info=void 0,t}},se={},le={encode(e,t=l().Writer.create()){0!==e.fromRevision.length&&t.uint32(10).bytes(e.fromRevision);for(const n of e.ops)ee.encode(n,t.uint32(18).fork()).ldelim();return 0!==e.toRevision.length&&t.uint32(26).bytes(e.toRevision),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},se);for(i.ops=[],i.fromRevision=new Uint8Array,i.toRevision=new Uint8Array;n.pos>>3){case 1:i.fromRevision=n.bytes();break;case 2:i.ops.push(ee.decode(n,n.uint32()));break;case 3:i.toRevision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},se);if(t.ops=[],t.fromRevision=new Uint8Array,t.toRevision=new Uint8Array,void 0!==e.fromRevision&&null!==e.fromRevision&&(t.fromRevision=ge(e.fromRevision)),void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(ee.fromJSON(n));return void 0!==e.toRevision&&null!==e.toRevision&&(t.toRevision=ge(e.toRevision)),t},toJSON(e){const t={};return void 0!==e.fromRevision&&(t.fromRevision=_e(void 0!==e.fromRevision?e.fromRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?ee.toJSON(e):void 0)):t.ops=[],void 0!==e.toRevision&&(t.toRevision=_e(void 0!==e.toRevision?e.toRevision:new Uint8Array)),t},fromPartial(e){const t=y({},se);if(t.ops=[],void 0!==e.fromRevision&&null!==e.fromRevision?t.fromRevision=e.fromRevision:t.fromRevision=new Uint8Array,void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(ee.fromPartial(n));return void 0!==e.toRevision&&null!==e.toRevision?t.toRevision=e.toRevision:t.toRevision=new Uint8Array,t}},ce={wantResultingRevisions:!1,wantSyncResult:!1,nonces:"0"},ue={encode(e,t=l().Writer.create()){0!==e.baseRevision.length&&t.uint32(10).bytes(e.baseRevision);for(const n of e.deltas)ae.encode(n,t.uint32(18).fork()).ldelim();!0===e.wantResultingRevisions&&t.uint32(24).bool(e.wantResultingRevisions),!0===e.wantSyncResult&&t.uint32(32).bool(e.wantSyncResult),t.uint32(50).fork();for(const n of e.nonces)t.int64(n);return t.ldelim(),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},ce);for(i.deltas=[],i.nonces=[],i.baseRevision=new Uint8Array;n.pos>>3){case 1:i.baseRevision=n.bytes();break;case 2:i.deltas.push(ae.decode(n,n.uint32()));break;case 3:i.wantResultingRevisions=n.bool();break;case 4:i.wantSyncResult=n.bool();break;case 6:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pose?ae.toJSON(e):void 0)):t.deltas=[],void 0!==e.wantResultingRevisions&&(t.wantResultingRevisions=e.wantResultingRevisions),void 0!==e.wantSyncResult&&(t.wantSyncResult=e.wantSyncResult),e.nonces?t.nonces=e.nonces.map((e=>e)):t.nonces=[],t},fromPartial(e){const t=y({},ce);if(t.deltas=[],t.nonces=[],void 0!==e.baseRevision&&null!==e.baseRevision?t.baseRevision=e.baseRevision:t.baseRevision=new Uint8Array,void 0!==e.deltas&&null!==e.deltas)for(const n of e.deltas)t.deltas.push(ae.fromPartial(n));if(void 0!==e.wantResultingRevisions&&null!==e.wantResultingRevisions?t.wantResultingRevisions=e.wantResultingRevisions:t.wantResultingRevisions=!1,void 0!==e.wantSyncResult&&null!==e.wantSyncResult?t.wantSyncResult=e.wantSyncResult:t.wantSyncResult=!1,void 0!==e.nonces&&null!==e.nonces)for(const n of e.nonces)t.nonces.push(n);return t}},de={length:0,multipleHeads:!1,upToDate:!1,nonces:"0",timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1},pe={encode(e,t=l().Writer.create()){0!==e.revision.length&&t.uint32(10).bytes(e.revision),0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.attributes&&x.encode(e.attributes,t.uint32(26).fork()).ldelim(),void 0!==e.contents&&N.encode(e.contents,t.uint32(42).fork()).ldelim(),void 0!==e.diff&&le.encode(e.diff,t.uint32(50).fork()).ldelim(),void 0!==e.syncResult&&le.encode(e.syncResult,t.uint32(58).fork()).ldelim();for(const n of e.resultingRevisions)t.uint32(66).bytes(n);!0===e.multipleHeads&&t.uint32(72).bool(e.multipleHeads),!0===e.upToDate&&t.uint32(80).bool(e.upToDate),t.uint32(114).fork();for(const n of e.nonces)t.int64(n);return t.ldelim(),"0"!==e.timestamp&&t.uint32(120).int64(e.timestamp),""!==e.ownerUsername&&t.uint32(130).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(136).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&v.encode(e.capabilities,t.uint32(146).fork()).ldelim(),t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},de);for(i.resultingRevisions=[],i.nonces=[],i.revision=new Uint8Array;n.pos>>3){case 1:i.revision=n.bytes();break;case 2:i.length=n.int32();break;case 3:i.attributes=x.decode(n,n.uint32());break;case 5:i.contents=N.decode(n,n.uint32());break;case 6:i.diff=le.decode(n,n.uint32());break;case 7:i.syncResult=le.decode(n,n.uint32());break;case 8:i.resultingRevisions.push(n.bytes());break;case 9:i.multipleHeads=n.bool();break;case 10:i.upToDate=n.bool();break;case 14:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos_e(void 0!==e?e:new Uint8Array))):t.resultingRevisions=[],void 0!==e.multipleHeads&&(t.multipleHeads=e.multipleHeads),void 0!==e.upToDate&&(t.upToDate=e.upToDate),e.nonces?t.nonces=e.nonces.map((e=>e)):t.nonces=[],void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.ownerUsername&&(t.ownerUsername=e.ownerUsername),void 0!==e.abuseReportingEnabled&&(t.abuseReportingEnabled=e.abuseReportingEnabled),void 0!==e.capabilities&&(t.capabilities=e.capabilities?v.toJSON(e.capabilities):void 0),t},fromPartial(e){const t=y({},de);if(t.resultingRevisions=[],t.nonces=[],void 0!==e.revision&&null!==e.revision?t.revision=e.revision:t.revision=new Uint8Array,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.attributes&&null!==e.attributes?t.attributes=x.fromPartial(e.attributes):t.attributes=void 0,void 0!==e.contents&&null!==e.contents?t.contents=N.fromPartial(e.contents):t.contents=void 0,void 0!==e.diff&&null!==e.diff?t.diff=le.fromPartial(e.diff):t.diff=void 0,void 0!==e.syncResult&&null!==e.syncResult?t.syncResult=le.fromPartial(e.syncResult):t.syncResult=void 0,void 0!==e.resultingRevisions&&null!==e.resultingRevisions)for(const n of e.resultingRevisions)t.resultingRevisions.push(n);if(void 0!==e.multipleHeads&&null!==e.multipleHeads?t.multipleHeads=e.multipleHeads:t.multipleHeads=!1,void 0!==e.upToDate&&null!==e.upToDate?t.upToDate=e.upToDate:t.upToDate=!1,void 0!==e.nonces&&null!==e.nonces)for(const n of e.nonces)t.nonces.push(n);return void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp="0",void 0!==e.ownerUsername&&null!==e.ownerUsername?t.ownerUsername=e.ownerUsername:t.ownerUsername="",void 0!==e.abuseReportingEnabled&&null!==e.abuseReportingEnabled?t.abuseReportingEnabled=e.abuseReportingEnabled:t.abuseReportingEnabled=!1,void 0!==e.capabilities&&null!==e.capabilities?t.capabilities=v.fromPartial(e.capabilities):t.capabilities=void 0,t}},fe={uri:""},he={encode:(e,t=l().Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=y({},fe);for(i.revision=new Uint8Array;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.revision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=y({},fe);return t.revision=new Uint8Array,void 0!==e.uri&&null!==e.uri?t.uri=String(e.uri):t.uri="",void 0!==e.revision&&null!==e.revision&&(t.revision=ge(e.revision)),t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.revision&&(t.revision=_e(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=y({},fe);return void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri="",void 0!==e.revision&&null!==e.revision?t.revision=e.revision:t.revision=new Uint8Array,t}};var ve=(()=>{if(void 0!==ve)return ve;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const me=ve.atob||(e=>ve.Buffer.from(e,"base64").toString("binary"));function ge(e){const t=me(e),n=new Uint8Array(t.length);for(let e=0;eve.Buffer.from(e,"binary").toString("base64"));function _e(e){const t=[];for(let n=0;n{"use strict";n.d(t,{bu:()=>v,mn:()=>f});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(8821);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t>>3){case 1:i.uri=n.bytes();break;case 2:i.newRevision=n.bytes();break;case 3:i.parentRevision=n.bytes();break;case 4:i.ops.push(c.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=d({},p);if(t.ops=[],t.uri=new Uint8Array,t.newRevision=new Uint8Array,t.parentRevision=new Uint8Array,void 0!==e.uri&&null!==e.uri&&(t.uri=y(e.uri)),void 0!==e.newRevision&&null!==e.newRevision&&(t.newRevision=y(e.newRevision)),void 0!==e.parentRevision&&null!==e.parentRevision&&(t.parentRevision=y(e.parentRevision)),void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(c.Op.fromJSON(n));return t},toJSON(e){const t={};return void 0!==e.uri&&(t.uri=b(void 0!==e.uri?e.uri:new Uint8Array)),void 0!==e.newRevision&&(t.newRevision=b(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=b(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?c.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=d({},p);if(t.ops=[],void 0!==e.uri&&null!==e.uri?t.uri=e.uri:t.uri=new Uint8Array,void 0!==e.newRevision&&null!==e.newRevision?t.newRevision=e.newRevision:t.newRevision=new Uint8Array,void 0!==e.parentRevision&&null!==e.parentRevision?t.parentRevision=e.parentRevision:t.parentRevision=new Uint8Array,void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(c.Op.fromPartial(n));return t}},h={},v={encode(e,t=l().Writer.create()){0!==e.newRevision.length&&t.uint32(10).bytes(e.newRevision),0!==e.parentRevision.length&&t.uint32(18).bytes(e.parentRevision);for(const n of e.ops)c.Op.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof l().Reader?e:new(l().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i=d({},h);for(i.ops=[],i.newRevision=new Uint8Array,i.parentRevision=new Uint8Array;n.pos>>3){case 1:i.newRevision=n.bytes();break;case 2:i.parentRevision=n.bytes();break;case 3:i.ops.push(c.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=d({},h);if(t.ops=[],t.newRevision=new Uint8Array,t.parentRevision=new Uint8Array,void 0!==e.newRevision&&null!==e.newRevision&&(t.newRevision=y(e.newRevision)),void 0!==e.parentRevision&&null!==e.parentRevision&&(t.parentRevision=y(e.parentRevision)),void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(c.Op.fromJSON(n));return t},toJSON(e){const t={};return void 0!==e.newRevision&&(t.newRevision=b(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=b(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?c.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=d({},h);if(t.ops=[],void 0!==e.newRevision&&null!==e.newRevision?t.newRevision=e.newRevision:t.newRevision=new Uint8Array,void 0!==e.parentRevision&&null!==e.parentRevision?t.parentRevision=e.parentRevision:t.parentRevision=new Uint8Array,void 0!==e.ops&&null!==e.ops)for(const n of e.ops)t.ops.push(c.Op.fromPartial(n));return t}};var m=(()=>{if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const g=m.atob||(e=>m.Buffer.from(e,"base64").toString("binary"));function y(e){const t=g(e),n=new Uint8Array(t.length);for(let e=0;em.Buffer.from(e,"binary").toString("base64"));function b(e){const t=[];for(let n=0;n{"use strict";n.d(t,{g$:()=>c,kI:()=>i,y8:()=>s,Cj:()=>u});var r=n(45361);function i(e){let t=!0;const n=(0,r.h64)();return o((e=>{n.update(e),t=!1}),e),t?void 0:n.digest().toString(16)}function o(e,t){switch(typeof t){case"boolean":!function(e,t){e(`boolean:${t}`)}(e,t);break;case"number":!function(e,t){e(`number:${t}`)}(e,t);break;case"string":!function(e,t){e(`string:${t.length}:${t}`)}(e,t);break;case"object":if(null===t){a(e);break}if(Array.isArray(t)){!function(e,t){e(`array:${t.length}:`);for(const n of t)void 0===n?a(e):o(e,n)}(e,t);break}if("function"==typeof t.toJSON){o(e,t.toJSON());break}!function(e,t){const n=Object.keys(t).filter((e=>void 0!==t[e]));n.sort(),e(`object:${n.length}:`);for(const r of n)e(`${r}:`),o(e,t[r])}(e,t)}}function a(e){e("null")}function s(e){return function(e){return null!==e&&"object"==typeof e}(e)&&"function"==typeof e.then}var l=n(11227);function c(e){return(0,l.debug)(`remote-config:${e}`)}function u(...e){0}},33220:(e,t,n)=>{"use strict";n.d(t,{CK:()=>J,XH:()=>Q,dM:()=>re,tI:()=>Z,yV:()=>te,hh:()=>ae});var r=n(34850),i=null;try{i=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function o(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function a(e){return!0===(e&&e.__isLong__)}function s(e){var t=Math.clz32(e&-e);return e?31-t:t}o.prototype.__isLong__,Object.defineProperty(o.prototype,"__isLong__",{value:!0}),o.isLong=a;var l={},c={};function u(e,t){var n,r,i;return t?(i=0<=(e>>>=0)&&e<256)&&(r=c[e])?r:(n=p(e,0,!0),i&&(c[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=l[e])?r:(n=p(e,e<0?-1:0,!1),i&&(l[e]=n),n)}function d(e,t){if(isNaN(e))return t?E:b;if(t){if(e<0)return E;if(e>=g)return C}else{if(e<=-y)return P;if(e+1>=y)return A}return e<0?d(-e,t).neg():p(e%m|0,e/m|0,t)}function p(e,t,n){return new o(e,t,n)}o.fromInt=u,o.fromNumber=d,o.fromBits=p;var f=Math.pow;function h(e,t,n){if(0===e.length)throw Error("empty string");if("number"==typeof t?(n=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?E:b;if((n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return h(e.substring(1),t,n).neg();for(var i=d(f(n,8)),o=b,a=0;a>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*m+(this.low>>>0):this.high*m+(this.low>>>0)},I.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=s).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0},I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(P)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},I.isOdd=function(){return 1==(1&this.low)},I.isEven=function(){return 0==(1&this.low)},I.equals=function(e){return a(e)||(e=v(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},I.eq=I.equals,I.notEquals=function(e){return!this.eq(e)},I.neq=I.notEquals,I.ne=I.notEquals,I.lessThan=function(e){return this.comp(e)<0},I.lt=I.lessThan,I.lessThanOrEqual=function(e){return this.comp(e)<=0},I.lte=I.lessThanOrEqual,I.le=I.lessThanOrEqual,I.greaterThan=function(e){return this.comp(e)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(e){return this.comp(e)>=0},I.gte=I.greaterThanOrEqual,I.ge=I.greaterThanOrEqual,I.compare=function(e){if(a(e)||(e=v(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(P)?P:this.not().add(S)},I.neg=I.negate,I.add=function(e){a(e)||(e=v(e));var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,i=65535&this.low,o=e.high>>>16,s=65535&e.high,l=e.low>>>16,c=0,u=0,d=0,f=0;return d+=(f+=i+(65535&e.low))>>>16,u+=(d+=r+l)>>>16,c+=(u+=n+s)>>>16,c+=t+o,p((d&=65535)<<16|(f&=65535),(c&=65535)<<16|(u&=65535),this.unsigned)},I.subtract=function(e){return a(e)||(e=v(e)),this.add(e.neg())},I.sub=I.subtract,I.multiply=function(e){if(this.isZero())return this;if(a(e)||(e=v(e)),i)return p(i.mul(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned);if(e.isZero())return this.unsigned?E:b;if(this.eq(P))return e.isOdd()?P:b;if(e.eq(P))return this.isOdd()?P:b;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(_)&&e.lt(_))return d(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,o=65535&this.low,s=e.high>>>16,l=65535&e.high,c=e.low>>>16,u=65535&e.low,f=0,h=0,m=0,g=0;return m+=(g+=o*u)>>>16,h+=(m+=r*u)>>>16,m&=65535,h+=(m+=o*c)>>>16,f+=(h+=n*u)>>>16,h&=65535,f+=(h+=r*c)>>>16,h&=65535,f+=(h+=o*l)>>>16,f+=t*u+n*c+r*l+o*s,p((m&=65535)<<16|(g&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},I.mul=I.multiply,I.divide=function(e){if(a(e)||(e=v(e)),e.isZero())throw Error("division by zero");var t,n,r;if(i)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?p((this.unsigned?i.div_u:i.div_s)(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?E:b;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return E;if(e.gt(this.shru(1)))return T;r=E}else{if(this.eq(P))return e.eq(S)||e.eq(O)?P:e.eq(P)?S:(t=this.shr(1).div(e).shl(1)).eq(b)?e.isNegative()?S:O:(n=this.sub(e.mul(t)),r=t.add(n.div(e)));if(e.eq(P))return this.unsigned?E:b;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=b}for(n=this;n.gte(e);){t=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(t)/Math.LN2),s=o<=48?1:f(2,o-48),l=d(t),c=l.mul(e);c.isNegative()||c.gt(n);)c=(l=d(t-=s,this.unsigned)).mul(e);l.isZero()&&(l=S),r=r.add(l),n=n.sub(c)}return r},I.div=I.divide,I.modulo=function(e){return a(e)||(e=v(e)),i?p((this.unsigned?i.rem_u:i.rem_s)(this.low,this.high,e.low,e.high),i.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},I.mod=I.modulo,I.rem=I.modulo,I.not=function(){return p(~this.low,~this.high,this.unsigned)},I.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},I.clz=I.countLeadingZeros,I.countTrailingZeros=function(){return this.low?s(this.low):s(this.high)+32},I.ctz=I.countTrailingZeros,I.and=function(e){return a(e)||(e=v(e)),p(this.low&e.low,this.high&e.high,this.unsigned)},I.or=function(e){return a(e)||(e=v(e)),p(this.low|e.low,this.high|e.high,this.unsigned)},I.xor=function(e){return a(e)||(e=v(e)),p(this.low^e.low,this.high^e.high,this.unsigned)},I.shiftLeft=function(e){return a(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?p(this.low<>>32-e,this.unsigned):p(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):p(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(e){return a(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?p(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):p(32===e?this.high:this.high>>>e-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.shr_u=I.shiftRightUnsigned,I.rotateLeft=function(e){var t;return a(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?p(this.high,this.low,this.unsigned):e<32?(t=32-e,p(this.low<>>t,this.high<>>t,this.unsigned)):(t=32-(e-=32),p(this.high<>>t,this.low<>>t,this.unsigned))},I.rotl=I.rotateLeft,I.rotateRight=function(e){var t;return a(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?p(this.high,this.low,this.unsigned):e<32?(t=32-e,p(this.high<>>e,this.low<>>e,this.unsigned)):(t=32-(e-=32),p(this.low<>>e,this.high<>>e,this.unsigned))},I.rotr=I.rotateRight,I.toSigned=function(){return this.unsigned?p(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:p(this.low,this.high,!0)},I.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},I.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},o.fromBytes=function(e,t,n){return n?o.fromBytesLE(e,t):o.fromBytesBE(e,t)},o.fromBytesLE=function(e,t){return new o(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},o.fromBytesBE=function(e,t){return new o(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};const R=o;var N=n(62100),k=n.n(N);var L,w,D;!function(e){e[e.INVALID=0]="INVALID",e[e.CREATED=1]="CREATED",e[e.NOT_CHANGED=2]="NOT_CHANGED",e[e.VALIDATED=3]="VALIDATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(L||(L={})),function(e){e[e.APP_PLATFORM_UNKNOWN=0]="APP_PLATFORM_UNKNOWN",e[e.APP_PLATFORM_ANDROID=1]="APP_PLATFORM_ANDROID",e[e.APP_PLATFORM_IOS=2]="APP_PLATFORM_IOS",e[e.APP_PLATFORM_WEB=3]="APP_PLATFORM_WEB",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(w||(w={})),function(e){e[e.KNOWN_CONTEXT_INVALID=0]="KNOWN_CONTEXT_INVALID",e[e.KNOWN_CONTEXT_USER_ID=1]="KNOWN_CONTEXT_USER_ID",e[e.KNOWN_CONTEXT_INSTALLATION_ID=2]="KNOWN_CONTEXT_INSTALLATION_ID",e[e.KNOWN_CONTEXT_VERSION=3]="KNOWN_CONTEXT_VERSION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(D||(D={}));const M={encode:(e,t=k().Writer.create())=>(""!==e.scope&&t.uint32(10).string(e.scope),""!==e.name&&t.uint32(18).string(e.name),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={scope:"",name:""};for(;n.pos>>3){case 1:i.scope=n.string();break;case 2:i.name=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({scope:x(e.scope)?String(e.scope):"",name:x(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.scope&&(t.scope=e.scope),void 0!==e.name&&(t.name=e.name),t},fromPartial(e){var t,n;const r={scope:"",name:""};return r.scope=null!==(t=e.scope)&&void 0!==t?t:"",r.name=null!==(n=e.name)&&void 0!==n?n:"",r}};function x(e){return null!=e}k().util.Long!==R&&(k().util.Long=R,k().configure());var U;!function(e){e[e.BLOCKING=0]="BLOCKING",e[e.BACKGROUND_SYNC=1]="BACKGROUND_SYNC",e[e.DELAYED=2]="DELAYED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(U||(U={}));const F={encode:(e,t=k().Writer.create())=>(void 0!==e.configuration&&z.encode(e.configuration,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={configuration:void 0};for(;n.pos>>3==1)i.configuration=z.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({configuration:W(e.configuration)?z.fromJSON(e.configuration):void 0}),toJSON(e){const t={};return void 0!==e.configuration&&(t.configuration=e.configuration?z.toJSON(e.configuration):void 0),t},fromPartial(e){const t={configuration:void 0};return t.configuration=void 0!==e.configuration&&null!==e.configuration?z.fromPartial(e.configuration):void 0,t}};const z={encode(e,t=k().Writer.create()){""!==e.configurationAssignmentId&&t.uint32(10).string(e.configurationAssignmentId),0!==e.fetchTimeMillis&&t.uint32(16).int64(e.fetchTimeMillis);for(const n of e.assignedValues)B.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};for(;n.pos>>3){case 1:i.configurationAssignmentId=n.string();break;case 2:i.fetchTimeMillis=K(n.int64());break;case 3:i.assignedValues.push(B.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({configurationAssignmentId:W(e.configurationAssignmentId)?String(e.configurationAssignmentId):"",fetchTimeMillis:W(e.fetchTimeMillis)?Number(e.fetchTimeMillis):0,assignedValues:Array.isArray(null==e?void 0:e.assignedValues)?e.assignedValues.map((e=>B.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.configurationAssignmentId&&(t.configurationAssignmentId=e.configurationAssignmentId),void 0!==e.fetchTimeMillis&&(t.fetchTimeMillis=Math.round(e.fetchTimeMillis)),e.assignedValues?t.assignedValues=e.assignedValues.map((e=>e?B.toJSON(e):void 0)):t.assignedValues=[],t},fromPartial(e){var t,n,r;const i={configurationAssignmentId:"",fetchTimeMillis:0,assignedValues:[]};return i.configurationAssignmentId=null!==(t=e.configurationAssignmentId)&&void 0!==t?t:"",i.fetchTimeMillis=null!==(n=e.fetchTimeMillis)&&void 0!==n?n:0,i.assignedValues=(null===(r=e.assignedValues)||void 0===r?void 0:r.map((e=>B.fromPartial(e))))||[],i}};const B={encode:(e,t=k().Writer.create())=>(void 0!==e.propertyId&&M.encode(e.propertyId,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&V.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.boolValue&&j.encode(e.boolValue,t.uint32(26).fork()).ldelim(),void 0!==e.intValue&&H.encode(e.intValue,t.uint32(34).fork()).ldelim(),void 0!==e.enumValue&&G.encode(e.enumValue,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};for(;n.pos>>3){case 1:i.propertyId=M.decode(n,n.uint32());break;case 2:i.metadata=V.decode(n,n.uint32());break;case 3:i.boolValue=j.decode(n,n.uint32());break;case 4:i.intValue=H.decode(n,n.uint32());break;case 5:i.enumValue=G.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertyId:W(e.propertyId)?M.fromJSON(e.propertyId):void 0,metadata:W(e.metadata)?V.fromJSON(e.metadata):void 0,boolValue:W(e.boolValue)?j.fromJSON(e.boolValue):void 0,intValue:W(e.intValue)?H.fromJSON(e.intValue):void 0,enumValue:W(e.enumValue)?G.fromJSON(e.enumValue):void 0}),toJSON(e){const t={};return void 0!==e.propertyId&&(t.propertyId=e.propertyId?M.toJSON(e.propertyId):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?V.toJSON(e.metadata):void 0),void 0!==e.boolValue&&(t.boolValue=e.boolValue?j.toJSON(e.boolValue):void 0),void 0!==e.intValue&&(t.intValue=e.intValue?H.toJSON(e.intValue):void 0),void 0!==e.enumValue&&(t.enumValue=e.enumValue?G.toJSON(e.enumValue):void 0),t},fromPartial(e){const t={propertyId:void 0,metadata:void 0,boolValue:void 0,intValue:void 0,enumValue:void 0};return t.propertyId=void 0!==e.propertyId&&null!==e.propertyId?M.fromPartial(e.propertyId):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?V.fromPartial(e.metadata):void 0,t.boolValue=void 0!==e.boolValue&&null!==e.boolValue?j.fromPartial(e.boolValue):void 0,t.intValue=void 0!==e.intValue&&null!==e.intValue?H.fromPartial(e.intValue):void 0,t.enumValue=void 0!==e.enumValue&&null!==e.enumValue?G.fromPartial(e.enumValue):void 0,t}};const V={encode:(e,t=k().Writer.create())=>(0!==e.policyId&&t.uint32(8).int64(e.policyId),""!==e.externalRealm&&t.uint32(18).string(e.externalRealm),0!==e.externalRealmId&&t.uint32(24).int64(e.externalRealmId),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={policyId:0,externalRealm:"",externalRealmId:0};for(;n.pos>>3){case 1:i.policyId=K(n.int64());break;case 2:i.externalRealm=n.string();break;case 3:i.externalRealmId=K(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({policyId:W(e.policyId)?Number(e.policyId):0,externalRealm:W(e.externalRealm)?String(e.externalRealm):"",externalRealmId:W(e.externalRealmId)?Number(e.externalRealmId):0}),toJSON(e){const t={};return void 0!==e.policyId&&(t.policyId=Math.round(e.policyId)),void 0!==e.externalRealm&&(t.externalRealm=e.externalRealm),void 0!==e.externalRealmId&&(t.externalRealmId=Math.round(e.externalRealmId)),t},fromPartial(e){var t,n,r;const i={policyId:0,externalRealm:"",externalRealmId:0};return i.policyId=null!==(t=e.policyId)&&void 0!==t?t:0,i.externalRealm=null!==(n=e.externalRealm)&&void 0!==n?n:"",i.externalRealmId=null!==(r=e.externalRealmId)&&void 0!==r?r:0,i}};const j={encode:(e,t=k().Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={value:!1};for(;n.pos>>3==1)i.value=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({value:!!W(e.value)&&Boolean(e.value)}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:!1};return n.value=null!==(t=e.value)&&void 0!==t&&t,n}};const H={encode:(e,t=k().Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={value:0};for(;n.pos>>3==1)i.value=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({value:W(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=Math.round(e.value)),t},fromPartial(e){var t;const n={value:0};return n.value=null!==(t=e.value)&&void 0!==t?t:0,n}};const G={encode:(e,t=k().Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof k().Reader?e:new(k().Reader)(e);let r=void 0===t?n.len:n.pos+t;const i={value:""};for(;n.pos>>3==1)i.value=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({value:W(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t;const n={value:""};return n.value=null!==(t=e.value)&&void 0!==t?t:"",n}};var q=(()=>{if(void 0!==q)return q;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();function K(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new q.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function W(e){return null!=e}k().util.Long!==R&&(k().util.Long=R,k().configure());var Y=(()=>{if(void 0!==Y)return Y;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();Y.atob;Y.btoa;k().util.Long!==R&&(k().util.Long=R,k().configure());var J,$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);inull!=e?e:""},installationId:{knownContext:D.KNOWN_CONTEXT_INSTALLATION_ID,encode:e=>e}};var Q,Z;function ee(e){switch(e){case J.BACKGROUND_SYNC:return U.BACKGROUND_SYNC;case J.BLOCKING:return U.BLOCKING;case J.DELAYED:return U.DELAYED;default:throw new Error(`Unknown FetchType (${e})`)}}!function(e){function t(e){return Object.entries(e).filter((([e])=>e in X)).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{})}e.extract=t,e.hash=function(e){return(0,r.kI)(t(e))}}(Q||(Q={})),function(e){e.toPayload=function(e){var t,{propertySetId:n,fetchType:r=J.BLOCKING}=e,i=$(e,["propertySetId","fetchType"]);return{propertySetId:n,context:(t=i,{context:Object.entries(t).filter((([e])=>e in X)).map((([e,t])=>{const{knownContext:n,encode:r}=X[e];return{knownContext:n,value:r(t)}}))}),fetchType:{type:ee(r)}}}}(Z||(Z={}));var te,ne=n(3578);!function(e){e.Payload=F,e.configurationAssignmentId=(0,ne.Vo)({name:"#configurationAssignmentId",description:"Unique ID for the specific resolver call this configuration originates from.",default:""}),e.fetchTimeMillis=(0,ne.Vo)({name:"#fetchTimeMillis",description:"Server reported time when this configuration was fetched.",default:0}),e.groupIds=(0,ne.Vo)({name:"#groupIds",description:"An object mapping property name to group-id.",default:void 0}),e.toConfiguration=function({configuration:t}){if(!t)throw new Error("Bad response payload");const n=ne.VK.builder(),r={};for(const{propertyId:e,metadata:i,boolValue:o,intValue:a,enumValue:s}of t.assignedValues){const t=e.name,l=(0,ne.jf)(t);l&&(i&&(r[t]=i.externalRealmId),o?n.setValue(l,o.value):a?n.setValue(l,a.value):s&&n.setValue(l,s.value))}return n.setValue(e.configurationAssignmentId,t.configurationAssignmentId),n.setValue(e.groupIds,r),n.setValue(e.fetchTimeMillis,t.fetchTimeMillis),n}}(te||(te={}));var re,ie=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};!function(e){e.fromContextProvider=function(e){return t=>n=>{const r=function(e){if("object"==typeof e&&null!==e){const t=e;return e=>Object.assign(Object.assign({},e),t)}if("function"!=typeof e)throw new TypeError("Provider factory must return a function or an object");return e}(e(n));return e=>ie(this,void 0,void 0,(function*(){return t(yield r(e))}))}},e.requireContext=function(e){return e=>()=>e},e.compose=function(e,t){return n=>e(t(n))(n)}}(re||(re={}));const oe=(0,r.g$)("core:resolver");function ae(e){return se(e)}function se(e){return class{constructor(t){this.delegate=e(t)}resolve(e){return Promise.resolve().then((()=>this.delegate(e))).then((e=>e.build())).catch((e=>(oe("Uncaught error in resolve chain:",e),ne.VK.empty())))}static addMiddleware(t){return se(re.compose(t,e))}}}},87577:(e,t,n)=>{"use strict";n.d(t,{jj:()=>c,mX:()=>u,W6:()=>d});var r=n(67294),i=n.n(r),o=n(3578);const a=(0,r.createContext)(new o.VK.Delegate((()=>{throw new Error("Please wrap your component in RemoteConfig Provider")})));var s=n(34850);class l extends o.VK.Delegate{constructor(){super((()=>{if(!this.delegate)throw this.suspendedPromise;return this.delegate})),this.suspendedPromise=new Promise((e=>{this.resolveSuspense=t=>{if(this.delegate)throw new Error("Already resolved");this.delegate=t,e()}}))}get isSuspended(){return!this.delegate}static isSuspended(e){return e instanceof l&&e.isSuspended}}const c=({children:e,configuration:t})=>{const[n,o]=(0,r.useState)(new l);return function(e,t){const n=(0,r.useRef)(null);if(!e||n.current===e)return;if(n.current=e,!(0,s.y8)(e))return void t(e);e.then(t)}(t,(e=>{l.isSuspended(n)?n.resolveSuspense(e):o(e)})),i().createElement(a.Provider,{value:n},e)};function u(e={}){const{Context:t=a}=e,n=(0,r.useContext)(t);if(!n)throw new Error("RemoteConfigContext is undefined");return n}function d(e,t){const n=u(t);try{return n.getValue(e)}catch(e){if(t&&"loadingValue"in t&&(0,s.y8)(e))return t.loadingValue;throw e}}},18978:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var r=n(48510),i=n(48664),o=n(55671),a=(n(1892),n(68309),n(33220));function s(e){if(!e)throw new Error('Either "transport" or "eventSender" must be provided.');return(0,r.mi)({transport:e})}function l(e){return({clientId:t,transport:n,eventSender:r=s(n)})=>n=>e(n).then((e=>{const s=Boolean(n.username),l=function(e,t,n){const r=n.getValue(a.yV.configurationAssignmentId),i=n.getValue(a.yV.fetchTimeMillis),o=(s=Object.values(n.getValue(a.yV.groupIds)||{}),Array.from(new Set(s)));var s;return{platform:"WEB",rc_client_id:e,configuration_assignment_id:r,fetch_type:t.fetchType,installation_id:t.installationId,last_rcs_fetch_time:i,policy_group_ids:o}}(t,n,e);return r.send(s?(0,i.F)(l):(0,o.k)(l),{authorize:s,flush:!0}),e}))}},48664:(e,t)=>{"use strict";t.F=void 0,t.F=function(e){return{name:"ConfigurationApplied",environments:["device","browser"],data:e}}},55671:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"ConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},1892:(e,t)=>{"use strict"},68309:(e,t)=>{"use strict"},10897:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(33220),i=n(3578),o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const a=(0,i.Vo)({name:"#contextHash",description:"Hash of the context when passing through initial-config-middleware",default:""});function s(e){return t=>n=>o(this,void 0,void 0,(function*(){const o=r.XH.hash(n);if(t.initialConfiguration&&o===t.initialConfiguration.getValue(a))return i.VK.builder(t.initialConfiguration);const s=yield e(n);return s.setValue(a,o),s}))}},66959:(e,t,n)=>{"use strict";var r;n.d(t,{Y:()=>_});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&a.test(e)};for(var l=[],c=0;c<256;++c)l.push((c+256).toString(16).substr(1));const u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};const d=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return u(r)};var p=n(33220);function f(e){for(var t=1;t5}function y(e){const t=v.get(m);let n=t;if(void 0===n&&e){const t=e.getItem("com.spotify.rcs.installationId");g(t)&&(n=t)}return g(n)||(n=function(){try{return d()}catch(e){return d({rng:()=>{const e=new Array(16);let t;for(let n=0;n<16;n++)0==(3&n)&&(t=4294967296*Math.random()),e[n]=t>>>((3&n)<<3)&255;return e}})}}()),t!==n&&v.set(m,n,{expires:Date.now()+316224e5,path:"/"}),n}const _=p.dM.fromContextProvider((({installationId:e})=>({installationId:g(e)?e:y(localStorage)})))},83910:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(34850),i=n(33220),o=n(3578);const a=(0,r.g$)("middleware:properties"),s=i.dM.fromContextProvider((({clientId:e,properties:t})=>{const n=t?t.map(o.OT):(0,o.y6)(),r=o.Z9.getPropertySetId({clientId:e},n);return a("Property Set ID",r),a("Properties",n),{propertySetId:r}}))},3578:(e,t,n)=>{"use strict";n.d(t,{VK:()=>_,Z9:()=>a,JP:()=>v,VL:()=>g,z8:()=>m,Vo:()=>y,jf:()=>h,OT:()=>f,y6:()=>p});var r=n(34850),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.upper)throw new TypeError(`Expected value in range [${e.lower},${e.upper}]`);break;case"internal":break;default:throw new TypeError(`Unknown property type "${e.type}"`)}}e.match=function(e){return t=>{var{type:n}=t,r=i(t,["type"]);return e[n](r)}},e.assertValue=t,e.validateValue=function(e,n){try{return t(e,n),!0}catch(e){return!1}},e.getPropertySetId=function(e,t){const n=Array.from(t).reduce(((e,t)=>{var{name:n}=t,r=i(t,["name"]);return Object.assign(Object.assign({},e),{[n]:r})}),{});return o("Property Source",n,e),(0,r.kI)([e,n])}}(a||(a={}));var s=n(64063),l=n.n(s),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"use strict";n.d(t,{H:()=>o});var r=n(33220);const i=(0,n(34850).g$)("provider:transport"),o=({transport:e,timeout:t})=>n=>{const o=r.tI.toPayload(n),a=Boolean(n.username);return i(`User is authenticated? ${a}`),i("request:",JSON.stringify(o)),s=t,l=e.request("@webgate/remote-config-resolver/v3/configuration",{method:"POST",headers:{"Content-Type":"application/json"},payload:JSON.stringify(o),responseType:"json",authorize:a,rejectNotOk:!0}).then((({body:e})=>(i("response:",JSON.stringify(e)),r.yV.toConfiguration(r.yV.Payload.fromJSON(e))))).catch((e=>{throw i("response error:",e),e})),new Promise(((e,t)=>{const n=()=>t(new Error("Timeout"));if(s<=0)n();else{if(sclearTimeout(e)))}l.then(e,t)}}));var s,l}},32094:(e,t,n)=>{"use strict";n.d(t,{L:()=>y});var r=n(33220),i=n(95957),o=n(83910),a=n(34850),s=n(3578);class l{constructor(e){this.storage=e}get(e){if("string"!=typeof e)throw new Error("key must be a string");const t=this.storage.getItem(e);if(null!==t)return JSON.parse(t)}set(e,t){if("string"!=typeof e)throw new Error("key must be a string");const n=JSON.stringify(t);this.storage.setItem(e,n)}}class c{constructor(e,t){this.cache=new l(e),this.cacheKey=`com.spotify.single.item.cache:${t}`}get(e){if("string"!=typeof e)throw new Error("key must be a string");const t=this.cache.get(this.cacheKey);if(t&&t.key===e)return t.value}set(e,t){if("string"!=typeof e)throw new Error("key must be a string");const n={key:e,value:t};this.cache.set(this.cacheKey,n)}}const u=(0,a.g$)("caching-middleware"),d=(p=({clientId:e,storage:t=localStorage})=>t&&new c(t,e),e=>t=>{const n=p(t);return n?t=>{const i=r.XH.hash(t),o=n.get(i);u("cache %s for key %j",o?"hit":"miss",i);const a=e(t).then((e=>(n.set(i,e),e)));return o?Promise.resolve(s.VK.Builder.fromJSON(o)):a}:e});var p;const f=6e5;let h;var v=n(18978),m=n(66959),g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const y=(0,r.hh)(i.H).addMiddleware(o.a).addMiddleware(d).addMiddleware((e=>({backgroundFetchInterval:t=36e5})=>{if(t{return i=e(n),o=()=>{var i,o;i=()=>{e(Object.assign(Object.assign({},n),{fetchType:r.CK.BACKGROUND_SYNC})).catch((e=>{(0,a.Cj)("Background fetch failed",e)}))},o=t,clearInterval(h),h=setInterval(i,o)},i.then((e=>(o(),e)),(e=>{throw o(),e}));var i,o}})).addMiddleware(v.Q).addMiddleware(m.Y).addMiddleware((function(e){return()=>{let t=null,n="";return i=>g(this,void 0,void 0,(function*(){const o=r.XH.hash(i);return n===o||(t=yield e(i),n=o),t}))}}))},29047:function(e,t,n){"use strict";n(34155);var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendMetric=t.reportMetrics=t.createSemanticMetrics=t.asNanoseconds=t.MetricTypes=void 0;const o=i(n(14131)),a=n(28265);t.MetricTypes={COUNTER:"counter",GAUGE:"gauge",TIMER:"timer"},t.asNanoseconds=function(e){return e};const s=(e,t)=>r(void 0,void 0,void 0,(function*(){if(Array.isArray(t.reporter)){const n=t.reporter.map((t=>t.send(e)));yield Promise.all(n)}else yield t.reporter.send(e)}));t.reportMetrics=s;const l=e=>{void 0!==e.dev&&e.dev&&(e.reporter=new a.ConsoleReporter);const t={queue:[],timeout:void 0,flush(){s(this.queue,e),this.queue=[],this.timeout=void 0}};let n=!1;void 0===e.batching&&(e.batching={delay:4e3}),e.batching&&"object"==typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",(()=>{n=!0,t.flush()}));return{sendMetric:i=>r(void 0,void 0,void 0,(function*(){var r,o;const a=Object.assign({},i);if(i.tags&&(a.tags=Object.assign({},i.tags)),a.key=a.key||e.key,!a.key)throw new Error(`metric.key is required. Got: "${a.key}". Set it in createSemanticMetrics(...) or pass it to sendMetric(...).`);a.tags=Object.assign({app:null!==(r=e.app)&&void 0!==r?r:a.key,application:null!==(o=e.app)&&void 0!==o?o:a.key},a.tags),e.component_id?a.component_id=a.component_id||e.component_id:a.component_id=e.key,e.batching&&!n?(t.queue.push(a),t.timeout||(t.timeout=setTimeout((()=>t.flush()),e.batching.delay))):yield s([a],e)})),config:e,isWindowUnloading:n}};t.createSemanticMetrics=l;class c{static init(e){c.config&&o.default.error("SemanticMetrics has already been initialized. This may lead to dangerous side effects such as your metrics disappearing from Grafana due to the `key` value being overwritten by something else"),o.default.warn("The singleton usage of SemanticMetrics will be deprecated. Please use createSemanticMetrics()"),c.config=e;const{sendMetric:t,isWindowUnloading:n}=l(e);c.sendMetric=t,c.isWindowUnloading=n}}t.default=c;t.sendMetric=e=>r(void 0,void 0,void 0,(function*(){if(!c.config)throw new Error("SemanticMetrics has not been initialized. Call SemanticMetrics.init()");return c.sendMetric(e)}))},51845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBAPI_URL=t.INTERNAL_WEBGATE_URL=void 0,t.INTERNAL_WEBGATE_URL="https://wgint.spotify.net",t.WEBAPI_URL="https://api.spotify.com"},96848:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(1489),t),i(n(42276),t),i(n(19226),t);var a=n(29047);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o(a).default}})},1489:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Time=t.Timer=void 0,i(n(29047),t),i(n(47377),t),i(n(81602),t),i(n(28265),t);var o=n(58947);Object.defineProperty(t,"Timer",{enumerable:!0,get:function(){return o.Timer}});var a=n(52298);Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return a.Time}})},19226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMetrics=void 0;const r=n(29047),i=n(52298);function o(){const[e]=window.performance.getEntriesByType("navigation");return e}function a(e){return new Promise(((t,n)=>window.performance&&"function"==typeof performance.getEntriesByType?window.addEventListener("load",(()=>{const r=performance.getEntriesByType("paint"),i=r.find((({name:t})=>t===e));return void 0!==r&&i?t(i.startTime):n("Time to paint api is not supported on this browser")})):n("window.performance api is not supported in this browser")))}function s({name:e,label:t,value:n},r){let o;return o="cls"===e.toLowerCase()?{metric_type:"gauge",value:n}:{metric_type:"timer",value:i.Time.fromMillis(Math.round(n)).asNanos()},Object.assign(Object.assign({what:`web_vitals_${e.toLowerCase()}`},o),{tags:Object.assign({name:e,label:t},r)})}const l={getPageLoadTime:function(){return new Promise(((e,t)=>{if(!window.performance||"function"!=typeof performance.getEntriesByType)return t("window.performance api is not supported in this browser");if(void 0===o())return t("navigationTiming api is not supported in this browser");const{loadEventEnd:n}=o();return n>0?e(n):window.addEventListener("load",(()=>{setTimeout((()=>{const{loadEventEnd:t}=o();return e(t)}),0)}))}))},getResourceTiming:function(){return window.performance.getEntriesByType("resource")},getTimeToFirstPaint:function(){return a("first-paint")},getTimeToFirstContentfulPaint:function(){return a("first-contentful-paint")},sendWebVitalsMetric:function(e,t){return r.sendMetric(s(e,t))},getWebVitalsMetric:s};t.BrowserMetrics=l},28265:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleReporter=void 0;const o=i(n(14131));t.ConsoleReporter=class{constructor(e=2,t="info"){this.spacingLevel=e,this.logLevel=t}send(e){return r(this,void 0,void 0,(function*(){o.default.log(this.logLevel,`[semantic-metrics] ${JSON.stringify(e,null,this.spacingLevel)}`)}))}}},81602:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventSenderReporter=void 0;const o=n(73967),a=n(34111),s=n(63987),l=i(n(14131)),c=n(78578),u=n(51845);function d(e){return t=>e.isAuthenticated()?a.createSemanticMetricClient(t):s.createSemanticMetricClientNonAuth(t)}class p{constructor(e,t,n="browser",r){this.eventSender=e,this.createEvent=t,this.environment=n,this.transport=r}static create(e){const t="getToken"in e?e.getToken:null,n="ownerProvider"in e?e.ownerProvider:null,i=e.context?[...e.context]:void 0,a=e.environment,s=c.createBaseTransport({providers:{endpoints:(()=>{const t=c.createXResolveProvider();return n=>r(this,void 0,void 0,(function*(){const r=yield t(n);return Object.assign(Object.assign({},r),e.internal&&{webgate:u.INTERNAL_WEBGATE_URL})}))})(),token:()=>new Promise((e=>{t?t(((t,n)=>{e(void 0===n?t:[t,n])})):e("")}))}});t&&(s.on(c.TransportEvent.CONNECTED,(()=>{s.authenticate()})),s.on(c.TransportEvent.AUTHENTICATED,(()=>{l.default.debug("created authenticated browser transport")})),s.on(c.TransportEvent.TOKEN_PROVIDER_ERROR,(()=>{l.default.debug("the token provided is isn't working.")}))),s.connect();const f=o.createEventSender(Object.assign({transport:s,context:i},n&&{ownerProvider:n})),h=d(s);return new p(f,h,a,s)}static createWithCustomTransport(e){const t="ownerProvider"in e?e.ownerProvider:null,n=o.createEventSender(Object.assign({transport:e.transport},t&&{ownerProvider:t})),r=d(e.transport);return new p(n,r,e.environment,e.transport)}send(e){return r(this,void 0,void 0,(function*(){for(const t of e){const e=Object.assign({},t);e.tags=Object.assign({},e.tags),e.tags.environment&&l.default.error("`tags.environment` must not be set. It is a reserved tag and will be overwritten."),e.tags.environment=this.environment;const n=this.createEvent(Object.assign({},e));this.eventSender.send(n,{flush:!1})}return this.eventSender.flush(this.transport.isAuthenticated())}))}}t.EventSenderReporter=p},47377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;class n{constructor(e=0){this.nanos=e}static fromNanos(e){return new n(e)}static fromMicros(e){return new n(1e3*e)}static fromMillis(e){return new n(1e6*e)}static fromSeconds(e){return new n(1e9*e)}static from(e){return new n(e.asNanos())}asSeconds(){return this.nanos/1e9}asMillis(){return this.nanos/1e6}asMicros(){return this.nanos/1e3}asNanos(){return Math.round(this.nanos)}}t.Time=n,n.ZERO=new n(0)},58947:(e,t,n)=>{"use strict";var r=n(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=t.getHighResolutionTime=t.getLowResolutionTime=t.getTime=t.getBrowserTime=t.supportsHighResolutionTime=void 0;const i=n(52298),o=n(29047);t.supportsHighResolutionTime=()=>r&&"function"==typeof r.hrtime;t.getBrowserTime=()=>"undefined"!=typeof performance?performance.now():Date.now();t.getTime=()=>t.supportsHighResolutionTime()?r.hrtime():t.getBrowserTime();t.getLowResolutionTime=e=>{const n=t.getTime()-e,r=i.Time.fromMillis(n);return{nanoseconds:o.asNanoseconds(r.asNanos()),milliseconds:r.asMillis(),seconds:r.asSeconds()}};t.getHighResolutionTime=e=>{const[t,n]=r.hrtime(e),i=1e9*t+n,a=i/1e6,s=i/1e9;return{nanoseconds:o.asNanoseconds(i),milliseconds:a,seconds:s}};class a{constructor(e){this.startTime=e}static start(){return new a(t.getTime())}end(){return t.supportsHighResolutionTime()?t.getHighResolutionTime(this.startTime):t.getLowResolutionTime(this.startTime)}}t.Timer=a},42276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUniversalReporter=void 0;const r=n(81602),i=n(6499);t.createUniversalReporter=function(e={}){const t=e.context?[i.createUserAgentContext(),...e.context]:[i.createUserAgentContext()];return r.EventSenderReporter.create(Object.assign(Object.assign({environment:"browser"},e),{context:t}))}},99846:(e,t)=>{"use strict";t.i=void 0,t.i=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},37611:(e,t)=>{"use strict";t.t=void 0,t.t=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}},34111:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClient=void 0,t.createSemanticMetricClient=function(e){return{name:"SemanticMetricClient",environments:["browser","device"],data:e}}},63987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSemanticMetricClientNonAuth=void 0,t.createSemanticMetricClientNonAuth=function(e){return{name:"SemanticMetricClientNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}},95109:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBase64=void 0;var r=n(73157);t.hexToBase64=function(e){if(!e||e.length%2!=0)throw new TypeError("Invalid hexString value.");var t=e.split("").reduce((function(e,t,n){return n%2==0?(e.push(t),e):(e[e.length-1]=""+e[e.length-1]+t,e)}),[]),n=String.fromCharCode.apply(null,t.map((function(e){var t=parseInt(e,16);if(isNaN(t))throw new TypeError("Invalid hexString value.");return t})));return r.Base64.encode(n)}},67661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationContext=void 0,t.createApplicationContext=function(e){return function(){return{name:"context_application",data:e}}}},39263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCacheIdContext=void 0;var r=n(95109);t.createCacheIdContext=function(e){var t=r.hexToBase64(e);return function(){return{name:"context_cache_id",data:{value:t}}}}},95633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIdContext=void 0;var r=n(95109);t.createClientIdContext=function(e){var t=r.hexToBase64(e);return function(){return{name:"context_client_id",data:{value:t}}}}},78163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIpContext=void 0,t.createClientIpContext=function(e){return function(){return{name:"context_client_ip",data:{value:e}}}}},80026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCorrelationIdContext=void 0,t.createCorrelationIdContext=function(e){return function(){return{name:"context_correlation_id",data:{value:e}}}}},27938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceContext=void 0,t.createDeviceContext=function(e){return function(){return{name:"context_device",data:e}}}},6499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5663);r.__exportStar(n(67661),t),r.__exportStar(n(39263),t),r.__exportStar(n(95633),t),r.__exportStar(n(78163),t),r.__exportStar(n(80026),t),r.__exportStar(n(27938),t),r.__exportStar(n(12231),t),r.__exportStar(n(81326),t),r.__exportStar(n(55115),t)},12231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInstallationIdContext=void 0;var r=n(95109);t.createInstallationIdContext=function(e){var t=r.hexToBase64(e);return function(){return{name:"context_installation_id",data:{value:t}}}}},81326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOsContext=void 0,t.createOsContext=function(e){return function(){return{name:"context_os",data:e}}}},55115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUserAgentContext=void 0,t.createUserAgentContext=function(e){if(!e&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return function(){return{name:"context_user_agent",data:{value:e||navigator.userAgent}}}}},73967:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{Environment:()=>r,EventSenderEvent:()=>i,createEventSender:()=>C}),function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(r||(r={}));var i,o=n(5663),a=n(78578),s=n(28667),l=n(33178);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(i||(i={}));const c=s.P.forTag("Uploader");function u(e,t){const{event_name:n,fragments:r}=e,{message:i}=r;return{reason:t,contexts:(0,o.__rest)(r,["message"]),event_data:{name:n,data:i}}}class d extends l.vp{constructor(e){var t;super(),this._suppressPersist=!1,this._backoff=!1,this._authorize=null===(t=e.authorize)||void 0===t||t,this._transport=e.transport,this._suppressPersist=!!e.suppressPersist,this._endpoint=this._authorize?"@webgate/gabo-receiver-service/v3/events":"@webgate/gabo-receiver-service/public/v3/events"}_uploadBatch(e,t=!1){const n=this._transport,r=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(r,{method:a.Method.POST,metadata:{eventSenderEventNames:e.map((e=>e.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:e}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{body:r,headers:o,status:a}=n,s=this._authorize;if(200!==a||!r)return c.warn("Upload request failed",n),this.emit(i.UPLOAD_REQUEST_FAILED,{authorize:s,status:a}),this._backoff=!0,Promise.resolve(e);const l=[],d=[],p=[];if(r.error&&r.error.length){c.info("response errors",e,r.error);for(let t=0,n=r.error.length;t0&&this.emit(i.UPLOAD_FAILED,{authorize:s,rejected:p,will_retry:d}),h>0&&this.emit(i.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:h}),Promise.resolve(l)}upload(e,t=[]){let n=t;if(!e.length)return Promise.resolve({nack:n,backoff:this._backoff});const r=[...e];return this._uploadBatch(r.splice(0,20)).then((e=>{if(n=[...n,...e],this._backoff)n=[...n,...r];else if(r.length)return this.upload(r,n);return{nack:n,backoff:this._backoff}}))}lastUpload(e){return e.length?this._uploadBatch(e.splice(0,100),!0).then((e=>0===e.length),(()=>!1)):Promise.resolve(!0)}shouldBackoff(){return this._backoff}}function p(e){return new d(e)}var f,h=n(42427),v=n(37611);!function(e){e.INVALID_PAYLOAD="INVALID_PAYLOAD",e.INVALID_NAME="INVALID_NAME",e.UNKNOWN_OWNER="UNKNOWN_OWNER",e.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(f||(f={}));const m="3.0.1";var g=n(99846);class y{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class _{_addEventsToEventSenderStatsData(e,t){Object.keys(t).map((n=>{for(let r=0;r{if(y.isMissingFromArray(t.sequence_ids,e))t.sequence_ids.push(e),t.loss_stats_num_entries_per_sequence_id.push(Object.keys(n).length);else{const r=t.sequence_ids.indexOf(e);t.loss_stats_num_entries_per_sequence_id[r]+=Object.keys(n).length}Object.entries(n).map((([e,n])=>{y.pushToArrIfMissing(t.event_names,e);const r=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(r);const i=Object.keys(n);for(let e=0;ee&&t)).catch((()=>!1))}initializeContexts(e){if(!(null==e?void 0:e.length))return;const t=this._instanceContexts;for(const n of e){const e=n();(null==e?void 0:e.name)&&(t[e.name]=e.data)}}initFlush(e){const t=this._uploaders[e].shouldBackoff(),{ceiling:n,maxDuration:r,baseTime:i}=this._backoffTimeSettings;return h.V.init((()=>this.upload(e)),{curve:"exponential",backoffInitial:t,retryPredicate:()=>this._transport.isOnline(),ceiling:n,baseTime:t?n:i,maxDuration:r})}waitForConnection(){return new Promise((e=>{this._transport.once(a.TransportEvent.CONNECTION_ONLINE,(()=>e()))}))}upload(e){return this._uploaders[e].upload(this._events[e].splice(0)).then((t=>{if(t.nack.length)throw this._events[e]=t.nack.concat(this._events[e]),new Error("Backoff requested");return t}))}sendToGabito(e){const t=e?"authorized":"unauthorized";this._transport.isOnline()||this._ongoingUploads[t]||(this._ongoingUploads[t]=this.waitForConnection());const n=this._ongoingUploads[t];if(n)return this._uploadWaiting[t]||(this._uploadWaiting[t]=!0,this._ongoingUploads[t]=n.then((()=>(this._ongoingUploads[t]=!1,this._uploadWaiting[t]=!1,this.sendToGabito(e))))),this._ongoingUploads[t];if(!this._events[t].length)return Promise.resolve({nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()});if(!this._hasFlushed||Date.now()-this._essLastSent.getTime()>18e4){this._hasFlushed=!0;const e=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(e)}const r=this.initFlush(t).then((e=>(this._ongoingUploads[t]=!1,e))).catch((()=>(this._ongoingUploads[t]=!1,this._transport.isOnline()?(A.consoleLogger.warn(`The events in the queue could not be uploaded. Throwing away ${this._events[t].length} ${t} events.`),this._events[t]=[],{nack:this._events[t],backoff:this._uploaders[t].shouldBackoff()}):this.sendToGabito(e))));return this._ongoingUploads[t]=r,r}storeEvent(e,t){const n=this.makeEvent(t);this._events[e?"authorized":"unauthorized"].push(n)}makeEvent(e){const t=this._sequenceIdGenerator;return{sequence_id:t.getSequenceId(),sequence_number:t.nextSequenceNumber(e.name),event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:m,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:e.data})}}validateEventData(e,t,n){let r=null;if(e.name){if(function(e){let t=e.length,n=t;for(;n--;){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}(JSON.stringify(e.data))>5e3)r=f.PAYLOAD_SIZE_LIMIT_EXCEEDED;else if(t&&n&&!n())return f.UNKNOWN_OWNER}else r=f.INVALID_NAME;return r||null}checkIsEventAuthorized(e){return!e.endsWith("NonAuth")}flush(e=!0){return this.sendToGabito(e).then((()=>{})).catch((()=>{}))}flushAll(){return Promise.all([this.sendToGabito(!0),this.sendToGabito(!1)]).then((()=>{})).catch((()=>{}))}finalFlush(){return this.uploadFlush()}log(e,t={}){this.send(e,t)}send(e,{flush:t=!0}={}){const n=this.checkIsEventAuthorized(e.name);let r=this.validateEventData(e,n,this._ownerProvider);if(r===f.UNKNOWN_OWNER&&(A.consoleLogger.warn(`Trying to send an authenticated event without a current owner: ${e.name}`),r=null),r){const t=(0,v.t)({event_name:e.name,reject_reason:r});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${r}`))}return this.storeEvent(n,e),t?this.flush(n):Promise.resolve()}hasContext(...e){return e.every((e=>!!this._instanceContexts[e]))}}function C(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new A(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}A.consoleLogger=s.P.forTag("EventSender")},75099:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Episode=t.Show=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(23402),s=n(84759),l=n(25199),c=n(54299),u=n(41247);function d(e){return null!=e}t.protobufPackage="spotify.show_cosmos.decorate_request.proto",t.Show={fromJSON:e=>({showMetadata:d(e.showMetadata)?a.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:d(e.showCollectionState)?s.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:d(e.showPlayState)?s.ShowPlayState.fromJSON(e.showPlayState):void 0,link:d(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?a.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?s.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?s.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){var t;const n={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:""};return n.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?a.ShowMetadata.fromPartial(e.showMetadata):void 0,n.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?s.ShowCollectionState.fromPartial(e.showCollectionState):void 0,n.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?s.ShowPlayState.fromPartial(e.showPlayState):void 0,n.link=null!==(t=e.link)&&void 0!==t?t:"",n}},t.Episode={fromJSON:e=>({episodeMetadata:d(e.episodeMetadata)?l.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:d(e.episodeCollectionState)?c.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:d(e.episodeOfflineState)?c.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:d(e.episodePlayState)?u.EpisodePlayState.fromJSON(e.episodePlayState):void 0,link:d(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?l.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?c.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?c.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?u.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){var t;const n={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?l.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?c.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?c.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?u.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n.link=null!==(t=e.link)&&void 0!==t?t:"",n}},t.Response={fromJSON:e=>({show:Array.isArray(null==e?void 0:e.show)?e.show.map((e=>t.Show.fromJSON(e))):[],episode:Array.isArray(null==e?void 0:e.episode)?e.episode.map((e=>t.Episode.fromJSON(e))):[]}),toJSON(e){const n={};return e.show?n.show=e.show.map((e=>e?t.Show.toJSON(e):void 0)):n.show=[],e.episode?n.episode=e.episode.map((e=>e?t.Episode.toJSON(e):void 0)):n.episode=[],n},fromPartial(e){var n,r;const i={show:[],episode:[]};return i.show=(null===(n=e.show)||void 0===n?void 0:n.map((e=>t.Show.fromPartial(e))))||[],i.episode=(null===(r=e.episode)||void 0===r?void 0:r.map((e=>t.Episode.fromPartial(e))))||[],i}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},61202:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.extendedmetadata",function(e){e[e.UNKNOWN_EXTENSION=0]="UNKNOWN_EXTENSION",e[e.CANVAZ=1]="CANVAZ",e[e.STORYLINES=2]="STORYLINES",e[e.PODCAST_TOPICS=3]="PODCAST_TOPICS",e[e.PODCAST_SEGMENTS=4]="PODCAST_SEGMENTS",e[e.AUDIO_FILES=5]="AUDIO_FILES",e[e.TRACK_DESCRIPTOR=6]="TRACK_DESCRIPTOR",e[e.ARTIST_V4=8]="ARTIST_V4",e[e.ALBUM_V4=9]="ALBUM_V4",e[e.TRACK_V4=10]="TRACK_V4",e[e.SHOW_V4=11]="SHOW_V4",e[e.EPISODE_V4=12]="EPISODE_V4",e[e.PODCAST_HTML_DESCRIPTION=13]="PODCAST_HTML_DESCRIPTION",e[e.PODCAST_QUOTES=14]="PODCAST_QUOTES",e[e.USER_PROFILE=15]="USER_PROFILE",e[e.CANVAS_V1=16]="CANVAS_V1",e[e.SHOW_V4_BASE=17]="SHOW_V4_BASE",e[e.SHOW_V4_EPISODES_ASSOC=18]="SHOW_V4_EPISODES_ASSOC",e[e.TRACK_DESCRIPTOR_SIGNATURES=19]="TRACK_DESCRIPTOR_SIGNATURES",e[e.PODCAST_AD_SEGMENTS=20]="PODCAST_AD_SEGMENTS",e[e.EPISODE_TRANSCRIPTS=21]="EPISODE_TRANSCRIPTS",e[e.PODCAST_SUBSCRIPTIONS=22]="PODCAST_SUBSCRIPTIONS",e[e.EXTRACTED_COLOR=23]="EXTRACTED_COLOR",e[e.PODCAST_VIRALITY=24]="PODCAST_VIRALITY",e[e.IMAGE_SPARKLES_HACK=25]="IMAGE_SPARKLES_HACK",e[e.PODCAST_POPULARITY_HACK=26]="PODCAST_POPULARITY_HACK",e[e.AUTOMIX_MODE=27]="AUTOMIX_MODE",e[e.CUEPOINTS=28]="CUEPOINTS",e[e.PODCAST_POLL=29]="PODCAST_POLL",e[e.EPISODE_ACCESS=30]="EPISODE_ACCESS",e[e.SHOW_ACCESS=31]="SHOW_ACCESS",e[e.PODCAST_QNA=32]="PODCAST_QNA",e[e.CLIPS=33]="CLIPS",e[e.PODCAST_CTA_CARDS=36]="PODCAST_CTA_CARDS",e[e.PODCAST_RATING=37]="PODCAST_RATING",e[e.DISPLAY_SEGMENTS=38]="DISPLAY_SEGMENTS",e[e.GREENROOM=39]="GREENROOM",e[e.USER_CREATED=40]="USER_CREATED",e[e.CLIENT_CONFIG=48]="CLIENT_CONFIG",e[e.AUDIOBOOK_SPECIFICS=52]="AUDIOBOOK_SPECIFICS",e[e.EPISODE_RANKING=53]="EPISODE_RANKING",e[e.HTML_DESCRIPTION=54]="HTML_DESCRIPTION",e[e.CREATOR_CHANNEL=55]="CREATOR_CHANNEL",e[e.PLAY_TRAIT=57]="PLAY_TRAIT",e[e.CONTENT_WARNING=58]="CONTENT_WARNING",e[e.IMAGE_CUE=59]="IMAGE_CUE",e[e.STREAM_COUNT=60]="STREAM_COUNT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return a.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return a.CANVAZ;case 2:case"STORYLINES":return a.STORYLINES;case 3:case"PODCAST_TOPICS":return a.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return a.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return a.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return a.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return a.ARTIST_V4;case 9:case"ALBUM_V4":return a.ALBUM_V4;case 10:case"TRACK_V4":return a.TRACK_V4;case 11:case"SHOW_V4":return a.SHOW_V4;case 12:case"EPISODE_V4":return a.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return a.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return a.PODCAST_QUOTES;case 15:case"USER_PROFILE":return a.USER_PROFILE;case 16:case"CANVAS_V1":return a.CANVAS_V1;case 17:case"SHOW_V4_BASE":return a.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return a.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return a.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return a.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return a.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return a.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return a.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return a.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return a.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return a.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return a.AUTOMIX_MODE;case 28:case"CUEPOINTS":return a.CUEPOINTS;case 29:case"PODCAST_POLL":return a.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return a.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return a.SHOW_ACCESS;case 32:case"PODCAST_QNA":return a.PODCAST_QNA;case 33:case"CLIPS":return a.CLIPS;case 36:case"PODCAST_CTA_CARDS":return a.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return a.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return a.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return a.GREENROOM;case 40:case"USER_CREATED":return a.USER_CREATED;case 48:case"CLIENT_CONFIG":return a.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return a.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return a.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return a.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return a.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return a.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return a.CONTENT_WARNING;case 59:case"IMAGE_CUE":return a.IMAGE_CUE;case 60:case"STREAM_COUNT":return a.STREAM_COUNT;default:return a.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case a.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case a.CANVAZ:return"CANVAZ";case a.STORYLINES:return"STORYLINES";case a.PODCAST_TOPICS:return"PODCAST_TOPICS";case a.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case a.AUDIO_FILES:return"AUDIO_FILES";case a.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case a.ARTIST_V4:return"ARTIST_V4";case a.ALBUM_V4:return"ALBUM_V4";case a.TRACK_V4:return"TRACK_V4";case a.SHOW_V4:return"SHOW_V4";case a.EPISODE_V4:return"EPISODE_V4";case a.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case a.PODCAST_QUOTES:return"PODCAST_QUOTES";case a.USER_PROFILE:return"USER_PROFILE";case a.CANVAS_V1:return"CANVAS_V1";case a.SHOW_V4_BASE:return"SHOW_V4_BASE";case a.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case a.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case a.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case a.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case a.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case a.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case a.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case a.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case a.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case a.AUTOMIX_MODE:return"AUTOMIX_MODE";case a.CUEPOINTS:return"CUEPOINTS";case a.PODCAST_POLL:return"PODCAST_POLL";case a.EPISODE_ACCESS:return"EPISODE_ACCESS";case a.SHOW_ACCESS:return"SHOW_ACCESS";case a.PODCAST_QNA:return"PODCAST_QNA";case a.CLIPS:return"CLIPS";case a.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case a.PODCAST_RATING:return"PODCAST_RATING";case a.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case a.GREENROOM:return"GREENROOM";case a.USER_CREATED:return"USER_CREATED";case a.CLIENT_CONFIG:return"CLIENT_CONFIG";case a.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case a.EPISODE_RANKING:return"EPISODE_RANKING";case a.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case a.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case a.PLAY_TRAIT:return"PLAY_TRAIT";case a.CONTENT_WARNING:return"CONTENT_WARNING";case a.IMAGE_CUE:return"IMAGE_CUE";case a.STREAM_COUNT:return"STREAM_COUNT";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},25199:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeMetadata=t.EpisodeShowMetadata=t.episodeMetadata_MediaTypeToJSON=t.episodeMetadata_MediaTypeFromJSON=t.EpisodeMetadata_MediaType=t.episodeMetadata_EpisodeTypeToJSON=t.episodeMetadata_EpisodeTypeFromJSON=t.EpisodeMetadata_EpisodeType=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(97583),s=n(86034);var l,c;function u(e){switch(e){case 0:case"UNKNOWN":return l.UNKNOWN;case 1:case"FULL":return l.FULL;case 2:case"TRAILER":return l.TRAILER;case 3:case"BONUS":return l.BONUS;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.UNKNOWN:return"UNKNOWN";case l.FULL:return"FULL";case l.TRAILER:return"TRAILER";case l.BONUS:return"BONUS";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"VODCAST":return c.VODCAST;case 1:case"AUDIO":return c.AUDIO;case 2:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.VODCAST:return"VODCAST";case c.AUDIO:return"AUDIO";case c.VIDEO:return"VIDEO";default:return"UNKNOWN"}}function h(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.FULL=1]="FULL",e[e.TRAILER=2]="TRAILER",e[e.BONUS=3]="BONUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.EpisodeMetadata_EpisodeType||(t.EpisodeMetadata_EpisodeType={})),t.episodeMetadata_EpisodeTypeFromJSON=u,t.episodeMetadata_EpisodeTypeToJSON=d,function(e){e[e.VODCAST=0]="VODCAST",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EpisodeMetadata_MediaType||(t.EpisodeMetadata_MediaType={})),t.episodeMetadata_MediaTypeFromJSON=p,t.episodeMetadata_MediaTypeToJSON=f,t.EpisodeShowMetadata={fromJSON:e=>({link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",publisher:h(e.publisher)?String(e.publisher):"",covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){var t,n,r;const i={link:"",name:"",publisher:"",covers:void 0};return i.link=null!==(t=e.link)&&void 0!==t?t:"",i.name=null!==(n=e.name)&&void 0!==n?n:"",i.publisher=null!==(r=e.publisher)&&void 0!==r?r:"",i.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,i}},t.EpisodeMetadata={fromJSON:e=>({show:h(e.show)?t.EpisodeShowMetadata.fromJSON(e.show):void 0,link:h(e.link)?String(e.link):"",name:h(e.name)?String(e.name):"",length:h(e.length)?Number(e.length):0,covers:h(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,manifestId:h(e.manifestId)?String(e.manifestId):"",description:h(e.description)?String(e.description):"",publishDate:h(e.publishDate)?String(e.publishDate):"0",freezeFrames:h(e.freezeFrames)?a.ImageGroup.fromJSON(e.freezeFrames):void 0,language:h(e.language)?String(e.language):"",available:!!h(e.available)&&Boolean(e.available),mediaTypeEnum:h(e.mediaTypeEnum)?p(e.mediaTypeEnum):0,number:h(e.number)?Number(e.number):0,backgroundable:!!h(e.backgroundable)&&Boolean(e.backgroundable),previewManifestId:h(e.previewManifestId)?String(e.previewManifestId):"",isExplicit:!!h(e.isExplicit)&&Boolean(e.isExplicit),previewId:h(e.previewId)?String(e.previewId):"",episodeType:h(e.episodeType)?u(e.episodeType):0,isMusicAndTalk:!!h(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(null==e?void 0:e.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const n={};return void 0!==e.show&&(n.show=e.show?t.EpisodeShowMetadata.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.manifestId&&(n.manifestId=e.manifestId),void 0!==e.description&&(n.description=e.description),void 0!==e.publishDate&&(n.publishDate=e.publishDate),void 0!==e.freezeFrames&&(n.freezeFrames=e.freezeFrames?a.ImageGroup.toJSON(e.freezeFrames):void 0),void 0!==e.language&&(n.language=e.language),void 0!==e.available&&(n.available=e.available),void 0!==e.mediaTypeEnum&&(n.mediaTypeEnum=f(e.mediaTypeEnum)),void 0!==e.number&&(n.number=Math.round(e.number)),void 0!==e.backgroundable&&(n.backgroundable=e.backgroundable),void 0!==e.previewManifestId&&(n.previewManifestId=e.previewManifestId),void 0!==e.isExplicit&&(n.isExplicit=e.isExplicit),void 0!==e.previewId&&(n.previewId=e.previewId),void 0!==e.episodeType&&(n.episodeType=d(e.episodeType)),void 0!==e.isMusicAndTalk&&(n.isMusicAndTalk=e.isMusicAndTalk),e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.is19PlusOnly&&(n.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(n.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(n.isPodcastShort=e.isPodcastShort),n},fromPartial(e){var n,r,i,o,l,c,u,d,p,f,h,v,m,g,y,_,b,E,S,T;const O={show:void 0,link:"",name:"",length:0,covers:void 0,manifestId:"",description:"",publishDate:"0",freezeFrames:void 0,language:"",available:!1,mediaTypeEnum:0,number:0,backgroundable:!1,previewManifestId:"",isExplicit:!1,previewId:"",episodeType:0,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return O.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,O.link=null!==(n=e.link)&&void 0!==n?n:"",O.name=null!==(r=e.name)&&void 0!==r?r:"",O.length=null!==(i=e.length)&&void 0!==i?i:0,O.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,O.manifestId=null!==(o=e.manifestId)&&void 0!==o?o:"",O.description=null!==(l=e.description)&&void 0!==l?l:"",O.publishDate=null!==(c=e.publishDate)&&void 0!==c?c:"0",O.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,O.language=null!==(u=e.language)&&void 0!==u?u:"",O.available=null!==(d=e.available)&&void 0!==d&&d,O.mediaTypeEnum=null!==(p=e.mediaTypeEnum)&&void 0!==p?p:0,O.number=null!==(f=e.number)&&void 0!==f?f:0,O.backgroundable=null!==(h=e.backgroundable)&&void 0!==h&&h,O.previewManifestId=null!==(v=e.previewManifestId)&&void 0!==v?v:"",O.isExplicit=null!==(m=e.isExplicit)&&void 0!==m&&m,O.previewId=null!==(g=e.previewId)&&void 0!==g?g:"",O.episodeType=null!==(y=e.episodeType)&&void 0!==y?y:0,O.isMusicAndTalk=null!==(_=e.isMusicAndTalk)&&void 0!==_&&_,O.extension=(null===(b=e.extension)||void 0===b?void 0:b.map((e=>s.Extension.fromPartial(e))))||[],O.is19PlusOnly=null!==(E=e.is19PlusOnly)&&void 0!==E&&E,O.isBookChapter=null!==(S=e.isBookChapter)&&void 0!==S&&S,O.isPodcastShort=null!==(T=e.isPodcastShort)&&void 0!==T&&T,O}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},86034:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(61202);t.protobufPackage="spotify.cosmos_util.proto",t.Extension={fromJSON:e=>({extensionKind:d(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,data:d(e.data)?c(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return u(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){var t,n;const r={extensionKind:0,data:new Uint8Array};return r.extensionKind=null!==(t=e.extensionKind)&&void 0!==t?t:0,r.data=null!==(n=e.data)&&void 0!==n?n:new Uint8Array,r}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const l=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));function c(e){const t=l(e),n=new Uint8Array(t.length);for(let e=0;es.Buffer.from(e,"binary").toString("base64"));function d(e){return null!=e}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},97583:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageGroup=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={fromJSON:e=>({standardLink:a(e.standardLink)?String(e.standardLink):"",smallLink:a(e.smallLink)?String(e.smallLink):"",largeLink:a(e.largeLink)?String(e.largeLink):"",xlargeLink:a(e.xlargeLink)?String(e.xlargeLink):""}),toJSON(e){const t={};return void 0!==e.standardLink&&(t.standardLink=e.standardLink),void 0!==e.smallLink&&(t.smallLink=e.smallLink),void 0!==e.largeLink&&(t.largeLink=e.largeLink),void 0!==e.xlargeLink&&(t.xlargeLink=e.xlargeLink),t},fromPartial(e){var t,n,r,i;const o={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return o.standardLink=null!==(t=e.standardLink)&&void 0!==t?t:"",o.smallLink=null!==(n=e.smallLink)&&void 0!==n?n:"",o.largeLink=null!==(r=e.largeLink)&&void 0!==r?r:"",o.xlargeLink=null!==(i=e.xlargeLink)&&void 0!==i?i:"",o}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},23402:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowMetadata=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(97583),s=n(86034);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",description:l(e.description)?String(e.description):"",popularity:l(e.popularity)?Number(e.popularity):0,publisher:l(e.publisher)?String(e.publisher):"",language:l(e.language)?String(e.language):"",isExplicit:!!l(e.isExplicit)&&Boolean(e.isExplicit),covers:l(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,numEpisodes:l(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:l(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:l(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(null==e?void 0:e.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:l(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!l(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(null==e?void 0:e.extension)?e.extension.map((e=>s.Extension.fromJSON(e))):[],isBook:!!l(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!l(e.isCreatorChannel)&&Boolean(e.isCreatorChannel)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.popularity&&(t.popularity=Math.round(e.popularity)),void 0!==e.publisher&&(t.publisher=e.publisher),void 0!==e.language&&(t.language=e.language),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.covers&&(t.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=Math.round(e.mediaTypeEnum)),e.copyright?t.copyright=e.copyright.map((e=>e)):t.copyright=[],void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){var t,n,r,i,o,l,c,u,d,p,f,h,v,m,g,y;const _={link:"",name:"",description:"",popularity:0,publisher:"",language:"",isExplicit:!1,covers:void 0,numEpisodes:0,consumptionOrder:"",mediaTypeEnum:0,copyright:[],trailerUri:"",isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return _.link=null!==(t=e.link)&&void 0!==t?t:"",_.name=null!==(n=e.name)&&void 0!==n?n:"",_.description=null!==(r=e.description)&&void 0!==r?r:"",_.popularity=null!==(i=e.popularity)&&void 0!==i?i:0,_.publisher=null!==(o=e.publisher)&&void 0!==o?o:"",_.language=null!==(l=e.language)&&void 0!==l?l:"",_.isExplicit=null!==(c=e.isExplicit)&&void 0!==c&&c,_.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,_.numEpisodes=null!==(u=e.numEpisodes)&&void 0!==u?u:0,_.consumptionOrder=null!==(d=e.consumptionOrder)&&void 0!==d?d:"",_.mediaTypeEnum=null!==(p=e.mediaTypeEnum)&&void 0!==p?p:0,_.copyright=(null===(f=e.copyright)||void 0===f?void 0:f.map((e=>e)))||[],_.trailerUri=null!==(h=e.trailerUri)&&void 0!==h?h:"",_.isMusicAndTalk=null!==(v=e.isMusicAndTalk)&&void 0!==v&&v,_.extension=(null===(m=e.extension)||void 0===m?void 0:m.map((e=>s.Extension.fromPartial(e))))||[],_.isBook=null!==(g=e.isBook)&&void 0!==g&&g,_.isCreatorChannel=null!==(y=e.isCreatorChannel)&&void 0!==y&&y,_}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},41247:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayState=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(99699);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={fromJSON:e=>({timeLeft:s(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:s(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:s(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.timeLeft&&(t.timeLeft=Math.round(e.timeLeft)),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.isPlayed&&(t.isPlayed=e.isPlayed),void 0!==e.lastPlayedAt&&(t.lastPlayedAt=Math.round(e.lastPlayedAt)),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){var t,n,r,i,o;const a={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return a.timeLeft=null!==(t=e.timeLeft)&&void 0!==t?t:0,a.isPlayable=null!==(n=e.isPlayable)&&void 0!==n&&n,a.isPlayed=null!==(r=e.isPlayed)&&void 0!==r&&r,a.lastPlayedAt=null!==(i=e.lastPlayedAt)&&void 0!==i?i:0,a.playabilityRestriction=null!==(o=e.playabilityRestriction)&&void 0!==o?o:0,a}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},99699:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO_RESTRICTION=1]="NO_RESTRICTION",e[e.EXPLICIT_CONTENT=2]="EXPLICIT_CONTENT",e[e.AGE_RESTRICTED=3]="AGE_RESTRICTED",e[e.NOT_IN_CATALOGUE=4]="NOT_IN_CATALOGUE",e[e.NOT_AVAILABLE_OFFLINE=5]="NOT_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return a.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return a.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return a.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return a.NOT_AVAILABLE_OFFLINE;default:return a.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case a.AGE_RESTRICTED:return"AGE_RESTRICTED";case a.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case a.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},46003:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastVirality=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));t.protobufPackage="spotify.podcastvirality.v1",t.PodcastVirality={fromJSON(e){return{isViral:(t=e.isViral,null!=t&&Boolean(e.isViral))};var t},toJSON(e){const t={};return void 0!==e.isViral&&(t.isViral=e.isViral),t},fromPartial(e){var t;const n={isViral:!1};return n.isViral=null!==(t=e.isViral)&&void 0!==t&&t,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},1001:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastHtmlDescription_Header=t.PodcastHtmlDescription=t.PodcastTopic=t.PodcastTopics=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.podcast.extensions",t.PodcastTopics={fromJSON:e=>({topics:Array.isArray(null==e?void 0:e.topics)?e.topics.map((e=>t.PodcastTopic.fromJSON(e))):[]}),toJSON(e){const n={};return e.topics?n.topics=e.topics.map((e=>e?t.PodcastTopic.toJSON(e):void 0)):n.topics=[],n},fromPartial(e){var n;const r={topics:[]};return r.topics=(null===(n=e.topics)||void 0===n?void 0:n.map((e=>t.PodcastTopic.fromPartial(e))))||[],r}},t.PodcastTopic={fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",title:a(e.title)?String(e.title):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.title&&(t.title=e.title),t},fromPartial(e){var t,n;const r={uri:"",title:""};return r.uri=null!==(t=e.uri)&&void 0!==t?t:"",r.title=null!==(n=e.title)&&void 0!==n?n:"",r}},t.PodcastHtmlDescription={fromJSON:e=>({header:a(e.header)?t.PodcastHtmlDescription_Header.fromJSON(e.header):void 0,htmlDescription:a(e.htmlDescription)?String(e.htmlDescription):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.PodcastHtmlDescription_Header.toJSON(e.header):void 0),void 0!==e.htmlDescription&&(n.htmlDescription=e.htmlDescription),n},fromPartial(e){var n;const r={header:void 0,htmlDescription:""};return r.header=void 0!==e.header&&null!==e.header?t.PodcastHtmlDescription_Header.fromPartial(e.header):void 0,r.htmlDescription=null!==(n=e.htmlDescription)&&void 0!==n?n:"",r}},t.PodcastHtmlDescription_Header={fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},54299:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeOfflineState=t.EpisodeCollectionState=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.EpisodeCollectionState={fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!a(e.isNew)&&Boolean(e.isNew),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater)}),toJSON(e){const t={};return void 0!==e.isFollowingShow&&(t.isFollowingShow=e.isFollowingShow),void 0!==e.isNew&&(t.isNew=e.isNew),void 0!==e.isInListenLater&&(t.isInListenLater=e.isInListenLater),t},fromPartial(e){var t,n,r;const i={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return i.isFollowingShow=null!==(t=e.isFollowingShow)&&void 0!==t&&t,i.isNew=null!==(n=e.isNew)&&void 0!==n&&n,i.isInListenLater=null!==(r=e.isInListenLater)&&void 0!==r&&r,i}},t.EpisodeOfflineState={fromJSON:e=>({offlineState:a(e.offlineState)?String(e.offlineState):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offlineState&&(t.offlineState=e.offlineState),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){var t,n;const r={offlineState:"",syncProgress:0};return r.offlineState=null!==(t=e.offlineState)&&void 0!==t?t:"",r.syncProgress=null!==(n=e.syncProgress)&&void 0!==n?n:0,r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},51403:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LatestUnplayedEpisodeSection=t.TrailerSection=t.ContinueListeningSection=t.AuxiliarySections=t.Response=t.Header=t.Item=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(25199),s=n(54299),l=n(41247),c=n(23402),u=n(84759);function d(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.Item={fromJSON:e=>({headerField:d(e.headerField)?String(e.headerField):"",episodeMetadata:d(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:d(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:d(e.episodeOfflineState)?s.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:d(e.episodePlayState)?l.EpisodePlayState.fromJSON(e.episodePlayState):void 0}),toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?a.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?s.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?s.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?l.EpisodePlayState.toJSON(e.episodePlayState):void 0),t},fromPartial(e){var t;const n={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};return n.headerField=null!==(t=e.headerField)&&void 0!==t?t:"",n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?s.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?l.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n}},t.Header={fromJSON:e=>({showMetadata:d(e.showMetadata)?c.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:d(e.showCollectionState)?u.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:d(e.showPlayState)?u.ShowPlayState.fromJSON(e.showPlayState):void 0}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?c.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?u.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?u.ShowPlayState.toJSON(e.showPlayState):void 0),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?c.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?u.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?u.ShowPlayState.fromPartial(e.showPlayState):void 0,t}},t.Response={fromJSON:e=>({item:Array.isArray(null==e?void 0:e.items)?e.items.map((e=>t.Item.fromJSON(e))):[],header:d(e.header)?t.Header.fromJSON(e.header):void 0,unfilteredLength:d(e.unfilteredLength)?Number(e.unfilteredLength):0,length:d(e.length)?Number(e.length):0,loadingContents:!!d(e.loadingContents)&&Boolean(e.loadingContents),unrangedLength:d(e.unrangedLength)?Number(e.unrangedLength):0,auxiliarySections:d(e.auxiliarySections)?t.AuxiliarySections.fromJSON(e.auxiliarySections):void 0,rangeOffset:d(e.rangeOffset)?Number(e.rangeOffset):0}),toJSON(e){const n={};return e.item?n.items=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.items=[],void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.length&&(n.length=Math.round(e.length)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.auxiliarySections&&(n.auxiliarySections=e.auxiliarySections?t.AuxiliarySections.toJSON(e.auxiliarySections):void 0),void 0!==e.rangeOffset&&(n.rangeOffset=Math.round(e.rangeOffset)),n},fromPartial(e){var n,r,i,o,a,s;const l={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0,rangeOffset:0};return l.item=(null===(n=e.item)||void 0===n?void 0:n.map((e=>t.Item.fromPartial(e))))||[],l.header=void 0!==e.header&&null!==e.header?t.Header.fromPartial(e.header):void 0,l.unfilteredLength=null!==(r=e.unfilteredLength)&&void 0!==r?r:0,l.length=null!==(i=e.length)&&void 0!==i?i:0,l.loadingContents=null!==(o=e.loadingContents)&&void 0!==o&&o,l.unrangedLength=null!==(a=e.unrangedLength)&&void 0!==a?a:0,l.auxiliarySections=void 0!==e.auxiliarySections&&null!==e.auxiliarySections?t.AuxiliarySections.fromPartial(e.auxiliarySections):void 0,l.rangeOffset=null!==(s=e.rangeOffset)&&void 0!==s?s:0,l}},t.AuxiliarySections={fromJSON:e=>({continueListening:d(e.continueListening)?t.ContinueListeningSection.fromJSON(e.continueListening):void 0,trailerSection:d(e.trailerSection)?t.TrailerSection.fromJSON(e.trailerSection):void 0,latestUnplayedEpisodeSection:d(e.latestUnplayedEpisodeSection)?t.LatestUnplayedEpisodeSection.fromJSON(e.latestUnplayedEpisodeSection):void 0}),toJSON(e){const n={};return void 0!==e.continueListening&&(n.continueListening=e.continueListening?t.ContinueListeningSection.toJSON(e.continueListening):void 0),void 0!==e.trailerSection&&(n.trailerSection=e.trailerSection?t.TrailerSection.toJSON(e.trailerSection):void 0),void 0!==e.latestUnplayedEpisodeSection&&(n.latestUnplayedEpisodeSection=e.latestUnplayedEpisodeSection?t.LatestUnplayedEpisodeSection.toJSON(e.latestUnplayedEpisodeSection):void 0),n},fromPartial(e){const n={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0};return n.continueListening=void 0!==e.continueListening&&null!==e.continueListening?t.ContinueListeningSection.fromPartial(e.continueListening):void 0,n.trailerSection=void 0!==e.trailerSection&&null!==e.trailerSection?t.TrailerSection.fromPartial(e.trailerSection):void 0,n.latestUnplayedEpisodeSection=void 0!==e.latestUnplayedEpisodeSection&&null!==e.latestUnplayedEpisodeSection?t.LatestUnplayedEpisodeSection.fromPartial(e.latestUnplayedEpisodeSection):void 0,n}},t.ContinueListeningSection={fromJSON:e=>({item:d(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={item:void 0};return n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},t.TrailerSection={fromJSON:e=>({item:d(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={item:void 0};return n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},t.LatestUnplayedEpisodeSection={fromJSON:e=>({item:d(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={item:void 0};return n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},84759:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.ShowCollectionState=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.ShowCollectionState={fromJSON:e=>({isInCollection:!!a(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){var t;const n={isInCollection:!1};return n.isInCollection=null!==(t=e.isInCollection)&&void 0!==t&&t,n}},t.ShowPlayState={fromJSON:e=>({latestPlayedEpisodeLink:a(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):""}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),t},fromPartial(e){var t;const n={latestPlayedEpisodeLink:""};return n.latestPlayedEpisodeLink=null!==(t=e.latestPlayedEpisodeLink)&&void 0!==t?t:"",n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},49179:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transcript=t.EpisodeTranscript=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));function a(e){return null!=e}t.protobufPackage="spotify.corex.transcripts.metadata",t.EpisodeTranscript={fromJSON:e=>({episodeUri:a(e.episodeUri)?String(e.episodeUri):"",transcripts:Array.isArray(null==e?void 0:e.transcripts)?e.transcripts.map((e=>t.Transcript.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.episodeUri&&(n.episodeUri=e.episodeUri),e.transcripts?n.transcripts=e.transcripts.map((e=>e?t.Transcript.toJSON(e):void 0)):n.transcripts=[],n},fromPartial(e){var n,r;const i={episodeUri:"",transcripts:[]};return i.episodeUri=null!==(n=e.episodeUri)&&void 0!==n?n:"",i.transcripts=(null===(r=e.transcripts)||void 0===r?void 0:r.map((e=>t.Transcript.fromPartial(e))))||[],i}},t.Transcript={fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",language:a(e.language)?String(e.language):"",curated:!!a(e.curated)&&Boolean(e.curated),cdnUrl:a(e.cdnUrl)?String(e.cdnUrl):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.language&&(t.language=e.language),void 0!==e.curated&&(t.curated=e.curated),void 0!==e.cdnUrl&&(t.cdnUrl=e.cdnUrl),t},fromPartial(e){var t,n,r,i;const o={uri:"",language:"",curated:!1,cdnUrl:""};return o.uri=null!==(t=e.uri)&&void 0!==t?t:"",o.language=null!==(n=e.language)&&void 0!==n?n:"",o.curated=null!==(r=e.curated)&&void 0!==r&&r,o.cdnUrl=null!==(i=e.cdnUrl)&&void 0!==i?i:"",o}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},26663:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Episode=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100)),a=n(25199),s=n(54299),l=n(41247);function c(e){return null!=e}t.protobufPackage="spotify.show_cosmos.unfinished_episodes_request.proto",t.Episode={fromJSON:e=>({episodeMetadata:c(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:c(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:c(e.episodeOfflineState)?s.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:c(e.episodePlayState)?l.EpisodePlayState.fromJSON(e.episodePlayState):void 0,link:c(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?a.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?s.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?s.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?l.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){var t;const n={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?s.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?l.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n.link=null!==(t=e.link)&&void 0!==t?t:"",n}},t.Response={fromJSON:e=>({episode:Array.isArray(null==e?void 0:e.episode)?e.episode.map((e=>t.Episode.fromJSON(e))):[]}),toJSON(e){const n={};return e.episode?n.episode=e.episode.map((e=>e?t.Episode.toJSON(e):void 0)):n.episode=[],n},fromPartial(e){var n;const r={episode:[]};return r.episode=(null===(n=e.episode)||void 0===n?void 0:n.map((e=>t.Episode.fromPartial(e))))||[],r}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},14046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReportingServiceClient=void 0;const r=n(62100),i=n(65195),o=n(49008),a=n(45643),s=n(88482),l=n(85185),c=n(85900);class u{constructor(e){this.transport=e}streamStart(e){return this.transport.callSingle({service:"spotify.stream_reporting_esperanto.proto.StreamReportingService",method:"StreamStart",payload:i.StreamStartRequest.encode(e).finish()}).then((e=>o.StreamStartResponse.decode(r.Reader.create(e))))}streamProgress(e){return this.transport.callSingle({service:"spotify.stream_reporting_esperanto.proto.StreamReportingService",method:"StreamProgress",payload:a.StreamProgressRequest.encode(e).finish()}).then((e=>s.StatusResponse.decode(r.Reader.create(e))))}streamSeek(e){return this.transport.callSingle({service:"spotify.stream_reporting_esperanto.proto.StreamReportingService",method:"StreamSeek",payload:l.StreamSeekRequest.encode(e).finish()}).then((e=>s.StatusResponse.decode(r.Reader.create(e))))}streamEnd(e){return this.transport.callSingle({service:"spotify.stream_reporting_esperanto.proto.StreamReportingService",method:"StreamEnd",payload:c.StreamEndRequest.encode(e).finish()}).then((e=>s.StatusResponse.decode(r.Reader.create(e))))}}t.StreamReportingServiceClient=u,u.SERVICE_ID="spotify.stream_reporting_esperanto.proto.StreamReportingService",u.DECODERS={StreamStart:{request:i.StreamStartRequest.decode,response:o.StreamStartResponse.decode},StreamProgress:{request:a.StreamProgressRequest.decode,response:s.StatusResponse.decode},StreamSeek:{request:l.StreamSeekRequest.decode,response:s.StatusResponse.decode},StreamEnd:{request:c.StreamEndRequest.decode,response:s.StatusResponse.decode}}},64781:(e,t,n)=>{"use strict";t.lS=t.LI=t.Dx=t.Mk=t.Ce=t.OE=t.GL=t.VL=t.DD=void 0;var r=n(9481);var i=n(38770);Object.defineProperty(t,"DD",{enumerable:!0,get:function(){return i.MediaType}});var o=n(39033);Object.defineProperty(t,"VL",{enumerable:!0,get:function(){return o.PlayReason}});var a=n(60607);Object.defineProperty(t,"GL",{enumerable:!0,get:function(){return a.StatusCode}});var s=n(88482);var l=n(85900);Object.defineProperty(t,"OE",{enumerable:!0,get:function(){return l.StreamEndRequest}});var c=n(38991);var u=n(65195);Object.defineProperty(t,"Ce",{enumerable:!0,get:function(){return u.StreamStartRequest}});var d=n(49008);var p=n(45643);Object.defineProperty(t,"Mk",{enumerable:!0,get:function(){return p.StreamProgressRequest}});var f=n(14046);Object.defineProperty(t,"Dx",{enumerable:!0,get:function(){return f.StreamReportingServiceClient}});var h=n(85185);Object.defineProperty(t,"LI",{enumerable:!0,get:function(){return h.StreamSeekRequest}});var v=n(91763);Object.defineProperty(t,"lS",{enumerable:!0,get:function(){return v.StreamingRule}})},9481:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.audioFormatToJSON=t.audioFormatFromJSON=t.AudioFormat=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.FORMAT_UNKNOWN=0]="FORMAT_UNKNOWN",e[e.FORMAT_OGG_VORBIS_96=1]="FORMAT_OGG_VORBIS_96",e[e.FORMAT_OGG_VORBIS_160=2]="FORMAT_OGG_VORBIS_160",e[e.FORMAT_OGG_VORBIS_320=3]="FORMAT_OGG_VORBIS_320",e[e.FORMAT_MP3_256=4]="FORMAT_MP3_256",e[e.FORMAT_MP3_320=5]="FORMAT_MP3_320",e[e.FORMAT_MP3_160=6]="FORMAT_MP3_160",e[e.FORMAT_MP3_96=7]="FORMAT_MP3_96",e[e.FORMAT_MP3_160_ENCRYPTED=8]="FORMAT_MP3_160_ENCRYPTED",e[e.FORMAT_AAC_24=9]="FORMAT_AAC_24",e[e.FORMAT_AAC_48=10]="FORMAT_AAC_48",e[e.FORMAT_MP4_128=11]="FORMAT_MP4_128",e[e.FORMAT_MP4_128_DUAL=12]="FORMAT_MP4_128_DUAL",e[e.FORMAT_MP4_128_CBCS=13]="FORMAT_MP4_128_CBCS",e[e.FORMAT_MP4_256=14]="FORMAT_MP4_256",e[e.FORMAT_MP4_256_DUAL=15]="FORMAT_MP4_256_DUAL",e[e.FORMAT_MP4_256_CBCS=16]="FORMAT_MP4_256_CBCS",e[e.FORMAT_FLAC_FLAC=17]="FORMAT_FLAC_FLAC",e[e.FORMAT_MP4_FLAC=18]="FORMAT_MP4_FLAC",e[e.FORMAT_MP4_Unknown=19]="FORMAT_MP4_Unknown",e[e.FORMAT_MP3_Unknown=20]="FORMAT_MP3_Unknown",e[e.FORMAT_XHE_AAC_12=21]="FORMAT_XHE_AAC_12",e[e.FORMAT_XHE_AAC_16=22]="FORMAT_XHE_AAC_16",e[e.FORMAT_XHE_AAC_24=23]="FORMAT_XHE_AAC_24",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.AudioFormat||(t.AudioFormat={})),t.audioFormatFromJSON=function(e){switch(e){case 0:case"FORMAT_UNKNOWN":return a.FORMAT_UNKNOWN;case 1:case"FORMAT_OGG_VORBIS_96":return a.FORMAT_OGG_VORBIS_96;case 2:case"FORMAT_OGG_VORBIS_160":return a.FORMAT_OGG_VORBIS_160;case 3:case"FORMAT_OGG_VORBIS_320":return a.FORMAT_OGG_VORBIS_320;case 4:case"FORMAT_MP3_256":return a.FORMAT_MP3_256;case 5:case"FORMAT_MP3_320":return a.FORMAT_MP3_320;case 6:case"FORMAT_MP3_160":return a.FORMAT_MP3_160;case 7:case"FORMAT_MP3_96":return a.FORMAT_MP3_96;case 8:case"FORMAT_MP3_160_ENCRYPTED":return a.FORMAT_MP3_160_ENCRYPTED;case 9:case"FORMAT_AAC_24":return a.FORMAT_AAC_24;case 10:case"FORMAT_AAC_48":return a.FORMAT_AAC_48;case 11:case"FORMAT_MP4_128":return a.FORMAT_MP4_128;case 12:case"FORMAT_MP4_128_DUAL":return a.FORMAT_MP4_128_DUAL;case 13:case"FORMAT_MP4_128_CBCS":return a.FORMAT_MP4_128_CBCS;case 14:case"FORMAT_MP4_256":return a.FORMAT_MP4_256;case 15:case"FORMAT_MP4_256_DUAL":return a.FORMAT_MP4_256_DUAL;case 16:case"FORMAT_MP4_256_CBCS":return a.FORMAT_MP4_256_CBCS;case 17:case"FORMAT_FLAC_FLAC":return a.FORMAT_FLAC_FLAC;case 18:case"FORMAT_MP4_FLAC":return a.FORMAT_MP4_FLAC;case 19:case"FORMAT_MP4_Unknown":return a.FORMAT_MP4_Unknown;case 20:case"FORMAT_MP3_Unknown":return a.FORMAT_MP3_Unknown;case 21:case"FORMAT_XHE_AAC_12":return a.FORMAT_XHE_AAC_12;case 22:case"FORMAT_XHE_AAC_16":return a.FORMAT_XHE_AAC_16;case 23:case"FORMAT_XHE_AAC_24":return a.FORMAT_XHE_AAC_24;default:return a.UNRECOGNIZED}},t.audioFormatToJSON=function(e){switch(e){case a.FORMAT_UNKNOWN:return"FORMAT_UNKNOWN";case a.FORMAT_OGG_VORBIS_96:return"FORMAT_OGG_VORBIS_96";case a.FORMAT_OGG_VORBIS_160:return"FORMAT_OGG_VORBIS_160";case a.FORMAT_OGG_VORBIS_320:return"FORMAT_OGG_VORBIS_320";case a.FORMAT_MP3_256:return"FORMAT_MP3_256";case a.FORMAT_MP3_320:return"FORMAT_MP3_320";case a.FORMAT_MP3_160:return"FORMAT_MP3_160";case a.FORMAT_MP3_96:return"FORMAT_MP3_96";case a.FORMAT_MP3_160_ENCRYPTED:return"FORMAT_MP3_160_ENCRYPTED";case a.FORMAT_AAC_24:return"FORMAT_AAC_24";case a.FORMAT_AAC_48:return"FORMAT_AAC_48";case a.FORMAT_MP4_128:return"FORMAT_MP4_128";case a.FORMAT_MP4_128_DUAL:return"FORMAT_MP4_128_DUAL";case a.FORMAT_MP4_128_CBCS:return"FORMAT_MP4_128_CBCS";case a.FORMAT_MP4_256:return"FORMAT_MP4_256";case a.FORMAT_MP4_256_DUAL:return"FORMAT_MP4_256_DUAL";case a.FORMAT_MP4_256_CBCS:return"FORMAT_MP4_256_CBCS";case a.FORMAT_FLAC_FLAC:return"FORMAT_FLAC_FLAC";case a.FORMAT_MP4_FLAC:return"FORMAT_MP4_FLAC";case a.FORMAT_MP4_Unknown:return"FORMAT_MP4_Unknown";case a.FORMAT_MP3_Unknown:return"FORMAT_MP3_Unknown";case a.FORMAT_XHE_AAC_12:return"FORMAT_XHE_AAC_12";case a.FORMAT_XHE_AAC_16:return"FORMAT_XHE_AAC_16";case a.FORMAT_XHE_AAC_24:return"FORMAT_XHE_AAC_24";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},38770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mediaTypeToJSON=t.mediaTypeFromJSON=t.MediaType=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.AUDIO=0]="AUDIO",e[e.VIDEO=1]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.MediaType||(t.MediaType={})),t.mediaTypeFromJSON=function(e){switch(e){case 0:case"AUDIO":return a.AUDIO;case 1:case"VIDEO":return a.VIDEO;default:return a.UNRECOGNIZED}},t.mediaTypeToJSON=function(e){switch(e){case a.AUDIO:return"AUDIO";case a.VIDEO:return"VIDEO";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},39033:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.playReasonToJSON=t.playReasonFromJSON=t.PlayReason=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.PLAY_REASON_UNKNOWN=0]="PLAY_REASON_UNKNOWN",e[e.PLAY_REASON_APP_LOAD=1]="PLAY_REASON_APP_LOAD",e[e.PLAY_REASON_BACK_BTN=2]="PLAY_REASON_BACK_BTN",e[e.PLAY_REASON_CLICK_ROW=3]="PLAY_REASON_CLICK_ROW",e[e.PLAY_REASON_CLICK_SIDE=4]="PLAY_REASON_CLICK_SIDE",e[e.PLAY_REASON_END_PLAY=5]="PLAY_REASON_END_PLAY",e[e.PLAY_REASON_FWD_BTN=6]="PLAY_REASON_FWD_BTN",e[e.PLAY_REASON_INTERRUPTED=7]="PLAY_REASON_INTERRUPTED",e[e.PLAY_REASON_LOGOUT=8]="PLAY_REASON_LOGOUT",e[e.PLAY_REASON_PLAY_BTN=9]="PLAY_REASON_PLAY_BTN",e[e.PLAY_REASON_POPUP=10]="PLAY_REASON_POPUP",e[e.PLAY_REASON_REMOTE=11]="PLAY_REASON_REMOTE",e[e.PLAY_REASON_SONG_DONE=12]="PLAY_REASON_SONG_DONE",e[e.PLAY_REASON_TRACK_DONE=13]="PLAY_REASON_TRACK_DONE",e[e.PLAY_REASON_TRACK_ERROR=14]="PLAY_REASON_TRACK_ERROR",e[e.PLAY_REASON_PREVIEW=15]="PLAY_REASON_PREVIEW",e[e.PLAY_REASON_URI_OPEN=16]="PLAY_REASON_URI_OPEN",e[e.PLAY_REASON_BACKGROUNDED=17]="PLAY_REASON_BACKGROUNDED",e[e.PLAY_REASON_OFFLINE=18]="PLAY_REASON_OFFLINE",e[e.PLAY_REASON_UNEXPECTED_EXIT=19]="PLAY_REASON_UNEXPECTED_EXIT",e[e.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED=20]="PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayReason||(t.PlayReason={})),t.playReasonFromJSON=function(e){switch(e){case 0:case"PLAY_REASON_UNKNOWN":return a.PLAY_REASON_UNKNOWN;case 1:case"PLAY_REASON_APP_LOAD":return a.PLAY_REASON_APP_LOAD;case 2:case"PLAY_REASON_BACK_BTN":return a.PLAY_REASON_BACK_BTN;case 3:case"PLAY_REASON_CLICK_ROW":return a.PLAY_REASON_CLICK_ROW;case 4:case"PLAY_REASON_CLICK_SIDE":return a.PLAY_REASON_CLICK_SIDE;case 5:case"PLAY_REASON_END_PLAY":return a.PLAY_REASON_END_PLAY;case 6:case"PLAY_REASON_FWD_BTN":return a.PLAY_REASON_FWD_BTN;case 7:case"PLAY_REASON_INTERRUPTED":return a.PLAY_REASON_INTERRUPTED;case 8:case"PLAY_REASON_LOGOUT":return a.PLAY_REASON_LOGOUT;case 9:case"PLAY_REASON_PLAY_BTN":return a.PLAY_REASON_PLAY_BTN;case 10:case"PLAY_REASON_POPUP":return a.PLAY_REASON_POPUP;case 11:case"PLAY_REASON_REMOTE":return a.PLAY_REASON_REMOTE;case 12:case"PLAY_REASON_SONG_DONE":return a.PLAY_REASON_SONG_DONE;case 13:case"PLAY_REASON_TRACK_DONE":return a.PLAY_REASON_TRACK_DONE;case 14:case"PLAY_REASON_TRACK_ERROR":return a.PLAY_REASON_TRACK_ERROR;case 15:case"PLAY_REASON_PREVIEW":return a.PLAY_REASON_PREVIEW;case 16:case"PLAY_REASON_URI_OPEN":return a.PLAY_REASON_URI_OPEN;case 17:case"PLAY_REASON_BACKGROUNDED":return a.PLAY_REASON_BACKGROUNDED;case 18:case"PLAY_REASON_OFFLINE":return a.PLAY_REASON_OFFLINE;case 19:case"PLAY_REASON_UNEXPECTED_EXIT":return a.PLAY_REASON_UNEXPECTED_EXIT;case 20:case"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED":return a.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED;default:return a.UNRECOGNIZED}},t.playReasonToJSON=function(e){switch(e){case a.PLAY_REASON_UNKNOWN:return"PLAY_REASON_UNKNOWN";case a.PLAY_REASON_APP_LOAD:return"PLAY_REASON_APP_LOAD";case a.PLAY_REASON_BACK_BTN:return"PLAY_REASON_BACK_BTN";case a.PLAY_REASON_CLICK_ROW:return"PLAY_REASON_CLICK_ROW";case a.PLAY_REASON_CLICK_SIDE:return"PLAY_REASON_CLICK_SIDE";case a.PLAY_REASON_END_PLAY:return"PLAY_REASON_END_PLAY";case a.PLAY_REASON_FWD_BTN:return"PLAY_REASON_FWD_BTN";case a.PLAY_REASON_INTERRUPTED:return"PLAY_REASON_INTERRUPTED";case a.PLAY_REASON_LOGOUT:return"PLAY_REASON_LOGOUT";case a.PLAY_REASON_PLAY_BTN:return"PLAY_REASON_PLAY_BTN";case a.PLAY_REASON_POPUP:return"PLAY_REASON_POPUP";case a.PLAY_REASON_REMOTE:return"PLAY_REASON_REMOTE";case a.PLAY_REASON_SONG_DONE:return"PLAY_REASON_SONG_DONE";case a.PLAY_REASON_TRACK_DONE:return"PLAY_REASON_TRACK_DONE";case a.PLAY_REASON_TRACK_ERROR:return"PLAY_REASON_TRACK_ERROR";case a.PLAY_REASON_PREVIEW:return"PLAY_REASON_PREVIEW";case a.PLAY_REASON_URI_OPEN:return"PLAY_REASON_URI_OPEN";case a.PLAY_REASON_BACKGROUNDED:return"PLAY_REASON_BACKGROUNDED";case a.PLAY_REASON_OFFLINE:return"PLAY_REASON_OFFLINE";case a.PLAY_REASON_UNEXPECTED_EXIT:return"PLAY_REASON_UNEXPECTED_EXIT";case a.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED:return"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},60607:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.statusCodeToJSON=t.statusCodeFromJSON=t.StatusCode=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.SUCCESS=0]="SUCCESS",e[e.EVENT_SENDER_ERROR=2]="EVENT_SENDER_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.StatusCode||(t.StatusCode={})),t.statusCodeFromJSON=function(e){switch(e){case 0:case"SUCCESS":return a.SUCCESS;case 2:case"EVENT_SENDER_ERROR":return a.EVENT_SENDER_ERROR;default:return a.UNRECOGNIZED}},t.statusCodeToJSON=function(e){switch(e){case a.SUCCESS:return"SUCCESS";case a.EVENT_SENDER_ERROR:return"EVENT_SENDER_ERROR";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},88482:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.statusCode=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.statusCode&&null!==e.statusCode?t.statusCode=(0,c.statusCodeFromJSON)(e.statusCode):t.statusCode=0,void 0!==e.reason&&null!==e.reason?t.reason=String(e.reason):t.reason="",t},toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=(0,c.statusCodeToJSON)(e.statusCode)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t=o({},u);return void 0!==e.statusCode&&null!==e.statusCode?t.statusCode=e.statusCode:t.statusCode=0,void 0!==e.reason&&null!==e.reason?t.reason=e.reason:t.reason="",t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},85900:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.streamHandle&&u.StreamHandle.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),""!==e.sourceEnd&&t.uint32(18).string(e.sourceEnd),0!==e.reasonEnd&&t.uint32(24).int32(e.reasonEnd),void 0!==e.format&&t.uint32(32).int32(e.format),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(;n.pos>>3){case 1:i.streamHandle=u.StreamHandle.decode(n,n.uint32());break;case 2:i.sourceEnd=n.string();break;case 3:i.reasonEnd=n.int32();break;case 4:i.format=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=u.StreamHandle.fromJSON(e.streamHandle):t.streamHandle=void 0,void 0!==e.sourceEnd&&null!==e.sourceEnd?t.sourceEnd=String(e.sourceEnd):t.sourceEnd="",void 0!==e.reasonEnd&&null!==e.reasonEnd?t.reasonEnd=(0,c.playReasonFromJSON)(e.reasonEnd):t.reasonEnd=0,void 0!==e.format&&null!==e.format?t.format=(0,d.audioFormatFromJSON)(e.format):t.format=void 0,t},toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?u.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.sourceEnd&&(t.sourceEnd=e.sourceEnd),void 0!==e.reasonEnd&&(t.reasonEnd=(0,c.playReasonToJSON)(e.reasonEnd)),void 0!==e.format&&(t.format=void 0!==e.format?(0,d.audioFormatToJSON)(e.format):void 0),t},fromPartial(e){const t=o({},p);return void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=u.StreamHandle.fromPartial(e.streamHandle):t.streamHandle=void 0,void 0!==e.sourceEnd&&null!==e.sourceEnd?t.sourceEnd=e.sourceEnd:t.sourceEnd="",void 0!==e.reasonEnd&&null!==e.reasonEnd?t.reasonEnd=e.reasonEnd:t.reasonEnd=0,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},38991:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},c);for(i.playbackId=new Uint8Array;n.pos>>3==1)i.playbackId=n.bytes();else n.skipType(7&e)}return i},fromJSON(e){const t=o({},c);return t.playbackId=new Uint8Array,void 0!==e.playbackId&&null!==e.playbackId&&(t.playbackId=function(e){const t=d(e),n=new Uint8Array(t.length);for(let e=0;e{if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const d=u.atob||(e=>u.Buffer.from(e,"base64").toString("binary"));const p=u.btoa||(e=>u.Buffer.from(e,"binary").toString("base64"));l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},45643:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.streamHandle&&c.StreamHandle.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),"0"!==e.currentPosition&&t.uint32(16).uint64(e.currentPosition),!0===e.isPaused&&t.uint32(24).bool(e.isPaused),!0===e.isPlayingVideo&&t.uint32(32).bool(e.isPlayingVideo),!0===e.isOverlapping&&t.uint32(40).bool(e.isOverlapping),!0===e.isBackground&&t.uint32(48).bool(e.isBackground),!0===e.isFullscreen&&t.uint32(56).bool(e.isFullscreen),!0===e.isExternal&&t.uint32(64).bool(e.isExternal),0!==e.playbackSpeed&&t.uint32(73).double(e.playbackSpeed),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.streamHandle=c.StreamHandle.decode(n,n.uint32());break;case 2:i.currentPosition=n.uint64().toString();break;case 3:i.isPaused=n.bool();break;case 4:i.isPlayingVideo=n.bool();break;case 5:i.isOverlapping=n.bool();break;case 6:i.isBackground=n.bool();break;case 7:i.isFullscreen=n.bool();break;case 8:i.isExternal=n.bool();break;case 9:i.playbackSpeed=n.double();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=c.StreamHandle.fromJSON(e.streamHandle):t.streamHandle=void 0,void 0!==e.currentPosition&&null!==e.currentPosition?t.currentPosition=String(e.currentPosition):t.currentPosition="0",void 0!==e.isPaused&&null!==e.isPaused?t.isPaused=Boolean(e.isPaused):t.isPaused=!1,void 0!==e.isPlayingVideo&&null!==e.isPlayingVideo?t.isPlayingVideo=Boolean(e.isPlayingVideo):t.isPlayingVideo=!1,void 0!==e.isOverlapping&&null!==e.isOverlapping?t.isOverlapping=Boolean(e.isOverlapping):t.isOverlapping=!1,void 0!==e.isBackground&&null!==e.isBackground?t.isBackground=Boolean(e.isBackground):t.isBackground=!1,void 0!==e.isFullscreen&&null!==e.isFullscreen?t.isFullscreen=Boolean(e.isFullscreen):t.isFullscreen=!1,void 0!==e.isExternal&&null!==e.isExternal?t.isExternal=Boolean(e.isExternal):t.isExternal=!1,void 0!==e.playbackSpeed&&null!==e.playbackSpeed?t.playbackSpeed=Number(e.playbackSpeed):t.playbackSpeed=0,t},toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?c.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.currentPosition&&(t.currentPosition=e.currentPosition),void 0!==e.isPaused&&(t.isPaused=e.isPaused),void 0!==e.isPlayingVideo&&(t.isPlayingVideo=e.isPlayingVideo),void 0!==e.isOverlapping&&(t.isOverlapping=e.isOverlapping),void 0!==e.isBackground&&(t.isBackground=e.isBackground),void 0!==e.isFullscreen&&(t.isFullscreen=e.isFullscreen),void 0!==e.isExternal&&(t.isExternal=e.isExternal),void 0!==e.playbackSpeed&&(t.playbackSpeed=e.playbackSpeed),t},fromPartial(e){const t=o({},u);return void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=c.StreamHandle.fromPartial(e.streamHandle):t.streamHandle=void 0,void 0!==e.currentPosition&&null!==e.currentPosition?t.currentPosition=e.currentPosition:t.currentPosition="0",void 0!==e.isPaused&&null!==e.isPaused?t.isPaused=e.isPaused:t.isPaused=!1,void 0!==e.isPlayingVideo&&null!==e.isPlayingVideo?t.isPlayingVideo=e.isPlayingVideo:t.isPlayingVideo=!1,void 0!==e.isOverlapping&&null!==e.isOverlapping?t.isOverlapping=e.isOverlapping:t.isOverlapping=!1,void 0!==e.isBackground&&null!==e.isBackground?t.isBackground=e.isBackground:t.isBackground=!1,void 0!==e.isFullscreen&&null!==e.isFullscreen?t.isFullscreen=e.isFullscreen:t.isFullscreen=!1,void 0!==e.isExternal&&null!==e.isExternal?t.isExternal=e.isExternal:t.isExternal=!1,void 0!==e.playbackSpeed&&null!==e.playbackSpeed?t.playbackSpeed=e.playbackSpeed:t.playbackSpeed=0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},85185:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.streamHandle&&c.StreamHandle.encode(e.streamHandle,t.uint32(10).fork()).ldelim(),"0"!==e.fromPosition&&t.uint32(24).uint64(e.fromPosition),"0"!==e.toPosition&&t.uint32(32).uint64(e.toPosition),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},u);for(;n.pos>>3){case 1:i.streamHandle=c.StreamHandle.decode(n,n.uint32());break;case 3:i.fromPosition=d(n.uint64());break;case 4:i.toPosition=d(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},u);return void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=c.StreamHandle.fromJSON(e.streamHandle):t.streamHandle=void 0,void 0!==e.fromPosition&&null!==e.fromPosition?t.fromPosition=String(e.fromPosition):t.fromPosition="0",void 0!==e.toPosition&&null!==e.toPosition?t.toPosition=String(e.toPosition):t.toPosition="0",t},toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?c.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.fromPosition&&(t.fromPosition=e.fromPosition),void 0!==e.toPosition&&(t.toPosition=e.toPosition),t},fromPartial(e){const t=o({},u);return void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=c.StreamHandle.fromPartial(e.streamHandle):t.streamHandle=void 0,void 0!==e.fromPosition&&null!==e.fromPosition?t.fromPosition=e.fromPosition:t.fromPosition="0",void 0!==e.toPosition&&null!==e.toPosition?t.toPosition=e.toPosition:t.toPosition="0",t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},65195:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(0!==e.playbackId.length&&t.uint32(10).bytes(e.playbackId),0!==e.parentPlaybackId.length&&t.uint32(18).bytes(e.parentPlaybackId),""!==e.parentPlayTrack&&t.uint32(26).string(e.parentPlayTrack),""!==e.videoSessionId&&t.uint32(34).string(e.videoSessionId),""!==e.playContext&&t.uint32(42).string(e.playContext),""!==e.contentUri&&t.uint32(50).string(e.contentUri),""!==e.displayedContentUri&&t.uint32(58).string(e.displayedContentUri),""!==e.featureIdentifier&&t.uint32(66).string(e.featureIdentifier),""!==e.featureVersion&&t.uint32(74).string(e.featureVersion),""!==e.viewUri&&t.uint32(82).string(e.viewUri),""!==e.provider&&t.uint32(90).string(e.provider),""!==e.referrer&&t.uint32(98).string(e.referrer),""!==e.referrerVersion&&t.uint32(106).string(e.referrerVersion),""!==e.referrerVendor&&t.uint32(114).string(e.referrerVendor),0!==e.streamingRule&&t.uint32(120).int32(e.streamingRule),""!==e.connectControllerDeviceId&&t.uint32(130).string(e.connectControllerDeviceId),""!==e.pageInstanceId&&t.uint32(138).string(e.pageInstanceId),""!==e.interactionId&&t.uint32(146).string(e.interactionId),""!==e.sourceStart&&t.uint32(154).string(e.sourceStart),0!==e.reasonStart&&t.uint32(160).int32(e.reasonStart),!0===e.isShuffle&&t.uint32(184).bool(e.isShuffle),!0===e.isIncognito&&t.uint32(200).bool(e.isIncognito),""!==e.mediaId&&t.uint32(226).string(e.mediaId),0!==e.mediaType&&t.uint32(232).int32(e.mediaType),"0"!==e.playbackStartTime&&t.uint32(240).uint64(e.playbackStartTime),"0"!==e.startPosition&&t.uint32(248).uint64(e.startPosition),!0===e.isLive&&t.uint32(256).bool(e.isLive),!0===e.contentIsDownloaded&&t.uint32(264).bool(e.contentIsDownloaded),!0===e.clientOffline&&t.uint32(272).bool(e.clientOffline),!0===e.isSocialListeningActive&&t.uint32(280).bool(e.isSocialListeningActive),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},p);for(i.playbackId=new Uint8Array,i.parentPlaybackId=new Uint8Array;n.pos>>3){case 1:i.playbackId=n.bytes();break;case 2:i.parentPlaybackId=n.bytes();break;case 3:i.parentPlayTrack=n.string();break;case 4:i.videoSessionId=n.string();break;case 5:i.playContext=n.string();break;case 6:i.contentUri=n.string();break;case 7:i.displayedContentUri=n.string();break;case 8:i.featureIdentifier=n.string();break;case 9:i.featureVersion=n.string();break;case 10:i.viewUri=n.string();break;case 11:i.provider=n.string();break;case 12:i.referrer=n.string();break;case 13:i.referrerVersion=n.string();break;case 14:i.referrerVendor=n.string();break;case 15:i.streamingRule=n.int32();break;case 16:i.connectControllerDeviceId=n.string();break;case 17:i.pageInstanceId=n.string();break;case 18:i.interactionId=n.string();break;case 19:i.sourceStart=n.string();break;case 20:i.reasonStart=n.int32();break;case 23:i.isShuffle=n.bool();break;case 25:i.isIncognito=n.bool();break;case 28:i.mediaId=n.string();break;case 29:i.mediaType=n.int32();break;case 30:i.playbackStartTime=y(n.uint64());break;case 31:i.startPosition=y(n.uint64());break;case 32:i.isLive=n.bool();break;case 33:i.contentIsDownloaded=n.bool();break;case 34:i.clientOffline=n.bool();break;case 35:i.isSocialListeningActive=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},p);return t.playbackId=new Uint8Array,t.parentPlaybackId=new Uint8Array,void 0!==e.playbackId&&null!==e.playbackId&&(t.playbackId=v(e.playbackId)),void 0!==e.parentPlaybackId&&null!==e.parentPlaybackId&&(t.parentPlaybackId=v(e.parentPlaybackId)),void 0!==e.parentPlayTrack&&null!==e.parentPlayTrack?t.parentPlayTrack=String(e.parentPlayTrack):t.parentPlayTrack="",void 0!==e.videoSessionId&&null!==e.videoSessionId?t.videoSessionId=String(e.videoSessionId):t.videoSessionId="",void 0!==e.playContext&&null!==e.playContext?t.playContext=String(e.playContext):t.playContext="",void 0!==e.contentUri&&null!==e.contentUri?t.contentUri=String(e.contentUri):t.contentUri="",void 0!==e.displayedContentUri&&null!==e.displayedContentUri?t.displayedContentUri=String(e.displayedContentUri):t.displayedContentUri="",void 0!==e.featureIdentifier&&null!==e.featureIdentifier?t.featureIdentifier=String(e.featureIdentifier):t.featureIdentifier="",void 0!==e.featureVersion&&null!==e.featureVersion?t.featureVersion=String(e.featureVersion):t.featureVersion="",void 0!==e.viewUri&&null!==e.viewUri?t.viewUri=String(e.viewUri):t.viewUri="",void 0!==e.provider&&null!==e.provider?t.provider=String(e.provider):t.provider="",void 0!==e.referrer&&null!==e.referrer?t.referrer=String(e.referrer):t.referrer="",void 0!==e.referrerVersion&&null!==e.referrerVersion?t.referrerVersion=String(e.referrerVersion):t.referrerVersion="",void 0!==e.referrerVendor&&null!==e.referrerVendor?t.referrerVendor=String(e.referrerVendor):t.referrerVendor="",void 0!==e.streamingRule&&null!==e.streamingRule?t.streamingRule=(0,c.streamingRuleFromJSON)(e.streamingRule):t.streamingRule=0,void 0!==e.connectControllerDeviceId&&null!==e.connectControllerDeviceId?t.connectControllerDeviceId=String(e.connectControllerDeviceId):t.connectControllerDeviceId="",void 0!==e.pageInstanceId&&null!==e.pageInstanceId?t.pageInstanceId=String(e.pageInstanceId):t.pageInstanceId="",void 0!==e.interactionId&&null!==e.interactionId?t.interactionId=String(e.interactionId):t.interactionId="",void 0!==e.sourceStart&&null!==e.sourceStart?t.sourceStart=String(e.sourceStart):t.sourceStart="",void 0!==e.reasonStart&&null!==e.reasonStart?t.reasonStart=(0,u.playReasonFromJSON)(e.reasonStart):t.reasonStart=0,void 0!==e.isShuffle&&null!==e.isShuffle?t.isShuffle=Boolean(e.isShuffle):t.isShuffle=!1,void 0!==e.isIncognito&&null!==e.isIncognito?t.isIncognito=Boolean(e.isIncognito):t.isIncognito=!1,void 0!==e.mediaId&&null!==e.mediaId?t.mediaId=String(e.mediaId):t.mediaId="",void 0!==e.mediaType&&null!==e.mediaType?t.mediaType=(0,d.mediaTypeFromJSON)(e.mediaType):t.mediaType=0,void 0!==e.playbackStartTime&&null!==e.playbackStartTime?t.playbackStartTime=String(e.playbackStartTime):t.playbackStartTime="0",void 0!==e.startPosition&&null!==e.startPosition?t.startPosition=String(e.startPosition):t.startPosition="0",void 0!==e.isLive&&null!==e.isLive?t.isLive=Boolean(e.isLive):t.isLive=!1,void 0!==e.contentIsDownloaded&&null!==e.contentIsDownloaded?t.contentIsDownloaded=Boolean(e.contentIsDownloaded):t.contentIsDownloaded=!1,void 0!==e.clientOffline&&null!==e.clientOffline?t.clientOffline=Boolean(e.clientOffline):t.clientOffline=!1,void 0!==e.isSocialListeningActive&&null!==e.isSocialListeningActive?t.isSocialListeningActive=Boolean(e.isSocialListeningActive):t.isSocialListeningActive=!1,t},toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=g(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.parentPlaybackId&&(t.parentPlaybackId=g(void 0!==e.parentPlaybackId?e.parentPlaybackId:new Uint8Array)),void 0!==e.parentPlayTrack&&(t.parentPlayTrack=e.parentPlayTrack),void 0!==e.videoSessionId&&(t.videoSessionId=e.videoSessionId),void 0!==e.playContext&&(t.playContext=e.playContext),void 0!==e.contentUri&&(t.contentUri=e.contentUri),void 0!==e.displayedContentUri&&(t.displayedContentUri=e.displayedContentUri),void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),void 0!==e.featureVersion&&(t.featureVersion=e.featureVersion),void 0!==e.viewUri&&(t.viewUri=e.viewUri),void 0!==e.provider&&(t.provider=e.provider),void 0!==e.referrer&&(t.referrer=e.referrer),void 0!==e.referrerVersion&&(t.referrerVersion=e.referrerVersion),void 0!==e.referrerVendor&&(t.referrerVendor=e.referrerVendor),void 0!==e.streamingRule&&(t.streamingRule=(0,c.streamingRuleToJSON)(e.streamingRule)),void 0!==e.connectControllerDeviceId&&(t.connectControllerDeviceId=e.connectControllerDeviceId),void 0!==e.pageInstanceId&&(t.pageInstanceId=e.pageInstanceId),void 0!==e.interactionId&&(t.interactionId=e.interactionId),void 0!==e.sourceStart&&(t.sourceStart=e.sourceStart),void 0!==e.reasonStart&&(t.reasonStart=(0,u.playReasonToJSON)(e.reasonStart)),void 0!==e.isShuffle&&(t.isShuffle=e.isShuffle),void 0!==e.isIncognito&&(t.isIncognito=e.isIncognito),void 0!==e.mediaId&&(t.mediaId=e.mediaId),void 0!==e.mediaType&&(t.mediaType=(0,d.mediaTypeToJSON)(e.mediaType)),void 0!==e.playbackStartTime&&(t.playbackStartTime=e.playbackStartTime),void 0!==e.startPosition&&(t.startPosition=e.startPosition),void 0!==e.isLive&&(t.isLive=e.isLive),void 0!==e.contentIsDownloaded&&(t.contentIsDownloaded=e.contentIsDownloaded),void 0!==e.clientOffline&&(t.clientOffline=e.clientOffline),void 0!==e.isSocialListeningActive&&(t.isSocialListeningActive=e.isSocialListeningActive),t},fromPartial(e){const t=o({},p);return void 0!==e.playbackId&&null!==e.playbackId?t.playbackId=e.playbackId:t.playbackId=new Uint8Array,void 0!==e.parentPlaybackId&&null!==e.parentPlaybackId?t.parentPlaybackId=e.parentPlaybackId:t.parentPlaybackId=new Uint8Array,void 0!==e.parentPlayTrack&&null!==e.parentPlayTrack?t.parentPlayTrack=e.parentPlayTrack:t.parentPlayTrack="",void 0!==e.videoSessionId&&null!==e.videoSessionId?t.videoSessionId=e.videoSessionId:t.videoSessionId="",void 0!==e.playContext&&null!==e.playContext?t.playContext=e.playContext:t.playContext="",void 0!==e.contentUri&&null!==e.contentUri?t.contentUri=e.contentUri:t.contentUri="",void 0!==e.displayedContentUri&&null!==e.displayedContentUri?t.displayedContentUri=e.displayedContentUri:t.displayedContentUri="",void 0!==e.featureIdentifier&&null!==e.featureIdentifier?t.featureIdentifier=e.featureIdentifier:t.featureIdentifier="",void 0!==e.featureVersion&&null!==e.featureVersion?t.featureVersion=e.featureVersion:t.featureVersion="",void 0!==e.viewUri&&null!==e.viewUri?t.viewUri=e.viewUri:t.viewUri="",void 0!==e.provider&&null!==e.provider?t.provider=e.provider:t.provider="",void 0!==e.referrer&&null!==e.referrer?t.referrer=e.referrer:t.referrer="",void 0!==e.referrerVersion&&null!==e.referrerVersion?t.referrerVersion=e.referrerVersion:t.referrerVersion="",void 0!==e.referrerVendor&&null!==e.referrerVendor?t.referrerVendor=e.referrerVendor:t.referrerVendor="",void 0!==e.streamingRule&&null!==e.streamingRule?t.streamingRule=e.streamingRule:t.streamingRule=0,void 0!==e.connectControllerDeviceId&&null!==e.connectControllerDeviceId?t.connectControllerDeviceId=e.connectControllerDeviceId:t.connectControllerDeviceId="",void 0!==e.pageInstanceId&&null!==e.pageInstanceId?t.pageInstanceId=e.pageInstanceId:t.pageInstanceId="",void 0!==e.interactionId&&null!==e.interactionId?t.interactionId=e.interactionId:t.interactionId="",void 0!==e.sourceStart&&null!==e.sourceStart?t.sourceStart=e.sourceStart:t.sourceStart="",void 0!==e.reasonStart&&null!==e.reasonStart?t.reasonStart=e.reasonStart:t.reasonStart=0,void 0!==e.isShuffle&&null!==e.isShuffle?t.isShuffle=e.isShuffle:t.isShuffle=!1,void 0!==e.isIncognito&&null!==e.isIncognito?t.isIncognito=e.isIncognito:t.isIncognito=!1,void 0!==e.mediaId&&null!==e.mediaId?t.mediaId=e.mediaId:t.mediaId="",void 0!==e.mediaType&&null!==e.mediaType?t.mediaType=e.mediaType:t.mediaType=0,void 0!==e.playbackStartTime&&null!==e.playbackStartTime?t.playbackStartTime=e.playbackStartTime:t.playbackStartTime="0",void 0!==e.startPosition&&null!==e.startPosition?t.startPosition=e.startPosition:t.startPosition="0",void 0!==e.isLive&&null!==e.isLive?t.isLive=e.isLive:t.isLive=!1,void 0!==e.contentIsDownloaded&&null!==e.contentIsDownloaded?t.contentIsDownloaded=e.contentIsDownloaded:t.contentIsDownloaded=!1,void 0!==e.clientOffline&&null!==e.clientOffline?t.clientOffline=e.clientOffline:t.clientOffline=!1,void 0!==e.isSocialListeningActive&&null!==e.isSocialListeningActive?t.isSocialListeningActive=e.isSocialListeningActive:t.isSocialListeningActive=!1,t}};var f=(()=>{if(void 0!==f)return f;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"})();const h=f.atob||(e=>f.Buffer.from(e,"base64").toString("binary"));function v(e){const t=h(e),n=new Uint8Array(t.length);for(let e=0;ef.Buffer.from(e,"binary").toString("base64"));function g(e){const t=[];for(const n of e)t.push(String.fromCharCode(n));return m(t.join(""))}function y(e){return e.toString()}l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},49008:function(e,t,n){"use strict";var r=n(59713);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t(void 0!==e.status&&c.StatusResponse.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.streamHandle&&u.StreamHandle.encode(e.streamHandle,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof l.default.Reader?e:new l.default.Reader(e);let r=void 0===t?n.len:n.pos+t;const i=o({},d);for(;n.pos>>3){case 1:i.status=c.StatusResponse.decode(n,n.uint32());break;case 2:i.streamHandle=u.StreamHandle.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=o({},d);return void 0!==e.status&&null!==e.status?t.status=c.StatusResponse.fromJSON(e.status):t.status=void 0,void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=u.StreamHandle.fromJSON(e.streamHandle):t.streamHandle=void 0,t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?c.StatusResponse.toJSON(e.status):void 0),void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?u.StreamHandle.toJSON(e.streamHandle):void 0),t},fromPartial(e){const t=o({},d);return void 0!==e.status&&null!==e.status?t.status=c.StatusResponse.fromPartial(e.status):t.status=void 0,void 0!==e.streamHandle&&null!==e.streamHandle?t.streamHandle=u.StreamHandle.fromPartial(e.streamHandle):t.streamHandle=void 0,t}},l.default.util.Long!==s.default&&(l.default.util.Long=s.default,l.default.configure())},91763:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.streamingRuleToJSON=t.streamingRuleFromJSON=t.StreamingRule=t.protobufPackage=void 0;const i=r(n(43720)),o=r(n(62100));var a;t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.STREAMING_RULE_NONE=0]="STREAMING_RULE_NONE",e[e.STREAMING_RULE_DMCA_RADIO=1]="STREAMING_RULE_DMCA_RADIO",e[e.STREAMING_RULE_PREVIEW=2]="STREAMING_RULE_PREVIEW",e[e.STREAMING_RULE_WIFI=3]="STREAMING_RULE_WIFI",e[e.STREAMING_RULE_SHUFFLE_MODE=4]="STREAMING_RULE_SHUFFLE_MODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.StreamingRule||(t.StreamingRule={})),t.streamingRuleFromJSON=function(e){switch(e){case 0:case"STREAMING_RULE_NONE":return a.STREAMING_RULE_NONE;case 1:case"STREAMING_RULE_DMCA_RADIO":return a.STREAMING_RULE_DMCA_RADIO;case 2:case"STREAMING_RULE_PREVIEW":return a.STREAMING_RULE_PREVIEW;case 3:case"STREAMING_RULE_WIFI":return a.STREAMING_RULE_WIFI;case 4:case"STREAMING_RULE_SHUFFLE_MODE":return a.STREAMING_RULE_SHUFFLE_MODE;default:return a.UNRECOGNIZED}},t.streamingRuleToJSON=function(e){switch(e){case a.STREAMING_RULE_NONE:return"STREAMING_RULE_NONE";case a.STREAMING_RULE_DMCA_RADIO:return"STREAMING_RULE_DMCA_RADIO";case a.STREAMING_RULE_PREVIEW:return"STREAMING_RULE_PREVIEW";case a.STREAMING_RULE_WIFI:return"STREAMING_RULE_WIFI";case a.STREAMING_RULE_SHUFFLE_MODE:return"STREAMING_RULE_SHUFFLE_MODE";default:return"UNKNOWN"}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},59385:(e,t,n)=>{e.exports=n(1544)},1544:(e,t)=>{var n="#9bf0e1",r="#503750",i="#509bf5",o="#c87d55",a="#e61e32",s="#7d4b32",l="#cdf564",c="#19e68c",u="#fae62d",d="#006450",p="#dc148c",f="#f59b23",h="#4100f5",v="#b49bc8",m="#8c1932",g="#1e3264",y="#5ff550",_="#ff6437",b="#ffcdd2",E="#c3f0c8",S="#2d46b9",T="#f573a0",O="#27856a",A="#a0c3d2",C="#ffc864",P="#c39687",I="#e3230e",R="#af2896",N="var(--spice-button)",k="#2e77d0",L="#eeeeee",w="#ff5722",D="#e22134",M="#121212",x="#181818",U="#282828",F="#333333",z="#535353",B="#7f7f7f",V="var(--spice-subtext)",j="#cccccc",H="#d9d9d9",G="#eeeeee",q="#f8f8f8",K="#404040",W="#616161",Y="#757575",J="#9e9e9e",$="#bdbdbd",X="rgba(0, 0, 0, 0)",Q="rgba(0, 0, 0, 0.1)",Z="rgba(0, 0, 0, 0.3)",ee="rgba(0, 0, 0, 0.5)",te="rgba(0, 0, 0, 0.7)",ne="rgba(0, 0, 0, 0.9)",re="rgba(255, 255, 255, 0)",ie="rgba(255, 255, 255, 0.1)",oe="rgba(255, 255, 255, 0.3)",ae="rgba(255, 255, 255, 0.5)",se="rgba(255, 255, 255, 0.7)",le="rgba(255, 255, 255, 0.9)",ce="rgba(0, 0, 0, 0.2)",ue="rgba(0, 0, 0, 0.4)",de="rgba(255, 255, 255, 0.05)",pe="rgba(255, 255, 255, 0.2)",fe="rgba(255, 255, 255, 0.4)",he="var(--spice-button)",ve="#1ed760",me="#1da64d",ge="#14833b",ye="#000000",_e="#cd1a2b",be="#e22134",Ee="#941320",Se="#2e77d0",Te="#4687d6",Oe="#3a5897",Ae="#1d4c85",Ce="#ff5722",Pe="var(--spice-button)",Ie="#1ed760",Re="#1da64d",Ne="#14833b",ke="0",Le="0.1",we="0.3",De="0.5",Me="0.7",xe="0.9",Ue="4px",Fe="8px",ze="12px",Be="16px",Ve="20px",je="24px",He="32px",Ge="40px",qe="48px",Ke="56px",We="64px",Ye="72px",Je="80px",$e="479px",Xe="480px",Qe="767px",Ze="768px",et="991px",tt="992px",nt="1199px",rt="1200px",it="1919px",ot="1920px",at="480px",st="768px",lt="992px",ct="1200px",ut="1920px",dt="Circular",pt="16px",ft="400",ht="24px",vt="0px",mt="Circular",gt="14px",yt="400",_t="20px",bt="0.25px",Et="Circular",St="12px",Tt="400",Ot="16px",At="0.25px",Ct="Circular",Pt="10px",It="400",Rt="16px",Nt="0.25px",kt="Circular",Lt="16px",wt="700",Dt="16px",Mt="2px",xt="uppercase",Ut="Circular",Ft="14px",zt="700",Bt="16px",Vt="1px",jt="uppercase",Ht="Circular",Gt="12px",qt="700",Kt="16px",Wt="1px",Yt="uppercase",Jt="Circular",$t="10px",Xt="700",Qt="16px",Zt="1px",en="uppercase",tn="Circular",nn="96px",rn="900",on="-2px",an="104px",sn="0.67em",ln="Circular",cn="80px",un="900",dn="-2px",pn="88px",fn="0.67em",hn="Circular",vn="56px",mn="900",gn="-1.75px",yn="64px",_n="0.67em",bn="Circular",En="80px",Sn="900",Tn="-2px",On="88px",An="0.67em",Cn="Circular",Pn="64px",In="900",Rn="-2px",Nn="72px",kn="0.67em",Ln="Circular",wn="48px",Dn="900",Mn="-1.75px",xn="56px",Un="0.67em",Fn="Circular",zn="48px",Bn="900",Vn="-1px",jn="56px",Hn="0.67em",Gn="Circular",qn="40px",Kn="900",Wn="-1px",Yn="48px",Jn="0.67em",$n="Circular",Xn="32px",Qn="900",Zn="-1px",er="40px",tr="0.67em",nr="Circular",rr="32px",ir="900",or="-0.5px",ar="40px",sr="0.75em",lr="Circular",cr="28px",ur="900",dr="-0.25px",pr="36px",fr="0.75em",hr="Circular",vr="24px",mr="900",gr="32px",yr="-0.25px",_r="Circular",br="20px",Er="900",Sr="28px",Tr="-0.25px",Or="Circular",Ar="400",Cr="18px",Pr="26px",Ir="0px";t.white="var(--spice-text)"},83120:(e,t,n)=>{"use strict";function r(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function i(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}function o({async:e,dataset:t,onError:n,onLoad:r,src:i,nonce:o}){const a=document.createElement("script");e&&(a.async=e),t&&Object.keys(t).map((e=>{a.dataset[e]=t[e]})),n&&a.addEventListener("error",n),r&&a.addEventListener("load",r),o&&a.setAttribute("nonce",o),a.src=i,document.head.appendChild(a)}function a({innerHTML:e,nonce:t}){const n=document.createElement("script");t&&n.setAttribute("nonce",t),n.innerHTML=e,document.head.appendChild(n)}n.d(t,{j:()=>h});function s({id:e,additionalData:t,nonce:n}){window.__gtm_additional_data=t||"",window.__gtm_track_id=e,a({innerHTML:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+window.__gtm_additional_data;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer',window.__gtm_track_id);",nonce:n})}var l=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function c({timeout:e=5e3,oneTrustDomainScript:t}){return l(this,void 0,void 0,(function*(){let n;return window.OptanonWrapper=u,new Promise(((r,i)=>{o({dataset:{domainScript:t||"50da44be-0564-43df-b139-329aedcf267b",documentLanguage:"true"},onError:i,onLoad:r,src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"}),n=setTimeout(i,e)})).then((()=>clearTimeout(n)))}))}function u(){window.gtag||(window.gtag=i);const e=function(e){const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e"consentId"===e.split("=")[0]))[0];(window.__cmp||window.__tcfapi)&&window.OptanonActiveGroups&&e&&function(e){const t=e.split("=")[1];window.__tcfapi?window.__tcfapi("getTCData",2,function(e){return function(t,n){if(!n)return;const i=JSON.stringify({id:e,iab:t.tcString,cate:window.OptanonActiveGroups});d(),r({consentData:i})}}(t)):window.__cmp("getVendorConsents",{},function(e){return function(t){const n=JSON.stringify({id:e,iab:t.metadata,cate:window.OptanonActiveGroups});d(),r({consentData:n})}}(t))}(e)}function d(){const e=(t=window.location.hostname).slice(t.indexOf("."));var t;document.cookie=["sp_consent=","max-age=-1000",`domain=${e}`,"path=/"].join("; ")}function p({id:e,timeout:t=4e3,nonce:n}){window.__optimize_timeout=t,window.__optimize_options={},window.__optimize_options[e]=!0,function({innerHTML:e}){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t)}({innerHTML:".async-hide { opacity: 0 !important}"}),a({innerHTML:'(function(a,s,y,n,c,h,i,d,e){d=true;s.className+=\' \'+y;h.start=1*new Date;h.end=i=function(t){s.className=s.className.replace(RegExp(" ?"+y),""),e=new Date-h.start,(ewindow.dataLayer&&window.dataLayer.hide&&window.dataLayer.hide.end&&window.dataLayer.hide.end(),src:`https://www.googleoptimize.com/optimize.js?id=${e}`,nonce:n})}var f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function h(e){return f(this,void 0,void 0,(function*(){if(!e)return Promise.resolve();const t=function(e){const{dataLayerPushInitial:t,googleOptimizeId:n,googleTagManagerId:r,language:i,market:o,oneTrust:a}=e;return{loadGoogleOptimize:!!n,loadGoogleTagManager:!!r,loadOneTrust:a&&o,pushInitialData:t&&i&&o}}(e);return function({language:e,loggedIn:t=!1,pushInitialData:n,market:i,userCountry:o=""}){n&&r({language:e,loggedIn:t,market:i,userCountry:o})}(Object.assign(Object.assign({},t),e)),yield function({loadGoogleOptimize:e,loadGoogleTagManager:t,loadOneTrust:n,googleOptimizeId:r,googleOptimizeTimeout:i,googleTagManagerId:o,googleTagManagerAdditionalData:a,oneTrustDomainScript:l,nonce:u}){return f(this,void 0,void 0,(function*(){const d=[];return e&&d.push(p({id:r,timeout:i})),t&&n?d.push(c({oneTrustDomainScript:l}).then((()=>s({id:o,additionalData:a,nonce:u})))):n?d.push(c({oneTrustDomainScript:l})):t&&d.push(s({id:o,additionalData:a,nonce:u})),Promise.all(d)}))}(Object.assign(Object.assign({},t),e))}))}},64638:(e,t,n)=>{"use strict";var r;n.d(t,{J:()=>r}),function(e){e.HTTP_REQUEST_ABORTED="HTTP_REQUEST_ABORTED",e.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",e.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",e.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",e.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",e.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",e.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",e.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",e.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",e.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",e.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",e.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(r||(r={}))},82761:(e,t,n)=>{"use strict";var r;n.d(t,{j:()=>r}),function(e){e.CONNECTION_ONLINE="online",e.CONNECTION_OFFLINE="offline",e.PRODUCT_STATE_CHANGED="product_state_changed",e.ACCESS_TOKEN="access_token",e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",e.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",e.CONNECTED="connected",e.CONNECTION_FAILED="connection_failed",e.CONNECTION_ID="connection_id",e.DISCONNECTED="disconnected",e.ENDPOINTS_RESOLVED="endpoints_resolved",e.LOGGED_OUT="logged_out",e.SHORT_SESSION_DISCONNECTED="short_session_disconnected",e.TOKEN_PROVIDER_ERROR="token_provider_error",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.WINDOW_BEFORE_UNLOAD="beforeunload"}(r||(r={}))},30156:(e,t,n)=>{"use strict";var r;n.d(t,{r:()=>r}),function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(r||(r={}))},45298:(e,t,n)=>{"use strict";var r;n.d(t,{n:()=>r}),function(e){e.DELETE="DELETE",e.GET="GET",e.OPTIONS="OPTIONS",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.TRACE="TRACE"}(r||(r={}))},82071:(e,t,n)=>{"use strict";var r;n.d(t,{t:()=>r}),function(e){e.TRANSPORT_AUTHENTICATE="transport_authenticate",e.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",e.TRANSPORT_CONNECT="transport_connect",e.TRANSPORT_DISCONNECT="transport_disconnect",e.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",e.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",e.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",e.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",e.TRANSPORT_REQUEST="transport_request",e.PLUGIN_CONNECTION_INFO="plugin_connection_info",e.PLUGIN_DISCONNECTED="plugin_disconnected",e.PLUGIN_MESSAGE="plugin_message",e.PLUGIN_REQUEST="plugin_request",e.PLUGIN_ERROR="plugin_error"}(r||(r={}))},65546:(e,t,n)=>{"use strict";var r;n.d(t,{G:()=>r}),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.TIMED_OUT=408]="TIMED_OUT",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_ENTITY_TOO_LARGE=413]="REQUEST_ENTITY_TOO_LARGE",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(r||(r={}))},78578:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConnectionObserver:()=>d,DEALER_PLUGIN_NAME:()=>g.hI,DisconnectionReason:()=>o,Method:()=>l.n,PluginEvent:()=>c.t,TransportErrors:()=>a.J,TransportEvent:()=>s.j,createAbortControllerLike:()=>m,createBaseTransport:()=>ie,createTransport:()=>oe,createXResolveProvider:()=>re.Q});var r={};n.r(r),n.d(r,{isSupported:()=>P,request:()=>I});var i={};n.r(i),n.d(i,{request:()=>ne});var o,a=n(64638),s=n(82761),l=n(45298),c=n(82071);!function(e){e.RECONNECTION_FAILED="reconnection_failed",e.EXPLICIT="explicit",e.LOG_OUT="log_out",e.WINDOW_BEFORE_UNLOAD="window_before_unload"}(o||(o={}));var u=n(33178);class d extends u.vp{}class p extends d{constructor(e){super();const t="undefined"!=typeof window,n=e&&e.notifyBeforeUnload;this._navigator=t&&window.navigator||null,t&&"function"==typeof window.addEventListener&&(window.addEventListener("online",this.emitSync.bind(this,s.j.CONNECTION_ONLINE,null)),window.addEventListener("offline",this.emitSync.bind(this,s.j.CONNECTION_OFFLINE,null)),n&&window.addEventListener(s.j.WINDOW_BEFORE_UNLOAD,this.emitSync.bind(this,s.j.WINDOW_BEFORE_UNLOAD,null)))}static create(e){return new p(e)}isOnline(){const e=this._navigator;return!e||!("onLine"in e)||e.onLine}}class f extends u.vp{constructor(){super(),this._aborted=!1,this.onabort=null,this.on("abort",(()=>{var e;return null===(e=this.onabort)||void 0===e?void 0:e.call(this)}))}static abort(){const e=new f;return e._aborted=!0,e}static signalAbort(e){"_aborted"in e&&!e._aborted&&(e._aborted=!0,e.emit("abort",null))}get aborted(){return this._aborted}set aborted(e){}addEventListener(e,t){this.addListener(e,t)}removeEventListener(e,t){this.removeListener(e,t)}dispatchEvent(){}}class h{constructor(){this.signal=new f}abort(){const e=this.signal;f.signalAbort(e)}}function v(){return"undefined"!=typeof window&&"function"==typeof window.AbortController}const m=v()?()=>new AbortController:()=>new h;var g=n(22378),y=n(28667);const _={POST:!0,PUT:!0,DELETE:!0};var b=n(65546);class E extends Error{constructor(e,t,n){super(e),this.name="RequestError",this.message=e,this.code=t,this.status=n||0}}class S extends E{constructor(){super("Request aborted by signal.",a.J.HTTP_REQUEST_ABORTED,0),this.name="RequestAbortedError",this.message="Request aborted by signal."}}class T{constructor(e){this.get=e.get.bind(e),this.has=e.has.bind(e)}get(e){return null}has(e){return!1}}class O{constructor(e,t=0){this.url="",this.status=0,this.headers=null,this.body=null,this.offline=!1,this.timing=null,this.metadata=null,this.retries={count:0},this.url=e,this.status=t,this.ok=t>=200&&t<=299}getStatusFamily(){return 0|this.status/100}}const A=y.P.forTag("transport.http.fetch"),C={json:!0,text:!0,arraybuffer:!0,blob:!0};function P(){return"function"==typeof fetch}function I(e){if(!P())return Promise.reject(new TypeError("Fetch is not supported"));const t=e.options.signal;if(null==t?void 0:t.aborted)return Promise.reject(new S);if(!e.url)return Promise.reject(new TypeError("Request URL cannot be blank."));const n=e.method||"GET";let r=e.url,i=null;if(n in _&&e.payload?i=e.payload:e.payload&&(r+=`?${e.payload}`),e.options.responseType&&!(e.options.responseType in C))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));const o={mode:e.options.mode||"cors",credentials:e.options.credentials||"same-origin",redirect:e.options.redirect||"follow",signal:t,method:n};e.headers.count()&&(o.headers=e.headers.toJSON()),i&&(o.body=i);const a=Date.now();return fetch(r,o).then((function(t){let n;n=e.options.ignoreResponseBody||t.status===b.G.NO_CONTENT?null:"json"===e.options.responseType?t.json().catch((function(e){return A.warn("Could not parse response as JSON:",e),null})):"arraybuffer"===e.options.responseType?t.arrayBuffer():"blob"===e.options.responseType?t.blob():t.text();const r=e.options.parseResponseHeaders||t.status>299?new T(t.headers):null;return Promise.all([t.url,t.status,r,n])})).then((function([t,n,r,i]){const o=new O(t,n);if(o.body=i,o.headers=r,e.options.timing){const e=Date.now()-a;o.timing={completed:e}}return o})).catch((function(t){if("AbortError"===(null==t?void 0:t.name))throw new S;const n=new O(r);if(e.options.timing){const e=Date.now()-a;n.timing={completed:e}}return n})).then((function(t){return e.options.connectionObserver&&(t.offline=!e.options.connectionObserver.isOnline()),t}))}var R,N,k=n(42427),L=n(7092),w=n(30156);!function(e){e[e.CONNECTION_ERROR=0]="CONNECTION_ERROR",e[e.INFORMATIONAL=1]="INFORMATIONAL",e[e.SUCCESS=2]="SUCCESS",e[e.REDIRECTION=3]="REDIRECTION",e[e.CLIENT_ERROR=4]="CLIENT_ERROR",e[e.SERVER_ERROR=5]="SERVER_ERROR"}(R||(R={}));class D extends Error{constructor(e,t,n=null){super(t),this.name="TransportError",this.message=t,this.code=e,this.origin=n}}class M{constructor(e){this._headers={},this._count=0,this._setAll(e)}_setAll(e){let t=0;for(const n in e)e.hasOwnProperty(n)&&e[n]&&(this._headers[n.toLowerCase()]=e[n],t++);this._count=t}get(e){return this._headers[e.toLowerCase()]||null}has(e){return!!this._headers[e.toLowerCase()]}set(e,t){this._headers[e.toLowerCase()]=t,this._count++}delete(e){const t=e.toLowerCase();this._headers[t]&&this._count--,delete this._headers[e.toLowerCase()]}count(){return this._count}toJSON(){return Object.assign({},this._headers)}}class x{constructor(e,t){this.url=e,this.method=(null==t?void 0:t.method)||"GET",this.headers=new M(null==t?void 0:t.headers),this.options=(null==t?void 0:t.options)||{},this.payload=null==t?void 0:t.payload,this.urlExpanded=(null==t?void 0:t.urlExpanded)||!1,this.retryOptions=(null==t?void 0:t.retryOptions)||{}}static create(e,t){return new x(e,t)}clone(){const e=new x(this.url);return e.method=this.method,e.headers=new M(this.headers.toJSON()),e.options=this.options,e.payload=this.payload,e.urlExpanded=this.urlExpanded,e.retryOptions=this.retryOptions,e}}!function(e){e.EVENT_ACCESS_TOKEN="access_token",e.EVENT_CONNECTION_ID="connection_id",e.EVENT_CONNECTION_OFFLINE="connection_offline",e.EVENT_CONNECTION_ONLINE="connection_online",e.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(N||(N={}));class U extends u.vp{constructor(e,t){super(),this.EVENT_ACCESS_TOKEN=N.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=N.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=N.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=N.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=N.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=b.G,this.StatusFamily=R,this.getConnectionId=e.getConnectionId.bind(e),this.getEndpoints=e.getEndpoints.bind(e),this.getInitTime=e.getInitTime.bind(e),this.getLastToken=e.getLastToken.bind(e),this.matchMessages=e.matchMessages.bind(e),this.unmatchMessages=e.unmatchMessages.bind(e),this.handlePushRequests=e.handlePushRequests.bind(e),this.unhandlePushRequests=e.unhandlePushRequests.bind(e),this.hasPlugin=e.hasPlugin.bind(e),this.getPluginAPI=e.getPluginAPI.bind(e);const n=e.request.bind(e);(null==t?void 0:t.requestOptions)?this.request=(e,r)=>n(e,r?Object.assign(Object.assign(Object.assign({},null==t?void 0:t.requestOptions),r),{metadata:Object.assign(Object.assign({},t.requestOptions.metadata),null==r?void 0:r.metadata),retry:Object.assign(Object.assign({},t.requestOptions.retry),null==r?void 0:r.retry)}):t.requestOptions):this.request=n,this.proxyEmit(e,s.j.ACCESS_TOKEN,N.EVENT_ACCESS_TOKEN),this.proxyEmit(e,s.j.CONNECTION_OFFLINE,N.EVENT_CONNECTION_OFFLINE),this.proxyEmit(e,s.j.CONNECTION_ONLINE,N.EVENT_CONNECTION_ONLINE),this.proxyEmit(e,s.j.ENDPOINTS_RESOLVED,N.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(N.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,e.on.bind(e))),this.onRemoveListener(N.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,e.removeListener.bind(e)))}_onAddConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener,r=e=>{const t=this.createEvent(N.EVENT_CONNECTION_ID,e.data);n.call(this,t)};n.$proxy_wrapper=r,e(s.j.CONNECTION_ID,r,t.data.options)}_onRemoveConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener;n.$proxy_wrapper&&e(s.j.CONNECTION_ID,n.$proxy_wrapper,t.data.options)}removeAllListeners(){return this}}class F{constructor(){this._startTime=null,this._endTime=null}static create(){return new F}start(){if(null!==this._startTime)throw new Error("Measurement is already in progress.");this._startTime=Date.now()}end(){if(null===this._startTime||null!==this._endTime)throw new Error("Measurement is not in progress.");this._endTime=Date.now()}getMetrics(){if(null===this._startTime||null===this._endTime)throw new Error("Measurement is not done.");return{start_time:this._startTime,end_time:this._endTime}}}const z=y.P.forTag("transport.transport"),B=/^(?:https?:\/\/)?@([^\/]+)\//,V=/^(ws|http)s?:\/\/.*[^\/]$/,j=/^([a-zA-Z]{3},\ \d{1,2}\ [a-zA-Z]{3}\ (\d{1,2}.){3})/,H={xhr:!0,fetch:!0},G=1,q=4;function K(e,t){const n=`access_token=${encodeURIComponent(t)}`,[r,i]=e.split("?");if(!i)return`${r}?${n}`;const o=i.replace(/access_token=[^&]*(&|$)/,`${n}$1`);return o!==i?`${r}?${o}`:`${r}?${n}&${i}`}class W extends u.vp{constructor(e){if(super(),this._plugins={},this._pluginMediator=new u.vp,this._connectCalled=!1,this._authenticateCalled=!1,this._endpoints=null,this._lastToken=null,this._lastTokenExpiry=0,this._refreshTokenPromise=null,this._authenticationPromise=null,this._reconnectTimeout=0,this._isReconnecting=!1,this._initTime=0,this._lastDisconnect=0,this._stateMask=0,this._quickDisconnectCount=0,this._counter=new L.A({curve:"exponential",baseTime:5e3,ceiling:15e3}),this._stateAwareListeners={connected:[],authenticated:[],connection_id:[],transport_connect:[],transport_authenticate:[]},this._stateAwareOperationMetrics={authenticated:null},this._stateAwareRunners={connected:null,authenticated:null,connection_id:null,transport_connect:null,transport_authenticate:null},!e)throw new TypeError("Argument `options` for Transport cannot be null.");if(!e.providers)throw new TypeError("Argument `options.providers` for Transport cannot be null.");this._ownerRef="ownerRef"in e?Object(e.ownerRef):{},this._tokenProvider=e.providers.token,this._endpointsProvider=e.providers.endpoints,this._XHR=e.XHR,this._Fetch=e.Fetch,this._reconnectionRetries=e.reconnectionRetries>=0?e.reconnectionRetries:3,this._requestMode=e.requestMode in H?e.requestMode:"xhr",this._forcePolyfillTypes=e.forcePolyfillTypes||{},this._disableAutoLogout="disableAutoLogout"in e&&!!e.disableAutoLogout,this._disconnectBeforeUnload=e.disconnectBeforeUnload||!1;const t=e.createConnectionObserver||p.create;this._connectionObserver=t({notifyBeforeUnload:this._disconnectBeforeUnload}),this.authenticate=this.authenticate.bind(this),this._authenticateWithToken=this._authenticateWithToken.bind(this),this._connectToEndpoints=this._connectToEndpoints.bind(this),this._parseProvidedToken=this._parseProvidedToken.bind(this),this._onConnected=this._onConnected.bind(this),this._onAuthenticated=this._onAuthenticated.bind(this),this._onAuthenticationFailed=this._onAuthenticationFailed.bind(this),this._init()}static create(e){return new W(e)}_init(){this.onAddListener(s.j.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(s.j.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(s.j.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(s.j.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(s.j.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(s.j.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(c.t.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(c.t.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(c.t.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(c.t.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(z.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");const e=this._pluginMediator;e.addListeners({[c.t.PLUGIN_DISCONNECTED]:this._onPluginDisconnected.bind(this)}),this.proxyEmit(e,c.t.PLUGIN_CONNECTION_INFO,s.j.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",(()=>this._onLogout())),this._connectionObserver.on(s.j.CONNECTION_ONLINE,(()=>this._onOnline())),this._connectionObserver.on(s.j.CONNECTION_OFFLINE,(()=>this._onOffline())),this._connectionObserver.on(s.j.WINDOW_BEFORE_UNLOAD,(()=>this._disconnect(o.WINDOW_BEFORE_UNLOAD)))}_runStateAwareQueues(e,t){const n=this._stateAwareListeners[e].splice(0);for(const e of n)e.call(this,t);this._stateAwareRunners[e]=null}_connect(){return this._stateMask&G?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise(((e,t)=>{z.info("Waiting to go online before connecting"),this._connectionObserver.once(s.j.CONNECTION_ONLINE,(()=>{this._performConnect().then(e,t)}))}))}_performConnect(){return new Promise((e=>{z.info("Resolving endpoints"),e(this._endpointsProvider(this.toPublic()))})).catch((e=>{const t=(null==e?void 0:e.code)?e:new D(a.J.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==e?void 0:e.message)||"Endpoints provider error",null!=e?e:null);return z.error("Endpoints resolution failed",t),Promise.reject(t)})).then(this._connectToEndpoints).then(this._onConnected).catch((e=>{const t=e&&e.error?e.error:e;return this.emit(s.j.CONNECTION_FAILED,{error:t}),z.error("Connection failed",t),Promise.reject(t)}))}_connectToEndpoints(e){const t={webgate:"",webapi:""};for(const n in e){if(!e.hasOwnProperty(n))continue;let r=e[n];r&&(V.test(r)&&(r+="/"),t[n]=r)}this._endpoints=t,this.emit(s.j.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},t)}),z.info("Endpoints resolved");const n=[],r=e=>{n.push(e)};return z.info("Waiting for plugins to connect"),new Promise(((e,i)=>{this._pluginMediator.emitAndWait(c.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},t),awaitPromise:r},(()=>{Promise.all(n).then((()=>e(!0)),i)}))}))}_refreshToken(e=!1){if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!e&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise((e=>{z.info("Requesting token from provider"),e(this._tokenProvider())})).then(this._parseProvidedToken);const t=()=>{this._refreshTokenPromise=null};return this._refreshTokenPromise.then(t,t),this._refreshTokenPromise.catch((e=>{const t=(null==e?void 0:e.code)?e:new D(a.J.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==e?void 0:e.message)||"Token provider error",e);return this.emit(s.j.TOKEN_PROVIDER_ERROR,{error:t}),z.error("Token provider error",t),Promise.reject(t)}))}_parseProvidedToken(e){let t,n;if(Array.isArray(e)?(t=e[0],n=parseInt(e[1],10),isNaN(n)&&(n=3540)):(t=e,n=3540),!t)throw this._lastToken=null,this._lastTokenExpiry=0,z.error("No token was provided"),new D(a.J.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${t}"`);if(this._lastToken===t){z.error("TokenProvider returned same token twice.");const e=new D(a.J.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,e}return this._lastToken=t,this._lastTokenExpiry=Date.now()+1e3*n,this.emit(s.j.ACCESS_TOKEN,{token:t}),z.info("Access token set"),t}_authenticateWithToken(e){if(!this._endpoints)return Promise.resolve(!0);const t=[],n=e=>{t.push(e)};return z.info("Waiting for plugins to authenticate"),new Promise(((r,i)=>{this._pluginMediator.emitAndWait(c.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:n},(()=>{Promise.all(t).then((()=>r(!0)),i)}))}))}_authenticate(e){if(!(this._stateMask&G))return Promise.reject(new D(a.J.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;const t=F.create();return t.start(),this._authenticationPromise=k.V.init((()=>(z.info("Authenticating"),this._refreshToken(e).then(this._authenticateWithToken))),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:e=>(z.warn("Retrying authentication due to failure",e),!0)}).then((()=>this._onAuthenticated(t))).catch((e=>this._onAuthenticationFailed(e,t))),this._authenticationPromise}_performDisconnect(e){this._stateMask=0;const t=!e;return e&&(this.emit(s.j.DISCONNECTED,{reason:e}),z.info("Disconnected")),z.info("Waiting for plugins to disconnect."),this._pluginMediator.emitSync(c.t.TRANSPORT_DISCONNECT,{supressed:t}),!0}_createReconnector(){let e=!1;return()=>(this._isReconnecting=!0,this.emit(s.j.RECONNECTING,null),z.info("Reconnecting"),this._performDisconnect(),this._connect().then((()=>!!this._authenticateCalled&&this._authenticate(e).then((t=>(e=!1,t)),(t=>(e=!0,Promise.reject(t)))))).then((()=>(this._isReconnecting=!1,this.emit(s.j.RECONNECTED,null),z.info("Reconnected"),!0))))}_tryToReconnect(){this._isReconnecting?z.warn("Reconnection triggered while already reconnecting"):(this._stateMask=0,k.V.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:e=>(z.warn("Retrying reconnection due to failure",e),!0)}).catch((()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(s.j.DISCONNECTED,{reason:o.RECONNECTION_FAILED}),z.info("Disconnected: reconnection failed")})))}_sendRequest(e,t={},n={}){const r=t.signal;return(null==r?void 0:r.aborted)?Promise.reject(new S):this._processRequestArgs(e,t).then((e=>(null==r?void 0:r.aborted)?Promise.reject(new S):e.options.forget?this._sendFireAndForgetRequest(e):this._sendRetriedRequest(e,n)))}_processRequestArgs(e,t={}){var n,r;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return Promise.reject(new S);let i=e,o=!1;const a=Object.assign(Object.assign({},t),{forcePolyfill:!(!t.responseType||!(t.responseType in this._forcePolyfillTypes)),requestMode:null!==(r=null==t?void 0:t.requestMode)&&void 0!==r?r:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==t?void 0:t.metadata)||null});if((null==t?void 0:t.signal)&&!v()&&("fetch"===t.requestMode?z.warn("Request with `{requestMode: fetch}` but no native AbortController."):a.requestMode="xhr"),B.test(i)){o=!0;try{i=this._tryExpandSpecialURL(i)}catch(e){return Promise.reject(e)}"authorize"in a||(a.authorize=!0,a.autoAuthorized=!0)}const s=Object.assign(Object.assign({maxRetries:2,curve:"exponential"},t.retry),{retryPredicate:e=>!(e instanceof S)});return Promise.resolve(x.create(i,{method:t.method,headers:t.headers,payload:t.payload,options:a,urlExpanded:o,retryOptions:s}))}_tryExpandSpecialURL(e){const t=this._endpoints;return e.replace(B,((e,n)=>{if(!t.hasOwnProperty(n))throw new TypeError(`Cannot replace endpoint @${n}: endpoint not defined.`);return t[n]}))}_sendFireAndForgetRequest(e){var t;const{url:n,method:r,options:i}=e;if(null===(t=i.signal)||void 0===t?void 0:t.aborted)return Promise.reject(new S);if("GET"!==r&&"POST"!==r)return Promise.reject(new D(a.J.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${r} request.`));if(!i.autoAuthorized&&i.authorize)return Promise.reject(new D(a.J.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(i.requestMode="xhr",i.authorize=!1,i.ignoreResponseBody=!0,"GET"===r)if("function"==typeof fetch){const e={mode:"no-cors"};i.signal&&v()&&(e.signal=i.signal),fetch(n,e).catch((()=>{}))}else"function"==typeof Image?(new Image).src=n:this._sendRetriedRequest(e,{}).catch((()=>{}));else if("POST"===r)if("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon))navigator.sendBeacon(e.url,e.payload);else if("function"==typeof fetch){const t={method:"POST",mode:"no-cors",body:e.payload};i.signal&&v()&&(t.signal=i.signal),fetch(n,t).catch((()=>{}))}else this._sendRetriedRequest(e,{}).catch((()=>{}));return Promise.resolve(new O(n,0))}_sendRetriedRequest(e,t){const n=e.retryOptions,r=e.options.signal;let i=!1;const o=()=>(null==r?void 0:r.aborted)?Promise.reject(new S):this._setAuthHeader(e,i),a=this._connectionObserver,l=new k.V((()=>{let l;return l=a.isOnline()||e.options.allowOffline?o():new Promise(((e,t)=>{a.once(s.j.CONNECTION_ONLINE,(()=>{o().then(e,t)}))})),l.then((()=>{if(null==r?void 0:r.aborted)return Promise.reject(new S);let n;if(this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_SEND_REQUEST,{request:e,context:t}),"fetch"===e.options.requestMode&&this._Fetch&&this._Fetch.isSupported())n=this._Fetch.request(e);else{if(!this._XHR)throw new Error("No available request mechanisms.");n=this._XHR.request(e)}return n})).then((t=>{if(null==r?void 0:r.aborted)return Promise.reject(new S);let o=null;if(t.headers&&(o=t.headers.get("Retry-After")),t.status===b.G.UNAUTHORIZED&&!e.options.ignoreUnauthorized)return i=!0,Promise.reject(t);if("function"==typeof(null==n?void 0:n.condition)&&(n.condition(t,R)||o)){if(null!==o)if(j.test(o))t.retryAfter=new Date(o).getTime()-Date.now();else{const e=parseInt(o,10);e>0&&(t.retryAfter=1e3*e)}return Promise.reject(t)}return Promise.resolve(t)}))}),n);return l.start().catch(this._handleRetriedRequestError).then((n=>(null==r?void 0:r.aborted)?Promise.reject(new S):(n.metadata=e.options.metadata,n.retries=n.retries||{},n.retries.count=l.getRetryCount(),this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:t,response:n}),e.options.rejectNotOk&&!n.ok?Promise.reject(n):n)))}_setAuthHeader(e,t){if(!e.options.authorize)return Promise.resolve(e);const n=()=>this._refreshToken(t).then((t=>(e.headers.set("Authorization",`Bearer ${t}`),e)));return this._stateMask&q?n():new Promise(((e,t)=>{z.info("Auth header setting awaiting authentication."),this.once(s.j.AUTHENTICATED,(()=>{z.info("Auth header set after authentication."),n().then(e,t)}))}))}_handleRetriedRequestError(e){return e instanceof O?Promise.resolve(e):Promise.reject(e)}_onAddListener(e,t){const n=t.data.options;if(n.ignoreCurrentState)return;let r;switch(e){case"connected":if(!this.isConnected())return;r=Promise.resolve(this.createEvent(s.j.CONNECTED,null));break;case"authenticated":{if(!this.isAuthenticated())return;const e=this._stateAwareOperationMetrics.authenticated;r=Promise.resolve(this.createEvent(s.j.AUTHENTICATED,{timing:e}));break}case"connection_id":{const e=this.getPluginAPI("dealer");if(!e||!e.hasConnectionInfo())return;r=e.getConnectionInfo().then((e=>this.createEvent(s.j.CONNECTION_ID,e)));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;r=Promise.resolve(this._pluginMediator.createEvent(c.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:e=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;r=this._refreshToken().then((e=>this._pluginMediator.createEvent(c.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:e=>{}})));break;default:return}const i=t.data.listener;this._stateAwareListeners[e].push(i);const o=this._stateAwareRunners;o[e]||(o[e]=r.then(this._runStateAwareQueues.bind(this,e)),n.once&&t.preventDefault())}_onRemoveListener(e,t){const n=t.data.options;if(n.ignoreCurrentState||n.once)return;const r=t.data.listener,i=this._stateAwareListeners[e].indexOf(r);-1!==i&&this._stateAwareListeners[e].splice(i,1)}_getQuickDisconnectTimeout(){return this._counter.getTime(this._quickDisconnectCount)}_onPluginDisconnected(e){const t=Date.now(),n=t-this._lastDisconnect;if(this._performDisconnect(),e.data.code===w.r.CLOSE)return z.info(`Plugin "${e.data.plugin}" explicitly disconnected`),void(this._quickDisconnectCount=0);this._connectionObserver.isOnline()&&(z.info(`Plugin "${e.data.plugin}" unexpectedly disconnect; trying to reconnect`),n<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(s.j.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:n}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=t,this._tryToReconnect()))}_onOnline(){this.emit(s.j.CONNECTION_ONLINE,null),z.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(s.j.CONNECTION_OFFLINE,null),z.info("ConnectioObserver offline"),this._performDisconnect()}_onConnected(){return this._stateMask|=G,this.emit(s.j.CONNECTED,null),z.info("Connected"),Promise.resolve(!0)}_onAuthenticated(e){e.end(),clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=q,this._initTime=Date.now();const t=e.getMetrics();return this.emit(s.j.AUTHENTICATED,{timing:t}),this._stateAwareOperationMetrics.authenticated=t,z.info("Authenticated"),Promise.resolve(!0)}_onAuthenticationFailed(e,t){t.end();const n=e&&e.error?e.error:e;this._authenticationPromise=null,this._stateMask&=~q;const r={error:n,timing:t.getMetrics()};return this.emit(s.j.AUTHENTICATION_FAILED,r),this._pluginMediator.emit(c.t.TRANSPORT_AUTHENTICATE_FAILED,r),z.info("Authentication failed",n),Promise.reject(n)}_onLogout(){const e=()=>{this._lastToken=null,this._lastTokenExpiry=0,this.emit(s.j.LOGGED_OUT,null)};this._disconnect(o.LOG_OUT).then(e,e)}_disconnect(e){if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;const t=this.isConnected()?s.j.BEFORE_ONLINE_DISCONNECT:s.j.BEFORE_OFFLINE_DISCONNECT,n=[];return this.emitSync(t,{awaitPromise:e=>{n.push(e.catch((()=>{})))}}),Promise.all(n).then((()=>this._performDisconnect(e)))}isConnected(){return!!(this._stateMask&G)}isAuthenticated(){return!!(this._stateMask&q)}isReconnecting(){return this._isReconnecting}isOnline(){return this._connectionObserver.isOnline()}connect(){return this._connectCalled=!0,this._connect()}authenticate(){return this._authenticateCalled=!0,this._authenticate(!0)}disconnect(){return this._disconnect(o.EXPLICIT)}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(o.EXPLICIT),Promise.resolve(!0)):Promise.resolve(!1)}forceTokenRefresh(){return this._refreshToken(!0).then((()=>!0))}getInitTime(){return this._initTime}getEndpoints(){return this._endpoints?Object.assign({},this._endpoints):null}getLastToken(){return this._lastToken}toPublic(e){return new U(this,e)}hasOwnerRef(e){return this._ownerRef===e}appendTokenQuery(e){return this._refreshToken().then((t=>K(e,t)))}appendLastTokenQuery(e){return this._lastToken?K(e,this._lastToken):e}matchMessages(e,t,n){if(!e)throw new TypeError('Message "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const r=r=>{const i=r.data.message;!i.uri||!i.uri.match(e)||n&&n!==r.data.plugin||t(i)};r.__matchMessagesExp=e,r.__matchMessagesPlugin=n,t.__matchMessagesWrapper=r,this._pluginMediator.on(c.t.PLUGIN_MESSAGE,r)}unmatchMessages(e,t,n){if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const r=t.__matchMessagesWrapper;return!(!r||r.__matchMessagesExp!==e||r.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(c.t.PLUGIN_MESSAGE,r),!0)}handlePushRequests(e,t,n){if(!e)throw new TypeError('Push request "matcher" cannot be null.');if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const r=r=>{const i=r.data.request;!i.message_ident||!i.message_ident.match(e)||n&&n!==r.data.plugin||Promise.resolve(t(i)).then(r.data.reply)};r.__matchRequestExp=e,r.__matchRequestPlugin=n,t.__matchRequestWrapper=r,this._pluginMediator.on(c.t.PLUGIN_REQUEST,r)}unhandlePushRequests(e,t,n){if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const r=t.__matchRequestWrapper;return!(!r||r.__matchRequestExp!==e||r.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(c.t.PLUGIN_REQUEST,r),!0)}request(e,t){var n;const r={uri:e,options:t,context:{}};this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_PROCESS_REQUEST,r);const i=this._sendRequest.bind(this,r.uri,r.options,r.context);if(!this._endpoints&&B.test(r.uri))return z.info("Request queued until endpoints resolved",r.uri),new Promise(((e,t)=>{this.once(s.j.ENDPOINTS_RESOLVED,(()=>{z.info("Sending endpoints-queued request",r.uri),i().then(e,t)}))}));return!this._connectionObserver.isOnline()&&!(null===(n=r.options)||void 0===n?void 0:n.allowOffline)?(z.info("Request queued until online",r.uri),new Promise(((e,t)=>{this.once(s.j.CONNECTION_ONLINE,(()=>{z.info("Sending offline-queued request",r.uri),i().then(e,t)}))}))):i()}addPlugin(e,t){const n=e(this,t),r=n.name;if(this._plugins[r])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[r]=n,r}removePlugin(e){const t=this._plugins[e];return!!t&&(t.detach(this,this._pluginMediator),this._plugins[e]=void 0,!0)}hasPlugin(e){return!!this._plugins[e]}getPluginAPI(e){const t=this._plugins[e];return t&&t.api?t.api:null}getConnectionId(e="dealer"){const t=this._plugins[e];return t?t.api&&function(e){return"getConnectionInfo"in e.api}(t)?t.api.getConnectionInfo().then((e=>e.id)):Promise.reject(new TypeError(`Plugin ${t} is not a socket plugin.`)):Promise.reject(new TypeError(`Cannot retrieve connection id for plugin ${t}.`))}removeAllListeners(){return this}}class Y{constructor(e){this._headers={},this._init(e)}_init(e){if(e){const t=e.split("\r\n");for(const e of t){const t=e.indexOf(": ");if(t>0){const n=e.substring(0,t).toLowerCase(),r=e.substring(t+2);this._headers[n]=r}}}}get(e){return this._headers[e.toLowerCase()]||null}has(e){return this._headers.hasOwnProperty(e.toLowerCase())}}const J=y.P.forTag("transport.http.xhr"),$=function(){},X={json:!0,text:!0,document:!0};function Q(){this.onabort=$,this.onerror=$,this.onload=$,this.onloadend=$}function Z(e,t,n){var r,i;if(null===(r=e.options.signal)||void 0===r?void 0:r.aborted)return;const o=Date.now(),a=this.status,s=new O(this.responseURL||e.url,a);s.body=null;const l=e.options;if(l.timing&&(s.timing={completed:o-t}),(null===(i=l.connectionObserver)||void 0===i?void 0:i.isOnline)&&(s.offline=!l.connectionObserver.isOnline()),(l.parseResponseHeaders||a>299)&&(s.headers=new Y(this.getAllResponseHeaders())),!l.ignoreResponseBody&&a!==b.G.NO_CONTENT){const e=l.responseType||"";if(!l.forcePolyfill&&"response"in this&&e===this.responseType)s.body=this.response;else if("document"===e)s.body=this.responseXML;else if("json"===e)try{s.body=JSON.parse(this.responseText)}catch(e){J.warn("Could not parse response as JSON:",e),s.body=null}else"text"!==e&&""!==e||(s.body=this.responseText)}n(s)}function ee(e,t,n){4===this.readyState?t(new O(this.responseURL||e,this.status)):n(new E(a.J.HTTP_REQUEST_FAILED,"Request cannot be completed.",this.status))}function te(e){const t=e.options.signal;return new Promise(((n,r)=>{if(null==t?void 0:t.aborted)return void r(new S);const i=new XMLHttpRequest;let o=e.url;if(!o)return void r(new TypeError("Request URL cannot be blank."));let a=null;const s=e.method||"GET",l=e.payload||"";s in _&&l?a=l:l&&(o+=`?${l}`),i.open(s,o,!0),i.onerror=ee.bind(i,o,n,r),i.onabort=Q,i.onloadend=Q,i.onprogress=$;const c=e.options;"include"===c.credentials&&(i.withCredentials=!0);const u=c.responseType;if(u)if(c.forcePolyfill){if(!(u in X))return void r(new TypeError(`Cannot polyfill responseType "${u}"`))}else{if(!("responseType"in i)&&!(u in X))return void r(new TypeError("Cannot set responseType: not supported in browser."));try{i.responseType=u}catch(e){return void r(new TypeError(`Unknown responseType "${u}".`))}if(i&&u!==i.responseType&&!(u in X))return void r(new TypeError(`Unknown responseType "${u}".`))}const d=e.headers.count()?e.headers.toJSON():null;if(d)for(const e in d)if(d.hasOwnProperty(e)&&d[e])try{i.setRequestHeader(e,d[e])}catch(e){return void r(e)}t&&t.addEventListener("abort",(function e(){t.removeEventListener("abort",e),i.abort(),r(new S)})),i.onload=Z.bind(i,e,Date.now(),n);try{i.send(a)}catch(e){return void r(e)}}))}function ne(e){return te(e)}var re=n(27105);function ie(e){const t=Object.assign({},e);return t.XHR||(t.XHR=i),t.Fetch=r,W.create(t)}function oe(e){const t=ie(e);return t.addPlugin(g.dv,{WebSocket}),t}},22378:(e,t,n)=>{"use strict";var r;n.d(t,{hI:()=>v,dv:()=>g}),function(e){e.DEALER_CONNECTION_ERROR="DEALER_CONNECTION_ERROR",e.DEALER_AUTHENTICATION_FAILED="DEALER_AUTHENTICATION_FAILED",e.DEALER_ERROR="DEALER_ERROR",e.ENDPOINT_NOT_DEFINED="ENDPOINT_NOT_DEFINED",e.INVALID_ENDPOINT="INVALID_ENDPOINT"}(r||(r={}));var i,o=n(82071);class a extends Error{constructor(e=r.DEALER_ERROR,t,n={}){super(t),this.name="DealerError",this.message=t,this.code=e,this.raw=n,this.wsCode=n.code||null,this.wsReason=n.reason||null}}!function(e){e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.CONNECTED="connected",e.CONNECTION_ID="connection_id",e.ERROR="error",e.DISCONNECTED="disconnected",e.MESSAGE="message",e.REQUEST="request"}(i||(i={}));var s=n(33178),l=n(85406),c=n(30156),u=n(48764).Buffer;const d=function(){},p=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,f="undefined"!=typeof window;class h extends s.vp{constructor(e){super(),this._socket=null,this._lastPingDeferred=null,this._waitingForConnectionId=!0,this._connectionId=null,this._connectionURI=null,this._heartbeatToken=0,this._heartbeatTimeoutToken=0,this._connected=!1,this._endpoint=null,this._WebSocket=e.WebSocket||WebSocket,this._heartbeatTimeout=e.heartbeatTimeout||1e4}static create(e){return new h(e)}_startHeartbeat(e){const t=()=>{this.ping().then((()=>this._onHeartbeatSuccess()),(()=>this._onHeartbeatError())),this._heartbeatTimeoutToken=setTimeout((()=>this._onHeartbeatError()),this._heartbeatTimeout)};e?t():this._heartbeatToken=setTimeout((()=>t()),3e4)}_onHeartbeatError(){this._stopHeartbeat(),this._socket&&this._socket.close(c.r.TIMEOUT,"internal-timeout")}_onHeartbeatSuccess(){this._stopHeartbeat(),this._startHeartbeat()}_stopHeartbeat(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)}_prepareConnectionId(e){var t;if(!e.uri)return!1;const[,n]=null!==(t=e.uri.match(p))&&void 0!==t?t:[];if(!n)return!1;let r;return r=e.headers&&e.headers["Spotify-Connection-Id"]?e.headers["Spotify-Connection-Id"]:decodeURIComponent(n),this._connectionId=r,this._connectionURI=e.uri,this.emit(i.CONNECTION_ID,{id:r,uri:e.uri}),!0}_reply(e,t){if(!e)throw new TypeError("Invalid key.");const n=this._socket;if(!n||1!==n.readyState)return;const r={type:"reply",key:e,payload:t};n.send(JSON.stringify(r))}_parseMessage(e){let t;try{t=JSON.parse(e)}catch(e){return}if("message"===t.type)this._waitingForConnectionId&&this._prepareConnectionId(t)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit(i.MESSAGE,{message:t});else if("pong"===t.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===t.type){const e=t.key;e&&this.emit(i.REQUEST,{request:t,reply:this._reply.bind(this,e)})}}_handleOpen(e){e.resolve(!0),this._connected=!0,this.emit(i.AUTHENTICATED,null)}_handleMessage(e){const t=this,n=e.data;if(f&&window.Blob&&n instanceof window.Blob){const e=new FileReader;e.onloadend=function(){if(!this.result)return;let e;if(this.result instanceof ArrayBuffer){e="";const t=new Uint8Array(this.result);for(let n=0;n{this.once(i.CONNECTION_ID,(t=>{e(t.data.id)}))})):Promise.resolve(this._connectionId)}getConnectionInfo(){return this._waitingForConnectionId?new Promise((e=>{this.once(i.CONNECTION_ID,(t=>{e({id:t.data.id,uri:t.data.uri})}))})):Promise.resolve({id:this._connectionId,uri:this._connectionURI})}hasConnectionId(){return!this._waitingForConnectionId&&!!this._connectionId}}const v="dealer";class m{constructor(e){this.name=v,this._dealer=new h(e),this.api={hasConnectionInfo:()=>this._dealer.hasConnectionId(),getConnectionInfo:()=>this._dealer.getConnectionInfo().then((e=>Object.assign({plugin:this.name},e)))},this._onDealerConnectionId=this._onDealerConnectionId.bind(this),this._onDealerDisconnected=this._onDealerDisconnected.bind(this),this._onDealerMessage=this._onDealerMessage.bind(this),this._onDealerRequest=this._onDealerRequest.bind(this),this._onTransportConnect=this._onTransportConnect.bind(this),this._onTransportAuthenticate=this._onTransportAuthenticate.bind(this),this._onTransportDisconnect=this._onTransportDisconnect.bind(this)}_onDealerConnectionId(e){this._mediator&&this._mediator.emit(o.t.PLUGIN_CONNECTION_INFO,Object.assign({plugin:this.name},e.data))}_onDealerDisconnected(e){if(!this._mediator)return;const t=e.data;this._mediator.emit(o.t.PLUGIN_DISCONNECTED,{plugin:this.name,code:t.wsCode,reason:t.reason})}_onDealerMessage(e){this._mediator&&this._mediator.emit(o.t.PLUGIN_MESSAGE,Object.assign({plugin:this.name},e.data))}_onDealerRequest(e){this._mediator&&this._mediator.emit(o.t.PLUGIN_REQUEST,Object.assign({plugin:this.name},e.data))}_onTransportConnect(e){const t=e.data.endpoints,n=e.data.awaitPromise;t.dealer?/^wss:/.test(t.dealer)?n(this._dealer.connect(t.dealer)):n(Promise.reject(new a(r.INVALID_ENDPOINT,"Dealer endpoint needs to be wss://"))):n(Promise.reject(new a(r.ENDPOINT_NOT_DEFINED,'No "dealer" endpoint defined.')))}_onTransportAuthenticate(e){const t=e.data;t.awaitPromise(this._dealer.authenticate(t.token))}_onTransportDisconnect(){this._dealer.disconnect()}_onDealerError(e){var t;null===(t=this._mediator)||void 0===t||t.emit(o.t.PLUGIN_ERROR,{plugin:this.name,error:e.data.error})}attach(e,t){this._mediator=t,t.addListeners({[o.t.TRANSPORT_CONNECT]:this._onTransportConnect,[o.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[o.t.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.addListeners({[i.DISCONNECTED]:this._onDealerDisconnected,[i.CONNECTION_ID]:this._onDealerConnectionId,[i.MESSAGE]:this._onDealerMessage,[i.REQUEST]:this._onDealerRequest,[i.ERROR]:this._onDealerError})}detach(e,t){this._mediator=void 0,t.removeListeners({[o.t.TRANSPORT_CONNECT]:this._onTransportConnect,[o.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[o.t.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.removeListeners({[i.DISCONNECTED]:this._onDealerDisconnected,[i.CONNECTION_ID]:this._onDealerConnectionId,[i.MESSAGE]:this._onDealerMessage,[i.REQUEST]:this._onDealerRequest,[i.ERROR]:this._onDealerError})}}function g(e,t){return new m(t)}},43107:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});function r(e){return void 0===e||!!e}function i(e){const t={};return r(e.dealer)&&(t.dealer="wss://dealer.spotify.com:443/"),r(e.webgate)&&(t.webgate="https://spclient.wg.spotify.com/"),r(e.webapi)&&(t.webapi="https://api.spotify.com/"),function(){return Promise.resolve(t)}}},27105:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var r=n(64638);class i extends Error{constructor(e,t,n=-1){super(t),this.name="XResolveError",this.message=t,this.code=e,this.status=n}}const o="dealer",a="spclient",s={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function l(e={}){const t=e.dealer||o,n=e.webgate||a,l=`https://apresolve.spotify.com/?type=${t}&type=${n}`;return function(e){return e.request(l,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(e,t){return e.getStatusFamily()!==t.SUCCESS}},metadata:{noRequestTransform:!0}}).then((e=>{var o,a,l,c,u;const d=e.body,p={dealer:null!==(a=null===(o=null==d?void 0:d[t])||void 0===o?void 0:o[0])&&void 0!==a?a:"dealer.spotify.com",webgate:null!==(u=null!==(c=null===(l=null==d?void 0:d[n])||void 0===l?void 0:l[0])&&void 0!==c?c:s[n])&&void 0!==u?u:s.spclient,webapi:"https://api.spotify.com/"};if(!p.dealer||!p.webgate)throw new i(r.J.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",e.status);return p})).then((e=>(e.dealer=`wss://${e.dealer.replace(/:443$/,"")}`,e.webgate=`https://${e.webgate.replace(/:443$/,"")}`,e)))}}},16592:(e,t,n)=>{"use strict";let r;n.d(t,{j:()=>r}),function(e){e.CONNECTION_ONLINE="online",e.CONNECTION_OFFLINE="offline",e.PRODUCT_STATE_CHANGED="product_state_changed",e.ACCESS_TOKEN="access_token",e.AUTHENTICATED="authenticated",e.AUTHENTICATION_FAILED="authentication_failed",e.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",e.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",e.CONNECTED="connected",e.CONNECTION_FAILED="connection_failed",e.CONNECTION_ID="connection_id",e.DISCONNECTED="disconnected",e.ENDPOINTS_RESOLVED="endpoints_resolved",e.LOGGED_OUT="logged_out",e.SHORT_SESSION_DISCONNECTED="short_session_disconnected",e.TOKEN_PROVIDER_ERROR="token_provider_error",e.RECONNECTED="reconnected",e.RECONNECTING="reconnecting",e.WINDOW_BEFORE_UNLOAD="beforeunload"}(r||(r={}))},7661:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const r={threshold:.5};class i{constructor(e,t){this.isIOSupported=!0,this.ubiLogger=e,this.isIOSupported="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,this.isIOSupported&&(this.observer=new IntersectionObserver((e=>{e.forEach((e=>{var t;const n=null===(t=this._observableEntities)||void 0===t?void 0:t.get(e.target);n&&e.intersectionRatio>=.5&&(this.ubiLogger.logImpression(n.impression()),this.removeFromObservableEntities(n.element))}))}),r),this._observableEntities=null!=t?t:new Map)}removeFromObservableEntities(e){var t,n;this.isIOSupported&&(null===(t=this.observer)||void 0===t||t.unobserve(e),null===(n=this._observableEntities)||void 0===n||n.delete(e))}addToObservableEntities(e){var t,n;if(!this.isIOSupported)return null;const r=e.element;return null===(t=this._observableEntities)||void 0===t||t.set(r,e),null===(n=this.observer)||void 0===n||n.observe(r),()=>{this.removeFromObservableEntities(r)}}}},27876:(e,t,n)=>{"use strict";n.d(t,{R:()=>T});var r=n(53038),i=n(88612);const o="";function a(e){return e.reduce(((e,t)=>e.concat(t)),[])}function s(e){var t;const n={element_path_names:[],element_path_pos:[],element_path_ids:[],element_path_uris:[],element_path_reasons:[]};for(const r of e)n.element_path_names.push(r.name),n.element_path_pos.push((null===(t=r.position)||void 0===t?void 0:t.toString())||o),n.element_path_ids.push(r.identifier||o),n.element_path_uris.push(r.uri||o),n.element_path_reasons.push(r.reason||o);return n}function l(e){return e?a(e.locations.map((e=>e.pathNodes))):[]}function c(e){return e?a(e.locations.map((e=>e.specVersion))):[]}function u(e){return e?a(e.locations.map((e=>e.specMode))):[]}const d={createGabitoEvent:function(e,t,n,a,d,p){const f=s(e.location.pathNodes),h=s(l(e.parentAbsoluteLocation)),v=c(e.parentAbsoluteLocation),m=u(e.parentAbsoluteLocation),g={annotator_configuration_version:o,annotator_version:o,app:e.app,element_path_ids:f.element_path_ids,element_path_names:f.element_path_names,element_path_pos:f.element_path_pos,element_path_reasons:f.element_path_reasons,element_path_uris:f.element_path_uris,generator_version:e.generatorVersion,impression_id:t,parent_modes:m,parent_path_ids:h.element_path_ids,parent_path_names:h.element_path_names,parent_path_pos:h.element_path_pos,parent_path_reasons:h.element_path_reasons,parent_path_uris:h.element_path_uris,parent_specification_versions:v,specification_version:e.specificationVersion,specification_mode:e.specificationMode,page_instance_id:n,playback_id:a,play_context_uri:d};return p?(0,r.S)(g):(0,i.z)(g)}};var p=n(97338),f=n(5332);const h={createGabitoEvent:function(e,t,n,r,i,a){const d=s(e.location.pathNodes),h=s(l(e.parentAbsoluteLocation)),v=c(e.parentAbsoluteLocation),m=u(e.parentAbsoluteLocation),g={action_parameter_names:e.actionParameterNames,action_parameter_values:e.actionParameterValues,action_name:e.actionName,action_version:e.actionVersion,annotator_configuration_version:o,annotator_version:o,app:e.app,element_path_ids:d.element_path_ids,element_path_names:d.element_path_names,element_path_pos:d.element_path_pos,element_path_reasons:d.element_path_reasons,element_path_uris:d.element_path_uris,generator_version:e.generatorVersion,interaction_id:t,interaction_type:e.interactionType,parent_modes:m,parent_path_ids:h.element_path_ids,parent_path_names:h.element_path_names,parent_path_pos:h.element_path_pos,parent_path_reasons:h.element_path_reasons,parent_path_uris:h.element_path_uris,parent_specification_versions:v,specification_version:e.specificationVersion,specification_mode:e.specificationMode,page_instance_id:n,playback_id:r,play_context_uri:i};return a?(0,p.E)(g):(0,f.Y)(g)}};var v=n(55877);class m{constructor(){this._currentPageInstanceId=null}setPageInstanceId(e){this._currentPageInstanceId=e}getPageInstanceId(){return this._currentPageInstanceId}}var g,y,_,b=n(81467);!function(e){e.CLIENT_LOST_FOCUS="client_lost_focus",e.CLIENT_GAINED_FOCUS="client_gained_focus",e.CLIENT_STARTED="client_started",e.DEEP_LINK="deep_link",e.BACK="back",e.FORWARD="forward",e.UNKNOWN="unknown"}(g||(g={})),function(e){e.AD_BASED_ON_DEMAND="ad-based-on-demand",e.ADAPTIVEAUTHENTICATION_START="adaptiveauthentication/start",e.AGE_VERIFICATION="age-verification",e.ALBUM="album",e.ANCHORFUNNEL="anchorfunnel",e.APPRATER="apprater",e.ACTIVATION_AUTO_TRIAL="activation/auto-trial",e.ALLBOARDING_CONTENTPICKER="allboarding/contentpicker",e.ALLBOARDING_SEARCH="allboarding/search",e.ALLBOARDING_SEND="allboarding/send",e.ALLBOARDING_PLACEHOLDER="allboarding/placeholder",e.ARTIST="artist",e.ARTIST_ABOUT="artist/about",e.ARTIST_APPEARS_ON="artist/appears-on",e.ARTIST_ABOUT_WEBVIEW="artist/about/webview",e.ARTIST_ALBUMS="artist/albums",e.ARTIST_CONCERTS="artist/concerts",e.ARTIST_DISCOVERED_ON="artist/discovered-on",e.ARTIST_FEATURING="artist/featuring",e.ARTIST_GALLERY="artist/gallery",e.ARTIST_PLAYLISTS="artist/playlists",e.ARTIST_RELATED="artist/related",e.ARTIST_RELEASES="artist/releases",e.ARTIST_SAVED_TRACKS="artist/saved-tracks",e.CREATORFOLLOW_SLATE="creatorfollow/slate",e.ARTIST_PATRON="artist/patron",e.ARSENAL="arsenal",e.ASSISTED_CURATION="assisted-curation",e.ASSISTED_CURATION_NAMING="assisted-curation/naming",e.ASSISTED_CURATION_SEARCH="assisted-curation/search",e.ASSISTED_CURATION_SEARCH_SONGS="assisted-curation/search/songs",e.ASSISTED_CURATION_SEARCH_ALBUMS="assisted-curation/search/albums",e.ASSISTED_CURATION_SEARCH_ARTISTS="assisted-curation/search/artists",e.ASSISTED_CURATION_SEARCH_ALBUM_ENTITY="assisted-curation/search/album-entity",e.ASSISTED_CURATION_SEARCH_ARTIST_ENTITY="assisted-curation/search/artist-entity",e.ADS="ads",e.BLEND_ENTITY="blend/entity",e.BLEND_ENTITY_MEMBERS="blend/entity/members",e.BLEND_ENTITY_TRACKAFFILIATION="blend/entity/trackaffiliation",e.BLEND_INVITATION="blend/invitation",e.BLEND_INVITATION_GROUPBLENDSJOIN="blend/invitation/groupblendsjoin",e.BLEND_TASTE_MATCH="blend/taste-match",e.BOOTCAMP_CHORDS="bootcamp/chords",e.BROWSE="browse",e.BROWSE_DISCOVER="browse/discover",e.BROWSE_GENRES="browse/genres",e.BROWSE_NEWRELEASES="browse/newreleases",e.BROWSE_PODCASTS="browse/podcasts",e.BROWSE_TOPPODCAST="browse/toppodcast",e.BUNDLING="bundling",e.BUNDLING_WEBVIEW="bundling/webview",e.BUNDLING_SURVEY_WEBVIEW="bundling/survey/webview",e.BUNDLING_OFFER="bundling/offer",e.BUNDLING_OFFER_WEBVIEW="bundling/offer/webview",e.BUNDLING_PLACEBO="bundling/placebo",e.BUNDLING_PLACEBO_WEBVIEW="bundling/placebo/webview",e.CALLING_CODE_PICKER="calling-code-picker",e.CALIFORNIA="california",e.CALIFORNIA_NOARGS="california/noargs",e.CAPPED_OFFLINE_DIALOG="capped-offline/dialog",e.CAPPED_ONDEMAND_DIALOG="capped-ondemand/dialog",e.CAR_MODE_ENTITY="car-mode/entity",e.CAR_MODE_HOME="car-mode/home",e.CAR_MODE_YOURLIBRARY="car-mode/yourLibrary",e.DRIVING_DRIVINGMODE="driving/drivingMode",e.CARS_MEDIASERVICE="cars/mediaservice",e.CARS_ANDROIDAUTO="cars/androidauto",e.CARS_APPPROTOCOL="cars/appprotocol",e.CARS_BMW="cars/bmw",e.CARS_LOCKSCREEN="cars/lockscreen",e.CARS_MYSPIN="cars/myspin",e.CARS_WAZE="cars/waze",e.CARTHING="carthing",e.CARTHING_SETTINGS="carthing/settings",e.CARTHING_PRESETS="carthing/presets",e.CARTHING_PRESETS_HOWTO="carthing/presets/howto",e.CARTHING_PRESETS_SAVE="carthing/presets/save",e.CELEBRITYBLEND_ENTITY="celebrityblend/entity",e.CHARTS="charts",e.CHARTS_CHART="charts/chart",e.CHARTS_REGIONAL="charts/regional",e.CHARTS_UNKNOWN="charts/unknown",e.CHARTS_VIRAL="charts/viral",e.CHARTS_WEEKLY="charts/weekly",e.CHARTS_ALBUMS="charts/albums",e.CHARTS_ALBUM="charts/album",e.CHECKOUT="checkout",e.CHECKOUT_CODEREDEMPTION="checkout/coderedemption",e.CHURNLOCK="churnlock",e.COLLECTION="collection",e.COLLECTION_ALBUMS="collection/albums",e.COLLECTION_ALBUMS_ALBUM="collection/albums/album",e.COLLECTION_ARTISTS="collection/artists",e.COLLECTION_ARTISTS_ARTIST="collection/artists/artist",e.COLLECTION_EPISODES_REMOVEALL="collection/episodes/removeall",e.COLLECTION_FILEPICKER="collection/filepicker",e.COLLECTION_FOLDER="collection/folder",e.COLLECTION_OFFLINELIBRARY="collection/offlinelibrary",e.COLLECTION_PLAYLISTS="collection/playlists",e.COLLECTION_PODCASTS="collection/podcasts",e.COLLECTION_PODCASTSONLY="collection/podcastsonly",e.COLLECTION_PODCASTS_FOLLOWING="collection/podcasts/following",e.COLLECTION_PODCASTS_EPISODES_UNPLAYED="collection/podcasts/episodes/unplayed",e.COLLECTION_PODCASTS_EPISODES_OFFLINE="collection/podcasts/episodes/offline",e.COLLECTION_PODCASTS_EPISODES_UNFINISHED="collection/podcasts/episodes/unfinished",e.COLLECTION_PODCASTS_EPISODES_LISTENLATER="collection/podcasts/episodes/listenlater",e.COLLECTION_PODCASTS_EPISODES="collection/podcasts/episodes",e.COLLECTION_RADIO="collection/radio",e.COLLECTION_RECENTLYPLAYED="collection/recentlyplayed",e.COLLECTION_SONGS="collection/songs",e.COLLECTION_VIDEO="collection/video",e.COLLECTION_YOUREPISODES="collection/yourepisodes",e.COLLECTION_YOUREPISODES_SETTINGS="collection/yourepisodes/settings",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEPLAYED="collection/yourepisodes/settings/removeplayed",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEUNPLAYED="collection/yourepisodes/settings/removeunplayed",e.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOAD="collection/yourepisodes/settings/autodownload",e.CONTENT_FEED="content-feed",e.YOURLIBRARY="yourlibrary",e.YOURLIBRARY_ALBUMS="yourlibrary/albums",e.YOURLIBRARY_ARTISTS="yourlibrary/artists",e.YOURLIBRARY_AUDIOBOOKS="yourlibrary/audiobooks",e.YOURLIBRARY_PLAYLISTS="yourlibrary/playlists",e.YOURLIBRARY_EPISODES="yourlibrary/episodes",e.YOURLIBRARY_DOWNLOADS="yourlibrary/downloads",e.YOURLIBRARY_SHOWS="yourlibrary/shows",e.YOURLIBRARY_HIDDEN_CONTENT="yourlibrary/hidden-content",e.YOURLIBRARY_SEARCH="yourlibrary/search",e.CONCERTS="concerts",e.CONCERTS_CITYSEARCH="concerts/citysearch",e.CONCERTS_CONCERT="concerts/concert",e.CONCERTS_CONCERT_WEBVIEW="concerts/concert/webview",e.CONCERTS_GROUP="concerts/group",e.CONCERTS_ARTIST="concerts/artist",e.CONNECT_CONTEXTMENU="connect/contextmenu",e.CONNECT_DEVICEPICKER="connect/devicepicker",e.CONNECT_OVERLAY_NEWDEVICE="connect/overlay/newdevice",e.CONNECT_OVERLAY_SWITCHDEVICE="connect/overlay/switchdevice",e.CONNECT_OVERLAY_VOLUME="connect/overlay/volume",e.CONNECT_TUTORIALDESKTOP="connect/tutorialdesktop",e.CONNECT_TUTORIALSPEAKER="connect/tutorialspeaker",e.CONNECT_TUTORIALTV="connect/tutorialtv",e.CONNECT_TUTORIALGAMECONSOLE="connect/tutorialgameconsole",e.CONNECT_TUTORIALCHROMECAST="connect/tutorialchromecast",e.CONNECT_TUTORIALBLUETOOTH="connect/tutorialbluetooth",e.CONNECT_EDUCATIONPAGE="connect/educationpage",e.CONTEXTDISPATCH_ERROR="contextdispatch/error",e.CONTEXTDISPATCH_OFFLINE="contextdispatch/offline",e.CONTEXTMENU="contextmenu",e.CONTEXTMENU_TRACK="contextmenu/track",e.CONTEXTMENU_ALBUM="contextmenu/album",e.CONTEXTMENU_ARTIST="contextmenu/artist",e.CONTEXTMENU_PLAYLIST="contextmenu/playlist",e.CONTEXTMENU_EPISODE="contextmenu/episode",e.CONTEXTMENU_LIVEROOM="contextmenu/liveroom",e.CONTEXTMENU_EPISODE_SLEEPTIMER="contextmenu/episode/sleeptimer",e.CONTEXTMENU_EPISODE_SPEEDCONTROL="contextmenu/episode/speedcontrol",e.CONTEXTMENU_SHOW="contextmenu/show",e.CONTEXTMENU_SHARE="contextmenu/share",e.CONTEXTMENU_POSTTO="contextmenu/postto",e.CONTEXTMENU_SENDTO="contextmenu/sendto",e.COVERIMAGE="coverimage",e.DAILYMIXHUB="dailymixhub",e.DATASAVERMODE="datasavermode",e.DATASAVERMODE_SETTINGS="datasavermode/settings",e.DEBUG="debug",e.DIALOG_COLLECTION_INSUFFICIENTSTORAGE="dialog/collection/insufficientstorage",e.DIALOG_CONNECT_NOMUSIC="dialog/connect/nomusic",e.DIALOG_DISKALMOSTFULL="dialog/diskalmostfull",e.DIALOG_FINDFRIENDS_CONFIRMALL="dialog/findfriends/confirmall",e.DIALOG_LOCALFILESIMPORT_OK="dialog/localfilesimport/ok",e.DIALOG_LOCALFILESIMPORT_DISCARD="dialog/localfilesimport/discard",e.DIALOG_LOCALFILESIMPORT_SONGS="dialog/localfilesimport/songs",e.DIALOG_CONNECTFACEBOOK="dialog/connectfacebook",e.DIALOG_CONNECTXAUTH="dialog/connectxauth",e.DIALOG_CONNECTOAUTH="dialog/connectoauth",e.DIALOG_SHOW_VIDEOUNAVAILABLE="dialog/show/videounavailable",e.DIALOG_REQUESTPERMISSIONS_SHOWRATIONALE="dialog/requestpermissions/showrationale",e.DIALOG_PROFILE_ACTIVITY_ONDEMANDUNAVAILABLE="dialog/profile/activity/ondemandunavailable",e.DIALOG_TERMS_TERMSCHANGED="dialog/terms/termschanged",e.DIALOG_TERMS_TERMSPOSTPONED="dialog/terms/termspostponed",e.DIALOG_CONNECT_PLAYBACK_ERROR="dialog/connect/playback/error",e.DIALOG_SEARCH_FEEDBACK="dialog/search/feedback",e.DIALOG_MARKETOPPORTUNITIES_SHOWCASE="dialog/marketopportunities/showcase",e.DIALOG_AGELIMITDIALOG="dialog/agelimitdialog",e.DISCOVERWEEKLY="discoverweekly",e.DISCOVERWEEKLY_SWIPE="discoverweekly/swipe",e.DISCOVERNOW="discovernow",e.DISCOVERNOWMUSIC="discovernowmusic",e.DOWNLOAD_DESKTOP="download/desktop",e.DRIVINGMODE="drivingmode",e.DYNAMIC_PLAYLIST_SESSION="dynamic-playlist-session",e.DYNAMIC_SESSION_ENTITY="dynamic-session/entity",e.EMAIL_EDIT="email/edit",e.EMAIL_EDIT_SSO="email/edit/sso",e.EMAIL_EDIT_RESETPASSWORD="email/edit/resetpassword",e.EMAIL_VERIFY_BLOCKING="email/verify/blocking",e.ENTERPRISEPODCASTS="enterprisepodcasts",e.EPISODE="episode",e.EVENTSENDER_DEBUG="eventsender/debug",e.EVENTSENDER_ITGC_DEBUG="eventsender/itgc/debug",e.EXPERIMENTAL="experimental",e.EXPERIMENTAL_DEBUGJSONRENDERING="experimental/debugjsonrendering",e.EXPERIMENTAL_AUDIOPLAYBACK="experimental/audioplayback",e.EXPERIMENTAL_COUNTRYTOPTEN="experimental/countrytopten",e.EXPERIMENTAL_LISTENINGHISTORY="experimental/listeninghistory",e.FACEBOOK_CONNECT="facebook/connect",e.FACEBOOK_PERMISSIONS="facebook/permissions",e.FACEBOOK_WEBVIEWPERMISSIONS="facebook/webviewpermissions",e.FINDFRIENDS="findfriends",e.FIND="find",e.FOLLOWFEED="followfeed",e.FORMATLISTPLATFORM="formatlistplatform",e.FORMATLISTPLATFORM_OFFLINE="formatlistplatform/offline",e.FRIENDSACTIVITY="friendsactivity",e.FRIENDSACTIVITY_FRIENDSLIST="friendsactivity/friendslist",e.FRIENDSACTIVITY_STORY="friendsactivity/story",e.FRIENDSHOME="friendshome",e.FRIENDSHOME_ENTITY="friendshome/entity",e.FRIENDSHOME_LISTENERS="friendshome/listeners",e.FRIENDSHOME_FINDFRIENDS="friendshome/findfriends",e.FRIENDSHOME_SEARCHFRIENDS="friendshome/searchfriends",e.FULLSCREEN_STORY="fullscreen-story",e.FULLSCREEN_STORY_SHARE="fullscreen-story-share",e.FULLSCREEN_VIDEOPLAYER="fullscreen/videoplayer",e.HOLIDAYCAMPAIGN="holidaycampaign",e.INBOX="inbox",e.INVITE_HAVEINVITE="invite/haveinvite",e.GOOGLEASSISTANT="googleassistant",e.GUEST_LIBRARYTABWALL="guest/librarytabwall",e.GUEST_LOGINTABWALL="guest/logintabwall",e.HOMEMIX_ENTITY="homemix/entity",e.HOMEMIX_TASTEONBOARDING="homemix/tasteonboarding",e.HOMEMIX_GENRESPAGE="homemix/genrespage",e.HOMEMIX_GENREDETAIL="homemix/genredetail",e.HOMEMIX_ABOUT="homemix/about",e.HOMEMIX_ABOUTVIDEO="homemix/aboutvideo",e.HOMEMIX_USERTOGGLE="homemix/usertoggle",e.HOMEMIX_FACEPILEDETAIL="homemix/facepiledetail",e.HOMETHING="homething",e.HOMETHING_ACTIVATION_WELCOME="homething/activation/welcome",e.HOMETHING_ACTIVATION_SCANDEVICES="homething/activation/scandevices",e.HOMETHING_ACTIVATION_CONNECTING="homething/activation/connecting",e.HOMETHING_ACTIVATION_WIFI="homething/activation/wifi",e.HOMETHING_ACTIVATION_ERROR="homething/activation/error",e.HOMETHING_ACTIVATION_CONNECTED="homething/activation/connected",e.HOMETHING_SETTINGS="homething/settings",e.INSPIRECREATION="inspirecreation",e.ENTITYLINKING="entitylinking",e.IMAGERECS="imagerecs",e.LANGUAGEPICKER="languagepicker",e.LANGUAGEPICKER_NOSKIPDIALOG="languagepicker/noskipdialog",e.LINGO_HOME="lingo/home",e.LISTENINGHISTORY="listeninghistory",e.LISTENINGHISTORY_PLAYSFROMCONTEXT="listeninghistory/playsfromcontext",e.LOCALFILESIMPORT="localfilesimport",e.LOCALFILES="localfiles",e.LOGIN="login",e.LOGIN_WELCOME="login/welcome",e.LOGIN_SETTINGS="login/settings",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAIL="login/accountrecovery/requestemail",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAILCONFIRMATION="login/accountrecovery/requestemailconfirmation",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORD="login/accountrecovery/resetpassword",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORDCONFIRMATION="login/accountrecovery/resetpasswordconfirmation",e.LOGIN_ACCOUNTRECOVERY_COLLECTEMAIL="login/accountrecovery/collectemail",e.LOGIN_CONTINUEWITH="login/continuewith",e.LOGIN_CONTINUEWITH_EMAIL="login/continuewith/email",e.LOGIN_CONNECT="login/connect",e.LOGIN_PIN="login/pin",e.LOGIN_MULTIUSER="login/multiuser",e.PHONENUMBERSIGNUP="phonenumbersignup",e.PHONENUMBERSIGNUP_CALLINGCODEPICKER="phonenumbersignup/callingcodepicker",e.PHONENUMBERSIGNUP_PHONENUMBERENTRY="phonenumbersignup/phonenumberentry",e.PHONENUMBERSIGNUP_VALIDATEOTP="phonenumbersignup/validateotp",e.LYRICS="lyrics",e.LYRICS_FULLSCREEN="lyrics/fullscreen",e.LYRICS_SHARE="lyrics/share",e.MADE_FOR_YOU="made-for-you",e.MARKETOPPORTUNITIES_PRECACHING="marketopportunities/precaching",e.MICDROP="micdrop",e.MISSEDCONNECTIONS="missedconnections",e.MOMENTS="moments",e.MOMENTS_CATEGORY="moments/category",e.MUSIC="music",e.MUSIC_CATEGORY="music/category",e.NOTIFICATIONS="notifications",e.NOTIFICATIONS_ACTIVITY="notifications/activity",e.NOW="now",e.HOME="home",e.HOME_DRILLDOWN="home/drilldown",e.NEWRELEASESFEED="newreleasesfeed",e.NOTIFICATIONS_CENTER="notifications-center",e.NOWPLAYING="nowplaying",e.NOWPLAYINGV2="nowplayingv2",e.NOWPLAYING_GENIUSCARDS="nowplaying/geniuscards",e.NOWPLAYING_NOWPLAYINGBAR="nowplaying/nowplayingbar",e.NOWPLAYING_LIVEROOMNOWPLAYINGBAR="nowplaying/liveroomnowplayingbar",e.NOWPLAYING_NOWPLAYINGSIDEBAR="nowplaying/nowplayingsidebar",e.NOWPLAYING_QUEUE="nowplaying/queue",e.NOWPLAYING_HISTORY="nowplaying/history",e.NFT_MIX="nft-mix",e.OFFLINE="offline",e.OFFLINE_SYNC_ERROR="offline-sync/error",e.OFFLINE_MIX_ENTITY="offline-mix/entity",e.OFFLINE_USER_MIX_ENTITY="offline-user-mix/entity",e.OVERLAY_SHUFFLEPLAYLIST="overlay/shuffleplaylist",e.OVERLAY_DATASAVERPLAYLIST="overlay/datasaverplaylist",e.ONBOARDING_OVERLAY="onboarding/overlay",e.ONETAPBROWSE="onetapbrowse",e.ONLYYOU_DATASTORIES="onlyyou/datastories",e.OPEN_ACCESS_PREVIEW="open-access-preview",e.PAYMENTFAILURE_RESUBSCRIPTIONMODAL="paymentfailure/resubscriptionmodal",e.PERSONALISED_SET="personalised-set",e.PLAYLIST="playlist",e.PLAYLIST_NOTLOADED="playlist/notloaded",e.PLAYLIST_ONDEMAND="playlist/ondemand",e.PLAYLIST_DATA_SAVER="playlist/data-saver",e.PLAYLIST_ADDTOPLAYLIST="playlist/addtoplaylist",e.PLAYLIST_ADDTOPLAYLIST_ADDONTOPDIALOG="playlist/addtoplaylist/addontopdialog",e.PLAYLIST_ADDTOPLAYLIST_ADDTOBOTTOMDIALOG="playlist/addtoplaylist/addtobottomdialog",e.PLAYLIST_ADDTOPLAYLIST_DUPLICATEDIALOG="playlist/addtoplaylist/duplicatedialog",e.PLAYLIST_ADDTOPLAYLISTBOTTOMSHEET="playlist/addtoplaylistbottomsheet",e.PLAYLIST_ANNOTATE="playlist/annotate",e.PLAYLIST_CONFIRMDELETE="playlist/confirmdelete",e.PLAYLIST_CREATE="playlist/create",e.PLAYLIST_FOLDER="playlist/folder",e.PLAYLIST_FOLDER_TRACKS="playlist/folder/tracks",e.PLAYLIST_RENAME="playlist/rename",e.PLAYLIST_EDIT="playlist/edit",e.PLAYLIST_EDIT_DISCARD="playlist/edit/discard",e.PLAYLIST_EDIT_CROP="playlist/edit/crop",e.PLAYLIST_ALLSONGS="playlist/allsongs",e.PLAYLIST_PARTICIPANTS="playlist/participants",e.PLAYLIST_PERMISSIONS="playlist/permissions",e.PLAYLIST_PERMISSIONS_CLAIMDIALOG="playlist/permissions/claimdialog",e.PLAYLIST_STORY="playlist/story",e.PLAYLIST_WRAPPEDLIVE="playlist/wrappedlive",e.PLAYLIST_WEBVIEW="playlist/webview",e.PODCAST="podcast",e.PODCAST_LOADING="podcast/loading",e.PODCAST_EPISODE="podcast/episode",e.PODCAST_EPISODE_AUDIOBOOK="podcast/episode/audiobook",e.PODCAST_EPISODE_DESCRIPTION="podcast/episode/description",e.PODCAST_EPISODE_LOADING="podcast/episode/loading",e.PODCAST_EPISODE_TIMELINE="podcast/episode/timeline",e.PODCAST_EPISODE_TRANSCRIPT="podcast/episode/transcript",e.PODCAST_SHOW_AUDIOBOOK="podcast/show/audiobook",e.PODCAST_SHOW_LOADING="podcast/show/loading",e.PODCAST_SHOW_AUDIOBOOK_GATEDACCESSEDUCATION="podcast/show/audiobook/gatedaccesseducation",e.PODCAST_SHOW_INTERACTIVEAUDIOBOOK="podcast/show/interactiveaudiobook",e.PODCAST_SHOW_SEARCH="podcast/show/search",e.PODCAST_STORYLINE="podcast/storyline",e.PODCAST_SHOW_SETTINGS="podcast/show/settings",e.PODCAST_SHOW_SETTINGS_MARKASPLAYED="podcast/show/settings/markasplayed",e.PODCAST_SPONSORS="podcast/sponsors",e.PODCAST_PEPAREPISODE="podcast/peparepisode",e.PODCAST_IMPORT="podcast/import",e.PODCAST_PREVIEW="podcast/preview",e.PODCAST_CREATOR="podcast/creator",e.PODCAST_CREATOR_SHOWS="podcast/creator/shows",e.PODCASTCHARTS="podcastcharts",e.PODCASTCHARTS_CATEGORIES="podcastcharts/categories",e.PODCASTCHARTS_REGIONS="podcastcharts/regions",e.PODCASTCHARTS_CHART="podcastcharts/chart",e.PODCASTCLIPS="podcastclips",e.PODCASTINTERACTIVITY_POLL="podcastinteractivity/poll",e.PODCASTONBOARDING_TOPICPICKER="podcastonboarding/topicpicker",e.PODCASTONBOARDING_SENDTOPICS="podcastonboarding/sendtopics",e.PODCAST_NEW_EPISODE_NOTIFICATIONS_SETTINGS="podcast-new-episode-notifications/settings",e.RATINGS_AND_REVIEWS_RATINGS="ratings-and-reviews/ratings",e.PREMIUM_ACCOUNT_MANAGEMENT="premium-account-management",e.PREMIUM_ACCOUNT_MANAGEMENT_ALL_PLANS="premium-account-management/all-plans",e.PREMIUM_DESTINATION="premium-destination",e.PREMIUM_DESTINATION_PREMIUM_PLANS="premium-destination/premium-plans",e.PREMIUMHUB="premiumhub",e.PREMIUM_MINI_DOWNLOADED_ENTITY="premium-mini/downloaded-entity",e.PREMIUM_MESSAGING="premium-messaging",e.PREMIUM_SIGNUP="premium-signup",e.PRERELEASE="prerelease",e.PROFILE="profile",e.PROFILE_ACTIVITY="profile/activity",e.PROFILE_ACTIVITY_REPLAYS="profile/activity/replays",e.PROFILE_ARTISTS="profile/artists",e.PROFILE_FOLLOWERS="profile/followers",e.PROFILE_FOLLOWING="profile/following",e.PROFILE_PLAYLISTS="profile/playlists",e.PROFILE_EDIT="profile/edit",e.PROFILE_IMAGEPREVIEW="profile/imagepreview",e.PROFILE_RECENTLY_PLAYED_ARTISTS="profile/recently-played-artists",e.PROFILE_TOP_TRACKS="profile/top-tracks",e.PROFILE_TOP_ARTISTS="profile/top-artists",e.PROMODISCLOSURE="promodisclosure",e.PUSHOPTIN="pushoptin",e.RADIO="radio",e.RADIO_DAILY_MIX_SURVEY="radio/daily-mix-survey",e.RADIO_DAILY_MIXES="radio/daily-mixes",e.RADIO_DASHBOARD_MIXES="radio/dashboard/mixes",e.RADIO_STATION="radio/station",e.RADIO_STATION_CREATE="radio/station/create",e.RADIO_STATION_CREATE_ALBUMS="radio/station/create/albums",e.RADIO_STATION_CREATE_ARTISTS="radio/station/create/artists",e.RADIO_STATION_CREATE_PLAYLISTS="radio/station/create/playlists",e.RADIO_STATION_CREATE_SHOWS="radio/station/create/shows",e.RADIO_STATION_CREATE_TRACKS="radio/station/create/tracks",e.REMOTECONFIGURATION_DEBUG="remoteconfiguration/debug",e.REQUESTPERMISSIONS="requestpermissions",e.RESETPASSWORD="resetpassword",e.RUNNING="running",e.RUNNING_CATEGORY="running/category",e.RUNNING_SETUP="running/setup",e.RUNNING_SETUP_MANUAL="running/setup/manual",e.SAYIT="sayit",e.SCANNABLES_SCANNER="scannables/scanner",e.SCANNABLES_IMAGEPICKERCONTROLLER="scannables/imagepickercontroller",e.SEARCH="search",e.SEARCH_ALBUMS="search/albums",e.SEARCH_ARTISTS="search/artists",e.SEARCH_AUDIOBOOKS="search/audiobooks",e.SEARCH_AUDIOS="search/audios",e.SEARCH_AUTOCOMPLETE="search/autocomplete",e.SEARCH_EPISODES="search/episodes",e.SEARCH_GENRES="search/genres",e.SEARCH_PLAYLISTS="search/playlists",e.SEARCH_PODCASTS_AND_EPISODES="search/podcasts_and_episodes",e.SEARCH_PROFILES="search/profiles",e.SEARCH_SHOWS="search/shows",e.SEARCH_SONGS="search/songs",e.SEARCH_VIDEOS="search/videos",e.SEARCH_TOPICS="search/topics",e.SEARCH_RECENT="search/recent",e.SETTINGS="settings",e.SETTINGS_ABOUT="settings/about",e.SETTINGS_ACCOUNT="settings/account",e.SETTINGS_ACCOUNT_UPSELL="settings/account/upsell",e.SETTINGS_ADS="settings/ads",e.SETTINGS_CONTENT_LANGUAGES="settings/content-languages",e.SETTINGS_LANGUAGE_SETTINGS_ROOT="settings/language-settings-root",e.SETTINGS_LANGUAGES_ROOT="settings/languages/root",e.SETTINGS_LANGUAGES_MUSIC="settings/languages/music",e.SETTINGS_LANGUAGES_CONTENT="settings/languages/content",e.SETTINGS_LANGUAGES_CONTENT_SEEALL="settings/languages/content/seeAll",e.SETTINGS_EQUALIZER="settings/equalizer",e.SETTINGS_FEATURES="settings/features",e.SETTINGS_IMPORT="settings/import",e.SETTINGS_LOCAL_FILES="settings/local-files",e.SETTINGS_NEARBY="settings/nearby",e.SETTINGS_NOTIFICATIONS="settings/notifications",e.SETTINGS_NOTIFICATIONS_CHANNELS="settings/notifications/channels",e.SETTINGS_NOTIFICATIONS_CHANNEL_DETAILS="settings/notifications/channel-details",e.SETTINGS_NOTIFICATIONS_CATEGORIES="settings/notifications/categories",e.SETTINGS_NOTIFICATIONS_CATEGORY_DETAILS="settings/notifications/category-details",e.SETTINGS_PLAYBACK="settings/playback",e.SETTINGS_QUALITY="settings/quality",e.SETTINGS_VIDEOQUALITY="settings/videoquality",e.SETTINGS_SOCIAL="settings/social",e.SETTINGS_APPS="settings/apps",e.SETTINGS_STORAGE="settings/storage",e.SETTINGS_THIRD_PARTY_LIBRARIES="settings/third-party-libraries",e.SETTINGS_DEVICES="settings/devices",e.SETTINGS_SIRIINTENTS="settings/siriintents",e.SETTINGS_UPDATE_EMAIL_ADDRESS="settings/update-email-address",e.SETTINGS_VOICE_ASSISTANTS="settings/voice-assistants",e.SETTINGS_IGNORED_IN_RECOMMENDATIONS="settings/ignored-in-recommendations",e.SARABANDA="sarabanda",e.SHARE="share",e.LEGACYSHARE="legacyshare",e.INTERIMSHARE="interimshare",e.LEGACYSHARE_POSTTO="legacyshare/postto",e.LEGACYSHARE_SENDTO="legacyshare/sendto",e.SHARE_FACEBOOK="share/facebook",e.SHARE_FACEBOOKFEED="share/facebookfeed",e.SHARE_INSTAGRAM="share/instagram",e.SHARE_SNAPCHAT="share/snapchat",e.SHARE_MESSENGER="share/messenger",e.SHARE_MESSENGER_COMPOSE="share/messenger/compose",e.SHARE_MISSINGUSER="share/missinguser",e.SHARE_MENU="share-menu",e.SHARE_MENU_COMPOSER="share-menu/composer",e.SHOWCASE="showcase",e.SHOWS="shows",e.SHOWS_FORMAT_LIST="shows/format/list",e.SHOWS_FORMAT_NOWPLAYING="shows/format/nowplaying",e.SHOWS_FORMAT_ITEM="shows/format/item",e.SHOWS_FORMAT_SHARE="shows/format/share",e.SHOWS_AUDIO="shows/audio",e.SHOWS_RESOLVER="shows/resolver",e.SKIP_LIMIT_PIVOT="skip-limit-pivot",e.SKIP_LIMIT_PIVOT_TRACKS="skip-limit-pivot-tracks",e.SPONSORED_RECOMMENDATION="sponsored-recommendation",e.SUPPORT_HOME="support/home",e.SUPPORT_CATEGORY="support/category",e.SUPPORT_ARTICLE="support/article",e.SHOWS_CATEGORY="shows/category",e.SHOWS_MIXED="shows/mixed",e.SHOWS_NETWORK="shows/network",e.SHOWS_VIDEO="shows/video",e.SOCIAL_LISTENING_IPLONBOARDINGDIALOG="social-listening/iplonboardingdialog",e.SOCIAL_LISTENING_ENDSESSIONDIALOG="social-listening/endsessiondialog",e.SOCIAL_LISTENING_JOINCONFIRMATIONDIALOG="social-listening/joinconfirmationdialog",e.SOCIAL_LISTENING_NOTIFICATIONDIALOG="social-listening/notificationdialog",e.SOCIAL_LISTENING_PARTICIPANTLIST="social-listening/participantlist",e.SOCIAL_LISTENING_EDUCATION="social-listening/education",e.SOCIAL_LISTENING_TAPTOQUEUE="social-listening/taptoqueue",e.SOCIAL_LISTENING_SETTINGS="social-listening/settings",e.SOCIAL_LISTENING_IPLSESSIONSHARING="social-listening/iplsessionsharing",e.SIGNUP="signup",e.SSO="sso",e.SSO_PARTNERACCOUNTLINKING="sso/partneraccountlinking",e.PARTNERACCOUNTLINKING="partneraccountlinking",e.PARTNERSCOPESCONSENT="partnerscopesconsent",e.TASTE_ONBOARDING="taste-onboarding",e.TERMS="terms",e.TERMS_TERMSOFSERVICE="terms/termsofservice",e.TERMS_TERMSOFSERVICE_REACCEPT="terms/termsofservice/reaccept",e.TERMS_TERMSINFO="terms/termsinfo",e.TERMS_PRIVACYPOLICY="terms/privacypolicy",e.TRACK_CREDITS_CREDITS="track-credits/credits",e.TRAVEL_WITH_MUSIC="travel-with-music",e.TRACK="track",e.UNKNOWN="unknown",e.UNKNOWN_LEGACYHUB="unknown/legacyhub",e.UNKNOWN_NOTLOADED="unknown/notloaded",e.UNKNOWN_UNCOVERED="unknown/uncovered",e.UPDATE_DIALOG="update-dialog",e.UPSELL="upsell",e.VIDEO_DEBUG="video/debug",e.VOICE="voice",e.VOICE_LISTENING="voice/listening",e.VOICE_ONBOARDING="voice/onboarding",e.VOICE_ALTERNATIVESEARCHRESULTS="voice/alternativesearchresults",e.VOICETIPS="voicetips",e.VIDEO_TRIMMER="video-trimmer",e.VIDEOFEED="videofeed",e.DISCOVERYFEED="discoveryfeed",e.VTEC="vtec",e.FREE_TIER_PLAYLIST="free-tier-playlist",e.FREE_TIER_PLAYLIST_ONDEMAND="free-tier-playlist/ondemand",e.FREE_TIER_COLLECTION="free-tier-collection",e.FREE_TIER_LIKES="free-tier-likes",e.FREE_TIER_LIKES_SONGS="free-tier-likes/songs",e.FREE_TIER_PROFILE="free-tier-profile",e.FREE_TIER_OTHER_USER_PROFILE="free-tier-other-user-profile",e.FREE_TIER_ALL_SONGS_DIALOG="free-tier-all-songs-dialog",e.FREE_TIER_EDIT_PLAYLIST="free-tier-edit-playlist",e.FREE_TIER_SEARCH_PLAYLIST="free-tier-search-playlist",e.FREE_TIER_ARTIST="free-tier-artist",e.FREE_TIER_ARTIST_SUBPAGE="free-tier-artist/subpage",e.FREE_TIER_ALBUM="free-tier-album",e.FREE_TIER_TRACK="free-tier-track",e.FREE_TIER_HOME="free-tier-home",e.FREE_TIER_HOME_DRILLDOWN="free-tier-home/drilldown",e.CATEGORIES_ONBOARDING="categories/onboarding",e.CATEGORIES_ONBOARDING_LOADING="categories/onboarding/loading",e.FREETIER_TASTEONBOARDING_LIKEDARTISTS="freetier/tasteonboarding/likedartists",e.FREETIER_TASTEONBOARDING_ARTISTPICKERCONTAINER="freetier/tasteonboarding/artistpickercontainer",e.FREETIER_TASTEONBOARDING_ARTISTPICKER="freetier/tasteonboarding/artistpicker",e.FREETIER_TASTEONBOARDING_ARTISTSEARCH="freetier/tasteonboarding/artistsearch",e.FREETIER_TASTEONBOARDING_SWIPETRACKS="freetier/tasteonboarding/swipetracks",e.FREETIER_TASTEONBOARDING_UPDATETASTE="freetier/tasteonboarding/updatetaste",e.FREETIER_TASTEONBOARDING_SKIPDIALOG="freetier/tasteonboarding/skipdialog",e.FREETIER_DATASAVER="freetier/datasaver",e.FREETIER_DATASAVER_LEARNMORE="freetier/datasaver/learnmore",e.FREETIER_DATASAVER_STATUS="freetier/datasaver/status",e.FREETIER_CHARTS_CHART="freetier/charts/chart",e.INAPPMESSAGE_MODAL="inappmessage/modal",e.INAPPMESSAGE_FULLSCREEN="inappmessage/fullscreen",e.INAPPMESSAGE_WEBVIEW="inappmessage/webview",e.INAPPMESSAGE="inappmessage",e.STATIONSPROMO="stationspromo",e.QUICKPLAY="quickplay",e.LIVESTREAMING="livestreaming",e.LIVE_ENTITY="live/entity",e.SPOTIFLY="spotifly",e.CAREPACKAGE="carepackage",e.OURSONG_INVITE="oursong/invite",e.OURSONG_RECEIVER="oursong/receiver",e.OURSONG_SHARE="oursong/share",e.WRAPPED_DATASTORIES="wrapped/datastories",e.WRAPPED_HOME="wrapped/home",e.WRAPPED_ENTITY="wrapped/entity",e.MRKT_ARTIST_AUDIENCE="mrkt/artist/audience",e.MRKT_ARTIST_AUDIENCE_CITIES="mrkt/artist/audience/cities",e.MRKT_ARTIST_AUDIENCE_COUNTRIES="mrkt/artist/audience/countries",e.MRKT_ARTIST_AUDIENCE_RELATED="mrkt/artist/audience/related",e.MRKT_ARTIST_HOME="mrkt/artist/home",e.MRKT_ARTIST_MUSIC="mrkt/artist/music",e.MRKT_ARTIST_PLAYLIST="mrkt/artist/playlist",e.MRKT_ARTIST_PLAYLISTS="mrkt/artist/playlists",e.MRKT_ARTIST_PROFILE="mrkt/artist/profile",e.MRKT_ARTIST_PROFILE_ABOUT="mrkt/artist/profile/about",e.MRKT_ARTIST_PROFILE_ABOUT_EDIT="mrkt/artist/profile/about/edit",e.MRKT_ARTIST_PROFILE_ARTISTPICK_PICK="mrkt/artist/profile/artistpick/pick",e.MRKT_ARTIST_PROFILE_ARTISTPICK_EDIT="mrkt/artist/profile/artistpick/edit",e.MRKT_ARTIST_PROFILE_AVATAR="mrkt/artist/profile/avatar",e.MRKT_ARTIST_PROFILE_AVATAR_EDIT="mrkt/artist/profile/avatar/edit",e.MRKT_ARTIST_PROFILE_CATALOG_ALBUMS="mrkt/artist/profile/catalog/albums",e.MRKT_ARTIST_PROFILE_CATALOG_RELEASE="mrkt/artist/profile/catalog/release",e.MRKT_ARTIST_PROFILE_CATALOG_SINGLES="mrkt/artist/profile/catalog/singles",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY="mrkt/artist/profile/image-gallery",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD="mrkt/artist/profile/image-gallery/add",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD_PREVIEW="mrkt/artist/profile/image-gallery/add/preview",e.MRKT_ARTIST_PROFILE_IMAGES_EDIT="mrkt/artist/profile/images/edit",e.MRKT_ARTIST_PROFILE_PLAYLISTS="mrkt/artist/profile/playlists",e.MRKT_ARTIST_PROFILE_PLAYLISTS_EDIT="mrkt/artist/profile/playlists/edit",e.MRKT_ARTIST_PROFILE_FUNDRAISING="mrkt/artist/profile/fundraising",e.MRKT_ARTIST_SONG_CITIES="mrkt/artist/song/cities",e.MRKT_ARTIST_SONG_COUNTRIES="mrkt/artist/song/countries",e.MRKT_ARTIST_SONG_PLAYLIST="mrkt/artist/song/playlist",e.MRKT_ARTIST_SONG_PLAYLISTS="mrkt/artist/song/playlists",e.MRKT_ARTIST_SONG_STATS="mrkt/artist/song/stats",e.MRKT_ARTIST_SONGS="mrkt/artist/songs",e.MRKT_ARTIST_CAMPAIGNS="mrkt/artist/campaigns",e.MRKT_ARTIST_CAMPAIGNS_TEAM="mrkt/artist/campaigns/team",e.MRKT_ARTIST_CAMPAIGNS_PREVIEW="mrkt/artist/campaigns/preview",e.MRKT_ARTIST_CAMPAIGNS_BUDGET="mrkt/artist/campaigns/budget",e.MRKT_ARTIST_CAMPAIGNS_REVIEW="mrkt/artist/campaigns/review",e.MRKT_ARTIST_CAMPAIGNS_SUCCESS="mrkt/artist/campaigns/success",e.MRKT_ARTIST_CAMPAIGNS_DETAIL="mrkt/artist/campaigns/detail",e.MRKT_ARTIST_CAMPAIGN_ADMIN="mrkt/artist/campaign-admin",e.MRKT_CANVAS_EDIT="mrkt/canvas/edit",e.MRKT_CHARTS_OVERVIEW="mrkt/charts/overview",e.MRKT_CHARTS_VIEW="mrkt/charts/view",e.MRKT_CHARTS_ONBOARDING="mrkt/charts/onboarding",e.MRKT_DEBUG_HUBS_COMPONENT_INFO="mrkt/debug/hubs/component-info",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_OVERVIEW="mrkt/debug/hubs/component-reference/overview",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS="mrkt/debug/hubs/component-reference/rows",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS_DARK="mrkt/debug/hubs/component-reference/rows-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS="mrkt/debug/hubs/component-reference/buttons",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS_DARK="mrkt/debug/hubs/component-reference/buttons-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES="mrkt/debug/hubs/component-reference/tiles",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES_DARK="mrkt/debug/hubs/component-reference/tiles-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS="mrkt/debug/hubs/component-reference/section-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS_DARK="mrkt/debug/hubs/component-reference/section-headers-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS="mrkt/debug/hubs/component-reference/page-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS_DARK="mrkt/debug/hubs/component-reference/page-headers-dark",e.MRKT_LEGAL_PRIVACY_POLICY="mrkt/legal/privacy-policy",e.MRKT_LEGAL_TERMS_AND_CONDITIONS="mrkt/legal/terms-and-conditions",e.MRKT_LEGAL_THIRD_PARTY_LICENSES="mrkt/legal/third-party-licenses",e.MRKT_LOGIN="mrkt/login",e.MRKT_MOBILE_STATS_LATEST_ALBUM="mrkt/mobile-stats/latest-album",e.MRKT_MOBILE_STATS_OVERVIEW="mrkt/mobile-stats/overview",e.MRKT_REQUEST_ACCESS_MOBILE_LAUNCHER="mrkt/request-access/mobile-launcher",e.MRKT_ROSTER="mrkt/roster",e.MRKT_APP_SETTINGS="mrkt/app-settings",e.MRKT_APP_SETTINGS_SELECT_ARTIST="mrkt/app-settings/select-artist",e.MRKT_APP_SETTINGS_PUSH_NOTIFICATIONS="mrkt/app-settings/push-notifications",e.MRKT_WAITING_ROOM_HOME="mrkt/waiting-room/home",e.MRKT_WAITING_ROOM_MUSIC="mrkt/waiting-room/music",e.MRKT_WAITING_ROOM_AUDIENCE="mrkt/waiting-room/audience",e.MRKT_WAITING_ROOM_PROFILE="mrkt/waiting-room/profile",e.MRKT_WAITING_ROOM_STATS="mrkt/waiting-room/stats",e.MRKT_WELCOME="mrkt/welcome",e.MRKT_ACTIVITY="mrkt/activity",e.MRKT_ADD_TEAM="mrkt/add-team",e.MRKT_ARTIST_NMS="mrkt/artist/nms",e.MRKT_ARTIST_NMS_CREATE="mrkt/artist/nms/create",e.MRKT_ARTIST_NMS_EDIT="mrkt/artist/nms/edit",e.MRKT_ARTIST_PROFILE_CONCERTS="mrkt/artist/profile/concerts",e.MRKT_ARTIST_RELEASES="mrkt/artist/releases",e.MRKT_ARTIST_RELEASE_STATS="mrkt/artist/release/stats",e.MRKT_ARTIST_UPCOMING="mrkt/artist/upcoming",e.MRKT_CONTENT_MISMATCH="mrkt/content-mismatch",e.MRKT_DISTRIBUTOR_INVITE="mrkt/distributor-invite",e.MRKT_LABS="mrkt/labs",e.MRKT_LABS_ARTIST_HISTORY="mrkt/labs/artist-history",e.MRKT_NOT_FOUND="mrkt/not-found",e.MRKT_TEAM_ACCESS_ARTIST="mrkt/team/access/artist",e.MRKT_TEAM_ACCESS_LABEL="mrkt/team/access/label",e.MRKT_TEAM_LABEL_ARTISTS="mrkt/team/label/artists",e.MRKT_TEAM_MANAGEMENT="mrkt/team-management",e.MRKT_TEAM_MANAGEMENT_SELECT_TEAM="mrkt/team-management/select-team",e.MRKT_TEAM_MANAGEMENT_ACCEPT_INVITE="mrkt/team-management/accept-invite",e.MRKT_TEAM_MANAGEMENT_BULK_INVITE="mrkt/team-management/bulk-invite",e.MRKT_TEAM_MANAGEMENT_DETAILS="mrkt/team-management/details",e.MRKT_TEAM_MANAGEMENT_TEAM_DETAILS="mrkt/team-management/team-details",e.MRKT_TEAM_MANAGEMENT_INVITE="mrkt/team-management/invite",e.MRKT_TEAM_MANAGEMENT_BILLING="mrkt/team-management/billing",e.MRKT_TEAM_SWITCHER_DEBUG_SETTINGS="mrkt/team-switcher/debug-settings",e.MRKT_USER_SETTINGS="mrkt/user-settings",e.MRKT_SONGWRITER_PROFILE="mrkt/songwriter/profile",e.SOULSEEKER_SIMILAR_PROFILES="soulseeker-similar-profiles",e.SOULSEEKER_PROFILE_TRACKS="soulseeker-profile-tracks",e.PODCASTMIX_ENTITY="podcastmix/entity",e.PODCASTMIX_CONTROLS="podcastmix/controls",e.PODCASTMIX_CONTROLS_TOPICS="podcastmix/controls/topics",e.PODCASTMIX_CONTROLS_SHOWS="podcastmix/controls/shows",e.PODCASTMIX_CONTROLS_MUSIC="podcastmix/controls/music",e.TOPIC="topic",e.THESTAGE="thestage",e.USERPLAYLISTRESOLVER="userplaylistresolver",e.GENRE="genre",e.FORCEUPGRADE="forceupgrade",e.IMAGE_PICKER="image-picker",e.SUPERBIRD_SETUP_WELCOME="superbird/setup/welcome",e.SUPERBIRD_SETUP_SEARCHING="superbird/setup/searching",e.SUPERBIRD_SETUP_CONNECTED="superbird/setup/connected",e.SUPERBIRD_SETUP_CHECKFORUPDATES="superbird/setup/checkforupdates",e.SUPERBIRD_SETUP_CONNECTTOCAR="superbird/setup/connecttocar",e.SUPERBIRD_SETUP_CONNECTTOWIFI="superbird/setup/connecttowifi",e.SUPERBIRD_SETUP_DOWNLOADED="superbird/setup/downloaded",e.SUPERBIRD_SETUP_DOWNLOADING="superbird/setup/downloading",e.SUPERBIRD_SETUP_EVERYTHINGCONNECTED="superbird/setup/everythingconnected",e.SUPERBIRD_SETUP_READY="superbird/setup/ready",e.SUPERBIRD_SETUP_RECONNECTING="superbird/setup/reconnecting",e.SUPERBIRD_SETUP_TESTSOUND="superbird/setup/testsound",e.SUPERBIRD_SETUP_MOUNTSELECTION="superbird/setup/mountselection",e.SUPERBIRD_SETUP_MOUNTINSTRUCTIONS="superbird/setup/mountinstructions",e.IRONCHEF_ENTITY="ironchef/entity",e.IRONCHEF_PREVIEWSONGS="ironchef/previewsongs",e.IRONCHEF_CHOOSEKIND="ironchef/choosekind",e.IRONCHEF_CREATE="ironchef/create",e.IRONCHEF_EDIT="ironchef/edit",e.IRONCHEF_SEARCH="ironchef/search",e.IRONCHEF_NAMING="ironchef/naming",e.ENDLESS_FEED="endless-feed",e.HIFI_ONBOARDING="hifi/onboarding",e.HIFI_SESSION_INFO="hifi/session-info",e.HIFI_TOGGLE="hifi/toggle",e.HARMONYPLAYER_NPV="harmonyplayer/npv",e.HARMONYPLAYER_PLAYLISTS="harmonyplayer/playlists"}(y||(y={})),function(e){e.NAVIGATION_IDLE="navigation_idle",e.NAVIGATION_STARTED="navigation_started",e.NAVIGATION_COMPLETED="navigation_completed"}(_||(_={}));class E{constructor(e){var t;this.currentPageId=null,this.currentPageInstanceId=null,this.currentEntityUri=null,this.currentNavigationalRoot=null,this.navigationStatus=null,this.pendingNavigationalRoot=null,this.pendingInteractionId=null,this.pendingNavigationReason=null,this.eventSender=e.eventSender,this.pageInstanceIdProvider=e.pageInstanceIdProvider,this.disableAutoBackgroundMonitoring=null===(t=e.disableAutoBackgroundMonitoring)||void 0===t||t,this.navigationStatus=_.NAVIGATION_IDLE}resetNavStartInfo(){this.pendingInteractionId=null,this.pendingNavigationReason=null,this.pendingNavigationalRoot=null}populateNavigationReason(){return this.pendingNavigationReason?this.pendingNavigationReason:this.pendingInteractionId?`user_interaction(${this.pendingInteractionId})`:g.UNKNOWN}generatePageInstanceId(){const e=(0,v.v4)();return this.pageInstanceIdProvider.setPageInstanceId(e),e}setCurrent(e,t,n,r){this.currentPageId=e,this.currentPageInstanceId=t,this.currentEntityUri=n,this.currentNavigationalRoot=r}startNavigation(e){const{navigationalRoot:t,interactionId:n,navigationReason:r}=e;this.pendingInteractionId=null!=n?n:null,this.pendingNavigationReason=null!=r?r:null,this.pendingNavigationalRoot=null!=t?t:null,this.navigationStatus=_.NAVIGATION_STARTED}completeNavigation(e){const{pageId:t=null,entityUri:n=null}=e;if(this.currentEntityUri!==n&&this.navigationStatus===_.NAVIGATION_STARTED){const e=this.generatePageInstanceId(),r={page_instance_id:e,page_id:t,entity_uri:n,navigational_root:this.pendingNavigationalRoot,from_page_instance_id:this.currentPageInstanceId,from_page_id:this.currentPageId,from_entity_uri:this.currentEntityUri,from_navigational_root:this.currentNavigationalRoot,navigation_reason:this.populateNavigationReason()},i=(0,b.U)(r);this.eventSender.send(i),this.setCurrent(t,e,n,this.pendingNavigationalRoot)}else this.resetNavStartInfo();this.navigationStatus=_.NAVIGATION_IDLE}logClientLostFocus(){const e=this.generatePageInstanceId(),t={page_instance_id:e,page_id:null,entity_uri:null,navigational_root:null,from_page_instance_id:this.currentPageInstanceId,from_page_id:this.currentPageId,from_entity_uri:this.currentEntityUri,from_navigational_root:this.currentNavigationalRoot,navigation_reason:g.CLIENT_LOST_FOCUS},n=(0,b.U)(t);this.eventSender.send(n),this.setCurrent(this.currentPageId,e,this.currentEntityUri,this.currentNavigationalRoot)}logClientGainedFocus(){const e=this.generatePageInstanceId(),t={page_instance_id:e,page_id:this.currentPageId,entity_uri:this.currentEntityUri,navigational_root:this.currentNavigationalRoot,from_page_instance_id:this.currentPageInstanceId,from_page_id:null,from_entity_uri:null,from_navigational_root:null,navigation_reason:g.CLIENT_GAINED_FOCUS},n=(0,b.U)(t);this.eventSender.send(n),this.setCurrent(this.currentPageId,e,this.currentEntityUri,this.currentNavigationalRoot)}handleBackgroundStates(){(null===document||void 0===document?void 0:document.hidden)?this.logClientLostFocus():this.logClientGainedFocus()}addEventListeners(){this.disableAutoBackgroundMonitoring||null===document||void 0===document||document.addEventListener("visibilitychange",this.handleBackgroundStates)}removeEventListeners(){this.disableAutoBackgroundMonitoring||null===document||void 0===document||document.removeEventListener("visibilitychange",this.handleBackgroundStates)}}class S{constructor(e){var t,n,r;if(!e.eventSender)throw new Error("UBI logger must have an event sender");this.eventSender=e.eventSender,this.disableAutoBackgroundMonitoring=null===(t=e.disableAutoBackgroundMonitoring)||void 0===t||t,this.pageInstanceIdProvider=new m,this.playContextUriProvider=null!==(n=e.playContextUriProvider)&&void 0!==n?n:null,this.playbackIdProvider=null!==(r=e.playbackIdProvider)&&void 0!==r?r:null,this.pageViewLogger=new E({eventSender:e.eventSender,pageInstanceIdProvider:this.pageInstanceIdProvider,disableAutoBackgroundMonitoring:this.disableAutoBackgroundMonitoring})}registerEventListeners(){this.pageViewLogger.addEventListeners()}unregisterEventListeners(){this.pageViewLogger.removeEventListeners()}logInteraction(e){var t,n,r,i;const o=(0,v.v4)(),a=this.pageInstanceIdProvider.getPageInstanceId(),s=h.createGabitoEvent(e,o,a,null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,null!==(i=null===(r=this.playContextUriProvider)||void 0===r?void 0:r.getPlayContextUri())&&void 0!==i?i:null,!0);return this.eventSender.send(s),o}logNonAuthInteraction(e){var t,n,r,i;const o=(0,v.v4)(),a=h.createGabitoEvent(e,o,this.pageInstanceIdProvider.getPageInstanceId(),null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,null!==(i=null===(r=this.playContextUriProvider)||void 0===r?void 0:r.getPlayContextUri())&&void 0!==i?i:null,!1);return this.eventSender.send(a),o}logImpression(e){var t,n,r,i;const o=(0,v.v4)(),a=d.createGabitoEvent(e,o,this.pageInstanceIdProvider.getPageInstanceId(),null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,null!==(i=null===(r=this.playContextUriProvider)||void 0===r?void 0:r.getPlayContextUri())&&void 0!==i?i:null,!0);return this.eventSender.send(a),o}logNonAuthImpression(e){var t,n,r,i;const o=(0,v.v4)(),a=d.createGabitoEvent(e,o,this.pageInstanceIdProvider.getPageInstanceId(),null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,null!==(i=null===(r=this.playContextUriProvider)||void 0===r?void 0:r.getPlayContextUri())&&void 0!==i?i:null,!1);return this.eventSender.send(a),o}logNavigationStart(e){this.pageViewLogger.startNavigation(Object.assign(Object.assign({},e),{interactionId:e.interactionId}))}logNavigationEnd(e){this.pageViewLogger.completeNavigation(e)}logClientLostFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientLostFocus()}logClientGainedFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientGainedFocus()}getPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}}const T=function(){let e;return{getUBILogger:function(t){return function(t){return e&&e.unregisterEventListeners(),e=new S(t),e.registerEventListeners(),e}(t)}}}()},81467:(e,t)=>{"use strict";t.U=void 0,t.U=function(e){return{name:"UbiExpr2PageView",environments:["device","browser","desktop"],data:e}}},88612:(e,t)=>{"use strict";t.z=void 0,t.z=function(e){return{name:"UbiExpr5ImpressionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},5332:(e,t)=>{"use strict";t.Y=void 0,t.Y=function(e){return{name:"UbiExpr6InteractionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},53038:(e,t)=>{"use strict";t.S=void 0,t.S=function(e){return{name:"UbiProd1Impression",environments:["device","browser","desktop"],data:e}}},97338:(e,t)=>{"use strict";t.E=void 0,t.E=function(e){return{name:"UbiProd1Interaction",environments:["device","browser","desktop"],data:e}}},81620:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";var r,i;n.d(t,{h:()=>r,W:()=>i}),function(e){e.CLIENT_LOST_FOCUS="client_lost_focus",e.CLIENT_GAINED_FOCUS="client_gained_focus",e.CLIENT_STARTED="client_started",e.DEEP_LINK="deep_link",e.BACK="back",e.FORWARD="forward",e.UNKNOWN="unknown"}(r||(r={})),function(e){e.AD_BASED_ON_DEMAND="ad-based-on-demand",e.ADAPTIVEAUTHENTICATION_START="adaptiveauthentication/start",e.AGE_VERIFICATION="age-verification",e.ALBUM="album",e.ANCHORFUNNEL="anchorfunnel",e.APPRATER="apprater",e.ACTIVATION_AUTO_TRIAL="activation/auto-trial",e.ALLBOARDING_CONTENTPICKER="allboarding/contentpicker",e.ALLBOARDING_SEARCH="allboarding/search",e.ALLBOARDING_SEND="allboarding/send",e.ALLBOARDING_PLACEHOLDER="allboarding/placeholder",e.ARTIST="artist",e.ARTIST_ABOUT="artist/about",e.ARTIST_APPEARS_ON="artist/appears-on",e.ARTIST_ABOUT_WEBVIEW="artist/about/webview",e.ARTIST_ALBUMS="artist/albums",e.ARTIST_CONCERTS="artist/concerts",e.ARTIST_DISCOVERED_ON="artist/discovered-on",e.ARTIST_FEATURING="artist/featuring",e.ARTIST_GALLERY="artist/gallery",e.ARTIST_PLAYLISTS="artist/playlists",e.ARTIST_RELATED="artist/related",e.ARTIST_RELEASES="artist/releases",e.ARTIST_SAVED_TRACKS="artist/saved-tracks",e.CREATORFOLLOW_SLATE="creatorfollow/slate",e.ARTIST_PATRON="artist/patron",e.ARSENAL="arsenal",e.ASSISTED_CURATION="assisted-curation",e.ASSISTED_CURATION_NAMING="assisted-curation/naming",e.ASSISTED_CURATION_SEARCH="assisted-curation/search",e.ASSISTED_CURATION_SEARCH_SONGS="assisted-curation/search/songs",e.ASSISTED_CURATION_SEARCH_ALBUMS="assisted-curation/search/albums",e.ASSISTED_CURATION_SEARCH_ARTISTS="assisted-curation/search/artists",e.ASSISTED_CURATION_SEARCH_ALBUM_ENTITY="assisted-curation/search/album-entity",e.ASSISTED_CURATION_SEARCH_ARTIST_ENTITY="assisted-curation/search/artist-entity",e.ADS="ads",e.BLEND_ENTITY="blend/entity",e.BLEND_ENTITY_EDITNAME="blend/entity/editname",e.BLEND_ENTITY_MEMBERS="blend/entity/members",e.BLEND_ENTITY_TRACKAFFILIATION="blend/entity/trackaffiliation",e.BLEND_INVITATION="blend/invitation",e.BLEND_INVITATION_GROUPBLENDSJOIN="blend/invitation/groupblendsjoin",e.BLEND_TASTE_MATCH="blend/taste-match",e.BOOTCAMP_CHORDS="bootcamp/chords",e.BROWSE="browse",e.BROWSE_DISCOVER="browse/discover",e.BROWSE_GENRES="browse/genres",e.BROWSE_NEWRELEASES="browse/newreleases",e.BROWSE_PODCASTS="browse/podcasts",e.BROWSE_TOPPODCAST="browse/toppodcast",e.BUNDLING="bundling",e.BUNDLING_WEBVIEW="bundling/webview",e.BUNDLING_SURVEY_WEBVIEW="bundling/survey/webview",e.BUNDLING_OFFER="bundling/offer",e.BUNDLING_OFFER_WEBVIEW="bundling/offer/webview",e.BUNDLING_PLACEBO="bundling/placebo",e.BUNDLING_PLACEBO_WEBVIEW="bundling/placebo/webview",e.CALLING_CODE_PICKER="calling-code-picker",e.CALIFORNIA="california",e.CALIFORNIA_NOARGS="california/noargs",e.CAPPED_OFFLINE_DIALOG="capped-offline/dialog",e.CAPPED_ONDEMAND_DIALOG="capped-ondemand/dialog",e.CAR_MODE_ENTITY="car-mode/entity",e.CAR_MODE_HOME="car-mode/home",e.CAR_MODE_YOURLIBRARY="car-mode/yourLibrary",e.DRIVING_DRIVINGMODE="driving/drivingMode",e.CARS_MEDIASERVICE="cars/mediaservice",e.CARS_ANDROIDAUTO="cars/androidauto",e.CARS_APPPROTOCOL="cars/appprotocol",e.CARS_BMW="cars/bmw",e.CARS_LOCKSCREEN="cars/lockscreen",e.CARS_MYSPIN="cars/myspin",e.CARS_WAZE="cars/waze",e.CARTHING="carthing",e.CARTHING_SETTINGS="carthing/settings",e.CARTHING_PRESETS="carthing/presets",e.CARTHING_PRESETS_HOWTO="carthing/presets/howto",e.CARTHING_PRESETS_SAVE="carthing/presets/save",e.CELEBRITYBLEND_ENTITY="celebrityblend/entity",e.CHARTS="charts",e.CHARTS_CHART="charts/chart",e.CHARTS_REGIONAL="charts/regional",e.CHARTS_UNKNOWN="charts/unknown",e.CHARTS_VIRAL="charts/viral",e.CHARTS_WEEKLY="charts/weekly",e.CHARTS_ALBUMS="charts/albums",e.CHARTS_ALBUM="charts/album",e.CHARTS_MERCH="charts/merch",e.CHARTS_MERCHCOLLECTION="charts/merchcollection",e.CHECKOUT="checkout",e.CHECKOUT_CODEREDEMPTION="checkout/coderedemption",e.CHURNLOCK="churnlock",e.COLLECTION="collection",e.COLLECTION_ALBUMS="collection/albums",e.COLLECTION_ALBUMS_ALBUM="collection/albums/album",e.COLLECTION_ARTISTS="collection/artists",e.COLLECTION_ARTISTS_ARTIST="collection/artists/artist",e.COLLECTION_EPISODES_REMOVEALL="collection/episodes/removeall",e.COLLECTION_FILEPICKER="collection/filepicker",e.COLLECTION_FOLDER="collection/folder",e.COLLECTION_OFFLINELIBRARY="collection/offlinelibrary",e.COLLECTION_PLAYLISTS="collection/playlists",e.COLLECTION_PODCASTS="collection/podcasts",e.COLLECTION_PODCASTSONLY="collection/podcastsonly",e.COLLECTION_PODCASTS_FOLLOWING="collection/podcasts/following",e.COLLECTION_PODCASTS_EPISODES_UNPLAYED="collection/podcasts/episodes/unplayed",e.COLLECTION_PODCASTS_EPISODES_OFFLINE="collection/podcasts/episodes/offline",e.COLLECTION_PODCASTS_EPISODES_UNFINISHED="collection/podcasts/episodes/unfinished",e.COLLECTION_PODCASTS_EPISODES_LISTENLATER="collection/podcasts/episodes/listenlater",e.COLLECTION_PODCASTS_EPISODES="collection/podcasts/episodes",e.COLLECTION_RADIO="collection/radio",e.COLLECTION_RECENTLYPLAYED="collection/recentlyplayed",e.COLLECTION_SONGS="collection/songs",e.COLLECTION_VIDEO="collection/video",e.COLLECTION_YOUREPISODES="collection/yourepisodes",e.COLLECTION_YOUREPISODES_SETTINGS="collection/yourepisodes/settings",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEPLAYED="collection/yourepisodes/settings/removeplayed",e.COLLECTION_YOUREPISODES_SETTINGS_REMOVEUNPLAYED="collection/yourepisodes/settings/removeunplayed",e.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOAD="collection/yourepisodes/settings/autodownload",e.CONTENT_FEED="content-feed",e.YOURLIBRARY="yourlibrary",e.YOURLIBRARY_ALBUMS="yourlibrary/albums",e.YOURLIBRARY_ARTISTS="yourlibrary/artists",e.YOURLIBRARY_AUDIOBOOKS="yourlibrary/audiobooks",e.YOURLIBRARY_PLAYLISTS="yourlibrary/playlists",e.YOURLIBRARY_EPISODES="yourlibrary/episodes",e.YOURLIBRARY_DOWNLOADS="yourlibrary/downloads",e.YOURLIBRARY_SHOWS="yourlibrary/shows",e.YOURLIBRARY_HIDDEN_CONTENT="yourlibrary/hidden-content",e.YOURLIBRARY_SEARCH="yourlibrary/search",e.CONCERTS="concerts",e.CONCERTS_CITYSEARCH="concerts/citysearch",e.CONCERTS_CONCERT="concerts/concert",e.CONCERTS_CONCERT_WEBVIEW="concerts/concert/webview",e.CONCERTS_GROUP="concerts/group",e.CONCERTS_ARTIST="concerts/artist",e.CONNECT_CONTEXTMENU="connect/contextmenu",e.CONNECT_DEVICEPICKER="connect/devicepicker",e.CONNECT_OVERLAY_NEWDEVICE="connect/overlay/newdevice",e.CONNECT_OVERLAY_SWITCHDEVICE="connect/overlay/switchdevice",e.CONNECT_OVERLAY_VOLUME="connect/overlay/volume",e.CONNECT_TUTORIALDESKTOP="connect/tutorialdesktop",e.CONNECT_TUTORIALSPEAKER="connect/tutorialspeaker",e.CONNECT_TUTORIALTV="connect/tutorialtv",e.CONNECT_TUTORIALGAMECONSOLE="connect/tutorialgameconsole",e.CONNECT_TUTORIALCHROMECAST="connect/tutorialchromecast",e.CONNECT_TUTORIALBLUETOOTH="connect/tutorialbluetooth",e.CONNECT_EDUCATIONPAGE="connect/educationpage",e.CONTEXTDISPATCH_ERROR="contextdispatch/error",e.CONTEXTDISPATCH_OFFLINE="contextdispatch/offline",e.CONTEXTMENU="contextmenu",e.CONTEXTMENU_TRACK="contextmenu/track",e.CONTEXTMENU_ALBUM="contextmenu/album",e.CONTEXTMENU_ARTIST="contextmenu/artist",e.CONTEXTMENU_PLAYLIST="contextmenu/playlist",e.CONTEXTMENU_EPISODE="contextmenu/episode",e.CONTEXTMENU_LIVEROOM="contextmenu/liveroom",e.CONTEXTMENU_EPISODE_SLEEPTIMER="contextmenu/episode/sleeptimer",e.CONTEXTMENU_EPISODE_SPEEDCONTROL="contextmenu/episode/speedcontrol",e.CONTEXTMENU_SHOW="contextmenu/show",e.CONTEXTMENU_SHARE="contextmenu/share",e.CONTEXTMENU_POSTTO="contextmenu/postto",e.CONTEXTMENU_SENDTO="contextmenu/sendto",e.COVERIMAGE="coverimage",e.DAILYMIXHUB="dailymixhub",e.DATASAVERMODE="datasavermode",e.DATASAVERMODE_SETTINGS="datasavermode/settings",e.DEBUG="debug",e.DIALOG_COLLECTION_INSUFFICIENTSTORAGE="dialog/collection/insufficientstorage",e.DIALOG_CONNECT_NOMUSIC="dialog/connect/nomusic",e.DIALOG_DISKALMOSTFULL="dialog/diskalmostfull",e.DIALOG_FINDFRIENDS_CONFIRMALL="dialog/findfriends/confirmall",e.DIALOG_LOCALFILESIMPORT_OK="dialog/localfilesimport/ok",e.DIALOG_LOCALFILESIMPORT_DISCARD="dialog/localfilesimport/discard",e.DIALOG_LOCALFILESIMPORT_SONGS="dialog/localfilesimport/songs",e.DIALOG_CONNECTFACEBOOK="dialog/connectfacebook",e.DIALOG_CONNECTXAUTH="dialog/connectxauth",e.DIALOG_CONNECTOAUTH="dialog/connectoauth",e.DIALOG_SHOW_VIDEOUNAVAILABLE="dialog/show/videounavailable",e.DIALOG_REQUESTPERMISSIONS_SHOWRATIONALE="dialog/requestpermissions/showrationale",e.DIALOG_PROFILE_ACTIVITY_ONDEMANDUNAVAILABLE="dialog/profile/activity/ondemandunavailable",e.DIALOG_TERMS_TERMSCHANGED="dialog/terms/termschanged",e.DIALOG_TERMS_TERMSPOSTPONED="dialog/terms/termspostponed",e.DIALOG_CONNECT_PLAYBACK_ERROR="dialog/connect/playback/error",e.DIALOG_SEARCH_FEEDBACK="dialog/search/feedback",e.DIALOG_MARKETOPPORTUNITIES_SHOWCASE="dialog/marketopportunities/showcase",e.DIALOG_AGELIMITDIALOG="dialog/agelimitdialog",e.DIALOG_SHUFFLETOGGLEUPSELL_SHEET="dialog/shuffletoggleupsell/sheet",e.DISCOVERWEEKLY="discoverweekly",e.DISCOVERWEEKLY_SWIPE="discoverweekly/swipe",e.DISCOVERNOW="discovernow",e.DISCOVERNOWMUSIC="discovernowmusic",e.DOWNLOAD_DESKTOP="download/desktop",e.DRIVINGMODE="drivingmode",e.ENHANCED_SESSION="enhanced-session",e.DYNAMIC_SESSION_ENTITY="dynamic-session/entity",e.EMAIL_EDIT="email/edit",e.EMAIL_EDIT_SSO="email/edit/sso",e.EMAIL_EDIT_RESETPASSWORD="email/edit/resetpassword",e.EMAIL_VERIFY_BLOCKING="email/verify/blocking",e.ENTERPRISEPODCASTS="enterprisepodcasts",e.EPISODE="episode",e.EVENTSENDER_DEBUG="eventsender/debug",e.EVENTSENDER_ITGC_DEBUG="eventsender/itgc/debug",e.EXPERIMENTAL="experimental",e.EXPERIMENTAL_DEBUGJSONRENDERING="experimental/debugjsonrendering",e.EXPERIMENTAL_AUDIOPLAYBACK="experimental/audioplayback",e.EXPERIMENTAL_COUNTRYTOPTEN="experimental/countrytopten",e.EXPERIMENTAL_LISTENINGHISTORY="experimental/listeninghistory",e.FACEBOOK_CONNECT="facebook/connect",e.FACEBOOK_PERMISSIONS="facebook/permissions",e.FACEBOOK_WEBVIEWPERMISSIONS="facebook/webviewpermissions",e.FINDFRIENDS="findfriends",e.FIND="find",e.FOLLOWFEED="followfeed",e.FORMATLISTPLATFORM="formatlistplatform",e.FORMATLISTPLATFORM_OFFLINE="formatlistplatform/offline",e.FRIENDSACTIVITY="friendsactivity",e.FRIENDSACTIVITY_FRIENDSLIST="friendsactivity/friendslist",e.FRIENDSACTIVITY_STORY="friendsactivity/story",e.FRIENDSHOME="friendshome",e.FRIENDSHOME_ENTITY="friendshome/entity",e.FRIENDSHOME_LISTENERS="friendshome/listeners",e.FRIENDSHOME_FINDFRIENDS="friendshome/findfriends",e.FRIENDSHOME_SEARCHFRIENDS="friendshome/searchfriends",e.FULLSCREEN_STORY="fullscreen-story",e.FULLSCREEN_STORY_SHARE="fullscreen-story-share",e.FULLSCREEN_VIDEOPLAYER="fullscreen/videoplayer",e.HOLIDAYCAMPAIGN="holidaycampaign",e.INBOX="inbox",e.INVITE_HAVEINVITE="invite/haveinvite",e.GOOGLEASSISTANT="googleassistant",e.GUEST_LIBRARYTABWALL="guest/librarytabwall",e.GUEST_LOGINTABWALL="guest/logintabwall",e.HOMEMIX_ENTITY="homemix/entity",e.HOMEMIX_TASTEONBOARDING="homemix/tasteonboarding",e.HOMEMIX_GENRESPAGE="homemix/genrespage",e.HOMEMIX_GENREDETAIL="homemix/genredetail",e.HOMEMIX_ABOUT="homemix/about",e.HOMEMIX_ABOUTVIDEO="homemix/aboutvideo",e.HOMEMIX_USERTOGGLE="homemix/usertoggle",e.HOMEMIX_FACEPILEDETAIL="homemix/facepiledetail",e.HOMETHING="homething",e.HOMETHING_ACTIVATION_WELCOME="homething/activation/welcome",e.HOMETHING_ACTIVATION_SCANDEVICES="homething/activation/scandevices",e.HOMETHING_ACTIVATION_CONNECTING="homething/activation/connecting",e.HOMETHING_ACTIVATION_WIFI="homething/activation/wifi",e.HOMETHING_ACTIVATION_ERROR="homething/activation/error",e.HOMETHING_ACTIVATION_CONNECTED="homething/activation/connected",e.HOMETHING_SETTINGS="homething/settings",e.INSPIRECREATION="inspirecreation",e.ENTITYLINKING="entitylinking",e.IMAGERECS="imagerecs",e.LANGUAGEPICKER="languagepicker",e.LANGUAGEPICKER_NOSKIPDIALOG="languagepicker/noskipdialog",e.LINGO_HOME="lingo/home",e.LISTENINGHISTORY="listeninghistory",e.LISTENINGHISTORY_PLAYSFROMCONTEXT="listeninghistory/playsfromcontext",e.LOCALFILESIMPORT="localfilesimport",e.LOCALFILES="localfiles",e.LOGIN="login",e.LOGIN_WELCOME="login/welcome",e.LOGIN_SETTINGS="login/settings",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAIL="login/accountrecovery/requestemail",e.LOGIN_ACCOUNTRECOVERY_REQUESTEMAILCONFIRMATION="login/accountrecovery/requestemailconfirmation",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORD="login/accountrecovery/resetpassword",e.LOGIN_ACCOUNTRECOVERY_RESETPASSWORDCONFIRMATION="login/accountrecovery/resetpasswordconfirmation",e.LOGIN_ACCOUNTRECOVERY_COLLECTEMAIL="login/accountrecovery/collectemail",e.LOGIN_CONTINUEWITH="login/continuewith",e.LOGIN_CONTINUEWITH_EMAIL="login/continuewith/email",e.LOGIN_CONNECT="login/connect",e.LOGIN_PIN="login/pin",e.LOGIN_MULTIUSER="login/multiuser",e.PHONENUMBERSIGNUP="phonenumbersignup",e.PHONENUMBERSIGNUP_CALLINGCODEPICKER="phonenumbersignup/callingcodepicker",e.PHONENUMBERSIGNUP_PHONENUMBERENTRY="phonenumbersignup/phonenumberentry",e.PHONENUMBERSIGNUP_VALIDATEOTP="phonenumbersignup/validateotp",e.LYRICS="lyrics",e.LYRICS_FULLSCREEN="lyrics/fullscreen",e.LYRICS_SHARE="lyrics/share",e.MADE_FOR_YOU="made-for-you",e.MARKETOPPORTUNITIES_PRECACHING="marketopportunities/precaching",e.MICDROP="micdrop",e.MISSEDCONNECTIONS="missedconnections",e.MOMENTS="moments",e.MOMENTS_CATEGORY="moments/category",e.MUSIC="music",e.MUSIC_CATEGORY="music/category",e.NOTIFICATIONS="notifications",e.NOTIFICATIONS_ACTIVITY="notifications/activity",e.NOW="now",e.HOME="home",e.HOME_DRILLDOWN="home/drilldown",e.NEWRELEASESFEED="newreleasesfeed",e.NOTIFICATIONS_CENTER="notifications-center",e.NOWPLAYING="nowplaying",e.NOWPLAYINGV2="nowplayingv2",e.NOWPLAYING_GENIUSCARDS="nowplaying/geniuscards",e.NOWPLAYING_NOWPLAYINGBAR="nowplaying/nowplayingbar",e.NOWPLAYING_LIVEROOMNOWPLAYINGBAR="nowplaying/liveroomnowplayingbar",e.NOWPLAYING_NOWPLAYINGSIDEBAR="nowplaying/nowplayingsidebar",e.NOWPLAYING_QUEUE="nowplaying/queue",e.NOWPLAYING_HISTORY="nowplaying/history",e.NFT_MIX="nft-mix",e.OFFLINE="offline",e.OFFLINE_SYNC_ERROR="offline-sync/error",e.OFFLINE_MIX_ENTITY="offline-mix/entity",e.OFFLINE_USER_MIX_ENTITY="offline-user-mix/entity",e.OVERLAY_SHUFFLEPLAYLIST="overlay/shuffleplaylist",e.OVERLAY_DATASAVERPLAYLIST="overlay/datasaverplaylist",e.ONBOARDING_OVERLAY="onboarding/overlay",e.ONETAPBROWSE="onetapbrowse",e.ONLYYOU_DATASTORIES="onlyyou/datastories",e.OPEN_ACCESS_PREVIEW="open-access-preview",e.PAYMENTFAILURE_RESUBSCRIPTIONMODAL="paymentfailure/resubscriptionmodal",e.PERSONALISED_SET="personalised-set",e.PLAYLIST="playlist",e.PLAYLIST_NOTLOADED="playlist/notloaded",e.PLAYLIST_ONDEMAND="playlist/ondemand",e.PLAYLIST_DATA_SAVER="playlist/data-saver",e.PLAYLIST_ADDTOPLAYLIST="playlist/addtoplaylist",e.PLAYLIST_ADDTOPLAYLIST_ADDONTOPDIALOG="playlist/addtoplaylist/addontopdialog",e.PLAYLIST_ADDTOPLAYLIST_ADDTOBOTTOMDIALOG="playlist/addtoplaylist/addtobottomdialog",e.PLAYLIST_ADDTOPLAYLIST_DUPLICATEDIALOG="playlist/addtoplaylist/duplicatedialog",e.PLAYLIST_ADDTOPLAYLISTBOTTOMSHEET="playlist/addtoplaylistbottomsheet",e.PLAYLIST_ANNOTATE="playlist/annotate",e.PLAYLIST_CONFIRMDELETE="playlist/confirmdelete",e.PLAYLIST_CREATE="playlist/create",e.PLAYLIST_FOLDER="playlist/folder",e.PLAYLIST_FOLDER_TRACKS="playlist/folder/tracks",e.PLAYLIST_RENAME="playlist/rename",e.PLAYLIST_EDIT="playlist/edit",e.PLAYLIST_EDIT_DISCARD="playlist/edit/discard",e.PLAYLIST_EDIT_CROP="playlist/edit/crop",e.PLAYLIST_ALLSONGS="playlist/allsongs",e.PLAYLIST_PARTICIPANTS="playlist/participants",e.PLAYLIST_PERMISSIONS="playlist/permissions",e.PLAYLIST_PERMISSIONS_CLAIMDIALOG="playlist/permissions/claimdialog",e.PLAYLIST_STORY="playlist/story",e.PLAYLIST_WRAPPEDLIVE="playlist/wrappedlive",e.PLAYLIST_WEBVIEW="playlist/webview",e.PODCAST="podcast",e.PODCAST_LOADING="podcast/loading",e.PODCAST_EPISODE="podcast/episode",e.PODCAST_EPISODE_AUDIOBOOK="podcast/episode/audiobook",e.PODCAST_EPISODE_DESCRIPTION="podcast/episode/description",e.PODCAST_EPISODE_LOADING="podcast/episode/loading",e.PODCAST_EPISODE_TIMELINE="podcast/episode/timeline",e.PODCAST_EPISODE_TRANSCRIPT="podcast/episode/transcript",e.PODCAST_SHOW_AUDIOBOOK="podcast/show/audiobook",e.PODCAST_SHOW_LOADING="podcast/show/loading",e.PODCAST_SHOW_AUDIOBOOK_GATEDACCESSEDUCATION="podcast/show/audiobook/gatedaccesseducation",e.PODCAST_SHOW_INTERACTIVEAUDIOBOOK="podcast/show/interactiveaudiobook",e.PODCAST_SHOW_SEARCH="podcast/show/search",e.PODCAST_STORYLINE="podcast/storyline",e.PODCAST_SHOW_SETTINGS="podcast/show/settings",e.PODCAST_SHOW_SETTINGS_MARKASPLAYED="podcast/show/settings/markasplayed",e.PODCAST_SPONSORS="podcast/sponsors",e.PODCAST_PEPAREPISODE="podcast/peparepisode",e.PODCAST_IMPORT="podcast/import",e.PODCAST_PREVIEW="podcast/preview",e.PODCAST_CREATOR="podcast/creator",e.PODCAST_CREATOR_SHOWS="podcast/creator/shows",e.PODCASTCHARTS="podcastcharts",e.PODCASTCHARTS_CATEGORIES="podcastcharts/categories",e.PODCASTCHARTS_REGIONS="podcastcharts/regions",e.PODCASTCHARTS_CHART="podcastcharts/chart",e.PODCASTCLIPS="podcastclips",e.PODCASTINTERACTIVITY_POLL="podcastinteractivity/poll",e.PODCASTONBOARDING_TOPICPICKER="podcastonboarding/topicpicker",e.PODCASTONBOARDING_SENDTOPICS="podcastonboarding/sendtopics",e.PODCAST_NEW_EPISODE_NOTIFICATIONS_SETTINGS="podcast-new-episode-notifications/settings",e.RATINGS_AND_REVIEWS_RATINGS="ratings-and-reviews/ratings",e.PREMIUM_ACCOUNT_MANAGEMENT="premium-account-management",e.PREMIUM_ACCOUNT_MANAGEMENT_ALL_PLANS="premium-account-management/all-plans",e.PREMIUM_DESTINATION="premium-destination",e.PREMIUM_DESTINATION_PREMIUM_PLANS="premium-destination/premium-plans",e.PREMIUMHUB="premiumhub",e.PREMIUM_MINI_DOWNLOADED_ENTITY="premium-mini/downloaded-entity",e.PREMIUM_MESSAGING="premium-messaging",e.PREMIUM_SIGNUP="premium-signup",e.PRERELEASE="prerelease",e.PROFILE="profile",e.PROFILE_ACTIVITY="profile/activity",e.PROFILE_ACTIVITY_REPLAYS="profile/activity/replays",e.PROFILE_ARTISTS="profile/artists",e.PROFILE_FOLLOWERS="profile/followers",e.PROFILE_FOLLOWING="profile/following",e.PROFILE_PLAYLISTS="profile/playlists",e.PROFILE_EPISODES="profile/episodes",e.PROFILE_EDIT="profile/edit",e.PROFILE_IMAGEPREVIEW="profile/imagepreview",e.PROFILE_RECENTLY_PLAYED_ARTISTS="profile/recently-played-artists",e.PROFILE_TOP_TRACKS="profile/top-tracks",e.PROFILE_TOP_ARTISTS="profile/top-artists",e.PROMODISCLOSURE="promodisclosure",e.PUSHOPTIN="pushoptin",e.RADIO="radio",e.RADIO_DAILY_MIX_SURVEY="radio/daily-mix-survey",e.RADIO_DAILY_MIXES="radio/daily-mixes",e.RADIO_DASHBOARD_MIXES="radio/dashboard/mixes",e.RADIO_STATION="radio/station",e.RADIO_STATION_CREATE="radio/station/create",e.RADIO_STATION_CREATE_ALBUMS="radio/station/create/albums",e.RADIO_STATION_CREATE_ARTISTS="radio/station/create/artists",e.RADIO_STATION_CREATE_PLAYLISTS="radio/station/create/playlists",e.RADIO_STATION_CREATE_SHOWS="radio/station/create/shows",e.RADIO_STATION_CREATE_TRACKS="radio/station/create/tracks",e.REMOTECONFIGURATION_DEBUG="remoteconfiguration/debug",e.REQUESTPERMISSIONS="requestpermissions",e.RESETPASSWORD="resetpassword",e.RUNNING="running",e.RUNNING_CATEGORY="running/category",e.RUNNING_SETUP="running/setup",e.RUNNING_SETUP_MANUAL="running/setup/manual",e.SAYIT="sayit",e.SCANNABLES_SCANNER="scannables/scanner",e.SCANNABLES_IMAGEPICKERCONTROLLER="scannables/imagepickercontroller",e.SEARCH="search",e.SEARCH_ALBUMS="search/albums",e.SEARCH_ARTISTS="search/artists",e.SEARCH_AUDIOBOOKS="search/audiobooks",e.SEARCH_AUDIOS="search/audios",e.SEARCH_AUTOCOMPLETE="search/autocomplete",e.SEARCH_EPISODES="search/episodes",e.SEARCH_GENRES="search/genres",e.SEARCH_PLAYLISTS="search/playlists",e.SEARCH_PODCASTS_AND_EPISODES="search/podcasts_and_episodes",e.SEARCH_PROFILES="search/profiles",e.SEARCH_SHOWS="search/shows",e.SEARCH_SONGS="search/songs",e.SEARCH_VIDEOS="search/videos",e.SEARCH_RECENT="search/recent",e.SETTINGS="settings",e.SETTINGS_ABOUT="settings/about",e.SETTINGS_ACCOUNT="settings/account",e.SETTINGS_ACCOUNT_UPSELL="settings/account/upsell",e.SETTINGS_ADS="settings/ads",e.SETTINGS_CONTENT_LANGUAGES="settings/content-languages",e.SETTINGS_LANGUAGE_SETTINGS_ROOT="settings/language-settings-root",e.SETTINGS_LANGUAGES_ROOT="settings/languages/root",e.SETTINGS_LANGUAGES_MUSIC="settings/languages/music",e.SETTINGS_LANGUAGES_CONTENT="settings/languages/content",e.SETTINGS_LANGUAGES_CONTENT_SEEALL="settings/languages/content/seeAll",e.SETTINGS_EQUALIZER="settings/equalizer",e.SETTINGS_FEATURES="settings/features",e.SETTINGS_IMPORT="settings/import",e.SETTINGS_LOCAL_FILES="settings/local-files",e.SETTINGS_NEARBY="settings/nearby",e.SETTINGS_NOTIFICATIONS="settings/notifications",e.SETTINGS_NOTIFICATIONS_CHANNELS="settings/notifications/channels",e.SETTINGS_NOTIFICATIONS_CHANNEL_DETAILS="settings/notifications/channel-details",e.SETTINGS_NOTIFICATIONS_CATEGORIES="settings/notifications/categories",e.SETTINGS_NOTIFICATIONS_CATEGORY_DETAILS="settings/notifications/category-details",e.SETTINGS_PLAYBACK="settings/playback",e.SETTINGS_QUALITY="settings/quality",e.SETTINGS_VIDEOQUALITY="settings/videoquality",e.SETTINGS_SOCIAL="settings/social",e.SETTINGS_APPS="settings/apps",e.SETTINGS_STORAGE="settings/storage",e.SETTINGS_THIRD_PARTY_LIBRARIES="settings/third-party-libraries",e.SETTINGS_DEVICES="settings/devices",e.SETTINGS_SIRIINTENTS="settings/siriintents",e.SETTINGS_UPDATE_EMAIL_ADDRESS="settings/update-email-address",e.SETTINGS_VOICE_ASSISTANTS="settings/voice-assistants",e.SETTINGS_IGNORED_IN_RECOMMENDATIONS="settings/ignored-in-recommendations",e.SARABANDA="sarabanda",e.SHARE="share",e.LEGACYSHARE="legacyshare",e.INTERIMSHARE="interimshare",e.LEGACYSHARE_POSTTO="legacyshare/postto",e.LEGACYSHARE_SENDTO="legacyshare/sendto",e.SHARE_FACEBOOK="share/facebook",e.SHARE_FACEBOOKFEED="share/facebookfeed",e.SHARE_INSTAGRAM="share/instagram",e.SHARE_SNAPCHAT="share/snapchat",e.SHARE_MESSENGER="share/messenger",e.SHARE_MESSENGER_COMPOSE="share/messenger/compose",e.SHARE_MISSINGUSER="share/missinguser",e.SHARE_MENU="share-menu",e.SHARE_MENU_COMPOSER="share-menu/composer",e.SHOWCASE="showcase",e.SHOWS="shows",e.SHOWS_FORMAT_LIST="shows/format/list",e.SHOWS_FORMAT_NOWPLAYING="shows/format/nowplaying",e.SHOWS_FORMAT_ITEM="shows/format/item",e.SHOWS_FORMAT_SHARE="shows/format/share",e.SHOWS_AUDIO="shows/audio",e.SHOWS_RESOLVER="shows/resolver",e.SHUFFLE_TOGGLE_UPSELL="shuffle-toggle-upsell",e.SKIP_LIMIT_PIVOT="skip-limit-pivot",e.SKIP_LIMIT_PIVOT_TRACKS="skip-limit-pivot-tracks",e.SPONSORED_RECOMMENDATION="sponsored-recommendation",e.SUPPORT_HOME="support/home",e.SUPPORT_CATEGORY="support/category",e.SUPPORT_ARTICLE="support/article",e.SUPPORT_SITE_HOME="support-site/home",e.SUPPORT_SITE_CATEGORY="support-site/category",e.SUPPORT_SITE_ARTICLE="support-site/article",e.SHOWS_CATEGORY="shows/category",e.SHOWS_MIXED="shows/mixed",e.SHOWS_NETWORK="shows/network",e.SHOWS_VIDEO="shows/video",e.SOCIAL_LISTENING_IPLONBOARDINGDIALOG="social-listening/iplonboardingdialog",e.SOCIAL_LISTENING_ENDSESSIONDIALOG="social-listening/endsessiondialog",e.SOCIAL_LISTENING_JOINCONFIRMATIONDIALOG="social-listening/joinconfirmationdialog",e.SOCIAL_LISTENING_NOTIFICATIONDIALOG="social-listening/notificationdialog",e.SOCIAL_LISTENING_PARTICIPANTLIST="social-listening/participantlist",e.SOCIAL_LISTENING_EDUCATION="social-listening/education",e.SOCIAL_LISTENING_TAPTOQUEUE="social-listening/taptoqueue",e.SOCIAL_LISTENING_SETTINGS="social-listening/settings",e.SOCIAL_LISTENING_IPLSESSIONSHARING="social-listening/iplsessionsharing",e.SIGNUP="signup",e.SSO="sso",e.SSO_PARTNERACCOUNTLINKING="sso/partneraccountlinking",e.PARTNERACCOUNTLINKING="partneraccountlinking",e.PARTNERSCOPESCONSENT="partnerscopesconsent",e.TASTE_ONBOARDING="taste-onboarding",e.TERMS="terms",e.TERMS_TERMSOFSERVICE="terms/termsofservice",e.TERMS_TERMSOFSERVICE_REACCEPT="terms/termsofservice/reaccept",e.TERMS_TERMSINFO="terms/termsinfo",e.TERMS_PRIVACYPOLICY="terms/privacypolicy",e.TRACK_CREDITS_CREDITS="track-credits/credits",e.TRAVEL_WITH_MUSIC="travel-with-music",e.TRACK="track",e.UNKNOWN="unknown",e.UNKNOWN_LEGACYHUB="unknown/legacyhub",e.UNKNOWN_NOTLOADED="unknown/notloaded",e.UNKNOWN_UNCOVERED="unknown/uncovered",e.UPDATE_DIALOG="update-dialog",e.UPSELL="upsell",e.VIDEO_DEBUG="video/debug",e.VOICE="voice",e.VOICE_LISTENING="voice/listening",e.VOICE_ONBOARDING="voice/onboarding",e.VOICE_ALTERNATIVESEARCHRESULTS="voice/alternativesearchresults",e.VOICETIPS="voicetips",e.VIDEO_TRIMMER="video-trimmer",e.VIDEOFEED="videofeed",e.DISCOVERYFEED="discoveryfeed",e.VTEC="vtec",e.FREE_TIER_PLAYLIST="free-tier-playlist",e.FREE_TIER_PLAYLIST_ONDEMAND="free-tier-playlist/ondemand",e.FREE_TIER_COLLECTION="free-tier-collection",e.FREE_TIER_LIKES="free-tier-likes",e.FREE_TIER_LIKES_SONGS="free-tier-likes/songs",e.FREE_TIER_PROFILE="free-tier-profile",e.FREE_TIER_OTHER_USER_PROFILE="free-tier-other-user-profile",e.FREE_TIER_ALL_SONGS_DIALOG="free-tier-all-songs-dialog",e.FREE_TIER_EDIT_PLAYLIST="free-tier-edit-playlist",e.FREE_TIER_SEARCH_PLAYLIST="free-tier-search-playlist",e.FREE_TIER_ARTIST="free-tier-artist",e.FREE_TIER_ARTIST_SUBPAGE="free-tier-artist/subpage",e.FREE_TIER_ALBUM="free-tier-album",e.FREE_TIER_TRACK="free-tier-track",e.FREE_TIER_HOME="free-tier-home",e.FREE_TIER_HOME_DRILLDOWN="free-tier-home/drilldown",e.CATEGORIES_ONBOARDING="categories/onboarding",e.CATEGORIES_ONBOARDING_LOADING="categories/onboarding/loading",e.FREETIER_TASTEONBOARDING_LIKEDARTISTS="freetier/tasteonboarding/likedartists",e.FREETIER_TASTEONBOARDING_ARTISTPICKERCONTAINER="freetier/tasteonboarding/artistpickercontainer",e.FREETIER_TASTEONBOARDING_ARTISTPICKER="freetier/tasteonboarding/artistpicker",e.FREETIER_TASTEONBOARDING_ARTISTSEARCH="freetier/tasteonboarding/artistsearch",e.FREETIER_TASTEONBOARDING_SWIPETRACKS="freetier/tasteonboarding/swipetracks",e.FREETIER_TASTEONBOARDING_UPDATETASTE="freetier/tasteonboarding/updatetaste",e.FREETIER_TASTEONBOARDING_SKIPDIALOG="freetier/tasteonboarding/skipdialog",e.FREETIER_DATASAVER="freetier/datasaver",e.FREETIER_DATASAVER_LEARNMORE="freetier/datasaver/learnmore",e.FREETIER_DATASAVER_STATUS="freetier/datasaver/status",e.FREETIER_CHARTS_CHART="freetier/charts/chart",e.INAPPMESSAGE_MODAL="inappmessage/modal",e.INAPPMESSAGE_FULLSCREEN="inappmessage/fullscreen",e.INAPPMESSAGE_WEBVIEW="inappmessage/webview",e.INAPPMESSAGE="inappmessage",e.STATIONSPROMO="stationspromo",e.QUICKPLAY="quickplay",e.LIVESTREAMING="livestreaming",e.LIVE_ENTITY="live/entity",e.SPOTIFLY="spotifly",e.CAREPACKAGE="carepackage",e.OURSONG_INVITE="oursong/invite",e.OURSONG_RECEIVER="oursong/receiver",e.OURSONG_SHARE="oursong/share",e.WRAPPED_DATASTORIES="wrapped/datastories",e.WRAPPED_HOME="wrapped/home",e.WRAPPED_ENTITY="wrapped/entity",e.MRKT_ARTIST_AUDIENCE="mrkt/artist/audience",e.MRKT_ARTIST_AUDIENCE_CITIES="mrkt/artist/audience/cities",e.MRKT_ARTIST_AUDIENCE_COUNTRIES="mrkt/artist/audience/countries",e.MRKT_ARTIST_AUDIENCE_RELATED="mrkt/artist/audience/related",e.MRKT_ARTIST_HOME="mrkt/artist/home",e.MRKT_ARTIST_MUSIC="mrkt/artist/music",e.MRKT_ARTIST_PLAYLIST="mrkt/artist/playlist",e.MRKT_ARTIST_PLAYLISTS="mrkt/artist/playlists",e.MRKT_ARTIST_PROFILE="mrkt/artist/profile",e.MRKT_ARTIST_PROFILE_ABOUT="mrkt/artist/profile/about",e.MRKT_ARTIST_PROFILE_ABOUT_EDIT="mrkt/artist/profile/about/edit",e.MRKT_ARTIST_PROFILE_ARTISTPICK_PICK="mrkt/artist/profile/artistpick/pick",e.MRKT_ARTIST_PROFILE_ARTISTPICK_EDIT="mrkt/artist/profile/artistpick/edit",e.MRKT_ARTIST_PROFILE_AVATAR="mrkt/artist/profile/avatar",e.MRKT_ARTIST_PROFILE_AVATAR_EDIT="mrkt/artist/profile/avatar/edit",e.MRKT_ARTIST_PROFILE_CATALOG_ALBUMS="mrkt/artist/profile/catalog/albums",e.MRKT_ARTIST_PROFILE_CATALOG_RELEASE="mrkt/artist/profile/catalog/release",e.MRKT_ARTIST_PROFILE_CATALOG_SINGLES="mrkt/artist/profile/catalog/singles",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY="mrkt/artist/profile/image-gallery",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD="mrkt/artist/profile/image-gallery/add",e.MRKT_ARTIST_PROFILE_IMAGE_GALLERY_ADD_PREVIEW="mrkt/artist/profile/image-gallery/add/preview",e.MRKT_ARTIST_PROFILE_IMAGES_EDIT="mrkt/artist/profile/images/edit",e.MRKT_ARTIST_PROFILE_PLAYLISTS="mrkt/artist/profile/playlists",e.MRKT_ARTIST_PROFILE_PLAYLISTS_EDIT="mrkt/artist/profile/playlists/edit",e.MRKT_ARTIST_PROFILE_FUNDRAISING="mrkt/artist/profile/fundraising",e.MRKT_ARTIST_SONG_CITIES="mrkt/artist/song/cities",e.MRKT_ARTIST_SONG_COUNTRIES="mrkt/artist/song/countries",e.MRKT_ARTIST_SONG_PLAYLIST="mrkt/artist/song/playlist",e.MRKT_ARTIST_SONG_PLAYLISTS="mrkt/artist/song/playlists",e.MRKT_ARTIST_SONG_STATS="mrkt/artist/song/stats",e.MRKT_ARTIST_SONGS="mrkt/artist/songs",e.MRKT_ARTIST_CAMPAIGNS="mrkt/artist/campaigns",e.MRKT_ARTIST_CAMPAIGNS_TEAM="mrkt/artist/campaigns/team",e.MRKT_ARTIST_CAMPAIGNS_PREVIEW="mrkt/artist/campaigns/preview",e.MRKT_ARTIST_CAMPAIGNS_BUDGET="mrkt/artist/campaigns/budget",e.MRKT_ARTIST_CAMPAIGNS_REVIEW="mrkt/artist/campaigns/review",e.MRKT_ARTIST_CAMPAIGNS_SUCCESS="mrkt/artist/campaigns/success",e.MRKT_ARTIST_CAMPAIGNS_DETAIL="mrkt/artist/campaigns/detail",e.MRKT_ARTIST_CAMPAIGN_ADMIN="mrkt/artist/campaign-admin",e.MRKT_CANVAS_EDIT="mrkt/canvas/edit",e.MRKT_CHARTS_OVERVIEW="mrkt/charts/overview",e.MRKT_CHARTS_VIEW="mrkt/charts/view",e.MRKT_CHARTS_ONBOARDING="mrkt/charts/onboarding",e.MRKT_DEBUG_HUBS_COMPONENT_INFO="mrkt/debug/hubs/component-info",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_OVERVIEW="mrkt/debug/hubs/component-reference/overview",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS="mrkt/debug/hubs/component-reference/rows",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_ROWS_DARK="mrkt/debug/hubs/component-reference/rows-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS="mrkt/debug/hubs/component-reference/buttons",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_BUTTONS_DARK="mrkt/debug/hubs/component-reference/buttons-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES="mrkt/debug/hubs/component-reference/tiles",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_TILES_DARK="mrkt/debug/hubs/component-reference/tiles-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS="mrkt/debug/hubs/component-reference/section-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_SECTION_HEADERS_DARK="mrkt/debug/hubs/component-reference/section-headers-dark",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS="mrkt/debug/hubs/component-reference/page-headers",e.MRKT_DEBUG_HUBS_COMPONENT_REFERENCE_PAGE_HEADERS_DARK="mrkt/debug/hubs/component-reference/page-headers-dark",e.MRKT_HELP="mrkt/help",e.MRKT_LEGAL_PRIVACY_POLICY="mrkt/legal/privacy-policy",e.MRKT_LEGAL_TERMS_AND_CONDITIONS="mrkt/legal/terms-and-conditions",e.MRKT_LEGAL_THIRD_PARTY_LICENSES="mrkt/legal/third-party-licenses",e.MRKT_LOGIN="mrkt/login",e.MRKT_MOBILE_STATS_LATEST_ALBUM="mrkt/mobile-stats/latest-album",e.MRKT_MOBILE_STATS_OVERVIEW="mrkt/mobile-stats/overview",e.MRKT_REQUEST_ACCESS_MOBILE_LAUNCHER="mrkt/request-access/mobile-launcher",e.MRKT_ROSTER="mrkt/roster",e.MRKT_APP_SETTINGS="mrkt/app-settings",e.MRKT_APP_SETTINGS_SELECT_ARTIST="mrkt/app-settings/select-artist",e.MRKT_APP_SETTINGS_PUSH_NOTIFICATIONS="mrkt/app-settings/push-notifications",e.MRKT_WAITING_ROOM_HOME="mrkt/waiting-room/home",e.MRKT_WAITING_ROOM_MUSIC="mrkt/waiting-room/music",e.MRKT_WAITING_ROOM_AUDIENCE="mrkt/waiting-room/audience",e.MRKT_WAITING_ROOM_PROFILE="mrkt/waiting-room/profile",e.MRKT_WAITING_ROOM_STATS="mrkt/waiting-room/stats",e.MRKT_WELCOME="mrkt/welcome",e.MRKT_ACTIVITY="mrkt/activity",e.MRKT_ADD_TEAM="mrkt/add-team",e.MRKT_ARTIST_NMS="mrkt/artist/nms",e.MRKT_ARTIST_NMS_CREATE="mrkt/artist/nms/create",e.MRKT_ARTIST_NMS_EDIT="mrkt/artist/nms/edit",e.MRKT_ARTIST_PROFILE_CONCERTS="mrkt/artist/profile/concerts",e.MRKT_ARTIST_RELEASES="mrkt/artist/releases",e.MRKT_ARTIST_RELEASE_STATS="mrkt/artist/release/stats",e.MRKT_ARTIST_UPCOMING="mrkt/artist/upcoming",e.MRKT_CONTENT_MISMATCH="mrkt/content-mismatch",e.MRKT_DISTRIBUTOR_INVITE="mrkt/distributor-invite",e.MRKT_LABS="mrkt/labs",e.MRKT_LABS_ARTIST_HISTORY="mrkt/labs/artist-history",e.MRKT_NOT_FOUND="mrkt/not-found",e.MRKT_TEAM_ACCESS_ARTIST="mrkt/team/access/artist",e.MRKT_TEAM_ACCESS_LABEL="mrkt/team/access/label",e.MRKT_TEAM_LABEL_ARTISTS="mrkt/team/label/artists",e.MRKT_TEAM_MANAGEMENT="mrkt/team-management",e.MRKT_TEAM_MANAGEMENT_SELECT_TEAM="mrkt/team-management/select-team",e.MRKT_TEAM_MANAGEMENT_ACCEPT_INVITE="mrkt/team-management/accept-invite",e.MRKT_TEAM_MANAGEMENT_BULK_INVITE="mrkt/team-management/bulk-invite",e.MRKT_TEAM_MANAGEMENT_DETAILS="mrkt/team-management/details",e.MRKT_TEAM_MANAGEMENT_TEAM_DETAILS="mrkt/team-management/team-details",e.MRKT_TEAM_MANAGEMENT_INVITE="mrkt/team-management/invite",e.MRKT_TEAM_MANAGEMENT_BILLING="mrkt/team-management/billing",e.MRKT_TEAM_SWITCHER_DEBUG_SETTINGS="mrkt/team-switcher/debug-settings",e.MRKT_USER_SETTINGS="mrkt/user-settings",e.MRKT_SONGWRITER_PROFILE="mrkt/songwriter/profile",e.MRKT_FAN_ENGAGEMENT="mrkt/fan-engagement",e.MRKT_LIVE_ARTIST_ROOM_CREATE="mrkt/live-artist-room/create",e.MRKT_LIVE_ARTIST_ROOM_EDIT="mrkt/live-artist-room/edit",e.SOULSEEKER_SIMILAR_PROFILES="soulseeker-similar-profiles",e.SOULSEEKER_PROFILE_TRACKS="soulseeker-profile-tracks",e.PODCASTMIX_ENTITY="podcastmix/entity",e.PODCASTMIX_CONTROLS="podcastmix/controls",e.PODCASTMIX_CONTROLS_TOPICS="podcastmix/controls/topics",e.PODCASTMIX_CONTROLS_SHOWS="podcastmix/controls/shows",e.PODCASTMIX_CONTROLS_MUSIC="podcastmix/controls/music",e.TOPIC="topic",e.THESTAGE="thestage",e.USERPLAYLISTRESOLVER="userplaylistresolver",e.GENRE="genre",e.FORCEUPGRADE="forceupgrade",e.IMAGE_PICKER="image-picker",e.SUPERBIRD_SETUP_WELCOME="superbird/setup/welcome",e.SUPERBIRD_SETUP_BLUETOOTHCONNECT="superbird/setup/bluetoothconnect",e.SUPERBIRD_SETUP_BLUETOOTHSETTINGS="superbird/setup/bluetoothsettings",e.SUPERBIRD_SETUP_SEARCHING="superbird/setup/searching",e.SUPERBIRD_SETUP_CONNECTED="superbird/setup/connected",e.SUPERBIRD_SETUP_CHECKFORUPDATES="superbird/setup/checkforupdates",e.SUPERBIRD_SETUP_CONNECTTOCAR="superbird/setup/connecttocar",e.SUPERBIRD_SETUP_CONNECTTOWIFI="superbird/setup/connecttowifi",e.SUPERBIRD_SETUP_DOWNLOADED="superbird/setup/downloaded",e.SUPERBIRD_SETUP_DOWNLOADING="superbird/setup/downloading",e.SUPERBIRD_SETUP_EVERYTHINGCONNECTED="superbird/setup/everythingconnected",e.SUPERBIRD_SETUP_READY="superbird/setup/ready",e.SUPERBIRD_SETUP_RECONNECTING="superbird/setup/reconnecting",e.SUPERBIRD_SETUP_TESTSOUND="superbird/setup/testsound",e.SUPERBIRD_SETUP_MOUNTSELECTION="superbird/setup/mountselection",e.SUPERBIRD_SETUP_MOUNTINSTRUCTIONS="superbird/setup/mountinstructions",e.SUPERBIRD_SETUP_CONTROLOTHERMEDIA="superbird/setup/controlothermedia",e.SUPERBIRD_SETUP_CONTROLOTHERMEDIADECLINED="superbird/setup/controlothermediadeclined",e.IRONCHEF_ENTITY="ironchef/entity",e.IRONCHEF_PREVIEWSONGS="ironchef/previewsongs",e.IRONCHEF_CHOOSEKIND="ironchef/choosekind",e.IRONCHEF_CREATE="ironchef/create",e.IRONCHEF_EDIT="ironchef/edit",e.IRONCHEF_SEARCH="ironchef/search",e.IRONCHEF_NAMING="ironchef/naming",e.ENDLESS_FEED="endless-feed",e.HIFI_ONBOARDING="hifi/onboarding",e.HIFI_SESSION_INFO="hifi/session-info",e.HIFI_TOGGLE="hifi/toggle",e.HARMONYPLAYER_NPV="harmonyplayer/npv",e.HARMONYPLAYER_PLAYLISTS="harmonyplayer/playlists"}(i||(i={}))},73698:(e,t,n)=>{"use strict";n.d(t,{F_:()=>x,NL:()=>F});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;tu({},g),toJSON:e=>({}),fromPartial:e=>u({},g)},_={creatorName:"",isLoading:!1,canView:!1},b={fromJSON(e){const t=u({},_);return void 0!==e.creatorName&&null!==e.creatorName?t.creatorName=String(e.creatorName):t.creatorName="",void 0!==e.isLoading&&null!==e.isLoading?t.isLoading=Boolean(e.isLoading):t.isLoading=!1,void 0!==e.canView&&null!==e.canView?t.canView=Boolean(e.canView):t.canView=!1,t},toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.canView&&(t.canView=e.canView),t},fromPartial(e){const t=u({},_);return void 0!==e.creatorName&&null!==e.creatorName?t.creatorName=e.creatorName:t.creatorName="",void 0!==e.isLoading&&null!==e.isLoading?t.isLoading=e.isLoading:t.isLoading=!1,void 0!==e.canView&&null!==e.canView?t.canView=e.canView:t.canView=!1,t}},E={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0},S={fromJSON(e){const t=u({},E);return void 0!==e.creatorName&&null!==e.creatorName?t.creatorName=String(e.creatorName):t.creatorName="",void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=String(e.publishDate):t.publishDate="0",void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=Boolean(e.isMusicAndTalk):t.isMusicAndTalk=!1,void 0!==e.numberOfDownloadedEpisodes&&null!==e.numberOfDownloadedEpisodes?t.numberOfDownloadedEpisodes=Number(e.numberOfDownloadedEpisodes):t.numberOfDownloadedEpisodes=0,t},toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes),t},fromPartial(e){const t=u({},E);return void 0!==e.creatorName&&null!==e.creatorName?t.creatorName=e.creatorName:t.creatorName="",void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=e.publishDate:t.publishDate="0",void 0!==e.isMusicAndTalk&&null!==e.isMusicAndTalk?t.isMusicAndTalk=e.isMusicAndTalk:t.isMusicAndTalk=!1,void 0!==e.numberOfDownloadedEpisodes&&null!==e.numberOfDownloadedEpisodes?t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes:t.numberOfDownloadedEpisodes=0,t}},T={numberOfPlaylists:0,numberOfFolders:0},O={fromJSON(e){const t=u({},T);return void 0!==e.numberOfPlaylists&&null!==e.numberOfPlaylists?t.numberOfPlaylists=Number(e.numberOfPlaylists):t.numberOfPlaylists=0,void 0!==e.numberOfFolders&&null!==e.numberOfFolders?t.numberOfFolders=Number(e.numberOfFolders):t.numberOfFolders=0,t},toJSON(e){const t={};return void 0!==e.numberOfPlaylists&&(t.numberOfPlaylists=e.numberOfPlaylists),void 0!==e.numberOfFolders&&(t.numberOfFolders=e.numberOfFolders),t},fromPartial(e){const t=u({},T);return void 0!==e.numberOfPlaylists&&null!==e.numberOfPlaylists?t.numberOfPlaylists=e.numberOfPlaylists:t.numberOfPlaylists=0,void 0!==e.numberOfFolders&&null!==e.numberOfFolders?t.numberOfFolders=e.numberOfFolders:t.numberOfFolders=0,t}},A={numberOfSongs:0},C={fromJSON(e){const t=u({},A);return void 0!==e.numberOfSongs&&null!==e.numberOfSongs?t.numberOfSongs=Number(e.numberOfSongs):t.numberOfSongs=0,t},toJSON(e){const t={};return void 0!==e.numberOfSongs&&(t.numberOfSongs=e.numberOfSongs),t},fromPartial(e){const t=u({},A);return void 0!==e.numberOfSongs&&null!==e.numberOfSongs?t.numberOfSongs=e.numberOfSongs:t.numberOfSongs=0,t}},P={numberOfDownloadedEpisodes:0},I={fromJSON(e){const t=u({},P);return void 0!==e.numberOfDownloadedEpisodes&&null!==e.numberOfDownloadedEpisodes?t.numberOfDownloadedEpisodes=Number(e.numberOfDownloadedEpisodes):t.numberOfDownloadedEpisodes=0,t},toJSON(e){const t={};return void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes),t},fromPartial(e){const t=u({},P);return void 0!==e.numberOfDownloadedEpisodes&&null!==e.numberOfDownloadedEpisodes?t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes:t.numberOfDownloadedEpisodes=0,t}},R={publishDate:"0"},N={fromJSON(e){const t=u({},R);return void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=String(e.publishDate):t.publishDate="0",t},toJSON(e){const t={};return void 0!==e.publishDate&&(t.publishDate=e.publishDate),t},fromPartial(e){const t=u({},R);return void 0!==e.publishDate&&null!==e.publishDate?t.publishDate=e.publishDate:t.publishDate="0",t}},k={numberOfFiles:0},L={fromJSON(e){const t=u({},k);return void 0!==e.numberOfFiles&&null!==e.numberOfFiles?t.numberOfFiles=Number(e.numberOfFiles):t.numberOfFiles=0,t},toJSON(e){const t={};return void 0!==e.numberOfFiles&&(t.numberOfFiles=e.numberOfFiles),t},fromPartial(e){const t=u({},k);return void 0!==e.numberOfFiles&&null!==e.numberOfFiles?t.numberOfFiles=e.numberOfFiles:t.numberOfFiles=0,t}},w={authorName:""},D={fromJSON(e){const t=u({},w);return void 0!==e.authorName&&null!==e.authorName?t.authorName=String(e.authorName):t.authorName="",t},toJSON(e){const t={};return void 0!==e.authorName&&(t.authorName=e.authorName),t},fromPartial(e){const t=u({},w);return void 0!==e.authorName&&null!==e.authorName?t.authorName=e.authorName:t.authorName="",t}},M={},x={fromJSON(e){const t=u({},M);return void 0!==e.entityInfo&&null!==e.entityInfo?t.entityInfo=h.fromJSON(e.entityInfo):t.entityInfo=void 0,void 0!==e.album&&null!==e.album?t.album=m.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=y.fromJSON(e.artist):t.artist=void 0,void 0!==e.playlist&&null!==e.playlist?t.playlist=b.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.show&&null!==e.show?t.show=S.fromJSON(e.show):t.show=void 0,void 0!==e.folder&&null!==e.folder?t.folder=O.fromJSON(e.folder):t.folder=void 0,void 0!==e.likedSongs&&null!==e.likedSongs?t.likedSongs=C.fromJSON(e.likedSongs):t.likedSongs=void 0,void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.yourEpisodes=I.fromJSON(e.yourEpisodes):t.yourEpisodes=void 0,void 0!==e.newEpisodes&&null!==e.newEpisodes?t.newEpisodes=N.fromJSON(e.newEpisodes):t.newEpisodes=void 0,void 0!==e.localFiles&&null!==e.localFiles?t.localFiles=L.fromJSON(e.localFiles):t.localFiles=void 0,void 0!==e.book&&null!==e.book?t.book=D.fromJSON(e.book):t.book=void 0,t},toJSON(e){const t={};return void 0!==e.entityInfo&&(t.entityInfo=e.entityInfo?h.toJSON(e.entityInfo):void 0),void 0!==e.album&&(t.album=e.album?m.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?y.toJSON(e.artist):void 0),void 0!==e.playlist&&(t.playlist=e.playlist?b.toJSON(e.playlist):void 0),void 0!==e.show&&(t.show=e.show?S.toJSON(e.show):void 0),void 0!==e.folder&&(t.folder=e.folder?O.toJSON(e.folder):void 0),void 0!==e.likedSongs&&(t.likedSongs=e.likedSongs?C.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(t.yourEpisodes=e.yourEpisodes?I.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(t.newEpisodes=e.newEpisodes?N.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(t.localFiles=e.localFiles?L.toJSON(e.localFiles):void 0),void 0!==e.book&&(t.book=e.book?D.toJSON(e.book):void 0),t},fromPartial(e){const t=u({},M);return void 0!==e.entityInfo&&null!==e.entityInfo?t.entityInfo=h.fromPartial(e.entityInfo):t.entityInfo=void 0,void 0!==e.album&&null!==e.album?t.album=m.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=y.fromPartial(e.artist):t.artist=void 0,void 0!==e.playlist&&null!==e.playlist?t.playlist=b.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.show&&null!==e.show?t.show=S.fromPartial(e.show):t.show=void 0,void 0!==e.folder&&null!==e.folder?t.folder=O.fromPartial(e.folder):t.folder=void 0,void 0!==e.likedSongs&&null!==e.likedSongs?t.likedSongs=C.fromPartial(e.likedSongs):t.likedSongs=void 0,void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.yourEpisodes=I.fromPartial(e.yourEpisodes):t.yourEpisodes=void 0,void 0!==e.newEpisodes&&null!==e.newEpisodes?t.newEpisodes=N.fromPartial(e.newEpisodes):t.newEpisodes=void 0,void 0!==e.localFiles&&null!==e.localFiles?t.localFiles=L.fromPartial(e.localFiles):t.localFiles=void 0,void 0!==e.book&&null!==e.book?t.book=D.fromPartial(e.book):t.book=void 0,t}},U={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1},F={fromJSON(e){const t=u({},U);return void 0!==e.albums&&null!==e.albums?t.albums=Boolean(e.albums):t.albums=!1,void 0!==e.artists&&null!==e.artists?t.artists=Boolean(e.artists):t.artists=!1,void 0!==e.playlists&&null!==e.playlists?t.playlists=Boolean(e.playlists):t.playlists=!1,void 0!==e.shows&&null!==e.shows?t.shows=Boolean(e.shows):t.shows=!1,void 0!==e.books&&null!==e.books?t.books=Boolean(e.books):t.books=!1,t},toJSON(e){const t={};return void 0!==e.albums&&(t.albums=e.albums),void 0!==e.artists&&(t.artists=e.artists),void 0!==e.playlists&&(t.playlists=e.playlists),void 0!==e.shows&&(t.shows=e.shows),void 0!==e.books&&(t.books=e.books),t},fromPartial(e){const t=u({},U);return void 0!==e.albums&&null!==e.albums?t.albums=e.albums:t.albums=!1,void 0!==e.artists&&null!==e.artists?t.artists=e.artists:t.artists=!1,void 0!==e.playlists&&null!==e.playlists?t.playlists=e.playlists:t.playlists=!1,void 0!==e.shows&&null!==e.shows?t.shows=e.shows:t.shows=!1,void 0!==e.books&&null!==e.books?t.books=e.books:t.books=!1,t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},49802:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>v});var r=n(59713),i=n.n(r),o=n(43720),a=n.n(o),s=n(62100),l=n.n(s),c=n(73698);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;te?c.F_.toJSON(e):void 0)):t.entity=[],void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t=d({},h);if(t.entity=[],void 0!==e.header&&null!==e.header?t.header=f.fromPartial(e.header):t.header=void 0,void 0!==e.entity&&null!==e.entity)for(const n of e.entity)t.entity.push(c.F_.fromPartial(n));return void 0!==e.error&&null!==e.error?t.error=e.error:t.error="",t}};l().util.Long!==a()&&(l().util.Long=a(),l().configure())},51206:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(n),a=Math.max(i,o),s=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),l=s.default.find(a,(function(e){return t.isOS(e)}));if(l){var c=this.satisfies(n[l]);if(void 0!==c)return c}var u=s.default.find(a,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(n[u]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(o,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:o.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:o.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:o.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},48764:(e,t,n)=>{"use strict";const r=n(22191),i=n(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|v(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||$(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function v(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return r?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),$(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=v,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function I(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let r=t;rn)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,n,r,i){j(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,i){j(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function x(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){w(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){w(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);w(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function j(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,i,o)}function H(e,t){if("number"!=typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function $(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},22191:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;sl?l:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},94184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:(e,t,n)=>{var r=n(8874),i=n(86851),o=Object.hasOwnProperty,a={};for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}i&&(a[3]=parseInt(i,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);i&&(a[3]=parseInt(i+i,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},6767:(e,t,n)=>{"use strict";var r=n(19818),i=n(80978),o=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[o.call(i[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=i[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=i[this.model].channels;var p=o.call(e,0,u);this.color=f(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var v=h.sort().join("");if(!(v in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[v];var m=i[this.model].labels,g=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===a.indexOf(e)){var t=i[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new c(p(i[this.model][e].raw(this.color)).concat(n),e)},c[e]=function(n){return"number"==typeof n&&(n=f(o.call(arguments),t)),new c(n,e)}}})),e.exports=c},12956:(e,t,n)=>{var r=n(58900),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}function u(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}a.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?t=0:r===s?t=(i-o)/l:i===s?t=2+(o-r)/l:o===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?i=o=0:(o=u/c,t=d(a),n=d(s),r=d(l),a===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,r))),100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,o=1/0;for(var a in r)if(r.hasOwnProperty(a)){var s=u(e,r[a]);s.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-u)-c),t){default:o=n,a=i,s=c;break;case 1:o=i,a=n,s=c;break;case 2:o=c,a=n,s=i;break;case 3:o=c,a=i,s=n;break;case 4:o=i,a=c,s=n;break;case 5:o=n,a=c,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},80978:(e,t,n)=>{var r=n(12956),i=n(87774),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];o[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},87774:(e,t,n)=>{var r=n(12956);function i(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19662:(e,t,n)=>{var r=n(17854),i=n(60614),o=n(66330),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},19670:(e,t,n)=>{var r=n(17854),i=n(70111),o=r.String,a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},41318:(e,t,n)=>{var r=n(45656),i=n(51400),o=n(26244),a=function(e){return function(t,n,a){var s,l=r(t),c=o(l),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},50206:(e,t,n)=>{var r=n(1702);e.exports=r([].slice)},84326:(e,t,n)=>{var r=n(1702),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},99920:(e,t,n)=>{var r=n(92597),i=n(53887),o=n(31236),a=n(3070);e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=o.f,u=0;u{var r=n(19781),i=n(3070),o=n(79114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},79114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},19781:(e,t,n)=>{var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},80317:(e,t,n)=>{var r=n(17854),i=n(70111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},6833:(e,t,n)=>{var r=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:(e,t,n)=>{var r=n(84326),i=n(17854);e.exports="process"==r(i.process)},88113:(e,t,n)=>{var r=n(35005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,i,o=n(17854),a=n(88113),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},80748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:(e,t,n)=>{var r=n(17854),i=n(31236).f,o=n(68880),a=n(31320),s=n(83505),l=n(99920),c=n(54705);e.exports=function(e,t){var n,u,d,p,f,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(f=i(n,u))&&f.value:n[u],!c(v?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(n,u,p,e)}}},47293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},22104:(e,t,n)=>{var r=n(34374),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},49974:(e,t,n)=>{var r=n(1702),i=n(19662),o=n(34374),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},34374:(e,t,n)=>{var r=n(47293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},46916:(e,t,n)=>{var r=n(34374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},76530:(e,t,n)=>{var r=n(19781),i=n(92597),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},1702:(e,t,n)=>{var r=n(34374),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},35005:(e,t,n)=>{var r=n(17854),i=n(60614),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},58173:(e,t,n)=>{var r=n(19662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},17854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},92597:(e,t,n)=>{var r=n(1702),i=n(47908),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},3501:e=>{e.exports={}},60490:(e,t,n)=>{var r=n(35005);e.exports=r("document","documentElement")},64664:(e,t,n)=>{var r=n(19781),i=n(47293),o=n(80317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},68361:(e,t,n)=>{var r=n(17854),i=n(1702),o=n(47293),a=n(84326),s=r.Object,l=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):s(e)}:s},42788:(e,t,n)=>{var r=n(1702),i=n(60614),o=n(5465),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},29909:(e,t,n)=>{var r,i,o,a=n(68536),s=n(17854),l=n(1702),c=n(70111),u=n(68880),d=n(92597),p=n(5465),f=n(6200),h=n(3501),v="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||p.state){var y=p.state||(p.state=new g),_=l(y.get),b=l(y.has),E=l(y.set);r=function(e,t){if(b(y,e))throw new m(v);return t.facade=e,E(y,e,t),t},i=function(e){return _(y,e)||{}},o=function(e){return b(y,e)}}else{var S=f("state");h[S]=!0,r=function(e,t){if(d(e,S))throw new m(v);return t.facade=e,u(e,S,t),t},i=function(e){return d(e,S)?e[S]:{}},o=function(e){return d(e,S)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},60614:e=>{e.exports=function(e){return"function"==typeof e}},54705:(e,t,n)=>{var r=n(47293),i=n(60614),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},70111:(e,t,n)=>{var r=n(60614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},31913:e=>{e.exports=!1},52190:(e,t,n)=>{var r=n(17854),i=n(35005),o=n(60614),a=n(47976),s=n(43307),l=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&a(t.prototype,l(e))}},26244:(e,t,n)=>{var r=n(17466);e.exports=function(e){return r(e.length)}},30133:(e,t,n)=>{var r=n(7392),i=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},68536:(e,t,n)=>{var r=n(17854),i=n(60614),o=n(42788),a=r.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},3070:(e,t,n)=>{var r=n(17854),i=n(19781),o=n(64664),a=n(3353),s=n(19670),l=n(34948),c=r.TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";t.f=i?a?function(e,t,n){if(s(e),t=l(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n.writable){var r=d(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:f in n?n.configurable:r.configurable,enumerable:p in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=l(t),s(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:(e,t,n)=>{var r=n(19781),i=n(46916),o=n(55296),a=n(79114),s=n(45656),l=n(34948),c=n(92597),u=n(64664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},8006:(e,t,n)=>{var r=n(16324),i=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},25181:(e,t)=>{t.f=Object.getOwnPropertySymbols},47976:(e,t,n)=>{var r=n(1702);e.exports=r({}.isPrototypeOf)},16324:(e,t,n)=>{var r=n(1702),i=n(92597),o=n(45656),a=n(41318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},55296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},92140:(e,t,n)=>{var r=n(17854),i=n(46916),o=n(60614),a=n(70111),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&o(n=e.toString)&&!a(r=i(n,e)))return r;if(o(n=e.valueOf)&&!a(r=i(n,e)))return r;if("string"!==t&&o(n=e.toString)&&!a(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},53887:(e,t,n)=>{var r=n(35005),i=n(1702),o=n(8006),a=n(25181),s=n(19670),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},31320:(e,t,n)=>{var r=n(17854),i=n(60614),o=n(92597),a=n(68880),s=n(83505),l=n(42788),c=n(29909),u=n(76530).CONFIGURABLE,d=c.get,p=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var c,d=!!l&&!!l.unsafe,h=!!l&&!!l.enumerable,v=!!l&&!!l.noTargetGet,m=l&&void 0!==l.name?l.name:t;i(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||u&&n.name!==m)&&a(n,"name",m),(c=p(n)).source||(c.source=f.join("string"==typeof m?m:""))),e!==r?(d?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=n:a(e,t,n)):h?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&d(this).source||l(this)}))},84488:(e,t,n)=>{var r=n(17854).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},83505:(e,t,n)=>{var r=n(17854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6200:(e,t,n)=>{var r=n(72309),i=n(69711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:(e,t,n)=>{var r=n(17854),i=n(83505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},72309:(e,t,n)=>{var r=n(31913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},20261:(e,t,n)=>{var r,i,o,a,s=n(17854),l=n(22104),c=n(49974),u=n(60614),d=n(92597),p=n(47293),f=n(60490),h=n(50206),v=n(80317),m=n(48053),g=n(6833),y=n(35268),_=s.setImmediate,b=s.clearImmediate,E=s.process,S=s.Dispatch,T=s.Function,O=s.MessageChannel,A=s.String,C=0,P={},I="onreadystatechange";try{r=s.location}catch(e){}var R=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},N=function(e){return function(){R(e)}},k=function(e){R(e.data)},L=function(e){s.postMessage(A(e),r.protocol+"//"+r.host)};_&&b||(_=function(e){m(arguments.length,1);var t=u(e)?e:T(e),n=h(arguments,1);return P[++C]=function(){l(t,void 0,n)},i(C),C},b=function(e){delete P[e]},y?i=function(e){E.nextTick(N(e))}:S&&S.now?i=function(e){S.now(N(e))}:O&&!g?(a=(o=new O).port2,o.port1.onmessage=k,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(L)?(i=L,s.addEventListener("message",k,!1)):i=I in v("script")?function(e){f.appendChild(v("script")).onreadystatechange=function(){f.removeChild(this),R(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:_,clear:b}},51400:(e,t,n)=>{var r=n(19303),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},45656:(e,t,n)=>{var r=n(68361),i=n(84488);e.exports=function(e){return r(i(e))}},19303:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},17466:(e,t,n)=>{var r=n(19303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},47908:(e,t,n)=>{var r=n(17854),i=n(84488),o=r.Object;e.exports=function(e){return o(i(e))}},57593:(e,t,n)=>{var r=n(17854),i=n(46916),o=n(70111),a=n(52190),s=n(58173),l=n(92140),c=n(5112),u=r.TypeError,d=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,r=s(e,d);if(r){if(void 0===t&&(t="default"),n=i(r,e,t),!o(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},34948:(e,t,n)=>{var r=n(57593),i=n(52190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},66330:(e,t,n)=>{var r=n(17854).String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},69711:(e,t,n)=>{var r=n(1702),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},43307:(e,t,n)=>{var r=n(30133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(e,t,n)=>{var r=n(19781),i=n(47293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48053:(e,t,n)=>{var r=n(17854).TypeError;e.exports=function(e,t){if(e{var r=n(17854),i=n(72309),o=n(92597),a=n(69711),s=n(30133),l=n(43307),c=i("wks"),u=r.Symbol,d=u&&u.for,p=l?u:u&&u.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):p(t)}return c[e]}},84633:(e,t,n)=>{var r=n(82109),i=n(17854),o=n(20261);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:o.set,clearImmediate:o.clear})},54098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];E.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,n){return new Promise((function(r,o){var a=new _(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new E(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}T.polyfill=!0,e.fetch||(e.fetch=T,e.Headers=p,e.Request=_,e.Response=E),t.Headers=p,t.Request=_,t.Response=E,t.fetch=T,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},21986:(e,t,n)=>{t.UINT32=n(50734),t.UINT64=n(66924)},50734:function(e,t){var n;!function(r){i(Math.pow(36,5)),i(Math.pow(16,7)),i(Math.pow(10,9)),i(Math.pow(2,30)),i(36),i(16),i(10),i(2);function i(e,t){return this instanceof i?(this._low=0,this._high=0,this.remainder=null,void 0===t?a.call(this,e):"string"==typeof e?s.call(this,e,t):void o.call(this,e,t)):new i(e,t)}function o(e,t){return this._low=0|e,this._high=0|t,this}function a(e){return this._low=65535&e,this._high=e>>>16,this}function s(e,t){var n=parseInt(e,t||10);return this._low=65535&n,this._high=n>>>16,this}i.prototype.fromBits=o,i.prototype.fromNumber=a,i.prototype.fromString=s,i.prototype.toNumber=function(){return 65536*this._high+this._low},i.prototype.toString=function(e){return this.toNumber().toString(e||10)},i.prototype.add=function(e){var t=this._low+e._low,n=t>>>16;return n+=this._high+e._high,this._low=65535&t,this._high=65535&n,this},i.prototype.subtract=function(e){return this.add(e.clone().negate())},i.prototype.multiply=function(e){var t,n,r=this._high,i=this._low,o=e._high,a=e._low;return t=(n=i*a)>>>16,t+=r*a,t&=65535,t+=i*o,this._low=65535&n,this._high=65535&t,this},i.prototype.div=function(e){if(0==e._low&&0==e._high)throw Error("division by zero");if(0==e._high&&1==e._low)return this.remainder=new i(0),this;if(e.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(e))return this.remainder=new i(0),this._low=1,this._high=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=16?this._high|=1<>>16)&65535,this},i.prototype.equals=i.prototype.eq=function(e){return this._low==e._low&&this._high==e._high},i.prototype.greaterThan=i.prototype.gt=function(e){return this._high>e._high||!(this._highe._low},i.prototype.lessThan=i.prototype.lt=function(e){return this._highe._high)&&this._low16?(this._low=this._high>>e-16,this._high=0):16==e?(this._low=this._high,this._high=0):(this._low=this._low>>e|this._high<<16-e&65535,this._high>>=e),this},i.prototype.shiftLeft=i.prototype.shiftl=function(e,t){return e>16?(this._high=this._low<>16-e,this._low=this._low<>>32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.rotateRight=i.prototype.rotr=function(e){var t=this._high<<16|this._low;return t=t>>>e|t<<32-e,this._low=65535&t,this._high=t>>>16,this},i.prototype.clone=function(){return new i(this._low,this._high)},void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},66924:function(e,t){var n;!function(r){var i={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},o={16:a(16),10:a(10),2:a(2)};function a(e,t,n,r){return this instanceof a?(this.remainder=null,"string"==typeof e?c.call(this,e,t):void 0===t?l.call(this,e):void s.apply(this,arguments)):new a(e,t,n,r)}function s(e,t,n,r){return void 0===n?(this._a00=65535&e,this._a16=e>>>16,this._a32=65535&t,this._a48=t>>>16,this):(this._a00=0|e,this._a16=0|t,this._a32=0|n,this._a48=0|r,this)}function l(e){return this._a00=65535&e,this._a16=e>>>16,this._a32=0,this._a48=0,this}function c(e,t){t=t||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=i[t]||new a(Math.pow(t,5)),r=0,o=e.length;r=0&&(n.div(t),r[i]=n.remainder.toNumber().toString(e),n.gt(t));i--);return r[i-1]=n.toNumber().toString(e),r.join("")},a.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16,r=(n+=this._a16+e._a16)>>>16,i=(r+=this._a32+e._a32)>>>16;return i+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&n,this._a32=65535&r,this._a48=65535&i,this},a.prototype.subtract=function(e){return this.add(e.clone().negate())},a.prototype.multiply=function(e){var t=this._a00,n=this._a16,r=this._a32,i=this._a48,o=e._a00,a=e._a16,s=e._a32,l=t*o,c=l>>>16,u=(c+=t*a)>>>16;c&=65535,u+=(c+=n*o)>>>16;var d=(u+=t*s)>>>16;return u&=65535,d+=(u+=n*a)>>>16,u&=65535,d+=(u+=r*o)>>>16,d+=t*e._a48,d&=65535,d+=n*s,d&=65535,d+=r*a,d&=65535,d+=i*o,this._a00=65535&l,this._a16=65535&c,this._a32=65535&u,this._a48=65535&d,this},a.prototype.div=function(e){if(0==e._a16&&0==e._a32&&0==e._a48){if(0==e._a00)throw Error("division by zero");if(1==e._a00)return this.remainder=new a(0),this}if(e.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(e))return this.remainder=new a(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var t=e.clone(),n=-1;!this.lt(t);)t.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)t.shiftRight(1),this.remainder.lt(t)||(this.remainder.subtract(t),n>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&e,e=(65535&~this._a32)+(e>>>16),this._a32=65535&e,this._a48=~this._a48+(e>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(e){return this._a48==e._a48&&this._a00==e._a00&&this._a32==e._a32&&this._a16==e._a16},a.prototype.greaterThan=a.prototype.gt=function(e){return this._a48>e._a48||!(this._a48e._a32||!(this._a32e._a16||!(this._a16e._a00))},a.prototype.lessThan=a.prototype.lt=function(e){return this._a48e._a48)&&(this._a32e._a32)&&(this._a16e._a16)&&this._a00=48?(this._a00=this._a48>>e-48,this._a16=0,this._a32=0,this._a48=0):e>=32?(e-=32,this._a00=65535&(this._a32>>e|this._a48<<16-e),this._a16=this._a48>>e&65535,this._a32=0,this._a48=0):e>=16?(e-=16,this._a00=65535&(this._a16>>e|this._a32<<16-e),this._a16=65535&(this._a32>>e|this._a48<<16-e),this._a32=this._a48>>e&65535,this._a48=0):(this._a00=65535&(this._a00>>e|this._a16<<16-e),this._a16=65535&(this._a16>>e|this._a32<<16-e),this._a32=65535&(this._a32>>e|this._a48<<16-e),this._a48=this._a48>>e&65535),this},a.prototype.shiftLeft=a.prototype.shiftl=function(e,t){return(e%=64)>=48?(this._a48=this._a00<=32?(e-=32,this._a48=this._a16<>16-e,this._a32=this._a00<=16?(e-=16,this._a48=this._a32<>16-e,this._a32=65535&(this._a16<>16-e),this._a16=this._a00<>16-e,this._a32=65535&(this._a32<>16-e),this._a16=65535&(this._a16<>16-e),this._a00=this._a00<=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n<>>32-e,o=r<>>32-e;return this._a00=65535&o,this._a16=o>>>16,this._a32=65535&i,this._a48=i>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(e){if(0==(e%=64))return this;if(e>=32){var t=this._a00;if(this._a00=this._a32,this._a32=t,t=this._a48,this._a48=this._a16,this._a16=t,32==e)return this;e-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,i=n>>>e|r<<32-e,o=r>>>e|n<<32-e;return this._a00=65535&o,this._a16=o>>>16,this._a32=65535&i,this._a48=i>>>16,this},a.prototype.clone=function(){return new a(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},11227:(e,t,n)=>{var r=n(34155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e={NODE_ENV:"production",DEBUG_EVENT_SENDER:!1,DEBUG_SEMANTIC_METRICS:void 0,PRODUCT_NAME:"desktop"}.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(82447)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},82447:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t{"use strict";function t(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");return e}function n(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var r=Object.getOwnPropertyDescriptor(e,t);if(!r)throw new TypeError("must call property on owner object");if(!r.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function r(e){}return r._file=void 0,r._ignored=!0,r._namespace=e,r._traced=!1,r._warned=Object.create(null),r.function=t,r.property=n,r}},99960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},58875:(e,t,n)=>{var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},64063:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},34139:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(n,r){if(r=r||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof r)throw new t("defaults must be an object");if(void 0!==r.retries&&!e(r.retries))throw new t("retries must be a positive integer");if(void 0!==r.retryDelay&&!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");var i={retries:3,retryDelay:1e3,retryOn:[]};return r=Object.assign(i,r),function(i,o){var a=r.retries,s=r.retryDelay,l=r.retryOn;if(o&&void 0!==o.retries){if(!e(o.retries))throw new t("retries must be a positive integer");a=o.retries}if(o&&void 0!==o.retryDelay){if(!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=o.retryDelay}if(o&&o.retryOn){if(!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");l=o.retryOn}return new Promise((function(e,t){var r=function(r){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,o).then((function(n){if(Array.isArray(l)&&-1===l.indexOf(n.status))e(n);else if("function"==typeof l)try{return Promise.resolve(l(r,null,n)).then((function(t){t?c(r,null,n):e(n)})).catch(t)}catch(e){t(e)}else r{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n element.");return c.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(c.Component),h="undefined"==typeof Element?Function:Element;f.propTypes={active:d.bool,paused:d.bool,focusTrapOptions:d.shape({document:d.object,onActivate:d.func,onPostActivate:d.func,checkCanFocusTrap:d.func,onDeactivate:d.func,onPostDeactivate:d.func,checkCanReturnFocus:d.func,initialFocus:d.oneOfType([d.instanceOf(h),d.string,d.func,d.bool]),fallbackFocus:d.oneOfType([d.instanceOf(h),d.string,d.func]),escapeDeactivates:d.oneOfType([d.bool,d.func]),clickOutsideDeactivates:d.oneOfType([d.bool,d.func]),returnFocusOnDeactivate:d.bool,setReturnFocus:d.oneOfType([d.instanceOf(h),d.string,d.func]),allowOutsideClick:d.oneOfType([d.bool,d.func]),preventScroll:d.bool}),containerElements:d.arrayOf(d.instanceOf(h)),children:d.oneOfType([d.element,d.instanceOf(h)])},f.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:p},e.exports=f},44291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>O});var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=r.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&o.call(e,i)&&r.unshift(e),r=r.filter(n)},s=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},l=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},c=function(e){return"INPUT"===e.tagName},u=function(e){return function(e){return c(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(o.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var r=e.getBoundingClientRect(),i=r.width,a=r.height;return 0===i&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(c(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n0){var t=y[y.length-1];t!==e&&t.pause()}var n=y.indexOf(e);-1===n||y.splice(n,1),y.push(e)},deactivateTrap:function(e){var t=y.indexOf(e);-1!==t&&y.splice(t,1),y.length>0&&y[y.length-1].unpause()}}),b=function(e){return setTimeout(e,0)},E=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},S=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?n-1:0),a=1;a0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1],nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));return t?o.slice(n+1).find((function(e){return f(e)})):o.slice(0,n).reverse().find((function(e){return f(e)}))}}})).filter((function(e){return!!e})),o.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},A=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(y()))},C=function(e){var t=h("setReturnFocus",e);return t||!1!==t&&e},P=function(e){var t=T(e);u(t)||(S(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!v(t)}):S(i.allowOutsideClick,e)||e.preventDefault())},I=function(e){var t=T(e),n=u(t);n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),A(o.mostRecentlyFocusedNode||y()))},R=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==S(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=T(e);O();var n=null;if(o.tabbableGroups.length>0){var r=E(o.tabbableGroups,(function(e){return e.container.contains(t)})),i=r>=0?o.tabbableGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var a=E(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(a<0&&(i.container===t||v(t)&&!f(t)&&!i.nextTabbableNode(t,!1))&&(a=r),a>=0){var s=0===a?o.tabbableGroups.length-1:a-1;n=o.tabbableGroups[s].lastTabbableNode}}else{var l=E(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&(i.container===t||v(t)&&!f(t)&&!i.nextTabbableNode(t))&&(l=r),l>=0){var c=l===o.tabbableGroups.length-1?0:l+1;n=o.tabbableGroups[c].firstTabbableNode}}}else n=h("fallbackFocus");n&&(e.preventDefault(),A(n))}(e)},N=function(e){if(!S(i.clickOutsideDeactivates,e)){var t=T(e);u(t)||S(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},k=function(){if(o.active)return _.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?b((function(){A(y())})):A(y()),r.addEventListener("focusin",I,!0),r.addEventListener("mousedown",P,{capture:!0,passive:!1}),r.addEventListener("touchstart",P,{capture:!0,passive:!1}),r.addEventListener("click",N,{capture:!0,passive:!1}),r.addEventListener("keydown",R,{capture:!0,passive:!1}),n},L=function(){if(o.active)return r.removeEventListener("focusin",I,!0),r.removeEventListener("mousedown",P,!0),r.removeEventListener("touchstart",P,!0),r.removeEventListener("click",N,!0),r.removeEventListener("keydown",R,!0),n};return(n={activate:function(e){if(o.active)return this;var t=c(e,"onActivate"),n=c(e,"onPostActivate"),i=c(e,"checkCanFocusTrap");i||O(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){i&&O(),k(),n&&n()};return i?(i(o.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,L(),o.active=!1,o.paused=!1,_.deactivateTrap(n);var t=c(e,"onDeactivate"),r=c(e,"onPostDeactivate"),i=c(e,"checkCanReturnFocus");t&&t();var a=c(e,"returnFocus","returnFocusOnDeactivate"),s=function(){b((function(){a&&A(C(o.nodeFocusedBeforeActivation)),r&&r()}))};return a&&i?(i(C(o.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,L()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,O(),k(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&O(),this}}).updateContainerElements(e),n}},29646:(e,t,n)=>{const r=n(6791),i=n(26080).a,o=n(41924).a,a=n(27055),s=n(19575).Base64,l=new a(s.toUint8Array(i)),c=new a(s.toUint8Array(o));function u(e,t){return 0!=(e&t)}const d=0,p=1,f=2;function h(e,t){const n=e.length;let i=0,o=d;for(let a=t;a+165535?2:1,n.push(t)}for(let i=0;i{e.exports={Other:0,CR:1,LF:2,Control:4,Extend:8,ZWJ:16,Regional_Indicator:32,Prepend:64,SpacingMark:128,L:256,V:512,T:1024,LV:2048,LVT:4096,Extended_Pictographic:8192}},46733:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;tO,q_:()=>N,ob:()=>m,PP:()=>L,Ep:()=>v,Hp:()=>g,cP:()=>h});const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,p=a.length;p>=0;p--){var f=a[p];"."===f?o(a,p):".."===f?(o(a,p),d++):d&&(o(a,p),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(2177);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function f(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}function v(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"==typeof e?(o=h(e)).state=t:(void 0===(o=r({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=m(e,t,p(),b.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,d({action:r,location:i}))}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},canGo:function(e){var t=b.index+e;return t>=0&&t{"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),v=l(n),m=0;m{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case v:case l:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===g)},t.typeOf=E},21296:(e,t,n)=>{"use strict";e.exports=n(96103)},60885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},38276:(e,t,n)=>{var r="html",i="head",o="body",a=/<([a-zA-Z]+[0-9]?)/,s=//i,l=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var d=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""),d.parseFromString(e,"text/html")}}if(document.implementation){var p=n(1507).isIE,f=document.implementation.createHTMLDocument(p()?"html-dom-parser":void 0);c=function(e,t){return t?(f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var h,v=document.createElement("template");v.content&&(h=function(e){return v.innerHTML=e,v.content.childNodes}),e.exports=function(e){var t,n,d,p,f=e.match(a);switch(f&&f[1]&&(t=f[1].toLowerCase()),t){case r:return n=u(e),s.test(e)||(d=n.getElementsByTagName(i)[0])&&d.parentNode.removeChild(d),l.test(e)||(d=n.getElementsByTagName(o)[0])&&d.parentNode.removeChild(d),n.getElementsByTagName(r);case i:case o:return p=c(e).getElementsByTagName(t),l.test(e)&&s.test(e)?p[0].parentNode.childNodes:p;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},14152:(e,t,n)=>{var r=n(38276),i=n(1507).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},1507:(e,t,n)=>{for(var r,i=n(60885),o=n(21642),a=i.CASE_SENSITIVE_TAG_NAMES,s=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,d={},p=0,f=a.length;p0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var v=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function m(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function _(e){return e.type===a.ElementType.Comment}function b(e){return e.type===a.ElementType.Directive}function E(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(_(e))n=new d(e.data);else if(m(e)){var r=t?T(e.children):[],i=new v(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?T(e.children):[];var s=new f(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(E(e)){r=t?T(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function T(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n{var r=n(53670),i=n(50484),o=n(14152);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function s(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:r(o(e,(t=t||{}).htmlparser2||a),t)}s.domToReact=r,s.htmlToDOM=o,s.attributesToProps=i,s.Element=n(5079).Element,e.exports=s,e.exports.default=s},50484:(e,t,n)=>{var r=n(25726),i=n(74606);function o(e){return r.possibleStandardNames[e]}e.exports=function(e){var t,n,a,s,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(a=e[t],r.isCustomAttribute(t))c[t]=a;else if(s=o(n=t.toLowerCase()))switch(l=r.getPropertyInfo(s),"checked"!==s&&"value"!==s||u||(s=o("default"+n)),c[s]=a,l&&l.type){case r.BOOLEAN:c[s]=!0;break;case r.OVERLOADED_BOOLEAN:""===a&&(c[s]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=a);return i.setStyleProp(e.style,c),c}},53670:(e,t,n)=>{var r=n(67294),i=n(50484),o=n(74606),a=o.setStyleProp,s=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var o,c,u,d,p,f=(n=n||{}).library||r,h=f.cloneElement,v=f.createElement,m=f.isValidElement,g=[],y="function"==typeof n.replace,_=n.trim,b=0,E=t.length;b1&&(u=h(u,{key:u.key||b})),g.push(u);else if("text"!==o.type){switch(d=o.attribs,l(o)?a(d.style,d):d&&(d=i(d)),p=null,o.type){case"script":case"style":o.children[0]&&(d.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?d.defaultValue=o.children[0].data:o.children&&o.children.length&&(p=e(o.children,n));break;default:continue}E>1&&(d.key=b),g.push(v(o.name,d,p))}else{if((c=!o.data.trim().length)&&o.parent&&!s(o.parent))continue;if(_&&c)continue;g.push(o.data)}return 1===g.length?g[0]:g}},74606:(e,t,n)=>{var r=n(67294),i=n(41476).default;var o={reactCompat:!0};var a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},5079:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,a.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var v=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(f);function m(e){return(0,a.isTag)(e)}function g(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function _(e){return e.type===a.ElementType.Comment}function b(e){return e.type===a.ElementType.Directive}function E(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(_(e))n=new d(e.data);else if(m(e)){var r=t?T(e.children):[],i=new v(e.name,o({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?T(e.children):[];var s=new f(a.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(E(e)){r=t?T(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function T(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n1){var i=function(e){return/^-ms-/.test(e)&&(e=e.substr(1)),e.startsWith("--")?e:n(e)}(r[0].trim()),o=(t=r.slice(1).join(":").trim(),/^\d+$/.test(t)?Number(t):t.replace(/'/g,'"'));c[i]=o}})),c);else{var d=t[a],p=""===d||String(d).toLowerCase()===s.toLowerCase();o[u.name]=u.isBoolean?p:d}return o}),{})}function n(e){return e.replace(/(-|:)(.)/g,(function(e,t,n){return n.toUpperCase()}))}e=e&&e.hasOwnProperty("default")?e.default:e;var r=["table","tbody","thead","tfoot","tr"],i={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet"};function o(e,t){var n=i[t],r=document.createElement(e);if(n)return{name:Array.isArray(n)?n[0]:n,isBoolean:a(r,Array.isArray(n)?n[1]||t:n)};for(var o in r)if(o.toLowerCase()===t.toLowerCase())return{name:o,isBoolean:a(r,o)};return{name:t,isBoolean:a(r,t)}}function a(e,t){return e.setAttribute(t,""),!0===e[t]}function s(t,n,r,i){void 0===i&&(i=null);var o=r[t],a=r._;return o?e.createElement(o,n,i):a?a(t,n,i):e.createElement(t,n,i)}return function(e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new TypeError("Expected HTML string");var i=document.createElement("div");i.innerHTML=e.trim();var a=Array.from(i.childNodes).map((function(e,i){return function e(n,i,a){var l=a.transform||{},c=a.preserveAttributes||[],u=a.dangerouslySetChildren||["style"],d=l._;if(8===n.nodeType)return null;if(3===n.nodeType){var p=n.textContent;return d?d(p):p}for(var f={},h=n.attributes,v=0;v-1&&3===t.nodeType&&(t.textContent=t.textContent.trim(),""===t.textContent)?null:e(t,i+"."+n,a)})).filter(Boolean);if(u.indexOf(m)>-1){var _=n.innerHTML;return _&&("style"!==m&&"script"!==m&&(_=_.replace(/"/g,""")),g.dangerouslySetInnerHTML={__html:_.trim()}),s(m,g,l)}var b=0===y.length?null:y;return s(m,g,l,b)}(e,String(i),n)})).filter(Boolean);return 1===a.length?a[0]:a}}(n(67294))},69009:(e,t,n)=>{"use strict";var r,i=n(27812)("http-errors"),o=n(19310),a=n(54917),s=n(35717),l=n(71612);function c(e){return Number(String(e).charAt(0)+"00")}function u(e,t){var n=Object.getOwnPropertyDescriptor(e,"name");n&&n.configurable&&(n.value=t,Object.defineProperty(e,"name",n))}function d(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=function e(){for(var t,n,r=500,o={},s=0;s=600)&&i("non-error status code; use only 4xx or 5xx status codes");("number"!=typeof r||!a[r]&&(r<400||r>=600))&&(r=500);var u=e[r]||e[c(r)];t||(t=u?new u(n):new Error(n||a[r]),Error.captureStackTrace(t,e));u&&t instanceof u&&t.status===r||(t.expose=r<500,t.status=t.statusCode=r);for(var d in o)"status"!==d&&"statusCode"!==d&&(t[d]=o[d]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(r=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof r||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,n){t.forEach((function(t){var r,i=l(a[t]);switch(c(t)){case 400:r=function(e,t,n){var r=d(t);function i(e){var t=null!=e?e:a[n],s=new Error(t);return Error.captureStackTrace(s,i),o(s,i.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),s}return s(i,e),u(i,r),i.prototype.status=n,i.prototype.statusCode=n,i.prototype.expose=!0,i}(n,i,t);break;case 500:r=function(e,t,n){var r=d(t);function i(e){var t=null!=e?e:a[n],s=new Error(t);return Error.captureStackTrace(s,i),o(s,i.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),s}return s(i,e),u(i,r),i.prototype.status=n,i.prototype.statusCode=n,i.prototype.expose=!1,i}(n,i,t)}r&&(e[t]=r,e[i]=r)})),e["I'mateapot"]=i.function(e.ImATeapot,'"I\'mateapot"; use "ImATeapot" instead')}(e.exports,a.codes,e.exports.HttpError)},19310:e=>{"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e})},71612:e=>{"use strict";e.exports=function(e){return e.split(" ").map((function(e){return e.slice(0,1).toUpperCase()+e.slice(1)})).join("").replace(/[^ _0-9a-z]/gi,"")}},80645:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*v}},18172:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:f(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return B&&e instanceof Map}function f(e){return V&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Y(e);delete t[q];for(var n=W(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,(function(e,t){return m(t,!0)}),!0)),e}function g(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function _(e){var t=J[e];return t||r(18,e),t}function b(){return F}function E(e,t){t&&(_("Patches"),e.u=[],e.s=[],e.v=t)}function S(e){T(e),e.p.forEach(A),e.p=null}function T(e){e===F&&(F=e.l)}function O(e){return F={p:[],l:F,h:e,m:!0,_:0}}function A(e){var t=e[q];0===t.i||1===t.i?t.j():t.O=!0}function C(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||_("ES5").S(t,e,i),i?(n[q].P&&(S(t),r(4)),o(e)&&(e=P(t,e),t.l||R(t,e)),t.u&&_("Patches").M(n[q].t,e,t.u,t.s)):e=P(t,n,[]),S(t),t.u&&t.v(t.u,t.s),e!==H?e:void 0}function P(e,t,n){if(y(t))return t;var r=t[q];if(!r)return a(t,(function(i,o){return I(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return R(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=v(r.k):r.o;a(3===r.i?new Set(i):i,(function(t,o){return I(e,r,i,t,o,n)})),R(e,i,!1),n&&e.u&&_("Patches").R(r,n,e.u,e.s)}return r.o}function I(e,t,n,r,a,s){if(i(a)){var c=P(e,a,s&&t&&3!==t.i&&!l(t.D,r)?s.concat(r):void 0);if(u(n,r,c),!i(c))return;e.m=!1}if(o(a)&&!y(a)){if(!e.h.F&&e._<1)return;P(e,a),t&&t.A.l||R(e,a)}}function R(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&m(t,n)}function N(e,t){var n=e[q];return(n?h(n):e)[t]}function k(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function L(e){e.P||(e.P=!0,e.l&&L(e.l))}function w(e){e.o||(e.o=v(e.t))}function D(e,t,n){var r=p(t)?_("MapSet").N(t,n):f(t)?_("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:b(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=$;n&&(i=[r],o=X);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):_("ES5").J(t,n);return(n?n.A:b()).p.push(r),r}function M(e){return i(e)||r(22,e),function e(t){if(!o(t))return t;var n,r=t[q],i=s(t);if(r){if(!r.P&&(r.i<4||!_("ES5").K(r)))return r.t;r.I=!0,n=x(t,i),r.I=!1}else n=x(t,i);return a(n,(function(t,i){r&&c(r.t,t)===i||u(n,t,e(i))})),3===i?new Set(n):n}(e)}function x(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}n.d(t,{Uy:()=>ee,ZP:()=>te});var U,F,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),B="undefined"!=typeof Map,V="undefined"!=typeof Set,j="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=z?Symbol.for("immer-nothing"):((U={})["immer-nothing"]=!0,U),G=z?Symbol.for("immer-draftable"):"__$immer_draftable",q=z?Symbol.for("immer-state"):"__$immer_state",K=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Y=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},J={},$={get:function(e,t){if(t===q)return e;var n=h(e);if(!l(n,t))return function(e,t,n){var r,i=k(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!o(r)?r:r===N(e.t,t)?(w(e),e.o[t]=D(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=k(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=N(h(e),t),o=null==i?void 0:i[q];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(d(n,i)&&(void 0!==n||l(e.t,t)))return!0;w(e),L(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==N(e.t,t)||t in e.t?(e.D[t]=!1,w(e),L(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},X={};a($,(function(e,t){X[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),X.deleteProperty=function(e,t){return X.set.call(this,e,t,void 0)},X.set=function(e,t,n){return $.set.call(this,e[0],t,n,e[0])};var Q=function(){function e(e){var t=this;this.g=j,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=_("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Z=new Q,ee=Z.produce;Z.produceWithPatches.bind(Z),Z.setAutoFreeze.bind(Z),Z.setUseProxies.bind(Z),Z.applyPatches.bind(Z),Z.createDraft.bind(Z),Z.finishDraft.bind(Z);const te=ee},35717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},18139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new v(e),_(),t}}function v(e){this.start=e,this.end={line:d,column:p},this.source=l.source}v.prototype.content=e;var m=[];function g(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;m.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){y(r)}function b(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function S(){var e=h(),n=y(i);if(n){if(E(),!y(o))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return _(),function(){var e,t=[];for(b(t);e=S();)!1!==e&&(t.push(e),b(t));return t}()}},41143:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},19575:function(e,t,n){var r=n(48764).Buffer;"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e="3.7.2",t=e,n="function"==typeof atob,i="function"==typeof btoa,o="function"==typeof r,a="function"==typeof TextDecoder?new TextDecoder:void 0,s="function"==typeof TextEncoder?new TextEncoder:void 0,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=Array.prototype.slice.call(l),u=function(e){var t={};return e.forEach((function(e,n){return t[e]=n})),t}(c),d=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,p=String.fromCharCode.bind(String),f="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e,t){return void 0===t&&(t=function(e){return e}),new Uint8Array(Array.prototype.slice.call(e,0).map(t))},h=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},v=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},m=function(e){for(var t,n,r,i,o="",a=e.length%3,s=0;s255||(r=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");o+=c[(t=n<<16|r<<8|i)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},g=i?function(e){return btoa(e)}:o?function(e){return r.from(e,"binary").toString("base64")}:m,y=o?function(e){return r.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,i=e.length;r>>6)+p(128|63&t):p(224|t>>>12&15)+p(128|t>>>6&63)+p(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return p(240|t>>>18&7)+p(128|t>>>12&63)+p(128|t>>>6&63)+p(128|63&t)},E=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,S=function(e){return e.replace(E,b)},T=o?function(e){return r.from(e,"utf8").toString("base64")}:s?function(e){return y(s.encode(e))}:function(e){return g(S(e))},O=function(e,t){return void 0===t&&(t=!1),t?h(T(e)):T(e)},A=function(e){return O(e,!0)},C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return p(55296+(t>>>10))+p(56320+(1023&t));case 3:return p((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return p((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},I=function(e){return e.replace(C,P)},R=function(e){if(e=e.replace(/\s+/g,""),!d.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,i="",o=0;o>16&255):64===r?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return i},N=n?function(e){return atob(v(e))}:o?function(e){return r.from(e,"base64").toString("binary")}:R,k=o?function(e){return f(r.from(e,"base64"))}:function(e){return f(N(e),(function(e){return e.charCodeAt(0)}))},L=function(e){return k(D(e))},w=o?function(e){return r.from(e,"base64").toString("utf8")}:a?function(e){return a.decode(k(e))}:function(e){return I(N(e))},D=function(e){return v(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},M=function(e){return w(D(e))},x=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},U=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,x(t))};e("fromBase64",(function(){return M(this)})),e("toBase64",(function(e){return O(this,e)})),e("toBase64URI",(function(){return O(this,!0)})),e("toBase64URL",(function(){return O(this,!0)})),e("toUint8Array",(function(){return L(this)}))},F=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,x(t))};e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)}))},z=function(){U(),F()},B={version:e,VERSION:t,atob:N,atobPolyfill:R,btoa:g,btoaPolyfill:m,fromBase64:M,toBase64:O,encode:O,encodeURI:A,encodeURL:A,utob:S,btou:I,decode:M,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:_,toUint8Array:L,extendString:U,extendUint8Array:F,extendBuiltins:z,Base64:{}};return Object.keys(B).forEach((function(e){return B.Base64[e]=B[e]})),B}()},88495:(module,exports,__webpack_require__)=>{var process=__webpack_require__(34155),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t){return new Md5(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t>2]|=e[o]<>6,l[i++]=128|63&r):r<55296||r>=57344?(l[i++]=224|r>>12,l[i++]=128|r>>6&63,l[i++]=128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++o)),l[i++]=240|r>>18,l[i++]=128|r>>12&63,l[i++]=128|r>>6&63,l[i++]=128|63&r);else for(i=this.start;o>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,r,i,o,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&e)+a[1]-117830708)<<12|r>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|n>>>15)+r<<0)&(r^e))+a[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((r=this.h3)^t&(n^r))+a[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[1]-389564586)<<12|r>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|n>>>15)+r<<0)&(r^e))+a[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(r^t&(n^r))+a[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[5]+1200080426)<<12|r>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|n>>>15)+r<<0)&(r^e))+a[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(r^t&(n^r))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[9]-1958414417)<<12|r>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|n>>>15)+r<<0)&(r^e))+a[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(r^t&(n^r))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(r=((r+=(n^e&(t^n))+a[13]-40341101)<<12|r>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|n>>>15)+r<<0)&(r^e))+a[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[11]+643717713)<<14|n>>>18)+r<<0)^r))+a[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[15]-660478335)<<14|n>>>18)+r<<0)^r))+a[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[3]-187363961)<<14|n>>>18)+r<<0)^r))+a[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((r=((r+=(t^n&((e=((e+=(n^r&(t^n))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|r>>>23)+e<<0)^e&((n=((n+=(e^t&(r^e))+a[7]+1735328473)<<14|n>>>18)+r<<0)^r))+a[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[11]+1839030562)<<16|n>>>16)+r<<0))+a[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[7]-155497632)<<16|n>>>16)+r<<0))+a[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[3]-722521979)<<16|n>>>16)+r<<0))+a[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((o=(r=((r+=((i=t^n)^(e=((e+=(i^r)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|r>>>21)+e<<0)^e)^(n=((n+=(o^t)+a[15]+530742520)<<16|n>>>16)+r<<0))+a[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[0]-198630844)<<6|e>>>26)+t<<0)|~n))+a[7]+1126891415)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[14]-1416354905)<<15|n>>>17)+r<<0)|~e))+a[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+a[3]-1894986606)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[10]-1051523)<<15|n>>>17)+r<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+a[15]-30611744)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[6]-1560198380)<<15|n>>>17)+r<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((r=((r+=(t^((e=((e+=(n^(t|~r))+a[4]-145523070)<<6|e>>>26)+t<<0)|~n))+a[11]-1120210379)<<10|r>>>22)+e<<0)^((n=((n+=(e^(r|~t))+a[2]+718787259)<<15|n>>>17)+r<<0)|~e))+a[9]-343485551)<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return[255&e,e>>8&255,e>>16&255,e>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],n=i[o++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=i[o],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},43720:e=>{e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var i={},o={};function a(e,t){var n,r,a;return t?(a=0<=(e>>>=0)&&e<256)&&(r=o[e])?r:(n=l(e,(0|e)<0?-1:0,!0),a&&(o[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(r=i[e])?r:(n=l(e,e<0?-1:0,!1),a&&(i[e]=n),n)}function s(e,t){if(isNaN(e))return t?g:m;if(t){if(e<0)return g;if(e>=f)return S}else{if(e<=-h)return T;if(e+1>=h)return E}return e<0?s(-e,t).neg():l(e%p|0,e/p|0,t)}function l(e,t,r){return new n(e,t,r)}n.fromInt=a,n.fromNumber=s,n.fromBits=l;var c=Math.pow;function u(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return u(e.substring(1),t,n).neg();for(var i=s(c(n,8)),o=m,a=0;a>>0:this.low},O.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},O.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=l).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},O.getHighBits=function(){return this.high},O.getHighBitsUnsigned=function(){return this.high>>>0},O.getLowBits=function(){return this.low},O.getLowBitsUnsigned=function(){return this.low>>>0},O.getNumBitsAbs=function(){if(this.isNegative())return this.eq(T)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},O.isOdd=function(){return 1==(1&this.low)},O.isEven=function(){return 0==(1&this.low)},O.equals=function(e){return r(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},O.eq=O.equals,O.notEquals=function(e){return!this.eq(e)},O.neq=O.notEquals,O.ne=O.notEquals,O.lessThan=function(e){return this.comp(e)<0},O.lt=O.lessThan,O.lessThanOrEqual=function(e){return this.comp(e)<=0},O.lte=O.lessThanOrEqual,O.le=O.lessThanOrEqual,O.greaterThan=function(e){return this.comp(e)>0},O.gt=O.greaterThan,O.greaterThanOrEqual=function(e){return this.comp(e)>=0},O.gte=O.greaterThanOrEqual,O.ge=O.greaterThanOrEqual,O.compare=function(e){if(r(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},O.comp=O.compare,O.negate=function(){return!this.unsigned&&this.eq(T)?T:this.not().add(y)},O.neg=O.negate,O.add=function(e){r(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,a=e.high>>>16,s=65535&e.high,c=e.low>>>16,u=0,p=0,f=0,h=0;return f+=(h+=o+(65535&e.low))>>>16,p+=(f+=i+c)>>>16,u+=(p+=n+s)>>>16,u+=t+a,l((f&=65535)<<16|(h&=65535),(u&=65535)<<16|(p&=65535),this.unsigned)},O.subtract=function(e){return r(e)||(e=d(e)),this.add(e.neg())},O.sub=O.subtract,O.multiply=function(e){if(this.isZero())return m;if(r(e)||(e=d(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return m;if(this.eq(T))return e.isOdd()?T:m;if(e.eq(T))return this.isOdd()?T:m;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,o=this.low>>>16,a=65535&this.low,c=e.high>>>16,u=65535&e.high,p=e.low>>>16,f=65535&e.low,h=0,g=0,y=0,_=0;return y+=(_+=a*f)>>>16,g+=(y+=o*f)>>>16,y&=65535,g+=(y+=a*p)>>>16,h+=(g+=i*f)>>>16,g&=65535,h+=(g+=o*p)>>>16,g&=65535,h+=(g+=a*u)>>>16,h+=n*f+i*p+o*u+a*c,l((y&=65535)<<16|(_&=65535),(h&=65535)<<16|(g&=65535),this.unsigned)},O.mul=O.multiply,O.divide=function(e){if(r(e)||(e=d(e)),e.isZero())throw Error("division by zero");var n,i,o;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:m;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return _;o=g}else{if(this.eq(T))return e.eq(y)||e.eq(b)?T:e.eq(T)?y:(n=this.shr(1).div(e).shl(1)).eq(m)?e.isNegative()?y:b:(i=this.sub(e.mul(n)),o=n.add(i.div(e)));if(e.eq(T))return this.unsigned?g:m;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=m}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),u=a<=48?1:c(2,a-48),p=s(n),f=p.mul(e);f.isNegative()||f.gt(i);)f=(p=s(n-=u,this.unsigned)).mul(e);p.isZero()&&(p=y),o=o.add(p),i=i.sub(f)}return o},O.div=O.divide,O.modulo=function(e){return r(e)||(e=d(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},O.mod=O.modulo,O.rem=O.modulo,O.not=function(){return l(~this.low,~this.high,this.unsigned)},O.and=function(e){return r(e)||(e=d(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},O.or=function(e){return r(e)||(e=d(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},O.xor=function(e){return r(e)||(e=d(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},O.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low<>>32-e,this.unsigned):l(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},O.shr=O.shiftRight,O.shiftRightUnsigned=function(e){if(r(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?l(this.low>>>e|t<<32-e,t>>>e,this.unsigned):l(32===e?t:t>>>e-32,0,this.unsigned)},O.shru=O.shiftRightUnsigned,O.shr_u=O.shiftRightUnsigned,O.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},O.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},O.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},O.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},O.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},24647:()=>{},91716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},29298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},32599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},29889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},27111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},30231:()=>{},42441:(e,t,n)=>{var r;!function(i,o,a){if(i){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)l[111+p]="f"+p;for(p=0;p<=9;++p)l[p+96]=p.toString();_.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},_.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},_.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},_.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},_.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},_.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},_.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},_.init=function(){var e=_(o);for(var t in e)"_"!==t.charAt(0)&&(_[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},_.init();Spicetify.Mousetrap=_;i.Mousetrap=_,e.exports&&(e.exports=_),void 0===(r=function(){return _}.call(t,n,t,e))||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function h(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function g(e,t){var n,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i1?p(e,s,n,r):(a=g(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],c(a.key,a.modifiers,{type:a.action},i,e,o),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:e}))}t._handleKey=function(e,t,n){var r,i=c(e,t,n),o={},d=0,p=!1;for(r=0;r{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,a=365.25*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,l){l=l||{};var c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*n;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(e);if("number"===c&&isFinite(e))return l.long?function(e){var o=Math.abs(e);if(o>=i)return s(e,o,i,"day");if(o>=r)return s(e,o,r,"hour");if(o>=n)return s(e,o,n,"minute");if(o>=t)return s(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},27418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),c=1;c{"use strict";n.d(t,{E:()=>s});var r=n(67294),i=n.n(r),o=n(45432),a=n.n(o);class s extends r.Component{constructor(e){super(e),this._osInstance=null,this._osTargetRef=i().createRef()}osInstance(){return this._osInstance}osTarget(){return this._osTargetRef.current||null}componentDidMount(){this._osInstance=a()(this.osTarget(),this.props.options||{},this.props.extensions),l(this._osInstance,this.props.className)}componentWillUnmount(){a().valid(this._osInstance)&&(this._osInstance.destroy(),this._osInstance=null)}componentDidUpdate(e){a().valid(this._osInstance)&&(this._osInstance.options(this.props.options),e.className!==this.props.className&&l(this._osInstance,this.props.className))}render(){const e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.match(r))).join(" ");n.className=`${i} ${t||""}`}}},45432:function(e,t,n){var r;!function(i,o){r=function(){return function(e,t,n){"use strict";var r="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},o={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},a=function(){var r={},i={},s=["-webkit-","-moz-","-o-","-ms-"],l=["WebKit","Moz","O","MS"];function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}return{_cssPrefixes:s,_jsPrefixes:l,_cssProperty:function(e){var r=i[e];if(i[o.hOP](e))return r;for(var a,l,u,d=c(e),p=t.createElement("div")[o.s],f=0;f0&&t-1 in e)}function T(e){return(e.match(r)||[]).join(a)}function O(e,n){for(var r=(e.parentNode||t).querySelectorAll(n)||[],i=r[o.l];i--;)if(r[i]==e)return!0;return!1}function A(e,t,n){if(s.isA(n))for(var r=0;r0?(r=e.q[0],N(e.el,r.props,r.duration,r.easing,r.complete,!0)):(n=g(e,f))>-1&&f.splice(n,1)}function R(e,t,n){t===d||t===p?e[t]=n:C(e,t,n)}function N(e,t,r,i,a,c){var h,v,m,E,S,T,O=b(r),A={},C={},P=0;for(O?(i=r.easing,r.start,m=r.progress,E=r.step,S=r.specialEasing,a=r.complete,T=r.duration):T=r,S=S||{},T=T||400,i=i||"swing",c=c||!1;P0)U=s.now(),F=function(){for(h in N=s.now(),z=N-U,k=V.stop||z>=T,L=1-(l.max(0,U+T-N)/T||0),C)D=parseFloat(A[h]),M=parseFloat(C[h]),x=(M-D)*u[S[h]||i](L,L*T,0,1,T)+D,R(e,h,x),y(E)&&E(x,{elem:e,prop:h,start:D,now:x,end:M,pos:L,options:{easing:i,speacialEasing:S,duration:T,complete:a,step:E},startTime:U});y(m)&&m({},L,l.max(0,T-z)),k?(I(v),y(a)&&a()):V.frame=s.rAF()(F)},V.frame=s.rAF()(F);else{for(h in C)R(e,h,C[h]);I(v)}}}function k(e,t,n){for(var r,i,a,l=0;l0){if((i=r.q[0]).stop=!0,s.cAF()(i.frame),r.q.splice(0,1),n)for(a in i.props)R(e,a,i.props[a]);t?r.q=[]:I(r,!1)}break}}function L(e){return!!(e[o.oW]||e[o.oH]||e.getClientRects()[o.l])}function w(n){if(0===arguments[o.l])return this;var r,a,s=new w,l=n,c=0;if(h(n)==i.s)for(l=[],"<"===n.charAt(0)?((a=t.createElement("div")).innerHTML=n,r=a.children):r=t.querySelectorAll(n);c0;)i=i.childNodes[0];for(t=0;n[o.l]-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var l=s?s.nextSibling:a.firstChild;return a.insertBefore(r,l),this},wrapInner:function(e){return this.each((function(){var t=w(this),n=t.contents();n[o.l]?n.wrapAll(e):t.append(e)}))},wrap:function(e){return this.each((function(){w(this).wrapAll(e)}))},css:function(t,r){var a,s,l,c=e.getComputedStyle;return h(t)==i.s?r===n?(a=this[0],l=c?c(a,null):a.currentStyle[t],c?null!=l?l.getPropertyValue(t):a[o.s][t]:l):this.each((function(){C(this,t,r)})):this.each((function(){for(s in t)C(this,s,t[s])}))},hasClass:function(e){for(var t,n,r=0,i=a+e+a;t=this[r++];){if((n=t.classList)&&n.contains(e))return!0;if(1===t.nodeType&&(a+T(t.className+c)+a).indexOf(i)>-1)return!0}return!1},addClass:function(e){var t,i,o,s,l,u,d,p,f=0,h=0;if(e)for(t=e.match(r)||[];i=this[f++];)if(p=i.classList,d===n&&(d=p!==n),d)for(;l=t[h++];)p.add(l);else if(s=i.className+c,o=1===i.nodeType&&a+T(s)+a){for(;l=t[h++];)o.indexOf(a+l+a)<0&&(o+=l+a);s!==(u=T(o))&&(i.className=u)}return this},removeClass:function(e){var t,i,o,s,l,u,d,p,f=0,h=0;if(e)for(t=e.match(r)||[];i=this[f++];)if(p=i.classList,d===n&&(d=p!==n),d)for(;l=t[h++];)p.remove(l);else if(s=i.className+c,o=1===i.nodeType&&a+T(s)+a){for(;l=t[h++];)for(;o.indexOf(a+l+a)>-1;)o=o.replace(a+l+a,a);s!==(u=T(o))&&(i.className=u)}return this},hide:function(){return this.each((function(){this[o.s].display="none"}))},show:function(){return this.each((function(){this[o.s].display="block"}))},attr:function(e,t){for(var r,i=0;r=this[i++];){if(t===n)return r.getAttribute(e);r.setAttribute(e,t)}return this},removeAttr:function(e){return this.each((function(){this.removeAttribute(e)}))},offset:function(){var n=this[0][o.bCR](),r=e.pageXOffset||t.documentElement[d],i=e.pageYOffset||t.documentElement[p];return{top:n.top+i,left:n.left+r}},position:function(){var e=this[0];return{top:e.offsetTop,left:e.offsetLeft}},scrollLeft:function(e){for(var t,r=0;t=this[r++];){if(e===n)return t[d];t[d]=e}return this},scrollTop:function(e){for(var t,r=0;t=this[r++];){if(e===n)return t[p];t[p]=e}return this},val:function(e){var t=this[0];return e?(t.value=e,this):t.value},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){return w(this[e>=0?e:this[o.l]+e])},find:function(e){var t,n=[];return this.each((function(){var r=this.querySelectorAll(e);for(t=0;t-1){if(!(n>1))return h[r][v];delete e[v],h.splice(r,1)}}}),f=function(){var u,f,h,v,m,g,y,_,b,E,S,T,O,A,C,P,I=[],R=(v=s.type,m=[i.b,i.n,i.s,i.a,i.o,i.f,i.z],g=" ",y=":",_=[i.z,i.s],b=i.n,E=[i.z,i.b],S=[!0,i.b],T=[!1,i.b],O=[null,[i.z,i.f]],A="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",C={className:["os-theme-dark",_],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:S,clipAlways:S,normalizeRTL:S,paddingAbsolute:T,autoUpdate:[null,E],autoUpdateInterval:[33,b],updateOnLoad:[["img"],[i.s,i.a,i.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:T,initialize:S},overflowBehavior:{x:["scroll",A],y:["scroll",A]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,b],dragScrolling:S,clickScrolling:T,touchSupport:S,snapHandle:T},textarea:{dynWidth:T,dynHeight:T,inheritedAttrs:[["style","class"],[i.s,i.a,i.z]]},callbacks:{onInitialized:O,onInitializationWithdrawn:O,onDestroyed:O,onScrollStart:O,onScroll:O,onScrollStop:O,onOverflowChanged:O,onOverflowAmountChanged:O,onDirectionChanged:O,onContentSizeChanged:O,onHostSizeChanged:O,onUpdated:O}},{_defaults:(P=function(e){var t=function(n){var r,a,s;for(r in n)n[o.hOP](r)&&(a=n[r],(s=v(a))==i.a?n[r]=a[e?1:0]:s==i.o&&(n[r]=t(a)));return n};return t(d.extend(!0,{},C))})(),_template:P(!0),_validate:function(t,r,a,l){var c={},u={},p=d.extend(!0,{},t),f=d.inArray,h=d.isEmptyObject,_=function(e,t,r,l,c,u){for(var p in t)if(t[o.hOP](p)&&e[o.hOP](p)){var b,E,S,T,O,A,C,P,I=!1,R=!1,N=t[p],k=v(N),L=k==i.o,w=s.isA(N)?N:[N],D=r[p],M=e[p],x=v(M),U=u?u+".":"",F='The option "'+U+p+"\" wasn't set, because",z=[],B=[];if(D=D===n?{}:D,L&&x==i.o)l[p]={},c[p]={},_(M,N,D,l[p],c[p],U+p),d.each([e,l,c],(function(e,t){h(t[p])&&delete t[p]}));else if(!L){for(A=0;A0?"\r\nValid strings are: [ "+B.join(", ").split(y).join(", ")+" ].":"")),delete e[p]}}};return _(p,r,l||{},c,u),!h(p)&&a&&console.warn("The following options are discarded due to invalidity:\r\n"+e.JSON.stringify(p,null,2)),{_default:c,_prepared:u}}});function N(){f||(f=new k(R._defaults)),h||(h=new L(f))}function k(t){var n=this,r="overflow",i="hidden",c="scroll",u=d("body"),f=d('
'),h=f[0],v=d(f.children("div").eq(0));u.append(f),f.hide().show();var m=_(h),g={x:0===m.x,y:0===m.y},y=function(){var t,n=e.navigator.userAgent,r="indexOf",i="substring",o=n[r]("MSIE "),a=n[r]("Trident/"),s=n[r]("Edge/"),l=n[r]("rv:"),c=parseInt;return o>0?t=c(n[i](o+5,n[r](".",o)),10):a>0?t=c(n[i](l+3,n[r](".",l)),10):s>0&&(t=c(n[i](s+5,n[r](".",s)),10)),t}();function _(e){return{x:e[o.oH]-e[o.cH],y:e[o.oW]-e[o.cW]}}d.extend(n,{defaultOptions:t,msie:y,autoUpdateLoop:!1,autoUpdateRecommended:!s.mO(),nativeScrollbarSize:m,nativeScrollbarIsOverlaid:g,nativeScrollbarStyling:function(){var t=!1;f.addClass("os-viewport-native-scrollbars-invisible");try{t="none"===f.css("scrollbar-width")&&(y>9||!y)||"none"===e.getComputedStyle(h,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:a._cssPropertyValue("width","calc","(1px)")||null,restrictedMeasuring:function(){f.css(r,i);var e={w:h[o.sW],h:h[o.sH]};f.css(r,"visible");var t={w:h[o.sW],h:h[o.sH]};return e.w-t.w!=0||e.h-t.h!=0}(),rtlScrollBehavior:function(){f.css({"overflow-y":i,"overflow-x":c,direction:"rtl"}).scrollLeft(0);var e=f.offset(),t=v.offset();f.scrollLeft(-999);var n=v.offset();return{i:e.left===t.left,n:t.left!==n.left}}(),supportTransform:!!a._cssProperty("transform"),supportTransition:!!a._cssProperty("transition"),supportPassiveEvents:function(){var t=!1;try{e.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),supportResizeObserver:!!s.rO(),supportMutationObserver:!!s.mO()}),f.removeAttr(o.s).remove(),function(){if(!g.x||!g.y){var t=l.abs,r=s.wW(),i=s.wH(),o=h(),a=function(){if(p().length>0){var e=s.wW(),a=s.wH(),v=e-r,m=a-i;if(0===v&&0===m)return;var g,y=l.round(e/(r/100)),b=l.round(a/(i/100)),E=t(v),S=t(m),T=t(y),O=t(b),A=h(),C=E>2&&S>2,P=!c(T,O),I=C&&P&&(A!==o&&o>0),R=n.nativeScrollbarSize;I&&(u.append(f),g=n.nativeScrollbarSize=_(f[0]),f.remove(),R.x===g.x&&R.y===g.y||d.each(p(),(function(){p(this)&&p(this).update("zoom")}))),r=e,i=a,o=A}};d(e).on("resize",a)}function c(e,n){var r=t(e),i=t(n);return!(r===i||r+1===i||r-1===i)}function h(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function L(e){var t,r=this,i=d.inArray,a=s.now,c="autoUpdate",u=c+"Interval",p=o.l,f=[],h=[],v=!1,m=33,g=m,y=a(),_=function(){if(f[p]>0&&v){t=s.rAF()((function(){_()}));var e,r,i,o,d,b,E=a(),S=E-y;if(S>g){y=E-S%g,e=m;for(var T=0;Td&&(r.update("auto"),h[T]=new Date(b+=d)),e=l.max(1,l.min(e,d)));g=e}}else g=m};r.add=function(t){-1===i(t,f)&&(f.push(t),h.push(a()),f[p]>0&&!v&&(v=!0,e.autoUpdateLoop=v,_()))},r.remove=function(r){var o=i(r,f);o>-1&&(h.splice(o,1),f.splice(o,1),0===f[p]&&v&&(v=!1,e.autoUpdateLoop=v,t!==n&&(s.cAF()(t),t=-1)))}}function w(r,f,h,v,m){var g=s.type,y=d.inArray,_=d.each,b=new u,E=d[o.p];if(mi(r)){if(p(r)){var S=p(r);return S.options(f),S}var T,O,A,C,P,I,N,k,L,w,D,M,x,U,F,z,B,V,j,H,G,q,K,W,Y,J,$,X,Q,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,fe,he,ve,me,ge,ye,_e,be,Ee,Se,Te,Oe,Ae,Ce,Pe,Ie,Re,Ne,ke,Le,we,De,Me,xe,Ue,Fe,ze,Be,Ve,je,He,Ge,qe,Ke,We,Ye,Je,$e,Xe,Qe,Ze,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,dt,pt,ft,ht,vt,mt,gt,yt,_t,bt,Et,St,Tt,Ot,At,Ct,Pt,It,Rt,Nt,kt,Lt,wt,Dt,Mt,xt={},Ut={},Ft={},zt={},Bt={},Vt="-hidden",jt="margin-",Ht="padding-",Gt="border-",qt="top",Kt="right",Wt="bottom",Yt="left",Jt="min-",$t="max-",Xt="width",Qt="height",Zt="float",en="",tn="auto",nn="sync",rn="scroll",on="100%",an="x",sn="y",ln=".",cn=" ",un="scrollbar",dn="-horizontal",pn="-vertical",fn=rn+"Left",hn=rn+"Top",vn="mousedown touchstart",mn="mouseup touchend touchcancel",gn="mousemove touchmove",yn="mouseenter",_n="mouseleave",bn="keydown",En="keyup",Sn="selectstart",Tn="transitionend webkitTransitionEnd oTransitionEnd",On="__overlayScrollbarsRO__",An="os-",Cn=An+"html",Pn=An+"host",In=Pn+"-foreign",Rn=Pn+"-textarea",Nn=Pn+"-"+un+dn+Vt,kn=Pn+"-"+un+pn+Vt,Ln=Pn+"-transition",wn=Pn+"-rtl",Dn=Pn+"-resize-disabled",Mn=Pn+"-scrolling",xn=Pn+"-overflow",Un=(xn=Pn+"-overflow")+"-x",Fn=xn+"-y",zn=An+"textarea",Bn=zn+"-cover",Vn=An+"padding",jn=An+"viewport",Hn=jn+"-native-scrollbars-invisible",Gn=jn+"-native-scrollbars-overlaid",qn=An+"content",Kn=An+"content-arrange",Wn=An+"content-glue",Yn=An+"size-auto-observer",Jn=An+"resize-observer",$n=An+"resize-observer-item",Xn=$n+"-final",Qn=An+"text-inherit",Zn=An+un,er=Zn+"-track",tr=er+"-off",nr=Zn+"-handle",rr=nr+"-off",ir=Zn+"-unusable",or=Zn+"-"+tn+Vt,ar=Zn+"-corner",sr=ar+"-resize",lr=sr+"-both",cr=sr+dn,ur=sr+pn,dr=Zn+dn,pr=Zn+pn,fr=An+"dragging",hr=An+"theme-none",vr=[Hn,Gn,tr,rr,ir,or,sr,lr,cr,ur,fr].join(cn),mr=[],gr=[o.ti],yr={},_r="added removed on contract",br={},Er=42,Sr="load",Tr=[],Or={},Ar=["wrap","cols","rows"],Cr=[o.i,o.c,o.s,"open"].concat(gr),Pr=[];return b.sleep=function(){Q=!0},b.update=function(e){var t,r,o,a,s;if(!F)return g(e)==i.s?e===tn?(t=qr(),r=Gr(),(o=t||r)&&Jr({_contentSizeChanged:r,_changedOptions:U?n:te})):e===nn?Et?(a=_t(gt.takeRecords()),s=bt(yt.takeRecords())):a=b.update(tn):"zoom"===e&&Jr({_hostSizeChanged:!0,_contentSizeChanged:!0}):(e=Q||e,Q=!1,b.update(nn)&&!e||Jr({_force:e})),$r(),o||a||s},b.options=function(e,t){var n,r={};if(d.isEmptyObject(e)||!d.isPlainObject(e)){if(g(e)!=i.s)return ee;if(!(arguments.length>1))return Oi(ee,e);Ai(r,e,t),n=Xr(r)}else n=Xr(e);d.isEmptyObject(n)||Jr({_changedOptions:n})},b.destroy=function(){if(!F){for(var e in m.remove(b),wr(),Nr(de),Nr(ue),yr)b.removeExt(e);for(;Pr[o.l]>0;)Pr.pop()();Br(!0),me&&Li(me),ve&&Li(ve),G&&Li(ue),ei(!0),li(!0),Qr(!0);for(var t=0;t2&&(s=t.substr(0,2),y(s,M)>-1&&(r=s)),t=(t=r?t.substr(2):t)[m](/min/g,0)[m](//g,(v?"-":en)+on)[m](/px/g,en)[m](/%/g,f+p*(h&&A.n?-1:1)/100)[m](/vw/g,f+zt.w)[m](/vh/g,f+zt.h),o=yi(isNaN(t)?yi(_(t),!0).toFixed():t)):o=t,o!==n&&!isNaN(o)&&g(o)==i.n){var b=k&&h,E=d*(b&&A.n?-1:1),S=b&&A.i,T=b&&A.n;switch(E=S?p-E:E,r){case"+=":a=E+o;break;case"-=":a=E-o;break;case"*=":a=E*o;break;case"/=":a=E/o;break;default:a=o}a=S?p-a:a,a*=T?-1:1,a=h&&A.n?l.min(0,l.max(p,a)):l.max(0,l.min(p,a))}return a===d?n:a}function se(e,t,n,r){var o,a,s=[n,n],l=g(e);if(l==t)e=[e,e];else if(l==i.a){if((o=e[W])>2||o<1)e=s;else for(1===o&&(e[1]=n),E=0;E0){ue=ge==i.n||ge==i.b?le([ue,ue,ue,ue]):ge==i.a?2===(ce=ue[W])?le([ue[0],ue[1],ue[0],ue[1]]):ce>=4?le(ue):me:ge==i.o?le([ue[qt],ue[Kt],ue[Wt],ue[Yt]]):me,C=ie(de,Y)?de:"xy",P=se(he,i.s,G,$),I=se(ve,i.s,V,J),R=ue;var ye={l:Ut._currentScroll,t:Ft._currentScroll},_e=pe.offset(),be=N.offset(),Ee={x:P.x==q||C==sn,y:P.y==q||C==an};be[qt]-=R[0],be[Yt]-=R[3];var Se={x:l.round(be[Yt]-_e[Yt]+ye.l),y:l.round(be[qt]-_e[qt]+ye.t)};if(X&&(A.n||A.i||(Se.x=l.round(_e[Yt]-be[Yt]+ye.l)),A.n&&k&&(Se.x*=-1),A.i&&k&&(Se.x=l.round(_e[Yt]-be[Yt]+(Ut._maxScroll-ye.l)))),I.x!=V||I.y!=V||P.x==K||P.y==K||X){var Te=N[0],Oe=w?Te[o.bCR]():{width:Te[o.oW],height:Te[o.oH]},Ae={w:Oe[Xt]+R[3]+R[1],h:Oe[Qt]+R[0]+R[2]},Ce=function(e){var t=si(e),n=t._w_h,r=t._left_top,i=t._x_y,o=I[i]==(e&&X?V:B),a=I[i]==j,s=I[i]==H,l=P[i]==q,c=P[i]==K,u=zt[n],d=_e[r],p=Ae[n],f=be[r],h=a?2:1,v=f+p/2,m=d+u/2,g=p<=u&&f>=d&&f+p<=d+u;l?Ee[i]=!0:Ee[i]||((s||c)&&(Ee[i]=!!c&&g,o=pm:v0||x)?x?(t.complete=re,fe.animate(F,t)):(O={duration:t,complete:re},s.isA(r)||d.isPlainObject(r)?(z[fn]=r[0]||r.x,z[hn]=r[1]||r.y,O.specialEasing=z):O.easing=r,fe.animate(F,O)):(S&&fe[fn](F[fn]),T&&fe[hn](F[hn]),ne())},b.scrollStop=function(e,t,n){return fe.stop(e,t,n),b},b.getElements=function(e){var t={target:Pe,host:Ie,padding:ke,viewport:Le,content:we,scrollbarHorizontal:{scrollbar:_e[0],track:be[0],handle:Ee[0]},scrollbarVertical:{scrollbar:Se[0],track:Te[0],handle:Oe[0]},scrollbarCorner:ye[0]};return g(e)==i.s?Oi(t,e):t},b.getState=function(e){function t(e){if(!d.isPlainObject(e))return e;var t=Ii({},e),n=function(e,n){t[o.hOP](e)&&(t[n]=t[e],delete t[e])};return n("w",Xt),n("h",Qt),delete t.c,t}var n={destroyed:!!t(F),sleeping:!!t(Q),autoUpdate:t(!Et),widthAuto:t(ze),heightAuto:t(Be),padding:t(je),overflowAmount:t(Xe),hideOverflow:t(Fe),hasOverflow:t(Ue),contentScrollSize:t(Me),viewportSize:t(zt),hostSize:t(De),documentMixed:t(V)};return g(e)==i.s?Oi(n,e):n},b.ext=function(e){var t,n=_r.split(" "),r=0;if(g(e)==i.s){if(yr[o.hOP](e))for(t=Ii({},yr[e]);r9||!C){e.prepend(Si(Jn,Si({c:$n,dir:"ltr"},Si($n,Si(Xn))+Si($n,Si({c:Xn,style:"width: 200%; height: 200%"})))));var p,f,h,m,g=e[0][l][0][l][0],y=d(g[l][1]),_=d(g[l][0]),b=d(_[0][l][0]),E=g[o.oW],S=g[o.oH],T=2,O=v.nativeScrollbarSize,I=function(){_[fn](c)[hn](c),y[fn](c)[hn](c)},R=function(){f=0,p&&(E=h,S=m,u())},N=function(e){return h=g[o.oW],m=g[o.oH],p=h!=E||m!=S,e&&p&&!f?(s.cAF()(f),f=s.rAF()(R)):e||R(),I(),e&&(s.prvD(e),s.stpP(e)),!1},k={},L={};di(L,en,[-(O.y+1)*T,O.x*-T,O.y*-T,-(O.x+1)*T]),d(g).css(L),_.on(rn,N),y.on(rn,N),e.on(a,(function(){N(!1)})),k[Xt]=c,k[Qt]=c,b.css(k),I()}else{var w=Ce.attachEvent,D=P!==n;if(w)e.prepend(Si(Jn)),wi(e,ln+Jn)[0].attachEvent("onresize",u);else{var x=Ce.createElement(i.o);x.setAttribute(o.ti,"-1"),x.setAttribute(o.c,Jn),x.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",u),e.document.documentElement.style.display="none"},x.type="text/html",D&&e.prepend(x),x.data="about:blank",D||e.prepend(x),e.on(a,u)}}if(e[0]===Ne){var U=function(){var e=ce.css("direction"),t={},n=0,r=!1;return e!==Ke&&("ltr"===e?(t[Yt]=0,t[Kt]=tn,n=c):(t[Yt]=tn,t[Kt]=0,n=A.n?-c:A.i?0:c),de.children().eq(0).css(t),de[fn](n)[hn](c),Ke=e,r=!0),r};U(),Rr(e,rn,(function(e){return U()&&Jr(),s.prvD(e),s.stpP(e),!1}))}}else if(M){var F,z=(F=e.contents()[0])[On];z&&(z.disconnect(),delete F[On])}else Li(e.children(ln+Jn).eq(0))}}function kr(){if(x){var e,t,n,r,i,a,l,c,u,d,p=11,f=s.mO(),h=s.now();bt=function(e){var t=!1;return U&&!Q&&(_(e,(function(){return!(t=Hr(this))})),t&&(c=s.now(),u=Be||ze,d=function(){F||(h=c,z&&Yr(),u?Jr():b.update(tn))},clearTimeout(l),p<=0||c-h>p||!u?d():l=setTimeout(d,p))),t},gt=new f(_t=function(s){var l,c=!1,u=!1,d=[];return U&&!Q&&(_(s,(function(){e=(l=this).target,t=l.attributeName,n=t===o.c,r=l.oldValue,i=e.className,j&&n&&!u&&r.indexOf(In)>-1&&i.indexOf(In)<0&&(a=hi(!0),Ie.className=i.split(cn).concat(r.split(cn).filter((function(e){return e.match(a)}))).join(cn),c=u=!0),c||(c=n?jr(r,i):t!==o.s||r!==e[o.s].cssText),d.push(t)})),Wr(d),c&&b.update(u||tn)),c}),yt=new f(bt)}}function Lr(){x&&!Et&&(gt.observe(Ie,{attributes:!0,attributeOldValue:!0,attributeFilter:Cr}),yt.observe(z?Pe:we,{attributes:!0,attributeOldValue:!0,subtree:!z,childList:!z,characterData:!z,attributeFilter:z?Ar:Cr}),Et=!0)}function wr(){x&&Et&&(gt.disconnect(),yt.disconnect(),Et=!1)}function Dr(){if(!Q){var e,t={w:Ne[o.sW],h:Ne[o.sH]};e=Pi(t,nt),nt=t,e&&Jr({_hostSizeChanged:!0})}}function Mr(){Rt&&ri(!0)}function xr(){Rt&&!se.hasClass(fr)&&ri(!1)}function Ur(){It&&(ri(!0),clearTimeout(Ot),Ot=setTimeout((function(){It&&!F&&ri(!1)}),100))}function Fr(e){return s.prvD(e),!1}function zr(e){var t=d(e.target);Ci((function(e,n){t.is(n)&&Jr({_contentSizeChanged:!0})}))}function Br(e){e||Br(!0),Ir(ce,gn.split(cn)[0],Ur,!It||e,!0),Ir(ce,[yn,_n],[Mr,xr],!Rt||e,!0),U||e||ce.one("mouseover",Mr)}function Vr(){var e={};return B&&ve&&(e.w=yi(ve.css(Jt+Xt)),e.h=yi(ve.css(Jt+Qt)),e.c=Pi(e,mt),e.f=!0),mt=e,!!e.c}function jr(e,t){var n,r,a=typeof t==i.s?t.split(cn):[],s=gi(typeof e==i.s?e.split(cn):[],a),l=y(hr,s);if(l>-1&&s.splice(l,1),s[o.l]>0)for(r=hi(!0,!0),n=0;n0}}function Kr(e){if(!U)return!0;var t="flex-grow",n="flex-shrink",r="flex-basis",i=[Xt,Jt+Xt,$t+Xt,jt+Yt,jt+Kt,Yt,Kt,"font-weight","word-spacing",t,n,r],a=[Ht+Yt,Ht+Kt,Gt+Yt+Xt,Gt+Kt+Xt],s=[Qt,Jt+Qt,$t+Qt,jt+qt,jt+Wt,qt,Wt,"line-height",t,n,r],l=[Ht+qt,Ht+Wt,Gt+qt+Xt,Gt+Wt+Xt],c="s",u="v-s",d=$e.x===c||$e.x===u,p=!1,f=function(e,t){for(var n=0;n-1){var n=le.attr(t);g(n)==i.s?fe.attr(t,n):fe.removeAttr(t)}}))}function Yr(){if(!Q){var e,t,n,r,i=!dt,a=zt.w,s=zt.h,c={},u=ze||i;return c[Jt+Xt]=en,c[Jt+Qt]=en,c[Xt]=tn,le.css(c),e=Pe[o.oW],t=u?l.max(e,Pe[o.sW]-1):1,c[Xt]=ze?tn:on,c[Jt+Xt]=on,c[Qt]=tn,le.css(c),n=Pe[o.oH],r=l.max(n,Pe[o.sH]-1),c[Xt]=t,c[Qt]=r,ge.css(c),c[Jt+Xt]=a,c[Jt+Qt]=s,le.css(c),{_originalWidth:e,_originalHeight:n,_dynamicWidth:t,_dynamicHeight:r}}}function Jr(e){clearTimeout(re),e=e||{},br._hostSizeChanged|=e._hostSizeChanged,br._contentSizeChanged|=e._contentSizeChanged,br._force|=e._force;var t,r=s.now(),i=!!br._hostSizeChanged,c=!!br._contentSizeChanged,u=!!br._force,p=e._changedOptions,f=Er>0&&U&&!F&&!u&&!p&&r-ne0?x:hr)),Te&&(!0===Se||null===Se&&C?(wr(),m.add(b)):(m.remove(b),Lr())),_e)if(se)if(me?me.show():(me=d(Si(Wn)),pe.before(me)),G)ue.show();else{ue=d(Si(Yn)),Re=ue[0],me.before(ue);var tt={w:-1,h:-1};Nr(ue,(function(){var e={w:Re[o.oW],h:Re[o.oH]};Pi(e,tt)&&(U&&Be&&e.h>0||ze&&e.w>0||U&&!Be&&0===e.h||!ze&&0===e.w)&&Jr(),tt=e})),G=!0,null!==N&&ue.css(Qt,N+"(100% + 1px)")}else G&&ue.hide(),me&&me.hide();u&&(de.find("*").trigger(rn),G&&ue.find("*").trigger(rn)),t=t===n?ce.is(":hidden"):t;var nt,gt=!!z&&"off"!==le.attr("wrap"),yt=h(gt,dt),_t=ce.css("direction"),bt=h(_t,qe),Tt=ce.css("box-sizing"),Ot=h(Tt,Ve),Nt=pi(Ht);try{nt=G?Re[o.bCR]():null}catch(e){return}H="border-box"===Tt;var kt=(X="rtl"===_t)?Yt:Kt,Ut=X?Kt:Yt,Ft=!1,Vt=!(!G||"none"===ce.css(Zt))&&(0===l.round(nt.right-nt.left)&&(!!ee||Ie[o.cW]-q>0));if(se&&!Vt){var nn=Ie[o.oW],an=me.css(Xt);me.css(Xt,tn);var sn=Ie[o.oW];me.css(Xt,an),(Ft=nn!==sn)||(me.css(Xt,nn+1),sn=Ie[o.oW],me.css(Xt,an),Ft=nn!==sn)}var ln=(Vt||Ft)&&se&&!t,un=h(ln,ze),dn=!ln&&ze,pn=!(!G||!se||t)&&0===l.round(nt.bottom-nt.top),vn=h(pn,Be),mn=!pn&&Be,gn=pi(Gt,"-"+Xt,!(ln&&H||!H),!(pn&&H||!H)),yn=pi(jt),_n={},bn={},En=function(){return{w:Ie[o.cW],h:Ie[o.cH]}},Sn=function(){return{w:ke[o.oW]+l.max(0,we[o.cW]-we[o.sW]),h:ke[o.oH]+l.max(0,we[o.cH]-we[o.sH])}},Tn=q=Nt.l+Nt.r,On=K=Nt.t+Nt.b;if(Tn*=ee?1:0,On*=ee?1:0,Nt.c=h(Nt,je),W=gn.l+gn.r,Y=gn.t+gn.b,gn.c=h(gn,He),J=yn.l+yn.r,$=yn.t+yn.b,yn.c=h(yn,Ge),dt=gt,qe=_t,Ve=Tt,ze=ln,Be=pn,je=Nt,He=gn,Ge=yn,bt&&G&&ue.css(Zt,Ut),Nt.c||bt||ie||un||vn||Ot||_e){var An={},Cn={},Pn=[Nt.t,Nt.r,Nt.b,Nt.l];di(bn,jt,[-Nt.t,-Nt.r,-Nt.b,-Nt.l]),ee?(di(An,en,Pn),di(z?Cn:_n,Ht)):(di(An,en),di(z?Cn:_n,Ht,Pn)),pe.css(An),le.css(Cn)}zt=Sn();var In=!!z&&Yr(),Rn=z&&h(In,ft),Nn=z&&In?{w:Ce?In._dynamicWidth:In._originalWidth,h:Ne?In._dynamicHeight:In._originalHeight}:{};if(ft=In,pn&&(vn||ie||Ot||Nt.c||gn.c)?_n[Qt]=tn:(vn||ie)&&(_n[Qt]=on),ln&&(un||ie||Ot||Nt.c||gn.c||bt)?(_n[Xt]=tn,bn[$t+Xt]=on):(un||ie)&&(_n[Xt]=on,_n[Zt]=en,bn[$t+Xt]=en),ln?(bn[Xt]=tn,_n[Xt]=a._cssPropertyValue(Xt,"max-content intrinsic")||tn,_n[Zt]=Ut):bn[Xt]=en,bn[Qt]=pn?Nn.h||we[o.cH]:en,se&&me.css(bn),he.css(_n),_n={},bn={},i||c||Rn||bt||Ot||ie||un||ln||vn||pn||Ee||Ae||ae||Z||S||R||M||w||Pe||Ke||yt){var kn="overflow",Ln=kn+"-x",zn=kn+"-y",Bn="hidden",Vn="visible";if(!I){var jn={},Gn=Ue.y&&Fe.ys&&!be?T.y?fe.css(kt):-k.y:0,qn=Ue.x&&Fe.xs&&!be?T.x?fe.css(Wt):-k.x:0;di(jn,en),fe.css(jn)}var Jn=Ei(),$n={w:Nn.w||Jn[o.cW],h:Nn.h||Jn[o.cH]},Xn={w:Jn[o.sW],h:Jn[o.sH]};I||(jn[Wt]=mn?en:qn,jn[kt]=dn?en:Gn,fe.css(jn)),zt=Sn();var Qn=En(),Zn={w:Qn.w-J-W-(H?0:q),h:Qn.h-$-Y-(H?0:K)},er={w:l.max((ln?$n.w:Xn.w)+Tn,Zn.w),h:l.max((pn?$n.h:Xn.h)+On,Zn.h)};if(er.c=h(er,Je),Je=er,se){(er.c||pn||ln)&&(bn[Xt]=er.w,bn[Qt]=er.h,z||($n={w:Jn[o.cW],h:Jn[o.cH]}));var tr={},nr=function(e){var t=si(e),n=t._w_h,r=t._width_height,i=e?ln:pn,o=e?W:Y,a=e?q:K,s=e?J:$,c=zt[n]-o-s-(H?0:a);(!i||!i&&gn.c)&&(bn[r]=Zn[n]-1),!(i&&$n[n]0&&(bn[r]=l.max(1,bn[r]))};nr(!0),nr(!1),z&&ge.css(tr),me.css(bn)}ln&&(_n[Xt]=on),!ln||H||Et||(_n[Zt]="none"),he.css(_n),_n={};var rr={w:Jn[o.sW],h:Jn[o.sH]};rr.c=c=h(rr,Me),Me=rr,zt=Sn(),i=h(Qn=En(),De),De=Qn;var ir=z&&(0===zt.w||0===zt.h),or=Xe,ar={},dr={},pr={},fr={},vr={},mr={},gr={},yr=ke[o.bCR](),_r=function(e){var t=si(e),n=si(!e)._x_y,r=t._x_y,i=t._w_h,o=t._width_height,a=rn+t._Left_Top+"Max",s=yr[o]?l.abs(yr[o]-zt[i]):0,c=or&&or[r]>0&&0===Le[a];ar[r]="v-s"===Oe[r],dr[r]="v-h"===Oe[r],pr[r]="s"===Oe[r],fr[r]=l.max(0,l.round(100*(rr[i]-zt[i]))/100),fr[r]*=ir||c&&s>0&&s<1?0:1,vr[r]=fr[r]>0,mr[r]=ar[r]||dr[r]?vr[n]&&!ar[n]&&!dr[n]:vr[r],mr[r+"s"]=!!mr[r]&&(pr[r]||ar[r]),gr[r]=vr[r]&&mr[r+"s"]};if(_r(!0),_r(!1),fr.c=h(fr,Xe),Xe=fr,vr.c=h(vr,Ue),Ue=vr,mr.c=h(mr,Fe),Fe=mr,T.x||T.y){var Sr,Tr="px solid transparent",Or={},Ar={},Cr=u;(vr.x||vr.y)&&(Ar.w=T.y&&vr.y?rr.w+O.y:en,Ar.h=T.x&&vr.x?rr.h+O.x:en,Cr=h(Ar,xe),xe=Ar),(vr.c||mr.c||rr.c||bt||un||vn||ln||pn||Ee)&&(_n[jt+Ut]=_n[Gt+Ut]=en,Sr=function(e){var t=si(e),n=si(!e),r=t._x_y,i=e?Wt:kt,o=e?pn:ln;T[r]&&vr[r]&&mr[r+"s"]?(_n[jt+i]=o?be?en:O[r]:en,_n[Gt+i]=e&&o||be?en:O[r]+Tr):(Ar[n._w_h]=_n[jt+i]=_n[Gt+i]=en,Cr=!0)},I?ki(fe,Hn,!be):(Sr(!0),Sr(!1))),be&&(Ar.w=Ar.h=en,Cr=!0),Cr&&!I&&(Or[Xt]=mr.y?Ar.w:en,Or[Qt]=mr.x?Ar.h:en,ve||(ve=d(Si(Kn)),fe.prepend(ve)),ve.css(Or)),he.css(_n)}var Pr,Ir={};An={};if((i||vr.c||mr.c||rr.c||Ae||Ot||Ee||bt||ae||vn)&&(Ir[Ut]=en,(Pr=function(e){var t=si(e),n=si(!e),r=t._x_y,i=t._X_Y,o=e?Wt:kt,a=function(){Ir[o]=en,xt[n._w_h]=0};vr[r]&&mr[r+"s"]?(Ir[kn+i]=rn,be||I?a():(Ir[o]=-(T[r]?O[r]:k[r]),xt[n._w_h]=T[r]?O[n._x_y]:0)):(Ir[kn+i]=en,a())})(!0),Pr(!1),!I&&(zt.h=Mr._cursorMax&&St,qr={x:gt||Fr!==Hr||Ur!==zr?-1:Xe.x,y:(gt?Gr||xr&&or&&g.y===or.y:(Gr||xr)&&Ur===jr)?Xe.y:-1};g.x=qr.x>-1?X&<&&A.i?0:qr.x:g.x,g.y=qr.y>-1?qr.y:g.y}pt=Mr}X&&A.i&&T.y&&vr.x&<&&(g.x+=xt.w||0),ln&&ce[fn](0),pn&&ce[hn](0),fe[fn](g.x)[hn](g.y);var Kr="v"===E,Wr="h"===E,Xr="a"===E,Qr=function(e,t){t=t===n?e:t,ni(!0,e,gr.x),ni(!1,t,gr.y)};ki(ce,xn,mr.x||mr.y),ki(ce,Un,mr.x),ki(ce,Fn,mr.y),bt&&!B&&ki(ce,wn,X),B&&Ri(ce,Dn),Z&&(ki(ce,Dn,Lt),ki(ye,sr,!Lt),ki(ye,lr,wt),ki(ye,cr,Dt),ki(ye,ur,Mt)),(S||Ae||mr.c||vr.c||Ee)&&(be?Ee&&(Ni(ce,Mn),be&&Qr(!1)):Xr?Qr(gr.x,gr.y):Kr?Qr(!0):Wr&&Qr(!1)),(R||Ee)&&(Br(!Rt&&!It),ri(Ct,!Ct)),(i||fr.c||vn||un||Z||Ot||ie||Ee||bt)&&(ii(!0),oi(!0),ii(!1),oi(!1)),w&&ai(!0,L),M&&ai(!1,D),ui("onDirectionChanged",{isRTL:X,dir:_t},bt),ui("onHostSizeChanged",{width:De.w,height:De.h},i),ui("onContentSizeChanged",{width:Me.w,height:Me.h},c),ui("onOverflowChanged",{x:vr.x,y:vr.y,xScrollable:mr.xs,yScrollable:mr.ys,clipped:mr.x||mr.y},vr.c||mr.c),ui("onOverflowAmountChanged",{x:fr.x,y:fr.y},fr.c)}B&&mt&&(Ue.c||mt.c)&&(mt.f||Vr(),T.y&&Ue.x&&he.css(Jt+Xt,mt.w+O.y),T.x&&Ue.y&&he.css(Jt+Qt,mt.h+O.x),mt.c=!1),U&&p.updateOnLoad&&$r(),ui("onUpdated",{forced:u})}}function $r(){z||Ci((function(e,t){he.find(t).each((function(e,t){s.inA(t,Tr)<0&&(Tr.push(t),d(t).off(Sr,zr).on(Sr,zr))}))}))}function Xr(e){var t=R._validate(e,R._template,!0,ee);return ee=Ii({},ee,t._default),te=Ii({},te,t._prepared),t._prepared}function Qr(e){var t="parent",r="os-resize-observer-host",a=zn+cn+Qn,l=z?cn+Qn:en,c=te.textarea.inheritedAttrs,u={},p=function(){var t=e?le:ce;_(u,(function(e,n){g(n)==i.s&&(e==o.c?t.addClass(n):t.attr(e,n))}))},f=[Pn,In,Rn,Dn,wn,Nn,kn,Ln,Mn,xn,Un,Fn,hr,zn,Qn,ct].join(cn),h={};ce=ce||(z?j?le[t]()[t]()[t]()[t]():d(Si(Rn)):le),he=he||Ti(qn+l),fe=fe||Ti(jn+l),pe=pe||Ti(Vn+l),de=de||Ti(r),ge=ge||(z?Ti(Bn):n),j&&Ri(ce,In),e&&Ni(ce,f),c=g(c)==i.s?c.split(cn):c,s.isA(c)&&z&&_(c,(function(t,n){g(n)==i.s&&(u[n]=e?ce.attr(n):le.attr(n))})),e?(j&&U?(de.children().remove(),_([pe,fe,he,ge],(function(e,t){t&&Ni(t.removeAttr(o.s),vr)})),Ri(ce,z?Rn:Pn)):(Li(de),he.contents().unwrap().unwrap().unwrap(),z&&(le.unwrap(),Li(ce),Li(ge),p())),z&&le.removeAttr(o.s),B&&Ni(ae,Cn)):(z&&(te.sizeAutoCapable||(h[Xt]=le.css(Xt),h[Qt]=le.css(Qt)),j||le.addClass(Qn).wrap(ce),ce=le[t]().css(h)),j||(Ri(le,z?a:Pn),ce.wrapInner(he).wrapInner(fe).wrapInner(pe).prepend(de),he=wi(ce,ln+qn),fe=wi(ce,ln+jn),pe=wi(ce,ln+Vn),z&&(he.prepend(ge),p())),I&&Ri(fe,Hn),T.x&&T.y&&Ri(fe,Gn),B&&Ri(ae,Cn),Ne=de[0],Ie=ce[0],ke=pe[0],Le=fe[0],we=he[0],Wr())}function Zr(){var e,t,r=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],a=175,l="focus";function c(t){Yr(),b.update(tn),t&&C&&clearInterval(e)}function u(e){return le[fn](A.i&<?9999999:0),le[hn](0),s.prvD(e),s.stpP(e),!1}function d(e){setTimeout((function(){F||c()}),50)}function p(){St=!0,Ri(ce,l)}function f(){St=!1,i=[],Ni(ce,l),c(!0)}function h(t){var n=t.keyCode;y(n,r)<0&&(i[o.l]||(c(),e=setInterval(c,1e3/60)),y(n,i)<0&&i.push(n))}function v(e){var t=e.keyCode,n=y(t,i);y(t,r)<0&&(n>-1&&i.splice(n,1),i[o.l]||c(!0))}function m(e){!0!==Ze&&Kr((e=e.originalEvent||e).propertyName)&&b.update(tn)}function g(e){Q||(t!==n?clearTimeout(t):((Pt||It)&&ri(!0),bi()||Ri(ce,Mn),ui("onScrollStart",e)),kt||(oi(!0),oi(!1)),ui("onScroll",e),t=setTimeout((function(){F||(clearTimeout(t),t=n,(Pt||It)&&ri(!1),bi()||Ni(ce,Mn),ui("onScrollStop",e))}),a))}z?(P>9||!C?Rr(le,"input",c):Rr(le,[bn,En],[h,v]),Rr(le,[rn,"drop",l,l+"out"],[u,d,p,f])):Rr(he,Tn,m),Rr(fe,rn,g,!0)}function ei(e){var t,n,r=function(t){var n=Ti(Zn+cn+(t?dr:pr),!0),r=Ti(er,n),i=Ti(nr,n);return j||e||(n.append(r),r.append(i)),{_scrollbar:n,_track:r,_handle:i}};function i(e){var t=si(e),n=t._scrollbar,i=t._track,a=t._handle;j&&U?_([n,i,a],(function(e,t){Ni(t.removeAttr(o.s),vr)})):Li(n||r(e)._scrollbar)}e?(i(!0),i()):(t=r(!0),n=r(),_e=t._scrollbar,be=t._track,Ee=t._handle,Se=n._scrollbar,Te=n._track,Oe=n._handle,j||(pe.after(Se),pe.after(_e)))}function ti(e){var t,r,i,a,c=si(e),u=c._info,d=Ae.top!==Ae,p=c._x_y,f=c._X_Y,h=rn+c._Left_Top,v="active",m="snapHandle",g="click",_=1,E=[16,17];function S(e){return P&&d?e["screen"+f]:s.page(e)[p]}function T(e){return te.scrollbars[e]}function O(){_=.5}function C(){_=1}function I(e){s.stpP(e)}function R(e){y(e.keyCode,E)>-1&&O()}function N(e){y(e.keyCode,E)>-1&&C()}function k(e){var t=(e.originalEvent||e).touches!==n;return!(Q||F||bi()||!at||t&&!T("touchSupport"))&&(1===s.mBtn(e)||t)}function w(t){if(k(t)){var n=u._trackLength,o=u._handleLength,c=u._maxScroll*((S(t)-i)*a/(n-o));c=isFinite(c)?c:0,X&&e&&!A.i&&(c*=-1),fe[h](l.round(r+c)),kt&&oi(e,r+c),D||s.prvD(t)}else M(t)}function M(l){if(l=l||l.originalEvent,Ir(oe,[gn,mn,bn,En,Sn],[w,M,R,N,Fr],!0),s.rAF()((function(){Ir(oe,g,I,!0,{_capture:!0})})),kt&&oi(e,!0),kt=!1,Ni(se,fr),Ni(c._handle,v),Ni(c._track,v),Ni(c._scrollbar,v),r=n,i=n,a=1,C(),t!==n&&(b.scrollStop(),clearTimeout(t),t=n),l){var u=Ie[o.bCR]();l.clientX>=u.left&&l.clientX<=u.right&&l.clientY>=u.top&&l.clientY<=u.bottom||xr(),(Pt||It)&&ri(!1)}}function x(e){k(e)&&U(e)}function U(t){r=fe[h](),r=isNaN(r)?0:r,(X&&e&&!A.n||!X)&&(r=r<0?0:r),a=vi()[p],i=S(t),kt=!T(m),Ri(se,fr),Ri(c._handle,v),Ri(c._scrollbar,v),Ir(oe,[gn,mn,Sn],[w,M,Fr]),s.rAF()((function(){Ir(oe,g,I,!1,{_capture:!0})})),!P&&V||s.prvD(t),s.stpP(t)}function z(r){if(k(r)){var o,d=c._info._handleLength/Math.round(l.min(1,zt[c._w_h]/Me[c._w_h])*c._info._trackLength),f=l.round(zt[c._w_h]*d),g=270*d,y=400*d,E=c._track.offset()[c._left_top],S=r.ctrlKey,C=r.shiftKey,P=C&&S,I=!0,L="linear",w=function(t){kt&&oi(e,t)},D=function(){w(),U(r)},x=function(){if(!F){var r=(i-E)*a,s=u._handleOffset,c=u._trackLength,d=u._handleLength,v=u._maxScroll,m=u._currentScroll,S=g*_,T=I?l.max(y,S):S,O=v*((r-d/2)/(c-d)),R=X&&e&&(!A.i&&!A.n||lt),N=R?sr,k={},M={easing:L,step:function(t){kt&&(fe[h](t),oi(e,t))}};O=isFinite(O)?O:0,O=X&&e&&!A.i?v-O:O,C?(fe[h](O),P?(O=fe[h](),fe[h](m),O=R&&A.i?v-O:O,O=R&&A.n?-O:O,k[p]=O,b.scroll(k,Ii(M,{duration:130,complete:D}))):D()):(o=I?N:o,(R?o?s+d>=r:s<=r:o?s<=r:s+d>=r)?(clearTimeout(t),b.scrollStop(),t=n,w(!0)):(t=setTimeout(x,T),k[p]=(o?"-=":"+=")+f,b.scroll(k,Ii(M,{duration:S}))),I=!1)}};S&&O(),a=vi()[p],i=s.page(r)[p],kt=!T(m),Ri(se,fr),Ri(c._track,v),Ri(c._scrollbar,v),Ir(oe,[mn,bn,En,Sn],[M,R,N,Fr]),x(),s.prvD(r),s.stpP(r)}}function B(e){Nt=!0,(Pt||It)&&ri(!0)}function j(e){Nt=!1,(Pt||It)&&ri(!1)}function H(e){s.stpP(e)}Rr(c._handle,vn,x),Rr(c._track,[vn,yn,_n],[z,B,j]),Rr(c._scrollbar,vn,H),L&&Rr(c._scrollbar,Tn,(function(t){t.target===c._scrollbar[0]&&(ii(e),oi(e))}))}function ni(e,t,n){var r=e?_e:Se;ki(ce,e?Nn:kn,!t),ki(r,ir,!n)}function ri(e,t){if(clearTimeout(Tt),e)Ni(_e,or),Ni(Se,or);else{var n,r="active",i=function(){Nt||F||(!(n=Ee.hasClass(r)||Oe.hasClass(r))&&(Pt||It||Rt)&&Ri(_e,or),!n&&(Pt||It||Rt)&&Ri(Se,or))};At>0&&!0!==t?Tt=setTimeout(i,At):i()}}function ii(e){var t={},n=si(e),r=n._info,i=1e6,o=l.min(1,zt[n._w_h]/Me[n._w_h]);t[n._width_height]=l.floor(100*o*i)/i+"%",bi()||n._handle.css(t),r._handleLength=n._handle[0]["offset"+n._Width_Height],r._handleLengthRatio=o}function oi(e,t){var r,o,s=g(t)==i.b,c=250,u=X&&e,d=si(e),p=d._info,f="translate(",h=a._cssProperty("transform"),v=a._cssProperty("transition"),m=e?fe[fn]():fe[hn](),y=t===n||s?m:t,_=p._handleLength,b=d._track[0]["offset"+d._Width_Height],E=b-_,S={},T=(Le[rn+d._Width_Height]-Le["client"+d._Width_Height])*(A.n&&u?-1:1),O=function(e){return isNaN(e/T)?0:l.max(0,l.min(1,e/T))},C=function(e){var t=E*e;return t=isNaN(t)?0:t,t=u&&!A.i?b-_-t:t,t=l.max(0,t)},P=O(m),I=C(O(y)),R=C(P);p._maxScroll=T,p._currentScroll=m,p._currentScrollRatio=P,w?(r=u?-(b-_-I):I,o=e?f+r+"px, 0)":f+"0, "+r+"px)",S[h]=o,L&&(S[v]=s&&l.abs(I-p._handleOffset)>1?fi(d._handle)+", "+(h+cn+c)+"ms":en)):S[d._left_top]=I,bi()||(d._handle.css(S),w&&L&&s&&d._handle.one(Tn,(function(){F||d._handle.css(v,en)}))),p._handleOffset=I,p._snappedHandleOffset=R,p._trackLength=b}function ai(e,t){var n=t?"removeClass":"addClass",r=e?Te:Oe,i=e?tr:rr;(e?be:Ee)[n](i),r[n](i)}function si(e){return{_width_height:e?Xt:Qt,_Width_Height:e?"Width":"Height",_left_top:e?Yt:qt,_Left_Top:e?"Left":"Top",_x_y:e?an:sn,_X_Y:e?"X":"Y",_w_h:e?"w":"h",_l_t:e?"l":"t",_track:e?be:Te,_handle:e?Ee:Oe,_scrollbar:e?_e:Se,_info:e?Ut:Ft}}function li(e){ye=ye||Ti(ar,!0),e?j&&U?Ni(ye.removeAttr(o.s),vr):Li(ye):j||ce.append(ye)}function ci(){var e,t=Ae.top!==Ae,r={},i={},a={};function l(e){if(u(e)){var t=d(e),n={};(Dt||wt)&&(n[Xt]=i.w+(t.x-r.x)*a.x),(Mt||wt)&&(n[Qt]=i.h+(t.y-r.y)*a.y),ce.css(n),s.stpP(e)}else c(e)}function c(t){var r=t!==n;Ir(oe,[Sn,gn,mn],[Fr,l,c],!0),Ni(se,fr),ye.releaseCapture&&ye.releaseCapture(),r&&(e&&Lr(),b.update(tn)),e=!1}function u(e){var t=(e.originalEvent||e).touches!==n;return!Q&&!F&&(1===s.mBtn(e)||t)}function d(e){return P&&t?{x:e.screenX,y:e.screenY}:s.page(e)}Rr(ye,vn,(function(t){u(t)&&!Lt&&(Et&&(e=!0,wr()),r=d(t),i.w=Ie[o.oW]-(H?0:q),i.h=Ie[o.oH]-(H?0:K),a=vi(),Ir(oe,[Sn,gn,mn],[Fr,l,c]),Ri(se,fr),ye.setCapture&&ye.setCapture(),s.prvD(t),s.stpP(t))}))}function ui(e,t,n){if(!1!==n)if(U){var r,o=te.callbacks[e],a=e;"on"===a.substr(0,2)&&(a=a.substr(2,1).toLowerCase()+a.substr(3)),g(o)==i.f&&o.call(b,t),_(yr,(function(){g((r=this).on)==i.f&&r.on(a,t)}))}else F||mr.push({n:e,a:t})}function di(e,t,n){n=n||[en,en,en,en],e[(t=t||en)+qt]=n[0],e[t+Kt]=n[1],e[t+Wt]=n[2],e[t+Yt]=n[3]}function pi(e,t,n,r){return t=t||en,e=e||en,{t:r?0:yi(ce.css(e+qt+t)),r:n?0:yi(ce.css(e+Kt+t)),b:r?0:yi(ce.css(e+Wt+t)),l:n?0:yi(ce.css(e+Yt+t))}}function fi(e){var t=a._cssProperty("transition"),n=e.css(t);if(n)return n;for(var r,i,s,l="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",c=new RegExp(l),u=new RegExp("^("+l+")+$"),d="property duration timing-function delay".split(" "),p=[],f=0,h=function(e){if(r=[],!e.match(u))return e;for(;e.match(c);)r.push(RegExp.$1),e=e.replace(c,en);return r};fd&&(u=r+1,d=t);return{_cursorRow:p,_cursorColumn:f,_rows:l,_columns:d,_widestRow:u,_cursorPosition:e,_cursorMax:a}}}function bi(){return Qe&&T.x&&T.y}function Ei(){return z?ge[0]:we}function Si(e,t){return"
"+(t||en)+"
"}function Ti(e,t){var n=g(t)==i.b,r=n?ce:t||ce;return j&&!r[o.l]?null:j?r[n?"children":"find"](ln+e.replace(/\s/g,ln)).eq(0):d(Si(e))}function Oi(e,t){for(var n,r=t.split(ln),a=0;a0&&(v?d.each(e,(function(e,i){(a=i)!==n&&c.push(w(a,t,r,f,h))})):d.each(e,(function(e,r){a=p(r),("!"===t&&u.valid(a)||s.type(t)==i.f&&t(r,a)||t===n)&&c.push(a)})),l=1===c[o.l]?c[0]:c),l):v||!t?l:c},u.globals=function(){N();var e=d.extend(!0,{},f);return delete e.msie,e},u.defaultOptions=function(e){N();var t=f.defaultOptions;if(e===n)return d.extend(!0,{},t);f.defaultOptions=d.extend(!0,{},t,R._validate(e,R._template,!0,t)._default)},u.valid=function(e){return e instanceof u&&!e.getState().destroyed},u.extension=function(e,t,n){var r=s.type(e)==i.s,a=arguments[o.l],l=0;if(a<1||!r)return d.extend(!0,{length:I[o.l]},I);if(r)if(s.type(t)==i.f)I.push({name:e,extensionFactory:t,defaultOptions:n});else for(;l1))return d.extend(!0,{},I[l]);I.splice(l,1)}},u}();var h,v;var m;c&&c.fn&&(c.fn.overlayScrollbars=function(e,t){var n=this;return c.isPlainObject(e)?(c.each(n,(function(){f(this,e,t)})),n):f(n,e)});return f}(i,i.document,void 0)}.call(t,n,t,e),void 0===r||(e.exports=r)}("undefined"!=typeof window?window:this)},34155:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u1)for(var n=1;n{"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},62100:(e,t,n)=>{"use strict";e.exports=n(89482)},89482:(e,t,n)=>{"use strict";var r=t;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(41173),r.BufferWriter=n(43155),r.Reader=n(51408),r.BufferReader=n(50593),r.util=n(99693),r.rpc=n(35994),r.roots=n(85054),r.configure=i,i()},51408:(e,t,n)=>{"use strict";e.exports=l;var r,i=n(99693),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var c,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(l.create=function(e){return i.Buffer.isBuffer(e)?new r(e):u(e)})(e)}:u};function p(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new o(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,l.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){r=e,l.create=d(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(l.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},50593:(e,t,n)=>{"use strict";e.exports=o;var r=n(51408);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(99693);function o(e){r.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},85054:e=>{"use strict";e.exports={}},35994:(e,t,n)=>{"use strict";t.Service=n(77948)},77948:(e,t,n)=>{"use strict";e.exports=i;var r=n(99693);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return r.asPromise(e,s,t,n,i,o);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof i))try{n=i[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:(e,t,n)=>{"use strict";e.exports=i;var r=n(99693);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},99693:function(e,t,n){"use strict";var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";e.exports=d;var r,i=n(99693),o=i.LongBits,a=i.base64,s=i.utf8;function l(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function d(){this.len=0,this.head=new l(c,0,0),this.tail=this.head,this.states=null}var p=function(){return i.Buffer?function(){return(d.create=function(){return new r})()}:function(){return new d}};function f(e,t,n){t[n]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function m(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=p(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new l(e,t,n),this.len+=t,this},h.prototype=Object.create(l.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var g=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(f,1,0);if(i.isString(e)){var n=d.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(g,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new l(c,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=p(),r._configure()}},43155:(e,t,n)=>{"use strict";e.exports=o;var r=n(41173);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(99693);function o(){r.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},38698:(e,t,n)=>{"use strict";var r=n(27418),i=n(67294);function o(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rA;A++)O[A]=A+1;O[15]=0;var C=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P=Object.prototype.hasOwnProperty,I={},R={};function N(e){return!!P.call(R,e)||!P.call(I,e)&&(C.test(e)?R[e]=!0:(I[e]=!0,!1))}function k(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){L[e]=new k(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];L[t]=new k(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){L[e]=new k(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){L[e]=new k(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){L[e]=new k(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){L[e]=new k(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){L[e]=new k(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){L[e]=new k(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){L[e]=new k(e,5,!1,e.toLowerCase(),null,!1)}));var w=/[\-:]([a-z])/g;function D(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(w,D);L[t]=new k(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(w,D);L[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(w,D);L[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){L[e]=new k(e,1,!1,e.toLowerCase(),null,!1)})),L.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){L[e]=new k(e,1,!1,e.toLowerCase(),null,!0)}));var M=/["'&<>]/;function x(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=M.exec(e);if(t){var n,r="",i=0;for(n=t.index;nt}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+x(t)+'"')):N(e)?e+'="'+x(t)+'"':""}var F=null,z=null,B=null,V=!1,j=!1,H=null,G=0;function q(){if(null===F)throw o(Error(321));return F}function K(){if(0G))throw o(Error(301));if(e===F)if(j=!0,e={action:n,next:null},null===H&&(H=new Map),void 0===(n=H.get(t)))H.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Q(){}var Z=0,ee={readContext:function(e){var t=Z;return T(e,t),e[t]},useContext:function(e){q();var t=Z;return T(e,t),e[t]},useMemo:function(e,t){if(F=q(),t=void 0===t?null:t,null!==(B=W())){var n=B.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i=s))throw o(Error(304));var c=new Uint16Array(s);for(c.set(a),(O=c)[0]=r+1,a=r;a=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===d)this.popProvider(s.type);else if(s.type===v){this.suspenseDepth--;var c=r.pop();if(i){i=!1;var u=s.fallbackFrame;if(!u)throw o(Error(303));this.stack.push(u),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var p=s.children[s.childIndex++],f="";try{f+=this.render(p,s.context,s.domNamespace)}catch(e){throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=f}}return r[0]}finally{ue.current=n,Z=t}},e.prototype.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?x(n):this.previousWasTextNode?"\x3c!-- --\x3e"+x(n):(this.previousWasTextNode=!0,x(n));if(e=(t=ye(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!i.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===s)throw o(Error(257));throw o(Error(258),n.toString())}return e=ce(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case c:case f:case u:case m:case l:return e=ce(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case v:throw o(Error(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case h:F={};var b=a.render(e.props,e.ref);return b=Y(a.render,e.props,b,e.ref),b=ce(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:t,footer:""}),"";case g:return e=[i.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case d:return n={type:e,domNamespace:n,children:a=ce(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case p:a=e.type,b=e.props;var E=this.threadID;return T(a,E),a=ce(b.children(a[E])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case _:throw o(Error(338));case y:throw o(Error(295))}throw o(Error(130),null==a?a:typeof a,"")},e.prototype.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===te&&ne(a),!fe.hasOwnProperty(a)){if(!pe.test(a))throw o(Error(65),a);fe[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var c=s.children;if(null!=c){if(null!=l)throw o(Error(92));if(Array.isArray(c)){if(!(1>=c.length))throw o(Error(93));c=c[0]}l=""+c}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var d=null!=s.value?s.value+"":u;if(l=!1,Array.isArray(c)){for(var p=0;p":(b+=">",l="");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=s.children)||"number"==typeof c){c=x(c);break e}c=null}return null!=c?(s=[],de[a]&&"\n"===c.charAt(0)&&(b+="\n"),b+=c):s=ce(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ne(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,b},e}(),be={renderToString:function(e){e=new _e(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new _e(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw o(Error(207))},renderToStaticNodeStream:function(){throw o(Error(208))},version:"16.9.0"},Ee={default:be},Se=Ee&&be||Ee;e.exports=Se.default||Se},64448:(e,t,n)=>{"use strict";var r=n(67294),i=n(27418),o=n(63840);function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rthis.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=ue,e.release=de}i(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=se)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=se)},persist:function(){this.isPersistent=se},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(ce);var fe=ce.extend({data:null}),he=ce.extend({data:null}),ve=[9,13,27,32],me=K&&"CompositionEvent"in window,ge=null;K&&"documentMode"in document&&(ge=document.documentMode);var ye=K&&"TextEvent"in window&&!ge,_e=K&&(!me||ge&&8=ge),be=String.fromCharCode(32),Ee={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Se=!1;function Te(e,t){switch(e){case"keyup":return-1!==ve.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Oe(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ae=!1;var Ce={eventTypes:Ee,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(me)e:{switch(e){case"compositionstart":i=Ee.compositionStart;break e;case"compositionend":i=Ee.compositionEnd;break e;case"compositionupdate":i=Ee.compositionUpdate;break e}i=void 0}else Ae?Te(e,n)&&(i=Ee.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Ee.compositionStart);return i?(_e&&"ko"!==n.locale&&(Ae||i!==Ee.compositionStart?i===Ee.compositionEnd&&Ae&&(o=ae()):(ie="value"in(re=r)?re.value:re.textContent,Ae=!0)),i=fe.getPooled(i,t,n,r),o?i.data=o:null!==(o=Oe(n))&&(i.data=o),q(i),o=i):o=null,(e=ye?function(e,t){switch(e){case"compositionend":return Oe(t);case"keypress":return 32!==t.which?null:(Se=!0,be);case"textInput":return(e=t.data)===be&&Se?null:e;default:return null}}(e,n):function(e,t){if(Ae)return"compositionend"===e||!me&&Te(e,t)?(e=ae(),oe=ie=re=null,Ae=!1,e):null;switch(e){default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1