(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[1814],{77539:e=>{var t;t=function(){return function(){var e={254:function(e,t,n){e.exports=n(721).default},721:function(e,t,n){"use strict";var o=n(48),i=n.n(o),r=n(153),a=n.n(r),s=n(961),l=n.n(s);function c(e){return c="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},c(e)}var u=l().log,d=l().utils.secondsToMs,p=l().utils.assign,f=l().utils.getComputedStyle,h=l().utils.extractHostname,m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i().shaka;if("object"!==c(e)||void 0===e.constructor.version)return u.warn("[shakaPlayer-mux] You must provide a valid shakaPlayer to initShakaPlayerMux."),{emit:function(){u.warn("[shakaPlayer-mux] emit is a no-op because initShakaPlayerMux was not initialized correctly")},loadErrorHandler:function(){u.warn("[shakaPlayer-mux] loadErrorHandler is a no-op because initShakaPlayerMux was not initialized correctly")}};var o=function(t){return e.getMediaElement()&&e.getMediaElement()[t]},r=function(t){var n=e.getMediaElement();if(n)return parseInt(f(n,t))},s=function(){var e=o("preload");return"auto"===e||"metadata"===e};function m(){var t=a().fullscreenElement||a().webkitFullscreenElement||a().mozFullScreenElement||a().msFullscreenElement;return t?t===e.getMediaElement():void 0}(t=p({automaticErrorTracking:!0},t)).data=p({player_software_name:"Shaka Player",player_software_version:e.constructor.version,player_mux_plugin_name:"shakaplayer-mux",player_mux_plugin_version:"5.8.5"},t.data);var g=l().utils.generateShortID();e.mux={},e.mux.emit=function(e,t){l().emit(g,e,t)},t.getPlayheadTime=function(){return d(o("currentTime"))},t.getStateData=function(){var t=e.getStats();return{player_is_paused:o("paused"),player_width:r("width"),player_height:r("height"),video_source_height:t.height,video_source_width:t.width,player_is_fullscreen:m(),player_autoplay_on:o("autoplay"),player_preload_on:s(),video_source_url:e.getAssetUri(),video_source_duration:d(o("duration")),view_dropped_frame_count:t.droppedFrames,video_poster_url:o("poster"),player_language_code:o("lang")}};var v=["pause","play","playing","seeking","seeked","timeupdate","stalled","waiting","ended"],y={},_={},b=!1;_.onstatechange=function(t){!b&&e.getMediaElement()&&function(){b=!0;var t=e.getMediaElement();if(!t)return u.warn("[shakaPlayer-mux] Unable to getMediaElement() on shaka.Player instance when attempting to attachMediaElementEvents()");v.forEach((function(n){y[n]=function(){var o={};"timeupdate"===n&&(o.player_playhead_time=t.currentTime),e.mux.emit(n,o)},t.addEventListener(n,y[n],!1)}))}(),"load"===t.state&&e.mux.emit("playerready")};var S={video_source_bitrate:void 0,video_source_codec:void 0,video_source_fps:void 0},E=function(){var t=function(){var t,n,o=e.getVariantTracks(),i=o&&o.filter((function(e){return e.active})),r=i&&i.map((function(e){return e.bandwidth}));return{video_source_bitrate:r&&r.reduce((function(e,t){return e+t}),0),video_source_codec:null==i||null===(t=i[0])||void 0===t?void 0:t.videoCodec,video_source_fps:null==i||null===(n=i[0])||void 0===n?void 0:n.frameRate}}();t&&JSON.stringify(t)!==JSON.stringify(S)&&(S=t,e.mux.emit("renditionchange",t))};_.adaptation=function(){E()},_.variantchanged=function(){E()},e.addEventListener("onstatechange",_.onstatechange),e.addEventListener("adaptation",_.adaptation),e.addEventListener("variantchanged",_.variantchanged);var A=function(e){var t,o;if(e.message)return e.message;var i=null===(t=n.util)||void 0===t||null===(o=t.Error)||void 0===o?void 0:o.Code;for(var r in i)if(i[r]===e.code)return r;return e.code},T=function(t){var n;2===(null==t?void 0:t.severity)&&e.mux.emit("error",{player_error_code:t.code,player_error_message:A(t),player_error_context:null===(n=t.data)||void 0===n?void 0:n.toString()})};_.error=function(e){if(t.automaticErrorTracking){var n=e.detail;T(n)}},e.addEventListener("error",_.error),e.mux.destroy=function(){Object.keys(_).forEach((function(t){e.removeEventListener(t,_[t]),delete _[t]})),Object.keys(y).forEach((function(t){var n=e.getMediaElement();n&&n.removeEventListener(t,y[t],!1),delete y[t]})),e.mux.emit("destroy")};var P={0:"manifest",1:"media"};return e.getNetworkingEngine().registerResponseFilter((function(t,n){var o=l().utils.now();if(!n.fromCache){var i=P[t&&t.toString()];if(t){var r={request_bytes_loaded:n.data.byteLength,request_hostname:h(n.uri),request_url:n.uri,request_response_headers:n.headers,request_type:i,request_start:n.timeMs?o-n.timeMs:void 0,request_response_end:o};e.mux.emit("requestcompleted",r)}}})),l().init(g,t),{emit:e.mux.emit,loadErrorHandler:T}};m.utils=l().utils,t.default=m},153:function(e,t,n){var o,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},r=n(558);"undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=o},48:function(e,t,n){var o;o="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=o},961:function(e){var t;t=function(){return function(){var e={80:function(e,t,n){e.exports=n(728).default},728:function(e,t,n){"use strict";n.d(t,{default:function(){return lt}});var o=n(48),i=n.n(o),r=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},a=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},s=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||a()),e.muxId):e},l=function(e){var t;e&&void 0!==e.nodeName?e=s(t=e):t=document.querySelector(e);var n=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,n]},c=n(640),u=n.n(c),d=u().methodFactory;u().methodFactory=function(e,t,n){var o=d(e,t,n);return function(){for(var e=["[mux]"],t=0;t=0||0===o.toLowerCase().indexOf("x-litix-"))&&(t[o]=n.join(": "))}})),t}var A=function(e){var t={};for(var n in e){var o=e[n];-1!==o["DATA-ID"].search("io.litix.data.")&&(t[o["DATA-ID"].replace("io.litix.data.","")]=o.VALUE)}return t};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var t=1;t0&&(o=E(p[p.length-1]._responseHeaders||"")),{requestStart:l,requestResponseStart:c,requestResponseEnd:u,requestBytesLoaded:s,requestResponseHeaders:o,requestMediaDuration:d,requestHostname:r,requestUrl:a}},w=function(e){var t;return null===(t=e.match(/.*codecs\*?="(.*)"/))||void 0===t?void 0:t[1]},D=0,M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"on",value:function(e,t,n){return t._eventEmitterGuid=t._eventEmitterGuid||++D,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],n&&(t=t.bind(n)),this._listeners[e].push(t),t}},{key:"off",value:function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,o){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(o,1)}))}},{key:"one",value:function(e,t,n){var o=this;t._eventEmitterGuid=t._eventEmitterGuid||++D;var i=function i(){o.off(e,i),t.apply(n||this,arguments)};i._eventEmitterGuid=t._eventEmitterGuid,this.on(e,i)}},{key:"emit",value:function(e,t){var n=this;if(this._listeners){t=t||{};var o=this._listeners["before*"]||[],i=this._listeners[e]||[],r=this._listeners["after"+e]||[],a=function(t,o){(t=t.slice()).forEach((function(t){t.call(n,{type:e},o)}))};a(o,t),a(i,t),a(r,t)}}}],n&&function(e,t){for(var n=0;n=0&&e>this._playbackTimeTrackerLastPlayheadPosition){var t=e-this._playbackTimeTrackerLastPlayheadPosition;t<=1e3&&b(this.pm.data,"view_content_playback_time",t)}this._playbackTimeTrackerLastPlayheadPosition=e}},{key:"_clearPlaybackTimeState",value:function(){this._updatePlaybackTime(),this._playbackTimeTrackerLastPlayheadPosition=-1}}])&&function(e,t){for(var n=0;n3e5&&(t.emit("viewend"),t.send("viewend"))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",(function(e,t){return i(t)})),t.on("rebufferstart",(function(e,i){n||(b(t.data,"view_rebuffer_count",1),n=i.viewer_time,t.one("rebufferend",o))})),t.on("viewinit",(function(){n=void 0,t.off("rebufferend",o)}))}})),j=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pm=t,t.disableRebufferTracking||t.disablePlayheadRebufferTracking||(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",(function(){n._cleanupRebufferTracker(null,{viewer_time:h.now()})})))}var t,n;return t=e,n=[{key:"_checkIfRebuffering",value:function(e,t){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing)this._cleanupRebufferTracker(e,t);else if(null!==this._lastCheckedTime)if(this._lastPlayheadTime===this.pm.data.player_playhead_time){var n=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&n>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=t.viewer_time}else this._cleanupRebufferTracker(e,t,!0);else this._prepareRebufferTrackerState(t.viewer_time)}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return;var o=this.pm.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&o>0&&i-o>this.pm.minimumRebufferDuration&&(this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-o}))}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}}],n&&function(e,t){for(var n=0;n=0&&t.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var e=t.data.player_playhead_time-n._lastPlayheadPosition;if(e<0)return void(n._lastPlayheadPosition=-1);var o=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),i=Math.max(0,o-1),r=Math.max(0,1-o);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,i),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,r),b(t.data,"view_total_content_playback_time",e),b(t.data,"view_total_upscaling",i*e),b(t.data,"view_total_downscaling",r*e)}n._lastPlayheadPosition=-1}))})),["playing","hb"].forEach((function(e){t.on(e,(function(){n._lastPlayheadPosition=t.data.player_playhead_time,n._lastPlayerWidth=t.data.player_width,n._lastPlayerHeight=t.data.player_height,n._lastSourceWidth=t.data.video_source_width,n._lastSourceHeight=t.data.video_source_height}))}))})),W=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSeeking=!1,t.on("seeking",(function(e,o){Object.assign(t.data,o),n._lastSeekingTime=h.now(),!1===n.isSeeking&&(n.isSeeking=!0,t.send("seeking"))})),t.on("seeked",(function(){n.isSeeking=!1;var e=n._lastSeekingTime||h.now(),o=h.now()-e;b(t.data,"view_seek_count",1),b(t.data,"view_seek_duration",o);var i=t.data.view_max_seek_time||0;t.data.view_max_seek_time=Math.max(i,o)})),t.on("viewend",(function(){n.isSeeking=!1}))}));function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0&&(t.data.view_preroll_request_time=Math.max(0,o.viewer_time-n._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,o.viewer_time-t.data.view_start)),n._prerollPlayTime=o.viewer_time)})),t.on("adplaying",(function(e,o){n.inPrerollPosition()&&void 0===t.data.view_preroll_load_time&&void 0!==n._prerollPlayTime&&(t.data.view_preroll_load_time=o.viewer_time-n._prerollPlayTime,t.data.view_startup_preroll_load_time=o.viewer_time-n._prerollPlayTime)})),t.on("adended",(function(){n._wouldBeNewAdPlay=!0})),t.on("aderror",(function(){n._wouldBeNewAdPlay=!0}))}var t,n;return t=e,(n=[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var t=0;t3e4&&(t.emit("devicesleep",{viewer_time:i}),Object.assign(t.data,{viewer_time:i}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:o}),Object.assign(t.data,{viewer_time:o}),t.send("devicewake"))};t.one("playbackheartbeat",o),t.on("playbackheartbeatend",(function(){t.off("before*",i),t.one("playbackheartbeat",o)}))})),te=n(375),ne=n(655),oe=n.n(ne),ie="muxData",re=function(){var e;try{e=te.parse(oe().get(ie)||"")}catch(t){e={}}return e},ae=function(e){try{oe().set(ie,te.stringify(e),{expires:7300})}catch(e){}},se=function(){var e=re();return e.mux_viewer_id=e.mux_viewer_id||r(),e.msn=e.msn||Math.random(),ae(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},le=function(){var e;switch(ce()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},ce=function(){var e=i().navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};le.getConnectionFromAPI=ce;var ue=le,de=fe({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),pe=fe({ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ep:"experiments",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function fe(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function he(e){var t={},n={};return Object.keys(e).forEach((function(o){var i=!1;if(e.hasOwnProperty(o)&&void 0!==e[o]){var r=o.split("_"),a=r[0],s=de[a];s||(p.info("Data key word `"+r[0]+"` not expected in "+o),s=a+"_"),r.splice(1).forEach((function(e){"url"===e&&(i=!0),pe[e]?s+=pe[e]:Number(e)&&Math.floor(Number(e))===Number(e)?s+=e:(p.info("Data key word `"+e+"` not expected in "+o),s+="_"+e+"_")})),i?n[s]=e[o]:t[s]=e[o]}})),Object.assign(t,n)}var me={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},ge=["hb","requestcompleted","requestfailed","requestcanceled"],ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},me,t)};ve.prototype.queueEvent=function(e,t){var n=Object.assign({},t);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},ve.prototype.flushEvents=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&1===this._eventQueue.length?this._eventQueue.pop():(this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending())},ve.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),i().clearTimeout(this._sendTimeout)},ve.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],he({mux_view_message:"event queue truncated"}));var n=this._createPayload(t);ye(this._beaconUrl,n,!0,(function(){}))},ve.prototype._sendBeaconQueue=function(){var e=this;if(!this._postInFlight){var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(t),o=h.now();ye(this._beaconUrl,n,!1,(function(n,i){i?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,p.info("Error sending beacon: "+i)):e._failureCount=0,e._roundTripTime=h.now()-o,e._postInFlight=!1}))}},ve.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},ve.prototype._startBeaconSending=function(){var e=this;i().clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=i().setTimeout((function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()}),this._getNextBeaconTime()))},ve.prototype._createPayload=function(e){var t,n,o,i=this,r={transmission_timestamp:Math.round(h.now())};this._roundTripTime&&(r.rtt_ms=Math.round(this._roundTripTime));var a=function(){t=JSON.stringify({metadata:r,events:n||e}),o=t.length/1024},s=function(){return o<=i._options.maxPayloadKBSize};return a(),s()||(p.info("Payload size is too big ("+o+" kb). Removing unnecessary events."),n=e.filter((function(e){return-1===ge.indexOf(e.e)})),a()),s()||(p.info("Payload size still too big ("+o+" kb). Cropping fields.."),n.forEach((function(e){for(var t in e){var n=e[t];"string"==typeof n&&n.length>51200&&(e[t]=n.substring(0,51200))}})),a()),t};var ye=function(e,t,n,o){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t))o();else if(i().fetch)i().fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:!0}).then((function(e){return o(null,e.ok?null:"Error")})).catch((function(e){return o(null,e)}));else{if(i().XMLHttpRequest){var r=new(i().XMLHttpRequest);return r.onreadystatechange=function(){if(4===r.readyState)return o(null,200!==r.status?"error":void 0)},r.open("POST",e),r.setRequestHeader("Content-Type","text/plain"),void r.send(t)}o()}},_e=ve;function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Te(this,"previousBeaconData",null),Te(this,"lastEventTime",0),Te(this,"rateLimited",!1),this.mux=t,this.envKey=n,this.options=_,this.eventQueue=new _e(function(e,t){var n=t.beaconCollectionDomain,o=t.beaconDomain;if(n)return"https://"+n;var i=o||"litix.io";return(e=e||"inferred").match(/^[a-z0-9]+$/)?"https://"+e+"."+i:"https://img.litix.io/a.gif"}(this.envKey,this.options)),this.sampleRate=null!==(o=this.options.sampleRate)&&void 0!==o?o:1,this.disableCookies=null!==(r=this.options.disableCookies)&&void 0!==r&&r,this.respectDoNotTrack=null!==(a=this.options.respectDoNotTrack)&&void 0!==a&&a,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(s=this.options.platform)||void 0===s?void 0:s.name,viewer_application_version:null===(l=this.options.platform)||void 0===l?void 0:l.version,viewer_application_engine:null===(c=this.options.platform)||void 0===c?void 0:c.layout,viewer_device_name:null===(u=this.options.platform)||void 0===u?void 0:u.product,viewer_device_category:"",viewer_device_manufacturer:null===(d=this.options.platform)||void 0===d?void 0:d.manufacturer,viewer_os_family:null===(p=this.options.platform)||void 0===p||null===(f=p.os)||void 0===f?void 0:f.family,viewer_os_architecture:null===(h=this.options.platform)||void 0===h||null===(m=h.os)||void 0===m?void 0:m.architecture,viewer_os_version:null===(g=this.options.platform)||void 0===g||null===(v=g.os)||void 0===v?void 0:v.version,viewer_connection_type:ue(),page_url:null===i()||void 0===i()||null===(y=i().location)||void 0===y?void 0:y.href},this.viewerData=this.disableCookies?{}:se()}var t,n;return t=e,(n=[{key:"send",value:function(e,t){var n;if(e&&null!=t&&t.view_id){if(this.respectDoNotTrack&&f())return p.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!==Ae(t))return p.error("A data object was expected in send() but was not provided");var o,i,a=this.disableCookies?{}:(o=re(),i=h.now(),o.session_start&&(o.sst=o.session_start,delete o.session_start),o.session_id&&(o.sid=o.session_id,delete o.session_id),o.session_expires&&(o.sex=o.session_expires,delete o.session_expires),(!o.sex||o.sex=this.sampleRate,c=he(this._deduplicateBeaconData(e,s));if(this.lastEventTime=this.mux.utils.now(),l)return p.info("Not sending event due to sample rate restriction",e,s,c);if(this.envKey||p.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,s,c),!this.rateLimited)if(p.info("Sending event",e,s,c),this.rateLimited=!this.eventQueue.queueEvent(e,c),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&"hb"===e?this.eventQueue.flushEvents(!0):Ce.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return s.event="eventrateexceeded",c=he(s),this.eventQueue.queueEvent(s.event,c),p.error("Beaconing disabled due to rate limit.")}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,t){var n=this,o={},i=t.view_id;if("-1"===i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)o=Ee({},t),i&&(this.previousBeaconData=o),i&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.entries(t).forEach((function(t){var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),2!==r.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return be(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t),a=i[0],s=i[1];n.previousBeaconData&&(s!==n.previousBeaconData[a]||Pe.indexOf(a)>-1||n.objectHasChanged(r,a,s,n.previousBeaconData[a])||n.eventRequiresKey(e,a))&&(o[a]=s,n.previousBeaconData[a]=s)}))}return o}},{key:"objectHasChanged",value:function(e,t,n,o){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===Ae(n)&&"object"===Ae(o)&&Object.keys(n||{}).length===Object.keys(o||{}).length)}},{key:"eventRequiresKey",value:function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")||!(0!==t.indexOf("ad_id")||!Oe.includes(e))}}])&&function(e,t){for(var n=0;n0&&f>0){var h=f/c*8e3;a++,o+=f,i+=c,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,h),t.data.view_average_request_throughput=o/i*8e3,t.data.view_request_count=r,l>0&&(n+=l,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,l),t.data.view_average_request_latency=n/a)}})),t.on("requestfailed",(function(e,n){r++,s++,t.data.view_request_count=r,t.data.view_request_failed_count=s})),t.on("requestcanceled",(function(e,n){r++,l++,t.data.view_request_count=r,t.data.view_request_canceled_count=l}))})),Le=function(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.on("before*",(function(e,o){var i=o.viewer_time,r=h.now(),a=n._lastEventTime;if(n._lastEventTime=r,a&&r-a>36e5){var s=Object.keys(t.data).reduce((function(e,n){return 0===n.indexOf("video_")?Object.assign(e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,t.data[n])):e}),{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view"),t.emit("viewinit",Object.assign({viewer_time:i},s)),t.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==e.type&&"adbreakstart"!==e.type&&(t.emit("play",{viewer_time:i}),"playing"!==e.type&&t.emit("playing",{viewer_time:i}))}}))}));function Ie(e){return Ie="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},Ie(e)}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n0||t.video_source_duration>0)&&(t.video_source_is_live=!1)),t.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach((function(e){t[e]=void 0})),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),2!==r.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return Ne(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(g(t.video_source_url)),o=n[0],i=n[1];t.video_source_domain=i,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(),"viewend"===e&&(this.mux.log.warn("Ending view, any future events will be ignored unless a programchange or videochange occurs."),delete this.data.view_id)}}},{key:"_updateStateData",value:function(){Object.assign(this.data,this.getStateData()),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value: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")}}))}},{key:"_resetVideoData",value:function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))}},{key:"_resetViewData",value: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}},{key:"_resetErrorData",value:function(e,t){delete this.data.player_error_code,delete this.data.player_error_message}},{key:"_initializeViewData",value:function(){var e=this,t=this.data.view_id=r(),n=function(){t===e.data.view_id&&b(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",n):n()}},{key:"_restartHeartBeat",value:function(){var e=this;window.clearTimeout(this._heartBeatTimeout),this.errorTracker.viewErrored||(this._heartBeatTimeout=window.setTimeout((function(){e.data.player_is_paused||e.emit("hb")}),1e4))}},{key:"addHLSJS",value:function(e){e.hlsjs?this.hlsjs?this.mux.log.warn("An instance of HLS.js is already being monitored for this player."):(this.hlsjs=e.hlsjs,function(e,t,n){var o=arguments.length>4?arguments[4]:void 0,i=e.log,r=e.utils.secondsToMs,a=function(e){var t,n=parseInt(o.version);return 1===n&&null!==e.programDateTime&&(t=e.programDateTime),0===n&&null!==e.pdt&&(t=e.pdt),t};if(v()){var s=function(n,o){return e.emit(t,n,o)},l=function(e,t){var n=t.levels,o=t.audioTracks,i=t.url,r=t.stats,a=t.networkDetails,l=t.sessionData,c={},u={};n.forEach((function(e,t){c[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}})),o.forEach((function(e,t){u[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var d=C(r),p=d.bytesLoaded,f=d.requestStart,h=d.responseStart,g=d.responseEnd;s("requestcompleted",P(P({},A(l)),{},{request_event_type:e,request_bytes_loaded:p,request_start:f,request_response_start:h,request_response_end:g,request_type:"manifest",request_hostname:m(i),request_response_headers:k(a),request_rendition_lists:{media:c,audio:u,video:{}}}))};n.on(o.Events.MANIFEST_LOADED,l);var c=function(e,t){var n=t.details,o=t.level,i=t.networkDetails,l=t.stats,c=C(l),u=c.bytesLoaded,d=c.requestStart,p=c.responseStart,f=c.responseEnd,h=n.fragments[n.fragments.length-1],g=a(h)+r(h.duration);s("requestcompleted",{request_event_type:e,request_bytes_loaded:u,request_start:d,request_response_start:p,request_response_end:f,request_current_level:o,request_type:"manifest",request_hostname:m(n.url),request_response_headers:k(i),video_holdback:n.holdBack&&r(n.holdBack),video_part_holdback:n.partHoldBack&&r(n.partHoldBack),video_part_target_duration:n.partTarget&&r(n.partTarget),video_target_duration:n.targetduration&&r(n.targetduration),video_source_is_live:n.live,player_manifest_newest_program_time:isNaN(g)?void 0:g})};n.on(o.Events.LEVEL_LOADED,c);var u=function(e,t){var n=t.details,o=t.networkDetails,i=t.stats,r=C(i),a=r.bytesLoaded,l=r.requestStart,c=r.responseStart,u=r.responseEnd;s("requestcompleted",{request_event_type:e,request_bytes_loaded:a,request_start:l,request_response_start:c,request_response_end:u,request_type:"manifest",request_hostname:m(n.url),request_response_headers:k(o)})};n.on(o.Events.AUDIO_TRACK_LOADED,u);var d=function(e,t){var o=t.stats,i=t.networkDetails,r=t.frag;o=o||r.stats;var a=C(o),l=a.bytesLoaded,c=a.requestStart,u=a.responseStart,d=a.responseEnd,p=k(i),f=null==p?void 0:p["x-request-id"],h={request_event_type:e,request_bytes_loaded:l,request_start:c,request_response_start:u,request_response_end:d,request_hostname:i?m(i.responseURL):void 0,request_id:f,request_response_headers:p,request_media_duration:r.duration,request_url:null==i?void 0:i.responseURL};"main"===r.type?(h.request_type="media",h.request_current_level=r.level,h.request_video_width=(n.levels[r.level]||{}).width,h.request_video_height=(n.levels[r.level]||{}).height,h.request_labeled_bitrate=(n.levels[r.level]||{}).bitrate):h.request_type=r.type,s("requestcompleted",h)};n.on(o.Events.FRAG_LOADED,d);var p=function(e,t){var n=t.frag,o=n.start,i={currentFragmentPDT:a(n),currentFragmentStart:r(o)};s("fragmentchange",i)};n.on(o.Events.FRAG_CHANGED,p);var f=function(e,t){var n=t.type,i=t.details,r=t.response,a=t.fatal,l=t.frag,c=(null==l?void 0:l.url)||t.url||"";if(i!==o.ErrorDetails.MANIFEST_LOAD_ERROR&&i!==o.ErrorDetails.MANIFEST_LOAD_TIMEOUT&&i!==o.ErrorDetails.FRAG_LOAD_ERROR&&i!==o.ErrorDetails.FRAG_LOAD_TIMEOUT&&i!==o.ErrorDetails.LEVEL_LOAD_ERROR&&i!==o.ErrorDetails.LEVEL_LOAD_TIMEOUT&&i!==o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR&&i!==o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT&&i!==o.ErrorDetails.SUBTITLE_LOAD_ERROR&&i!==o.ErrorDetails.SUBTITLE_LOAD_TIMEOUT&&i!==o.ErrorDetails.KEY_LOAD_ERROR&&i!==o.ErrorDetails.KEY_LOAD_TIMEOUT||s("requestfailed",{request_error:i,request_url:c,request_hostname:m(c),request_type:i===o.ErrorDetails.FRAG_LOAD_ERROR||i===o.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":i===o.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||i===o.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":i===o.ErrorDetails.SUBTITLE_LOAD_ERROR||i===o.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":i===o.ErrorDetails.KEY_LOAD_ERROR||i===o.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==r?void 0:r.code,request_error_text:null==r?void 0:r.text}),a){var u,d="".concat(c?"url: ".concat(c,"\n"):"")+"".concat(r&&(r.code||r.text)?"response: ".concat(r.code,", ").concat(r.text,"\n"):"")+"".concat(t.reason?"failure reason: ".concat(t.reason,"\n"):"")+"".concat(t.level?"level: ".concat(t.level,"\n"):"")+"".concat(t.parent?"parent stream controller: ".concat(t.parent,"\n"):"")+"".concat(t.buffer?"buffer length: ".concat(t.buffer,"\n"):"")+"".concat(t.error?"error: ".concat(t.error,"\n"):"")+"".concat(t.event?"event: ".concat(t.event,"\n"):"")+"".concat(t.err?"error message: ".concat(null===(u=t.err)||void 0===u?void 0:u.message,"\n"):"");s("error",{player_error_code:n,player_error_message:i,player_error_context:d})}};n.on(o.Events.ERROR,f);var h=function(e,t){var n=t.frag,o=n&&n._url||"";s("requestcanceled",{request_event_type:e,request_url:o,request_type:"media",request_hostname:m(o)})};n.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,h);var g=function(e,t){var o=t.level,r=n.levels[o];if(r&&r.attrs&&r.attrs.BANDWIDTH){var a,l=r.attrs.BANDWIDTH,c=parseFloat(r.attrs["FRAME-RATE"]);isNaN(c)||(a=c),l?s("renditionchange",{video_source_fps:a,video_source_bitrate:l,video_source_width:r.width,video_source_height:r.height,video_source_rendition_name:r.name,video_source_codec:null==r?void 0:r.videoCodec}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(o.Events.LEVEL_SWITCHED,g),n._stopMuxMonitor=function(){n.off(o.Events.MANIFEST_LOADED,l),n.off(o.Events.LEVEL_LOADED,c),n.off(o.Events.AUDIO_TRACK_LOADED,u),n.off(o.Events.FRAG_LOADED,d),n.off(o.Events.FRAG_CHANGED,p),n.off(o.Events.ERROR,f),n.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,h),n.off(o.Events.LEVEL_SWITCHED,g),n.off(o.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(o.Events.DESTROYING,n._stopMuxMonitor)}else i.warn("performance timing not supported. Not tracking HLS.js.")}(this.mux,this.id,e.hlsjs,{},e.Hls||window.Hls)):this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.")}},{key:"removeHLSJS",value:function(){var e;this.hlsjs&&((e=this.hlsjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.hlsjs=void 0)}},{key:"addDashJS",value:function(e){e.dashjs?this.dashjs?this.mux.log.warn("An instance of Dash.js is already being monitored for this player."):(this.dashjs=e.dashjs,function(e,t,n){var o=e.log;if(n&&n.on){var i=function(n,o){return e.emit(t,n,o)},r=function(e){var t=e.type,n=(e.data||{}).url;i("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:m(n),request_url:n})};n.on("manifestLoaded",r);var a={},s=function(e){var t=e.type,o=e.fragmentModel,r=(e.chunk||{}).mediaInfo||{},s=r.type,l=r.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"===s?a.video=c:"audio"===s?a.audio=c:a.media=c;var u=N(o,n),d=u.requestStart,p=u.requestResponseStart,f=u.requestResponseEnd,h=u.requestResponseHeaders,m=u.requestMediaDuration,g=u.requestHostname,v=u.requestUrl;i("requestcompleted",{request_event_type:t,request_start:d,request_response_start:p,request_response_end:f,request_bytes_loaded:-1,request_type:s+"_init",request_response_headers:h,request_hostname:g,request_url:v,request_media_duration:m,request_rendition_lists:a})};n.on("initFragmentLoaded",s);var l=function(e){var t=e.type,o=e.fragmentModel,r=e.chunk||{},a=r.mediaInfo,s=r.start,l=(a||{}).type,c=N(o,n),u=c.requestStart,d=c.requestResponseStart,p=c.requestResponseEnd,f=c.requestBytesLoaded,h=c.requestResponseHeaders,m=c.requestMediaDuration,g=c.requestHostname,v=c.requestUrl,y=function(e,t){var n=t.getQualityFor(e),o=t.getCurrentTrackFor(e).bitrateList;return o?{currentLevel:n,renditionWidth:o[n].width||null,renditionHeight:o[n].height||null,renditionBitrate:o[n].bandwidth}:{}}(l,n),_=y.currentLevel,b=y.renditionWidth,S=y.renditionHeight,E=y.renditionBitrate;i("requestcompleted",{request_event_type:t,request_start:u,request_response_start:d,request_response_end:p,request_bytes_loaded:f,request_type:l,request_response_headers:h,request_hostname:g,request_url:v,request_media_start_time:s,request_media_duration:m,request_current_level:_,request_labeled_bitrate:E,request_video_width:b,request_video_height:S})};n.on("mediaFragmentLoaded",l);var c={video:void 0,audio:void 0,totalBitrate:void 0},u=function(e,t,r){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){c[a]=L(L({},s),{},{codec:n.getCurrentTrackFor(a).codec});var l=function(){if(c.video&&"number"==typeof c.video.bitrate){if(c.video.width&&c.video.height){var e=c.video.bitrate;return c.audio&&"number"==typeof c.audio.bitrate&&(e+=c.audio.bitrate),e!==c.totalBitrate?(c.totalBitrate=e,{video_source_bitrate:e,video_source_height:c.video.height,video_source_width:c.video.width,video_source_codec:w(c.video.codec)}):void 0}o.warn("have bitrate info for video but missing width/height")}}();l&&i("renditionchange",l)}else o.warn("missing bitrate info for ".concat(a))}}else o.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",u);var d=function(e){var t=e.request,n=e.mediaType;i("requestcanceled",{request_event_type:(t=t||{}).type+"_"+t.action,request_url:t.url,request_type:n,request_hostname:m(t.url)})};n.on("fragmentLoadingAbandoned",d);var p=function(e){var t,n,o=e.error,r=(null==o||null===(t=o.data)||void 0===t?void 0:t.request)||{},a=(null==o||null===(n=o.data)||void 0===n?void 0:n.response)||{};27===(null==o?void 0:o.code)&&i("requestfailed",{request_error:r.type+"_"+r.action,request_url:r.url,request_hostname:m(r.url),request_type:r.mediaType,request_error_code:a.status,request_error_text:a.statusText});var s="".concat(null!=r&&r.url?"url: ".concat(r.url,"\n"):"")+"".concat(null!=a&&a.status||null!=a&&a.statusText?"response: ".concat(null==a?void 0:a.status,", ").concat(null==a?void 0:a.statusText,"\n"):"");i("error",{player_error_code:null==o?void 0:o.code,player_error_message:null==o?void 0:o.message,player_error_context:s})};n.on("error",p),n._stopMuxMonitor=function(){n.off("manifestLoaded",r),n.off("initFragmentLoaded",s),n.off("mediaFragmentLoaded",l),n.off("qualityChangeRendered",u),n.off("error",p),n.off("fragmentLoadingAbandoned",d),delete n._stopMuxMonitor}}else o.warn("Invalid dash.js player reference. Monitoring blocked.")}(this.mux,this.id,e.dashjs)):this.mux.log.warn("You must pass a valid dashjs instance in order to track it.")}},{key:"removeDashJS",value:function(){var e;this.dashjs&&((e=this.dashjs)&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor(),this.dashjs=void 0)}}],n&&function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n-1;t=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},We.prototype.processLine=function(e){var t=e.indexOf(":"),n=et(e,t),o=n[0],i=2===n.length?Xe(n[1]):void 0;if("#"!==o[0])this.currentUri.uri=o,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(o){case"#EXT-X-TARGETDURATION":if(!isFinite(i)||i<0)return;this.manifest.targetDuration=i,this.setHoldBack();break;case"#EXT-X-PART-INF":ze(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case"#EXT-X-SERVER-CONTROL":ze(this.manifest,n),this.setHoldBack();break;case"#EXTINF":0===i?this.currentUri.duration=.01:i>0&&(this.currentUri.duration=i);break;case"#EXT-X-PROGRAM-DATE-TIME":var r=i,a=new Date(r);this.manifest.dateTimeString||(this.manifest.dateTimeString=r,this.manifest.dateTimeObject=a),this.currentUri.dateTimeString=r,this.currentUri.dateTimeObject=a;break;case"#EXT-X-VERSION":ze(this.manifest,n);break;case"#EXT-X-SESSION-DATA":var s=tt(n[1]),l=A(s);Object.assign(this.manifest.sessionData,l)}},We.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,n=e.targetDuration,o=e.partTargetDuration;if(t){var i="holdBack",r="partHoldBack",a=n&&3*n,s=o&&2*o;n&&!t.hasOwnProperty(i)&&(t[i]=a),a&&t[i]1&&(t[qe(n[0])]=Xe(n[1])),t},Qe=function(e){for(var t=e.split(","),n={},o=0;t.length>o;o++){var i=t[o],r=Ze(i);n=Object.assign(r,n)}return n},$e=function(e){return e.indexOf("=")>-1},et=function(e,t){return-1===t?[e]:[e.substring(0,t),e.substring(t+1)]},tt=function(e){var t={};if(e){var n=e.search(",");return[e.slice(0,n),e.slice(n+1)].forEach((function(e,n){for(var o=e.replace(/['"]+/g,"").split("="),i=0;ie.length)&&(t=e.length);for(var n=0,o=new Array(t);n0){var l=i.getStartDate();if(l&&"function"==typeof l.getTime&&l.getTime()){var d=l.getTime();if(a.player_program_time=d+s,i.seekable.length>0){var p=d+i.seekable.end(i.seekable.length-1);a.player_live_edge_program_time=p}}}return a},i.mux=i.mux||{},i.mux.deleted=!1,i.mux.emit=function(t,n){e.emit(r,t,n)};var d=function(){s.error("The monitor for this video element has already been destroyed.")};i.mux.destroy=function(){Object.keys(i.mux.listeners).forEach((function(e){i.removeEventListener(e,i.mux.listeners[e],!1)})),delete i.mux.listeners,i.mux.destroy=d,i.mux.swapElement=d,i.mux.emit=d,i.mux.addHLSJS=d,i.mux.addDashJS=d,i.mux.removeHLSJS=d,i.mux.removeDashJS=d,i.mux.deleted=!0,e.emit(r,"destroy")},i.mux.swapElement=function(t){var n=Je(l(t),3),o=n[0],r=n[1],a=n[2];return o?"video"!==a&&"audio"!==a?e.log.error("The element of `"+r+"` was not a media element."):(o.muxId=i.muxId,delete i.muxId,o.mux=o.mux||{},o.mux.listeners=Object.assign({},i.mux.listeners),delete i.mux.listeners,Object.keys(o.mux.listeners).forEach((function(e){i.removeEventListener(e,o.mux.listeners[e],!1),o.addEventListener(e,o.mux.listeners[e],!1)})),o.mux.swapElement=i.mux.swapElement,o.mux.destroy=i.mux.destroy,delete i.mux,void(i=o)):e.log.error("No element was found with the `"+r+"` query selector.")},i.mux.addHLSJS=function(t){e.addHLSJS(r,t)},i.mux.addDashJS=function(t){e.addDashJS(r,t)},i.mux.removeHLSJS=function(){e.removeHLSJS(r)},i.mux.removeDashJS=function(){e.removeDashJS(r)},e.init(r,n),e.emit(r,"playerready"),i.paused||(e.emit(r,"play"),i.readyState>2&&e.emit(r,"playing")),i.mux.listeners={},Ke.forEach((function(t){("error"!==t||n.automaticErrorTracking)&&(i.mux.listeners[t]=function(){var n={};if("error"===t){if(!i.error)return;if(1===i.error.code)return;n.player_error_code=i.error.code,n.player_error_message=Ye[i.error.code]||i.error.message}e.emit(r,t,n)},i.addEventListener(t,i.mux.listeners[t],!1))}))}(at,e,t)},destroyMonitor:function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),1!==r.length);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(e,1):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l(e))[0];t&&t.mux&&"function"==typeof t.mux.destroy?t.mux.destroy():p.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var n=s(e);rt[n]?rt[n].addHLSJS(t):p.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(e,t){var n=s(e);rt[n]?rt[n].addDashJS(t):p.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(e){var t=s(e);rt[t]?rt[t].removeHLSJS():p.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=s(e);rt[t]?rt[t].removeDashJS():p.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){f()&&t&&t.respectDoNotTrack&&p.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=s(e);rt[n]=new Ue(at,n,t)},emit:function(e,t,n){var o=s(e);rt[o]?(rt[o].emit(t,n),"destroy"===t&&delete rt[o]):p.error("A monitor for `"+o+"` has not been initialized.")},checkDoNotTrack:f,log:p,utils:ot,events:{PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled"},WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(at,st),void 0!==i()&&"function"==typeof i().addEventListener&&i().addEventListener("pagehide",(function(e){e.persisted||(at.WINDOW_UNLOADING=!0)}),!1);var lt=at},655:function(e,t,n){var o,i;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(a){var s=!1;if(void 0===(i="function"==typeof(o=a)?o.call(t,n,t,e):o)||(e.exports=i),s=!0,"object"===r(t)&&(e.exports=a(),s=!0),!s){var l=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=l,c}}}((function(){var e=function(){for(var e=0,t={};e1){if("number"==typeof(r=e({path:"/"},o.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}return i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",i,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;u=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(r=n,!1!==o&&u(n),s.call(a,n,e),typeof console===t&&n{"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>o})},87401:(e,t,n)=>{"use strict";function o(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:()=>o})},11153:(e,t,n)=>{"use strict";n.d(t,{Re:()=>r,Zq:()=>a,kK:()=>i});var o=n(87401);function i(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function r(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},98566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(33976),i=n(11153);const r={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]||{},r=t.attributes[e]||{},a=t.elements[e];(0,i.Re)(a)&&(0,o.Z)(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[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 r=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)(r)&&(0,o.Z)(r)&&(Object.assign(r.style,s),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}},75473:(e,t,n)=>{"use strict";function o(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:()=>_e});var i=n(87401);function r(e){var t=(0,i.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var a=n(11153);var s=n(33976);function l(e){return(((0,a.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return o(l(e)).left+r(e).scrollLeft}function u(e){return(0,i.Z)(e).getComputedStyle(e)}function d(e){var t=u(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function p(e,t,n){void 0===n&&(n=!1);var u=(0,a.Re)(t),p=(0,a.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),f=l(t),h=o(e,p),m={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(u||!u&&!n)&&(("body"!==(0,s.Z)(t)||d(f))&&(m=function(e){return e!==(0,i.Z)(e)&&(0,a.Re)(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:r(e);var t}(t)),(0,a.Re)(t)?((g=o(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):f&&(g.x=c(f))),{x:h.left+m.scrollLeft-g.x,y:h.top+m.scrollTop-g.y,width:h.width,height:h.height}}function f(e){var t=o(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 m(e){return["html","body","#document"].indexOf((0,s.Z)(e))>=0?e.ownerDocument.body:(0,a.Re)(e)&&d(e)?e:m(h(e))}function g(e,t){var n;void 0===t&&(t=[]);var o=m(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=(0,i.Z)(o),s=r?[a].concat(a.visualViewport||[],d(o)?o:[]):o,l=t.concat(s);return r?l:l.concat(g(h(s)))}function v(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&&v(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 o=u(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var b="top",S="bottom",E="right",A="left",T="auto",P=[b,S,E,A],O="start",C="end",k="clippingParents",R="viewport",L="popper",I="reference",N=P.reduce((function(e,t){return e.concat([t+"-"+O,t+"-"+C])}),[]),w=[].concat(P,[T]).reduce((function(e,t){return e.concat([t,t+"-"+O,t+"-"+C])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function M(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),o}var x={placement:"bottom",modifiers:[],strategy:"absolute"};function F(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function H(e){var t,n=e.reference,o=e.element,i=e.placement,r=i?G(i):null,a=i?J(i):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(r){case b:t={x:s,y:n.y-o.height};break;case S:t={x:s,y:n.y+n.height};break;case E:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?j(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case O:t[c]=t[c]-(n[u]/2-o[u]/2);break;case C:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}const K={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Y=Math.max,W=Math.min,z=Math.round,q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(e){var t,n=e.popper,o=e.popperRect,r=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,o=window.devicePixelRatio||1;return{x:z(z(t*o)/o)||0,y:z(z(n*o)/o)||0}}(s):"function"==typeof f?f(s):s,m=h.x,g=void 0===m?0:m,v=h.y,y=void 0===v?0:v,T=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),O=A,k=b,R=window;if(p){var L=_(n),I="clientHeight",N="clientWidth";L===(0,i.Z)(n)&&"static"!==u(L=l(n)).position&&"absolute"===c&&(I="scrollHeight",N="scrollWidth"),r!==b&&(r!==A&&r!==E||a!==C)||(k=S,y-=L[I]-o.height,y*=d?1:-1),r!==A&&(r!==b&&r!==S||a!==C)||(O=E,g-=L[N]-o.width,g*=d?1:-1)}var w,D=Object.assign({position:c},p&&q);return d?Object.assign({},D,((w={})[k]=P?"0":"",w[O]=T?"0":"",w.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",w)):Object.assign({},D,((t={})[k]=P?y+"px":"",t[O]=T?g+"px":"",t.transform="",t))}const Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:G(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,X(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,X(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 Q=n(98566);const $={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,r=void 0===i?[0,0]:i,a=w.reduce((function(e,n){return e[n]=function(e,t,n){var o=G(e),i=[A,b].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[A,E].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),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[o]=a}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ne={start:"end",end:"start"};function oe(e){return e.replace(/start|end/g,(function(e){return ne[e]}))}function ie(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Zq)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}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 ae(e,t){return t===R?re(function(e){var t=(0,i.Z)(e),n=l(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,u=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,u=o.offsetTop)),{width:r,height:a,x:s+c(e),y:u}}(e)):(0,a.Re)(t)?function(e){var t=o(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),o=r(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=Y(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Y(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-o.scrollLeft+c(e),p=-o.scrollTop;return"rtl"===u(i||n).direction&&(d+=Y(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:d,y:p}}(l(e)))}function se(e,t,n){var o="clippingParents"===t?function(e){var t=g(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)&&ie(e,n)&&"body"!==(0,s.Z)(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),r=i[0],l=i.reduce((function(t,n){var o=ae(e,n);return t.top=Y(o.top,t.top),t.right=W(o.right,t.right),t.bottom=W(o.bottom,t.bottom),t.left=Y(o.left,t.left),t}),ae(e,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function le(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.boundary,c=void 0===s?k:s,u=n.rootBoundary,d=void 0===u?R:u,p=n.elementContext,f=void 0===p?L:p,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,y=le("number"!=typeof v?v:ce(v,P)),_=f===L?I:L,A=e.rects.popper,T=e.elements[m?_:f],O=se((0,a.kK)(T)?T:T.contextElement||l(e.elements.popper),c,d),C=o(e.elements.reference),N=H({reference:C,element:A,strategy:"absolute",placement:r}),w=re(Object.assign({},A,N)),D=f===L?w:C,M={top:O.top-D.top+y.top,bottom:D.bottom-O.bottom+y.bottom,left:O.left-D.left+y.left,right:D.right-O.right+y.right},x=e.modifiersData.offset;if(f===L&&x){var F=x[r];Object.keys(M).forEach((function(e){var t=[E,S].indexOf(e)>=0?1:-1,n=[b,S].indexOf(e)>=0?"y":"x";M[e]+=F[n]*t}))}return M}const de={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,r=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,m=n.allowedAutoPlacements,g=t.options.placement,v=G(g),y=l||(v===g||!h?[te(g)]:function(e){if(G(e)===T)return[];var t=te(e);return[oe(e),t,oe(t)]}(g)),_=[g].concat(y).reduce((function(e,n){return e.concat(G(n)===T?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?w:l,u=J(o),d=u?s?N:N.filter((function(e){return J(e)===u})):P,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]=ue(e,{placement:n,boundary:i,rootBoundary:r,padding:a})[G(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:m}):n)}),[]),C=t.rects.reference,k=t.rects.popper,R=new Map,L=!0,I=_[0],D=0;D<_.length;D++){var M=_[D],x=G(M),F=J(M)===O,U=[b,S].indexOf(x)>=0,B=U?"width":"height",V=ue(t,{placement:M,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=U?F?E:A:F?S:b;C[B]>k[B]&&(j=te(j));var H=te(j),K=[];if(r&&K.push(V[x]<=0),s&&K.push(V[j]<=0,V[H]<=0),K.every((function(e){return e}))){I=M,L=!1;break}R.set(M,K)}if(L)for(var Y=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 I=t,"break"},W=h?3:1;W>0;W--){if("break"===Y(W))break}t.placement!==I&&(t.modifiersData[o]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return Y(e,W(t,n))}const fe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,r=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,m=n.tetherOffset,g=void 0===m?0:m,v=ue(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=G(t.placement),T=J(t.placement),P=!T,C=j(y),k="x"===C?"y":"x",R=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,N="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,w={x:0,y:0};if(R){if(r||s){var D="y"===C?b:A,M="y"===C?S:E,x="y"===C?"height":"width",F=R[C],U=R[C]+v[D],B=R[C]-v[M],V=h?-I[x]/2:0,H=T===O?L[x]:I[x],K=T===O?-I[x]:-L[x],z=t.elements.arrow,q=h&&z?f(z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=X[D],Q=X[M],$=pe(0,L[x],q[x]),ee=P?L[x]/2-V-$-Z-N:H-$-Z-N,te=P?-L[x]/2+V+$+Q+N:K+$+Q+N,ne=t.elements.arrow&&_(t.elements.arrow),oe=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][C]:0,re=R[C]+ee-ie-oe,ae=R[C]+te-ie;if(r){var se=pe(h?W(U,re):U,F,h?Y(B,ae):B);R[C]=se,w[C]=se-F}if(s){var le="x"===C?b:A,ce="x"===C?S:E,de=R[k],fe=de+v[le],he=de-v[ce],me=pe(h?W(fe,re):fe,de,h?Y(he,ae):he);R[k]=me,w[k]=me-de}}t.modifiersData[o]=w}},requiresIfExists:["offset"]};var he=function(e,t){return le("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,P))};const me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=G(n.placement),l=j(s),c=[A,E].indexOf(s)>=0?"height":"width";if(r&&a){var u=he(i.padding,n),d=f(r),p="y"===l?b:A,h="y"===l?S:E,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],v=_(r),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,T=m/2-g/2,P=u[p],O=y-d[c]-u[h],C=y/2-d[c]/2+T,k=pe(P,C,O),R=l;n.modifiersData[o]=((t={})[R]=k,t.centerOffset=k-C,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&ie(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ge(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 ve(e){return[b,E,S,A].some((function(t){return e[t]>=0}))}const ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),l=ge(a,o),c=ge(s,i,r),u=ve(l),d=ve(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 _e=U({defaultModifiers:[V,K,Z,Q.Z,$,de,fe,me,ye]})},45317:e=>{"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),o=0,i=2,r=!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 o=new Array(64),i=new Array(123),r=0;r<64;)i[o[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(e,t,n){for(var i,r=null,a=[],s=0,l=0;t>2],i=(3&c)<<4,l=1;break;case 1:a[s++]=o[i|c>>4],i=(15&c)<<2,l=2;break;case 2:a[s++]=o[i|c>>6],a[s++]=o[63&c],l=0}s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=o[i],a[s++]=61,1===l&&(a[s++]=61)),r?(s&&r.push(String.fromCharCode.apply(String,a.slice(0,s))),r.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var o,r=n,s=0,l=0;l1)break;if(void 0===(c=i[c]))throw Error(a);switch(s){case 0:o=c,s=1;break;case 1:t[n++]=o<<2|(48&c)>>4,o=c,s=2;break;case 2:t[n++]=(15&o)<<4|(60&c)>>2,o=c,s=3;break;case 3:t[n++]=(3&o)<<6|c,s=0}}if(1===s)throw Error(a);return n-r},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},23745: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],o=0;o{"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),o=128===n[3];function i(e,o,i){t[0]=e,o[i]=n[0],o[i+1]=n[1],o[i+2]=n[2],o[i+3]=n[3]}function r(e,o,i){t[0]=e,o[i]=n[3],o[i+1]=n[2],o[i+2]=n[1],o[i+3]=n[0]}function a(e,o){return n[0]=e[o],n[1]=e[o+1],n[2]=e[o+2],n[3]=e[o+3],t[0]}function s(e,o){return n[3]=e[o],n[2]=e[o+1],n[1]=e[o+2],n[0]=e[o+3],t[0]}e.writeFloatLE=o?i:r,e.writeFloatBE=o?r:i,e.readFloatLE=o?a:s,e.readFloatBE=o?s:a}():function(){function t(e,t,n,o){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,o);else if(isNaN(t))e(2143289344,n,o);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,o);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,o);else{var r=Math.floor(Math.log(t)/Math.LN2);e((i<<31|r+127<<23|8388607&Math.round(t*Math.pow(2,-r)*8388608))>>>0,n,o)}}function a(e,t,n){var o=e(t,n),i=2*(o>>31)+1,r=o>>>23&255,a=8388607&o;return 255===r?a?NaN:i*(1/0):0===r?1401298464324817e-60*i*a:i*Math.pow(2,r-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,o),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,r)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),o=128===n[7];function i(e,o,i){t[0]=e,o[i]=n[0],o[i+1]=n[1],o[i+2]=n[2],o[i+3]=n[3],o[i+4]=n[4],o[i+5]=n[5],o[i+6]=n[6],o[i+7]=n[7]}function r(e,o,i){t[0]=e,o[i]=n[7],o[i+1]=n[6],o[i+2]=n[5],o[i+3]=n[4],o[i+4]=n[3],o[i+5]=n[2],o[i+6]=n[1],o[i+7]=n[0]}function a(e,o){return n[0]=e[o],n[1]=e[o+1],n[2]=e[o+2],n[3]=e[o+3],n[4]=e[o+4],n[5]=e[o+5],n[6]=e[o+6],n[7]=e[o+7],t[0]}function s(e,o){return n[7]=e[o],n[6]=e[o+1],n[5]=e[o+2],n[4]=e[o+3],n[3]=e[o+4],n[2]=e[o+5],n[1]=e[o+6],n[0]=e[o+7],t[0]}e.writeDoubleLE=o?i:r,e.writeDoubleBE=o?r:i,e.readDoubleLE=o?a:s,e.readDoubleBE=o?s:a}():function(){function t(e,t,n,o,i,r){var a=o<0?1:0;if(a&&(o=-o),0===o)e(0,i,r+t),e(1/o>0?0:2147483648,i,r+n);else if(isNaN(o))e(0,i,r+t),e(2146959360,i,r+n);else if(o>17976931348623157e292)e(0,i,r+t),e((a<<31|2146435072)>>>0,i,r+n);else{var s;if(o<22250738585072014e-324)e((s=o/5e-324)>>>0,i,r+t),e((a<<31|s/4294967296)>>>0,i,r+n);else{var l=Math.floor(Math.log(o)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=o*Math.pow(2,-l))>>>0,i,r+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,i,r+n)}}}function a(e,t,n,o,i){var r=e(o,i+t),a=e(o,i+n),s=2*(a>>31)+1,l=a>>>20&2047,c=4294967296*(1048575&a)+r;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,o,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,r,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 o(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 r(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},50491: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},18601:e=>{"use strict";e.exports=function(e,t,n){var o=n||8192,i=o>>>1,r=null,a=o;return function(n){if(n<1||n>i)return e(n);a+n>o&&(r=e(o),a=0);var s=t.call(r,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},68375:(e,t)=>{"use strict";var n=t;n.length=function(e){for(var t=0,n=0,o=0;o191&&o<224?r[a++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,r[a++]=55296+(o>>10),r[a++]=56320+(1023&o)):r[a++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,r)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,r.slice(0,a))),i.join("")):String.fromCharCode.apply(String,r.slice(0,a))},n.write=function(e,t,n){for(var o,i,r=n,a=0;a>6|192,t[n++]=63&o|128):55296==(64512&o)&&56320==(64512&(i=e.charCodeAt(a+1)))?(o=65536+((1023&o)<<10)+(1023&i),++a,t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128);return n-r}},92999:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;ts,Gn:()=>E,J0:()=>r,LX:()=>A,RQ:()=>R,WK:()=>D,Zn:()=>P,Zq:()=>C,aU:()=>i,cP:()=>l,fp:()=>u,pC:()=>k}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));function r(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(t+="#"===o.charAt(0)?o:"#"+o),t}function l(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var c;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(c||(c={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function u(e,t,n){void 0===n&&(n="/");let o=P(("string"==typeof t?l(t):t).pathname||"/",n);if(null==o)return null;let i=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let r=null;for(let e=0;null==r&&e{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(r(s.relativePath.startsWith(o),'Absolute route path "'+s.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(o.length));let l=R([o,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(r(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),d(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:b(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of p(e.path))i(e,t,n);else i(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...o]=t,i=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===o.length)return i?[r,""]:[r];let a=p(o.join("/")),s=[];return s.push(...a.map((e=>""===e?r:[r,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const f=/^:\w+$/,h=3,m=2,g=1,v=10,y=-2,_=e=>"*"===e;function b(e,t){let n=e.split("/"),o=n.length;return n.some(_)&&(o+=y),t&&(o+=m),n.filter((e=>!_(e))).reduce(((e,t)=>e+(f.test(t)?h:""===t?g:v)),o)}function S(e,t){let{routesMeta:n}=e,o={},i="/",r=[];for(let e=0;e{if(n===o.length-1&&"*"===e){return t["*"]}const i=e.match(/^:(\w+)(\??)$/);if(i){const[,e,n]=i;let o=t[e];return"?"===n?null==o?"":o:(null==o&&r(!1,'Missing ":'+e+'" param'),o)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function A(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);a("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(o.push(t),"/([^\\/]+)")));e.endsWith("*")?(o.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let r=new RegExp(i,t?void 0:"i");return[r,o]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let r=i[0],s=r.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:o.reduce(((e,t,n)=>{if("*"===t){let e=l[n]||"";s=r.slice(0,r.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return a(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e}),{}),pathname:r,pathnameBase:s,pattern:e}}function T(e){try{return decodeURI(e)}catch(t){return a(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&"/"!==o?null:e.slice(n)||"/"}function O(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function C(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function k(e,t,n,i){let a;void 0===i&&(i=!1),"string"==typeof e?a=l(e):(a=o({},e),r(!a.pathname||!a.pathname.includes("?"),O("?","pathname","search",a)),r(!a.pathname||!a.pathname.includes("#"),O("#","pathname","hash",a)),r(!a.search||!a.search.includes("#"),O("#","search","hash",a)));let s,c=""===e||""===a.pathname,u=c?"/":a.pathname;if(i||null==u)s=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:o="",hash:i=""}="string"==typeof e?l(e):e,r=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:r,search:I(o),hash:N(i)}}(a,s),p=u&&"/"!==u&&u.endsWith("/"),f=(c||"."===u)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}const R=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class w extends Error{}function D(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const M=["post","put","patch","delete"],x=(new Set(M),["get",...M]);new Set(x),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;Symbol("deferred")},71802:(e,t,n)=>{"use strict";n.d(t,{S1:()=>wt});var o=n(59958),i=n(18645),r=n(46341);const a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class s{static __initStatic(){this.id="InboundFilters"}__init(){this.name=s.id}constructor(e={}){this._options=e,s.prototype.__init.call(this)}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(s);if(t){const s=n.getClient(),c=s?s.getOptions():{},u=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...a],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,c);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Cannot extract message for event ${(0,i.jH)(e)}`),[]}return[]}(e).some((e=>(0,r.U0)(e,t)))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,r.U0)(n,t)}(e,t.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=l(e);return!!n&&(0,r.U0)(n,t)}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${l(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=l(e);return!n||(0,r.U0)(n,t)}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.jH)(e)}.\nUrl: ${l(e)}`),!0;return!1}(e,u)?null:e}}return e};n.id=this.name,e(n)}}function l(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Cannot extract url for event ${(0,i.jH)(e)}`),null}}s.__initStatic();var c=n(48017);let u;class d{constructor(){d.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=d.id}setupOnce(){u=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,c.HK)(this)||this;return u.apply(t,e)}}catch(e){}}}d.__initStatic();var p=n(95289),f=n(36606);const h=[];function m(e){const t=e.defaultIntegrations||[],n=e.integrations;let o;t.forEach((e=>{e.isDefaultInstance=!0})),o=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,i.lE)(n(t)):t;const r=function(e){const t={};return e.forEach((e=>{const{name:n}=e,o=t[n];o&&!o.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(o),a=function(e,t){for(let n=0;n"Debug"===e.name));if(-1!==a){const[e]=r.splice(a,1);r.push(e)}return r}function g(e,t){t[e.name]=e,-1===h.indexOf(e.name)&&(e.setupOnce(f.c,p.Gd),h.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Integration installed: ${e.name}`))}const v=50,y=/\(error: (.*)\)/;function _(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const o=[],i=e.split("\n");for(let e=n;e1024)continue;const r=y.test(n)?n.replace(y,"$1"):n;if(!r.match(/\S*Error: /)){for(const e of t){const t=e(r);if(t){o.push(t);break}}if(o.length>=v)break}}return function(e){if(!e.length)return[];const t=e.slice(0,v),n=t[t.length-1].function;n&&/sentryWrapped/.test(n)&&t.pop();t.reverse();const o=t[t.length-1].function;o&&/captureMessage|captureException/.test(o)&&t.pop();return t.map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(o)}}const b="";function S(e){try{return e&&"function"==typeof e&&e.name||b}catch(e){return b}}var E=n(80250);const A=(0,E.Rf)();function T(){if(!("fetch"in A))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function P(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}var O=n(47273);const C=(0,E.Rf)();const k=(0,E.Rf)(),R="__sentry_xhr_v2__",L={},I={};function N(e){if(!I[e])switch(I[e]=!0,e){case"console":!function(){if(!("console"in k))return;o.RU.forEach((function(e){e in k.console&&(0,c.hl)(k.console,e,(function(t){return function(...n){D("console",{args:n,level:e}),t&&t.apply(k.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in k))return;const e=D.bind(null,"dom"),t=G(e,!0);k.document.addEventListener("click",t,!1),k.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=k[t]&&k[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(t){return function(n,o,i){if("click"===n||"keypress"==n)try{const o=this,r=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){const o=G(e);a.handler=o,t.call(this,n,o,i)}a.refCount++}catch(e){}return t.call(this,n,o,i)}})),(0,c.hl)(n,"removeEventListener",(function(e){return function(t,n,o){if("click"===t||"keypress"==t)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},r=i[t];r&&(r.refCount--,r.refCount<=0&&(e.call(this,t,r.handler,o),r.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in k))return;const e=XMLHttpRequest.prototype;(0,c.hl)(e,"open",(function(e){return function(...t){const n=t[1],o=this[R]={method:(0,O.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};(0,O.HD)(n)&&"POST"===o.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this[R];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}D("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,c.hl)(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),(0,c.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,o]=t,i=this[R];return i&&(i.request_headers[n.toLowerCase()]=o),e.apply(this,t)}})),e.apply(this,t)}})),(0,c.hl)(e,"send",(function(e){return function(...t){const n=this[R];return n&&void 0!==t[0]&&(n.body=t[0]),D("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!T())return!1;if(P(A.fetch))return!0;let e=!1;const t=A.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=P(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())return;(0,c.hl)(k,"fetch",(function(e){return function(...t){const{method:n,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:x(t),method:M(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:x(t),method:M(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:o},startTimestamp:Date.now()};return D("fetch",{...i}),e.apply(k,t).then((e=>(D("fetch",{...i,endTimestamp:Date.now(),response:e}),e)),(e=>{throw D("fetch",{...i,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=C.chrome,t=e&&e.app&&e.app.runtime,n="history"in C&&!!C.history.pushState&&!!C.history.replaceState;return!t&&n}())return;const e=k.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=F,t=String(n);F=t,D("history",{from:e,to:t})}return e.apply(this,t)}}k.onpopstate=function(...t){const n=k.location.href,o=F;if(F=n,D("history",{from:o,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,c.hl)(k.history,"pushState",t),(0,c.hl)(k.history,"replaceState",t)}();break;case"error":J=k.onerror,k.onerror=function(e,t,n,o,i){return D("error",{column:o,error:i,line:n,msg:e,url:t}),!(!J||J.__SENTRY_LOADER__)&&J.apply(this,arguments)},k.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":j=k.onunhandledrejection,k.onunhandledrejection=function(e){return D("unhandledrejection",e),!(j&&!j.__SENTRY_LOADER__)||j.apply(this,arguments)},k.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("unknown instrumentation type:",e))}}function w(e,t){L[e]=L[e]||[],L[e].push(t),N(e)}function D(e,t){if(e&&L[e])for(const n of L[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${S(n)}\nError:`,t)}}function M(e,t){return!!e&&"object"==typeof e&&!!e[t]}function x(e){return"string"==typeof e?e:e?M(e,"url")?e.url:e.toString?e.toString():"":""}let F;const U=1e3;let B,V;function G(e,t=!1){return n=>{if(!n||V===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const o="keypress"===n.type?"input":n.type;(void 0===B||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(V,n))&&(e({event:n,name:o,global:t}),V=n),clearTimeout(B),B=k.setTimeout((()=>{B=void 0}),U)}}let J=null;let j=null;class H extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const K=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Y(e,t=!1){const{host:n,path:o,pass:i,port:r,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${r?`:${r}`:""}/${o?`${o}/`:o}${a}`}function W(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function z(e){const t="string"==typeof e?function(e){const t=K.exec(e);if(!t)throw new H(`Invalid Sentry Dsn: ${e}`);const[n,o,i="",r,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return W({host:r,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:o})}(e):W(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:o}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new H(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new H(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(o))throw new H(`Invalid Sentry Dsn: Invalid protocol ${o}`);if(t&&isNaN(parseInt(t,10)))throw new H(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}var q=n(48217);function X(e,t=100,n=1/0){try{return Q("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Z(e,t=3,n=102400){const o=X(e,t);return i=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>n?Z(e,t-1,n):o;var i}function Q(e,t,o=1/0,i=1/0,r=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=i){p[e]="[MaxProperties ~]";break}const t=h[e];p[e]=Q(e,t,u-1,i,r),f++}return s(t),p}function $(e,t=[]){return[e,t]}function ee(e,t){const[n,o]=e;return[n,[...o,t]]}function te(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function ne(e,t){return(t||new TextEncoder).encode(e)}function oe(e,t){const[n,o]=e;let i=JSON.stringify(n);function r(e){"string"==typeof i?i="string"==typeof e?i+e:[ne(i,t),e]:i.push("string"==typeof e?ne(e,t):e)}for(const e of o){const[t,n]=e;if(r(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)r(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(X(n))}r(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let o=0;for(const t of e)n.set(t,o),o+=t.length;return n}(i)}function ie(e,t){const n="string"==typeof e.data?ne(e.data,t):e.data;return[(0,c.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const re={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function ae(e){return re[e]}function se(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const le="7";function ce(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ue(e,t={}){const n="string"==typeof t?t:t.tunnel,o="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${ce(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,c._j)({sentry_key:e.publicKey,sentry_version:le,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,o)}`}function de(e,t,n,o){const i=se(n),r=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,o){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Y(o)},...i&&{trace:(0,c.Jr)({...i})}}}(e,i,o,t);delete e.sdkProcessingMetadata;return $(a,[[{type:r},e]])}var pe=n(32169),fe=n(78461),he=n(42237);function me(e,t,n,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||(0,i.DM)(),timestamp:t.timestamp||(0,fe.yW)()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:o,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:he.J);void 0===e.release&&void 0!==o&&(e.release=o);void 0===e.dist&&void 0!==i&&(e.dist=i);e.message&&(e.message=(0,r.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,r.$G)(s.value,a));const l=e.request;l&&l.url&&(l.url=(0,r.$G)(l.url,a))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=E.n2._sentryDebugIds;if(!n)return;let o;const i=ge.get(t);i?o=i:(o=new Map,ge.set(t,o));const r=Object.keys(n).reduce(((e,i)=>{let r;const a=o.get(i);a?r=a:(r=t(i),o.set(i,r));for(let t=r.length-1;t>=0;t--){const o=r[t];if(o.filename){e[o.filename]=n[i];break}}return e}),{}),a=new Set;try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&a.add(e.filename)}))}))}catch(e){}e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const s=e.debug_meta.images;a.forEach((e=>{r[e]&&s.push({type:"sourcemap",code_file:e,debug_id:r[e]})}))}(l,e.stackParser);let u=o;n.captureContext&&(u=f.s.clone(u).update(n.captureContext));let d=(0,q.WD)(l);if(u){if(u.getAttachments){const e=[...n.attachments||[],...u.getAttachments()];e.length&&(n.attachments=e)}d=u.applyToEvent(l,n)}return d.then((e=>"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const o={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:X(e.data,t,n)}})))},...e.user&&{user:X(e.user,t,n)},...e.contexts&&{contexts:X(e.contexts,t,n)},...e.extra&&{extra:X(e.extra,t,n)}};e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=X(e.contexts.trace.data,t,n)));e.spans&&(o.spans=e.spans.map((e=>(e.data&&(e.data=X(e.data,t,n)),e))));return o}(e,a,s):e))}const ge=new WeakMap;const ve="Not capturing exception because it's already been captured.";class ye{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(e){if(ye.prototype.__init.call(this),ye.prototype.__init2.call(this),ye.prototype.__init3.call(this),ye.prototype.__init4.call(this),ye.prototype.__init5.call(this),this._options=e,e.dsn){this._dsn=z(e.dsn);const t=ue(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,i.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(ve));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,o){let i=n&&n.event_id;const r=(0,O.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(r.then((e=>this._captureEvent(e,n,o))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&(0,i.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(ve));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,pe.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,q.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){const t={};return e.forEach((e=>{e&&g(e,t)})),t}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){g(e,this._integrations)}sendEvent(e,t={}){if(this._dsn){let n=de(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ee(n,ie(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const o=this._sendEnvelope(n);o&&o.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,o){const i=se(n);return $({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!o&&{dsn:Y(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,o=!1;const i=t.exception&&t.exception.values;if(i){o=!0;for(const e of i){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const r="ok"===e.status;(r&&0===e.errors||r&&n)&&((0,pe.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(o||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new q.cW((t=>{let n=0;const o=setInterval((()=>{0==this._numProcessing?(clearInterval(o),t(!0)):(n+=1,e&&n>=e&&(clearInterval(o),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),me(o,e,t,n)}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?o.kg.log(t.message):o.kg.warn(t)}}))}_processEvent(e,t,n){const o=this.getOptions(),{sampleRate:i}=o;if(!this._isEnabled())return(0,q.$2)(new H("SDK not enabled, will not capture event.","log"));const r=be(e),a=_e(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),(0,q.$2)(new H(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new H("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n){const{beforeSend:o,beforeSendTransaction:i}=e;if(_e(t)&&o)return o(t,n);if(be(t)&&i)return i(t,n);return t}(o,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,O.J8)(e))return e.then((e=>{if(!(0,O.PO)(e)&&null!==e)throw new H(n);return e}),(e=>{throw new H(`${t} rejected with ${e}`)}));if(!(0,O.PO)(e)&&null!==e)throw new H(n);return e}(i,l)})).then((o=>{if(null===o)throw this.recordDroppedEvent("before_send",c,e),new H(`${l} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!r&&i&&this._updateSessionFromEvent(i,o);const a=o.transaction_info;if(r&&a&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...a,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(e instanceof H)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new H(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,o]=t.split(":");return{reason:n,category:o,quantity:e[t]}}))}}function _e(e){return void 0===e.type}function be(e){return"transaction"===e.type}const Se="7.50.0";var Ee=n(73268);function Ae(e,t){const n=Pe(e,t),o={type:t&&t.name,value:Ce(t)};return n.length&&(o.stacktrace={frames:n}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function Te(e,t){return{exception:{values:[Ae(e,t)]}}}function Pe(e,t){const n=t.stacktrace||t.stack||"",o=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Oe.test(e.message))return 1}return 0}(t);try{return e(n,o)}catch(e){}return[]}const Oe=/Minified React error #\d+;/i;function Ce(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ke(e,t,n,o,r){let a;if((0,O.VW)(t)&&t.error){return Te(e,t.error)}if((0,O.TX)(t)||(0,O.fm)(t)){const r=t;if("stack"in t)a=Te(e,t);else{const t=r.name||((0,O.TX)(r)?"DOMError":"DOMException"),s=r.message?`${t}: ${r.message}`:t;a=Re(e,s,n,o),(0,i.Db)(a,s)}return"code"in r&&(a.tags={...a.tags,"DOMException.code":`${r.code}`}),a}if((0,O.VZ)(t))return Te(e,t);if((0,O.PO)(t)||(0,O.cO)(t)){return a=function(e,t,n,o){const i=(0,p.Gd)().getClient(),r=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:(0,O.cO)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:`Non-Error ${o?"promise rejection":"exception"} captured with keys: ${(0,c.zf)(t)}`}]},extra:{__serialized__:Z(t,r)}};if(n){const t=Pe(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,r),(0,i.EG)(a,{synthetic:!0}),a}return a=Re(e,t,n,o),(0,i.Db)(a,`${t}`,void 0),(0,i.EG)(a,{synthetic:!0}),a}function Re(e,t,n,o){const i={message:t};if(o&&n){const o=Pe(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}var Le=n(8927);const Ie=E.n2;let Ne=0;function we(){return Ne>0}function De(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,c.HK)(e))return e}catch(t){return e}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=o.map((e=>De(e,t)));return e.apply(this,i)}catch(e){throw Ne++,setTimeout((()=>{Ne--})),(0,Le.$e)((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,i.Db)(e,void 0,void 0),(0,i.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e))),(0,Le.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,c.$Q)(o,e),(0,c.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>e.name})}catch(e){}return o}var Me=n(75175);const xe=["fatal","error","warning","log","info","debug"];function Fe(e){return"warn"===e?"warning":xe.includes(e)?e:"log"}function Ue(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",o=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:o,relative:t[5]+n+o}}const Be=1024,Ve="Breadcrumbs";class Ge{static __initStatic(){this.id=Ve}__init(){this.name=Ge.id}constructor(e){Ge.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&w("console",Je),this.options.dom&&w("dom",function(e){function t(t){let n,i="object"==typeof e?e.serializeAttribute:void 0,r="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;r&&r>Be&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`\`dom.maxStringLength\` cannot exceed ${Be}, but a value of ${r} was configured. Sentry will use ${Be} instead.`),r=Be),"string"==typeof i&&(i=[i]);try{const e=t.event;n=function(e){return e&&!!e.target}(e)?(0,Me.Rt)(e.target,{keyAttrs:i,maxStringLength:r}):(0,Me.Rt)(e,{keyAttrs:i,maxStringLength:r})}catch(e){n=""}0!==n.length&&(0,p.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",je),this.options.fetch&&w("fetch",He),this.options.history&&w("history",Ke)}addSentryBreadcrumb(e){this.options.sentry&&(0,p.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,i.jH)(e)},{event:e})}}function Je(e){for(let t=0;t{"hidden"===Ie.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,o){const r=ke(e,t,n&&n.syntheticException||void 0,o);return(0,i.EG)(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),(0,q.WD)(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",o,i){const r=Re(e,t,o&&o.syntheticException||void 0,i);return r.level=n,o&&o.event_id&&(r.event_id=o.event_id),(0,q.WD)(r)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){const n=this.getIntegrationById(Ve);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(e),super.sendEvent(e,t)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:o}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:Y(o)}},r=function(e){return[{type:"user_report"},e]}(e);return $(i,[r])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("Sending outcomes:",e);const t=(n=e,$((i=this._options.tunnel&&Y(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:r||(0,fe.yW)(),discarded_events:n}]]));var n,i,r;this._sendEnvelope(t)}}class We{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=We.id}__init2(){this._installFunc={onerror:ze,onunhandledrejection:qe}}constructor(e){We.prototype.__init.call(this),We.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function ze(){w("error",(e=>{const[t,n,o]=Qe();if(!t.getIntegration(We))return;const{msg:i,url:r,line:a,column:s,error:l}=e;if(we()||l&&l.__sentry_own_request__)return;const c=void 0===l&&(0,O.HD)(i)?function(e,t,n,o){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let r=(0,O.VW)(e)?e.message:e,a="Error";const s=r.match(i);s&&(a=s[1],r=s[2]);const l={exception:{values:[{type:a,value:r}]}};return Xe(l,t,n,o)}(i,r,a,s):Xe(ke(n,l||i,void 0,o,!1),r,a,s);c.level="error",Ze(t,l,c,"onerror")}))}function qe(){w("unhandledrejection",(e=>{const[t,n,o]=Qe();if(!t.getIntegration(We))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(we()||i&&i.__sentry_own_request__)return!0;const r=(0,O.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ke(n,i,void 0,o,!0);r.level="error",Ze(t,i,r,"onunhandledrejection")}))}function Xe(e,t,n,o){const i=e.exception=e.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(o,10))?void 0:o,u=isNaN(parseInt(n,10))?void 0:n,d=(0,O.HD)(t)&&t.length>0?t:(0,Me.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Ze(e,t,n,o){(0,i.EG)(n,{handled:!1,type:o}),e.captureEvent(n,{originalException:t})}function Qe(){const e=(0,p.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}We.__initStatic();const $e=["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"];class et{static __initStatic(){this.id="TryCatch"}__init(){this.name=et.id}constructor(e){et.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,c.hl)(Ie,"setTimeout",tt),this._options.setInterval&&(0,c.hl)(Ie,"setInterval",tt),this._options.requestAnimationFrame&&(0,c.hl)(Ie,"requestAnimationFrame",nt),this._options.XMLHttpRequest&&"XMLHttpRequest"in Ie&&(0,c.hl)(XMLHttpRequest.prototype,"send",ot);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:$e).forEach(it)}}}function tt(e){return function(...t){const n=t[0];return t[0]=De(n,{mechanism:{data:{function:S(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function nt(e){return function(t){return e.apply(this,[De(t,{mechanism:{data:{function:"requestAnimationFrame",handler:S(e)},handled:!0,type:"instrument"}})])}}function ot(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,c.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:S(t)},handled:!0,type:"instrument"}},o=(0,c.HK)(t);return o&&(n.mechanism.data.handler=S(o)),De(t,n)}))})),e.apply(this,t)}}function it(e){const t=Ie,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,c.hl)(n,"addEventListener",(function(t){return function(n,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=De(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:S(o),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,De(o,{mechanism:{data:{function:"addEventListener",handler:S(o),target:e},handled:!0,type:"instrument"}}),i])}})),(0,c.hl)(n,"removeEventListener",(function(e){return function(t,n,o){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,o)}catch(e){}return e.call(this,t,i,o)}})))}et.__initStatic();class rt{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=rt.id}constructor(e={}){rt.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,p.Gd)().getClient();e&&(0,f.c)(((t,n)=>{const o=(0,p.Gd)().getIntegration(rt);return o?function(e,t,n,o,i){if(!(o.exception&&o.exception.values&&i&&(0,O.V9)(i.originalException,Error)))return o;const r=at(e,n,i.originalException,t);return o.exception.values=[...r,...o.exception.values],o}(e.getOptions().stackParser,o._key,o._limit,t,n):t}))}}function at(e,t,n,o,i=[]){if(!(0,O.V9)(n[o],Error)||i.length+1>=t)return i;const r=Ae(e,n[o]);return at(e,t,n[o],o,[r,...i])}rt.__initStatic();class st{constructor(){st.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=st.id}setupOnce(){(0,f.c)((e=>{if((0,p.Gd)().getIntegration(st)){if(!Ie.navigator&&!Ie.location&&!Ie.document)return e;const t=e.request&&e.request.url||Ie.location&&Ie.location.href,{referrer:n}=Ie.document||{},{userAgent:o}=Ie.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...o&&{"User-Agent":o}},r={...e.request,...t&&{url:t},headers:i};return{...e,request:r}}return e}))}}st.__initStatic();class lt{constructor(){lt.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=lt.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(lt);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,o=t.message;if(!n&&!o)return!1;if(n&&!o||!n&&o)return!1;if(n!==o)return!1;if(!ut(e,t))return!1;if(!ct(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=dt(t),o=dt(e);if(!n||!o)return!1;if(n.type!==o.type||n.value!==o.value)return!1;if(!ut(e,t))return!1;if(!ct(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function ct(e,t){let n=pt(e),o=pt(t);if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;if(o.length!==n.length)return!1;for(let e=0;e|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gt=/\((\S*)(?::(\d+))(?::(\d+))\)/,vt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,bt=_(...[[30,e=>{const t=mt.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=gt.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=St(t[1]||ft,t[2]);return ht(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=vt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=yt.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||ft;return[n,e]=St(n,e),ht(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=_t.exec(e);return t?ht(t[2],t[1]||ft,+t[3],t[4]?+t[4]:void 0):void 0}]]),St=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:ft,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Et(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new q.cW(((n,o)=>{let i=t.length;if(!i)return n(!0);const r=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,q.WD)(e).then((()=>{--i||(clearTimeout(r),n(!0))}),o)}))}))}}}const At=6e4;function Tt(e,{statusCode:t,headers:n},o=Date.now()){const i={...e},r=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(r)for(const e of r.trim().split(",")){const[t,n]=e.split(":",2),r=parseInt(t,10),a=1e3*(isNaN(r)?60:r);if(n)for(const e of n.split(";"))i[e]=o+a;else i.all=o+a}else a?i.all=o+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const o=Date.parse(`${e}`);return isNaN(o)?At:o-t}(a,o):429===t&&(i.all=o+6e4);return i}const Pt=30;function Ot(e,t,n=Et(e.bufferSize||Pt)){let i={};function r(r){const a=[];if(te(r,((t,n)=>{const o=ae(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,o)){const i=Ct(t,n);e.recordDroppedEvent("ratelimit_backoff",o,i)}else a.push(t)})),0===a.length)return(0,q.WD)();const s=$(r[0],a),l=t=>{te(s,((n,o)=>{const i=Ct(n,o);e.recordDroppedEvent(t,ae(o),i)}))};return n.add((()=>t({body:oe(s,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Tt(i,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof H)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Skipped sending event because buffer is full."),l("queue_overflow"),(0,q.WD)();throw e}))}return r.__sentry__baseTransport__=!0,{send:r,flush:e=>n.drain(e)}}function Ct(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let kt;function Rt(e,t=function(){if(kt)return kt;if(P(Ie.fetch))return kt=Ie.fetch.bind(Ie);const e=Ie.document;let t=Ie.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const o=n.contentWindow;o&&o.fetch&&(t=o.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return kt=t.bind(Ie)}()){let n=0,i=0;return Ot(e,(function(o){const r=o.body.length;n+=r,i++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=r,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return kt=void 0,n-=r,i--,(0,q.$2)(e)}}))}const Lt=4;function It(e){return Ot(e,(function(t){return new q.cW(((n,o)=>{const i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===Lt&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}const Nt=[new s,new d,new et,new Ge,new We,new rt,new lt,new st];function wt(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Nt),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),Ie.SENTRY_RELEASE&&Ie.SENTRY_RELEASE.id&&(e.release=Ie.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||bt,Array.isArray(n)?_(...n):n),integrations:m(e),transport:e.transport||(T()?Rt:It)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,p.Gd)();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(Ye,t),e.autoSessionTracking&&function(){if(void 0===Ie.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,p.Gd)();if(!e.captureSession)return;Dt(e),w("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&Dt((0,p.Gd)())}))}()}function Dt(e){e.startSession({ignoreDuration:!0}),e.captureSession()}},42237:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});const o="production"},8927:(e,t,n)=>{"use strict";n.d(t,{$e:()=>s,Tb:()=>i,e:()=>r,n_:()=>a});var o=n(95289);function i(e,t){return(0,o.Gd)().captureException(e,{captureContext:t})}function r(e){(0,o.Gd)().configureScope(e)}function a(e){(0,o.Gd)().addBreadcrumb(e)}function s(e){(0,o.Gd)().withScope(e)}},95289:(e,t,n)=>{"use strict";n.d(t,{Gd:()=>m});var o=n(18645),i=n(78461),r=n(59958),a=n(80250),s=n(42237),l=n(36606),c=n(32169);const u=4,d=100;class p{constructor(e,t=new l.s,n=u){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{o.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},r)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,o.DM)(),r=new Error(e);return this._withClient(((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:r,...n,event_id:i},a)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.DM)();return e.type||(this._lastEventId=n),this._withClient(((o,i)=>{o.captureEvent(e,{...t,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:o}=this.getStackTop();if(!o)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=d}=o.getOptions&&o.getOptions()||{};if(s<=0)return;const l={timestamp:(0,i.yW)(),...e},c=a?(0,r.Cf)((()=>a(l,t))):l;null!==c&&(o.emit&&o.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=h(this);try{e(this)}finally{h(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,c.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:o,environment:i=s.J}=n&&n.getOptions()||{},{userAgent:r}=a.n2.navigator||{},l=(0,c.Hv)({release:o,environment:i,user:t.getUser(),...r&&{userAgent:r},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,c.CT)(u,{status:"exited"}),this.endSession(),t.setSession(l),l}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=f().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function h(e){const t=f(),n=y(t);return _(t,e),n}function m(){const e=f();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return g(e)}function g(e=f()){return v(e)&&!y(e).isOlderThan(u)||_(e,new p),y(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function y(e){return(0,a.YO)("hub",(()=>new p),e)}function _(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},36606:(e,t,n)=>{"use strict";n.d(t,{c:()=>p,s:()=>u});var o=n(47273),i=n(78461),r=n(48217),a=n(59958),s=n(18645),l=n(80250),c=n(32169);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,o.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){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._attachments=[],this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const o={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,o].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new r.cW(((r,s)=>{const l=e[i];if(null===t||"function"!=typeof l)r(t);else{const c=l({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===c&&a.kg.log(`Event processor "${l.id}" dropped event`),(0,o.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,i+1).then(r))).then(null,s):this._notifyEventProcessors(e,c,n,i+1).then(r).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,l.YO)("globalEventProcessors",(()=>[]))}function p(e){d().push(e)}},32169:(e,t,n)=>{"use strict";n.d(t,{CT:()=>s,Hv:()=>a,RJ:()=>l});var o=n(78461),i=n(18645),r=n(48017);function a(e){const t=(0,o.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,r.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},84258:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});class o{constructor(){o.prototype.__init.call(this),o.prototype.__init2.call(this)}static __initStatic(){this.id="SessionTiming"}__init(){this.name=o.id}__init2(){this._startTime=Date.now()}setupOnce(e,t){e((e=>{const n=t().getIntegration(o);return n?n.process(e):e}))}process(e){const t=Date.now();return{...e,extra:{...e.extra,"session:start":this._startTime,"session:duration":t-this._startTime,"session:end":t}}}}o.__initStatic()},75175:(e,t,n)=>{"use strict";n.d(t,{Rt:()=>a,l4:()=>l});var o=n(47273);const i=(0,n(80250).Rf)(),r=80;function a(e,t={}){try{let n=e;const o=5,i=[];let a=0,l=0;const c=" > ",u=c.length;let d;const p=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||r;for(;n&&a++1&&l+i.length*u+d.length>=f));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(c)}catch(e){return""}}function s(e,t){const n=e,i=[];let r,a,s,l,c;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&(0,o.HD)(r))for(a=r.split(/\s+/),c=0;c{"use strict";function o(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(t,{S:()=>i,n:()=>o})},47273:(e,t,n)=>{"use strict";n.d(t,{Cy:()=>g,HD:()=>c,J8:()=>m,Kj:()=>h,PO:()=>d,TX:()=>s,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>p,fm:()=>l,i2:()=>v,kK:()=>f,pt:()=>u});const o=Object.prototype.toString;function i(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function r(e,t){return o.call(e)===`[object ${t}]`}function a(e){return r(e,"ErrorEvent")}function s(e){return r(e,"DOMError")}function l(e){return r(e,"DOMException")}function c(e){return r(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return r(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 r(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},59958:(e,t,n)=>{"use strict";n.d(t,{Cf:()=>a,RU:()=>r,kg:()=>l});var o=n(80250);const i="Sentry Logger ",r=["debug","info","warn","error","log","assert","trace"];function a(e){if(!("console"in o.n2))return e();const t=o.n2.console,n={};r.forEach((e=>{const o=t[e]&&t[e].__sentry_original__;e in t&&o&&(n[e]=t[e],t[e]=o)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function s(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?r.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{o.n2.console[n](`${i}[${n}]:`,...t)}))}})):r.forEach((e=>{t[e]=()=>{}})),t}let l;l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,o.YO)("logger",s):s()},18645:(e,t,n)=>{"use strict";n.d(t,{DM:()=>r,Db:()=>l,EG:()=>c,YO:()=>u,jH:()=>s,lE:()=>d});var o=n(48017),i=n(80250);function r(){const e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const o=a(e);return o?o.type&&o.value?`${o.type}: ${o.value}`:o.type||o.value||n||"":n||""}function l(e,t,n){const o=e.exception=e.exception||{},i=o.values=o.values||[],r=i[0]=i[0]||{};r.value||(r.value=t||""),r.type||(r.type=n||"Error")}function c(e,t){const n=a(e);if(!n)return;const o=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...o,...t},t&&"data"in t){const e={...o&&o.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,o.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},55850:(e,t,n)=>{"use strict";n.d(t,{KV:()=>r,l$:()=>a});var o=n(73268);e=n.hmd(e);var i=n(14224);function r(){return!(0,o.n)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(e,t){return e.require(t)}},48017:(e,t,n)=>{"use strict";n.d(t,{$Q:()=>l,HK:()=>c,Jr:()=>m,Sh:()=>d,_j:()=>u,hl:()=>a,xp:()=>s,zf:()=>h});var o=n(75175),i=n(47273),r=n(46341);function a(e,t,n){if(!(t in e))return;const o=e[t],i=n(o);if("function"==typeof i)try{l(i,o)}catch(e){}e[t]=i}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function l(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function u(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if((0,i.cO)(e)){const t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function p(e){try{return(0,i.kK)(e)?(0,o.Rt)(e):Object.prototype.toString.call(e)}catch(e){return""}}function f(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){const n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,r.$G)(n[0],t);for(let e=n.length;e>0;e--){const o=n.slice(0,e).join(", ");if(!(o.length>t))return e===n.length?o:(0,r.$G)(o,t)}return""}function m(e){return g(e,new Map)}function g(e,t){if((0,i.PO)(e)){const n=t.get(e);if(void 0!==n)return n;const o={};t.set(e,o);for(const n of Object.keys(e))void 0!==e[n]&&(o[n]=g(e[n],t));return o}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const o=[];return t.set(e,o),e.forEach((e=>{o.push(g(e,t))})),o}return e}},46341:(e,t,n)=>{"use strict";n.d(t,{$G:()=>i,U0:()=>a,nK:()=>r});var o=n(47273);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function r(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;tfunction(e,t,n=!1){return!!(0,o.HD)(e)&&((0,o.Kj)(t)?t.test(e):!!(0,o.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},48217:(e,t,n)=>{"use strict";n.d(t,{$2:()=>a,WD:()=>r,cW:()=>s});var o,i=n(47273);function r(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(o||(o={}));class s{__init(){this._state=o.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,o)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){o(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){o(e)}else o(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let o,i;return this.then((t=>{i=!1,o=t,e&&e()}),(t=>{i=!0,o=t,e&&e()})).then((()=>{i?n(o):t(o)}))}))}__init3(){this._resolve=e=>{this._setResult(o.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(o.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===o.PENDING&&((0,i.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===o.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===o.RESOLVED&&e[1](this._value),this._state===o.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},78461:(e,t,n)=>{"use strict";n.d(t,{ph:()=>u,yW:()=>c});var o=n(55850),i=n(80250);e=n.hmd(e);const r=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=r;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l);let d;(()=>{const{performance:e}=r;if(!e||!e.now)return void(d="none");const t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,a=i{"use strict";function o(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:()=>r,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&o(globalThis)||"object"==typeof window&&o(window)||"object"==typeof self&&o(self)||"object"==typeof n.g&&o(n.g)||function(){return this}()||{};function r(){return i}function a(e,t,n){const o=n||i,r=o.__SENTRY__=o.__SENTRY__||{};return r[e]||(r[e]=t())}},29049:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>me});var o=n(75473),i=n(98566),r="tippy-box",a="tippy-content",s="tippy-backdrop",l="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},d=function(){return document.body};function p(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function f(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function h(e,t){return"function"==typeof e?e.apply(void 0,t):e}function m(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function g(e){return[].concat(e)}function v(e,t){-1===e.indexOf(t)&&e.push(t)}function y(e){return e.split("-")[0]}function _(e){return[].slice.call(e)}function b(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function S(){return document.createElement("div")}function E(e){return["Element","Fragment"].some((function(t){return f(e,t)}))}function A(e){return f(e,"MouseEvent")}function T(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function P(e){return E(e)?[e]:function(e){return f(e,"NodeList")}(e)?_(e):Array.isArray(e)?e:_(document.querySelectorAll(e))}function O(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 k(e){var t,n=g(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function R(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function L(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var I={isTouch:!1},N=0;function w(){I.isTouch||(I.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var e=performance.now();e-N<20&&(I.isTouch=!1,document.removeEventListener("mousemove",D)),N=e}function M(){var e=document.activeElement;if(T(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var x=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var F={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},U=Object.assign({appendTo:d,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},F,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),B=Object.keys(U);function V(e){var t=(e.plugins||[]).reduce((function(t,n){var o,i=n.name,r=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=U[i])?o:r);return t}),{});return Object.assign({},e,t)}function G(e,t){var n=Object.assign({},t,{content:h(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(V(Object.assign({},U,{plugins:t}))):B).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}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}var J=function(){return"innerHTML"};function j(e,t){e[J()]=t}function H(e){var t=S();return!0===e?t.className=l:(t.className=c,E(e)?t.appendChild(e):j(t,e)),t}function K(e,t){E(t.content)?(j(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?j(e,t.content):e.textContent=t.content)}function Y(e){var t=e.firstElementChild,n=_(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(a)})),arrow:n.find((function(e){return e.classList.contains(l)||e.classList.contains(c)})),backdrop:n.find((function(e){return e.classList.contains(s)}))}}function W(e){var t=S(),n=S();n.className=r,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=S();function i(n,o){var i=Y(t),r=i.box,a=i.content,s=i.arrow;o.theme?r.setAttribute("data-theme",o.theme):r.removeAttribute("data-theme"),"string"==typeof o.animation?r.setAttribute("data-animation",o.animation):r.removeAttribute("data-animation"),o.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?r.setAttribute("role",o.role):r.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||K(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(r.removeChild(s),r.appendChild(H(o.arrow))):r.appendChild(H(o.arrow)):s&&r.removeChild(s)}return o.className=a,o.setAttribute("data-state","hidden"),K(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}W.$$tippy=!0;var z=1,q=[],X=[];function Z(e,t){var n,i,r,a,s,l,c,f,E=G(e,Object.assign({},U,V(b(t)))),T=!1,P=!1,N=!1,w=!1,D=[],M=m(be,E.interactiveDebounce),F=z++,B=(f=E.plugins).filter((function(e,t){return f.indexOf(e)===t})),J={id:F,reference:e,popper:S(),popperInstance:null,props:E,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:B,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(J.state.isDestroyed)return;ae("onBeforeUpdate",[J,t]),ye();var n=J.props,o=G(e,Object.assign({},n,b(t),{ignoreAttributes:!0}));J.props=o,ve(),n.interactiveDebounce!==o.interactiveDebounce&&(ce(),M=m(be,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?g(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");le(),re(),K&&K(n,o);J.popperInstance&&(Te(),Oe().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,o=I.isTouch&&!J.props.touch,i=p(J.props.duration,0,U.duration);if(e||t||n||o)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[J],!1),!1===J.props.onShow(J))return;J.state.isVisible=!0,ee()&&(H.style.visibility="visible");re(),fe(),J.state.isMounted||(H.style.transition="none");if(ee()){var r=oe();O([r.box,r.content],0)}l=function(){var e;if(J.state.isVisible&&!w){if(w=!0,H.offsetHeight,H.style.transition=J.props.moveTransition,ee()&&J.props.animation){var t=oe(),n=t.box,o=t.content;O([n,o],i),C([n,o],"visible")}se(),le(),v(X,J),null==(e=J.popperInstance)||e.forceUpdate(),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){me(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===d||"parent"===t?n.parentNode:h(t,[n]);e.contains(H)||e.appendChild(H);J.state.isMounted=!0,Te(),!1}()},hide:function(){0;var e=!J.state.isVisible,t=J.state.isDestroyed,n=!J.state.isEnabled,o=p(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,T=!1,ee()&&(H.style.visibility="hidden");if(ce(),he(),re(!0),ee()){var i=oe(),r=i.box,a=i.content;J.props.animation&&(O([r,a],o),C([r,a],"hidden"))}se(),le(),J.props.animation?ee()&&function(e,t){me(e,(function(){!J.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&t()}))}(o,J.unmount):J.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",M),v(q,M),M(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;Pe(),Oe().forEach((function(e){e._tippy.unmount()})),H.parentNode&&H.parentNode.removeChild(H);X=X.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(!E.render)return J;var j=E.render(J),H=j.popper,K=j.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+J.id,J.popper=H,e._tippy=J,H._tippy=J;var W=B.map((function(e){return e.fn(J)})),Z=e.hasAttribute("aria-expanded");return ve(),le(),re(),ae("onCreate",[J]),E.showOnCreate&&Ce(),H.addEventListener("mouseenter",(function(){J.props.interactive&&J.state.isVisible&&J.clearDelayTimeouts()})),H.addEventListener("mouseleave",(function(){J.props.interactive&&J.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",M)})),J;function Q(){var e=J.props.touch;return Array.isArray(e)?e:[e,0]}function $(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=J.props.render)||!e.$$tippy)}function te(){return c||e}function ne(){var e=te().parentNode;return e?k(e):document}function oe(){return Y(H)}function ie(e){return J.state.isMounted&&!J.state.isVisible||I.isTouch||a&&"focus"===a.type?0:p(J.props.delay,e?0:1,U.delay)}function re(e){void 0===e&&(e=!1),H.style.pointerEvents=J.props.interactive&&!e?"":"none",H.style.zIndex=""+J.props.zIndex}function ae(e,t,n){var o;(void 0===n&&(n=!0),W.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=J.props)[e].apply(o,t)}function se(){var t=J.props.aria;if(t.content){var n="aria-"+t.content,o=H.id;g(J.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(J.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function le(){!Z&&J.props.aria.expanded&&g(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",M),q=q.filter((function(e){return e!==M}))}function ue(t){if(!I.isTouch||!N&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!J.props.interactive||!L(H,n)){if(g(J.props.triggerTarget||e).some((function(e){return L(e,n)}))){if(I.isTouch)return;if(J.state.isVisible&&J.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[J,t]);!0===J.props.hideOnClick&&(J.clearDelayTimeouts(),J.hide(),P=!0,setTimeout((function(){P=!1})),J.state.isMounted||he())}}}function de(){N=!0}function pe(){N=!1}function fe(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,u),e.addEventListener("touchstart",pe,u),e.addEventListener("touchmove",de,u)}function he(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,u),e.removeEventListener("touchstart",pe,u),e.removeEventListener("touchmove",de,u)}function me(e,t){var n=oe().box;function o(e){e.target===n&&(R(n,"remove",o),t())}if(0===e)return t();R(n,"remove",s),R(n,"add",o),s=o}function ge(t,n,o){void 0===o&&(o=!1),g(J.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),D.push({node:e,eventType:t,handler:n,options:o})}))}function ve(){var e;$()&&(ge("touchstart",_e,{passive:!0}),ge("touchend",Se,{passive:!0})),(e=J.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,_e),e){case"mouseenter":ge("mouseleave",Se);break;case"focus":ge(x?"focusout":"blur",Ee);break;case"focusin":ge("focusout",Ee)}}))}function ye(){D.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)})),D=[]}function _e(e){var t,n=!1;if(J.state.isEnabled&&!Ae(e)&&!P){var o="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,le(),!J.state.isVisible&&A(e)&&q.forEach((function(t){return t(e)})),"click"===e.type&&(J.props.trigger.indexOf("mouseenter")<0||T)&&!1!==J.props.hideOnClick&&J.state.isVisible?n=!0:Ce(e),"click"===e.type&&(T=!n),n&&!o&&ke(e)}}function be(e){var t=e.target,n=te().contains(t)||H.contains(t);if("mousemove"!==e.type||!n){var o=Oe().concat(H).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:E}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,r=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-o+l>r,f=o-t.bottom-c>r,h=t.left-n+u>r,m=n-t.right-d>r;return p||f||h||m}))})(o,e)&&(ce(),ke(e))}}function Se(e){Ae(e)||J.props.trigger.indexOf("click")>=0&&T||(J.props.interactive?J.hideWithInteractivity(e):ke(e))}function Ee(e){J.props.trigger.indexOf("focusin")<0&&e.target!==te()||J.props.interactive&&e.relatedTarget&&H.contains(e.relatedTarget)||ke(e)}function Ae(e){return!!I.isTouch&&$()!==e.type.indexOf("touch")>=0}function Te(){Pe();var t=J.props,n=t.popperOptions,i=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,c=ee()?Y(H).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=oe().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={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];ee()&&c&&p.push({name:"arrow",options:{element:c,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),J.popperInstance=(0,o.fi)(u,H,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:p}))}function Pe(){J.popperInstance&&(J.popperInstance.destroy(),J.popperInstance=null)}function Oe(){return _(H.querySelectorAll("[data-tippy-root]"))}function Ce(e){J.clearDelayTimeouts(),e&&ae("onTrigger",[J,e]),fe();var t=ie(!0),o=Q(),i=o[0],r=o[1];I.isTouch&&"hold"===i&&r&&(t=r),t?n=setTimeout((function(){J.show()}),t):J.show()}function ke(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&&T)){var t=ie(!1);t?i=setTimeout((function(){J.state.isVisible&&J.hide()}),t):r=requestAnimationFrame((function(){J.hide()}))}}else he()}}function Q(e,t){void 0===t&&(t={});var n=U.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",w,u),window.addEventListener("blur",M);var o=Object.assign({},t,{plugins:n}),i=P(e).reduce((function(e,t){var n=t&&Z(t,o);return n&&e.push(n),e}),[]);return E(e)?i[0]:i}Q.defaultProps=U,Spicetify.Tippy=Q;Q.setDefaultProps=function(e){Object.keys(e).forEach((function(t){U[t]=e[t]}))},Q.currentInput=I;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.setDefaultProps({render:W});const $=Q;var ee=n(59496),te=n(87995);function ne(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o=0||(i[n]=e[n]);return i}var oe="undefined"!=typeof window&&"undefined"!=typeof document;function ie(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function re(){return oe&&document.createElement("div")}function ae(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(!ae(e[n],t[n]))return!1}return!0}return!1}function se(e){var t=[];return e.forEach((function(e){t.find((function(t){return ae(e,t)}))||t.push(e)})),t}function le(e,t){var n,o;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:se([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(o=t.popperOptions)?void 0:o.modifiers)||[]))})})}var ce=oe?ee.useLayoutEffect:ee.useEffect;function ue(e){var t=(0,ee.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function de(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var pe={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 o(){e.props.className&&!n()||de(t,"add",e.props.className)}return{onCreate:o,onBeforeUpdate:function(){n()&&de(t,"remove",e.props.className)},onAfterUpdate:o}}};function fe(e){return function(t){var n=t.children,o=t.content,i=t.visible,r=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,ne(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==i,h=void 0!==r,m=(0,ee.useState)(!1),g=m[0],v=m[1],y=(0,ee.useState)({}),_=y[0],b=y[1],S=(0,ee.useState)(),E=S[0],A=S[1],T=ue((function(){return{container:re(),renders:1}})),P=Object.assign({ignoreAttributes:d},p,{content:T.container});f&&(P.trigger="manual",P.hideOnClick=!1),h&&(c=!0);var O=P,C=P.plugins||[];a&&(O=Object.assign({},P,{plugins:h&&null!=r.data?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=r.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):C,render:function(){return{popper:T.container}}}));var k=[s].concat(n?[n.type]:[]);return ce((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||re(),Object.assign({},O,{plugins:[pe].concat(P.plugins||[])}));return T.instance=n,c&&n.disable(),i&&n.show(),h&&r.hook({instance:n,content:o,props:O,setSingletonContent:A}),v(!0),function(){n.destroy(),null==r||r.cleanup(n)}}),k),ce((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(le(t.props,O)),null==(e=t.popperInstance)||e.forceUpdate(),c?t.disable():t.enable(),f&&(i?t.show():t.hide()),h&&r.hook({instance:t,content:o,props:O,setSingletonContent:A})}else T.renders++})),ce((function(){var e;if(a){var t=T.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,o=null==(t=n.modifiersData)?void 0:t.hide;_.placement===n.placement&&_.referenceHidden===(null==o?void 0:o.isReferenceHidden)&&_.escaped===(null==o?void 0:o.hasPopperEscaped)||b({placement:n.placement,referenceHidden:null==o?void 0:o.isReferenceHidden,escaped:null==o?void 0:o.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[_.placement,_.referenceHidden,_.escaped].concat(k)),ee.createElement(ee.Fragment,null,n?(0,ee.cloneElement)(n,{ref:function(e){T.ref=e,ie(n.ref,e)}}):null,g&&(0,te.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(_),E,T.instance):o,T.container))}}var he=function(e,t){return(0,ee.forwardRef)((function(n,o){var i=n.children,r=ne(n,["children"]);return ee.createElement(e,Object.assign({},t,r),i?(0,ee.cloneElement)(i,{ref:function(e){ie(o,e),ie(i.ref,e)}}):null)}))};const me=he(fe($))},31217:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>ce});var o=n(75473),i=n(98566),r="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 o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}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(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function m(e){return[].concat(e)}function g(e,t){-1===e.indexOf(t)&&e.push(t)}function v(e){return e.split("-")[0]}function y(e){return[].slice.call(e)}function _(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function b(){return document.createElement("div")}function S(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function E(e){return p(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function T(e){return S(e)?[e]:function(e){return p(e,"NodeList")}(e)?y(e):Array.isArray(e)?e:y(document.querySelectorAll(e))}function P(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function O(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function C(e){var t,n=m(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function k(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function R(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var L={isTouch:!1},I=0;function N(){L.isTouch||(L.isTouch=!0,window.performance&&document.addEventListener("mousemove",w))}function w(){var e=performance.now();e-I<20&&(L.isTouch=!1,document.removeEventListener("mousemove",w)),I=e}function D(){var e=document.activeElement;if(A(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},F=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}),U=Object.keys(F);function B(e){var t=(e.plugins||[]).reduce((function(t,n){var o,i=n.name,r=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=F[i])?o:r);return t}),{});return Object.assign({},e,t)}function V(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(B(Object.assign({},F,{plugins:t}))):U).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},F.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 G(e){var t=e.firstElementChild,n=y(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(r)})),arrow:n.find((function(e){return e.classList.contains(s)||e.classList.contains(l)})),backdrop:n.find((function(e){return e.classList.contains(a)}))}}var J=1,j=[],H=[];function K(e,t){var n,i,r,a,s,l,p,S,A=V(e,Object.assign({},F,B(_(t)))),T=!1,I=!1,N=!1,w=!1,D=[],x=h(be,A.interactiveDebounce),U=J++,K=(S=A.plugins).filter((function(e,t){return S.indexOf(e)===t})),Y={id:U,reference:e,popper:b(),popperInstance:null,props:A,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:K,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(Y.state.isDestroyed)return;ae("onBeforeUpdate",[Y,t]),ye();var n=Y.props,o=V(e,Object.assign({},n,_(t),{ignoreAttributes:!0}));Y.props=o,ve(),n.interactiveDebounce!==o.interactiveDebounce&&(ce(),x=h(be,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?m(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");le(),re(),q&&q(n,o);Y.popperInstance&&(Te(),Oe().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));ae("onAfterUpdate",[Y,t])},setContent:function(e){Y.setProps({content:e})},show:function(){0;var e=Y.state.isVisible,t=Y.state.isDestroyed,n=!Y.state.isEnabled,o=L.isTouch&&!Y.props.touch,i=d(Y.props.duration,0,F.duration);if(e||t||n||o)return;if(te().hasAttribute("disabled"))return;if(ae("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,ee()&&(z.style.visibility="visible");re(),fe(),Y.state.isMounted||(z.style.transition="none");if(ee()){var r=oe();P([r.box,r.content],0)}l=function(){var e;if(Y.state.isVisible&&!w){if(w=!0,z.offsetHeight,z.style.transition=Y.props.moveTransition,ee()&&Y.props.animation){var t=oe(),n=t.box,o=t.content;P([n,o],i),O([n,o],"visible")}se(),le(),g(H,Y),null==(e=Y.popperInstance)||e.forceUpdate(),ae("onMount",[Y]); if (Y.popper?.firstChild?.id === "context-menu") { const container = Y.popper.firstChild; if (!container.children.length) { const observer = new MutationObserver(() => { Spicetify.ContextMenu._addItems(Y.popper); observer.disconnect(); }); observer.observe(container, { childList: true }); } else if (container.firstChild.classList.contains("main-userWidget-dropDownMenu")) { Spicetify.Menu._addItems(Y.popper); } else { Spicetify.ContextMenu._addItems(Y.popper); } };0,Y.props.animation&&ee()&&function(e,t){me(e,t)}(i,(function(){Y.state.isShown=!0,ae("onShown",[Y])}))}},function(){var e,t=Y.props.appendTo,n=te();e=Y.props.interactive&&t===u||"parent"===t?n.parentNode:f(t,[n]);e.contains(z)||e.appendChild(z);Y.state.isMounted=!0,Te(),!1}()},hide:function(){0;var e=!Y.state.isVisible,t=Y.state.isDestroyed,n=!Y.state.isEnabled,o=d(Y.props.duration,1,F.duration);if(e||t||n)return;if(ae("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,w=!1,T=!1,ee()&&(z.style.visibility="hidden");if(ce(),he(),re(!0),ee()){var i=oe(),r=i.box,a=i.content;Y.props.animation&&(P([r,a],o),O([r,a],"hidden"))}se(),le(),Y.props.animation?ee()&&function(e,t){me(e,(function(){!Y.state.isVisible&&z.parentNode&&z.parentNode.contains(z)&&t()}))}(o,Y.unmount):Y.unmount()},hideWithInteractivity:function(e){0;ne().addEventListener("mousemove",x),g(j,x),x(e)},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){0;Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Pe(),Oe().forEach((function(e){e._tippy.unmount()})),z.parentNode&&z.parentNode.removeChild(z);H=H.filter((function(e){return e!==Y})),Y.state.isMounted=!1,ae("onHidden",[Y])},destroy:function(){0;if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),ye(),delete e._tippy,Y.state.isDestroyed=!0,ae("onDestroy",[Y])}};if(!A.render)return Y;var W=A.render(Y),z=W.popper,q=W.onUpdate;z.setAttribute("data-tippy-root",""),z.id="tippy-"+Y.id,Y.popper=z,e._tippy=Y,z._tippy=Y;var X=K.map((function(e){return e.fn(Y)})),Z=e.hasAttribute("aria-expanded");return ve(),le(),re(),ae("onCreate",[Y]),A.showOnCreate&&Ce(),z.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),z.addEventListener("mouseleave",(function(){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",x)})),Y;function Q(){var e=Y.props.touch;return Array.isArray(e)?e:[e,0]}function $(){return"hold"===Q()[0]}function ee(){var e;return!(null==(e=Y.props.render)||!e.$$tippy)}function te(){return p||e}function ne(){var e=te().parentNode;return e?C(e):document}function oe(){return G(z)}function ie(e){return Y.state.isMounted&&!Y.state.isVisible||L.isTouch||a&&"focus"===a.type?0:d(Y.props.delay,e?0:1,F.delay)}function re(e){void 0===e&&(e=!1),z.style.pointerEvents=Y.props.interactive&&!e?"":"none",z.style.zIndex=""+Y.props.zIndex}function ae(e,t,n){var o;(void 0===n&&(n=!0),X.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=Y.props)[e].apply(o,t)}function se(){var t=Y.props.aria;if(t.content){var n="aria-"+t.content,o=z.id;m(Y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(Y.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function le(){!Z&&Y.props.aria.expanded&&m(Y.props.triggerTarget||e).forEach((function(e){Y.props.interactive?e.setAttribute("aria-expanded",Y.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",x),j=j.filter((function(e){return e!==x}))}function ue(t){if(!L.isTouch||!N&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!Y.props.interactive||!R(z,n)){if(m(Y.props.triggerTarget||e).some((function(e){return R(e,n)}))){if(L.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}else ae("onClickOutside",[Y,t]);!0===Y.props.hideOnClick&&(Y.clearDelayTimeouts(),Y.hide(),I=!0,setTimeout((function(){I=!1})),Y.state.isMounted||he())}}}function de(){N=!0}function pe(){N=!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 me(e,t){var n=oe().box;function o(e){e.target===n&&(k(n,"remove",o),t())}if(0===e)return t();k(n,"remove",s),k(n,"add",o),s=o}function ge(t,n,o){void 0===o&&(o=!1),m(Y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),D.push({node:e,eventType:t,handler:n,options:o})}))}function ve(){var e;$()&&(ge("touchstart",_e,{passive:!0}),ge("touchend",Se,{passive:!0})),(e=Y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,_e),e){case"mouseenter":ge("mouseleave",Se);break;case"focus":ge(M?"focusout":"blur",Ee);break;case"focusin":ge("focusout",Ee)}}))}function ye(){D.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)})),D=[]}function _e(e){var t,n=!1;if(Y.state.isEnabled&&!Ae(e)&&!I){var o="focus"===(null==(t=a)?void 0:t.type);a=e,p=e.currentTarget,le(),!Y.state.isVisible&&E(e)&&j.forEach((function(t){return t(e)})),"click"===e.type&&(Y.props.trigger.indexOf("mouseenter")<0||T)&&!1!==Y.props.hideOnClick&&Y.state.isVisible?n=!0:Ce(e),"click"===e.type&&(T=!n),n&&!o&&ke(e)}}function be(e){var t=e.target,n=te().contains(t)||z.contains(t);if("mousemove"!==e.type||!n){var o=Oe().concat(z).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:A}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,r=e.props.interactiveBorder,a=v(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-o+l>r,f=o-t.bottom-c>r,h=t.left-n+u>r,m=n-t.right-d>r;return p||f||h||m}))})(o,e)&&(ce(),ke(e))}}function Se(e){Ae(e)||Y.props.trigger.indexOf("click")>=0&&T||(Y.props.interactive?Y.hideWithInteractivity(e):ke(e))}function Ee(e){Y.props.trigger.indexOf("focusin")<0&&e.target!==te()||Y.props.interactive&&e.relatedTarget&&z.contains(e.relatedTarget)||ke(e)}function Ae(e){return!!L.isTouch&&$()!==e.type.indexOf("touch")>=0}function Te(){Pe();var t=Y.props,n=t.popperOptions,i=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,c=ee()?G(z).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||te()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=oe().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={}}}},p=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},d];ee()&&c&&p.push({name:"arrow",options:{element:c,padding:3}}),p.push.apply(p,(null==n?void 0:n.modifiers)||[]),Y.popperInstance=(0,o.fi)(u,z,Object.assign({},n,{placement:i,onFirstUpdate:l,modifiers:p}))}function Pe(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function Oe(){return y(z.querySelectorAll("[data-tippy-root]"))}function Ce(e){Y.clearDelayTimeouts(),e&&ae("onTrigger",[Y,e]),fe();var t=ie(!0),o=Q(),i=o[0],r=o[1];L.isTouch&&"hold"===i&&r&&(t=r),t?n=setTimeout((function(){Y.show()}),t):Y.show()}function ke(e){if(Y.clearDelayTimeouts(),ae("onUntrigger",[Y,e]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=ie(!1);t?i=setTimeout((function(){Y.state.isVisible&&Y.hide()}),t):r=requestAnimationFrame((function(){Y.hide()}))}}else he()}}function Y(e,t){void 0===t&&(t={});var n=F.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",N,c),window.addEventListener("blur",D);var o=Object.assign({},t,{plugins:n}),i=T(e).reduce((function(e,t){var n=t&&K(t,o);return n&&e.push(n),e}),[]);return S(e)?i[0]:i}Y.defaultProps=F,Spicetify.Tippy=Y;Y.setDefaultProps=function(e){Object.keys(e).forEach((function(t){F[t]=e[t]}))},Y.currentInput=L;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)}});Y.setDefaultProps({animation:!1});const W=Y;var z=n(59496),q=n(87995);function X(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o=0||(i[n]=e[n]);return i}var Z="undefined"!=typeof window&&"undefined"!=typeof document;function Q(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function $(){return Z&&document.createElement("div")}function ee(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(!ee(e[n],t[n]))return!1}return!0}return!1}function te(e){var t=[];return e.forEach((function(e){t.find((function(t){return ee(e,t)}))||t.push(e)})),t}function ne(e,t){var n,o;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:te([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(o=t.popperOptions)?void 0:o.modifiers)||[]))})})}var oe=Z?z.useLayoutEffect:z.useEffect;function ie(e){var t=(0,z.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function re(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var ae={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 o(){e.props.className&&!n()||re(t,"add",e.props.className)}return{onCreate:o,onBeforeUpdate:function(){n()&&re(t,"remove",e.props.className)},onAfterUpdate:o}}};function se(e){return function(t){var n=t.children,o=t.content,i=t.visible,r=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,X(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),f=void 0!==i,h=void 0!==r,m=(0,z.useState)(!1),g=m[0],v=m[1],y=(0,z.useState)({}),_=y[0],b=y[1],S=(0,z.useState)(),E=S[0],A=S[1],T=ie((function(){return{container:$(),renders:1}})),P=Object.assign({ignoreAttributes:d},p,{content:T.container});f&&(P.trigger="manual",P.hideOnClick=!1),h&&(c=!0);var O=P,C=P.plugins||[];a&&(O=Object.assign({},P,{plugins:h&&null!=r.data?[].concat(C,[{fn:function(){return{onTrigger:function(e,t){var n=r.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):C,render:function(){return{popper:T.container}}}));var k=[s].concat(n?[n.type]:[]);return oe((function(){var t=s;s&&s.hasOwnProperty("current")&&(t=s.current);var n=e(t||T.ref||$(),Object.assign({},O,{plugins:[ae].concat(P.plugins||[])}));return T.instance=n,c&&n.disable(),i&&n.show(),h&&r.hook({instance:n,content:o,props:O,setSingletonContent:A}),v(!0),function(){n.destroy(),null==r||r.cleanup(n)}}),k),oe((function(){var e;if(1!==T.renders){var t=T.instance;t.setProps(ne(t.props,O)),null==(e=t.popperInstance)||e.forceUpdate(),c?t.disable():t.enable(),f&&(i?t.show():t.hide()),h&&r.hook({instance:t,content:o,props:O,setSingletonContent:A})}else T.renders++})),oe((function(){var e;if(a){var t=T.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,o=null==(t=n.modifiersData)?void 0:t.hide;_.placement===n.placement&&_.referenceHidden===(null==o?void 0:o.isReferenceHidden)&&_.escaped===(null==o?void 0:o.hasPopperEscaped)||b({placement:n.placement,referenceHidden:null==o?void 0:o.isReferenceHidden,escaped:null==o?void 0:o.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[_.placement,_.referenceHidden,_.escaped].concat(k)),z.createElement(z.Fragment,null,n?(0,z.cloneElement)(n,{ref:function(e){T.ref=e,Q(n.ref,e)}}):null,g&&(0,q.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(_),E,T.instance):o,T.container))}}var le=function(e,t){return(0,z.forwardRef)((function(n,o){var i=n.children,r=X(n,["children"]);return z.createElement(e,Object.assign({},t,r),i?(0,z.cloneElement)(i,{ref:function(e){Q(o,e),Q(i.ref,e)}}):null)}))};const ce=le(se(W),{render:function(){return""}})},21366: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},71785:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const o=200,i=0,r="linear",a=!0;class s{constructor(e={}){this._curve=e.curve||r,this._baseTime=e.baseTime||o,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}}},19713:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var o=n(96583);var i=n(71785);const r={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class a{constructor(e,t){this._resolver=function(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},r),t),{backoffInitial:a,maxDuration:s,maxRetries:l,maxTime:c,retryPredicate:u}=n,d=(0,o.__rest)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=a,this._maxDuration=s,this._maxRetries=l,this._maxTime=c,this._retryPredicate=u,this._backoffInitial=a,this._counter=new i.A(d),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new a(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)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._isDestroyed||(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(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(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._destroy()}getRetryCount(){return this._callCount}}},77321:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var o,i={};n.r(i),n.d(i,{disable:()=>v,disableAll:()=>b,enable:()=>g,enableAll:()=>_,forTag:()=>S,intercept:()=>f,list:()=>m,remove:()=>E,setLevel:()=>y,unintercept:()=>h}),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"}(o||(o={}));var r=n(14224);const a=void 0!==r&&"true"==={}.DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=o.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 o={args:n,type:e,tag:this.tag};this._predicate(o)||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,o=t.length;e{}}function m(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 g(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||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 S(e,t){let n,o;if("string"==typeof e?(n=e.toLowerCase(),o=t):(n=e.tag,o=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,o,d);return i.setLevel(p),c[n]=i,u.push(i),i}function E(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const o=u.indexOf(n);-1!==o&&u.splice(o,1)}},60220:(e,t,n)=>{"use strict";function o(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}n.d(t,{$:()=>o})},46506:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var o,i={};n.r(i),n.d(i,{disable:()=>v,disableAll:()=>b,enable:()=>g,enableAll:()=>_,forTag:()=>S,intercept:()=>f,list:()=>m,remove:()=>E,setLevel:()=>y,unintercept:()=>h}),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"}(o||(o={}));class r{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=o.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 o={args:n,type:e,tag:this.tag};this._predicate(o)||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,o=t.length;e{}}function m(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 g(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||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 S(e,t){let n,o;if("string"==typeof e?(n=e.toLowerCase(),o=t):(n=e.tag,o=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,o,d);return i.setLevel(p),c[n]=i,u.push(i),i}function E(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const o=u.indexOf(n);-1!==o&&u.splice(o,1)}},68035:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var o={};n.r(o),n.d(o,{decode:()=>d,encode:()=>u});const i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r={},a={};!function(){for(let e=0,t=i.length;e{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t>2),s.charAt((3&e)<<4),"==");break}const r=t.charCodeAt(i++);if(i===o){n.push(s.charAt(e>>2),s.charAt((3&e)<<4|(240&r)>>4),s.charAt((15&r)<<2),"=");break}const a=t.charCodeAt(i++);n.push(s.charAt(e>>2),s.charAt((3&e)<<4|(240&r)>>4),s.charAt((15&r)<<2|(192&a)>>6),s.charAt(63&a))}return n.join("")},d=function(e){const t=String(e),n=[],o=t.length;let i,r,a=0;for(;;){do{i=c.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a>4));do{i=c.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a>2));do{r=c.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&awindow.btoa(e),d=e=>window.atob(e))},39222:(e,t,n)=>{"use strict";function o(){let e,t;return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}n.d(t,{$:()=>o})},86338:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var o={};n.r(o),n.d(o,{disable:()=>v,disableAll:()=>b,enable:()=>g,enableAll:()=>_,forTag:()=>S,intercept:()=>f,list:()=>m,remove:()=>E,setLevel:()=>y,unintercept:()=>h});var i;n(14224);!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 r=n(14224);const a=void 0!==r&&"true"==={}.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 o={args:n,type:e,tag:this.tag};this._predicate(o)||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,o=t.length;e{}}function m(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 g(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||void 0===t?void 0:t.toLowerCase();let i=u.length;for(;i--;){const t=u[i];t.matchesTag(e)&&t.enable()}}}function v(e){var t;const n=Array.isArray(e)?e:[e];let o=n.length;for(;o--;){const e=null===(t=n[o])||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 S(e,t){let n,o;if("string"==typeof e?(n=e.toLowerCase(),o=t):(n=e.tag,o=e.description),c.hasOwnProperty(n)&&c[n])return c[n];const i=new a(n,o,d);return i.setLevel(p),c[n]=i,u.push(i),i}function E(e){const t=e.toLowerCase();if(!c.hasOwnProperty(t)||!c[t])return;const n=c[t];c[t]=null;const o=u.indexOf(n);-1!==o&&u.splice(o,1)}},47739:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Base62:()=>o,Base64:()=>i});var o={};n.r(o),n.d(o,{fromBytes:()=>f,fromHex:()=>g,toBytes:()=>h,toHex:()=>m});var i={};n.r(i),n.d(i,{decode:()=>S,encode:()=>b});const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a={},s={};function l(e,t,n){let o=0;for(let i=0;i{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;t>2),v.charAt((3&e)<<4),"==");break}const r=t.charCodeAt(i++);if(i===o){n.push(v.charAt(e>>2),v.charAt((3&e)<<4|(240&r)>>4),v.charAt((15&r)<<2),"=");break}const a=t.charCodeAt(i++);n.push(v.charAt(e>>2),v.charAt((3&e)<<4|(240&r)>>4),v.charAt((15&r)<<2|(192&a)>>6),v.charAt(63&a))}return n.join("")},S=function(e){const t=String(e),n=[],o=t.length;let i,r,a=0;for(;;){do{i=_.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a>4));do{i=_.charCodeAt(255&t.charCodeAt(a++))}while(255===i&&a>2));do{r=_.charCodeAt(255&t.charCodeAt(a++))}while(255===r&&awindow.btoa(e),S=e=>window.atob(e))},6768:(e,t,n)=>{"use strict";n.d(t,{eV:()=>r,Hx:()=>c});const o="undefined"!=typeof globalThis&&"function"==typeof globalThis.queueMicrotask?globalThis.queueMicrotask.bind(globalThis):function(){if("undefined"==typeof Promise)return e=>setTimeout(e,0);const e=Promise.resolve();return t=>{e.then(t).catch((e=>setTimeout((()=>{throw e}),0)))}}();var i;!function(e){e.INVALID_IDENT_DATA="INVALID_IDENT_DATA",e.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED"}(i||(i={}));const r={UNKNOWN:"unknown",EMPTY:"",ZERO:0,EMPTY_VERSION:"0.0.0"};class a extends Error{constructor(e,t,n){super(t),this.name="LoggingError",this.code=e,this.status=n||0}}function s(e,t){const n=e.indexOf(t);return-1===n?[e,""]:[e.slice(0,n),e.slice(n+t.length)]}const l=202;class c{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||r.EMPTY,platform:t||r.EMPTY,client_version:n||r.EMPTY_VERSION})))}_assertValidIdentData(e){if(!e.sdk_id)throw new a(i.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 o=(n="endpoint",t.reduce((function(e,t){var o;const i=t[n];return void 0===i||(e[i]=null!==(o=e[i])&&void 0!==o?o:[],e[i].push(t)),e}),{})),r=Object.keys(o).map((t=>{var n;const r=null===(n=o[t])||void 0===n?void 0:n.map((({payload:e})=>e));return(null==r?void 0:r.length)?this._transport.request(`${this._endpoint}${t}`,{method:"POST",payload:JSON.stringify(Object.assign({messages:r},e)),retry:{maxRetries:5,condition:e=>e.status!==l}}).then((({status:e})=>e===l||Promise.reject(new a(i.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e)))):Promise.resolve(!0)}));return Promise.all(r).then((()=>!0))}var n;return Promise.resolve(!0)}))}_sendLog(e,t){return this.sendLog(e,t)}sendLog(e,t,n){const r=null==n?void 0:n.forget;if(null==n?void 0:n.batch){if(r)throw new Error("'forget' cannot be used together with 'batch'.");return new Promise((n=>{this._batchQueue.push({endpoint:e,payload:t}),o((()=>{this._sendBatchedLogs().then(n)}))}))}return this._identData.then((n=>{this._assertValidIdentData(n);let o=this._endpoint+e;const i=r?this._transport.getLastToken():null;return i&&(o=function(e,t,n){const[o,i]=s(e,"#"),[r,a]=s(o,"?"),l=i?`#${i}`:"";let c=`${t}=${encodeURIComponent(n)}`;const u=a.split("&");for(const e of u)e.length>0&&s(e,"=")[0]!==t&&(c+=`&${e}`);return`${r}?${c}${l}`}(o,"access_token",i)),this._transport.request(o,{method:"POST",payload:JSON.stringify(Object.assign(Object.assign({},t),n)),forget:r,retry:{maxRetries:5,condition:e=>e.status!==l}})})).then((({status:e})=>!(!r&&e!==l)||Promise.reject(new a(i.LOGGING_REQUEST_FAILED,`Logging service responded with status ${e}`,e))))}}},26336:e=>{"undefined"!=typeof self&&self,e.exports=function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].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,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},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 o(e,t){for(var n=-1,o=Array(e);++n-1&&e%1==0&&e-1&&e%1==0&&e<=S}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 S=9007199254740991,E="[object Arguments]",A="[object Function]",T="[object GeneratorFunction]",P=/^(?:0|[1-9]\d*)$/,O=Object.prototype,C=O.hasOwnProperty,k=O.toString,R=O.propertyIsEnumerable,L=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),I=Math.max,N=!R.call({valueOf:1},"valueOf"),w=Array.isArray,D=function(e){return s((function(t,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(i--,r):void 0,a&&u(n[0],n[1],a)&&(r=i<3?void 0:r,i=1),t=Object(t);++o=0&&(t[o]=n.join(": "))}})),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=["x-cdn","content-type"]},function(e,t,n){"use strict";var o=SyntaxError,i=Function,r=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 r},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%":o,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":r,"%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},m=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 o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return h[t]=n,n},g={"%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"]},v=n(10),y=n(49),_=v.call(Function.call,Array.prototype.concat),b=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,P=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var i=[];return S(e,A,(function(e,t,n,o){i[i.length]=n?S(o,T,"$1"):t||e})),i},O=function(e,t){var n,i=e;if(y(g,i)&&(i="%"+(n=g[i])[0]+"%"),y(h,i)){var a=h[i];if(a===p&&(a=m(i)),void 0===a&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new r('"allowMissing" argument must be a boolean');var n=P(e),i=n.length>0?n[0]:"",a=O("%"+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 S=s(c,m);c=(f=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:c[m]}else f=y(c,m),c=c[m];f&&!u&&(h[l]=c)}}return c}},function(e,t,n){"use strict";var o=n(48);e.exports=Function.prototype.bind||o},function(e,t,n){"use strict";var o=String.prototype.replace,i=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return o.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findMediaElement=t.getMuxPlayerId=void 0;var o=n(7),i=function(e){return e&&void 0!==e.nodeName?(e.muxId||(e.muxId=e.id||(0,o.generateShortID)()),e.muxId):e},r=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=r},function(e,t,n){"use strict";function o(){return"1"===(i.default.doNotTrack||i.default.navigator&&(i.default.navigator.doNotTrack||i.default.navigator.msDoNotTrack))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;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 o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i={exists:function(){var e=o.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=o.default.performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=o.default.performance,t=e&&e.timing;return t&&t.navigationStart}};t.default=i},function(e,t,n){"use strict";var o=n(44),i=n(54),r=n(11);e.exports={formats:r,parse:i,stringify:o}},function(e,t,n){"use strict";var o=n(11),i=Object.prototype.hasOwnProperty,r=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(r(n)){for(var o=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||r===o.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=[],o=0;o=0&&t<=c.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(s=t,!1!==n&&i(t),o.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),o=i(n,2),r=o[0],s=o[1];t.video_source_domain=s,t.video_source_hostname=r}delete t.ad_request_id,this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat()},I.prototype._updateStateData=function(){(0,a.default)(this.data,this.getStateData()),this.getPlayheadTime&&(this.data.player_playhead_time=this.getPlayheadTime()),this._sanitizeData()},I.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")}}))},I.prototype._resetVideoData=function(e,t){var n=this;Object.keys(this.data).forEach((function(e){0===e.indexOf("video_")&&delete n.data[e]}))},I.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},I.prototype._resetErrorData=function(e,t){delete this.data.player_error_code,delete this.data.player_error_message},I.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()},I.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))},I.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.")},I.prototype.removeHLSJS=function(){this.hlsjs&&((0,f.stopMonitoringHlsJs)(this.hlsjs),this.hlsjs=void 0)},I.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.")},I.prototype.removeDashJS=function(){this.dashjs&&((0,h.stopMonitoringDashJS)(this.dashjs),this.dashjs=void 0)},t.default=I},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=r.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 r=o(n(23)),a=o(n(25))},function(e,t,n){(function(t){var o,i=void 0!==t?t:"undefined"!=typeof window?window:{},r=n(24);"undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),e.exports=o}).call(t,n(6))},function(e,t){},function(e,t,n){(function(e,o){var i;!function(o){"object"==typeof e&&e&&e.exports;var r=function(e){this.message=e};r.prototype=new Error,r.prototype.name="InvalidCharacterError";var a=function(e){throw new r(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,o,i=0,r="",c=-1;++c>(-2*i&6)));return r},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,o="",i=-1,r=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),o+=s.charAt(t>>10)+s.charAt(t>>4&63)+s.charAt(t<<2&63)+"="):1==n&&(t=e.charCodeAt(i),o+=s.charAt(t>>2)+s.charAt(t<<4&63)+"=="),o},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 o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringHlsJs=t.monitorHlsJs=void 0;var i=o(n(8)),r=o(n(14)),a=n(5),s=function(e){if(!e)return{};var t=r.default.navigationStart(),n=e.loading,o=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+o),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 o=arguments[4],i=e.log;if(r.default.exists()){var c=function(n,o){return e.emit(t,n,o)},u=function(e,t){var n=t.levels,o=t.audioTracks,i=t.url,r=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}})),o.forEach((function(e,t){p[t]={name:e.name,language:e.lang,bitrate:e.bitrate}}));var f=s(r),h=f.bytesLoaded,m=f.requestStart,g=f.responseStart,v=f.responseEnd;c("requestcompleted",{request_event_type:e,request_bytes_loaded:h,request_start:m,request_response_start:g,request_response_end:v,request_type:"manifest",request_hostname:(0,a.extractHostname)(i),request_response_headers:l(u),request_rendition_lists:{media:d,audio:p,video:{}}})};n.on(o.Events.MANIFEST_LOADED,u);var d=function(e,t){var n=t.details,o=t.level,i=t.networkDetails,r=t.stats,u=s(r),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:o,request_type:"manifest",request_hostname:(0,a.extractHostname)(n.url),request_response_headers:l(i)})};n.on(o.Events.LEVEL_LOADED,d);var p=function(e,t){var n=t.details,o=t.networkDetails,i=t.stats,r=s(i),u=r.bytesLoaded,d=r.requestStart,p=r.responseStart,f=r.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(o)})};n.on(o.Events.AUDIO_TRACK_LOADED,p);var f=function(e,t){var o=t.stats,i=t.networkDetails,r=t.frag,u=s(o),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:r.duration};"main"===r.type?(d.request_type="media",d.request_current_level=r.level,d.request_video_width=(n.levels[r.level]||{}).width,d.request_video_height=(n.levels[r.level]||{}).height):d.request_type=r.type,c("requestcompleted",d)};n.on(o.Events.FRAG_LOADED,f);var h=function(e,t){var n=t.details,i=t.response,r=t.context,s=t.frag;if(n===o.ErrorDetails.MANIFEST_LOAD_ERROR||n===o.ErrorDetails.MANIFEST_LOAD_TIMEOUT||n===o.ErrorDetails.FRAG_LOAD_ERROR||n===o.ErrorDetails.FRAG_LOAD_TIMEOUT||n===o.ErrorDetails.LEVEL_LOAD_ERROR||n===o.ErrorDetails.LEVEL_LOAD_TIMEOUT){var l=s&&s.url||r&&r.url||"";c("requestfailed",{request_error:n,request_url:l,request_hostname:(0,a.extractHostname)(l),request_type:n===o.ErrorDetails.FRAG_LOAD_ERROR||n===o.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":"manifest",request_error_code:i&&i.code,request_error_text:i&&i.text})}};n.on(o.Events.ERROR,h);var m=function(e,t){var n=t.frag,o=n&&n._url||"";c("requestcanceled",{request_cancel:e,request_url:o,request_type:"media",request_hostname:(0,a.extractHostname)(o)})};n.on(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,m);var g=function(e,t){var o=t.level,r=n.levels[o];if(r&&r.attrs&&r.attrs.BANDWIDTH){var a=r.attrs.BANDWIDTH;a?c("renditionchange",{video_source_bitrate:a,video_source_width:r.width,video_source_height:r.height}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(o.Events.LEVEL_SWITCHED,g),n._stopMuxMonitor=function(){n.off(o.Events.MANIFEST_LOADED,u),n.off(o.Events.LEVEL_LOADED,d),n.off(o.Events.AUDIO_TRACK_LOADED,p),n.off(o.Events.FRAG_LOADED,f),n.off(o.Events.ERROR,h),n.off(o.Events.FRAG_LOAD_EMERGENCY_ABORTED,m),n.off(o.Events.LEVEL_SWITCHED,g),n.off(o.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(o.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 o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.stopMonitoringDashJS=t.monitorDashJS=void 0;var i=o(n(0)),r=o(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 o=n[n.length-1],i=(0,a.extractHostname)(o.url),s=o.bytesLoaded,l=new Date(o.requestStartDate).getTime(),c=new Date(o.firstByteDate).getTime(),u=new Date(o.requestEndDate).getTime(),d=isNaN(o.duration)?0:o.duration,p="function"==typeof t.getMetricsFor?t.getMetricsFor(o.mediaType).HttpList:t.getDashMetrics().getHttpRequests(o.mediaType),f=void 0;return p.length>0&&(f=(0,r.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),o=t.getCurrentTrackFor(e).bitrateList;return o?{currentLevel:n,renditionWidth:o[n].width||null,renditionHeight:o[n].height||null,renditionBitrate:o[n].bandwidth}:{}},c=function(e,t,n){var o=e.log;if(n&&n.on){var r=function(n,o){return e.emit(t,n,o)},c=function(e){var t=e.type,n=(e.data||{}).url;r("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,o=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(o,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,m=d.requestResponseHeaders,g=d.requestMediaDuration,v=d.requestHostname;r("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:m,request_hostname:v,request_media_duration:g,request_rendition_lists:u})};n.on("initFragmentLoaded",d);var p=function(e){var t=e.type,o=e.fragmentModel,i=e.chunk||{},a=i.mediaInfo,c=i.start,u=(a||{}).type,d=s(o,n),p=d.requestStart,f=d.requestResponseStart,h=d.requestResponseEnd,m=d.requestBytesLoaded,g=d.requestResponseHeaders,v=d.requestMediaDuration,y=d.requestHostname,_=l(u,n),b=_.currentLevel,S=_.renditionWidth,E=_.renditionHeight,A=_.renditionBitrate;r("requestcompleted",{request_event_type:t,request_start:p,request_response_start:f,request_response_end:h,request_bytes_loaded:m,request_type:u,request_response_headers:g,request_hostname:y,request_media_start_time:c,request_media_duration:v,request_current_level:b,request_labeled_bitrate:A,request_video_width:S,request_video_height:E})};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 o.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}},m=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 o.warn("missing bitrate info for "+a);f[a]=s;var l=h();l&&r("renditionchange",l)}}else o.warn("missing evt.newQuality in qualityChangeRendered event",e)};n.on("qualityChangeRendered",m);var g=function(e){var t=e.error,n=e.event,o=(n=n||{}).request||{},s=i.default.event&&i.default.event.currentTarget||{};r("requestfailed",{request_error:t+"_"+n.id+"_"+o.type,request_url:n.url,request_hostname:(0,a.extractHostname)(n.url),request_type:o.mediaType,request_error_code:s.status,request_error_type:s.statusText})};n.on("error",g),n._stopMuxMonitor=function(){n.off("manifestLoaded",c),n.off("initFragmentLoaded",d),n.off("mediaFragmentLoaded",p),n.off("qualityChangeRendered",m),n.off("error",g),delete n._stopMuxMonitor}}else o.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 o=function(){},i=0;o.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},o.prototype.off=function(e,t){var n=this._listeners&&this._listeners[e];n&&n.forEach((function(e,o){e._eventEmitterGuid===t._eventEmitterGuid&&n.splice(o,1)}))},o.prototype.one=function(e,t,n){var o=this;t._eventEmitterGuid=t._eventEmitterGuid||++i;var r=function i(){o.off(e,i),t.apply(n||this,arguments)};r._eventEmitterGuid=t._eventEmitterGuid,this.on(e,r)},o.prototype.emit=function(e,t){var n=this;if(this._listeners){t=t||{};var o=this._listeners["before*"]||[],i=this._listeners[e]||[],r=this._listeners["after"+e]||[],a=function(t,o){(t=t.slice()).forEach((function(t){t.call(n,{type:e},o)}))};a(o,t),a(i,t),a(r,t)}},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=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&&(o.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=o.default.setInterval((function(){e.emit("playbackheartbeat")}),this.playbackHeartbeatTime))},i.prototype._stopPlaybackHeartbeatInterval=function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(o.default.clearInterval(this._playbackHeartbeatInterval),this.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)},t.default=i},function(e,t,n){"use strict";function o(){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=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=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,o.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 o=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,o.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 o=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)}))};o.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)},o.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=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(3)),r=o(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,r.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 o=this.data.player_playhead_time-this._lastPlayheadTime,i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;o>0&&i-o>this.minimumRebufferDuration?((0,r.default)(this.data,"view_rebuffer_count",1),this._updateRebufferMetrics(i-o),this.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+i-o})):this._updateRebufferMetrics()}n?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}},a.prototype._updateRebufferMetrics=function(e){e>0&&(0,r.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 o=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||o.default.now(),t):"adplaying"!==e.type||void 0!==this.data.view_time_to_first_frame&&!this.inPrerollPosition()||this.calculateTimeToFirstFrame(i||o.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 o(){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),o=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,o),(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",o*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=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2))},function(e,t,n){"use strict";function o(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=r.default.now(),!1===this.isSeeking&&(this.isSeeking=!0,this.send("seeking"))})),this.on("seeked",(function(){this.isSeeking=!1;var e=this._lastSeekingTime||r.default.now(),t=r.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 r=o(n(3)),a=o(n(2)),s=o(n(1))},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}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")}}(),r=o(n(2)),a=n(5),s=o(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,r.default)(this.data,"view_ad_request_count"),this.inPrerollPosition()&&(this.data.view_preroll_requested=!0,this._adHasPlayed||(0,r.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,r.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,r.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,r.default)(this.data,{viewer_time:n}),this.send("devicesleep"),this.emit("devicewake",{viewer_time:t}),(0,r.default)(this.data,{viewer_time:t}),this.send("devicewake"))}},function(e,t,n){"use strict";function o(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},r=o(n(0)),a=n(43),s=o(n(4)),l=o(n(56)),c=o(n(13)),u=o(n(57)),d=o(n(17)),p=o(n(58)),f=o(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"],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 o=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:o.name,viewer_application_version:o.version,viewer_application_engine:o.layout,viewer_device_name:o.product,viewer_device_category:"",viewer_device_manufacturer:o.manufacturer,viewer_os_family:o.os&&o.os.family,viewer_os_architecture:o.os&&o.os.architecture,viewer_os_version:o.os&&o.os.version};var i=(0,u.default)();i&&(this.pageLevelData=(0,f.default)(this.pageLevelData,{viewer_connection_type:i})),void 0!==r.default&&r.default.location&&r.default.location.href&&(this.pageLevelData.page_url=r.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)(),o={};(0,f.default)(o,this.pageLevelData),(0,f.default)(o,t),(0,f.default)(o,n),(0,f.default)(o,this.viewerData),o.event=e,o.env_key=this.envKey,o.user_id&&(o.viewer_user_id=o.user_id,delete o.user_id);var r=o.mux_sample_number>=this.sampleRate,l=this._deduplicateBeaconData(e,o),u=(0,d.default)(l);if(this.lastEventTime=this.mux.utils.now(),r)return s.default.info("Not sending event due to sample rate restriction",e,o,u);if(!this.envKey)return s.default.info("Not sending event due to missing environment key",e,o,u);if(!this.rateLimited)if(s.default.info("Sending event",e,o,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 o.event="eventrateexceeded",u=(0,d.default)(o),this.eventQueue.queueEvent(o.event,u),s.default.error("Beaconing disabled due to rate limit.")}},g.prototype.destroy=function(){this.eventQueue.destroy(!1)};var v=function(e,t,n,o){return!(!e||0!==t.indexOf("request_")||"request_response_headers"!==t&&"object"===(void 0===n?"undefined":i(n))&&"object"===(void 0===o?"undefined":i(o))&&Object.keys(n||{}).length===Object.keys(o||{}).length)},y=function(e,t){return"renditionchange"===e&&0===t.indexOf("video_source_")};g.prototype._deduplicateBeaconData=function(e,t){var n=this,o={},i=t.view_id;if(!i||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)o=(0,f.default)({},t),i&&(this.previousBeaconData=o),i&&"viewend"===e&&(this.previousBeaconData=null);else{var r=0===e.indexOf("request");Object.keys(t).forEach((function(i){var a=t[i];(a!==n.previousBeaconData[i]||h.indexOf(i)>-1||v(r,i,a,n.previousBeaconData[i])||y(e,i))&&(o[i]=a,n.previousBeaconData[i]=a)}))}return o},t.default=g},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAndUpdateSessionData=t.getAndUpdateViewerData=void 0;var i=o(n(15)),r=o(n(55)),a=n(7),s=o(n(3)),l=function(){var e=void 0;try{e=i.default.parse(r.default.get("muxData")||"")}catch(t){e={}}return e},c=function(e){try{r.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?E.join(",")||null:void 0}];else if(l(d))A=d;else{var P=Object.keys(E);A=p?P.sort(p):P}for(var O=0;O0?y+v:""}},function(e,t,n){"use strict";var o=n(9),i=n(50),r=n(52),a=o("%TypeError%"),s=o("%WeakMap%",!0),l=o("%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),m=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var o=m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+r(e))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return c(e,o)}else if(l){if(t)return p(t,o)}else if(n)return g(n,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return d(e,o)}else if(l){if(t)return h(t,o)}else if(n)return y(n,o);return!1},set:function(o,i){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),u(e,o,i)):l?(t||(t=new l),f(t,o,i)):(n||(n={key:{},next:null}),v(n,o,i))}};return o}},function(e,t,n){"use strict";var o="undefined"!=typeof Symbol&&Symbol,i=n(47);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[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 o=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,r=o.call(arguments,1),a=function(){if(this instanceof n){var i=t.apply(this,r.concat(o.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(o.call(arguments)))},s=Math.max(0,t.length-r.length),l=[],c=0;c-1?i(n):n}},function(e,t,n){"use strict";var o=n(10),i=n(9),r=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||o.call(a,r),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(o,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(o,r,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,t,n){function o(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function i(e){return String(e).replace(/"/g,""")}function r(e){return!("[object Array]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function a(e){return!("[object Date]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function s(e){return!("[object RegExp]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function l(e){return!("[object Error]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function c(e){return!("[object String]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function u(e){return!("[object Number]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function d(e){return!("[object Boolean]"!==m(e)||ne&&"object"==typeof e&&ne in e)}function p(e){if(Z)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!X)return!1;try{return X.call(e),!0}catch(e){}return!1}function f(e){if(!e||"object"!=typeof e||!z)return!1;try{return z.call(e),!0}catch(e){}return!1}function h(e,t){return oe.call(e,t)}function m(e){return K.call(e)}function g(e){if(e.name)return e.name;var t=W.call(Y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function v(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return T(e.slice(0,t.maxStringLength),t)+i}return o(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,P),"single",t)}function P(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 O(e){return"Object("+e+")"}function C(e){return e+" { ? }"}function k(e,t,n,o){return e+" ("+t+") {"+(o?I(n,o):n.join(", "))+"}"}function R(e){for(var t=0;t=0)return!1;return!0}function L(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 I(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function N(e,t){var n=r(e),o=[];if(n){o.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 T(t,F);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var G=void 0===F.depth?5:F.depth;if(void 0===P&&(P=0),P>=G&&G>0&&"object"==typeof t)return r(t)?"[Array]":"[Object]";var J=L(F,P);if(void 0===w)w=[];else if(v(w,t)>=0)return"[Circular]";if("function"==typeof t){var j=g(t),K=N(t,D);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(K.length>0?" { "+K.join(", ")+" }":"")}if(p(t)){var Y=Z?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):X.call(t);return"object"!=typeof t||Z?Y:O(Y)}if(A(t)){for(var W="<"+String(t.nodeName).toLowerCase(),q=t.attributes||[],Q=0;Q"}if(r(t)){if(0===t.length)return"[]";var ee=N(t,D);return J&&!R(ee)?"["+I(ee,J)+"]":"[ "+ee.join(", ")+" ]"}if(l(t)){var oe=N(t,D);return 0===oe.length?"["+String(t)+"]":"{ ["+String(t)+"] "+oe.join(", ")+" }"}if("object"==typeof t&&U){if(te&&"function"==typeof t[te])return t[te]();if("symbol"!==U&&"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))})),k("Map",M.call(t),ie,J)}if(S(t)){var re=[];return V.call(t,(function(e){re.push(D(e,t))})),k("Set",B.call(t),re,J)}if(_(t))return C("WeakMap");if(E(t))return C("WeakSet");if(b(t))return C("WeakRef");if(u(t))return O(D(Number(t)));if(f(t))return O(D(z.call(t)));if(d(t))return O(H.call(t));if(c(t))return O(D(String(t)));if(!a(t)&&!s(t)){var ae=N(t,D),se=$?$(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",ce=!se&&ne&&Object(t)===t&&ne in t?m(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+"{"+I(ae,J)+"}":ue+"{ "+ae.join(", ")+" }"}return String(t)};var oe=Object.prototype.hasOwnProperty||function(e){return e in this}},function(e,t){},function(e,t,n){"use strict";var o=n(16),i=Object.prototype.hasOwnProperty,r=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.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&&(g=r(g)?[g]:g),i.call(c,m)?c[m]=o.combine(c[m],g):c[m]=g}return c},u=function(e,t,n,o){for(var i=o?t:l(t,n),r=e.length-1;r>=0;--r){var a,s=e[r];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,o){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(r),c=l?r.slice(0,l.index):r,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(r))&&p1){if("number"==typeof(r=t({path:"/"},o.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.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,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.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 o=new i.default.XMLHttpRequest;o.open("POST",this._beaconUrl),o.setRequestHeader("Content-Type","application/json"),o.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,r.default.info("Error sending beacon: "+t.status),r.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 o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(15)),r=o(n(0)),a={send:function(e,t){function n(){o.src=s+(a?"&rc="+a:"")}var o=new Image,a=0,s=e+"?"+i.default.stringify(t);return o.addEventListener("error",(function(){a>3||r.default.setTimeout((function(){a++,n()}),5e3*a)})),n(),o}};t.default=a},function(e,t,n){"use strict";function o(){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,r+=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/r*8e3,this.data.view_request_count=a,d>0&&(o+=d,this.data.view_max_request_latency=Math.max(this.data.view_max_request_latency||0,d),this.data.view_average_request_latency=o/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 o=0,i=0,r=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=o},function(e,t,n){"use strict";function o(e,t,n){var o=(0,s.findMediaElement)(t),u=r(o,3),d=u[0],p=u[1],f=u[2],h=e.log,m=e.utils.getComputedStyle,g=e.utils.secondsToMs,v={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)(v,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 g(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:g(d.currentTime),player_width:parseInt(m(d,"width")),player_height:parseInt(m(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:g(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),o=r(n,3),i=o[0],l=o[1],c=o[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},r=function(){function e(e,t){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}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=o;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 o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(63)),r=o(n(2)),a=o(n(64)),s=o(n(65)),l=o(n(1)),c=o(n(8)),u=n(5),d=o(n(3)),p={};p.safeCall=i.default,p.safeIncrement=r.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 o(e,t,n,o){var r=o;if(e&&"function"==typeof e[t])try{r=e[t].apply(e,n)}catch(e){i.default.info("safeCall error",e)}return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(4))},function(e,t,n){"use strict";function o(e,t){if(e&&t&&i.default&&"function"==typeof i.default.getComputedStyle){var n=void 0;return r&&r.has(e)&&(n=r.get(e)),n||(n=i.default.getComputedStyle(e,null),r&&r.set(e,n)),n.getPropertyValue(t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),r=void 0;i.default&&i.default.WeakMap&&(r=new WeakMap)},function(e,t,n){"use strict";function o(e){return Math.floor(1e3*e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}])},72260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyzerServiceClient=void 0;const o=n(33892),i=n(87873),r=n(89730);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}subLoudness(e,t){const n="spotify.analyzer_esperanto.proto.AnalyzerService",a="SubLoudness",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.LoudnessResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}static SERVICE_ID="spotify.analyzer_esperanto.proto.AnalyzerService";static DECODERS={SubLoudness:{request:i.Empty.decode,response:r.LoudnessResponse.decode}}}t.AnalyzerServiceClient=a},37834:(e,t,n)=>{"use strict";t.Fo=void 0;var o=n(72260);Object.defineProperty(t,"Fo",{enumerable:!0,get:function(){return o.AnalyzerServiceClient}});var i=n(89730)},87873:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},89730:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoudnessResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.analyzer_esperanto.proto",t.LoudnessResponse={encode(e,t=r.default.Writer.create()){t.uint32(10).fork();for(const n of e.loudness)t.int32(n);return t.ldelim(),""!==e.playbackId&&t.uint32(18).string(e.playbackId),"0"!==e.position&&t.uint32(24).uint64(e.position),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={loudness:[],playbackId:"",position:"0"};for(;n.pos>>3){case 1:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({loudness:Array.isArray(e?.loudness)?e.loudness.map((e=>Number(e))):[],playbackId:a(e.playbackId)?String(e.playbackId):"",position:a(e.position)?String(e.position):"0"}),toJSON(e){const t={};return e.loudness?t.loudness=e.loudness.map((e=>Math.round(e))):t.loudness=[],void 0!==e.playbackId&&(t.playbackId=e.playbackId),void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t={loudness:[],playbackId:"",position:"0"};return t.loudness=e.loudness?.map((e=>e))||[],t.playbackId=e.playbackId??"",t.position=e.position??"0",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},19312:(e,t,n)=>{"use strict";n.d(t,{ArtistNpv:()=>Ot});var o=n(59496);function i(e){return o.createElement("div",{className:`npv-video-overlay npv-video-overlay--${e.mediaType} ${e.isActive&&"npv-video-overlay--active"} ${e.trackMetadataVisible&&"npv-video-overlay--visible"}`},o.createElement("div",{className:`npv-video-overlay-top ${e.contextMetadataVisible&&"npv-video-overlay-top--active"}`}))}const r=o.createContext((()=>0)),a=o.createContext(0);function s(){const e=(0,o.useContext)(r);return(0,o.useMemo)(e,[e])}function l(){return(0,o.useContext)(a)}function c(e=0,t){const n=36e5,o=Math.floor(e/1e3),i=Math.floor(o/60),r=u(i%60),a=u(o%60);if(void 0===t?e>=n:t>=n){return`${u(Math.floor(i/60))}:${r}:${a}`}return`${r}:${a}`}function u(e){return e<10?`0${e}`:`${e}`}var d=n(49823);const p=({visible:e,children:t,disableAnimationsAndTransitions:n=!1,classNames:i="fade-in-and-out-transition",timeout:r=500,onEnter:a,onEntered:s,onExit:l,onExited:c})=>t?n?e?o.createElement(o.Fragment,null,t):null:o.createElement(d.Z,{in:e,appear:!0,mountOnEnter:!0,unmountOnExit:!0,classNames:i,timeout:r,onEnter:a,onEntered:s,onExit:l,onExited:c},t):null;function f(e){const t={animation:function(e,t=1){const n=s(),[i,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const e=setTimeout((()=>r(!1)),100);return r(!0),()=>clearTimeout(e)}),[n,e]),function(e,o){return void 0===e?"":`${"spotifyinternal-artistnpv-"+(i?"progress-reset":"progress")} ${e/t}ms linear -${n}ms ${o?"paused":"running"}`}}(e.duration,e.playbackSpeed)(e.duration,e.isPaused)};return o.createElement(p,{visible:e.progressBarVisible,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,classNames:`npv-progress-bar-transition--${e.mediaType}`},o.createElement("div",{className:"npv-progress-bar"},o.createElement("div",{className:"npv-progress-bar__bar"},o.createElement("div",{className:"npv-progress-bar__rail"}),o.createElement("div",{className:"npv-progress-bar__mark",style:t})),o.createElement("div",{className:"npv-progress-bar__timestamp"},o.createElement("time",{className:"npv-progress-bar__time npv-progress-bar__position"},o.createElement(h,{duration:e.duration})),o.createElement("time",{className:"npv-progress-bar__time npv-progress-bar__duration"},c(e.duration)))))}function h({duration:e}){const t=l();return o.createElement(o.Fragment,null,c(t,e))}const m=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"}),o.createElement("path",{d:"M7.25 9V4h1.5v5h-1.5zm0 3.026v-1.5h1.5v1.5h-1.5z"})),g=(0,o.memo)(m),v=e=>{var t;return o.createElement(o.Fragment,null,o.createElement(g,{className:"npv-modal__icon"}),o.createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title),e.errorDetails&&o.createElement("p",{className:"npv-modal__text npv-modal__details"},e.errorDetails))},y=({indicatorSize:e="md",className:t})=>o.createElement("div",{className:`${t} npv-loading-indicator`},o.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),o.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`}),o.createElement("div",{className:`npv-loading-indicator__circle npv-loading-indicator__circle--${e}`})),_=()=>o.createElement(y,null),b=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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,o.memo)(b),E=e=>{var t;return o.createElement(o.Fragment,null,o.createElement(S,{className:"npv-modal__icon"}),o.createElement("p",{className:"npv-modal__text"},null===(t=e.l10n)||void 0===t?void 0:t.title))},A={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":"فنان","CONTEXT_AUDIOBOOK":"كتاب صوتي","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","CONTEXT_AUDIOBOOK":"audioknihy","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","CONTEXT_AUDIOBOOK":"Hörbuch","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":"καλλιτέχνης","CONTEXT_AUDIOBOOK":"Ηχητικό βιβλίο","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","CONTEXT_AUDIOBOOK":"audiobook","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","CONTEXT_AUDIOBOOK":"audiolibro","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","CONTEXT_AUDIOBOOK":"audiolibro","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","CONTEXT_AUDIOBOOK":"äänikirja","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","CONTEXT_AUDIOBOOK":"Livre audio","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","CONTEXT_AUDIOBOOK":"livre audio","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ó","CONTEXT_AUDIOBOOK":"hangoskönyv","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","CONTEXT_AUDIOBOOK":"buku audio","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","CONTEXT_AUDIOBOOK":"audiolibro","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":"アーティスト","CONTEXT_AUDIOBOOK":"オーディオブック","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":"아티스트","CONTEXT_AUDIOBOOK":"오디오북","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","CONTEXT_AUDIOBOOK":"buku audio","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","CONTEXT_AUDIOBOOK":"luisterboek","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 songtekst is 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","CONTEXT_AUDIOBOOK":"audiobooka","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 utworu. 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","CONTEXT_AUDIOBOOK":"audiolivro","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":"исполнитель","CONTEXT_AUDIOBOOK":"аудиокнига","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","CONTEXT_AUDIOBOOK":"ljudbok","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 låttexten 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":"ศิลปิน","CONTEXT_AUDIOBOOK":"หนังสือเสียง","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çı","CONTEXT_AUDIOBOOK":"sesli kitap","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ĩ","CONTEXT_AUDIOBOOK":"sách nói","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":"藝人","CONTEXT_AUDIOBOOK":"有聲書","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":"無法載入這首歌曲的歌詞。請稍後再試。"}')},T=A.en;let P="en",O=T;const C={},k=e=>{if(e===P)return;const t=e.replace("_","-");O=A[t]||T,P=e},R=(e,t)=>(e.match(/\{[A-Z_]+\}/g)||[]).map((e=>e.replace(/[\{\}]/g,""))).reduce(((e,n)=>{let o=null;return o="number"==typeof t[n]?(e=>{try{return e.toLocaleString(P)}catch(t){return e.toString()}})(t[n]):t[n]||O[n]||n,e.replace(`{${n}}`,o)}),e),L=(e,t={})=>{if(!e)return"???";let n=O[e]||T[e]||e;if("string"!=typeof n&&void 0!==t.N){const e=((e,t)=>{try{return(C[e]||(C[e]=new Intl.PluralRules(e))).select(t)}catch(e){return"other"}})(P,parseInt(t.N,10));n[e]?n=n[e]:n.other&&(n=n.other)}return R(n,t)};function I(e){const t=function(e){return e.hasError?{className:"npv-modal__error",component:v,props:{errorDetails:e.errorDetails,l10n:{title:L("ERROR_GENERIC")}}}:function(e){const{playbackIsBuffering:t,currentTrack:n}=e,o=(null==n?void 0:n.mediaType)&&n.mediaType.toLowerCase();return!!t&&"video"===o}(e)?{className:"npv-modal__loading",component:_}:e.isOffline?{className:"npv-modal__offline",component:E,props:{l10n:{title:L("OFFLINE")}}}:{hidden:!0}}(e),n=null==t?void 0:t.component,i=e.disableAnimationsAndTransitions?0:1e3;return o.createElement(d.Z,{in:!t.hidden,classNames:"npv-modal",timeout:i,mountOnEnter:!0,unmountOnExit:!0},o.createElement("div",{className:`npv-modal ${null==t?void 0:t.className}`},o.createElement("div",{className:"npv-modal__content"},n&&o.createElement(n,Object.assign({},t.props)))))}var N=n(87995);const w=()=>{const e=(0,o.useRef)();(0,o.useEffect)((()=>(e.current=(()=>{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 create head element since no html element found");n=document.createElement("head"),e.appendChild(n)}const o=document.createElement("style");return o.setAttribute("type","text/css"),n.appendChild(o),o})(),()=>{var t;null===(t=e.current)||void 0===t||t.remove()})),[]);return t=>{e.current&&(e.current.textContent=t)}},D=({children:e,className:t})=>{const n=(0,o.useRef)(null),i=(0,o.useRef)(null);return((e,t,n)=>{const i=w();(0,o.useEffect)((()=>{var e,o;if(!t.current||!n.current)return;const r=1-(null!==(e=t.current.getBoundingClientRect().width)&&void 0!==e?e:1)/(null!==(o=n.current.getBoundingClientRect().width)&&void 0!==o?o:1);if(r<0)return void(n.current.style.animation="unset");const a=-100*r,s=Math.max(10*r,1.6),l=Math.min(Math.round(40/s),40),c=`marquee-${String(r).replace(/[^0-9]+/g,"")}`;n.current.style.animation=`${c} ${s}s linear infinite alternate`,i(`\n @-webkit-keyframes ${c} {\n 0%, ${l}% {\n -webkit-transform: translate3d(0, 0, 0);\n }\n ${100-l}%, 100% {\n -webkit-transform: translate3d(${a}%, 0, 0);\n }\n }\n\n @keyframes ${c} {\n 0%, ${l}% {\n transform: translate3d(0, 0, 0);\n -webkit-transform: translate3d(0, 0, 0);\n }\n ${100-l}%, 100% {\n transform: translate3d(${a}%, 0, 0);\n -webkit-transform: translate3d(${a}%, 0, 0);\n }\n }\n `)}),[n,t,e,i])})(e,n,i),o.createElement("p",{className:`${t} marquee`,ref:n},o.createElement("span",{className:"marquee__text",ref:i,"data-testid":"marquee-text"},e))},M=o.memo(D);function x(e){return o.createElement("div",{className:"npv-up-next"},o.createElement("img",{src:e.coverArtImageUrl,className:"npv-up-next__image",alt:"up next image"}),o.createElement("div",{className:"npv-up-next__info"},o.createElement("div",{className:"npv-up-next__text"},e.l10n.upNext),e.disableAnimationsAndTransitions?o.createElement("span",{className:"npv-up-next__metadata npv-up-next__metadata--static"},e.metadata):o.createElement(M,{className:"npv-up-next__metadata"},e.metadata)))}function F(e){const t=function(e){const t=l();return!!e&&e-t<=3e4}(e.duration),[n,i]=(0,o.useState)(null);(0,o.useEffect)((()=>{var n;null===(n=e.onVisibilityChanged)||void 0===n||n.call(e,t)}),[t]),(0,o.useEffect)((()=>{t&&i(e)}),[e,t]);const r=(0,o.useCallback)((()=>{i(null)}),[i]);if(!e.canRender)return null;const a=o.createElement(p,{visible:t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,onExited:r},o.createElement(x,Object.assign({},n||e)));return e.portal&&e.portal.current?N.createPortal(a,e.portal.current):a}const U=1e3;function B({position:e,timestamp:t,isPaused:n,isBuffering:i,playbackSpeed:s=1,children:l}){const[,c]=(0,o.useState)(0),u=!n&&!i;(0,o.useEffect)((()=>{if(!u)return;const e=setInterval((()=>{c((e=>e+1))}),U/s);return()=>{clearInterval(e)}}),[u,s]);const d=(0,o.useCallback)((()=>function(e,t,n,o){return e+(o?Date.now()-t:0)*n}(e,t,s,u)),[e,t,s,u]);return o.createElement(r.Provider,{value:d},o.createElement(a.Provider,{value:d()},l))}var V=n(50346);const G=V.JM,J=[G.ALBUM,G.SEARCH,G.TRACK,G.PLAYLIST,G.PLAYLIST_V2,G.COLLECTION,G.RADIO,G.STATION,G.EPISODE,G.SHOW,G.ARTIST,"audiobook"];function j(e){return J.includes(e)}function H(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},{contextType:o,contextUri:i}=e,r=o?function(e){return j(e)?`CONTEXT_${e.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${e}`),"")}(o):function(e){if(!e)return"";const t=(0,V.EC)(e);return t?j(t.type)?`CONTEXT_${t.type.replace(/\-.*/,"").toUpperCase()}`:(console.warn(`Context type not allowed: ${null==t?void 0:t.type}`),""):(console.warn("Invalid URI value for trackUri"),"")}(i);return r?(n.l10n.playingFromContextType=L("PLAYING_FROM_X",{CONTEXT:L(r)}),n):n}function K(e,t){var n;return!(!e.backgroundImageUrl&&!t)||"video"===(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)}const Y=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(" ")};n(56708);const W={isAnimating:!1,isAnimationDone:!1},z={isAnimating:!0,isAnimationDone:!1},q={isAnimating:!1,isAnimationDone:!0};function X(e,t=0){let n;return function(...o){const i=this;clearTimeout(n),n=setTimeout((()=>e.apply(i,o)),t)}}const Z=o.memo((e=>{const t=(0,o.useRef)(),[n,i]=(0,o.useState)(W),[r,a]=(0,o.useState)({current:e.src}),s=(0,o.useCallback)((()=>{a({previous:t.current,current:e.src}),i(W),t.current=e.src}),[e.src]),l=(0,o.useCallback)(X((()=>{i(z)})),[]),c=(0,o.useCallback)(X((()=>{i(q)})),[]);(0,o.useEffect)((()=>{const t=new Image,n=()=>l(),o=setImmediate((()=>{e.src&&(t.src=e.src,t.addEventListener("load",n))}));return s(),()=>{clearImmediate(o),t.removeEventListener("load",n)}}),[e.src]);const{isAnimating:u,isAnimationDone:d}=n;return o.createElement("div",{className:`npv-cross-fade-container ${e.className}`},r.previous&&!d&&o.createElement("img",{className:"npv-cross-fade-image npv-cross-fade-image--previous "+(u||d?"npv-cross-fade-image--fade-out":""),onAnimationEnd:c,onLoad:l,src:r.previous,alt:e.alt}),r.current&&(u||d)&&o.createElement("img",{className:"npv-cross-fade-image npv-cross-fade--next "+(u?"npv-cross-fade-image--fade-in":""),onAnimationEnd:c,src:r.current,alt:e.alt}))}));function Q(e){return o.createElement("div",{className:`npv-background-image ${e.showBackgroundImage&&"npv-background-image--active"}`},o.createElement(Z,{src:e.backgroundImageUrl}),o.createElement("div",{className:"npv-background-image__overlay"}))}function $(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 o.createElement("div",{className:t,style:{backgroundColor:e.backgroundColor,backgroundImage:"noise"===e.modifier?`linear-gradient(to bottom, ${e.backgroundColor}, ${e.backgroundColor})`:void 0}})}function ee(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 te=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"}),o.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"})),ne=(0,o.memo)(te);function oe(e){return o.createElement("div",{className:ee(e)},e.children,!e.hideDot&&o.createElement("div",{className:"npv-playback-controls__dot"}))}function ie(e){return o.createElement(oe,{className:"npv-playback-controls__shuffle",isActive:e.isActive},o.createElement(ne,{className:"npv-playback-controls__icon"}))}const re=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"})),ae=(0,o.memo)(re),se=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"}),o.createElement("path",{d:"M9.12 8V1H7.787c-.128.72-.76 1.293-1.787 1.313V3.36h1.57V8h1.55z"})),le=(0,o.memo)(se);function ce(e){return o.createElement(oe,{className:"npv-playback-controls__repeat",isActive:!!e.mode&&"off"!==e.mode},function(e){switch(e){case"all":return o.createElement(ae,{className:"npv-playback-controls__icon"});case"one":return o.createElement(le,{className:"npv-playback-controls__icon"});default:return null}}(e.mode))}const ue=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"})),de=(0,o.memo)(ue);function pe(e){return o.createElement(oe,{className:"npv-playback-controls__heart",isActive:e.isActive,hideDot:!0},o.createElement(de,{className:"npv-playback-controls__icon"}))}const fe=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"})),he=(0,o.memo)(fe);function me(e){const t=e.isPaused?"":"npv-playback-controls__play-pause--playing";return o.createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},o.createElement(he,{className:"npv-playback-controls__icon"}))}const ge=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"})),ve=(0,o.memo)(ge);function ye(e){const t=e.isPaused?"npv-playback-controls__play-pause--paused":"";return o.createElement("div",{className:`npv-playback-controls__action npv-playback-controls__play-pause ${t}`},o.createElement(ve,{className:"npv-playback-controls__icon"}))}function _e(e){return o.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),o.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"}),o.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z",fill:"white"}),o.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"}),o.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z",fill:"white"}),o.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"}),o.createElement("circle",{cx:"78",cy:"24",r:"7",stroke:"white",strokeOpacity:"0.3",strokeWidth:"2"}))}function be(e){return o.createElement("svg",Object.assign({viewBox:"0 0 110 48",xmlns:"http://www.w3.org/2000/svg"},e),o.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"}),o.createElement("path",{d:"M37.3917 32V16.6478H33.8429V22.6674H27.5265V16.6478H24V32H27.5265V25.8938H33.8429V32H37.3917Z"}),o.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"}),o.createElement("path",{d:"M50.762 32V26.2619H56.6097V23.1438H50.7397V19.8958H57.4132V16.6478H47.2132V32H50.762Z"}),o.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"}),o.createElement("circle",{cx:"80.2222",cy:"24",r:"8"}))}const Se=o.memo(_e),Ee=o.memo(be);function Ae(e){return!0===e.status?o.createElement(Ee,{className:"npv-playback-controls__hifi--on"}):o.createElement(Se,{className:"npv-playback-controls__hifi--off"})}function Te(e){return void 0===e.playbackHiFiStatus?null:o.createElement("div",{className:"npv-playback-controls__action npv-playback-controls__action--active npv-playback-controls__hifi"},o.createElement(Ae,{status:e.playbackHiFiStatus}))}function Pe(e){return o.createElement(p,{visible:e.isActive,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},o.createElement("div",{className:"npv-playback-controls"},o.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--left"},o.createElement(Te,{playbackHiFiStatus:e.playbackHiFiStatus}),o.createElement(pe,{isActive:null==e?void 0:e.isTrackLiked}),o.createElement(ie,{isActive:null==e?void 0:e.playbackIsShuffled}),o.createElement(ce,{mode:null==e?void 0:e.playbackRepeatMode})),o.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--center"}),o.createElement("div",{className:"npv-playback-controls__area npv-playback-controls__area--right"},o.createElement(me,{isPaused:null==e?void 0:e.isPaused}),o.createElement(ye,{isPaused:null==e?void 0:e.isPaused}))))}function Oe(e){var t;return null!==(t=e.CustomPlaybackControls)&&void 0!==t?t:o.createElement(Pe,Object.assign({},function(e){var t;const{playbackRepeatMode:n,playbackIsShuffled:o,playbackHiFiStatus:i,disableAnimationsAndTransitions:r}=e;return{playbackIsShuffled:o,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:r}}(e)))}function Ce(e){var t,n,o;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===(o=e.currentTrack)||void 0===o?void 0:o.coverArtImageUrl,hidden:!e.trackMetadataVisible}}var ke=n(2489),Re=n.n(ke);const Le={UNKNOWN:"UNKNOWN",UNSYNCED:"UNSYNCED",LINE_SYNCED:"LINE_SYNCED",SYLLABLE_SYNCED:"SYLLABLE_SYNCED"};function Ie(e,t,n){const o=n/t,i=Math.floor(e.length*o);return Math.max(Math.min(i,e.length-4),0)}function Ne(e){if(!e)return;const{provider:t,lines:n,syncType:o}=e;return n&&t&&o&&Object.values(Le).includes(o)&&function(e){return e.every((e=>void 0!==e.text&&void 0!==e.timestamp))&&!!e.length}(n)?{provider:t,lines:n,syncType:o}:void 0}const we=(e,t)=>{var n,o;const[i,r,a]=null!==(o=null===(n=Re().get(e))||void 0===n?void 0:n.value)&&void 0!==o?o:[0,0,0];return`rgba(${i}, ${r}, ${a}, ${t})`},De=140;function Me(e){return e.reduce(((e,t)=>e+t),0)}function xe(e,t,n,i){const r=(0,o.useRef)([]);return(0,o.useEffect)((()=>{r.current=[]}),[e]),(0,o.useCallback)((o=>{Me(r.current)>=De||(o.forEach((e=>{r.current[e.index]=e.text.length})),Me(r.current)>=De&&i(e,t,n))}),[i,e,t,n])}function Fe(e,t){const[n,i]=(0,o.useState)();return(0,o.useEffect)((()=>{var n,o;const r=Array.prototype.slice.call(null!==(o=null===(n=e.current)||void 0===n?void 0:n.querySelectorAll("[data-lyrics-line]"))&&void 0!==o?o:[]);i({key:t,value:r.map(((e,n)=>{const o=t[n];if(void 0!==o)return{element:e,text:o.text,index:n}})).filter((e=>void 0!==e))})}),[t]),(null==n?void 0:n.key)===t?n.value:[]}function Ue(e){const t=l(),n=(0,o.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 Be(e,t,n,i){const r=function(e){var t;const[n,i]=(0,o.useState)(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect().height);return(0,o.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,o.useEffect)((()=>{if(!n.length||!r)return;const e=function(e,t,n){var o;const i=null===(o=e[t])||void 0===o?void 0:o.element.offsetTop;return e.filter((e=>e.element.offsetTop>=i&&e.element.offsetTop{const n=l();return(0,o.useMemo)((()=>{const o=Ie(e,t,n);return e.slice(o)}),[e,t,n])};const Ge=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?N.createPortal(o.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,o]of Object.entries(t))n+=`\n ${e}: ${o};`;return`${n}\n}`})(e)))),n):null},Je=o.memo(Ge),je=e=>{const{showGradient:t,currentColor:n}=function(e){const[t,n]=(0,o.useState)(e),[i,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{n(e),r(!1);const t=setTimeout((()=>{r(!0)}),100);return()=>clearTimeout(t)}),[e]),{showGradient:i,currentColor:t}}(e.backgroundColor||""),i="npv-lyrics__gradient-background",r=we(n,0),a=we(n,.6),s=[{selector:`.${i}`,styles:[{background:`-webkit-gradient(linear, left top, left bottom, from(${r}), color-stop(30%, ${a}), color-stop(60%, ${n}))`},{background:`-webkit-linear-gradient(top, ${r} 0%, ${a} 30%, ${n} 60%)`},{background:`linear-gradient(to bottom, ${r} 0%, ${a} 30%, ${n} 60%)`}]}],l=`npv-lyrics__gradient ${i}\n ${t&&"npv-lyrics__gradient--shown"}\n ${e.fullScreen&&"npv-lyrics__gradient--full-screen"}\n `;return o.createElement(o.Fragment,null,o.createElement(Je,{styles:s}),o.createElement("div",{className:l}))},He=(0,o.memo)(je);function Ke(e){return o.createElement("div",{className:"npv-lyrics__sentences",style:{transform:`translateY(${-e.offsetTop}px)`},dir:"auto"},e.lyrics.lines.map(((t,n,i)=>{const r=function(e,t,n,o){return[n===t&&"npv-lyrics__text-wrapper--current",n>t&&"npv-lyrics__text-wrapper--next",n!1!==e)).join(" ")}(e.firstVisibleIndex,e.currentIndex,n,i.length);return o.createElement("div",{className:`npv-lyrics__text-wrapper ${r}`,key:n},o.createElement("p",{"data-lyrics-line":!0,className:"npv-lyrics__text"},t.text||" "))})),o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},L("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}const Ye=e=>{var t;const{firstVisibleIndex:n,currentIndex:i}=Ue(e.lyrics.lines),r=Fe(e.containerRef,e.lyrics.lines),a=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);Be(e.containerRef,a,r,n);const s=null===(t=r[n])||void 0===t?void 0:t.element,l=(0,o.useMemo)((()=>{var e;return null!==(e=null==s?void 0:s.offsetTop)&&void 0!==e?e:0}),[s]);return o.createElement(o.Fragment,null,o.createElement(Ke,{firstVisibleIndex:n,currentIndex:i,offsetTop:l,lyrics:e.lyrics}),o.createElement(He,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},We=100;function ze(e,t,n){const o=t.syllables||[],i=o[n];if(void 0!==i.duration)return i.duration;if(o.length>n+1){return o[n+1].timestamp-i.timestamp}return e.lines.length>t.index+1?e.lines[t.index+1].timestamp-i.timestamp:We}function qe(e){const t=(0,o.useRef)(null),n=(0,o.useRef)(null),i=(0,o.useRef)({index:e.line.index,text:e.line.text}),[,r]=(0,o.useReducer)((e=>e+1),0),[a,s]=(0,o.useState)(0),[l,c]=(0,o.useState)(0),[u,d]=(0,o.useState)("");return(0,o.useEffect)((()=>{function o(){null!==n.current&&(clearTimeout(n.current),n.current=null)}if(i.current.index!==e.line.index||i.current.text!==e.line.text)c(0),s(0),d(""),o(),n.current=setTimeout((()=>{r()}),0),i.current={index:e.line.index,text:e.line.text};else{const{alreadyShownSyllablesLength:n,currentSyllableDurationMs:o}=function(e,t,n){const o=t.syllables||[];let i=null,r=0;for(let e=0;en)break;i=t,r+=t.length}return null===i?{alreadyShownSyllablesLength:0,currentSyllableDurationMs:0}:{alreadyShownSyllablesLength:r,currentSyllableDurationMs:ze(e,t,i.index)}}(e.lyrics,e.line,e.songProgressMs),i=e.line.text.slice(0,n);c(function(e,t,n){if(!e||!t||!t.current)return 0;const o=window.getComputedStyle(t.current);return e.style.position="absolute",e.style.visibility="hidden",e.style.fontFamily=o.fontFamily,e.style.fontSize=o.fontSize,e.style.fontWeight=o.fontWeight,e.innerText=n,e.getBoundingClientRect().width}(e.textMeasurer,t,i)),s(o),d(i)}return()=>{o()}}),[e.lyrics,e.songProgressMs,e.line.index,e.line.text,c,s,d,r]),o.createElement(o.Fragment,null,o.createElement("span",{ref:t,className:"syllable-synced-animated-lyrics__full-text"},e.line.text),o.createElement("span",{className:"syllable-synced-animated-lyrics__progressing-text",style:{width:`${l}px`,transitionDuration:""+(u?`${a}ms`:"0ms")}},u))}function Xe(e){const t=(0,o.useRef)(null),[n,i]=(0,o.useState)(null),[r,a]=(0,o.useState)(null),[s,l]=(0,o.useState)(null),[c,u]=(0,o.useState)(null),[d,p]=(0,o.useState)(!1),f=(0,o.useCallback)((()=>{p(!1)}),[p]),h=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return(0,o.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))})),[t]),(0,o.useEffect)((()=>{const{currentLine:t,nextLine:n,lineAfterTheNext:o}=function(e,t){const n=e.lines,o=n.length;let i=-1;if(o>0&&tt);++e)i=e;if(-1===i)return{currentLine:null,nextLine:null,lineAfterTheNext:null};const r=n[i+1],a=n[i+2];return{currentLine:Object.assign({index:i},n[i]),nextLine:r?Object.assign({index:i+1},r):null,lineAfterTheNext:a?Object.assign({index:i+2},a):null}}(e.lyrics,e.songProgressMs);(null==r?void 0:r.index)===(null==t?void 0:t.index)&&(null==r?void 0:r.text)===(null==t?void 0:t.text)||(i(r),a(t),l(n),u(o),r&&p(!0))}),[e.lyrics,e.songProgressMs,r,i,a,l,u,p]),function(e,t,n,i,r){const a=(0,o.useRef)(null),s=(0,o.useRef)(null);(0,o.useEffect)((()=>{a.current=new Set,s.current=[]}),[e]),(0,o.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})),r(s.current))}),[r,n,i])}(e.trackUri,e.lyrics.lines,null==r?void 0:r.index,null==s?void 0:s.index,h),o.createElement(o.Fragment,null,o.createElement("div",{className:"syllable-synced-lyrics__container",onTransitionEnd:f},o.createElement("div",{className:"syllable-synced-lyrics-scroller "+(d?"syllable-synced-lyrics-scroller-animation":"")},d&&n&&o.createElement("span",{className:"syllable-synced-lyrics__static-line"},n.text),o.createElement("div",{className:"syllable-synced-animated-lyrics"},r&&t.current&&o.createElement(qe,{textMeasurer:t.current,lyrics:e.lyrics,line:r,songProgressMs:e.songProgressMs})),s&&o.createElement("span",{className:"syllable-synced-lyrics__static-line"},s.text),c&&o.createElement("span",{className:"syllable-synced-lyrics__static-line"},c.text))),o.createElement(He,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))}function Ze(e){return o.createElement("div",{className:"npv-track-metadata","aria-hidden":e.hidden},o.createElement("div",{className:"npv-track-metadata__content-wrapper"},e.coverArtImageUrl&&o.createElement(Z,{className:"npv-track-metadata__cover-art",src:e.coverArtImageUrl,alt:""}),(e.name||e.creatorName)&&o.createElement("div",{className:"npv-track-metadata__text-wrapper"},e.name&&o.createElement("div",{className:"npv-track-metadata__name"},e.name),e.creatorName&&o.createElement("div",{className:"npv-track-metadata__creator-name"},e.creatorName))))}function Qe(e){return o.createElement("div",{className:"npv-lyrics__sentences",style:e.style,dir:"auto"},e.lyrics.lines.map(((e,t)=>o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--unsynced","data-lyrics-line":!0,key:t},e.text))),o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--credits"},L("LYRICS_CREDITS",{PROVIDER:e.lyrics.provider})))}function $e(e){const t=s(),n=function(e,t){const[n,i]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const e=setTimeout((()=>i(!1)),100);return i(!0),()=>clearTimeout(e)}),[t]),(t,o,i)=>`${e}${n?"-reset":""} ${o}ms linear -${t}ms ${i?"paused":"running"}`}("slide-up",t),i=n(t,e.duration,e.isPaused),r={WebkitAnimation:i,animation:i};return o.createElement(Qe,Object.assign({},e,{style:r}))}function et(e){const t=Object.assign(Object.assign({},e.lyrics),{lines:Ve(e.lyrics.lines,e.duration)});return o.createElement(Qe,Object.assign({},e,{lyrics:t}))}const tt=e=>{const t=e.disableAnimationsAndTransitions?et:$e,n=xe(e.trackUri,e.lyrics.provider,e.lyrics.syncType,e.onLyricsReport);return function(e,t,n,i){const r=Fe(e,n),a=l();Be(e,t,r,(0,o.useMemo)((()=>Ie(n,i,a)),[n,i,a]))}(e.containerRef,n,e.lyrics.lines,e.duration),o.createElement(o.Fragment,null,o.createElement("p",{className:"npv-lyrics__text--unsynced-warning"},L("LYRICS_UNSYNCED")),o.createElement("div",{className:"npv-lyrics__container--unsynced"},o.createElement(t,{duration:e.duration,isPaused:e.isPaused,lyrics:e.lyrics})),o.createElement(He,{backgroundColor:e.backgroundColor,fullScreen:e.fullScreen}))},nt=e=>o.createElement("div",{className:"npv-lyrics__message"},o.createElement("p",{className:"npv-lyrics__text npv-lyrics__text--message"},e.children)),ot=e=>{const[t,n]=(0,o.useState)("");return(0,o.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]),o.createElement(nt,null,t?L(t):"")},it=e=>{const t=(0,o.useRef)(null);return o.createElement("div",{className:`npv-lyrics ${e.className}`},o.createElement($,{backgroundColor:e.backgroundColor,modifier:"noise"}),o.createElement(Ze,Object.assign({},e.trackMetadataProps)),o.createElement("div",{ref:t,className:`npv-lyrics__content ${e.fullScreen&&"npv-lyrics__content--full-screen"} ${e.lyricsContainerCustomClasses?e.lyricsContainerCustomClasses:""}`},!e.content&&"success"===e.status&&o.createElement(ot,{trackUri:e.trackUri}),!e.content&&"error"===e.status&&o.createElement(nt,null,L("LYRICS_ERROR_MESSAGE")),e.trackUri&&e.content&&e.content.syncType===Le.LINE_SYNCED&&o.createElement(Ye,{lyrics:e.content,backgroundColor:e.backgroundColor,containerRef:t,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen}),e.trackUri&&e.content&&e.content.syncType===Le.UNSYNCED&&o.createElement(tt,{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===Le.SYLLABLE_SYNCED&&o.createElement(Xe,{lyrics:e.content,backgroundColor:e.backgroundColor,songProgressMs:e.position||0,onLyricsReport:e.onLyricsReport,trackUri:e.trackUri,fullScreen:e.fullScreen})))};function rt(e){return o.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"}`},o.createElement(Z,{src:e.coverArtImageUrl,alt:"Cover Art"}))}function at(e){return o.createElement("div",{className:`npv-track npv-track--${e.mediaType} ${e.hasNoExpandedCover&&"npv-track--not-expanded"} ${e.trackMetadataVisible&&"npv-track--visible"}`},o.createElement("div",{className:"npv-track__name"},e.trackName),o.createElement("div",{className:"npv-track__creator-name"},e.trackCreatorName))}const st=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),o.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"})),lt=(0,o.memo)(st),ct=({src:e,className:t,focused:n})=>o.createElement("div",{className:`npv-avatar ${t}}`},e&&o.createElement("div",{className:"npv-avatar__image "+(n?"npv-avatar__image--focused":""),style:{backgroundImage:`url(${e})`}}));function ut({name:e,avatarImage:t}){return o.createElement("div",{className:"npv-guest"},o.createElement("p",{className:"npv-guest__name"},e),o.createElement(ct,{className:"npv-guest__avatar",src:t}))}function dt(e){var t;return o.createElement(p,{visible:null!==(t=e.contextMetadataVisible)&&void 0!==t&&t,disableAnimationsAndTransitions:e.disableAnimationsAndTransitions},o.createElement("div",{className:`npv-header npv-header--${e.mediaType}`},o.createElement(lt,{className:"npv-header__logo"}),o.createElement("div",{className:"npv-header__metadata placeholder"},e.l10n.playingFromContextType&&o.createElement("div",{className:"npv-header__context-type"},e.l10n.playingFromContextType),o.createElement("div",{className:"npv-header__context-name"},e.contextName)),e.isGuestMode&&o.createElement(ut,{name:e.guestName,avatarImage:e.guestAvatarImage})))}function pt(e){return o.createElement("div",{className:`npv-what-is-playing ${e.className}`},o.createElement(dt,Object.assign({},e.headerProps)),o.createElement("div",{className:`npv-what-is-playing__metadata ${e.progressBarVisible&&"npv-what-is-playing__metadata--docked"} npv-what-is-playing__metadata--${e.mediaType}`},o.createElement(rt,Object.assign({},e)),o.createElement(at,Object.assign({},e))))}var ft,ht,mt=n(95502),gt=n(82961),vt=n(26799);var yt="out-in",_t="in-out",bt=function(e,t,n){return function(){var o;e.props[t]&&(o=e.props)[t].apply(o,arguments),n()}},St=((ft={})[yt]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:bt(t,"onExited",(function(){n(gt.d0,null)}))})},ft[_t]=function(e){var t=e.current,n=e.changeState,i=e.children;return[t,o.cloneElement(i,{in:!0,onEntered:bt(i,"onEntered",(function(){n(gt.d0)}))})]},ft),Et=((ht={})[yt]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:bt(t,"onEntered",(function(){n(gt.cn,o.cloneElement(t,{in:!0}))}))})},ht[_t]=function(e){var t=e.current,n=e.children,i=e.changeState;return[o.cloneElement(t,{in:!1,onExited:bt(t,"onExited",(function(){i(gt.cn,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},ht),At=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i{const t=e.lyricsProps?"lyrics":"what-is-playing",n=e.disableAnimationsAndTransitions?0:500;return o.createElement(Tt,null,o.createElement(d.Z,{key:t,classNames:"npv-main-container__visibility-transition",timeout:n},e.lyricsProps?o.createElement(it,Object.assign({},e.lyricsProps,{className:"npv-main-container__lyrics"})):o.createElement(pt,Object.assign({},e.whatIsPlayingProps,{className:"npv-main-container__what-is-playing"}))))};function Ot(e){var t,n;n=e.locale,k(n||navigator.language);const r=function(e){var t,n,o;if(e.lyrics&&e.onLyricsReport)return{trackUri:null===(t=e.currentTrack)||void 0===t?void 0:t.uri,content:"success"===e.lyrics.status?Ne(e.lyrics.content):void 0,status:e.lyrics.status,onLyricsReport:e.onLyricsReport,position:e.position,trackMetadataProps:Ce(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!==(o=e.disableAnimationsAndTransitions)&&void 0!==o&&o,fullScreen:!e.controlsVisible,lyricsContainerCustomClasses:e.lyricsContainerCustomClasses}}(e),a=void 0!==r,s="video"===(null===(t=e.currentTrack)||void 0===t?void 0:t.mediaType),l=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),c=function(e,t){const{backgroundImageUrl:n}=e;return{backgroundImageUrl:n,showBackgroundImage:!t&&!!e.backgroundImageUrl}}(e,a),u=function(e){var t,n,o,i,r,a,s;return{canRender:!!((null===(t=e.nextTrack)||void 0===t?void 0:t.coverArtImageUrl)&&(null===(n=e.nextTrack)||void 0===n?void 0:n.name)&&(null===(o=e.nextTrack)||void 0===o?void 0:o.creatorName)),coverArtImageUrl:null===(i=e.nextTrack)||void 0===i?void 0:i.coverArtImageUrl,metadata:`${null===(r=e.nextTrack)||void 0===r?void 0:r.name} • ${null===(a=e.nextTrack)||void 0===a?void 0:a.creatorName}`,l10n:{upNext:L("NOTIFICATION_UP_NEXT")},disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,duration:null===(s=e.currentTrack)||void 0===s?void 0:s.duration,portal:e.upNextNotificationPortal,onVisibilityChanged:e.onUpNextVisibilityChanged}}(e),d=function(e,t){var n,o,i,r,a;const s=(null===(n=e.currentTrack)||void 0===n?void 0:n.mediaType)||"audio";return{coverArtImageUrl:null===(o=e.currentTrack)||void 0===o?void 0:o.coverArtImageUrl,trackName:null===(i=e.currentTrack)||void 0===i?void 0:i.name,trackCreatorName:null===(r=e.currentTrack)||void 0===r?void 0:r.creatorName,trackUri:null===(a=e.currentTrack)||void 0===a?void 0:a.uri,headerProps:H(e,s),hasNoExpandedCover:K(e,t),progressBarVisible:!!e.progressBarVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:s}}(e,a),p=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,d.mediaType),h=function(e){return{position:e.position,timestamp:e.timestamp,isPaused:e.playbackIsPaused,isBuffering:e.playbackIsBuffering,playbackSpeed:e.playbackSpeed}}(e),m=function(e,t){return{contextMetadataVisible:!!e.contextMetadataVisible,isActive:!!e.controlsVisible,trackMetadataVisible:!!e.trackMetadataVisible,mediaType:t}}(e,d.mediaType),g=function(e,t){const n={};return t&&(n.backgroundColor=e.backgroundColor),n}(e,a),v=Y(e);return o.createElement("div",{className:v},o.createElement(B,Object.assign({},h),o.createElement($,Object.assign({},l)),s?o.createElement(i,Object.assign({},m)):o.createElement(Q,Object.assign({},c)),o.createElement("div",{className:"npv-main-container",style:g},o.createElement(Pt,{disableAnimationsAndTransitions:e.disableAnimationsAndTransitions,lyricsProps:r,whatIsPlayingProps:d}),o.createElement(F,Object.assign({},u)),o.createElement(f,Object.assign({},p)),o.createElement(Oe,Object.assign({},e))),o.createElement(I,Object.assign({},e))))}Ot.defaultProps={contextMetadataVisible:!0,controlsVisible:!0,trackMetadataVisible:!0,progressBarVisible:!0}},78476:(e,t,n)=>{"use strict";n.d(t,{xc:()=>mn,UR:()=>hn,KH:()=>Qe,xu:()=>Le,Xs:()=>Nn,ET:()=>fn,lA:()=>x,ON:()=>cn,H6:()=>ln,Tc:()=>xn,OK:()=>Dn,lB:()=>Mn});var o=n(22947),i=n.n(o);var r,a,s;!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"}(a||(a={})),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"}(s||(s={}));var l;!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"}(l||(l={}));var c=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};function u(e,t){null==e||e.registerRequestFilter(function(e){return(t,n)=>c(this,void 0,void 0,(function*(){if((t===i().net.NetworkingEngine.RequestType.LICENSE||t===i().net.NetworkingEngine.RequestType.MANIFEST)&&(e.getAuthorizationHeader&&(n.headers.Authorization=yield e.getAuthorizationHeader()),t===i().net.NetworkingEngine.RequestType.MANIFEST&&e.getWebgateHeaders)){const t=e.getWebgateHeaders().reduce(((e,t)=>(e[t[0]]=t[1],e)),{});n.headers=Object.assign(Object.assign({},n.headers),t)}}))}(t))}function d(e){for(const[t,n]of Object.entries(i().util.Error.Code))if(n===e)return t;return"unknown"}function p(e){for(const[t,n]of Object.entries(i().util.Error.Category))if(n===e)return t;return"unknown"}function f(e){switch(e){case i().util.Error.Severity.CRITICAL:return"fatal";case i().util.Error.Severity.RECOVERABLE:return"recoverable";default:return"unknown"}}const h=(e,t)=>t.filter((e=>"variant"===e.type)).sort(((t,n)=>{const o=Math.abs(e-t.bandwidth);return Math.abs(e-n.bandwidth)-o})).pop();var m=n(37705);const g=()=>(0,m.Z)().replace(new RegExp("-","g"),"");function v(e,t){var n;return null===(n=null==t?void 0:t.find((t=>t.isPlayable(e))))||void 0===n?void 0:n.getMediaUrl(e)}const y=()=>{};function _(e){return null!==e&&"object"==typeof e&&"category"in e&&"code"in e&&"severity"in e&&"handled"in e}var b=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const S=12e5;class E{constructor(e){var t,n,o,r,a,s,l;if(this.config=e,this.offlineBitrateTarget=S,this.shakaStorage=new(i().offline.Storage),this.ongoingDownloads=new Map,this.offlineBitrateTarget=(null===(n=null===(t=null==e?void 0:e.playerConfiguration)||void 0===t?void 0:t.offline)||void 0===n?void 0:n.targetBitrate)||S,this.shakaStorage.configure({offline:{trackSelectionCallback:this.selectTracks.bind(this),progressCallback:this.notifyDownloadProgress.bind(this)},drm:{servers:null===(r=null===(o=null==e?void 0:e.playerConfiguration)||void 0===o?void 0:o.drm)||void 0===r?void 0:r.servers,advanced:null===(s=null===(a=null==e?void 0:e.playerConfiguration)||void 0===a?void 0:a.drm)||void 0===s?void 0:s.advanced}}),null===(l=this.config)||void 0===l?void 0:l.networkConfiguration){u(this.shakaStorage.getNetworkingEngine(),this.config.networkConfiguration)}}release(){this.ongoingDownloads=new Map}download(e,t){var n,o,i,r,a,s,l;return b(this,void 0,void 0,(function*(){if(this.ongoingDownloads.has(e)){const t={reason:"Download already started",error_extra1:e};return Promise.reject(t)}const c=null!==(o=v(e,null===(n=this.config)||void 0===n?void 0:n.mediaExtensions))&&void 0!==o?o:e;let u={offlineUrl:null,mediaUri:e,originalUrl:c,duration:0,size:0};const f={partialAsset:u,observers:null!==(l=null===(s=null===(a=null===(r=null===(i=this.config)||void 0===i?void 0:i.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===a?void 0:a.downloadObserverFactories)||void 0===s?void 0:s.map((e=>e())))&&void 0!==l?l:[]};if(this.ongoingDownloads.set(e,f),this.notifyObservers(f,{name:"created",mediaUri:e}),yield this.isAssetOffline(e)){const e={reason:"Already downloaded"};return this.notifyObservers(f,{name:"error",partialAsset:u,error:e}),Promise.reject(e)}const h={mediaUri:e,downloadSessionId:g(),downloadDate:new Date,consumerMetadata:t},m=this.shakaStorage.store(c,h);let y;f.shakaOperation=m,this.ongoingDownloads.set(e,f);try{if(y=yield m.promise,!this.isFullyDownloaded(y)){const t={reason:"Download completed but unavailable"};return this.ongoingDownloads.delete(e),this.notifyObservers(f,{name:"error",partialAsset:u,error:t}),yield Promise.reject(t)}return u=this.shakaStoredContentToOfflineAsset(y),this.ongoingDownloads.delete(e),this.notifyObservers(f,{name:"completed",offlineAsset:u}),u}catch(n){if(_(n)){const o=function(e,t){return{reason:d(e.code),code:e.code,category:p(e.category),error_extra1:JSON.stringify(e.data),error_extra2:JSON.stringify(t)}}(n,t);return this.ongoingDownloads.delete(e),this.notifyObservers(f,{name:"error",partialAsset:u,error:o}),Promise.reject(o)}return Promise.reject(n)}}))}getOfflineAsset(e){return b(this,void 0,void 0,(function*(){return(yield this.getOfflineAssets()).find((t=>t.mediaUri===e))}))}getOngoingDownloads(){const e=[];return this.ongoingDownloads.forEach(((t,n)=>{e.push(n)})),e}isAssetOffline(e){return b(this,void 0,void 0,(function*(){return void 0!==(yield this.getOfflineAsset(e))}))}getPlayableOfflineUrl(e){var t;return b(this,void 0,void 0,(function*(){const n=yield this.getOfflineAsset(e);return null!==(t=null==n?void 0:n.offlineUrl)&&void 0!==t?t:null}))}getOfflineAssets(){return b(this,void 0,void 0,(function*(){return(yield this.shakaStorage.list()).filter(this.isFullyDownloaded).map(this.shakaStoredContentToOfflineAsset)}))}delete(e){var t;return b(this,void 0,void 0,(function*(){const n=this.ongoingDownloads.get(e);if(n){const o=n.partialAsset;return yield null===(t=n.shakaOperation)||void 0===t?void 0:t.abort(),this.ongoingDownloads.delete(e),this.notifyObservers(n,{name:"cancelled",partialAsset:o}),!0}const o=yield this.getOfflineAsset(e);return!!(null==o?void 0:o.offlineUrl)&&(yield this.shakaStorage.remove(o.offlineUrl),!0)}))}deleteAll(){return b(this,void 0,void 0,(function*(){yield i().offline.Storage.deleteAll()}))}notifyObservers(e,t){e.observers.forEach((e=>e.onDownloadEvent(t)))}notifyDownloadProgress(e,t){const n=e.appMetadata,o=null==n?void 0:n.mediaUri,i=this.shakaStoredContentToOfflineAsset(e),r=this.ongoingDownloads.get(o);r&&(r.partialAsset=i,this.notifyObservers(r,{name:"progress",partialAsset:i,progress:t}))}selectTracks(e){return[h(this.offlineBitrateTarget,e)]}isFullyDownloaded(e){return null!==e.offlineUri}shakaStoredContentToOfflineAsset(e){var t;const n=isFinite(e.expiration)?new Date(e.expiration):void 0,o=e.appMetadata;return{mediaUri:o.mediaUri,originalUrl:e.originalManifestUri,offlineUrl:null!==(t=e.offlineUri)&&void 0!==t?t:null,duration:e.duration,size:e.size,expirationDate:n,downloadSessionId:o.downloadSessionId,downloadDate:o.downloadDate,metadata:o.consumerMetadata}}}const A=e=>{(null===performance||void 0===performance?void 0:performance.mark)&&(null===performance||void 0===performance||performance.mark(e))};class T{constructor(){this.curId_=0,this.config_=null,this.data=null,this.profileInitSegmentReferences=new Map,this.UNSUPPORTED_MIME_TYPES=["video/mp2t"],this.PROFILE_ID_PLACEHOLDER="{{profile_id}}",this.FILE_TYPE_PLACEHOLDER="{{file_type}}",this.SEGMENT_TIMESTAMP_PLACEHOLDER="{{segment_timestamp}}",this.LANGUAGE_CODE_PLACEHOLDER="{{language_code}}",this.stop=()=>Promise.resolve(),this.loadData_=e=>{let t=null;if(e instanceof ArrayBuffer){const n=i().util.StringUtils.fromUTF8(e);try{t=JSON.parse(n)}catch(e){const t=e;throw new(i().util.Error)(i().util.Error.Severity.CRITICAL,i().util.Error.Category.MANIFEST,i().util.Error.Code.MISSING_TEXT_PLUGIN,`Exception parsing the Json manifest: ${t.message}`)}}else t=e;if(!t)throw new(i().util.Error)(i().util.Error.Severity.CRITICAL,i().util.Error.Category.MANIFEST,i().util.Error.Code.MISSING_TEXT_PLUGIN,"Invalid JSON");return t},this.groupProfiles_=e=>{const t=[],n=[];if(e.forEach((e=>{const o=e.mime_type.split("/")[0];"video"===o?t.push(e):"audio"===o&&n.push(e)})),!t.length&&!n.length)return[];if(t.length&&!n.length)return t.map((e=>({video:e,audio:null})));if(!t.length&&n.length)return n.map((e=>({video:null,audio:e})));const o=[];return t.forEach((e=>{n.forEach((t=>{o.push({video:e,audio:t})}))})),o}}configure(e){this.config_=e}start(e,t){if(A("betamax::manifestparser_start"),!this.config_)throw new Error("Must call configure() before start()");const n=i().net.NetworkingEngine.RequestType.MANIFEST,o={uris:[e],method:"GET",retryParameters:this.config_.retryParameters,allowCrossSiteCredentials:!1,headers:{},body:null,drmInfo:null,initData:null,initDataType:null,licenseRequestType:null,sessionId:null,streamDataCallback:null};return t.networkingEngine.request(n,o).promise.then((e=>this.loadManifest_(e.data)))}onExpirationUpdated(){}update(){}loadManifest_(e){A("betamax::manifestparser_loadManifestStart"),this.data=this.loadData_(e);const t=new(i().media.PresentationTimeline)(null,0);t.setDuration(this.data.end_time_millis/1e3);const n=this.data.contents[0];this.profileInitSegmentReferences=new Map;const o=this.filterProfiles_(n.profiles),r={presentationTimeline:t,minBufferTime:0,offlineSessionIds:[],variants:this.groupProfiles_(o).map((e=>this.loadVariant_(n,e))),textStreams:this.loadTextStreams_(n),imageStreams:[],sequenceMode:!1};return A("betamax::manifestparser_loadManifest_end"),r}filterProfiles_(e){return e.filter((e=>!this.UNSUPPORTED_MIME_TYPES.includes(e.mime_type)))}loadVariant_(e,t){const n=e.encryption_infos&&e.encryption_infos.length>0,o=(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:o,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[],disabledUntilTime:0}}loadTextStreams_(e){var t,n;let o=[];return(null===(n=null===(t=this.data)||void 0===t?void 0:t.subtitle_language_codes)||void 0===n?void 0:n.length)&&(o=this.data.subtitle_language_codes.map((e=>({id:this.curId_++,mime_type:"text/vtt",file_type:"vtt",language:e})))),o.map((t=>this.loadStream_(e,t,"text",!1)))}loadStream_(e,t,n,o){const i=this.getSegmentIndex_(e,t,n);let r="";"video"===n&&(r=t.video_codec),"audio"===n&&(r=t.audio_codec);const a={keySystem:"com.widevine.alpha",licenseServerUri:"",audioRobustness:"",videoRobustness:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!0,initData:[],keyIds:new Set,serverCertificateUri:"",serverCertificate:null,sessionType:"temporary"},s=o?[a]:[];return{id:this.curId_++,createSegmentIndex:()=>Promise.resolve(),segmentIndex:i,mimeType:t.mime_type,codecs:r,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:o,keyIds:new Set,language:"text"===n?t.language:"und",type:n,primary:!1,roles:[],drmInfos:s,closedCaptions:new Map,spatialAudio:!1,trickModeVideo:null,audioSamplingRate:null,forced:!1,channelsCount:null,label:null,emsgSchemeIdUris:null,originalId:null}}getInitSegmentReference_(e){if(this.profileInitSegmentReferences.has(e))return this.profileInitSegmentReferences.get(e);const t=new(i().media.InitSegmentReference)((()=>{var t,n;return null!==(n=null===(t=this.data)||void 0===t?void 0:t.base_urls.map((t=>{var n,o;return(t+(null!==(o=null===(n=this.data)||void 0===n?void 0:n.initialization_template)&&void 0!==o?o:"")).replace(this.PROFILE_ID_PLACEHOLDER,`${e.id}`).replace(this.FILE_TYPE_PLACEHOLDER,e.file_type)})))&&void 0!==n?n:[]}),0,null);return this.profileInitSegmentReferences.set(e,t),t}getSegmentIndex_(e,t,n){let o=[];const r=e.start_time_millis/1e3,a=e.end_time_millis/1e3;if("text"===n){const e=t,n=()=>{var t;return(null===(t=this.data)||void 0===t?void 0:t.subtitle_base_urls)?this.data.subtitle_base_urls.map((t=>{var n,o;return(t+(null!==(o=null===(n=this.data)||void 0===n?void 0:n.subtitle_template)&&void 0!==o?o:"")).replace(this.LANGUAGE_CODE_PLACEHOLDER,e.language)})):[]};o=[new(i().media.SegmentReference)(r,a,n,0,null,null,r,r,1/0)]}else{const n=e.segment_length;let i=r;for(;i{var n,o;return null!==(o=null===(n=this.data)||void 0===n?void 0:n.base_urls.map((n=>{var o,i;return(n+(null!==(i=null===(o=this.data)||void 0===o?void 0:o.segment_template)&&void 0!==i?i:"")).replace(this.PROFILE_ID_PLACEHOLDER,`${e.id}`).replace(this.FILE_TYPE_PLACEHOLDER,e.file_type).replace(this.SEGMENT_TIMESTAMP_PLACEHOLDER,`${t}`)})))&&void 0!==o?o:[]}),0,null,r,o,o,1/0)}}const P="spotify-video://";class O{static create(e){return`${P}${e}`}}class C{constructor(e){this.manifestTemplate=e;const t=()=>new T;i().media.ManifestParser.registerParserByExtension("json",t),i().media.ManifestParser.registerParserByMime("application/json",t)}isPlayable(e){return e.startsWith(P)}getMediaUrl(e){const t=e.replace(P,"");return function(e,t,n){return e.replace(/\{type\}/i,t).replace(/\{source_id\}/i,encodeURIComponent(n))}(this.manifestTemplate,"json",t)}}var k=n(79221);const R="betamax-offline",L=e=>{var t,n;return null!==(n=null===(t=e.metadata)||void 0===t?void 0:t.episodeUri)&&void 0!==n?n:""},I=({partialAsset:e,progress:t})=>{const n=L(e),o=e.size,i=t>0?Math.round(o/t):-1;return{id:R,download:{link:n,complete:!1,fileSize:i,bytesDownloaded:o,error:s.OK},identify:void 0,remove:void 0,stopDownload:void 0}},N=({offlineAsset:e})=>({id:R,download:{link:L(e),complete:!0,fileSize:e.size,bytesDownloaded:e.size,error:s.OK},identify:void 0,remove:void 0,stopDownload:void 0}),w=({partialAsset:e,error:t})=>{const n=D(t),o=L(e);return{id:R,download:{link:o,complete:!1,fileSize:e.size,bytesDownloaded:e.size,error:n},identify:void 0,remove:void 0,stopDownload:void 0}},D=e=>e.code===i().util.Error.Code.QUOTA_EXCEEDED_ERROR?s.DISK_FULL:s.PERMANENT_ERROR;var M=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class x{constructor(e){this.configuration=e,this.offlineCosmosEndpoint="sp://offline/v2/plugin",this.betamaxPluginId="betamax-offline",this.pluginHeaders={"content-type":"application/json",accept:"application/json"},this.show_service=e.show_service}initialize(){var e,t,n,o,i,r;if(!0!==(null===(t=null===(e=this.configuration.playerConfiguration)||void 0===e?void 0:e.offline)||void 0===t?void 0:t.enabled))return;const a=this.configuration.productState["widevine-license-url"];this.configuration.playerConfiguration.drm={servers:Object.assign(Object.assign({},null===(n=this.configuration.playerConfiguration.drm)||void 0===n?void 0:n.servers),{"com.widevine.alpha":a}),advanced:{"com.widevine.alpha":Object.assign(Object.assign({},null===(o=this.configuration.playerConfiguration.drm)||void 0===o?void 0:o.advanced),{videoRobustness:"SW_SECURE_DECODE"})}},null!==(i=(r=this.configuration.playerConfiguration.offline).downloadObserverFactories)&&void 0!==i||(r.downloadObserverFactories=[]),this.configuration.playerConfiguration.offline.downloadObserverFactories.push((()=>({onDownloadEvent:e=>this.onDownloadEvent(e)})));const s=new C(this.configuration.productState["video-manifest-url"]);this.offlineManager=new E({networkConfiguration:this.configuration.networkConfiguration,playerConfiguration:this.configuration.playerConfiguration,mediaExtensions:[s]});const l={id:this.betamaxPluginId};this.pluginCosmosSubscription=this.configuration.cosmos.sub(this.offlineCosmosEndpoint,this.onCommandReceived.bind(this),y,l,this.pluginHeaders)}release(){this.offlineManager&&(this.offlineManager.release(),this.offlineManager=void 0),this.pluginCosmosSubscription&&(this.pluginCosmosSubscription.cancel(),this.pluginCosmosSubscription=void 0)}onDownloadEvent(e){return M(this,void 0,void 0,(function*(){const t=(e=>"progress"===e.name?I(e):"completed"===e.name?N(e):"error"===e.name?w(e):void 0)(e);t&&(yield this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders))}))}onCommandReceived(e){return M(this,void 0,void 0,(function*(){if(!this.offlineManager)return Promise.reject("not initialized");if(!e.download&&!e.identify&&!e.remove)return Promise.reject("unknown command");let t;e.download&&(t=yield this.onDownloadCommand(e.download)),e.identify&&(t=yield this.onIdentifyCommand(e.identify)),e.remove&&(yield this.onRemoveCommand(e.remove)),t&&(yield this.configuration.cosmos.post(this.offlineCosmosEndpoint,t,this.pluginHeaders))}))}onDownloadCommand(e){var t;return M(this,void 0,void 0,(function*(){const n={id:this.betamaxPluginId,download:{link:"",complete:!1,fileSize:0,bytesDownloaded:0,error:0},identify:void 0,remove:void 0,stopDownload:void 0},o=e.link,{mediaUri:i,mediaType:r}=yield this.getEpisodeMetadata(o).catch((()=>({mediaUri:void 0,mediaType:void 0})));return void 0===i||void 0===r?(n.download&&(n.download.error=s.TEMPORARY_ERROR),n):this.isVideo(r)?void(yield null===(t=this.offlineManager)||void 0===t?void 0:t.download(i,{episodeUri:o})):(n.download&&(n.download.error=s.PERMANENT_ERROR),n)}))}onIdentifyCommand(e){var t,n;return M(this,void 0,void 0,(function*(){const o={};for(const{link:i}of e.query){const e={status:a.UNRECOGNIZED,estimatedFileSize:0},{mediaUri:r,mediaType:s}=yield this.getEpisodeMetadata(i).catch((()=>({mediaUri:void 0,mediaType:void 0})));if(void 0!==r&&void 0!==s&&this.isVideo(s)){const o=yield null===(t=this.offlineManager)||void 0===t?void 0:t.getOfflineAsset(r);e.status=void 0===o?a.MISSING:a.COMPLETE,e.estimatedFileSize=null!==(n=null==o?void 0:o.size)&&void 0!==n?n:0}else e.status=a.NOT_APPLICABLE;o[i]=e}const i={id:this.betamaxPluginId,download:void 0,identify:{results:o},remove:void 0,stopDownload:void 0};return Promise.resolve(i)}))}onRemoveCommand(e){var t;return M(this,void 0,void 0,(function*(){for(const{link:n}of e.query){const{mediaUri:e,mediaType:o}=yield this.getEpisodeMetadata(n);void 0!==o&&void 0!==e&&this.isVideo(o)&&(yield null===(t=this.offlineManager)||void 0===t?void 0:t.delete(e))}}))}getEpisodeMetadata(e){var t,n,o,i;return M(this,void 0,void 0,(function*(){if(void 0===e.split(":").pop())return Promise.reject(`unexpected uri ${e}`);if(void 0===this.show_service)return Promise.reject("show service is not initialized");const r=yield this.show_service.getDecorate(k.GetDecorateRequest.fromPartial({item:[e]})),a=null===(n=null===(t=r.response)||void 0===t?void 0:t.episode[0].episodeMetadata)||void 0===n?void 0:n.mediaTypeEnum,s=null===(i=null===(o=r.response)||void 0===o?void 0:o.episode[0].episodeMetadata)||void 0===i?void 0:i.manifestId;let l;return s&&(l=O.create(s)),{mediaUri:l,mediaType:a}}))}isVideo(e){return 0===e||2===e}}class F{constructor(e){this.cosmos=e}getStopPosition(){return this.stopPosition}setMediaDuration(e){this.mediaDuration!==e&&(this.mediaDuration=e,this.tryScheduleInterruption())}setTimeObservable(e){this.timeObservable!==e&&(this.timeObservable=e,this.tryScheduleInterruption())}registerInterruptorWhenReadyAtPosition(e){this.stopPosition!==e&&(this.stopPosition=e,this.tryScheduleInterruption())}unregister(){void 0!==this.interruptToken&&void 0!==this.timeObservable&&this.timeObservable.removePositionObserver(this.interruptToken),this.stopPosition=void 0,this.interruptToken=void 0}tryScheduleInterruption(){if(void 0===this.mediaDuration||this.mediaDuration<0||void 0===this.stopPosition||this.stopPosition<0||void 0===this.timeObservable)return;const e=this.stopPosition/this.mediaDuration;void 0!==this.interruptToken&&this.timeObservable.removePositionObserver(this.interruptToken),this.interruptToken=this.timeObservable.addObserverForMediaPositions([e],(()=>{this.cosmos.post("sp://videoplayer/v1/advance",{reason:"finished"}),this.unregister()}))}}const U="cc",B={languageTag:""};function V(e){const t=e.languageTag.split("-"),n=[];for(const e of t){if(1===e.length)break;n.push(e)}return n.join("-")}function G(e){return e.languageTag.split("-")[0]}var J=n(77539),j=n.n(J);class H{constructor(){this.hasInitialized=!1,this.pendingMessages=[],this.muxMetadata={}}newSession(e){this.shakaPlayerMux=void 0,this.hasInitialized=!1,this.muxMetadata=e,this.muxMetadata.video_content_type=function(e){if("context-player-vodcast"===e)return"Video Podcast";return"Other"}(this.muxMetadata.video_content_type),this.pendingMessages=[]}isVodcast(){return"Video Podcast"===this.muxMetadata.video_content_type}init(e,t){var n,o,i,r,a,s;this.isVodcast()&&(this.shakaPlayerMux=j()(e,{debug:!1,data:Object.assign({env_key:null===(o=null===(n=null==t?void 0:t.analytics)||void 0===n?void 0:n.mux)||void 0===o?void 0:o.token,player_name:null===(r=null===(i=null==t?void 0:t.analytics)||void 0===i?void 0:i.mux)||void 0===r?void 0:r.playerName,player_version:Mn,player_init_time:Date.now(),viewer_application_name:null===(s=null===(a=null==t?void 0:t.analytics)||void 0===a?void 0:a.mux)||void 0===s?void 0:s.appName},this.muxMetadata)}),this.hasInitialized=!0,this.emitPendingHeartBeats())}loadErrorHandler(e){var t;null===(t=this.shakaPlayerMux)||void 0===t||t.loadErrorHandler(e)}queueHeartBeat(e){this.pendingMessages.push(e),this.emitPendingHeartBeats()}emitPendingHeartBeats(){var e;if(this.hasInitialized){let t;for(t of this.pendingMessages)null===(e=this.shakaPlayerMux)||void 0===e||e.emit("hb",t);this.pendingMessages=[]}}}let K;function Y(){return void 0===K&&(K=new H),K}var W,z;!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_PER_SURFACE="ms_played_per_surface",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"}(W||(W={})),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_PLAYED_VIDEO="ms_played_video",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"}(z||(z={}));var q=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const X="playback_id",Z="reason_start",Q="feature_identifier",$="desktop_ui",ee="referrer_version",te="feature_version",ne="gaia_dev_id",oe="view_uri",ie="play_context",re="file_id",ae="referrer",se="shuffle",le="play_track",ce="provider",ue="command_initiated_time_ms",de="client_offline",pe=[X,Z,Q,te,ee,re,ne,oe,ie,ae,se,le,ce,ue,de],fe="endvideo_";function he(e){var t,n,o,i,r,a,s,l,c,u;const d=null!==(o=null===(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.track)||void 0===n?void 0:n.metadata)&&void 0!==o?o:{},p=function(e){var t,n,o,i,r,a,s,l,c,u,d,p,f,h,m,g,v,y,_,b,S,E,A,T,P,O,C,k,R,L,I,N,w,D,M;const x=null!==(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.playback_id)&&void 0!==n?n:"",F=null!==(a=null===(r=null===(i=null===(o=null==e?void 0:e.track)||void 0===o?void 0:o.track)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r["media.manifest_id"])&&void 0!==a?a:"",U=null!==(c=null===(l=null===(s=null==e?void 0:e.track)||void 0===s?void 0:s.play_origin)||void 0===l?void 0:l.feature_identifier)&&void 0!==c?c:"",B=null!==(p=null===(d=null===(u=null==e?void 0:e.track)||void 0===u?void 0:u.play_origin)||void 0===d?void 0:d.feature_version)&&void 0!==p?p:"",V=null!==(m=null===(h=null===(f=null==e?void 0:e.track)||void 0===f?void 0:f.play_origin)||void 0===h?void 0:h.view_uri)&&void 0!==m?m:"",G=null!==(y=null===(v=null===(g=null==e?void 0:e.track)||void 0===g?void 0:g.play_origin)||void 0===v?void 0:v.referrer_identifier)&&void 0!==y?y:"",J=null!==(S=null===(b=null===(_=null==e?void 0:e.track)||void 0===_?void 0:_.play_origin)||void 0===b?void 0:b.device_identifier)&&void 0!==S?S:"",j=null!==(A=null===(E=null==e?void 0:e.player_options_override)||void 0===E?void 0:E.shuffling_context)&&void 0!==A&&A,H=null!==(O=null===(P=null===(T=null==e?void 0:e.track)||void 0===T?void 0:T.track)||void 0===P?void 0:P.provider)&&void 0!==O?O:"",K=null!==(C=null==e?void 0:e.start_reason)&&void 0!==C?C:"unknown",Y=null!==(R=null===(k=null==e?void 0:e.track)||void 0===k?void 0:k.context_uri)&&void 0!==R?R:"",W=null!==(N=null===(I=null===(L=null==e?void 0:e.track)||void 0===L?void 0:L.track)||void 0===I?void 0:I.uri)&&void 0!==N?N:"",z=null!==(D=null===(w=null==e?void 0:e.logging_params)||void 0===w?void 0:w.command_initiated_time)&&void 0!==D?D:-1,q=null!==(M=null==e?void 0:e.client_offline)&&void 0!==M&&M,$={[X]:x,[Q]:U,[ee]:B,[te]:B,[oe]:V,[ae]:G,[ne]:J,[ce]:H,[Z]:K,[ie]:Y,[se]:j?"true":"false",[le]:W,[ue]:z,[re]:F,[de]:q?"true":"false"},he=me(pe);return he(fe)($)}(e),f=null===(a=null===(r=null===(i=null==e?void 0:e.track)||void 0===i?void 0:i.track)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a.interaction_id;f&&(d[z.INTERACTION_ID]=f);const h=null===(c=null===(l=null===(s=null==e?void 0:e.track)||void 0===s?void 0:s.track)||void 0===l?void 0:l.metadata)||void 0===c?void 0:c.page_instance_id;return h&&(d[z.PAGE_INSTANCE_ID]=h),d.feature_identifier=function(e){let t,n="context-player";const o="mixed"===e.track.track.metadata["media.type"];if(o)t="vodcast";else{const n=e.track.track.uri.split(":"),o=n.length>=2&&"spotify"===n[0]&&n[1]?n[1]:void 0;o&&(t=o)}if(t)return n=`${n}-${t}`,n;return n}(e),d.playback_id=e.track.playback_id,d[Z]=null!==(u=null==e?void 0:e.start_reason)&&void 0!==u?u:"unknown",Object.assign(Object.assign({},d),p)}const me=e=>t=>n=>Object.entries(n).reduce(((n,[o,i])=>{const r=e.includes(o)?`${t}${o}`:o;return Object.assign(Object.assign({},n),{[r]:i})}),{});function ge(e){const t=e["video.subtitles"],n=e["video.subtitles_cc"];return""===t?B:function(e,t){return e?{languageTag:t?`${e}-x-${U}`:e}:B}(t,n)}function ve(e){return e["audio.episode.speed"]}const ye=e=>{function t(t){return q(this,void 0,void 0,(function*(){const n=yield e();return yield n.send(t)}))}return{playbackSessionLogger:{log:e=>t({name:"BetamaxPlaybackSession",environments:["device","desktop"],data:e})},playbackErrorLogger:{log:e=>t({name:"BetamaxPlaybackErrorDevice",environments:["device","desktop"],data:e})},downloadSessionLogger:{log:e=>t({name:"BetamaxDownloadSession",environments:["device","desktop"],data:e})},downloadErrorLogger:{log:e=>t({name:"BetamaxDownloadError",environments:["device","desktop"],data:e})}}};var _e=n(99810),be=n(65875);class Se{constructor(e,t){this.productStateService=e,this.scrobbleService=t,this.rules="",this.productStateService.subValues(be.SubValuesRequest.fromPartial({}),(e=>{e.pairs["streaming-rules"]&&(this.rules=e.pairs["streaming-rules"])})),this.scrobbleService.subIncognitoMode(_e.SubIncognitoModeRequest.fromPartial({}),(e=>{this.incognito=e.incognitoMode}))}streamingRules(){return this.rules}}var Ee=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class Ae{constructor(e,t){this.mainPlayer=e,this.adPlayer=t}get muted(){return this.mainPlayer.muted}get volume(){return this.mainPlayer.volume}get started(){return this.mainPlayer.started}get ended(){return this.mainPlayer.ended}playerByPlaybackId(e){var t,n,o,i,r;return(null===(n=null===(t=this.mainPlayer.getPlaybackRequest())||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.playback_id)===e?this.mainPlayer:(null===(r=null===(i=null===(o=this.adPlayer)||void 0===o?void 0:o.getPlaybackRequest())||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.playback_id)===e?this.adPlayer:void 0}getNonMatchingPlayerByPlaybackId(e){var t,n,o,i,r;return(null===(n=null===(t=this.mainPlayer.getPlaybackRequest())||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.playback_id)===e?this.adPlayer:(null===(r=null===(i=null===(o=this.adPlayer)||void 0===o?void 0:o.getPlaybackRequest())||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.playback_id)===e?this.mainPlayer:void 0}hasPlaybackId(e){return!!this.playerByPlaybackId(e)}switchPlayer(e){return Ee(this,void 0,void 0,(function*(){const t=this.playerByPlaybackId(e);if(!t)return;t.reattach(),t.showNode();const n=this.getNonMatchingPlayerByPlaybackId(e);null==n||n.hideNode(),n===this.adPlayer&&(yield null==n?void 0:n.stop())}))}getPlaybackRequest(){return this.mainPlayer.getPlaybackRequest()}play(e,t){var n,o,i,r,a;return Ee(this,void 0,void 0,(function*(){return this.adPlayer?this.isAd(e)?(null===(n=this.mainPlayer)||void 0===n||n.pause(),null===(o=this.mainPlayer)||void 0===o||o.hideNode(),null===(i=this.adPlayer)||void 0===i||i.showNode(),this.adPlayer.play(e,t)):(yield null===(r=this.adPlayer)||void 0===r?void 0:r.stop(),null===(a=this.mainPlayer)||void 0===a||a.showNode(),this.mainPlayer.play(e,t)):this.mainPlayer.play(e,t)}))}resume(e){var t;return null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.resume()}pause(e){var t;return null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.pause()}setPreferredSubtitle(e){var t;return null===(t=this.adPlayer)||void 0===t||t.setPreferredSubtitle(e),this.mainPlayer.setPreferredSubtitle(e)}setPlaybackSpeed(e){var t;null===(t=this.adPlayer)||void 0===t||t.setPlaybackSpeed(e),this.mainPlayer.setPlaybackSpeed(e)}seekTo(e,t){var n;return null===(n=this.playerByPlaybackId(e))||void 0===n?void 0:n.seekTo(t)}setVolume(e){var t;return null===(t=this.adPlayer)||void 0===t||t.setVolume(e),this.mainPlayer.setVolume(e)}setMinimizeBitrate(e){this.mainPlayer.setMinimizeBitrate(e)}setWindow(e){this.mainPlayer.setWindow(e)}setFullscreen(e){var t;null===(t=this.adPlayer)||void 0===t||t.setFullscreen(e),this.mainPlayer.setFullscreen(e)}setPip(e){var t;return Ee(this,void 0,void 0,(function*(){return null===(t=this.adPlayer)||void 0===t||t.setPip(e),this.mainPlayer.setPip(e)}))}setSurface(e){this.mainPlayer.setSurface(e)}getNode(){return this.mainPlayer.getNode()}stop(e){var t;return Ee(this,void 0,void 0,(function*(){yield null===(t=this.playerByPlaybackId(e))||void 0===t?void 0:t.stop()}))}stopAll(){var e;return Ee(this,void 0,void 0,(function*(){yield Promise.all([this.mainPlayer.stop(),null===(e=this.adPlayer)||void 0===e?void 0:e.stop()])}))}getSessionState(e){var t,n;return null!==(n=null===(t=e?this.playerByPlaybackId(e):this.mainPlayer)||void 0===t?void 0:t.getSessionState())&&void 0!==n?n:null}isAd(e){var t;return"true"===(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.is_advertisement)}}var Te=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const Pe="https://spclient.wg.spotify.com/widevine-license/v1/application-certificate";function Oe(e){return Te(this,void 0,void 0,(function*(){const t=yield function(e,t,n={headers:new Headers}){return Te(this,void 0,void 0,(function*(){const{accessToken:o,tokenType:i}=yield e(),r=`${i} ${o}`;return n.headers.append("Authorization",r),fetch(t,n)}))}(e,Pe);if(t.ok){const e=yield t.arrayBuffer();return new Uint8Array(e)}throw new Error("Network response was not ok.")}))}class Ce{constructor(e){this.factories=e,this.observers=[]}initiateObservers(e,t){this.observers=this.factories.map((n=>n(e,t))).filter((e=>!!e))}removeObservers(){this.observers=[]}onPlaybackCreated(e){A("betamax::on_playback_created"),this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackCreated)||void 0===n?void 0:n.call(t,e,Date.now())})),A("betamax::on_playback_created_end")}onPlaybackEnded(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackEnded)||void 0===n?void 0:n.call(t,e,Date.now())})),this.removeObservers()}onEndingPlayback(e){this.observers.forEach((t=>{var n;return null===(n=t.onEndingPlayback)||void 0===n?void 0:n.call(t,e,Date.now())}))}onVolumeChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onVolumeChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onResumed(e){this.observers.forEach((t=>{var n;return null===(n=t.onResumed)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSeeking(e){this.observers.forEach((t=>{var n;return null===(n=t.onSeeking)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSeeked(e){this.observers.forEach((t=>{var n;return null===(n=t.onSeeked)||void 0===n?void 0:n.call(t,e,Date.now())}))}onPaused(e){this.observers.forEach((t=>{var n;return null===(n=t.onPaused)||void 0===n?void 0:n.call(t,e,Date.now())}))}onReady(e){A("betamax::on_ready"),this.observers.forEach((t=>{var n;return null===(n=t.onReady)||void 0===n?void 0:n.call(t,e,Date.now())}))}onManifestLoaded(e){this.observers.forEach((t=>{var n;return null===(n=t.onManifestLoaded)||void 0===n?void 0:n.call(t,e,Date.now())}))}onManifestLoading(){A("betamax::onManifestLoading"),this.observers.forEach((e=>{var t;return null===(t=e.onManifestLoading)||void 0===t?void 0:t.call(e,Date.now())})),A("betamax::onManifestLoading_end")}onPlaybackError(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackError)||void 0===n?void 0:n.call(t,e,Date.now())}))}onAudioFormatChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onAudioFormatChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onVideoFormatChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onVideoFormatChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onBuffering(e){this.observers.forEach((t=>{var n;return null===(n=t.onBuffering)||void 0===n?void 0:n.call(t,e,Date.now())}))}onDroppedVideoFrames(e){this.observers.forEach((t=>{var n;return null===(n=t.onDroppedVideoFrames)||void 0===n?void 0:n.call(t,e,Date.now())}))}onEncryptionKeyLoaded(e){this.observers.forEach((t=>{var n;return null===(n=t.onEncryptionKeyLoaded)||void 0===n?void 0:n.call(t,e,Date.now())}))}onEncryptionKeyLoading(){this.observers.forEach((e=>{var t;return null===(t=e.onEncryptionKeyLoading)||void 0===t?void 0:t.call(e,Date.now())}))}onBytesTransferred(e){this.observers.forEach((t=>{var n;return null===(n=t.onBytesTransferred)||void 0===n?void 0:n.call(t,e,Date.now())}))}onDurationChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onDurationChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSubtitleChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onSubtitleChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onFullscreenChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onFullscreenChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onPictureInPictureChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onPictureInPictureChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onSurfaceChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onSurfaceChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onMinimizeBitrateChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onMinimizeBitrateChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}onPlaybackSpeedChanged(e){this.observers.forEach((t=>{var n;return null===(n=t.onPlaybackSpeedChanged)||void 0===n?void 0:n.call(t,e,Date.now())}))}}class ke{constructor(){this.tokenCounter=1,this.handleTimeUpdate=e=>{this.processPeriodicObserverEvents(e),this.processPositionObserverEvents(e)},this.positionObservers=[],this.periodicObservers=[]}removePositionObserver(e){this.positionObservers=this.positionObservers.filter((t=>t.token!==e))}removePeriodicObserver(e){this.periodicObservers=this.periodicObservers.filter((t=>t.token!==e))}addObserverForMediaPositions(e,t){const n=this.nextToken();for(const o of e)this.positionObservers.push({callback:t,token:n,position:o});return n}addObserverForPeriodicEvents(e,t){const n=this.nextToken();return this.periodicObservers.push({callback:t,intervalInSeconds:e,lastReportedPosition:0,token:n}),n}nextToken(){return this.tokenCounter++,this.tokenCounter}getProgress(e){const t=e.target.currentTime,n=e.target.duration;return Math.min(Math.max(t/n,0),1)}processPositionObserverEvents(e){const t=this.getProgress(e);if(void 0!==this.lastProgress){for(const e of this.positionObservers){e.position>=this.lastProgress&&e.position=t.intervalInSeconds&&(t.callback(n),t.lastReportedPosition=Math.floor(n))}}removePositionObserverByReference(e){this.positionObservers=this.positionObservers.filter((t=>t!==e))}}var Re,Le,Ie;!function(e){e.INITIAL="initial",e.SEEK="seek",e.STALL="stall"}(Re||(Re={})),function(e){e.PLAYED_TO_END="played-to-end",e.FATAL_ERROR="error",e.REQUESTED="requested-end",e.SHUTDOWN="shutdown",e.NETWORK_ERROR="network-error"}(Le||(Le={})),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.ERROR="error",e.BYTES_TRANSFERRED="bytesTransferred",e.SUBTITLE_CHANGED="subtitleChanged",e.VIDEO_FORMAT_CHANGED="videoFormatChanged",e.AUDIO_FORMAT_CHANGED="audioFormatChanged",e.FULLSCREEN_CHANGED="fullscreenChanged",e.SURFACE_CHANGED="surfaceChanged",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"}(Ie||(Ie={}));class Ne extends i().abr.SimpleAbrManager{constructor(){super(...arguments),this.surfaceBasedBitrateCap=!1,this.resizeObserverTimer=new(i().util.Timer)((()=>{this.handleResizing()}))}configure(e){var t,n;e.restrictToElementSize&&(e.restrictToElementSize=!1,this.surfaceBasedBitrateCap=!0,this.externalMaxHeightRestriction=null!==(t=e.restrictions.maxHeight)&&void 0!==t?t:1/0,this.externalMaxWidthRestriction=null!==(n=e.restrictions.maxWidth)&&void 0!==n?n:1/0),this.config=e,super.configure(e)}init(e){super.init(e),this.switchCallback=e}setMediaElement(e){super.setMediaElement(e),this.mediaElement=null!=e?e:void 0,this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.mediaElement&&"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver((()=>{this.resizeObserverTimer.tickAfter(1)})),this.resizeObserver.observe(this.mediaElement))}setVariants(e){super.setVariants(e),this.variants=e,this.surfaceBasedBitrateCap&&this.applyElementBasedSizeRestrictions()}chooseVariant(){return super.chooseVariant()}stop(){super.stop(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.resizeObserverTimer.stop()}handleResizing(){if(!this.surfaceBasedBitrateCap)return;this.applyElementBasedSizeRestrictions();const e=this.chooseVariant();e&&this.switchCallback&&this.switchCallback(e)}applyElementBasedSizeRestrictions(){var e,t,n,o,i,r,a;if(!this.variants||!this.mediaElement||!this.config)return;const s=(null===(e=this.config)||void 0===e?void 0:e.ignoreDevicePixelRatio)?1:window.devicePixelRatio,l=null!==(t=this.mediaElement.clientHeight*s)&&void 0!==t?t:1/0,c=null!==(n=this.mediaElement.clientWidth*s)&&void 0!==n?n:1/0;let u=this.variants;u=u.sort(((e,t)=>e.bandwidth-t.bandwidth));const d=u.map((e=>e.video)).find((e=>(null==e?void 0:e.height)&&e.width&&e.height>=l&&e.width>=c));this.config.restrictions.maxHeight=Math.min(null!==(o=null==d?void 0:d.height)&&void 0!==o?o:1/0,null!==(i=this.externalMaxHeightRestriction)&&void 0!==i?i:1/0),this.config.restrictions.maxWidth=Math.min(null!==(r=null==d?void 0:d.width)&&void 0!==r?r:1/0,null!==(a=this.externalMaxWidthRestriction)&&void 0!==a?a:1/0),super.configure(this.config)}}let we;var De=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class Me{constructor(e,t){var n,o,r;this.playerConfiguration=t,this.player=new(i().Player)(e),window.shaka=i(),(null===(r=null===(o=null===(n=this.playerConfiguration)||void 0===n?void 0:n.analytics)||void 0===o?void 0:o.mux)||void 0===r?void 0:r.enabled)&&Y().init(this.player,this.playerConfiguration)}configure(e){return this.player.configure(e)}getNetworkingEngine(){return this.player.getNetworkingEngine()}getManifest(){return this.player.getManifest()}load(e,t,n){return De(this,void 0,void 0,(function*(){yield this.player.load(e,t,n).catch((e=>{throw Y().loadErrorHandler(e),e}))}))}unload(){var e;return De(this,void 0,void 0,(function*(){null===(e=this.player.mux)||void 0===e||e.destroy(),yield this.player.unload()}))}keySystem(){return this.player.keySystem()}getTextTracks(){return this.player.getTextTracks()}getVariantTracks(){return this.player.getVariantTracks()}getStats(){return this.player.getStats()}addEventListener(e,t,n){this.player.addEventListener(e,t,n)}removeEventListener(e,t,n){this.player.removeEventListener(e,t,n)}selectTextLanguage(e,t){this.player.selectTextLanguage(e,t)}setTextTrackVisibility(e){this.player.setTextTrackVisibility(e)}isTextTrackVisible(){return this.player.isTextTrackVisible()}selectVariantTrack(e,t,n){this.player.selectVariantTrack(e,t,n)}setPreferredVideoCodecs(e){this.player.configure({preferredVideoCodecs:e})}setPreferredAudioCodecs(e){this.player.configure({preferredAudioCodecs:e})}isLive(){return this.player.isLive()}getConfiguration(){return this.player.getConfiguration()}}var xe=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class Fe{constructor(e,t){var n,o;this.playerConfiguration=e,this.playbackSessionConfiguration=t,this.pipWindow=null,this.segmentsRetryCounter=0,this.subtitleUris=[],this.internalObserver=this.playbackSessionConfiguration.initiateInternalPlaybackObserver(),this.playbackTimeObservable=new ke,this.state=this.getInitialState(),e.window&&(this.window=e.window),(null===(o=null===(n=this.playerConfiguration)||void 0===n?void 0:n.offline)||void 0===o?void 0:o.enabled)&&(this.offlineManager=new E({playerConfiguration:e})),e.containerElement&&(this.containerElement=e.containerElement),e.containerElementClass&&(this.containerElementClass=e.containerElementClass),this.checkContainerElementByClass=()=>{if(this.containerElementClass){const e=this.getDocument().getElementsByClassName(this.containerElementClass)[0];e&&(e.appendChild(this.node),this.containerElementMutationObserver.disconnect())}},this.containerElementMutationObserver=new MutationObserver(this.checkContainerElementByClass);this.videoElementConfig=Object.assign(Object.assign({},{controls:!1,loop:!1,style:"",width:640}),e.videoElementConfig),this.abrManager=(void 0===we&&(we=new Ne),we),this.videoElementEventHandlers=[{event:"ended",handler:this.handleEnded},{event:"durationchange",handler:this.handleDurationchange},{event:"timeupdate",handler:this.handleTimeUpdate},{event:"volumechange",handler:this.handleVolumechange},{event:"playing",handler:this.handlePlaying},{event:"pause",handler:this.handlePause},{event:"seeking",handler:this.handleSeeking},{event:"seeked",handler:this.handleSeeked},{event:"loadeddata",handler:this.handleLoadeddata},{event:"ratechange",handler:this.handleRateChange},{event:"enterpictureinpicture",handler:this.handleEnterPip},{event:"leavepictureinpicture",handler:this.handleLeavePip}],this.shakaPlayerEventHandlers=[{event:"error",handler:this.handleShakaError},{event:"adaptation",handler:this.handleAdaptation},{event:"variantchanged",handler:this.handleAdaptation},{event:"buffering",handler:this.onBufferingStateChange},{event:"drmsessionupdate",handler:this.onEncryptionKeyLoaded},{event:"manifestparsed",handler:this.handleManifestParsed}],this.networkEngineEventHandlers=[{event:"retry",handler:this.handleRequestRetry}],this.maxRequestRetries=4}get muted(){return this.state.isMuted}get volume(){return this.state.volume}get started(){return this.state.isStarted}get duration(){return this.state.duration}get ended(){var e;return null===(e=this.state)||void 0===e?void 0:e.isEnded}static isBrowserSupported(){return i().Player.isBrowserSupported()}static probeSupport(){return i().Player.probeSupport()}getWindow(){return this.window?this.window:window}getDocument(){return this.getWindow().document}resume(){return this.setPaused(!1)}pause(){return this.setPaused(!0)}seekTo(e){let t=e;e<.1&&(t=.1);const n=this.node.duration||0;return e>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}setVolume(e){this.node&&(this.node.volume=Math.pow(e,3))}setAudioDisabled(e){this.node&&(this.node.muted=e)}setPlaybackSpeed(e){void 0!==this.node&&e>0&&(this.node.defaultPlaybackRate=e,this.node.playbackRate=e)}reattach(){this.containerElementMutationObserver=new MutationObserver(this.checkContainerElementByClass),this.containerElement?this.containerElement.appendChild(this.node):this.containerElementClass&&(this.containerElementMutationObserver.observe(this.getDocument().documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass())}play(e,t){return xe(this,void 0,void 0,(function*(){yield this.initSession(e,t);try{return yield this.loadSession()}catch(e){if(this.sessionPromise=void 0,null!==(n=e)&&"object"==typeof n&&"category"in n&&"code"in n&&"severity"in n&&this.errorMayRecoverOnReload(e)){this.errorMayRecoverOnDrmConfigRemoval(e)&&(this.initialInternalPlayerConfiguration.drm=void 0);try{return this.state.attemptingErrorRecovery=!0,yield this.reloadSession()}catch(t){return e.severity="fatal",yield this.handlePlaybackError(e,!1),yield Promise.reject(e)}finally{this.state.attemptingErrorRecovery=!1}}return yield Promise.reject(e)}var n}))}setPreferredSubtitle(e){if(e.languageTag===B.languageTag)return void this.removeSubtitle();const t=function(e,t){if(e.languageTag===B.languageTag)return;const n=t.find((t=>t.languageTag===e.languageTag));if(n)return n;const o=t.find((t=>V(t)===V(e)));if(o)return o;const i=t.find((t=>G(t)===G(e)));return i||void 0}(e,this.internalPlayer.getTextTracks().map((e=>({languageTag:e.language}))));if(void 0===t)return void this.removeSubtitle();const n=this.getSubtitleLanguageTag();t.languageTag!==n&&this.setSubtitle(t)}newSessionLoaded(e){this.state.isEnded||this.internalObserver.onEndingPlayback({playbackRequest:e})}getBandwidthEstimate(){var e;const t=this.getStats();return null!==(e=null==t?void 0:t.estimatedBandwidth)&&void 0!==e?e:void 0}stop(e){return this.unloadSession(e)}emitForPercentages(e){this.state.progressPercentages=[...Array.from(new Set([...this.state.progressPercentages,...e]))].sort()}clearEmittedPercentages(){this.state.progressPercentages=[]}getPlaybackId(e){var t;return(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.endvideo_playback_id)||""}getNode(){return this.node}hideNode(){this.node.style.display&&(this.storedDisplayStyle=this.node.style.display),this.node.style.display="none"}showNode(){this.storedDisplayStyle?this.node.style.display=this.storedDisplayStyle:this.node.style.display="inline"}getPlaybackStats(){return this.getStats()}setMinimizeBitrate(e){this.state.minimizeBitrate!==e&&(this.state.minimizeBitrate=e,this.internalPlayer&&(e?this.enableMinimizeBitrate():this.disableMinimizeBitrate()))}setWindow(e){this.window=e}setFullscreen(e){this.state.fullscreen!==e&&(this.state.fullscreen=e,this.internalPlayer&&this.internalObserver.onFullscreenChanged({position:this.getCurrentPosition(),fullscreen:e}))}setPip(e){return xe(this,void 0,void 0,(function*(){return this.isPictureInPicture()===e?this.pipWindow:e?(this.pipWindow=yield this.node.requestPictureInPicture(),this.pipWindow):(yield this.getDocument().exitPictureInPicture(),null)}))}setSurface(e){this.internalObserver.onSurfaceChanged({surface:e,position:this.getCurrentPosition()})}isLive(){return this.internalPlayer.isLive()}setPreferredVideoCodecs(e){this.internalPlayer.setPreferredVideoCodecs(e)}setPreferredAudioCodecs(e){this.internalPlayer.setPreferredAudioCodecs(e)}validatePlaybackRequest(e,t){var n,o;const i=null!==(o=null===(n=null==e?void 0:e.metadata)||void 0===n?void 0:n.playback_id)&&void 0!==o?o:"";if(!this.validPlaybackId(i)){const e={category:"misconfigured-betamax-sdk-error",code:-1,severity:"fatal"};if(this.handlePlaybackError(e,!1),t)throw new Error("playback_id must be valid")}if(!e.mediaUrl)throw new Error("mediaUrl must be set");return e}initSession(e,t){var n,o,i,r,a,s,l,c,u,d,p,f,h,m,y,_,b,S,E,A,T,P,O,C;return xe(this,void 0,void 0,(function*(){const k=this.validatePlaybackRequest(e,!1),R=this.validatePlayOptions(t),L=k.mediaUrl,I=(yield null===(n=this.offlineManager)||void 0===n?void 0:n.isAssetOffline(L))?"offline":"on_demand";if(this.session=Object.assign(Object.assign({sessionId:g(),streamingType:I},k),R),this.manifestUri=null!==(o=v(L,this.playbackSessionConfiguration.mediaExtensions))&&void 0!==o?o:L,"offline"===I){const e=yield null===(i=this.offlineManager)||void 0===i?void 0:i.getPlayableOfflineUrl(L);e&&(this.manifestUri=e)}this.internalObserver.initiateObservers(this.session,this.playbackSessionConfiguration),this.internalObserver.onPlaybackCreated({playbackIdentity:Object.assign({},this.session),initialConfiguration:{position:this.session.initialPosition,volume:this.session.volume,playbackSpeed:this.session.playbackSpeed,preferredSubtitle:this.session.preferredSubtitle,minimizeBitrate:this.session.minimizeBitrate,fullscreen:this.session.fullscreen,surface:this.session.surface},timeObservable:this.playbackTimeObservable}),this.playerBufferInterval=0,this.playerTimeUpdateInterval=0,this.latencyStartTimes={},this.state.playWhenReady=this.session.playWhenReady,this.state.currentTime=this.session.initialPosition,this.state.playbackSpeed=this.session.playbackSpeed,this.state.volume=this.session.volume,this.state.isMuted=0===this.session.volume,this.session.minimizeBitrate&&(this.state.minimizeBitrate=this.session.minimizeBitrate),(null===(s=null===(a=null===(r=this.playerConfiguration)||void 0===r?void 0:r.analytics)||void 0===a?void 0:a.mux)||void 0===s?void 0:s.enabled)&&Y().newSession({view_session_id:this.session.sessionId,video_title:null===(l=this.session.metadata)||void 0===l?void 0:l.album_title,video_id:null===(c=this.session.metadata)||void 0===c?void 0:c["media.manifest_id"],video_stream_type:I,video_source_url:L,video_content_type:null===(u=this.session.metadata)||void 0===u?void 0:u.feature_identifier});const N=null!==(f=null===(p=null===(d=this.playerConfiguration)||void 0===d?void 0:d.streaming)||void 0===p?void 0:p.rebufferingGoal)&&void 0!==f?f:2;this.maxRequestRetries=null!==(y=null===(m=null===(h=this.playerConfiguration)||void 0===h?void 0:h.retry)||void 0===m?void 0:m.attempts)&&void 0!==y?y:4,this.initialInternalPlayerConfiguration={manifest:{retryParameters:{maxAttempts:this.maxRequestRetries}},abr:{defaultBandwidthEstimate:t.bandwidthEstimate,restrictToElementSize:null!==(S=null===(b=null===(_=this.playerConfiguration)||void 0===_?void 0:_.adaptiveBitrate)||void 0===b?void 0:b.surfaceBasedResolutionCap)&&void 0!==S&&S,restrictions:{maxBandwidth:null===(A=null===(E=this.playerConfiguration)||void 0===E?void 0:E.adaptiveBitrate)||void 0===A?void 0:A.maxBitrate}},abrFactory:()=>this.abrManager,drm:{servers:null===(P=null===(T=this.playerConfiguration)||void 0===T?void 0:T.drm)||void 0===P?void 0:P.servers,advanced:null===(C=null===(O=this.playerConfiguration)||void 0===O?void 0:O.drm)||void 0===C?void 0:C.advanced,retryParameters:{maxAttempts:this.maxRequestRetries}},streaming:{rebufferingGoal:N,retryParameters:{maxAttempts:this.maxRequestRetries}}}}))}loadSession(){return this.sessionPromise=new Promise(((e,t)=>xe(this,void 0,void 0,(function*(){var n,o,i,r,a,s,l,c,u,d,p,f,h;this.playerConfiguration.videoElement?this.node=this.playerConfiguration.videoElement:this.node=this.getDocument().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(this.getDocument().documentElement,{childList:!0,subtree:!0}),this.checkContainerElementByClass()),this.node.setAttribute("preload","auto"),this.node.setAttribute("data-sessionId",this.session.sessionId),this.setVolume(null!==(n=this.session.volume)&&void 0!==n?n:this.state.volume),this.setPlaybackSpeed(null!==(o=this.session.playbackSpeed)&&void 0!==o?o:this.state.playbackSpeed),this.internalPlayer=new Me(this.node,this.playerConfiguration),this.internalPlayer.configure(this.initialInternalPlayerConfiguration),(null===(r=null===(i=this.playerConfiguration)||void 0===i?void 0:i.adaptiveBitrate)||void 0===r?void 0:r.initialLowBitrate)&&this.internalPlayer.configure({abr:{defaultBandwidthEstimate:1e6,restrictions:{maxPixels:1}}}),this.session.minimizeBitrate&&this.enableMinimizeBitrate();const m=this.internalPlayer.getNetworkingEngine();this.configureNetworkingEngine(m),this.startListeningForEvents(),(null===(s=null===(a=this.playerConfiguration)||void 0===a?void 0:a.streaming)||void 0===s?void 0:s.autoplayVideoOnLoad)||(this.node.autoplay=this.session.playWhenReady,this.setPaused(!this.session.playWhenReady));try{yield this.internalPlayer.load(this.manifestUri,this.session.initialPosition)}catch(e){if(_(e)){if(!this.state.isEnded){const n=yield this.getPlaybackError(e);yield this.handlePlaybackError(n),t(n)}}else{const n=yield this.getPlaybackError(e,"unknown-error-while-loading");yield this.handlePlaybackError(n),t(n)}}(null===(c=null===(l=this.playerConfiguration)||void 0===l?void 0:l.adaptiveBitrate)||void 0===c?void 0:c.initialLowBitrate)&&this.internalPlayer.configure({abr:{defaultBandwidthEstimate:null===(u=this.initialInternalPlayerConfiguration.abr)||void 0===u?void 0:u.defaultBandwidthEstimate,restrictions:{maxPixels:void 0}}}),this.state.keySystem=this.internalPlayer.keySystem(),(null===(p=null===(d=this.playerConfiguration)||void 0===d?void 0:d.subtitles)||void 0===p?void 0:p.enabled)&&void 0!==this.session.preferredSubtitle&&this.setPreferredSubtitle(this.session.preferredSubtitle),(null===(h=null===(f=this.playerConfiguration)||void 0===f?void 0:f.streaming)||void 0===h?void 0:h.autoplayVideoOnLoad)&&this.setPaused(!this.session.playWhenReady),this.state.isLoaded=!0,e(this)})))),this.sessionPromise}unloadSession(e,t=!0){var n,o;return xe(this,void 0,void 0,(function*(){if(this.state.isLoaded||(yield this.sessionPromise),this.disablePlayTimers(),t){if(!this.state.isEnded){const e=this.getCurrentPosition();this.emitEndedEvent(Le.REQUESTED,e),this.state.isEnded=!0}this.state.endReason=e}if(this.stopListeningForEvents(),void 0!==this.internalPlayer){try{yield this.internalPlayer.unload()}catch(e){if(!_(e)){const t=yield this.getPlaybackError(e,"unknown-error-while-stopping");yield this.handlePlaybackError(t)}}const e=this.internalPlayer.getNetworkingEngine();e&&(e.clearAllRequestFilters(),e.clearAllResponseFilters()),this.containerElementMutationObserver.disconnect()}null===(o=null===(n=this.node)||void 0===n?void 0:n.parentNode)||void 0===o||o.removeChild(this.node)}))}reloadSession(){return xe(this,void 0,void 0,(function*(){return yield this.unloadSession(void 0,!1),this.loadSession()}))}validPlaybackId(e){return 0!==e.length&&!!/^[A-Za-z0-9]*$/.test(e)}validatePlayOptions(e){return e.initialPosition<0&&(e.initialPosition=0),e}configureNetworkingEngine(e){this.playerConfiguration.networkConfiguration&&u(e,this.playerConfiguration.networkConfiguration),e&&(e.registerRequestFilter(this.networkRequestFilter.bind(this)),e.registerResponseFilter(this.networkResponseFilter.bind(this)))}startListeningForEvents(){if(this.videoElementEventHandlers.forEach((e=>{this.node.addEventListener(e.event,e.handler.bind(this))})),this.internalPlayer){this.shakaPlayerEventHandlers.forEach((e=>{this.internalPlayer.addEventListener(e.event,e.handler.bind(this))}));const e=this.internalPlayer.getNetworkingEngine();e&&this.networkEngineEventHandlers.forEach((t=>{e.addEventListener(t.event,t.handler.bind(this))}))}}stopListeningForEvents(){if(this.videoElementEventHandlers.forEach((e=>{var t;null===(t=this.node)||void 0===t||t.removeEventListener(e.event,e.handler)})),this.internalPlayer){this.shakaPlayerEventHandlers.forEach((e=>{this.internalPlayer.removeEventListener(e.event,e.handler)}));const e=this.internalPlayer.getNetworkingEngine();e&&this.networkEngineEventHandlers.forEach((t=>{e.removeEventListener(t.event,t.handler)}))}}getInitialState(){return{time:(new Date).getTime(),playWhenReady:!1,isStarted:!1,isPlaying:!1,isPaused:!1,isEnded:!1,isError:!1,isBuffering:!1,isLoaded:!1,isSeeking:!1,seekingFrom:0,firstUnhandledSeek:null,timeBuffering:0,readyTimeBuffering:0,isMuted:!1,duration:-1,currentTime:0,progress:0,volume:1,bitrate:0,currentAudioFormat:void 0,currentVideoFormat:void 0,endReason:void 0,hasInitiallySeeked:!1,hasInitiallyReadied:!1,currentVariantId:null,progressPercentages:[],playbackSpeed:1,preferredSubtitle:B,minimizeBitrate:!1,fullscreen:!1,bufferType:Re.INITIAL,lastBufferStart:0,timeUpdate:!1,attemptingErrorRecovery:!1,unableToFetchLastSegments:!1,failedSegmentRetryError:void 0}}getCurrentPosition(){var e;return(null===(e=this.node)||void 0===e?void 0:e.currentTime)?this.node.currentTime:this.state.currentTime}isSubtitleUri(e){return!!e&&this.subtitleUris.some((t=>e.includes(t)))}networkRequestFilter(e,t){e!==i().net.NetworkingEngine.RequestType.LICENSE&&e!==i().net.NetworkingEngine.RequestType.MANIFEST||"HEAD"!==t.method&&(this.latencyStartTimes[e]=Date.now(),e===i().net.NetworkingEngine.RequestType.MANIFEST&&this.internalObserver.onManifestLoading(),e===i().net.NetworkingEngine.RequestType.LICENSE&&this.internalObserver.onEncryptionKeyLoading())}networkResponseFilter(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})}emitEndedEvent(e,t){var n;const o=this.getStats(),i=o?o.droppedFrames:0;i>0&&this.internalObserver.onDroppedVideoFrames({droppedFrames:i});const r={playTime:1e3*(null!==(n=null==o?void 0:o.playTime)&&void 0!==n?n:0)};this.internalObserver.onPlaybackEnded({position:t,reason:e,playbackStats:r})}handleEnded(){A("video::ended"),this.disablePlayTimers(),this.state.isEnded||this.emitEndedEvent(Le.PLAYED_TO_END,this.getCurrentPosition()),this.state.isEnded=!0,this.state.endReason=Le.PLAYED_TO_END,A("video::ended_end")}handleDurationchange(){var e;A("video::durationchange");const t=this.node.duration;if(-1===t&&(null===(e=this.playerConfiguration.experimental)||void 0===e?void 0:e.filterNegativeDuration))return;const n=this.getCurrentPosition();this.state.duration=t,this.state.progress=this.calculateProgress(n,t),this.internalObserver.onDurationChanged({duration:t}),A("video::durationchange_end")}handleManifestParsed(){A("shaka::manifestParsed");const e=this.internalPlayer.getManifest();if(null===e)return;this.subtitleUris=function(e){var t;return(null!==(t=e.textStreams)&&void 0!==t?t:[]).flatMap((e=>{var t,n,o;return null!==(o=null===(n=null===(t=e.segmentIndex)||void 0===t?void 0:t.get(0))||void 0===n?void 0:n.getUris())&&void 0!==o?o:[]})).filter((e=>e))}(e);const t=this.internalPlayer.getTextTracks().map((e=>({languageTag:e.language})));this.internalObserver.onManifestLoaded({availableSubtitles:t}),A("shaka::manifestParsed_end")}handleRateChange(){const e=this.node.playbackRate;e!==this.state.playbackSpeed&&0!==e&&(this.state.playbackSpeed=e,this.internalObserver.onPlaybackSpeedChanged({position:this.getCurrentPosition(),speed:e}))}isPictureInPicture(){return this.getDocument().pictureInPictureElement===this.node}handleTimeUpdate(e){if(!this.state.isLoaded||!this.state.isStarted)return;const t=this.lastSeekTime||this.node.currentTime||0;this.state.currentTime=t,this.state.progress=this.calculateProgress(t,this.node.duration),this.playbackTimeObservable.handleTimeUpdate(e)}handleEnterPip(){this.internalObserver.onPictureInPictureChanged({position:this.getCurrentPosition(),pictureInPicture:!0})}handleLeavePip(){this.internalObserver.onPictureInPictureChanged({position:this.getCurrentPosition(),pictureInPicture:!1})}calculateProgress(e,t){let n=null;return t>0&&e>=0&&(n=e/t,n=Math.min(Math.max(n,0),1)),n}handleLoadeddata(){A("video::loadeddata"),this.state.hasInitiallyReadied||(this.state.hasInitiallyReadied=!0),this.internalObserver.onReady({position:this.getCurrentPosition(),playWhenReady:!this.state.isPaused,streamingType:this.session.streamingType,isPictureInPicture:this.isPictureInPicture()})}handlePlaying(){A("video::playing"),this.state.isPlaying=!0,this.state.isStarted=!0,this.state.isEnded=!1,this.state.isBuffering=!1,this.internalObserver.onResumed({position:this.getCurrentPosition()})}handlePause(){this.state.isPlaying=!1;const e=this.node.currentTime;this.node.duration&&e===this.node.duration||this.internalObserver.onPaused({position:e})}handleVolumechange(){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.getCurrentPosition(),volume:this.state.volume})}getSupportedMedia(e,t){return Object.entries(e).filter((([e,n])=>!0===n&&e.startsWith(t))).map((([e])=>e))}handleRequestRetry(e){return xe(this,void 0,void 0,(function*(){if(null===e.error)return;const t=yield this.getPlaybackError(e.error),n=this.isFailedSegmentRequest(e);n&&(this.segmentsRetryCounter++,this.segmentsRetryCounter>=this.maxRequestRetries?(this.state.unableToFetchLastSegments=!0,this.state.failedSegmentRetryError=e.error,this.state.bufferType!=Re.SEEK&&this.state.bufferType!=Re.STALL||(t.severity="fatal",yield this.handlePlaybackError(t,!1),yield this.stop(Le.FATAL_ERROR),this.state.unableToFetchLastSegments=!1)):yield this.handlePlaybackError(t));const o=e.error.data,r=this.isSubtitleUri(o[0]);if(n&&(r||(e.error.severity=i().util.Error.Severity.CRITICAL)),!n){const t=yield this.getPlaybackError(e.error);yield this.handlePlaybackError(t)}n&&r&&this.removeSubtitle()}))}isFailedSegmentRequest(e){var t;return(null===(t=e.error)||void 0===t?void 0:t.category)===i().util.Error.Category.NETWORK}handleShakaError(e){return xe(this,void 0,void 0,(function*(){const t=yield this.getPlaybackError(e);yield this.handlePlaybackError(t)}))}handlePlaybackError(e,t=!0){return xe(this,void 0,void 0,(function*(){if(void 0!==e.clientContext&&void 0!==e.sessionContext||(e=yield this.hydrateErrorWithContext(e)),t&&(this.errorWillRecoverAutomatically(e)&&(e.severity="recoverable"),(this.errorMayRecoverOnReload(e)||"fatal"===e.severity&&this.state.attemptingErrorRecovery)&&(e.severity="unknown")),this.internalObserver.onPlaybackError({error:e,position:this.getCurrentPosition()}),"fatal"===e.severity){this.state.isError=!0;const t=function(e){switch(e.code){case i().util.Error.Code.TIMEOUT:case i().util.Error.Code.HTTP_ERROR:return!0}return!1}(e)?Le.NETWORK_ERROR:Le.FATAL_ERROR;this.state.isEnded||this.emitEndedEvent(t,this.getCurrentPosition()),this.state.isEnded=!0,this.state.endReason=t}}))}errorWillRecoverAutomatically(e){var t;return"NETWORK"===e.category&&"fatal"===e.severity&&this.isSubtitleUri(null===(t=e.network)||void 0===t?void 0:t.uri)}errorMayRecoverOnReload(e){return!this.state.attemptingErrorRecovery&&this.errorMayRecoverOnDrmConfigRemoval(e)}errorMayRecoverOnDrmConfigRemoval(e){return e.code===i().util.Error.Code.CONTENT_UNSUPPORTED_BY_BROWSER}getPlaybackError(e,t="unknown",n="unknown"){return xe(this,void 0,void 0,(function*(){let o={category:t,code:0,severity:n};return o=function(e){return null!==e&&"object"==typeof e&&"type"in e&&"detail"in e&&"error"===e.type}(e)?this.hydrateErrorWithShakaError(o,e.detail):_(e)?this.hydrateErrorWithShakaError(o,e):this.hydrateErrorWithEventInfo(o,e),o=yield this.hydrateErrorWithContext(o),o}))}hydrateErrorWithShakaError(e,t){var n;const o={category:void 0!==t.category?p(t.category):"unknown",code:null!==(n=t.code)&&void 0!==n?n:0,severity:f(t.severity),internalDetails:t.data};if(t.category===i().util.Error.Category.NETWORK&&t.data){const e=t.data;o.network={uri:e[0]},t.code===i().util.Error.Code.BAD_HTTP_STATUS&&(o.network.httpStatus=e[1],o.network.responseText=e[2],o.network.responseHeaders=e[3])}return Object.assign(Object.assign({},e),o)}hydrateErrorWithEventInfo(e,t){let n;try{n=[JSON.stringify(t)]}catch(e){t instanceof Error&&(n=[t.name,t.message])}return Object.assign(Object.assign({},e),{internalDetails:n})}hydrateErrorWithContext(e){return xe(this,void 0,void 0,(function*(){const t=yield Fe.probeSupport(),n=t.drm["com.widevine.alpha"];return Object.assign(Object.assign({},e),{sessionContext:{audioFormat:this.state.currentAudioFormat,videoFormat:this.state.currentVideoFormat},clientContext:{browserSupported:Fe.isBrowserSupported(),widevineSupported:!!n,widevinePersistentLicenseSupported:!!(null==n?void 0:n.persistentState),supportedAudioWebmMedia:this.getSupportedMedia(t.media,"audio/webm"),supportedVideoWebmMedia:this.getSupportedMedia(t.media,"video/webm")}})}))}handleAdaptation(e){var t,n,o,i;if(!this.internalPlayer)return;if("adaptation"!==e.type&&"variantchanged"!==e.type)return;const r=this.internalPlayer.getVariantTracks().find((e=>e.active));if(!r)return;if(this.state.bitrate=r.bandwidth,this.state.currentVariantId===r.id)return;const a={id:r.id,audioCodec:null!==(t=r.audioCodec)&&void 0!==t?t:"",audioBitrate:r.audioBandwidth,totalBitrate:r.bandwidth},s={id:r.id,width:r.width,height:r.height,videoCodec:null!==(n=r.videoCodec)&&void 0!==n?n:"",videoBitrate:r.videoBandwidth,totalBitrate:r.bandwidth};(null===(o=this.state.currentAudioFormat)||void 0===o?void 0:o.id)!==a.id&&this.internalObserver.onAudioFormatChanged({format:a,position:this.getCurrentPosition()}),(null===(i=this.state.currentVideoFormat)||void 0===i?void 0:i.id)!==s.id&&this.internalObserver.onVideoFormatChanged({format:s,position:this.getCurrentPosition()}),this.state.currentVariantId=r.id,this.state.currentAudioFormat=a,this.state.currentVideoFormat=s}handleSeeking(){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.getCurrentPosition()}))}handleSeeked(){if(!this.state.hasInitiallySeeked)return void(this.state.hasInitiallySeeked=!0);const 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.getCurrentPosition()),this.state.firstUnhandledSeek=null,this.lastSeekTime=0,this.internalObserver.onSeeked({fromPosition:null!=e?e:0,toPosition:this.getCurrentPosition()})}onBufferingStateChange(e){return xe(this,void 0,void 0,(function*(){if(e.buffering){let e=Re.INITIAL;if(this.state.hasInitiallyReadied&&(e=this.state.isSeeking?Re.SEEK:Re.STALL),e===Re.STALL&&this.state.unableToFetchLastSegments){const e=yield this.getPlaybackError(this.state.failedSegmentRetryError);e.severity="fatal",yield this.handlePlaybackError(e,!1),yield this.stop(Le.FATAL_ERROR),this.state.failedSegmentRetryError=void 0}else this.state.isBuffering=!0,this.state.bufferType=e,this.state.lastBufferStart=Date.now(),this.state.isPlaying=!1,this.internalObserver.onBuffering({position:this.getCurrentPosition(),playWhenReady:this.state.playWhenReady,type:e})}else{const e=this.state.isBuffering&&this.state.bufferType===Re.STALL;this.state.isBuffering=!1,this.state.bufferType=null,e&&(this.node.paused||(this.state.isPlaying=!0),this.internalObserver.onReady({position:this.getCurrentPosition(),playWhenReady:!this.state.isPaused,streamingType:this.session.streamingType,isPictureInPicture:this.isPictureInPicture()}))}}))}onEncryptionKeyLoaded(){A("shaka::drmsessionupdate"),this.internalObserver.onEncryptionKeyLoaded({encryptionType:this.internalPlayer.keySystem()})}enablePlayTimers(){if(this.playerBufferInterval)return;const e=()=>{this.state.timeUpdate=!0,this.state.timeUpdate=!1};e(),this.playerTimeUpdateInterval=window.setInterval(e,15e3)}disablePlayTimers(){this.getWindow().clearInterval(this.playerBufferInterval),this.getWindow().clearInterval(this.playerTimeUpdateInterval),this.playerBufferInterval=0,this.playerTimeUpdateInterval=0,this.state.isBuffering=!1,this.state.timeBuffering=0}getStats(){return void 0!==this.internalPlayer&&this.state.isLoaded?this.internalPlayer.getStats():void 0}setPaused(e){return e?(this.node.pause(),this.disablePlayTimers()):(this.node.play(),this.enablePlayTimers()),this.state.isPaused=e,this}enableMinimizeBitrate(){this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:1}}}),this.internalObserver.onMinimizeBitrateChanged({position:this.getCurrentPosition(),minimizeBitrate:!0})}disableMinimizeBitrate(){var e,t,n,o,i,r;const a=null!==(n=null===(t=null===(e=this.playerConfiguration)||void 0===e?void 0:e.adaptiveBitrate)||void 0===t?void 0:t.maxBitrate)&&void 0!==n?n:void 0;this.internalPlayer.configure({abr:{restrictions:{maxBandwidth:a}}});const s=this.abrManager.chooseVariant(),l=null!==(r=null===(i=null===(o=this.playerConfiguration)||void 0===o?void 0:o.minimizeBitrate)||void 0===i?void 0:i.bufferMargin)&&void 0!==r?r:4;this.internalPlayer.selectVariantTrack((e=>{var t,n,o,i,r,a,s,l,c,u,d,p,f,h,m,g,v,y,_;const b=null==e?void 0:e.audio,S=null==e?void 0:e.video,E=[];(null==S?void 0:S.codecs)&&E.push(S.codecs),(null==b?void 0:b.codecs)&&E.push(b.codecs);const A=[];S&&A.push(S.mimeType),b&&A.push(b.mimeType);const T=[];b&&T.push(b.kind),S&&T.push(S.kind);const P=new Set;if(b)for(const e of b.roles)P.add(e);if(S)for(const e of S.roles)P.add(e);return{id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null!==(t=null==b?void 0:b.label)&&void 0!==t?t:null,kind:null!==(n=T[0])&&void 0!==n?n:null,width:null!==(o=null==S?void 0:S.width)&&void 0!==o?o:null,height:null!==(i=null==S?void 0:S.height)&&void 0!==i?i:null,frameRate:null!==(r=null==S?void 0:S.frameRate)&&void 0!==r?r:null,pixelAspectRatio:null!==(a=null==S?void 0:S.pixelAspectRatio)&&void 0!==a?a:null,hdr:null,mimeType:A[0]||null,audioMimeType:null!==(s=null==b?void 0:b.mimeType)&&void 0!==s?s:null,videoMimeType:null!==(l=null==S?void 0:S.mimeType)&&void 0!==l?l:null,codecs:E.join(", "),audioCodec:null!==(c=null==b?void 0:b.codecs)&&void 0!==c?c:null,videoCodec:null!==(u=null==S?void 0:S.codecs)&&void 0!==u?u:null,primary:e.primary,roles:Array.from(P),audioRoles:null!==(d=null==b?void 0:b.roles)&&void 0!==d?d:null,forced:!1,videoId:null!==(p=null==S?void 0:S.id)&&void 0!==p?p:null,audioId:null!==(f=null==b?void 0:b.id)&&void 0!==f?f:null,channelsCount:null!==(h=null==b?void 0:b.channelsCount)&&void 0!==h?h:null,audioSamplingRate:null!==(m=null==b?void 0:b.audioSamplingRate)&&void 0!==m?m:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null!==(g=null==b?void 0:b.bandwidth)&&void 0!==g?g:null,videoBandwidth:null!==(v=null==S?void 0:S.bandwidth)&&void 0!==v?v:null,originalVideoId:null!==(y=null==S?void 0:S.originalId)&&void 0!==y?y:null,originalAudioId:null!==(_=null==b?void 0:b.originalId)&&void 0!==_?_:null,originalTextId:null,originalImageId:null}})(s),!0,l),this.internalObserver.onMinimizeBitrateChanged({position:this.getCurrentPosition(),minimizeBitrate:!1})}getSubtitleLanguageTag(){if(this.internalPlayer.isTextTrackVisible()){const e=this.internalPlayer.getTextTracks().find((e=>e.active));return e?e.language:void 0}}setSubtitle(e){const t=e.languageTag;this.internalPlayer.selectTextLanguage(t),this.internalPlayer.configure({preferredTextLanguage:t}),this.internalPlayer.setTextTrackVisibility(""!==t),this.internalObserver.onSubtitleChanged({position:this.getCurrentPosition(),subtitle:{languageTag:t}})}removeSubtitle(){this.setSubtitle(B)}}class Ue{constructor(e){this.playerConfigurationDependencies=e}createPlaybackSession(e,t){let n=this.playerConfigurationDependencies.factories||[];if(e){if(!this.playerConfigurationDependencies.endVideo)throw new Error("Cannot play Royalty media. EndVideo support is not enabled.");const{endVideo:e,productStateProvider:t,logError:o}=this.playerConfigurationDependencies.endVideo;n=[...n,()=>new Nn(e,t,o)]}return new Fe(t,Object.assign(Object.assign({},this.playerConfigurationDependencies),{initiateInternalPlaybackObserver:()=>new Ce(n)}))}}var Be=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class Ve{constructor(e,t){this.playerConfiguration=e,this.playbackSessionFactory=t,this.defaultPlayOptions={playWhenReady:!0,initialPosition:0,volume:1,playbackSpeed:1,preferredSubtitle:B,bandwidthEstimate:8e6,minimizeBitrate:!1,fullscreen:!1,surface:void 0},this.playOptions=this.defaultPlayOptions}get muted(){return this.playbackSession?this.playbackSession.muted:null}get volume(){return this.playbackSession?this.playbackSession.volume:this.playOptions.volume}get started(){return this.playbackSession?this.playbackSession.started:null}get ended(){return this.playbackSession?this.playbackSession.ended:null}static isBrowserSupported(){return Fe.isBrowserSupported()}static probeSupport(){return Fe.probeSupport()}play(e,t){return Be(this,void 0,void 0,(function*(){A("betamax::start_play"),yield this.endPreviousPlaybackSession(e),this.playbackRequest=e;const n=this.createPlaybackSession(e.isRoyaltyMedia);return null===n?Promise.reject("failed to create playback session object"):(yield n.play(e,Object.assign(Object.assign({},this.playOptions),t)),A("betamax::start_play_end"),this)}))}getPlaybackRequest(){return this.playbackRequest}resume(){return this.playbackSession&&this.playbackSession.resume(),this}pause(){return this.playbackSession&&this.playbackSession.pause(),this}seekTo(e){return this.playbackSession&&this.playbackSession.seekTo(e),this}setVolume(e){return this.playOptions.volume=e,this.playbackSession&&this.playbackSession.setVolume(e),this}setAudioDisabled(e){return this.playbackSession&&this.playbackSession.setAudioDisabled(e),this}getPreferredSubtitle(){return this.playOptions.preferredSubtitle}setPreferredSubtitle(e){return this.playOptions.preferredSubtitle=e,this.playbackSession&&this.playbackSession.setPreferredSubtitle(e),this}setPlaybackSpeed(e){this.playOptions.playbackSpeed=e,this.playbackSession&&this.playbackSession.setPlaybackSpeed(e)}setMinimizeBitrate(e){this.playOptions.minimizeBitrate=e,this.playbackSession&&this.playbackSession.setMinimizeBitrate(e)}setWindow(e){var t;null===(t=this.playbackSession)||void 0===t||t.setWindow(e)}setFullscreen(e){var t;this.playOptions.fullscreen=e,null===(t=this.playbackSession)||void 0===t||t.setFullscreen(e)}setSurface(e){var t;this.playOptions.surface=e,null===(t=this.playbackSession)||void 0===t||t.setSurface(e)}setPip(e){var t,n;return null!==(n=null===(t=this.playbackSession)||void 0===t?void 0:t.setPip(e))&&void 0!==n?n:Promise.resolve(null)}reattach(){var e;null===(e=this.playbackSession)||void 0===e||e.reattach()}stop(e){return Be(this,void 0,void 0,(function*(){this.playbackSession&&(yield this.playbackSession.stop(null!=e?e:Le.REQUESTED),this.playbackSession=void 0)}))}release(){return Be(this,void 0,void 0,(function*(){yield this.stop(Le.REQUESTED),this.playbackSession=void 0,this.playbackRequest=void 0,this.playOptions=this.defaultPlayOptions}))}emitForPercentages(e){this.playbackSession&&this.playbackSession.emitForPercentages(e)}clearEmittedPercentages(){this.playbackSession&&this.playbackSession.clearEmittedPercentages()}getNode(){return this.playbackSession?this.playbackSession.getNode():null}hideNode(){var e;null===(e=this.playbackSession)||void 0===e||e.hideNode()}showNode(){var e;null===(e=this.playbackSession)||void 0===e||e.showNode()}getSessionState(){return this.playbackSession?this.playbackSession.state:null}setPreferredVideoCodecs(e){var t;null===(t=this.playbackSession)||void 0===t||t.setPreferredVideoCodecs(e)}setPreferredAudioCodecs(e){var t;null===(t=this.playbackSession)||void 0===t||t.setPreferredAudioCodecs(e)}_isLive(){var e,t;return null!==(t=null===(e=this.playbackSession)||void 0===e?void 0:e.isLive())&&void 0!==t&&t}endPreviousPlaybackSession(e){return Be(this,void 0,void 0,(function*(){this.playbackSession&&!this.playbackSession.ended&&this.playbackSession.newSessionLoaded(e),yield this.stop()}))}createPlaybackSession(e){let t;try{return t=this.playbackSessionFactory.createPlaybackSession(e,this.playerConfiguration),this.playbackSession=t,this.playbackSession}catch(e){return null}}}class Ge{constructor(e){this.playerConfigurationDependencies=e}createBetamaxPlayer(e){return new Ve(e,new Ue(this.playerConfigurationDependencies))}}class Je{constructor(e,t,n){this.cosmosSender=e,this.playerInterruptor=t,this.stallTimeoutMs=n}onPlaybackCreated({playbackIdentity:e,timeObservable:t}){var n;this.playbackId=null===(n=e.metadata)||void 0===n?void 0:n.playback_id,this.cosmosSender.sendPlaybackState(this.playbackId),void 0!==this.playerInterruptor&&this.playerInterruptor.setTimeObservable(t)}onPlaybackEnded({reason:e}){switch(this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId),e){case Le.PLAYED_TO_END:this.cosmosSender.sendAdvance("finished");break;case Le.NETWORK_ERROR:this.cosmosSender.sendContextPlayerError({type:"timeout"})}this.playbackId=void 0}onBuffering(){this.cosmosSender.sendPlaybackState(this.playbackId),this.shouldSetStallTimers()&&this.startStallTimer()}onDurationChanged({duration:e}){this.cosmosSender.sendPlaybackState(this.playbackId),void 0!==this.playerInterruptor&&this.playerInterruptor.setMediaDuration(e)}onPlaybackError({error:e}){this.cosmosSender.sendPlaybackState(this.playbackId),this.cosmosSender.sendPlaybackError(e)}onPaused(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onReady(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onResumed(){this.stopStallTimerIfRunning(),this.cosmosSender.sendPlaybackState(this.playbackId)}onSeeking(){this.cosmosSender.sendPlaybackState(this.playbackId)}onPlaybackSpeedChanged(){this.cosmosSender.sendPlaybackState(this.playbackId)}shouldSetStallTimers(){return void 0!==this.stallTimeoutMs&&this.stallTimeoutMs>0}startStallTimer(){this.stopStallTimerIfRunning(),this.stallTimeoutId=setTimeout((()=>{this.cosmosSender.sendContextPlayerError({type:"playback_stuck"})}),this.stallTimeoutMs)}stopStallTimerIfRunning(){void 0!==this.stallTimeoutId&&(clearTimeout(this.stallTimeoutId),this.stallTimeoutId=void 0)}}var je=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class He{constructor(e,t,n){this.configuration=e,this.contextPlayerCoordinator=t,this.playerRouter=n,this.cosmosPositionEndpoint="sp://player/v2/main/position",this.debugOverlay=e=>{var t,n,o,i,r,a,s,l,c;const u=null!==(n=null===(t=this.playerRouter.mainPlayer.getNode())||void 0===t?void 0:t.ownerDocument.getElementsByClassName("debugOverlay"))&&void 0!==n?n:[];if(0===u.length){const t=null!==(i=null===(o=this.playerRouter.mainPlayer.getNode())||void 0===o?void 0:o.ownerDocument.createElement("div"))&&void 0!==i?i:new HTMLDivElement,n=null!==(a=null===(r=this.playerRouter.mainPlayer.getNode())||void 0===r?void 0:r.ownerDocument.createElement("p"))&&void 0!==a?a:new HTMLParagraphElement;n.className="debugOverlay",t.appendChild(n),t.setAttribute("style","width: 100%; position: absolute; top: 0; left: 0; opacity: 1; background: yellow; color: black; font-size: 10px; font-weight: bold"),null===(c=null===(l=null===(s=this.playerRouter.mainPlayer.getNode())||void 0===s?void 0:s.parentNode)||void 0===l?void 0:l.parentNode)||void 0===c||c.append(t),Ke(n,e)}else Ke(u[0],e)}}initialize(){this.videoPositionSub=this.configuration.cosmos.sub(`${this.cosmosPositionEndpoint}`,this.onContextualPositionReceived.bind(this),y)}release(){this.videoPositionSub&&(this.videoPositionSub.cancel(),this.videoPositionSub=void 0)}onContextualPositionReceived(e){return je(this,void 0,void 0,(function*(){switch(this.inferPlaybackEvent(e)){case"start":yield this.startPlayback(e);break;case"stop-and-start":yield this.stopPlayback(),yield this.startPlayback(e);break;case"pause":this.pausePlayback();break;case"resume":this.resumePlayback();break;case"seek":this.playerRouter.mainPlayer.seekTo(e.position_as_of_timestamp)}}))}inferPlaybackEvent(e){var t,n,o;let i="none";return void 0===this.lastContextualPositionPayload?i="start":this.lastContextualPositionPayload.playback_id!==e.playback_id?i="stop-and-start":!(null===(t=this.lastContextualPositionPayload)||void 0===t?void 0:t.is_paused)&&e.is_paused?i="pause":(null===(n=this.lastContextualPositionPayload)||void 0===n?void 0:n.is_paused)&&!e.is_paused?i="resume":(null===(o=this.lastContextualPositionPayload)||void 0===o?void 0:o.is_buffering)&&!e.is_buffering&&(i="seek"),this.lastContextualPositionPayload=e,i}startPlayback(e){return je(this,void 0,void 0,(function*(){const t=(e=>{var t;const n={type:"start",track:{}};return n.track.playback_id=e.playback_id,n.track.track={},n.track.track.metadata=null===(t=e.track)||void 0===t?void 0:t.metadata,n.config={},n.config["audio.episode.speed"]=e.playback_speed,n.position=e.timestamp,n})(e);yield this.contextPlayerCoordinator.startNewPlayback(t).then((e=>console.log("startNewPlayback done",e)),(e=>console.error("start new playback failed",e))),this.playerRouter.setVolume(0),this.listenToMediaPositionUpdates()}))}stopPlayback(){return je(this,void 0,void 0,(function*(){yield this.playerRouter.mainPlayer.stop(),this.stopListeningToMediaPositionUpdates()}))}pausePlayback(){this.playerRouter.mainPlayer.pause(),this.stopListeningToMediaPositionUpdates()}resumePlayback(){this.playerRouter.mainPlayer.resume(),this.listenToMediaPositionUpdates()}listenToMediaPositionUpdates(){this.mediaPositionIntervalId=window.setInterval((()=>{this.configuration.cosmos.get(`${this.cosmosPositionEndpoint}`).then((e=>{this.onMediaPositionReceived(e)})).catch(console.error)}),400)}stopListeningToMediaPositionUpdates(){this.mediaPositionIntervalId&&window.clearInterval(this.mediaPositionIntervalId),this.mediaPositionIntervalId=void 0}onMediaPositionReceived(e){var t,n,o;const i=null!==(o=null===(n=null===(t=this.playerRouter.mainPlayer)||void 0===t?void 0:t.getNode())||void 0===n?void 0:n.currentTime)&&void 0!==o?o:0,r=e.position,a=We(i,r),s=r/1e3,l=1+(s-i)/100,c=ze(i,r);if(this.debugOverlay({delta:c,adjustSpeed:!a,newSpeed:l}),0===e.playback_speed)this.pausePlayback();else if(a){const t=s,n=200*e.playback_speed/1e3;this.playerRouter.mainPlayer.seekTo(t+n)}else c>1?this.playerRouter.mainPlayer.setPlaybackSpeed(.9):l<2&&this.playerRouter.mainPlayer.setPlaybackSpeed(l)}}const Ke=(e,{delta:t,adjustSpeed:n,newSpeed:o=0})=>{e.innerHTML=`d:${Ye(t)}, s: ${n?"t":"f"}, speed: ${o}`,e.style.background=t>200?"pink":n?"yellow":"lightgreen"},Ye=e=>e>1?"↑":e<1?"↓":"-",We=(e,t)=>0!==e&&void 0!==e&&(0!==t&&void 0!==t&&Math.abs(ze(e,t))>200),ze=(e=0,t)=>t-1e3*e;var qe=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const Xe=i().util.Error.Code,Ze=i().util.Error.Category;class Qe{constructor(e){var t,n,o,i,r,a,s,l,c,u,d;if(this.configuration=e,this.cosmosVideoPlayerEndpoint="sp://videoplayer/v1",this.cosmos=e.cosmos,this.spotifyProductState=e.productState,this.playerDependencies=e.playerDependencies,this.playerConfiguration=null!==(t=e.playerConfiguration)&&void 0!==t?t:{},this.authTokenCallback=()=>qe(this,void 0,void 0,(function*(){const{accessToken:t,tokenType:n}=yield e.getToken();return`${n} ${t}`})),(null!==(o=(c=null!==(n=(l=this.playerConfiguration).analytics)&&void 0!==n?n:l.analytics={}).playbackMetadataKeys)&&void 0!==o?o:c.playbackMetadataKeys=[]).push(Z),(null!==(i=(u=e.playerDependencies).factories)&&void 0!==i?i:u.factories=[]).push((()=>new Je(this,this.playerInterruptor,this.stallTimeoutMs))),e.eventSenderProvider){const{playbackSessionLogger:t,playbackErrorLogger:n,downloadSessionLogger:o,downloadErrorLogger:i}=ye(e.eventSenderProvider),l={log:e=>(Y().queueHeartBeat(e),Promise.resolve())};e.playerDependencies.factories.push((()=>{var e,n;return new ln(t,null===(n=null===(e=this.playerConfiguration)||void 0===e?void 0:e.analytics)||void 0===n?void 0:n.playbackMetadataKeys)}),(()=>new cn(n)),(()=>new fn(l))),(null===(a=null===(r=this.playerConfiguration)||void 0===r?void 0:r.offline)||void 0===a?void 0:a.enabled)&&(null!==(s=(d=this.playerConfiguration.offline).downloadObserverFactories)&&void 0!==s?s:d.downloadObserverFactories=[]).push((()=>new hn(o)),(()=>new mn(i)))}if(e.endVideoLogger){const t=new Se(e.productStateService,e.scrobbleService);e.playerDependencies.endVideo={endVideo:e.endVideoLogger,productStateProvider:t}}const p=this.spotifyProductState["video-manifest-url"];this.playerDependencies.mediaExtensions=[new C(p)],this.videoContextPlayerSub=void 0,this.contextPlayerVolumeSub=void 0,this.playerInterruptor=new F(this.cosmos),this.playbackService=e.playbackService}initialize(){var e;const t=new Ge(this.playerDependencies),n=t.createBetamaxPlayer(this.playerConfiguration),o=(null===(e=this.configuration.ads)||void 0===e?void 0:e.videoOnVideoSaiEnabled)?t.createBetamaxPlayer(this.playerConfiguration):void 0;this.playerRouter=new Ae(n,o),this.configuration.boomboxAudioSync?(this.audioSyncCoordinator=new He(this.configuration,this,this.playerRouter),this.audioSyncCoordinator.initialize()):this.videoContextPlayerSub=this.cosmos.sub(`${this.cosmosVideoPlayerEndpoint}/commands`,this.onCommandReceived.bind(this),y),void 0!==this.playbackService&&this.playbackService.subVolume({},(({volume:e})=>{var t;null===(t=this.playerRouter)||void 0===t||t.setVolume(e)}))}release(){return qe(this,void 0,void 0,(function*(){this.videoContextPlayerSub&&(this.videoContextPlayerSub.cancel(),this.videoContextPlayerSub=void 0),this.contextPlayerVolumeSub&&(this.contextPlayerVolumeSub.cancel(),this.contextPlayerVolumeSub=void 0),yield this.stopAndUnloadCurrentTrack(),this.playerInterruptor=void 0,this.playerRouter=void 0,this.deferredStartPayload=void 0,this.audioSyncCoordinator&&this.audioSyncCoordinator.release()}))}onCommandReceived(e){var t,n,o;return qe(this,void 0,void 0,(function*(){const i=e;if(!this.playerRouter)return i;const r=null===(t=null==i?void 0:i.track)||void 0===t?void 0:t.playback_id;switch(i.type){case"start":try{this.playerInterruptor&&this.playerInterruptor.unregister(),this.shouldResumeCurrentTrack(i,this.currentTrack)?yield this.resumeCurrentPlayback(this.playerRouter,i):yield this.startNewPlayback(i)}catch(e){yield this.playerRouter.stop(r),yield this.sendContextPlayerError({type:"video_playback_error"})}return this.shouldPrepareDeferredStart(i,r)&&(this.deferredStartPayload=i),i;case"stop":yield this.playerRouter.stop(r);break;case"pause":this.playerRouter.pause(r);break;case"resume":(null===(o=null===(n=this.currentTrack)||void 0===n?void 0:n.track)||void 0===o?void 0:o.metadata["media.live"])&&this.playerRouter.seekTo(r,0),this.deferredStartPayload&&this.shouldPerformDeferredStart(r)&&(this.deferredStartPayload.start_reason="unknown",yield this.startNewPlayback(this.deferredStartPayload)),this.playerRouter.resume(r);break;case"seek_to":{const e=i.position||0;this.isSeekPastStopPosition(e)&&void 0!==this.playerInterruptor&&this.playerInterruptor.unregister(),this.playerRouter.seekTo(r,e/1e3)}break;case"set_stop_position":{const e=i.stop_position;void 0!==this.playerInterruptor&&void 0!==e&&this.playerInterruptor.registerInterruptorWhenReadyAtPosition(e/1e3)}break;case"subscribed":case"config":{const e=ge(i.config);this.playerRouter.setPreferredSubtitle(e);const t=ve(i.config);this.playerRouter.setPlaybackSpeed(t)}}return i}))}shouldPrepareDeferredStart(e,t){var n;return"appload"===e.start_reason&&null===(null===(n=this.playerRouter)||void 0===n?void 0:n.getSessionState(t))}shouldPerformDeferredStart(e){var t;return void 0!==this.deferredStartPayload&&null===(null===(t=this.playerRouter)||void 0===t?void 0:t.getSessionState(e))}sendPlaybackError(e){return qe(this,void 0,void 0,(function*(){const t=this.backendErrorToContextPlayerError(e);t&&(yield this.sendContextPlayerError(t))}))}sendContextPlayerError(e){return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/error`,e)}startNewPlayback(e){var t,n,o,i,r,a,s,l,c;return qe(this,void 0,void 0,(function*(){if(!this.playerRouter)return Promise.reject("betamaxPlayer was not set");this.deferredStartPayload&&(this.deferredStartPayload=void 0);const u=null!==(n=null===(t=null==e?void 0:e.track)||void 0===t?void 0:t.track)&&void 0!==n?n:e,d=null!==(i=null===(o=null==u?void 0:u.metadata)||void 0===o?void 0:o["media.manifest_id"])&&void 0!==i?i:"";let p="";if(!d){try{p=(e=>{if(!Array.isArray(e)||!e.length)return null;const t=["video/webm"],n=e.filter((e=>t.indexOf(e.mimeType)>-1)).sort(((e,t)=>Math.abs(e.bitrate-640)-Math.abs(t.bitrate-640)));return n.length?n[0].url:null})(JSON.parse(u.metadata["media.manifest"]))||""}catch(e){p=""}p||(p=null!==(a=null===(r=null==u?void 0:u.metadata)||void 0===r?void 0:r.external_url)&&void 0!==a?a:"")}if(!d&&!p){const e=this.makeVideoContextPlayerCoordinatorError("no-source-url","Cannot find a manifest ID nor a source URL in payload");return Promise.reject(e)}const f=function(e){var t;return"true"===(null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.is_advertisement)}(u),h=!f,m=!f;if(f||(yield this.stopAndUnloadCurrentTrack()),null!==(s=this.playerConfiguration)&&void 0!==s||(this.playerConfiguration={}),h){let e;null!==(l=(c=this.playerConfiguration).drm)&&void 0!==l||(c.drm={}),this.playerConfiguration.drm.vmpEnabled&&(e=yield Oe(this.configuration.getToken));const t=this.spotifyProductState["widevine-license-url"];this.playerConfiguration.drm=Object.assign(Object.assign({},this.playerConfiguration.drm),{servers:Object.assign(Object.assign({},this.playerConfiguration.drm.servers),{"com.widevine.alpha":t}),advanced:Object.assign(Object.assign({},this.playerConfiguration.drm.advanced),{"com.widevine.alpha":{videoRobustness:"SW_SECURE_DECODE",serverCertificate:e}})})}const g=d?this.authTokenCallback:void 0;this.playerConfiguration.networkConfiguration={getAuthorizationHeader:g};const v=he(e);v.desktop_ui="x";const y={mediaUrl:d?O.create(d):p,isRoyaltyMedia:m,metadata:v},_=ve(e.config);this.playerRouter.setPlaybackSpeed(_),this.currentTrack=e.track,this.stallTimeoutMs=function(e){const t=e.track.track.metadata["video.seconds_before_track_stuck"];if(!t)return;const n=Number(t);return Number.isInteger(n)?1e3*n:void 0}(e);const b=(e.seek_to||0)/1e3,S=!e.initially_paused;return this.playerRouter.play(y,{playWhenReady:S,initialPosition:b})}))}getPlaybackRequest(){if(this.playerRouter)return this.playerRouter.getPlaybackRequest()}sendAdvance(e){const t={reason:e};return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/advance`,t)}sendPlaybackState(e){var t;if(!e)return Promise.resolve({err:"playbackId is undefined"});const n=null===(t=this.playerRouter)||void 0===t?void 0:t.getSessionState(e);if(!n)return Promise.resolve({err:`no session state for playbackId: '${e}'`});const o=n.duration>-1?Math.floor(1e3*n.duration):-1;if(-1===o)return Promise.resolve({err:"negDuration"});const i=n.currentTime>-1?Math.floor(1e3*n.currentTime):-1,r=n.isPlaying&&!n.isPaused?n.playbackSpeed:0,a={timestamp:(new Date).getTime(),playback_id:e||"",is_paused:n.isPaused,is_buffering:n.isBuffering||!1,playback_speed:r,position_as_of_timestamp:i,duration:o};return this.cosmos.post(`${this.cosmosVideoPlayerEndpoint}/state`,a)}setMinimizeBitrate(e){var t;null===(t=this.playerRouter)||void 0===t||t.setMinimizeBitrate(e)}reportVideoMode(e){var t;const n="none"==e?void 0:e;null===(t=this.playerRouter)||void 0===t||t.setSurface(n)}setFullscreen(e){var t;null===(t=this.playerRouter)||void 0===t||t.setFullscreen(e)}setWindow(e){var t;null===(t=this.playerRouter)||void 0===t||t.setWindow(e)}setPip(e){var t,n;return null!==(n=null===(t=this.playerRouter)||void 0===t?void 0:t.setPip(e))&&void 0!==n?n:Promise.resolve(null)}isSeekPastStopPosition(e){const t=this.playerInterruptor?this.playerInterruptor.getStopPosition():void 0;return void 0!==t&&e>=t}shouldResumeCurrentTrack(e,t){return void 0!==t&&(void 0!==this.playerRouter&&this.playerRouter.hasPlaybackId(e.track.playback_id))}resumeCurrentPlayback(e,t){var n;return qe(this,void 0,void 0,(function*(){const o=t.track.playback_id;yield null===(n=this.playerRouter)||void 0===n?void 0:n.switchPlayer(o);const i=ve(t.config);if(e.setPlaybackSpeed(i),e.resume(o),void 0!==t.seek_to&&t.seek_to>=0){const n=t.seek_to/1e3;e.seekTo(o,n)}}))}makeVideoContextPlayerCoordinatorError(e,t){const n=new Error(t);return n.name="VideoContextPlayerCoordinatorError",n.reason=e,n}backendErrorToContextPlayerError(e){var t,n;if(!(null===(t=e.network)||void 0===t?void 0:t.responseText)&&!(null===(n=e.network)||void 0===n?void 0:n.httpStatus))return e.code===Xe.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE?{type:"video_unsupported_key_system"}:e.category===p(Ze.DRM)?this.configuration.widevineVersionSupported?{type:"video_playback_error"}:{type:"video_unsupported_client_version"}:"recoverable"===e.severity?null:{type:"unknown"};if(401===e.network.httpStatus)return{type:"video_playback_error"};let o=null;try{if(e.network.responseHeaders&&"content-type"in e.network.responseHeaders){if("application/json"===e.network.responseHeaders["content-type"]&&e.network.responseText){o=JSON.parse(e.network.responseText).reason}}}catch(e){return{type:"unknown"}}switch(o){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"}}}stopAndUnloadCurrentTrack(){return qe(this,void 0,void 0,(function*(){if(!this.playerRouter)return;const e=this.playerRouter.getNode();this.currentTrack&&!this.playerRouter.ended&&(yield this.playerRouter.stopAll()),this.currentTrack=void 0,this.stallTimeoutMs=void 0,e&&e.remove()}))}}const $e=i().net.NetworkingEngine.RequestType;class et{constructor(){this.sessionEvents=[]}onBuffering(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.BUFFERING})}onEncryptionKeyLoaded(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.ENCRYPTION_KEY_LOADED})}onDurationChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.DURATION_CHANGED})}onManifestLoaded(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.MANIFEST_LOADED})}onPlaybackError(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.ERROR})}onPlaybackCreated(e,t){this.sessionEvents.push({data:e,timestamp:t,type:Ie.CREATED})}onEndingPlayback(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.NEW_SESSION_LOADED})}onPlaybackEnded(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.ENDED})}onReady(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.READY})}onResumed(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.RESUMED})}onPaused(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.PAUSED})}onSeeking(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SEEKING})}onSeeked(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SEEKED})}onAudioFormatChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.AUDIO_FORMAT_CHANGED})}onVideoFormatChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.VIDEO_FORMAT_CHANGED})}onVolumeChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.VOLUME_CHANGED})}onManifestLoading(e){this.sessionEvents.push({timestamp:e,data:void 0,type:Ie.MANIFEST_LOADING})}onEncryptionKeyLoading(e){this.sessionEvents.push({timestamp:e,data:void 0,type:Ie.ENCRYPTION_KEY_LOADING})}onBytesTransferred(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.BYTES_TRANSFERRED})}onSubtitleChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SUBTITLE_CHANGED})}onFullscreenChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.FULLSCREEN_CHANGED})}onSurfaceChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.SURFACE_CHANGED})}onMinimizeBitrateChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.MINIMIZE_BITRATE_CHANGED})}onPlaybackSpeedChanged(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.PLAYBACK_SPEED_CHANGED})}onDroppedVideoFrames(e,t){this.sessionEvents.push({timestamp:t,data:e,type:Ie.DROPPED_FRAMES})}}const tt=-1,nt=e=>Number.isFinite(e);function ot(e){return Object.entries(e).filter((([e])=>e.includes(fe))).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t.replace(fe,"")]:n})),{})}const it=e=>e.type===Ie.RESUMED,rt=e=>e.type===Ie.ENDED,at=e=>e.type===Ie.BUFFERING,st=e=>e.type===Ie.DROPPED_FRAMES,lt=e=>e.type===Ie.NEW_SESSION_LOADED,ct=e=>e.type===Ie.CREATED,ut=e=>e.type===Ie.READY,dt=e=>e.type===Ie.DURATION_CHANGED,pt=e=>e.type===Ie.AUDIO_FORMAT_CHANGED,ft=e=>e.type===Ie.VIDEO_FORMAT_CHANGED,ht=e=>e.type===Ie.ENCRYPTION_KEY_LOADED,mt=e=>e.type===Ie.ENCRYPTION_KEY_LOADING,gt=e=>e.type===Ie.SUBTITLE_CHANGED,vt=e=>e.type===Ie.MANIFEST_LOADED,yt=e=>e.type===Ie.MANIFEST_LOADING,_t=e=>e.type===Ie.SEEKING,bt=e=>e.type===Ie.PLAYBACK_SPEED_CHANGED,St=e=>e.type===Ie.FULLSCREEN_CHANGED,Et=e=>e.type===Ie.SURFACE_CHANGED,At=e=>e.type===Ie.MINIMIZE_BITRATE_CHANGED,Tt=e=>e.type===Ie.BYTES_TRANSFERRED,Pt=e=>(e=>{var t;return null!==(t=e[Z])&&void 0!==t?t:""})(ot(e)),Ot=e=>t=>it(t)&&!e,Ct=e=>t=>_t(t)&&e,kt=e=>t=>rt(t)&&e,Rt=e=>t=>(_t(t)||(e=>e.type===Ie.PAUSED)(t)||rt(t))&&e,Lt=(e,t)=>it(e)?void 0===e.data||void 0===e.data.position?Object.assign(Object.assign({},t),{playing:!0}):Object.assign(Object.assign({},t),{playing:!0,playingPosition:e.data.position}):t;function It(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return 0;const n=t-e;return!Number.isFinite(n)||n<0?0:Math.round(1e3*n)}function Nt(e,t,n){const o=Math.round(n.timestamp-e.bufferingStart),i=Object.assign({},t);if(nt(o)&&o>0)switch(e.bufferingType){case Re.SEEK:i[W.MS_BUFFERING_SEEK]+=o,o>i[W.MS_BUFFERING_SEEK_LONGEST]&&(i[W.MS_BUFFERING_SEEK_LONGEST]=o);break;case Re.STALL:i[W.MS_BUFFERING_STALL]+=o,o>i[W.MS_BUFFERING_STALL_LONGEST]&&(i[W.MS_BUFFERING_STALL_LONGEST]=o);break;case Re.INITIAL:i[W.MS_INITIAL_BUFFERING]+=o}return i}const wt=(e,t,n)=>n>0?Math.round(It(t,Dt(e))/n):0;function Dt(e){if(e.data){const t=e.data.position;if(nt(t))return t;if(_t(e)&&nt(e.data.fromPosition))return e.data.fromPosition}return 1/0}const Mt=(e,t)=>bt(e)?Object.assign(Object.assign({},t),{playbackSpeed:e.data.speed}):t,xt=(e,t)=>{var n;return gt(e)?Object.assign(Object.assign({},t),{subtitlesEnabled:!!(null===(n=e.data)||void 0===n?void 0:n.subtitle.languageTag)}):t},Ft=(e,t)=>St(e)?Object.assign(Object.assign({},t),{fullscreen:e.data.fullscreen}):t,Ut=(e,t)=>Et(e)?Object.assign(Object.assign({},t),{surfaceChanged:!0}):t,Bt=(e,t)=>At(e)?Object.assign(Object.assign({},t),{minimizeBitrate:e.data.minimizeBitrate}):t,Vt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{minimizeBitrate:e.data.initialConfiguration.minimizeBitrate}):t,Gt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{fullscreen:e.data.initialConfiguration.fullscreen}):t,Jt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{surface:e.data.initialConfiguration.surface}):t,jt=(e,t)=>ct(e)?Object.assign(Object.assign({},t),{playbackSpeed:e.data.initialConfiguration.playbackSpeed}):t,Ht=(e,t)=>{const n=Object.assign({},t),o=(e=>{const t=e.playing&&e.subtitlesEnabled,n=void 0!==e.playingWithSubtitlesPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===o&&(n.playingWithSubtitlesPosition=Dt(e)),"finished"===o&&void 0!==n.playingWithSubtitlesPosition&&(n.msPlayedSubtitles+=wt(e,n.playingWithSubtitlesPosition,n.playbackSpeed),n.playingWithSubtitlesPosition=void 0),n},Kt=(e,t)=>{const n=Object.assign({},t),o=(e=>{const t=e.playing&&e.fullscreen,n=void 0!==e.playingWhileFullscreenPosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===o&&(n.playingWhileFullscreenPosition=Dt(e)),"finished"===o&&void 0!==n.playingWhileFullscreenPosition&&(n.msPlayedFullscreen+=wt(e,n.playingWhileFullscreenPosition,n.playbackSpeed),n.playingWhileFullscreenPosition=void 0),n},Yt=(e,t)=>{var n,o,i,r,a,s;const l=Object.assign({},t),c=(e=>{if(e.surfaceChanged)return"changed";const t=e.playing&&e.surface,n=void 0!==e.playingInSurfacePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(l);return"started"===c&&(l.playingInSurfacePosition=Dt(e)),"finished"===c&&void 0!==l.playingInSurfacePosition&&l.surface&&(null!==(n=(i=l.msPlayedPerSurface)[r=l.surface])&&void 0!==n||(i[r]=0),l.msPlayedPerSurface[l.surface]+=wt(e,l.playingInSurfacePosition,l.playbackSpeed),l.playingInSurfacePosition=void 0),"changed"===c&&Et(e)&&(l.surface&&void 0!==l.playingInSurfacePosition&&(null!==(o=(a=l.msPlayedPerSurface)[s=l.surface])&&void 0!==o||(a[s]=0),l.msPlayedPerSurface[l.surface]+=wt(e,l.playingInSurfacePosition,l.playbackSpeed)),l.surface=e.data.surface,l.surfaceChanged=!1,l.playing&&(l.playingInSurfacePosition=Dt(e))),l},Wt=(e,t)=>{const n=Object.assign({},t),o=(e=>{const t=e.playing&&e.minimizeBitrate,n=void 0!==e.playingWithMinimizeBitratePosition;return t&&!n?"started":!t&&n?"finished":t?"on":"off"})(n);return"started"===o&&(n.playingWithMinimizeBitratePosition=Dt(e)),"finished"===o&&void 0!==n.playingWithMinimizeBitratePosition&&(n.msPlayedDisabled+=wt(e,n.playingWithMinimizeBitratePosition,n.playbackSpeed),n.playingWithMinimizeBitratePosition=void 0),n},zt=(e,t)=>{const n=It(t.playingPosition,Dt(e)),o=wt(e,t.playingPosition,t.playbackSpeed);return Object.assign(Object.assign({},t),{msNominalPlayed:n+t.msNominalPlayed,msPlayed:o+t.msPlayed,playing:!1,playingPosition:0})},qt=(e,t)=>{t[W.SESSION_ID]=e.data.playbackIdentity.sessionId,t[W.MEDIA_URL]=e.data.playbackIdentity.mediaUrl},Xt=(e,t)=>{t[W.MS_START_POSITION]=Math.round(1e3*e.data.position),t[W.STREAMING_TYPE]=e.data.streamingType},Zt=(e,t)=>{t[W.MS_DURATION]=Math.round(1e3*e.data.duration)};const Qt=(e,t)=>{t[W.N_DROPPED_FRAMES]=e.data.droppedFrames},$t=(e,t)=>{t[W.EXIT_REASON]=e.data.reason},en=(e,t)=>{t[W.ASPECT_RATIO]=e.data.format.width&&e.data.format.height?e.data.format.width/e.data.format.height:t[W.ASPECT_RATIO],t[W.START_BITRATE]=e.data.format.totalBitrate&&!t[W.START_BITRATE]?e.data.format.totalBitrate:t[W.START_BITRATE]};const tn=(e,t)=>{t[W.ENCRYPTION_TYPE]=e.data.encryptionType},nn=(e,t)=>{t[W.LAST_USED_SUBTITLE]=e.data.subtitle.languageTag||t[W.LAST_USED_SUBTITLE]};const on=(e,t)=>{var n,o;e.data.fromPosition>e.data.toPosition?t[W.N_SEEKBACK]=(null!==(n=t[W.N_SEEKBACK])&&void 0!==n?n:0)+1:e.data.fromPosition<=e.data.toPosition&&(t[W.N_SEEKFORWARD]=(null!==(o=t[W.N_SEEKFORWARD])&&void 0!==o?o:0)+1)};const rn=()=>({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,surfaceChanged:!1,msPlayedPerSurface:{}});function an(e){let t=rn(),n={[W.ASPECT_RATIO]:0,[W.START_BITRATE]:0,[W.N_SEEKBACK]:0,[W.N_SEEKFORWARD]:0,[W.N_DROPPED_FRAMES]:0,[W.EXIT_REASON]:"",[W.ENCRYPTION_TYPE]:"",[W.LAST_USED_SUBTITLE]:"",[W.SESSION_ID]:"",[W.MEDIA_URL]:"",[W.STREAMING_TYPE]:"unknown",[W.MS_DURATION]:tt,[W.MS_START_POSITION]:tt,[W.MS_MANIFEST_LOAD_TIME]:tt,[W.MS_ENCRYPTION_LOAD_TIME]:tt},o=tt,i=tt,r=tt,a=tt,s=0,l=0;const c={buffering:!1,bufferingType:"",bufferingStart:0};let u={[W.N_STALLS]:0,[W.MS_BUFFERING_SEEK]:0,[W.MS_BUFFERING_SEEK_LONGEST]:0,[W.MS_BUFFERING_STALL]:0,[W.MS_INITIAL_BUFFERING]:0,[W.MS_BUFFERING_STALL_LONGEST]:0};return n=e.reduce(((e,n)=>(ct(n)?(o===tt&&(o=n.timestamp),t=jt(n,t),t=Gt(n,t),t=Vt(n,t),t=Jt(n,t),qt(n,e)):ut(n)?(i===tt&&(i=n.timestamp),Xt(n,e)):bt(n)?t=Mt(n,t):gt(n)?(t=xt(n,t),nn(n,e)):St(n)?t=Ft(n,t):At(n)?t=Bt(n,t):Et(n)?t=Ut(n,t):Tt(n)?(s+=n.data.bytes,l+=n.data.timeMs):dt(n)?Zt(n,e):ft(n)?en(n,e):st(n)?Qt(n,e):ht(n)?(tn(n,e),function(e,t,n){if(t!==tt){const o=n[W.MS_ENCRYPTION_LOAD_TIME],i=nt(o)&&o!==tt?o:0;n[W.MS_ENCRYPTION_LOAD_TIME]=i+Math.round(e.timestamp-t)}}(n,a,e),a=tt):mt(n)&&i===tt?a=n.timestamp:vt(n)?(!function(e,t,n){if(t!==tt){const o=n[W.MS_MANIFEST_LOAD_TIME],i=nt(o)&&o!==tt?o:0;n[W.MS_MANIFEST_LOAD_TIME]=i+Math.round(e.timestamp-t)}}(n,r,e),r=tt):yt(n)?r=n.timestamp:_t(n)?on(n,e):rt(n)&&$t(n,e),Ot(t.playing)(n)?t=Lt(n,t):Rt(t.playing)(n)&&(t=zt(n,t)),t=Ht(n,t),t=Kt(n,t),t=Wt(n,t),t=Yt(n,t),e[W.MS_PLAYED]=t.msPlayed,e[W.MS_PLAYED_NOMINAL]=t.msNominalPlayed,e[W.MS_PLAYED_SUBTITLES]=t.msPlayedSubtitles,e[W.MS_PLAYED_FULLSCREEN]=t.msPlayedFullscreen,e[W.MS_PLAYED_VIDEO_DISABLED]=t.msPlayedDisabled,e[W.MS_PLAYED_PER_SURFACE]=t.msPlayedPerSurface,u=function(e,t,n){return at(e)&&(e.data.type===Re.STALL&&n[W.N_STALLS]++,t.buffering&&(n=Nt(t,n,e)),t.buffering=!0,t.bufferingType=e.data.type,t.bufferingStart=e.timestamp),(ut(e)||rt(e))&&t.buffering&&(n=Nt(t,n,e),t.buffering=!1,t.bufferingType="",t.bufferingStart=0),n}(n,c,u),e)),n),n=function(e,t,n){const o=t?e/(t/1e3):0;return n[W.KBYTES_DOWNLOADED]=Math.ceil(e/1e3),n[W.KBPS_AVERAGE_BANDWIDTH]=Math.ceil(.008*o),n}(s,l,n),n=function(e,t,n){if(e===tt||t===tt)return n[W.MS_START_TIME]=tt,n;let o=Math.round(t-e);return o=o>=0?o:tt,n[W.MS_START_TIME]=o,n}(o,i,n),Object.assign(Object.assign({},n),u)}const sn=()=>{var e;if(navigator.onLine){const t=null===(e=navigator.connection)||void 0===e?void 0:e.effectiveType;return t?`${t}-like`:"online"}return"none"};class ln extends et{constructor(e,t){super(),this.logger=e,this.playbackMetadataKeys=t,this.startConnectionType="unknown",this.endConnectionType="unknown"}onPlaybackCreated(e,t){super.onPlaybackCreated(e,t),this.startConnectionType=sn(),this.playbackIdentity=e.playbackIdentity}onPlaybackEnded(e,t){super.onPlaybackEnded(e,t),this.endConnectionType=sn(),this.playbackStats=e.playbackStats,this.logPlaybackSessionMessage(this.sessionEvents)}logPlaybackSessionMessage(e){const t=this.generatePlaybackSessionMessage(e);this.logger.log(t)}logClientMetadata(e){var t;if(void 0===this.playbackMetadataKeys)return;const n={};for(const[o,i]of Object.entries(null!==(t=null==e?void 0:e.metadata)&&void 0!==t?t:{}))this.playbackMetadataKeys.includes(o)&&(n[o]=i);return Object.entries(n).length>0?n:void 0}generatePlaybackSessionMessage(e){var t,n,o,i,r,a,s,l,c;const u=an(e),d=void 0!==(null===(t=this.playbackStats)||void 0===t?void 0:t.playTime)?Math.round(null===(n=this.playbackStats)||void 0===n?void 0:n.playTime):void 0;return Object.assign(Object.assign({},u),{connection_type_start:this.startConnectionType,connection_type_end:this.endConnectionType,feature_identifier:null!==(r=null===(i=null===(o=this.playbackIdentity)||void 0===o?void 0:o.metadata)||void 0===i?void 0:i[Q])&&void 0!==r?r:"",desktop_ui:null!==(l=null===(s=null===(a=this.playbackIdentity)||void 0===a?void 0:a.metadata)||void 0===s?void 0:s[$])&&void 0!==l?l:"",ms_played_internal:d,is_royalty_media:null===(c=this.playbackIdentity)||void 0===c?void 0:c.isRoyaltyMedia,client_metadata:this.logClientMetadata(this.playbackIdentity)})}}class cn{constructor(e){this.logger=e}onPlaybackCreated({playbackIdentity:e}){this.playbackIdentity=e}onPlaybackError({error:e}){this.logErrorMessage(e)}logErrorMessage(e){var t,n,o;const i={error_domain:e.category,error_code:e.code,error_description:null===(t=e.internalDetails)||void 0===t?void 0:t.toString(),error_extra1:JSON.stringify(Object.assign({severity:e.severity,sdkVersion:Mn,internalPlayerVersion:xn},e.sessionContext)),error_extra2:JSON.stringify(e.clientContext)};this.playbackIdentity&&(i.session_id=this.playbackIdentity.sessionId,i.media_url=this.playbackIdentity.mediaUrl,i.feature_identifier=null===(n=this.playbackIdentity.metadata)||void 0===n?void 0:n[Q],i.desktop_ui=null===(o=this.playbackIdentity.metadata)||void 0===o?void 0:o[$]),this.logger.log(i)}}const un="video-fa",dn="video-akp";function pn(e){return function(e){return e.includes(dn)}(e)?"Akamai":function(e){return e.includes(un)}(e)?"Fastly":function(e){try{return new URL(e).origin}catch(e){return}}(e)}class fn{constructor(e){this.logger=e,this.muxExtraFields={}}onPlaybackCreated({playbackIdentity:e,initialConfiguration:t}){var n,o,i;this.muxExtraFields={view_session_id:null==e?void 0:e.sessionId,video_title:null===(n=e.metadata)||void 0===n?void 0:n.album_title,video_id:null===(o=e.metadata)||void 0===o?void 0:o["media.manifest_id"],video_stream_type:null===(i=e.metadata)||void 0===i?void 0:i.streamingType,custom_1:t.playbackSpeed},this.logger.log(this.muxExtraFields)}onBytesTransferred({uri:e,requestType:t}){if(t!==$e.SEGMENT)return;const n=pn(e);n!==this.muxExtraFields.video_cdn&&(this.muxExtraFields=Object.assign(Object.assign({},this.muxExtraFields),{video_cdn:n}),this.logger.log(this.muxExtraFields))}onPlaybackSpeedChanged({speed:e}){this.muxExtraFields=Object.assign(Object.assign({},this.muxExtraFields),{custom_1:e}),this.logger.log(this.muxExtraFields)}}class hn{constructor(e){this.logger=e}onDownloadEvent(e){switch(e.name){case"created":{const{mediaUri:t}=e;this.ongoingDownload={mediaUri:t,startTime:(new Date).getTime(),connectionTypeStart:sn()};break}case"completed":{const{offlineAsset:t}=e;this.log(t,"completed"),this.ongoingDownload=void 0;break}case"error":{const{partialAsset:t}=e;this.log(t,"error"),this.ongoingDownload=void 0;break}case"cancelled":{const{partialAsset:t}=e;this.log(t,"cancelled"),this.ongoingDownload=void 0;break}}}log(e,t){var n,o,i,r;const a=Math.round((null!==(n=e.size)&&void 0!==n?n:0)/1e3),s=(null===(o=this.ongoingDownload)||void 0===o?void 0:o.startTime)?(new Date).getTime()-(null===(i=this.ongoingDownload)||void 0===i?void 0:i.startTime):0,l=null===(r=this.ongoingDownload)||void 0===r?void 0:r.connectionTypeStart,c=sn(),u={feature_identifier:"offline-coordinator",media_url:e.originalUrl,session_id:e.downloadSessionId,kbytes_downloaded:a,ms_download_time:s,reason_end:t,bitrate:0,connection_type_start:l,connection_type_end:c};this.logger.log(u)}}class mn{constructor(e){this.logger=e}onDownloadEvent(e){if("error"===e.name){const{partialAsset:t,error:n}=e;this.log(t,n)}}log(e,t){var n,o,i,r,a,s;const l={feature_identifier:"offline-coordinator",media_url:e.originalUrl,session_id:null!==(n=e.downloadSessionId)&&void 0!==n?n:"",error_description:null!==(o=t.reason)&&void 0!==o?o:"",error_code:null!==(i=t.code)&&void 0!==i?i:0,error_domain:null!==(r=t.category)&&void 0!==r?r:"",error_extra1:null!==(a=t.error_extra1)&&void 0!==a?a:"",error_extra2:null!==(s=t.error_extra2)&&void 0!==s?s:""};this.logger.log(l)}}var gn;!function(e){e.END_APPLOAD="appload",e.END_UNKNOWN="unknown",e.END_TRACK_DONE="trackdone",e.END_TRACK_ERROR="trackerror",e.END_PLAY="endplay",e.END_UNEXPECTED_EXIT="unexpected-exit",e.END_UNEXPECTED_EXIT_WHILE_PAUSED="unexpected-exit-while-paused"}(gn||(gn={}));var vn=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);it.to?-1:e.to{const i=parseFloat(n)*o/t;return Math.round(e+i)}),0)}const Sn=(e,t)=>{const n=Object.assign({},t);if(n.playing&&void 0!==n.bitrates[n.activeBitrate]){const t=It(n.playingTimestamp/1e3,e.timestamp/1e3);n.bitrates[n.activeBitrate]+=t,n.totalTimePlayedInKnownBitrate+=t,n.timeWeightedBitrate=bn(n.bitrates,n.totalTimePlayedInKnownBitrate)}return n.playing=!1,n.playingTimestamp=0,n},En=(e,t)=>{const n=Object.assign({},t),{timestamp:o}=e;let{data:{format:{totalBitrate:i}}}=e;if(i=null!=i?i:0,n.bitrates[i]||(n.bitrates[i]=0),n.playing&&-1===n.activeBitrate)n.playingTimestamp=o;else if(n.playing&&i!==n.activeBitrate){const e=It(n.playingTimestamp/1e3,o/1e3);n.bitrates[n.activeBitrate]+=e,n.totalTimePlayedInKnownBitrate+=e,n.playingTimestamp=o,n.timeWeightedBitrate=bn(n.bitrates,n.totalTimePlayedInKnownBitrate)}return n.playing||n.bitrates[i]||(n.bitrates[i]=0),n.activeBitrate=i,n},An=(e,t)=>Object.assign(Object.assign({},t),{playing:!0,playingTimestamp:e.timestamp}),Tn=(e,t)=>{if(e.type!==Ie.SEEKING)return t;const n=e;return Object.assign(Object.assign({},t),{playingPosition:n.data.toPosition,playing:!1,playedRanges:[...t.playedRanges,{from:t.playingPosition,to:n.data.fromPosition}]})},Pn=(e,t)=>{if(e.type!==Ie.SEEKING)return t;const n=e,o=1e3*(n.data.fromPosition-t.playingPosition),i=Math.round(Math.max(t.maxContinous,o));return Object.assign(Object.assign({},t),{playing:!1,playingPosition:n.data.toPosition,maxContinous:i})},On=(e,t)=>{if(e.type!==Ie.ENDED)return t;const n=1e3*(e.data.position-t.playingPosition),o=Math.round(Math.max(t.maxContinous,n));return Object.assign(Object.assign({},t),{playing:!1,playingPosition:0,maxContinous:o})},Cn=(e,t)=>{if(e.type!==Ie.ENDED)return t;const n=e,o=[...t.playedRanges,{from:t.playingPosition,to:n.data.position}],i=Math.round(1e3*(r=o).sort(_n).reduce(((e,t,n)=>{if(0===e.length)return e.push(t),e;const o=r[n-1];return o.to===t.from||o.tot.from?(e[n-1]={from:o.from,to:t.to},e):o.toe+t.to-t.from),0));var r;return Object.assign(Object.assign({},t),{playedRanges:o,playing:!1,playingPosition:0,unionPlayed:i})};function kn(e){let t=gn.END_UNEXPECTED_EXIT;const n=rn();for(const o of e)Ot(n.playing)(o)||kt(n.playing)(o)?(n.playing=!0,t=gn.END_UNEXPECTED_EXIT):Rt(n.playing)(o)&&(n.playing=!1,t=gn.END_UNEXPECTED_EXIT_WHILE_PAUSED);const o=function(e){return e.filter(lt).reduce(((e,{data:t})=>({startReason:t.playbackRequest.metadata?Pt(t.playbackRequest.metadata):""})),{startReason:""})}(e);return e.filter(rt).reduce(((e,{data:n})=>({[z.REASON_END]:o.startReason||yn(n.reason,t)})),{[z.REASON_END]:""})}function Rn(e){return e[W.MS_PLAYED]-e[W.MS_PLAYED_VIDEO_DISABLED]}function Ln(e){const t=an(e),n=Object.assign(Object.assign({},t),{[z.MS_PLAYED_BACKGROUND]:0,[z.FULL_SCREEN]:0,[z.PREFETCHED_BYTES]:0,[z.PREFETCHED_BYTES_LOADED]:-1,[z.REFERRER_VENDOR]:"com.spotify",[z.SHUFFLE]:!1,[z.LIVE]:!1,[z.SEQUENCE_NUMBER]:-1,[z.SEQUENCE_ID]:"",[z.CONNECTION_TYPE_START]:"",[z.CONNECTION_TYPE_END]:"",[z.STREAMING_RULE]:"",[z.INCOGNITO_MODE]:!1,[z.INTERACTION_ID]:void 0,[z.PAGE_INSTANCE_ID]:void 0,[z.MS_PLAYED_VIDEO]:Rn(t),[z.MS_NOMINAL_PLAYED]:t[W.MS_PLAYED_NOMINAL],[z.N_SEEKFWD]:t[W.N_SEEKFORWARD],[z.VIDEO_SESSION_ID]:t[W.SESSION_ID],[z.MS_TOTAL_EST]:t[W.MS_DURATION],[z.MS_MANIFEST_LATENCY]:t[W.MS_MANIFEST_LOAD_TIME],[z.START_OFFSET_MS]:t[W.MS_START_POSITION],[z.MS_SEEK_REBUFFERING]:t[W.MS_BUFFERING_SEEK],[z.MAX_MS_SEEK_REBUFFERING]:t[W.MS_BUFFERING_SEEK_LONGEST],[z.MS_STALLED]:t[W.MS_BUFFERING_STALL],[z.MAX_MS_STALLED]:t[W.MS_BUFFERING_STALL_LONGEST],[z.KEY_SYSTEM]:t[W.ENCRYPTION_TYPE],[z.MS_KEY_LATENCY]:t[W.MS_ENCRYPTION_LOAD_TIME],[z.MS_LATENCY]:t[W.MS_START_TIME],[z.TOTAL_BYTES]:Math.round(1e3*t[W.KBYTES_DOWNLOADED])});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){return e.filter(_t).reduce(((e,{data:t})=>t.fromPosition>t.toPosition?Object.assign(Object.assign({},e),{[z.MS_SEEKBACK]:Math.round(e[z.MS_SEEKBACK]+1e3*(t.fromPosition-t.toPosition))}):t.fromPosition<=t.toPosition?Object.assign(Object.assign({},e),{[z.MS_SEEKFWD]:Math.round(e[z.MS_SEEKFWD]+1e3*(t.toPosition-t.fromPosition))}):e),{[z.MS_SEEKBACK]:0,[z.MS_SEEKFWD]:0})}(e)),function(e){const t=e.filter(ct).reduce(((e,{data:t})=>ot(t.playbackIdentity.metadata||{})),{}),n=se,o=t[n],i=vn(t,["symbol"==typeof n?n:n+""]),r=Object.assign({},i);return void 0!==o&&(r[z.SHUFFLE]="true"===o),r}(e)),function(e){var t,n;let o,i;for(const r of e)if(ct(r)&&(o=null!==(n=ot(null!==(t=r.data.playbackIdentity.metadata)&&void 0!==t?t:{})[ue])&&void 0!==n?n:void 0),ut(r)){void 0!==o&&o>0&&(i=Math.round(r.timestamp-o));break}return null!=i||(i=tt),{[z.UI_LATENCY]:i}}(e)),kn(e)),function(e){let t=rn();for(const n of e)!0===Ot(t.playing)(n)?t=Lt(n,t):!0===Ct(t.playing)(n)?t=Tn(n,t):!0===kt(t.playing)(n)&&(t=Cn(n,t));return{[z.UNION_PLAYED]:t.unionPlayed}}(e)),function(e){let t=rn();for(const n of e)!0===Ot(t.playing)(n)?t=Lt(n,t):!0===Ct(t.playing)(n)?t=Pn(n,t):kt(t.playing)(n)&&(t=On(n,t));return{[z.MAX_CONTINOUS]:t.maxContinous}}(e)),function(e){let t={activeBitrate:-1,currentPlayingBitrate:0,playing:!1,playingTimestamp:0,bitrates:{},totalTimePlayedInKnownBitrate:0,timeWeightedBitrate:0};for(const n of e)ft(n)?t=En(n,t):!0===Ot(t.playing)(n)?t=An(n,t):!0===Rt(t.playing)(n)&&(t=Sn(n,t));return{[z.TIME_WEIGHTED_BITRATE]:t.timeWeightedBitrate}}(e)),function(e){return e.filter(ct).reduce(((e,{timestamp:t})=>({[z.LOCAL_TIME_MS]:Math.round(t)})),{[z.LOCAL_TIME_MS]:0})}(e)),function(e){return e.filter(pt).reduce(((e,{data:t})=>({[z.AUDIOCODEC]:t.format.audioCodec})),{[z.AUDIOCODEC]:""})}(e)),function(e){return e.filter(ft).reduce(((e,{data:t})=>({[z.VIDEOCODEC]:t.format.videoCodec})),{[z.VIDEOCODEC]:""})}(e))}var In=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};class Nn extends et{constructor(e,t,n){super(),this.endVideo=e,this.productStateProvider=t,this.logError=n,this.startConnectionType="unknown",this.endConnectionType="unknown",this.streamingRules=this.productStateProvider.streamingRules()}onPlaybackCreated(e,t){const n=Object.create(null,{onPlaybackCreated:{get:()=>super.onPlaybackCreated}});var o,i,r;return In(this,void 0,void 0,(function*(){n.onPlaybackCreated.call(this,e,t),this.incognito=this.productStateProvider.incognito||!1,this.interaction_id=null===(o=e.playbackIdentity.metadata)||void 0===o?void 0:o[z.INTERACTION_ID],this.page_instance_id=null===(i=e.playbackIdentity.metadata)||void 0===i?void 0:i[z.PAGE_INSTANCE_ID],this.streamingRules=(null===(r=e.playbackIdentity.metadata)||void 0===r?void 0:r.endvideo_streaming_rule_override)||this.streamingRules,this.startConnectionType=sn();!(e.playbackIdentity.metadata&&e.playbackIdentity.metadata[fe+Z]===gn.END_APPLOAD)&&(yield this.updatePendingEndVideo(e.initialConfiguration.position,t)),this.timeObservable=e.timeObservable,this.periodicObserverToken=e.timeObservable.addObserverForPeriodicEvents(15,(e=>this.updatePendingEndVideo(e,t)))}))}onReady(e,t){const n=Object.create(null,{onReady:{get:()=>super.onReady}});return In(this,void 0,void 0,(function*(){n.onReady.call(this,e,t),yield this.updatePendingEndVideo(e.position,t)}))}onPaused(e,t){const n=Object.create(null,{onPaused:{get:()=>super.onPaused}});return In(this,void 0,void 0,(function*(){n.onPaused.call(this,e,t),yield this.updatePendingEndVideo(e.position,t)}))}onResumed(e,t){const n=Object.create(null,{onResumed:{get:()=>super.onResumed}});return In(this,void 0,void 0,(function*(){n.onResumed.call(this,e,t),yield this.updatePendingEndVideo(e.position,t)}))}onPlaybackEnded(e,t){const n=Object.create(null,{onPlaybackEnded:{get:()=>super.onPlaybackEnded}});return In(this,void 0,void 0,(function*(){n.onPlaybackEnded.call(this,e,t),this.endConnectionType=sn(),yield this.createAndUpdateMessage(this.sessionEvents),this.timeObservable&&this.periodicObserverToken&&this.timeObservable.removePeriodicObserver(this.periodicObserverToken),this.sequenceNumber&&this.endVideo.send(this.sequenceNumber)}))}createEndVideo(){return new Promise(((e,t)=>{this.endVideo.create(((n,o,i)=>{n&&(this.sequenceNumber=void 0,this.sequenceId=void 0,t(n)),this.sequenceNumber=o,this.sequenceId=i,e({sequenceNumber:o,sequenceId:i})}))}))}updateEndVideo(e){return new Promise(((t,n)=>{this.endVideo.update(this.sequenceNumber,e,(o=>{o&&(this.logError&&this.logError("logEndVideo, failed update:",o),n(o)),t(e)}))}))}endVideoFields(){return{[z.SEQUENCE_NUMBER]:this.sequenceNumber,[z.SEQUENCE_ID]:this.sequenceId,[z.CONNECTION_TYPE_START]:this.startConnectionType,[z.CONNECTION_TYPE_END]:this.endConnectionType,[z.STREAMING_RULE]:this.streamingRules,[z.INCOGNITO_MODE]:this.incognito,[z.INTERACTION_ID]:this.interaction_id,[z.PAGE_INSTANCE_ID]:this.page_instance_id}}shouldLogEndVideo(e,t){return!(t===gn.END_APPLOAD&&e<100)}createAndUpdateMessage(e){return In(this,void 0,void 0,(function*(){const t=Ln(e);if(!this.shouldLogEndVideo(t[z.MS_PLAYED],t[z.REASON_START]))return;this.sequenceNumber||(yield this.createEndVideo());const n=Object.assign(Object.assign({},t),this.endVideoFields());yield this.updateEndVideo(n)}))}updatePendingEndVideo(e,t){return In(this,void 0,void 0,(function*(){const n={timestamp:t,type:Ie.ENDED,data:{reason:Le.SHUTDOWN,position:e}};yield this.createAndUpdateMessage([...this.sessionEvents,n])}))}}const wn=n(86477),Dn=i().polyfill,Mn=wn.version,xn=i().Player.version},47678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionServiceClient=void 0;const o=n(33892),i=n(94412),r=n(22497),a=n(56666),s=n(766),l=n(7625),c=n(87315),u=n(66072),d=n(97233),p=n(60778),f=n(72159),h=n(60151),m=n(45246),g=n(62571),v=n(4194),y=n(95123),_=n(98317),b=n(75879),S=n(94503);class E{transport;options;constructor(e,t={}){this.transport=e,this.options=t}remove(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Remove",r=i.CollectionAddRemoveItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CollectionAddRemoveItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}add(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Add",r=i.CollectionAddRemoveItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CollectionAddRemoveItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getBans(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetBans",i=r.CollectionGetBansRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.CollectionGetBansResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamBans(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamBans",a=r.CollectionGetBansRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.CollectionGetBansResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}ban(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Ban",i=a.CollectionBanRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.CollectionBanResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}unban(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Unban",i=a.CollectionBanRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.CollectionBanResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getArtistView(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetArtistView",i=s.CollectionGetArtistViewRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.CollectionGetArtistViewResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamArtistView(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamArtistView",r=s.CollectionGetArtistViewRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=s.CollectionGetArtistViewResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getAlbumView(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetAlbumView",i=l.CollectionGetAlbumViewRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.CollectionGetAlbumViewResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamAlbumView(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamAlbumView",r=l.CollectionGetAlbumViewRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=l.CollectionGetAlbumViewResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getTrackListMetadata(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetTrackListMetadata",i=c.CollectionGetTrackListMetadataRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=c.CollectionGetTrackListMetadataResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamTrackListMetadata(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamTrackListMetadata",r=c.CollectionGetTrackListMetadataRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=c.CollectionGetTrackListMetadataResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}streamChanges(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamChanges",r=u.CollectionChangesRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=u.CollectionChangesResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getTrackList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetTrackList",i=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamTrackList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamTrackList",r=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getAlbumTrackList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetAlbumTrackList",i=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamAlbumTrackList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamAlbumTrackList",r=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getArtistTrackList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetArtistTrackList",i=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamArtistTrackList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamArtistTrackList",r=d.CollectionGetTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.CollectionGetTrackListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}playTracks(e){const t="spotify.collection_esperanto.proto.CollectionService",n="PlayTracks",i=p.CollectionPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.CollectionPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}playArtist(e){const t="spotify.collection_esperanto.proto.CollectionService",n="PlayArtist",i=p.CollectionPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.CollectionPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}playAlbum(e){const t="spotify.collection_esperanto.proto.CollectionService",n="PlayAlbum",i=p.CollectionPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.CollectionPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}tracksOfflineStatus(e){const t="spotify.collection_esperanto.proto.CollectionService",n="TracksOfflineStatus",i=f.CollectionTrackListOfflineStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionTrackListOfflineStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}offlineTracks(e){const t="spotify.collection_esperanto.proto.CollectionService",n="OfflineTracks",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeOfflineTracks(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveOfflineTracks",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}offlineAlbum(e){const t="spotify.collection_esperanto.proto.CollectionService",n="OfflineAlbum",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeOfflineAlbum(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveOfflineAlbum",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}offlineArtist(e){const t="spotify.collection_esperanto.proto.CollectionService",n="OfflineArtist",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeOfflineArtist(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveOfflineArtist",i=f.CollectionOfflineTrackListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.CollectionOfflineTrackListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}decorate(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Decorate",i=h.CollectionDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=h.CollectionDecorateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamDecorate(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamDecorate",r=h.CollectionDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=h.CollectionDecorateResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}contains(e){const t="spotify.collection_esperanto.proto.CollectionService",n="Contains",i=m.CollectionContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=m.CollectionContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamContains(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamContains",r=m.CollectionContainsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=m.CollectionContainsResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getShowList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetShowList",i=g.CollectionGetShowListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=g.CollectionGetShowListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamShowList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamShowList",r=g.CollectionGetShowListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=g.CollectionGetShowListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getEpisodeList(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetEpisodeList",i=v.CollectionGetEpisodeListRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=v.CollectionGetEpisodeListResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamEpisodeList(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamEpisodeList",r=v.CollectionGetEpisodeListRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=v.CollectionGetEpisodeListResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getUnplayedEpisodes(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetUnplayedEpisodes",i=y.CollectionGetUnplayedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=y.CollectionGetUnplayedEpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamUnplayedEpisodes(e,t){const n="spotify.collection_esperanto.proto.CollectionService",i="StreamUnplayedEpisodes",r=y.CollectionGetUnplayedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=y.CollectionGetUnplayedEpisodesResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getResumePoints(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetResumePoints",i=_.CollectionGetResumePointsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=_.CollectionGetResumePointsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getBucketSyncStatus(e){const t="spotify.collection_esperanto.proto.CollectionService",n="GetBucketSyncStatus",i=b.CollectionGetBucketSyncStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=b.CollectionGetBucketSyncStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}addUnplayed(e){const t="spotify.collection_esperanto.proto.CollectionService",n="AddUnplayed",i=S.CollectionUnplayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=S.CollectionUnplayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeUnplayed(e){const t="spotify.collection_esperanto.proto.CollectionService",n="RemoveUnplayed",i=S.CollectionUnplayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=S.CollectionUnplayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.collection_esperanto.proto.CollectionService";static DECODERS={Remove:{request:i.CollectionAddRemoveItemsRequest.decode,response:i.CollectionAddRemoveItemsResponse.decode},Add:{request:i.CollectionAddRemoveItemsRequest.decode,response:i.CollectionAddRemoveItemsResponse.decode},GetBans:{request:r.CollectionGetBansRequest.decode,response:r.CollectionGetBansResponse.decode},StreamBans:{request:r.CollectionGetBansRequest.decode,response:r.CollectionGetBansResponse.decode},Ban:{request:a.CollectionBanRequest.decode,response:a.CollectionBanResponse.decode},Unban:{request:a.CollectionBanRequest.decode,response:a.CollectionBanResponse.decode},GetArtistView:{request:s.CollectionGetArtistViewRequest.decode,response:s.CollectionGetArtistViewResponse.decode},StreamArtistView:{request:s.CollectionGetArtistViewRequest.decode,response:s.CollectionGetArtistViewResponse.decode},GetAlbumView:{request:l.CollectionGetAlbumViewRequest.decode,response:l.CollectionGetAlbumViewResponse.decode},StreamAlbumView:{request:l.CollectionGetAlbumViewRequest.decode,response:l.CollectionGetAlbumViewResponse.decode},GetTrackListMetadata:{request:c.CollectionGetTrackListMetadataRequest.decode,response:c.CollectionGetTrackListMetadataResponse.decode},StreamTrackListMetadata:{request:c.CollectionGetTrackListMetadataRequest.decode,response:c.CollectionGetTrackListMetadataResponse.decode},StreamChanges:{request:u.CollectionChangesRequest.decode,response:u.CollectionChangesResponse.decode},GetTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},StreamTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},GetAlbumTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},StreamAlbumTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},GetArtistTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},StreamArtistTrackList:{request:d.CollectionGetTrackListRequest.decode,response:d.CollectionGetTrackListResponse.decode},PlayTracks:{request:p.CollectionPlayRequest.decode,response:p.CollectionPlayResponse.decode},PlayArtist:{request:p.CollectionPlayRequest.decode,response:p.CollectionPlayResponse.decode},PlayAlbum:{request:p.CollectionPlayRequest.decode,response:p.CollectionPlayResponse.decode},TracksOfflineStatus:{request:f.CollectionTrackListOfflineStatusRequest.decode,response:f.CollectionTrackListOfflineStatusResponse.decode},OfflineTracks:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},RemoveOfflineTracks:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},OfflineAlbum:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},RemoveOfflineAlbum:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},OfflineArtist:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},RemoveOfflineArtist:{request:f.CollectionOfflineTrackListRequest.decode,response:f.CollectionOfflineTrackListResponse.decode},Decorate:{request:h.CollectionDecorateRequest.decode,response:h.CollectionDecorateResponse.decode},StreamDecorate:{request:h.CollectionDecorateRequest.decode,response:h.CollectionDecorateResponse.decode},Contains:{request:m.CollectionContainsRequest.decode,response:m.CollectionContainsResponse.decode},StreamContains:{request:m.CollectionContainsRequest.decode,response:m.CollectionContainsResponse.decode},GetShowList:{request:g.CollectionGetShowListRequest.decode,response:g.CollectionGetShowListResponse.decode},StreamShowList:{request:g.CollectionGetShowListRequest.decode,response:g.CollectionGetShowListResponse.decode},GetEpisodeList:{request:v.CollectionGetEpisodeListRequest.decode,response:v.CollectionGetEpisodeListResponse.decode},StreamEpisodeList:{request:v.CollectionGetEpisodeListRequest.decode,response:v.CollectionGetEpisodeListResponse.decode},GetUnplayedEpisodes:{request:y.CollectionGetUnplayedEpisodesRequest.decode,response:y.CollectionGetUnplayedEpisodesResponse.decode},StreamUnplayedEpisodes:{request:y.CollectionGetUnplayedEpisodesRequest.decode,response:y.CollectionGetUnplayedEpisodesResponse.decode},GetResumePoints:{request:_.CollectionGetResumePointsRequest.decode,response:_.CollectionGetResumePointsResponse.decode},GetBucketSyncStatus:{request:b.CollectionGetBucketSyncStatusRequest.decode,response:b.CollectionGetBucketSyncStatusResponse.decode},AddUnplayed:{request:S.CollectionUnplayedRequest.decode,response:S.CollectionUnplayedResponse.decode},RemoveUnplayed:{request:S.CollectionUnplayedRequest.decode,response:S.CollectionUnplayedResponse.decode}}}t.CollectionServiceClient=E},66494:(e,t,n)=>{"use strict";t.Ul=t._X=t.rI=t.ow=t.v0=t.H8=void 0;var o=n(94412);var i=n(22497);var r=n(56666);var a=n(766);var s=n(7625);Object.defineProperty(t,"H8",{enumerable:!0,get:function(){return s.CollectionGetAlbumViewRequest}});var l=n(87315);Object.defineProperty(t,"v0",{enumerable:!0,get:function(){return l.CollectionGetTrackListMetadataRequest}});var c=n(66072);var u=n(97233);Object.defineProperty(t,"ow",{enumerable:!0,get:function(){return u.CollectionGetTrackListRequest}});var d=n(60778);Object.defineProperty(t,"rI",{enumerable:!0,get:function(){return d.CollectionPlayRequest}});var p=n(72159);var f=n(60151);var h=n(45246);Object.defineProperty(t,"_X",{enumerable:!0,get:function(){return h.CollectionContainsRequest}});var m=n(62571);var g=n(4194);var v=n(95123);var y=n(98317);var _=n(47678);Object.defineProperty(t,"Ul",{enumerable:!0,get:function(){return _.CollectionServiceClient}})},61013:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumCollectionState={encode:(e,t=r.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),0!==e.numTracksInCollection&&t.uint32(16).uint32(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:"",numTracksInCollection:0,complete:!1};for(;n.pos>>3){case 1:i.collectionLink=n.string();break;case 2:i.numTracksInCollection=n.uint32();break;case 3:i.complete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionLink:a(e.collectionLink)?String(e.collectionLink):"",numTracksInCollection:a(e.numTracksInCollection)?Number(e.numTracksInCollection):0,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=Math.round(e.numTracksInCollection)),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:"",numTracksInCollection:0,complete:!1};return t.collectionLink=e.collectionLink??"",t.numTracksInCollection=e.numTracksInCollection??0,t.complete=e.complete??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},37709:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistCollectionState={encode:(e,t=r.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),!0===e.followed&&t.uint32(16).bool(e.followed),0!==e.numTracksInCollection&&t.uint32(24).uint32(e.numTracksInCollection),0!==e.numAlbumsInCollection&&t.uint32(32).uint32(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:i.collectionLink=n.string();break;case 2:i.followed=n.bool();break;case 3:i.numTracksInCollection=n.uint32();break;case 4:i.numAlbumsInCollection=n.uint32();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)?String(e.collectionLink):"",followed:!!a(e.followed)&&Boolean(e.followed),numTracksInCollection:a(e.numTracksInCollection)?Number(e.numTracksInCollection):0,numAlbumsInCollection:a(e.numAlbumsInCollection)?Number(e.numAlbumsInCollection):0,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.followed&&(t.followed=e.followed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=Math.round(e.numAlbumsInCollection)),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??"",t.followed=e.followed??!1,t.numTracksInCollection=e.numTracksInCollection??0,t.numAlbumsInCollection=e.numAlbumsInCollection??0,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},58405:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isNew:!1,isInListenLater:!1};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=>({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){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},39836:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto",t.ShowCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},59649:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackCollectionState={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94412:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionAddRemoveItemsResponse=t.CollectionAddRemoveItemsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionAddRemoveItemsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[]};for(;n.pos>>3==1)i.uri.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.CollectionAddRemoveItemsResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?a.Status.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},56666:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionBanResponse=t.CollectionBanRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionBanRequest={encode(e,t=r.default.Writer.create()){""!==e.contextSource&&t.uint32(10).string(e.contextSource);for(const n of e.uri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={contextSource:"",uri:[]};for(;n.pos>>3){case 1:i.contextSource=n.string();break;case 2:i.uri.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({contextSource:s(e.contextSource)?String(e.contextSource):"",uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.contextSource&&(t.contextSource=e.contextSource),e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={contextSource:"",uri:[]};return t.contextSource=e.contextSource??"",t.uri=e.uri?.map((e=>e))||[],t}},t.CollectionBanResponse={encode(e,t=r.default.Writer.create()){void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.success)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,success:[]};for(;n.pos>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({status:s(e.status)?a.Status.fromJSON(e.status):void 0,success:Array.isArray(e?.success)?e.success.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),e.success?t.success=e.success.map((e=>e)):t.success=[],t},fromPartial(e){const t={status:void 0,success:[]};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.success=e.success?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66072:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionChangesResponse=t.CollectionChangesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionChangesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.CollectionChangesResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?a.Status.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},45246:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionContainsResponse=t.CollectionContainsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionContainsRequest={encode(e,t=r.default.Writer.create()){0!==e.updateThrottling&&t.uint32(8).uint32(e.updateThrottling);for(const n of e.uri)t.uint32(18).string(n);return""!==e.contextUri&&t.uint32(26).string(e.contextUri),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={updateThrottling:0,uri:[],contextUri:""};for(;n.pos>>3){case 1:i.updateThrottling=n.uint32();break;case 2:i.uri.push(n.string());break;case 3:i.contextUri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0,uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:s(e.contextUri)?String(e.contextUri):""}),toJSON(e){const t={};return void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],void 0!==e.contextUri&&(t.contextUri=e.contextUri),t},fromPartial(e){const t={updateThrottling:0,uri:[],contextUri:""};return t.updateThrottling=e.updateThrottling??0,t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t}},t.CollectionContainsResponse={encode(e,t=r.default.Writer.create()){void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t.uint32(18).fork();for(const n of e.found)t.bool(n);t.ldelim(),t.uint32(26).fork();for(const n of e.banFound)t.bool(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,found:[],banFound:[]};for(;n.pos>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({status:s(e.status)?a.Status.fromJSON(e.status):void 0,found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[],banFound:Array.isArray(e?.banFound)?e.banFound.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),e.found?t.found=e.found.map((e=>e)):t.found=[],e.banFound?t.banFound=e.banFound.map((e=>e)):t.banFound=[],t},fromPartial(e){const t={status:void 0,found:[],banFound:[]};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.found=e.found?.map((e=>e))||[],t.banFound=e.banFound?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},60151:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionDecorateResponse=t.CollectionDecorateRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(62908),l=n(96859);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionDecorateRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return""!==e.contextUri&&t.uint32(18).string(e.contextUri),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),void 0!==e.artistPolicy&&a.CollectionArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&a.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(50).fork()).ldelim(),void 0!==e.showPolicy&&a.CollectionShowDecorationPolicy.encode(e.showPolicy,t.uint32(58).fork()).ldelim(),void 0!==e.episodePolicy&&a.CollectionEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(66).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[],contextUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0};for(;n.pos>>3){case 1:i.uri.push(n.string());break;case 2:i.contextUri=n.string();break;case 3:i.updateThrottling=n.uint32();break;case 4:i.artistPolicy=a.CollectionArtistDecorationPolicy.decode(n,n.uint32());break;case 5:i.albumPolicy=a.CollectionAlbumDecorationPolicy.decode(n,n.uint32());break;case 6:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;case 7:i.showPolicy=a.CollectionShowDecorationPolicy.decode(n,n.uint32());break;case 8:i.episodePolicy=a.CollectionEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:c(e.contextUri)?String(e.contextUri):"",updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,artistPolicy:c(e.artistPolicy)?a.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,albumPolicy:c(e.albumPolicy)?a.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,showPolicy:c(e.showPolicy)?a.CollectionShowDecorationPolicy.fromJSON(e.showPolicy):void 0,episodePolicy:c(e.episodePolicy)?a.CollectionEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],void 0!==e.contextUri&&(t.contextUri=e.contextUri),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?a.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.CollectionShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?a.CollectionEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),t},fromPartial(e){const t={uri:[],contextUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,episodePolicy:void 0};return t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t.updateThrottling=e.updateThrottling??0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?a.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.CollectionShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?a.CollectionEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t}},t.CollectionDecorateResponse={encode(e,t=r.default.Writer.create()){void 0!==e.status&&s.Status.encode(e.status,t.uint32(10).fork()).ldelim();for(const n of e.show)l.CollectionShow.encode(n,t.uint32(18).fork()).ldelim();for(const n of e.episode)l.CollectionEpisode.encode(n,t.uint32(26).fork()).ldelim();for(const n of e.album)l.CollectionAlbum.encode(n,t.uint32(34).fork()).ldelim();for(const n of e.artist)l.CollectionArtist.encode(n,t.uint32(42).fork()).ldelim();for(const n of e.track)l.CollectionTrack.encode(n,t.uint32(50).fork()).ldelim();return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,show:[],episode:[],album:[],artist:[],track:[]};for(;n.pos>>3){case 1:i.status=s.Status.decode(n,n.uint32());break;case 2:i.show.push(l.CollectionShow.decode(n,n.uint32()));break;case 3:i.episode.push(l.CollectionEpisode.decode(n,n.uint32()));break;case 4:i.album.push(l.CollectionAlbum.decode(n,n.uint32()));break;case 5:i.artist.push(l.CollectionArtist.decode(n,n.uint32()));break;case 6:i.track.push(l.CollectionTrack.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:c(e.status)?s.Status.fromJSON(e.status):void 0,show:Array.isArray(e?.show)?e.show.map((e=>l.CollectionShow.fromJSON(e))):[],episode:Array.isArray(e?.episode)?e.episode.map((e=>l.CollectionEpisode.fromJSON(e))):[],album:Array.isArray(e?.album)?e.album.map((e=>l.CollectionAlbum.fromJSON(e))):[],artist:Array.isArray(e?.artist)?e.artist.map((e=>l.CollectionArtist.fromJSON(e))):[],track:Array.isArray(e?.track)?e.track.map((e=>l.CollectionTrack.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?s.Status.toJSON(e.status):void 0),e.show?t.show=e.show.map((e=>e?l.CollectionShow.toJSON(e):void 0)):t.show=[],e.episode?t.episode=e.episode.map((e=>e?l.CollectionEpisode.toJSON(e):void 0)):t.episode=[],e.album?t.album=e.album.map((e=>e?l.CollectionAlbum.toJSON(e):void 0)):t.album=[],e.artist?t.artist=e.artist.map((e=>e?l.CollectionArtist.toJSON(e):void 0)):t.artist=[],e.track?t.track=e.track.map((e=>e?l.CollectionTrack.toJSON(e):void 0)):t.track=[],t},fromPartial(e){const t={status:void 0,show:[],episode:[],album:[],artist:[],track:[]};return t.status=void 0!==e.status&&null!==e.status?s.Status.fromPartial(e.status):void 0,t.show=e.show?.map((e=>l.CollectionShow.fromPartial(e)))||[],t.episode=e.episode?.map((e=>l.CollectionEpisode.fromPartial(e)))||[],t.album=e.album?.map((e=>l.CollectionAlbum.fromPartial(e)))||[],t.artist=e.artist?.map((e=>l.CollectionArtist.fromPartial(e)))||[],t.track=e.track?.map((e=>l.CollectionTrack.fromPartial(e)))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},38518:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionEpisodeDecorationPolicy=t.CollectionShowDecorationPolicy=t.CollectionTrackDecorationPolicy=t.CollectionAlbumDecorationPolicy=t.CollectionArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(39974),s=n(71072),l=n(82817),c=n(61473),u=n(17653);function d(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionArtistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.collectionPolicy&&a.ArtistCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&a.ArtistSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.artistPolicy&&a.ArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,decorated:!1};for(;n.pos>>3){case 1:i.collectionPolicy=a.ArtistCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:i.syncPolicy=a.ArtistSyncDecorationPolicy.decode(n,n.uint32());break;case 3:i.artistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 4:i.decorated=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?a.ArtistCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?a.ArtistSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,artistPolicy:d(e.artistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?a.ArtistCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?a.ArtistSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.ArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.decorated&&(t.decorated=e.decorated),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,decorated:!1};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?a.ArtistCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?a.ArtistSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.decorated=e.decorated??!1,t}},t.CollectionAlbumDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(!0===e.decorated&&n.uint32(8).bool(e.decorated),!0===e.albumType&&n.uint32(16).bool(e.albumType),void 0!==e.artistPolicy&&t.CollectionArtistDecorationPolicy.encode(e.artistPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.artistsPolicy&&t.CollectionArtistDecorationPolicy.encode(e.artistsPolicy,n.uint32(34).fork()).ldelim(),void 0!==e.collectionPolicy&&s.AlbumCollectionDecorationPolicy.encode(e.collectionPolicy,n.uint32(42).fork()).ldelim(),void 0!==e.syncPolicy&&s.AlbumSyncDecorationPolicy.encode(e.syncPolicy,n.uint32(50).fork()).ldelim(),void 0!==e.albumPolicy&&s.AlbumDecorationPolicy.encode(e.albumPolicy,n.uint32(58).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={decorated:!1,albumType:!1,artistPolicy:void 0,artistsPolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0};for(;o.pos>>3){case 1:a.decorated=o.bool();break;case 2:a.albumType=o.bool();break;case 3:a.artistPolicy=t.CollectionArtistDecorationPolicy.decode(o,o.uint32());break;case 4:a.artistsPolicy=t.CollectionArtistDecorationPolicy.decode(o,o.uint32());break;case 5:a.collectionPolicy=s.AlbumCollectionDecorationPolicy.decode(o,o.uint32());break;case 6:a.syncPolicy=s.AlbumSyncDecorationPolicy.decode(o,o.uint32());break;case 7:a.albumPolicy=s.AlbumDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({decorated:!!d(e.decorated)&&Boolean(e.decorated),albumType:!!d(e.albumType)&&Boolean(e.albumType),artistPolicy:d(e.artistPolicy)?t.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,artistsPolicy:d(e.artistsPolicy)?t.CollectionArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0,collectionPolicy:d(e.collectionPolicy)?s.AlbumCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?s.AlbumSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,albumPolicy:d(e.albumPolicy)?s.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0}),toJSON(e){const n={};return void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.albumType&&(n.albumType=e.albumType),void 0!==e.artistPolicy&&(n.artistPolicy=e.artistPolicy?t.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.artistsPolicy&&(n.artistsPolicy=e.artistsPolicy?t.CollectionArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),void 0!==e.collectionPolicy&&(n.collectionPolicy=e.collectionPolicy?s.AlbumCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(n.syncPolicy=e.syncPolicy?s.AlbumSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.albumPolicy&&(n.albumPolicy=e.albumPolicy?s.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),n},fromPartial(e){const n={decorated:!1,albumType:!1,artistPolicy:void 0,artistsPolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0};return n.decorated=e.decorated??!1,n.albumType=e.albumType??!1,n.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?t.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,n.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?t.CollectionArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,n.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?s.AlbumCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,n.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?s.AlbumSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,n.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?s.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,n}},t.CollectionTrackDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.collectionPolicy&&l.TrackCollectionDecorationPolicy.encode(e.collectionPolicy,n.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&l.TrackSyncDecorationPolicy.encode(e.syncPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.trackPolicy&&l.TrackDecorationPolicy.encode(e.trackPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&l.TrackPlayedStateDecorationPolicy.encode(e.playedStatePolicy,n.uint32(34).fork()).ldelim(),void 0!==e.albumPolicy&&t.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,n.uint32(42).fork()).ldelim(),void 0!==e.artistPolicy&&a.ArtistDecorationPolicy.encode(e.artistPolicy,n.uint32(50).fork()).ldelim(),!0===e.decorated&&n.uint32(56).bool(e.decorated),void 0!==e.artistCollectionPolicy&&a.ArtistCollectionDecorationPolicy.encode(e.artistCollectionPolicy,n.uint32(66).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,albumPolicy:void 0,artistPolicy:void 0,decorated:!1,artistCollectionPolicy:void 0};for(;o.pos>>3){case 1:s.collectionPolicy=l.TrackCollectionDecorationPolicy.decode(o,o.uint32());break;case 2:s.syncPolicy=l.TrackSyncDecorationPolicy.decode(o,o.uint32());break;case 3:s.trackPolicy=l.TrackDecorationPolicy.decode(o,o.uint32());break;case 4:s.playedStatePolicy=l.TrackPlayedStateDecorationPolicy.decode(o,o.uint32());break;case 5:s.albumPolicy=t.CollectionAlbumDecorationPolicy.decode(o,o.uint32());break;case 6:s.artistPolicy=a.ArtistDecorationPolicy.decode(o,o.uint32());break;case 7:s.decorated=o.bool();break;case 8:s.artistCollectionPolicy=a.ArtistCollectionDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?l.TrackCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?l.TrackSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,trackPolicy:d(e.trackPolicy)?l.TrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?l.TrackPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,albumPolicy:d(e.albumPolicy)?t.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,artistPolicy:d(e.artistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated),artistCollectionPolicy:d(e.artistCollectionPolicy)?a.ArtistCollectionDecorationPolicy.fromJSON(e.artistCollectionPolicy):void 0}),toJSON(e){const n={};return void 0!==e.collectionPolicy&&(n.collectionPolicy=e.collectionPolicy?l.TrackCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(n.syncPolicy=e.syncPolicy?l.TrackSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.trackPolicy&&(n.trackPolicy=e.trackPolicy?l.TrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.playedStatePolicy&&(n.playedStatePolicy=e.playedStatePolicy?l.TrackPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.albumPolicy&&(n.albumPolicy=e.albumPolicy?t.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.artistPolicy&&(n.artistPolicy=e.artistPolicy?a.ArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.artistCollectionPolicy&&(n.artistCollectionPolicy=e.artistCollectionPolicy?a.ArtistCollectionDecorationPolicy.toJSON(e.artistCollectionPolicy):void 0),n},fromPartial(e){const n={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,albumPolicy:void 0,artistPolicy:void 0,decorated:!1,artistCollectionPolicy:void 0};return n.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?l.TrackCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,n.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?l.TrackSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,n.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?l.TrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,n.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?l.TrackPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,n.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?t.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,n.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,n.decorated=e.decorated??!1,n.artistCollectionPolicy=void 0!==e.artistCollectionPolicy&&null!==e.artistCollectionPolicy?a.ArtistCollectionDecorationPolicy.fromPartial(e.artistCollectionPolicy):void 0,n}},t.CollectionShowDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showPolicy&&c.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.playedStatePolicy&&c.ShowPlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(18).fork()).ldelim(),void 0!==e.collectionPolicy&&c.ShowCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(26).fork()).ldelim(),!0===e.decorated&&t.uint32(32).bool(e.decorated),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showPolicy:void 0,playedStatePolicy:void 0,collectionPolicy:void 0,decorated:!1};for(;n.pos>>3){case 1:i.showPolicy=c.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:i.playedStatePolicy=c.ShowPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 3:i.collectionPolicy=c.ShowCollectionDecorationPolicy.decode(n,n.uint32());break;case 4:i.decorated=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showPolicy:d(e.showPolicy)?c.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?c.ShowPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,collectionPolicy:d(e.collectionPolicy)?c.ShowCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?c.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?c.ShowCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.decorated&&(t.decorated=e.decorated),t},fromPartial(e){const t={showPolicy:void 0,playedStatePolicy:void 0,collectionPolicy:void 0,decorated:!1};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?c.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?c.ShowCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.decorated=e.decorated??!1,t}},t.CollectionEpisodeDecorationPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.episodePolicy&&u.EpisodeDecorationPolicy.encode(e.episodePolicy,n.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&u.EpisodeCollectionDecorationPolicy.encode(e.collectionPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.syncPolicy&&u.EpisodeSyncDecorationPolicy.encode(e.syncPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&u.EpisodePlayedStateDecorationPolicy.encode(e.playedStatePolicy,n.uint32(34).fork()).ldelim(),void 0!==e.showPolicy&&t.CollectionShowDecorationPolicy.encode(e.showPolicy,n.uint32(42).fork()).ldelim(),!0===e.decorated&&n.uint32(48).bool(e.decorated),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,decorated:!1};for(;o.pos>>3){case 1:a.episodePolicy=u.EpisodeDecorationPolicy.decode(o,o.uint32());break;case 2:a.collectionPolicy=u.EpisodeCollectionDecorationPolicy.decode(o,o.uint32());break;case 3:a.syncPolicy=u.EpisodeSyncDecorationPolicy.decode(o,o.uint32());break;case 4:a.playedStatePolicy=u.EpisodePlayedStateDecorationPolicy.decode(o,o.uint32());break;case 5:a.showPolicy=t.CollectionShowDecorationPolicy.decode(o,o.uint32());break;case 6:a.decorated=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodePolicy:d(e.episodePolicy)?u.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,collectionPolicy:d(e.collectionPolicy)?u.EpisodeCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?u.EpisodeSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?u.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,showPolicy:d(e.showPolicy)?t.CollectionShowDecorationPolicy.fromJSON(e.showPolicy):void 0,decorated:!!d(e.decorated)&&Boolean(e.decorated)}),toJSON(e){const n={};return void 0!==e.episodePolicy&&(n.episodePolicy=e.episodePolicy?u.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.collectionPolicy&&(n.collectionPolicy=e.collectionPolicy?u.EpisodeCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(n.syncPolicy=e.syncPolicy?u.EpisodeSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.playedStatePolicy&&(n.playedStatePolicy=e.playedStatePolicy?u.EpisodePlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.showPolicy&&(n.showPolicy=e.showPolicy?t.CollectionShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),n},fromPartial(e){const n={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,decorated:!1};return n.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?u.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,n.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?u.EpisodeCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,n.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?u.EpisodeSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,n.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?u.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,n.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?t.CollectionShowDecorationPolicy.fromPartial(e.showPolicy):void 0,n.decorated=e.decorated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},7625:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetAlbumViewResponse=t.CollectionGetAlbumViewRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(62908),l=n(96859);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetAlbumViewRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.albumUri&&t.uint32(10).string(e.albumUri),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),void 0!==e.albumPolicy&&a.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={albumUri:"",updateThrottling:0,albumPolicy:void 0,trackPolicy:void 0};for(;n.pos>>3){case 1:i.albumUri=n.string();break;case 2:i.updateThrottling=n.uint32();break;case 3:i.albumPolicy=a.CollectionAlbumDecorationPolicy.decode(n,n.uint32());break;case 4:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({albumUri:c(e.albumUri)?String(e.albumUri):"",updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,albumPolicy:c(e.albumPolicy)?a.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0}),toJSON(e){const t={};return void 0!==e.albumUri&&(t.albumUri=e.albumUri),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?a.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),t},fromPartial(e){const t={albumUri:"",updateThrottling:0,albumPolicy:void 0,trackPolicy:void 0};return t.albumUri=e.albumUri??"",t.updateThrottling=e.updateThrottling??0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?a.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t}},t.CollectionGetAlbumViewResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&s.Status.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.album&&l.CollectionAlbum.encode(e.album,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,album:void 0};for(;n.pos>>3){case 1:i.status=s.Status.decode(n,n.uint32());break;case 2:i.album=l.CollectionAlbum.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:c(e.status)?s.Status.fromJSON(e.status):void 0,album:c(e.album)?l.CollectionAlbum.fromJSON(e.album):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?s.Status.toJSON(e.status):void 0),void 0!==e.album&&(t.album=e.album?l.CollectionAlbum.toJSON(e.album):void 0),t},fromPartial(e){const t={status:void 0,album:void 0};return t.status=void 0!==e.status&&null!==e.status?s.Status.fromPartial(e.status):void 0,t.album=void 0!==e.album&&null!==e.album?l.CollectionAlbum.fromPartial(e.album):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},766:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetArtistViewResponse=t.CollectionGetArtistViewRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(62908),l=n(96859);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetArtistViewRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.artistUri&&t.uint32(10).string(e.artistUri),0!==e.updateThrottling&&t.uint32(16).uint32(e.updateThrottling),void 0!==e.artistPolicy&&a.CollectionArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.albumPolicy&&a.CollectionAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={artistUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0};for(;n.pos>>3){case 1:i.artistUri=n.string();break;case 2:i.updateThrottling=n.uint32();break;case 3:i.artistPolicy=a.CollectionArtistDecorationPolicy.decode(n,n.uint32());break;case 4:i.albumPolicy=a.CollectionAlbumDecorationPolicy.decode(n,n.uint32());break;case 5:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({artistUri:c(e.artistUri)?String(e.artistUri):"",updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,artistPolicy:c(e.artistPolicy)?a.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,albumPolicy:c(e.albumPolicy)?a.CollectionAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0}),toJSON(e){const t={};return void 0!==e.artistUri&&(t.artistUri=e.artistUri),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?a.CollectionAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),t},fromPartial(e){const t={artistUri:"",updateThrottling:0,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0};return t.artistUri=e.artistUri??"",t.updateThrottling=e.updateThrottling??0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?a.CollectionAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t}},t.CollectionGetArtistViewResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&s.Status.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&l.CollectionArtist.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,artist:void 0};for(;n.pos>>3){case 1:i.status=s.Status.decode(n,n.uint32());break;case 2:i.artist=l.CollectionArtist.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:c(e.status)?s.Status.fromJSON(e.status):void 0,artist:c(e.artist)?l.CollectionArtist.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?s.Status.toJSON(e.status):void 0),void 0!==e.artist&&(t.artist=e.artist?l.CollectionArtist.toJSON(e.artist):void 0),t},fromPartial(e){const t={status:void 0,artist:void 0};return t.status=void 0!==e.status&&null!==e.status?s.Status.fromPartial(e.status):void 0,t.artist=void 0!==e.artist&&null!==e.artist?l.CollectionArtist.fromPartial(e.artist):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},22497:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetBansResponse=t.Item=t.CollectionGetBansRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetBansRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.artistPolicy&&a.CollectionArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(18).fork()).ldelim(),""!==e.sort&&t.uint32(26).string(e.sort),!0===e.timestamp&&t.uint32(32).bool(e.timestamp),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={trackPolicy:void 0,artistPolicy:void 0,sort:"",timestamp:!1,updateThrottling:0};for(;n.pos>>3){case 1:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.artistPolicy=a.CollectionArtistDecorationPolicy.decode(n,n.uint32());break;case 3:i.sort=n.string();break;case 4:i.timestamp=n.bool();break;case 5:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,artistPolicy:c(e.artistPolicy)?a.CollectionArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,sort:c(e.sort)?String(e.sort):"",timestamp:!!c(e.timestamp)&&Boolean(e.timestamp),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.CollectionArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={trackPolicy:void 0,artistPolicy:void 0,sort:"",timestamp:!1,updateThrottling:0};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.CollectionArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.sort=e.sort??"",t.timestamp=e.timestamp??!1,t.updateThrottling=e.updateThrottling??0,t}},t.Item={encode:(e,t=r.default.Writer.create())=>(0!==e.addTime&&t.uint32(8).uint32(e.addTime),void 0!==e.trackMetadata&&s.CollectionTrack.encode(e.trackMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.artistMetadata&&s.CollectionArtist.encode(e.artistMetadata,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={addTime:0,trackMetadata:void 0,artistMetadata:void 0};for(;n.pos>>3){case 1:i.addTime=n.uint32();break;case 2:i.trackMetadata=s.CollectionTrack.decode(n,n.uint32());break;case 3:i.artistMetadata=s.CollectionArtist.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({addTime:c(e.addTime)?Number(e.addTime):0,trackMetadata:c(e.trackMetadata)?s.CollectionTrack.fromJSON(e.trackMetadata):void 0,artistMetadata:c(e.artistMetadata)?s.CollectionArtist.fromJSON(e.artistMetadata):void 0}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?s.CollectionTrack.toJSON(e.trackMetadata):void 0),void 0!==e.artistMetadata&&(t.artistMetadata=e.artistMetadata?s.CollectionArtist.toJSON(e.artistMetadata):void 0),t},fromPartial(e){const t={addTime:0,trackMetadata:void 0,artistMetadata:void 0};return t.addTime=e.addTime??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?s.CollectionTrack.fromPartial(e.trackMetadata):void 0,t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?s.CollectionArtist.fromPartial(e.artistMetadata):void 0,t}},t.CollectionGetBansResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.Item.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[]};for(;o.pos>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.Item.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.Item.toJSON(e):void 0)):n.item=[],n},fromPartial(e){const n={status:void 0,item:[]};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},75879:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetBucketSyncStatusResponse=t.CollectionGetBucketSyncStatusRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetBucketSyncStatusRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.bucketName&&t.uint32(10).string(e.bucketName),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={bucketName:""};for(;n.pos>>3==1)i.bucketName=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({bucketName:s(e.bucketName)?String(e.bucketName):""}),toJSON(e){const t={};return void 0!==e.bucketName&&(t.bucketName=e.bucketName),t},fromPartial(e){const t={bucketName:""};return t.bucketName=e.bucketName??"",t}},t.CollectionGetBucketSyncStatusResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),!0===e.isSynced&&t.uint32(16).bool(e.isSynced),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,isSynced:!1};for(;n.pos>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:i.isSynced=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,isSynced:!!s(e.isSynced)&&Boolean(e.isSynced)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),void 0!==e.isSynced&&(t.isSynced=e.isSynced),t},fromPartial(e){const t={status:void 0,isSynced:!1};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.isSynced=e.isSynced??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},4194:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetEpisodeListResponse=t.EpisodeListItem=t.CollectionGetEpisodeListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetEpisodeListRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.start&&t.uint32(8).uint32(e.start),0!==e.length&&t.uint32(16).uint32(e.length),""!==e.sort&&t.uint32(26).string(e.sort),""!==e.filter&&t.uint32(34).string(e.filter),!0===e.group&&t.uint32(40).bool(e.group),0!==e.updateThrottling&&t.uint32(48).uint32(e.updateThrottling),void 0!==e.episodePolicy&&a.CollectionEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0,episodePolicy:void 0};for(;n.pos>>3){case 1:i.start=n.uint32();break;case 2:i.length=n.uint32();break;case 3:i.sort=n.string();break;case 4:i.filter=n.string();break;case 5:i.group=n.bool();break;case 6:i.updateThrottling=n.uint32();break;case 7:i.episodePolicy=a.CollectionEpisodeDecorationPolicy.decode(n,n.uint32());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,sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",group:!!c(e.group)&&Boolean(e.group),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,episodePolicy:c(e.episodePolicy)?a.CollectionEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 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)),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?a.CollectionEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),t},fromPartial(e){const t={start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0,episodePolicy:void 0};return t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.updateThrottling=e.updateThrottling??0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?a.CollectionEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t}},t.EpisodeListItem={encode:(e,t=r.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episode&&s.CollectionEpisode.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={header:"",episode:void 0};for(;n.pos>>3){case 1:i.header=n.string();break;case 2:i.episode=s.CollectionEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({header:c(e.header)?String(e.header):"",episode:c(e.episode)?s.CollectionEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.episode&&(t.episode=e.episode?s.CollectionEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={header:"",episode:void 0};return t.header=e.header??"",t.episode=void 0!==e.episode&&null!==e.episode?s.CollectionEpisode.fromPartial(e.episode):void 0,t}},t.CollectionGetEpisodeListResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.EpisodeListItem.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),!0===e.loadingContents&&n.uint32(40).bool(e.loadingContents),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContents:!1};for(;o.pos>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.EpisodeListItem.decode(o,o.uint32()));break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.loadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.EpisodeListItem.fromJSON(e))):[],unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!c(e.loadingContents)&&Boolean(e.loadingContents)}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.EpisodeListItem.toJSON(e):void 0)):n.item=[],void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),n},fromPartial(e){const n={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContents:!1};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.EpisodeListItem.fromPartial(e)))||[],n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContents=e.loadingContents??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},98317:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetResumePointsResponse=t.ResumePointItem=t.CollectionGetResumePointsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetResumePointsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[]};for(;n.pos>>3==1)i.uri.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.ResumePointItem={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.resumePoint&&t.uint32(16).uint32(e.resumePoint),""!==e.name&&t.uint32(26).string(e.name),0!==e.length&&t.uint32(32).uint32(e.length),""!==e.link&&t.uint32(42).string(e.link),""!==e.coverUri&&t.uint32(50).string(e.coverUri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",resumePoint:0,name:"",length:0,link:"",coverUri:""};for(;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.resumePoint=n.uint32();break;case 3:i.name=n.string();break;case 4:i.length=n.uint32();break;case 5:i.link=n.string();break;case 6:i.coverUri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",resumePoint:s(e.resumePoint)?Number(e.resumePoint):0,name:s(e.name)?String(e.name):"",length:s(e.length)?Number(e.length):0,link:s(e.link)?String(e.link):"",coverUri:s(e.coverUri)?String(e.coverUri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.resumePoint&&(t.resumePoint=Math.round(e.resumePoint)),void 0!==e.name&&(t.name=e.name),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.link&&(t.link=e.link),void 0!==e.coverUri&&(t.coverUri=e.coverUri),t},fromPartial(e){const t={uri:"",resumePoint:0,name:"",length:0,link:"",coverUri:""};return t.uri=e.uri??"",t.resumePoint=e.resumePoint??0,t.name=e.name??"",t.length=e.length??0,t.link=e.link??"",t.coverUri=e.coverUri??"",t}},t.CollectionGetResumePointsResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&a.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.ResumePointItem.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={status:void 0,item:[]};for(;o.pos>>3){case 1:s.status=a.Status.decode(o,o.uint32());break;case 2:s.item.push(t.ResumePointItem.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.ResumePointItem.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?a.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.ResumePointItem.toJSON(e):void 0)):n.item=[],n},fromPartial(e){const n={status:void 0,item:[]};return n.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.ResumePointItem.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},62571:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetShowListResponse=t.ShowListItem=t.CollectionGetShowListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetShowListRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showPolicy&&a.CollectionShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),!0===e.addTime&&t.uint32(16).bool(e.addTime),!0===e.index&&t.uint32(24).bool(e.index),!0===e.hasNewEpisodes&&t.uint32(32).bool(e.hasNewEpisodes),!0===e.latestPublishedEpisodeDate&&t.uint32(40).bool(e.latestPublishedEpisodeDate),""!==e.sort&&t.uint32(50).string(e.sort),""!==e.filter&&t.uint32(58).string(e.filter),!0===e.group&&t.uint32(64).bool(e.group),0!==e.start&&t.uint32(72).uint32(e.start),0!==e.length&&t.uint32(80).uint32(e.length),0!==e.updateThrottling&&t.uint32(88).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showPolicy:void 0,addTime:!1,index:!1,hasNewEpisodes:!1,latestPublishedEpisodeDate:!1,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};for(;n.pos>>3){case 1:i.showPolicy=a.CollectionShowDecorationPolicy.decode(n,n.uint32());break;case 2:i.addTime=n.bool();break;case 3:i.index=n.bool();break;case 4:i.hasNewEpisodes=n.bool();break;case 5:i.latestPublishedEpisodeDate=n.bool();break;case 6:i.sort=n.string();break;case 7:i.filter=n.string();break;case 8:i.group=n.bool();break;case 9:i.start=n.uint32();break;case 10:i.length=n.uint32();break;case 11:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showPolicy:c(e.showPolicy)?a.CollectionShowDecorationPolicy.fromJSON(e.showPolicy):void 0,addTime:!!c(e.addTime)&&Boolean(e.addTime),index:!!c(e.index)&&Boolean(e.index),hasNewEpisodes:!!c(e.hasNewEpisodes)&&Boolean(e.hasNewEpisodes),latestPublishedEpisodeDate:!!c(e.latestPublishedEpisodeDate)&&Boolean(e.latestPublishedEpisodeDate),sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",group:!!c(e.group)&&Boolean(e.group),start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.CollectionShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.index&&(t.index=e.index),void 0!==e.hasNewEpisodes&&(t.hasNewEpisodes=e.hasNewEpisodes),void 0!==e.latestPublishedEpisodeDate&&(t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={showPolicy:void 0,addTime:!1,index:!1,hasNewEpisodes:!1,latestPublishedEpisodeDate:!1,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.CollectionShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.addTime=e.addTime??!1,t.index=e.index??!1,t.hasNewEpisodes=e.hasNewEpisodes??!1,t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate??!1,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t}},t.ShowListItem={encode:(e,t=r.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),0!==e.headerlessIndex&&t.uint32(16).uint32(e.headerlessIndex),!0===e.hasNewEpisodes&&t.uint32(24).bool(e.hasNewEpisodes),"0"!==e.latestPublishedEpisodeDate&&t.uint32(32).uint64(e.latestPublishedEpisodeDate),void 0!==e.show&&s.CollectionShow.encode(e.show,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={header:"",headerlessIndex:0,hasNewEpisodes:!1,latestPublishedEpisodeDate:"0",show:void 0};for(;n.pos>>3){case 1:i.header=n.string();break;case 2:i.headerlessIndex=n.uint32();break;case 3:i.hasNewEpisodes=n.bool();break;case 4:i.latestPublishedEpisodeDate=n.uint64().toString();break;case 5:i.show=s.CollectionShow.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({header:c(e.header)?String(e.header):"",headerlessIndex:c(e.headerlessIndex)?Number(e.headerlessIndex):0,hasNewEpisodes:!!c(e.hasNewEpisodes)&&Boolean(e.hasNewEpisodes),latestPublishedEpisodeDate:c(e.latestPublishedEpisodeDate)?String(e.latestPublishedEpisodeDate):"0",show:c(e.show)?s.CollectionShow.fromJSON(e.show):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.headerlessIndex&&(t.headerlessIndex=Math.round(e.headerlessIndex)),void 0!==e.hasNewEpisodes&&(t.hasNewEpisodes=e.hasNewEpisodes),void 0!==e.latestPublishedEpisodeDate&&(t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate),void 0!==e.show&&(t.show=e.show?s.CollectionShow.toJSON(e.show):void 0),t},fromPartial(e){const t={header:"",headerlessIndex:0,hasNewEpisodes:!1,latestPublishedEpisodeDate:"0",show:void 0};return t.header=e.header??"",t.headerlessIndex=e.headerlessIndex??0,t.hasNewEpisodes=e.hasNewEpisodes??!1,t.latestPublishedEpisodeDate=e.latestPublishedEpisodeDate??"0",t.show=void 0!==e.show&&null!==e.show?s.CollectionShow.fromPartial(e.show):void 0,t}},t.CollectionGetShowListResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.ShowListItem.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.numOfflinedEpisodes&&n.uint32(24).uint32(e.numOfflinedEpisodes),0!==e.unfilteredLength&&n.uint32(32).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(40).uint32(e.unrangedLength),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[],numOfflinedEpisodes:0,unfilteredLength:0,unrangedLength:0,loadingContents:!1};for(;o.pos>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.ShowListItem.decode(o,o.uint32()));break;case 3:a.numOfflinedEpisodes=o.uint32();break;case 4:a.unfilteredLength=o.uint32();break;case 5:a.unrangedLength=o.uint32();break;case 6:a.loadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.ShowListItem.fromJSON(e))):[],numOfflinedEpisodes:c(e.numOfflinedEpisodes)?Number(e.numOfflinedEpisodes):0,unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!c(e.loadingContents)&&Boolean(e.loadingContents)}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.ShowListItem.toJSON(e):void 0)):n.item=[],void 0!==e.numOfflinedEpisodes&&(n.numOfflinedEpisodes=Math.round(e.numOfflinedEpisodes)),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),n},fromPartial(e){const n={status:void 0,item:[],numOfflinedEpisodes:0,unfilteredLength:0,unrangedLength:0,loadingContents:!1};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.ShowListItem.fromPartial(e)))||[],n.numOfflinedEpisodes=e.numOfflinedEpisodes??0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContents=e.loadingContents??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},87315:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetTrackListMetadataResponse=t.CollectionGetTrackListMetadataRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908),s=n(42676);function l(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetTrackListMetadataRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.filter&&t.uint32(18).string(e.filter),0!==e.updateThrottling&&t.uint32(24).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={filter:"",updateThrottling:0};for(;n.pos>>3){case 2:i.filter=n.string();break;case 3:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({filter:l(e.filter)?String(e.filter):"",updateThrottling:l(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.filter&&(t.filter=e.filter),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={filter:"",updateThrottling:0};return t.filter=e.filter??"",t.updateThrottling=e.updateThrottling??0,t}},t.CollectionGetTrackListMetadataResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&s.TrackListMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,metadata:void 0};for(;n.pos>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:i.metadata=s.TrackListMetadata.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:l(e.status)?a.Status.fromJSON(e.status):void 0,metadata:l(e.metadata)?s.TrackListMetadata.fromJSON(e.metadata):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?s.TrackListMetadata.toJSON(e.metadata):void 0),t},fromPartial(e){const t={status:void 0,metadata:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?s.TrackListMetadata.fromPartial(e.metadata):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},97233:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetTrackListResponse=t.GroupHeader=t.TrackListItem=t.CollectionGetTrackListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetTrackListRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackPolicy&&a.CollectionTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),!0===e.addTime&&t.uint32(16).bool(e.addTime),!0===e.index&&t.uint32(24).bool(e.index),!0===e.groupIndex&&t.uint32(32).bool(e.groupIndex),!0===e.groupLabel&&t.uint32(40).bool(e.groupLabel),!0===e.groupByInitial&&t.uint32(48).bool(e.groupByInitial),0!==e.updateThrottling&&t.uint32(56).uint32(e.updateThrottling),0!==e.start&&t.uint32(64).uint32(e.start),0!==e.length&&t.uint32(72).uint32(e.length),""!==e.sort&&t.uint32(82).string(e.sort),""!==e.filter&&t.uint32(90).string(e.filter),""!==e.id&&t.uint32(98).string(e.id),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={trackPolicy:void 0,addTime:!1,index:!1,groupIndex:!1,groupLabel:!1,groupByInitial:!1,updateThrottling:0,start:0,length:0,sort:"",filter:"",id:""};for(;n.pos>>3){case 1:i.trackPolicy=a.CollectionTrackDecorationPolicy.decode(n,n.uint32());break;case 2:i.addTime=n.bool();break;case 3:i.index=n.bool();break;case 4:i.groupIndex=n.bool();break;case 5:i.groupLabel=n.bool();break;case 6:i.groupByInitial=n.bool();break;case 7:i.updateThrottling=n.uint32();break;case 8:i.start=n.uint32();break;case 9:i.length=n.uint32();break;case 10:i.sort=n.string();break;case 11:i.filter=n.string();break;case 12:i.id=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({trackPolicy:c(e.trackPolicy)?a.CollectionTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,addTime:!!c(e.addTime)&&Boolean(e.addTime),index:!!c(e.index)&&Boolean(e.index),groupIndex:!!c(e.groupIndex)&&Boolean(e.groupIndex),groupLabel:!!c(e.groupLabel)&&Boolean(e.groupLabel),groupByInitial:!!c(e.groupByInitial)&&Boolean(e.groupByInitial),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0,start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",id:c(e.id)?String(e.id):""}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?a.CollectionTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.index&&(t.index=e.index),void 0!==e.groupIndex&&(t.groupIndex=e.groupIndex),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.groupByInitial&&(t.groupByInitial=e.groupByInitial),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.id&&(t.id=e.id),t},fromPartial(e){const t={trackPolicy:void 0,addTime:!1,index:!1,groupIndex:!1,groupLabel:!1,groupByInitial:!1,updateThrottling:0,start:0,length:0,sort:"",filter:"",id:""};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?a.CollectionTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.addTime=e.addTime??!1,t.index=e.index??!1,t.groupIndex=e.groupIndex??!1,t.groupLabel=e.groupLabel??!1,t.groupByInitial=e.groupByInitial??!1,t.updateThrottling=e.updateThrottling??0,t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.id=e.id??"",t}},t.TrackListItem={encode:(e,t=r.default.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.track&&s.CollectionTrack.encode(e.track,t.uint32(18).fork()).ldelim(),""!==e.groupLabel&&t.uint32(26).string(e.groupLabel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={headerField:"",track:void 0,groupLabel:""};for(;n.pos>>3){case 1:i.headerField=n.string();break;case 2:i.track=s.CollectionTrack.decode(n,n.uint32());break;case 3:i.groupLabel=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({headerField:c(e.headerField)?String(e.headerField):"",track:c(e.track)?s.CollectionTrack.fromJSON(e.track):void 0,groupLabel:c(e.groupLabel)?String(e.groupLabel):""}),toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.track&&(t.track=e.track?s.CollectionTrack.toJSON(e.track):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={headerField:"",track:void 0,groupLabel:""};return t.headerField=e.headerField??"",t.track=void 0!==e.track&&null!==e.track?s.CollectionTrack.fromPartial(e.track):void 0,t.groupLabel=e.groupLabel??"",t}},t.GroupHeader={encode:(e,t=r.default.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={headerField:"",index:0,length:0};for(;n.pos>>3){case 1:i.headerField=n.string();break;case 2:i.index=n.uint32();break;case 3:i.length=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({headerField:c(e.headerField)?String(e.headerField):"",index:c(e.index)?Number(e.index):0,length:c(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.headerField&&(t.headerField=e.headerField),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={headerField:"",index:0,length:0};return t.headerField=e.headerField??"",t.index=e.index??0,t.length=e.length??0,t}},t.CollectionGetTrackListResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(16).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(24).uint32(e.unrangedLength),!0===e.loadingContents&&n.uint32(32).bool(e.loadingContents),""!==e.offline&&n.uint32(42).string(e.offline),0!==e.syncProgress&&n.uint32(48).uint32(e.syncProgress);for(const o of e.groupIndex)t.GroupHeader.encode(o,n.uint32(58).fork()).ldelim();for(const o of e.item)t.TrackListItem.encode(o,n.uint32(66).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,unfilteredLength:0,unrangedLength:0,loadingContents:!1,offline:"",syncProgress:0,groupIndex:[],item:[]};for(;o.pos>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.unfilteredLength=o.uint32();break;case 3:a.unrangedLength=o.uint32();break;case 4:a.loadingContents=o.bool();break;case 5:a.offline=o.string();break;case 6:a.syncProgress=o.uint32();break;case 7:a.groupIndex.push(t.GroupHeader.decode(o,o.uint32()));break;case 8:a.item.push(t.TrackListItem.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContents:!!c(e.loadingContents)&&Boolean(e.loadingContents),offline:c(e.offline)?String(e.offline):"",syncProgress:c(e.syncProgress)?Number(e.syncProgress):0,groupIndex:Array.isArray(e?.groupIndex)?e.groupIndex.map((e=>t.GroupHeader.fromJSON(e))):[],item:Array.isArray(e?.item)?e.item.map((e=>t.TrackListItem.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContents&&(n.loadingContents=e.loadingContents),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=Math.round(e.syncProgress)),e.groupIndex?n.groupIndex=e.groupIndex.map((e=>e?t.GroupHeader.toJSON(e):void 0)):n.groupIndex=[],e.item?n.item=e.item.map((e=>e?t.TrackListItem.toJSON(e):void 0)):n.item=[],n},fromPartial(e){const n={status:void 0,unfilteredLength:0,unrangedLength:0,loadingContents:!1,offline:"",syncProgress:0,groupIndex:[],item:[]};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContents=e.loadingContents??!1,n.offline=e.offline??"",n.syncProgress=e.syncProgress??0,n.groupIndex=e.groupIndex?.map((e=>t.GroupHeader.fromPartial(e)))||[],n.item=e.item?.map((e=>t.TrackListItem.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95123:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionGetUnplayedEpisodesResponse=t.UnplayedEpisodeItem=t.CollectionGetUnplayedEpisodesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(38518),s=n(96859),l=n(62908);function c(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionGetUnplayedEpisodesRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episodePolicy&&a.CollectionEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),0!==e.start&&t.uint32(16).uint32(e.start),0!==e.length&&t.uint32(24).uint32(e.length),""!==e.sort&&t.uint32(34).string(e.sort),""!==e.filter&&t.uint32(42).string(e.filter),!0===e.group&&t.uint32(48).bool(e.group),0!==e.updateThrottling&&t.uint32(56).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={episodePolicy:void 0,start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0};for(;n.pos>>3){case 1:i.episodePolicy=a.CollectionEpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:i.start=n.uint32();break;case 3:i.length=n.uint32();break;case 4:i.sort=n.string();break;case 5:i.filter=n.string();break;case 6:i.group=n.bool();break;case 7:i.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({episodePolicy:c(e.episodePolicy)?a.CollectionEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,start:c(e.start)?Number(e.start):0,length:c(e.length)?Number(e.length):0,sort:c(e.sort)?String(e.sort):"",filter:c(e.filter)?String(e.filter):"",group:!!c(e.group)&&Boolean(e.group),updateThrottling:c(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?a.CollectionEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={episodePolicy:void 0,start:0,length:0,sort:"",filter:"",group:!1,updateThrottling:0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?a.CollectionEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.start=e.start??0,t.length=e.length??0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.updateThrottling=e.updateThrottling??0,t}},t.UnplayedEpisodeItem={encode:(e,t=r.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episode&&s.CollectionEpisode.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={header:"",episode:void 0};for(;n.pos>>3){case 1:i.header=n.string();break;case 2:i.episode=s.CollectionEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({header:c(e.header)?String(e.header):"",episode:c(e.episode)?s.CollectionEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.episode&&(t.episode=e.episode?s.CollectionEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={header:"",episode:void 0};return t.header=e.header??"",t.episode=void 0!==e.episode&&null!==e.episode?s.CollectionEpisode.fromPartial(e.episode):void 0,t}},t.CollectionGetUnplayedEpisodesResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&l.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.item)t.UnplayedEpisodeItem.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.unfilteredLength&&n.uint32(24).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(32).uint32(e.unrangedLength),!0===e.loadingContent&&n.uint32(40).bool(e.loadingContent),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContent:!1};for(;o.pos>>3){case 1:a.status=l.Status.decode(o,o.uint32());break;case 2:a.item.push(t.UnplayedEpisodeItem.decode(o,o.uint32()));break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.loadingContent=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:c(e.status)?l.Status.fromJSON(e.status):void 0,item:Array.isArray(e?.item)?e.item.map((e=>t.UnplayedEpisodeItem.fromJSON(e))):[],unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,loadingContent:!!c(e.loadingContent)&&Boolean(e.loadingContent)}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?l.Status.toJSON(e.status):void 0),e.item?n.item=e.item.map((e=>e?t.UnplayedEpisodeItem.toJSON(e):void 0)):n.item=[],void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.loadingContent&&(n.loadingContent=e.loadingContent),n},fromPartial(e){const n={status:void 0,item:[],unfilteredLength:0,unrangedLength:0,loadingContent:!1};return n.status=void 0!==e.status&&null!==e.status?l.Status.fromPartial(e.status):void 0,n.item=e.item?.map((e=>t.UnplayedEpisodeItem.fromPartial(e)))||[],n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.loadingContent=e.loadingContent??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},96859:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionEpisode=t.CollectionShow=t.CollectionArtist=t.CollectionAlbum=t.CollectionTrack=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(44676),s=n(59649),l=n(1772),c=n(8151),u=n(37709),d=n(78318),p=n(61013),f=n(3103),h=n(91864),m=n(13922),g=n(58894),v=n(39836),y=n(9589),_=n(15400),b=n(58405),S=n(26909),E=n(83664);function A(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionTrack={encode(e,n=r.default.Writer.create()){0!==e.index&&n.uint32(8).uint32(e.index),0!==e.addTime&&n.uint32(16).uint32(e.addTime),void 0!==e.trackMetadata&&a.TrackMetadata.encode(e.trackMetadata,n.uint32(26).fork()).ldelim(),void 0!==e.trackCollectionState&&s.TrackCollectionState.encode(e.trackCollectionState,n.uint32(34).fork()).ldelim(),void 0!==e.trackPlayState&&l.TrackPlayState.encode(e.trackPlayState,n.uint32(42).fork()).ldelim(),void 0!==e.trackSyncState&&c.TrackSyncState.encode(e.trackSyncState,n.uint32(50).fork()).ldelim(),!0===e.decorated&&n.uint32(56).bool(e.decorated),void 0!==e.album&&t.CollectionAlbum.encode(e.album,n.uint32(66).fork()).ldelim(),""!==e.cover&&n.uint32(74).string(e.cover),""!==e.link&&n.uint32(82).string(e.link);for(const t of e.artistCollectionState)u.ArtistCollectionState.encode(t,n.uint32(90).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const d={index:0,addTime:0,trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,decorated:!1,album:void 0,cover:"",link:"",artistCollectionState:[]};for(;o.pos>>3){case 1:d.index=o.uint32();break;case 2:d.addTime=o.uint32();break;case 3:d.trackMetadata=a.TrackMetadata.decode(o,o.uint32());break;case 4:d.trackCollectionState=s.TrackCollectionState.decode(o,o.uint32());break;case 5:d.trackPlayState=l.TrackPlayState.decode(o,o.uint32());break;case 6:d.trackSyncState=c.TrackSyncState.decode(o,o.uint32());break;case 7:d.decorated=o.bool();break;case 8:d.album=t.CollectionAlbum.decode(o,o.uint32());break;case 9:d.cover=o.string();break;case 10:d.link=o.string();break;case 11:d.artistCollectionState.push(u.ArtistCollectionState.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return d},fromJSON:e=>({index:A(e.index)?Number(e.index):0,addTime:A(e.addTime)?Number(e.addTime):0,trackMetadata:A(e.trackMetadata)?a.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:A(e.trackCollectionState)?s.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackPlayState:A(e.trackPlayState)?l.TrackPlayState.fromJSON(e.trackPlayState):void 0,trackSyncState:A(e.trackSyncState)?c.TrackSyncState.fromJSON(e.trackSyncState):void 0,decorated:!!A(e.decorated)&&Boolean(e.decorated),album:A(e.album)?t.CollectionAlbum.fromJSON(e.album):void 0,cover:A(e.cover)?String(e.cover):"",link:A(e.link)?String(e.link):"",artistCollectionState:Array.isArray(e?.artistCollectionState)?e.artistCollectionState.map((e=>u.ArtistCollectionState.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.index&&(n.index=Math.round(e.index)),void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.trackMetadata&&(n.trackMetadata=e.trackMetadata?a.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(n.trackCollectionState=e.trackCollectionState?s.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackPlayState&&(n.trackPlayState=e.trackPlayState?l.TrackPlayState.toJSON(e.trackPlayState):void 0),void 0!==e.trackSyncState&&(n.trackSyncState=e.trackSyncState?c.TrackSyncState.toJSON(e.trackSyncState):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.album&&(n.album=e.album?t.CollectionAlbum.toJSON(e.album):void 0),void 0!==e.cover&&(n.cover=e.cover),void 0!==e.link&&(n.link=e.link),e.artistCollectionState?n.artistCollectionState=e.artistCollectionState.map((e=>e?u.ArtistCollectionState.toJSON(e):void 0)):n.artistCollectionState=[],n},fromPartial(e){const n={index:0,addTime:0,trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,decorated:!1,album:void 0,cover:"",link:"",artistCollectionState:[]};return n.index=e.index??0,n.addTime=e.addTime??0,n.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?a.TrackMetadata.fromPartial(e.trackMetadata):void 0,n.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?s.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,n.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?l.TrackPlayState.fromPartial(e.trackPlayState):void 0,n.trackSyncState=void 0!==e.trackSyncState&&null!==e.trackSyncState?c.TrackSyncState.fromPartial(e.trackSyncState):void 0,n.decorated=e.decorated??!1,n.album=void 0!==e.album&&null!==e.album?t.CollectionAlbum.fromPartial(e.album):void 0,n.cover=e.cover??"",n.link=e.link??"",n.artistCollectionState=e.artistCollectionState?.map((e=>u.ArtistCollectionState.fromPartial(e)))||[],n}},t.CollectionAlbum={encode(e,n=r.default.Writer.create()){0!==e.addTime&&n.uint32(8).uint32(e.addTime),void 0!==e.albumMetadata&&d.AlbumMetadata.encode(e.albumMetadata,n.uint32(18).fork()).ldelim(),void 0!==e.albumCollectionState&&p.AlbumCollectionState.encode(e.albumCollectionState,n.uint32(26).fork()).ldelim(),void 0!==e.albumSyncState&&f.AlbumSyncState.encode(e.albumSyncState,n.uint32(34).fork()).ldelim(),!0===e.decorated&&n.uint32(40).bool(e.decorated),""!==e.albumType&&n.uint32(50).string(e.albumType);for(const o of e.track)t.CollectionTrack.encode(o,n.uint32(58).fork()).ldelim();return""!==e.link&&n.uint32(90).string(e.link),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={addTime:0,albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,decorated:!1,albumType:"",track:[],link:""};for(;o.pos>>3){case 1:a.addTime=o.uint32();break;case 2:a.albumMetadata=d.AlbumMetadata.decode(o,o.uint32());break;case 3:a.albumCollectionState=p.AlbumCollectionState.decode(o,o.uint32());break;case 4:a.albumSyncState=f.AlbumSyncState.decode(o,o.uint32());break;case 5:a.decorated=o.bool();break;case 6:a.albumType=o.string();break;case 7:a.track.push(t.CollectionTrack.decode(o,o.uint32()));break;case 11:a.link=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({addTime:A(e.addTime)?Number(e.addTime):0,albumMetadata:A(e.albumMetadata)?d.AlbumMetadata.fromJSON(e.albumMetadata):void 0,albumCollectionState:A(e.albumCollectionState)?p.AlbumCollectionState.fromJSON(e.albumCollectionState):void 0,albumSyncState:A(e.albumSyncState)?f.AlbumSyncState.fromJSON(e.albumSyncState):void 0,decorated:!!A(e.decorated)&&Boolean(e.decorated),albumType:A(e.albumType)?String(e.albumType):"",track:Array.isArray(e?.track)?e.track.map((e=>t.CollectionTrack.fromJSON(e))):[],link:A(e.link)?String(e.link):""}),toJSON(e){const n={};return void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.albumMetadata&&(n.albumMetadata=e.albumMetadata?d.AlbumMetadata.toJSON(e.albumMetadata):void 0),void 0!==e.albumCollectionState&&(n.albumCollectionState=e.albumCollectionState?p.AlbumCollectionState.toJSON(e.albumCollectionState):void 0),void 0!==e.albumSyncState&&(n.albumSyncState=e.albumSyncState?f.AlbumSyncState.toJSON(e.albumSyncState):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),void 0!==e.albumType&&(n.albumType=e.albumType),e.track?n.track=e.track.map((e=>e?t.CollectionTrack.toJSON(e):void 0)):n.track=[],void 0!==e.link&&(n.link=e.link),n},fromPartial(e){const n={addTime:0,albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,decorated:!1,albumType:"",track:[],link:""};return n.addTime=e.addTime??0,n.albumMetadata=void 0!==e.albumMetadata&&null!==e.albumMetadata?d.AlbumMetadata.fromPartial(e.albumMetadata):void 0,n.albumCollectionState=void 0!==e.albumCollectionState&&null!==e.albumCollectionState?p.AlbumCollectionState.fromPartial(e.albumCollectionState):void 0,n.albumSyncState=void 0!==e.albumSyncState&&null!==e.albumSyncState?f.AlbumSyncState.fromPartial(e.albumSyncState):void 0,n.decorated=e.decorated??!1,n.albumType=e.albumType??"",n.track=e.track?.map((e=>t.CollectionTrack.fromPartial(e)))||[],n.link=e.link??"",n}},t.CollectionArtist={encode(e,n=r.default.Writer.create()){void 0!==e.artistMetadata&&h.ArtistMetadata.encode(e.artistMetadata,n.uint32(10).fork()).ldelim(),void 0!==e.artistCollectionState&&u.ArtistCollectionState.encode(e.artistCollectionState,n.uint32(18).fork()).ldelim(),void 0!==e.artistSyncState&&m.ArtistSyncState.encode(e.artistSyncState,n.uint32(26).fork()).ldelim(),!0===e.decorated&&n.uint32(32).bool(e.decorated);for(const o of e.album)t.CollectionAlbum.encode(o,n.uint32(42).fork()).ldelim();return""!==e.link&&n.uint32(50).string(e.link),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,decorated:!1,album:[],link:""};for(;o.pos>>3){case 1:a.artistMetadata=h.ArtistMetadata.decode(o,o.uint32());break;case 2:a.artistCollectionState=u.ArtistCollectionState.decode(o,o.uint32());break;case 3:a.artistSyncState=m.ArtistSyncState.decode(o,o.uint32());break;case 4:a.decorated=o.bool();break;case 5:a.album.push(t.CollectionAlbum.decode(o,o.uint32()));break;case 6:a.link=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({artistMetadata:A(e.artistMetadata)?h.ArtistMetadata.fromJSON(e.artistMetadata):void 0,artistCollectionState:A(e.artistCollectionState)?u.ArtistCollectionState.fromJSON(e.artistCollectionState):void 0,artistSyncState:A(e.artistSyncState)?m.ArtistSyncState.fromJSON(e.artistSyncState):void 0,decorated:!!A(e.decorated)&&Boolean(e.decorated),album:Array.isArray(e?.album)?e.album.map((e=>t.CollectionAlbum.fromJSON(e))):[],link:A(e.link)?String(e.link):""}),toJSON(e){const n={};return void 0!==e.artistMetadata&&(n.artistMetadata=e.artistMetadata?h.ArtistMetadata.toJSON(e.artistMetadata):void 0),void 0!==e.artistCollectionState&&(n.artistCollectionState=e.artistCollectionState?u.ArtistCollectionState.toJSON(e.artistCollectionState):void 0),void 0!==e.artistSyncState&&(n.artistSyncState=e.artistSyncState?m.ArtistSyncState.toJSON(e.artistSyncState):void 0),void 0!==e.decorated&&(n.decorated=e.decorated),e.album?n.album=e.album.map((e=>e?t.CollectionAlbum.toJSON(e):void 0)):n.album=[],void 0!==e.link&&(n.link=e.link),n},fromPartial(e){const n={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,decorated:!1,album:[],link:""};return n.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?h.ArtistMetadata.fromPartial(e.artistMetadata):void 0,n.artistCollectionState=void 0!==e.artistCollectionState&&null!==e.artistCollectionState?u.ArtistCollectionState.fromPartial(e.artistCollectionState):void 0,n.artistSyncState=void 0!==e.artistSyncState&&null!==e.artistSyncState?m.ArtistSyncState.fromPartial(e.artistSyncState):void 0,n.decorated=e.decorated??!1,n.album=e.album?.map((e=>t.CollectionAlbum.fromPartial(e)))||[],n.link=e.link??"",n}},t.CollectionShow={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showMetadata&&g.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&v.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&y.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),0!==e.addTime&&t.uint32(32).uint32(e.addTime),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,addTime:0,link:""};for(;n.pos>>3){case 1:i.showMetadata=g.ShowMetadata.decode(n,n.uint32());break;case 2:i.showCollectionState=v.ShowCollectionState.decode(n,n.uint32());break;case 3:i.showPlayState=y.ShowPlayState.decode(n,n.uint32());break;case 4:i.addTime=n.uint32();break;case 5:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showMetadata:A(e.showMetadata)?g.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:A(e.showCollectionState)?v.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:A(e.showPlayState)?y.ShowPlayState.fromJSON(e.showPlayState):void 0,addTime:A(e.addTime)?Number(e.addTime):0,link:A(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?g.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?v.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?y.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,addTime:0,link:""};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?g.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?v.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?y.ShowPlayState.fromPartial(e.showPlayState):void 0,t.addTime=e.addTime??0,t.link=e.link??"",t}},t.CollectionEpisode={encode:(e,n=r.default.Writer.create())=>(void 0!==e.episodeMetadata&&_.EpisodeMetadata.encode(e.episodeMetadata,n.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&b.EpisodeCollectionState.encode(e.episodeCollectionState,n.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&S.EpisodeSyncState.encode(e.episodeOfflineState,n.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&E.EpisodePlayState.encode(e.episodePlayState,n.uint32(34).fork()).ldelim(),void 0!==e.show&&t.CollectionShow.encode(e.show,n.uint32(42).fork()).ldelim(),""!==e.link&&n.uint32(50).string(e.link),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,show:void 0,link:""};for(;o.pos>>3){case 1:a.episodeMetadata=_.EpisodeMetadata.decode(o,o.uint32());break;case 2:a.episodeCollectionState=b.EpisodeCollectionState.decode(o,o.uint32());break;case 3:a.episodeOfflineState=S.EpisodeSyncState.decode(o,o.uint32());break;case 4:a.episodePlayState=E.EpisodePlayState.decode(o,o.uint32());break;case 5:a.show=t.CollectionShow.decode(o,o.uint32());break;case 6:a.link=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeMetadata:A(e.episodeMetadata)?_.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:A(e.episodeCollectionState)?b.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:A(e.episodeOfflineState)?S.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:A(e.episodePlayState)?E.EpisodePlayState.fromJSON(e.episodePlayState):void 0,show:A(e.show)?t.CollectionShow.fromJSON(e.show):void 0,link:A(e.link)?String(e.link):""}),toJSON(e){const n={};return void 0!==e.episodeMetadata&&(n.episodeMetadata=e.episodeMetadata?_.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(n.episodeCollectionState=e.episodeCollectionState?b.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(n.episodeOfflineState=e.episodeOfflineState?S.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(n.episodePlayState=e.episodePlayState?E.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.show&&(n.show=e.show?t.CollectionShow.toJSON(e.show):void 0),void 0!==e.link&&(n.link=e.link),n},fromPartial(e){const n={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,show:void 0,link:""};return n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?_.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?b.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?S.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?E.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n.show=void 0!==e.show&&null!==e.show?t.CollectionShow.fromPartial(e.show):void 0,n.link=e.link??"",n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},72159:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionTrackListOfflineStatusResponse=t.CollectionTrackListOfflineStatusRequest=t.CollectionOfflineTrackListResponse=t.CollectionOfflineTrackListRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);function s(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionOfflineTrackListRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.id&&t.uint32(10).string(e.id),""!==e.sort&&t.uint32(18).string(e.sort),""!==e.filter&&t.uint32(26).string(e.filter),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={id:"",sort:"",filter:""};for(;n.pos>>3){case 1:i.id=n.string();break;case 2:i.sort=n.string();break;case 3:i.filter=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({id:s(e.id)?String(e.id):"",sort:s(e.sort)?String(e.sort):"",filter:s(e.filter)?String(e.filter):""}),toJSON(e){const t={};return void 0!==e.id&&(t.id=e.id),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),t},fromPartial(e){const t={id:"",sort:"",filter:""};return t.id=e.id??"",t.sort=e.sort??"",t.filter=e.filter??"",t}},t.CollectionOfflineTrackListResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},t.CollectionTrackListOfflineStatusRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.CollectionTrackListOfflineStatusResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),!0===e.offline&&t.uint32(16).bool(e.offline),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0,offline:!1};for(;n.pos>>3){case 1:i.status=a.Status.decode(n,n.uint32());break;case 2:i.offline=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:s(e.status)?a.Status.fromJSON(e.status):void 0,offline:!!s(e.offline)&&Boolean(e.offline)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t={status:void 0,offline:!1};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t.offline=e.offline??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},60778:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlayResponse=t.CollectionPlayRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(20373),s=n(41308),l=n(69746),c=n(70650),u=n(68222),d=n(62908);function p(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.CollectionPlayRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.sort&&t.uint32(10).string(e.sort),""!==e.filter&&t.uint32(18).string(e.filter),!0===e.groupByInitial&&t.uint32(24).bool(e.groupByInitial),void 0!==e.context&&a.Context.encode(e.context,t.uint32(34).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(42).fork()).ldelim(),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(50).fork()).ldelim(),void 0!==e.preparePlayOptions&&c.PreparePlayOptions.encode(e.preparePlayOptions,t.uint32(58).fork()).ldelim(),void 0!==e.playOrigin&&u.PlayOrigin.encode(e.playOrigin,t.uint32(66).fork()).ldelim(),""!==e.id&&t.uint32(74).string(e.id),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={sort:"",filter:"",groupByInitial:!1,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0,id:""};for(;n.pos>>3){case 1:i.sort=n.string();break;case 2:i.filter=n.string();break;case 3:i.groupByInitial=n.bool();break;case 4:i.context=a.Context.decode(n,n.uint32());break;case 5:i.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 6:i.loggingParams=l.LoggingParams.decode(n,n.uint32());break;case 7:i.preparePlayOptions=c.PreparePlayOptions.decode(n,n.uint32());break;case 8:i.playOrigin=u.PlayOrigin.decode(n,n.uint32());break;case 9:i.id=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({sort:p(e.sort)?String(e.sort):"",filter:p(e.filter)?String(e.filter):"",groupByInitial:!!p(e.groupByInitial)&&Boolean(e.groupByInitial),context:p(e.context)?a.Context.fromJSON(e.context):void 0,playOptions:p(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,loggingParams:p(e.loggingParams)?l.LoggingParams.fromJSON(e.loggingParams):void 0,preparePlayOptions:p(e.preparePlayOptions)?c.PreparePlayOptions.fromJSON(e.preparePlayOptions):void 0,playOrigin:p(e.playOrigin)?u.PlayOrigin.fromJSON(e.playOrigin):void 0,id:p(e.id)?String(e.id):""}),toJSON(e){const t={};return void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.groupByInitial&&(t.groupByInitial=e.groupByInitial),void 0!==e.context&&(t.context=e.context?a.Context.toJSON(e.context):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=e.preparePlayOptions?c.PreparePlayOptions.toJSON(e.preparePlayOptions):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?u.PlayOrigin.toJSON(e.playOrigin):void 0),void 0!==e.id&&(t.id=e.id),t},fromPartial(e){const t={sort:"",filter:"",groupByInitial:!1,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0,id:""};return t.sort=e.sort??"",t.filter=e.filter??"",t.groupByInitial=e.groupByInitial??!1,t.context=void 0!==e.context&&null!==e.context?a.Context.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?c.PreparePlayOptions.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?u.PlayOrigin.fromPartial(e.playOrigin):void 0,t.id=e.id??"",t}},t.CollectionPlayResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&d.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos>>3==1)i.status=d.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({status:p(e.status)?d.Status.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?d.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?d.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94503:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionUnplayedResponse=t.CollectionUnplayedRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(62908);t.protobufPackage="spotify.collection_esperanto.proto",t.CollectionUnplayedRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:[]};for(;n.pos>>3==1)i.uri.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.CollectionUnplayedResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.status&&a.Status.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:void 0};for(;n.pos>>3==1)i.status=a.Status.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){return{status:(t=e.status,null!=t?a.Status.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.Status.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.Status.fromPartial(e.status):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},42676:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackListMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.TrackListMetadata={encode:(e,t=r.default.Writer.create())=>(0!==e.unfilteredLength&&t.uint32(8).uint32(e.unfilteredLength),0!==e.length&&t.uint32(16).uint32(e.length),""!==e.offline&&t.uint32(26).string(e.offline),0!==e.syncProgress&&t.uint32(32).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={unfilteredLength:0,length:0,offline:"",syncProgress:0};for(;n.pos>>3){case 1:i.unfilteredLength=n.uint32();break;case 2:i.length=n.uint32();break;case 3:i.offline=n.string();break;case 4:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({unfilteredLength:a(e.unfilteredLength)?Number(e.unfilteredLength):0,length:a(e.length)?Number(e.length):0,offline:a(e.offline)?String(e.offline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.unfilteredLength&&(t.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={unfilteredLength:0,length:0,offline:"",syncProgress:0};return t.unfilteredLength=e.unfilteredLength??0,t.length=e.length??0,t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},20373:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(22021),s=n(989);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=r.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,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoaded:!1,restrictions:void 0};for(;o.pos>>3){case 1:l.pages.push(a.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoaded=o.bool();break;case 6:l.restrictions=s.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(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){const t={pages:[],metadata:{},uri:"",url:"",isLoaded:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>a.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoaded=e.isLoaded??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?s.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},22021:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(75422);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=r.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,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoaded:!1};for(;o.pos>>3){case 1:s.tracks.push(a.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoaded=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(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){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoaded:!1};return t.tracks=e.tracks?.map((e=>a.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoaded=e.isLoaded??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},52710:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(74405);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},75422:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=r.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,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.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){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},69746:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(74405);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(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){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?a.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?a.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},74405:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},41308:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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 m(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=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:m(e.reason)?c(e.reason):0,operation:m(e.operation)?d(e.operation):0,trigger:m(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){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},68222:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=r.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""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};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;case 8:i.restrictionIdentifier=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(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:a(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),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=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},70650:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(28913),s=n(74405),l=n(52710);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 m(){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=r.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,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const c=m();for(;o.pos>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=a.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=s.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=l.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.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(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){const t=m();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?a.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?s.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?l.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var g=(()=>{if(void 0!==g)return g;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=g.atob||(e=>g.Buffer.from(e,"base64").toString("binary"));function y(e){const t=v(e),n=new Uint8Array(t.length);for(let e=0;eg.Buffer.from(e,"binary").toString("base64"));function b(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},989:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=r.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);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:[],disallowAddToQueueReasons:[]};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;case 22:i.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.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=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},28913:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(74405);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?a.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?a.OptionalInt64.fromPartial(e.trackIndex):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},61286:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",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;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return a.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return a.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return a.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return a.USER_COMMENTS;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";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";case a.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case a.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case a.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case a.USER_COMMENTS:return"USER_COMMENTS";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},78318:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumMetadata=t.AlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.AlbumMetadata={encode(e,n=r.default.Writer.create()){for(const o of e.artists)t.AlbumArtistMetadata.encode(o,n.uint32(10).fork()).ldelim();""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name);for(const t of e.copyright)n.uint32(34).string(t);return void 0!==e.covers&&a.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),0!==e.year&&n.uint32(48).uint32(e.year),0!==e.numDiscs&&n.uint32(56).uint32(e.numDiscs),0!==e.numTracks&&n.uint32(64).uint32(e.numTracks),!0===e.playability&&n.uint32(72).bool(e.playability),!0===e.isPremiumOnly&&n.uint32(80).bool(e.isPremiumOnly),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};for(;o.pos>>3){case 1:s.artists.push(t.AlbumArtistMetadata.decode(o,o.uint32()));break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.copyright.push(o.string());break;case 5:s.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:s.year=o.uint32();break;case 7:s.numDiscs=o.uint32();break;case 8:s.numTracks=o.uint32();break;case 9:s.playability=o.bool();break;case 10:s.isPremiumOnly=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artists:Array.isArray(e?.artists)?e.artists.map((e=>t.AlbumArtistMetadata.fromJSON(e))):[],link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,year:s(e.year)?Number(e.year):0,numDiscs:s(e.numDiscs)?Number(e.numDiscs):0,numTracks:s(e.numTracks)?Number(e.numTracks):0,playability:!!s(e.playability)&&Boolean(e.playability),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const n={};return e.artists?n.artists=e.artists.map((e=>e?t.AlbumArtistMetadata.toJSON(e):void 0)):n.artists=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),e.copyright?n.copyright=e.copyright.map((e=>e)):n.copyright=[],void 0!==e.covers&&(n.covers=e.covers?a.ImageGroup.toJSON(e.covers):void 0),void 0!==e.year&&(n.year=Math.round(e.year)),void 0!==e.numDiscs&&(n.numDiscs=Math.round(e.numDiscs)),void 0!==e.numTracks&&(n.numTracks=Math.round(e.numTracks)),void 0!==e.playability&&(n.playability=e.playability),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),n},fromPartial(e){const n={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};return n.artists=e.artists?.map((e=>t.AlbumArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.copyright=e.copyright?.map((e=>e))||[],n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.year=e.year??0,n.numDiscs=e.numDiscs??0,n.numTracks=e.numTracks??0,n.playability=e.playability??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},91864:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(64561);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistMetadata={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),void 0!==e.portraits&&a.ImageGroup.encode(e.portraits,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",isVariousArtists:!1,portraits:void 0};for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.isVariousArtists=n.bool();break;case 4: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):"",isVariousArtists:!!s(e.isVariousArtists)&&Boolean(e.isVariousArtists),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.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",isVariousArtists:!1,portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.isVariousArtists=e.isVariousArtists??!1,t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},15400:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(64561),s=n(55230);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={encode:(e,t=r.default.Writer.create())=>(""!==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&&a.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};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=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},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){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.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&&a.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&&a.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)s.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),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={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};for(;o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=a.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(s.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;default:o.skipType(7&e)}}return l},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(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){const n={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 n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},55230:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(61286);function s(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;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=>({extensionKind:p(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,data:p(e.data)?u(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 d(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=s();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;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 c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));function u(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;el.Buffer.from(e,"binary").toString("base64"));function p(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},64561:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},58894:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(64561),s=n(55230);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={encode(e,t=r.default.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)s.Extension.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={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};for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.description=n.string();break;case 4:i.popularity=n.uint32();break;case 5:i.publisher=n.string();break;case 6:i.language=n.string();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=a.ImageGroup.decode(n,n.uint32());break;case 9:i.numEpisodes=n.uint32();break;case 10:i.consumptionOrder=n.string();break;case 11:i.mediaTypeEnum=n.int32();break;case 12:i.copyright.push(n.string());break;case 13:i.trailerUri=n.string();break;case 14:i.isMusicAndTalk=n.bool();break;case 15:i.extension.push(s.Extension.decode(n,n.uint32()));break;case 16:i.isBook=n.bool();break;case 17:i.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return i},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(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(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){const t={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 t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},44676:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(64561),s=n(55230);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:l(e.link)?String(e.link):"",name:l(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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artist:l(e.artist)?t.TrackAlbumArtistMetadata.fromJSON(e.artist):void 0,link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",covers:l(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){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",portraits:l(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){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:l(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,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 o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)s.Extension.encode(t,n.uint32(162).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.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:[],extension:[]};for(;o.pos>>3){case 1:a.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:a.link=o.string();break;case 4:a.name=o.string();break;case 5:a.length=o.uint32();break;case 6:a.playable=o.bool();break;case 7:a.discNumber=o.uint32();break;case 8:a.trackNumber=o.uint32();break;case 9:a.isExplicit=o.bool();break;case 10:a.previewId=o.string();break;case 11:a.isLocal=o.bool();break;case 12:a.playableLocalTrack=o.bool();break;case 13:a.hasLyrics=o.bool();break;case 14:a.isPremiumOnly=o.bool();break;case 15:a.locallyPlayable=o.bool();break;case 16:a.playableTrackLink=o.string();break;case 17:a.popularity=o.uint32();break;case 18:a.is19PlusOnly=o.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:a.extension.push(s.Extension.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({album:l(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(e?.artist)?e.artist.map((e=>t.TrackArtistMetadata.fromJSON(e))):[],link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",length:l(e.length)?Number(e.length):0,playable:!!l(e.playable)&&Boolean(e.playable),discNumber:l(e.discNumber)?Number(e.discNumber):0,trackNumber:l(e.trackNumber)?Number(e.trackNumber):0,isExplicit:!!l(e.isExplicit)&&Boolean(e.isExplicit),previewId:l(e.previewId)?String(e.previewId):"",isLocal:!!l(e.isLocal)&&Boolean(e.isLocal),playableLocalTrack:!!l(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),hasLyrics:!!l(e.hasLyrics)&&Boolean(e.hasLyrics),isPremiumOnly:!!l(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),locallyPlayable:!!l(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableTrackLink:l(e.playableTrackLink)?String(e.playableTrackLink):"",popularity:l(e.popularity)?Number(e.popularity):0,is19PlusOnly:!!l(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:Array.isArray(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>s.Extension.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=[],e.extension?n.extension=e.extension.map((e=>e?s.Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n={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:[],extension:[]};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},83664:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(29683);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};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=>({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){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},29683:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},9589:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.showPlayState_LabelToJSON=t.showPlayState_LabelFromJSON=t.ShowPlayState_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(29683);var s;function l(e){switch(e){case 0:case"UNKNOWN_LABEL":return s.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return s.NOT_STARTED;case 2:case"IN_PROGRESS":return s.IN_PROGRESS;case 3:case"COMPLETED":return s.COMPLETED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case s.NOT_STARTED:return"NOT_STARTED";case s.IN_PROGRESS:return"IN_PROGRESS";case s.COMPLETED:return"COMPLETED";default:return"UNKNOWN"}}function u(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.ShowPlayState_Label||(t.ShowPlayState_Label={})),t.showPlayState_LabelFromJSON=l,t.showPlayState_LabelToJSON=c,t.ShowPlayState={encode:(e,t=r.default.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),"0"!==e.playedTime&&t.uint32(16).uint64(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};for(;n.pos>>3){case 1:i.latestPlayedEpisodeLink=n.string();break;case 2:i.playedTime=n.uint64().toString();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.int32();break;case 5:i.label=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:u(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:u(e.playedTime)?String(e.playedTime):"0",isPlayable:!!u(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:u(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0,label:u(e.label)?l(e.label):0}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),void 0!==e.label&&(t.label=c(e.label)),t},fromPartial(e){const t={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??"0",t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},1772:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(29683);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackPlayState={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isPlayable:!1,playabilityRestriction:0};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=>({isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:s(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},71072:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},39974:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},17653:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(61286);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};for(;n.pos>>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.pos({link:!!s(e.link)&&Boolean(e.link),length:!!s(e.length)&&Boolean(e.length),name:!!s(e.name)&&Boolean(e.name),manifestId:!!s(e.manifestId)&&Boolean(e.manifestId),previewId:!!s(e.previewId)&&Boolean(e.previewId),previewManifestId:!!s(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!s(e.description)&&Boolean(e.description),publishDate:!!s(e.publishDate)&&Boolean(e.publishDate),covers:!!s(e.covers)&&Boolean(e.covers),freezeFrames:!!s(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!s(e.language)&&Boolean(e.language),available:!!s(e.available)&&Boolean(e.available),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!s(e.number)&&Boolean(e.number),backgroundable:!!s(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),type:!!s(e.type)&&Boolean(e.type),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!s(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!s(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isInListenLater:!1,isNew:!1};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=>({isFollowingShow:!!s(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!s(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!s(e.isNew)&&Boolean(e.isNew)}),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={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};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=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};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=>({timeLeft:!!s(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),playable:!!s(e.playable)&&Boolean(e.playable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!s(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),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={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},61473:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(61286);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos>>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.pos({link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),description:!!s(e.description)&&Boolean(e.description),popularity:!!s(e.popularity)&&Boolean(e.popularity),publisher:!!s(e.publisher)&&Boolean(e.publisher),language:!!s(e.language)&&Boolean(e.language),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),covers:!!s(e.covers)&&Boolean(e.covers),numEpisodes:!!s(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!s(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!s(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!s(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],isBook:!!s(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!s(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=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),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos>>3){case 1:i.latestPlayedEpisodeLink=n.bool();break;case 2:i.playedTime=n.bool();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.label=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:!!s(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!s(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!s(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isInCollection:!!s(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};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=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82817:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(61286);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=r.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.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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,extension:[]};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;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({hasLyrics:!!s(e.hasLyrics)&&Boolean(e.hasLyrics),link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),length:!!s(e.length)&&Boolean(e.length),playable:!!s(e.playable)&&Boolean(e.playable),isAvailableInMetadataCatalogue:!!s(e.isAvailableInMetadataCatalogue)&&Boolean(e.isAvailableInMetadataCatalogue),locallyPlayable:!!s(e.locallyPlayable)&&Boolean(e.locallyPlayable),playableLocalTrack:!!s(e.playableLocalTrack)&&Boolean(e.playableLocalTrack),discNumber:!!s(e.discNumber)&&Boolean(e.discNumber),trackNumber:!!s(e.trackNumber)&&Boolean(e.trackNumber),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),previewId:!!s(e.previewId)&&Boolean(e.previewId),isLocal:!!s(e.isLocal)&&Boolean(e.isLocal),isPremiumOnly:!!s(e.isPremiumOnly)&&Boolean(e.isPremiumOnly),playableTrackLink:!!s(e.playableTrackLink)&&Boolean(e.playableTrackLink),popularity:!!s(e.popularity)&&Boolean(e.popularity),is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),trackDescriptors:!!s(e.trackDescriptors)&&Boolean(e.trackDescriptors),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[]}),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),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],t},fromPartial(e){const t={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,extension:[]};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:!!s(e.playable)&&Boolean(e.playable),isCurrentlyPlayable:!!s(e.isCurrentlyPlayable)&&Boolean(e.isCurrentlyPlayable),playabilityRestriction:!!s(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){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:!!s(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!s(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!s(e.isBanned)&&Boolean(e.isBanned),canBan:!!s(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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:!!s(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!s(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){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},62908:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Status=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.collection_cosmos.proto",t.Status={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0,reason:""};for(;n.pos>>3){case 1:i.code=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({code:a(e.code)?Number(e.code):0,reason:a(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},3103:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos>>3){case 1:i.offline=n.string();break;case 2:i.inferredOffline=n.string();break;case 3:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):"",inferredOffline:a(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13922:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistSyncState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos>>3){case 1:i.offline=n.string();break;case 2:i.inferredOffline=n.string();break;case 3:i.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({offline:a(e.offline)?String(e.offline):"",inferredOffline:a(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},26909:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:"",syncProgress:0};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=>({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){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},8151:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackSyncState={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",syncProgress:0};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=>({offline:a(e.offline)?String(e.offline):"",syncProgress:a(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},90354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectServiceClient=void 0;const o=n(33892),i=n(95866);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}state(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="State",a=i.StateRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.StateResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}startDiscovery(e){const t="spotify.connect.esperanto.proto.ConnectService",n="StartDiscovery",r=i.StartDiscoveryRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.StartDiscoveryResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}forceDiscover(e){const t="spotify.connect.esperanto.proto.ConnectService",n="ForceDiscover",r=i.ForceDiscoverRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.ForceDiscoverResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}performDiscovery(e){const t="spotify.connect.esperanto.proto.ConnectService",n="PerformDiscovery",r=i.PerformDiscoveryRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PerformDiscoveryResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}pickerOpened(e){const t="spotify.connect.esperanto.proto.ConnectService",n="PickerOpened",r=i.PickerOpenedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PickerOpenedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}logout(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Logout",r=i.LogoutRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.LogoutResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}transfer(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Transfer",r=i.TransferRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.TransferResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}cancelTransfer(e){const t="spotify.connect.esperanto.proto.ConnectService",n="CancelTransfer",r=i.CancelTransferRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CancelTransferResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}pull(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Pull",r=i.PullRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PullResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volumeUp(e){const t="spotify.connect.esperanto.proto.ConnectService",n="VolumeUp",r=i.VolumeUpRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.VolumeUpResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volumeDown(e){const t="spotify.connect.esperanto.proto.ConnectService",n="VolumeDown",r=i.VolumeDownRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.VolumeDownResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volumeSet(e){const t="spotify.connect.esperanto.proto.ConnectService",n="VolumeSet",r=i.VolumeSetRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.VolumeSetResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}volume(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="Volume",a=i.VolumeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.VolumeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}localVolume(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="LocalVolume",a=i.LocalVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.LocalVolumeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}setDebugLevel(e){const t="spotify.connect.esperanto.proto.ConnectService",n="SetDebugLevel",r=i.SetDebugLevelRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.SetDebugLevelResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getDebugLevel(e){const t="spotify.connect.esperanto.proto.ConnectService",n="GetDebugLevel",r=i.GetDebugLevelRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetDebugLevelResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}becomeInactive(e){const t="spotify.connect.esperanto.proto.ConnectService",n="BecomeInactive",r=i.BecomeInactiveRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.BecomeInactiveResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}rename(e){const t="spotify.connect.esperanto.proto.ConnectService",n="Rename",r=i.RenameRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.RenameResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}onEnablingLocalPlayback(e,t){const n="spotify.connect.esperanto.proto.ConnectService",r="OnEnablingLocalPlayback",a=i.OnEnablingLocalPlaybackRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.OnEnablingLocalPlaybackResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}setPreferredZeroconf(e){const t="spotify.connect.esperanto.proto.ConnectService",n="SetPreferredZeroconf",r=i.SetPreferredZeroconfRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.SetPreferredZeroconfResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.connect.esperanto.proto.ConnectService";static DECODERS={State:{request:i.StateRequest.decode,response:i.StateResponse.decode},StartDiscovery:{request:i.StartDiscoveryRequest.decode,response:i.StartDiscoveryResponse.decode},ForceDiscover:{request:i.ForceDiscoverRequest.decode,response:i.ForceDiscoverResponse.decode},PerformDiscovery:{request:i.PerformDiscoveryRequest.decode,response:i.PerformDiscoveryResponse.decode},PickerOpened:{request:i.PickerOpenedRequest.decode,response:i.PickerOpenedResponse.decode},Logout:{request:i.LogoutRequest.decode,response:i.LogoutResponse.decode},Transfer:{request:i.TransferRequest.decode,response:i.TransferResponse.decode},CancelTransfer:{request:i.CancelTransferRequest.decode,response:i.CancelTransferResponse.decode},Pull:{request:i.PullRequest.decode,response:i.PullResponse.decode},VolumeUp:{request:i.VolumeUpRequest.decode,response:i.VolumeUpResponse.decode},VolumeDown:{request:i.VolumeDownRequest.decode,response:i.VolumeDownResponse.decode},VolumeSet:{request:i.VolumeSetRequest.decode,response:i.VolumeSetResponse.decode},Volume:{request:i.VolumeRequest.decode,response:i.VolumeResponse.decode},LocalVolume:{request:i.LocalVolumeRequest.decode,response:i.LocalVolumeResponse.decode},SetDebugLevel:{request:i.SetDebugLevelRequest.decode,response:i.SetDebugLevelResponse.decode},GetDebugLevel:{request:i.GetDebugLevelRequest.decode,response:i.GetDebugLevelResponse.decode},BecomeInactive:{request:i.BecomeInactiveRequest.decode,response:i.BecomeInactiveResponse.decode},Rename:{request:i.RenameRequest.decode,response:i.RenameResponse.decode},OnEnablingLocalPlayback:{request:i.OnEnablingLocalPlaybackRequest.decode,response:i.OnEnablingLocalPlaybackResponse.decode},SetPreferredZeroconf:{request:i.SetPreferredZeroconfRequest.decode,response:i.SetPreferredZeroconfResponse.decode}}}t.ConnectServiceClient=r},43364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnboardingServiceClient=void 0;const o=n(33892),i=n(95866);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}onOnboarding(e,t){const n="spotify.connect.esperanto.proto.OnboardingService",r="OnOnboarding",a=i.OnOnboardingRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.OnOnboardingResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}reportFlow(e){const t="spotify.connect.esperanto.proto.OnboardingService",n="ReportFlow",r=i.ReportFlowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.ReportFlowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}clearFlow(e){const t="spotify.connect.esperanto.proto.OnboardingService",n="ClearFlow",r=i.ClearFlowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.ClearFlowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}triggerFlow(e){const t="spotify.connect.esperanto.proto.OnboardingService",n="TriggerFlow",r=i.TriggerFlowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.TriggerFlowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.connect.esperanto.proto.OnboardingService";static DECODERS={OnOnboarding:{request:i.OnOnboardingRequest.decode,response:i.OnOnboardingResponse.decode},ReportFlow:{request:i.ReportFlowRequest.decode,response:i.ReportFlowResponse.decode},ClearFlow:{request:i.ClearFlowRequest.decode,response:i.ClearFlowResponse.decode},TriggerFlow:{request:i.TriggerFlowRequest.decode,response:i.TriggerFlowResponse.decode}}}t.OnboardingServiceClient=r},49264:(e,t,n)=>{"use strict";t.M$=t.iu=t.Qb=t.bU=void 0;var o=n(95866);Object.defineProperty(t,"bU",{enumerable:!0,get:function(){return o.StartDiscoveryRequest}}),Object.defineProperty(t,"Qb",{enumerable:!0,get:function(){return o.ForceDiscoverRequest}}),Object.defineProperty(t,"iu",{enumerable:!0,get:function(){return o.LogoutRequest}});var i=n(90354);Object.defineProperty(t,"M$",{enumerable:!0,get:function(){return i.ConnectServiceClient}});var r=n(43364)},95866:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OnEnablingLocalPlaybackResponse=t.OnEnablingLocalPlaybackRequest=t.RenameResponse=t.RenameRequest=t.BecomeInactiveResponse=t.BecomeInactiveRequest=t.GetDebugLevelResponse=t.GetDebugLevelRequest=t.SetDebugLevelResponse=t.SetDebugLevelRequest=t.StateResponse_Device_Incarnation=t.StateResponse_Device_Hifi=t.StateResponse_Device=t.StateResponse=t.StateRequest=t.VolumeResponse=t.VolumeRequest=t.VolumeSetResponse=t.VolumeSetRequest=t.VolumeDownResponse=t.VolumeDownRequest=t.VolumeUpResponse=t.VolumeUpRequest=t.PullResponse=t.PullRequest=t.CancelTransferResponse=t.CancelTransferRequest=t.TransferResponse=t.TransferRequest=t.LogoutResponse=t.LogoutRequest=t.PickerOpenedResponse=t.PickerOpenedRequest=t.PerformDiscoveryResponse=t.PerformDiscoveryRequest=t.StartDiscoveryResponse=t.StartDiscoveryRequest=t.ForceDiscoverResponse=t.ForceDiscoverRequest=t.LoggingParams=t.localVolumeResponse_ReasonToJSON=t.localVolumeResponse_ReasonFromJSON=t.LocalVolumeResponse_Reason=t.loginTypeToJSON=t.loginTypeFromJSON=t.LoginType=t.statusToJSON=t.statusFromJSON=t.Status=t.protobufPackage=void 0,t.TriggerFlowResponse=t.TriggerFlowRequest=t.ClearFlowResponse=t.ClearFlowRequest=t.ReportFlowResponse=t.ReportFlowRequest=t.OnOnboardingResponse=t.OnOnboardingRequest=t.LocalVolumeResponse=t.LocalVolumeRequest=t.SetPreferredZeroconfResponse=t.SetPreferredZeroconfRequest=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_FOUND":return a.NOT_FOUND;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.OK:return"OK";case a.NOT_FOUND:return"NOT_FOUND";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"CONNECT":return s.CONNECT;case 1:case"CAST":return s.CAST;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.CONNECT:return"CONNECT";case s.CAST:return"CAST";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"USER":return l.USER;case 1:case"SYSTEM":return l.SYSTEM;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.USER:return"USER";case l.SYSTEM:return"SYSTEM";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){return e.toString()}function g(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=c,t.statusToJSON=u,function(e){e[e.CONNECT=0]="CONNECT",e[e.CAST=1]="CAST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.LoginType||(t.LoginType={})),t.loginTypeFromJSON=d,t.loginTypeToJSON=p,function(e){e[e.USER=0]="USER",e[e.SYSTEM=1]="SYSTEM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.LocalVolumeResponse_Reason||(t.LocalVolumeResponse_Reason={})),t.localVolumeResponse_ReasonFromJSON=f,t.localVolumeResponse_ReasonToJSON=h,t.LoggingParams={encode(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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=m(n.int64());break;case 2:i.commandReceivedTime=m(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:g(e.commandInitiatedTime)?String(e.commandInitiatedTime):void 0,commandReceivedTime:g(e.commandReceivedTime)?String(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(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){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[]};return t.commandInitiatedTime=e.commandInitiatedTime??void 0,t.commandReceivedTime=e.commandReceivedTime??void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t}},t.ForceDiscoverRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.ForceDiscoverResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.StartDiscoveryRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.StartDiscoveryResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PerformDiscoveryRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PerformDiscoveryResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PickerOpenedRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PickerOpenedResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.LogoutRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.connectDeviceIdentifier&&t.uint32(10).string(e.connectDeviceIdentifier),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={connectDeviceIdentifier:""};for(;n.pos>>3==1)i.connectDeviceIdentifier=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({connectDeviceIdentifier:g(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.connectDeviceIdentifier&&(t.connectDeviceIdentifier=e.connectDeviceIdentifier),t},fromPartial(e){const t={connectDeviceIdentifier:""};return t.connectDeviceIdentifier=e.connectDeviceIdentifier??"",t}},t.LogoutResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.TransferRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),""!==e.connectDeviceIdentifier&&n.uint32(18).string(e.connectDeviceIdentifier),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0,connectDeviceIdentifier:""};for(;o.pos>>3){case 1:a.loggingParams=t.LoggingParams.decode(o,o.uint32());break;case 2:a.connectDeviceIdentifier=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({loggingParams:g(e.loggingParams)?t.LoggingParams.fromJSON(e.loggingParams):void 0,connectDeviceIdentifier:g(e.connectDeviceIdentifier)?String(e.connectDeviceIdentifier):""}),toJSON(e){const n={};return void 0!==e.loggingParams&&(n.loggingParams=e.loggingParams?t.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.connectDeviceIdentifier&&(n.connectDeviceIdentifier=e.connectDeviceIdentifier),n},fromPartial(e){const n={loggingParams:void 0,connectDeviceIdentifier:""};return n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n.connectDeviceIdentifier=e.connectDeviceIdentifier??"",n}},t.TransferResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.CancelTransferRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.CancelTransferResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PullRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0};for(;o.pos>>3==1)a.loggingParams=t.LoggingParams.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({loggingParams:g(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=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeUpRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0};for(;o.pos>>3==1)a.loggingParams=t.LoggingParams.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({loggingParams:g(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=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeDownRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.loggingParams&&t.LoggingParams.encode(e.loggingParams,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={loggingParams:void 0};for(;o.pos>>3==1)a.loggingParams=t.LoggingParams.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({loggingParams:g(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=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeSetRequest={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={volume:0,loggingParams:void 0};for(;o.pos>>3){case 1:a.volume=o.int32();break;case 2:a.loggingParams=t.LoggingParams.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({volume:g(e.volume)?Number(e.volume):0,loggingParams:g(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){const n={volume:0,loggingParams:void 0};return n.volume=e.volume??0,n.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?t.LoggingParams.fromPartial(e.loggingParams):void 0,n}},t.VolumeSetResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.VolumeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.VolumeResponse={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.volume)?Number(e.volume):void 0,status:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={volume:void 0,status:0};return t.volume=e.volume??void 0,t.status=e.status??0,t}},t.StateRequest={encode:(e,t=r.default.Writer.create())=>(!0===e.showOfflineDevicesInCore&&t.uint32(8).bool(e.showOfflineDevicesInCore),!0===e.showOfflineAmazonDevicesAsOnline&&t.uint32(16).bool(e.showOfflineAmazonDevicesAsOnline),!0===e.includeLocalDevice&&t.uint32(24).bool(e.includeLocalDevice),!0===e.excludeNonLocalDevices&&t.uint32(32).bool(e.excludeNonLocalDevices),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showOfflineDevicesInCore:!1,showOfflineAmazonDevicesAsOnline:!1,includeLocalDevice:!1,excludeNonLocalDevices:!1};for(;n.pos>>3){case 1:i.showOfflineDevicesInCore=n.bool();break;case 2:i.showOfflineAmazonDevicesAsOnline=n.bool();break;case 3:i.includeLocalDevice=n.bool();break;case 4:i.excludeNonLocalDevices=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showOfflineDevicesInCore:!!g(e.showOfflineDevicesInCore)&&Boolean(e.showOfflineDevicesInCore),showOfflineAmazonDevicesAsOnline:!!g(e.showOfflineAmazonDevicesAsOnline)&&Boolean(e.showOfflineAmazonDevicesAsOnline),includeLocalDevice:!!g(e.includeLocalDevice)&&Boolean(e.includeLocalDevice),excludeNonLocalDevices:!!g(e.excludeNonLocalDevices)&&Boolean(e.excludeNonLocalDevices)}),toJSON(e){const t={};return void 0!==e.showOfflineDevicesInCore&&(t.showOfflineDevicesInCore=e.showOfflineDevicesInCore),void 0!==e.showOfflineAmazonDevicesAsOnline&&(t.showOfflineAmazonDevicesAsOnline=e.showOfflineAmazonDevicesAsOnline),void 0!==e.includeLocalDevice&&(t.includeLocalDevice=e.includeLocalDevice),void 0!==e.excludeNonLocalDevices&&(t.excludeNonLocalDevices=e.excludeNonLocalDevices),t},fromPartial(e){const t={showOfflineDevicesInCore:!1,showOfflineAmazonDevicesAsOnline:!1,includeLocalDevice:!1,excludeNonLocalDevices:!1};return t.showOfflineDevicesInCore=e.showOfflineDevicesInCore??!1,t.showOfflineAmazonDevicesAsOnline=e.showOfflineAmazonDevicesAsOnline??!1,t.includeLocalDevice=e.includeLocalDevice??!1,t.excludeNonLocalDevices=e.excludeNonLocalDevices??!1,t}},t.StateResponse={encode(e,n=r.default.Writer.create()){!0===e.isRunning&&n.uint32(8).bool(e.isRunning),!0===e.isConnected&&n.uint32(16).bool(e.isConnected),""!==e.localName&&n.uint32(26).string(e.localName),!0===e.shouldUseLocalPlayback&&n.uint32(32).bool(e.shouldUseLocalPlayback);for(const o of e.devices)t.StateResponse_Device.encode(o,n.uint32(42).fork()).ldelim();return!0===e.isActive&&n.uint32(48).bool(e.isActive),!0===e.isActiveOnSameDevice&&n.uint32(56).bool(e.isActiveOnSameDevice),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={isRunning:!1,isConnected:!1,localName:"",shouldUseLocalPlayback:!1,devices:[],isActive:!1,isActiveOnSameDevice:!1};for(;o.pos>>3){case 1:a.isRunning=o.bool();break;case 2:a.isConnected=o.bool();break;case 3:a.localName=o.string();break;case 4:a.shouldUseLocalPlayback=o.bool();break;case 5:a.devices.push(t.StateResponse_Device.decode(o,o.uint32()));break;case 6:a.isActive=o.bool();break;case 7:a.isActiveOnSameDevice=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({isRunning:!!g(e.isRunning)&&Boolean(e.isRunning),isConnected:!!g(e.isConnected)&&Boolean(e.isConnected),localName:g(e.localName)?String(e.localName):"",shouldUseLocalPlayback:!!g(e.shouldUseLocalPlayback)&&Boolean(e.shouldUseLocalPlayback),devices:Array.isArray(e?.devices)?e.devices.map((e=>t.StateResponse_Device.fromJSON(e))):[],isActive:!!g(e.isActive)&&Boolean(e.isActive),isActiveOnSameDevice:!!g(e.isActiveOnSameDevice)&&Boolean(e.isActiveOnSameDevice)}),toJSON(e){const n={};return void 0!==e.isRunning&&(n.isRunning=e.isRunning),void 0!==e.isConnected&&(n.isConnected=e.isConnected),void 0!==e.localName&&(n.localName=e.localName),void 0!==e.shouldUseLocalPlayback&&(n.shouldUseLocalPlayback=e.shouldUseLocalPlayback),e.devices?n.devices=e.devices.map((e=>e?t.StateResponse_Device.toJSON(e):void 0)):n.devices=[],void 0!==e.isActive&&(n.isActive=e.isActive),void 0!==e.isActiveOnSameDevice&&(n.isActiveOnSameDevice=e.isActiveOnSameDevice),n},fromPartial(e){const n={isRunning:!1,isConnected:!1,localName:"",shouldUseLocalPlayback:!1,devices:[],isActive:!1,isActiveOnSameDevice:!1};return n.isRunning=e.isRunning??!1,n.isConnected=e.isConnected??!1,n.localName=e.localName??"",n.shouldUseLocalPlayback=e.shouldUseLocalPlayback??!1,n.devices=e.devices?.map((e=>t.StateResponse_Device.fromPartial(e)))||[],n.isActive=e.isActive??!1,n.isActiveOnSameDevice=e.isActiveOnSameDevice??!1,n}},t.StateResponse_Device={encode(e,n=r.default.Writer.create()){!0===e.isSelf&&n.uint32(8).bool(e.isSelf),""!==e.localIdentifier&&n.uint32(18).string(e.localIdentifier),""!==e.deduplicationId&&n.uint32(26).string(e.deduplicationId),""!==e.connectStateIdentifier&&n.uint32(34).string(e.connectStateIdentifier),""!==e.name&&n.uint32(42).string(e.name),""!==e.type&&n.uint32(50).string(e.type),""!==e.state&&n.uint32(58).string(e.state),!0===e.isDisabled&&n.uint32(64).bool(e.isDisabled),!0===e.isActive&&n.uint32(72).bool(e.isActive),!0===e.isBeingActivated&&n.uint32(80).bool(e.isBeingActivated),!0===e.isZeroconf&&n.uint32(88).bool(e.isZeroconf),!0===e.isWebapp&&n.uint32(96).bool(e.isWebapp),!0===e.isConnect&&n.uint32(104).bool(e.isConnect),!0===e.isLocal&&n.uint32(112).bool(e.isLocal),!0===e.isGroup&&n.uint32(120).bool(e.isGroup),!0===e.isOffline&&n.uint32(128).bool(e.isOffline),!0===e.isSocialConnect&&n.uint32(136).bool(e.isSocialConnect),"0"!==e.creationTimeMs&&n.uint32(144).uint64(e.creationTimeMs),0!==e.volume&&n.uint32(152).uint32(e.volume),void 0!==e.hifi&&t.StateResponse_Device_Hifi.encode(e.hifi,n.uint32(162).fork()).ldelim(),""!==e.license&&n.uint32(170).string(e.license),!0===e.supportsOnDemand&&n.uint32(176).bool(e.supportsOnDemand),!0===e.supportsVolume&&n.uint32(184).bool(e.supportsVolume),!0===e.supportsLogout&&n.uint32(192).bool(e.supportsLogout),!0===e.supportsRename&&n.uint32(200).bool(e.supportsRename),!0===e.supportsAlarm&&n.uint32(208).bool(e.supportsAlarm),!0===e.isVoiceEnabled&&n.uint32(216).bool(e.isVoiceEnabled),!0===e.isNewlyDiscovered&&n.uint32(224).bool(e.isNewlyDiscovered);for(const t of e.supportedMediaTypes)n.uint32(234).string(t);""!==e.brandDisplayName&&n.uint32(242).string(e.brandDisplayName),""!==e.modelDisplayName&&n.uint32(250).string(e.modelDisplayName),void 0!==e.volumeSteps&&n.uint32(256).uint32(e.volumeSteps),void 0!==e.capabilities&&n.uint32(266).string(e.capabilities);for(const o of e.incarnations)t.StateResponse_Device_Incarnation.encode(o,n.uint32(274).fork()).ldelim();return void 0!==e.aliasId&&n.uint32(280).uint32(e.aliasId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={isSelf:!1,localIdentifier:"",deduplicationId:"",connectStateIdentifier:"",name:"",type:"",state:"",isDisabled:!1,isActive:!1,isBeingActivated:!1,isZeroconf:!1,isWebapp:!1,isConnect:!1,isLocal:!1,isGroup:!1,isOffline:!1,isSocialConnect:!1,creationTimeMs:"0",volume:0,hifi:void 0,license:"",supportsOnDemand:!1,supportsVolume:!1,supportsLogout:!1,supportsRename:!1,supportsAlarm:!1,isVoiceEnabled:!1,isNewlyDiscovered:!1,supportedMediaTypes:[],brandDisplayName:"",modelDisplayName:"",volumeSteps:void 0,capabilities:void 0,incarnations:[],aliasId:void 0};for(;o.pos>>3){case 1:a.isSelf=o.bool();break;case 2:a.localIdentifier=o.string();break;case 3:a.deduplicationId=o.string();break;case 4:a.connectStateIdentifier=o.string();break;case 5:a.name=o.string();break;case 6:a.type=o.string();break;case 7:a.state=o.string();break;case 8:a.isDisabled=o.bool();break;case 9:a.isActive=o.bool();break;case 10:a.isBeingActivated=o.bool();break;case 11:a.isZeroconf=o.bool();break;case 12:a.isWebapp=o.bool();break;case 13:a.isConnect=o.bool();break;case 14:a.isLocal=o.bool();break;case 15:a.isGroup=o.bool();break;case 16:a.isOffline=o.bool();break;case 17:a.isSocialConnect=o.bool();break;case 18:a.creationTimeMs=m(o.uint64());break;case 19:a.volume=o.uint32();break;case 20:a.hifi=t.StateResponse_Device_Hifi.decode(o,o.uint32());break;case 21:a.license=o.string();break;case 22:a.supportsOnDemand=o.bool();break;case 23:a.supportsVolume=o.bool();break;case 24:a.supportsLogout=o.bool();break;case 25:a.supportsRename=o.bool();break;case 26:a.supportsAlarm=o.bool();break;case 27:a.isVoiceEnabled=o.bool();break;case 28:a.isNewlyDiscovered=o.bool();break;case 29:a.supportedMediaTypes.push(o.string());break;case 30:a.brandDisplayName=o.string();break;case 31:a.modelDisplayName=o.string();break;case 32:a.volumeSteps=o.uint32();break;case 33:a.capabilities=o.string();break;case 34:a.incarnations.push(t.StateResponse_Device_Incarnation.decode(o,o.uint32()));break;case 35:a.aliasId=o.uint32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({isSelf:!!g(e.isSelf)&&Boolean(e.isSelf),localIdentifier:g(e.localIdentifier)?String(e.localIdentifier):"",deduplicationId:g(e.deduplicationId)?String(e.deduplicationId):"",connectStateIdentifier:g(e.connectStateIdentifier)?String(e.connectStateIdentifier):"",name:g(e.name)?String(e.name):"",type:g(e.type)?String(e.type):"",state:g(e.state)?String(e.state):"",isDisabled:!!g(e.isDisabled)&&Boolean(e.isDisabled),isActive:!!g(e.isActive)&&Boolean(e.isActive),isBeingActivated:!!g(e.isBeingActivated)&&Boolean(e.isBeingActivated),isZeroconf:!!g(e.isZeroconf)&&Boolean(e.isZeroconf),isWebapp:!!g(e.isWebapp)&&Boolean(e.isWebapp),isConnect:!!g(e.isConnect)&&Boolean(e.isConnect),isLocal:!!g(e.isLocal)&&Boolean(e.isLocal),isGroup:!!g(e.isGroup)&&Boolean(e.isGroup),isOffline:!!g(e.isOffline)&&Boolean(e.isOffline),isSocialConnect:!!g(e.isSocialConnect)&&Boolean(e.isSocialConnect),creationTimeMs:g(e.creationTimeMs)?String(e.creationTimeMs):"0",volume:g(e.volume)?Number(e.volume):0,hifi:g(e.hifi)?t.StateResponse_Device_Hifi.fromJSON(e.hifi):void 0,license:g(e.license)?String(e.license):"",supportsOnDemand:!!g(e.supportsOnDemand)&&Boolean(e.supportsOnDemand),supportsVolume:!!g(e.supportsVolume)&&Boolean(e.supportsVolume),supportsLogout:!!g(e.supportsLogout)&&Boolean(e.supportsLogout),supportsRename:!!g(e.supportsRename)&&Boolean(e.supportsRename),supportsAlarm:!!g(e.supportsAlarm)&&Boolean(e.supportsAlarm),isVoiceEnabled:!!g(e.isVoiceEnabled)&&Boolean(e.isVoiceEnabled),isNewlyDiscovered:!!g(e.isNewlyDiscovered)&&Boolean(e.isNewlyDiscovered),supportedMediaTypes:Array.isArray(e?.supportedMediaTypes)?e.supportedMediaTypes.map((e=>String(e))):[],brandDisplayName:g(e.brandDisplayName)?String(e.brandDisplayName):"",modelDisplayName:g(e.modelDisplayName)?String(e.modelDisplayName):"",volumeSteps:g(e.volumeSteps)?Number(e.volumeSteps):void 0,capabilities:g(e.capabilities)?String(e.capabilities):void 0,incarnations:Array.isArray(e?.incarnations)?e.incarnations.map((e=>t.StateResponse_Device_Incarnation.fromJSON(e))):[],aliasId:g(e.aliasId)?Number(e.aliasId):void 0}),toJSON(e){const n={};return void 0!==e.isSelf&&(n.isSelf=e.isSelf),void 0!==e.localIdentifier&&(n.localIdentifier=e.localIdentifier),void 0!==e.deduplicationId&&(n.deduplicationId=e.deduplicationId),void 0!==e.connectStateIdentifier&&(n.connectStateIdentifier=e.connectStateIdentifier),void 0!==e.name&&(n.name=e.name),void 0!==e.type&&(n.type=e.type),void 0!==e.state&&(n.state=e.state),void 0!==e.isDisabled&&(n.isDisabled=e.isDisabled),void 0!==e.isActive&&(n.isActive=e.isActive),void 0!==e.isBeingActivated&&(n.isBeingActivated=e.isBeingActivated),void 0!==e.isZeroconf&&(n.isZeroconf=e.isZeroconf),void 0!==e.isWebapp&&(n.isWebapp=e.isWebapp),void 0!==e.isConnect&&(n.isConnect=e.isConnect),void 0!==e.isLocal&&(n.isLocal=e.isLocal),void 0!==e.isGroup&&(n.isGroup=e.isGroup),void 0!==e.isOffline&&(n.isOffline=e.isOffline),void 0!==e.isSocialConnect&&(n.isSocialConnect=e.isSocialConnect),void 0!==e.creationTimeMs&&(n.creationTimeMs=e.creationTimeMs),void 0!==e.volume&&(n.volume=Math.round(e.volume)),void 0!==e.hifi&&(n.hifi=e.hifi?t.StateResponse_Device_Hifi.toJSON(e.hifi):void 0),void 0!==e.license&&(n.license=e.license),void 0!==e.supportsOnDemand&&(n.supportsOnDemand=e.supportsOnDemand),void 0!==e.supportsVolume&&(n.supportsVolume=e.supportsVolume),void 0!==e.supportsLogout&&(n.supportsLogout=e.supportsLogout),void 0!==e.supportsRename&&(n.supportsRename=e.supportsRename),void 0!==e.supportsAlarm&&(n.supportsAlarm=e.supportsAlarm),void 0!==e.isVoiceEnabled&&(n.isVoiceEnabled=e.isVoiceEnabled),void 0!==e.isNewlyDiscovered&&(n.isNewlyDiscovered=e.isNewlyDiscovered),e.supportedMediaTypes?n.supportedMediaTypes=e.supportedMediaTypes.map((e=>e)):n.supportedMediaTypes=[],void 0!==e.brandDisplayName&&(n.brandDisplayName=e.brandDisplayName),void 0!==e.modelDisplayName&&(n.modelDisplayName=e.modelDisplayName),void 0!==e.volumeSteps&&(n.volumeSteps=Math.round(e.volumeSteps)),void 0!==e.capabilities&&(n.capabilities=e.capabilities),e.incarnations?n.incarnations=e.incarnations.map((e=>e?t.StateResponse_Device_Incarnation.toJSON(e):void 0)):n.incarnations=[],void 0!==e.aliasId&&(n.aliasId=Math.round(e.aliasId)),n},fromPartial(e){const n={isSelf:!1,localIdentifier:"",deduplicationId:"",connectStateIdentifier:"",name:"",type:"",state:"",isDisabled:!1,isActive:!1,isBeingActivated:!1,isZeroconf:!1,isWebapp:!1,isConnect:!1,isLocal:!1,isGroup:!1,isOffline:!1,isSocialConnect:!1,creationTimeMs:"0",volume:0,hifi:void 0,license:"",supportsOnDemand:!1,supportsVolume:!1,supportsLogout:!1,supportsRename:!1,supportsAlarm:!1,isVoiceEnabled:!1,isNewlyDiscovered:!1,supportedMediaTypes:[],brandDisplayName:"",modelDisplayName:"",volumeSteps:void 0,capabilities:void 0,incarnations:[],aliasId:void 0};return n.isSelf=e.isSelf??!1,n.localIdentifier=e.localIdentifier??"",n.deduplicationId=e.deduplicationId??"",n.connectStateIdentifier=e.connectStateIdentifier??"",n.name=e.name??"",n.type=e.type??"",n.state=e.state??"",n.isDisabled=e.isDisabled??!1,n.isActive=e.isActive??!1,n.isBeingActivated=e.isBeingActivated??!1,n.isZeroconf=e.isZeroconf??!1,n.isWebapp=e.isWebapp??!1,n.isConnect=e.isConnect??!1,n.isLocal=e.isLocal??!1,n.isGroup=e.isGroup??!1,n.isOffline=e.isOffline??!1,n.isSocialConnect=e.isSocialConnect??!1,n.creationTimeMs=e.creationTimeMs??"0",n.volume=e.volume??0,n.hifi=void 0!==e.hifi&&null!==e.hifi?t.StateResponse_Device_Hifi.fromPartial(e.hifi):void 0,n.license=e.license??"",n.supportsOnDemand=e.supportsOnDemand??!1,n.supportsVolume=e.supportsVolume??!1,n.supportsLogout=e.supportsLogout??!1,n.supportsRename=e.supportsRename??!1,n.supportsAlarm=e.supportsAlarm??!1,n.isVoiceEnabled=e.isVoiceEnabled??!1,n.isNewlyDiscovered=e.isNewlyDiscovered??!1,n.supportedMediaTypes=e.supportedMediaTypes?.map((e=>e))||[],n.brandDisplayName=e.brandDisplayName??"",n.modelDisplayName=e.modelDisplayName??"",n.volumeSteps=e.volumeSteps??void 0,n.capabilities=e.capabilities??void 0,n.incarnations=e.incarnations?.map((e=>t.StateResponse_Device_Incarnation.fromPartial(e)))||[],n.aliasId=e.aliasId??void 0,n}},t.StateResponse_Device_Hifi={encode:(e,t=r.default.Writer.create())=>(!0===e.fullySupported&&t.uint32(8).bool(e.fullySupported),!0===e.userEligible&&t.uint32(16).bool(e.userEligible),!0===e.deviceSupported&&t.uint32(24).bool(e.deviceSupported),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={fullySupported:!1,userEligible:!1,deviceSupported:!1};for(;n.pos>>3){case 1:i.fullySupported=n.bool();break;case 2:i.userEligible=n.bool();break;case 3:i.deviceSupported=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fullySupported:!!g(e.fullySupported)&&Boolean(e.fullySupported),userEligible:!!g(e.userEligible)&&Boolean(e.userEligible),deviceSupported:!!g(e.deviceSupported)&&Boolean(e.deviceSupported)}),toJSON(e){const t={};return void 0!==e.fullySupported&&(t.fullySupported=e.fullySupported),void 0!==e.userEligible&&(t.userEligible=e.userEligible),void 0!==e.deviceSupported&&(t.deviceSupported=e.deviceSupported),t},fromPartial(e){const t={fullySupported:!1,userEligible:!1,deviceSupported:!1};return t.fullySupported=e.fullySupported??!1,t.userEligible=e.userEligible??!1,t.deviceSupported=e.deviceSupported??!1,t}},t.StateResponse_Device_Incarnation={encode:(e,t=r.default.Writer.create())=>(0!==e.loginType&&t.uint32(8).int32(e.loginType),""!==e.identifier&&t.uint32(18).string(e.identifier),!0===e.preferred&&t.uint32(24).bool(e.preferred),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={loginType:0,identifier:"",preferred:!1};for(;n.pos>>3){case 1:i.loginType=n.int32();break;case 2:i.identifier=n.string();break;case 3:i.preferred=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({loginType:g(e.loginType)?d(e.loginType):0,identifier:g(e.identifier)?String(e.identifier):"",preferred:!!g(e.preferred)&&Boolean(e.preferred)}),toJSON(e){const t={};return void 0!==e.loginType&&(t.loginType=p(e.loginType)),void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.preferred&&(t.preferred=e.preferred),t},fromPartial(e){const t={loginType:0,identifier:"",preferred:!1};return t.loginType=e.loginType??0,t.identifier=e.identifier??"",t.preferred=e.preferred??!1,t}},t.SetDebugLevelRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.debugLevel&&t.uint32(8).int32(e.debugLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={debugLevel:0};for(;n.pos>>3==1)i.debugLevel=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({debugLevel:g(e.debugLevel)?Number(e.debugLevel):0}),toJSON(e){const t={};return void 0!==e.debugLevel&&(t.debugLevel=Math.round(e.debugLevel)),t},fromPartial(e){const t={debugLevel:0};return t.debugLevel=e.debugLevel??0,t}},t.SetDebugLevelResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetDebugLevelRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetDebugLevelResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.debugLevel&&t.uint32(8).int32(e.debugLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={debugLevel:0};for(;n.pos>>3==1)i.debugLevel=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({debugLevel:g(e.debugLevel)?Number(e.debugLevel):0}),toJSON(e){const t={};return void 0!==e.debugLevel&&(t.debugLevel=Math.round(e.debugLevel)),t},fromPartial(e){const t={debugLevel:0};return t.debugLevel=e.debugLevel??0,t}},t.BecomeInactiveRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.BecomeInactiveResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.RenameRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.newName&&t.uint32(18).string(e.newName),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",newName:""};for(;n.pos>>3){case 1:i.deviceId=n.string();break;case 2:i.newName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",newName:g(e.newName)?String(e.newName):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.newName&&(t.newName=e.newName),t},fromPartial(e){const t={deviceId:"",newName:""};return t.deviceId=e.deviceId??"",t.newName=e.newName??"",t}},t.RenameResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.OnEnablingLocalPlaybackRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.OnEnablingLocalPlaybackResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.SetPreferredZeroconfRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),0!==e.preferredLoginType&&t.uint32(16).int32(e.preferredLoginType),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",preferredLoginType:0};for(;n.pos>>3){case 1:i.deviceId=n.string();break;case 2:i.preferredLoginType=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",preferredLoginType:g(e.preferredLoginType)?d(e.preferredLoginType):0}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.preferredLoginType&&(t.preferredLoginType=p(e.preferredLoginType)),t},fromPartial(e){const t={deviceId:"",preferredLoginType:0};return t.deviceId=e.deviceId??"",t.preferredLoginType=e.preferredLoginType??0,t}},t.SetPreferredZeroconfResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.LocalVolumeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.LocalVolumeResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.volume&&t.uint32(8).int32(e.volume),0!==e.reason&&t.uint32(16).int32(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={volume:0,reason:0};for(;n.pos>>3){case 1:i.volume=n.int32();break;case 2:i.reason=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({volume:g(e.volume)?Number(e.volume):0,reason:g(e.reason)?f(e.reason):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=Math.round(e.volume)),void 0!==e.reason&&(t.reason=h(e.reason)),t},fromPartial(e){const t={volume:0,reason:0};return t.volume=e.volume??0,t.reason=e.reason??0,t}},t.OnOnboardingRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.OnOnboardingResponse={encode:(e,t=r.default.Writer.create())=>(""!==e.onboardingDevice&&t.uint32(10).string(e.onboardingDevice),!0===e.onboardingEnabled&&t.uint32(16).bool(e.onboardingEnabled),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={onboardingDevice:"",onboardingEnabled:!1};for(;n.pos>>3){case 1:i.onboardingDevice=n.string();break;case 2:i.onboardingEnabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({onboardingDevice:g(e.onboardingDevice)?String(e.onboardingDevice):"",onboardingEnabled:!!g(e.onboardingEnabled)&&Boolean(e.onboardingEnabled)}),toJSON(e){const t={};return void 0!==e.onboardingDevice&&(t.onboardingDevice=e.onboardingDevice),void 0!==e.onboardingEnabled&&(t.onboardingEnabled=e.onboardingEnabled),t},fromPartial(e){const t={onboardingDevice:"",onboardingEnabled:!1};return t.onboardingDevice=e.onboardingDevice??"",t.onboardingEnabled=e.onboardingEnabled??!1,t}},t.ReportFlowRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),!0===e.didComplete&&t.uint32(16).bool(e.didComplete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",didComplete:!1};for(;n.pos>>3){case 1:i.deviceId=n.string();break;case 2:i.didComplete=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):"",didComplete:!!g(e.didComplete)&&Boolean(e.didComplete)}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.didComplete&&(t.didComplete=e.didComplete),t},fromPartial(e){const t={deviceId:"",didComplete:!1};return t.deviceId=e.deviceId??"",t.didComplete=e.didComplete??!1,t}},t.ReportFlowResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.ClearFlowRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.ClearFlowResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.TriggerFlowRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:""};for(;n.pos>>3==1)i.deviceId=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({deviceId:g(e.deviceId)?String(e.deviceId):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),t},fromPartial(e){const t={deviceId:""};return t.deviceId=e.deviceId??"",t}},t.TriggerFlowResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:g(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},9029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdsClient=void 0;const o=n(33892),i=n(43086);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getAds(e){const t="spotify.ads.esperanto.ads.proto.Ads",n="GetAds",r=i.GetAdsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetAdsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.ads.esperanto.ads.proto.Ads";static DECODERS={GetAds:{request:i.GetAdsRequest.decode,response:i.GetAdsResponse.decode}}}t.AdsClient=r},58985:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.AdsClient=void 0;var r=n(9029);Object.defineProperty(t,"AdsClient",{enumerable:!0,get:function(){return r.AdsClient}}),i(n(43086),t)},69383:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdQueue=t.AdSlot=t.AdSlotEvent=t.Ad_TrackingEventsEntry=t.Ad_MetadataEntry=t.Ad=t.AdMedia=t.UrlArray=t.adSlotEvent_AdSlotEventTypeToJSON=t.adSlotEvent_AdSlotEventTypeFromJSON=t.AdSlotEvent_AdSlotEventType=t.adFormatToJSON=t.adFormatFromJSON=t.AdFormat=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s;function l(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"AUDIO":return a.AUDIO;case 2:case"VIDEO":return a.VIDEO;case 3:case"DISPLAY":return a.DISPLAY;case 4:case"DUMMY":return a.DUMMY;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.AUDIO:return"AUDIO";case a.VIDEO:return"VIDEO";case a.DISPLAY:return"DISPLAY";case a.DUMMY:return"DUMMY";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"AVAILABLE":return s.AVAILABLE;case 1:case"PLAY":return s.PLAY;case 2:case"DISCARD":return s.DISCARD;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.AVAILABLE:return"AVAILABLE";case s.PLAY:return"PLAY";case s.DISCARD:return"DISCARD";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){return"object"==typeof e&&null!==e}function f(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.common.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.AdFormat||(t.AdFormat={})),t.adFormatFromJSON=l,t.adFormatToJSON=c,function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.AdSlotEvent_AdSlotEventType||(t.AdSlotEvent_AdSlotEventType={})),t.adSlotEvent_AdSlotEventTypeFromJSON=u,t.adSlotEvent_AdSlotEventTypeToJSON=d,t.UrlArray={encode(e,t=r.default.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={urls:[]};for(;n.pos>>3==1)i.urls.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?t.urls=e.urls.map((e=>e)):t.urls=[],t},fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}},t.AdMedia={encode:(e,t=r.default.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),"0"!==e.duration&&t.uint32(24).uint64(e.duration),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.mediaFileUrl&&t.uint32(50).string(e.mediaFileUrl),void 0!==e.mediaFileId&&t.uint32(58).string(e.mediaFileId),void 0!==e.mediaFileImageId&&t.uint32(66).string(e.mediaFileImageId),void 0!==e.mediaFileText&&t.uint32(74).string(e.mediaFileText),void 0!==e.mediaFileEpisodeId&&t.uint32(82).string(e.mediaFileEpisodeId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};for(;n.pos>>3){case 1:i.mimeType=n.string();break;case 2:i.bitrate=n.int32();break;case 3:i.duration=n.uint64().toString();break;case 4:i.width=n.int32();break;case 5:i.height=n.int32();break;case 6:i.mediaFileUrl=n.string();break;case 7:i.mediaFileId=n.string();break;case 8:i.mediaFileImageId=n.string();break;case 9:i.mediaFileText=n.string();break;case 10:i.mediaFileEpisodeId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({mimeType:f(e.mimeType)?String(e.mimeType):"",bitrate:f(e.bitrate)?Number(e.bitrate):0,duration:f(e.duration)?String(e.duration):"0",width:f(e.width)?Number(e.width):0,height:f(e.height)?Number(e.height):0,mediaFileUrl:f(e.mediaFileUrl)?String(e.mediaFileUrl):void 0,mediaFileId:f(e.mediaFileId)?String(e.mediaFileId):void 0,mediaFileImageId:f(e.mediaFileImageId)?String(e.mediaFileImageId):void 0,mediaFileText:f(e.mediaFileText)?String(e.mediaFileText):void 0,mediaFileEpisodeId:f(e.mediaFileEpisodeId)?String(e.mediaFileEpisodeId):void 0}),toJSON(e){const t={};return void 0!==e.mimeType&&(t.mimeType=e.mimeType),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.width&&(t.width=Math.round(e.width)),void 0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.mediaFileUrl&&(t.mediaFileUrl=e.mediaFileUrl),void 0!==e.mediaFileId&&(t.mediaFileId=e.mediaFileId),void 0!==e.mediaFileImageId&&(t.mediaFileImageId=e.mediaFileImageId),void 0!==e.mediaFileText&&(t.mediaFileText=e.mediaFileText),void 0!==e.mediaFileEpisodeId&&(t.mediaFileEpisodeId=e.mediaFileEpisodeId),t},fromPartial(e){const t={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??"0",t.width=e.width??0,t.height=e.height??0,t.mediaFileUrl=e.mediaFileUrl??void 0,t.mediaFileId=e.mediaFileId??void 0,t.mediaFileImageId=e.mediaFileImageId??void 0,t.mediaFileText=e.mediaFileText??void 0,t.mediaFileEpisodeId=e.mediaFileEpisodeId??void 0,t}},t.Ad={encode(e,n=r.default.Writer.create()){""!==e.adId&&n.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,o])=>{t.Ad_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),!0===e.isDummy&&n.uint32(24).bool(e.isDummy);for(const o of e.coverArt)t.AdMedia.encode(o,n.uint32(34).fork()).ldelim();for(const o of e.audio)t.AdMedia.encode(o,n.uint32(42).fork()).ldelim();for(const o of e.video)t.AdMedia.encode(o,n.uint32(50).fork()).ldelim();for(const o of e.display)t.AdMedia.encode(o,n.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&n.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,o])=>{t.Ad_TrackingEventsEntry.encode({key:e,value:o},n.uint32(74).fork()).ldelim()})),""!==e.triggeredSlot&&n.uint32(82).string(e.triggeredSlot),!0===e.linear&&n.uint32(96).bool(e.linear),""!==e.playbackId&&n.uint32(106).string(e.playbackId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};for(;o.pos>>3){case 1:a.adId=o.string();break;case 2:const n=t.Ad_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;case 3:a.isDummy=o.bool();break;case 4:a.coverArt.push(t.AdMedia.decode(o,o.uint32()));break;case 5:a.audio.push(t.AdMedia.decode(o,o.uint32()));break;case 6:a.video.push(t.AdMedia.decode(o,o.uint32()));break;case 7:a.display.push(t.AdMedia.decode(o,o.uint32()));break;case 8:a.clickthroughUrl=o.string();break;case 9:const i=t.Ad_TrackingEventsEntry.decode(o,o.uint32());void 0!==i.value&&(a.trackingEvents[i.key]=i.value);break;case 10:a.triggeredSlot=o.string();break;case 12:a.linear=o.bool();break;case 13:a.playbackId=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({adId:f(e.adId)?String(e.adId):"",metadata:p(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!f(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>t.AdMedia.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>t.AdMedia.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>t.AdMedia.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>t.AdMedia.fromJSON(e))):[],clickthroughUrl:f(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:p(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[n,o])=>(e[n]=t.UrlArray.fromJSON(o),e)),{}):{},triggeredSlot:f(e.triggeredSlot)?String(e.triggeredSlot):"",linear:!!f(e.linear)&&Boolean(e.linear),playbackId:f(e.playbackId)?String(e.playbackId):""}),toJSON(e){const n={};return void 0!==e.adId&&(n.adId=e.adId),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,t])=>{n.metadata[e]=t})),void 0!==e.isDummy&&(n.isDummy=e.isDummy),e.coverArt?n.coverArt=e.coverArt.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.coverArt=[],e.audio?n.audio=e.audio.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.audio=[],e.video?n.video=e.video.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.video=[],e.display?n.display=e.display.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.display=[],void 0!==e.clickthroughUrl&&(n.clickthroughUrl=e.clickthroughUrl),n.trackingEvents={},e.trackingEvents&&Object.entries(e.trackingEvents).forEach((([e,o])=>{n.trackingEvents[e]=t.UrlArray.toJSON(o)})),void 0!==e.triggeredSlot&&(n.triggeredSlot=e.triggeredSlot),void 0!==e.linear&&(n.linear=e.linear),void 0!==e.playbackId&&(n.playbackId=e.playbackId),n},fromPartial(e){const n={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};return n.adId=e.adId??"",n.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.isDummy=e.isDummy??!1,n.coverArt=e.coverArt?.map((e=>t.AdMedia.fromPartial(e)))||[],n.audio=e.audio?.map((e=>t.AdMedia.fromPartial(e)))||[],n.video=e.video?.map((e=>t.AdMedia.fromPartial(e)))||[],n.display=e.display?.map((e=>t.AdMedia.fromPartial(e)))||[],n.clickthroughUrl=e.clickthroughUrl??"",n.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.UrlArray.fromPartial(o)),e)),{}),n.triggeredSlot=e.triggeredSlot??"",n.linear=e.linear??!1,n.playbackId=e.playbackId??"",n}},t.Ad_MetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:f(e.key)?String(e.key):"",value:f(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Ad_TrackingEventsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.UrlArray.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.UrlArray.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:f(e.key)?String(e.key):"",value:f(e.value)?t.UrlArray.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.UrlArray.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.UrlArray.fromPartial(e.value):void 0,n}},t.AdSlotEvent={encode:(e,n=r.default.Writer.create())=>(0!==e.eventType&&n.uint32(8).int32(e.eventType),""!==e.slotId&&n.uint32(18).string(e.slotId),0!==e.format&&n.uint32(24).int32(e.format),void 0!==e.ad&&t.Ad.encode(e.ad,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={eventType:0,slotId:"",format:0,ad:void 0};for(;o.pos>>3){case 1:a.eventType=o.int32();break;case 2:a.slotId=o.string();break;case 3:a.format=o.int32();break;case 4:a.ad=t.Ad.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({eventType:f(e.eventType)?u(e.eventType):0,slotId:f(e.slotId)?String(e.slotId):"",format:f(e.format)?l(e.format):0,ad:f(e.ad)?t.Ad.fromJSON(e.ad):void 0}),toJSON(e){const n={};return void 0!==e.eventType&&(n.eventType=d(e.eventType)),void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.format&&(n.format=c(e.format)),void 0!==e.ad&&(n.ad=e.ad?t.Ad.toJSON(e.ad):void 0),n},fromPartial(e){const n={eventType:0,slotId:"",format:0,ad:void 0};return n.eventType=e.eventType??0,n.slotId=e.slotId??"",n.format=e.format??0,n.ad=void 0!==e.ad&&null!==e.ad?t.Ad.fromPartial(e.ad):void 0,n}},t.AdSlot={encode(e,n=r.default.Writer.create()){""!==e.slotId&&n.uint32(10).string(e.slotId),!0===e.hasAvailableAds&&n.uint32(16).bool(e.hasAvailableAds),!0===e.hasActiveAd&&n.uint32(24).bool(e.hasActiveAd),!0===e.hasListeners&&n.uint32(32).bool(e.hasListeners),!0===e.hasAudioListeners&&n.uint32(40).bool(e.hasAudioListeners),!0===e.hasVideoListeners&&n.uint32(48).bool(e.hasVideoListeners),!0===e.hasDisplayListeners&&n.uint32(56).bool(e.hasDisplayListeners);for(const o of e.availableAds)t.Ad.encode(o,n.uint32(66).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};for(;o.pos>>3){case 1:a.slotId=o.string();break;case 2:a.hasAvailableAds=o.bool();break;case 3:a.hasActiveAd=o.bool();break;case 4:a.hasListeners=o.bool();break;case 5:a.hasAudioListeners=o.bool();break;case 6:a.hasVideoListeners=o.bool();break;case 7:a.hasDisplayListeners=o.bool();break;case 8:a.availableAds.push(t.Ad.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({slotId:f(e.slotId)?String(e.slotId):"",hasAvailableAds:!!f(e.hasAvailableAds)&&Boolean(e.hasAvailableAds),hasActiveAd:!!f(e.hasActiveAd)&&Boolean(e.hasActiveAd),hasListeners:!!f(e.hasListeners)&&Boolean(e.hasListeners),hasAudioListeners:!!f(e.hasAudioListeners)&&Boolean(e.hasAudioListeners),hasVideoListeners:!!f(e.hasVideoListeners)&&Boolean(e.hasVideoListeners),hasDisplayListeners:!!f(e.hasDisplayListeners)&&Boolean(e.hasDisplayListeners),availableAds:Array.isArray(e?.availableAds)?e.availableAds.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.hasAvailableAds&&(n.hasAvailableAds=e.hasAvailableAds),void 0!==e.hasActiveAd&&(n.hasActiveAd=e.hasActiveAd),void 0!==e.hasListeners&&(n.hasListeners=e.hasListeners),void 0!==e.hasAudioListeners&&(n.hasAudioListeners=e.hasAudioListeners),void 0!==e.hasVideoListeners&&(n.hasVideoListeners=e.hasVideoListeners),void 0!==e.hasDisplayListeners&&(n.hasDisplayListeners=e.hasDisplayListeners),e.availableAds?n.availableAds=e.availableAds.map((e=>e?t.Ad.toJSON(e):void 0)):n.availableAds=[],n},fromPartial(e){const n={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};return n.slotId=e.slotId??"",n.hasAvailableAds=e.hasAvailableAds??!1,n.hasActiveAd=e.hasActiveAd??!1,n.hasListeners=e.hasListeners??!1,n.hasAudioListeners=e.hasAudioListeners??!1,n.hasVideoListeners=e.hasVideoListeners??!1,n.hasDisplayListeners=e.hasDisplayListeners??!1,n.availableAds=e.availableAds?.map((e=>t.Ad.fromPartial(e)))||[],n}},t.AdQueue={encode(e,n=r.default.Writer.create()){for(const o of e.ads)t.Ad.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={ads:[]};for(;o.pos>>3==1)a.ads.push(t.Ad.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({ads:Array.isArray(e?.ads)?e.ads.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return e.ads?n.ads=e.ads.map((e=>e?t.Ad.toJSON(e):void 0)):n.ads=[],n},fromPartial(e){const n={ads:[]};return n.ads=e.ads?.map((e=>t.Ad.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},43086:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAdsResponse_AdPackageEntry=t.GetAdsResponse=t.GetAdsRequest_TargetingEntry=t.GetAdsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(69383);function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.ads.proto",t.GetAdsRequest={encode:(e,n=i.default.Writer.create())=>(""!==e.slotId&&n.uint32(10).string(e.slotId),Object.entries(e.targeting).forEach((([e,o])=>{t.GetAdsRequest_TargetingEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={slotId:"",targeting:{}};for(;o.pos>>3){case 1:a.slotId=o.string();break;case 2:const n=t.GetAdsRequest_TargetingEntry.decode(o,o.uint32());void 0!==n.value&&(a.targeting[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON:e=>({slotId:s(e.slotId)?String(e.slotId):"",targeting:a(e.targeting)?Object.entries(e.targeting).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={};return void 0!==e.slotId&&(t.slotId=e.slotId),t.targeting={},e.targeting&&Object.entries(e.targeting).forEach((([e,n])=>{t.targeting[e]=n})),t},fromPartial(e){const t={slotId:"",targeting:{}};return t.slotId=e.slotId??"",t.targeting=Object.entries(e.targeting??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.GetAdsRequest_TargetingEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.GetAdsResponse={encode:(e,n=i.default.Writer.create())=>(Object.entries(e.adPackage).forEach((([e,o])=>{t.GetAdsResponse_AdPackageEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),void 0!==e.error&&n.uint32(18).string(e.error),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={adPackage:{},error:void 0};for(;o.pos>>3){case 1:const n=t.GetAdsResponse_AdPackageEntry.decode(o,o.uint32());void 0!==n.value&&(a.adPackage[n.key]=n.value);break;case 2:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({adPackage:a(e.adPackage)?Object.entries(e.adPackage).reduce(((e,[t,n])=>(e[t]=r.AdQueue.fromJSON(n),e)),{}):{},error:s(e.error)?String(e.error):void 0}),toJSON(e){const t={adPackage:{}};return e.adPackage&&Object.entries(e.adPackage).forEach((([e,n])=>{t.adPackage[e]=r.AdQueue.toJSON(n)})),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={adPackage:{},error:void 0};return t.adPackage=Object.entries(e.adPackage??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=r.AdQueue.fromPartial(n)),e)),{}),t.error=e.error??void 0,t}},t.GetAdsResponse_AdPackageEntry={encode:(e,t=i.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&r.AdQueue.encode(e.value,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={key:"",value:void 0};for(;n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=r.AdQueue.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({key:s(e.key)?String(e.key):"",value:s(e.value)?r.AdQueue.fromJSON(e.value):void 0}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value?r.AdQueue.toJSON(e.value):void 0),t},fromPartial(e){const t={key:"",value:void 0};return t.key=e.key??"",t.value=void 0!==e.value&&null!==e.value?r.AdQueue.fromPartial(e.value):void 0,t}}},62976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventsClient=void 0;const o=n(33892),i=n(95021);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}postEvent(e){const t="spotify.ads.esperanto.events.proto.Events",n="postEvent",r=i.EventRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.EventResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}postUnmanagedEvent(e){const t="spotify.ads.esperanto.events.proto.Events",n="postUnmanagedEvent",r=i.UnmanagedEventRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.UnmanagedEventResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subEvent(e,t){const n="spotify.ads.esperanto.events.proto.Events",r="subEvent",a=i.SubEventRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.SubEventResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.ads.esperanto.events.proto.Events";static DECODERS={postEvent:{request:i.EventRequest.decode,response:i.EventResponse.decode},postUnmanagedEvent:{request:i.UnmanagedEventRequest.decode,response:i.UnmanagedEventResponse.decode},subEvent:{request:i.SubEventRequest.decode,response:i.SubEventResponse.decode}}}t.EventsClient=r},8097:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.EventsClient=void 0;var r=n(62976);Object.defineProperty(t,"EventsClient",{enumerable:!0,get:function(){return r.EventsClient}}),i(n(95021),t)},40131:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AdQueue=t.AdSlot=t.AdSlotEvent=t.Ad_TrackingEventsEntry=t.Ad_MetadataEntry=t.Ad=t.AdMedia=t.UrlArray=t.adSlotEvent_AdSlotEventTypeToJSON=t.adSlotEvent_AdSlotEventTypeFromJSON=t.AdSlotEvent_AdSlotEventType=t.adFormatToJSON=t.adFormatFromJSON=t.AdFormat=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s;function l(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"AUDIO":return a.AUDIO;case 2:case"VIDEO":return a.VIDEO;case 3:case"DISPLAY":return a.DISPLAY;case 4:case"DUMMY":return a.DUMMY;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.AUDIO:return"AUDIO";case a.VIDEO:return"VIDEO";case a.DISPLAY:return"DISPLAY";case a.DUMMY:return"DUMMY";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"AVAILABLE":return s.AVAILABLE;case 1:case"PLAY":return s.PLAY;case 2:case"DISCARD":return s.DISCARD;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.AVAILABLE:return"AVAILABLE";case s.PLAY:return"PLAY";case s.DISCARD:return"DISCARD";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){return"object"==typeof e&&null!==e}function f(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.common.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO=1]="AUDIO",e[e.VIDEO=2]="VIDEO",e[e.DISPLAY=3]="DISPLAY",e[e.DUMMY=4]="DUMMY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.AdFormat||(t.AdFormat={})),t.adFormatFromJSON=l,t.adFormatToJSON=c,function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.PLAY=1]="PLAY",e[e.DISCARD=2]="DISCARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.AdSlotEvent_AdSlotEventType||(t.AdSlotEvent_AdSlotEventType={})),t.adSlotEvent_AdSlotEventTypeFromJSON=u,t.adSlotEvent_AdSlotEventTypeToJSON=d,t.UrlArray={encode(e,t=r.default.Writer.create()){for(const n of e.urls)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={urls:[]};for(;n.pos>>3==1)i.urls.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({urls:Array.isArray(e?.urls)?e.urls.map((e=>String(e))):[]}),toJSON(e){const t={};return e.urls?t.urls=e.urls.map((e=>e)):t.urls=[],t},fromPartial(e){const t={urls:[]};return t.urls=e.urls?.map((e=>e))||[],t}},t.AdMedia={encode:(e,t=r.default.Writer.create())=>(""!==e.mimeType&&t.uint32(10).string(e.mimeType),0!==e.bitrate&&t.uint32(16).int32(e.bitrate),"0"!==e.duration&&t.uint32(24).uint64(e.duration),0!==e.width&&t.uint32(32).int32(e.width),0!==e.height&&t.uint32(40).int32(e.height),void 0!==e.mediaFileUrl&&t.uint32(50).string(e.mediaFileUrl),void 0!==e.mediaFileId&&t.uint32(58).string(e.mediaFileId),void 0!==e.mediaFileImageId&&t.uint32(66).string(e.mediaFileImageId),void 0!==e.mediaFileText&&t.uint32(74).string(e.mediaFileText),void 0!==e.mediaFileEpisodeId&&t.uint32(82).string(e.mediaFileEpisodeId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};for(;n.pos>>3){case 1:i.mimeType=n.string();break;case 2:i.bitrate=n.int32();break;case 3:i.duration=n.uint64().toString();break;case 4:i.width=n.int32();break;case 5:i.height=n.int32();break;case 6:i.mediaFileUrl=n.string();break;case 7:i.mediaFileId=n.string();break;case 8:i.mediaFileImageId=n.string();break;case 9:i.mediaFileText=n.string();break;case 10:i.mediaFileEpisodeId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({mimeType:f(e.mimeType)?String(e.mimeType):"",bitrate:f(e.bitrate)?Number(e.bitrate):0,duration:f(e.duration)?String(e.duration):"0",width:f(e.width)?Number(e.width):0,height:f(e.height)?Number(e.height):0,mediaFileUrl:f(e.mediaFileUrl)?String(e.mediaFileUrl):void 0,mediaFileId:f(e.mediaFileId)?String(e.mediaFileId):void 0,mediaFileImageId:f(e.mediaFileImageId)?String(e.mediaFileImageId):void 0,mediaFileText:f(e.mediaFileText)?String(e.mediaFileText):void 0,mediaFileEpisodeId:f(e.mediaFileEpisodeId)?String(e.mediaFileEpisodeId):void 0}),toJSON(e){const t={};return void 0!==e.mimeType&&(t.mimeType=e.mimeType),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.duration&&(t.duration=e.duration),void 0!==e.width&&(t.width=Math.round(e.width)),void 0!==e.height&&(t.height=Math.round(e.height)),void 0!==e.mediaFileUrl&&(t.mediaFileUrl=e.mediaFileUrl),void 0!==e.mediaFileId&&(t.mediaFileId=e.mediaFileId),void 0!==e.mediaFileImageId&&(t.mediaFileImageId=e.mediaFileImageId),void 0!==e.mediaFileText&&(t.mediaFileText=e.mediaFileText),void 0!==e.mediaFileEpisodeId&&(t.mediaFileEpisodeId=e.mediaFileEpisodeId),t},fromPartial(e){const t={mimeType:"",bitrate:0,duration:"0",width:0,height:0,mediaFileUrl:void 0,mediaFileId:void 0,mediaFileImageId:void 0,mediaFileText:void 0,mediaFileEpisodeId:void 0};return t.mimeType=e.mimeType??"",t.bitrate=e.bitrate??0,t.duration=e.duration??"0",t.width=e.width??0,t.height=e.height??0,t.mediaFileUrl=e.mediaFileUrl??void 0,t.mediaFileId=e.mediaFileId??void 0,t.mediaFileImageId=e.mediaFileImageId??void 0,t.mediaFileText=e.mediaFileText??void 0,t.mediaFileEpisodeId=e.mediaFileEpisodeId??void 0,t}},t.Ad={encode(e,n=r.default.Writer.create()){""!==e.adId&&n.uint32(10).string(e.adId),Object.entries(e.metadata).forEach((([e,o])=>{t.Ad_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),!0===e.isDummy&&n.uint32(24).bool(e.isDummy);for(const o of e.coverArt)t.AdMedia.encode(o,n.uint32(34).fork()).ldelim();for(const o of e.audio)t.AdMedia.encode(o,n.uint32(42).fork()).ldelim();for(const o of e.video)t.AdMedia.encode(o,n.uint32(50).fork()).ldelim();for(const o of e.display)t.AdMedia.encode(o,n.uint32(58).fork()).ldelim();return""!==e.clickthroughUrl&&n.uint32(66).string(e.clickthroughUrl),Object.entries(e.trackingEvents).forEach((([e,o])=>{t.Ad_TrackingEventsEntry.encode({key:e,value:o},n.uint32(74).fork()).ldelim()})),""!==e.triggeredSlot&&n.uint32(82).string(e.triggeredSlot),!0===e.linear&&n.uint32(96).bool(e.linear),""!==e.playbackId&&n.uint32(106).string(e.playbackId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};for(;o.pos>>3){case 1:a.adId=o.string();break;case 2:const n=t.Ad_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;case 3:a.isDummy=o.bool();break;case 4:a.coverArt.push(t.AdMedia.decode(o,o.uint32()));break;case 5:a.audio.push(t.AdMedia.decode(o,o.uint32()));break;case 6:a.video.push(t.AdMedia.decode(o,o.uint32()));break;case 7:a.display.push(t.AdMedia.decode(o,o.uint32()));break;case 8:a.clickthroughUrl=o.string();break;case 9:const i=t.Ad_TrackingEventsEntry.decode(o,o.uint32());void 0!==i.value&&(a.trackingEvents[i.key]=i.value);break;case 10:a.triggeredSlot=o.string();break;case 12:a.linear=o.bool();break;case 13:a.playbackId=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({adId:f(e.adId)?String(e.adId):"",metadata:p(e.metadata)?Object.entries(e.metadata).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{},isDummy:!!f(e.isDummy)&&Boolean(e.isDummy),coverArt:Array.isArray(e?.coverArt)?e.coverArt.map((e=>t.AdMedia.fromJSON(e))):[],audio:Array.isArray(e?.audio)?e.audio.map((e=>t.AdMedia.fromJSON(e))):[],video:Array.isArray(e?.video)?e.video.map((e=>t.AdMedia.fromJSON(e))):[],display:Array.isArray(e?.display)?e.display.map((e=>t.AdMedia.fromJSON(e))):[],clickthroughUrl:f(e.clickthroughUrl)?String(e.clickthroughUrl):"",trackingEvents:p(e.trackingEvents)?Object.entries(e.trackingEvents).reduce(((e,[n,o])=>(e[n]=t.UrlArray.fromJSON(o),e)),{}):{},triggeredSlot:f(e.triggeredSlot)?String(e.triggeredSlot):"",linear:!!f(e.linear)&&Boolean(e.linear),playbackId:f(e.playbackId)?String(e.playbackId):""}),toJSON(e){const n={};return void 0!==e.adId&&(n.adId=e.adId),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,t])=>{n.metadata[e]=t})),void 0!==e.isDummy&&(n.isDummy=e.isDummy),e.coverArt?n.coverArt=e.coverArt.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.coverArt=[],e.audio?n.audio=e.audio.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.audio=[],e.video?n.video=e.video.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.video=[],e.display?n.display=e.display.map((e=>e?t.AdMedia.toJSON(e):void 0)):n.display=[],void 0!==e.clickthroughUrl&&(n.clickthroughUrl=e.clickthroughUrl),n.trackingEvents={},e.trackingEvents&&Object.entries(e.trackingEvents).forEach((([e,o])=>{n.trackingEvents[e]=t.UrlArray.toJSON(o)})),void 0!==e.triggeredSlot&&(n.triggeredSlot=e.triggeredSlot),void 0!==e.linear&&(n.linear=e.linear),void 0!==e.playbackId&&(n.playbackId=e.playbackId),n},fromPartial(e){const n={adId:"",metadata:{},isDummy:!1,coverArt:[],audio:[],video:[],display:[],clickthroughUrl:"",trackingEvents:{},triggeredSlot:"",linear:!1,playbackId:""};return n.adId=e.adId??"",n.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.isDummy=e.isDummy??!1,n.coverArt=e.coverArt?.map((e=>t.AdMedia.fromPartial(e)))||[],n.audio=e.audio?.map((e=>t.AdMedia.fromPartial(e)))||[],n.video=e.video?.map((e=>t.AdMedia.fromPartial(e)))||[],n.display=e.display?.map((e=>t.AdMedia.fromPartial(e)))||[],n.clickthroughUrl=e.clickthroughUrl??"",n.trackingEvents=Object.entries(e.trackingEvents??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.UrlArray.fromPartial(o)),e)),{}),n.triggeredSlot=e.triggeredSlot??"",n.linear=e.linear??!1,n.playbackId=e.playbackId??"",n}},t.Ad_MetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:f(e.key)?String(e.key):"",value:f(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Ad_TrackingEventsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.UrlArray.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.UrlArray.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:f(e.key)?String(e.key):"",value:f(e.value)?t.UrlArray.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.UrlArray.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.UrlArray.fromPartial(e.value):void 0,n}},t.AdSlotEvent={encode:(e,n=r.default.Writer.create())=>(0!==e.eventType&&n.uint32(8).int32(e.eventType),""!==e.slotId&&n.uint32(18).string(e.slotId),0!==e.format&&n.uint32(24).int32(e.format),void 0!==e.ad&&t.Ad.encode(e.ad,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={eventType:0,slotId:"",format:0,ad:void 0};for(;o.pos>>3){case 1:a.eventType=o.int32();break;case 2:a.slotId=o.string();break;case 3:a.format=o.int32();break;case 4:a.ad=t.Ad.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({eventType:f(e.eventType)?u(e.eventType):0,slotId:f(e.slotId)?String(e.slotId):"",format:f(e.format)?l(e.format):0,ad:f(e.ad)?t.Ad.fromJSON(e.ad):void 0}),toJSON(e){const n={};return void 0!==e.eventType&&(n.eventType=d(e.eventType)),void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.format&&(n.format=c(e.format)),void 0!==e.ad&&(n.ad=e.ad?t.Ad.toJSON(e.ad):void 0),n},fromPartial(e){const n={eventType:0,slotId:"",format:0,ad:void 0};return n.eventType=e.eventType??0,n.slotId=e.slotId??"",n.format=e.format??0,n.ad=void 0!==e.ad&&null!==e.ad?t.Ad.fromPartial(e.ad):void 0,n}},t.AdSlot={encode(e,n=r.default.Writer.create()){""!==e.slotId&&n.uint32(10).string(e.slotId),!0===e.hasAvailableAds&&n.uint32(16).bool(e.hasAvailableAds),!0===e.hasActiveAd&&n.uint32(24).bool(e.hasActiveAd),!0===e.hasListeners&&n.uint32(32).bool(e.hasListeners),!0===e.hasAudioListeners&&n.uint32(40).bool(e.hasAudioListeners),!0===e.hasVideoListeners&&n.uint32(48).bool(e.hasVideoListeners),!0===e.hasDisplayListeners&&n.uint32(56).bool(e.hasDisplayListeners);for(const o of e.availableAds)t.Ad.encode(o,n.uint32(66).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};for(;o.pos>>3){case 1:a.slotId=o.string();break;case 2:a.hasAvailableAds=o.bool();break;case 3:a.hasActiveAd=o.bool();break;case 4:a.hasListeners=o.bool();break;case 5:a.hasAudioListeners=o.bool();break;case 6:a.hasVideoListeners=o.bool();break;case 7:a.hasDisplayListeners=o.bool();break;case 8:a.availableAds.push(t.Ad.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({slotId:f(e.slotId)?String(e.slotId):"",hasAvailableAds:!!f(e.hasAvailableAds)&&Boolean(e.hasAvailableAds),hasActiveAd:!!f(e.hasActiveAd)&&Boolean(e.hasActiveAd),hasListeners:!!f(e.hasListeners)&&Boolean(e.hasListeners),hasAudioListeners:!!f(e.hasAudioListeners)&&Boolean(e.hasAudioListeners),hasVideoListeners:!!f(e.hasVideoListeners)&&Boolean(e.hasVideoListeners),hasDisplayListeners:!!f(e.hasDisplayListeners)&&Boolean(e.hasDisplayListeners),availableAds:Array.isArray(e?.availableAds)?e.availableAds.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.slotId&&(n.slotId=e.slotId),void 0!==e.hasAvailableAds&&(n.hasAvailableAds=e.hasAvailableAds),void 0!==e.hasActiveAd&&(n.hasActiveAd=e.hasActiveAd),void 0!==e.hasListeners&&(n.hasListeners=e.hasListeners),void 0!==e.hasAudioListeners&&(n.hasAudioListeners=e.hasAudioListeners),void 0!==e.hasVideoListeners&&(n.hasVideoListeners=e.hasVideoListeners),void 0!==e.hasDisplayListeners&&(n.hasDisplayListeners=e.hasDisplayListeners),e.availableAds?n.availableAds=e.availableAds.map((e=>e?t.Ad.toJSON(e):void 0)):n.availableAds=[],n},fromPartial(e){const n={slotId:"",hasAvailableAds:!1,hasActiveAd:!1,hasListeners:!1,hasAudioListeners:!1,hasVideoListeners:!1,hasDisplayListeners:!1,availableAds:[]};return n.slotId=e.slotId??"",n.hasAvailableAds=e.hasAvailableAds??!1,n.hasActiveAd=e.hasActiveAd??!1,n.hasListeners=e.hasListeners??!1,n.hasAudioListeners=e.hasAudioListeners??!1,n.hasVideoListeners=e.hasVideoListeners??!1,n.hasDisplayListeners=e.hasDisplayListeners??!1,n.availableAds=e.availableAds?.map((e=>t.Ad.fromPartial(e)))||[],n}},t.AdQueue={encode(e,n=r.default.Writer.create()){for(const o of e.ads)t.Ad.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={ads:[]};for(;o.pos>>3==1)a.ads.push(t.Ad.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({ads:Array.isArray(e?.ads)?e.ads.map((e=>t.Ad.fromJSON(e))):[]}),toJSON(e){const n={};return e.ads?n.ads=e.ads.map((e=>e?t.Ad.toJSON(e):void 0)):n.ads=[],n},fromPartial(e){const n={ads:[]};return n.ads=e.ads?.map((e=>t.Ad.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95021:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubEventResponse=t.AdEvent=t.SubEventRequest=t.UnmanagedEventResponse=t.UnmanagedEventRequest=t.EventResponse=t.EventRequest=t.subEventResponse_StatusToJSON=t.subEventResponse_StatusFromJSON=t.SubEventResponse_Status=t.eventResponse_StatusToJSON=t.eventResponse_StatusFromJSON=t.EventResponse_Status=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(40131);var s,l;function c(e){switch(e){case 0:case"ACCEPTED":return s.ACCEPTED;case 1:case"AD_NOT_FOUND":return s.AD_NOT_FOUND;default:return s.UNRECOGNIZED}}function u(e){switch(e){case s.ACCEPTED:return"ACCEPTED";case s.AD_NOT_FOUND:return"AD_NOT_FOUND";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"OK":return l.OK;case 1:case"INVALID_SLOT":return l.INVALID_SLOT;case 2:case"INVALID_FORMAT":return l.INVALID_FORMAT;default:return l.UNRECOGNIZED}}function p(e){switch(e){case l.OK:return"OK";case l.INVALID_SLOT:return"INVALID_SLOT";case l.INVALID_FORMAT:return"INVALID_FORMAT";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){return e.toString()}function h(e){return null!=e}t.protobufPackage="spotify.ads.esperanto.events.proto",function(e){e[e.ACCEPTED=0]="ACCEPTED",e[e.AD_NOT_FOUND=1]="AD_NOT_FOUND",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.EventResponse_Status||(t.EventResponse_Status={})),t.eventResponse_StatusFromJSON=c,t.eventResponse_StatusToJSON=u,function(e){e[e.OK=0]="OK",e[e.INVALID_SLOT=1]="INVALID_SLOT",e[e.INVALID_FORMAT=2]="INVALID_FORMAT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.SubEventResponse_Status||(t.SubEventResponse_Status={})),t.subEventResponse_StatusFromJSON=d,t.subEventResponse_StatusToJSON=p,t.EventRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),""!==e.eventType&&t.uint32(18).string(e.eventType),void 0!==e.playbackPosition&&t.uint32(24).uint64(e.playbackPosition),void 0!==e.eventReason&&t.uint32(34).string(e.eventReason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0};for(;n.pos>>3){case 1:i.adId=n.string();break;case 2:i.eventType=n.string();break;case 3:i.playbackPosition=f(n.uint64());break;case 4:i.eventReason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({adId:h(e.adId)?String(e.adId):"",eventType:h(e.eventType)?String(e.eventType):"",playbackPosition:h(e.playbackPosition)?String(e.playbackPosition):void 0,eventReason:h(e.eventReason)?String(e.eventReason):void 0}),toJSON(e){const t={};return void 0!==e.adId&&(t.adId=e.adId),void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.playbackPosition&&(t.playbackPosition=e.playbackPosition),void 0!==e.eventReason&&(t.eventReason=e.eventReason),t},fromPartial(e){const t={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0};return t.adId=e.adId??"",t.eventType=e.eventType??"",t.playbackPosition=e.playbackPosition??void 0,t.eventReason=e.eventReason??void 0,t}},t.EventResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:h(e.status)?c(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=u(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.UnmanagedEventRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.adId&&t.uint32(10).string(e.adId),""!==e.eventType&&t.uint32(18).string(e.eventType),void 0!==e.playbackPosition&&t.uint32(24).uint64(e.playbackPosition),void 0!==e.eventReason&&t.uint32(34).string(e.eventReason),""!==e.lineitemId&&t.uint32(42).string(e.lineitemId),""!==e.creativeId&&t.uint32(50).string(e.creativeId),""!==e.playbackId&&t.uint32(58).string(e.playbackId),""!==e.productName&&t.uint32(66).string(e.productName),""!==e.slotId&&t.uint32(74).string(e.slotId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,lineitemId:"",creativeId:"",playbackId:"",productName:"",slotId:""};for(;n.pos>>3){case 1:i.adId=n.string();break;case 2:i.eventType=n.string();break;case 3:i.playbackPosition=f(n.uint64());break;case 4:i.eventReason=n.string();break;case 5:i.lineitemId=n.string();break;case 6:i.creativeId=n.string();break;case 7:i.playbackId=n.string();break;case 8:i.productName=n.string();break;case 9:i.slotId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({adId:h(e.adId)?String(e.adId):"",eventType:h(e.eventType)?String(e.eventType):"",playbackPosition:h(e.playbackPosition)?String(e.playbackPosition):void 0,eventReason:h(e.eventReason)?String(e.eventReason):void 0,lineitemId:h(e.lineitemId)?String(e.lineitemId):"",creativeId:h(e.creativeId)?String(e.creativeId):"",playbackId:h(e.playbackId)?String(e.playbackId):"",productName:h(e.productName)?String(e.productName):"",slotId:h(e.slotId)?String(e.slotId):""}),toJSON(e){const t={};return void 0!==e.adId&&(t.adId=e.adId),void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.playbackPosition&&(t.playbackPosition=e.playbackPosition),void 0!==e.eventReason&&(t.eventReason=e.eventReason),void 0!==e.lineitemId&&(t.lineitemId=e.lineitemId),void 0!==e.creativeId&&(t.creativeId=e.creativeId),void 0!==e.playbackId&&(t.playbackId=e.playbackId),void 0!==e.productName&&(t.productName=e.productName),void 0!==e.slotId&&(t.slotId=e.slotId),t},fromPartial(e){const t={adId:"",eventType:"",playbackPosition:void 0,eventReason:void 0,lineitemId:"",creativeId:"",playbackId:"",productName:"",slotId:""};return t.adId=e.adId??"",t.eventType=e.eventType??"",t.playbackPosition=e.playbackPosition??void 0,t.eventReason=e.eventReason??void 0,t.lineitemId=e.lineitemId??"",t.creativeId=e.creativeId??"",t.playbackId=e.playbackId??"",t.productName=e.productName??"",t.slotId=e.slotId??"",t}},t.UnmanagedEventResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubEventRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.eventType&&t.uint32(10).string(e.eventType),void 0!==e.format&&t.uint32(16).int32(e.format),void 0!==e.slotId&&t.uint32(26).string(e.slotId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={eventType:"",format:void 0,slotId:void 0};for(;n.pos>>3){case 1:i.eventType=n.string();break;case 2:i.format=n.int32();break;case 3:i.slotId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({eventType:h(e.eventType)?String(e.eventType):"",format:h(e.format)?(0,a.adFormatFromJSON)(e.format):void 0,slotId:h(e.slotId)?String(e.slotId):void 0}),toJSON(e){const t={};return void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.format&&(t.format=void 0!==e.format?(0,a.adFormatToJSON)(e.format):void 0),void 0!==e.slotId&&(t.slotId=e.slotId),t},fromPartial(e){const t={eventType:"",format:void 0,slotId:void 0};return t.eventType=e.eventType??"",t.format=e.format??void 0,t.slotId=e.slotId??void 0,t}},t.AdEvent={encode:(e,t=r.default.Writer.create())=>(""!==e.eventType&&t.uint32(10).string(e.eventType),""!==e.slotId&&t.uint32(18).string(e.slotId),void 0!==e.ad&&a.Ad.encode(e.ad,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={eventType:"",slotId:"",ad:void 0};for(;n.pos>>3){case 1:i.eventType=n.string();break;case 2:i.slotId=n.string();break;case 3:i.ad=a.Ad.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({eventType:h(e.eventType)?String(e.eventType):"",slotId:h(e.slotId)?String(e.slotId):"",ad:h(e.ad)?a.Ad.fromJSON(e.ad):void 0}),toJSON(e){const t={};return void 0!==e.eventType&&(t.eventType=e.eventType),void 0!==e.slotId&&(t.slotId=e.slotId),void 0!==e.ad&&(t.ad=e.ad?a.Ad.toJSON(e.ad):void 0),t},fromPartial(e){const t={eventType:"",slotId:"",ad:void 0};return t.eventType=e.eventType??"",t.slotId=e.slotId??"",t.ad=void 0!==e.ad&&null!==e.ad?a.Ad.fromPartial(e.ad):void 0,t}},t.SubEventResponse={encode:(e,n=r.default.Writer.create())=>(0!==e.status&&n.uint32(8).int32(e.status),void 0!==e.adEvent&&t.AdEvent.encode(e.adEvent,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:0,adEvent:void 0};for(;o.pos>>3){case 1:a.status=o.int32();break;case 2:a.adEvent=t.AdEvent.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:h(e.status)?d(e.status):0,adEvent:h(e.adEvent)?t.AdEvent.fromJSON(e.adEvent):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=p(e.status)),void 0!==e.adEvent&&(n.adEvent=e.adEvent?t.AdEvent.toJSON(e.adEvent):void 0),n},fromPartial(e){const n={status:0,adEvent:void 0};return n.status=e.status??0,n.adEvent=void 0!==e.adEvent&&null!==e.adEvent?t.AdEvent.fromPartial(e.adEvent):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},83540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlatformServiceClient=void 0;const o=n(33892),i=n(93990),r=n(64337);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Contains",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamContains(e,t){const n="spotify.collection_platform_esperanto.proto.CollectionPlatformService",a="StreamContains",s=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.CollectionPlatformEsperantoContainsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}get(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Get",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamGet(e,t){const n="spotify.collection_platform_esperanto.proto.CollectionPlatformService",a="StreamGet",s=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}add(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Add",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}remove(e){const t="spotify.collection_platform_esperanto.proto.CollectionPlatformService",n="Remove",a=i.CollectionPlatformItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.CollectionPlatformEsperantoItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.collection_platform_esperanto.proto.CollectionPlatformService";static DECODERS={Contains:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoContainsResponse.decode},StreamContains:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoContainsResponse.decode},Get:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode},StreamGet:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode},Add:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode},Remove:{request:i.CollectionPlatformItemsRequest.decode,response:r.CollectionPlatformEsperantoItemsResponse.decode}}}t.CollectionPlatformServiceClient=a},13889:(e,t,n)=>{"use strict";t.Ht=t.hO=t.nW=void 0;var o=n(83540);Object.defineProperty(t,"nW",{enumerable:!0,get:function(){return o.CollectionPlatformServiceClient}});var i=n(93990);Object.defineProperty(t,"hO",{enumerable:!0,get:function(){return i.CollectionSet}}),Object.defineProperty(t,"Ht",{enumerable:!0,get:function(){return i.CollectionPlatformItemsRequest}});var r=n(64337)},93990:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlatformItemsRequest=t.collectionSetToJSON=t.collectionSetFromJSON=t.CollectionSet=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"UNKNOWN":return r.UNKNOWN;case 1:case"SHOW":return r.SHOW;case 2:case"BAN":return r.BAN;case 3:case"LISTENLATER":return r.LISTENLATER;case 4:case"IGNOREINRECS":return r.IGNOREINRECS;case 5:case"ENHANCED":return r.ENHANCED;case 6:case"COLLECTION":return r.COLLECTION;case 7:case"FOLLOWED_ARTISTS":return r.FOLLOWED_ARTISTS;case 8:case"BANNED_ARTISTS":return r.BANNED_ARTISTS;case 9:case"PINNED_YOUR_LIBRARY":return r.PINNED_YOUR_LIBRARY;case 10:case"CONCERTS":return r.CONCERTS;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.UNKNOWN:return"UNKNOWN";case r.SHOW:return"SHOW";case r.BAN:return"BAN";case r.LISTENLATER:return"LISTENLATER";case r.IGNOREINRECS:return"IGNOREINRECS";case r.ENHANCED:return"ENHANCED";case r.COLLECTION:return"COLLECTION";case r.FOLLOWED_ARTISTS:return"FOLLOWED_ARTISTS";case r.BANNED_ARTISTS:return"BANNED_ARTISTS";case r.PINNED_YOUR_LIBRARY:return"PINNED_YOUR_LIBRARY";case r.CONCERTS:return"CONCERTS";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}t.protobufPackage="spotify.collection_platform.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SHOW=1]="SHOW",e[e.BAN=2]="BAN",e[e.LISTENLATER=3]="LISTENLATER",e[e.IGNOREINRECS=4]="IGNOREINRECS",e[e.ENHANCED=5]="ENHANCED",e[e.COLLECTION=6]="COLLECTION",e[e.FOLLOWED_ARTISTS=7]="FOLLOWED_ARTISTS",e[e.BANNED_ARTISTS=8]="BANNED_ARTISTS",e[e.PINNED_YOUR_LIBRARY=9]="PINNED_YOUR_LIBRARY",e[e.CONCERTS=10]="CONCERTS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.CollectionSet||(t.CollectionSet={})),t.collectionSetFromJSON=a,t.collectionSetToJSON=s,t.CollectionPlatformItemsRequest={encode(e,t=i.default.Writer.create()){0!==e.set&&t.uint32(8).int32(e.set);for(const n of e.items)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={set:0,items:[]};for(;n.pos>>3){case 1:r.set=n.int32();break;case 2:r.items.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON(e){return{set:(t=e.set,null!=t?a(e.set):0),items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[]};var t},toJSON(e){const t={};return void 0!==e.set&&(t.set=s(e.set)),e.items?t.items=e.items.map((e=>e)):t.items=[],t},fromPartial(e){const t={set:0,items:[]};return t.set=e.set??0,t.items=e.items?.map((e=>e))||[],t}}},64337:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionPlatformEsperantoItemsResponse=t.CollectionPlatformEsperantoContainsResponse=t.Status=t.CollectionPlatformContainsResponse=t.CollectionPlatformItemsResponse=t.CollectionPlatformItem=t.CollectionPlatformSimpleResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.collection_platform.proto",t.CollectionPlatformSimpleResponse={encode:(e,t=r.default.Writer.create())=>(""!==e.errorMsg&&t.uint32(10).string(e.errorMsg),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={errorMsg:""};for(;n.pos>>3==1)i.errorMsg=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({errorMsg:a(e.errorMsg)?String(e.errorMsg):""}),toJSON(e){const t={};return void 0!==e.errorMsg&&(t.errorMsg=e.errorMsg),t},fromPartial(e){const t={errorMsg:""};return t.errorMsg=e.errorMsg??"",t}},t.CollectionPlatformItem={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),"0"!==e.addTime&&t.uint32(16).int64(e.addTime),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",addTime:"0"};for(;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.addTime=n.int64().toString();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",addTime:a(e.addTime)?String(e.addTime):"0"}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.addTime&&(t.addTime=e.addTime),t},fromPartial(e){const t={uri:"",addTime:"0"};return t.uri=e.uri??"",t.addTime=e.addTime??"0",t}},t.CollectionPlatformItemsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.items)t.CollectionPlatformItem.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={items:[]};for(;o.pos>>3==1)a.items.push(t.CollectionPlatformItem.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>t.CollectionPlatformItem.fromJSON(e))):[]}),toJSON(e){const n={};return e.items?n.items=e.items.map((e=>e?t.CollectionPlatformItem.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={items:[]};return n.items=e.items?.map((e=>t.CollectionPlatformItem.fromPartial(e)))||[],n}},t.CollectionPlatformContainsResponse={encode(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={found:[]};for(;n.pos>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return e.found?t.found=e.found.map((e=>e)):t.found=[],t},fromPartial(e){const t={found:[]};return t.found=e.found?.map((e=>e))||[],t}},t.Status={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0,reason:""};for(;n.pos>>3){case 1:i.code=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({code:a(e.code)?Number(e.code):0,reason:a(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=Math.round(e.code)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}},t.CollectionPlatformEsperantoContainsResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.status&&t.Status.encode(e.status,n.uint32(10).fork()).ldelim(),void 0!==e.contains&&t.CollectionPlatformContainsResponse.encode(e.contains,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,contains:void 0};for(;o.pos>>3){case 1:a.status=t.Status.decode(o,o.uint32());break;case 2:a.contains=t.CollectionPlatformContainsResponse.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:a(e.status)?t.Status.fromJSON(e.status):void 0,contains:a(e.contains)?t.CollectionPlatformContainsResponse.fromJSON(e.contains):void 0}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),void 0!==e.contains&&(n.contains=e.contains?t.CollectionPlatformContainsResponse.toJSON(e.contains):void 0),n},fromPartial(e){const n={status:void 0,contains:void 0};return n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n.contains=void 0!==e.contains&&null!==e.contains?t.CollectionPlatformContainsResponse.fromPartial(e.contains):void 0,n}},t.CollectionPlatformEsperantoItemsResponse={encode(e,n=r.default.Writer.create()){void 0!==e.status&&t.Status.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.items)t.CollectionPlatformItem.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,items:[]};for(;o.pos>>3){case 1:a.status=t.Status.decode(o,o.uint32());break;case 2:a.items.push(t.CollectionPlatformItem.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:a(e.status)?t.Status.fromJSON(e.status):void 0,items:Array.isArray(e?.items)?e.items.map((e=>t.CollectionPlatformItem.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),e.items?n.items=e.items.map((e=>e?t.CollectionPlatformItem.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={status:void 0,items:[]};return n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n.items=e.items?.map((e=>t.CollectionPlatformItem.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},42302:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySegmentsServiceClient=void 0;const o=n(33892),i=n(17183),r=n(44673);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getDisplaySegments(e){const t="spotify.display_segments_esperanto.proto.v1.DisplaySegmentsService",n="GetDisplaySegments",a=i.SegmentsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.SegmentsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.display_segments_esperanto.proto.v1.DisplaySegmentsService";static DECODERS={GetDisplaySegments:{request:i.SegmentsRequest.decode,response:r.SegmentsResponse.decode}}}t.DisplaySegmentsServiceClient=a},78820:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplaySegmentsServiceClient=void 0;var r=n(42302);Object.defineProperty(t,"DisplaySegmentsServiceClient",{enumerable:!0,get:function(){return r.DisplaySegmentsServiceClient}}),i(n(73894),t)},73894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protobufPackage=void 0,t.protobufPackage="spotify.display_segments_esperanto.proto.v1"},43395:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 68:case"SKIP_PLAYED":return n.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.SKIP_PLAYED:return"SKIP_PLAYED";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},38775:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(12202),s=n(53571);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";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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={encode:(e,t=r.default.Writer.create())=>(""!==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&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};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=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},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)?s.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?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.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&&s.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&&s.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)a.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),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={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,isCurated:!1};for(;o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},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)?s.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)?s.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(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),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?s.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?s.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?a.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),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12202:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(43395);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},87612:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(12202),a=n(53571);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.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){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},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){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos>>3==1)r.name=n.string();else n.skipType(7&e)}return r},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){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=i.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,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 o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(162).fork()).ldelim();return!0===e.isCurated&&n.uint32(168).bool(e.isCurated),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={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:[],extension:[],isCurated:!1};for(;o.pos>>3){case 1:s.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:s.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:s.link=o.string();break;case 4:s.name=o.string();break;case 5:s.length=o.uint32();break;case 6:s.playable=o.bool();break;case 7:s.discNumber=o.uint32();break;case 8:s.trackNumber=o.uint32();break;case 9:s.isExplicit=o.bool();break;case 10:s.previewId=o.string();break;case 11:s.isLocal=o.bool();break;case 12:s.playableLocalTrack=o.bool();break;case 13:s.hasLyrics=o.bool();break;case 14:s.isPremiumOnly=o.bool();break;case 15:s.locallyPlayable=o.bool();break;case 16:s.playableTrackLink=o.string();break;case 17:s.popularity=o.uint32();break;case 18:s.is19PlusOnly=o.bool();break;case 19:s.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:s.extension.push(r.Extension.decode(o,o.uint32()));break;case 21:s.isCurated=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(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(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isCurated:!!s(e.isCurated)&&Boolean(e.isCurated)}),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=[],e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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:[],extension:[],isCurated:!1};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.isCurated=e.isCurated??!1,n}}},81409:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedSegment=t.PlaybackSegment=t.PodcastSegments=t.segmentTypeToJSON=t.segmentTypeFromJSON=t.SegmentType=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"UNKNOWN":return r.UNKNOWN;case 1:case"TALK":return r.TALK;case 2:case"MUSIC":return r.MUSIC;case 3:case"UPSELL":return r.UPSELL;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.UNKNOWN:return"UNKNOWN";case r.TALK:return"TALK";case r.MUSIC:return"MUSIC";case r.UPSELL:return"UPSELL";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.podcast_segments",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TALK=1]="TALK",e[e.MUSIC=2]="MUSIC",e[e.UPSELL=3]="UPSELL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.SegmentType||(t.SegmentType={})),t.segmentTypeFromJSON=a,t.segmentTypeToJSON=s,t.PodcastSegments={encode(e,n=i.default.Writer.create()){""!==e.episodeUri&&n.uint32(10).string(e.episodeUri);for(const o of e.playbackSegments)t.PlaybackSegment.encode(o,n.uint32(18).fork()).ldelim();for(const o of e.embeddedSegments)t.EmbeddedSegment.encode(o,n.uint32(26).fork()).ldelim();!0===e.canUpsell&&n.uint32(32).bool(e.canUpsell),""!==e.albumMosaicUri&&n.uint32(42).string(e.albumMosaicUri);for(const t of e.artists)n.uint32(50).string(t);return 0!==e.durationMs&&n.uint32(56).int32(e.durationMs),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={episodeUri:"",playbackSegments:[],embeddedSegments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};for(;o.pos>>3){case 1:a.episodeUri=o.string();break;case 2:a.playbackSegments.push(t.PlaybackSegment.decode(o,o.uint32()));break;case 3:a.embeddedSegments.push(t.EmbeddedSegment.decode(o,o.uint32()));break;case 4:a.canUpsell=o.bool();break;case 5:a.albumMosaicUri=o.string();break;case 6:a.artists.push(o.string());break;case 7:a.durationMs=o.int32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeUri:l(e.episodeUri)?String(e.episodeUri):"",playbackSegments:Array.isArray(e?.playbackSegments)?e.playbackSegments.map((e=>t.PlaybackSegment.fromJSON(e))):[],embeddedSegments:Array.isArray(e?.embeddedSegments)?e.embeddedSegments.map((e=>t.EmbeddedSegment.fromJSON(e))):[],canUpsell:!!l(e.canUpsell)&&Boolean(e.canUpsell),albumMosaicUri:l(e.albumMosaicUri)?String(e.albumMosaicUri):"",artists:Array.isArray(e?.artists)?e.artists.map((e=>String(e))):[],durationMs:l(e.durationMs)?Number(e.durationMs):0}),toJSON(e){const n={};return void 0!==e.episodeUri&&(n.episodeUri=e.episodeUri),e.playbackSegments?n.playbackSegments=e.playbackSegments.map((e=>e?t.PlaybackSegment.toJSON(e):void 0)):n.playbackSegments=[],e.embeddedSegments?n.embeddedSegments=e.embeddedSegments.map((e=>e?t.EmbeddedSegment.toJSON(e):void 0)):n.embeddedSegments=[],void 0!==e.canUpsell&&(n.canUpsell=e.canUpsell),void 0!==e.albumMosaicUri&&(n.albumMosaicUri=e.albumMosaicUri),e.artists?n.artists=e.artists.map((e=>e)):n.artists=[],void 0!==e.durationMs&&(n.durationMs=Math.round(e.durationMs)),n},fromPartial(e){const n={episodeUri:"",playbackSegments:[],embeddedSegments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};return n.episodeUri=e.episodeUri??"",n.playbackSegments=e.playbackSegments?.map((e=>t.PlaybackSegment.fromPartial(e)))||[],n.embeddedSegments=e.embeddedSegments?.map((e=>t.EmbeddedSegment.fromPartial(e)))||[],n.canUpsell=e.canUpsell??!1,n.albumMosaicUri=e.albumMosaicUri??"",n.artists=e.artists?.map((e=>e))||[],n.durationMs=e.durationMs??0,n}},t.PlaybackSegment={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.startMs&&t.uint32(16).int32(e.startMs),0!==e.stopMs&&t.uint32(24).int32(e.stopMs),0!==e.durationMs&&t.uint32(32).int32(e.durationMs),0!==e.type&&t.uint32(40).int32(e.type),""!==e.title&&t.uint32(50).string(e.title),""!==e.subtitle&&t.uint32(58).string(e.subtitle),""!==e.imageUrl&&t.uint32(66).string(e.imageUrl),""!==e.actionUrl&&t.uint32(74).string(e.actionUrl),!0===e.isAbridged&&t.uint32(80).bool(e.isAbridged),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",startMs:0,stopMs:0,durationMs:0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",isAbridged:!1};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.startMs=n.int32();break;case 3:r.stopMs=n.int32();break;case 4:r.durationMs=n.int32();break;case 5:r.type=n.int32();break;case 6:r.title=n.string();break;case 7:r.subtitle=n.string();break;case 8:r.imageUrl=n.string();break;case 9:r.actionUrl=n.string();break;case 10:r.isAbridged=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",startMs:l(e.startMs)?Number(e.startMs):0,stopMs:l(e.stopMs)?Number(e.stopMs):0,durationMs:l(e.durationMs)?Number(e.durationMs):0,type:l(e.type)?a(e.type):0,title:l(e.title)?String(e.title):"",subtitle:l(e.subtitle)?String(e.subtitle):"",imageUrl:l(e.imageUrl)?String(e.imageUrl):"",actionUrl:l(e.actionUrl)?String(e.actionUrl):"",isAbridged:!!l(e.isAbridged)&&Boolean(e.isAbridged)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.startMs&&(t.startMs=Math.round(e.startMs)),void 0!==e.stopMs&&(t.stopMs=Math.round(e.stopMs)),void 0!==e.durationMs&&(t.durationMs=Math.round(e.durationMs)),void 0!==e.type&&(t.type=s(e.type)),void 0!==e.title&&(t.title=e.title),void 0!==e.subtitle&&(t.subtitle=e.subtitle),void 0!==e.imageUrl&&(t.imageUrl=e.imageUrl),void 0!==e.actionUrl&&(t.actionUrl=e.actionUrl),void 0!==e.isAbridged&&(t.isAbridged=e.isAbridged),t},fromPartial(e){const t={uri:"",startMs:0,stopMs:0,durationMs:0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",isAbridged:!1};return t.uri=e.uri??"",t.startMs=e.startMs??0,t.stopMs=e.stopMs??0,t.durationMs=e.durationMs??0,t.type=e.type??0,t.title=e.title??"",t.subtitle=e.subtitle??"",t.imageUrl=e.imageUrl??"",t.actionUrl=e.actionUrl??"",t.isAbridged=e.isAbridged??!1,t}},t.EmbeddedSegment={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.absoluteStartMs&&t.uint32(16).int32(e.absoluteStartMs),0!==e.absoluteStopMs&&t.uint32(24).int32(e.absoluteStopMs),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",absoluteStartMs:0,absoluteStopMs:0};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.absoluteStartMs=n.int32();break;case 3:r.absoluteStopMs=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",absoluteStartMs:l(e.absoluteStartMs)?Number(e.absoluteStartMs):0,absoluteStopMs:l(e.absoluteStopMs)?Number(e.absoluteStopMs):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.absoluteStartMs&&(t.absoluteStartMs=Math.round(e.absoluteStartMs)),void 0!==e.absoluteStopMs&&(t.absoluteStopMs=Math.round(e.absoluteStopMs)),t},fromPartial(e){const t={uri:"",absoluteStartMs:0,absoluteStopMs:0};return t.uri=e.uri??"",t.absoluteStartMs=e.absoluteStartMs??0,t.absoluteStopMs=e.absoluteStopMs??0,t}}},17183:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeDecorationPolicy=t.SegmentsPolicy=t.TrackDecorationPolicy=t.SegmentsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(70659),a=n(97375),s=n(82137),l=n(37403),c=n(66927);function u(e){return null!=e}t.protobufPackage="spotify.podcast_segments.cosmos.proto",t.SegmentsRequest={encode(e,n=i.default.Writer.create()){for(const t of e.episodeUris)n.uint32(10).string(t);return void 0!==e.trackDecorationPolicy&&t.TrackDecorationPolicy.encode(e.trackDecorationPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.segmentsPolicy&&t.SegmentsPolicy.encode(e.segmentsPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.episodeDecorationPolicy&&t.EpisodeDecorationPolicy.encode(e.episodeDecorationPolicy,n.uint32(34).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={episodeUris:[],trackDecorationPolicy:void 0,segmentsPolicy:void 0,episodeDecorationPolicy:void 0};for(;o.pos>>3){case 1:a.episodeUris.push(o.string());break;case 2:a.trackDecorationPolicy=t.TrackDecorationPolicy.decode(o,o.uint32());break;case 3:a.segmentsPolicy=t.SegmentsPolicy.decode(o,o.uint32());break;case 4:a.episodeDecorationPolicy=t.EpisodeDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeUris:Array.isArray(e?.episodeUris)?e.episodeUris.map((e=>String(e))):[],trackDecorationPolicy:u(e.trackDecorationPolicy)?t.TrackDecorationPolicy.fromJSON(e.trackDecorationPolicy):void 0,segmentsPolicy:u(e.segmentsPolicy)?t.SegmentsPolicy.fromJSON(e.segmentsPolicy):void 0,episodeDecorationPolicy:u(e.episodeDecorationPolicy)?t.EpisodeDecorationPolicy.fromJSON(e.episodeDecorationPolicy):void 0}),toJSON(e){const n={};return e.episodeUris?n.episodeUris=e.episodeUris.map((e=>e)):n.episodeUris=[],void 0!==e.trackDecorationPolicy&&(n.trackDecorationPolicy=e.trackDecorationPolicy?t.TrackDecorationPolicy.toJSON(e.trackDecorationPolicy):void 0),void 0!==e.segmentsPolicy&&(n.segmentsPolicy=e.segmentsPolicy?t.SegmentsPolicy.toJSON(e.segmentsPolicy):void 0),void 0!==e.episodeDecorationPolicy&&(n.episodeDecorationPolicy=e.episodeDecorationPolicy?t.EpisodeDecorationPolicy.toJSON(e.episodeDecorationPolicy):void 0),n},fromPartial(e){const n={episodeUris:[],trackDecorationPolicy:void 0,segmentsPolicy:void 0,episodeDecorationPolicy:void 0};return n.episodeUris=e.episodeUris?.map((e=>e))||[],n.trackDecorationPolicy=void 0!==e.trackDecorationPolicy&&null!==e.trackDecorationPolicy?t.TrackDecorationPolicy.fromPartial(e.trackDecorationPolicy):void 0,n.segmentsPolicy=void 0!==e.segmentsPolicy&&null!==e.segmentsPolicy?t.SegmentsPolicy.fromPartial(e.segmentsPolicy):void 0,n.episodeDecorationPolicy=void 0!==e.episodeDecorationPolicy&&null!==e.episodeDecorationPolicy?t.EpisodeDecorationPolicy.fromPartial(e.episodeDecorationPolicy):void 0,n}},t.TrackDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.trackPolicy&&c.TrackDecorationPolicy.encode(e.trackPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.artistsPolicy&&a.ArtistDecorationPolicy.encode(e.artistsPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.albumPolicy&&r.AlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.albumArtistPolicy&&a.ArtistDecorationPolicy.encode(e.albumArtistPolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={trackPolicy:void 0,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};for(;n.pos>>3){case 1:s.trackPolicy=c.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:s.artistsPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 3:s.albumPolicy=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 4:s.albumArtistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({trackPolicy:u(e.trackPolicy)?c.TrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,artistsPolicy:u(e.artistsPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0,albumPolicy:u(e.albumPolicy)?r.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,albumArtistPolicy:u(e.albumArtistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.albumArtistPolicy):void 0}),toJSON(e){const t={};return void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?c.TrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.artistsPolicy&&(t.artistsPolicy=e.artistsPolicy?a.ArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.albumArtistPolicy&&(t.albumArtistPolicy=e.albumArtistPolicy?a.ArtistDecorationPolicy.toJSON(e.albumArtistPolicy):void 0),t},fromPartial(e){const t={trackPolicy:void 0,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};return t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?c.TrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.albumArtistPolicy=void 0!==e.albumArtistPolicy&&null!==e.albumArtistPolicy?a.ArtistDecorationPolicy.fromPartial(e.albumArtistPolicy):void 0,t}},t.SegmentsPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.playback&&t.uint32(8).bool(e.playback),!0===e.embedded&&t.uint32(16).bool(e.embedded),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playback:!1,embedded:!1};for(;n.pos>>3){case 1:r.playback=n.bool();break;case 2:r.embedded=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playback:!!u(e.playback)&&Boolean(e.playback),embedded:!!u(e.embedded)&&Boolean(e.embedded)}),toJSON(e){const t={};return void 0!==e.playback&&(t.playback=e.playback),void 0!==e.embedded&&(t.embedded=e.embedded),t},fromPartial(e){const t={playback:!1,embedded:!1};return t.playback=e.playback??!1,t.embedded=e.embedded??!1,t}},t.EpisodeDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episodePolicy&&s.EpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.showDecorationPolicy&&l.ShowDecorationPolicy.encode(e.showDecorationPolicy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,showDecorationPolicy:void 0};for(;n.pos>>3){case 1:r.episodePolicy=s.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:r.showDecorationPolicy=l.ShowDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({episodePolicy:u(e.episodePolicy)?s.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,showDecorationPolicy:u(e.showDecorationPolicy)?l.ShowDecorationPolicy.fromJSON(e.showDecorationPolicy):void 0}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?s.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.showDecorationPolicy&&(t.showDecorationPolicy=e.showDecorationPolicy?l.ShowDecorationPolicy.toJSON(e.showDecorationPolicy):void 0),t},fromPartial(e){const t={episodePolicy:void 0,showDecorationPolicy:void 0};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.showDecorationPolicy=void 0!==e.showDecorationPolicy&&null!==e.showDecorationPolicy?l.ShowDecorationPolicy.fromPartial(e.showDecorationPolicy):void 0,t}}},44673:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecoratedSegment=t.EpisodeSegments=t.SegmentsResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(38775),a=n(87612),s=n(81409);function l(e){return null!=e}t.protobufPackage="spotify.podcast_segments.cosmos.proto",t.SegmentsResponse={encode(e,n=i.default.Writer.create()){!0===e.success&&n.uint32(8).bool(e.success);for(const o of e.episodeSegments)t.EpisodeSegments.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={success:!1,episodeSegments:[]};for(;o.pos>>3){case 1:a.success=o.bool();break;case 2:a.episodeSegments.push(t.EpisodeSegments.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({success:!!l(e.success)&&Boolean(e.success),episodeSegments:Array.isArray(e?.episodeSegments)?e.episodeSegments.map((e=>t.EpisodeSegments.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.success&&(n.success=e.success),e.episodeSegments?n.episodeSegments=e.episodeSegments.map((e=>e?t.EpisodeSegments.toJSON(e):void 0)):n.episodeSegments=[],n},fromPartial(e){const n={success:!1,episodeSegments:[]};return n.success=e.success??!1,n.episodeSegments=e.episodeSegments?.map((e=>t.EpisodeSegments.fromPartial(e)))||[],n}},t.EpisodeSegments={encode(e,n=i.default.Writer.create()){""!==e.episodeUri&&n.uint32(10).string(e.episodeUri);for(const o of e.segments)t.DecoratedSegment.encode(o,n.uint32(18).fork()).ldelim();!0===e.canUpsell&&n.uint32(24).bool(e.canUpsell),""!==e.albumMosaicUri&&n.uint32(34).string(e.albumMosaicUri);for(const t of e.artists)n.uint32(42).string(t);return 0!==e.durationMs&&n.uint32(48).int32(e.durationMs),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={episodeUri:"",segments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};for(;o.pos>>3){case 1:a.episodeUri=o.string();break;case 2:a.segments.push(t.DecoratedSegment.decode(o,o.uint32()));break;case 3:a.canUpsell=o.bool();break;case 4:a.albumMosaicUri=o.string();break;case 5:a.artists.push(o.string());break;case 6:a.durationMs=o.int32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodeUri:l(e.episodeUri)?String(e.episodeUri):"",segments:Array.isArray(e?.segments)?e.segments.map((e=>t.DecoratedSegment.fromJSON(e))):[],canUpsell:!!l(e.canUpsell)&&Boolean(e.canUpsell),albumMosaicUri:l(e.albumMosaicUri)?String(e.albumMosaicUri):"",artists:Array.isArray(e?.artists)?e.artists.map((e=>String(e))):[],durationMs:l(e.durationMs)?Number(e.durationMs):0}),toJSON(e){const n={};return void 0!==e.episodeUri&&(n.episodeUri=e.episodeUri),e.segments?n.segments=e.segments.map((e=>e?t.DecoratedSegment.toJSON(e):void 0)):n.segments=[],void 0!==e.canUpsell&&(n.canUpsell=e.canUpsell),void 0!==e.albumMosaicUri&&(n.albumMosaicUri=e.albumMosaicUri),e.artists?n.artists=e.artists.map((e=>e)):n.artists=[],void 0!==e.durationMs&&(n.durationMs=Math.round(e.durationMs)),n},fromPartial(e){const n={episodeUri:"",segments:[],canUpsell:!1,albumMosaicUri:"",artists:[],durationMs:0};return n.episodeUri=e.episodeUri??"",n.segments=e.segments?.map((e=>t.DecoratedSegment.fromPartial(e)))||[],n.canUpsell=e.canUpsell??!1,n.albumMosaicUri=e.albumMosaicUri??"",n.artists=e.artists?.map((e=>e))||[],n.durationMs=e.durationMs??0,n}},t.DecoratedSegment={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.startMs&&t.uint32(16).int32(e.startMs),0!==e.stopMs&&t.uint32(24).int32(e.stopMs),void 0!==e.trackMetadata&&a.TrackMetadata.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).int32(e.type),""!==e.title&&t.uint32(50).string(e.title),""!==e.subtitle&&t.uint32(58).string(e.subtitle),""!==e.imageUrl&&t.uint32(66).string(e.imageUrl),""!==e.actionUrl&&t.uint32(74).string(e.actionUrl),void 0!==e.episodeMetadata&&r.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),!0===e.isAbridged&&t.uint32(88).bool(e.isAbridged),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={uri:"",startMs:0,stopMs:0,trackMetadata:void 0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",episodeMetadata:void 0,isAbridged:!1};for(;n.pos>>3){case 1:s.uri=n.string();break;case 2:s.startMs=n.int32();break;case 3:s.stopMs=n.int32();break;case 4:s.trackMetadata=a.TrackMetadata.decode(n,n.uint32());break;case 5:s.type=n.int32();break;case 6:s.title=n.string();break;case 7:s.subtitle=n.string();break;case 8:s.imageUrl=n.string();break;case 9:s.actionUrl=n.string();break;case 10:s.episodeMetadata=r.EpisodeMetadata.decode(n,n.uint32());break;case 11:s.isAbridged=n.bool();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",startMs:l(e.startMs)?Number(e.startMs):0,stopMs:l(e.stopMs)?Number(e.stopMs):0,trackMetadata:l(e.trackMetadata)?a.TrackMetadata.fromJSON(e.trackMetadata):void 0,type:l(e.type)?(0,s.segmentTypeFromJSON)(e.type):0,title:l(e.title)?String(e.title):"",subtitle:l(e.subtitle)?String(e.subtitle):"",imageUrl:l(e.imageUrl)?String(e.imageUrl):"",actionUrl:l(e.actionUrl)?String(e.actionUrl):"",episodeMetadata:l(e.episodeMetadata)?r.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,isAbridged:!!l(e.isAbridged)&&Boolean(e.isAbridged)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.startMs&&(t.startMs=Math.round(e.startMs)),void 0!==e.stopMs&&(t.stopMs=Math.round(e.stopMs)),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?a.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.type&&(t.type=(0,s.segmentTypeToJSON)(e.type)),void 0!==e.title&&(t.title=e.title),void 0!==e.subtitle&&(t.subtitle=e.subtitle),void 0!==e.imageUrl&&(t.imageUrl=e.imageUrl),void 0!==e.actionUrl&&(t.actionUrl=e.actionUrl),void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?r.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.isAbridged&&(t.isAbridged=e.isAbridged),t},fromPartial(e){const t={uri:"",startMs:0,stopMs:0,trackMetadata:void 0,type:0,title:"",subtitle:"",imageUrl:"",actionUrl:"",episodeMetadata:void 0,isAbridged:!1};return t.uri=e.uri??"",t.startMs=e.startMs??0,t.stopMs=e.stopMs??0,t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?a.TrackMetadata.fromPartial(e.trackMetadata):void 0,t.type=e.type??0,t.title=e.title??"",t.subtitle=e.subtitle??"",t.imageUrl=e.imageUrl??"",t.actionUrl=e.actionUrl??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?r.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.isAbridged=e.isAbridged??!1,t}}},70659:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.copyrights=n.bool();break;case 4:r.covers=n.bool();break;case 5:r.year=n.bool();break;case 6:r.numDiscs=n.bool();break;case 7:r.numTracks=n.bool();break;case 8:r.playability=n.bool();break;case 9:r.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(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){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos>>3){case 1:r.collectionLink=n.bool();break;case 2:r.numTracksInCollection=n.bool();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!r(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){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},97375:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.isVariousArtists=n.bool();break;case 4:r.portraits=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),isVariousArtists:!!r(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!r(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){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.collectionLink=n.bool();break;case 2:r.isFollowed=n.bool();break;case 3:r.numTracksInCollection=n.bool();break;case 4:r.numAlbumsInCollection=n.bool();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!r(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!r(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(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){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},82137:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(43395);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),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={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),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={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},37403:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(43395);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(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=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),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},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){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},66927:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(43395);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=i.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.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={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,extension:[],isCurated:!1};for(;n.pos>>3){case 1:r.hasLyrics=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.length=n.bool();break;case 5:r.playable=n.bool();break;case 6:r.isAvailableInMetadataCatalogue=n.bool();break;case 7:r.locallyPlayable=n.bool();break;case 8:r.playableLocalTrack=n.bool();break;case 9:r.discNumber=n.bool();break;case 10:r.trackNumber=n.bool();break;case 11:r.isExplicit=n.bool();break;case 12:r.previewId=n.bool();break;case 13:r.isLocal=n.bool();break;case 14:r.isPremiumOnly=n.bool();break;case 15:r.playableTrackLink=n.bool();break;case 16:r.popularity=n.bool();break;case 17:r.is19PlusOnly=n.bool();break;case 18:r.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({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),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),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),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={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,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos>>3){case 1:r.playable=n.bool();break;case 2:r.isCurrentlyPlayable=n.bool();break;case 3:r.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},64103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokeServiceClient=void 0;const o=n(33892),i=n(5625),r=n(97011),a=n(26168),s=n(66903);class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}postVocalVolume(e){const t="spotify.karaoke_esperanto.proto.KaraokeService",n="PostVocalVolume",r=i.KaraokePostVocalVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.KaraokePostVocalVolumeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}postStatus(e){const t="spotify.karaoke_esperanto.proto.KaraokeService",n="PostStatus",i=r.KaraokePostStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.KaraokePostStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getStatus(e){const t="spotify.karaoke_esperanto.proto.KaraokeService",n="GetStatus",i=a.KaraokeGetStatusRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.KaraokeGetStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeToEvents(e,t){const n="spotify.karaoke_esperanto.proto.KaraokeService",i="SubscribeToEvents",r=s.KaraokeSubEventsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=s.KaraokeSubEventsResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}static SERVICE_ID="spotify.karaoke_esperanto.proto.KaraokeService";static DECODERS={PostVocalVolume:{request:i.KaraokePostVocalVolumeRequest.decode,response:i.KaraokePostVocalVolumeResponse.decode},PostStatus:{request:r.KaraokePostStatusRequest.decode,response:r.KaraokePostStatusResponse.decode},GetStatus:{request:a.KaraokeGetStatusRequest.decode,response:a.KaraokeGetStatusResponse.decode},SubscribeToEvents:{request:s.KaraokeSubEventsRequest.decode,response:s.KaraokeSubEventsResponse.decode}}}t.KaraokeServiceClient=l},10260:(e,t,n)=>{"use strict";t.gw=void 0;var o=n(26168);var i=n(97011);var r=n(5625);var a=n(5734);var s=n(66903);var l=n(64103);Object.defineProperty(t,"gw",{enumerable:!0,get:function(){return l.KaraokeServiceClient}})},26168:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokeGetStatusResponse=t.KaraokeGetStatusRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(5734);t.protobufPackage="spotify.karaoke_esperanto.proto",t.KaraokeGetStatusRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.KaraokeGetStatusResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){return{status:(t=e.status,null!=t?(0,a.karaokeStatusFromJSON)(e.status):0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=(0,a.karaokeStatusToJSON)(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},97011:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokePostStatusResponse=t.KaraokePostStatusRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(5734);function s(e){return null!=e}t.protobufPackage="spotify.karaoke_esperanto.proto",t.KaraokePostStatusRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:s(e.status)?(0,a.karaokeStatusFromJSON)(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=(0,a.karaokeStatusToJSON)(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},t.KaraokePostStatusResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={success:!1};for(;n.pos>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({success:!!s(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),t},fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5625:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokePostVocalVolumeResponse=t.KaraokePostVocalVolumeRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.karaoke_esperanto.proto",t.KaraokePostVocalVolumeRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.volume&&t.uint32(13).float(e.volume),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={volume:0};for(;n.pos>>3==1)i.volume=n.float();else n.skipType(7&e)}return i},fromJSON:e=>({volume:a(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return void 0!==e.volume&&(t.volume=e.volume),t},fromPartial(e){const t={volume:0};return t.volume=e.volume??0,t}},t.KaraokePostVocalVolumeResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={success:!1};for(;n.pos>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({success:!!a(e.success)&&Boolean(e.success)}),toJSON(e){const t={};return void 0!==e.success&&(t.success=e.success),t},fromPartial(e){const t={success:!1};return t.success=e.success??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5734:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.karaokeStatusToJSON=t.karaokeStatusFromJSON=t.KaraokeStatus=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;t.protobufPackage="spotify.karaoke_esperanto.proto",function(e){e[e.ENABLED=0]="ENABLED",e[e.DISABLED=1]="DISABLED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.KaraokeStatus||(t.KaraokeStatus={})),t.karaokeStatusFromJSON=function(e){switch(e){case 0:case"ENABLED":return a.ENABLED;case 1:case"DISABLED":return a.DISABLED;default:return a.UNRECOGNIZED}},t.karaokeStatusToJSON=function(e){switch(e){case a.ENABLED:return"ENABLED";case a.DISABLED:return"DISABLED";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66903:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KaraokeSubEventsResponse=t.KaraokeSubEventsRequest=t.karaokeSubEventsResponse_IdToJSON=t.karaokeSubEventsResponse_IdFromJSON=t.KaraokeSubEventsResponse_Id=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"MASK_READY":return a.MASK_READY;case 1:case"ERROR":return a.ERROR;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.MASK_READY:return"MASK_READY";case a.ERROR:return"ERROR";default:return"UNKNOWN"}}function c(e){return null!=e}t.protobufPackage="spotify.karaoke_esperanto.proto",function(e){e[e.MASK_READY=0]="MASK_READY",e[e.ERROR=1]="ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.KaraokeSubEventsResponse_Id||(t.KaraokeSubEventsResponse_Id={})),t.karaokeSubEventsResponse_IdFromJSON=s,t.karaokeSubEventsResponse_IdToJSON=l,t.KaraokeSubEventsRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.KaraokeSubEventsResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.id&&t.uint32(8).int32(e.id),""!==e.trackUri&&t.uint32(18).string(e.trackUri),""!==e.errorMessage&&t.uint32(26).string(e.errorMessage),0!==e.errorCode&&t.uint32(32).int32(e.errorCode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={id:0,trackUri:"",errorMessage:"",errorCode:0};for(;n.pos>>3){case 1:i.id=n.int32();break;case 2:i.trackUri=n.string();break;case 3:i.errorMessage=n.string();break;case 4:i.errorCode=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({id:c(e.id)?s(e.id):0,trackUri:c(e.trackUri)?String(e.trackUri):"",errorMessage:c(e.errorMessage)?String(e.errorMessage):"",errorCode:c(e.errorCode)?Number(e.errorCode):0}),toJSON(e){const t={};return void 0!==e.id&&(t.id=l(e.id)),void 0!==e.trackUri&&(t.trackUri=e.trackUri),void 0!==e.errorMessage&&(t.errorMessage=e.errorMessage),void 0!==e.errorCode&&(t.errorCode=Math.round(e.errorCode)),t},fromPartial(e){const t={id:0,trackUri:"",errorMessage:"",errorCode:0};return t.id=e.id??0,t.trackUri=e.trackUri??"",t.errorMessage=e.errorMessage??"",t.errorCode=e.errorCode??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},45363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterServiceClient=void 0;const o=n(33892),i=n(28289),r=n(44433),a=n(37480),s=n(29024);class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}episodes(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Episodes",a=i.ListenLaterGetEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.EpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamEpisodes(e,t){const n="spotify.listen_later_esperanto.proto.ListenLaterService",a="StreamEpisodes",s=i.ListenLaterGetEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.EpisodesResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}play(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Play",i=a.ListenLaterPlayEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.ListenLaterPlayEpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}add(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Add",i=s.ListenLaterRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ListenLaterResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}remove(e){const t="spotify.listen_later_esperanto.proto.ListenLaterService",n="Remove",i=s.ListenLaterRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ListenLaterResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.listen_later_esperanto.proto.ListenLaterService";static DECODERS={Episodes:{request:i.ListenLaterGetEpisodesRequest.decode,response:r.EpisodesResponse.decode},StreamEpisodes:{request:i.ListenLaterGetEpisodesRequest.decode,response:r.EpisodesResponse.decode},Play:{request:a.ListenLaterPlayEpisodesRequest.decode,response:a.ListenLaterPlayEpisodesResponse.decode},Add:{request:s.ListenLaterRequest.decode,response:s.ListenLaterResponse.decode},Remove:{request:s.ListenLaterRequest.decode,response:s.ListenLaterResponse.decode}}}t.ListenLaterServiceClient=l},67188:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterServiceClient=void 0;var r=n(45363);Object.defineProperty(t,"ListenLaterServiceClient",{enumerable:!0,get:function(){return r.ListenLaterServiceClient}}),i(n(99234),t)},99695:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isNew=n.bool();break;case 3:r.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!r(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!r(e.isNew)&&Boolean(e.isNew),isInListenLater:!!r(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){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}}},31524:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(48442),a=n(18018);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=i.default.Writer.create()){for(const t of e.pages)r.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&a.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let s=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;o.pos>>3){case 1:l.pages.push(r.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoading=o.bool();break;case 6:l.restrictions=a.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>r.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:s(e.uri)?String(e.uri):"",url:s(e.url)?String(e.url):"",isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),restrictions:s(e.restrictions)?a.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?r.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.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=e.restrictions?a.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>r.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?a.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},48442:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(677);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=i.default.Writer.create()){for(const t of e.tracks)r.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;o.pos>>3){case 1:s.tracks.push(r.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoading=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.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:a(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:a(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.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.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},70662:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(437);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos>>3){case 1:r.shufflingContext=n.bool();break;case 2:r.repeatingContext=n.bool();break;case 3:r.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({shufflingContext:!!a(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!a(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!a(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){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=i.default.Writer.create())=>(void 0!==e.shufflingContext&&r.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&r.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&r.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos>>3){case 1:a.shufflingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 2:a.repeatingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 3:a.repeatingTrack=r.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({shufflingContext:a(e.shufflingContext)?r.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:a(e.repeatingContext)?r.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:a(e.repeatingTrack)?r.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?r.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?r.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?r.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?r.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?r.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?r.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}}},677:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=i.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,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:r(e.uri)?String(e.uri):"",uid:r(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){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:r(e.key)?String(e.key):"",value:r(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},31215:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(437);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=i.default.Writer.create()){void 0!==e.commandInitiatedTime&&r.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&r.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos>>3){case 1:a.commandInitiatedTime=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.commandReceivedTime=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.pageInstanceIds.push(n.string());break;case 4:a.interactionIds.push(n.string());break;case 5:a.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({commandInitiatedTime:a(e.commandInitiatedTime)?r.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:a(e.commandReceivedTime)?r.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?r.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?r.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){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?r.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?r.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}}},437:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},54477:function(e,t,n){"use strict";var o=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=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"INTERACTIVE":return r.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return r.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.INTERACTIVE:return"INTERACTIVE";case r.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"REPLACE":return a.REPLACE;case 1:case"ENQUEUE":return a.ENQUEUE;case 2:case"PUSH":return a.PUSH;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.REPLACE:return"REPLACE";case a.ENQUEUE:return"ENQUEUE";case a.PUSH:return"PUSH";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"IMMEDIATELY":return s.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return s.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return s.ADVANCED_PAST_CONTEXT;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.IMMEDIATELY:return"IMMEDIATELY";case s.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case s.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(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"}(r=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=l,t.playOptions_ReasonToJSON=c,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=u,t.playOptions_OperationToJSON=d,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"}(s=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=p,t.playOptions_TriggerToJSON=f,t.PlayOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0};for(;n.pos>>3){case 1:r.reason=n.int32();break;case 2:r.operation=n.int32();break;case 3:r.trigger=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({reason:h(e.reason)?l(e.reason):0,operation:h(e.operation)?u(e.operation):0,trigger:h(e.trigger)?p(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.operation&&(t.operation=d(e.operation)),void 0!==e.trigger&&(t.trigger=f(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}}},11694:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=i.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""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos>>3){case 1:r.featureIdentifier=n.string();break;case 2:r.featureVersion=n.string();break;case 3:r.viewUri=n.string();break;case 4:r.externalReferrer=n.string();break;case 5:r.referrerIdentifier=n.string();break;case 6:r.deviceIdentifier=n.string();break;case 7:r.featureClasses.push(n.string());break;case 8:r.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({featureIdentifier:r(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:r(e.featureVersion)?String(e.featureVersion):"",viewUri:r(e.viewUri)?String(e.viewUri):"",externalReferrer:r(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:r(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:r(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:r(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),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=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}}},43920:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(70662),a=n(437),s=n(65928);var l,c;function u(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"MEDIA":return l.MEDIA;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NONE:return"NONE";case l.MEDIA:return"MEDIA";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"DEFAULT":return c.DEFAULT;case 1:case"ALARM":return c.ALARM;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.DEFAULT:return"DEFAULT";case c.ALARM:return"ALARM";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){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"}(l=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=u,t.preparePlayOptions_PrefetchLevelToJSON=d,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=p,t.preparePlayOptions_AudioStreamToJSON=f,t.PreparePlayOptions={encode(e,n=i.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&&s.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&a.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&&r.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,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c=h();for(;o.pos>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=s.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=a.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=r.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:v(e.playbackId)?g(e.playbackId):new Uint8Array,alwaysPlaySomething:!!v(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:v(e.skipTo)?s.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:v(e.seekTo)?a.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!v(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!v(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:v(e.playerOptionsOverride)?r.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:v(e.prefetchLevel)?u(e.prefetchLevel):0,audioStream:v(e.audioStream)?p(e.audioStream):0,sessionId:v(e.sessionId)?String(e.sessionId):"",license:v(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){if(m.Buffer)return m.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),m.btoa(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?s.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?a.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?r.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=d(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=f(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){const t=h();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?s.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?a.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?r.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var m=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 g(e){if(m.Buffer)return Uint8Array.from(m.Buffer.from(e,"base64"));{const t=m.atob(e),n=new Uint8Array(t.length);for(let e=0;e>>3){case 1:r.disallowPausingReasons.push(n.string());break;case 2:r.disallowResumingReasons.push(n.string());break;case 3:r.disallowSeekingReasons.push(n.string());break;case 4:r.disallowPeekingPrevReasons.push(n.string());break;case 5:r.disallowPeekingNextReasons.push(n.string());break;case 6:r.disallowSkippingPrevReasons.push(n.string());break;case 7:r.disallowSkippingNextReasons.push(n.string());break;case 8:r.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:r.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:r.disallowTogglingShuffleReasons.push(n.string());break;case 11:r.disallowSetQueueReasons.push(n.string());break;case 12:r.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:r.disallowTransferringPlaybackReasons.push(n.string());break;case 14:r.disallowRemoteControlReasons.push(n.string());break;case 15:r.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:r.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:r.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:r.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:r.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:r.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:r.disallowUpdatingContextReasons.push(n.string());break;case 22:r.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.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=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}}},65928:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(437);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=i.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&r.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&&r.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos>>3){case 1:a.pageUrl=n.string();break;case 2:a.pageIndex=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.trackUid=n.string();break;case 4:a.trackUri=n.string();break;case 5:a.trackIndex=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({pageUrl:a(e.pageUrl)?String(e.pageUrl):"",pageIndex:a(e.pageIndex)?r.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:a(e.trackUid)?String(e.trackUid):"",trackUri:a(e.trackUri)?String(e.trackUri):"",trackIndex:a(e.trackIndex)?r.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?r.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?r.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?r.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?r.OptionalInt64.fromPartial(e.trackIndex):void 0,t}}},94168:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},44433:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodesResponse=t.Episode=t.protobufPackage=void 0;const i=o(n(33892)),r=n(99695),a=n(26961),s=n(22498),l=n(95030);function c(e){return null!=e}t.protobufPackage="spotify.listen_later_cosmos.proto",t.Episode={encode:(e,t=i.default.Writer.create())=>(""!==e.header&&t.uint32(10).string(e.header),void 0!==e.episodeMetadata&&a.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.episodeCollectionState&&r.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.episodeOfflineState&&l.EpisodeSyncState.encode(e.episodeOfflineState,t.uint32(34).fork()).ldelim(),void 0!==e.episodePlayedState&&s.EpisodePlayState.encode(e.episodePlayedState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const c={header:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayedState:void 0};for(;n.pos>>3){case 1:c.header=n.string();break;case 2:c.episodeMetadata=a.EpisodeMetadata.decode(n,n.uint32());break;case 3:c.episodeCollectionState=r.EpisodeCollectionState.decode(n,n.uint32());break;case 4:c.episodeOfflineState=l.EpisodeSyncState.decode(n,n.uint32());break;case 5:c.episodePlayedState=s.EpisodePlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return c},fromJSON:e=>({header:c(e.header)?String(e.header):"",episodeMetadata:c(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:c(e.episodeCollectionState)?r.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:c(e.episodeOfflineState)?l.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodePlayedState:c(e.episodePlayedState)?s.EpisodePlayState.fromJSON(e.episodePlayedState):void 0}),toJSON(e){const t={};return void 0!==e.header&&(t.header=e.header),void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?a.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?r.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?l.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayedState&&(t.episodePlayedState=e.episodePlayedState?s.EpisodePlayState.toJSON(e.episodePlayedState):void 0),t},fromPartial(e){const t={header:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayedState:void 0};return t.header=e.header??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?r.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?l.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayedState=void 0!==e.episodePlayedState&&null!==e.episodePlayedState?s.EpisodePlayState.fromPartial(e.episodePlayedState):void 0,t}},t.EpisodesResponse={encode(e,n=i.default.Writer.create()){0!==e.unfilteredLength&&n.uint32(8).uint32(e.unfilteredLength),0!==e.unrangedLength&&n.uint32(16).uint32(e.unrangedLength);for(const o of e.episode)t.Episode.encode(o,n.uint32(26).fork()).ldelim();return""!==e.offlineAvailability&&n.uint32(42).string(e.offlineAvailability),0!==e.offlineProgress&&n.uint32(48).uint32(e.offlineProgress),0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={unfilteredLength:0,unrangedLength:0,episode:[],offlineAvailability:"",offlineProgress:0,statusCode:0,error:""};for(;o.pos>>3){case 1:a.unfilteredLength=o.uint32();break;case 2:a.unrangedLength=o.uint32();break;case 3:a.episode.push(t.Episode.decode(o,o.uint32()));break;case 5:a.offlineAvailability=o.string();break;case 6:a.offlineProgress=o.uint32();break;case 98:a.statusCode=o.uint32();break;case 99:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,episode:Array.isArray(e?.episode)?e.episode.map((e=>t.Episode.fromJSON(e))):[],offlineAvailability:c(e.offlineAvailability)?String(e.offlineAvailability):"",offlineProgress:c(e.offlineProgress)?Number(e.offlineProgress):0,statusCode:c(e.statusCode)?Number(e.statusCode):0,error:c(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),e.episode?n.episode=e.episode.map((e=>e?t.Episode.toJSON(e):void 0)):n.episode=[],void 0!==e.offlineAvailability&&(n.offlineAvailability=e.offlineAvailability),void 0!==e.offlineProgress&&(n.offlineProgress=Math.round(e.offlineProgress)),void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={unfilteredLength:0,unrangedLength:0,episode:[],offlineAvailability:"",offlineProgress:0,statusCode:0,error:""};return n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.episode=e.episode?.map((e=>t.Episode.fromPartial(e)))||[],n.offlineAvailability=e.offlineAvailability??"",n.offlineProgress=e.offlineProgress??0,n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},29024:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterResponse=t.ListenLaterRequest=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.listen_later_esperanto.proto",t.ListenLaterRequest={encode(e,t=i.default.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uris:[]};for(;n.pos>>3==1)r.uris.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?t.uris=e.uris.map((e=>e)):t.uris=[],t},fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}},t.ListenLaterResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).uint32(e.statusCode),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,error:""};for(;n.pos>>3){case 1:r.statusCode=n.uint32();break;case 2:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:r(e.statusCode)?Number(e.statusCode):0,error:r(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={statusCode:0,error:""};return t.statusCode=e.statusCode??0,t.error=e.error??"",t}}},37480:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterPlayEpisodesResponse=t.ListenLaterPlayEpisodesRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(31524),a=n(31215),s=n(54477),l=n(11694),c=n(43920);function u(e){return null!=e}t.protobufPackage="spotify.listen_later_esperanto.proto",t.ListenLaterPlayEpisodesRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sort&&t.uint32(10).string(e.sort),""!==e.filter&&t.uint32(18).string(e.filter),0!==e.start&&t.uint32(24).uint32(e.start),0!==e.length&&t.uint32(32).uint32(e.length),0!==e.updateThrottling&&t.uint32(40).uint32(e.updateThrottling),void 0!==e.context&&r.Context.encode(e.context,t.uint32(50).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(58).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(66).fork()).ldelim(),void 0!==e.preparePlayOptions&&c.PreparePlayOptions.encode(e.preparePlayOptions,t.uint32(74).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const u={sort:"",filter:"",start:0,length:0,updateThrottling:0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};for(;n.pos>>3){case 1:u.sort=n.string();break;case 2:u.filter=n.string();break;case 3:u.start=n.uint32();break;case 4:u.length=n.uint32();break;case 5:u.updateThrottling=n.uint32();break;case 6:u.context=r.Context.decode(n,n.uint32());break;case 7:u.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 8:u.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 9:u.preparePlayOptions=c.PreparePlayOptions.decode(n,n.uint32());break;case 10:u.playOrigin=l.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return u},fromJSON:e=>({sort:u(e.sort)?String(e.sort):"",filter:u(e.filter)?String(e.filter):"",start:u(e.start)?Number(e.start):0,length:u(e.length)?Number(e.length):0,updateThrottling:u(e.updateThrottling)?Number(e.updateThrottling):0,context:u(e.context)?r.Context.fromJSON(e.context):void 0,playOptions:u(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,loggingParams:u(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,preparePlayOptions:u(e.preparePlayOptions)?c.PreparePlayOptions.fromJSON(e.preparePlayOptions):void 0,playOrigin:u(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.context&&(t.context=e.context?r.Context.toJSON(e.context):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=e.preparePlayOptions?c.PreparePlayOptions.toJSON(e.preparePlayOptions):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),t},fromPartial(e){const t={sort:"",filter:"",start:0,length:0,updateThrottling:0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};return t.sort=e.sort??"",t.filter=e.filter??"",t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?c.PreparePlayOptions.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,t}},t.ListenLaterPlayEpisodesResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).uint32(e.statusCode),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,error:""};for(;n.pos>>3){case 1:r.statusCode=n.uint32();break;case 2:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:u(e.statusCode)?Number(e.statusCode):0,error:u(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={statusCode:0,error:""};return t.statusCode=e.statusCode??0,t.error=e.error??"",t}}},28289:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListenLaterGetEpisodesRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(29788),a=n(18055);function s(e){return null!=e}t.protobufPackage="spotify.listen_later_esperanto.proto",t.ListenLaterGetEpisodesRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.showPolicy&&a.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&r.EpisodeCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.playedStatePolicy&&r.EpisodePlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(26).fork()).ldelim(),void 0!==e.syncPolicy&&r.EpisodeSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(34).fork()).ldelim(),void 0!==e.episodePolicy&&r.EpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(42).fork()).ldelim(),""!==e.sort&&t.uint32(50).string(e.sort),""!==e.filter&&t.uint32(58).string(e.filter),!0===e.group&&t.uint32(64).bool(e.group),0!==e.start&&t.uint32(72).uint32(e.start),0!==e.length&&t.uint32(80).uint32(e.length),0!==e.updateThrottling&&t.uint32(88).uint32(e.updateThrottling),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,syncPolicy:void 0,episodePolicy:void 0,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};for(;n.pos>>3){case 1:s.showPolicy=a.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:s.collectionPolicy=r.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 3:s.playedStatePolicy=r.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 4:s.syncPolicy=r.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 5:s.episodePolicy=r.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 6:s.sort=n.string();break;case 7:s.filter=n.string();break;case 8:s.group=n.bool();break;case 9:s.start=n.uint32();break;case 10:s.length=n.uint32();break;case 11:s.updateThrottling=n.uint32();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({showPolicy:s(e.showPolicy)?a.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,collectionPolicy:s(e.collectionPolicy)?r.EpisodeCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,playedStatePolicy:s(e.playedStatePolicy)?r.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,syncPolicy:s(e.syncPolicy)?r.EpisodeSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,episodePolicy:s(e.episodePolicy)?r.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,sort:s(e.sort)?String(e.sort):"",filter:s(e.filter)?String(e.filter):"",group:!!s(e.group)&&Boolean(e.group),start:s(e.start)?Number(e.start):0,length:s(e.length)?Number(e.length):0,updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?r.EpisodeCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?r.EpisodePlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?r.EpisodeSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?r.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.sort&&(t.sort=e.sort),void 0!==e.filter&&(t.filter=e.filter),void 0!==e.group&&(t.group=e.group),void 0!==e.start&&(t.start=Math.round(e.start)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,syncPolicy:void 0,episodePolicy:void 0,sort:"",filter:"",group:!1,start:0,length:0,updateThrottling:0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?r.EpisodeCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?r.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?r.EpisodeSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?r.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.sort=e.sort??"",t.filter=e.filter??"",t.group=e.group??!1,t.start=e.start??0,t.length=e.length??0,t.updateThrottling=e.updateThrottling??0,t}}},99234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.protobufPackage=void 0,t.protobufPackage="spotify.listen_later_esperanto.proto"},26961:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(79982),s=n(26606);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";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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={encode:(e,t=r.default.Writer.create())=>(""!==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&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};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=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},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)?s.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?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.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&&s.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&&s.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)a.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),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={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,isCurated:!1};for(;o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},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)?s.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)?s.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(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),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?s.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?s.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?a.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),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},79982:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(94168);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},22498:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(33160);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos>>3){case 1:r.timeLeft=n.uint32();break;case 2:r.isPlayable=n.bool();break;case 3:r.isPlayed=n.bool();break;case 4:r.lastPlayedAt=n.uint32();break;case 5:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:a(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:a(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:a(e.playabilityRestriction)?(0,r.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,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}}},33160:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0,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"}(n=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NO_RESTRICTION":return n.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return n.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return n.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return n.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return n.NOT_AVAILABLE_OFFLINE;default:return n.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NO_RESTRICTION:return"NO_RESTRICTION";case n.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case n.AGE_RESTRICTED:return"AGE_RESTRICTED";case n.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case n.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},29788:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(94168);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),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={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),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={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},18055:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(94168);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(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=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),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},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){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},95030:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos>>3){case 1:r.offlineState=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:r(e.offlineState)?String(e.offlineState):"",syncProgress:r(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){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}}},91645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalFilesClient=void 0;const o=n(33892),i=n(92732),r=n(88979);class a{transport;constructor(e){this.transport=e}getTracks(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetTracks",payload:i.GetTracksRequest.encode(e).finish()}).then((e=>i.GetTracksResponse.decode(o.Reader.create(e))))}subscribeTracks(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeTracks",payload:i.GetTracksRequest.encode(e).finish()},(e=>t(i.GetTracksResponse.decode(o.Reader.create(e)))))}getScannerStatus(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetScannerStatus",payload:r.Empty.encode(e).finish()}).then((e=>i.GetScannerStatusResponse.decode(o.Reader.create(e))))}subscribeScannerStatus(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeScannerStatus",payload:r.Empty.encode(e).finish()},(e=>t(i.GetScannerStatusResponse.decode(o.Reader.create(e)))))}getSources(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"GetSources",payload:r.Empty.encode(e).finish()}).then((e=>i.GetSourcesResponse.decode(o.Reader.create(e))))}subscribeSources(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"SubscribeSources",payload:r.Empty.encode(e).finish()},(e=>t(i.GetSourcesResponse.decode(o.Reader.create(e)))))}mutateDefaultSource(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"MutateDefaultSource",payload:i.DefaultSource.encode(e).finish()}).then((e=>i.MutateSourceResponse.decode(o.Reader.create(e))))}addFolder(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"AddFolder",payload:i.Folder.encode(e).finish()}).then((e=>i.MutateSourceResponse.decode(o.Reader.create(e))))}removeFolder(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"RemoveFolder",payload:i.Folder.encode(e).finish()}).then((e=>i.MutateSourceResponse.decode(o.Reader.create(e))))}provideMediaStoreReader(e,t){return this.transport.callStream({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"ProvideMediaStoreReader",payload:i.JavaObjectValue.encode(e).finish()},(e=>t(r.Empty.decode(o.Reader.create(e)))))}notifyDefaultSources(e){return this.transport.callSingle({service:"spotify.local_files_esperanto.proto.LocalFiles",method:"NotifyDefaultSources",payload:r.Empty.encode(e).finish()}).then((e=>r.Empty.decode(o.Reader.create(e))))}static SERVICE_ID="spotify.local_files_esperanto.proto.LocalFiles";static DECODERS={GetTracks:{request:i.GetTracksRequest.decode,response:i.GetTracksResponse.decode},SubscribeTracks:{request:i.GetTracksRequest.decode,response:i.GetTracksResponse.decode},GetScannerStatus:{request:r.Empty.decode,response:i.GetScannerStatusResponse.decode},SubscribeScannerStatus:{request:r.Empty.decode,response:i.GetScannerStatusResponse.decode},GetSources:{request:r.Empty.decode,response:i.GetSourcesResponse.decode},SubscribeSources:{request:r.Empty.decode,response:i.GetSourcesResponse.decode},MutateDefaultSource:{request:i.DefaultSource.decode,response:i.MutateSourceResponse.decode},AddFolder:{request:i.Folder.decode,response:i.MutateSourceResponse.decode},RemoveFolder:{request:i.Folder.decode,response:i.MutateSourceResponse.decode},ProvideMediaStoreReader:{request:i.JavaObjectValue.decode,response:r.Empty.decode},NotifyDefaultSources:{request:r.Empty.decode,response:r.Empty.decode}}}t.LocalFilesClient=a},52249:(e,t,n)=>{"use strict";t._X=t.g1=t.Y=t.Jp=t.uh=void 0;var o=n(82884);var i=n(2294);var r=n(28344);var a=n(5033);var s=n(66681);var l=n(49129);var c=n(37174);var u=n(92732);Object.defineProperty(t,"uh",{enumerable:!0,get:function(){return u.Query_SortBy}}),Object.defineProperty(t,"Jp",{enumerable:!0,get:function(){return u.GetTracksRequest}}),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(91645);Object.defineProperty(t,"_X",{enumerable:!0,get:function(){return d.LocalFilesClient}})},92732:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(2294),s=n(37174),l=n(66681);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 m(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 g(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.IDLE:return"IDLE";case u.IN_PROGRESS:return"IN_PROGRESS";default:return"UNKNOWN"}}function v(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 S(){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=m,t.getScannerStatusResponse_ScannerStatusToJSON=g,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=v,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=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.addTime)?Number(e.addTime):void 0,metadata:O(e.metadata)?a.TrackMetadata.fromJSON(e.metadata):void 0,collectionState:O(e.collectionState)?s.TrackCollectionState.fromJSON(e.collectionState):void 0,rowId:O(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){const t={addTime:void 0,metadata:void 0,collectionState:void 0,rowId:void 0};return t.addTime=e.addTime??void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?a.TrackMetadata.fromPartial(e.metadata):void 0,t.collectionState=void 0!==e.collectionState&&null!==e.collectionState?s.TrackCollectionState.fromPartial(e.collectionState):void 0,t.rowId=e.rowId??void 0,t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.unfilteredLength&&n.uint32(16).uint32(e.unfilteredLength),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],unfilteredLength:void 0};for(;o.pos>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.unfilteredLength=o.uint32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[],unfilteredLength:O(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){const n={item:[],unfilteredLength:void 0};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.unfilteredLength=e.unfilteredLength??void 0,n}},t.ResponseStatus={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.statusCode)?Number(e.statusCode):0,reason:O(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){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}},t.Range={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.start)?Number(e.start):0,length:O(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){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}},t.Query={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};for(;o.pos>>3){case 1:a.textFilter=o.string();break;case 2:a.sortBy=o.int32();break;case 3:a.range=t.Range.decode(o,o.uint32());break;case 4:a.minLength=o.uint32();break;case 5:a.removeDuplicateLinks=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({textFilter:O(e.textFilter)?String(e.textFilter):"",sortBy:O(e.sortBy)?f(e.sortBy):0,range:O(e.range)?t.Range.fromJSON(e.range):void 0,minLength:O(e.minLength)?Number(e.minLength):0,removeDuplicateLinks:!!O(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){const n={textFilter:"",sortBy:0,range:void 0,minLength:0,removeDuplicateLinks:!1};return n.textFilter=e.textFilter??"",n.sortBy=e.sortBy??0,n.range=void 0!==e.range&&null!==e.range?t.Range.fromPartial(e.range):void 0,n.minLength=e.minLength??0,n.removeDuplicateLinks=e.removeDuplicateLinks??!1,n}},t.GetTracksRequest={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={query:void 0,policy:void 0};for(;o.pos>>3){case 1:a.query=t.Query.decode(o,o.uint32());break;case 2:a.policy=l.PlaylistTrackDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({query:O(e.query)?t.Query.fromJSON(e.query):void 0,policy:O(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=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,data:void 0};for(;o.pos>>3){case 1:a.status=t.ResponseStatus.decode(o,o.uint32());break;case 2:a.data=t.Response.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:O(e.status)?t.ResponseStatus.fromJSON(e.status):void 0,data:O(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=r.default.Writer.create())=>(0!==e.scannerStatus&&t.uint32(8).int32(e.scannerStatus),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.scannerStatus)?m(e.scannerStatus):0}),toJSON(e){const t={};return void 0!==e.scannerStatus&&(t.scannerStatus=g(e.scannerStatus)),t},fromPartial(e){const t={scannerStatus:0};return t.scannerStatus=e.scannerStatus??0,t}},t.DefaultSource={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.id)?v(e.id):0,enabled:!!O(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){const t={id:0,enabled:!1};return t.id=e.id??0,t.enabled=e.enabled??!1,t}},t.Folder={encode:(e,t=r.default.Writer.create())=>(""!==e.path&&t.uint32(10).string(e.path),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.path)?String(e.path):""}),toJSON(e){const t={};return void 0!==e.path&&(t.path=e.path),t},fromPartial(e){const t={path:""};return t.path=e.path??"",t}},t.GetSourcesResponse={encode(e,n=r.default.Writer.create()){for(const o of e.defaultSources)t.DefaultSource.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.folders)t.Folder.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={defaultSources:[],folders:[]};for(;o.pos>>3){case 1:a.defaultSources.push(t.DefaultSource.decode(o,o.uint32()));break;case 2:a.folders.push(t.Folder.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({defaultSources:Array.isArray(e?.defaultSources)?e.defaultSources.map((e=>t.DefaultSource.fromJSON(e))):[],folders:Array.isArray(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){const n={defaultSources:[],folders:[]};return n.defaultSources=e.defaultSources?.map((e=>t.DefaultSource.fromPartial(e)))||[],n.folders=e.folders?.map((e=>t.Folder.fromPartial(e)))||[],n}},t.MutateSourceResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.result&&t.uint32(8).int32(e.result),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.result)?_(e.result):0}),toJSON(e){const t={};return void 0!==e.result&&(t.result=b(e.result)),t},fromPartial(e){const t={result:0};return t.result=e.result??0,t}},t.JavaObjectValue={encode:(e,t=r.default.Writer.create())=>(0!==e.javaObject.length&&t.uint32(10).bytes(e.javaObject),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=S();for(;n.pos>>3==1)i.javaObject=n.bytes();else n.skipType(7&e)}return i},fromJSON:e=>({javaObject:O(e.javaObject)?T(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 P(t.join(""))}(void 0!==e.javaObject?e.javaObject:new Uint8Array)),t},fromPartial(e){const t=S();return t.javaObject=e.javaObject??new Uint8Array,t}};var E=(()=>{if(void 0!==E)return E;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 A=E.atob||(e=>E.Buffer.from(e,"base64").toString("binary"));function T(e){const t=A(e),n=new Uint8Array(t.length);for(let e=0;eE.Buffer.from(e,"binary").toString("base64"));function O(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},88979:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82884:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},2294:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(82884);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.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){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=r.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,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 o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.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(;o.pos>>3){case 1:a.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:a.link=o.string();break;case 4:a.name=o.string();break;case 5:a.length=o.uint32();break;case 6:a.playable=o.bool();break;case 7:a.discNumber=o.uint32();break;case 8:a.trackNumber=o.uint32();break;case 9:a.isExplicit=o.bool();break;case 10:a.previewId=o.string();break;case 11:a.isLocal=o.bool();break;case 12:a.playableLocalTrack=o.bool();break;case 13:a.hasLyrics=o.bool();break;case 14:a.isPremiumOnly=o.bool();break;case 15:a.locallyPlayable=o.bool();break;case 16:a.playableTrackLink=o.string();break;case 17:a.popularity=o.uint32();break;case 18:a.is19PlusOnly=o.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(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(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){const n={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 n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},37174:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.TrackCollectionState={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={offline:""};return t.offline=e.offline??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},28344:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5033:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},55482:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(28344),s=n(5033);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAlbumDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66681:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(49129),s=n(70016),l=n(55482),c=n(5033);function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistTrackDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={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 t.track=void 0!==e.track&&null!==e.track?a.TrackDecorationPolicy.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?s.UserDecorationPolicy.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?l.PlaylistAlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?c.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},49129:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={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 t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},70016:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}},t.CollaboratorPolicy={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;o.pos>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.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){const n={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return n.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,n.numberOfItems=e.numberOfItems??!1,n.numberOfTracks=e.numberOfTracks??!1,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.isOwner=e.isOwner??!1,n}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;o.pos>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.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){const n={count:!1,limit:0,collaborator:void 0};return n.count=e.count??!1,n.limit=e.limit??0,n.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},81973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineDebugClient=void 0;const o=n(33892),i=n(16360),r=n(77579);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}onKeyStats(e,t){const n="spotify.offline_esperanto.proto.OfflineDebug",a="OnKeyStats",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.KeyStatsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}static SERVICE_ID="spotify.offline_esperanto.proto.OfflineDebug";static DECODERS={OnKeyStats:{request:i.Empty.decode,response:r.KeyStatsResponse.decode}}}t.OfflineDebugClient=a},98918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflineClient=void 0;const o=n(33892),i=n(16360),r=n(56375);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getOfflinePlaybackStatus(e){const t="spotify.offline_esperanto.proto.Offline",n="GetOfflinePlaybackStatus",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetOfflinePlaybackStatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeOfflinePlaybackStatus(e,t){const n="spotify.offline_esperanto.proto.Offline",a="SubscribeOfflinePlaybackStatus",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.GetOfflinePlaybackStatusResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}setOfflinePlaybackAllowed(e){const t="spotify.offline_esperanto.proto.Offline",n="SetOfflinePlaybackAllowed",i=r.SetOfflinePlaybackAllowedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.SetOfflinePlaybackAllowedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeError(e,t){const n="spotify.offline_esperanto.proto.Offline",a="SubscribeError",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.Error.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}getContexts(e){const t="spotify.offline_esperanto.proto.Offline",n="GetContexts",i=r.GetContextsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetContextsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeContexts(e,t){const n="spotify.offline_esperanto.proto.Offline",i="SubscribeContexts",a=r.GetContextsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.GetContextsResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}getItems(e){const t="spotify.offline_esperanto.proto.Offline",n="GetItems",i=r.GetItemsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetItemsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeItems(e,t){const n="spotify.offline_esperanto.proto.Offline",i="SubscribeItems",a=r.GetItemsRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.GetItemsResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}addDownload(e){const t="spotify.offline_esperanto.proto.Offline",n="AddDownload",i=r.DownloadRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.DownloadResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeDownload(e){const t="spotify.offline_esperanto.proto.Offline",n="RemoveDownload",i=r.DownloadRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.DownloadResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}removeAllDownloads(e){const t="spotify.offline_esperanto.proto.Offline",n="RemoveAllDownloads",r=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getContextsProgress(e){const t="spotify.offline_esperanto.proto.Offline",n="GetContextsProgress",i=r.GetContextsProgressRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.ContextsProgressResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeContextsProgress(e,t){const n="spotify.offline_esperanto.proto.Offline",i="SubscribeContextsProgress",a=r.GetContextsProgressRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.ContextsProgressResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}getTotalProgress(e){const t="spotify.offline_esperanto.proto.Offline",n="GetTotalProgress",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.TotalProgressResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeTotalProgress(e,t){const n="spotify.offline_esperanto.proto.Offline",a="SubscribeTotalProgress",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.TotalProgressResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}getDevices(e){const t="spotify.offline_esperanto.proto.Offline",n="GetDevices",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetDevicesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getLocalDevice(e){const t="spotify.offline_esperanto.proto.Offline",n="GetLocalDevice",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Device.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getContextForDevices(e){const t="spotify.offline_esperanto.proto.Offline",n="GetContextForDevices",i=r.GetContextForDevicesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetContextForDevicesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.offline_esperanto.proto.Offline";static DECODERS={GetOfflinePlaybackStatus:{request:i.Empty.decode,response:r.GetOfflinePlaybackStatusResponse.decode},SubscribeOfflinePlaybackStatus:{request:i.Empty.decode,response:r.GetOfflinePlaybackStatusResponse.decode},SetOfflinePlaybackAllowed:{request:r.SetOfflinePlaybackAllowedRequest.decode,response:r.SetOfflinePlaybackAllowedResponse.decode},SubscribeError:{request:i.Empty.decode,response:r.Error.decode},GetContexts:{request:r.GetContextsRequest.decode,response:r.GetContextsResponse.decode},SubscribeContexts:{request:r.GetContextsRequest.decode,response:r.GetContextsResponse.decode},GetItems:{request:r.GetItemsRequest.decode,response:r.GetItemsResponse.decode},SubscribeItems:{request:r.GetItemsRequest.decode,response:r.GetItemsResponse.decode},AddDownload:{request:r.DownloadRequest.decode,response:r.DownloadResponse.decode},RemoveDownload:{request:r.DownloadRequest.decode,response:r.DownloadResponse.decode},RemoveAllDownloads:{request:i.Empty.decode,response:i.Empty.decode},GetContextsProgress:{request:r.GetContextsProgressRequest.decode,response:r.ContextsProgressResponse.decode},SubscribeContextsProgress:{request:r.GetContextsProgressRequest.decode,response:r.ContextsProgressResponse.decode},GetTotalProgress:{request:i.Empty.decode,response:r.TotalProgressResponse.decode},SubscribeTotalProgress:{request:i.Empty.decode,response:r.TotalProgressResponse.decode},GetDevices:{request:i.Empty.decode,response:r.GetDevicesResponse.decode},GetLocalDevice:{request:i.Empty.decode,response:r.Device.decode},GetContextForDevices:{request:r.GetContextForDevicesRequest.decode,response:r.GetContextForDevicesResponse.decode}}}t.OfflineClient=a},24780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OfflinePluginTestAdapterClient=void 0;const o=n(33892),i=n(16360),r=n(83836);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}openCommandChannel(e,t){const n="spotify.offline_esperanto.test.proto.OfflinePluginTestAdapter",a="OpenCommandChannel",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.TestPluginCommand.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}submitResponse(e){const t="spotify.offline_esperanto.test.proto.OfflinePluginTestAdapter",n="SubmitResponse",a=r.TestPluginResponse.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.offline_esperanto.test.proto.OfflinePluginTestAdapter";static DECODERS={OpenCommandChannel:{request:i.Empty.decode,response:r.TestPluginCommand.decode},SubmitResponse:{request:r.TestPluginResponse.decode,response:i.Empty.decode}}}t.OfflinePluginTestAdapterClient=a},88225:(e,t,n)=>{"use strict";t.BK=t.db=t.Jt=t.sK=t.Q8=void 0;var o=n(56375);Object.defineProperty(t,"Q8",{enumerable:!0,get:function(){return o.Error_ErrorCode}}),Object.defineProperty(t,"sK",{enumerable:!0,get:function(){return o.Context_State}}),Object.defineProperty(t,"Jt",{enumerable:!0,get:function(){return o.Item_State}}),Object.defineProperty(t,"db",{enumerable:!0,get:function(){return o.DownloadRequest}});var i=n(16360);var r=n(98918);Object.defineProperty(t,"BK",{enumerable:!0,get:function(){return r.OfflineClient}});var a=n(77579);var s=n(81973);var l=n(24780);var c=n(84883);var u=n(83836)},56375:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetContextForDevicesResponse=t.GetContextForDevicesRequest=t.GetDevicesResponse=t.Device=t.TotalProgressResponse=t.ContextsProgressResponse=t.ContextProgress=t.GetContextsProgressRequest=t.Progress=t.DownloadResponse=t.DownloadRequest=t.GetItemsResponse=t.GetItemsRequest=t.GetContextsResponse=t.GetContextsRequest_Filtering=t.GetContextsRequest=t.DeviceContextInfo=t.DeviceKey=t.ContextInfo=t.Item=t.Context=t.ContextInfoPolicy=t.Error=t.SetOfflinePlaybackAllowedResponse=t.SetOfflinePlaybackAllowedRequest=t.GetOfflinePlaybackStatusResponse=t.item_StateToJSON=t.item_StateFromJSON=t.Item_State=t.context_StateToJSON=t.context_StateFromJSON=t.Context_State=t.error_ErrorCodeToJSON=t.error_ErrorCodeFromJSON=t.Error_ErrorCode=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(26958);var s,l,c;function u(e){switch(e){case 0:case"SUCCESS":return s.SUCCESS;case 1:case"GENERIC":return s.GENERIC;case 8:case"DISK_FULL":return s.DISK_FULL;case 14:case"EXPIRED":return s.EXPIRED;case 19:case"TOO_MANY_TRACKS":return s.TOO_MANY_TRACKS;case 23:case"NOT_ALLOWED":return s.NOT_ALLOWED;case 36:case"CONNECTION_DISABLED":return s.CONNECTION_DISABLED;case 7028:case"DEVICE_LIMIT_REACHED":return s.DEVICE_LIMIT_REACHED;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.SUCCESS:return"SUCCESS";case s.GENERIC:return"GENERIC";case s.DISK_FULL:return"DISK_FULL";case s.EXPIRED:return"EXPIRED";case s.TOO_MANY_TRACKS:return"TOO_MANY_TRACKS";case s.NOT_ALLOWED:return"NOT_ALLOWED";case s.CONNECTION_DISABLED:return"CONNECTION_DISABLED";case s.DEVICE_LIMIT_REACHED:return"DEVICE_LIMIT_REACHED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"NOT_DOWNLOADED":return l.NOT_DOWNLOADED;case 1:case"ERROR":return l.ERROR;case 2:case"REQUESTED":return l.REQUESTED;case 3:case"DOWNLOADED":return l.DOWNLOADED;case 4:case"DOWNLOADING":return l.DOWNLOADING;case 5:case"WAITING":return l.WAITING;default:return l.UNRECOGNIZED}}function f(e){switch(e){case l.NOT_DOWNLOADED:return"NOT_DOWNLOADED";case l.ERROR:return"ERROR";case l.REQUESTED:return"REQUESTED";case l.DOWNLOADED:return"DOWNLOADED";case l.DOWNLOADING:return"DOWNLOADING";case l.WAITING:return"WAITING";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"NOT_DOWNLOADED":return c.NOT_DOWNLOADED;case 1:case"ERROR":return c.ERROR;case 2:case"DOWNLOADED_EXPIRED":return c.DOWNLOADED_EXPIRED;case 3:case"DOWNLOADED":return c.DOWNLOADED;case 4:case"WAITING_FOR_REDOWNLOAD":return c.WAITING_FOR_REDOWNLOAD;case 5:case"DOWNLOADING":return c.DOWNLOADING;case 6:case"WAITING":return c.WAITING;case 7:case"WAITING_LIMIT_EXCEEDED":return c.WAITING_LIMIT_EXCEEDED;default:return c.UNRECOGNIZED}}function m(e){switch(e){case c.NOT_DOWNLOADED:return"NOT_DOWNLOADED";case c.ERROR:return"ERROR";case c.DOWNLOADED_EXPIRED:return"DOWNLOADED_EXPIRED";case c.DOWNLOADED:return"DOWNLOADED";case c.WAITING_FOR_REDOWNLOAD:return"WAITING_FOR_REDOWNLOAD";case c.DOWNLOADING:return"DOWNLOADING";case c.WAITING:return"WAITING";case c.WAITING_LIMIT_EXCEEDED:return"WAITING_LIMIT_EXCEEDED";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(e){let t=1e3*Number(e.seconds);return t+=e.nanos/1e6,new Date(t)}function v(e){return e instanceof Date?e:"string"==typeof e?new Date(e):g(a.Timestamp.fromJSON(e))}function y(e){return e.toString()}function _(e){return null!=e}t.protobufPackage="spotify.offline_esperanto.proto",function(e){e[e.SUCCESS=0]="SUCCESS",e[e.GENERIC=1]="GENERIC",e[e.DISK_FULL=8]="DISK_FULL",e[e.EXPIRED=14]="EXPIRED",e[e.TOO_MANY_TRACKS=19]="TOO_MANY_TRACKS",e[e.NOT_ALLOWED=23]="NOT_ALLOWED",e[e.CONNECTION_DISABLED=36]="CONNECTION_DISABLED",e[e.DEVICE_LIMIT_REACHED=7028]="DEVICE_LIMIT_REACHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.Error_ErrorCode||(t.Error_ErrorCode={})),t.error_ErrorCodeFromJSON=u,t.error_ErrorCodeToJSON=d,function(e){e[e.NOT_DOWNLOADED=0]="NOT_DOWNLOADED",e[e.ERROR=1]="ERROR",e[e.REQUESTED=2]="REQUESTED",e[e.DOWNLOADED=3]="DOWNLOADED",e[e.DOWNLOADING=4]="DOWNLOADING",e[e.WAITING=5]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.Context_State||(t.Context_State={})),t.context_StateFromJSON=p,t.context_StateToJSON=f,function(e){e[e.NOT_DOWNLOADED=0]="NOT_DOWNLOADED",e[e.ERROR=1]="ERROR",e[e.DOWNLOADED_EXPIRED=2]="DOWNLOADED_EXPIRED",e[e.DOWNLOADED=3]="DOWNLOADED",e[e.WAITING_FOR_REDOWNLOAD=4]="WAITING_FOR_REDOWNLOAD",e[e.DOWNLOADING=5]="DOWNLOADING",e[e.WAITING=6]="WAITING",e[e.WAITING_LIMIT_EXCEEDED=7]="WAITING_LIMIT_EXCEEDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.Item_State||(t.Item_State={})),t.item_StateFromJSON=h,t.item_StateToJSON=m,t.GetOfflinePlaybackStatusResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.allowed&&t.uint32(8).bool(e.allowed),!0===e.explicitlyEnabled&&t.uint32(16).bool(e.explicitlyEnabled),!0===e.implicitlyEnabled&&t.uint32(24).bool(e.implicitlyEnabled),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={allowed:!1,explicitlyEnabled:!1,implicitlyEnabled:!1};for(;n.pos>>3){case 1:i.allowed=n.bool();break;case 2:i.explicitlyEnabled=n.bool();break;case 3:i.implicitlyEnabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({allowed:!!_(e.allowed)&&Boolean(e.allowed),explicitlyEnabled:!!_(e.explicitlyEnabled)&&Boolean(e.explicitlyEnabled),implicitlyEnabled:!!_(e.implicitlyEnabled)&&Boolean(e.implicitlyEnabled)}),toJSON(e){const t={};return void 0!==e.allowed&&(t.allowed=e.allowed),void 0!==e.explicitlyEnabled&&(t.explicitlyEnabled=e.explicitlyEnabled),void 0!==e.implicitlyEnabled&&(t.implicitlyEnabled=e.implicitlyEnabled),t},fromPartial(e){const t={allowed:!1,explicitlyEnabled:!1,implicitlyEnabled:!1};return t.allowed=e.allowed??!1,t.explicitlyEnabled=e.explicitlyEnabled??!1,t.implicitlyEnabled=e.implicitlyEnabled??!1,t}},t.SetOfflinePlaybackAllowedRequest={encode:(e,t=r.default.Writer.create())=>(!0===e.enable&&t.uint32(8).bool(e.enable),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={enable:!1};for(;n.pos>>3==1)i.enable=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({enable:!!_(e.enable)&&Boolean(e.enable)}),toJSON(e){const t={};return void 0!==e.enable&&(t.enable=e.enable),t},fromPartial(e){const t={enable:!1};return t.enable=e.enable??!1,t}},t.SetOfflinePlaybackAllowedResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.ok&&t.uint32(8).bool(e.ok),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={ok:!1};for(;n.pos>>3==1)i.ok=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({ok:!!_(e.ok)&&Boolean(e.ok)}),toJSON(e){const t={};return void 0!==e.ok&&(t.ok=e.ok),t},fromPartial(e){const t={ok:!1};return t.ok=e.ok??!1,t}},t.Error={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0};for(;n.pos>>3==1)i.code=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({code:_(e.code)?u(e.code):0}),toJSON(e){const t={};return void 0!==e.code&&(t.code=d(e.code)),t},fromPartial(e){const t={code:0};return t.code=e.code??0,t}},t.ContextInfoPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.items&&t.uint32(8).bool(e.items),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={items:!1};for(;n.pos>>3==1)i.items=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({items:!!_(e.items)&&Boolean(e.items)}),toJSON(e){const t={};return void 0!==e.items&&(t.items=e.items),t},fromPartial(e){const t={items:!1};return t.items=e.items??!1,t}},t.Context={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.state&&t.uint32(16).int32(e.state),0!==e.percentComplete&&t.uint32(29).float(e.percentComplete),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",state:0,percentComplete:0};for(;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.state=n.int32();break;case 3:i.percentComplete=n.float();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",state:_(e.state)?p(e.state):0,percentComplete:_(e.percentComplete)?Number(e.percentComplete):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.state&&(t.state=f(e.state)),void 0!==e.percentComplete&&(t.percentComplete=e.percentComplete),t},fromPartial(e){const t={uri:"",state:0,percentComplete:0};return t.uri=e.uri??"",t.state=e.state??0,t.percentComplete=e.percentComplete??0,t}},t.Item={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",state:0};for(;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.state=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",state:_(e.state)?h(e.state):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.state&&(t.state=m(e.state)),t},fromPartial(e){const t={uri:"",state:0};return t.uri=e.uri??"",t.state=e.state??0,t}},t.ContextInfo={encode(e,n=r.default.Writer.create()){void 0!==e.context&&t.Context.encode(e.context,n.uint32(10).fork()).ldelim();for(const o of e.items)t.Item.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={context:void 0,items:[]};for(;o.pos>>3){case 1:a.context=t.Context.decode(o,o.uint32());break;case 2:a.items.push(t.Item.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({context:_(e.context)?t.Context.fromJSON(e.context):void 0,items:Array.isArray(e?.items)?e.items.map((e=>t.Item.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.context&&(n.context=e.context?t.Context.toJSON(e.context):void 0),e.items?n.items=e.items.map((e=>e?t.Item.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={context:void 0,items:[]};return n.context=void 0!==e.context&&null!==e.context?t.Context.fromPartial(e.context):void 0,n.items=e.items?.map((e=>t.Item.fromPartial(e)))||[],n}},t.DeviceKey={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.cacheId&&t.uint32(18).string(e.cacheId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",cacheId:""};for(;n.pos>>3){case 1:i.deviceId=n.string();break;case 2:i.cacheId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:_(e.deviceId)?String(e.deviceId):"",cacheId:_(e.cacheId)?String(e.cacheId):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.cacheId&&(t.cacheId=e.cacheId),t},fromPartial(e){const t={deviceId:"",cacheId:""};return t.deviceId=e.deviceId??"",t.cacheId=e.cacheId??"",t}},t.DeviceContextInfo={encode:(e,n=r.default.Writer.create())=>(void 0!==e.device&&t.DeviceKey.encode(e.device,n.uint32(10).fork()).ldelim(),void 0!==e.context&&t.Context.encode(e.context,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={device:void 0,context:void 0};for(;o.pos>>3){case 1:a.device=t.DeviceKey.decode(o,o.uint32());break;case 2:a.context=t.Context.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({device:_(e.device)?t.DeviceKey.fromJSON(e.device):void 0,context:_(e.context)?t.Context.fromJSON(e.context):void 0}),toJSON(e){const n={};return void 0!==e.device&&(n.device=e.device?t.DeviceKey.toJSON(e.device):void 0),void 0!==e.context&&(n.context=e.context?t.Context.toJSON(e.context):void 0),n},fromPartial(e){const n={device:void 0,context:void 0};return n.device=void 0!==e.device&&null!==e.device?t.DeviceKey.fromPartial(e.device):void 0,n.context=void 0!==e.context&&null!==e.context?t.Context.fromPartial(e.context):void 0,n}},t.GetContextsRequest={encode(e,n=r.default.Writer.create()){void 0!==e.policy&&t.ContextInfoPolicy.encode(e.policy,n.uint32(10).fork()).ldelim(),void 0!==e.device&&t.DeviceKey.encode(e.device,n.uint32(18).fork()).ldelim();for(const t of e.uris)n.uint32(26).string(t);return void 0!==e.filtering&&t.GetContextsRequest_Filtering.encode(e.filtering,n.uint32(34).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={policy:void 0,device:void 0,uris:[],filtering:void 0};for(;o.pos>>3){case 1:a.policy=t.ContextInfoPolicy.decode(o,o.uint32());break;case 2:a.device=t.DeviceKey.decode(o,o.uint32());break;case 3:a.uris.push(o.string());break;case 4:a.filtering=t.GetContextsRequest_Filtering.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({policy:_(e.policy)?t.ContextInfoPolicy.fromJSON(e.policy):void 0,device:_(e.device)?t.DeviceKey.fromJSON(e.device):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],filtering:_(e.filtering)?t.GetContextsRequest_Filtering.fromJSON(e.filtering):void 0}),toJSON(e){const n={};return void 0!==e.policy&&(n.policy=e.policy?t.ContextInfoPolicy.toJSON(e.policy):void 0),void 0!==e.device&&(n.device=e.device?t.DeviceKey.toJSON(e.device):void 0),e.uris?n.uris=e.uris.map((e=>e)):n.uris=[],void 0!==e.filtering&&(n.filtering=e.filtering?t.GetContextsRequest_Filtering.toJSON(e.filtering):void 0),n},fromPartial(e){const n={policy:void 0,device:void 0,uris:[],filtering:void 0};return n.policy=void 0!==e.policy&&null!==e.policy?t.ContextInfoPolicy.fromPartial(e.policy):void 0,n.device=void 0!==e.device&&null!==e.device?t.DeviceKey.fromPartial(e.device):void 0,n.uris=e.uris?.map((e=>e))||[],n.filtering=void 0!==e.filtering&&null!==e.filtering?t.GetContextsRequest_Filtering.fromPartial(e.filtering):void 0,n}},t.GetContextsRequest_Filtering={encode(e,t=r.default.Writer.create()){for(const n of e.itemUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={itemUris:[]};for(;n.pos>>3==1)i.itemUris.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({itemUris:Array.isArray(e?.itemUris)?e.itemUris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.itemUris?t.itemUris=e.itemUris.map((e=>e)):t.itemUris=[],t},fromPartial(e){const t={itemUris:[]};return t.itemUris=e.itemUris?.map((e=>e))||[],t}},t.GetContextsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.contexts)t.ContextInfo.encode(o,n.uint32(10).fork()).ldelim();return"0"!==e.error&&n.uint32(16).int64(e.error),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={contexts:[],error:"0"};for(;o.pos>>3){case 1:a.contexts.push(t.ContextInfo.decode(o,o.uint32()));break;case 2:a.error=y(o.int64());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({contexts:Array.isArray(e?.contexts)?e.contexts.map((e=>t.ContextInfo.fromJSON(e))):[],error:_(e.error)?String(e.error):"0"}),toJSON(e){const n={};return e.contexts?n.contexts=e.contexts.map((e=>e?t.ContextInfo.toJSON(e):void 0)):n.contexts=[],void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={contexts:[],error:"0"};return n.contexts=e.contexts?.map((e=>t.ContextInfo.fromPartial(e)))||[],n.error=e.error??"0",n}},t.GetItemsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uris:[]};for(;n.pos>>3==1)i.uris.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?t.uris=e.uris.map((e=>e)):t.uris=[],t},fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}},t.GetItemsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.items)t.Item.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={items:[]};for(;o.pos>>3==1)a.items.push(t.Item.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>t.Item.fromJSON(e))):[]}),toJSON(e){const n={};return e.items?n.items=e.items.map((e=>e?t.Item.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={items:[]};return n.items=e.items?.map((e=>t.Item.fromPartial(e)))||[],n}},t.DownloadRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.device&&t.DeviceKey.encode(e.device,n.uint32(10).fork()).ldelim(),""!==e.uri&&n.uint32(18).string(e.uri),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={device:void 0,uri:""};for(;o.pos>>3){case 1:a.device=t.DeviceKey.decode(o,o.uint32());break;case 2:a.uri=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({device:_(e.device)?t.DeviceKey.fromJSON(e.device):void 0,uri:_(e.uri)?String(e.uri):""}),toJSON(e){const n={};return void 0!==e.device&&(n.device=e.device?t.DeviceKey.toJSON(e.device):void 0),void 0!==e.uri&&(n.uri=e.uri),n},fromPartial(e){const n={device:void 0,uri:""};return n.device=void 0!==e.device&&null!==e.device?t.DeviceKey.fromPartial(e.device):void 0,n.uri=e.uri??"",n}},t.DownloadResponse={encode:(e,t=r.default.Writer.create())=>("0"!==e.error&&t.uint32(8).int64(e.error),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={error:"0"};for(;n.pos>>3==1)i.error=y(n.int64());else n.skipType(7&e)}return i},fromJSON:e=>({error:_(e.error)?String(e.error):"0"}),toJSON(e){const t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={error:"0"};return t.error=e.error??"0",t}},t.Progress={encode:(e,t=r.default.Writer.create())=>("0"!==e.queuedTracks&&t.uint32(8).int64(e.queuedTracks),"0"!==e.queuedBytes&&t.uint32(16).int64(e.queuedBytes),"0"!==e.downloadedTracks&&t.uint32(24).int64(e.downloadedTracks),"0"!==e.downloadedBytes&&t.uint32(32).int64(e.downloadedBytes),"0"!==e.totalTracks&&t.uint32(40).int64(e.totalTracks),"0"!==e.totalBytes&&t.uint32(48).int64(e.totalBytes),!0===e.downloading&&t.uint32(56).bool(e.downloading),"0"!==e.downloadSpeed&&t.uint32(64).int64(e.downloadSpeed),0!==e.percentComplete&&t.uint32(77).float(e.percentComplete),"0"!==e.secondsLeft&&t.uint32(80).int64(e.secondsLeft),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={queuedTracks:"0",queuedBytes:"0",downloadedTracks:"0",downloadedBytes:"0",totalTracks:"0",totalBytes:"0",downloading:!1,downloadSpeed:"0",percentComplete:0,secondsLeft:"0"};for(;n.pos>>3){case 1:i.queuedTracks=y(n.int64());break;case 2:i.queuedBytes=y(n.int64());break;case 3:i.downloadedTracks=y(n.int64());break;case 4:i.downloadedBytes=y(n.int64());break;case 5:i.totalTracks=y(n.int64());break;case 6:i.totalBytes=y(n.int64());break;case 7:i.downloading=n.bool();break;case 8:i.downloadSpeed=y(n.int64());break;case 9:i.percentComplete=n.float();break;case 10:i.secondsLeft=y(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({queuedTracks:_(e.queuedTracks)?String(e.queuedTracks):"0",queuedBytes:_(e.queuedBytes)?String(e.queuedBytes):"0",downloadedTracks:_(e.downloadedTracks)?String(e.downloadedTracks):"0",downloadedBytes:_(e.downloadedBytes)?String(e.downloadedBytes):"0",totalTracks:_(e.totalTracks)?String(e.totalTracks):"0",totalBytes:_(e.totalBytes)?String(e.totalBytes):"0",downloading:!!_(e.downloading)&&Boolean(e.downloading),downloadSpeed:_(e.downloadSpeed)?String(e.downloadSpeed):"0",percentComplete:_(e.percentComplete)?Number(e.percentComplete):0,secondsLeft:_(e.secondsLeft)?String(e.secondsLeft):"0"}),toJSON(e){const t={};return void 0!==e.queuedTracks&&(t.queuedTracks=e.queuedTracks),void 0!==e.queuedBytes&&(t.queuedBytes=e.queuedBytes),void 0!==e.downloadedTracks&&(t.downloadedTracks=e.downloadedTracks),void 0!==e.downloadedBytes&&(t.downloadedBytes=e.downloadedBytes),void 0!==e.totalTracks&&(t.totalTracks=e.totalTracks),void 0!==e.totalBytes&&(t.totalBytes=e.totalBytes),void 0!==e.downloading&&(t.downloading=e.downloading),void 0!==e.downloadSpeed&&(t.downloadSpeed=e.downloadSpeed),void 0!==e.percentComplete&&(t.percentComplete=e.percentComplete),void 0!==e.secondsLeft&&(t.secondsLeft=e.secondsLeft),t},fromPartial(e){const t={queuedTracks:"0",queuedBytes:"0",downloadedTracks:"0",downloadedBytes:"0",totalTracks:"0",totalBytes:"0",downloading:!1,downloadSpeed:"0",percentComplete:0,secondsLeft:"0"};return t.queuedTracks=e.queuedTracks??"0",t.queuedBytes=e.queuedBytes??"0",t.downloadedTracks=e.downloadedTracks??"0",t.downloadedBytes=e.downloadedBytes??"0",t.totalTracks=e.totalTracks??"0",t.totalBytes=e.totalBytes??"0",t.downloading=e.downloading??!1,t.downloadSpeed=e.downloadSpeed??"0",t.percentComplete=e.percentComplete??0,t.secondsLeft=e.secondsLeft??"0",t}},t.GetContextsProgressRequest={encode(e,t=r.default.Writer.create()){for(const n of e.uris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uris:[]};for(;n.pos>>3==1)i.uris.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uris?t.uris=e.uris.map((e=>e)):t.uris=[],t},fromPartial(e){const t={uris:[]};return t.uris=e.uris?.map((e=>e))||[],t}},t.ContextProgress={encode:(e,n=r.default.Writer.create())=>(""!==e.uri&&n.uint32(10).string(e.uri),void 0!==e.progress&&t.Progress.encode(e.progress,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={uri:"",progress:void 0};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.progress=t.Progress.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:_(e.uri)?String(e.uri):"",progress:_(e.progress)?t.Progress.fromJSON(e.progress):void 0}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),void 0!==e.progress&&(n.progress=e.progress?t.Progress.toJSON(e.progress):void 0),n},fromPartial(e){const n={uri:"",progress:void 0};return n.uri=e.uri??"",n.progress=void 0!==e.progress&&null!==e.progress?t.Progress.fromPartial(e.progress):void 0,n}},t.ContextsProgressResponse={encode(e,n=r.default.Writer.create()){for(const o of e.progresses)t.ContextProgress.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={progresses:[]};for(;o.pos>>3==1)a.progresses.push(t.ContextProgress.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({progresses:Array.isArray(e?.progresses)?e.progresses.map((e=>t.ContextProgress.fromJSON(e))):[]}),toJSON(e){const n={};return e.progresses?n.progresses=e.progresses.map((e=>e?t.ContextProgress.toJSON(e):void 0)):n.progresses=[],n},fromPartial(e){const n={progresses:[]};return n.progresses=e.progresses?.map((e=>t.ContextProgress.fromPartial(e)))||[],n}},t.TotalProgressResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.progress&&t.Progress.encode(e.progress,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={progress:void 0};for(;o.pos>>3==1)a.progress=t.Progress.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({progress:_(e.progress)?t.Progress.fromJSON(e.progress):void 0}),toJSON(e){const n={};return void 0!==e.progress&&(n.progress=e.progress?t.Progress.toJSON(e.progress):void 0),n},fromPartial(e){const n={progress:void 0};return n.progress=void 0!==e.progress&&null!==e.progress?t.Progress.fromPartial(e.progress):void 0,n}},t.Device={encode:(e,t=r.default.Writer.create())=>(""!==e.deviceId&&t.uint32(10).string(e.deviceId),""!==e.cacheId&&t.uint32(18).string(e.cacheId),""!==e.name&&t.uint32(26).string(e.name),0!==e.type&&t.uint32(32).int32(e.type),0!==e.platform&&t.uint32(40).int32(e.platform),void 0!==e.lastSeenAt&&a.Timestamp.encode(function(e){const t=Math.trunc(e.getTime()/1e3).toString(),n=e.getTime()%1e3*1e6;return{seconds:t,nanos:n}}(e.lastSeenAt),t.uint32(50).fork()).ldelim(),!0===e.isLocal&&t.uint32(56).bool(e.isLocal),""!==e.clientId&&t.uint32(66).string(e.clientId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={deviceId:"",cacheId:"",name:"",type:0,platform:0,lastSeenAt:void 0,isLocal:!1,clientId:""};for(;n.pos>>3){case 1:i.deviceId=n.string();break;case 2:i.cacheId=n.string();break;case 3:i.name=n.string();break;case 4:i.type=n.int32();break;case 5:i.platform=n.int32();break;case 6:i.lastSeenAt=g(a.Timestamp.decode(n,n.uint32()));break;case 7:i.isLocal=n.bool();break;case 8:i.clientId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({deviceId:_(e.deviceId)?String(e.deviceId):"",cacheId:_(e.cacheId)?String(e.cacheId):"",name:_(e.name)?String(e.name):"",type:_(e.type)?Number(e.type):0,platform:_(e.platform)?Number(e.platform):0,lastSeenAt:_(e.lastSeenAt)?v(e.lastSeenAt):void 0,isLocal:!!_(e.isLocal)&&Boolean(e.isLocal),clientId:_(e.clientId)?String(e.clientId):""}),toJSON(e){const t={};return void 0!==e.deviceId&&(t.deviceId=e.deviceId),void 0!==e.cacheId&&(t.cacheId=e.cacheId),void 0!==e.name&&(t.name=e.name),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.platform&&(t.platform=Math.round(e.platform)),void 0!==e.lastSeenAt&&(t.lastSeenAt=e.lastSeenAt.toISOString()),void 0!==e.isLocal&&(t.isLocal=e.isLocal),void 0!==e.clientId&&(t.clientId=e.clientId),t},fromPartial(e){const t={deviceId:"",cacheId:"",name:"",type:0,platform:0,lastSeenAt:void 0,isLocal:!1,clientId:""};return t.deviceId=e.deviceId??"",t.cacheId=e.cacheId??"",t.name=e.name??"",t.type=e.type??0,t.platform=e.platform??0,t.lastSeenAt=e.lastSeenAt??void 0,t.isLocal=e.isLocal??!1,t.clientId=e.clientId??"",t}},t.GetDevicesResponse={encode(e,n=r.default.Writer.create()){for(const o of e.devices)t.Device.encode(o,n.uint32(10).fork()).ldelim();return"0"!==e.error&&n.uint32(16).int64(e.error),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={devices:[],error:"0"};for(;o.pos>>3){case 1:a.devices.push(t.Device.decode(o,o.uint32()));break;case 2:a.error=y(o.int64());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>t.Device.fromJSON(e))):[],error:_(e.error)?String(e.error):"0"}),toJSON(e){const n={};return e.devices?n.devices=e.devices.map((e=>e?t.Device.toJSON(e):void 0)):n.devices=[],void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={devices:[],error:"0"};return n.devices=e.devices?.map((e=>t.Device.fromPartial(e)))||[],n.error=e.error??"0",n}},t.GetContextForDevicesRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:""};for(;n.pos>>3==1)i.uri=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}},t.GetContextForDevicesResponse={encode(e,n=r.default.Writer.create()){for(const o of e.devices)t.Device.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.contexts)t.DeviceContextInfo.encode(o,n.uint32(18).fork()).ldelim();return"0"!==e.error&&n.uint32(24).int64(e.error),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={devices:[],contexts:[],error:"0"};for(;o.pos>>3){case 1:a.devices.push(t.Device.decode(o,o.uint32()));break;case 2:a.contexts.push(t.DeviceContextInfo.decode(o,o.uint32()));break;case 3:a.error=y(o.int64());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>t.Device.fromJSON(e))):[],contexts:Array.isArray(e?.contexts)?e.contexts.map((e=>t.DeviceContextInfo.fromJSON(e))):[],error:_(e.error)?String(e.error):"0"}),toJSON(e){const n={};return e.devices?n.devices=e.devices.map((e=>e?t.Device.toJSON(e):void 0)):n.devices=[],e.contexts?n.contexts=e.contexts.map((e=>e?t.DeviceContextInfo.toJSON(e):void 0)):n.contexts=[],void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={devices:[],contexts:[],error:"0"};return n.devices=e.devices?.map((e=>t.Device.fromPartial(e)))||[],n.contexts=e.contexts?.map((e=>t.DeviceContextInfo.fromPartial(e)))||[],n.error=e.error??"0",n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},77579:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyStatsResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return e.toString()}function s(e){return null!=e}t.protobufPackage="spotify.offline_esperanto.proto",t.KeyStatsResponse={encode:(e,t=r.default.Writer.create())=>("0"!==e.cached&&t.uint32(8).int64(e.cached),"0"!==e.offline&&t.uint32(16).int64(e.offline),"0"!==e.memory&&t.uint32(24).int64(e.memory),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={cached:"0",offline:"0",memory:"0"};for(;n.pos>>3){case 1:i.cached=a(n.int64());break;case 2:i.offline=a(n.int64());break;case 3:i.memory=a(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({cached:s(e.cached)?String(e.cached):"0",offline:s(e.offline)?String(e.offline):"0",memory:s(e.memory)?String(e.memory):"0"}),toJSON(e){const t={};return void 0!==e.cached&&(t.cached=e.cached),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.memory&&(t.memory=e.memory),t},fromPartial(e){const t={cached:"0",offline:"0",memory:"0"};return t.cached=e.cached??"0",t.offline=e.offline??"0",t.memory=e.memory??"0",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},84883:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PluginMetadata=t.RemoveCommand_Query=t.RemoveCommand_Header=t.RemoveCommand=t.StopDownloadCommand=t.DownloadResponse=t.DownloadCommand_MetadataEntry=t.DownloadCommand=t.IdentifyResponse_ResultsEntry=t.IdentifyResponse_Result=t.IdentifyResponse=t.IdentifyCommand_Query_MetadataEntry=t.IdentifyCommand_Query=t.IdentifyCommand_Header=t.IdentifyCommand=t.Metadata_Header=t.Metadata=t.TargetFormat=t.downloadResponse_ErrorToJSON=t.downloadResponse_ErrorFromJSON=t.DownloadResponse_Error=t.identifyResponse_Result_StatusToJSON=t.identifyResponse_Result_StatusFromJSON=t.IdentifyResponse_Result_Status=t.resourceTypeToJSON=t.resourceTypeFromJSON=t.ResourceType=t.linkTypeToJSON=t.linkTypeFromJSON=t.LinkType=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(7205),s=n(46143);var l,c,u,d;function p(e){switch(e){case 0:case"EMPTY":return l.EMPTY;case 1:case"TRACK":return l.TRACK;case 2:case"EPISODE":return l.EPISODE;default:return l.UNRECOGNIZED}}function f(e){switch(e){case l.EMPTY:return"EMPTY";case l.TRACK:return"TRACK";case l.EPISODE:return"EPISODE";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"OTHER":return c.OTHER;case 1:case"AUDIO":return c.AUDIO;case 2:case"DRM":return c.DRM;case 3:case"IMAGE":return c.IMAGE;case 4:case"VIDEO":return c.VIDEO;default:return c.UNRECOGNIZED}}function m(e){switch(e){case c.OTHER:return"OTHER";case c.AUDIO:return"AUDIO";case c.DRM:return"DRM";case c.IMAGE:return"IMAGE";case c.VIDEO:return"VIDEO";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"MISSING":return u.MISSING;case 2:case"COMPLETE":return u.COMPLETE;case 3:case"NOT_APPLICABLE":return u.NOT_APPLICABLE;default:return u.UNRECOGNIZED}}function v(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.MISSING:return"MISSING";case u.COMPLETE:return"COMPLETE";case u.NOT_APPLICABLE:return"NOT_APPLICABLE";case u.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function y(e){switch(e){case 0:case"OK":return d.OK;case 1:case"TEMPORARY_ERROR":return d.TEMPORARY_ERROR;case 2:case"PERMANENT_ERROR":return d.PERMANENT_ERROR;case 3:case"DISK_FULL":return d.DISK_FULL;default:return d.UNRECOGNIZED}}function _(e){switch(e){case d.OK:return"OK";case d.TEMPORARY_ERROR:return"TEMPORARY_ERROR";case d.PERMANENT_ERROR:return"PERMANENT_ERROR";case d.DISK_FULL:return"DISK_FULL";case d.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function b(e){return e.toString()}function S(e){return"object"==typeof e&&null!==e}function E(e){return null!=e}t.protobufPackage="spotify.offline.proto.v2",function(e){e[e.EMPTY=0]="EMPTY",e[e.TRACK=1]="TRACK",e[e.EPISODE=2]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.LinkType||(t.LinkType={})),t.linkTypeFromJSON=p,t.linkTypeToJSON=f,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"}(c=t.ResourceType||(t.ResourceType={})),t.resourceTypeFromJSON=h,t.resourceTypeToJSON=m,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"}(u=t.IdentifyResponse_Result_Status||(t.IdentifyResponse_Result_Status={})),t.identifyResponse_Result_StatusFromJSON=g,t.identifyResponse_Result_StatusToJSON=v,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"}(d=t.DownloadResponse_Error||(t.DownloadResponse_Error={})),t.downloadResponse_ErrorFromJSON=y,t.downloadResponse_ErrorToJSON=_,t.TargetFormat={encode:(e,t=r.default.Writer.create())=>(0!==e.bitrate&&t.uint32(8).int32(e.bitrate),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={bitrate:0};for(;n.pos>>3==1)i.bitrate=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({bitrate:E(e.bitrate)?Number(e.bitrate):0}),toJSON(e){const t={};return void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),t},fromPartial(e){const t={bitrate:0};return t.bitrate=e.bitrate??0,t}},t.Metadata={encode:(e,n=r.default.Writer.create())=>(void 0!==e.header&&t.Metadata_Header.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.extensionData&&s.Any.encode(e.extensionData,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={header:void 0,extensionData:void 0};for(;o.pos>>3){case 1:a.header=t.Metadata_Header.decode(o,o.uint32());break;case 2:a.extensionData=s.Any.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:E(e.header)?t.Metadata_Header.fromJSON(e.header):void 0,extensionData:E(e.extensionData)?s.Any.fromJSON(e.extensionData):void 0}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.Metadata_Header.toJSON(e.header):void 0),void 0!==e.extensionData&&(n.extensionData=e.extensionData?s.Any.toJSON(e.extensionData):void 0),n},fromPartial(e){const n={header:void 0,extensionData:void 0};return n.header=void 0!==e.header&&null!==e.header?t.Metadata_Header.fromPartial(e.header):void 0,n.extensionData=void 0!==e.extensionData&&null!==e.extensionData?s.Any.fromPartial(e.extensionData):void 0,n}},t.Metadata_Header={encode:(e,t=r.default.Writer.create())=>(0!==e.statusCode&&t.uint32(8).int32(e.statusCode),!0===e.isEmpty&&t.uint32(16).bool(e.isEmpty),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={statusCode:0,isEmpty:!1};for(;n.pos>>3){case 1:i.statusCode=n.int32();break;case 2:i.isEmpty=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({statusCode:E(e.statusCode)?Number(e.statusCode):0,isEmpty:!!E(e.isEmpty)&&Boolean(e.isEmpty)}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.isEmpty&&(t.isEmpty=e.isEmpty),t},fromPartial(e){const t={statusCode:0,isEmpty:!1};return t.statusCode=e.statusCode??0,t.isEmpty=e.isEmpty??!1,t}},t.IdentifyCommand={encode(e,n=r.default.Writer.create()){void 0!==e.header&&t.IdentifyCommand_Header.encode(e.header,n.uint32(10).fork()).ldelim();for(const o of e.query)t.IdentifyCommand_Query.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={header:void 0,query:[]};for(;o.pos>>3){case 1:a.header=t.IdentifyCommand_Header.decode(o,o.uint32());break;case 2:a.query.push(t.IdentifyCommand_Query.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:E(e.header)?t.IdentifyCommand_Header.fromJSON(e.header):void 0,query:Array.isArray(e?.query)?e.query.map((e=>t.IdentifyCommand_Query.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.IdentifyCommand_Header.toJSON(e.header):void 0),e.query?n.query=e.query.map((e=>e?t.IdentifyCommand_Query.toJSON(e):void 0)):n.query=[],n},fromPartial(e){const n={header:void 0,query:[]};return n.header=void 0!==e.header&&null!==e.header?t.IdentifyCommand_Header.fromPartial(e.header):void 0,n.query=e.query?.map((e=>t.IdentifyCommand_Query.fromPartial(e)))||[],n}},t.IdentifyCommand_Header={encode:(e,n=r.default.Writer.create())=>(void 0!==e.targetFormat&&t.TargetFormat.encode(e.targetFormat,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={targetFormat:void 0};for(;o.pos>>3==1)a.targetFormat=t.TargetFormat.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({targetFormat:E(e.targetFormat)?t.TargetFormat.fromJSON(e.targetFormat):void 0}),toJSON(e){const n={};return void 0!==e.targetFormat&&(n.targetFormat=e.targetFormat?t.TargetFormat.toJSON(e.targetFormat):void 0),n},fromPartial(e){const n={targetFormat:void 0};return n.targetFormat=void 0!==e.targetFormat&&null!==e.targetFormat?t.TargetFormat.fromPartial(e.targetFormat):void 0,n}},t.IdentifyCommand_Query={encode:(e,n=r.default.Writer.create())=>(""!==e.link&&n.uint32(10).string(e.link),Object.entries(e.metadata).forEach((([e,o])=>{t.IdentifyCommand_Query_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={link:"",metadata:{}};for(;o.pos>>3){case 1:a.link=o.string();break;case 2:const n=t.IdentifyCommand_Query_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON:e=>({link:E(e.link)?String(e.link):"",metadata:S(e.metadata)?Object.entries(e.metadata).reduce(((e,[n,o])=>(e[Number(n)]=t.Metadata.fromJSON(o),e)),{}):{}}),toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,o])=>{n.metadata[e]=t.Metadata.toJSON(o)})),n},fromPartial(e){const n={link:"",metadata:{}};return n.link=e.link??"",n.metadata=Object.entries(e.metadata??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[Number(n)]=t.Metadata.fromPartial(o)),e)),{}),n}},t.IdentifyCommand_Query_MetadataEntry={encode:(e,n=r.default.Writer.create())=>(0!==e.key&&n.uint32(8).int32(e.key),void 0!==e.value&&t.Metadata.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:0,value:void 0};for(;o.pos>>3){case 1:a.key=o.int32();break;case 2:a.value=t.Metadata.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:E(e.key)?Number(e.key):0,value:E(e.value)?t.Metadata.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=Math.round(e.key)),void 0!==e.value&&(n.value=e.value?t.Metadata.toJSON(e.value):void 0),n},fromPartial(e){const n={key:0,value:void 0};return n.key=e.key??0,n.value=void 0!==e.value&&null!==e.value?t.Metadata.fromPartial(e.value):void 0,n}},t.IdentifyResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.results).forEach((([e,o])=>{t.IdentifyResponse_ResultsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={results:{}};for(;o.pos>>3==1){const e=t.IdentifyResponse_ResultsEntry.decode(o,o.uint32());void 0!==e.value&&(a.results[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({results:S(e.results)?Object.entries(e.results).reduce(((e,[n,o])=>(e[n]=t.IdentifyResponse_Result.fromJSON(o),e)),{}):{}}),toJSON(e){const n={results:{}};return e.results&&Object.entries(e.results).forEach((([e,o])=>{n.results[e]=t.IdentifyResponse_Result.toJSON(o)})),n},fromPartial(e){const n={results:{}};return n.results=Object.entries(e.results??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.IdentifyResponse_Result.fromPartial(o)),e)),{}),n}},t.IdentifyResponse_Result={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),"0"!==e.estimatedFileSize&&t.uint32(16).int64(e.estimatedFileSize),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,estimatedFileSize:"0"};for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.estimatedFileSize=b(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:E(e.status)?g(e.status):0,estimatedFileSize:E(e.estimatedFileSize)?String(e.estimatedFileSize):"0"}),toJSON(e){const t={};return void 0!==e.status&&(t.status=v(e.status)),void 0!==e.estimatedFileSize&&(t.estimatedFileSize=e.estimatedFileSize),t},fromPartial(e){const t={status:0,estimatedFileSize:"0"};return t.status=e.status??0,t.estimatedFileSize=e.estimatedFileSize??"0",t}},t.IdentifyResponse_ResultsEntry={encode:(e,n=r.default.Writer.create())=>(""!==e.key&&n.uint32(10).string(e.key),void 0!==e.value&&t.IdentifyResponse_Result.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.IdentifyResponse_Result.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:E(e.key)?String(e.key):"",value:E(e.value)?t.IdentifyResponse_Result.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.IdentifyResponse_Result.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.IdentifyResponse_Result.fromPartial(e.value):void 0,n}},t.DownloadCommand={encode:(e,n=r.default.Writer.create())=>(""!==e.link&&n.uint32(10).string(e.link),void 0!==e.targetFormat&&t.TargetFormat.encode(e.targetFormat,n.uint32(18).fork()).ldelim(),Object.entries(e.metadata).forEach((([e,o])=>{t.DownloadCommand_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={link:"",targetFormat:void 0,metadata:{}};for(;o.pos>>3){case 1:a.link=o.string();break;case 2:a.targetFormat=t.TargetFormat.decode(o,o.uint32());break;case 3:const n=t.DownloadCommand_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON:e=>({link:E(e.link)?String(e.link):"",targetFormat:E(e.targetFormat)?t.TargetFormat.fromJSON(e.targetFormat):void 0,metadata:S(e.metadata)?Object.entries(e.metadata).reduce(((e,[n,o])=>(e[Number(n)]=t.Metadata.fromJSON(o),e)),{}):{}}),toJSON(e){const n={};return void 0!==e.link&&(n.link=e.link),void 0!==e.targetFormat&&(n.targetFormat=e.targetFormat?t.TargetFormat.toJSON(e.targetFormat):void 0),n.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,o])=>{n.metadata[e]=t.Metadata.toJSON(o)})),n},fromPartial(e){const n={link:"",targetFormat:void 0,metadata:{}};return n.link=e.link??"",n.targetFormat=void 0!==e.targetFormat&&null!==e.targetFormat?t.TargetFormat.fromPartial(e.targetFormat):void 0,n.metadata=Object.entries(e.metadata??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[Number(n)]=t.Metadata.fromPartial(o)),e)),{}),n}},t.DownloadCommand_MetadataEntry={encode:(e,n=r.default.Writer.create())=>(0!==e.key&&n.uint32(8).int32(e.key),void 0!==e.value&&t.Metadata.encode(e.value,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:0,value:void 0};for(;o.pos>>3){case 1:a.key=o.int32();break;case 2:a.value=t.Metadata.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:E(e.key)?Number(e.key):0,value:E(e.value)?t.Metadata.fromJSON(e.value):void 0}),toJSON(e){const n={};return void 0!==e.key&&(n.key=Math.round(e.key)),void 0!==e.value&&(n.value=e.value?t.Metadata.toJSON(e.value):void 0),n},fromPartial(e){const n={key:0,value:void 0};return n.key=e.key??0,n.value=void 0!==e.value&&null!==e.value?t.Metadata.fromPartial(e.value):void 0,n}},t.DownloadResponse={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),!0===e.complete&&t.uint32(16).bool(e.complete),"0"!==e.fileSize&&t.uint32(24).int64(e.fileSize),"0"!==e.bytesDownloaded&&t.uint32(32).int64(e.bytesDownloaded),0!==e.error&&t.uint32(40).int32(e.error),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",complete:!1,fileSize:"0",bytesDownloaded:"0",error:0};for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.complete=n.bool();break;case 3:i.fileSize=b(n.int64());break;case 4:i.bytesDownloaded=b(n.int64());break;case 5:i.error=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({link:E(e.link)?String(e.link):"",complete:!!E(e.complete)&&Boolean(e.complete),fileSize:E(e.fileSize)?String(e.fileSize):"0",bytesDownloaded:E(e.bytesDownloaded)?String(e.bytesDownloaded):"0",error:E(e.error)?y(e.error):0}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.complete&&(t.complete=e.complete),void 0!==e.fileSize&&(t.fileSize=e.fileSize),void 0!==e.bytesDownloaded&&(t.bytesDownloaded=e.bytesDownloaded),void 0!==e.error&&(t.error=_(e.error)),t},fromPartial(e){const t={link:"",complete:!1,fileSize:"0",bytesDownloaded:"0",error:0};return t.link=e.link??"",t.complete=e.complete??!1,t.fileSize=e.fileSize??"0",t.bytesDownloaded=e.bytesDownloaded??"0",t.error=e.error??0,t}},t.StopDownloadCommand={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:""};for(;n.pos>>3==1)i.link=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({link:E(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={link:""};return t.link=e.link??"",t}},t.RemoveCommand={encode(e,n=r.default.Writer.create()){void 0!==e.header&&t.RemoveCommand_Header.encode(e.header,n.uint32(10).fork()).ldelim();for(const o of e.query)t.RemoveCommand_Query.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={header:void 0,query:[]};for(;o.pos>>3){case 1:a.header=t.RemoveCommand_Header.decode(o,o.uint32());break;case 2:a.query.push(t.RemoveCommand_Query.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:E(e.header)?t.RemoveCommand_Header.fromJSON(e.header):void 0,query:Array.isArray(e?.query)?e.query.map((e=>t.RemoveCommand_Query.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.RemoveCommand_Header.toJSON(e.header):void 0),e.query?n.query=e.query.map((e=>e?t.RemoveCommand_Query.toJSON(e):void 0)):n.query=[],n},fromPartial(e){const n={header:void 0,query:[]};return n.header=void 0!==e.header&&null!==e.header?t.RemoveCommand_Header.fromPartial(e.header):void 0,n.query=e.query?.map((e=>t.RemoveCommand_Query.fromPartial(e)))||[],n}},t.RemoveCommand_Header={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.RemoveCommand_Query={encode:(e,t=r.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:""};for(;n.pos>>3==1)i.link=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({link:E(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={link:""};return t.link=e.link??"",t}},t.PluginMetadata={encode(e,t=r.default.Writer.create()){""!==e.name&&t.uint32(10).string(e.name),t.uint32(18).fork();for(const n of e.supportedLinkTypes)t.int32(n);t.ldelim(),0!==e.resourceType&&t.uint32(24).int32(e.resourceType),t.uint32(34).fork();for(const n of e.extensionKinds)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:"",supportedLinkTypes:[],resourceType:0,extensionKinds:[]};for(;n.pos>>3){case 1:i.name=n.string();break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({name:E(e.name)?String(e.name):"",supportedLinkTypes:Array.isArray(e?.supportedLinkTypes)?e.supportedLinkTypes.map((e=>p(e))):[],resourceType:E(e.resourceType)?h(e.resourceType):0,extensionKinds:Array.isArray(e?.extensionKinds)?e.extensionKinds.map((e=>(0,a.extensionKindFromJSON)(e))):[]}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),e.supportedLinkTypes?t.supportedLinkTypes=e.supportedLinkTypes.map((e=>f(e))):t.supportedLinkTypes=[],void 0!==e.resourceType&&(t.resourceType=m(e.resourceType)),e.extensionKinds?t.extensionKinds=e.extensionKinds.map((e=>(0,a.extensionKindToJSON)(e))):t.extensionKinds=[],t},fromPartial(e){const t={name:"",supportedLinkTypes:[],resourceType:0,extensionKinds:[]};return t.name=e.name??"",t.supportedLinkTypes=e.supportedLinkTypes?.map((e=>e))||[],t.resourceType=e.resourceType??0,t.extensionKinds=e.extensionKinds?.map((e=>e))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},83836:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TestPluginResponse=t.TestPluginCommand=t.protobufPackage=void 0;const i=o(n(33892)),r=n(84883);function a(e){return null!=e}t.protobufPackage="spotify.offline_esperanto.test.proto",t.TestPluginCommand={encode:(e,t=i.default.Writer.create())=>(void 0!==e.identify&&r.IdentifyCommand.encode(e.identify,t.uint32(10).fork()).ldelim(),void 0!==e.download&&r.DownloadCommand.encode(e.download,t.uint32(18).fork()).ldelim(),void 0!==e.stopDownload&&r.StopDownloadCommand.encode(e.stopDownload,t.uint32(26).fork()).ldelim(),void 0!==e.remove&&r.RemoveCommand.encode(e.remove,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={identify:void 0,download:void 0,stopDownload:void 0,remove:void 0};for(;n.pos>>3){case 1:a.identify=r.IdentifyCommand.decode(n,n.uint32());break;case 2:a.download=r.DownloadCommand.decode(n,n.uint32());break;case 3:a.stopDownload=r.StopDownloadCommand.decode(n,n.uint32());break;case 4:a.remove=r.RemoveCommand.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({identify:a(e.identify)?r.IdentifyCommand.fromJSON(e.identify):void 0,download:a(e.download)?r.DownloadCommand.fromJSON(e.download):void 0,stopDownload:a(e.stopDownload)?r.StopDownloadCommand.fromJSON(e.stopDownload):void 0,remove:a(e.remove)?r.RemoveCommand.fromJSON(e.remove):void 0}),toJSON(e){const t={};return void 0!==e.identify&&(t.identify=e.identify?r.IdentifyCommand.toJSON(e.identify):void 0),void 0!==e.download&&(t.download=e.download?r.DownloadCommand.toJSON(e.download):void 0),void 0!==e.stopDownload&&(t.stopDownload=e.stopDownload?r.StopDownloadCommand.toJSON(e.stopDownload):void 0),void 0!==e.remove&&(t.remove=e.remove?r.RemoveCommand.toJSON(e.remove):void 0),t},fromPartial(e){const t={identify:void 0,download:void 0,stopDownload:void 0,remove:void 0};return t.identify=void 0!==e.identify&&null!==e.identify?r.IdentifyCommand.fromPartial(e.identify):void 0,t.download=void 0!==e.download&&null!==e.download?r.DownloadCommand.fromPartial(e.download):void 0,t.stopDownload=void 0!==e.stopDownload&&null!==e.stopDownload?r.StopDownloadCommand.fromPartial(e.stopDownload):void 0,t.remove=void 0!==e.remove&&null!==e.remove?r.RemoveCommand.fromPartial(e.remove):void 0,t}},t.TestPluginResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.identify&&r.IdentifyResponse.encode(e.identify,t.uint32(10).fork()).ldelim(),void 0!==e.download&&r.DownloadResponse.encode(e.download,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={identify:void 0,download:void 0};for(;n.pos>>3){case 1:a.identify=r.IdentifyResponse.decode(n,n.uint32());break;case 2:a.download=r.DownloadResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({identify:a(e.identify)?r.IdentifyResponse.fromJSON(e.identify):void 0,download:a(e.download)?r.DownloadResponse.fromJSON(e.download):void 0}),toJSON(e){const t={};return void 0!==e.identify&&(t.identify=e.identify?r.IdentifyResponse.toJSON(e.identify):void 0),void 0!==e.download&&(t.download=e.download?r.DownloadResponse.toJSON(e.download):void 0),t},fromPartial(e){const t={identify:void 0,download:void 0};return t.identify=void 0!==e.identify&&null!==e.identify?r.IdentifyResponse.fromPartial(e.identify):void 0,t.download=void 0!==e.download&&null!==e.download?r.DownloadResponse.fromPartial(e.download):void 0,t}}},7205:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;case 79:case"COVER_IMAGE":return n.COVER_IMAGE;case 80:case"SHARE_TRAIT":return n.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return n.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return n.ARTIST_TOUR;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.COVER_IMAGE:return"COVER_IMAGE";case n.SHARE_TRAIT:return"SHARE_TRAIT";case n.INSTANCE_SHARING:return"INSTANCE_SHARING";case n.ARTIST_TOUR:return"ARTIST_TOUR";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},46143:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const i=o(n(33892));function r(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={encode:(e,t=i.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({typeUrl:l(e.typeUrl)?String(e.typeUrl):"",value:l(e.value)?s(e.value):new Uint8Array}),toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){const t=r();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array,t}};var a=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;et,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},26958:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="google.protobuf",t.Timestamp={encode:(e,t=r.default.Writer.create())=>("0"!==e.seconds&&t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={seconds:"0",nanos:0};for(;n.pos>>3){case 1:i.seconds=n.int64().toString();break;case 2:i.nanos=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({seconds:a(e.seconds)?String(e.seconds):"0",nanos:a(e.nanos)?Number(e.nanos):0}),toJSON(e){const t={};return void 0!==e.seconds&&(t.seconds=e.seconds),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){const t={seconds:"0",nanos:0};return t.seconds=e.seconds??"0",t.nanos=e.nanos??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},53104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackServiceClient=void 0;const o=n(33892),i=n(50830),r=n(57118);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetVolume",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetVolumeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subVolume(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",a="SubVolume",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.SubVolumeResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}setVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="SetVolume",a=r.SetVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}raiseVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="RaiseVolume",a=r.NudgeVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}lowerVolume(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="LowerVolume",a=r.NudgeVolumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const r=i.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getPlaybackInfo(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetPlaybackInfo",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.PlaybackInfoResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subPlaybackInfo(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",a="SubPlaybackInfo",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.PlaybackInfoResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}getFormats(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetFormats",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.GetFormatsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subPosition(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",i="SubPosition",a=r.SubPositionRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.SubPositionResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}getFiles(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="GetFiles",i=r.GetFilesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetFilesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}duck(e){const t="spotify.playback_esperanto.proto.PlaybackService",n="Duck",i=r.DuckRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.DuckResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subBufferUnderrun(e,t){const n="spotify.playback_esperanto.proto.PlaybackService",r="SubBufferUnderrun",a=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.Empty.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.playback_esperanto.proto.PlaybackService";static DECODERS={GetVolume:{request:i.Empty.decode,response:r.GetVolumeResponse.decode},SubVolume:{request:i.Empty.decode,response:r.SubVolumeResponse.decode},SetVolume:{request:r.SetVolumeRequest.decode,response:i.Empty.decode},RaiseVolume:{request:r.NudgeVolumeRequest.decode,response:i.Empty.decode},LowerVolume:{request:r.NudgeVolumeRequest.decode,response:i.Empty.decode},GetPlaybackInfo:{request:i.Empty.decode,response:r.PlaybackInfoResponse.decode},SubPlaybackInfo:{request:i.Empty.decode,response:r.PlaybackInfoResponse.decode},GetFormats:{request:i.Empty.decode,response:r.GetFormatsResponse.decode},SubPosition:{request:r.SubPositionRequest.decode,response:r.SubPositionResponse.decode},GetFiles:{request:r.GetFilesRequest.decode,response:r.GetFilesResponse.decode},Duck:{request:r.DuckRequest.decode,response:r.DuckResponse.decode},SubBufferUnderrun:{request:i.Empty.decode,response:i.Empty.decode}}}t.PlaybackServiceClient=a},74583:(e,t,n)=>{"use strict";t.tp=t.ao=t.No=void 0;var o=n(53104);Object.defineProperty(t,"No",{enumerable:!0,get:function(){return o.PlaybackServiceClient}});var i=n(57118);Object.defineProperty(t,"ao",{enumerable:!0,get:function(){return i.GetFilesStatus}}),Object.defineProperty(t,"tp",{enumerable:!0,get:function(){return i.VolumeChangeSource}})},50830:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},57118:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DuckResponse=t.DuckRequest=t.GetFilesResponse_File=t.GetFilesResponse=t.GetFilesRequest=t.SubPositionResponse=t.SubPositionRequest=t.GetFormatsResponse_Format=t.GetFormatsResponse=t.PlaybackInfoResponse=t.NudgeVolumeRequest=t.SetVolumeRequest=t.SubVolumeResponse=t.GetVolumeResponse=t.ConnectLoggingParams=t.duckRequest_ActionToJSON=t.duckRequest_ActionFromJSON=t.DuckRequest_Action=t.volumeChangeSourceToJSON=t.volumeChangeSourceFromJSON=t.VolumeChangeSource=t.getFilesStatusToJSON=t.getFilesStatusFromJSON=t.GetFilesStatus=t.statusToJSON=t.statusFromJSON=t.Status=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l,c;function u(e){switch(e){case 0:case"OK":return a.OK;case 1:case"NOT_AVAILABLE":return a.NOT_AVAILABLE;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.OK:return"OK";case a.NOT_AVAILABLE:return"NOT_AVAILABLE";default:return"UNKNOWN"}}function p(e){switch(e){case 0:case"GETFILES_OK":return s.GETFILES_OK;case 1:case"METADATA_CLIENT_NOT_AVAILABLE":return s.METADATA_CLIENT_NOT_AVAILABLE;case 2:case"FILES_NOT_FOUND":return s.FILES_NOT_FOUND;case 3:case"TRACK_NOT_AVAILABLE":return s.TRACK_NOT_AVAILABLE;case 4:case"EXTENDED_METADATA_ERROR":return s.EXTENDED_METADATA_ERROR;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.GETFILES_OK:return"GETFILES_OK";case s.METADATA_CLIENT_NOT_AVAILABLE:return"METADATA_CLIENT_NOT_AVAILABLE";case s.FILES_NOT_FOUND:return"FILES_NOT_FOUND";case s.TRACK_NOT_AVAILABLE:return"TRACK_NOT_AVAILABLE";case s.EXTENDED_METADATA_ERROR:return"EXTENDED_METADATA_ERROR";default:return"UNKNOWN"}}function h(e){switch(e){case 0:case"USER":return l.USER;case 1:case"SYSTEM":return l.SYSTEM;default:return l.UNRECOGNIZED}}function m(e){switch(e){case l.USER:return"USER";case l.SYSTEM:return"SYSTEM";default:return"UNKNOWN"}}function g(e){switch(e){case 0:case"START":return c.START;case 1:case"STOP":return c.STOP;default:return c.UNRECOGNIZED}}function v(e){switch(e){case c.START:return"START";case c.STOP:return"STOP";default:return"UNKNOWN"}}function y(e){return e.toString()}function _(e){return null!=e}t.protobufPackage="spotify.playback_esperanto.proto",function(e){e[e.OK=0]="OK",e[e.NOT_AVAILABLE=1]="NOT_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Status||(t.Status={})),t.statusFromJSON=u,t.statusToJSON=d,function(e){e[e.GETFILES_OK=0]="GETFILES_OK",e[e.METADATA_CLIENT_NOT_AVAILABLE=1]="METADATA_CLIENT_NOT_AVAILABLE",e[e.FILES_NOT_FOUND=2]="FILES_NOT_FOUND",e[e.TRACK_NOT_AVAILABLE=3]="TRACK_NOT_AVAILABLE",e[e.EXTENDED_METADATA_ERROR=4]="EXTENDED_METADATA_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.GetFilesStatus||(t.GetFilesStatus={})),t.getFilesStatusFromJSON=p,t.getFilesStatusToJSON=f,function(e){e[e.USER=0]="USER",e[e.SYSTEM=1]="SYSTEM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.VolumeChangeSource||(t.VolumeChangeSource={})),t.volumeChangeSourceFromJSON=h,t.volumeChangeSourceToJSON=m,function(e){e[e.START=0]="START",e[e.STOP=1]="STOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.DuckRequest_Action||(t.DuckRequest_Action={})),t.duckRequest_ActionFromJSON=g,t.duckRequest_ActionToJSON=v,t.ConnectLoggingParams={encode(e,t=r.default.Writer.create()){for(const n of e.interactionIds)t.uint32(10).string(n);for(const n of e.pageInstanceIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={interactionIds:[],pageInstanceIds:[]};for(;n.pos>>3){case 1:i.interactionIds.push(n.string());break;case 2:i.pageInstanceIds.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[]}),toJSON(e){const t={};return e.interactionIds?t.interactionIds=e.interactionIds.map((e=>e)):t.interactionIds=[],e.pageInstanceIds?t.pageInstanceIds=e.pageInstanceIds.map((e=>e)):t.pageInstanceIds=[],t},fromPartial(e){const t={interactionIds:[],pageInstanceIds:[]};return t.interactionIds=e.interactionIds?.map((e=>e))||[],t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t}},t.GetVolumeResponse={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,volume:0};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=>({status:_(e.status)?u(e.status):0,volume:_(e.volume)?Number(e.volume):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.volume&&(t.volume=e.volume),t},fromPartial(e){const t={status:0,volume:0};return t.status=e.status??0,t.volume=e.volume??0,t}},t.SubVolumeResponse={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,volume:0,source:0};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=>({status:_(e.status)?u(e.status):0,volume:_(e.volume)?Number(e.volume):0,source:_(e.source)?h(e.source):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.volume&&(t.volume=e.volume),void 0!==e.source&&(t.source=m(e.source)),t},fromPartial(e){const t={status:0,volume:0,source:0};return t.status=e.status??0,t.volume=e.volume??0,t.source=e.source??0,t}},t.SetVolumeRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.source&&n.uint32(8).int32(e.source),0!==e.volume&&n.uint32(17).double(e.volume),void 0!==e.connectLoggingParams&&t.ConnectLoggingParams.encode(e.connectLoggingParams,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={source:0,volume:0,connectLoggingParams:void 0};for(;o.pos>>3){case 1:a.source=o.int32();break;case 2:a.volume=o.double();break;case 3:a.connectLoggingParams=t.ConnectLoggingParams.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({source:_(e.source)?h(e.source):0,volume:_(e.volume)?Number(e.volume):0,connectLoggingParams:_(e.connectLoggingParams)?t.ConnectLoggingParams.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const n={};return void 0!==e.source&&(n.source=m(e.source)),void 0!==e.volume&&(n.volume=e.volume),void 0!==e.connectLoggingParams&&(n.connectLoggingParams=e.connectLoggingParams?t.ConnectLoggingParams.toJSON(e.connectLoggingParams):void 0),n},fromPartial(e){const n={source:0,volume:0,connectLoggingParams:void 0};return n.source=e.source??0,n.volume=e.volume??0,n.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?t.ConnectLoggingParams.fromPartial(e.connectLoggingParams):void 0,n}},t.NudgeVolumeRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.source&&n.uint32(8).int32(e.source),void 0!==e.connectLoggingParams&&t.ConnectLoggingParams.encode(e.connectLoggingParams,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={source:0,connectLoggingParams:void 0};for(;o.pos>>3){case 1:a.source=o.int32();break;case 2:a.connectLoggingParams=t.ConnectLoggingParams.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({source:_(e.source)?h(e.source):0,connectLoggingParams:_(e.connectLoggingParams)?t.ConnectLoggingParams.fromJSON(e.connectLoggingParams):void 0}),toJSON(e){const n={};return void 0!==e.source&&(n.source=m(e.source)),void 0!==e.connectLoggingParams&&(n.connectLoggingParams=e.connectLoggingParams?t.ConnectLoggingParams.toJSON(e.connectLoggingParams):void 0),n},fromPartial(e){const n={source:0,connectLoggingParams:void 0};return n.source=e.source??0,n.connectLoggingParams=void 0!==e.connectLoggingParams&&null!==e.connectLoggingParams?t.ConnectLoggingParams.fromPartial(e.connectLoggingParams):void 0,n}},t.PlaybackInfoResponse={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={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};for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.lengthMs=y(n.uint64());break;case 3:i.positionMs=y(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=>({status:_(e.status)?u(e.status):0,lengthMs:_(e.lengthMs)?String(e.lengthMs):"0",positionMs:_(e.positionMs)?String(e.positionMs):"0",playing:!!_(e.playing)&&Boolean(e.playing),buffering:!!_(e.buffering)&&Boolean(e.buffering),error:_(e.error)?Number(e.error):0,fileId:_(e.fileId)?String(e.fileId):"",fileType:_(e.fileType)?String(e.fileType):"",resolvedContentUrl:_(e.resolvedContentUrl)?String(e.resolvedContentUrl):"",fileBitrate:_(e.fileBitrate)?Number(e.fileBitrate):0,codecName:_(e.codecName)?String(e.codecName):"",playbackSpeed:_(e.playbackSpeed)?Number(e.playbackSpeed):0,gainAdjustment:_(e.gainAdjustment)?Number(e.gainAdjustment):0,hasLoudness:!!_(e.hasLoudness)&&Boolean(e.hasLoudness),loudness:_(e.loudness)?Number(e.loudness):0,strategy:_(e.strategy)?String(e.strategy):"",targetBitrate:_(e.targetBitrate)?Number(e.targetBitrate):0,advisedBitrate:_(e.advisedBitrate)?Number(e.advisedBitrate):0,targetFileAvailable:!!_(e.targetFileAvailable)&&Boolean(e.targetFileAvailable)}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(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=Math.round(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=Math.round(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=Math.round(e.targetBitrate)),void 0!==e.advisedBitrate&&(t.advisedBitrate=Math.round(e.advisedBitrate)),void 0!==e.targetFileAvailable&&(t.targetFileAvailable=e.targetFileAvailable),t},fromPartial(e){const t={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};return t.status=e.status??0,t.lengthMs=e.lengthMs??"0",t.positionMs=e.positionMs??"0",t.playing=e.playing??!1,t.buffering=e.buffering??!1,t.error=e.error??0,t.fileId=e.fileId??"",t.fileType=e.fileType??"",t.resolvedContentUrl=e.resolvedContentUrl??"",t.fileBitrate=e.fileBitrate??0,t.codecName=e.codecName??"",t.playbackSpeed=e.playbackSpeed??0,t.gainAdjustment=e.gainAdjustment??0,t.hasLoudness=e.hasLoudness??!1,t.loudness=e.loudness??0,t.strategy=e.strategy??"",t.targetBitrate=e.targetBitrate??0,t.advisedBitrate=e.advisedBitrate??0,t.targetFileAvailable=e.targetFileAvailable??!1,t}},t.GetFormatsResponse={encode(e,n=r.default.Writer.create()){for(const o of e.formats)t.GetFormatsResponse_Format.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={formats:[]};for(;o.pos>>3==1)a.formats.push(t.GetFormatsResponse_Format.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({formats:Array.isArray(e?.formats)?e.formats.map((e=>t.GetFormatsResponse_Format.fromJSON(e))):[]}),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={formats:[]};return n.formats=e.formats?.map((e=>t.GetFormatsResponse_Format.fromPartial(e)))||[],n}},t.GetFormatsResponse_Format={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};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=>({enumKey:_(e.enumKey)?String(e.enumKey):"",enumValue:_(e.enumValue)?Number(e.enumValue):0,supported:!!_(e.supported)&&Boolean(e.supported),bitrate:_(e.bitrate)?Number(e.bitrate):0,mimeType:_(e.mimeType)?String(e.mimeType):""}),toJSON(e){const t={};return void 0!==e.enumKey&&(t.enumKey=e.enumKey),void 0!==e.enumValue&&(t.enumValue=Math.round(e.enumValue)),void 0!==e.supported&&(t.supported=e.supported),void 0!==e.bitrate&&(t.bitrate=Math.round(e.bitrate)),void 0!==e.mimeType&&(t.mimeType=e.mimeType),t},fromPartial(e){const t={enumKey:"",enumValue:0,supported:!1,bitrate:0,mimeType:""};return t.enumKey=e.enumKey??"",t.enumValue=e.enumValue??0,t.supported=e.supported??!1,t.bitrate=e.bitrate??0,t.mimeType=e.mimeType??"",t}},t.SubPositionRequest={encode:(e,t=r.default.Writer.create())=>("0"!==e.position&&t.uint32(8).uint64(e.position),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={position:"0"};for(;n.pos>>3==1)i.position=y(n.uint64());else n.skipType(7&e)}return i},fromJSON:e=>({position:_(e.position)?String(e.position):"0"}),toJSON(e){const t={};return void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t={position:"0"};return t.position=e.position??"0",t}},t.SubPositionResponse={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={status:0,position:"0"};for(;n.pos>>3){case 1:i.status=n.int32();break;case 2:i.position=y(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({status:_(e.status)?u(e.status):0,position:_(e.position)?String(e.position):"0"}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),void 0!==e.position&&(t.position=e.position),t},fromPartial(e){const t={status:0,position:"0"};return t.status=e.status??0,t.position=e.position??"0",t}},t.GetFilesRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={uri:""};for(;n.pos>>3==1)i.uri=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({uri:_(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}},t.GetFilesResponse={encode(e,n=r.default.Writer.create()){0!==e.status&&n.uint32(8).int32(e.status);for(const o of e.files)t.GetFilesResponse_File.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:0,files:[]};for(;o.pos>>3){case 1:a.status=o.int32();break;case 2:a.files.push(t.GetFilesResponse_File.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:_(e.status)?p(e.status):0,files:Array.isArray(e?.files)?e.files.map((e=>t.GetFilesResponse_File.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=f(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={status:0,files:[]};return n.status=e.status??0,n.files=e.files?.map((e=>t.GetFilesResponse_File.fromPartial(e)))||[],n}},t.GetFilesResponse_File={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={fileId:"",format:"",bitrate:0,formatEnum:0};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=>({fileId:_(e.fileId)?String(e.fileId):"",format:_(e.format)?String(e.format):"",bitrate:_(e.bitrate)?Number(e.bitrate):0,formatEnum:_(e.formatEnum)?Number(e.formatEnum):0}),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=Math.round(e.bitrate)),void 0!==e.formatEnum&&(t.formatEnum=Math.round(e.formatEnum)),t},fromPartial(e){const t={fileId:"",format:"",bitrate:0,formatEnum:0};return t.fileId=e.fileId??"",t.format=e.format??"",t.bitrate=e.bitrate??0,t.formatEnum=e.formatEnum??0,t}},t.DuckRequest={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={action:0,volume:0,fadeDurationMs:0};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=>({action:_(e.action)?g(e.action):0,volume:_(e.volume)?Number(e.volume):0,fadeDurationMs:_(e.fadeDurationMs)?Number(e.fadeDurationMs):0}),toJSON(e){const t={};return void 0!==e.action&&(t.action=v(e.action)),void 0!==e.volume&&(t.volume=e.volume),void 0!==e.fadeDurationMs&&(t.fadeDurationMs=Math.round(e.fadeDurationMs)),t},fromPartial(e){const t={action:0,volume:0,fadeDurationMs:0};return t.action=e.action??0,t.volume=e.volume??0,t.fadeDurationMs=e.fadeDurationMs??0,t}},t.DuckResponse={encode:(e,t=r.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:_(e.status)?u(e.status):0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=d(e.status)),t},fromPartial(e){const t={status:0};return t.status=e.status??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsClient=void 0;const o=n(33892),i=n(37979);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}putShowSubscription(e){const t="spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls",n="PutShowSubscription",r=i.PodcastPaywallsShowSubscriptionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PodcastPaywallsShowSubscriptionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.podcast_paywalls_esperanto.proto.PodcastPaywalls";static DECODERS={PutShowSubscription:{request:i.PodcastPaywallsShowSubscriptionRequest.decode,response:i.PodcastPaywallsShowSubscriptionResponse.decode}}}t.PodcastPaywallsClient=r},95758:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.PodcastPaywallsClient=void 0;var r=n(82763);Object.defineProperty(t,"PodcastPaywallsClient",{enumerable:!0,get:function(){return r.PodcastPaywallsClient}}),i(n(37979),t)},37979:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.podcast_paywalls_esperanto.proto",t.PodcastPaywallsShowSubscriptionRequest={encode:(e,t=r.default.Writer.create())=>(""!==e.showUri&&t.uint32(10).string(e.showUri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={showUri:""};return t.showUri=e.showUri??"",t}},t.PodcastPaywallsShowSubscriptionResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.isUserSubscribed&&t.uint32(8).bool(e.isUserSubscribed),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={isUserSubscribed:!1};return t.isUserSubscribed=e.isUserSubscribed??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},54277:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrefsClient=void 0;const o=n(33892),i=n(58781);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}get(e){const t="spotify.prefs.esperanto.proto.Prefs",n="Get",r=i.GetParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}sub(e,t){const n="spotify.prefs.esperanto.proto.Prefs",r="Sub",a=i.SubParams.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.PrefValues.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getAll(e){const t="spotify.prefs.esperanto.proto.Prefs",n="GetAll",r=i.GetAllParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subAll(e,t){const n="spotify.prefs.esperanto.proto.Prefs",r="SubAll",a=i.SubAllParams.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.PrefValues.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}set(e){const t="spotify.prefs.esperanto.proto.Prefs",n="Set",r=i.SetParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}create(e){const t="spotify.prefs.esperanto.proto.Prefs",n="Create",r=i.CreateParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PrefValues.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.prefs.esperanto.proto.Prefs";static DECODERS={Get:{request:i.GetParams.decode,response:i.PrefValues.decode},Sub:{request:i.SubParams.decode,response:i.PrefValues.decode},GetAll:{request:i.GetAllParams.decode,response:i.PrefValues.decode},SubAll:{request:i.SubAllParams.decode,response:i.PrefValues.decode},Set:{request:i.SetParams.decode,response:i.PrefValues.decode},Create:{request:i.CreateParams.decode,response:i.PrefValues.decode}}}t.PrefsClient=r},31715:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},r=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(54277);Object.defineProperty(t,"PrefsClient",{enumerable:!0,get:function(){return a.PrefsClient}});const s=r(n(20997));t.SimplePrefs=s.default,i(n(58781),t),t.makePrefs=function(e){return new a.PrefsClient(e)}},20997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e=>"string"==typeof e?{string:e}:"boolean"==typeof e?{bool:e}:{number:String(e)},o=e=>Object.fromEntries(Object.entries(e.entries).map((([e,{string:t,bool:n,number:o}])=>[e,t??n??o])));t.default=class{prefs;constructor(e){this.prefs=e}getAll(){return this.prefs.getAll({}).then((e=>o(e)))}get(e){return this.prefs.get({key:e}).then((t=>o(t)[e]))}async set(e,t){await this.prefs.set({entries:{[e]:n(t)}})}}},58781:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:""};return t.key=e.key??"",t}},t.SubParams={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:""};return t.key=e.key??"",t}},t.GetAllParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubAllParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.Value={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={number:void 0,bool:void 0,string:void 0};return t.number=e.number??void 0,t.bool=e.bool??void 0,t.string=e.string??void 0,t}},t.SetParams={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,o])=>{t.SetParams_EntriesEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entries:{}};for(;o.pos>>3==1){const e=t.SetParams_EntriesEntry.decode(o,o.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,o])=>(e[n]=t.Value.fromJSON(o),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,o])=>{n.entries[e]=t.Value.toJSON(o)})),n},fromPartial(e){const n={entries:{}};return n.entries=Object.entries(e.entries??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Value.fromPartial(o)),e)),{}),n}},t.SetParams_EntriesEntry={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.Value.decode(o,o.uint32());break;default:o.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){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,n}},t.CreateParams={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,o])=>{t.CreateParams_EntriesEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entries:{}};for(;o.pos>>3==1){const e=t.CreateParams_EntriesEntry.decode(o,o.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,o])=>(e[n]=t.Value.fromJSON(o),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,o])=>{n.entries[e]=t.Value.toJSON(o)})),n},fromPartial(e){const n={entries:{}};return n.entries=Object.entries(e.entries??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Value.fromPartial(o)),e)),{}),n}},t.CreateParams_EntriesEntry={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.Value.decode(o,o.uint32());break;default:o.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){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,n}},t.PrefValues={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.entries).forEach((([e,o])=>{t.PrefValues_EntriesEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entries:{}};for(;o.pos>>3==1){const e=t.PrefValues_EntriesEntry.decode(o,o.uint32());void 0!==e.value&&(a.entries[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({entries:a(e.entries)?Object.entries(e.entries).reduce(((e,[n,o])=>(e[n]=t.Value.fromJSON(o),e)),{}):{}}),toJSON(e){const n={entries:{}};return e.entries&&Object.entries(e.entries).forEach((([e,o])=>{n.entries[e]=t.Value.toJSON(o)})),n},fromPartial(e){const n={entries:{}};return n.entries=Object.entries(e.entries??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Value.fromPartial(o)),e)),{}),n}},t.PrefValues_EntriesEntry={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.Value.decode(o,o.uint32());break;default:o.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){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Value.fromPartial(e.value):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},1914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;const o=n(33892),i=n(34001);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="GetValues",r=i.GetValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subValues(e,t){const n="spotify.product_state.esperanto.proto.ProductState",r="SubValues",a=i.SubValuesRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetValuesResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}putValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutValues",r=i.PutValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutOverridesValues",r=i.PutOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}delOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="DelOverridesValues",r=i.DelOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.DelOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.product_state.esperanto.proto.ProductState";static DECODERS={GetValues:{request:i.GetValuesRequest.decode,response:i.GetValuesResponse.decode},SubValues:{request:i.SubValuesRequest.decode,response:i.GetValuesResponse.decode},PutValues:{request:i.PutValuesRequest.decode,response:i.PutValuesResponse.decode},PutOverridesValues:{request:i.PutOverridesValuesRequest.decode,response:i.PutOverridesValuesResponse.decode},DelOverridesValues:{request:i.DelOverridesValuesRequest.decode,response:i.DelOverridesValuesResponse.decode}}}t.ProductStateClient=r},65875:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;var r=n(1914);Object.defineProperty(t,"ProductStateClient",{enumerable:!0,get:function(){return r.ProductStateClient}}),i(n(34001),t)},34001:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DelOverridesValuesResponse=t.PutOverridesValuesResponse=t.GetValuesResponse_PairsEntry=t.GetValuesResponse=t.PutValuesResponse=t.PutValuesRequest_PairsEntry=t.PutValuesRequest=t.DelOverridesValuesRequest=t.PutOverridesValuesRequest_PairsEntry=t.PutOverridesValuesRequest=t.SubValuesRequest=t.GetValuesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.product_state.esperanto.proto",t.GetValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PutOverridesValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutOverridesValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos>>3==1){const e=t.PutOverridesValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutOverridesValuesRequest_PairsEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.DelOverridesValuesRequest={encode(e,t=r.default.Writer.create()){for(const n of e.keys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={keys:[]};for(;n.pos>>3==1)i.keys.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({keys:Array.isArray(e?.keys)?e.keys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.keys?t.keys=e.keys.map((e=>e)):t.keys=[],t},fromPartial(e){const t={keys:[]};return t.keys=e.keys?.map((e=>e))||[],t}},t.PutValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos>>3==1){const e=t.PutValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutValuesRequest_PairsEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetValuesResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.GetValuesResponse_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos>>3==1){const e=t.GetValuesResponse_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.GetValuesResponse_PairsEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.DelOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;const o=n(33892),i=n(87323);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="GetValues",r=i.GetValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subValues(e,t){const n="spotify.product_state.esperanto.proto.ProductState",r="SubValues",a=i.SubValuesRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetValuesResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}putValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutValues",r=i.PutValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="PutOverridesValues",r=i.PutOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PutOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}delOverridesValues(e){const t="spotify.product_state.esperanto.proto.ProductState",n="DelOverridesValues",r=i.DelOverridesValuesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.DelOverridesValuesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.product_state.esperanto.proto.ProductState";static DECODERS={GetValues:{request:i.GetValuesRequest.decode,response:i.GetValuesResponse.decode},SubValues:{request:i.SubValuesRequest.decode,response:i.GetValuesResponse.decode},PutValues:{request:i.PutValuesRequest.decode,response:i.PutValuesResponse.decode},PutOverridesValues:{request:i.PutOverridesValuesRequest.decode,response:i.PutOverridesValuesResponse.decode},DelOverridesValues:{request:i.DelOverridesValuesRequest.decode,response:i.DelOverridesValuesResponse.decode}}}t.ProductStateClient=r},73229:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductStateClient=void 0;var r=n(13414);Object.defineProperty(t,"ProductStateClient",{enumerable:!0,get:function(){return r.ProductStateClient}}),i(n(87323),t)},87323:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DelOverridesValuesResponse=t.PutOverridesValuesResponse=t.GetValuesResponse_PairsEntry=t.GetValuesResponse=t.PutValuesResponse=t.PutValuesRequest_PairsEntry=t.PutValuesRequest=t.DelOverridesValuesRequest=t.PutOverridesValuesRequest_PairsEntry=t.PutOverridesValuesRequest=t.SubValuesRequest=t.GetValuesRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return"object"==typeof e&&null!==e}function s(e){return null!=e}t.protobufPackage="spotify.product_state.esperanto.proto",t.GetValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SubValuesRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.PutOverridesValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutOverridesValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos>>3==1){const e=t.PutOverridesValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutOverridesValuesRequest_PairsEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.DelOverridesValuesRequest={encode(e,t=r.default.Writer.create()){for(const n of e.keys)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={keys:[]};for(;n.pos>>3==1)i.keys.push(n.string());else n.skipType(7&e)}return i},fromJSON:e=>({keys:Array.isArray(e?.keys)?e.keys.map((e=>String(e))):[]}),toJSON(e){const t={};return e.keys?t.keys=e.keys.map((e=>e)):t.keys=[],t},fromPartial(e){const t={keys:[]};return t.keys=e.keys?.map((e=>e))||[],t}},t.PutValuesRequest={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.PutValuesRequest_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos>>3==1){const e=t.PutValuesRequest_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PutValuesRequest_PairsEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetValuesResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.pairs).forEach((([e,o])=>{t.GetValuesResponse_PairsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={pairs:{}};for(;o.pos>>3==1){const e=t.GetValuesResponse_PairsEntry.decode(o,o.uint32());void 0!==e.value&&(a.pairs[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON:e=>({pairs:a(e.pairs)?Object.entries(e.pairs).reduce(((e,[t,n])=>(e[t]=String(n),e)),{}):{}}),toJSON(e){const t={pairs:{}};return e.pairs&&Object.entries(e.pairs).forEach((([e,n])=>{t.pairs[e]=n})),t},fromPartial(e){const t={pairs:{}};return t.pairs=Object.entries(e.pairs??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.GetValuesResponse_PairsEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.PutOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.DelOverridesValuesResponse={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},67935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyPlayedServiceClient=void 0;const o=n(33892),i=n(23141),r=n(90872);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}get(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="Get",r=i.GetRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetRecentlyPlayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}stream(e,t){const n="spotify.recently_played_esperanto.proto.RecentlyPlayedService",r="Stream",a=i.GetRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetRecentlyPlayedResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}hide(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="Hide",r=i.HideRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.HideRecentlyPlayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}tracks(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="Tracks",i=r.GetRecentlyPlayedTracksRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.GetRecentlyPlayedTracksResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamTracks(e,t){const n="spotify.recently_played_esperanto.proto.RecentlyPlayedService",i="StreamTracks",a=r.GetRecentlyPlayedTracksRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.GetRecentlyPlayedTracksResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}hideTracks(e){const t="spotify.recently_played_esperanto.proto.RecentlyPlayedService",n="HideTracks",r=i.HideRecentlyPlayedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.HideRecentlyPlayedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.recently_played_esperanto.proto.RecentlyPlayedService";static DECODERS={Get:{request:i.GetRecentlyPlayedRequest.decode,response:i.GetRecentlyPlayedResponse.decode},Stream:{request:i.GetRecentlyPlayedRequest.decode,response:i.GetRecentlyPlayedResponse.decode},Hide:{request:i.HideRecentlyPlayedRequest.decode,response:i.HideRecentlyPlayedResponse.decode},Tracks:{request:r.GetRecentlyPlayedTracksRequest.decode,response:r.GetRecentlyPlayedTracksResponse.decode},StreamTracks:{request:r.GetRecentlyPlayedTracksRequest.decode,response:r.GetRecentlyPlayedTracksResponse.decode},HideTracks:{request:i.HideRecentlyPlayedRequest.decode,response:i.HideRecentlyPlayedResponse.decode}}}t.RecentlyPlayedServiceClient=a},96154:(e,t,n)=>{"use strict";t.Dq=t.HB=void 0;var o=n(67935);Object.defineProperty(t,"HB",{enumerable:!0,get:function(){return o.RecentlyPlayedServiceClient}});var i=n(23141);Object.defineProperty(t,"Dq",{enumerable:!0,get:function(){return i.GetRecentlyPlayedRequest}});var r=n(23141);var a=n(23141);var s=n(23141);var l=n(90872);var c=n(90872)},53144:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumCollectionState={encode:(e,t=i.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),0!==e.numTracksInCollection&&t.uint32(16).uint32(e.numTracksInCollection),!0===e.complete&&t.uint32(24).bool(e.complete),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",numTracksInCollection:0,complete:!1};for(;n.pos>>3){case 1:r.collectionLink=n.string();break;case 2:r.numTracksInCollection=n.uint32();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:r(e.collectionLink)?String(e.collectionLink):"",numTracksInCollection:r(e.numTracksInCollection)?Number(e.numTracksInCollection):0,complete:!!r(e.complete)&&Boolean(e.complete)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.complete&&(t.complete=e.complete),t},fromPartial(e){const t={collectionLink:"",numTracksInCollection:0,complete:!1};return t.collectionLink=e.collectionLink??"",t.numTracksInCollection=e.numTracksInCollection??0,t.complete=e.complete??!1,t}}},27640:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistCollectionState={encode:(e,t=i.default.Writer.create())=>(""!==e.collectionLink&&t.uint32(10).string(e.collectionLink),!0===e.followed&&t.uint32(16).bool(e.followed),0!==e.numTracksInCollection&&t.uint32(24).uint32(e.numTracksInCollection),0!==e.numAlbumsInCollection&&t.uint32(32).uint32(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.collectionLink=n.string();break;case 2:r.followed=n.bool();break;case 3:r.numTracksInCollection=n.uint32();break;case 4:r.numAlbumsInCollection=n.uint32();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:r(e.collectionLink)?String(e.collectionLink):"",followed:!!r(e.followed)&&Boolean(e.followed),numTracksInCollection:r(e.numTracksInCollection)?Number(e.numTracksInCollection):0,numAlbumsInCollection:r(e.numAlbumsInCollection)?Number(e.numAlbumsInCollection):0,isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(e.canBan)&&Boolean(e.canBan)}),toJSON(e){const t={};return void 0!==e.collectionLink&&(t.collectionLink=e.collectionLink),void 0!==e.followed&&(t.followed=e.followed),void 0!==e.numTracksInCollection&&(t.numTracksInCollection=Math.round(e.numTracksInCollection)),void 0!==e.numAlbumsInCollection&&(t.numAlbumsInCollection=Math.round(e.numAlbumsInCollection)),void 0!==e.isBanned&&(t.isBanned=e.isBanned),void 0!==e.canBan&&(t.canBan=e.canBan),t},fromPartial(e){const t={collectionLink:"",followed:!1,numTracksInCollection:0,numAlbumsInCollection:0,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??"",t.followed=e.followed??!1,t.numTracksInCollection=e.numTracksInCollection??0,t.numAlbumsInCollection=e.numAlbumsInCollection??0,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}}},96647:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isNew=n.bool();break;case 3:r.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!r(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!r(e.isNew)&&Boolean(e.isNew),isInListenLater:!!r(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){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}}},36421:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionState=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto",t.ShowCollectionState={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}}},90595:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackCollectionState={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!r(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!r(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}}},36183:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 68:case"SKIP_PLAYED":return n.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.SKIP_PLAYED:return"SKIP_PLAYED";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},23141:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HideRecentlyPlayedResponse=t.HideRecentlyPlayedRequest=t.GetRecentlyPlayedResponse=t.RecentlyPlayedContext=t.GetRecentlyPlayedRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(63277),a=n(75468);function s(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.GetRecentlyPlayedRequest={encode:(e,t=i.default.Writer.create())=>(0!==e.limit&&t.uint32(8).uint32(e.limit),0!==e.playlistResyncLimit&&t.uint32(16).uint32(e.playlistResyncLimit),!0===e.excludeShowsMixed&&t.uint32(24).bool(e.excludeShowsMixed),!0===e.excludeShowsAudio&&t.uint32(32).bool(e.excludeShowsAudio),!0===e.excludeShowsVideo&&t.uint32(40).bool(e.excludeShowsVideo),!0===e.excludeTrackContexts&&t.uint32(48).bool(e.excludeTrackContexts),!0===e.includeHidden&&t.uint32(56).bool(e.includeHidden),!0===e.includeCollectionSongs&&t.uint32(64).bool(e.includeCollectionSongs),!0===e.includeYourEpisodes&&t.uint32(72).bool(e.includeYourEpisodes),!0===e.includeOwnDeletedPlaylists&&t.uint32(80).bool(e.includeOwnDeletedPlaylists),!0===e.includePodcastShorts&&t.uint32(88).bool(e.includePodcastShorts),void 0!==e.artistPolicy&&r.RecentlyPlayedArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(98).fork()).ldelim(),void 0!==e.albumPolicy&&r.RecentlyPlayedAlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(106).fork()).ldelim(),void 0!==e.trackPolicy&&r.RecentlyPlayedTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(114).fork()).ldelim(),void 0!==e.showPolicy&&r.RecentlyPlayedShowDecorationPolicy.encode(e.showPolicy,t.uint32(122).fork()).ldelim(),void 0!==e.playlistPolicy&&r.RecentlyPlayedPlaylistDecorationPolicy.encode(e.playlistPolicy,t.uint32(130).fork()).ldelim(),void 0!==e.collectionTracksPolicy&&r.RecentlyPlayedCollectionTracksDecorationPolicy.encode(e.collectionTracksPolicy,t.uint32(138).fork()).ldelim(),void 0!==e.profilePolicy&&r.RecentlyPlayedProfileDecorationPolicy.encode(e.profilePolicy,t.uint32(146).fork()).ldelim(),void 0!==e.episodePolicy&&r.RecentlyPlayedEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(154).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(160).uint32(e.updateThrottling),!0===e.initialResponseFromCache&&t.uint32(168).bool(e.initialResponseFromCache),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={limit:0,playlistResyncLimit:0,excludeShowsMixed:!1,excludeShowsAudio:!1,excludeShowsVideo:!1,excludeTrackContexts:!1,includeHidden:!1,includeCollectionSongs:!1,includeYourEpisodes:!1,includeOwnDeletedPlaylists:!1,includePodcastShorts:!1,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,playlistPolicy:void 0,collectionTracksPolicy:void 0,profilePolicy:void 0,episodePolicy:void 0,updateThrottling:0,initialResponseFromCache:!1};for(;n.pos>>3){case 1:a.limit=n.uint32();break;case 2:a.playlistResyncLimit=n.uint32();break;case 3:a.excludeShowsMixed=n.bool();break;case 4:a.excludeShowsAudio=n.bool();break;case 5:a.excludeShowsVideo=n.bool();break;case 6:a.excludeTrackContexts=n.bool();break;case 7:a.includeHidden=n.bool();break;case 8:a.includeCollectionSongs=n.bool();break;case 9:a.includeYourEpisodes=n.bool();break;case 10:a.includeOwnDeletedPlaylists=n.bool();break;case 11:a.includePodcastShorts=n.bool();break;case 12:a.artistPolicy=r.RecentlyPlayedArtistDecorationPolicy.decode(n,n.uint32());break;case 13:a.albumPolicy=r.RecentlyPlayedAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:a.trackPolicy=r.RecentlyPlayedTrackDecorationPolicy.decode(n,n.uint32());break;case 15:a.showPolicy=r.RecentlyPlayedShowDecorationPolicy.decode(n,n.uint32());break;case 16:a.playlistPolicy=r.RecentlyPlayedPlaylistDecorationPolicy.decode(n,n.uint32());break;case 17:a.collectionTracksPolicy=r.RecentlyPlayedCollectionTracksDecorationPolicy.decode(n,n.uint32());break;case 18:a.profilePolicy=r.RecentlyPlayedProfileDecorationPolicy.decode(n,n.uint32());break;case 19:a.episodePolicy=r.RecentlyPlayedEpisodeDecorationPolicy.decode(n,n.uint32());break;case 20:a.updateThrottling=n.uint32();break;case 21:a.initialResponseFromCache=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({limit:s(e.limit)?Number(e.limit):0,playlistResyncLimit:s(e.playlistResyncLimit)?Number(e.playlistResyncLimit):0,excludeShowsMixed:!!s(e.excludeShowsMixed)&&Boolean(e.excludeShowsMixed),excludeShowsAudio:!!s(e.excludeShowsAudio)&&Boolean(e.excludeShowsAudio),excludeShowsVideo:!!s(e.excludeShowsVideo)&&Boolean(e.excludeShowsVideo),excludeTrackContexts:!!s(e.excludeTrackContexts)&&Boolean(e.excludeTrackContexts),includeHidden:!!s(e.includeHidden)&&Boolean(e.includeHidden),includeCollectionSongs:!!s(e.includeCollectionSongs)&&Boolean(e.includeCollectionSongs),includeYourEpisodes:!!s(e.includeYourEpisodes)&&Boolean(e.includeYourEpisodes),includeOwnDeletedPlaylists:!!s(e.includeOwnDeletedPlaylists)&&Boolean(e.includeOwnDeletedPlaylists),includePodcastShorts:!!s(e.includePodcastShorts)&&Boolean(e.includePodcastShorts),artistPolicy:s(e.artistPolicy)?r.RecentlyPlayedArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,albumPolicy:s(e.albumPolicy)?r.RecentlyPlayedAlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,trackPolicy:s(e.trackPolicy)?r.RecentlyPlayedTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,showPolicy:s(e.showPolicy)?r.RecentlyPlayedShowDecorationPolicy.fromJSON(e.showPolicy):void 0,playlistPolicy:s(e.playlistPolicy)?r.RecentlyPlayedPlaylistDecorationPolicy.fromJSON(e.playlistPolicy):void 0,collectionTracksPolicy:s(e.collectionTracksPolicy)?r.RecentlyPlayedCollectionTracksDecorationPolicy.fromJSON(e.collectionTracksPolicy):void 0,profilePolicy:s(e.profilePolicy)?r.RecentlyPlayedProfileDecorationPolicy.fromJSON(e.profilePolicy):void 0,episodePolicy:s(e.episodePolicy)?r.RecentlyPlayedEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0,initialResponseFromCache:!!s(e.initialResponseFromCache)&&Boolean(e.initialResponseFromCache)}),toJSON(e){const t={};return void 0!==e.limit&&(t.limit=Math.round(e.limit)),void 0!==e.playlistResyncLimit&&(t.playlistResyncLimit=Math.round(e.playlistResyncLimit)),void 0!==e.excludeShowsMixed&&(t.excludeShowsMixed=e.excludeShowsMixed),void 0!==e.excludeShowsAudio&&(t.excludeShowsAudio=e.excludeShowsAudio),void 0!==e.excludeShowsVideo&&(t.excludeShowsVideo=e.excludeShowsVideo),void 0!==e.excludeTrackContexts&&(t.excludeTrackContexts=e.excludeTrackContexts),void 0!==e.includeHidden&&(t.includeHidden=e.includeHidden),void 0!==e.includeCollectionSongs&&(t.includeCollectionSongs=e.includeCollectionSongs),void 0!==e.includeYourEpisodes&&(t.includeYourEpisodes=e.includeYourEpisodes),void 0!==e.includeOwnDeletedPlaylists&&(t.includeOwnDeletedPlaylists=e.includeOwnDeletedPlaylists),void 0!==e.includePodcastShorts&&(t.includePodcastShorts=e.includePodcastShorts),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?r.RecentlyPlayedArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.RecentlyPlayedAlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?r.RecentlyPlayedShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.playlistPolicy&&(t.playlistPolicy=e.playlistPolicy?r.RecentlyPlayedPlaylistDecorationPolicy.toJSON(e.playlistPolicy):void 0),void 0!==e.collectionTracksPolicy&&(t.collectionTracksPolicy=e.collectionTracksPolicy?r.RecentlyPlayedCollectionTracksDecorationPolicy.toJSON(e.collectionTracksPolicy):void 0),void 0!==e.profilePolicy&&(t.profilePolicy=e.profilePolicy?r.RecentlyPlayedProfileDecorationPolicy.toJSON(e.profilePolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.initialResponseFromCache&&(t.initialResponseFromCache=e.initialResponseFromCache),t},fromPartial(e){const t={limit:0,playlistResyncLimit:0,excludeShowsMixed:!1,excludeShowsAudio:!1,excludeShowsVideo:!1,excludeTrackContexts:!1,includeHidden:!1,includeCollectionSongs:!1,includeYourEpisodes:!1,includeOwnDeletedPlaylists:!1,includePodcastShorts:!1,artistPolicy:void 0,albumPolicy:void 0,trackPolicy:void 0,showPolicy:void 0,playlistPolicy:void 0,collectionTracksPolicy:void 0,profilePolicy:void 0,episodePolicy:void 0,updateThrottling:0,initialResponseFromCache:!1};return t.limit=e.limit??0,t.playlistResyncLimit=e.playlistResyncLimit??0,t.excludeShowsMixed=e.excludeShowsMixed??!1,t.excludeShowsAudio=e.excludeShowsAudio??!1,t.excludeShowsVideo=e.excludeShowsVideo??!1,t.excludeTrackContexts=e.excludeTrackContexts??!1,t.includeHidden=e.includeHidden??!1,t.includeCollectionSongs=e.includeCollectionSongs??!1,t.includeYourEpisodes=e.includeYourEpisodes??!1,t.includeOwnDeletedPlaylists=e.includeOwnDeletedPlaylists??!1,t.includePodcastShorts=e.includePodcastShorts??!1,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?r.RecentlyPlayedArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.RecentlyPlayedAlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?r.RecentlyPlayedShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?r.RecentlyPlayedPlaylistDecorationPolicy.fromPartial(e.playlistPolicy):void 0,t.collectionTracksPolicy=void 0!==e.collectionTracksPolicy&&null!==e.collectionTracksPolicy?r.RecentlyPlayedCollectionTracksDecorationPolicy.fromPartial(e.collectionTracksPolicy):void 0,t.profilePolicy=void 0!==e.profilePolicy&&null!==e.profilePolicy?r.RecentlyPlayedProfileDecorationPolicy.fromPartial(e.profilePolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.updateThrottling=e.updateThrottling??0,t.initialResponseFromCache=e.initialResponseFromCache??!1,t}},t.RecentlyPlayedContext={encode:(e,t=i.default.Writer.create())=>(void 0!==e.artist&&a.RecentlyPlayedArtist.encode(e.artist,t.uint32(10).fork()).ldelim(),void 0!==e.album&&a.RecentlyPlayedAlbum.encode(e.album,t.uint32(18).fork()).ldelim(),void 0!==e.track&&a.RecentlyPlayedTrack.encode(e.track,t.uint32(26).fork()).ldelim(),void 0!==e.show&&a.RecentlyPlayedShow.encode(e.show,t.uint32(34).fork()).ldelim(),void 0!==e.profile&&a.RecentlyPlayedProfile.encode(e.profile,t.uint32(42).fork()).ldelim(),void 0!==e.playlist&&a.RecentlyPlayedPlaylist.encode(e.playlist,t.uint32(50).fork()).ldelim(),void 0!==e.collectionTracks&&a.RecentlyPlayedCollectionTracks.encode(e.collectionTracks,t.uint32(58).fork()).ldelim(),void 0!==e.episode&&a.RecentlyPlayedEpisode.encode(e.episode,t.uint32(66).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={artist:void 0,album:void 0,track:void 0,show:void 0,profile:void 0,playlist:void 0,collectionTracks:void 0,episode:void 0};for(;n.pos>>3){case 1:r.artist=a.RecentlyPlayedArtist.decode(n,n.uint32());break;case 2:r.album=a.RecentlyPlayedAlbum.decode(n,n.uint32());break;case 3:r.track=a.RecentlyPlayedTrack.decode(n,n.uint32());break;case 4:r.show=a.RecentlyPlayedShow.decode(n,n.uint32());break;case 5:r.profile=a.RecentlyPlayedProfile.decode(n,n.uint32());break;case 6:r.playlist=a.RecentlyPlayedPlaylist.decode(n,n.uint32());break;case 7:r.collectionTracks=a.RecentlyPlayedCollectionTracks.decode(n,n.uint32());break;case 8:r.episode=a.RecentlyPlayedEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({artist:s(e.artist)?a.RecentlyPlayedArtist.fromJSON(e.artist):void 0,album:s(e.album)?a.RecentlyPlayedAlbum.fromJSON(e.album):void 0,track:s(e.track)?a.RecentlyPlayedTrack.fromJSON(e.track):void 0,show:s(e.show)?a.RecentlyPlayedShow.fromJSON(e.show):void 0,profile:s(e.profile)?a.RecentlyPlayedProfile.fromJSON(e.profile):void 0,playlist:s(e.playlist)?a.RecentlyPlayedPlaylist.fromJSON(e.playlist):void 0,collectionTracks:s(e.collectionTracks)?a.RecentlyPlayedCollectionTracks.fromJSON(e.collectionTracks):void 0,episode:s(e.episode)?a.RecentlyPlayedEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.artist&&(t.artist=e.artist?a.RecentlyPlayedArtist.toJSON(e.artist):void 0),void 0!==e.album&&(t.album=e.album?a.RecentlyPlayedAlbum.toJSON(e.album):void 0),void 0!==e.track&&(t.track=e.track?a.RecentlyPlayedTrack.toJSON(e.track):void 0),void 0!==e.show&&(t.show=e.show?a.RecentlyPlayedShow.toJSON(e.show):void 0),void 0!==e.profile&&(t.profile=e.profile?a.RecentlyPlayedProfile.toJSON(e.profile):void 0),void 0!==e.playlist&&(t.playlist=e.playlist?a.RecentlyPlayedPlaylist.toJSON(e.playlist):void 0),void 0!==e.collectionTracks&&(t.collectionTracks=e.collectionTracks?a.RecentlyPlayedCollectionTracks.toJSON(e.collectionTracks):void 0),void 0!==e.episode&&(t.episode=e.episode?a.RecentlyPlayedEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={artist:void 0,album:void 0,track:void 0,show:void 0,profile:void 0,playlist:void 0,collectionTracks:void 0,episode:void 0};return t.artist=void 0!==e.artist&&null!==e.artist?a.RecentlyPlayedArtist.fromPartial(e.artist):void 0,t.album=void 0!==e.album&&null!==e.album?a.RecentlyPlayedAlbum.fromPartial(e.album):void 0,t.track=void 0!==e.track&&null!==e.track?a.RecentlyPlayedTrack.fromPartial(e.track):void 0,t.show=void 0!==e.show&&null!==e.show?a.RecentlyPlayedShow.fromPartial(e.show):void 0,t.profile=void 0!==e.profile&&null!==e.profile?a.RecentlyPlayedProfile.fromPartial(e.profile):void 0,t.playlist=void 0!==e.playlist&&null!==e.playlist?a.RecentlyPlayedPlaylist.fromPartial(e.playlist):void 0,t.collectionTracks=void 0!==e.collectionTracks&&null!==e.collectionTracks?a.RecentlyPlayedCollectionTracks.fromPartial(e.collectionTracks):void 0,t.episode=void 0!==e.episode&&null!==e.episode?a.RecentlyPlayedEpisode.fromPartial(e.episode):void 0,t}},t.GetRecentlyPlayedResponse={encode(e,n=i.default.Writer.create()){for(const o of e.context)t.RecentlyPlayedContext.encode(o,n.uint32(10).fork()).ldelim();return!0===e.loaded&&n.uint32(16).bool(e.loaded),0!==e.status&&n.uint32(24).uint32(e.status),""!==e.error&&n.uint32(34).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={context:[],loaded:!1,status:0,error:""};for(;o.pos>>3){case 1:a.context.push(t.RecentlyPlayedContext.decode(o,o.uint32()));break;case 2:a.loaded=o.bool();break;case 3:a.status=o.uint32();break;case 4:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({context:Array.isArray(e?.context)?e.context.map((e=>t.RecentlyPlayedContext.fromJSON(e))):[],loaded:!!s(e.loaded)&&Boolean(e.loaded),status:s(e.status)?Number(e.status):0,error:s(e.error)?String(e.error):""}),toJSON(e){const n={};return e.context?n.context=e.context.map((e=>e?t.RecentlyPlayedContext.toJSON(e):void 0)):n.context=[],void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.status&&(n.status=Math.round(e.status)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={context:[],loaded:!1,status:0,error:""};return n.context=e.context?.map((e=>t.RecentlyPlayedContext.fromPartial(e)))||[],n.loaded=e.loaded??!1,n.status=e.status??0,n.error=e.error??"",n}},t.HideRecentlyPlayedRequest={encode(e,t=i.default.Writer.create()){for(const n of e.uri)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:[]};for(;n.pos>>3==1)r.uri.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[]}),toJSON(e){const t={};return e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],t},fromPartial(e){const t={uri:[]};return t.uri=e.uri?.map((e=>e))||[],t}},t.HideRecentlyPlayedResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.status&&t.uint32(8).uint32(e.status),""!==e.error&&t.uint32(18).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,error:""};for(;n.pos>>3){case 1:r.status=n.uint32();break;case 2:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({status:s(e.status)?Number(e.status):0,error:s(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.status&&(t.status=Math.round(e.status)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={status:0,error:""};return t.status=e.status??0,t.error=e.error??"",t}}},90872:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRecentlyPlayedTracksResponse=t.RecentlyPlayedEntity=t.GetRecentlyPlayedTracksRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(63277),a=n(75468);function s(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.GetRecentlyPlayedTracksRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.includeHidden&&t.uint32(8).bool(e.includeHidden),!0===e.includeEpisodes&&t.uint32(16).bool(e.includeEpisodes),!0===e.includeLocalTracks&&t.uint32(24).bool(e.includeLocalTracks),0!==e.updateThrottling&&t.uint32(32).uint32(e.updateThrottling),void 0!==e.trackPolicy&&r.RecentlyPlayedTrackDecorationPolicy.encode(e.trackPolicy,t.uint32(42).fork()).ldelim(),void 0!==e.episodePolicy&&r.RecentlyPlayedEpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={includeHidden:!1,includeEpisodes:!1,includeLocalTracks:!1,updateThrottling:0,trackPolicy:void 0,episodePolicy:void 0};for(;n.pos>>3){case 1:a.includeHidden=n.bool();break;case 2:a.includeEpisodes=n.bool();break;case 3:a.includeLocalTracks=n.bool();break;case 4:a.updateThrottling=n.uint32();break;case 5:a.trackPolicy=r.RecentlyPlayedTrackDecorationPolicy.decode(n,n.uint32());break;case 6:a.episodePolicy=r.RecentlyPlayedEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({includeHidden:!!s(e.includeHidden)&&Boolean(e.includeHidden),includeEpisodes:!!s(e.includeEpisodes)&&Boolean(e.includeEpisodes),includeLocalTracks:!!s(e.includeLocalTracks)&&Boolean(e.includeLocalTracks),updateThrottling:s(e.updateThrottling)?Number(e.updateThrottling):0,trackPolicy:s(e.trackPolicy)?r.RecentlyPlayedTrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,episodePolicy:s(e.episodePolicy)?r.RecentlyPlayedEpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const t={};return void 0!==e.includeHidden&&(t.includeHidden=e.includeHidden),void 0!==e.includeEpisodes&&(t.includeEpisodes=e.includeEpisodes),void 0!==e.includeLocalTracks&&(t.includeLocalTracks=e.includeLocalTracks),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),t},fromPartial(e){const t={includeHidden:!1,includeEpisodes:!1,includeLocalTracks:!1,updateThrottling:0,trackPolicy:void 0,episodePolicy:void 0};return t.includeHidden=e.includeHidden??!1,t.includeEpisodes=e.includeEpisodes??!1,t.includeLocalTracks=e.includeLocalTracks??!1,t.updateThrottling=e.updateThrottling??0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?r.RecentlyPlayedTrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?r.RecentlyPlayedEpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t}},t.RecentlyPlayedEntity={encode:(e,t=i.default.Writer.create())=>(void 0!==e.track&&a.RecentlyPlayedTrack.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.episode&&a.RecentlyPlayedEpisode.encode(e.episode,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={track:void 0,episode:void 0};for(;n.pos>>3){case 1:r.track=a.RecentlyPlayedTrack.decode(n,n.uint32());break;case 2:r.episode=a.RecentlyPlayedEpisode.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({track:s(e.track)?a.RecentlyPlayedTrack.fromJSON(e.track):void 0,episode:s(e.episode)?a.RecentlyPlayedEpisode.fromJSON(e.episode):void 0}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?a.RecentlyPlayedTrack.toJSON(e.track):void 0),void 0!==e.episode&&(t.episode=e.episode?a.RecentlyPlayedEpisode.toJSON(e.episode):void 0),t},fromPartial(e){const t={track:void 0,episode:void 0};return t.track=void 0!==e.track&&null!==e.track?a.RecentlyPlayedTrack.fromPartial(e.track):void 0,t.episode=void 0!==e.episode&&null!==e.episode?a.RecentlyPlayedEpisode.fromPartial(e.episode):void 0,t}},t.GetRecentlyPlayedTracksResponse={encode(e,n=i.default.Writer.create()){for(const o of e.entity)t.RecentlyPlayedEntity.encode(o,n.uint32(10).fork()).ldelim();return 0!==e.missingMetadataCount&&n.uint32(16).uint32(e.missingMetadataCount),!0===e.loaded&&n.uint32(24).bool(e.loaded),0!==e.originalLength&&n.uint32(32).uint32(e.originalLength),0!==e.unfilteredLength&&n.uint32(40).uint32(e.unfilteredLength),0!==e.status&&n.uint32(48).uint32(e.status),""!==e.error&&n.uint32(58).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={entity:[],missingMetadataCount:0,loaded:!1,originalLength:0,unfilteredLength:0,status:0,error:""};for(;o.pos>>3){case 1:a.entity.push(t.RecentlyPlayedEntity.decode(o,o.uint32()));break;case 2:a.missingMetadataCount=o.uint32();break;case 3:a.loaded=o.bool();break;case 4:a.originalLength=o.uint32();break;case 5:a.unfilteredLength=o.uint32();break;case 6:a.status=o.uint32();break;case 7:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({entity:Array.isArray(e?.entity)?e.entity.map((e=>t.RecentlyPlayedEntity.fromJSON(e))):[],missingMetadataCount:s(e.missingMetadataCount)?Number(e.missingMetadataCount):0,loaded:!!s(e.loaded)&&Boolean(e.loaded),originalLength:s(e.originalLength)?Number(e.originalLength):0,unfilteredLength:s(e.unfilteredLength)?Number(e.unfilteredLength):0,status:s(e.status)?Number(e.status):0,error:s(e.error)?String(e.error):""}),toJSON(e){const n={};return e.entity?n.entity=e.entity.map((e=>e?t.RecentlyPlayedEntity.toJSON(e):void 0)):n.entity=[],void 0!==e.missingMetadataCount&&(n.missingMetadataCount=Math.round(e.missingMetadataCount)),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.originalLength&&(n.originalLength=Math.round(e.originalLength)),void 0!==e.unfilteredLength&&(n.unfilteredLength=Math.round(e.unfilteredLength)),void 0!==e.status&&(n.status=Math.round(e.status)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={entity:[],missingMetadataCount:0,loaded:!1,originalLength:0,unfilteredLength:0,status:0,error:""};return n.entity=e.entity?.map((e=>t.RecentlyPlayedEntity.fromPartial(e)))||[],n.missingMetadataCount=e.missingMetadataCount??0,n.loaded=e.loaded??!1,n.originalLength=e.originalLength??0,n.unfilteredLength=e.unfilteredLength??0,n.status=e.status??0,n.error=e.error??"",n}}},59651:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumMetadata=t.AlbumArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98634);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:a(e.link)?String(e.link):"",name:a(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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.AlbumMetadata={encode(e,n=i.default.Writer.create()){for(const o of e.artists)t.AlbumArtistMetadata.encode(o,n.uint32(10).fork()).ldelim();""!==e.link&&n.uint32(18).string(e.link),""!==e.name&&n.uint32(26).string(e.name);for(const t of e.copyright)n.uint32(34).string(t);return void 0!==e.covers&&r.ImageGroup.encode(e.covers,n.uint32(42).fork()).ldelim(),0!==e.year&&n.uint32(48).uint32(e.year),0!==e.numDiscs&&n.uint32(56).uint32(e.numDiscs),0!==e.numTracks&&n.uint32(64).uint32(e.numTracks),!0===e.playability&&n.uint32(72).bool(e.playability),!0===e.isPremiumOnly&&n.uint32(80).bool(e.isPremiumOnly),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};for(;o.pos>>3){case 1:s.artists.push(t.AlbumArtistMetadata.decode(o,o.uint32()));break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.copyright.push(o.string());break;case 5:s.covers=r.ImageGroup.decode(o,o.uint32());break;case 6:s.year=o.uint32();break;case 7:s.numDiscs=o.uint32();break;case 8:s.numTracks=o.uint32();break;case 9:s.playability=o.bool();break;case 10:s.isPremiumOnly=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({artists:Array.isArray(e?.artists)?e.artists.map((e=>t.AlbumArtistMetadata.fromJSON(e))):[],link:a(e.link)?String(e.link):"",name:a(e.name)?String(e.name):"",copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],covers:a(e.covers)?r.ImageGroup.fromJSON(e.covers):void 0,year:a(e.year)?Number(e.year):0,numDiscs:a(e.numDiscs)?Number(e.numDiscs):0,numTracks:a(e.numTracks)?Number(e.numTracks):0,playability:!!a(e.playability)&&Boolean(e.playability),isPremiumOnly:!!a(e.isPremiumOnly)&&Boolean(e.isPremiumOnly)}),toJSON(e){const n={};return e.artists?n.artists=e.artists.map((e=>e?t.AlbumArtistMetadata.toJSON(e):void 0)):n.artists=[],void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),e.copyright?n.copyright=e.copyright.map((e=>e)):n.copyright=[],void 0!==e.covers&&(n.covers=e.covers?r.ImageGroup.toJSON(e.covers):void 0),void 0!==e.year&&(n.year=Math.round(e.year)),void 0!==e.numDiscs&&(n.numDiscs=Math.round(e.numDiscs)),void 0!==e.numTracks&&(n.numTracks=Math.round(e.numTracks)),void 0!==e.playability&&(n.playability=e.playability),void 0!==e.isPremiumOnly&&(n.isPremiumOnly=e.isPremiumOnly),n},fromPartial(e){const n={artists:[],link:"",name:"",copyright:[],covers:void 0,year:0,numDiscs:0,numTracks:0,playability:!1,isPremiumOnly:!1};return n.artists=e.artists?.map((e=>t.AlbumArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.copyright=e.copyright?.map((e=>e))||[],n.covers=void 0!==e.covers&&null!==e.covers?r.ImageGroup.fromPartial(e.covers):void 0,n.year=e.year??0,n.numDiscs=e.numDiscs??0,n.numTracks=e.numTracks??0,n.playability=e.playability??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n}}},7121:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistMetadata=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98634);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistMetadata={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),!0===e.isVariousArtists&&t.uint32(24).bool(e.isVariousArtists),void 0!==e.portraits&&r.ImageGroup.encode(e.portraits,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={link:"",name:"",isVariousArtists:!1,portraits:void 0};for(;n.pos>>3){case 1:a.link=n.string();break;case 2:a.name=n.string();break;case 3:a.isVariousArtists=n.bool();break;case 4:a.portraits=r.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({link:a(e.link)?String(e.link):"",name:a(e.name)?String(e.name):"",isVariousArtists:!!a(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:a(e.portraits)?r.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.isVariousArtists&&(t.isVariousArtists=e.isVariousArtists),void 0!==e.portraits&&(t.portraits=e.portraits?r.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={link:"",name:"",isVariousArtists:!1,portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.isVariousArtists=e.isVariousArtists??!1,t.portraits=void 0!==e.portraits&&null!==e.portraits?r.ImageGroup.fromPartial(e.portraits):void 0,t}}},95967:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(11742),s=n(98634);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";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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={encode:(e,t=r.default.Writer.create())=>(""!==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&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};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=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},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)?s.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?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.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&&s.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&&s.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)a.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),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={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,isCurated:!1};for(;o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},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)?s.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)?s.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(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),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?s.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?s.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?a.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),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},11742:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(36183);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},89864:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(11742),a=n(98634);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={encode(e,t=i.default.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)r.Extension.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={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};for(;n.pos>>3){case 1:s.link=n.string();break;case 2:s.name=n.string();break;case 3:s.description=n.string();break;case 4:s.popularity=n.uint32();break;case 5:s.publisher=n.string();break;case 6:s.language=n.string();break;case 7:s.isExplicit=n.bool();break;case 8:s.covers=a.ImageGroup.decode(n,n.uint32());break;case 9:s.numEpisodes=n.uint32();break;case 10:s.consumptionOrder=n.string();break;case 11:s.mediaTypeEnum=n.int32();break;case 12:s.copyright.push(n.string());break;case 13:s.trailerUri=n.string();break;case 14:s.isMusicAndTalk=n.bool();break;case 15:s.extension.push(r.Extension.decode(n,n.uint32()));break;case 16:s.isBook=n.bool();break;case 17:s.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return s},fromJSON:e=>({link:s(e.link)?String(e.link):"",name:s(e.name)?String(e.name):"",description:s(e.description)?String(e.description):"",popularity:s(e.popularity)?Number(e.popularity):0,publisher:s(e.publisher)?String(e.publisher):"",language:s(e.language)?String(e.language):"",isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),covers:s(e.covers)?a.ImageGroup.fromJSON(e.covers):void 0,numEpisodes:s(e.numEpisodes)?Number(e.numEpisodes):0,consumptionOrder:s(e.consumptionOrder)?String(e.consumptionOrder):"",mediaTypeEnum:s(e.mediaTypeEnum)?Number(e.mediaTypeEnum):0,copyright:Array.isArray(e?.copyright)?e.copyright.map((e=>String(e))):[],trailerUri:s(e.trailerUri)?String(e.trailerUri):"",isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isBook:!!s(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!s(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?r.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){const t={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 t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}}},6469:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(11742),a=n(98634);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.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){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},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){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos>>3==1)r.name=n.string();else n.skipType(7&e)}return r},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){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=i.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,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 o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(162).fork()).ldelim();return!0===e.isCurated&&n.uint32(168).bool(e.isCurated),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={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:[],extension:[],isCurated:!1};for(;o.pos>>3){case 1:s.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:s.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:s.link=o.string();break;case 4:s.name=o.string();break;case 5:s.length=o.uint32();break;case 6:s.playable=o.bool();break;case 7:s.discNumber=o.uint32();break;case 8:s.trackNumber=o.uint32();break;case 9:s.isExplicit=o.bool();break;case 10:s.previewId=o.string();break;case 11:s.isLocal=o.bool();break;case 12:s.playableLocalTrack=o.bool();break;case 13:s.hasLyrics=o.bool();break;case 14:s.isPremiumOnly=o.bool();break;case 15:s.locallyPlayable=o.bool();break;case 16:s.playableTrackLink=o.string();break;case 17:s.popularity=o.uint32();break;case 18:s.is19PlusOnly=o.bool();break;case 19:s.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:s.extension.push(r.Extension.decode(o,o.uint32()));break;case 21:s.isCurated=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(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(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isCurated:!!s(e.isCurated)&&Boolean(e.isCurated)}),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=[],e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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:[],extension:[],isCurated:!1};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.isCurated=e.isCurated??!1,n}}},44968:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(15995);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos>>3){case 1:r.timeLeft=n.uint32();break;case 2:r.isPlayable=n.bool();break;case 3:r.isPlayed=n.bool();break;case 4:r.lastPlayedAt=n.uint32();break;case 5:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:a(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:a(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:a(e.playabilityRestriction)?(0,r.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,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}}},15995:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0,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"}(n=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NO_RESTRICTION":return n.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return n.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return n.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return n.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return n.NOT_AVAILABLE_OFFLINE;default:return n.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NO_RESTRICTION:return"NO_RESTRICTION";case n.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case n.AGE_RESTRICTED:return"AGE_RESTRICTED";case n.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case n.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},77059:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.showPlayState_LabelToJSON=t.showPlayState_LabelFromJSON=t.ShowPlayState_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(15995);var s;function l(e){switch(e){case 0:case"UNKNOWN_LABEL":return s.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return s.NOT_STARTED;case 2:case"IN_PROGRESS":return s.IN_PROGRESS;case 3:case"COMPLETED":return s.COMPLETED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case s.NOT_STARTED:return"NOT_STARTED";case s.IN_PROGRESS:return"IN_PROGRESS";case s.COMPLETED:return"COMPLETED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.ShowPlayState_Label||(t.ShowPlayState_Label={})),t.showPlayState_LabelFromJSON=l,t.showPlayState_LabelToJSON=c,t.ShowPlayState={encode:(e,t=r.default.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),"0"!==e.playedTime&&t.uint32(16).uint64(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};for(;n.pos>>3){case 1:i.latestPlayedEpisodeLink=n.string();break;case 2:i.playedTime=n.uint64().toString();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.int32();break;case 5:i.label=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:u(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:u(e.playedTime)?String(e.playedTime):"0",isPlayable:!!u(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:u(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0,label:u(e.label)?l(e.label):0}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),void 0!==e.label&&(t.label=c(e.label)),t},fromPartial(e){const t={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??"0",t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},10168:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(15995);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackPlayState={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos>>3){case 1:r.isPlayable=n.bool();break;case 2:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}}},50679:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineState=t.PlaylistMetadata=t.Allows=t.FormatListAttribute=t.protobufPackage=void 0;const i=o(n(33892)),r=n(11742),a=n(98634),s=n(37560);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FormatListAttribute={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Allows={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={canInsert:!1,canRemove:!1};for(;n.pos>>3){case 1:r.canInsert=n.bool();break;case 2:r.canRemove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({canInsert:!!l(e.canInsert)&&Boolean(e.canInsert),canRemove:!!l(e.canRemove)&&Boolean(e.canRemove)}),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={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}},t.PlaylistMetadata={encode(e,n=i.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&s.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&&a.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 o of e.formatListAttributes)t.FormatListAttribute.encode(o,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&&s.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&n.uint32(176).uint32(e.lengthIgnoringTextFilter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};for(;o.pos>>3){case 1:c.link=o.string();break;case 2:c.name=o.string();break;case 3:c.owner=s.User.decode(o,o.uint32());break;case 4:c.ownedBySelf=o.bool();break;case 5:c.collaborative=o.bool();break;case 6:c.totalLength=o.uint32();break;case 7:c.description=o.string();break;case 8:c.pictures=a.ImageGroup.decode(o,o.uint32());break;case 9:c.followed=o.bool();break;case 10:c.published=o.bool();break;case 11:c.browsableOffline=o.bool();break;case 12:c.descriptionFromAnnotate=o.bool();break;case 13:c.pictureFromAnnotate=o.bool();break;case 14:c.formatListType=o.string();break;case 15:c.formatListAttributes.push(t.FormatListAttribute.decode(o,o.uint32()));break;case 16:c.canReportAnnotationAbuse=o.bool();break;case 17:c.isLoaded=o.bool();break;case 18:c.allows=t.Allows.decode(o,o.uint32());break;case 19:c.loadState=o.string();break;case 20:c.madeFor=s.User.decode(o,o.uint32());break;case 21:c.extension.push(r.Extension.decode(o,o.uint32()));break;case 22:c.lengthIgnoringTextFilter=o.uint32();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",owner:l(e.owner)?s.User.fromJSON(e.owner):void 0,ownedBySelf:!!l(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!l(e.collaborative)&&Boolean(e.collaborative),totalLength:l(e.totalLength)?Number(e.totalLength):0,description:l(e.description)?String(e.description):"",pictures:l(e.pictures)?a.ImageGroup.fromJSON(e.pictures):void 0,followed:!!l(e.followed)&&Boolean(e.followed),published:!!l(e.published)&&Boolean(e.published),browsableOffline:!!l(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!l(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!l(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:l(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>t.FormatListAttribute.fromJSON(e))):[],canReportAnnotationAbuse:!!l(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!l(e.isLoaded)&&Boolean(e.isLoaded),allows:l(e.allows)?t.Allows.fromJSON(e.allows):void 0,loadState:l(e.loadState)?String(e.loadState):"",madeFor:l(e.madeFor)?s.User.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],lengthIgnoringTextFilter:l(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0}),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?s.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=Math.round(e.totalLength)),void 0!==e.description&&(n.description=e.description),void 0!==e.pictures&&(n.pictures=e.pictures?a.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?s.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),n},fromPartial(e){const n={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};return n.link=e.link??"",n.name=e.name??"",n.owner=void 0!==e.owner&&null!==e.owner?s.User.fromPartial(e.owner):void 0,n.ownedBySelf=e.ownedBySelf??!1,n.collaborative=e.collaborative??!1,n.totalLength=e.totalLength??0,n.description=e.description??"",n.pictures=void 0!==e.pictures&&null!==e.pictures?a.ImageGroup.fromPartial(e.pictures):void 0,n.followed=e.followed??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.formatListType=e.formatListType??"",n.formatListAttributes=e.formatListAttributes?.map((e=>t.FormatListAttribute.fromPartial(e)))||[],n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.isLoaded=e.isLoaded??!1,n.allows=void 0!==e.allows&&null!==e.allows?t.Allows.fromPartial(e.allows):void 0,n.loadState=e.loadState??"",n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?s.User.fromPartial(e.madeFor):void 0,n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,n}},t.PlaylistOfflineState={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos>>3){case 1:r.offline=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:l(e.offline)?String(e.offline):"",syncProgress:l(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}}},37560:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.User={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.username=n.string();break;case 3:r.displayName=n.string();break;case 4:r.imageUri=n.string();break;case 5:r.thumbnailUri=n.string();break;case 6:r.color=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:r(e.link)?String(e.link):"",username:r(e.username)?String(e.username):"",displayName:r(e.displayName)?String(e.displayName):"",imageUri:r(e.imageUri)?String(e.imageUri):"",thumbnailUri:r(e.thumbnailUri)?String(e.thumbnailUri):"",color:r(e.color)?Number(e.color):0}),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=Math.round(e.color)),t},fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}}},16606:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.copyrights=n.bool();break;case 4:r.covers=n.bool();break;case 5:r.year=n.bool();break;case 6:r.numDiscs=n.bool();break;case 7:r.numTracks=n.bool();break;case 8:r.playability=n.bool();break;case 9:r.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(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){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos>>3){case 1:r.collectionLink=n.bool();break;case 2:r.numTracksInCollection=n.bool();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!r(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){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},76508:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.isVariousArtists=n.bool();break;case 4:r.portraits=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),isVariousArtists:!!r(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!r(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){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.collectionLink=n.bool();break;case 2:r.isFollowed=n.bool();break;case 3:r.numTracksInCollection=n.bool();break;case 4:r.numAlbumsInCollection=n.bool();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!r(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!r(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(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){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},23618:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),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={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),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={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},36531:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDecorationPolicy=t.PlaylistAllowsDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183),a=n(11248);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAllowsDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos>>3){case 1:r.insert=n.bool();break;case 2:r.remove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({insert:!!s(e.insert)&&Boolean(e.insert),remove:!!s(e.remove)&&Boolean(e.remove)}),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={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}},t.PlaylistDecorationPolicy={encode(e,n=i.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&&a.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&a.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&&a.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(),!0===e.lenses&&n.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&n.uint32(360).bool(e.lengthIgnoringTextFilter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={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,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1};for(;o.pos>>3){case 1:s.rowId=o.bool();break;case 2:s.link=o.bool();break;case 3:s.name=o.bool();break;case 4:s.loadState=o.bool();break;case 5:s.loaded=o.bool();break;case 6:s.collaborative=o.bool();break;case 7:s.length=o.bool();break;case 8:s.lastModification=o.bool();break;case 9:s.totalLength=o.bool();break;case 10:s.duration=o.bool();break;case 11:s.description=o.bool();break;case 12:s.picture=o.bool();break;case 13:s.playable=o.bool();break;case 14:s.descriptionFromAnnotate=o.bool();break;case 15:s.pictureFromAnnotate=o.bool();break;case 16:s.canReportAnnotationAbuse=o.bool();break;case 17:s.followed=o.bool();break;case 18:s.followers=o.bool();break;case 19:s.ownedBySelf=o.bool();break;case 20:s.offline=o.bool();break;case 21:s.syncProgress=o.bool();break;case 22:s.published=o.bool();break;case 23:s.browsableOffline=o.bool();break;case 24:s.formatListType=o.bool();break;case 25:s.formatListAttributes=o.bool();break;case 26:s.hasExplicitContent=o.bool();break;case 27:s.containsSpotifyTracks=o.bool();break;case 28:s.containsTracks=o.bool();break;case 29:s.containsEpisodes=o.bool();break;case 30:s.containsAudioEpisodes=o.bool();break;case 31:s.onlyContainsExplicit=o.bool();break;case 32:s.isOnDemandInFree=o.bool();break;case 33:s.owner=a.UserDecorationPolicy.decode(o,o.uint32());break;case 34:s.madeFor=a.UserDecorationPolicy.decode(o,o.uint32());break;case 35:s.allows=t.PlaylistAllowsDecorationPolicy.decode(o,o.uint32());break;case 36:s.numberOfEpisodes=o.bool();break;case 37:s.numberOfTracks=o.bool();break;case 38:s.preferLinearPlayback=o.bool();break;case 39:s.onDemandInFreeReason=o.bool();break;case 40:s.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.decode(o,o.uint32());break;case 41:s.basePermission=o.bool();break;case 42:s.userCapabilities=o.bool();break;case 43:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos({rowId:!!s(e.rowId)&&Boolean(e.rowId),link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),loadState:!!s(e.loadState)&&Boolean(e.loadState),loaded:!!s(e.loaded)&&Boolean(e.loaded),collaborative:!!s(e.collaborative)&&Boolean(e.collaborative),length:!!s(e.length)&&Boolean(e.length),lastModification:!!s(e.lastModification)&&Boolean(e.lastModification),totalLength:!!s(e.totalLength)&&Boolean(e.totalLength),duration:!!s(e.duration)&&Boolean(e.duration),description:!!s(e.description)&&Boolean(e.description),picture:!!s(e.picture)&&Boolean(e.picture),playable:!!s(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!s(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!s(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!s(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!s(e.followed)&&Boolean(e.followed),followers:!!s(e.followers)&&Boolean(e.followers),ownedBySelf:!!s(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress),published:!!s(e.published)&&Boolean(e.published),browsableOffline:!!s(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!s(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!s(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!s(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!s(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!s(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!s(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!s(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!s(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!s(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:s(e.owner)?a.UserDecorationPolicy.fromJSON(e.owner):void 0,madeFor:s(e.madeFor)?a.UserDecorationPolicy.fromJSON(e.madeFor):void 0,allows:s(e.allows)?t.PlaylistAllowsDecorationPolicy.fromJSON(e.allows):void 0,numberOfEpisodes:!!s(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!s(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!s(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!s(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:s(e.collaboratingUsers)?a.CollaboratingUsersDecorationPolicy.fromJSON(e.collaboratingUsers):void 0,basePermission:!!s(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!s(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],lenses:!!s(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!s(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter)}),toJSON(e){const n={};return void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.length&&(n.length=e.length),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.description&&(n.description=e.description),void 0!==e.picture&&(n.picture=e.picture),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.followers&&(n.followers=e.followers),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=e.syncProgress),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.formatListType&&(n.formatListType=e.formatListType),void 0!==e.formatListAttributes&&(n.formatListAttributes=e.formatListAttributes),void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(n.owner=e.owner?a.UserDecorationPolicy.toJSON(e.owner):void 0),void 0!==e.madeFor&&(n.madeFor=e.madeFor?a.UserDecorationPolicy.toJSON(e.madeFor):void 0),void 0!==e.allows&&(n.allows=e.allows?t.PlaylistAllowsDecorationPolicy.toJSON(e.allows):void 0),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(n.collaboratingUsers=e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.toJSON(e.collaboratingUsers):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities),e.extension?n.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):n.extension=[],void 0!==e.lenses&&(n.lenses=e.lenses),void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),n},fromPartial(e){const n={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,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1};return n.rowId=e.rowId??!1,n.link=e.link??!1,n.name=e.name??!1,n.loadState=e.loadState??!1,n.loaded=e.loaded??!1,n.collaborative=e.collaborative??!1,n.length=e.length??!1,n.lastModification=e.lastModification??!1,n.totalLength=e.totalLength??!1,n.duration=e.duration??!1,n.description=e.description??!1,n.picture=e.picture??!1,n.playable=e.playable??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.followed=e.followed??!1,n.followers=e.followers??!1,n.ownedBySelf=e.ownedBySelf??!1,n.offline=e.offline??!1,n.syncProgress=e.syncProgress??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.formatListType=e.formatListType??!1,n.formatListAttributes=e.formatListAttributes??!1,n.hasExplicitContent=e.hasExplicitContent??!1,n.containsSpotifyTracks=e.containsSpotifyTracks??!1,n.containsTracks=e.containsTracks??!1,n.containsEpisodes=e.containsEpisodes??!1,n.containsAudioEpisodes=e.containsAudioEpisodes??!1,n.onlyContainsExplicit=e.onlyContainsExplicit??!1,n.isOnDemandInFree=e.isOnDemandInFree??!1,n.owner=void 0!==e.owner&&null!==e.owner?a.UserDecorationPolicy.fromPartial(e.owner):void 0,n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?a.UserDecorationPolicy.fromPartial(e.madeFor):void 0,n.allows=void 0!==e.allows&&null!==e.allows?t.PlaylistAllowsDecorationPolicy.fromPartial(e.allows):void 0,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.numberOfTracks=e.numberOfTracks??!1,n.preferLinearPlayback=e.preferLinearPlayback??!1,n.onDemandInFreeReason=e.onDemandInFreeReason??!1,n.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.fromPartial(e.collaboratingUsers):void 0,n.basePermission=e.basePermission??!1,n.userCapabilities=e.userCapabilities??!1,n.extension=e.extension?.map((e=>e))||[],n.lenses=e.lenses??!1,n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,n}}},22826:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(36183);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(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=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),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},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){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},8828:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(36183);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=i.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.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={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,extension:[],isCurated:!1};for(;n.pos>>3){case 1:r.hasLyrics=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.length=n.bool();break;case 5:r.playable=n.bool();break;case 6:r.isAvailableInMetadataCatalogue=n.bool();break;case 7:r.locallyPlayable=n.bool();break;case 8:r.playableLocalTrack=n.bool();break;case 9:r.discNumber=n.bool();break;case 10:r.trackNumber=n.bool();break;case 11:r.isExplicit=n.bool();break;case 12:r.previewId=n.bool();break;case 13:r.isLocal=n.bool();break;case 14:r.isPremiumOnly=n.bool();break;case 15:r.playableTrackLink=n.bool();break;case 16:r.popularity=n.bool();break;case 17:r.is19PlusOnly=n.bool();break;case 18:r.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({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),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),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),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={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,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos>>3){case 1:r.playable=n.bool();break;case 2:r.isCurrentlyPlayable=n.bool();break;case 3:r.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},11248:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos>>3){case 1:r.username=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.image=n.bool();break;case 5:r.thumbnail=n.bool();break;case 6:r.color=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({username:!!r(e.username)&&Boolean(e.username),link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),image:!!r(e.image)&&Boolean(e.image),thumbnail:!!r(e.thumbnail)&&Boolean(e.thumbnail),color:!!r(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){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}},t.CollaboratorPolicy={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;o.pos>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({user:r(e.user)?t.UserDecorationPolicy.fromJSON(e.user):void 0,numberOfItems:!!r(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!r(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!r(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!r(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){const n={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return n.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,n.numberOfItems=e.numberOfItems??!1,n.numberOfTracks=e.numberOfTracks??!1,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.isOwner=e.isOwner??!1,n}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;o.pos>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:!!r(e.count)&&Boolean(e.count),limit:r(e.limit)?Number(e.limit):0,collaborator:r(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){const n={count:!1,limit:0,collaborator:void 0};return n.count=e.count??!1,n.limit=e.limit??0,n.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,n}}},63277:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyPlayedCollectionTracksDecorationPolicy=t.RecentlyPlayedPlaylistDecorationPolicy=t.RecentlyPlayedProfileDecorationPolicy=t.RecentlyPlayedEpisodeDecorationPolicy=t.RecentlyPlayedShowDecorationPolicy=t.RecentlyPlayedTrackDecorationPolicy=t.RecentlyPlayedAlbumDecorationPolicy=t.RecentlyPlayedArtistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16606),a=n(76508),s=n(23618),l=n(36531),c=n(22826),u=n(8828);function d(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.RecentlyPlayedArtistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.collectionPolicy&&a.ArtistCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&a.ArtistSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.artistPolicy&&a.ArtistDecorationPolicy.encode(e.artistPolicy,t.uint32(26).fork()).ldelim(),!0===e.type&&t.uint32(32).bool(e.type),!0===e.timestamp&&t.uint32(40).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,type:!1,timestamp:!1};for(;n.pos>>3){case 1:r.collectionPolicy=a.ArtistCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:r.syncPolicy=a.ArtistSyncDecorationPolicy.decode(n,n.uint32());break;case 3:r.artistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 4:r.type=n.bool();break;case 5:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?a.ArtistCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?a.ArtistSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,artistPolicy:d(e.artistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistPolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?a.ArtistCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?a.ArtistSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.artistPolicy&&(t.artistPolicy=e.artistPolicy?a.ArtistDecorationPolicy.toJSON(e.artistPolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,artistPolicy:void 0,type:!1,timestamp:!1};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?a.ArtistCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?a.ArtistSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.artistPolicy=void 0!==e.artistPolicy&&null!==e.artistPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedAlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.collectionPolicy&&r.AlbumCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&r.AlbumSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.albumPolicy&&r.AlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(26).fork()).ldelim(),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),!0===e.type&&t.uint32(56).bool(e.type),!0===e.timestamp&&t.uint32(64).bool(e.timestamp),void 0!==e.artistsPolicy&&a.ArtistDecorationPolicy.encode(e.artistsPolicy,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0,inCollection:!1,type:!1,timestamp:!1,artistsPolicy:void 0};for(;n.pos>>3){case 1:s.collectionPolicy=r.AlbumCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:s.syncPolicy=r.AlbumSyncDecorationPolicy.decode(n,n.uint32());break;case 3:s.albumPolicy=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 4:s.inCollection=n.bool();break;case 7:s.type=n.bool();break;case 8:s.timestamp=n.bool();break;case 9:s.artistsPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?r.AlbumCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?r.AlbumSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,albumPolicy:d(e.albumPolicy)?r.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,inCollection:!!d(e.inCollection)&&Boolean(e.inCollection),type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp),artistsPolicy:d(e.artistsPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?r.AlbumCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?r.AlbumSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.artistsPolicy&&(t.artistsPolicy=e.artistsPolicy?a.ArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,albumPolicy:void 0,inCollection:!1,type:!1,timestamp:!1,artistsPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?r.AlbumCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?r.AlbumSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.inCollection=e.inCollection??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,t}},t.RecentlyPlayedTrackDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.collectionPolicy&&u.TrackCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.syncPolicy&&u.TrackSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.trackPolicy&&u.TrackDecorationPolicy.encode(e.trackPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&u.TrackPlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),!0===e.type&&t.uint32(56).bool(e.type),!0===e.timestamp&&t.uint32(64).bool(e.timestamp),void 0!==e.artistsPolicy&&a.ArtistDecorationPolicy.encode(e.artistsPolicy,t.uint32(74).fork()).ldelim(),void 0!==e.albumPolicy&&r.AlbumDecorationPolicy.encode(e.albumPolicy,t.uint32(82).fork()).ldelim(),void 0!==e.albumArtistPolicy&&a.ArtistDecorationPolicy.encode(e.albumArtistPolicy,t.uint32(90).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};for(;n.pos>>3){case 1:s.collectionPolicy=u.TrackCollectionDecorationPolicy.decode(n,n.uint32());break;case 2:s.syncPolicy=u.TrackSyncDecorationPolicy.decode(n,n.uint32());break;case 3:s.trackPolicy=u.TrackDecorationPolicy.decode(n,n.uint32());break;case 4:s.playedStatePolicy=u.TrackPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 7:s.type=n.bool();break;case 8:s.timestamp=n.bool();break;case 9:s.artistsPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;case 10:s.albumPolicy=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 11:s.albumArtistPolicy=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({collectionPolicy:d(e.collectionPolicy)?u.TrackCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?u.TrackSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,trackPolicy:d(e.trackPolicy)?u.TrackDecorationPolicy.fromJSON(e.trackPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?u.TrackPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp),artistsPolicy:d(e.artistsPolicy)?a.ArtistDecorationPolicy.fromJSON(e.artistsPolicy):void 0,albumPolicy:d(e.albumPolicy)?r.AlbumDecorationPolicy.fromJSON(e.albumPolicy):void 0,albumArtistPolicy:d(e.albumArtistPolicy)?a.ArtistDecorationPolicy.fromJSON(e.albumArtistPolicy):void 0}),toJSON(e){const t={};return void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?u.TrackCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?u.TrackSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.trackPolicy&&(t.trackPolicy=e.trackPolicy?u.TrackDecorationPolicy.toJSON(e.trackPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?u.TrackPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.artistsPolicy&&(t.artistsPolicy=e.artistsPolicy?a.ArtistDecorationPolicy.toJSON(e.artistsPolicy):void 0),void 0!==e.albumPolicy&&(t.albumPolicy=e.albumPolicy?r.AlbumDecorationPolicy.toJSON(e.albumPolicy):void 0),void 0!==e.albumArtistPolicy&&(t.albumArtistPolicy=e.albumArtistPolicy?a.ArtistDecorationPolicy.toJSON(e.albumArtistPolicy):void 0),t},fromPartial(e){const t={collectionPolicy:void 0,syncPolicy:void 0,trackPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1,artistsPolicy:void 0,albumPolicy:void 0,albumArtistPolicy:void 0};return t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?u.TrackCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?u.TrackSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.trackPolicy=void 0!==e.trackPolicy&&null!==e.trackPolicy?u.TrackDecorationPolicy.fromPartial(e.trackPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?u.TrackPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t.artistsPolicy=void 0!==e.artistsPolicy&&null!==e.artistsPolicy?a.ArtistDecorationPolicy.fromPartial(e.artistsPolicy):void 0,t.albumPolicy=void 0!==e.albumPolicy&&null!==e.albumPolicy?r.AlbumDecorationPolicy.fromPartial(e.albumPolicy):void 0,t.albumArtistPolicy=void 0!==e.albumArtistPolicy&&null!==e.albumArtistPolicy?a.ArtistDecorationPolicy.fromPartial(e.albumArtistPolicy):void 0,t}},t.RecentlyPlayedShowDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.showPolicy&&c.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&c.ShowCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.playedStatePolicy&&c.ShowPlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(26).fork()).ldelim(),!0===e.type&&t.uint32(32).bool(e.type),!0===e.timestamp&&t.uint32(40).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1};for(;n.pos>>3){case 1:r.showPolicy=c.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:r.collectionPolicy=c.ShowCollectionDecorationPolicy.decode(n,n.uint32());break;case 3:r.playedStatePolicy=c.ShowPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 4:r.type=n.bool();break;case 5:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({showPolicy:d(e.showPolicy)?c.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,collectionPolicy:d(e.collectionPolicy)?c.ShowCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?c.ShowPlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?c.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?c.ShowCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={showPolicy:void 0,collectionPolicy:void 0,playedStatePolicy:void 0,type:!1,timestamp:!1};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?c.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?c.ShowCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?c.ShowPlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedEpisodeDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episodePolicy&&s.EpisodeDecorationPolicy.encode(e.episodePolicy,t.uint32(10).fork()).ldelim(),void 0!==e.collectionPolicy&&s.EpisodeCollectionDecorationPolicy.encode(e.collectionPolicy,t.uint32(18).fork()).ldelim(),void 0!==e.syncPolicy&&s.EpisodeSyncDecorationPolicy.encode(e.syncPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.playedStatePolicy&&s.EpisodePlayedStateDecorationPolicy.encode(e.playedStatePolicy,t.uint32(34).fork()).ldelim(),void 0!==e.showPolicy&&c.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(42).fork()).ldelim(),!0===e.type&&t.uint32(48).bool(e.type),!0===e.timestamp&&t.uint32(56).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,type:!1,timestamp:!1};for(;n.pos>>3){case 1:r.episodePolicy=s.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:r.collectionPolicy=s.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 3:r.syncPolicy=s.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 4:r.playedStatePolicy=s.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 5:r.showPolicy=c.ShowDecorationPolicy.decode(n,n.uint32());break;case 6:r.type=n.bool();break;case 7:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({episodePolicy:d(e.episodePolicy)?s.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,collectionPolicy:d(e.collectionPolicy)?s.EpisodeCollectionDecorationPolicy.fromJSON(e.collectionPolicy):void 0,syncPolicy:d(e.syncPolicy)?s.EpisodeSyncDecorationPolicy.fromJSON(e.syncPolicy):void 0,playedStatePolicy:d(e.playedStatePolicy)?s.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedStatePolicy):void 0,showPolicy:d(e.showPolicy)?c.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.episodePolicy&&(t.episodePolicy=e.episodePolicy?s.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.collectionPolicy&&(t.collectionPolicy=e.collectionPolicy?s.EpisodeCollectionDecorationPolicy.toJSON(e.collectionPolicy):void 0),void 0!==e.syncPolicy&&(t.syncPolicy=e.syncPolicy?s.EpisodeSyncDecorationPolicy.toJSON(e.syncPolicy):void 0),void 0!==e.playedStatePolicy&&(t.playedStatePolicy=e.playedStatePolicy?s.EpisodePlayedStateDecorationPolicy.toJSON(e.playedStatePolicy):void 0),void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?c.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={episodePolicy:void 0,collectionPolicy:void 0,syncPolicy:void 0,playedStatePolicy:void 0,showPolicy:void 0,type:!1,timestamp:!1};return t.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,t.collectionPolicy=void 0!==e.collectionPolicy&&null!==e.collectionPolicy?s.EpisodeCollectionDecorationPolicy.fromPartial(e.collectionPolicy):void 0,t.syncPolicy=void 0!==e.syncPolicy&&null!==e.syncPolicy?s.EpisodeSyncDecorationPolicy.fromPartial(e.syncPolicy):void 0,t.playedStatePolicy=void 0!==e.playedStatePolicy&&null!==e.playedStatePolicy?s.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedStatePolicy):void 0,t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?c.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedProfileDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.imageUri&&t.uint32(24).bool(e.imageUri),!0===e.offline&&t.uint32(32).bool(e.offline),!0===e.type&&t.uint32(40).bool(e.type),!0===e.timestamp&&t.uint32(48).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,imageUri:!1,offline:!1,type:!1,timestamp:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.imageUri=n.bool();break;case 4:r.offline=n.bool();break;case 5:r.type=n.bool();break;case 6:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),name:!!d(e.name)&&Boolean(e.name),imageUri:!!d(e.imageUri)&&Boolean(e.imageUri),offline:!!d(e.offline)&&Boolean(e.offline),type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.offline&&(t.offline=e.offline),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={link:!1,name:!1,imageUri:!1,offline:!1,type:!1,timestamp:!1};return t.link=e.link??!1,t.name=e.name??!1,t.imageUri=e.imageUri??!1,t.offline=e.offline??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedPlaylistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.playlistPolicy&&l.PlaylistDecorationPolicy.encode(e.playlistPolicy,t.uint32(10).fork()).ldelim(),!0===e.type&&t.uint32(16).bool(e.type),!0===e.timestamp&&t.uint32(24).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistPolicy:void 0,type:!1,timestamp:!1};for(;n.pos>>3){case 1:r.playlistPolicy=l.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 2:r.type=n.bool();break;case 3:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistPolicy:d(e.playlistPolicy)?l.PlaylistDecorationPolicy.fromJSON(e.playlistPolicy):void 0,type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.playlistPolicy&&(t.playlistPolicy=e.playlistPolicy?l.PlaylistDecorationPolicy.toJSON(e.playlistPolicy):void 0),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={playlistPolicy:void 0,type:!1,timestamp:!1};return t.playlistPolicy=void 0!==e.playlistPolicy&&null!==e.playlistPolicy?l.PlaylistDecorationPolicy.fromPartial(e.playlistPolicy):void 0,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}},t.RecentlyPlayedCollectionTracksDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.link&&t.uint32(8).bool(e.link),!0===e.type&&t.uint32(16).bool(e.type),!0===e.timestamp&&t.uint32(24).bool(e.timestamp),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,type:!1,timestamp:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.type=n.bool();break;case 3:r.timestamp=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!d(e.link)&&Boolean(e.link),type:!!d(e.type)&&Boolean(e.type),timestamp:!!d(e.timestamp)&&Boolean(e.timestamp)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.type&&(t.type=e.type),void 0!==e.timestamp&&(t.timestamp=e.timestamp),t},fromPartial(e){const t={link:!1,type:!1,timestamp:!1};return t.link=e.link??!1,t.type=e.type??!1,t.timestamp=e.timestamp??!1,t}}},75468:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyPlayedCollectionTracks=t.RecentlyPlayedPlaylist=t.RecentlyPlayedProfile=t.RecentlyPlayedEpisode=t.RecentlyPlayedShow=t.RecentlyPlayedTrack=t.RecentlyPlayedAlbum=t.RecentlyPlayedArtist=t.protobufPackage=void 0;const i=o(n(33892)),r=n(53144),a=n(27640),s=n(96647),l=n(36421),c=n(90595),u=n(59651),d=n(7121),p=n(95967),f=n(89864),h=n(6469),m=n(44968),g=n(77059),v=n(10168),y=n(50679),_=n(18572),b=n(28259),S=n(74810),E=n(51295);function A(e){return null!=e}t.protobufPackage="spotify.recently_played_esperanto.proto",t.RecentlyPlayedArtist={encode:(e,t=i.default.Writer.create())=>(void 0!==e.artistMetadata&&d.ArtistMetadata.encode(e.artistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.artistCollectionState&&a.ArtistCollectionState.encode(e.artistCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.artistSyncState&&b.ArtistSyncState.encode(e.artistSyncState,t.uint32(26).fork()).ldelim(),0!==e.type&&t.uint32(32).uint32(e.type),0!==e.addTime&&t.uint32(40).uint32(e.addTime),""!==e.typeStr&&t.uint32(50).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:r.artistMetadata=d.ArtistMetadata.decode(n,n.uint32());break;case 2:r.artistCollectionState=a.ArtistCollectionState.decode(n,n.uint32());break;case 3:r.artistSyncState=b.ArtistSyncState.decode(n,n.uint32());break;case 4:r.type=n.uint32();break;case 5:r.addTime=n.uint32();break;case 6:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({artistMetadata:A(e.artistMetadata)?d.ArtistMetadata.fromJSON(e.artistMetadata):void 0,artistCollectionState:A(e.artistCollectionState)?a.ArtistCollectionState.fromJSON(e.artistCollectionState):void 0,artistSyncState:A(e.artistSyncState)?b.ArtistSyncState.fromJSON(e.artistSyncState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.artistMetadata&&(t.artistMetadata=e.artistMetadata?d.ArtistMetadata.toJSON(e.artistMetadata):void 0),void 0!==e.artistCollectionState&&(t.artistCollectionState=e.artistCollectionState?a.ArtistCollectionState.toJSON(e.artistCollectionState):void 0),void 0!==e.artistSyncState&&(t.artistSyncState=e.artistSyncState?b.ArtistSyncState.toJSON(e.artistSyncState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={artistMetadata:void 0,artistCollectionState:void 0,artistSyncState:void 0,type:0,addTime:0,typeStr:""};return t.artistMetadata=void 0!==e.artistMetadata&&null!==e.artistMetadata?d.ArtistMetadata.fromPartial(e.artistMetadata):void 0,t.artistCollectionState=void 0!==e.artistCollectionState&&null!==e.artistCollectionState?a.ArtistCollectionState.fromPartial(e.artistCollectionState):void 0,t.artistSyncState=void 0!==e.artistSyncState&&null!==e.artistSyncState?b.ArtistSyncState.fromPartial(e.artistSyncState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedAlbum={encode:(e,t=i.default.Writer.create())=>(void 0!==e.albumMetadata&&u.AlbumMetadata.encode(e.albumMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.albumCollectionState&&r.AlbumCollectionState.encode(e.albumCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.albumSyncState&&_.AlbumSyncState.encode(e.albumSyncState,t.uint32(26).fork()).ldelim(),!0===e.inCollection&&t.uint32(32).bool(e.inCollection),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,inCollection:!1,type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:a.albumMetadata=u.AlbumMetadata.decode(n,n.uint32());break;case 2:a.albumCollectionState=r.AlbumCollectionState.decode(n,n.uint32());break;case 3:a.albumSyncState=_.AlbumSyncState.decode(n,n.uint32());break;case 4:a.inCollection=n.bool();break;case 5:a.type=n.uint32();break;case 6:a.addTime=n.uint32();break;case 7:a.typeStr=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({albumMetadata:A(e.albumMetadata)?u.AlbumMetadata.fromJSON(e.albumMetadata):void 0,albumCollectionState:A(e.albumCollectionState)?r.AlbumCollectionState.fromJSON(e.albumCollectionState):void 0,albumSyncState:A(e.albumSyncState)?_.AlbumSyncState.fromJSON(e.albumSyncState):void 0,inCollection:!!A(e.inCollection)&&Boolean(e.inCollection),type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.albumMetadata&&(t.albumMetadata=e.albumMetadata?u.AlbumMetadata.toJSON(e.albumMetadata):void 0),void 0!==e.albumCollectionState&&(t.albumCollectionState=e.albumCollectionState?r.AlbumCollectionState.toJSON(e.albumCollectionState):void 0),void 0!==e.albumSyncState&&(t.albumSyncState=e.albumSyncState?_.AlbumSyncState.toJSON(e.albumSyncState):void 0),void 0!==e.inCollection&&(t.inCollection=e.inCollection),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={albumMetadata:void 0,albumCollectionState:void 0,albumSyncState:void 0,inCollection:!1,type:0,addTime:0,typeStr:""};return t.albumMetadata=void 0!==e.albumMetadata&&null!==e.albumMetadata?u.AlbumMetadata.fromPartial(e.albumMetadata):void 0,t.albumCollectionState=void 0!==e.albumCollectionState&&null!==e.albumCollectionState?r.AlbumCollectionState.fromPartial(e.albumCollectionState):void 0,t.albumSyncState=void 0!==e.albumSyncState&&null!==e.albumSyncState?_.AlbumSyncState.fromPartial(e.albumSyncState):void 0,t.inCollection=e.inCollection??!1,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedTrack={encode:(e,t=i.default.Writer.create())=>(void 0!==e.trackMetadata&&h.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&c.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackPlayState&&v.TrackPlayState.encode(e.trackPlayState,t.uint32(26).fork()).ldelim(),void 0!==e.trackSyncState&&E.TrackSyncState.encode(e.trackSyncState,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:r.trackMetadata=h.TrackMetadata.decode(n,n.uint32());break;case 2:r.trackCollectionState=c.TrackCollectionState.decode(n,n.uint32());break;case 3:r.trackPlayState=v.TrackPlayState.decode(n,n.uint32());break;case 4:r.trackSyncState=E.TrackSyncState.decode(n,n.uint32());break;case 5:r.type=n.uint32();break;case 6:r.addTime=n.uint32();break;case 7:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({trackMetadata:A(e.trackMetadata)?h.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:A(e.trackCollectionState)?c.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackPlayState:A(e.trackPlayState)?v.TrackPlayState.fromJSON(e.trackPlayState):void 0,trackSyncState:A(e.trackSyncState)?E.TrackSyncState.fromJSON(e.trackSyncState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?h.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?c.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?v.TrackPlayState.toJSON(e.trackPlayState):void 0),void 0!==e.trackSyncState&&(t.trackSyncState=e.trackSyncState?E.TrackSyncState.toJSON(e.trackSyncState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={trackMetadata:void 0,trackCollectionState:void 0,trackPlayState:void 0,trackSyncState:void 0,type:0,addTime:0,typeStr:""};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?h.TrackMetadata.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?c.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?v.TrackPlayState.fromPartial(e.trackPlayState):void 0,t.trackSyncState=void 0!==e.trackSyncState&&null!==e.trackSyncState?E.TrackSyncState.fromPartial(e.trackSyncState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedShow={encode:(e,t=i.default.Writer.create())=>(void 0!==e.showMetadata&&f.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&l.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&g.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),0!==e.type&&t.uint32(32).uint32(e.type),0!==e.addTime&&t.uint32(40).uint32(e.addTime),""!==e.typeStr&&t.uint32(50).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:r.showMetadata=f.ShowMetadata.decode(n,n.uint32());break;case 2:r.showCollectionState=l.ShowCollectionState.decode(n,n.uint32());break;case 3:r.showPlayState=g.ShowPlayState.decode(n,n.uint32());break;case 4:r.type=n.uint32();break;case 5:r.addTime=n.uint32();break;case 6:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({showMetadata:A(e.showMetadata)?f.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:A(e.showCollectionState)?l.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:A(e.showPlayState)?g.ShowPlayState.fromJSON(e.showPlayState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?f.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.showCollectionState&&(t.showCollectionState=e.showCollectionState?l.ShowCollectionState.toJSON(e.showCollectionState):void 0),void 0!==e.showPlayState&&(t.showPlayState=e.showPlayState?g.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,type:0,addTime:0,typeStr:""};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?f.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?l.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?g.ShowPlayState.fromPartial(e.showPlayState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedEpisode={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episodeMetadata&&p.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&s.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&S.EpisodeSyncState.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&m.EpisodePlayState.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),void 0!==e.showMetadata&&f.ShowMetadata.encode(e.showMetadata,t.uint32(58).fork()).ldelim(),""!==e.typeStr&&t.uint32(66).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,type:0,addTime:0,showMetadata:void 0,typeStr:""};for(;n.pos>>3){case 1:r.episodeMetadata=p.EpisodeMetadata.decode(n,n.uint32());break;case 2:r.episodeCollectionState=s.EpisodeCollectionState.decode(n,n.uint32());break;case 3:r.episodeOfflineState=S.EpisodeSyncState.decode(n,n.uint32());break;case 4:r.episodePlayState=m.EpisodePlayState.decode(n,n.uint32());break;case 5:r.type=n.uint32();break;case 6:r.addTime=n.uint32();break;case 7:r.showMetadata=f.ShowMetadata.decode(n,n.uint32());break;case 8:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({episodeMetadata:A(e.episodeMetadata)?p.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:A(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:A(e.episodeOfflineState)?S.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:A(e.episodePlayState)?m.EpisodePlayState.fromJSON(e.episodePlayState):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,showMetadata:A(e.showMetadata)?f.ShowMetadata.fromJSON(e.showMetadata):void 0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?p.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.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?m.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.showMetadata&&(t.showMetadata=e.showMetadata?f.ShowMetadata.toJSON(e.showMetadata):void 0),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,type:0,addTime:0,showMetadata:void 0,typeStr:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?p.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?S.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?m.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?f.ShowMetadata.fromPartial(e.showMetadata):void 0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedProfile={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.imageUri&&t.uint32(26).string(e.imageUri),0!==e.offlineState&&t.uint32(32).uint32(e.offlineState),0!==e.type&&t.uint32(40).uint32(e.type),0!==e.addTime&&t.uint32(48).uint32(e.addTime),""!==e.typeStr&&t.uint32(58).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",imageUri:"",offlineState:0,type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.imageUri=n.string();break;case 4:r.offlineState=n.uint32();break;case 5:r.type=n.uint32();break;case 6:r.addTime=n.uint32();break;case 7:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:A(e.link)?String(e.link):"",name:A(e.name)?String(e.name):"",imageUri:A(e.imageUri)?String(e.imageUri):"",offlineState:A(e.offlineState)?Number(e.offlineState):0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.name&&(t.name=e.name),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.offlineState&&(t.offlineState=Math.round(e.offlineState)),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={link:"",name:"",imageUri:"",offlineState:0,type:0,addTime:0,typeStr:""};return t.link=e.link??"",t.name=e.name??"",t.imageUri=e.imageUri??"",t.offlineState=e.offlineState??0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedPlaylist={encode:(e,t=i.default.Writer.create())=>(void 0!==e.playlistMetadata&&y.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),0!==e.type&&t.uint32(16).uint32(e.type),0!==e.addTime&&t.uint32(24).uint32(e.addTime),""!==e.typeStr&&t.uint32(34).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistMetadata:void 0,type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:r.playlistMetadata=y.PlaylistMetadata.decode(n,n.uint32());break;case 2:r.type=n.uint32();break;case 3:r.addTime=n.uint32();break;case 4:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistMetadata:A(e.playlistMetadata)?y.PlaylistMetadata.fromJSON(e.playlistMetadata):void 0,type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?y.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={playlistMetadata:void 0,type:0,addTime:0,typeStr:""};return t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?y.PlaylistMetadata.fromPartial(e.playlistMetadata):void 0,t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}},t.RecentlyPlayedCollectionTracks={encode:(e,t=i.default.Writer.create())=>(""!==e.link&&t.uint32(10).string(e.link),0!==e.type&&t.uint32(16).uint32(e.type),0!==e.addTime&&t.uint32(24).uint32(e.addTime),""!==e.typeStr&&t.uint32(34).string(e.typeStr),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",type:0,addTime:0,typeStr:""};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.type=n.uint32();break;case 3:r.addTime=n.uint32();break;case 4:r.typeStr=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:A(e.link)?String(e.link):"",type:A(e.type)?Number(e.type):0,addTime:A(e.addTime)?Number(e.addTime):0,typeStr:A(e.typeStr)?String(e.typeStr):""}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.type&&(t.type=Math.round(e.type)),void 0!==e.addTime&&(t.addTime=Math.round(e.addTime)),void 0!==e.typeStr&&(t.typeStr=e.typeStr),t},fromPartial(e){const t={link:"",type:0,addTime:0,typeStr:""};return t.link=e.link??"",t.type=e.type??0,t.addTime=e.addTime??0,t.typeStr=e.typeStr??"",t}}},18572:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlbumSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos>>3){case 1:r.offline=n.string();break;case 2:r.inferredOffline=n.string();break;case 3:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):"",inferredOffline:r(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}}},28259:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArtistSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistSyncState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),""!==e.inferredOffline&&t.uint32(18).string(e.inferredOffline),0!==e.syncProgress&&t.uint32(24).uint32(e.syncProgress),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",inferredOffline:"",syncProgress:0};for(;n.pos>>3){case 1:r.offline=n.string();break;case 2:r.inferredOffline=n.string();break;case 3:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):"",inferredOffline:r(e.inferredOffline)?String(e.inferredOffline):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.inferredOffline&&(t.inferredOffline=e.inferredOffline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",inferredOffline:"",syncProgress:0};return t.offline=e.offline??"",t.inferredOffline=e.inferredOffline??"",t.syncProgress=e.syncProgress??0,t}}},74810:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos>>3){case 1:r.offlineState=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:r(e.offlineState)?String(e.offlineState):"",syncProgress:r(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){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}}},51295:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackSyncState={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos>>3){case 1:r.offline=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):"",syncProgress:r(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}}},75406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowServiceClient=void 0;const o=n(33892),i=n(25744);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getShow(e){const t="spotify.show_esperanto.proto.ShowService",n="GetShow",r=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetShowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subShow(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubShow",a=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetShowResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getShowEpisode(e){const t="spotify.show_esperanto.proto.ShowService",n="GetShowEpisode",r=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetShowResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subShowEpisode(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubShowEpisode",a=i.GetShowRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetShowResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getDecorate(e){const t="spotify.show_esperanto.proto.ShowService",n="GetDecorate",r=i.GetDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetDecorateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subDecorate(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubDecorate",a=i.GetDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetDecorateResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}getUnfinishedEpisodes(e){const t="spotify.show_esperanto.proto.ShowService",n="GetUnfinishedEpisodes",r=i.GetUnfinishedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetUnfinishedEpisodesResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subUnfinishedEpisodes(e,t){const n="spotify.show_esperanto.proto.ShowService",r="SubUnfinishedEpisodes",a=i.GetUnfinishedEpisodesRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetUnfinishedEpisodesResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.show_esperanto.proto.ShowService";static DECODERS={GetShow:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},SubShow:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},GetShowEpisode:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},SubShowEpisode:{request:i.GetShowRequest.decode,response:i.GetShowResponse.decode},GetDecorate:{request:i.GetDecorateRequest.decode,response:i.GetDecorateResponse.decode},SubDecorate:{request:i.GetDecorateRequest.decode,response:i.GetDecorateResponse.decode},GetUnfinishedEpisodes:{request:i.GetUnfinishedEpisodesRequest.decode,response:i.GetUnfinishedEpisodesResponse.decode},SubUnfinishedEpisodes:{request:i.GetUnfinishedEpisodesRequest.decode,response:i.GetUnfinishedEpisodesResponse.decode}}}t.ShowServiceClient=r},79221:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowServiceClient=void 0;var r=n(75406);Object.defineProperty(t,"ShowServiceClient",{enumerable:!0,get:function(){return r.ShowServiceClient}}),i(n(25744),t)},63804:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(86553),s=n(12158),l=n(46769),c=n(59516),u=n(30707),d=n(16293),p=n(35176);function f(e){return null!=e}t.protobufPackage="spotify.show_cosmos.decorate_request.proto",t.Show={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showMetadata&&a.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&s.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&l.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),""!==e.link&&t.uint32(34).string(e.link),void 0!==e.showOfflineState&&c.ShowOfflineState.encode(e.showOfflineState,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:"",showOfflineState:void 0};for(;n.pos>>3){case 1:i.showMetadata=a.ShowMetadata.decode(n,n.uint32());break;case 2:i.showCollectionState=s.ShowCollectionState.decode(n,n.uint32());break;case 3:i.showPlayState=l.ShowPlayState.decode(n,n.uint32());break;case 4:i.link=n.string();break;case 7:i.showOfflineState=c.ShowOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showMetadata:f(e.showMetadata)?a.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:f(e.showCollectionState)?s.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:f(e.showPlayState)?l.ShowPlayState.fromJSON(e.showPlayState):void 0,link:f(e.link)?String(e.link):"",showOfflineState:f(e.showOfflineState)?c.ShowOfflineState.fromJSON(e.showOfflineState):void 0}),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?l.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.link&&(t.link=e.link),void 0!==e.showOfflineState&&(t.showOfflineState=e.showOfflineState?c.ShowOfflineState.toJSON(e.showOfflineState):void 0),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,link:"",showOfflineState:void 0};return t.showMetadata=void 0!==e.showMetadata&&null!==e.showMetadata?a.ShowMetadata.fromPartial(e.showMetadata):void 0,t.showCollectionState=void 0!==e.showCollectionState&&null!==e.showCollectionState?s.ShowCollectionState.fromPartial(e.showCollectionState):void 0,t.showPlayState=void 0!==e.showPlayState&&null!==e.showPlayState?l.ShowPlayState.fromPartial(e.showPlayState):void 0,t.link=e.link??"",t.showOfflineState=void 0!==e.showOfflineState&&null!==e.showOfflineState?c.ShowOfflineState.fromPartial(e.showOfflineState):void 0,t}},t.Episode={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episodeMetadata&&u.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&d.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&d.EpisodeOfflineState.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&p.EpisodePlayState.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};for(;n.pos>>3){case 1:i.episodeMetadata=u.EpisodeMetadata.decode(n,n.uint32());break;case 2:i.episodeCollectionState=d.EpisodeCollectionState.decode(n,n.uint32());break;case 3:i.episodeOfflineState=d.EpisodeOfflineState.decode(n,n.uint32());break;case 4:i.episodePlayState=p.EpisodePlayState.decode(n,n.uint32());break;case 5:i.link=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({episodeMetadata:f(e.episodeMetadata)?u.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:f(e.episodeCollectionState)?d.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:f(e.episodeOfflineState)?d.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:f(e.episodePlayState)?p.EpisodePlayState.fromJSON(e.episodePlayState):void 0,link:f(e.link)?String(e.link):""}),toJSON(e){const t={};return void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?u.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?d.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?d.EpisodeOfflineState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?p.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?u.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?d.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?d.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?p.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t.link=e.link??"",t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.show)t.Show.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.episode)t.Episode.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={show:[],episode:[]};for(;o.pos>>3){case 1:a.show.push(t.Show.decode(o,o.uint32()));break;case 2:a.episode.push(t.Episode.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({show:Array.isArray(e?.show)?e.show.map((e=>t.Show.fromJSON(e))):[],episode:Array.isArray(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){const n={show:[],episode:[]};return n.show=e.show?.map((e=>t.Show.fromPartial(e)))||[],n.episode=e.episode?.map((e=>t.Episode.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},79396:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",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;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;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";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},30707:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(94553),s=n(6771);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={encode:(e,t=r.default.Writer.create())=>(""!==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&&a.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};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=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},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){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.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&&a.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&&a.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)s.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),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={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};for(;o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=a.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(s.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;default:o.skipType(7&e)}}return l},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(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){const n={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 n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},6771:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(79396);function s(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;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=>({extensionKind:p(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,data:p(e.data)?u(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 d(t.join(""))}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=s();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var l=(()=>{if(void 0!==l)return l;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 c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));function u(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;el.Buffer.from(e,"binary").toString("base64"));function p(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94553:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ImageGroup={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},86553:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(94553),s=n(6771);function l(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowMetadata={encode(e,t=r.default.Writer.create()){""!==e.link&&t.uint32(10).string(e.link),""!==e.name&&t.uint32(18).string(e.name),""!==e.description&&t.uint32(26).string(e.description),0!==e.popularity&&t.uint32(32).uint32(e.popularity),""!==e.publisher&&t.uint32(42).string(e.publisher),""!==e.language&&t.uint32(50).string(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),void 0!==e.covers&&a.ImageGroup.encode(e.covers,t.uint32(66).fork()).ldelim(),0!==e.numEpisodes&&t.uint32(72).uint32(e.numEpisodes),""!==e.consumptionOrder&&t.uint32(82).string(e.consumptionOrder),0!==e.mediaTypeEnum&&t.uint32(88).int32(e.mediaTypeEnum);for(const n of e.copyright)t.uint32(98).string(n);""!==e.trailerUri&&t.uint32(106).string(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk);for(const n of e.extension)s.Extension.encode(n,t.uint32(122).fork()).ldelim();return!0===e.isBook&&t.uint32(128).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(136).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={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};for(;n.pos>>3){case 1:i.link=n.string();break;case 2:i.name=n.string();break;case 3:i.description=n.string();break;case 4:i.popularity=n.uint32();break;case 5:i.publisher=n.string();break;case 6:i.language=n.string();break;case 7:i.isExplicit=n.bool();break;case 8:i.covers=a.ImageGroup.decode(n,n.uint32());break;case 9:i.numEpisodes=n.uint32();break;case 10:i.consumptionOrder=n.string();break;case 11:i.mediaTypeEnum=n.int32();break;case 12:i.copyright.push(n.string());break;case 13:i.trailerUri=n.string();break;case 14:i.isMusicAndTalk=n.bool();break;case 15:i.extension.push(s.Extension.decode(n,n.uint32()));break;case 16:i.isBook=n.bool();break;case 17:i.isCreatorChannel=n.bool();break;default:n.skipType(7&e)}}return i},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(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(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){const t={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 t.link=e.link??"",t.name=e.name??"",t.description=e.description??"",t.popularity=e.popularity??0,t.publisher=e.publisher??"",t.language=e.language??"",t.isExplicit=e.isExplicit??!1,t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t.numEpisodes=e.numEpisodes??0,t.consumptionOrder=e.consumptionOrder??"",t.mediaTypeEnum=e.mediaTypeEnum??0,t.copyright=e.copyright?.map((e=>e))||[],t.trailerUri=e.trailerUri??"",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},35176:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(53230);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};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=>({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){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},53230:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},46769:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayState=t.showPlayState_LabelToJSON=t.showPlayState_LabelFromJSON=t.ShowPlayState_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(53230);var s;function l(e){switch(e){case 0:case"UNKNOWN_LABEL":return s.UNKNOWN_LABEL;case 1:case"NOT_STARTED":return s.NOT_STARTED;case 2:case"IN_PROGRESS":return s.IN_PROGRESS;case 3:case"COMPLETED":return s.COMPLETED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.UNKNOWN_LABEL:return"UNKNOWN_LABEL";case s.NOT_STARTED:return"NOT_STARTED";case s.IN_PROGRESS:return"IN_PROGRESS";case s.COMPLETED:return"COMPLETED";default:return"UNKNOWN"}}function u(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",function(e){e[e.UNKNOWN_LABEL=0]="UNKNOWN_LABEL",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.ShowPlayState_Label||(t.ShowPlayState_Label={})),t.showPlayState_LabelFromJSON=l,t.showPlayState_LabelToJSON=c,t.ShowPlayState={encode:(e,t=r.default.Writer.create())=>(""!==e.latestPlayedEpisodeLink&&t.uint32(10).string(e.latestPlayedEpisodeLink),"0"!==e.playedTime&&t.uint32(16).uint64(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),0!==e.playabilityRestriction&&t.uint32(32).int32(e.playabilityRestriction),0!==e.label&&t.uint32(40).int32(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};for(;n.pos>>3){case 1:i.latestPlayedEpisodeLink=n.string();break;case 2:i.playedTime=n.uint64().toString();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.int32();break;case 5:i.label=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:u(e.latestPlayedEpisodeLink)?String(e.latestPlayedEpisodeLink):"",playedTime:u(e.playedTime)?String(e.playedTime):"0",isPlayable:!!u(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:u(e.playabilityRestriction)?(0,a.playabilityRestrictionFromJSON)(e.playabilityRestriction):0,label:u(e.label)?l(e.label):0}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,a.playabilityRestrictionToJSON)(e.playabilityRestriction)),void 0!==e.label&&(t.label=c(e.label)),t},fromPartial(e){const t={latestPlayedEpisodeLink:"",playedTime:"0",isPlayable:!1,playabilityRestriction:0,label:0};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??"",t.playedTime=e.playedTime??"0",t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t.label=e.label??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},78230:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(79396);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};for(;n.pos>>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.pos({link:!!s(e.link)&&Boolean(e.link),length:!!s(e.length)&&Boolean(e.length),name:!!s(e.name)&&Boolean(e.name),manifestId:!!s(e.manifestId)&&Boolean(e.manifestId),previewId:!!s(e.previewId)&&Boolean(e.previewId),previewManifestId:!!s(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!s(e.description)&&Boolean(e.description),publishDate:!!s(e.publishDate)&&Boolean(e.publishDate),covers:!!s(e.covers)&&Boolean(e.covers),freezeFrames:!!s(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!s(e.language)&&Boolean(e.language),available:!!s(e.available)&&Boolean(e.available),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!s(e.number)&&Boolean(e.number),backgroundable:!!s(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),type:!!s(e.type)&&Boolean(e.type),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],is19PlusOnly:!!s(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!s(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!s(e.isPodcastShort)&&Boolean(e.isPodcastShort)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isInListenLater:!1,isNew:!1};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=>({isFollowingShow:!!s(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!s(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!s(e.isNew)&&Boolean(e.isNew)}),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={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};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=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};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=>({timeLeft:!!s(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!s(e.isPlayed)&&Boolean(e.isPlayed),playable:!!s(e.playable)&&Boolean(e.playable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!s(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),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={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},761:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(79396);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos>>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.pos({link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),description:!!s(e.description)&&Boolean(e.description),popularity:!!s(e.popularity)&&Boolean(e.popularity),publisher:!!s(e.publisher)&&Boolean(e.publisher),language:!!s(e.language)&&Boolean(e.language),isExplicit:!!s(e.isExplicit)&&Boolean(e.isExplicit),covers:!!s(e.covers)&&Boolean(e.covers),numEpisodes:!!s(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!s(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!s(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!s(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!s(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!s(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,a.extensionKindFromJSON)(e))):[],isBook:!!s(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!s(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=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),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,a.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos>>3){case 1:i.latestPlayedEpisodeLink=n.bool();break;case 2:i.playedTime=n.bool();break;case 3:i.isPlayable=n.bool();break;case 4:i.playabilityRestriction=n.bool();break;case 5:i.label=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({latestPlayedEpisodeLink:!!s(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!s(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!s(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!s(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!s(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isInCollection:!!s(e.isInCollection)&&Boolean(e.isInCollection)}),toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:!1,syncProgress:!1};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=>({offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},16293:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.EpisodeCollectionState={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isFollowingShow:!1,isNew:!1,isInListenLater:!1};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=>({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){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}},t.EpisodeOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:"",syncProgress:0};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=>({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){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},59516:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",t.ShowOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offlineState:"",syncProgress:0};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=>({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){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},60606:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NextBestEpisodeSection=t.LatestUnplayedEpisodeSection=t.TrailerSection=t.ContinueListeningSection=t.AuxiliarySections=t.Response=t.Header=t.Item=t.nextBestEpisodeSection_LabelToJSON=t.nextBestEpisodeSection_LabelFromJSON=t.NextBestEpisodeSection_Label=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(30707),s=n(16293),l=n(35176),c=n(86553),u=n(12158),d=n(46769),p=n(59516);var f;function h(e){switch(e){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"TRAILER":return f.TRAILER;case 2:case"CONTINUE_LISTENING":return f.CONTINUE_LISTENING;case 3:case"LATEST_PUBLISHED":return f.LATEST_PUBLISHED;case 4:case"UP_NEXT":return f.UP_NEXT;case 5:case"FIRST_PUBLISHED":return f.FIRST_PUBLISHED;default:return f.UNRECOGNIZED}}function m(e){switch(e){case f.UNKNOWN:return"UNKNOWN";case f.TRAILER:return"TRAILER";case f.CONTINUE_LISTENING:return"CONTINUE_LISTENING";case f.LATEST_PUBLISHED:return"LATEST_PUBLISHED";case f.UP_NEXT:return"UP_NEXT";case f.FIRST_PUBLISHED:return"FIRST_PUBLISHED";default:return"UNKNOWN"}}function g(e){return null!=e}t.protobufPackage="spotify.show_cosmos.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TRAILER=1]="TRAILER",e[e.CONTINUE_LISTENING=2]="CONTINUE_LISTENING",e[e.LATEST_PUBLISHED=3]="LATEST_PUBLISHED",e[e.UP_NEXT=4]="UP_NEXT",e[e.FIRST_PUBLISHED=5]="FIRST_PUBLISHED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.NextBestEpisodeSection_Label||(t.NextBestEpisodeSection_Label={})),t.nextBestEpisodeSection_LabelFromJSON=h,t.nextBestEpisodeSection_LabelToJSON=m,t.Item={encode:(e,t=r.default.Writer.create())=>(""!==e.headerField&&t.uint32(10).string(e.headerField),void 0!==e.episodeMetadata&&a.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.episodeCollectionState&&s.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(26).fork()).ldelim(),void 0!==e.episodeOfflineState&&s.EpisodeOfflineState.encode(e.episodeOfflineState,t.uint32(34).fork()).ldelim(),void 0!==e.episodePlayState&&l.EpisodePlayState.encode(e.episodePlayState,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};for(;n.pos>>3){case 1:i.headerField=n.string();break;case 2:i.episodeMetadata=a.EpisodeMetadata.decode(n,n.uint32());break;case 3:i.episodeCollectionState=s.EpisodeCollectionState.decode(n,n.uint32());break;case 4:i.episodeOfflineState=s.EpisodeOfflineState.decode(n,n.uint32());break;case 5:i.episodePlayState=l.EpisodePlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({headerField:g(e.headerField)?String(e.headerField):"",episodeMetadata:g(e.episodeMetadata)?a.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeCollectionState:g(e.episodeCollectionState)?s.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodeOfflineState:g(e.episodeOfflineState)?s.EpisodeOfflineState.fromJSON(e.episodeOfflineState):void 0,episodePlayState:g(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){const t={headerField:"",episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0};return t.headerField=e.headerField??"",t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?s.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?l.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t}},t.Header={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showMetadata&&c.ShowMetadata.encode(e.showMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.showCollectionState&&u.ShowCollectionState.encode(e.showCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.showPlayState&&d.ShowPlayState.encode(e.showPlayState,t.uint32(26).fork()).ldelim(),void 0!==e.showOfflineState&&p.ShowOfflineState.encode(e.showOfflineState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,showOfflineState:void 0};for(;n.pos>>3){case 1:i.showMetadata=c.ShowMetadata.decode(n,n.uint32());break;case 2:i.showCollectionState=u.ShowCollectionState.decode(n,n.uint32());break;case 3:i.showPlayState=d.ShowPlayState.decode(n,n.uint32());break;case 4:i.showOfflineState=p.ShowOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showMetadata:g(e.showMetadata)?c.ShowMetadata.fromJSON(e.showMetadata):void 0,showCollectionState:g(e.showCollectionState)?u.ShowCollectionState.fromJSON(e.showCollectionState):void 0,showPlayState:g(e.showPlayState)?d.ShowPlayState.fromJSON(e.showPlayState):void 0,showOfflineState:g(e.showOfflineState)?p.ShowOfflineState.fromJSON(e.showOfflineState):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?d.ShowPlayState.toJSON(e.showPlayState):void 0),void 0!==e.showOfflineState&&(t.showOfflineState=e.showOfflineState?p.ShowOfflineState.toJSON(e.showOfflineState):void 0),t},fromPartial(e){const t={showMetadata:void 0,showCollectionState:void 0,showPlayState:void 0,showOfflineState: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?d.ShowPlayState.fromPartial(e.showPlayState):void 0,t.showOfflineState=void 0!==e.showOfflineState&&null!==e.showOfflineState?p.ShowOfflineState.fromPartial(e.showOfflineState):void 0,t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.header&&t.Header.encode(e.header,n.uint32(18).fork()).ldelim(),0!==e.unfilteredLength&&n.uint32(32).uint32(e.unfilteredLength),0!==e.length&&n.uint32(40).uint32(e.length),!0===e.loadingContents&&n.uint32(48).bool(e.loadingContents),0!==e.unrangedLength&&n.uint32(56).uint32(e.unrangedLength),void 0!==e.auxiliarySections&&t.AuxiliarySections.encode(e.auxiliarySections,n.uint32(66).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0};for(;o.pos>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.header=t.Header.decode(o,o.uint32());break;case 4:a.unfilteredLength=o.uint32();break;case 5:a.length=o.uint32();break;case 6:a.loadingContents=o.bool();break;case 7:a.unrangedLength=o.uint32();break;case 8:a.auxiliarySections=t.AuxiliarySections.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.items)?e.items.map((e=>t.Item.fromJSON(e))):[],header:g(e.header)?t.Header.fromJSON(e.header):void 0,unfilteredLength:g(e.unfilteredLength)?Number(e.unfilteredLength):0,length:g(e.length)?Number(e.length):0,loadingContents:!!g(e.loadingContents)&&Boolean(e.loadingContents),unrangedLength:g(e.unrangedLength)?Number(e.unrangedLength):0,auxiliarySections:g(e.auxiliarySections)?t.AuxiliarySections.fromJSON(e.auxiliarySections):void 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),n},fromPartial(e){const n={item:[],header:void 0,unfilteredLength:0,length:0,loadingContents:!1,unrangedLength:0,auxiliarySections:void 0};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.header=void 0!==e.header&&null!==e.header?t.Header.fromPartial(e.header):void 0,n.unfilteredLength=e.unfilteredLength??0,n.length=e.length??0,n.loadingContents=e.loadingContents??!1,n.unrangedLength=e.unrangedLength??0,n.auxiliarySections=void 0!==e.auxiliarySections&&null!==e.auxiliarySections?t.AuxiliarySections.fromPartial(e.auxiliarySections):void 0,n}},t.AuxiliarySections={encode:(e,n=r.default.Writer.create())=>(void 0!==e.continueListening&&t.ContinueListeningSection.encode(e.continueListening,n.uint32(10).fork()).ldelim(),void 0!==e.trailerSection&&t.TrailerSection.encode(e.trailerSection,n.uint32(26).fork()).ldelim(),void 0!==e.latestUnplayedEpisodeSection&&t.LatestUnplayedEpisodeSection.encode(e.latestUnplayedEpisodeSection,n.uint32(74).fork()).ldelim(),void 0!==e.nextBestEpisodeSection&&t.NextBestEpisodeSection.encode(e.nextBestEpisodeSection,n.uint32(82).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0,nextBestEpisodeSection:void 0};for(;o.pos>>3){case 1:a.continueListening=t.ContinueListeningSection.decode(o,o.uint32());break;case 3:a.trailerSection=t.TrailerSection.decode(o,o.uint32());break;case 9:a.latestUnplayedEpisodeSection=t.LatestUnplayedEpisodeSection.decode(o,o.uint32());break;case 10:a.nextBestEpisodeSection=t.NextBestEpisodeSection.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({continueListening:g(e.continueListening)?t.ContinueListeningSection.fromJSON(e.continueListening):void 0,trailerSection:g(e.trailerSection)?t.TrailerSection.fromJSON(e.trailerSection):void 0,latestUnplayedEpisodeSection:g(e.latestUnplayedEpisodeSection)?t.LatestUnplayedEpisodeSection.fromJSON(e.latestUnplayedEpisodeSection):void 0,nextBestEpisodeSection:g(e.nextBestEpisodeSection)?t.NextBestEpisodeSection.fromJSON(e.nextBestEpisodeSection):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),void 0!==e.nextBestEpisodeSection&&(n.nextBestEpisodeSection=e.nextBestEpisodeSection?t.NextBestEpisodeSection.toJSON(e.nextBestEpisodeSection):void 0),n},fromPartial(e){const n={continueListening:void 0,trailerSection:void 0,latestUnplayedEpisodeSection:void 0,nextBestEpisodeSection: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.nextBestEpisodeSection=void 0!==e.nextBestEpisodeSection&&null!==e.nextBestEpisodeSection?t.NextBestEpisodeSection.fromPartial(e.nextBestEpisodeSection):void 0,n}},t.ContinueListeningSection={encode:(e,n=r.default.Writer.create())=>(void 0!==e.item&&t.Item.encode(e.item,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:void 0};for(;o.pos>>3==1)a.item=t.Item.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({item:g(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={encode:(e,n=r.default.Writer.create())=>(void 0!==e.item&&t.Item.encode(e.item,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:void 0};for(;o.pos>>3==1)a.item=t.Item.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({item:g(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={encode:(e,n=r.default.Writer.create())=>(void 0!==e.item&&t.Item.encode(e.item,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:void 0};for(;o.pos>>3==1)a.item=t.Item.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({item:g(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.NextBestEpisodeSection={encode:(e,n=r.default.Writer.create())=>(0!==e.label&&n.uint32(8).int32(e.label),void 0!==e.item&&t.Item.encode(e.item,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={label:0,item:void 0};for(;o.pos>>3){case 1:a.label=o.int32();break;case 2:a.item=t.Item.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({label:g(e.label)?h(e.label):0,item:g(e.item)?t.Item.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.label&&(n.label=m(e.label)),void 0!==e.item&&(n.item=e.item?t.Item.toJSON(e.item):void 0),n},fromPartial(e){const n={label:0,item:void 0};return n.label=e.label??0,n.item=void 0!==e.item&&null!==e.item?t.Item.fromPartial(e.item):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},25744:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnfinishedEpisodesResponse=t.GetUnfinishedEpisodesRequest=t.GetDecorateResponse=t.GetDecorateRequest=t.GetShowResponse=t.GetShowRequest_QueryFilter=t.GetShowRequest_Range_Focus=t.GetShowRequest_Range=t.GetShowRequest=t.SectionsPolicy=t.ListPolicy=t.HeaderPolicy=t.Status=t.getShowRequest_QueryFilter_PlayedStateToJSON=t.getShowRequest_QueryFilter_PlayedStateFromJSON=t.GetShowRequest_QueryFilter_PlayedState=t.getShowRequest_QueryFilter_OfflineStatusToJSON=t.getShowRequest_QueryFilter_OfflineStatusFromJSON=t.GetShowRequest_QueryFilter_OfflineStatus=t.getShowRequest_QueryFilter_AvailabilityToJSON=t.getShowRequest_QueryFilter_AvailabilityFromJSON=t.GetShowRequest_QueryFilter_Availability=t.getShowRequest_Range_Focus_TypeToJSON=t.getShowRequest_Range_Focus_TypeFromJSON=t.GetShowRequest_Range_Focus_Type=t.status_CodeToJSON=t.status_CodeFromJSON=t.Status_Code=t.sortOrderToJSON=t.sortOrderFromJSON=t.SortOrder=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(761),s=n(78230),l=n(60606),c=n(63804),u=n(20565);var d,p,f,h,m,g;function v(e){switch(e){case 0:case"NONE":return d.NONE;case 1:case"CONSUMPTION_ORDER_ASC":return d.CONSUMPTION_ORDER_ASC;case 2:case"PUBLISH_DATE_ASC":return d.PUBLISH_DATE_ASC;case 3:case"PUBLISH_DATE_DESC":return d.PUBLISH_DATE_DESC;default:return d.UNRECOGNIZED}}function y(e){switch(e){case d.NONE:return"NONE";case d.CONSUMPTION_ORDER_ASC:return"CONSUMPTION_ORDER_ASC";case d.PUBLISH_DATE_ASC:return"PUBLISH_DATE_ASC";case d.PUBLISH_DATE_DESC:return"PUBLISH_DATE_DESC";default:return"UNKNOWN"}}function _(e){switch(e){case 0:case"SUCCESS":return p.SUCCESS;case 1:case"BAD_REQUEST":return p.BAD_REQUEST;case 2:case"INTERNAL_ERROR":return p.INTERNAL_ERROR;default:return p.UNRECOGNIZED}}function b(e){switch(e){case p.SUCCESS:return"SUCCESS";case p.BAD_REQUEST:return"BAD_REQUEST";case p.INTERNAL_ERROR:return"INTERNAL_ERROR";default:return"UNKNOWN"}}function S(e){switch(e){case 0:case"LATEST_PLAYED":return f.LATEST_PLAYED;case 1:case"CONTINUE_LISTENING":return f.CONTINUE_LISTENING;case 2:case"URI":return f.URI;default:return f.UNRECOGNIZED}}function E(e){switch(e){case f.LATEST_PLAYED:return"LATEST_PLAYED";case f.CONTINUE_LISTENING:return"CONTINUE_LISTENING";case f.URI:return"URI";default:return"UNKNOWN"}}function A(e){switch(e){case 0:case"AVAILABILITY_NONE":return h.AVAILABILITY_NONE;case 1:case"AVAILABILITY_AVAILABLE":return h.AVAILABILITY_AVAILABLE;default:return h.UNRECOGNIZED}}function T(e){switch(e){case h.AVAILABILITY_NONE:return"AVAILABILITY_NONE";case h.AVAILABILITY_AVAILABLE:return"AVAILABILITY_AVAILABLE";default:return"UNKNOWN"}}function P(e){switch(e){case 0:case"OFFLINE_STATUS_NONE":return m.OFFLINE_STATUS_NONE;case 1:case"OFFLINE_STATUS_AVAILABLE_OFFLINE":return m.OFFLINE_STATUS_AVAILABLE_OFFLINE;default:return m.UNRECOGNIZED}}function O(e){switch(e){case m.OFFLINE_STATUS_NONE:return"OFFLINE_STATUS_NONE";case m.OFFLINE_STATUS_AVAILABLE_OFFLINE:return"OFFLINE_STATUS_AVAILABLE_OFFLINE";default:return"UNKNOWN"}}function C(e){switch(e){case 0:case"PLAYED_STATE_NONE":return g.PLAYED_STATE_NONE;case 1:case"PLAYED_STATE_UNPLAYED":return g.PLAYED_STATE_UNPLAYED;case 2:case"PLAYED_STATE_IN_PROGRESS":return g.PLAYED_STATE_IN_PROGRESS;default:return g.UNRECOGNIZED}}function k(e){switch(e){case g.PLAYED_STATE_NONE:return"PLAYED_STATE_NONE";case g.PLAYED_STATE_UNPLAYED:return"PLAYED_STATE_UNPLAYED";case g.PLAYED_STATE_IN_PROGRESS:return"PLAYED_STATE_IN_PROGRESS";default:return"UNKNOWN"}}function R(e){return null!=e}t.protobufPackage="spotify.show_esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.CONSUMPTION_ORDER_ASC=1]="CONSUMPTION_ORDER_ASC",e[e.PUBLISH_DATE_ASC=2]="PUBLISH_DATE_ASC",e[e.PUBLISH_DATE_DESC=3]="PUBLISH_DATE_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.SortOrder||(t.SortOrder={})),t.sortOrderFromJSON=v,t.sortOrderToJSON=y,function(e){e[e.SUCCESS=0]="SUCCESS",e[e.BAD_REQUEST=1]="BAD_REQUEST",e[e.INTERNAL_ERROR=2]="INTERNAL_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(p=t.Status_Code||(t.Status_Code={})),t.status_CodeFromJSON=_,t.status_CodeToJSON=b,function(e){e[e.LATEST_PLAYED=0]="LATEST_PLAYED",e[e.CONTINUE_LISTENING=1]="CONTINUE_LISTENING",e[e.URI=2]="URI",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.GetShowRequest_Range_Focus_Type||(t.GetShowRequest_Range_Focus_Type={})),t.getShowRequest_Range_Focus_TypeFromJSON=S,t.getShowRequest_Range_Focus_TypeToJSON=E,function(e){e[e.AVAILABILITY_NONE=0]="AVAILABILITY_NONE",e[e.AVAILABILITY_AVAILABLE=1]="AVAILABILITY_AVAILABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(h=t.GetShowRequest_QueryFilter_Availability||(t.GetShowRequest_QueryFilter_Availability={})),t.getShowRequest_QueryFilter_AvailabilityFromJSON=A,t.getShowRequest_QueryFilter_AvailabilityToJSON=T,function(e){e[e.OFFLINE_STATUS_NONE=0]="OFFLINE_STATUS_NONE",e[e.OFFLINE_STATUS_AVAILABLE_OFFLINE=1]="OFFLINE_STATUS_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(m=t.GetShowRequest_QueryFilter_OfflineStatus||(t.GetShowRequest_QueryFilter_OfflineStatus={})),t.getShowRequest_QueryFilter_OfflineStatusFromJSON=P,t.getShowRequest_QueryFilter_OfflineStatusToJSON=O,function(e){e[e.PLAYED_STATE_NONE=0]="PLAYED_STATE_NONE",e[e.PLAYED_STATE_UNPLAYED=1]="PLAYED_STATE_UNPLAYED",e[e.PLAYED_STATE_IN_PROGRESS=2]="PLAYED_STATE_IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(g=t.GetShowRequest_QueryFilter_PlayedState||(t.GetShowRequest_QueryFilter_PlayedState={})),t.getShowRequest_QueryFilter_PlayedStateFromJSON=C,t.getShowRequest_QueryFilter_PlayedStateToJSON=k,t.Status={encode:(e,t=r.default.Writer.create())=>(0!==e.code&&t.uint32(8).int32(e.code),""!==e.reason&&t.uint32(18).string(e.reason),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={code:0,reason:""};for(;n.pos>>3){case 1:i.code=n.int32();break;case 2:i.reason=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({code:R(e.code)?_(e.code):0,reason:R(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.code&&(t.code=b(e.code)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={code:0,reason:""};return t.code=e.code??0,t.reason=e.reason??"",t}},t.HeaderPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.showPolicy&&a.ShowDecorationPolicy.encode(e.showPolicy,t.uint32(10).fork()).ldelim(),void 0!==e.showPlayedStatePolicy&&a.ShowPlayedStateDecorationPolicy.encode(e.showPlayedStatePolicy,t.uint32(18).fork()).ldelim(),void 0!==e.showCollectionPolicy&&a.ShowCollectionDecorationPolicy.encode(e.showCollectionPolicy,t.uint32(26).fork()).ldelim(),void 0!==e.showOfflineStatePolicy&&a.ShowOfflineStateDecorationPolicy.encode(e.showOfflineStatePolicy,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={showPolicy:void 0,showPlayedStatePolicy:void 0,showCollectionPolicy:void 0,showOfflineStatePolicy:void 0};for(;n.pos>>3){case 1:i.showPolicy=a.ShowDecorationPolicy.decode(n,n.uint32());break;case 2:i.showPlayedStatePolicy=a.ShowPlayedStateDecorationPolicy.decode(n,n.uint32());break;case 3:i.showCollectionPolicy=a.ShowCollectionDecorationPolicy.decode(n,n.uint32());break;case 4:i.showOfflineStatePolicy=a.ShowOfflineStateDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({showPolicy:R(e.showPolicy)?a.ShowDecorationPolicy.fromJSON(e.showPolicy):void 0,showPlayedStatePolicy:R(e.showPlayedStatePolicy)?a.ShowPlayedStateDecorationPolicy.fromJSON(e.showPlayedStatePolicy):void 0,showCollectionPolicy:R(e.showCollectionPolicy)?a.ShowCollectionDecorationPolicy.fromJSON(e.showCollectionPolicy):void 0,showOfflineStatePolicy:R(e.showOfflineStatePolicy)?a.ShowOfflineStateDecorationPolicy.fromJSON(e.showOfflineStatePolicy):void 0}),toJSON(e){const t={};return void 0!==e.showPolicy&&(t.showPolicy=e.showPolicy?a.ShowDecorationPolicy.toJSON(e.showPolicy):void 0),void 0!==e.showPlayedStatePolicy&&(t.showPlayedStatePolicy=e.showPlayedStatePolicy?a.ShowPlayedStateDecorationPolicy.toJSON(e.showPlayedStatePolicy):void 0),void 0!==e.showCollectionPolicy&&(t.showCollectionPolicy=e.showCollectionPolicy?a.ShowCollectionDecorationPolicy.toJSON(e.showCollectionPolicy):void 0),void 0!==e.showOfflineStatePolicy&&(t.showOfflineStatePolicy=e.showOfflineStatePolicy?a.ShowOfflineStateDecorationPolicy.toJSON(e.showOfflineStatePolicy):void 0),t},fromPartial(e){const t={showPolicy:void 0,showPlayedStatePolicy:void 0,showCollectionPolicy:void 0,showOfflineStatePolicy:void 0};return t.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?a.ShowDecorationPolicy.fromPartial(e.showPolicy):void 0,t.showPlayedStatePolicy=void 0!==e.showPlayedStatePolicy&&null!==e.showPlayedStatePolicy?a.ShowPlayedStateDecorationPolicy.fromPartial(e.showPlayedStatePolicy):void 0,t.showCollectionPolicy=void 0!==e.showCollectionPolicy&&null!==e.showCollectionPolicy?a.ShowCollectionDecorationPolicy.fromPartial(e.showCollectionPolicy):void 0,t.showOfflineStatePolicy=void 0!==e.showOfflineStatePolicy&&null!==e.showOfflineStatePolicy?a.ShowOfflineStateDecorationPolicy.fromPartial(e.showOfflineStatePolicy):void 0,t}},t.ListPolicy={encode:(e,n=r.default.Writer.create())=>(void 0!==e.episodePolicy&&s.EpisodeDecorationPolicy.encode(e.episodePolicy,n.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionPolicy&&s.EpisodeCollectionDecorationPolicy.encode(e.episodeCollectionPolicy,n.uint32(18).fork()).ldelim(),void 0!==e.episodeSyncPolicy&&s.EpisodeSyncDecorationPolicy.encode(e.episodeSyncPolicy,n.uint32(26).fork()).ldelim(),void 0!==e.episodePlayedStatePolicy&&s.EpisodePlayedStateDecorationPolicy.encode(e.episodePlayedStatePolicy,n.uint32(34).fork()).ldelim(),!0===e.progress&&n.uint32(40).bool(e.progress),void 0!==e.showPolicy&&t.HeaderPolicy.encode(e.showPolicy,n.uint32(50).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episodePolicy:void 0,episodeCollectionPolicy:void 0,episodeSyncPolicy:void 0,episodePlayedStatePolicy:void 0,progress:!1,showPolicy:void 0};for(;o.pos>>3){case 1:a.episodePolicy=s.EpisodeDecorationPolicy.decode(o,o.uint32());break;case 2:a.episodeCollectionPolicy=s.EpisodeCollectionDecorationPolicy.decode(o,o.uint32());break;case 3:a.episodeSyncPolicy=s.EpisodeSyncDecorationPolicy.decode(o,o.uint32());break;case 4:a.episodePlayedStatePolicy=s.EpisodePlayedStateDecorationPolicy.decode(o,o.uint32());break;case 5:a.progress=o.bool();break;case 6:a.showPolicy=t.HeaderPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({episodePolicy:R(e.episodePolicy)?s.EpisodeDecorationPolicy.fromJSON(e.episodePolicy):void 0,episodeCollectionPolicy:R(e.episodeCollectionPolicy)?s.EpisodeCollectionDecorationPolicy.fromJSON(e.episodeCollectionPolicy):void 0,episodeSyncPolicy:R(e.episodeSyncPolicy)?s.EpisodeSyncDecorationPolicy.fromJSON(e.episodeSyncPolicy):void 0,episodePlayedStatePolicy:R(e.episodePlayedStatePolicy)?s.EpisodePlayedStateDecorationPolicy.fromJSON(e.episodePlayedStatePolicy):void 0,progress:!!R(e.progress)&&Boolean(e.progress),showPolicy:R(e.showPolicy)?t.HeaderPolicy.fromJSON(e.showPolicy):void 0}),toJSON(e){const n={};return void 0!==e.episodePolicy&&(n.episodePolicy=e.episodePolicy?s.EpisodeDecorationPolicy.toJSON(e.episodePolicy):void 0),void 0!==e.episodeCollectionPolicy&&(n.episodeCollectionPolicy=e.episodeCollectionPolicy?s.EpisodeCollectionDecorationPolicy.toJSON(e.episodeCollectionPolicy):void 0),void 0!==e.episodeSyncPolicy&&(n.episodeSyncPolicy=e.episodeSyncPolicy?s.EpisodeSyncDecorationPolicy.toJSON(e.episodeSyncPolicy):void 0),void 0!==e.episodePlayedStatePolicy&&(n.episodePlayedStatePolicy=e.episodePlayedStatePolicy?s.EpisodePlayedStateDecorationPolicy.toJSON(e.episodePlayedStatePolicy):void 0),void 0!==e.progress&&(n.progress=e.progress),void 0!==e.showPolicy&&(n.showPolicy=e.showPolicy?t.HeaderPolicy.toJSON(e.showPolicy):void 0),n},fromPartial(e){const n={episodePolicy:void 0,episodeCollectionPolicy:void 0,episodeSyncPolicy:void 0,episodePlayedStatePolicy:void 0,progress:!1,showPolicy:void 0};return n.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?s.EpisodeDecorationPolicy.fromPartial(e.episodePolicy):void 0,n.episodeCollectionPolicy=void 0!==e.episodeCollectionPolicy&&null!==e.episodeCollectionPolicy?s.EpisodeCollectionDecorationPolicy.fromPartial(e.episodeCollectionPolicy):void 0,n.episodeSyncPolicy=void 0!==e.episodeSyncPolicy&&null!==e.episodeSyncPolicy?s.EpisodeSyncDecorationPolicy.fromPartial(e.episodeSyncPolicy):void 0,n.episodePlayedStatePolicy=void 0!==e.episodePlayedStatePolicy&&null!==e.episodePlayedStatePolicy?s.EpisodePlayedStateDecorationPolicy.fromPartial(e.episodePlayedStatePolicy):void 0,n.progress=e.progress??!1,n.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?t.HeaderPolicy.fromPartial(e.showPolicy):void 0,n}},t.SectionsPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.continueListening&&t.uint32(8).bool(e.continueListening),!0===e.trailerSection&&t.uint32(16).bool(e.trailerSection),!0===e.latestUnplayedEpisode&&t.uint32(24).bool(e.latestUnplayedEpisode),!0===e.nextBestEpisode&&t.uint32(32).bool(e.nextBestEpisode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={continueListening:!1,trailerSection:!1,latestUnplayedEpisode:!1,nextBestEpisode:!1};for(;n.pos>>3){case 1:i.continueListening=n.bool();break;case 2:i.trailerSection=n.bool();break;case 3:i.latestUnplayedEpisode=n.bool();break;case 4:i.nextBestEpisode=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({continueListening:!!R(e.continueListening)&&Boolean(e.continueListening),trailerSection:!!R(e.trailerSection)&&Boolean(e.trailerSection),latestUnplayedEpisode:!!R(e.latestUnplayedEpisode)&&Boolean(e.latestUnplayedEpisode),nextBestEpisode:!!R(e.nextBestEpisode)&&Boolean(e.nextBestEpisode)}),toJSON(e){const t={};return void 0!==e.continueListening&&(t.continueListening=e.continueListening),void 0!==e.trailerSection&&(t.trailerSection=e.trailerSection),void 0!==e.latestUnplayedEpisode&&(t.latestUnplayedEpisode=e.latestUnplayedEpisode),void 0!==e.nextBestEpisode&&(t.nextBestEpisode=e.nextBestEpisode),t},fromPartial(e){const t={continueListening:!1,trailerSection:!1,latestUnplayedEpisode:!1,nextBestEpisode:!1};return t.continueListening=e.continueListening??!1,t.trailerSection=e.trailerSection??!1,t.latestUnplayedEpisode=e.latestUnplayedEpisode??!1,t.nextBestEpisode=e.nextBestEpisode??!1,t}},t.GetShowRequest={encode:(e,n=r.default.Writer.create())=>(""!==e.showId&&n.uint32(10).string(e.showId),0!==e.updateThrottling&&n.uint32(16).uint32(e.updateThrottling),0!==e.rangeStart&&n.uint32(24).int32(e.rangeStart),void 0!==e.rangeLength&&n.uint32(32).int32(e.rangeLength),""!==e.sort&&n.uint32(42).string(e.sort),""!==e.filter&&n.uint32(50).string(e.filter),""!==e.includeInRange&&n.uint32(58).string(e.includeInRange),void 0!==e.forceIncludeContext&&n.uint32(64).int32(e.forceIncludeContext),void 0!==e.headerPolicy&&t.HeaderPolicy.encode(e.headerPolicy,n.uint32(74).fork()).ldelim(),void 0!==e.listPolicy&&t.ListPolicy.encode(e.listPolicy,n.uint32(82).fork()).ldelim(),void 0!==e.sectionsPolicy&&t.SectionsPolicy.encode(e.sectionsPolicy,n.uint32(90).fork()).ldelim(),0!==e.sortOrder&&n.uint32(96).int32(e.sortOrder),void 0!==e.range&&t.GetShowRequest_Range.encode(e.range,n.uint32(106).fork()).ldelim(),void 0!==e.queryFilter&&t.GetShowRequest_QueryFilter.encode(e.queryFilter,n.uint32(114).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={showId:"",updateThrottling:0,rangeStart:0,rangeLength:void 0,sort:"",filter:"",includeInRange:"",forceIncludeContext:void 0,headerPolicy:void 0,listPolicy:void 0,sectionsPolicy:void 0,sortOrder:0,range:void 0,queryFilter:void 0};for(;o.pos>>3){case 1:a.showId=o.string();break;case 2:a.updateThrottling=o.uint32();break;case 3:a.rangeStart=o.int32();break;case 4:a.rangeLength=o.int32();break;case 5:a.sort=o.string();break;case 6:a.filter=o.string();break;case 7:a.includeInRange=o.string();break;case 8:a.forceIncludeContext=o.int32();break;case 9:a.headerPolicy=t.HeaderPolicy.decode(o,o.uint32());break;case 10:a.listPolicy=t.ListPolicy.decode(o,o.uint32());break;case 11:a.sectionsPolicy=t.SectionsPolicy.decode(o,o.uint32());break;case 12:a.sortOrder=o.int32();break;case 13:a.range=t.GetShowRequest_Range.decode(o,o.uint32());break;case 14:a.queryFilter=t.GetShowRequest_QueryFilter.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({showId:R(e.showId)?String(e.showId):"",updateThrottling:R(e.updateThrottling)?Number(e.updateThrottling):0,rangeStart:R(e.rangeStart)?Number(e.rangeStart):0,rangeLength:R(e.rangeLength)?Number(e.rangeLength):void 0,sort:R(e.sort)?String(e.sort):"",filter:R(e.filter)?String(e.filter):"",includeInRange:R(e.includeInRange)?String(e.includeInRange):"",forceIncludeContext:R(e.forceIncludeContext)?Number(e.forceIncludeContext):void 0,headerPolicy:R(e.headerPolicy)?t.HeaderPolicy.fromJSON(e.headerPolicy):void 0,listPolicy:R(e.listPolicy)?t.ListPolicy.fromJSON(e.listPolicy):void 0,sectionsPolicy:R(e.sectionsPolicy)?t.SectionsPolicy.fromJSON(e.sectionsPolicy):void 0,sortOrder:R(e.sortOrder)?v(e.sortOrder):0,range:R(e.range)?t.GetShowRequest_Range.fromJSON(e.range):void 0,queryFilter:R(e.queryFilter)?t.GetShowRequest_QueryFilter.fromJSON(e.queryFilter):void 0}),toJSON(e){const n={};return void 0!==e.showId&&(n.showId=e.showId),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.rangeStart&&(n.rangeStart=Math.round(e.rangeStart)),void 0!==e.rangeLength&&(n.rangeLength=Math.round(e.rangeLength)),void 0!==e.sort&&(n.sort=e.sort),void 0!==e.filter&&(n.filter=e.filter),void 0!==e.includeInRange&&(n.includeInRange=e.includeInRange),void 0!==e.forceIncludeContext&&(n.forceIncludeContext=Math.round(e.forceIncludeContext)),void 0!==e.headerPolicy&&(n.headerPolicy=e.headerPolicy?t.HeaderPolicy.toJSON(e.headerPolicy):void 0),void 0!==e.listPolicy&&(n.listPolicy=e.listPolicy?t.ListPolicy.toJSON(e.listPolicy):void 0),void 0!==e.sectionsPolicy&&(n.sectionsPolicy=e.sectionsPolicy?t.SectionsPolicy.toJSON(e.sectionsPolicy):void 0),void 0!==e.sortOrder&&(n.sortOrder=y(e.sortOrder)),void 0!==e.range&&(n.range=e.range?t.GetShowRequest_Range.toJSON(e.range):void 0),void 0!==e.queryFilter&&(n.queryFilter=e.queryFilter?t.GetShowRequest_QueryFilter.toJSON(e.queryFilter):void 0),n},fromPartial(e){const n={showId:"",updateThrottling:0,rangeStart:0,rangeLength:void 0,sort:"",filter:"",includeInRange:"",forceIncludeContext:void 0,headerPolicy:void 0,listPolicy:void 0,sectionsPolicy:void 0,sortOrder:0,range:void 0,queryFilter:void 0};return n.showId=e.showId??"",n.updateThrottling=e.updateThrottling??0,n.rangeStart=e.rangeStart??0,n.rangeLength=e.rangeLength??void 0,n.sort=e.sort??"",n.filter=e.filter??"",n.includeInRange=e.includeInRange??"",n.forceIncludeContext=e.forceIncludeContext??void 0,n.headerPolicy=void 0!==e.headerPolicy&&null!==e.headerPolicy?t.HeaderPolicy.fromPartial(e.headerPolicy):void 0,n.listPolicy=void 0!==e.listPolicy&&null!==e.listPolicy?t.ListPolicy.fromPartial(e.listPolicy):void 0,n.sectionsPolicy=void 0!==e.sectionsPolicy&&null!==e.sectionsPolicy?t.SectionsPolicy.fromPartial(e.sectionsPolicy):void 0,n.sortOrder=e.sortOrder??0,n.range=void 0!==e.range&&null!==e.range?t.GetShowRequest_Range.fromPartial(e.range):void 0,n.queryFilter=void 0!==e.queryFilter&&null!==e.queryFilter?t.GetShowRequest_QueryFilter.fromPartial(e.queryFilter):void 0,n}},t.GetShowRequest_Range={encode:(e,n=r.default.Writer.create())=>(void 0!==e.start&&n.uint32(8).uint32(e.start),void 0!==e.focus&&t.GetShowRequest_Range_Focus.encode(e.focus,n.uint32(18).fork()).ldelim(),0!==e.limit&&n.uint32(24).uint32(e.limit),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={start:void 0,focus:void 0,limit:0};for(;o.pos>>3){case 1:a.start=o.uint32();break;case 2:a.focus=t.GetShowRequest_Range_Focus.decode(o,o.uint32());break;case 3:a.limit=o.uint32();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({start:R(e.start)?Number(e.start):void 0,focus:R(e.focus)?t.GetShowRequest_Range_Focus.fromJSON(e.focus):void 0,limit:R(e.limit)?Number(e.limit):0}),toJSON(e){const n={};return void 0!==e.start&&(n.start=Math.round(e.start)),void 0!==e.focus&&(n.focus=e.focus?t.GetShowRequest_Range_Focus.toJSON(e.focus):void 0),void 0!==e.limit&&(n.limit=Math.round(e.limit)),n},fromPartial(e){const n={start:void 0,focus:void 0,limit:0};return n.start=e.start??void 0,n.focus=void 0!==e.focus&&null!==e.focus?t.GetShowRequest_Range_Focus.fromPartial(e.focus):void 0,n.limit=e.limit??0,n}},t.GetShowRequest_Range_Focus={encode:(e,t=r.default.Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),""!==e.data&&t.uint32(18).string(e.data),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={type:0,data:""};for(;n.pos>>3){case 1:i.type=n.int32();break;case 2:i.data=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({type:R(e.type)?S(e.type):0,data:R(e.data)?String(e.data):""}),toJSON(e){const t={};return void 0!==e.type&&(t.type=E(e.type)),void 0!==e.data&&(t.data=e.data),t},fromPartial(e){const t={type:0,data:""};return t.type=e.type??0,t.data=e.data??"",t}},t.GetShowRequest_QueryFilter={encode:(e,t=r.default.Writer.create())=>(0!==e.availability&&t.uint32(8).int32(e.availability),0!==e.offlineStatus&&t.uint32(16).int32(e.offlineStatus),0!==e.playedState&&t.uint32(24).int32(e.playedState),void 0!==e.containsText&&t.uint32(34).string(e.containsText),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={availability:0,offlineStatus:0,playedState:0,containsText:void 0};for(;n.pos>>3){case 1:i.availability=n.int32();break;case 2:i.offlineStatus=n.int32();break;case 3:i.playedState=n.int32();break;case 4:i.containsText=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({availability:R(e.availability)?A(e.availability):0,offlineStatus:R(e.offlineStatus)?P(e.offlineStatus):0,playedState:R(e.playedState)?C(e.playedState):0,containsText:R(e.containsText)?String(e.containsText):void 0}),toJSON(e){const t={};return void 0!==e.availability&&(t.availability=T(e.availability)),void 0!==e.offlineStatus&&(t.offlineStatus=O(e.offlineStatus)),void 0!==e.playedState&&(t.playedState=k(e.playedState)),void 0!==e.containsText&&(t.containsText=e.containsText),t},fromPartial(e){const t={availability:0,offlineStatus:0,playedState:0,containsText:void 0};return t.availability=e.availability??0,t.offlineStatus=e.offlineStatus??0,t.playedState=e.playedState??0,t.containsText=e.containsText??void 0,t}},t.GetShowResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.response&&l.Response.encode(e.response,n.uint32(10).fork()).ldelim(),void 0!==e.status&&t.Status.encode(e.status,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:void 0,status:void 0};for(;o.pos>>3){case 1:a.response=l.Response.decode(o,o.uint32());break;case 2:a.status=t.Status.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({response:R(e.response)?l.Response.fromJSON(e.response):void 0,status:R(e.status)?t.Status.fromJSON(e.status):void 0}),toJSON(e){const n={};return void 0!==e.response&&(n.response=e.response?l.Response.toJSON(e.response):void 0),void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),n},fromPartial(e){const n={response:void 0,status:void 0};return n.response=void 0!==e.response&&null!==e.response?l.Response.fromPartial(e.response):void 0,n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n}},t.GetDecorateRequest={encode(e,n=r.default.Writer.create()){for(const t of e.item)n.uint32(10).string(t);return!0===e.preferCached&&n.uint32(16).bool(e.preferCached),0!==e.updateThrottling&&n.uint32(24).uint32(e.updateThrottling),void 0!==e.showPolicy&&t.HeaderPolicy.encode(e.showPolicy,n.uint32(34).fork()).ldelim(),void 0!==e.episodePolicy&&t.ListPolicy.encode(e.episodePolicy,n.uint32(42).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],preferCached:!1,updateThrottling:0,showPolicy:void 0,episodePolicy:void 0};for(;o.pos>>3){case 1:a.item.push(o.string());break;case 2:a.preferCached=o.bool();break;case 3:a.updateThrottling=o.uint32();break;case 4:a.showPolicy=t.HeaderPolicy.decode(o,o.uint32());break;case 5:a.episodePolicy=t.ListPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>String(e))):[],preferCached:!!R(e.preferCached)&&Boolean(e.preferCached),updateThrottling:R(e.updateThrottling)?Number(e.updateThrottling):0,showPolicy:R(e.showPolicy)?t.HeaderPolicy.fromJSON(e.showPolicy):void 0,episodePolicy:R(e.episodePolicy)?t.ListPolicy.fromJSON(e.episodePolicy):void 0}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e)):n.item=[],void 0!==e.preferCached&&(n.preferCached=e.preferCached),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.showPolicy&&(n.showPolicy=e.showPolicy?t.HeaderPolicy.toJSON(e.showPolicy):void 0),void 0!==e.episodePolicy&&(n.episodePolicy=e.episodePolicy?t.ListPolicy.toJSON(e.episodePolicy):void 0),n},fromPartial(e){const n={item:[],preferCached:!1,updateThrottling:0,showPolicy:void 0,episodePolicy:void 0};return n.item=e.item?.map((e=>e))||[],n.preferCached=e.preferCached??!1,n.updateThrottling=e.updateThrottling??0,n.showPolicy=void 0!==e.showPolicy&&null!==e.showPolicy?t.HeaderPolicy.fromPartial(e.showPolicy):void 0,n.episodePolicy=void 0!==e.episodePolicy&&null!==e.episodePolicy?t.ListPolicy.fromPartial(e.episodePolicy):void 0,n}},t.GetDecorateResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.response&&c.Response.encode(e.response,n.uint32(10).fork()).ldelim(),void 0!==e.status&&t.Status.encode(e.status,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:void 0,status:void 0};for(;o.pos>>3){case 1:a.response=c.Response.decode(o,o.uint32());break;case 2:a.status=t.Status.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({response:R(e.response)?c.Response.fromJSON(e.response):void 0,status:R(e.status)?t.Status.fromJSON(e.status):void 0}),toJSON(e){const n={};return void 0!==e.response&&(n.response=e.response?c.Response.toJSON(e.response):void 0),void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),n},fromPartial(e){const n={response:void 0,status:void 0};return n.response=void 0!==e.response&&null!==e.response?c.Response.fromPartial(e.response):void 0,n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n}},t.GetUnfinishedEpisodesRequest={encode:(e,n=r.default.Writer.create())=>(0!==e.rangeStart&&n.uint32(8).int32(e.rangeStart),void 0!==e.rangeLength&&n.uint32(16).int32(e.rangeLength),""!==e.sort&&n.uint32(26).string(e.sort),""!==e.filter&&n.uint32(34).string(e.filter),0!==e.updateThrottling&&n.uint32(40).uint32(e.updateThrottling),0!==e.absTimeLeftTolerance&&n.uint32(48).uint32(e.absTimeLeftTolerance),0!==e.relTimeLeftTolerance&&n.uint32(57).double(e.relTimeLeftTolerance),!0===e.preferCached&&n.uint32(64).bool(e.preferCached),void 0!==e.policy&&t.ListPolicy.encode(e.policy,n.uint32(74).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={rangeStart:0,rangeLength:void 0,sort:"",filter:"",updateThrottling:0,absTimeLeftTolerance:0,relTimeLeftTolerance:0,preferCached:!1,policy:void 0};for(;o.pos>>3){case 1:a.rangeStart=o.int32();break;case 2:a.rangeLength=o.int32();break;case 3:a.sort=o.string();break;case 4:a.filter=o.string();break;case 5:a.updateThrottling=o.uint32();break;case 6:a.absTimeLeftTolerance=o.uint32();break;case 7:a.relTimeLeftTolerance=o.double();break;case 8:a.preferCached=o.bool();break;case 9:a.policy=t.ListPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({rangeStart:R(e.rangeStart)?Number(e.rangeStart):0,rangeLength:R(e.rangeLength)?Number(e.rangeLength):void 0,sort:R(e.sort)?String(e.sort):"",filter:R(e.filter)?String(e.filter):"",updateThrottling:R(e.updateThrottling)?Number(e.updateThrottling):0,absTimeLeftTolerance:R(e.absTimeLeftTolerance)?Number(e.absTimeLeftTolerance):0,relTimeLeftTolerance:R(e.relTimeLeftTolerance)?Number(e.relTimeLeftTolerance):0,preferCached:!!R(e.preferCached)&&Boolean(e.preferCached),policy:R(e.policy)?t.ListPolicy.fromJSON(e.policy):void 0}),toJSON(e){const n={};return void 0!==e.rangeStart&&(n.rangeStart=Math.round(e.rangeStart)),void 0!==e.rangeLength&&(n.rangeLength=Math.round(e.rangeLength)),void 0!==e.sort&&(n.sort=e.sort),void 0!==e.filter&&(n.filter=e.filter),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),void 0!==e.absTimeLeftTolerance&&(n.absTimeLeftTolerance=Math.round(e.absTimeLeftTolerance)),void 0!==e.relTimeLeftTolerance&&(n.relTimeLeftTolerance=e.relTimeLeftTolerance),void 0!==e.preferCached&&(n.preferCached=e.preferCached),void 0!==e.policy&&(n.policy=e.policy?t.ListPolicy.toJSON(e.policy):void 0),n},fromPartial(e){const n={rangeStart:0,rangeLength:void 0,sort:"",filter:"",updateThrottling:0,absTimeLeftTolerance:0,relTimeLeftTolerance:0,preferCached:!1,policy:void 0};return n.rangeStart=e.rangeStart??0,n.rangeLength=e.rangeLength??void 0,n.sort=e.sort??"",n.filter=e.filter??"",n.updateThrottling=e.updateThrottling??0,n.absTimeLeftTolerance=e.absTimeLeftTolerance??0,n.relTimeLeftTolerance=e.relTimeLeftTolerance??0,n.preferCached=e.preferCached??!1,n.policy=void 0!==e.policy&&null!==e.policy?t.ListPolicy.fromPartial(e.policy):void 0,n}},t.GetUnfinishedEpisodesResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.response&&u.Response.encode(e.response,n.uint32(10).fork()).ldelim(),void 0!==e.status&&t.Status.encode(e.status,n.uint32(18).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:void 0,status:void 0};for(;o.pos>>3){case 1:a.response=u.Response.decode(o,o.uint32());break;case 2:a.status=t.Status.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({response:R(e.response)?u.Response.fromJSON(e.response):void 0,status:R(e.status)?t.Status.fromJSON(e.status):void 0}),toJSON(e){const n={};return void 0!==e.response&&(n.response=e.response?u.Response.toJSON(e.response):void 0),void 0!==e.status&&(n.status=e.status?t.Status.toJSON(e.status):void 0),n},fromPartial(e){const n={response:void 0,status:void 0};return n.response=void 0!==e.response&&null!==e.response?u.Response.fromPartial(e.response):void 0,n.status=void 0!==e.status&&null!==e.status?t.Status.fromPartial(e.status):void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12158:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.show_cosmos.proto",t.ShowCollectionState={encode:(e,t=r.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={isInCollection:!1};for(;n.pos>>3==1)i.isInCollection=n.bool();else n.skipType(7&e)}return i},fromJSON(e){return{isInCollection:(t=e.isInCollection,null!=t&&Boolean(e.isInCollection))};var t},toJSON(e){const t={};return void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),t},fromPartial(e){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},20565:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(30707),s=n(16293),l=n(35176);function c(e){return null!=e}t.protobufPackage="spotify.show_cosmos.unfinished_episodes_request.proto",t.Episode={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episodeMetadata&&a.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.episodeCollectionState&&s.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.episodeOfflineState&&s.EpisodeOfflineState.encode(e.episodeOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.episodePlayState&&l.EpisodePlayState.encode(e.episodePlayState,t.uint32(34).fork()).ldelim(),""!==e.link&&t.uint32(42).string(e.link),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};for(;n.pos>>3){case 1:i.episodeMetadata=a.EpisodeMetadata.decode(n,n.uint32());break;case 2:i.episodeCollectionState=s.EpisodeCollectionState.decode(n,n.uint32());break;case 3:i.episodeOfflineState=s.EpisodeOfflineState.decode(n,n.uint32());break;case 4:i.episodePlayState=l.EpisodePlayState.decode(n,n.uint32());break;case 5:i.link=n.string();break;default:n.skipType(7&e)}}return i},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){const t={episodeMetadata:void 0,episodeCollectionState:void 0,episodeOfflineState:void 0,episodePlayState:void 0,link:""};return t.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?a.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,t.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?s.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,t.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?s.EpisodeOfflineState.fromPartial(e.episodeOfflineState):void 0,t.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?l.EpisodePlayState.fromPartial(e.episodePlayState):void 0,t.link=e.link??"",t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.episode)t.Episode.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={episode:[]};for(;o.pos>>3==2)a.episode.push(t.Episode.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({episode:Array.isArray(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){const n={episode:[]};return n.episode=e.episode?.map((e=>t.Episode.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},56050:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StorageClient=void 0;const o=n(33892),i=n(17816),r=n(61477);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getCacheSizeLimit(e){const t="spotify.storage.esperanto.proto.Storage",n="GetCacheSizeLimit",r=i.GetCacheSizeLimitParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.CacheSizeLimit.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}setCacheSizeLimit(e){const t="spotify.storage.esperanto.proto.Storage",n="SetCacheSizeLimit",a=i.SetCacheSizeLimitParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}deleteExpiredItems(e){const t="spotify.storage.esperanto.proto.Storage",n="DeleteExpiredItems",a=i.DeleteExpiredItemsParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}deleteUnlockedItems(e){const t="spotify.storage.esperanto.proto.Storage",n="DeleteUnlockedItems",a=i.DeleteUnlockedItemsParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.Empty.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getStats(e){const t="spotify.storage.esperanto.proto.Storage",n="GetStats",r=i.GetStatsParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.Stats.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getFileRanges(e){const t="spotify.storage.esperanto.proto.Storage",n="GetFileRanges",r=i.GetFileRangesParams.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.FileRanges.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.storage.esperanto.proto.Storage";static DECODERS={GetCacheSizeLimit:{request:i.GetCacheSizeLimitParams.decode,response:i.CacheSizeLimit.decode},SetCacheSizeLimit:{request:i.SetCacheSizeLimitParams.decode,response:r.Empty.decode},DeleteExpiredItems:{request:i.DeleteExpiredItemsParams.decode,response:r.Empty.decode},DeleteUnlockedItems:{request:i.DeleteUnlockedItemsParams.decode,response:r.Empty.decode},GetStats:{request:i.GetStatsParams.decode,response:i.Stats.decode},GetFileRanges:{request:i.GetFileRangesParams.decode,response:i.FileRanges.decode}}}t.StorageClient=a},60259:(e,t,n)=>{"use strict";t.tu=t.KQ=void 0;const o=n(56050);Object.defineProperty(t,"KQ",{enumerable:!0,get:function(){return o.StorageClient}}),t.tu=function(e){return new o.StorageClient(e)}},17816:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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=r.default.Writer.create())=>("0"!==e.size&&t.uint32(8).int64(e.size),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={size:"0"};return t.size=e.size??"0",t}},t.GetCacheSizeLimitParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.SetCacheSizeLimitParams={encode:(e,n=r.default.Writer.create())=>(void 0!==e.limit&&t.CacheSizeLimit.encode(e.limit,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={limit:void 0};for(;o.pos>>3==1)a.limit=t.CacheSizeLimit.decode(o,o.uint32());else o.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=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.DeleteUnlockedItemsParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.RealmStats={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={realm:0,size:"0",numEntries:"0",numCompleteEntries:"0"};return t.realm=e.realm??0,t.size=e.size??"0",t.numEntries=e.numEntries??"0",t.numCompleteEntries=e.numCompleteEntries??"0",t}},t.Stats={encode(e,n=r.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 o of e.realmStats)t.RealmStats.encode(o,n.uint32(74).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={cacheId:"",creationDateSec:"0",maxCacheSize:"0",currentSize:"0",currentLockedSize:"0",freeSpace:"0",totalSpace:"0",currentNumfiles:"0",realmStats:[]};for(;o.pos>>3){case 1:a.cacheId=o.string();break;case 2:a.creationDateSec=c(o.int64());break;case 3:a.maxCacheSize=c(o.int64());break;case 4:a.currentSize=c(o.int64());break;case 5:a.currentLockedSize=c(o.int64());break;case 6:a.freeSpace=c(o.int64());break;case 7:a.totalSpace=c(o.int64());break;case 8:a.currentNumfiles=c(o.int64());break;case 9:a.realmStats.push(t.RealmStats.decode(o,o.uint32()));break;default:o.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(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){const n={cacheId:"",creationDateSec:"0",maxCacheSize:"0",currentSize:"0",currentLockedSize:"0",freeSpace:"0",totalSpace:"0",currentNumfiles:"0",realmStats:[]};return n.cacheId=e.cacheId??"",n.creationDateSec=e.creationDateSec??"0",n.maxCacheSize=e.maxCacheSize??"0",n.currentSize=e.currentSize??"0",n.currentLockedSize=e.currentLockedSize??"0",n.freeSpace=e.freeSpace??"0",n.totalSpace=e.totalSpace??"0",n.currentNumfiles=e.currentNumfiles??"0",n.realmStats=e.realmStats?.map((e=>t.RealmStats.fromPartial(e)))||[],n}},t.GetStatsParams={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.FileRanges={encode(e,n=r.default.Writer.create()){!0===e.byteSizeKnown&&n.uint32(8).bool(e.byteSizeKnown),"0"!==e.byteSize&&n.uint32(16).uint64(e.byteSize);for(const o of e.ranges)t.FileRanges_Range.encode(o,n.uint32(26).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={byteSizeKnown:!1,byteSize:"0",ranges:[]};for(;o.pos>>3){case 1:a.byteSizeKnown=o.bool();break;case 2:a.byteSize=c(o.uint64());break;case 3:a.ranges.push(t.FileRanges_Range.decode(o,o.uint32()));break;default:o.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(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){const n={byteSizeKnown:!1,byteSize:"0",ranges:[]};return n.byteSizeKnown=e.byteSizeKnown??!1,n.byteSize=e.byteSize??"0",n.ranges=e.ranges?.map((e=>t.FileRanges_Range.fromPartial(e)))||[],n}},t.FileRanges_Range={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={fromByte:"0",toByte:"0"};return t.fromByte=e.fromByte??"0",t.toByte=e.toByte??"0",t}},t.GetFileRangesParams={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={realm:0,fileId:""};return t.realm=e.realm??0,t.fileId=e.fileId??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},61477:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},16390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryServiceClient=void 0;const o=n(33892),i=n(95773),r=n(50010),a=n(24972),s=n(93352),l=n(56868),c=n(10415),u=n(6323),d=n(85352);class p{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="Contains",a=i.YourLibraryContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.YourLibraryContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamContains(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",a="StreamContains",s=i.YourLibraryContainsRequest.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.YourLibraryContainsResponse.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}all(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="All",i=a.YourLibraryRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.YourLibraryResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamAll(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",i="StreamAll",r=a.YourLibraryRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=s.YourLibraryResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}pin(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="Pin",i=l.PinRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.PinResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}unPin(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="UnPin",i=l.PinRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.PinResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}movePin(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="MovePin",i=l.MovePinRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.PinResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}decorate(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="Decorate",i=c.YourLibraryDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=u.YourLibraryDecorateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamDecorate(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",i="StreamDecorate",r=c.YourLibraryDecorateRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=u.YourLibraryDecorateResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}isCurated(e){const t="spotify.your_library_esperanto.proto.YourLibraryService",n="IsCurated",i=d.IsCuratedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.IsCuratedResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamIsCurated(e,t){const n="spotify.your_library_esperanto.proto.YourLibraryService",i="StreamIsCurated",r=d.IsCuratedRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=d.IsCuratedResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}static SERVICE_ID="spotify.your_library_esperanto.proto.YourLibraryService";static DECODERS={Contains:{request:i.YourLibraryContainsRequest.decode,response:r.YourLibraryContainsResponse.decode},StreamContains:{request:i.YourLibraryContainsRequest.decode,response:r.YourLibraryContainsResponse.decode},All:{request:a.YourLibraryRequest.decode,response:s.YourLibraryResponse.decode},StreamAll:{request:a.YourLibraryRequest.decode,response:s.YourLibraryResponse.decode},Pin:{request:l.PinRequest.decode,response:l.PinResponse.decode},UnPin:{request:l.PinRequest.decode,response:l.PinResponse.decode},MovePin:{request:l.MovePinRequest.decode,response:l.PinResponse.decode},Decorate:{request:c.YourLibraryDecorateRequest.decode,response:u.YourLibraryDecorateResponse.decode},StreamDecorate:{request:c.YourLibraryDecorateRequest.decode,response:u.YourLibraryDecorateResponse.decode},IsCurated:{request:d.IsCuratedRequest.decode,response:d.IsCuratedResponse.decode},StreamIsCurated:{request:d.IsCuratedRequest.decode,response:d.IsCuratedResponse.decode}}}t.YourLibraryServiceClient=p},95375:(e,t,n)=>{"use strict";t.N6=t.oP=t.Pn=void 0;var o=n(16390);Object.defineProperty(t,"Pn",{enumerable:!0,get:function(){return o.YourLibraryServiceClient}});var i=n(56868);Object.defineProperty(t,"oP",{enumerable:!0,get:function(){return i.PinRequest}});var r=n(95773);var a=n(50010);var s=n(10415);var l=n(6323);var c=n(24972);Object.defineProperty(t,"N6",{enumerable:!0,get:function(){return c.YourLibraryRequest}});var u=n(93352)},85352:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsCuratedItem=t.IsCuratedResponse=t.IsCuratedRequest=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.IsCuratedRequest={encode(e,t=i.default.Writer.create()){0!==e.updateThrottling&&t.uint32(8).int32(e.updateThrottling);for(const n of e.uri)t.uint32(18).string(n);return""!==e.contextUri&&t.uint32(26).string(e.contextUri),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={updateThrottling:0,uri:[],contextUri:""};for(;n.pos>>3){case 1:r.updateThrottling=n.int32();break;case 2:r.uri.push(n.string());break;case 3:r.contextUri=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({updateThrottling:r(e.updateThrottling)?Number(e.updateThrottling):0,uri:Array.isArray(e?.uri)?e.uri.map((e=>String(e))):[],contextUri:r(e.contextUri)?String(e.contextUri):""}),toJSON(e){const t={};return void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),e.uri?t.uri=e.uri.map((e=>e)):t.uri=[],void 0!==e.contextUri&&(t.contextUri=e.contextUri),t},fromPartial(e){const t={updateThrottling:0,uri:[],contextUri:""};return t.updateThrottling=e.updateThrottling??0,t.uri=e.uri?.map((e=>e))||[],t.contextUri=e.contextUri??"",t}},t.IsCuratedResponse={encode(e,n=i.default.Writer.create()){for(const o of e.item)t.IsCuratedItem.encode(o,n.uint32(10).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={item:[],statusCode:0,error:""};for(;o.pos>>3){case 1:a.item.push(t.IsCuratedItem.decode(o,o.uint32()));break;case 98:a.statusCode=o.uint32();break;case 99:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.IsCuratedItem.fromJSON(e))):[],statusCode:r(e.statusCode)?Number(e.statusCode):0,error:r(e.error)?String(e.error):""}),toJSON(e){const n={};return e.item?n.item=e.item.map((e=>e?t.IsCuratedItem.toJSON(e):void 0)):n.item=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={item:[],statusCode:0,error:""};return n.item=e.item?.map((e=>t.IsCuratedItem.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}},t.IsCuratedItem={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.isCurated&&t.uint32(16).bool(e.isCurated),!0===e.isInCollection&&t.uint32(24).bool(e.isInCollection),!0===e.isBanned&&t.uint32(32).bool(e.isBanned),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",isCurated:!1,isInCollection:!1,isBanned:!1};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.isCurated=n.bool();break;case 3:r.isInCollection=n.bool();break;case 4:r.isBanned=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:r(e.uri)?String(e.uri):"",isCurated:!!r(e.isCurated)&&Boolean(e.isCurated),isInCollection:!!r(e.isInCollection)&&Boolean(e.isInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.isCurated&&(t.isCurated=e.isCurated),void 0!==e.isInCollection&&(t.isInCollection=e.isInCollection),void 0!==e.isBanned&&(t.isBanned=e.isBanned),t},fromPartial(e){const t={uri:"",isCurated:!1,isInCollection:!1,isBanned:!1};return t.uri=e.uri??"",t.isCurated=e.isCurated??!1,t.isInCollection=e.isInCollection??!1,t.isBanned=e.isBanned??!1,t}}},56868:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PinItem=t.PinResponse=t.MovePinRequest=t.PinRequest=t.pinResponse_PinStatusToJSON=t.pinResponse_PinStatusFromJSON=t.PinResponse_PinStatus=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"UNKNOWN":return r.UNKNOWN;case 1:case"PINNED":return r.PINNED;case 2:case"NOT_PINNED":return r.NOT_PINNED;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.UNKNOWN:return"UNKNOWN";case r.PINNED:return"PINNED";case r.NOT_PINNED:return"NOT_PINNED";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.PINNED=1]="PINNED",e[e.NOT_PINNED=2]="NOT_PINNED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.PinResponse_PinStatus||(t.PinResponse_PinStatus={})),t.pinResponse_PinStatusFromJSON=a,t.pinResponse_PinStatusToJSON=s,t.PinRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.afterUri&&t.uint32(18).string(e.afterUri),void 0!==e.beforeUri&&t.uint32(26).string(e.beforeUri),void 0!==e.first&&t.uint32(32).bool(e.first),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",afterUri:void 0,beforeUri:void 0,first:void 0};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.afterUri=n.string();break;case 3:r.beforeUri=n.string();break;case 4:r.first=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",afterUri:l(e.afterUri)?String(e.afterUri):void 0,beforeUri:l(e.beforeUri)?String(e.beforeUri):void 0,first:l(e.first)?Boolean(e.first):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.afterUri&&(t.afterUri=e.afterUri),void 0!==e.beforeUri&&(t.beforeUri=e.beforeUri),void 0!==e.first&&(t.first=e.first),t},fromPartial(e){const t={uri:"",afterUri:void 0,beforeUri:void 0,first:void 0};return t.uri=e.uri??"",t.afterUri=e.afterUri??void 0,t.beforeUri=e.beforeUri??void 0,t.first=e.first??void 0,t}},t.MovePinRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.moveUri&&t.uint32(10).string(e.moveUri),void 0!==e.afterUri&&t.uint32(18).string(e.afterUri),void 0!==e.beforeUri&&t.uint32(26).string(e.beforeUri),void 0!==e.first&&t.uint32(32).bool(e.first),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={moveUri:"",afterUri:void 0,beforeUri:void 0,first:void 0};for(;n.pos>>3){case 1:r.moveUri=n.string();break;case 2:r.afterUri=n.string();break;case 3:r.beforeUri=n.string();break;case 4:r.first=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({moveUri:l(e.moveUri)?String(e.moveUri):"",afterUri:l(e.afterUri)?String(e.afterUri):void 0,beforeUri:l(e.beforeUri)?String(e.beforeUri):void 0,first:l(e.first)?Boolean(e.first):void 0}),toJSON(e){const t={};return void 0!==e.moveUri&&(t.moveUri=e.moveUri),void 0!==e.afterUri&&(t.afterUri=e.afterUri),void 0!==e.beforeUri&&(t.beforeUri=e.beforeUri),void 0!==e.first&&(t.first=e.first),t},fromPartial(e){const t={moveUri:"",afterUri:void 0,beforeUri:void 0,first:void 0};return t.moveUri=e.moveUri??"",t.afterUri=e.afterUri??void 0,t.beforeUri=e.beforeUri??void 0,t.first=e.first??void 0,t}},t.PinResponse={encode:(e,t=i.default.Writer.create())=>(0!==e.status&&t.uint32(8).int32(e.status),!0===e.hasMaximumPinnedItems&&t.uint32(16).bool(e.hasMaximumPinnedItems),0!==e.maximumPinnedItems&&t.uint32(24).int32(e.maximumPinnedItems),0!==e.statusCode&&t.uint32(784).uint32(e.statusCode),""!==e.error&&t.uint32(794).string(e.error),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:0,hasMaximumPinnedItems:!1,maximumPinnedItems:0,statusCode:0,error:""};for(;n.pos>>3){case 1:r.status=n.int32();break;case 2:r.hasMaximumPinnedItems=n.bool();break;case 3:r.maximumPinnedItems=n.int32();break;case 98:r.statusCode=n.uint32();break;case 99:r.error=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({status:l(e.status)?a(e.status):0,hasMaximumPinnedItems:!!l(e.hasMaximumPinnedItems)&&Boolean(e.hasMaximumPinnedItems),maximumPinnedItems:l(e.maximumPinnedItems)?Number(e.maximumPinnedItems):0,statusCode:l(e.statusCode)?Number(e.statusCode):0,error:l(e.error)?String(e.error):""}),toJSON(e){const t={};return void 0!==e.status&&(t.status=s(e.status)),void 0!==e.hasMaximumPinnedItems&&(t.hasMaximumPinnedItems=e.hasMaximumPinnedItems),void 0!==e.maximumPinnedItems&&(t.maximumPinnedItems=Math.round(e.maximumPinnedItems)),void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(t.error=e.error),t},fromPartial(e){const t={status:0,hasMaximumPinnedItems:!1,maximumPinnedItems:0,statusCode:0,error:""};return t.status=e.status??0,t.hasMaximumPinnedItems=e.hasMaximumPinnedItems??!1,t.maximumPinnedItems=e.maximumPinnedItems??0,t.statusCode=e.statusCode??0,t.error=e.error??"",t}},t.PinItem={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.inLibrary&&t.uint32(16).bool(e.inLibrary),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",inLibrary:!1};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.inLibrary=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:l(e.uri)?String(e.uri):"",inLibrary:!!l(e.inLibrary)&&Boolean(e.inLibrary)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.inLibrary&&(t.inLibrary=e.inLibrary),t},fromPartial(e){const t={uri:"",inLibrary:!1};return t.uri=e.uri??"",t.inLibrary=e.inLibrary??!1,t}}},9144:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibrarySortOrder=t.YourLibraryFilters=t.YourLibraryPseudoPlaylistConfig=t.YourLibraryLabelAndImage=t.yourLibrarySortOrder_SortOrderToJSON=t.yourLibrarySortOrder_SortOrderFromJSON=t.YourLibrarySortOrder_SortOrder=t.yourLibraryFilters_FilterToJSON=t.yourLibraryFilters_FilterFromJSON=t.YourLibraryFilters_Filter=t.protobufPackage=void 0;const i=o(n(33892));var r,a;function s(e){switch(e){case 0:case"ALBUM":return r.ALBUM;case 1:case"ARTIST":return r.ARTIST;case 2:case"PLAYLIST":return r.PLAYLIST;case 3:case"SHOW":return r.SHOW;case 4:case"BOOK":return r.BOOK;case 100:case"DOWNLOADED":return r.DOWNLOADED;case 101:case"WRITABLE":return r.WRITABLE;case 102:case"BY_YOU":return r.BY_YOU;case 103:case"BY_SPOTIFY":return r.BY_SPOTIFY;case 104:case"UNPLAYED":return r.UNPLAYED;case 105:case"IN_PROGRESS":return r.IN_PROGRESS;default:return r.UNRECOGNIZED}}function l(e){switch(e){case r.ALBUM:return"ALBUM";case r.ARTIST:return"ARTIST";case r.PLAYLIST:return"PLAYLIST";case r.SHOW:return"SHOW";case r.BOOK:return"BOOK";case r.DOWNLOADED:return"DOWNLOADED";case r.WRITABLE:return"WRITABLE";case r.BY_YOU:return"BY_YOU";case r.BY_SPOTIFY:return"BY_SPOTIFY";case r.UNPLAYED:return"UNPLAYED";case r.IN_PROGRESS:return"IN_PROGRESS";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function c(e){switch(e){case 0:case"NAME":return a.NAME;case 1:case"RECENTLY_ADDED":return a.RECENTLY_ADDED;case 2:case"CREATOR":return a.CREATOR;case 3:case"RECENTLY_PLAYED":return a.RECENTLY_PLAYED;case 4:case"CUSTOM":return a.CUSTOM;case 5:case"RECENTLY_UPDATED":return a.RECENTLY_UPDATED;case 6:case"RECENTLY_PLAYED_OR_ADDED":return a.RECENTLY_PLAYED_OR_ADDED;case 7:case"RELEVANCE":return a.RELEVANCE;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.NAME:return"NAME";case a.RECENTLY_ADDED:return"RECENTLY_ADDED";case a.CREATOR:return"CREATOR";case a.RECENTLY_PLAYED:return"RECENTLY_PLAYED";case a.CUSTOM:return"CUSTOM";case a.RECENTLY_UPDATED:return"RECENTLY_UPDATED";case a.RECENTLY_PLAYED_OR_ADDED:return"RECENTLY_PLAYED_OR_ADDED";case a.RELEVANCE:return"RELEVANCE";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.ALBUM=0]="ALBUM",e[e.ARTIST=1]="ARTIST",e[e.PLAYLIST=2]="PLAYLIST",e[e.SHOW=3]="SHOW",e[e.BOOK=4]="BOOK",e[e.DOWNLOADED=100]="DOWNLOADED",e[e.WRITABLE=101]="WRITABLE",e[e.BY_YOU=102]="BY_YOU",e[e.BY_SPOTIFY=103]="BY_SPOTIFY",e[e.UNPLAYED=104]="UNPLAYED",e[e.IN_PROGRESS=105]="IN_PROGRESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.YourLibraryFilters_Filter||(t.YourLibraryFilters_Filter={})),t.yourLibraryFilters_FilterFromJSON=s,t.yourLibraryFilters_FilterToJSON=l,function(e){e[e.NAME=0]="NAME",e[e.RECENTLY_ADDED=1]="RECENTLY_ADDED",e[e.CREATOR=2]="CREATOR",e[e.RECENTLY_PLAYED=3]="RECENTLY_PLAYED",e[e.CUSTOM=4]="CUSTOM",e[e.RECENTLY_UPDATED=5]="RECENTLY_UPDATED",e[e.RECENTLY_PLAYED_OR_ADDED=6]="RECENTLY_PLAYED_OR_ADDED",e[e.RELEVANCE=7]="RELEVANCE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.YourLibrarySortOrder_SortOrder||(t.YourLibrarySortOrder_SortOrder={})),t.yourLibrarySortOrder_SortOrderFromJSON=c,t.yourLibrarySortOrder_SortOrderToJSON=u,t.YourLibraryLabelAndImage={encode:(e,t=i.default.Writer.create())=>(""!==e.label&&t.uint32(10).string(e.label),""!==e.image&&t.uint32(18).string(e.image),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={label:"",image:""};for(;n.pos>>3){case 1:r.label=n.string();break;case 2:r.image=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({label:d(e.label)?String(e.label):"",image:d(e.image)?String(e.image):""}),toJSON(e){const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.image&&(t.image=e.image),t},fromPartial(e){const t={label:"",image:""};return t.label=e.label??"",t.image=e.image??"",t}},t.YourLibraryPseudoPlaylistConfig={encode:(e,n=i.default.Writer.create())=>(void 0!==e.likedSongs&&t.YourLibraryLabelAndImage.encode(e.likedSongs,n.uint32(10).fork()).ldelim(),void 0!==e.yourEpisodes&&t.YourLibraryLabelAndImage.encode(e.yourEpisodes,n.uint32(18).fork()).ldelim(),void 0!==e.newEpisodes&&t.YourLibraryLabelAndImage.encode(e.newEpisodes,n.uint32(26).fork()).ldelim(),void 0!==e.localFiles&&t.YourLibraryLabelAndImage.encode(e.localFiles,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0};for(;o.pos>>3){case 1:a.likedSongs=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;case 2:a.yourEpisodes=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;case 3:a.newEpisodes=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;case 4:a.localFiles=t.YourLibraryLabelAndImage.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({likedSongs:d(e.likedSongs)?t.YourLibraryLabelAndImage.fromJSON(e.likedSongs):void 0,yourEpisodes:d(e.yourEpisodes)?t.YourLibraryLabelAndImage.fromJSON(e.yourEpisodes):void 0,newEpisodes:d(e.newEpisodes)?t.YourLibraryLabelAndImage.fromJSON(e.newEpisodes):void 0,localFiles:d(e.localFiles)?t.YourLibraryLabelAndImage.fromJSON(e.localFiles):void 0}),toJSON(e){const n={};return void 0!==e.likedSongs&&(n.likedSongs=e.likedSongs?t.YourLibraryLabelAndImage.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(n.yourEpisodes=e.yourEpisodes?t.YourLibraryLabelAndImage.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(n.newEpisodes=e.newEpisodes?t.YourLibraryLabelAndImage.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(n.localFiles=e.localFiles?t.YourLibraryLabelAndImage.toJSON(e.localFiles):void 0),n},fromPartial(e){const n={likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0};return n.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?t.YourLibraryLabelAndImage.fromPartial(e.likedSongs):void 0,n.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.YourLibraryLabelAndImage.fromPartial(e.yourEpisodes):void 0,n.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?t.YourLibraryLabelAndImage.fromPartial(e.newEpisodes):void 0,n.localFiles=void 0!==e.localFiles&&null!==e.localFiles?t.YourLibraryLabelAndImage.fromPartial(e.localFiles):void 0,n}},t.YourLibraryFilters={encode(e,t=i.default.Writer.create()){t.uint32(10).fork();for(const n of e.filter)t.int32(n);return t.ldelim(),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={filter:[]};for(;n.pos>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({filter:Array.isArray(e?.filter)?e.filter.map((e=>s(e))):[]}),toJSON(e){const t={};return e.filter?t.filter=e.filter.map((e=>l(e))):t.filter=[],t},fromPartial(e){const t={filter:[]};return t.filter=e.filter?.map((e=>e))||[],t}},t.YourLibrarySortOrder={encode:(e,t=i.default.Writer.create())=>(0!==e.sortOrder&&t.uint32(8).int32(e.sortOrder),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sortOrder:0};for(;n.pos>>3==1)r.sortOrder=n.int32();else n.skipType(7&e)}return r},fromJSON:e=>({sortOrder:d(e.sortOrder)?c(e.sortOrder):0}),toJSON(e){const t={};return void 0!==e.sortOrder&&(t.sortOrder=u(e.sortOrder)),t},fromPartial(e){const t={sortOrder:0};return t.sortOrder=e.sortOrder??0,t}}},95773:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryContainsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(9144);function a(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryContainsRequest={encode(e,t=i.default.Writer.create()){for(const n of e.requestedUri)t.uint32(26).string(n);return void 0!==e.pseudoPlaylistConfig&&r.YourLibraryPseudoPlaylistConfig.encode(e.pseudoPlaylistConfig,t.uint32(34).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(40).int32(e.updateThrottling),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos>>3){case 3:a.requestedUri.push(n.string());break;case 4:a.pseudoPlaylistConfig=r.YourLibraryPseudoPlaylistConfig.decode(n,n.uint32());break;case 5:a.updateThrottling=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({requestedUri:Array.isArray(e?.requestedUri)?e.requestedUri.map((e=>String(e))):[],pseudoPlaylistConfig:a(e.pseudoPlaylistConfig)?r.YourLibraryPseudoPlaylistConfig.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:a(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return e.requestedUri?t.requestedUri=e.requestedUri.map((e=>e)):t.requestedUri=[],void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.toJSON(e.pseudoPlaylistConfig):void 0),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};return t.requestedUri=e.requestedUri?.map((e=>e))||[],t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}}},50010:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryContainsResponse=t.YourLibraryContainsResponseEntity=t.YourLibraryContainsResponseHeader=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryContainsResponseHeader={encode:(e,t=i.default.Writer.create())=>(!0===e.isLoading&&t.uint32(16).bool(e.isLoading),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isLoading:!1};for(;n.pos>>3==2)r.isLoading=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isLoading:!!r(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={isLoading:!1};return t.isLoading=e.isLoading??!1,t}},t.YourLibraryContainsResponseEntity={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),!0===e.isInLibrary&&t.uint32(16).bool(e.isInLibrary),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",isInLibrary:!1};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.isInLibrary=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:r(e.uri)?String(e.uri):"",isInLibrary:!!r(e.isInLibrary)&&Boolean(e.isInLibrary)}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.isInLibrary&&(t.isInLibrary=e.isInLibrary),t},fromPartial(e){const t={uri:"",isInLibrary:!1};return t.uri=e.uri??"",t.isInLibrary=e.isInLibrary??!1,t}},t.YourLibraryContainsResponse={encode(e,n=i.default.Writer.create()){void 0!==e.header&&t.YourLibraryContainsResponseHeader.encode(e.header,n.uint32(10).fork()).ldelim();for(const o of e.entity)t.YourLibraryContainsResponseEntity.encode(o,n.uint32(18).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={header:void 0,entity:[],statusCode:0,error:""};for(;o.pos>>3){case 1:a.header=t.YourLibraryContainsResponseHeader.decode(o,o.uint32());break;case 2:a.entity.push(t.YourLibraryContainsResponseEntity.decode(o,o.uint32()));break;case 98:a.statusCode=o.uint32();break;case 99:a.error=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({header:r(e.header)?t.YourLibraryContainsResponseHeader.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>t.YourLibraryContainsResponseEntity.fromJSON(e))):[],statusCode:r(e.statusCode)?Number(e.statusCode):0,error:r(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryContainsResponseHeader.toJSON(e.header):void 0),e.entity?n.entity=e.entity.map((e=>e?t.YourLibraryContainsResponseEntity.toJSON(e):void 0)):n.entity=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={header:void 0,entity:[],statusCode:0,error:""};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryContainsResponseHeader.fromPartial(e.header):void 0,n.entity=e.entity?.map((e=>t.YourLibraryContainsResponseEntity.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},10415:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryDecorateRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(9144);function a(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryDecorateRequest={encode(e,t=i.default.Writer.create()){for(const n of e.requestedUri)t.uint32(26).string(n);return void 0!==e.pseudoPlaylistConfig&&r.YourLibraryPseudoPlaylistConfig.encode(e.pseudoPlaylistConfig,t.uint32(50).fork()).ldelim(),0!==e.updateThrottling&&t.uint32(56).int32(e.updateThrottling),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};for(;n.pos>>3){case 3:a.requestedUri.push(n.string());break;case 6:a.pseudoPlaylistConfig=r.YourLibraryPseudoPlaylistConfig.decode(n,n.uint32());break;case 7:a.updateThrottling=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({requestedUri:Array.isArray(e?.requestedUri)?e.requestedUri.map((e=>String(e))):[],pseudoPlaylistConfig:a(e.pseudoPlaylistConfig)?r.YourLibraryPseudoPlaylistConfig.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:a(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const t={};return e.requestedUri?t.requestedUri=e.requestedUri.map((e=>e)):t.requestedUri=[],void 0!==e.pseudoPlaylistConfig&&(t.pseudoPlaylistConfig=e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.toJSON(e.pseudoPlaylistConfig):void 0),void 0!==e.updateThrottling&&(t.updateThrottling=Math.round(e.updateThrottling)),t},fromPartial(e){const t={requestedUri:[],pseudoPlaylistConfig:void 0,updateThrottling:0};return t.requestedUri=e.requestedUri?.map((e=>e))||[],t.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?r.YourLibraryPseudoPlaylistConfig.fromPartial(e.pseudoPlaylistConfig):void 0,t.updateThrottling=e.updateThrottling??0,t}}},6323:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryDecorateResponse=t.YourLibraryDecorateResponseHeader=t.protobufPackage=void 0;const i=o(n(33892)),r=n(39266);function a(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryDecorateResponseHeader={encode:(e,t=i.default.Writer.create())=>(!0===e.isLoading&&t.uint32(16).bool(e.isLoading),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isLoading:!1};for(;n.pos>>3==2)r.isLoading=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)}),toJSON(e){const t={};return void 0!==e.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={isLoading:!1};return t.isLoading=e.isLoading??!1,t}},t.YourLibraryDecorateResponse={encode(e,n=i.default.Writer.create()){void 0!==e.header&&t.YourLibraryDecorateResponseHeader.encode(e.header,n.uint32(10).fork()).ldelim();for(const t of e.entity)r.YourLibraryDecoratedEntity.encode(t,n.uint32(18).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).uint32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={header:void 0,entity:[],statusCode:0,error:""};for(;o.pos>>3){case 1:s.header=t.YourLibraryDecorateResponseHeader.decode(o,o.uint32());break;case 2:s.entity.push(r.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;case 98:s.statusCode=o.uint32();break;case 99:s.error=o.string();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({header:a(e.header)?t.YourLibraryDecorateResponseHeader.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>r.YourLibraryDecoratedEntity.fromJSON(e))):[],statusCode:a(e.statusCode)?Number(e.statusCode):0,error:a(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryDecorateResponseHeader.toJSON(e.header):void 0),e.entity?n.entity=e.entity.map((e=>e?r.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.entity=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={header:void 0,entity:[],statusCode:0,error:""};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryDecorateResponseHeader.fromPartial(e.header):void 0,n.entity=e.entity?.map((e=>r.YourLibraryDecoratedEntity.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},39266:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryAvailableEntityTypes=t.YourLibraryDecoratedEntity=t.YourLibraryBookExtraInfo=t.YourLibraryLocalFilesExtraInfo=t.YourLibraryNewEpisodesExtraInfo=t.YourLibraryYourEpisodesExtraInfo=t.YourLibraryLikedSongsExtraInfo=t.YourLibraryFolderExtraInfo=t.YourLibraryShowExtraInfo=t.YourLibraryPlaylistExtraInfo=t.YourLibraryArtistExtraInfo=t.YourLibraryAlbumExtraInfo=t.Offline=t.YourLibraryEntityInfo=t.yourLibraryBookExtraInfo_AccessToJSON=t.yourLibraryBookExtraInfo_AccessFromJSON=t.YourLibraryBookExtraInfo_Access=t.offline_AvailabilityToJSON=t.offline_AvailabilityFromJSON=t.Offline_Availability=t.yourLibraryEntityInfo_PinnableToJSON=t.yourLibraryEntityInfo_PinnableFromJSON=t.YourLibraryEntityInfo_Pinnable=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"YES":return a.YES;case 1:case"NO_IN_FOLDER":return a.NO_IN_FOLDER;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.YES:return"YES";case a.NO_IN_FOLDER:return"NO_IN_FOLDER";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"UNKNOWN":return s.UNKNOWN;case 1:case"NO":return s.NO;case 2:case"YES":return s.YES;case 3:case"DOWNLOADING":return s.DOWNLOADING;case 4:case"WAITING":return s.WAITING;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.UNKNOWN:return"UNKNOWN";case s.NO:return"NO";case s.YES:return"YES";case s.DOWNLOADING:return"DOWNLOADING";case s.WAITING:return"WAITING";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"OPEN":return l.OPEN;case 1:case"LOCKED":return l.LOCKED;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.OPEN:return"OPEN";case l.LOCKED:return"LOCKED";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){return e.toString()}function g(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.YES=0]="YES",e[e.NO_IN_FOLDER=1]="NO_IN_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.YourLibraryEntityInfo_Pinnable||(t.YourLibraryEntityInfo_Pinnable={})),t.yourLibraryEntityInfo_PinnableFromJSON=c,t.yourLibraryEntityInfo_PinnableToJSON=u,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO=1]="NO",e[e.YES=2]="YES",e[e.DOWNLOADING=3]="DOWNLOADING",e[e.WAITING=4]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.Offline_Availability||(t.Offline_Availability={})),t.offline_AvailabilityFromJSON=d,t.offline_AvailabilityToJSON=p,function(e){e[e.OPEN=0]="OPEN",e[e.LOCKED=1]="LOCKED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.YourLibraryBookExtraInfo_Access||(t.YourLibraryBookExtraInfo_Access={})),t.yourLibraryBookExtraInfo_AccessFromJSON=f,t.yourLibraryBookExtraInfo_AccessToJSON=h,t.YourLibraryEntityInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.key&&t.uint32(10).string(e.key),""!==e.name&&t.uint32(18).string(e.name),""!==e.uri&&t.uint32(26).string(e.uri),""!==e.groupLabel&&t.uint32(42).string(e.groupLabel),""!==e.imageUri&&t.uint32(50).string(e.imageUri),!0===e.pinned&&t.uint32(56).bool(e.pinned),0!==e.pinnable&&t.uint32(64).int32(e.pinnable),0!==e.offlineAvailability&&t.uint32(72).int32(e.offlineAvailability),"0"!==e.addTime&&t.uint32(88).int64(e.addTime),"0"!==e.lastPlayed&&t.uint32(96).int64(e.lastPlayed),!0===e.assistedCuration&&t.uint32(104).bool(e.assistedCuration),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={key:"",name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0,addTime:"0",lastPlayed:"0",assistedCuration:!1};for(;n.pos>>3){case 1:i.key=n.string();break;case 2:i.name=n.string();break;case 3:i.uri=n.string();break;case 5:i.groupLabel=n.string();break;case 6:i.imageUri=n.string();break;case 7:i.pinned=n.bool();break;case 8:i.pinnable=n.int32();break;case 9:i.offlineAvailability=n.int32();break;case 11:i.addTime=m(n.int64());break;case 12:i.lastPlayed=m(n.int64());break;case 13:i.assistedCuration=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({key:g(e.key)?String(e.key):"",name:g(e.name)?String(e.name):"",uri:g(e.uri)?String(e.uri):"",groupLabel:g(e.groupLabel)?String(e.groupLabel):"",imageUri:g(e.imageUri)?String(e.imageUri):"",pinned:!!g(e.pinned)&&Boolean(e.pinned),pinnable:g(e.pinnable)?c(e.pinnable):0,offlineAvailability:g(e.offlineAvailability)?d(e.offlineAvailability):0,addTime:g(e.addTime)?String(e.addTime):"0",lastPlayed:g(e.lastPlayed)?String(e.lastPlayed):"0",assistedCuration:!!g(e.assistedCuration)&&Boolean(e.assistedCuration)}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.name&&(t.name=e.name),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.pinned&&(t.pinned=e.pinned),void 0!==e.pinnable&&(t.pinnable=u(e.pinnable)),void 0!==e.offlineAvailability&&(t.offlineAvailability=p(e.offlineAvailability)),void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.lastPlayed&&(t.lastPlayed=e.lastPlayed),void 0!==e.assistedCuration&&(t.assistedCuration=e.assistedCuration),t},fromPartial(e){const t={key:"",name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0,addTime:"0",lastPlayed:"0",assistedCuration:!1};return t.key=e.key??"",t.name=e.name??"",t.uri=e.uri??"",t.groupLabel=e.groupLabel??"",t.imageUri=e.imageUri??"",t.pinned=e.pinned??!1,t.pinnable=e.pinnable??0,t.offlineAvailability=e.offlineAvailability??0,t.addTime=e.addTime??"0",t.lastPlayed=e.lastPlayed??"0",t.assistedCuration=e.assistedCuration??!1,t}},t.Offline={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.YourLibraryAlbumExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.artistName&&t.uint32(10).string(e.artistName),""!==e.artistUri&&t.uint32(18).string(e.artistUri),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={artistName:"",artistUri:""};for(;n.pos>>3){case 1:i.artistName=n.string();break;case 2:i.artistUri=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({artistName:g(e.artistName)?String(e.artistName):"",artistUri:g(e.artistUri)?String(e.artistUri):""}),toJSON(e){const t={};return void 0!==e.artistName&&(t.artistName=e.artistName),void 0!==e.artistUri&&(t.artistUri=e.artistUri),t},fromPartial(e){const t={artistName:"",artistUri:""};return t.artistName=e.artistName??"",t.artistUri=e.artistUri??"",t}},t.YourLibraryArtistExtraInfo={encode:(e,t=r.default.Writer.create())=>(!0===e.hasLikedTracksOrAlbums&&t.uint32(8).bool(e.hasLikedTracksOrAlbums),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={hasLikedTracksOrAlbums:!1};for(;n.pos>>3==1)i.hasLikedTracksOrAlbums=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({hasLikedTracksOrAlbums:!!g(e.hasLikedTracksOrAlbums)&&Boolean(e.hasLikedTracksOrAlbums)}),toJSON(e){const t={};return void 0!==e.hasLikedTracksOrAlbums&&(t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums),t},fromPartial(e){const t={hasLikedTracksOrAlbums:!1};return t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums??!1,t}},t.YourLibraryPlaylistExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.creatorName&&t.uint32(10).string(e.creatorName),""!==e.creatorUri&&t.uint32(66).string(e.creatorUri),!0===e.isLoading&&t.uint32(40).bool(e.isLoading),!0===e.canView&&t.uint32(48).bool(e.canView),!0===e.canAdd&&t.uint32(72).bool(e.canAdd),""!==e.rowId&&t.uint32(58).string(e.rowId),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={creatorName:"",creatorUri:"",isLoading:!1,canView:!1,canAdd:!1,rowId:""};for(;n.pos>>3){case 1:i.creatorName=n.string();break;case 8:i.creatorUri=n.string();break;case 5:i.isLoading=n.bool();break;case 6:i.canView=n.bool();break;case 9:i.canAdd=n.bool();break;case 7:i.rowId=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({creatorName:g(e.creatorName)?String(e.creatorName):"",creatorUri:g(e.creatorUri)?String(e.creatorUri):"",isLoading:!!g(e.isLoading)&&Boolean(e.isLoading),canView:!!g(e.canView)&&Boolean(e.canView),canAdd:!!g(e.canAdd)&&Boolean(e.canAdd),rowId:g(e.rowId)?String(e.rowId):""}),toJSON(e){const t={};return void 0!==e.creatorName&&(t.creatorName=e.creatorName),void 0!==e.creatorUri&&(t.creatorUri=e.creatorUri),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdd&&(t.canAdd=e.canAdd),void 0!==e.rowId&&(t.rowId=e.rowId),t},fromPartial(e){const t={creatorName:"",creatorUri:"",isLoading:!1,canView:!1,canAdd:!1,rowId:""};return t.creatorName=e.creatorName??"",t.creatorUri=e.creatorUri??"",t.isLoading=e.isLoading??!1,t.canView=e.canView??!1,t.canAdd=e.canAdd??!1,t.rowId=e.rowId??"",t}},t.YourLibraryShowExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.creatorName&&t.uint32(10).string(e.creatorName),"0"!==e.publishDate&&t.uint32(32).int64(e.publishDate),!0===e.isMusicAndTalk&&t.uint32(40).bool(e.isMusicAndTalk),0!==e.numberOfDownloadedEpisodes&&t.uint32(48).int32(e.numberOfDownloadedEpisodes),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};for(;n.pos>>3){case 1:i.creatorName=n.string();break;case 4:i.publishDate=m(n.int64());break;case 5:i.isMusicAndTalk=n.bool();break;case 6:i.numberOfDownloadedEpisodes=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({creatorName:g(e.creatorName)?String(e.creatorName):"",publishDate:g(e.publishDate)?String(e.publishDate):"0",isMusicAndTalk:!!g(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),numberOfDownloadedEpisodes:g(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),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=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};return t.creatorName=e.creatorName??"",t.publishDate=e.publishDate??"0",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryFolderExtraInfo={encode(e,n=r.default.Writer.create()){0!==e.numberOfPlaylists&&n.uint32(16).int32(e.numberOfPlaylists),0!==e.numberOfFolders&&n.uint32(24).int32(e.numberOfFolders),""!==e.rowId&&n.uint32(34).string(e.rowId);for(const o of e.entity)t.YourLibraryDecoratedEntity.encode(o,n.uint32(42).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={numberOfPlaylists:0,numberOfFolders:0,rowId:"",entity:[]};for(;o.pos>>3){case 2:a.numberOfPlaylists=o.int32();break;case 3:a.numberOfFolders=o.int32();break;case 4:a.rowId=o.string();break;case 5:a.entity.push(t.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({numberOfPlaylists:g(e.numberOfPlaylists)?Number(e.numberOfPlaylists):0,numberOfFolders:g(e.numberOfFolders)?Number(e.numberOfFolders):0,rowId:g(e.rowId)?String(e.rowId):"",entity:Array.isArray(e?.entity)?e.entity.map((e=>t.YourLibraryDecoratedEntity.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.numberOfPlaylists&&(n.numberOfPlaylists=Math.round(e.numberOfPlaylists)),void 0!==e.numberOfFolders&&(n.numberOfFolders=Math.round(e.numberOfFolders)),void 0!==e.rowId&&(n.rowId=e.rowId),e.entity?n.entity=e.entity.map((e=>e?t.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.entity=[],n},fromPartial(e){const n={numberOfPlaylists:0,numberOfFolders:0,rowId:"",entity:[]};return n.numberOfPlaylists=e.numberOfPlaylists??0,n.numberOfFolders=e.numberOfFolders??0,n.rowId=e.rowId??"",n.entity=e.entity?.map((e=>t.YourLibraryDecoratedEntity.fromPartial(e)))||[],n}},t.YourLibraryLikedSongsExtraInfo={encode:(e,t=r.default.Writer.create())=>(0!==e.numberOfSongs&&t.uint32(24).int32(e.numberOfSongs),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={numberOfSongs:0};for(;n.pos>>3==3)i.numberOfSongs=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({numberOfSongs:g(e.numberOfSongs)?Number(e.numberOfSongs):0}),toJSON(e){const t={};return void 0!==e.numberOfSongs&&(t.numberOfSongs=Math.round(e.numberOfSongs)),t},fromPartial(e){const t={numberOfSongs:0};return t.numberOfSongs=e.numberOfSongs??0,t}},t.YourLibraryYourEpisodesExtraInfo={encode:(e,t=r.default.Writer.create())=>(0!==e.numberOfDownloadedEpisodes&&t.uint32(32).int32(e.numberOfDownloadedEpisodes),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={numberOfDownloadedEpisodes:0};for(;n.pos>>3==4)i.numberOfDownloadedEpisodes=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({numberOfDownloadedEpisodes:g(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={numberOfDownloadedEpisodes:0};return t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryNewEpisodesExtraInfo={encode:(e,t=r.default.Writer.create())=>("0"!==e.publishDate&&t.uint32(8).int64(e.publishDate),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={publishDate:"0"};for(;n.pos>>3==1)i.publishDate=m(n.int64());else n.skipType(7&e)}return i},fromJSON:e=>({publishDate:g(e.publishDate)?String(e.publishDate):"0"}),toJSON(e){const t={};return void 0!==e.publishDate&&(t.publishDate=e.publishDate),t},fromPartial(e){const t={publishDate:"0"};return t.publishDate=e.publishDate??"0",t}},t.YourLibraryLocalFilesExtraInfo={encode:(e,t=r.default.Writer.create())=>(0!==e.numberOfFiles&&t.uint32(8).int32(e.numberOfFiles),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={numberOfFiles:0};for(;n.pos>>3==1)i.numberOfFiles=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({numberOfFiles:g(e.numberOfFiles)?Number(e.numberOfFiles):0}),toJSON(e){const t={};return void 0!==e.numberOfFiles&&(t.numberOfFiles=Math.round(e.numberOfFiles)),t},fromPartial(e){const t={numberOfFiles:0};return t.numberOfFiles=e.numberOfFiles??0,t}},t.YourLibraryBookExtraInfo={encode:(e,t=r.default.Writer.create())=>(""!==e.authorName&&t.uint32(10).string(e.authorName),0!==e.access&&t.uint32(16).int32(e.access),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={authorName:"",access:0};for(;n.pos>>3){case 1:i.authorName=n.string();break;case 2:i.access=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({authorName:g(e.authorName)?String(e.authorName):"",access:g(e.access)?f(e.access):0}),toJSON(e){const t={};return void 0!==e.authorName&&(t.authorName=e.authorName),void 0!==e.access&&(t.access=h(e.access)),t},fromPartial(e){const t={authorName:"",access:0};return t.authorName=e.authorName??"",t.access=e.access??0,t}},t.YourLibraryDecoratedEntity={encode:(e,n=r.default.Writer.create())=>(void 0!==e.entityInfo&&t.YourLibraryEntityInfo.encode(e.entityInfo,n.uint32(10).fork()).ldelim(),void 0!==e.album&&t.YourLibraryAlbumExtraInfo.encode(e.album,n.uint32(18).fork()).ldelim(),void 0!==e.artist&&t.YourLibraryArtistExtraInfo.encode(e.artist,n.uint32(26).fork()).ldelim(),void 0!==e.playlist&&t.YourLibraryPlaylistExtraInfo.encode(e.playlist,n.uint32(34).fork()).ldelim(),void 0!==e.show&&t.YourLibraryShowExtraInfo.encode(e.show,n.uint32(42).fork()).ldelim(),void 0!==e.folder&&t.YourLibraryFolderExtraInfo.encode(e.folder,n.uint32(50).fork()).ldelim(),void 0!==e.likedSongs&&t.YourLibraryLikedSongsExtraInfo.encode(e.likedSongs,n.uint32(66).fork()).ldelim(),void 0!==e.yourEpisodes&&t.YourLibraryYourEpisodesExtraInfo.encode(e.yourEpisodes,n.uint32(74).fork()).ldelim(),void 0!==e.newEpisodes&&t.YourLibraryNewEpisodesExtraInfo.encode(e.newEpisodes,n.uint32(82).fork()).ldelim(),void 0!==e.localFiles&&t.YourLibraryLocalFilesExtraInfo.encode(e.localFiles,n.uint32(90).fork()).ldelim(),void 0!==e.book&&t.YourLibraryBookExtraInfo.encode(e.book,n.uint32(98).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0};for(;o.pos>>3){case 1:a.entityInfo=t.YourLibraryEntityInfo.decode(o,o.uint32());break;case 2:a.album=t.YourLibraryAlbumExtraInfo.decode(o,o.uint32());break;case 3:a.artist=t.YourLibraryArtistExtraInfo.decode(o,o.uint32());break;case 4:a.playlist=t.YourLibraryPlaylistExtraInfo.decode(o,o.uint32());break;case 5:a.show=t.YourLibraryShowExtraInfo.decode(o,o.uint32());break;case 6:a.folder=t.YourLibraryFolderExtraInfo.decode(o,o.uint32());break;case 8:a.likedSongs=t.YourLibraryLikedSongsExtraInfo.decode(o,o.uint32());break;case 9:a.yourEpisodes=t.YourLibraryYourEpisodesExtraInfo.decode(o,o.uint32());break;case 10:a.newEpisodes=t.YourLibraryNewEpisodesExtraInfo.decode(o,o.uint32());break;case 11:a.localFiles=t.YourLibraryLocalFilesExtraInfo.decode(o,o.uint32());break;case 12:a.book=t.YourLibraryBookExtraInfo.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({entityInfo:g(e.entityInfo)?t.YourLibraryEntityInfo.fromJSON(e.entityInfo):void 0,album:g(e.album)?t.YourLibraryAlbumExtraInfo.fromJSON(e.album):void 0,artist:g(e.artist)?t.YourLibraryArtistExtraInfo.fromJSON(e.artist):void 0,playlist:g(e.playlist)?t.YourLibraryPlaylistExtraInfo.fromJSON(e.playlist):void 0,show:g(e.show)?t.YourLibraryShowExtraInfo.fromJSON(e.show):void 0,folder:g(e.folder)?t.YourLibraryFolderExtraInfo.fromJSON(e.folder):void 0,likedSongs:g(e.likedSongs)?t.YourLibraryLikedSongsExtraInfo.fromJSON(e.likedSongs):void 0,yourEpisodes:g(e.yourEpisodes)?t.YourLibraryYourEpisodesExtraInfo.fromJSON(e.yourEpisodes):void 0,newEpisodes:g(e.newEpisodes)?t.YourLibraryNewEpisodesExtraInfo.fromJSON(e.newEpisodes):void 0,localFiles:g(e.localFiles)?t.YourLibraryLocalFilesExtraInfo.fromJSON(e.localFiles):void 0,book:g(e.book)?t.YourLibraryBookExtraInfo.fromJSON(e.book):void 0}),toJSON(e){const n={};return void 0!==e.entityInfo&&(n.entityInfo=e.entityInfo?t.YourLibraryEntityInfo.toJSON(e.entityInfo):void 0),void 0!==e.album&&(n.album=e.album?t.YourLibraryAlbumExtraInfo.toJSON(e.album):void 0),void 0!==e.artist&&(n.artist=e.artist?t.YourLibraryArtistExtraInfo.toJSON(e.artist):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.YourLibraryPlaylistExtraInfo.toJSON(e.playlist):void 0),void 0!==e.show&&(n.show=e.show?t.YourLibraryShowExtraInfo.toJSON(e.show):void 0),void 0!==e.folder&&(n.folder=e.folder?t.YourLibraryFolderExtraInfo.toJSON(e.folder):void 0),void 0!==e.likedSongs&&(n.likedSongs=e.likedSongs?t.YourLibraryLikedSongsExtraInfo.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(n.yourEpisodes=e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(n.newEpisodes=e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(n.localFiles=e.localFiles?t.YourLibraryLocalFilesExtraInfo.toJSON(e.localFiles):void 0),void 0!==e.book&&(n.book=e.book?t.YourLibraryBookExtraInfo.toJSON(e.book):void 0),n},fromPartial(e){const n={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0};return n.entityInfo=void 0!==e.entityInfo&&null!==e.entityInfo?t.YourLibraryEntityInfo.fromPartial(e.entityInfo):void 0,n.album=void 0!==e.album&&null!==e.album?t.YourLibraryAlbumExtraInfo.fromPartial(e.album):void 0,n.artist=void 0!==e.artist&&null!==e.artist?t.YourLibraryArtistExtraInfo.fromPartial(e.artist):void 0,n.playlist=void 0!==e.playlist&&null!==e.playlist?t.YourLibraryPlaylistExtraInfo.fromPartial(e.playlist):void 0,n.show=void 0!==e.show&&null!==e.show?t.YourLibraryShowExtraInfo.fromPartial(e.show):void 0,n.folder=void 0!==e.folder&&null!==e.folder?t.YourLibraryFolderExtraInfo.fromPartial(e.folder):void 0,n.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?t.YourLibraryLikedSongsExtraInfo.fromPartial(e.likedSongs):void 0,n.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.fromPartial(e.yourEpisodes):void 0,n.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.fromPartial(e.newEpisodes):void 0,n.localFiles=void 0!==e.localFiles&&null!==e.localFiles?t.YourLibraryLocalFilesExtraInfo.fromPartial(e.localFiles):void 0,n.book=void 0!==e.book&&null!==e.book?t.YourLibraryBookExtraInfo.fromPartial(e.book):void 0,n}},t.YourLibraryAvailableEntityTypes={encode:(e,t=r.default.Writer.create())=>(!0===e.albums&&t.uint32(8).bool(e.albums),!0===e.artists&&t.uint32(16).bool(e.artists),!0===e.playlists&&t.uint32(24).bool(e.playlists),!0===e.shows&&t.uint32(32).bool(e.shows),!0===e.books&&t.uint32(40).bool(e.books),!0===e.playlistByYou&&t.uint32(48).bool(e.playlistByYou),!0===e.playlistBySpotify&&t.uint32(56).bool(e.playlistBySpotify),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1,playlistByYou:!1,playlistBySpotify:!1};for(;n.pos>>3){case 1:i.albums=n.bool();break;case 2:i.artists=n.bool();break;case 3:i.playlists=n.bool();break;case 4:i.shows=n.bool();break;case 5:i.books=n.bool();break;case 6:i.playlistByYou=n.bool();break;case 7:i.playlistBySpotify=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({albums:!!g(e.albums)&&Boolean(e.albums),artists:!!g(e.artists)&&Boolean(e.artists),playlists:!!g(e.playlists)&&Boolean(e.playlists),shows:!!g(e.shows)&&Boolean(e.shows),books:!!g(e.books)&&Boolean(e.books),playlistByYou:!!g(e.playlistByYou)&&Boolean(e.playlistByYou),playlistBySpotify:!!g(e.playlistBySpotify)&&Boolean(e.playlistBySpotify)}),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),void 0!==e.playlistByYou&&(t.playlistByYou=e.playlistByYou),void 0!==e.playlistBySpotify&&(t.playlistBySpotify=e.playlistBySpotify),t},fromPartial(e){const t={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1,playlistByYou:!1,playlistBySpotify:!1};return t.albums=e.albums??!1,t.artists=e.artists??!1,t.playlists=e.playlists??!1,t.shows=e.shows??!1,t.books=e.books??!1,t.playlistByYou=e.playlistByYou??!1,t.playlistBySpotify=e.playlistBySpotify??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},24972:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryRequest=t.YourLibraryRequestHeader=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(9144);function s(e){return e.toString()}function l(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryRequestHeader={encode(e,t=r.default.Writer.create()){!0===e.remainingEntities&&t.uint32(72).bool(e.remainingEntities),!0===e.totalCount&&t.uint32(144).bool(e.totalCount),""!==e.lowerBound&&t.uint32(82).string(e.lowerBound),0!==e.skip&&t.uint32(88).int32(e.skip),0!==e.length&&t.uint32(96).int32(e.length),""!==e.textFilter&&t.uint32(106).string(e.textFilter),void 0!==e.filters&&a.YourLibraryFilters.encode(e.filters,t.uint32(114).fork()).ldelim(),void 0!==e.sortOrder&&a.YourLibrarySortOrder.encode(e.sortOrder,t.uint32(122).fork()).ldelim(),void 0!==e.folderId&&t.uint32(128).int64(e.folderId),!0===e.allPlaylists&&t.uint32(136).bool(e.allPlaylists),!0===e.filtersPickedByUser&&t.uint32(152).bool(e.filtersPickedByUser),!0===e.entitiesInFolders&&t.uint32(160).bool(e.entitiesInFolders),t.uint32(170).fork();for(const n of e.tagFilter)t.int64(n);return t.ldelim(),!0===e.separatePinnedItems&&t.uint32(176).bool(e.separatePinnedItems),!0===e.assistedCuration&&t.uint32(184).bool(e.assistedCuration),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={remainingEntities:!1,totalCount:!1,lowerBound:"",skip:0,length:0,textFilter:"",filters:void 0,sortOrder:void 0,folderId:void 0,allPlaylists:!1,filtersPickedByUser:!1,entitiesInFolders:!1,tagFilter:[],separatePinnedItems:!1,assistedCuration:!1};for(;n.pos>>3){case 9:i.remainingEntities=n.bool();break;case 18:i.totalCount=n.bool();break;case 10:i.lowerBound=n.string();break;case 11:i.skip=n.int32();break;case 12:i.length=n.int32();break;case 13:i.textFilter=n.string();break;case 14:i.filters=a.YourLibraryFilters.decode(n,n.uint32());break;case 15:i.sortOrder=a.YourLibrarySortOrder.decode(n,n.uint32());break;case 16:i.folderId=s(n.int64());break;case 17:i.allPlaylists=n.bool();break;case 19:i.filtersPickedByUser=n.bool();break;case 20:i.entitiesInFolders=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({remainingEntities:!!l(e.remainingEntities)&&Boolean(e.remainingEntities),totalCount:!!l(e.totalCount)&&Boolean(e.totalCount),lowerBound:l(e.lowerBound)?String(e.lowerBound):"",skip:l(e.skip)?Number(e.skip):0,length:l(e.length)?Number(e.length):0,textFilter:l(e.textFilter)?String(e.textFilter):"",filters:l(e.filters)?a.YourLibraryFilters.fromJSON(e.filters):void 0,sortOrder:l(e.sortOrder)?a.YourLibrarySortOrder.fromJSON(e.sortOrder):void 0,folderId:l(e.folderId)?String(e.folderId):void 0,allPlaylists:!!l(e.allPlaylists)&&Boolean(e.allPlaylists),filtersPickedByUser:!!l(e.filtersPickedByUser)&&Boolean(e.filtersPickedByUser),entitiesInFolders:!!l(e.entitiesInFolders)&&Boolean(e.entitiesInFolders),tagFilter:Array.isArray(e?.tagFilter)?e.tagFilter.map((e=>String(e))):[],separatePinnedItems:!!l(e.separatePinnedItems)&&Boolean(e.separatePinnedItems),assistedCuration:!!l(e.assistedCuration)&&Boolean(e.assistedCuration)}),toJSON(e){const t={};return void 0!==e.remainingEntities&&(t.remainingEntities=e.remainingEntities),void 0!==e.totalCount&&(t.totalCount=e.totalCount),void 0!==e.lowerBound&&(t.lowerBound=e.lowerBound),void 0!==e.skip&&(t.skip=Math.round(e.skip)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.textFilter&&(t.textFilter=e.textFilter),void 0!==e.filters&&(t.filters=e.filters?a.YourLibraryFilters.toJSON(e.filters):void 0),void 0!==e.sortOrder&&(t.sortOrder=e.sortOrder?a.YourLibrarySortOrder.toJSON(e.sortOrder):void 0),void 0!==e.folderId&&(t.folderId=e.folderId),void 0!==e.allPlaylists&&(t.allPlaylists=e.allPlaylists),void 0!==e.filtersPickedByUser&&(t.filtersPickedByUser=e.filtersPickedByUser),void 0!==e.entitiesInFolders&&(t.entitiesInFolders=e.entitiesInFolders),e.tagFilter?t.tagFilter=e.tagFilter.map((e=>e)):t.tagFilter=[],void 0!==e.separatePinnedItems&&(t.separatePinnedItems=e.separatePinnedItems),void 0!==e.assistedCuration&&(t.assistedCuration=e.assistedCuration),t},fromPartial(e){const t={remainingEntities:!1,totalCount:!1,lowerBound:"",skip:0,length:0,textFilter:"",filters:void 0,sortOrder:void 0,folderId:void 0,allPlaylists:!1,filtersPickedByUser:!1,entitiesInFolders:!1,tagFilter:[],separatePinnedItems:!1,assistedCuration:!1};return t.remainingEntities=e.remainingEntities??!1,t.totalCount=e.totalCount??!1,t.lowerBound=e.lowerBound??"",t.skip=e.skip??0,t.length=e.length??0,t.textFilter=e.textFilter??"",t.filters=void 0!==e.filters&&null!==e.filters?a.YourLibraryFilters.fromPartial(e.filters):void 0,t.sortOrder=void 0!==e.sortOrder&&null!==e.sortOrder?a.YourLibrarySortOrder.fromPartial(e.sortOrder):void 0,t.folderId=e.folderId??void 0,t.allPlaylists=e.allPlaylists??!1,t.filtersPickedByUser=e.filtersPickedByUser??!1,t.entitiesInFolders=e.entitiesInFolders??!1,t.tagFilter=e.tagFilter?.map((e=>e))||[],t.separatePinnedItems=e.separatePinnedItems??!1,t.assistedCuration=e.assistedCuration??!1,t}},t.YourLibraryRequest={encode:(e,n=r.default.Writer.create())=>(void 0!==e.header&&t.YourLibraryRequestHeader.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.pseudoPlaylistConfig&&a.YourLibraryPseudoPlaylistConfig.encode(e.pseudoPlaylistConfig,n.uint32(34).fork()).ldelim(),0!==e.updateThrottling&&n.uint32(40).int32(e.updateThrottling),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={header:void 0,pseudoPlaylistConfig:void 0,updateThrottling:0};for(;o.pos>>3){case 1:s.header=t.YourLibraryRequestHeader.decode(o,o.uint32());break;case 4:s.pseudoPlaylistConfig=a.YourLibraryPseudoPlaylistConfig.decode(o,o.uint32());break;case 5:s.updateThrottling=o.int32();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({header:l(e.header)?t.YourLibraryRequestHeader.fromJSON(e.header):void 0,pseudoPlaylistConfig:l(e.pseudoPlaylistConfig)?a.YourLibraryPseudoPlaylistConfig.fromJSON(e.pseudoPlaylistConfig):void 0,updateThrottling:l(e.updateThrottling)?Number(e.updateThrottling):0}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryRequestHeader.toJSON(e.header):void 0),void 0!==e.pseudoPlaylistConfig&&(n.pseudoPlaylistConfig=e.pseudoPlaylistConfig?a.YourLibraryPseudoPlaylistConfig.toJSON(e.pseudoPlaylistConfig):void 0),void 0!==e.updateThrottling&&(n.updateThrottling=Math.round(e.updateThrottling)),n},fromPartial(e){const n={header:void 0,pseudoPlaylistConfig:void 0,updateThrottling:0};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryRequestHeader.fromPartial(e.header):void 0,n.pseudoPlaylistConfig=void 0!==e.pseudoPlaylistConfig&&null!==e.pseudoPlaylistConfig?a.YourLibraryPseudoPlaylistConfig.fromPartial(e.pseudoPlaylistConfig):void 0,n.updateThrottling=e.updateThrottling??0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},93352:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryResponse=t.YourLibraryResponseHeader=t.protobufPackage=void 0;const i=o(n(33892)),r=n(9144),a=n(39266);function s(e){return null!=e}t.protobufPackage="spotify.your_library.proto",t.YourLibraryResponseHeader={encode:(e,t=i.default.Writer.create())=>(0!==e.remainingEntities&&t.uint32(72).int32(e.remainingEntities),0!==e.totalCount&&t.uint32(136).int32(e.totalCount),0!==e.pinCount&&t.uint32(144).int32(e.pinCount),0!==e.maximumPinnedItems&&t.uint32(152).int32(e.maximumPinnedItems),!0===e.isLoading&&t.uint32(96).bool(e.isLoading),void 0!==e.has&&a.YourLibraryAvailableEntityTypes.encode(e.has,t.uint32(106).fork()).ldelim(),void 0!==e.hasDownloaded&&a.YourLibraryAvailableEntityTypes.encode(e.hasDownloaded,t.uint32(114).fork()).ldelim(),""!==e.folderName&&t.uint32(122).string(e.folderName),""!==e.parentFolderUri&&t.uint32(162).string(e.parentFolderUri),void 0!==e.availableFilters&&r.YourLibraryFilters.encode(e.availableFilters,t.uint32(130).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={remainingEntities:0,totalCount:0,pinCount:0,maximumPinnedItems:0,isLoading:!1,has:void 0,hasDownloaded:void 0,folderName:"",parentFolderUri:"",availableFilters:void 0};for(;n.pos>>3){case 9:s.remainingEntities=n.int32();break;case 17:s.totalCount=n.int32();break;case 18:s.pinCount=n.int32();break;case 19:s.maximumPinnedItems=n.int32();break;case 12:s.isLoading=n.bool();break;case 13:s.has=a.YourLibraryAvailableEntityTypes.decode(n,n.uint32());break;case 14:s.hasDownloaded=a.YourLibraryAvailableEntityTypes.decode(n,n.uint32());break;case 15:s.folderName=n.string();break;case 20:s.parentFolderUri=n.string();break;case 16:s.availableFilters=r.YourLibraryFilters.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({remainingEntities:s(e.remainingEntities)?Number(e.remainingEntities):0,totalCount:s(e.totalCount)?Number(e.totalCount):0,pinCount:s(e.pinCount)?Number(e.pinCount):0,maximumPinnedItems:s(e.maximumPinnedItems)?Number(e.maximumPinnedItems):0,isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),has:s(e.has)?a.YourLibraryAvailableEntityTypes.fromJSON(e.has):void 0,hasDownloaded:s(e.hasDownloaded)?a.YourLibraryAvailableEntityTypes.fromJSON(e.hasDownloaded):void 0,folderName:s(e.folderName)?String(e.folderName):"",parentFolderUri:s(e.parentFolderUri)?String(e.parentFolderUri):"",availableFilters:s(e.availableFilters)?r.YourLibraryFilters.fromJSON(e.availableFilters):void 0}),toJSON(e){const t={};return void 0!==e.remainingEntities&&(t.remainingEntities=Math.round(e.remainingEntities)),void 0!==e.totalCount&&(t.totalCount=Math.round(e.totalCount)),void 0!==e.pinCount&&(t.pinCount=Math.round(e.pinCount)),void 0!==e.maximumPinnedItems&&(t.maximumPinnedItems=Math.round(e.maximumPinnedItems)),void 0!==e.isLoading&&(t.isLoading=e.isLoading),void 0!==e.has&&(t.has=e.has?a.YourLibraryAvailableEntityTypes.toJSON(e.has):void 0),void 0!==e.hasDownloaded&&(t.hasDownloaded=e.hasDownloaded?a.YourLibraryAvailableEntityTypes.toJSON(e.hasDownloaded):void 0),void 0!==e.folderName&&(t.folderName=e.folderName),void 0!==e.parentFolderUri&&(t.parentFolderUri=e.parentFolderUri),void 0!==e.availableFilters&&(t.availableFilters=e.availableFilters?r.YourLibraryFilters.toJSON(e.availableFilters):void 0),t},fromPartial(e){const t={remainingEntities:0,totalCount:0,pinCount:0,maximumPinnedItems:0,isLoading:!1,has:void 0,hasDownloaded:void 0,folderName:"",parentFolderUri:"",availableFilters:void 0};return t.remainingEntities=e.remainingEntities??0,t.totalCount=e.totalCount??0,t.pinCount=e.pinCount??0,t.maximumPinnedItems=e.maximumPinnedItems??0,t.isLoading=e.isLoading??!1,t.has=void 0!==e.has&&null!==e.has?a.YourLibraryAvailableEntityTypes.fromPartial(e.has):void 0,t.hasDownloaded=void 0!==e.hasDownloaded&&null!==e.hasDownloaded?a.YourLibraryAvailableEntityTypes.fromPartial(e.hasDownloaded):void 0,t.folderName=e.folderName??"",t.parentFolderUri=e.parentFolderUri??"",t.availableFilters=void 0!==e.availableFilters&&null!==e.availableFilters?r.YourLibraryFilters.fromPartial(e.availableFilters):void 0,t}},t.YourLibraryResponse={encode(e,n=i.default.Writer.create()){void 0!==e.header&&t.YourLibraryResponseHeader.encode(e.header,n.uint32(10).fork()).ldelim();for(const t of e.entity)a.YourLibraryDecoratedEntity.encode(t,n.uint32(18).fork()).ldelim();for(const t of e.pinnedEntity)a.YourLibraryDecoratedEntity.encode(t,n.uint32(26).fork()).ldelim();return 0!==e.statusCode&&n.uint32(784).int32(e.statusCode),""!==e.error&&n.uint32(794).string(e.error),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={header:void 0,entity:[],pinnedEntity:[],statusCode:0,error:""};for(;o.pos>>3){case 1:s.header=t.YourLibraryResponseHeader.decode(o,o.uint32());break;case 2:s.entity.push(a.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;case 3:s.pinnedEntity.push(a.YourLibraryDecoratedEntity.decode(o,o.uint32()));break;case 98:s.statusCode=o.int32();break;case 99:s.error=o.string();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({header:s(e.header)?t.YourLibraryResponseHeader.fromJSON(e.header):void 0,entity:Array.isArray(e?.entity)?e.entity.map((e=>a.YourLibraryDecoratedEntity.fromJSON(e))):[],pinnedEntity:Array.isArray(e?.pinnedEntity)?e.pinnedEntity.map((e=>a.YourLibraryDecoratedEntity.fromJSON(e))):[],statusCode:s(e.statusCode)?Number(e.statusCode):0,error:s(e.error)?String(e.error):""}),toJSON(e){const n={};return void 0!==e.header&&(n.header=e.header?t.YourLibraryResponseHeader.toJSON(e.header):void 0),e.entity?n.entity=e.entity.map((e=>e?a.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.entity=[],e.pinnedEntity?n.pinnedEntity=e.pinnedEntity.map((e=>e?a.YourLibraryDecoratedEntity.toJSON(e):void 0)):n.pinnedEntity=[],void 0!==e.statusCode&&(n.statusCode=Math.round(e.statusCode)),void 0!==e.error&&(n.error=e.error),n},fromPartial(e){const n={header:void 0,entity:[],pinnedEntity:[],statusCode:0,error:""};return n.header=void 0!==e.header&&null!==e.header?t.YourLibraryResponseHeader.fromPartial(e.header):void 0,n.entity=e.entity?.map((e=>a.YourLibraryDecoratedEntity.fromPartial(e)))||[],n.pinnedEntity=e.pinnedEntity?.map((e=>a.YourLibraryDecoratedEntity.fromPartial(e)))||[],n.statusCode=e.statusCode??0,n.error=e.error??"",n}}},82774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPlatformClient=void 0;const o=n(33892),i=n(79379),r=n(90721);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getBluetoothDevices(e,t){const n="spotify.desktop.platform_esperanto.proto.DesktopPlatform",a="GetBluetoothDevices",s=i.Empty.encode(e).finish();return this.options.onRequest?.(e,n,a,"stream"),this.transport.callStream({service:n,method:a,payload:s},(e=>{const i=r.BluetoothDevices.decode(o.Reader.create(e));this.options.onResponse?.(i,n,a,"stream"),t(i)}))}static SERVICE_ID="spotify.desktop.platform_esperanto.proto.DesktopPlatform";static DECODERS={GetBluetoothDevices:{request:i.Empty.decode,response:r.BluetoothDevices.decode}}}t.DesktopPlatformClient=a},91628:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopPlatformClient=void 0;const r=n(82774);Object.defineProperty(t,"DesktopPlatformClient",{enumerable:!0,get:function(){return r.DesktopPlatformClient}}),i(n(90721),t)},90721:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BluetoothDevices=t.BluetoothDevice=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.desktop.platform_esperanto.proto",t.BluetoothDevice={encode:(e,t=i.default.Writer.create())=>(""!==e.address&&t.uint32(10).string(e.address),""!==e.name&&t.uint32(18).string(e.name),!0===e.isDefaultAudioDevice&&t.uint32(24).bool(e.isDefaultAudioDevice),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={address:"",name:"",isDefaultAudioDevice:!1};for(;n.pos>>3){case 1:r.address=n.string();break;case 2:r.name=n.string();break;case 3:r.isDefaultAudioDevice=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({address:r(e.address)?String(e.address):"",name:r(e.name)?String(e.name):"",isDefaultAudioDevice:!!r(e.isDefaultAudioDevice)&&Boolean(e.isDefaultAudioDevice)}),toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.name&&(t.name=e.name),void 0!==e.isDefaultAudioDevice&&(t.isDefaultAudioDevice=e.isDefaultAudioDevice),t},fromPartial(e){const t={address:"",name:"",isDefaultAudioDevice:!1};return t.address=e.address??"",t.name=e.name??"",t.isDefaultAudioDevice=e.isDefaultAudioDevice??!1,t}},t.BluetoothDevices={encode(e,n=i.default.Writer.create()){for(const o of e.devices)t.BluetoothDevice.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={devices:[]};for(;o.pos>>3==1)a.devices.push(t.BluetoothDevice.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({devices:Array.isArray(e?.devices)?e.devices.map((e=>t.BluetoothDevice.fromJSON(e))):[]}),toJSON(e){const n={};return e.devices?n.devices=e.devices.map((e=>e?t.BluetoothDevice.toJSON(e):void 0)):n.devices=[],n},fromPartial(e){const n={devices:[]};return n.devices=e.devices?.map((e=>t.BluetoothDevice.fromPartial(e)))||[],n}}},79379:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="google.protobuf",t.Empty={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},53016:(e,t,n)=>{"use strict";n.d(t,{B:()=>o,vp:()=>p});class o{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(56708);const i="undefined"!=typeof window,r=[];function a(){var e;const t=r.splice(0);if(t.length)for(let n=0,o=t.length;n{const t=!r.length;r.push(e),t&&s()};function c(e,t,n){for(let o=0,i=e.length;othis._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 o=this.createEvent(e,t);return l((()=>{this._dispatchFromStore(this._listeners,o),n.call(this,o)})),o}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 o=e=>{e.stopped||this.emitAndWait(n,e.data,(t=>{t.defaultPrevented&&e.preventDefault()}))};return e.on(t,o),o}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 o=e=>{if(e.stopped)return;const t=this.createEvent(n,e.data);this.emitEventSync(t),t.defaultPrevented&&e.preventDefault()};return e.on(t,o),o}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 o=this._metaListeners.add;return u(o,e,t,n)&&d(o,e,t,n),this}onRemoveListener(e,t,n={}){const o=this._metaListeners.remove;return u(o,e,t,n)&&d(o,e,t,n),this}}},48712:(e,t,n)=>{e.exports={...n(85348),...n(22396),...n(21292)}},85348:(e,t)=>{var n=t.aquamarine="#9bf0e1",o=t.aubergine="#503750",i=t.azure="#509bf5",r=t.bole="#c87d55",a=t.brightRed="#e61e32",s=t.chocolate="#7d4b32",l=t.citric="#cdf564",c=t.electricSeafoam="#19e68c",u=t.factoryYellow="#fae62d",d=t.forest="#006450",p=t.fuchsia="#dc148c",f=t.gold="#f59b23",h=t.kleinBlue="#4100f5",m=t.lavender="#b49bc8",g=t.maroon="#8c1932",v=t.midnight="#1e3264",y=t.neonGreen="#5ff550",_=t.orange="#ff6437",b=t.pink="#ffcdd2",S=t.plum="#705378",E=t.powderGreen="#c3f0c8",A=t.royalBlue="#2d46b9",T=t.salmon="#f573a0",P=t.spearmint="#27856a",O=t.storm="#a0c3d2",C=t.sunflower="#ffc864",k=t.tan="#c39687",R=t.tangerine="#e3230e",L=t.violet="#af2896",I=t.gray7="#121212",N=t.gray10="#181818",w=t.gray15="#282828",D=t.gray20="#333333",M=t.gray30="#535353",x=t.gray50="#7f7f7f",F=t.gray70=getComputedStyle(document.body).getPropertyValue("--spice-subtext").trim(),U=t.gray80="#cccccc",B=t.gray85="#d9d9d9",V=t.gray90="#eeeeee",G=t.gray95="#f8f8f8",J=t.opacityBlack0="rgba(0, 0, 0, 0)",j=t.opacityBlack10="rgba(0, 0, 0, 0.1)",H=t.opacityBlack30="rgba(0, 0, 0, 0.3)",K=t.opacityBlack50="rgba(0, 0, 0, 0.5)",Y=t.opacityBlack60="rgba(0, 0, 0, 0.6)",W=t.opacityBlack70="rgba(0, 0, 0, 0.7)",z=t.opacityBlack90="rgba(0, 0, 0, 0.9)",q=t.opacityWhite0="rgba(255, 255, 255, 0)",X=t.opacityWhite10="rgba(255, 255, 255, 0.1)",Z=t.opacityWhite30="rgba(255, 255, 255, 0.3)",Q=t.opacityWhite50="rgba(255, 255, 255, 0.5)",$=t.opacityWhite60="rgba(255, 255, 255, 0.6)",ee=t.opacityWhite70="rgba(255, 255, 255, 0.7)",te=t.opacityWhite90="rgba(255, 255, 255, 0.9)",ne=t.black0="rgba(0, 0, 0, 0)",oe=t.black10="rgba(0, 0, 0, 0.1)",ie=t.black30="rgba(0, 0, 0, 0.3)",re=t.black50="rgba(0, 0, 0, 0.5)",ae=t.black60="rgba(0, 0, 0, 0.6)",se=t.black70="rgba(0, 0, 0, 0.7)",le=t.black90="rgba(0, 0, 0, 0.9)",ce=t.white0="rgba(255, 255, 255, 0)",ue=t.white10="rgba(255, 255, 255, 0.1)",de=t.white30="rgba(255, 255, 255, 0.3)",pe=t.white50="rgba(255, 255, 255, 0.5)",fe=t.white60="rgba(255, 255, 255, 0.6)",he=t.white70="rgba(255, 255, 255, 0.7)",me=t.white90="rgba(255, 255, 255, 0.9)",ge=t.black20="rgba(0, 0, 0, 0.2)",ve=t.black40="rgba(0, 0, 0, 0.4)",ye=t.white5="rgba(255, 255, 255, 0.05)",_e=t.white20="rgba(255, 255, 255, 0.2)",be=t.white40="rgba(255, 255, 255, 0.4)",Se=t.solidBlack0="#000000",Ee=t.solidWhite200=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),Ae=t.spotifyBlack7="#121212",Te=t.midnight35="#202f72",Pe=t.aubergine46="#503659",Oe=t.maroon55="#8a202b",Ce=t.royalBlue55="#283ea3",ke=t.kleinBlue61="#4100f4",Re=t.forest75="#056952",Le=t.chocolate75="#834f34",Ie=t.violet84="#b02897",Ne=t.brightRed100="#e91429",we=t.spearmint114="#4b917d",De=t.fuchsia115="#f036a4",Me=t.tangerine120="#ff4834",xe=t.bole123="#c87d55",Fe=t.salmon135="#ef77a1",Ue=t.lavender135="#af93c4",Be=t.azure135="#59a0f6",Ve=t.pumpkin135="#ff7439",Ge=t.tan135="#c19384",Je=t.storm155="#a5bbd1",je=t.gold155="#ffa42b",He=t.spotifyGreen157="#1ed760",Ke=t.sunflower172="#ffc862",Ye=t.rose180="#ffd2d7",We=t.aquamarine180="#91eeda",ze=t.factoryYellow184="#fce54f",qe=t.powderGreen185="#c5f0c9",Xe=t.citric186="#cff56a",Ze=t.neonGreen176="#5ff550",Qe=t.electricSeafoam167="#19e68c",$e=t.redOrange25="#560f00",et=t.redOrange55="#911600",tt=t.redOrange75="#b71800",nt=t.redOrange100="#e81b00",ot=t.redOrange120="#ff4834",it=t.redOrange135="#ff7163",rt=t.redOrange155="#ff9e95",at=t.redOrange180="#ffd3cf",st=t.brown25="#3d2418",lt=t.brown55="#683e2a",ct=t.brown75="#834f34",ut=t.brown100="#a96440",dt=t.brown123="#c87d55",pt=t.brown135="#d38e67",ft=t.brown155="#e5ac8a",ht=t.brown180="#f7d7c3",mt=t.brownDesat25="#3b251d",gt=t.brownDesat55="#653f32",vt=t.brownDesat75="#805040",yt=t.brownDesat100="#a36652",_t=t.brownDesat135="#c19384",bt=t.brownDesat155="#d2b1a6",St=t.brownDesat180="#eadad5",Et=t.orange25="#4f1800",At=t.orange55="#862800",Tt=t.orange75="#a83200",Pt=t.orange100="#d64000",Ot=t.orange135="#ff7439",Ct=t.orange155="#ffa178",kt=t.orange180="#ffd4c2",Rt=t.brownYellow25="#491e00",Lt=t.brownYellow55="#793500",It=t.brownYellow75="#964400",Nt=t.brownYellow100="#bc5900",wt=t.brownYellow135="#f47e00",Dt=t.brownYellow155="#ffa42b",Mt=t.brownYellow172="#ffc862",xt=t.brownYellow180="#ffd97e",Ft=t.brownYellowDesat25="#39260e",Ut=t.brownYellowDesat55="#624218",Bt=t.brownYellowDesat75="#7c531e",Vt=t.brownYellowDesat100="#9f6b27",Gt=t.brownYellowDesat135="#d0913f",Jt=t.brownYellowDesat155="#deb076",jt=t.brownYellowDesat180="#efdabf",Ht=t.yellow25="#352901",Kt=t.yellow55="#594602",Yt=t.yellow75="#705903",Wt=t.yellow100="#8e7203",zt=t.yellow135="#bd9a03",qt=t.yellow155="#dab503",Xt=t.yellow184="#fce54f",Zt=t.yellowGreen25="#222e03",Qt=t.yellowGreen55="#3b4f05",$t=t.yellowGreen75="#4a6406",en=t.yellowGreen100="#5f8008",tn=t.yellowGreen135="#80ac0b",nn=t.yellowGreen155="#95c90d",on=t.yellowGreen186="#cff56a",rn=t.yellowGreenDesat25="#262d11",an=t.yellowGreenDesat55="#414d1e",sn=t.yellowGreenDesat75="#526226",ln=t.yellowGreenDesat100="#697d30",cn=t.yellowGreenDesat135="#8da841",un=t.yellowGreenDesat155="#a9c261",dn=t.yellowGreenDesat180="#d7e3b5",pn=t.green25="#073116",fn=t.green55="#0c5426",hn=t.green75="#0f6a2f",mn=t.green100="#13873c",gn=t.green135="#19b551",vn=t.green157="#1ed760",yn=t.green180="#96f0b6",_n=t.greenDesat25="#182f21",bn=t.greenDesat55="#265135",Sn=t.greenDesat75="#2d6740",En=t.greenDesat100="#34854d",An=t.greenDesat135="#3db35e",Tn=t.greenDesat155="#5cce77",Pn=t.greenDesat185="#c5f0c9",On=t.greenBlue25="#013126",Cn=t.greenBlue55="#035341",kn=t.greenBlue75="#056952",Rn=t.greenBlue100="#088569",Ln=t.greenBlue135="#10b28e",In=t.greenBlue155="#16d0a6",Nn=t.greenBlue180="#91eeda",wn=t.greenBlueDesat25="#182e28",Dn=t.greenBlueDesat55="#294f44",Mn=t.greenBlueDesat75="#346557",xn=t.greenBlueDesat100="#43816f",Fn=t.greenBlueDesat114="#4b917d",Un=t.greenBlueDesat135="#5eac96",Bn=t.greenBlueDesat155="#8bc3b3",Vn=t.greenBlueDesat180="#c9e3db",Gn=t.blue25="#052a56",Jn=t.blue55="#084791",jn=t.blue75="#0a59b8",Hn=t.blue100="#0d72ea",Kn=t.blue135="#59a0f6",Yn=t.blue155="#89bcf8",Wn=t.blue180="#c8e0fc",zn=t.blueDesat25="#1d2b3a",qn=t.blueDesat55="#324b64",Xn=t.blueDesat75="#405e7e",Zn=t.blueDesat100="#5179a1",Qn=t.blueDesat135="#82a1c0",$n=t.blueDesat155="#a5bbd1",eo=t.blueDesat180="#d4dfe9",to=t.blueViolet25="#26008d",no=t.blueViolet55="#3c00e4",oo=t.blueViolet61="#4100f4",io=t.blueViolet75="#5925ff",ro=t.blueViolet100="#7358ff",ao=t.blueViolet135="#9691ff",so=t.blueViolet155="#afb1ff",lo=t.blueViolet180="#d7dbff",co=t.blueVioletDesat25="#1b2658",uo=t.blueVioletDesat35="#202f72",po=t.blueVioletDesat55="#283ea3",fo=t.blueVioletDesat75="#334fcd",ho=t.blueVioletDesat100="#576dd6",mo=t.blueVioletDesat135="#8a9ae3",go=t.blueVioletDesat155="#aab6ea",vo=t.blueVioletDesat180="#d7dcf5",yo=t.violet25="#400073",_o=t.violet55="#6900ba",bo=t.violet75="#8400e7",So=t.violet100="#a833ff",Eo=t.violet135="#c87dff",Ao=t.violet155="#d8a3ff",To=t.violet180="#edd4ff",Po=t.violetDesat25="#35243a",Oo=t.violetDesat46="#503659",Co=t.violetDesat75="#734d85",ko=t.violetDesat100="#8e65a9",Ro=t.violetDesat135="#af93c4",Lo=t.violetDesat155="#c4b1d4",Io=t.violetDesat180="#e3daeb",No=t.violetPink25="#4c1141",wo=t.violetPink55="#801d6d",Do=t.violetPink75="#a1258a",Mo=t.violetPink84="#b02897",xo=t.violetPink100="#cc2faf",Fo=t.violetPink135="#e079cd",Uo=t.violetPink155="#e9a1dc",Bo=t.violetPink180="#f5d3ef",Vo=t.violetPinkDesat25="#3c1c4c",Go=t.violetPinkDesat55="#673081",Jo=t.violetPinkDesat67="#773796",jo=t.violetPinkDesat100="#9e57bf",Ho=t.violetPinkDesat135="#bb8dd0",Ko=t.violetPinkDesat155="#cdaddc",Yo=t.violetPinkDesat180="#e7d9ed",Wo=t.pink25="#550635",zo=t.pink55="#8d0b58",qo=t.pink75="#b00d6e",Xo=t.pink100="#df118b",Zo=t.pink115="#f036a4",Qo=t.pink135="#f46ebe",$o=t.pink155="#f79bd2",ei=t.pink180="#fcd2eb",ti=t.pinkDesat25="#4c172a",ni=t.pinkDesat55="#871f43",oi=t.pinkDesat75="#ad2152",ii=t.pinkDesat100="#de2666",ri=t.pinkDesat135="#ef77a1",ai=t.pinkDesat155="#f1a2bc",si=t.pinkDesat180="#f4d6df",li=t.red25="#590810",ci=t.red55="#930d1a",ui=t.red75="#b81021",di=t.red100="#e91429",pi=t.red135="#f97481",fi=t.red155="#fe9da7",hi=t.red180="#ffd2d7",mi=t.redDesat25="#521319",gi=t.redDesat55="#8a202b",vi=t.redDesat75="#ad2836",yi=t.redDesat100="#d33f4e",_i=t.redDesat135="#e2828c",bi=t.redDesat155="#eaa6ad",Si=t.redDesat180="#f5d6d9",Ei=t.blueFacebook100="#2374e1",Ai=t.fluorescentRed109="#ff001a",Ti=t.fluorescentOrange144="#ff8b1f",Pi=t.fluorescentYellow194="#f3ff46",Oi=t.fluorescentGreen176="#5ff550",Ci=t.fluorescentGreenBlue167="#19e68c",ki=t.fluorescentCyan185="#00ffff",Ri=t.fluorescentBlueViolet69="#2d28ff",Li=t.fluorescentViolet111="#c13fff",Ii=t.fluorescentPink119="#ff1abf",Ni=t.green=getComputedStyle(document.body).getPropertyValue("--spice-button").trim(),wi=t.greenLight="#1ed760",Di=t.greenFocus="#1da64d",Mi=t.greenDark="#14833b",xi=t.black="#000000",Fi=t.white=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),Ui=t.red="#cd1a2b",Bi=t.redLight="#e22134",Vi=t.redDark="#941320",Gi=t.blue="#2e77d0",Ji=t.blueLight="#4687d6",ji=t.blueFacebook="#1877f2",Hi=t.blueDark="#1d4c85",Ki=t.orangeLight="#ff5722",Yi=t.opacity0="0",Wi=t.opacity10="0.1",zi=t.opacity30="0.3",qi=t.opacity50="0.5",Xi=t.opacity70="0.7",Zi=t.opacity90="0.9",Qi=t.spacer4="4px",$i=t.spacer8="8px",er=t.spacer12="12px",tr=t.spacer16="16px",nr=t.spacer20="20px",or=t.spacer24="24px",ir=t.spacer32="32px",rr=t.spacer40="40px",ar=t.spacer48="48px",sr=t.spacer56="56px",lr=t.spacer64="64px",cr=t.spacer72="72px",ur=t.spacer80="80px",dr=t.balladFontSize="1rem",pr=t.balladWeight=400,fr=t.balladFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",hr=t.balladBoldFontSize="1rem",mr=t.balladBoldWeight=700,gr=t.balladBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",vr=t.violaFontSize="0.875rem",yr=t.violaWeight=400,_r=t.violaFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",br=t.violaBoldFontSize="0.875rem",Sr=t.violaBoldWeight=700,Er=t.violaBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Ar=t.mestoFontSize="0.8125rem",Tr=t.mestoWeight=400,Pr=t.mestoFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Or=t.mestoBoldFontSize="0.8125rem",Cr=t.mestoBoldWeight=700,kr=t.mestoBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Rr=t.bassFontSize="3.5rem",Lr=t.bassWeight=900,Ir=t.bassFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Nr=t.forteFontSize="3rem",wr=t.forteWeight=700,Dr=t.forteFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Mr=t.brioFontSize="2.5rem",xr=t.brioWeight=700,Fr=t.brioFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Ur=t.finaleFontSize="0.6875rem",Br=t.finaleWeight=400,Vr=t.finaleFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Gr=t.finaleBoldFontSize="0.6875rem",Jr=t.finaleBoldWeight=700,jr=t.finaleBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",Hr=t.minuetFontSize="0.625rem",Kr=t.minuetWeight=400,Yr=t.minuetTracking="0.1em",Wr=t.minuetUppercase="uppercase",zr=t.minuetFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",qr=t.minuetBoldFontSize="0.625rem",Xr=t.minuetBoldWeight=700,Zr=t.minuetBoldTracking="0.1em",Qr=t.minuetBoldUppercase="uppercase",$r=t.minuetBoldFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",ea=t.metronomeFontSize="0.875rem",ta=t.metronomeWeight=700,na=t.metronomeTracking="0.1em",oa=t.metronomeUppercase="uppercase",ia=t.metronomeFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",ra=t.altoBrioFontSize="2rem",aa=t.altoBrioWeight=700,sa=t.altoBrioFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",la=t.altoFontSize="2rem",ca=t.altoWeight=700,ua=t.altoFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",da=t.canonFontSize="1.5rem",pa=t.canonWeight=700,fa=t.canonFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",ha=t.celloCanonFontSize="1.125rem",ma=t.celloCanonWeight=700,ga=t.celloCanonFontFamily="CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)",va=t.celloFontSize="1.125rem",ya=t.celloWeight=700,_a=t.celloFontFamily="CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)";t.color={aquamarine:n,aubergine:o,azure:i,bole:r,brightRed:a,chocolate:s,citric:l,electricSeafoam:c,factoryYellow:u,forest:d,fuchsia:p,gold:f,kleinBlue:h,lavender:m,maroon:g,midnight:v,neonGreen:y,orange:_,pink:b,plum:S,powderGreen:E,royalBlue:A,salmon:T,spearmint:P,storm:O,sunflower:C,tan:k,tangerine:R,violet:L,gray7:I,gray10:N,gray15:w,gray20:D,gray30:M,gray50:x,gray70:F,gray80:U,gray85:B,gray90:V,gray95:G,opacityBlack0:J,opacityBlack10:j,opacityBlack30:H,opacityBlack50:K,opacityBlack60:Y,opacityBlack70:W,opacityBlack90:z,opacityWhite0:q,opacityWhite10:X,opacityWhite30:Z,opacityWhite50:Q,opacityWhite60:$,opacityWhite70:ee,opacityWhite90:te,black0:ne,black10:oe,black30:ie,black50:re,black60:ae,black70:se,black90:le,white0:ce,white10:ue,white30:de,white50:pe,white60:fe,white70:he,white90:me,black20:ge,black40:ve,white5:ye,white20:_e,white40:be,solidBlack0:Se,solidWhite200:Ee,spotifyBlack7:Ae,midnight35:Te,aubergine46:Pe,maroon55:Oe,royalBlue55:Ce,kleinBlue61:ke,forest75:Re,chocolate75:Le,violet84:Ie,brightRed100:Ne,spearmint114:we,fuchsia115:De,tangerine120:Me,bole123:xe,salmon135:Fe,lavender135:Ue,azure135:Be,pumpkin135:Ve,tan135:Ge,storm155:Je,gold155:je,spotifyGreen157:He,sunflower172:Ke,rose180:Ye,aquamarine180:We,factoryYellow184:ze,powderGreen185:qe,citric186:Xe,neonGreen176:Ze,electricSeafoam167:Qe,redOrange25:$e,redOrange55:et,redOrange75:tt,redOrange100:nt,redOrange120:ot,redOrange135:it,redOrange155:rt,redOrange180:at,brown25:st,brown55:lt,brown75:ct,brown100:ut,brown123:dt,brown135:pt,brown155:ft,brown180:ht,brownDesat25:mt,brownDesat55:gt,brownDesat75:vt,brownDesat100:yt,brownDesat135:_t,brownDesat155:bt,brownDesat180:St,orange25:Et,orange55:At,orange75:Tt,orange100:Pt,orange135:Ot,orange155:Ct,orange180:kt,brownYellow25:Rt,brownYellow55:Lt,brownYellow75:It,brownYellow100:Nt,brownYellow135:wt,brownYellow155:Dt,brownYellow172:Mt,brownYellow180:xt,brownYellowDesat25:Ft,brownYellowDesat55:Ut,brownYellowDesat75:Bt,brownYellowDesat100:Vt,brownYellowDesat135:Gt,brownYellowDesat155:Jt,brownYellowDesat180:jt,yellow25:Ht,yellow55:Kt,yellow75:Yt,yellow100:Wt,yellow135:zt,yellow155:qt,yellow184:Xt,yellowGreen25:Zt,yellowGreen55:Qt,yellowGreen75:$t,yellowGreen100:en,yellowGreen135:tn,yellowGreen155:nn,yellowGreen186:on,yellowGreenDesat25:rn,yellowGreenDesat55:an,yellowGreenDesat75:sn,yellowGreenDesat100:ln,yellowGreenDesat135:cn,yellowGreenDesat155:un,yellowGreenDesat180:dn,green25:pn,green55:fn,green75:hn,green100:mn,green135:gn,green157:vn,green180:yn,greenDesat25:_n,greenDesat55:bn,greenDesat75:Sn,greenDesat100:En,greenDesat135:An,greenDesat155:Tn,greenDesat185:Pn,greenBlue25:On,greenBlue55:Cn,greenBlue75:kn,greenBlue100:Rn,greenBlue135:Ln,greenBlue155:In,greenBlue180:Nn,greenBlueDesat25:wn,greenBlueDesat55:Dn,greenBlueDesat75:Mn,greenBlueDesat100:xn,greenBlueDesat114:Fn,greenBlueDesat135:Un,greenBlueDesat155:Bn,greenBlueDesat180:Vn,blue25:Gn,blue55:Jn,blue75:jn,blue100:Hn,blue135:Kn,blue155:Yn,blue180:Wn,blueDesat25:zn,blueDesat55:qn,blueDesat75:Xn,blueDesat100:Zn,blueDesat135:Qn,blueDesat155:$n,blueDesat180:eo,blueViolet25:to,blueViolet55:no,blueViolet61:oo,blueViolet75:io,blueViolet100:ro,blueViolet135:ao,blueViolet155:so,blueViolet180:lo,blueVioletDesat25:co,blueVioletDesat35:uo,blueVioletDesat55:po,blueVioletDesat75:fo,blueVioletDesat100:ho,blueVioletDesat135:mo,blueVioletDesat155:go,blueVioletDesat180:vo,violet25:yo,violet55:_o,violet75:bo,violet100:So,violet135:Eo,violet155:Ao,violet180:To,violetDesat25:Po,violetDesat46:Oo,violetDesat75:Co,violetDesat100:ko,violetDesat135:Ro,violetDesat155:Lo,violetDesat180:Io,violetPink25:No,violetPink55:wo,violetPink75:Do,violetPink84:Mo,violetPink100:xo,violetPink135:Fo,violetPink155:Uo,violetPink180:Bo,violetPinkDesat25:Vo,violetPinkDesat55:Go,violetPinkDesat67:Jo,violetPinkDesat100:jo,violetPinkDesat135:Ho,violetPinkDesat155:Ko,violetPinkDesat180:Yo,pink25:Wo,pink55:zo,pink75:qo,pink100:Xo,pink115:Zo,pink135:Qo,pink155:$o,pink180:ei,pinkDesat25:ti,pinkDesat55:ni,pinkDesat75:oi,pinkDesat100:ii,pinkDesat135:ri,pinkDesat155:ai,pinkDesat180:si,red25:li,red55:ci,red75:ui,red100:di,red135:pi,red155:fi,red180:hi,redDesat25:mi,redDesat55:gi,redDesat75:vi,redDesat100:yi,redDesat135:_i,redDesat155:bi,redDesat180:Si,blueFacebook100:Ei,fluorescentRed109:Ai,fluorescentOrange144:Ti,fluorescentYellow194:Pi,fluorescentGreen176:Oi,fluorescentGreenBlue167:Ci,fluorescentCyan185:ki,fluorescentBlueViolet69:Ri,fluorescentViolet111:Li,fluorescentPink119:Ii,green:Ni,greenLight:wi,greenFocus:Di,greenDark:Mi,black:xi,white:Fi,red:Ui,redLight:Bi,redDark:Vi,blue:Gi,blueLight:Ji,blueFacebook:ji,blueDark:Hi,orangeLight:Ki},t.opacity={opacity0:Yi,opacity10:Wi,opacity30:zi,opacity50:qi,opacity70:Xi,opacity90:Zi},t.spacer={spacer4:Qi,spacer8:$i,spacer12:er,spacer16:tr,spacer20:nr,spacer24:or,spacer32:ir,spacer40:rr,spacer48:ar,spacer56:sr,spacer64:lr,spacer72:cr,spacer80:ur},t.type={balladFontSize:dr,balladWeight:pr,balladFontFamily:fr,balladBoldFontSize:hr,balladBoldWeight:mr,balladBoldFontFamily:gr,violaFontSize:vr,violaWeight:yr,violaFontFamily:_r,violaBoldFontSize:br,violaBoldWeight:Sr,violaBoldFontFamily:Er,mestoFontSize:Ar,mestoWeight:Tr,mestoFontFamily:Pr,mestoBoldFontSize:Or,mestoBoldWeight:Cr,mestoBoldFontFamily:kr,bassFontSize:Rr,bassWeight:Lr,bassFontFamily:Ir,forteFontSize:Nr,forteWeight:wr,forteFontFamily:Dr,brioFontSize:Mr,brioWeight:xr,brioFontFamily:Fr,finaleFontSize:Ur,finaleWeight:Br,finaleFontFamily:Vr,finaleBoldFontSize:Gr,finaleBoldWeight:Jr,finaleBoldFontFamily:jr,minuetFontSize:Hr,minuetWeight:Kr,minuetTracking:Yr,minuetUppercase:Wr,minuetFontFamily:zr,minuetBoldFontSize:qr,minuetBoldWeight:Xr,minuetBoldTracking:Zr,minuetBoldUppercase:Qr,minuetBoldFontFamily:$r,metronomeFontSize:ea,metronomeWeight:ta,metronomeTracking:na,metronomeUppercase:oa,metronomeFontFamily:ia,altoBrioFontSize:ra,altoBrioWeight:aa,altoBrioFontFamily:sa,altoFontSize:la,altoWeight:ca,altoFontFamily:ua,canonFontSize:da,canonWeight:pa,canonFontFamily:fa,celloCanonFontSize:ha,celloCanonWeight:ma,celloCanonFontFamily:ga,celloFontSize:va,celloWeight:ya,celloFontFamily:_a},t.ballad={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.balladBold={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.viola={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.violaBold={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.mesto={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.mestoBold={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.bass={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.forte={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.brio={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.finale={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.finaleBold={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.minuet={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.minuetBold={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.metronome={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.altoBrio={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.alto={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.canon={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.celloCanon={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},t.cello={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"}},21292:(e,t)=>{var n=t.spotifyBrandSet={background:{base:"#283ea3",highlight:"#253a98",press:"#0c1331",elevated:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},tinted:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},unsafeForSmallText:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"}},text:{base:"#1ed760",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1ed760",negative:"#1ed760",warning:"#1ed760",positive:"#1ed760",announcement:"#1ed760"},essential:{base:"#1ed760",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1ed760",negative:"#1ed760",warning:"#1ed760",positive:"#1ed760",announcement:"#1ed760"},decorative:{base:"#1ed760",subdued:"#324dcb"}},o=t.spotifyBrandAlternateSet={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:"#283ea3",brightAccent:"#000000",subdued:"#283ea3",negative:"#283ea3",warning:"#283ea3",positive:"#283ea3",announcement:"#283ea3"},essential:{base:"#283ea3",brightAccent:"#000000",subdued:"#283ea3",negative:"#283ea3",warning:"#283ea3",positive:"#283ea3",announcement:"#283ea3"},decorative:{base:"#283ea3",subdued:"#1abc54"}},i=t.spotifyBrand2Set={background:{base:"#c5f0c9",highlight:"#d9f5db",press:"#32c340",elevated:{base:"#c5f0c9",highlight:"#c5f0c9",press:"#c5f0c9"},tinted:{base:"#c5f0c9",highlight:"#c5f0c9",press:"#c5f0c9"},unsafeForSmallText:{base:"#c5f0c9",highlight:"#c5f0c9",press:"#c5f0c9"}},text:{base:"#cd1400",brightAccent:"#000000",subdued:"#cd1400",negative:"#cd1400",warning:"#cd1400",positive:"#cd1400",announcement:"#cd1400"},essential:{base:"#cd1400",brightAccent:"#000000",subdued:"#cd1400",negative:"#cd1400",warning:"#cd1400",positive:"#cd1400",announcement:"#cd1400"},decorative:{base:"#cd1400",subdued:"#a3e7a9"}},r=t.spotifyBrand2AlternateSet={background:{base:"#cd1400",highlight:"#c31300",press:"#780c00",elevated:{base:"#cd1400",highlight:"#cd1400",press:"#cd1400"},tinted:{base:"#cd1400",highlight:"#cd1400",press:"#cd1400"},unsafeForSmallText:{base:"#cd1400",highlight:"#cd1400",press:"#cd1400"}},text:{base:"#c5f0c9",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c5f0c9",negative:"#c5f0c9",warning:"#c5f0c9",positive:"#c5f0c9",announcement:"#c5f0c9"},essential:{base:"#c5f0c9",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c5f0c9",negative:"#c5f0c9",warning:"#c5f0c9",positive:"#c5f0c9",announcement:"#c5f0c9"},decorative:{base:"#c5f0c9",subdued:"#ee1700"}},a=t.spotifyBrand3Set={background:{base:"#fce54f",highlight:"#fdee8e",press:"#c1a803",elevated:{base:"#fce54f",highlight:"#fce54f",press:"#fce54f"},tinted:{base:"#fce54f",highlight:"#fce54f",press:"#fce54f"},unsafeForSmallText:{base:"#fce54f",highlight:"#fce54f",press:"#fce54f"}},text:{base:"#b02897",brightAccent:"#000000",subdued:"#b02897",negative:"#b02897",warning:"#b02897",positive:"#b02897",announcement:"#b02897"},essential:{base:"#b02897",brightAccent:"#000000",subdued:"#b02897",negative:"#b02897",warning:"#b02897",positive:"#b02897",announcement:"#b02897"},decorative:{base:"#b02897",subdued:"#e6c804"}},s=t.spotifyBrand3AlternateSet={background:{base:"#b02897",highlight:"#a7268f",press:"#641756",elevated:{base:"#b02897",highlight:"#b02897",press:"#b02897"},tinted:{base:"#b02897",highlight:"#b02897",press:"#b02897"},unsafeForSmallText:{base:"#b02897",highlight:"#b02897",press:"#b02897"}},text:{base:"#fce54f",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#fce54f",negative:"#fce54f",warning:"#fce54f",positive:"#fce54f",announcement:"#fce54f"},essential:{base:"#fce54f",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#fce54f",negative:"#fce54f",warning:"#fce54f",positive:"#fce54f",announcement:"#fce54f"},decorative:{base:"#fce54f",subdued:"#cd2fb0"}},l=t.premiumSet={background:{base:"#ffd2d7",highlight:"#ffdde1",press:"#ff7988",elevated:{base:"#ffd2d7",highlight:"#ffd2d7",press:"#ffd2d7"},tinted:{base:"#ffd2d7",highlight:"#ffd2d7",press:"#ffd2d7"},unsafeForSmallText:{base:"#ffd2d7",highlight:"#ffd2d7",press:"#ffd2d7"}},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:"#ffb9c1"}},c=t.premiumAlternateSet={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:"#ffd2d7",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ffd2d7",negative:"#ffd2d7",warning:"#ffd2d7",positive:"#ffd2d7",announcement:"#ffd2d7"},essential:{base:"#ffd2d7",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ffd2d7",negative:"#ffd2d7",warning:"#ffd2d7",positive:"#ffd2d7",announcement:"#ffd2d7"},decorative:{base:"#ffd2d7",subdued:"#1f1f1f"}},u=t.premiumDuoSet={background:{base:"#ffc862",highlight:"#ffd280",press:"#d48900",elevated:{base:"#ffc862",highlight:"#ffc862",press:"#ffc862"},tinted:{base:"#ffc862",highlight:"#ffc862",press:"#ffc862"},unsafeForSmallText:{base:"#ffc862",highlight:"#ffc862",press:"#ffc862"}},text:{base:"#000000",brightAccent:"#000000",subdued:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",brightAccent:"#000000",subdued:"#000000",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#ffb223"}},d=t.premiumDuoAlternateSet={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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:"#ffc862",subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:"#ffc862",subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},p=t.premiumStudentSet={background:{base:"#c4b1d4",highlight:"#cab9d8",press:"#9978b5",elevated:{base:"#c4b1d4",highlight:"#c4b1d4",press:"#c4b1d4"},tinted:{base:"#c4b1d4",highlight:"#c4b1d4",press:"#c4b1d4"},unsafeForSmallText:{base:"#c4b1d4",highlight:"#c4b1d4",press:"#c4b1d4"}},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:"#b299c7"}},f=t.premiumStudentAlternateSet={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:"#c4b1d4",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c4b1d4",negative:"#c4b1d4",warning:"#c4b1d4",positive:"#c4b1d4",announcement:"#c4b1d4"},essential:{base:"#c4b1d4",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c4b1d4",negative:"#c4b1d4",warning:"#c4b1d4",positive:"#c4b1d4",announcement:"#c4b1d4"},decorative:{base:"#c4b1d4",subdued:"#1f1f1f"}},h=t.premiumFamilySet={background:{base:"#a5bbd1",highlight:"#aec2d6",press:"#6389af",elevated:{base:"#a5bbd1",highlight:"#a5bbd1",press:"#a5bbd1"},tinted:{base:"#a5bbd1",highlight:"#a5bbd1",press:"#a5bbd1"},unsafeForSmallText:{base:"#a5bbd1",highlight:"#a5bbd1",press:"#a5bbd1"}},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:"#88a5c2"}},m=t.premiumFamilyAlternateSet={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:"#a5bbd1",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a5bbd1",negative:"#a5bbd1",warning:"#a5bbd1",positive:"#a5bbd1",announcement:"#a5bbd1"},essential:{base:"#a5bbd1",brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a5bbd1",negative:"#a5bbd1",warning:"#a5bbd1",positive:"#a5bbd1",announcement:"#a5bbd1"},decorative:{base:"#a5bbd1",subdued:"#1f1f1f"}},g=t.premiumMiniSet={background:{base:"#cff56a",highlight:"#e2f9a6",press:"#8bba0c",elevated:{base:"#cff56a",highlight:"#cff56a",press:"#cff56a"},tinted:{base:"#cff56a",highlight:"#cff56a",press:"#cff56a"},unsafeForSmallText:{base:"#cff56a",highlight:"#cff56a",press:"#cff56a"}},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:"#a8e20f"}},v=t.aubergineSet={background:{base:"#503659",highlight:"#503659",press:"#503659",elevated:{base:"#503659",highlight:"#503659",press:"#503659"},tinted:{base:"#503659",highlight:"#503659",press:"#503659"},unsafeForSmallText:{base:"#503659",highlight:"#503659",press:"#503659"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#684674"}},y=t.azureSet={background:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed",elevated:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed"},tinted:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed"},unsafeForSmallText:{base:"#0d72ed",highlight:"#0d72ed",press:"#0d72ed"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2c86f4"}},_=t.boleSet={background:{base:"#b06239",highlight:"#b06239",press:"#b06239",elevated:{base:"#b06239",highlight:"#b06239",press:"#b06239"},tinted:{base:"#b06239",highlight:"#b06239",press:"#b06239"},unsafeForSmallText:{base:"#b06239",highlight:"#b06239",press:"#b06239"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#c5754b"}},b=t.brightRedSet={background:{base:"#e91429",highlight:"#e91429",press:"#e91429",elevated:{base:"#e91429",highlight:"#e91429",press:"#e91429"},tinted:{base:"#e91429",highlight:"#e91429",press:"#e91429"},unsafeForSmallText:{base:"#e91429",highlight:"#e91429",press:"#e91429"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ee3a4c"}},S=t.chocolateSet={background:{base:"#834f34",highlight:"#834f34",press:"#834f34",elevated:{base:"#834f34",highlight:"#834f34",press:"#834f34"},tinted:{base:"#834f34",highlight:"#834f34",press:"#834f34"},unsafeForSmallText:{base:"#834f34",highlight:"#834f34",press:"#834f34"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9c5e3e"}},E=t.citricSet={background:{base:"#608109",highlight:"#608109",press:"#608109",elevated:{base:"#608109",highlight:"#608109",press:"#608109"},tinted:{base:"#608109",highlight:"#608109",press:"#608109"},unsafeForSmallText:{base:"#608109",highlight:"#608109",press:"#608109"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6f950a"}},A=t.forestSet={background:{base:"#056952",highlight:"#056952",press:"#056952",elevated:{base:"#056952",highlight:"#056952",press:"#056952"},tinted:{base:"#056952",highlight:"#056952",press:"#056952"},unsafeForSmallText:{base:"#056952",highlight:"#056952",press:"#056952"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#067d62"}},T=t.fuchsiaSet={background:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c",elevated:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c"},tinted:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c"},unsafeForSmallText:{base:"#e1118c",highlight:"#e1118c",press:"#e1118c"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#f03ca7"}},P=t.goldSet={background:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900",elevated:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900"},tinted:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900"},unsafeForSmallText:{base:"#bc5900",highlight:"#bc5900",press:"#bc5900"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#d86600"}},O=t.graySet={background:{base:"#777777",highlight:"#777777",press:"#777777",elevated:{base:"#777777",highlight:"#777777",press:"#777777"},tinted:{base:"#777777",highlight:"#777777",press:"#777777"},unsafeForSmallText:{base:"#777777",highlight:"#777777",press:"#777777"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#898989"}},C=t.lavenderSet={background:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac",elevated:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac"},tinted:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac"},unsafeForSmallText:{base:"#8e66ac",highlight:"#8e66ac",press:"#8e66ac"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9d7bb7"}},k=t.maroonSet={background:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b",elevated:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b"},tinted:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b"},unsafeForSmallText:{base:"#8a202b",highlight:"#8a202b",press:"#8a202b"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#ac2835"}},R=t.midnightSet={background:{base:"#202f72",highlight:"#202f72",press:"#202f72",elevated:{base:"#202f72",highlight:"#202f72",press:"#202f72"},tinted:{base:"#202f72",highlight:"#202f72",press:"#202f72"},unsafeForSmallText:{base:"#202f72",highlight:"#202f72",press:"#202f72"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#2b3f99"}},L=t.neonGreenSet={background:{base:"#148a08",highlight:"#148a08",press:"#148a08",elevated:{base:"#148a08",highlight:"#148a08",press:"#148a08"},tinted:{base:"#148a08",highlight:"#148a08",press:"#148a08"},unsafeForSmallText:{base:"#148a08",highlight:"#148a08",press:"#148a08"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#179e09"}},I=t.orangeSet={background:{base:"#d84000",highlight:"#d84000",press:"#d84000",elevated:{base:"#d84000",highlight:"#d84000",press:"#d84000"},tinted:{base:"#d84000",highlight:"#d84000",press:"#d84000"},unsafeForSmallText:{base:"#d84000",highlight:"#d84000",press:"#d84000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#f84a00"}},N=t.royalBlueSet={background:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3",elevated:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},tinted:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"},unsafeForSmallText:{base:"#283ea3",highlight:"#283ea3",press:"#283ea3"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#324dcb"}},w=t.salmonSet={background:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63",elevated:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63"},tinted:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63"},unsafeForSmallText:{base:"#e41d63",highlight:"#e41d63",press:"#e41d63"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#e94780"}},D=t.spearmintSet={background:{base:"#438270",highlight:"#438270",press:"#438270",elevated:{base:"#438270",highlight:"#438270",press:"#438270"},tinted:{base:"#438270",highlight:"#438270",press:"#438270"},unsafeForSmallText:{base:"#438270",highlight:"#438270",press:"#438270"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#4d9681"}},M=t.stormSet={background:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1",elevated:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1"},tinted:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1"},unsafeForSmallText:{base:"#537aa1",highlight:"#537aa1",press:"#537aa1"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#678cb2"}},x=t.tanSet={background:{base:"#a56753",highlight:"#a56753",press:"#a56753",elevated:{base:"#a56753",highlight:"#a56753",press:"#a56753"},tinted:{base:"#a56753",highlight:"#a56753",press:"#a56753"},unsafeForSmallText:{base:"#a56753",highlight:"#a56753",press:"#a56753"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#b37b69"}},F=t.violetSet={background:{base:"#b02897",highlight:"#b02897",press:"#b02897",elevated:{base:"#b02897",highlight:"#b02897",press:"#b02897"},tinted:{base:"#b02897",highlight:"#b02897",press:"#b02897"},unsafeForSmallText:{base:"#b02897",highlight:"#b02897",press:"#b02897"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#cd2fb0"}};t.campaign={spotifyBrandSet:n,spotifyBrandAlternateSet:o,spotifyBrand2Set:i,spotifyBrand2AlternateSet:r,spotifyBrand3Set:a,spotifyBrand3AlternateSet:s,premiumSet:l,premiumAlternateSet:c,premiumDuoSet:u,premiumDuoAlternateSet:d,premiumStudentSet:p,premiumStudentAlternateSet:f,premiumFamilySet:h,premiumFamilyAlternateSet:m,premiumMiniSet:g},t.category={aubergineSet:v,azureSet:y,boleSet:_,brightRedSet:b,chocolateSet:S,citricSet:E,forestSet:A,fuchsiaSet:T,goldSet:P,graySet:O,lavenderSet:C,maroonSet:k,midnightSet:R,neonGreenSet:L,orangeSet:I,royalBlueSet:N,salmonSet:w,spearmintSet:D,stormSet:M,tanSet:x,violetSet:F}},22396:(e,t)=>{var n=t.darkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},o=t.lightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},i=t.creatorDarkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9979ff",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#794fff",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#5925ff",highlight:"#4e17ff",press:"#25009d",elevated:{base:"#5925ff",highlight:"#5925ff",press:"#5925ff"},tinted:{base:"#5925ff",highlight:"#5925ff",press:"#5925ff"},unsafeForSmallText:{base:"#5925ff",highlight:"#5925ff",press:"#5925ff"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#7347ff"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#825aff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#5d2aff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#5925ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#5925ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#906eff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#6f42ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},r=t.creatorLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#4100f4",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#4100f4",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#4100f4",highlight:"#3d00e6",press:"#1d006c",elevated:{base:"#4100f4",highlight:"#4100f4",press:"#4100f4"},tinted:{base:"#4100f4",highlight:"#4100f4",press:"#4100f4"},unsafeForSmallText:{base:"#4100f4",highlight:"#4100f4",press:"#4100f4"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#662fff"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#8559ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#6127ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#4100f4",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#4100f4",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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9c78ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#7d4dff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},a=t.overtimeDarkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#19e68c",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#19e68c",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#19e68c",highlight:"#4beba5",press:"#12a967",elevated:{base:"#19e68c",highlight:"#19e68c",press:"#19e68c"},tinted:{base:"#19e68c",highlight:"#19e68c",press:"#19e68c"},unsafeForSmallText:{base:"#19e68c",highlight:"#19e68c",press:"#19e68c"}},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:"#16c97a"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#0e824f",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#12a363",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#19e68c",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},s=t.advertisingLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#734d85",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#734d85",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#734d85",highlight:"#6c497d",press:"#3b2744",elevated:{base:"#734d85",highlight:"#734d85",press:"#734d85"},tinted:{base:"#734d85",highlight:"#734d85",press:"#734d85"},unsafeForSmallText:{base:"#734d85",highlight:"#734d85",press:"#734d85"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#895c9f"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9469a8",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#764f88",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#734d85",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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#a683b7",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#8e61a3",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},l=t.advertisingDarkTheme={base:{background:{base:"#121212",highlight:"#1a1a1a",press:"#000000",elevated:{base:"#242424",highlight:"#2a2a2a",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.07)",highlight:"rgba(255, 255, 255, 0.1)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#121212",highlight:"#121212",press:"#121212"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#a683b7",negative:"#f15e6c",warning:"#ffa42b",positive:"#1ed760",announcement:"#3d91f4"},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#8e61a3",negative:"#e91429",warning:"#ffa42b",positive:"#1ed760",announcement:"#0d72ea"},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},brightAccent:{background:{base:"#734d85",highlight:"#6c497d",press:"#3b2744",elevated:{base:"#734d85",highlight:"#734d85",press:"#734d85"},tinted:{base:"#734d85",highlight:"#734d85",press:"#734d85"},unsafeForSmallText:{base:"#734d85",highlight:"#734d85",press:"#734d85"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#895c9f"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9469a8",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#764f88",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#734d85",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#000000",highlight:"#0d0d0d",press:"#3f3f3f",tinted:{base:"rgba(255, 255, 255, 0.1)",highlight:"rgba(255, 255, 255, 0.13)",press:"rgba(255, 255, 255, 0.06)"},elevated:{base:"#000000",highlight:"#000000",press:"#000000"},unsafeForSmallText:{base:"#000000",highlight:"#000000",press:"#000000"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9e9e9e",brightAccent:"#9f79b2",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a6a6a",brightAccent:"#85599a",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},c=t.quicksilverLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#543edd",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#543edd",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#543edd",highlight:"#4d36dc",press:"#271885",elevated:{base:"#543edd",highlight:"#543edd",press:"#543edd"},tinted:{base:"#543edd",highlight:"#543edd",press:"#543edd"},unsafeForSmallText:{base:"#543edd",highlight:"#543edd",press:"#543edd"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6a57e1"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#7867e4",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#5842de",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#543edd",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#543edd",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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9082e9",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#705de3",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},u=t.anchorLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#dadada",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#dadada"},tinted:{base:"rgba(0, 0, 0, 0.08)",highlight:"rgba(0, 0, 0, 0.05)",press:"rgba(0, 0, 0, 0.12)"},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#2a2837",subdued:"#6b668c",brightAccent:"#5000b9",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#7f43e9"},essential:{base:"#2a2837",subdued:"#8783a5",brightAccent:"#5000b9",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#874eea"},decorative:{base:"#2a2837",subdued:"#dedede"}},brightAccent:{background:{base:"#5000b9",highlight:"#4a00ac",press:"#080014",elevated:{base:"#5000b9",highlight:"#5000b9",press:"#5000b9"},tinted:{base:"#5000b9",highlight:"#5000b9",press:"#5000b9"},unsafeForSmallText:{base:"#5000b9",highlight:"#5000b9",press:"#5000b9"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#6500e9"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:"#874eea",highlight:"#8146e9",press:"#5116b8",elevated:{base:"#874eea",highlight:"#874eea",press:"#874eea"},tinted:{base:"#874eea",highlight:"#874eea",press:"#874eea"},unsafeForSmallText:{base:"#874eea",highlight:"#874eea",press:"#874eea"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#9766ed"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9a4dff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#750bff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#5000b9",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#5000b9",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},decorative:{base:"#000000",subdued:"#dedede"}},mutedAccent:{background:{base:"#24203f",highlight:"#2a254a",press:"#000000",elevated:{base:"#312c56",highlight:"#373160",press:"#000000"},tinted:{base:"rgba(255, 255, 255, 0.08)",highlight:"rgba(255, 255, 255, 0.11)",press:"rgba(255, 255, 255, 0.04)"},unsafeForSmallText:{base:"#24203f",highlight:"#24203f",press:"#24203f"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#b9b4d9",brightAccent:"#e8f524",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8077ba",brightAccent:"#e8f524",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#36305e"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},d=t.studioLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#554dff",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#0c67d3"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#7b75ff",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#0d72ea"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#9691ff",highlight:"#9e99ff",press:"#5d55ff",elevated:{base:"#9691ff",highlight:"#9691ff",press:"#9691ff"},tinted:{base:"#9691ff",highlight:"#9691ff",press:"#9691ff"},unsafeForSmallText:{base:"#9691ff",highlight:"#9691ff",press:"#9691ff"}},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:"#807aff"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#5f58ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#857fff",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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#9691ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}},p=t.megaphoneLightTheme={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#6a6a6a",brightAccent:"#6447ff",negative:"#d31225",warning:"#9d5a00",positive:"#117a37",announcement:"#496d91"},essential:{base:"#000000",subdued:"#878787",brightAccent:"#7358ff",negative:"#e91429",warning:"#c77200",positive:"#169b45",announcement:"#5179a1"},decorative:{base:"#000000",subdued:"#dedede"}},brightAccent:{background:{base:"#7358ff",highlight:"#6c50ff",press:"#2600eb",elevated:{base:"#7358ff",highlight:"#7358ff",press:"#7358ff"},tinted:{base:"#7358ff",highlight:"#7358ff",press:"#7358ff"},unsafeForSmallText:{base:"#7358ff",highlight:"#7358ff",press:"#7358ff"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#876fff"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:"#5179a1",highlight:"#4d7399",press:"#324a63",elevated:{base:"#5179a1",highlight:"#5179a1",press:"#5179a1"},tinted:{base:"#5179a1",highlight:"#5179a1",press:"#5179a1"},unsafeForSmallText:{base:"#5179a1",highlight:"#5179a1",press:"#5179a1"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#658bb2"}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#785eff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#7358ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},text:{base:"#000000",subdued:"#5e5e5e",brightAccent:"#6e52ff",negative:"#000000",warning:"#000000",positive:"#000000",announcement:"#000000"},essential:{base:"#000000",subdued:"#8f8f8f",brightAccent:"#7358ff",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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#917cff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#7358ff",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};t.theme={darkTheme:n,lightTheme:o,creatorDarkTheme:i,creatorLightTheme:r,overtimeDarkTheme:a,advertisingLightTheme:s,advertisingDarkTheme:l,quicksilverLightTheme:c,anchorLightTheme:u,studioLightTheme:d,megaphoneLightTheme:p}},58706:(e,t,n)=>{"use strict";n.d(t,{$_Y:()=>R,By7:()=>l,Eu5:()=>T,F_T:()=>g,JBZ:()=>b,SA3:()=>O,SIq:()=>C,X33:()=>r,YhY:()=>u,ajA:()=>s,cQs:()=>S,crY:()=>d,dly:()=>f,eqR:()=>L,fwM:()=>o,g4V:()=>v,gXv:()=>P,hM$:()=>p,ixZ:()=>c,lM8:()=>E,mGT:()=>y,mTH:()=>_,nuo:()=>h,o78:()=>m,tGJ:()=>i,u1d:()=>a,uOY:()=>A,vmZ:()=>k});const o="#181818",i="#333333",r="rgba(0, 0, 0, 0)",a="rgba(0, 0, 0, 0.6)",s="rgba(0, 0, 0, 0.7)",l="#1ed760",c=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),u="0.3",d="0.7",p="4px",f="8px",h="12px",m="16px",g="20px",v="24px",y="32px",_="40px",b="48px",S="56px",E="64px",A="72px",T="479px",P="767px",O="768px",C="991px",k="992px",R={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:"#4100f5",lavender:"#b49bc8",maroon:"#8c1932",midnight:"#1e3264",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:"#121212",gray10:o,gray15:"#282828",gray20:i,gray30:"#535353",gray50:"#7f7f7f",gray70:getComputedStyle(document.body).getPropertyValue("--spice-subtext").trim(),gray80:"#cccccc",gray85:"#d9d9d9",gray90:"#eeeeee",gray95:"#f8f8f8",opacityBlack0:r,opacityBlack10:"rgba(0, 0, 0, 0.1)",opacityBlack30:"rgba(0, 0, 0, 0.3)",opacityBlack50:"rgba(0, 0, 0, 0.5)",opacityBlack60:a,opacityBlack70:s,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:"rgba(0, 0, 0, 0.7)",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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),spotifyBlack7:"#121212",midnight35:"#202f72",aubergine46:"#503659",maroon55:"#8a202b",royalBlue55:"#283ea3",kleinBlue61:"#4100f4",forest75:"#056952",chocolate75:"#834f34",violet84:"#b02897",brightRed100:"#e91429",spearmint114:"#4b917d",fuchsia115:"#f036a4",tangerine120:"#ff4834",bole123:"#c87d55",salmon135:"#ef77a1",lavender135:"#af93c4",azure135:"#59a0f6",pumpkin135:"#ff7439",tan135:"#c19384",storm155:"#a5bbd1",gold155:"#ffa42b",spotifyGreen157:"#1ed760",sunflower172:"#ffc862",rose180:"#ffd2d7",aquamarine180:"#91eeda",factoryYellow184:"#fce54f",powderGreen185:"#c5f0c9",citric186:"#cff56a",neonGreen176:"#5ff550",electricSeafoam167:"#19e68c",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",blueFacebook100:"#2374e1",fluorescentRed109:"#ff001a",fluorescentOrange144:"#ff8b1f",fluorescentYellow194:"#f3ff46",fluorescentGreen176:"#5ff550",fluorescentGreenBlue167:"#19e68c",fluorescentCyan185:"#00ffff",fluorescentBlueViolet69:"#2d28ff",fluorescentViolet111:"#c13fff",fluorescentPink119:"#ff1abf",green:getComputedStyle(document.body).getPropertyValue("--spice-button").trim(),greenLight:l,greenFocus:"#1da64d",greenDark:"#14833b",black:"#000000",white:c,red:"#cd1a2b",redLight:"#e22134",redDark:"#941320",blue:"#2e77d0",blueLight:"#4687d6",blueFacebook:"#1877f2",blueDark:"#1d4c85",orangeLight:"#ff5722"},L={screenXxsMax:T,screenXsMin:"480px",screenXsMax:P,screenSmMin:O,screenSmMax:C,screenMdMin:k,screenMdMax:"1199px",screenLgMin:"1200px",screenLgMax:"1919px",screenXlMin:"1920px"}},97614:(e,t,n)=>{"use strict";n.d(t,{$z5:()=>a,Otb:()=>o,QJq:()=>i,xXe:()=>r});const o="6rem",i="4.5rem",r="3rem",a="2rem"},94041:(e,t,n)=>{"use strict";n.d(t,{Fzl:()=>o,HjQ:()=>c,Sns:()=>a,Snx:()=>m,XfI:()=>f,dG:()=>u,ekl:()=>h,g4V:()=>y,hM$:()=>v,ixZ:()=>g,k77:()=>i,m1g:()=>p,mGT:()=>_,pCU:()=>d,s8M:()=>l,tGJ:()=>r,vI0:()=>s});const o="#4100f5",i="#121212",r="#333333",a="#535353",s="#202f72",l="#834f34",c="#ef77a1",u="#af93c4",d="#59a0f6",p="#ff7439",f="#19e68c",h=getComputedStyle(document.body).getPropertyValue("--spice-button").trim(),m="#000000",g=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),v="4px",y="24px",_="32px"},95886:(e,t,n)=>{"use strict";n.d(t,{Y:()=>m});var o=n(68901),i=n(59496),r=n(87995);var a=n(30619),s=n(3254),l=n(64709),c=n(9465),u=n(14911),d="overMedia",p=s.uH[d].background.unsafeForSmallText.highlight,f=l.ZP.div.attrs({role:"presentation"}).withConfig({displayName:"OverlayBackdrop",componentId:"sc-1vbts8w-0"})(["",";background:var(--background-unsafe-for-small-text-highlight,",");height:100%;left:0;position:fixed;top:0;width:100%;z-index:",";",";.docs-story &{position:absolute;z-index:",";}"],(0,c.D)(),p,u.CV,(function(e){return e.center&&(0,l.iv)(["align-items:center;display:flex;justify-content:center;"])}),u.Tu),h=["onClose","className","withPortal"],m=i.forwardRef((function(e,t){var n,l,c=e.onClose,u=void 0===c?function(){}:c,p=e.className,m=e.withPortal,g=(0,o.Z)(e,h),v=(n=t,l=(0,i.useRef)(null),(0,i.useEffect)((function(){n&&("function"==typeof n?n(l.current):n.current=l.current)})),l),y=function(e){27!==e.keyCode&&"Escape"!==e.code||u(e)};(0,i.useEffect)((function(){return window.addEventListener("keydown",y,!0),function(){window.removeEventListener("keydown",y,!0)}}));var _=i.createElement(f,Object.assign({ref:v,onClick:function(e){e.target===v.current&&u(e)},className:(0,s.Mg)(d,p)},g,{"data-encore-id":a.e.Backdrop}));return m?r.createPortal(_,document.body):_}))},37574:(e,t,n)=>{"use strict";n.d(t,{x:()=>y});var o=n(68901),i=n(59496),r=n(3254),a=n(58706),s=n(91689),l=n(9465),c=n(88093),u=n(50823),d=n(64709),p=n(4107),f=n(3992),h="box-shadow: inset 0 0 0 1px ".concat((0,r.NE)("decorativeSubdued"));var m=function(e,t,n,o){return(0,d.iv)(["top:",";right:",";bottom:",";left:",";"],e,t||e,n||e,o||e)},g=d.ZP.div.withConfig({displayName:"Box__BoxComponent",componentId:"sc-y4nds-0"})(["",""],(function(e){var t,n=e.variant,o=e.borderRadius,g=void 0===o?"6px":o,v=e.minBlockSize,y=void 0===v?a.JBZ:v,_=e.padding,b=e.paddingBlockStart,S=void 0===b?a.nuo:b,E=e.paddingBlockEnd,A=void 0===E?a.nuo:E,T=e.paddingInlineStart,P=void 0===T?a.nuo:T,O=e.paddingInlineEnd,C=void 0===O?a.nuo:O,k=e.hoverBackgroundColor,R=e.activeBackgroundColor,L=e.isInteractive,I=e.hasFocus,N=e.hoverAnimationDuration,w=void 0===N?"300ms":N,D=e.as,M="elevated"===n||"tinted"===n?(t=n).charAt(0).toUpperCase()+t.slice(1):"",x=(0,i.useContext)(f.t).isUsingKeyboard,F=(0,i.useContext)(p.W).useBrowserDefaultFocusStyle;return(0,d.iv)([""," position:relative;border-radius:",";min-block-size:",";z-index:1;",";",";color:",";line-height:normal;",";",";"," ",""],(0,l.D)(),g,y,"a"===D&&(0,d.iv)(["display:block;text-decoration:none;"]),(0,c.BX)(F),(0,r.NE)("textBase"),function(e){switch(e){case"naked":default:return null;case"tinted":return(0,d.iv)(["background-color:",";"],(0,r.NE)("backgroundTintedBase"));case"elevated":return(0,d.iv)(["background-color:",";box-shadow:",";"],(0,r.NE)("backgroundElevatedBase"),s.Jh);case"bordered":return(0,d.iv)(["",";"],h);case"contrasting":return(0,d.iv)(["background-color:",";"],(0,r.NE)("backgroundBase"))}}(n),_?(0,d.iv)(["padding:",";"],_):(0,d.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],S,A,P,C),L&&(0,d.iv)(["--animation-speed:",";--animation-ease:ease;--bg-inset-change-press:-4px;&:after{content:'';position:absolute;border-radius:",";z-index:-1;transition:all var(--animation-speed) var(--animation-ease);"," [dir='rtl'] &{","}","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}&:hover::after{background-color:",";",";",";}&[disabled]:hover::after,&[aria-disabled='true']:hover::after{background-color:unset;}"," &[disabled]:active::after,&[aria-disabled='true']:active::after{background-color:unset;","}",";",""],w,g,m("0px"),m("0px"),"naked"===n&&(_?(0,d.iv)(["",""],m(_)):(0,d.iv)(["",";[dir='rtl'] &{",";}"],m(S,P,A,C),m(S,C,A,P))),c.cp,(0,r.NE)(null!=k?k:"background".concat(M,"Highlight")),"naked"===n&&(0,d.iv)(["",""],m("0px")),"bordered"===n&&(0,d.iv)(["",";"],h),!1!==I&&(0,d.iv)(["&:active::after{background-color:",";"," ",";}"],(0,r.NE)(null!=R?R:"background".concat(M,"Press")),"naked"===n&&(0,d.iv)(["",";"],m("var(--bg-inset-change-press)")),"bordered"===n&&(0,d.iv)(["",";"],h)),"naked"===n&&(0,d.iv)(["",""],m("unset")),"contrasting"===n&&!F&&x&&(0,d.iv)([""," "," &:hover::after{transition:background-color var(--animation-speed) var(--animation-ease);inline-size:100%;block-size:100%;top:0;left:0;}&:focus::after{border-color:var( --parents-essential-base,"," );}"],u.Cs,(0,u.s8)(g,!0),(0,r.NE)(r.iK.essentialBase)),"contrasting"!==n&&!F&&x&&(0,d.iv)([""," &:focus{box-shadow:inset 0 0 0 3px var(--parents-essential-base,",");}"],u.Cs,(0,r.NE)(r.iK.essentialBase))),x&&I&&(0,d.iv)(["box-shadow:inset 0 0 0 3px var(--parents-essential-base,",");"],(0,r.NE)(r.iK.essentialBase)))})),v=["variant","isInteractive","className","onClick","href","children","disabled","as"],y=i.forwardRef((function(e,t){var n,a=e.variant,s=void 0===a?"naked":a,l=e.isInteractive,c=e.className,u=e.onClick,d=e.href,p=e.children,f=e.disabled,h=e.as,m=void 0===h?"div":h,y=(0,o.Z)(e,v),_=null!=l?l:!!u||!!d,b=void 0;"contrasting"===s&&(b=null!==(n=y.colorSet)&&void 0!==n?n:"invertedLight");var S=(0,i.useRef)(null);t&&(S=t);var E=function(e){var t;" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||(e.preventDefault(),null==(t=S.current)||t.click())};return(0,i.useEffect)((function(){var e;u&&!d&&(null==(e=S.current)||e.addEventListener("keydown",E))}),[u,d]),i.createElement(g,Object.assign({as:d?"a":m,variant:s,className:(0,r.Mg)(b,c),ref:S,tabIndex:_?0:void 0,isInteractive:_,onClick:u,href:f?void 0:d,disabled:f},y),p)}))},98117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59496),i=n(4107),r=function(e){var t=e.useBrowserDefaultFocusStyle,n=void 0===t||t,r=e.children;return o.createElement(i.W.Provider,{value:{useBrowserDefaultFocusStyle:n}},r)}},1982:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(60901);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var r=function(e){for(var t=1;t{"use strict";n.d(t,{D:()=>N});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(4107),l=n(56079),c=n(3992),u=n(30619),d=n(3254),p=n(89312),f=n(64709),h=n(88093),m=n(50823),g=f.ZP.span.withConfig({displayName:"ButtonFocus",componentId:"sc-2hq6ey-0"})(["border-color:transparent;",""],(function(e){return e.isUsingKeyboard&&(0,m.k2)(h.Dx)})),v=n(9465),y=n(30659),_=n(7734),b=f.ZP.span.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,o=e.iconLeading,i=e.iconTrailing,r=e.iconOnly,a=e.status,s=(0,h.ZG)(n,o,i,r,void 0,a);return(0,f.iv)(["",";position:relative;background-color:var(--background-base,",");color:var(--text-base,",");display:flex;border-radius:",";font-size:inherit;min-block-size:",";align-items:center;justify-content:center;",";",";"],(0,v.D)(),t.background.base,t.text.base,h.Dx,y.il[n],s,(0,_.g)())})),S=["component","buttonSize","hover","active","focus","fallbackSet","colorSet","useBrowserDefaultFocusStyle","status","fullWidth","UNSAFE_colorSet"],E=(0,f.ZP)(r.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,a=(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,S));return r.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-qlcn5g-0"})(["",""],(function(e){var t=e.fallbackSet,n=e.useBrowserDefaultFocusStyle,o=e.status,i=e.buttonSize,r=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;}"],b,h.cp,t.background.base,t.text.base,g),u=(0,f.iv)(["","{background-color:var(--background-press,",");box-shadow:none;transform:scale(1);}","{transform:scale(1);}"],b,t.background.press,g),d=(0,f.iv)([""," ","{background-color:var(--background-highlight,",");}"],!r&&(0,f.iv)(["",",","{","}"],b,g,h.l_),b,t.background.highlight),p=(0,f.iv)(["","{border-color:",";}"],g,m.Bg);return(0,f.iv)(["",";padding:0;min-inline-size:0;align-self:center;"," &:hover{",";}"," &:active{",";}"," &:focus{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,h.Lm)(i,n,o),r&&(0,f.iv)(["inline-size:100%;"]),d,a&&(0,f.iv)(["&&{","}"],d),u,s&&(0,f.iv)(["&&{","}"],u),p,l&&(0,f.iv)(["&&{","}"],p),c)})),A=n(18542),T=f.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-1hf1hjl-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,o=e.position,i=h.FN[t],r=((0,A.zg)(y.il[t])-n)/2;return(0,f.iv)(["display:flex;position:absolute;"," "," ",""],"only"===o&&(0,f.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],r,r,r),"leading"===o&&(0,f.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===o&&(0,f.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),P=function(e){var t=e.position,n=e.buttonSize,o=e.icon,i="only"===t&&"lg"===n?28:y._[n];return r.createElement(T,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},r.createElement(o,{iconSize:i}))},O=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,i=e.children,a=e.buttonSize,s=function(e,t){return t&&r.createElement(P,{icon:t,position:e,buttonSize:a})};return t?r.createElement(r.Fragment,null,s("only",t)):r.createElement(r.Fragment,null,s("leading",n),i,s("trailing",o))},C=["component","colorSet","buttonSize","fullWidth","iconLeading","iconTrailing","iconOnly","children","className","UNSAFE_colorSet","aria-label","aria-labelledby"];function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t{"use strict";n.d(t,{P:()=>R});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(4107),l=n(56079),c=n(3992),u=n(30619),d=n(89312),p=n(64709),f=n(3254),h=n(88093),m=n(50823),g=n(30659),v=n(7734),y=["component","semanticColor","buttonSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status","fullWidth","iconLeading","iconTrailing","iconOnly"],_=(0,p.ZP)(r.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,a=(e.semanticColor,e.buttonSize,e.hover,e.active,e.focus,e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.status,e.fullWidth,e.iconLeading,e.iconTrailing,e.iconOnly,(0,i.Z)(e,y));return r.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-y0gtbx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,o=void 0===n?f.iK.textBase:n,i=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.fullWidth,d=e.iconLeading,y=e.iconTrailing,_=e.iconOnly,b=function(e){var t,n;switch(e){case f.iK.textAnnouncement:case f.iK.textBrightAccent:case f.iK.textNegative:case f.iK.textPositive:case f.iK.textSubdued:case f.iK.textWarning:t=n=e;break;default:t=f.iK.essentialSubdued,n=f.iK.essentialBase}return{borderDefaultColor:(0,f.NE)(t),borderHoverColor:(0,f.NE)(n)}}(o),S=b.borderDefaultColor,E=b.borderHoverColor,A=(0,p.iv)([""," border-color:",";",""],!u&&h.l_,E,"textSubdued"===o&&(0,p.iv)(["color:",";"],(0,f.NE)(f.iK.textBase))),T=(0,p.iv)([""," border-color:",";"],h.IT,S),P=(0,p.iv)([""," border-color:",";&::after{border-color:transparent;}"],h.cp,S),O=(0,h.ZG)(t,d,y,_,1);return(0,p.iv)(["",";"," ",";border:","px solid ",";color:",";min-line-size:0;min-block-size:",";display:inline-flex;align-items:center;justify-content:center;",";"," &:hover{",";}"," &:active{",";}"," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{",";}"],(0,h.Lm)(t,s,l),O,!s&&(0,m.s8)(h.Dx,c,a),1,S,(0,f.NE)(o),g.il[t],(0,v.g)(),u&&(0,p.iv)(["inline-size:100%;"]),A,i&&A,T,r&&T,P)})),b=n(18542),S=p.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-ihacte-0"})(["",""],(function(e){var t=e.buttonSize,n=e.iconSize,o=e.position,i=h.FN[t],r=((0,b.zg)(g.il[t])-n)/2-1;return(0,p.iv)(["display:flex;position:absolute;"," "," ",""],"only"===o&&(0,p.iv)(["top:","px;left:","px;[dir='rtl'] &{right:","px;left:auto;}"],r,r,r),"leading"===o&&(0,p.iv)(["left:",";[dir='rtl'] &{right:",";left:auto;}"],i,i),"trailing"===o&&(0,p.iv)(["right:",";[dir='rtl'] &{left:",";right:auto;}"],i,i))})),E=function(e){var t=e.position,n=e.buttonSize,o=e.icon,i="only"===t&&"lg"===n?28:g._[n];return r.createElement(S,{position:t,buttonSize:n,iconSize:i,"aria-hidden":"true"},r.createElement(o,{iconSize:i}))},A=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,i=e.children,a=e.buttonSize,s=function(e,t){return t&&r.createElement(E,{icon:t,position:e,buttonSize:a})};return t?r.createElement(r.Fragment,null,s("only",t)):r.createElement(r.Fragment,null,s("leading",n),i,s("trailing",o))},T=["component","buttonSize","iconLeading","iconTrailing","iconOnly","children","aria-label","aria-labelledby"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t{"use strict";n.d(t,{o:()=>R});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(4107),l=n(56079),c=n(3992),u=n(30619),d=n(30659),p=n(89312),f=n(64709),h=n(88093),m=n(3254),g=n(50823),v=n(7734),y=n(18542),_=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],b=(0,f.ZP)(r.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,a=(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,_));return r.createElement(o,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,o=void 0===n?"textSubdued":n,i=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.condensed,p=e.condensedAll,_=e.iconLeading,b=e.iconTrailing,S=e.iconOnly,E=e.iconSize,A=(0,h.lK)(t),T=A.paddingTopBottom,P=A.paddingLeftRight,O="md"===t&&(_||b)?-2:0,C="".concat((0,y.zg)(T)+O,"px"),k=h.FN[t],R="".concat(((0,y.zg)(d.il[t])-E)/2,"px"),L=(0,f.iv)([""," "," "," "," ",""],!p&&(0,f.iv)(["padding-block-start:",";padding-block-end:",";min-block-size:",";"],S?R:C,S?R:C,d.il[t]),p&&(0,f.iv)(["padding:0;"]),u&&(0,f.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!u&&!p&&!S&&(0,f.iv)(["padding-inline-start:",";padding-inline-end:",";"],_?k:P,b?k:P),!u&&!p&&S&&(0,f.iv)(["padding-inline-start:",";padding-inline-end:",";"],R,R)),I=(0,f.iv)([""," ",""],h.l_,"textSubdued"===o&&(0,f.iv)(["color:",";"],(0,m.NE)(m.iK.textBase))),N=(0,f.iv)([""," color:",";"],h.IT,(0,m.NE)(m.iK.textSubdued)),w=(0,f.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],h.cp,(0,m.NE)(m.iK.textSubdued));return(0,f.iv)([""," color:",";min-inline-size:0;",";",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],(0,h.Lm)(t,s,l),(0,m.NE)(o),(0,v.g)(),L,I,i&&I,N,r&&N,(function(){var e=(p?0:(0,y.zg)(C))+g.Ef,t=S?"".concat(E,"px"):"calc(100% - ".concat(u||p?0:2*(_||b?(0,y.zg)(k):(0,y.zg)(P)),"px)");return(0,f.iv)(["",";&::after{inline-size:",";}"],!s&&(0,g.qy)(e,c,a),t)}),w)})),S=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:",";"],h.Z7[t]),"trailing"===n&&(0,f.iv)(["margin-inline-start:",";"],h.Z7[t]))})),E=function(e){var t=e.position,n=e.buttonSize,o=e.icon,i=e.iconSize,a=o;return r.createElement(S,{position:t,buttonSize:n,"aria-hidden":"true"},r.createElement(a,{iconSize:i}))},A=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,i=e.children,a=e.buttonSize,s=e.iconSize,l=function(e,t){return t&&r.createElement(E,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?r.createElement(r.Fragment,null,l("only",t)):r.createElement(r.Fragment,null,l("leading",n),i,l("trailing",o))},T=["component","color","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t{"use strict";n.d(t,{Z:()=>L,H:()=>R});var o=n(68492),i=n(68901),r=n(59496),a=n(58706),s=n(78400),l=n(99759),c=n(48712),u=n(24697),d=["size","imageWidth","imageHeight","borderRadius","alt"],p={sm:"152px",md:"358px"},f=function(e){var t=e.size,n=void 0===t?"md":t,o=e.imageWidth,a=e.imageHeight,s=e.borderRadius,l=void 0===s?c.spacer4:s,f=e.alt,h=void 0===f?"":f,m=(0,i.Z)(e,d);return o||a?r.createElement(u.E,Object.assign({alt:h,imageWidth:o,imageHeight:a,borderRadius:l},m)):r.createElement(u.E,Object.assign({alt:h,style:{minInlineSize:p[n]},imageWidth:"100%",borderRadius:l},m))},h=n(81839),m=n(29964),g=n(64709),v={sm:a.dly,md:a.nuo},y={sm:"2px",md:a.hM$},_=g.ZP.div.withConfig({displayName:"Areas__InteractiveArea",componentId:"sc-1tea2mc-0"})(["& button,& a,& [role='button'],& [role='link']{position:relative;z-index:1;}"]),b=(0,g.ZP)(_).withConfig({displayName:"Areas__MainArea",componentId:"sc-1tea2mc-1"})(["",""],(function(e){var t=e.horizontalGap;return(0,g.iv)(["column-gap:",";align-items:center;display:flex;"],t)})),S=(0,g.ZP)(_).withConfig({displayName:"Areas__Column",componentId:"sc-1tea2mc-2"})(["",""],(function(e){var t=e.size,n=e.titleGap;return(0,g.iv)(["display:flex;flex-direction:column;gap:",";flex-basis:100%;"],n||y[t])})),E=(0,g.ZP)(_).withConfig({displayName:"Areas__FooterArea",componentId:"sc-1tea2mc-3"})(["margin-top:auto;"]),A=n(37574),T=(0,g.ZP)(A.x).withConfig({displayName:"Box",componentId:"sc-1njtxi4-0"})(["",""],(function(e){var t=e.contentAlign,n=e.verticalGap;return(0,g.iv)(["display:inline-flex;flex-direction:column;row-gap:",";&[disabled]{opacity:",";}",""],n,a.crY,t&&(0,g.iv)(["margin-inline-start:-",";margin-inline-end:-",";"],a.dly,a.dly))})),P=n(50823),O=g.ZP.button.withConfig({displayName:"CardButton",componentId:"sc-g9vf2u-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:transparent;border:none;width:100%;",""],P.Cs),C=g.ZP.div.withConfig({displayName:"CardLink",componentId:"sc-1ut6cns-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;"]),k=["pretitle","title","subtitle","media","leading","trailing","body","footer","size","titleGap","verticalGap","horizontalGap","alt","contentAlign","disabled","aria-disabled","isRedundantOnClick","isSelected","onClick","onClickHint","id"],R=(0,r.createContext)(null),L=r.forwardRef((function(e,t){var n=e.pretitle,c=e.title,u=e.subtitle,d=e.media,p=e.leading,g=e.trailing,y=e.body,_=e.footer,A=e.size,P=void 0===A?"md":A,L=e.titleGap,I=e.verticalGap,N=void 0===I?a.dly:I,w=e.horizontalGap,D=void 0===w?a.nuo:w,M=(e.alt,e.contentAlign),x=void 0!==M&&M,F=e.disabled,U=e["aria-disabled"],B=e.isRedundantOnClick,V=e.isSelected,G=e.onClick,J=e.onClickHint,j=e.id,H=(0,i.Z)(e,k),K=!(!F&&!U),Y=(0,r.useState)(!1),W=(0,o.Z)(Y,2),z=W[0],q=W[1],X=v[P];return r.createElement(R.Provider,{value:j},r.createElement(T,Object.assign({role:"group","aria-labelledby":"card-title-".concat(j),ref:t,isInteractive:!!G,hasFocus:z,tabIndex:void 0,paddingBlockStart:X,paddingBlockEnd:X,paddingInlineStart:X,paddingInlineEnd:X,contentAlign:x,disabled:K,verticalGap:N},H),G&&r.createElement(r.Fragment,null,B?r.createElement(C,{onClick:G,onMouseDown:function(){return q(!0)},onTouchStart:function(){return q(!0)},onMouseUp:function(){return q(!1)},onTouchEnd:function(){return q(!1)}}):r.createElement(O,{onClick:G,role:"boolean"==typeof V?"switch":void 0,"aria-checked":V,"aria-labelledby":"card-title-".concat(j," card-subtitle-").concat(j),"aria-describedby":"onClickHint".concat(j),onFocus:function(){return q(!0)},onBlur:function(){return q(!1)}}),r.createElement("div",{style:{display:"none"},id:"onClickHint".concat(j)},J)),d&&(0,s.Q)(d,r.createElement(f,{size:P,src:d})),r.createElement(b,{horizontalGap:D},p&&r.createElement("div",null,p),r.createElement(S,{size:P,titleGap:L},(0,s.Q)(n,r.createElement(l.u,null,n)),(0,s.Q)(c,r.createElement(m.l,{id:"card-title-".concat(j)},c)),(0,s.Q)(u,r.createElement(h._,null,u))),g&&r.createElement("div",null,g)),y&&(0,s.Q)(y,r.createElement(l.u,null,y)),_&&r.createElement(E,null,(0,s.Q)(_,r.createElement(l.u,null,_)))))}))},99759:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var o=n(68901),i=n(59496),r=n(64709),a=n(56162),s=["lineClamp","children","variant","semanticColor","as","hasTextSeparator"],l=r.ZP.span.withConfig({displayName:"CardDetails__LineClamp",componentId:"sc-1gdonml-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),c=i.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,c=e.variant,u=void 0===c?"mesto":c,d=e.semanticColor,p=void 0===d?"textSubdued":d,f=e.as,h=void 0===f?"p":f,m=e.hasTextSeparator,g=void 0!==m&&m,v=(0,o.Z)(e,s),y=r;return g&&Array.isArray(r)&&(y=i.createElement(i.Fragment,null,r.map((function(e,t){return r.length-1===t?e:i.createElement(i.Fragment,null,e," • ")})))),i.createElement(a.D,Object.assign({as:h,variant:u,semanticColor:p},v,{ref:t}),n?i.createElement(l,{lineClamp:n},y):y)}))},81839:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var o=n(68901),i=n(59496),r=n(39140),a=n(99759),s=["id"],l=i.forwardRef((function(e,t){var n=e.id,l=(0,o.Z)(e,s),c=(0,i.useContext)(r.H),u=c?"card-subtitle-".concat(c):void 0;return i.createElement(a.u,Object.assign({ref:t,id:n||u},l))}))},29964:(e,t,n)=>{"use strict";n.d(t,{l:()=>p});var o=n(68901),i=n(59496),r=n(64709),a=n(39140),s=n(80885),l=n(56162),c=["lineClamp","children","variant","as","onClick","aria-describedby","id","href"],u=r.ZP.span.withConfig({displayName:"CardTitle__LineClamp",componentId:"sc-1h38un4-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),d=(0,r.ZP)(l.D).withConfig({displayName:"CardTitle__CardType",componentId:"sc-1h38un4-1"})(["outline:none;text-decoration:none;&:focus{","}&:hover{text-decoration:underline;}"],s.j4),p=function(e){var t=e.lineClamp,n=e.children,r=e.variant,s=void 0===r?"ballad":r,l=e.as,p=void 0===l?"p":l,f=e.onClick,h=e["aria-describedby"],m=e.id,g=e.href,v=(0,o.Z)(e,c),y=(0,i.useContext)(a.H),_=y?"card-title-".concat(y):void 0,b=y&&f?"onClickHint".concat(y):void 0;return i.createElement(d,Object.assign({id:m||_,forwardedAs:g?"a":p,onClick:f,variant:s,href:g,"aria-describedby":h||b},v),t?i.createElement(u,{lineClamp:t},n):n)}},76160:(e,t,n)=>{"use strict";n.d(t,{A:()=>P});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(3254),c=n(58706),u=n(64709),d=n(81239),p=n(9465),f=n(88093),h=n(50823),m=(0,d._S)("pill",c.mGT),g=u.ZP.button.withConfig({displayName:"Chip__ChipComponent",componentId:"sc-ry3uox-0"})(["",""],(function(e){var t=e.isUsingKeyboard,n=e.useBrowserDefaultFocusStyle,o=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,p.D)(),(0,f.BX)(n),!n&&(0,h.s8)(m,t),m,(0,d.mA)(-2,c.dly),o&&(0,u.iv)(["&:not(:first-child){margin-inline-start:",";z-index:0;","}"],"calc(-1 * ".concat("sm"===i?(0,d.mA)(3,c.mTH):(0,d.mA)(4,c.cQs),")"),t&&(0,u.iv)(["&:focus{z-index:1;margin-inline-start:",";}"],"calc(-1 * ".concat("sm"===i?(0,d.mA)(-1,c.nuo):(0,d.mA)(0,c.o78),")"))),(0,d.mA)(-2,c.dly))})),v=n(30659),y=n(7734),_=n(98590),b=n(14911),S=["children","iconLeading","iconTrailing","size"],E=u.ZP.span.withConfig({displayName:"ChipInner__ChipInnerComponent",componentId:"sc-1ly6j4j-0"})(["",""],(function(e){var t=e.size,n=e.selected,o=e.secondary,i=e.isUsingKeyboard,r=e.iconLeading,a=e.iconTrailing;return(0,u.iv)(["",";border-radius:",";color:",";transition:background-color 0.2s,color 0.2s;display:",";min-inline-size:0;min-block-size:",";align-items:center;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,p.D)(),m,(0,l.NE)(l.iK.textBase),r||a?"grid":"inline-flex",(0,d.EW)(t,v.il[t]),"sm"===t?(0,d.mA)(-4,v.sz[t]):(0,d.mA)(-2,v.sz[t]),"sm"===t?(0,d.mA)(-4,v.sz[t]):(0,d.mA)(-2,v.sz[t]),"sm"===t?(0,d.mA)(-1,c.nuo):(0,d.mA)(0,c.o78),"sm"===t?(0,d.mA)(-1,c.nuo):(0,d.mA)(0,c.o78),(0,y.g)(),(r||a)&&(0,u.iv)(["grid-auto-flow:column;grid-gap:",";"],"sm"===t?c.dly:c.nuo),g,"sm"===t?(0,_.I_)():(0,_.Vr)(),g,"sm"===t?(0,_.Ue)():(0,_.Mp)(),o?(0,u.iv)(["background-color:",";",":not(:focus) > &&{padding-inline-start:",";}",":focus > &&{","}"],(0,l.NE)(l.iK.decorativeSubdued),g,"sm"===t?(0,d.mA)(3,c.mTH):(0,d.mA)(4,c.cQs),g,!i&&(0,u.iv)(["padding-inline-start:",";"],"sm"===t?(0,d.mA)(3,c.mTH):(0,d.mA)(4,c.cQs))):(0,u.iv)(["background-color:",";"],n?(0,l.NE)(l.iK.backgroundBase):(0,l.NE)(l.iK.backgroundTintedBase)),g,n?(0,l.NE)(l.iK.backgroundHighlight):(0,l.NE)(l.iK.backgroundTintedHighlight),g,n?(0,l.NE)(l.iK.backgroundPress):(0,l.NE)(l.iK.backgroundTintedPress),g,g,n?(0,l.NE)(l.iK.backgroundBase):(0,l.NE)(l.iK.backgroundTintedBase),b.Zx,b.fn)})),A=function(e){var t=e.children,n=e.iconLeading,r=e.iconTrailing,a=e.size,s=(0,o.Z)(e,S),l=n,c=r;return i.createElement(E,Object.assign({size:a,iconLeading:n,iconTrailing:r},s),l&&i.createElement(l,{iconSize:v._[a],"aria-hidden":"true"}),l||c?i.createElement("span",null,t):t,c&&i.createElement(c,{iconSize:v._[a],"aria-hidden":"true"}))},T=["size","secondary","selected","selectedColorSet","className","children","iconLeading","iconTrailing"],P=i.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,v=e.iconLeading,y=e.iconTrailing,_=(0,o.Z)(e,T),b=(0,i.useContext)(a.t).isUsingKeyboard,S=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(g,Object.assign({secondary:u,size:c,isUsingKeyboard:b,useBrowserDefaultFocusStyle:S,ref:t,role:_.href?void 0:"checkbox","aria-checked":_.href?void 0:d},_,{"data-encore-id":s.e.Chip}),i.createElement(A,{selected:d,isUsingKeyboard:b,size:c,secondary:u,iconLeading:v,iconTrailing:y,className:d?(0,l.Mg)(f,h):h},m))}))},37769:(e,t,n)=>{"use strict";n.d(t,{w:()=>_});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(83680),c=n(58706),u=n(64709),d=n(9465),p=n(88093),f=n(50823),h=n(81239),m=n(3254),g=n(14911),v=u.ZP.button.withConfig({displayName:"ChipClear__ChipClearComponent",componentId:"sc-zv5btm-0"})(["",""],(function(e){var t=e.size,n=e.isUsingKeyboard,o=e.useBrowserDefaultFocusStyle;return(0,u.iv)(["",";",";",";border-radius:50%;display:inline-flex;vertical-align:middle;padding:",";transition:background-color 0.2s,color 0.2s;background-color:",";&:hover{background-color:",";}&:active{background-color:",";}&[disabled]{background-color:",";opacity:",";cursor:",";}&:not(:last-child){margin-inline-end:",";margin-block-end:",";}"],(0,d.D)(),(0,p.BX)(o),!o&&(0,f.s8)("50%",n),"sm"===t?(0,h.mA)(-2,c.dly):(0,h.mA)(-1,c.nuo),(0,m.NE)(m.iK.backgroundTintedBase),(0,m.NE)(m.iK.backgroundTintedHighlight),(0,m.NE)(m.iK.backgroundTintedPress),(0,m.NE)(m.iK.backgroundTintedBase),g.Zx,g.fn,(0,h.mA)(-2,c.dly),(0,h.mA)(-2,c.dly))})),y=["size"],_=i.forwardRef((function(e,t){var n=e.size,c=void 0===n?"sm":n,u=(0,o.Z)(e,y),d=(0,i.useContext)(a.t).isUsingKeyboard,p="sm"===c?16:24,f=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(v,Object.assign({isUsingKeyboard:d,useBrowserDefaultFocusStyle:f,ref:t,size:c},u,{"data-encore-id":s.e.ChipClear}),i.createElement(l.k,{iconSize:p,"aria-hidden":"true"}))}))},38191:(e,t,n)=>{"use strict";n.d(t,{l:()=>S});var o=n(68492),i=n(68901),r=n(59496),a=n(58896),s=n(30619),l=n(3254),c=n(58706),u=n(64709),d=n(50823),p=n(81239),f=u.ZP.div.withConfig({displayName:"Body",componentId:"sc-19u46fy-0"})([""," padding-inline-start:",";padding-inline-end:",";padding-block-end:",";overflow:auto;"],d.Cs,(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(0,p.mA)(0,c.o78)),h=n(9465),m=n(91689),g=u.ZP.div.attrs({role:"dialog"}).withConfig({displayName:"Dialog",componentId:"sc-18qzfns-0"})(["",";",";padding-block-start:",";inline-size:335px;overflow-wrap:break-word;"],(0,h.D)(),(function(e){return(0,m.WZ)({colorSet:e.colorSet})}),(0,p.mA)(0,c.o78)),v=u.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1w1mf9b-0"})(["align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-block-start:",";padding-inline-start:",";padding-inline-end:",";padding-block-end:",";@media (max-width:","){justify-content:center;}& > div{display:flex;min-inline-size:0;@media (max-width:","){flex-direction:column;}}a,button{&:not(:first-child){margin-inline-start:",";}@media (max-width:","){margin-inline-start:0;margin-inline-end:0;margin-block-start:",";margin-block-end:",";&:not(:first-child){margin-inline-start:0;}}}"],(0,p.mA)(-4,c.hM$),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(0,p.mA)(-2,c.dly),c.Eu5,c.Eu5,(0,p.mA)(2,c.mGT),c.Eu5,(0,p.mA)(-4,c.hM$),(0,p.mA)(-4,c.hM$)),y=n(56162),_=(0,u.ZP)(y.D).attrs({forwardedAs:"h1",variant:"cello"}).withConfig({displayName:"Title",componentId:"sc-i526nw-0"})(["padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"],(0,p.mA)(-2,c.dly),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(function(e){return e.hasBorder&&(0,u.iv)(["border-block-end:1px solid var(--decorative-subdued,",");"],l.uH[e.colorSet].decorative.subdued)})),b=["dialogTitle","dialogTitleId","id","body","footer","className","colorSet","aria-label"],S=r.forwardRef((function(e,t){var n=e.dialogTitle,c=e.dialogTitleId,u=e.id,d=e.body,p=e.footer,h=e.className,m=e.colorSet,y=void 0===m?"base":m,S=e["aria-label"],E=(0,i.Z)(e,b),A=u&&"".concat(u,"-title")||c;n&&A||S||(0,a.ZK)("Warning: The DialogAlert component must have dialogTitle and an id or an aria-label to be accessible.");var T=(0,r.useState)(!1),P=(0,o.Z)(T,2),O=P[0],C=P[1],k=u&&"".concat(u,"-body");return r.createElement(g,Object.assign({ref:t,colorSet:y,className:(0,l.Mg)(y,h),"aria-label":S,"aria-describedby":k,"aria-labelledby":!S&&n?A:void 0,id:u},E,{"data-encore-id":s.e.DialogAlert}),n&&r.createElement(_,{id:A,hasBorder:O,colorSet:y},n),r.createElement(f,{id:k,onScroll:function(e){return C(e.target instanceof HTMLElement&&0!==e.target.scrollTop)}},d),p&&r.createElement(v,null,p))}))},76123:(e,t,n)=>{"use strict";n.d(t,{d:()=>E});var o=n(68492),i=n(68901),r=n(59496),a=n(58896),s=n(30619),l=n(3254),c=n(58706),u=n(64709),d=n(50823),p=n(81239),f=u.ZP.div.withConfig({displayName:"Body",componentId:"sc-1al2t0w-0"})([""," border-block-end:1px solid ",";overflow:auto;@media (max-width:","){padding-block-start:0;padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (min-width:","){padding-block-start:0;padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}"],d.Cs,(function(e){return"var(--decorative-subdued, ".concat(l.uH[e.colorSet].decorative.subdued,")")}),c.gXv,(0,p.mA)(1,c.o78),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),c.SA3,(0,p.mA)(1,c.g4V),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T)),h=n(91689),m=u.ZP.div.attrs({role:"dialog"}).withConfig({displayName:"Dialog",componentId:"sc-1o778i8-0"})(["",";width:600px;overflow-wrap:break-word;",":first-child{padding-block-start:",";}@media (min-width:","){",":last-child{padding-block-end:",";}}"],(function(e){return(0,h.WZ)({colorSet:e.colorSet})}),f,(0,p.mA)(0,c.o78),c.SA3,f,(0,p.mA)(0,c.o78)),g=u.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1ory0pq-0"})(["align-items:center;display:flex;justify-content:flex-end;flex-shrink:0;flex-wrap:wrap;@media (max-width:","){padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (max-width:","){justify-content:center;}@media (min-width:","){padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}& > div{@media (max-width:","){display:flex;flex-direction:column;}}& > *{min-width:0;}a,button{@media (max-width:","){margin-inline-start:",";}@media (max-width:","){margin-block-start:",";margin-block-end:",";margin-inline-start:0;margin-inline-end:0;}@media (min-width:","){margin-inline-start:",";}}"],c.gXv,(0,p.mA)(-2,c.dly),(0,p.mA)(-2,c.dly),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),c.Eu5,c.SA3,(0,p.mA)(0,c.o78),(0,p.mA)(0,c.o78),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),c.Eu5,c.gXv,(0,p.mA)(0,c.o78),c.Eu5,(0,p.mA)(-4,c.hM$),(0,p.mA)(-4,c.hM$),c.SA3,(0,p.mA)(3,c.mTH)),v=n(56162),y=(0,u.ZP)(v.D).attrs({variant:"finale"}).withConfig({displayName:"Legal",componentId:"sc-5ufqr3-0"})(["background:",";border-radius:",";color:",";display:",";max-width:100%;padding:",";@media (max-width:","){display:block;}a{margin-inline-start:0;}"],(function(e){return"var(--background-tinted-base, ".concat(l.uH[e.colorSet].background.tinted.base,")")}),(0,p._S)("md",c.hM$),(function(e){return"var(--text-subdued, ".concat(l.uH[e.colorSet].text.subdued,")")}),(function(e){return e.legalStrict?"block":"inline-block"}),(0,p.mA)(-2,c.dly),c.gXv),_=u.ZP.div.withConfig({displayName:"LegalContainer",componentId:"sc-k8tc6g-0"})(["flex:1;@media (max-width:","){flex-basis:100%;margin-block-start:",";margin-block-end:",";}@media (min-width:","){margin-block-start:calc(-1 * ",");margin-block-end:calc(-1 * ",");}",";"],c.gXv,(0,p.mA)(-1,c.nuo),(0,p.mA)(1,c.F_T),c.SA3,(0,p.mA)(-4,c.hM$),(0,p.mA)(-4,c.hM$),(function(e){return e.legalStrict&&(0,u.iv)(["flex-basis:100%;@media (min-width:","){margin-block-end:",";}"],c.SA3,(0,p.mA)(0,c.o78))})),b=(0,u.ZP)(v.D).attrs((function(e){return{forwardedAs:"h1",variant:e.variant||"cello"}})).withConfig({displayName:"Title",componentId:"sc-7gi4ab-0"})(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";",";"],(0,p.mA)(0,c.o78),(0,p.mA)(-2,c.dly),(0,p.mA)(1,c.F_T),(0,p.mA)(1,c.F_T),(function(e){return e.hasBorder&&(0,u.iv)(["border-block-end:1px solid var(--decorative-subdued,",");"],l.uH[e.colorSet].decorative.subdued)})),S=["dialogTitle","dialogTitleId","id","body","footer","legal","legalStrict","className","colorSet","aria-label"],E=r.forwardRef((function(e,t){var n=e.dialogTitle,c=e.dialogTitleId,u=e.id,d=e.body,p=e.footer,h=e.legal,v=e.legalStrict,E=e.className,A=e.colorSet,T=void 0===A?"base":A,P=e["aria-label"],O=(0,i.Z)(e,S),C=u&&"".concat(u,"-title")||c;n&&C||P||(0,a.ZK)("Warning: The DialogConfirmation component must have dialogTitle and an id or an aria-label to be accessible.");var k=u&&"".concat(u,"-body"),R=(0,r.useState)(!1),L=(0,o.Z)(R,2),I=L[0],N=L[1];return r.createElement(m,Object.assign({ref:t,id:u,colorSet:T,className:(0,l.Mg)(T,E),"aria-label":P,"aria-describedby":k,"aria-labelledby":!P&&n?C:void 0},O,{"data-encore-id":s.e.DialogConfirmation}),n&&r.createElement(b,{id:C,hasBorder:I,colorSet:T,"data-testid":"dialogTitle"},n),r.createElement(f,{id:k,colorSet:T,onScroll:function(e){return N(e.target instanceof HTMLElement&&0!==e.target.scrollTop)}},d),(p||h)&&r.createElement(g,null,h&&r.createElement(_,{legalStrict:v},r.createElement(y,{colorSet:T,legalStrict:v},h)),p))}))},52980:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});var o=n(60901),i=n(59496),r=n(56079);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t{"use strict";n.d(t,{z:()=>E});var o=n(68901),i=n(59496),r=n(3992),a=n(30619),s=n(18845),l=n(64709),c=n(42626),u=l.ZP.div.withConfig({displayName:"Checkbox",componentId:"sc-svpvf6-0"})(["",";"],(0,c.d_)()),d=n(50823),p=n(3254),f=n(14911),h=function(e){var t=(0,d.F5)(),n=t.dimension,o=t.position;return(0,l.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(o," - ").concat(e,"px)"),"calc(".concat(o," - ").concat(e,"px)"))},m=l.ZP.span.withConfig({displayName:"Indicator",componentId:"sc-1airx73-0"})(["",""],(function(e){var t=(0,l.iv)(["",";"," input + label &{background-color:",";}input:focus + label &::after{border-color:",";}"," input:active + label &{border-color:",";}"," input:disabled + label &{cursor:",";opacity:",";}"],(0,c.oi)("".concat(3,"px")),(0,d.s8)("".concat(3+d.Ef,"px"),e.isUsingKeyboard),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(p.iK.essentialBase),e.isFocus&&(0,l.iv)(["&::after{border-color:",";}"],(0,p.NE)(p.iK.essentialBase)),(0,p.NE)(e.semanticColor),e.isActive&&(0,l.iv)(["input + label &{border-color:",";}"],(0,p.NE)(e.semanticColor)),f.fn,f.Zx),n=(0,l.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,p.NE)(p.iK.essentialSubdued),h(1),e.isFocus&&(0,l.iv)(["input:not(:checked) + label &&::after{","}input:not(:checked):active + label &::after{","}"],h(1),h(2)),(0,p.NE)(e.semanticColor),e.isHover&&(0,l.iv)(["input:not(:checked) + label &&{border-color:",";}"],(0,p.NE)(e.semanticColor)),2,(0,p.NE)(e.semanticColor),h(2),e.isActive&&(0,l.iv)(["input:not(:checked) + label &&{border-width:","px;border-color:",";}input:not(:checked):focus + label &::after{","}"],2,(0,p.NE)(e.semanticColor),h(2)),e.isActive&&e.isFocus&&(0,l.iv)(["input:not(:checked) + label &::after{","}"],h(2)),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(p.iK.essentialSubdued),1),o=(0,l.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,p.NE)(e.semanticColor),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(e.semanticColor)),i=(0,l.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,p.NE)(e.semanticColor),(0,p.NE)(p.iK.backgroundBase),(0,p.NE)(e.semanticColor));return(0,l.iv)(["",";"," "," ",""],t,!e.indeterminate&&n,e.indeterminate&&i,o)})),g=l.ZP.label.withConfig({displayName:"Label",componentId:"sc-cpoq-0"})(["display:flex;position:relative;min-inline-size:0;"]),v=n(58706),y=n(98590),_=n(81239),b=l.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,p.NE)(p.iK.textBase),(function(e){return e.small?(0,l.iv)(["top:0;",""],(0,y.QB)()):(0,y.Ef)()}),(0,_.mA)(-1,v.nuo),(0,_.mA)(1,v.g4V),f.fn,f.Zx),S=["small","indeterminate","id","children","semanticColor","isHover","isFocus","isActive"],E=i.forwardRef((function(e,t){var n=e.small,l=e.indeterminate,c=e.id,d=e.children,p=e.semanticColor,f=void 0===p?"essentialBrightAccent":p,h=e.isHover,v=e.isFocus,y=e.isActive,_=(0,o.Z)(e,S),E=(0,i.useContext)(r.t).isUsingKeyboard;return i.createElement(u,{"data-encore-id":a.e.FormCheckbox},i.createElement(s.T,Object.assign({component:"input",type:"checkbox",ref:t,id:c},_)),i.createElement(g,{htmlFor:c},i.createElement(m,{className:l?"Encore_indeterminate":"",indeterminate:l,isUsingKeyboard:E,semanticColor:f,isHover:h,isFocus:v,isActive:y}),d&&i.createElement(b,{small:n},d)))}))},98880:(e,t,n)=>{"use strict";n.d(t,{c:()=>T});var o=n(68901),i=n(59496),r=n(30619),a=n(18845),s=n(58706),l=n(64709),c=n(9465),u=n(81239),d=l.ZP.div.withConfig({displayName:"Group",componentId:"sc-u9bcx5-0"})(["",";padding-block-end:",";",";"],(0,c.D)(),(0,u.mA)(1,s.g4V),(function(e){return"fieldset"===e.as&&(0,l.iv)(["min-inline-size:0;padding-inline-start:0;padding-inline-end:0;padding-block-start:0;margin:0;border:0;"])})),p=n(3254),f=l.ZP.span.withConfig({displayName:"IndicatorText",componentId:"sc-7u3ecx-0"})(["color:",";padding-inline-start:",";@media (max-width:","){flex:1;}"],(0,p.NE)(p.iK.textSubdued),(0,u.mA)(-4,s.hM$),s.gXv),h=l.ZP.div.withConfig({displayName:"InlineGroup",componentId:"sc-4o5aq4-0"})(["display:flex;flex-wrap:wrap;"]),m=l.ZP.label.withConfig({displayName:"Label",componentId:"sc-1c0cv3r-0"})(["color:",";"],(0,p.NE)(p.iK.textBase)),g=n(98590),v=n(87577),y=l.ZP.div.withConfig({displayName:"LabelGroup",componentId:"sc-1ibddrg-0"})(["",";",";align-items:center;display:flex;inline-size:100%;padding-block-end:",";@media (max-width:","){justify-content:space-between;}",";",";"],(0,c.D)(),(0,g.Dg)(),(0,u.mA)(-2,s.dly),s.gXv,(function(e){return"legend"===e.as&&(0,l.iv)(["padding-inline-start:0;padding-inline-end:0;"])}),(function(e){return e.isHidden&&(0,l.iv)(["",""],(0,v.j)())})),_=l.ZP.span.withConfig({displayName:"LabelInner",componentId:"sc-19pye2k-0"})(["display:inline-block;"]),b=l.ZP.span.withConfig({displayName:"Popover",componentId:"sc-19tjcmc-0"})(["display:inline-flex;margin-inline-start:",";"],(0,u.mA)(-4,s.hM$)),S=l.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),(0,u.mA)(-4,s.hM$),s.gXv),E=["withFieldset","children","indicator","inline","label","labelFor","hideLabel","popover","optionalIndicatorText","requiredIndicatorTextForScreenReader"],A=function(e,t,n){switch(e){case"optional":return i.createElement(f,null,t);case"required":return i.createElement(i.Fragment,null,i.createElement(S,{"aria-hidden":"true"},"*"),i.createElement(a.T,null,n));default:return i.createElement(f,null,"(",e,")")}},T=function(e){var t=e.withFieldset,n=e.children,a=e.indicator,s=e.inline,l=e.label,c=e.labelFor,u=e.hideLabel,p=e.popover,f=e.optionalIndicatorText,g=void 0===f?"(Optional)":f,v=e.requiredIndicatorTextForScreenReader,S=void 0===v?"(required)":v,T=(0,o.Z)(e,E);return i.createElement(d,Object.assign({as:t?"fieldset":void 0},T,{"data-encore-id":r.e.FormGroup}),l&&i.createElement(y,{as:t?"legend":void 0,isHidden:!!u},t?i.createElement("span",null,l,a&&A(a,g,S)):i.createElement(m,{htmlFor:c},i.createElement(_,null,l,a&&A(a,g,S))),p&&i.createElement(b,null,p)),s?i.createElement(h,null,n):n)}},18569:(e,t,n)=>{"use strict";n.d(t,{y:()=>g});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(58706),c=n(64709),u=n(42626),d=n(9465),p=n(81239),f=n(30659),h=c.ZP.input.withConfig({displayName:"Input",componentId:"sc-1gbx9xe-0"})(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding-inline-start:14px;padding-inline-end:14px;padding-block-start:",";padding-block-end:",";min-block-size:",";",";&[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;}}}"],(function(e){return(0,u.lm)(e.useBrowserDefaultFocusStyle)}),(0,d.D)(),(0,p._S)("md",l.hM$),(0,p.mA)(-2,f.sz.md),(0,p.mA)(-2,f.sz.md),(0,p.EW)("md",f.il.md),(function(e){return(0,u.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})}),l.SA3,(0,p.mA)(-1,l.nuo),l.gXv,(0,p.mA)(-2,l.dly),l.SA3,(0,p.mA)(-4,l.hM$),(0,p.EW)("md",l.JBZ),(0,p.EW)("md",l.JBZ),(0,p.mA)(-2,l.dly),l.gXv,l.SA3,l.SA3),m=["error"],g=i.forwardRef((function(e,t){var n=e.error,l=(0,o.Z)(e,m),c=(0,i.useContext)(a.t).isUsingKeyboard,u=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(h,Object.assign({ref:t,isUsingKeyboard:c,useBrowserDefaultFocusStyle:u,error:n,"aria-invalid":n},l,{"data-encore-id":s.e.FormInput}))}))},71500:(e,t,n)=>{"use strict";n.d(t,{i:()=>v});var o=n(83150),i=n(51163),r=n(59496),a=n(4107),s=n(3992),l=n(30619),c=n(64709),u=n(42626),d=n(81239),p=n(30659),f=c.ZP.select.withConfig({displayName:"Select",componentId:"sc-3qvhho-0"})(["",";",";",";block-size:",";"],(function(e){return(0,u.lm)(e.useBrowserDefaultFocusStyle)}),(0,u.GN)(),(function(e){return(0,u.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})}),(0,d.EW)("md",p.il.md)),h=n(19422),m=(0,c.ZP)(h.C).attrs({iconSize:16,"aria-hidden":"true"}).withConfig({displayName:"SelectArrow",componentId:"sc-12qvh0d-0"})(["",";"],(0,u.DW)()),g=c.ZP.div.withConfig({displayName:"SelectContainer",componentId:"sc-wv4dj5-0"})(["position:relative;inline-size:100%;display:flex;align-items:center;"]),v=r.forwardRef((function(e,t){var n=(0,i.Z)({},((0,o.Z)(e),e)),c=(0,r.useContext)(s.t).isUsingKeyboard,u=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle;return r.createElement(g,{"data-encore-id":l.e.FormSelect},r.createElement(f,Object.assign({ref:t,isUsingKeyboard:c,useBrowserDefaultFocusStyle:u},n)),r.createElement(m,null))}))},98718:(e,t,n)=>{"use strict";n.d(t,{B:()=>m});var o=n(83150),i=n(51163),r=n(59496),a=n(4107),s=n(3992),l=n(30619),c=n(48712),u=n(64709),d=n(42626),p=n(9465),f=n(81239),h=u.ZP.textarea.withConfig({displayName:"Textarea",componentId:"sc-7bfmzb-0"})(["",";",";margin-block-start:0;margin-block-end:0;border-radius:",";padding:","px;",";"],(function(e){return(0,d.lm)(e.useBrowserDefaultFocusStyle)}),(0,p.D)(),(0,f._S)("md",c.spacer4),14,(function(e){return(0,d.O0)({isUsingKeyboard:e.isUsingKeyboard,isHover:e.isHover,isFocus:e.isFocus,error:e.error,useBrowserDefaultFocusStyle:e.useBrowserDefaultFocusStyle})})),m=r.forwardRef((function(e,t){var n=(0,i.Z)({},((0,o.Z)(e),e)),c=(0,r.useContext)(s.t).isUsingKeyboard,u=(0,r.useContext)(a.W).useBrowserDefaultFocusStyle;return r.createElement(h,Object.assign({ref:t,isUsingKeyboard:c,useBrowserDefaultFocusStyle:u},n,{"data-encore-id":l.e.FormTextarea}))}))},50998:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(64709),i=n(3254);const r=o.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," ",""],(function(e){return e.autoMirror&&(0,o.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.iconColor?(0,o.iv)(["fill:","};"],(0,i.NE)(e.iconColor)):(0,o.iv)(["fill:currentColor;"])}))},91143:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var o=n(59496),i=n(75257);function r(e){return o.createElement(i.E,e)}},74567:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},77156:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},72133:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},88746:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},14242:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},22616:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},38176:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},7142:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},11661:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},58507:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},80734:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},86613:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},74991:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},45509:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},78802:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},96959:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},23246:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},77675:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},16004:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},37433:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},5153:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},19422:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},22991:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},79642:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},39989:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},73911:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},17520:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},50300:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},11101:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},18600:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},89139:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},70172:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},37230:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},36482:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},59326:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},57508:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},73440:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},64556:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},50202:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},93875:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},74893:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},69492:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},99700:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},47746:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},35302:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},75257:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},71316:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},23046:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},67187:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},52210:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},74572:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},94285:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},67176:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},47425:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},36973:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},50994:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},93202:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},57988:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},65369:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},75430:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},76254:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},82954:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},37133:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},74720:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},60946:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},26449:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},85556:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},8799:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},16518:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},95798:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},37912:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},3115:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},82146:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},41915:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},73525:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},86307:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},3649:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},21543:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},95077:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},20707:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},83292:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},10533:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},75630:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},31538:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},87297:(e,t,n)=>{"use strict";n.d(t,{dx:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},90466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},37844:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},14845:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},71463:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},76434:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},77043:(e,t,n)=>{"use strict";n.d(t,{Av:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},43026:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},17059:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},6932:(e,t,n)=>{"use strict";n.d(t,{vL:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},97862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},97572:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},48826:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},27747:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},71096:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},71867:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},95624:(e,t,n)=>{"use strict";n.d(t,{L:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},19452:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},82527:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},44977:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},69662:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},5577:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},61068:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},16673:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},14924:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},72662:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},26290:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},85953:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},54652:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},99343:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},5006:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},56876:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},8138:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},48122:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},34058:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},83644:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},8678:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},67809:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},48491:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},3334:(e,t,n)=>{"use strict";n.d(t,{H:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},48710:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},18147:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},92650:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},8038:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},39757:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},37899:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},41923:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},50148:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},32183:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},9173:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null===(t=e.autoMirror)||void 0===t||t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},80912:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},38127:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},42543:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},66766:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},63258:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},21586:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},36165:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},31925:(e,t,n)=>{"use strict";n.d(t,{f:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},27905:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},57318:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},67139:(e,t,n)=>{"use strict";n.d(t,{$:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},31450:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},33356:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},19953:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},97089:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},11608:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},96518:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},26310:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},83680:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});var o=n(59496),i=n(93616);function r(e){var t,n,r,a,s,l=(0,i.L)([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),c=null!==(t=e.autoMirror)&&void 0!==t&&t;return o.createElement(i.J,Object.assign({},e,{autoMirror:c,viewBox:"0 0 ".concat(l.size," ").concat(l.size),dangerouslySetInnerHTML:{__html:"".concat((a=e.title,s=e.titleId,a?"").concat(a,""):"")).concat((n=e.desc,r=e.descId,n?"").concat(n,""):"")).concat(l.svgContent)}}))}},93616:(e,t,n)=>{"use strict";n.d(t,{J:()=>c,L:()=>l});var o=n(68901),i=n(59496),r=n(30619),a=n(50998),s=["iconSize","semanticColor","color","title","titleId","desc","descId","autoMirror"],l=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}))},c=Spicetify.ReactComponent.IconComponent=function(e){var t=e.iconSize,n=void 0===t?24:t,l=e.semanticColor,c=(e.color,e.title),u=e.titleId,d=e.desc,p=e.descId,f=e.autoMirror,h=(0,o.Z)(e,s);return i.createElement(a.Z,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:l,autoMirror:f,"aria-labelledby":c&&u?u:h["aria-labelledby"],"aria-describedby":d&&p?p:h["aria-describedby"],"aria-hidden":!c&&!u},h,{"data-encore-id":r.e.Icon}))}},24697:(e,t,n)=>{"use strict";n.d(t,{E:()=>_});var o=n(83150),i=n(51163),r=n(68492),a=n(68901),s=n(59496),l=n(30619),c=n(64709),u=function(){return(0,c.iv)(["vertical-align:middle;"])},d=function(){return(0,c.iv)(["",";",";",";",";",";",";"],(function(e){return e.imageWidth&&(0,c.iv)(["inline-size:",";"],e.imageWidth)}),(function(e){return e.imageHeight&&(0,c.iv)(["block-size:",";"],e.imageHeight)}),(function(e){return e.borderRadius&&(0,c.iv)(["border-radius:",";"],e.borderRadius)}),(function(e){return e.circle&&(0,c.iv)(["border-radius:50%;"])}),(function(e){return e.crop&&(0,c.iv)(["object-fit:cover;"])}),(function(e){return e.fluid&&(0,c.iv)(["max-inline-size:100%;block-size:auto;"])}))},p=c.ZP.div.withConfig({displayName:"Image__PlaceholderImageWrapper",componentId:"sc-1u215sg-0"})(["overflow:hidden;img{",";filter:blur(20px);transform:scale(1.03);}",";"],u(),d()),f=c.ZP.img.withConfig({displayName:"Image__PlaceholderImage",componentId:"sc-1u215sg-1"})(["",";inline-size:100%;block-size:100%;"],u()),h=c.ZP.img.withConfig({displayName:"Image__StyledLazyImage",componentId:"sc-1u215sg-2"})(["",";display:",";",";"],u(),(function(e){return e.isLoaded?"initial":"none"}),d());const m=c.ZP.img.withConfig({displayName:"Image",componentId:"sc-1u215sg-3"})(["",";"],d());function g(e,t){var n="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype,o=(0,s.useRef)(null),i=(0,s.useCallback)((function(n){n.forEach((function(n){n.isIntersecting&&o.current&&e.current&&(o.current.unobserve(e.current),t())}))}),[t,e]),r=(0,s.useCallback)((function(){n?(o.current=new IntersectionObserver(i),e.current&&o.current.observe(e.current)):t()}),[t,i,n,e]);(0,s.useEffect)((function(){r()}),[r])}var v=["alt","onLoad"];var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.StyledLazyImage,n=void 0===t?h:t,o=e.PlaceholderImage,i=void 0===o?f:o,l=e.useInView,c=void 0===l?g:l;return function(e){var t=e.alt,o=void 0===t?"":t,l=e.onLoad,u=(0,a.Z)(e,v),d=(0,s.useRef)(null),f=(0,s.useState)(!1),h=(0,r.Z)(f,2),m=h[0],g=h[1],y=(0,s.useState)(!1),_=(0,r.Z)(y,2),b=_[0],S=_[1],E=s.createElement(n,Object.assign({},u,{alt:o,ref:d,onLoad:function(e){S(!0),l&&l(e)},isLoaded:b})),A=s.createElement(p,u,s.createElement(i,{alt:o,ref:d,src:u.placeholderSrc}));return c(d,(function(){g(!0)})),m?s.createElement(s.Fragment,null,!b&&A,E):A}}(),_=function(e){var t=(0,i.Z)({},((0,o.Z)(e),e));return"placeholderSrc"in t&&t.placeholderSrc?s.createElement(y,Object.assign({},t,{"data-encore-id":l.e.Image})):s.createElement(m,Object.assign({},t,{"data-encore-id":l.e.Image}))}},99966:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var o=n(59496),i=n(3992),r=n(68492);var a=i.Y.isUsingKeyboard,s=function(e){var t=function(e){var t=(0,o.useState)(e),n=(0,r.Z)(t,2),i=n[0],a=n[1],s=function(){return a(!1)},l=function(e){switch(e.key){case"Tab":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":a(!0)}};return(0,o.useEffect)((function(){return window.addEventListener("keydown",l),window.addEventListener("mousedown",s),window.addEventListener("touchstart",s),function(){window.removeEventListener("keydown",l),window.removeEventListener("mousedown",s),window.removeEventListener("touchstart",s)}}),[]),{isUsingKeyboard:i,setIsUsingKeyboard:a}}(a),n=t.isUsingKeyboard;return o.createElement(i.t.Provider,{value:{isUsingKeyboard:n}},e.children)}},9708:(e,t,n)=>{"use strict";n.d(t,{w:()=>N,l:()=>I});var o=n(68492),i=n(68901),r=n(59496),a=n(58706),s=n(58896),l=n(78400),c=n(55042),u=n(98306),d=n(83747),p=n(76084),f=n(64709),h={sm:a.hM$,md:a.dly,lg:a.dly,xl:a.nuo,xxl:a.nuo},m={sm:"2px",md:"2px",lg:"2px",xl:a.hM$,xxl:a.hM$},g={sm:a.mGT,md:a.JBZ,lg:a.cQs,xl:a.cQs,xxl:a.cQs},v=f.ZP.div.withConfig({displayName:"Areas__InteractiveArea",componentId:"sc-8gfrea-0"})(["& button,& a,& [role='button'],& [role='link']{position:relative;z-index:1;}"]),y=f.ZP.div.withConfig({displayName:"Areas__HeaderSideArea",componentId:"sc-8gfrea-1"})(["grid-column:1;gap:",";",""],a.o78,(function(e){var t=e.layout,n=e.hasBodyOrFooter;return"wide"===t&&n&&(0,f.iv)(["grid-row:span 2;"])})),_=f.ZP.div.withConfig({displayName:"Areas__HeaderSideAreaFlexContainer",componentId:"sc-8gfrea-2"})(["display:flex;gap:",";align-items:center;height:100%;",""],a.nuo,(function(e){return"wide"===e.layout&&(0,f.iv)(["height:auto;"])})),b=f.ZP.div.withConfig({displayName:"Areas__HeaderArea",componentId:"sc-8gfrea-3"})(["",""],(function(e){var t=e.horizontalGap;return(0,f.iv)(["grid-column-end:-1;gap:",";align-items:center;display:flex;justify-content:space-between;"],t)})),S=(0,f.ZP)(v).withConfig({displayName:"Areas__BottomArea",componentId:"sc-8gfrea-4"})([""," "," ",""],(function(e){return"wide"===e.layout?(0,f.iv)(["grid-column:2;"]):(0,f.iv)(["grid-column:span 2;"])}),(function(e){return e.hasNoBody&&(0,f.iv)(["display:flex;align-items:flex-end;"])}),(function(e){var t=e.hasNoBody,n=e.layout;return t&&"wide"!==n&&(0,f.iv)(["grid-column:span 2;"])})),E=(0,f.ZP)(v).withConfig({displayName:"Areas__Column",componentId:"sc-8gfrea-5"})(["",""],(function(e){var t=e.size,n=e.titleGap;return(0,f.iv)(["display:flex;flex-direction:column;gap:",";"],n||m[t])})),A=(0,f.ZP)(v).withConfig({displayName:"Areas__LeadingSlot",componentId:"sc-8gfrea-6"})(["flex-shrink:0;"]),T=(0,f.ZP)(v).withConfig({displayName:"Areas__TrailingSlot",componentId:"sc-8gfrea-7"})(["flex-shrink:0;align-self:stretch;display:flex;align-items:center;"]),P=n(37574),O=(0,f.ZP)(P.x).withConfig({displayName:"Box",componentId:"sc-8t9c76-0"})(["",""],(function(e){var t=e.hasLeadingOrMedia,n=e.contentAlign,o=e.verticalGap,i=e.horizontalGap;return(0,f.iv)(["display:grid;grid-gap:"," ",";grid-template-columns:",";grid-auto-rows:auto 1fr auto;&[disabled]{opacity:",";}",""],o,i,t?"auto 1fr":"1fr",a.crY,n&&(0,f.iv)(["margin-inline-start:-",";margin-inline-end:-",";"],a.nuo,a.nuo))})),C=n(88093),k=f.ZP.button.withConfig({displayName:"RowButton",componentId:"sc-xxkq4e-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:transparent;border:none;width:100%;&:focus{outline:none;}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],C.cp),R=f.ZP.div.withConfig({displayName:"RowMouseLink",componentId:"sc-hvecl1-0"})(["position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;cursor:pointer;"]),L=["title","disabled","aria-disabled","subtitle","pretitle","media","leading","trailing","body","footer","size","titleGap","verticalGap","horizontalGap","layout","contentAlign","onClick","onClickHint","isRedundantOnClick","isNavigational","isSelected","id"],I=(0,r.createContext)(null),N=r.forwardRef((function(e,t){var n=e.title,f=e.disabled,m=e["aria-disabled"],v=e.subtitle,P=e.pretitle,C=e.media,N=e.leading,w=e.trailing,D=e.body,M=e.footer,x=e.size,F=void 0===x?"lg":x,U=e.titleGap,B=e.verticalGap,V=void 0===B?a.dly:B,G=e.horizontalGap,J=void 0===G?a.nuo:G,j=e.layout,H=void 0===j?"regular":j,K=e.contentAlign,Y=void 0!==K&&K,W=e.onClick,z=e.onClickHint,q=e.isRedundantOnClick,X=void 0!==q&&q,Z=e.isNavigational,Q=void 0!==Z&&Z,$=e.isSelected,ee=e.id,te=(0,i.Z)(e,L);Q&&(0,s.iw)("isNavigational","isRedundantOnClick","ListRow");var ne=(0,r.useState)(!1),oe=(0,o.Z)(ne,2),ie=oe[0],re=oe[1],ae=!(!f&&!m),se=!(!D&&!M),le=!(!N&&!C);return r.createElement(I.Provider,{value:ee},r.createElement(O,Object.assign({role:"group","aria-labelledby":"listrow-title-".concat(ee),ref:t,paddingBlockStart:h[F],paddingBlockEnd:h[F],minBlockSize:g[F],contentAlign:Y,isInteractive:!!W,hasFocus:ie,tabIndex:void 0,hasLeadingOrMedia:le,disabled:ae,verticalGap:V,horizontalGap:J},te),W&&r.createElement(r.Fragment,null,X||Q?r.createElement(R,{onClick:W,onMouseDown:function(){return re(!0)},onTouchStart:function(){return re(!0)},onMouseUp:function(){return re(!1)},onTouchEnd:function(){return re(!1)},"data-testid":"mouse-only-link"}):r.createElement(k,{onClick:W,role:"boolean"==typeof $?"switch":void 0,disabled:!!ae,"aria-checked":$,"aria-labelledby":"listrow-title-".concat(ee," listrow-subtitle-").concat(ee),"aria-describedby":"onClickHint".concat(ee),onFocus:function(){return re(!0)},onBlur:function(){return re(!1)}}),r.createElement("div",{style:{display:"none"},id:"onClickHint".concat(ee)},z)),(N||C)&&r.createElement(y,{layout:H,hasBodyOrFooter:se},r.createElement(_,{layout:H},N&&r.createElement(A,null,N),(0,l.Q)(C,r.createElement(u.d,{size:F,src:C})))),r.createElement(b,{horizontalGap:J},r.createElement(E,{size:F,titleGap:U},(0,l.Q)(P,r.createElement(c.o,null,P)),(0,l.Q)(n,r.createElement(p.g,{variant:"sm"===F?"mesto":"ballad",id:"listrow-title-".concat(ee)},n)),(0,l.Q)(v,r.createElement(d.l,null,v))),w&&r.createElement(T,null,w)),D&&r.createElement(S,{hasNoBody:!D,layout:H},(0,l.Q)(D,r.createElement(c.o,null,D))),M&&r.createElement(S,{hasNoBody:!D,layout:H},(0,l.Q)(M,r.createElement(c.o,null,M)))))}))},55042:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var o=n(68901),i=n(59496),r=n(64709),a=n(56162),s=["lineClamp","children","variant","semanticColor","as","hasTextSeparator"],l=r.ZP.span.withConfig({displayName:"ListRowDetails__LineClamp",componentId:"sc-sozu4l-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),c=i.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,c=e.variant,u=void 0===c?"mesto":c,d=e.semanticColor,p=void 0===d?"textSubdued":d,f=e.as,h=void 0===f?"p":f,m=e.hasTextSeparator,g=void 0!==m&&m,v=(0,o.Z)(e,s),y=r;return g&&Array.isArray(r)&&(y=i.createElement(i.Fragment,null,r.map((function(e,t){return r.length-1===t?e:i.createElement(i.Fragment,null,e," • ")})))),i.createElement(a.D,Object.assign({as:h,variant:u,semanticColor:p},v,{ref:t}),n?i.createElement(l,{lineClamp:n},y):y)}))},98306:(e,t,n)=>{"use strict";n.d(t,{d:()=>p});var o=n(68901),i=n(59496),r=n(58706),a=n(48712),s=n(64709),l=n(24697),c=["size","imageWidth","imageHeight","borderRadius","alt"],u={sm:r.o78,md:r.g4V,lg:r.JBZ,xl:r.lM8,xxl:"88px"},d=(0,s.ZP)(l.E).withConfig({displayName:"ListRowImage__ListRowImageComponent",componentId:"sc-1uaxq9n-0"})(["flex-shrink:0;object-fit:cover;"]),p=function(e){var t=e.size,n=void 0===t?"lg":t,r=e.imageWidth,s=e.imageHeight,l=e.borderRadius,p=void 0===l?a.spacer4:l,f=e.alt,h=void 0===f?"":f,m=(0,o.Z)(e,c);return r||s?i.createElement(d,Object.assign({alt:h,imageWidth:r,imageHeight:s,borderRadius:p},m)):i.createElement(d,Object.assign({alt:h,imageWidth:u[n],imageHeight:u[n],borderRadius:p},m))}},83747:(e,t,n)=>{"use strict";n.d(t,{l:()=>l});var o=n(68901),i=n(59496),r=n(9708),a=n(55042),s=["id"],l=i.forwardRef((function(e,t){var n=e.id,l=(0,o.Z)(e,s),c=(0,i.useContext)(r.l),u=c?"listrow-subtitle-".concat(c):void 0;return i.createElement(a.o,Object.assign({ref:t,id:n||u},l))}))},76084:(e,t,n)=>{"use strict";n.d(t,{g:()=>p});var o=n(68901),i=n(59496),r=n(64709),a=n(9708),s=n(80885),l=n(56162),c=["lineClamp","children","variant","as","onClick","aria-describedby","id","href"],u=r.ZP.span.withConfig({displayName:"ListRowTitle__LineClamp",componentId:"sc-1xe2if1-0"})(["",""],(function(e){var t=e.lineClamp;return(0,r.iv)(["display:",";-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;"],"-webkit-box",t)})),d=(0,r.ZP)(l.D).withConfig({displayName:"ListRowTitle__ListRowType",componentId:"sc-1xe2if1-1"})(["outline:none;text-decoration:none;&:focus{","}",""],s.j4,(function(e){return(e.onClick||e.href)&&" &:hover {\n text-decoration: underline;\n }"})),p=i.forwardRef((function(e,t){var n=e.lineClamp,r=e.children,s=e.variant,l=void 0===s?"ballad":s,p=e.as,f=void 0===p?"p":p,h=e.onClick,m=e["aria-describedby"],g=e.id,v=e.href,y=(0,o.Z)(e,c),_=(0,i.useContext)(a.l),b=_?"listrow-title-".concat(_):void 0,S=_&&h?"onClickHint".concat(_):void 0;return i.createElement(d,Object.assign({id:g||b,forwardedAs:v?"a":f,onClick:h,variant:l,"aria-describedby":m||S,ref:t,href:v},y),n?i.createElement(u,{lineClamp:n},r):r)}))},11216:(e,t,n)=>{"use strict";n.d(t,{T:()=>h});var o=n(68901),i=n(59496),r=n(30619),a=n(64709),s=n(3254),l=(0,a.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);}"]),c=a.ZP.circle.withConfig({displayName:"LoadingIndicatorCircle",componentId:"sc-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,s.NE)(s.iK.essentialBase),l),u=n(18542),d=function(e){switch(e){case"sm":return 56;case"md":return 84;case"lg":return 112;default:return(0,u.vE)(e)}},p=a.ZP.svg.withConfig({displayName:"LoadingIndicatorSvg",componentId:"sc-dj4dcm-0"})(["content:'';block-size:","px;inline-size:","px;"],(function(e){return d(e.indicatorSize)/4.5}),(function(e){return d(e.indicatorSize)})),f=["indicatorSize","role","ariaValueText"];var h=Object.assign((function(e){var t=e.indicatorSize,n=void 0===t?"sm":t,a=e.role,s=void 0===a?"progressbar":a,l=e.ariaValueText,u=void 0===l?"Loading":l,d=(0,o.Z)(e,f);return i.createElement(p,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":u},d,{"data-encore-id":r.e.LoadingIndicator}),i.createElement(c,{stroke:"none",cx:"-140",cy:"50",r:"32"}),i.createElement(c,{stroke:"none",cx:"0",cy:"50",r:"32"}),i.createElement(c,{stroke:"none",cx:"140",cy:"50",r:"32"}))}),{sm:"sm",md:"md",lg:"lg"})},84588:(e,t,n)=>{"use strict";n.d(t,{l:()=>u});var o=n(68901),i=n(59496),r=n(64709),a=n(30619),s=n(3254),l=["list","children"],c=r.ZP.div.withConfig({displayName:"NavBar__NavBarPage",componentId:"sc-1guraqe-0"})(["color:",";overflow-wrap:break-word;"],(0,s.NE)(s.iK.textBase)),u=function(e){var t=e.list,n=e.children,r=(0,o.Z)(e,l);return i.createElement("section",Object.assign({},r,{"data-encore-id":a.e.NavBar}),t,i.createElement(c,null,n))}},78780:(e,t,n)=>{"use strict";n.d(t,{F:()=>p});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(30619),l=n(81239),c=n(49170),u=["as"],d=(0,a.ZP)(c.d).attrs({condensedAll:!0,listStyleReset:!0}).withConfig({displayName:"NavBarList__NavBarListElement",componentId:"sc-19lzbdt-0"})(["display:flex;margin-block-end:",";overflow-x:auto;overflow-wrap:break-word;padding:",";-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;}"],(0,l.mA)(-1,r.nuo),(0,l.mA)(-5,"2px")),p=i.forwardRef((function(e,t){var n=e.as,r=(0,o.Z)(e,u);return i.createElement(d,Object.assign({},r,{ref:t,forwardedAs:n,"data-encore-id":s.e.NavBarList}))}))},17096:(e,t,n)=>{"use strict";n.d(t,{c:()=>S});var o=n(68901),i=n(59496),r=n(4107),a=n(30619),s=n(58706),l=n(64709),c=n(98590),u=n(81239),d=n(3254),p=n(14911),f=n(46267),h=["component","isActive","isDisabled","isHover","isFocus","useBrowserDefaultFocusStyle","sentenceCase"],m=i.forwardRef((function(e,t){var n=e.component,r=(e.isActive,e.isDisabled,e.isHover,e.isFocus,e.useBrowserDefaultFocusStyle,e.sentenceCase,(0,o.Z)(e,h));return i.createElement(n,Object.assign({ref:t},r))}));m.displayName="NavBarListItemLink";var g=(0,l.ZP)(m).withConfig({displayName:"Link",componentId:"sc-1g2blu2-0"})(["",";border:0;display:inline-block;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;}"," &::after{background-color:transparent;content:'';display:block;block-size:2px;margin-block-start:0;margin-inline-end:auto;margin-block-end:calc(-1 * ",");margin-inline-start:auto;position:relative;top:",";transition:background-color ",";inline-size:",";",";",";}","{margin-block-start:calc(-1 * ",");margin-block-end:calc(-1 * ",");}"],(function(e){return e.sentenceCase?(0,c.Vr)():(0,c.bx)()}),(0,u.mA)(-1,s.nuo),(0,u.mA)(0,s.o78),(0,u.mA)(0,s.o78),"0.2s",(0,d.NE)(d.iK.textSubdued),(function(e){return!e.isActive&&!e.isDisabled&&(0,l.iv)(["&:hover{color:",";}&:active{opacity:",";}"],(0,d.NE)(d.iK.textBase),p.MQ)}),(function(e){return(e.isActive||e.isHover)&&(0,l.iv)(["color:",";"],(0,d.NE)(d.iK.textBase))}),(function(e){return e.isFocus&&e.sentenceCase&&(0,l.iv)(["color:",";"],(0,d.NE)(d.iK.textBase))}),(function(e){return e.isDisabled&&(0,l.iv)(["opacity:",";cursor:not-allowed;pointer-events:none;"],p.Zx)}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,l.iv)(["&[href]:focus{outline:none;",";&:after{background-color:",";inline-size:100%;}}"],e.sentenceCase&&(0,l.iv)(["color:",";"],(0,d.NE)(d.iK.textBase)),(0,d.NE)(d.iK.essentialBase))}),(0,u.mA)(-5,"2px"),s.dly,"0.3s",(function(e){return e.sentenceCase?s.o78:"30px"}),(function(e){return e.isFocus&&(0,l.iv)(["background-color:",";inline-size:100%;"],(0,d.NE)(d.iK.essentialBase))}),(function(e){return e.isActive&&(0,l.iv)(["background-color:",";"],e.sentenceCase?(0,d.NE)(d.iK.essentialBase):(0,d.NE)(d.iK.essentialBrightAccent))}),f.s,(0,u.mA)(-4,s.hM$),(0,u.mA)(-4,s.hM$)),v=n(9465),y=n(93107),_=(0,l.ZP)(y.n).attrs({variant:"ballad",condensed:!0,listStyleReset:!0}).withConfig({displayName:"ListItem",componentId:"sc-qa47qy-0"})(["",";overflow-wrap:break-word;"],(0,v.D)()),b=["label","active","disabled","href","role","isHover","isFocus","component","sentenceCase","children"],S=i.forwardRef((function(e,t){var n=e.label,s=e.active,l=e.disabled,c=e.href,u=e.role,d=e.isHover,p=e.isFocus,f=e.component,h=void 0===f?"a":f,m=e.sentenceCase,v=void 0===m||m,y=e.children,S=(0,o.Z)(e,b),E=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(_,{"data-encore-id":a.e.NavBarListItem},i.createElement(g,Object.assign({ref:t,isActive:s,isDisabled:l,isHover:d,isFocus:p,component:h,sentenceCase:v,"aria-current":s?"page":void 0,useBrowserDefaultFocusStyle:E,href:l?void 0:c,"aria-disabled":l,role:l&&"button"!==h?"link":u},S),y||n))}))},36028:(e,t,n)=>{"use strict";n.d(t,{W:()=>b});var o=n(68901),i=n(59496),r=n(30619),a=n(3254),s=n(58706),l=n(64709),c=l.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-6c3c1v-0"})(["fill:",";stroke:transparent;"],(function(e){return e.useBrandColor?s.By7:(0,a.NE)(e.semanticColor)})),u=["condensed","color","semanticColor","useBrandColor","label"],d=function(e){var t=e.condensed,n=e.color,a=e.semanticColor,s=void 0===a?"decorativeBase":a,l=e.useBrandColor,d=e.label,p=void 0===d?"Spotify":d,f=(0,o.Z)(e,u);return i.createElement(c,Object.assign({role:"img",color:n,viewBox:t?"0 0 26 24":"0 0 78 24",semanticColor:s,useBrandColor:l,"aria-label":p,"aria-hidden":""===p},f,{"data-encore-id":r.e.LogoSpotify}),i.createElement("title",null,p),i.createElement("path",{d:"M18.616 10.639c-3.77-2.297-9.99-2.509-13.59-1.388a1.077 1.077 0 0 1-1.164-.363 1.14 1.14 0 0 1-.119-1.237c.136-.262.37-.46.648-.548 4.132-1.287 11-1.038 15.342 1.605a1.138 1.138 0 0 1 .099 1.863 1.081 1.081 0 0 1-.813.213c-.142-.02-.28-.07-.403-.145Zm-.124 3.402a.915.915 0 0 1-.563.42.894.894 0 0 1-.69-.112c-3.144-1.983-7.937-2.557-11.657-1.398a.898.898 0 0 1-.971-.303.952.952 0 0 1-.098-1.03.929.929 0 0 1 .54-.458c4.248-1.323 9.53-.682 13.14 1.595a.95.95 0 0 1 .3 1.286Zm-1.43 3.267a.73.73 0 0 1-.45.338.712.712 0 0 1-.553-.089c-2.748-1.722-6.204-2.111-10.276-1.156a.718.718 0 0 1-.758-.298.745.745 0 0 1-.115-.265.757.757 0 0 1 .092-.563.737.737 0 0 1 .457-.333c4.455-1.045 8.277-.595 11.361 1.338a.762.762 0 0 1 .241 1.028ZM11.696 0C5.237 0 0 5.373 0 12c0 6.628 5.236 12 11.697 12 6.46 0 11.698-5.372 11.698-12 0-6.627-5.238-12-11.699-12h.001Zm20.126 11.078c-2.019-.494-2.379-.84-2.379-1.57 0-.688.633-1.151 1.572-1.151.91 0 1.814.352 2.76 1.076a.131.131 0 0 0 .187-.03l.987-1.426a.139.139 0 0 0-.025-.185c-1.127-.928-2.396-1.378-3.88-1.378-2.18 0-3.703 1.342-3.703 3.263 0 2.06 1.315 2.788 3.585 3.352 1.932.457 2.258.84 2.258 1.524 0 .757-.659 1.229-1.72 1.229-1.18 0-2.141-.408-3.216-1.364a.13.13 0 0 0-.188.016l-1.106 1.35a.137.137 0 0 0 .013.188c1.252 1.147 2.79 1.752 4.451 1.752 2.35 0 3.869-1.317 3.869-3.356 0-1.723-1.003-2.676-3.465-3.29Zm10.487 2.31c0 1.454-.874 2.47-2.125 2.47-1.235 0-2.169-1.061-2.169-2.47 0-1.41.933-2.47 2.17-2.47 1.23 0 2.124 1.038 2.124 2.47Zm-1.706-4.354c-1.018 0-1.854.412-2.543 1.256v-.95a.136.136 0 0 0-.038-.095.132.132 0 0 0-.093-.04h-1.81a.131.131 0 0 0-.093.04.136.136 0 0 0-.039.096v10.546c0 .076.06.137.133.137h1.809a.132.132 0 0 0 .093-.041.136.136 0 0 0 .038-.096v-3.329c.69.794 1.525 1.18 2.543 1.18 1.893 0 3.808-1.494 3.808-4.35 0-2.858-1.915-4.354-3.808-4.354Zm8.72 6.839c-1.297 0-2.274-1.068-2.274-2.486 0-1.422.943-2.455 2.244-2.455 1.305 0 2.288 1.069 2.288 2.487 0 1.422-.949 2.454-2.258 2.454Zm0-6.838c-2.438 0-4.347 1.926-4.347 4.383 0 2.432 1.896 4.338 4.317 4.338 2.445 0 4.36-1.92 4.36-4.369 0-2.44-1.901-4.353-4.33-4.353Zm9.535.17h-1.99V7.117a.136.136 0 0 0-.08-.126.13.13 0 0 0-.052-.01h-1.809a.133.133 0 0 0-.093.04.136.136 0 0 0-.038.095v2.087h-.87a.131.131 0 0 0-.122.085.139.139 0 0 0-.01.052v1.595c0 .074.06.135.132.135h.87v4.126c0 1.667.809 2.513 2.404 2.513.648 0 1.186-.138 1.694-.434a.135.135 0 0 0 .067-.117V15.64a.137.137 0 0 0-.063-.115.13.13 0 0 0-.129-.006c-.349.18-.685.263-1.061.263-.58 0-.84-.271-.84-.876V11.07h1.99a.13.13 0 0 0 .094-.04.136.136 0 0 0 .039-.096V9.339a.137.137 0 0 0-.039-.096.132.132 0 0 0-.094-.04v.001Zm6.934.007v-.255c0-.755.281-1.092.914-1.092.376 0 .68.077 1.019.194a.13.13 0 0 0 .118-.02.135.135 0 0 0 .056-.11V6.365a.137.137 0 0 0-.026-.081.133.133 0 0 0-.068-.05 4.852 4.852 0 0 0-1.502-.22c-1.67 0-2.554.965-2.554 2.788v.393h-.87a.132.132 0 0 0-.093.04.136.136 0 0 0-.038.096v1.603c0 .075.059.136.132.136h.87v6.364c0 .075.058.135.131.135h1.809c.072 0 .131-.06.131-.135V11.07h1.69l2.586 6.362c-.294.669-.583.802-.977.802-.319 0-.654-.098-.998-.29a.133.133 0 0 0-.105-.01.135.135 0 0 0-.078.072l-.612 1.38a.137.137 0 0 0 .056.175 3.733 3.733 0 0 0 1.932.508c1.334 0 2.073-.638 2.724-2.355l3.137-8.317a.14.14 0 0 0-.014-.126.131.131 0 0 0-.108-.06h-1.883a.132.132 0 0 0-.126.092l-1.928 5.651L69.006 9.3a.133.133 0 0 0-.124-.088h-3.09v.001Zm-4.02-.008h-1.809a.132.132 0 0 0-.093.041.136.136 0 0 0-.038.096v8.094c0 .075.06.135.132.135h1.809c.072 0 .131-.06.131-.135V9.34a.136.136 0 0 0-.038-.096.133.133 0 0 0-.094-.04Zm-.896-3.685a1.295 1.295 0 0 0-.919.393c-.243.25-.379.586-.377.937a1.342 1.342 0 0 0 .377.938 1.304 1.304 0 0 0 .92.393c.346-.002.677-.143.92-.393s.379-.587.377-.938c0-.735-.581-1.33-1.296-1.33h-.002Zm15.918 4.49h-.331v.434h.331c.165 0 .264-.083.264-.216 0-.142-.099-.217-.264-.217Zm.215.619.36.517h-.304l-.323-.474h-.279v.474h-.254v-1.37h.595c.31 0 .515.163.515.436a.412.412 0 0 1-.31.417Zm-.282-1.31c-.652 0-1.146.532-1.146 1.183 0 .65.49 1.175 1.139 1.175.652 0 1.147-.532 1.147-1.183 0-.65-.492-1.174-1.14-1.174Zm-.007 2.488a1.259 1.259 0 0 1-.904-.384 1.296 1.296 0 0 1-.368-.92c0-.717.563-1.314 1.279-1.314a1.259 1.259 0 0 1 .903.384 1.295 1.295 0 0 1 .369.921c0 .717-.563 1.314-1.279 1.314Z"}))},p=l.ZP.div.withConfig({displayName:"Body",componentId:"sc-m7zahm-0"})(["flex:1;overflow-y:auto;position:relative;"]),f=n(14911),h=l.ZP.footer.withConfig({displayName:"Footer",componentId:"sc-1833vcv-0"})(["display:none;@media (min-width:","){display:block;position:relative;padding-inline-start:",";padding-inline-end:",";padding-block-start:",";}"],s.SA3,f.tS,f.tS,f.tS),m=n(81239),g=l.ZP.header.withConfig({displayName:"Header",componentId:"sc-f0r0bu-0"})(["h1,h2,h3,p{margin-block-end:0;margin-block-start:0;}@media (max-width:","){padding:",";}@media (min-width:","){padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}"],s.gXv,(0,m.mA)(0,s.o78),s.SA3,f.tS,f.tS,f.tS),v=n(9465),y=l.ZP.nav.attrs({role:"navigation"}).withConfig({displayName:"Nav",componentId:"sc-165gcru-0"})(["",";background-color:var(--background-base,",");color:var(--text-subdued,",");display:flex;flex-direction:column;overflow-wrap:break-word;@media (min-width:","){height:100vh;padding-block-end:",";padding-block-start:",";position:relative;inline-size:",";}.docs-story &{block-size:100%;}"],(0,v.D)(),a.cv.background.base,a.cv.text.subdued,s.SA3,f.tS,f.tS,f.V9),_=["children","colorSet","header","footer","className"],b=function(e){var t=e.children,n=e.colorSet,s=void 0===n?"mutedAccent":n,l=e.header,c=e.footer,u=e.className,f=(0,o.Z)(e,_);return i.createElement(y,Object.assign({className:(0,a.Mg)(s,u)},f,{"data-encore-id":r.e.Navigation}),l&&i.createElement(g,null,l),i.createElement(p,null,t),i.createElement(h,null,c?i.createElement(i.Fragment,null,c):i.createElement(d,{height:"24",semanticColor:"textSubdued","aria-label":"Spotify"})))}},99902:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var o=n(58706),i=n(64709),r=n(49170),a=(0,i.ZP)(r.d).attrs({condensedAll:!0,listStyleReset:!0,forwardedAs:"dl"}).withConfig({displayName:"List",componentId:"sc-bff34i-0"})(["",";@media (max-width:","){display:flex;inline-size:100%;}"],(function(e){return e.flex&&(0,i.iv)(["@media (max-width:","){justify-content:space-between;}"],o.gXv)}),o.gXv)},32333:(e,t,n)=>{"use strict";n.d(t,{b:()=>u});var o=n(68901),i=n(59496),r=n(30619),a=n(99902),s=n(58706),l=n(64709).ZP.div.withConfig({displayName:"Nav",componentId:"sc-y9ijly-0"})(["@media (max-width:","){display:flex;flex-direction:row;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:auto;white-space:nowrap;}"," &{@media (max-width:","){display:none;}}@media (min-width:","){display:block;}"],s.gXv,a.a,s.gXv,s.SA3),c=["flexMobile","children"],u=function(e){var t=e.flexMobile,n=void 0===t||t,s=e.children,u=(0,o.Z)(e,c);return i.createElement(l,Object.assign({},u,{"data-encore-id":r.e.NavigationList}),i.createElement(a.a,{flex:n},s))}},98252:(e,t,n)=>{"use strict";n.d(t,{_:()=>E});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(58706),c=n(64709),u=n(3254),d=n(14911),p=n(50823),f=n(98590),h=n(81239),m=n(99902),g=n(9465),v=c.ZP.dd.withConfig({displayName:"ListItem",componentId:"sc-1id3bok-0"})(["",";margin-inline-start:0;@media (max-width:","){display:inline-block;}"],(0,g.D)(),l.gXv),y=["component","active","disabled","useBrowserDefaultFocusStyle","isUsingKeyboard"],_=c.ZP.span.withConfig({displayName:"Link__LinkChildWrapper",componentId:"sc-7welv8-0"})(["position:relative;"]),b=(0,c.ZP)(i.forwardRef((function(e,t){var n=e.component,r=(e.active,e.disabled,e.useBrowserDefaultFocusStyle,e.isUsingKeyboard,(0,o.Z)(e,y));return i.createElement(n,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-7welv8-1"})(["color:var(--text-subdued,",");display:block;position:relative;transition:color ",";text-decoration:none;",":last-child ",":last-child &{@media (max-width:","){margin-inline-end:0;}}","::after{content:'';"," @media (max-width:","){",";border-width:2px;}}&:focus{","}&:hover,&:active{color:var(--text-base,",");}",";",";"," line-height:1;@media (max-width:","){margin-inline-end:",";padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";}@media (min-width:","){line-height:1;overflow:hidden;padding-block-start:9px;padding-block-end:9px;padding-inline-start:",";padding-inline-end:",";}"," "," &{@media (min-width:","){padding-inline-start:",";","}}"],u.cv.text.subdued,d.CR,m.a,v,l.gXv,_,(0,p._3)(1),l.gXv,(0,p._3)(-2),(function(e){var t=e.useBrowserDefaultFocusStyle,n=e.isUsingKeyboard;return!t&&n&&(0,c.iv)(["","::after{border-color:var(--text-base,",");@media (max-width:","){width:100%;left:0;[dir='rtl'] &{right:0;}}}outline:none;"],_,u.cv.text.base,l.gXv)}),u.cv.text.base,(function(e){return e.active&&(0,c.iv)(["&,&:hover{color:var(--text-base,",");}@media (max-width:","){","::after{border-color:var(--essential-bright-accent,",");border-width:2px;bottom:-",";left:calc(50% - ",");width:",";[dir='rtl'] &{right:calc(50% - ",");}}}&::before{content:'';left:0;position:absolute;@media (min-width:","){border-inline-start:4px solid var(--essential-bright-accent,",");block-size:18px;top:6px;[dir='rtl'] &{right:0;}}}"],u.cv.text.base,l.gXv,_,u.cv.text.brightAccent,l.dly,l.dly,l.o78,l.dly,l.SA3,u.cv.text.brightAccent)}),(function(e){return e.disabled&&(0,c.iv)(["&,&:focus,&:active,&:hover{opacity:",";pointer-events:none;}&::before{border-color:transparent;}"],d.Zx)}),(0,f.Dg)(),l.gXv,(0,h.mA)(0,l.o78),(0,h.mA)(-1,l.nuo),(0,h.mA)(-1,l.nuo),(0,h.Sq)("compact",l.o78),(0,h.Sq)("compact",l.o78),l.SA3,(0,h.Sq)("compact",l.g4V),(0,h.Sq)("compact",l.g4V),m.a,m.a,l.SA3,(0,h.mA)(3,l.mTH),(0,f.Ef)()),S=["active","disabled","href","role","component","children"],E=i.forwardRef((function(e,t){var n=e.active,l=e.disabled,c=e.href,u=e.role,d=e.component,p=void 0===d?"a":d,f=e.children,h=(0,o.Z)(e,S),m=(0,i.useContext)(a.t).isUsingKeyboard,g=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(v,{"data-encore-id":s.e.NavigationListItem},i.createElement(b,Object.assign({},h,{ref:t,active:n,href:l?void 0:c,disabled:l,"aria-disabled":l,role:l&&"button"!==p?"link":u,rel:c?"noopener noreferrer":void 0,"aria-current":n?"page":void 0,component:p,useBrowserDefaultFocusStyle:g,isUsingKeyboard:m}),i.createElement(_,null,f)))}))},14722:(e,t,n)=>{"use strict";n.d(t,{W:()=>m});var o=n(83150),i=n(51163),r=n(59496),a=n(30619),s=n(58706),l=n(64709),c=n(9465),u=n(98590),d=n(3254),p=n(81239),f=n(99902),h=l.ZP.dt.withConfig({displayName:"ListTitle",componentId:"sc-p72r5i-0"})([""," ",";color:var(--text-subdued,",");margin-block-end:",";margin-inline-start:",";margin-inline-end:",";"," "," &{margin-inline-start:",";}&:not(:first-child){@media (min-width:","){margin-block-start:",";}}@media (max-width:","){display:none;}"],(0,c.D)(),(0,u.QB)(),d.cv.text.subdued,(0,p.mA)(-4,s.hM$),(0,p.Sq)("compact",s.g4V),(0,p.Sq)("compact",s.g4V),f.a,f.a,(0,p.mA)(3,s.mTH),s.SA3,(0,p.mA)(1,s.g4V),s.gXv),m=function(e){var t=(0,i.Z)({},((0,o.Z)(e),e));return r.createElement(h,Object.assign({role:"listitem"},t,{"data-encore-id":a.e.NavigationListTitle}))}},3342:(e,t,n)=>{"use strict";n.d(t,{aV:()=>s});var o=n(58706),i=n(64709),r=n(14911),a="17px",s=i.ZP.div.withConfig({displayName:"Overlay",componentId:"sc-u80gmt-0"})(["display:flex;min-width:296px;pointer-events:none;position:absolute;z-index:",";",";",";",";",";",";",";",";",";",";",";",";",";"],r.rp,(function(e){return"top"===e.placement&&(0,i.iv)(["bottom:100%;justify-content:center;left:50%;transform:translate(-50%,-",");"],o.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,o.nuo,a,o.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,o.nuo,a,o.nuo)}),(function(e){return"bottom"===e.placement&&(0,i.iv)(["justify-content:center;left:50%;top:100%;transform:translate(-50%,",");"],o.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,o.nuo,a,o.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,o.nuo,a,o.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%);}"],o.nuo,o.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(",",",");}"],o.nuo,a,o.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(",",-",");}"],o.nuo,a,o.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%);}"],o.nuo,o.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(-",",",");}"],o.nuo,a,o.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(-",",-",");}"],o.nuo,a,o.nuo,a)}))},92616:(e,t,n)=>{"use strict";n.d(t,{J:()=>L});var o=n(60901),i=n(68901),r=n(59496),a=n(30619),s=n(3254),l=n(61835),c=n(83680),u=n(58706),d=n(64709),p=n(30366),f=(0,d.ZP)(p.o).withConfig({displayName:"CloseButton",componentId:"sc-i2fggp-0"})(["position:absolute;top:",";right:",";[dir='rtl'] &{right:unset;left:",";}"],u.hM$,u.hM$,u.hM$),h=n(58896),m=n(91689),g=n(9465),v=n(98590),y=n(81239),_=n(3342),b=["arrow"],S=function(e){return e.large?"600px":"296px"},E=d.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,m.IJ)({maxWidth:e.large?"70vw":S(e),colorSet:e.colorSet})}),(function(e){return e.arrow&&(0,m.qE)(e.arrow)}),(0,g.D)(),(0,v.Ef)(),(function(e){return e.large&&"inline-size: ".concat(S(e))}),(0,y.mA)(0,u.o78),(0,y.mA)(0,u.o78),(0,y.mA)(1,u.F_T),(function(e){return e.paddedBody?"calc(".concat((0,y.mA)(-1,u.o78)," + ").concat((0,y.EW)("md",u.JBZ),")"):(0,y.mA)(1,u.F_T)}),_.aV),A=r.forwardRef((function(e,t){var n=e.arrow,o=(0,i.Z)(e,b);return n&&(0,h.u_)(n,"Popover"),r.createElement(E,Object.assign({ref:t,arrow:(0,l.a)(n)},o))})),T=n(56162),P=(0,d.ZP)(T.D).attrs({forwardedAs:"h1",variant:"cello"}).withConfig({displayName:"Title",componentId:"sc-bugxpe-0"})(["padding-block-end:",";padding-inline-end:",";"],(0,y.mA)(-2,u.dly),(0,y.mA)(3,u.JBZ)),O=["colorSet","popoverTitle","popoverTitleId","children","onClose","className","closeButtonAriaLabel","closeButtonRef"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var k=r.forwardRef((function(e,t){var n=e.colorSet,o=void 0===n?"base":n,l=e.popoverTitle,u=e.popoverTitleId,d=e.children,p=e.onClose,h=e.className,m=e.closeButtonAriaLabel,g=void 0===m?"Close":m,v=e.closeButtonRef,y=(0,i.Z)(e,O);return r.createElement(A,Object.assign({ref:t,role:"dialog","aria-labelledby":u,paddedBody:!(!p||l),className:(0,s.Mg)(o,h),colorSet:o},y,{"data-encore-id":a.e.Popover}),l&&r.createElement(P,{id:u},l),d,p&&r.createElement(f,{ref:v,onClick:p,"aria-label":g,type:"button",iconOnly:c.k}))})),R=function(e){for(var t=1;t{"use strict";n.d(t,{x:()=>S});var o=n(60901),i=n(68901),r=n(59496),a=n(58896),s=n(64709),l=n(30619);var c=n(61835),u=n(87995),d=n(14911),p=s.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}),d.rp),f=["overlayPosition","closeOverlay"],h=function(e){var t=e.overlayPosition,n=void 0===t?{width:0,height:0,top:0,left:0}:t,o=e.closeOverlay,a=(0,i.Z)(e,f);return(0,r.useEffect)((function(){return o?(window.addEventListener("scroll",o,!0),function(){window.removeEventListener("scroll",o,!0)}):function(){}}),[o]),u.createPortal(r.createElement(p,Object.assign({overlayPosition:n},a)),document.body)},m=n(3342),g=["children","overlay","onHide","onShow","hideCloseButton","withPortal","placement"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var y=s.ZP.div.withConfig({displayName:"PopoverTrigger__PopoverTriggerContainer",componentId:"sc-yux5vv-0"})(["display:inline-flex;position:relative;"]),_=s.ZP.div.withConfig({displayName:"PopoverTrigger__TriggerContainer",componentId:"sc-yux5vv-1"})(["display:inline-flex;"]);var b=function(e){for(var t=1;t{"use strict";n.d(t,{k:()=>p});var o=n(68901),i=n(59496),r=n(30619),a=n(64709),s=n(3254),l=n(81239),c=a.ZP.div.withConfig({displayName:"ProgressBarBackground",componentId:"sc-1q0p8ti-0"})(["background-color:",";block-size:6px;border-radius:",";"],(0,s.NE)(s.iK.backgroundTintedBase),(0,l._S)("pill","3px")),u=a.ZP.div.withConfig({displayName:"ProgressBarIndicator",componentId:"sc-1b6tcn5-0"})(["inline-size:",";background-color:",";block-size:6px;border-radius:",";"],(function(e){return"".concat(e.progressValue,"%")}),(function(e){return(0,s.NE)(e.progressColor)}),(0,l._S)("pill","3px")),d=["value","semanticColor","color"],p=function(e){var t=e.value,n=void 0===t?0:t,a=e.semanticColor,s=void 0===a?"essentialBrightAccent":a,l=(e.color,(0,o.Z)(e,d));return i.createElement(c,Object.assign({role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuemax":"100"},l,{"data-encore-id":r.e.ProgressBar}),i.createElement(u,{progressValue:n,progressColor:s}))}},67526:(e,t,n)=>{"use strict";n.d(t,{A9:()=>y,M0:()=>v});var o=n(68492),i=n(68901),r=n(59496),a=n(49823),s=n(30619),l=n(3254),c=n(56162),u=n(58706),d=n(64709),p=n(91689),f=n(81239),h=n(14911),m=d.ZP.div.withConfig({displayName:"Container",componentId:"sc-eij2zk-0"})(["",""],(function(e){var t=e.colorSet,n=e.state;return(0,d.iv)([""," padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";overflow-wrap:break-word;text-align:center;position:fixed;overflow-x:hidden;text-overflow:ellipsis;z-index:",";transition-duration:","ms;transition-timing-function:ease-out;bottom:",";.docs-story{position:absolute;}@media (max-width:","){left:",";right:",";}@media (min-width:","){transform:translate(-50%);left:50%;[dir='rtl'] &{left:unset;right:50%;transform:translate(50%);}}",";",";",";"],(0,p.IJ)({maxWidth:"384px",colorSet:t}),(0,f.mA)(-1,u.nuo),(0,f.mA)(-1,u.nuo),(0,f.mA)(2,u.mGT),(0,f.mA)(2,u.mGT),h.x,v,u.JBZ,u.Eu5,u.dly,u.dly,u.SA3,"entering"===n&&(0,d.iv)(["opacity:0;transform:translate(-50%,",");[dir='rtl'] &{transform:translate(50%,",");}"],u.mTH,u.mTH),"entered"===n&&(0,d.iv)(["opacity:1;"]),"exiting"===n&&(0,d.iv)(["opacity:0;transition-timing-function:linear;"]))})),g=["onExited","colorSet","showSnackbar","className","children"],v=300,y=r.forwardRef((function(e,t){var n=e.onExited,u=e.colorSet,d=void 0===u?"base":u,p=e.showSnackbar,f=e.className,h=e.children,y=(0,i.Z)(e,g),_=(0,r.useState)(!1),b=(0,o.Z)(_,2),S=b[0],E=b[1];void 0===p&&console.warn('Warning: If you are not conditionally rendering Snackbar within an aria-live region (wrapping element with role="status") the component will be inaccessible on Windows operating systems. Please use the showSnackbar prop to conditionally render Snackbar. For guidance on how to implement this, refer to our Snackbar Accessibility documentation: https://encore-web.spotify.net/?path=/docs/components-snackbar--accessibility');var A=null==p||p;return(0,r.useEffect)((function(){A&&E(!0);var e=setTimeout((function(){return E(!1)}),5e3);return function(){return clearTimeout(e)}}),[A]),r.createElement("div",{role:"status"},A&&r.createElement(a.Z,{in:S,onExit:n,timeout:{enter:0,exit:v},unmountOnExit:!0,mountOnEnter:!0,"data-encore-id":s.e.Snackbar},(function(e){return r.createElement(m,Object.assign({ref:t,className:(0,l.Mg)(d,f),colorSet:d,state:e},y),r.createElement(c.D,{variant:"viola",semanticColor:"textBase"},h))})))}))},48415:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var o=n(59496),i=n(30619),r=n(64709).ZP.table.withConfig({displayName:"Table__TableElement",componentId:"sc-evwssh-0"})(["max-inline-size:100%;inline-size:100%;text-align:start;border-collapse:collapse;overflow-wrap:break-word;"]),a=o.forwardRef((function(e,t){return o.createElement(r,Object.assign({ref:t},e,{"data-encore-id":i.e.Table}))}))},30468:(e,t,n)=>{"use strict";n.d(t,{p:()=>T});var o=n(68901),i=n(59496),r=n(30619),a=n(58706),s=n(64709),l=n(9465),c=n(98590),u=n(81239),d=n(3254),p=n(88093),f=n(50823),h=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],m=["semanticColor"],g=(0,s.iv)(["color:",";"],(0,d.NE)(d.iK.textBase)),v=(0,s.iv)([""," color:",";"],p.IT,(0,d.NE)(d.iK.textSubdued)),y=(0,s.ZP)(i.forwardRef((function(e,t){var n=e.component,r=void 0===n?"button":n,a=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,o.Z)(e,h));return i.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,i=(0,o.Z)(e,m);return(0,s.iv)(["",";",";cursor:inherit;display:inline-flex;align-items:center;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],(0,l.D)(),(!i.component||"button"===i.component)&&(0,p.BX)(i.useBrowserDefaultFocusStyle),(0,d.NE)(n),g,i.isHover&&g,v,p.cp,(0,d.NE)(n),i.isActive&&v,!i.useBrowserDefaultFocusStyle&&(0,f.qy)(0,i.isUsingKeyboard,i.isFocus))})),_=n(50998),b=n(3342),S=s.ZP.span.withConfig({displayName:"Trigger",componentId:"sc-1qpjssw-0"})(["display:inline-flex;position:relative;"]);var E=s.ZP.td.withConfig({displayName:"TableCell__TableCellElement",componentId:"sc-1nn7cfv-0"})(["",";",";font-feature-settings:",";"," 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;color:",";",";}",";> ",",> ",",> "," span:not(",") ","{position:relative;top:3px;}"],(0,l.D)(),(0,c.Ef)(),(function(e){return e.numerical?"'tnum'":void 0}),(function(e){return e.highlight&&(0,c.Dg)()}),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),(function(e){return e.condensed?0:(0,u.mA)(-1,a.nuo)}),(function(e){return e.highlight?(0,d.NE)(d.iK.textBase):"inherit"}),a.gXv,(function(e){return e.condensed?0:(0,u.mA)(-4,a.hM$)}),a.gXv,(function(e){return e.condensed?0:(0,u.mA)(-4,a.hM$)}),(0,d.NE)(d.iK.textBase),(0,c.Dg)(),(function(e){return e.truncate&&(0,s.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,s.iv)(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),a.vmZ,a.SA3,a.SIq)}),_.Z,y,S,b.aV,y),A=["align"],T=function(e){var t=e.align,n=void 0===t?"start":t,a=(0,o.Z)(e,A);return i.createElement(E,Object.assign({align:n},a,{"data-encore-id":r.e.TableCell}))}},76669:(e,t,n)=>{"use strict";n.d(t,{x:()=>m});var o=n(68492),i=n(68901),r=n(59496),a=n(30619),s=n(58706),l=n(64709),c=n(3254),u=n(32867),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"],m=function(e){var t=e.responsive,n=e.stickyHeader,s=(0,i.Z)(e,h),l=(0,r.useState)(!1),c=(0,o.Z)(l,2),u=c[0],d=c[1];return r.createElement(f,Object.assign({responsive:t,stickyHeader:n,onScroll:function(e){return d(e.target instanceof HTMLElement&&0!==e.target.scrollTop)},isSticky:u},s,{"data-encore-id":a.e.TableContainer}))}},32867:(e,t,n)=>{"use strict";n.d(t,{T:()=>c});var o=n(58706),i=n(64709),r=n(9465),a=n(98590),s=n(3254),l=n(81239),c=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,r.D)(),(0,a.I_)(),(function(e){return e.active?(0,s.NE)(s.iK.textBase):(0,s.NE)(s.iK.textSubdued)}),(0,l.mA)(-1,o.nuo),(function(e){return"left"===e.align?"start":"right"===e.align?"end":e.align}),o.gXv,(0,l.mA)(-4,o.hM$),o.gXv,(0,l.mA)(-4,o.hM$),(function(e){return e.selectable&&(0,i.iv)(["cursor:default;&:hover{color:",";}"],(0,s.NE)(s.iK.textBase))}),(function(e){return e.isHover&&(0,i.iv)(["color:",";"],(0,s.NE)(s.iK.textBase))}))},36098:(e,t,n)=>{"use strict";n.d(t,{x:()=>v});var o=n(68901),i=n(59496),r=n(30619),a=n(60901),s=n(30366),l=n(77675),c=n(16004),u=n(32867),d=["align","sortedByDirection","iconPlacement","onClick","children"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t{"use strict";n.d(t,{S:()=>d});var o=n(83150),i=n(51163),r=n(59496),a=n(30619),s=n(64709),l=n(3254),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:1px solid ",";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:1px solid ",";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=(0,r.forwardRef)((function(e,t){var n=(0,i.Z)({},((0,o.Z)(e),e));return r.createElement(u,Object.assign({ref:t},n,{"data-encore-id":a.e.TableRow}))}))},46267:(e,t,n)=>{"use strict";n.d(t,{s:()=>v});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(3254),l=n(14911),c=n(9465),u=n(81239),d=n(50823),p=n(62621),f=n(71965),h=n(92543),m=["component","active","focus","hover","colorSet","fallbackSet","isUsingKeyboard"],g=["colorSet","fallbackSet"],v=(0,a.ZP)((function(e){var t=e.component,n=void 0===t?"span":t,r=(e.active,e.focus,e.hover,e.colorSet,e.fallbackSet,e.isUsingKeyboard,(0,o.Z)(e,m));return i.createElement(n,r)})).withConfig({displayName:"Tag__TagElement",componentId:"sc-15ycdu9-0"})(["",""],(function(e){var t=e.colorSet,n=e.fallbackSet,i=(0,o.Z)(e,g),m=t?(0,s.NE)(s.iK.backgroundBase,n.background.base):(0,s.NE)(s.iK.backgroundTintedBase,n.background.tinted.base),v="\n ".concat(f.e," {\n background-color: ").concat(m,";\n }\n ").concat(h.g," {\n background-color: ").concat((0,s.NE)(s.iK.backgroundBase,n.background.base),";\n }\n ").concat(f.e,", ").concat(h.g," {\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n opacity: ").concat(l.Zx,";\n }\n ").concat(p.v," {\n border-color: transparent;\n }\n "),y="mutedAccent"===t?(0,s.NE)(s.iK.backgroundHighlight,n.background.highlight):(0,s.NE)(s.iK.backgroundTintedHighlight,n.background.tinted.highlight),_="\n ".concat(f.e," {\n background-color: ").concat(y,";\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n }\n ").concat(h.g," {\n background-color: ").concat((0,s.NE)(s.iK.backgroundHighlight,n.background.highlight),";\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n }\n "),b="mutedAccent"===t?(0,s.NE)(s.iK.backgroundPress,n.background.press):(0,s.NE)(s.iK.backgroundTintedPress,n.background.tinted.press),S="\n ".concat(f.e," {\n background-color: ").concat(b,";\n color: ").concat((0,s.NE)(s.iK.textSubdued,n.text.subdued),";\n }\n ").concat(h.g," {\n background-color: ").concat((0,s.NE)(s.iK.backgroundPress,n.background.press),";\n color: ").concat((0,s.NE)(s.iK.textBase,n.text.base),";\n }\n "),E="\n outline: none;\n\n ".concat(p.v," {\n border-color: ").concat((0,s.NE)(s.iK.essentialBase,n.essential.base),"\n }\n ");return(0,a.iv)(["",";position:relative;display:inline-block;transition:box-shadow 0.2s,transform 0.2s;align-self:center;flex-shrink:0;overflow-wrap:break-word;&:not(:last-child){margin-inline-end:",";}","{transition:border-color "," ",";}"," &[href]:hover{",";}&[href]:active{",";}&[href]:focus{",";}&[disabled],&[aria-disabled='true']{","}&&{"," "," "," ","}"],(0,c.D)(),(0,u.mA)(-2,r.dly),p.v,d.IW,d.qr,"button"===i.component&&(0,a.iv)(["&:hover{",";}&:active{",";}&:focus{",";}"],_,S,i.isUsingKeyboard&&E),_,S,i.isUsingKeyboard&&E,v,"\n &[href],\n &[href]:focus,\n &[href]:hover {\n text-decoration: none;\n box-shadow: none;\n }\n ",i.hover&&_,i.active&&S,i.focus&&i.isUsingKeyboard&&E)}))},62621:(e,t,n)=>{"use strict";n.d(t,{v:()=>s});var o=n(58706),i=n(64709),r=n(50823),a=n(81239),s=i.ZP.div.withConfig({displayName:"TagFocus",componentId:"sc-oozknb-0"})([""," display:block;position:absolute;pointer-events:none;background:transparent;border:","px solid transparent;border-radius:",";box-sizing:border-box;"],(0,r.Nz)(),r.Ef,(0,a._S)("xl",o.dly))},71965:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var o=n(58706),i=n(64709),r=n(3254),a=n(98590),s=n(81239),l=i.ZP.div.withConfig({displayName:"TagInner",componentId:"sc-1uxwtix-0"})(["",""],(function(e){var t=e.colorSet,n=e.fallbackSet,l=t?(0,r.NE)(r.iK.backgroundBase,n.background.base):(0,r.NE)(r.iK.backgroundTintedBase,n.background.tinted.base);return(0,i.iv)(["",";background-color:",";color:",";padding-block-start:",";padding-inline-end:",";padding-block-end:",";padding-inline-start:",";border-radius:",";transition:background-color 0.2s,color 0.2s;"],(0,a.VW)(),l,(0,r.NE)(r.iK.textBase,n.text.base),(0,s.mA)(-4,o.hM$),(0,s.mA)(-2,o.dly),(0,s.mA)(-4,o.hM$),(0,s.mA)(-2,o.dly),(0,s._S)("md",o.hM$))}))},92543:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});var o=n(64709),i=n(3254),r=n(71965),a=(0,o.ZP)(r.e).withConfig({displayName:"TagInnerSelected",componentId:"sc-19i8max-0"})(["",""],(function(e){var t=e.fallbackSet;return(0,o.iv)(["background-color:",";color:",";"],(0,i.NE)(i.iK.backgroundBase,t.background.base),(0,i.NE)(i.iK.textBase,t.text.base))}))},835:(e,t,n)=>{"use strict";n.d(t,{V:()=>h});var o=n(68901),i=n(59496),r=n(3992),a=n(30619),s=n(58896),l=n(3254),c=n(46267),u=n(62621),d=n(71965),p=n(92543),f=["colorSet","selectedColorSet","selected","children","color","className"],h=function(e){var t=e.colorSet,n=e.selectedColorSet,h=e.selected,m=e.children,g=(e.color,e.className),v=(0,o.Z)(e,f);h&&(0,s.Zh)("selected","Tag","Please use the Chip component with a selected prop instead."),n&&(0,s.Zh)("selectedColorSet","Tag","Please use the Chip component with a selectedColorSet prop instead.");var y=(0,i.useContext)(r.t).isUsingKeyboard,_=h?p.g:d.e,b=h?n||"invertedDark":t,S=l.uH[b||l.Y7];return i.createElement(c.s,Object.assign({},v,{colorSet:b,fallbackSet:S,isUsingKeyboard:y,"data-encore-id":a.e.Tag}),i.createElement(_,{className:(0,l.Mg)(b,g),colorSet:b,fallbackSet:S},m),i.createElement(u.v,null))}},80885:(e,t,n)=>{"use strict";n.d(t,{j4:()=>f,rU:()=>b});var o=n(68901),i=n(59496),r=n(64709),a=n(50823),s=n(3254),l=n(14911),c=n(9465),u=n(88093),d=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isFocus","isActive","standalone","semanticColor"],p=function(e){var t=e.color;return(0,r.iv)(["text-decoration:underline;color:",";"],t)},f=(0,r.iv)(["box-shadow:",";transition:box-shadow "," ",";&&{text-decoration:none;}"],"0 3px 0 0",a.IW,a.qr),h=(0,r.iv)(["color:",";"],(0,s.NE)(s.iK.textBrightAccent)),m=(0,r.iv)(["color:",";opacity:",";cursor:not-allowed;"],(0,s.NE)(s.iK.textSubdued),l.Zx),g=function(e){var t=e.semanticColor;return(0,r.iv)(["text-decoration:underline;color:",";"],(0,s.NE)(t||s.iK.textSubdued))},v=(0,r.iv)(["color:",";"],(0,s.NE)(s.iK.textBase)),y=function(e){var t=e.semanticColor;return(0,r.iv)(["text-decoration:underline;color:",";"],(0,s.NE)(t||s.iK.textBase))},_=(0,r.iv)(["text-decoration:none;"]),b=(0,r.ZP)(i.forwardRef((function(e,t){var n=e.component,r=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isFocus,e.isActive,e.standalone,e.semanticColor,(0,o.Z)(e,d));return i.createElement(n,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-k8gsk-0"})(["",";",";"," align-items:center;text-decoration:none;&[href],&:hover:not([disabled]){text-decoration:underline;}&[href]:hover{",";}"," &[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}",""],(0,c.D)(),(function(e){return"button"===e.component&&(0,r.iv)(["",";font-family:inherit;font-size:inherit;&:focus{","}"],(0,u.BX)(e.useBrowserDefaultFocusStyle),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&f)}),(function(e){return e.semanticColor?(0,r.iv)(["color:",";"],(0,s.NE)(e.semanticColor)):(0,r.iv)(["color:inherit;"])}),(function(e){return e.semanticColor?p({color:(0,s.NE)(e.semanticColor)}):p({color:(0,s.NE)(s.iK.textBrightAccent)})}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,r.iv)(["&[href]:focus{outline:none;",";}"],e.isUsingKeyboard&&f)}),h,(function(e){return e.isHover&&(e.semanticColor?p({color:(0,s.NE)(e.semanticColor)}):p({color:(0,s.NE)(s.iK.textBrightAccent)}))}),(function(e){return e.isFocus&&!e.useBrowserDefaultFocusStyle&&f}),(function(e){return e.isActive&&h}),m,(function(e){return e.standalone&&(0,r.iv)(["color:",";display:inline-flex;&,&[href]{text-decoration:none;}&[href]:hover,&[href]:hover:focus{",";}&[href]:focus{text-decoration:none;",";}&[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}"],e.semanticColor?(0,s.NE)(e.semanticColor):(0,s.NE)(s.iK.textSubdued),g({semanticColor:e.semanticColor}),e.isUsingKeyboard&&v,y({semanticColor:e.semanticColor}),e.isHover&&g({semanticColor:e.semanticColor}),e.isFocus&&v,e.isActive&&y({semanticColor:e.semanticColor}),_)}))},65735:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var o=n(68901),i=n(59496),r=n(4107),a=n(3992),s=n(30619),l=n(80885),c=["children","color","semanticColor","component","href","disabled","role"],u=i.forwardRef((function(e,t){var n=e.children,u=e.color,d=e.semanticColor,p=e.component,f=void 0===p?"a":p,h=e.href,m=e.disabled,g=e.role,v=(0,o.Z)(e,c),y=(0,i.useContext)(a.t).isUsingKeyboard,_=(0,i.useContext)(r.W).useBrowserDefaultFocusStyle;return i.createElement(l.rU,Object.assign({component:f,isUsingKeyboard:y,useBrowserDefaultFocusStyle:_,color:u,semanticColor:d,ref:t,href:m?void 0:h,disabled:m,"aria-disabled":m,role:m&&"button"!==f?"link":g},v,{"data-encore-id":s.e.TextLink}),n)}))},67353:(e,t,n)=>{"use strict";n.d(t,{u:()=>m});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(30619),l=n(9465),c=n(91689),u=n(98590),d=n(81239),p=n(3254),f=["colorSet","className"],h=a.ZP.div.withConfig({displayName:"Tooltip__TooltipWrapper",componentId:"sc-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,l.D)(),(0,c.IJ)({maxWidth:"240px"}),(0,u.Ef)(),(0,d.mA)(-2,r.dly),(0,d.mA)(-2,r.dly),(0,d.mA)(-1,r.nuo),(0,d.mA)(-1,r.nuo),p.cv.text.base),m=i.forwardRef((function(e,t){var n=e.colorSet,r=void 0===n?"base":n,a=e.className,l=(0,o.Z)(e,f);return i.createElement(h,Object.assign({ref:t,className:(0,p.Mg)(r,a),role:"tooltip"},l,{"data-encore-id":s.e.Tooltip}))}))},56162:(e,t,n)=>{"use strict";n.d(t,{D:()=>_});var o=n(60901),i=n(68901),r=n(59496),a=n(30619),s=n(64709),l=n(14911),c=n(98590),u=n(9465),d=n(3254),p=n(18542),f=s.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],(0,u.D)(),Spicetify._fontStyle=(function(e){return e.variant?function(e){switch(e){case"bass":return(0,c.l8)();case"forte":return(0,c.Yt)();case"brio":return(0,c.R)();case"altoBrio":return(0,c.AH)();case"alto":return(0,c.h2)();case"canon":return(0,c.xi)();case"celloCanon":return(0,c.BS)();case"cello":return(0,c.GW)();case"ballad":return(0,c.Mp)();case"balladBold":return(0,c.Vr)();case"viola":default:return(0,c.Ef)();case"violaBold":return(0,c.Dg)();case"mesto":return(0,c.Ue)();case"mestoBold":return(0,c.I_)();case"metronome":return(0,c.As)();case"finale":return(0,c.QB)();case"finaleBold":return(0,c.VW)();case"minuet":return(0,c.gI)();case"minuetBold":return(0,c.bx)()}}(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,s.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,s.iv)(["color:",";"],(0,d.NE)(e.semanticColor)):(0,s.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,s.iv)(["font-weight:",";"],function(e){switch(e){case"book":return l.tE;case"bold":return l.Y$;case"black":return l.nj;default:return(0,p.vE)(e)}}(e.weight))})),h=["color","semanticColor","paddingBottom","variant"];function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t{"use strict";n.d(t,{d:()=>f});var o=n(68901),i=n(59496),r=n(58706),a=n(64709),s=n(30619),l=n(9465),c=["listStyleReset"],u=a.ZP.ul.attrs((function(e){return{role:e.role||"list",listStyleReset:e.listStyleReset||!1}})).withConfig({displayName:"TypeList__TypeListElement",componentId:"sc-1jhixr6-0"})(["",";padding-inline-start:",";padding-inline-end:0;padding-block-end:",";margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],(0,l.D)(),(function(e){return e.condensedAll?"0":r.mGT}),(function(e){return e.condensed&&"0"}),(function(e){return!1!==e.listStyleReset&&(0,a.iv)(["list-style-type:none;"])})),d={ul:u.withComponent("ul",{target:"e188cash0"}),ol:u.withComponent("ol",{target:"e188cash1"})},p=i.forwardRef((function(e,t){var n=e.listStyleReset,r=void 0!==n&&n,a=(0,o.Z)(e,c);return i.createElement(u,Object.assign({},a,{ref:t,listStyleReset:r,"data-encore-id":s.e.TypeList}))})),f=Object.assign(p,d)},93107:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var o=n(68901),i=n(59496),r=n(64709),a=n(30619),s=n(56162),l=["as","listStyleReset"],c=(0,r.ZP)(s.D).withConfig({displayName:"TypeListItem__TypeListItemElement",componentId:"sc-q1l2mf-0"})(["display:list-item;padding-block-end:",";",";"],(function(e){return!e.condensed&&"1em"}),(function(e){return e.listStyleReset&&"list-style-type: none"})),u=i.forwardRef((function(e,t){var n=e.as,r=void 0===n?"li":n,s=e.listStyleReset,u=void 0!==s&&s,d=(0,o.Z)(e,l);return i.createElement(c,Object.assign({},d,{ref:t,forwardedAs:r,listStyleReset:u,"data-encore-id":a.e.TypeListItem}))}))},18845:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var o=n(68901),i=n(59496),r=n(64709),a=n(30619),s=n(87577),l=["component"],c=(0,r.ZP)(i.forwardRef((function(e,t){var n=e.component,r=void 0===n?"span":n,a=(0,o.Z)(e,l);return i.createElement(r,Object.assign({},a,{ref:t}))}))).withConfig({displayName:"VisuallyHidden__VisuallyHiddenElement",componentId:"sc-17bibe8-0"})(["",""],(0,s.j)()),u=i.forwardRef((function(e,t){return i.createElement(c,Object.assign({},e,{ref:t,"data-encore-id":a.e.VisuallyHidden}))}))},4107:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var o={useBrowserDefaultFocusStyle:!1},i=n(59496).createContext(o);i.displayName="BrowserDefault"},56079:(e,t,n)=>{"use strict";n.d(t,{S9:()=>l,U0:()=>r,W1:()=>a,k3:()=>i,lR:()=>s});var o=n(59496),i={experimental:"experimental",next:"next",deprecated:"deprecated"},r={button:"button",list:"list"},a={experimental:[],next:[],deprecated:[]},s=function(e,t){var n=void 0;return Object.keys(i).forEach((function(o){(function(e,t){return t.indexOf(e)>-1})(e,t[o])&&(n=o)})),n},l=o.createContext(a);l.displayName="Encore"},3992:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i,t:()=>r});var o=n(59496),i={isUsingKeyboard:!0},r=o.createContext(i);r.displayName="KeyboardDetection"},30619:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var o={Accordion:"accordion",AccordionContent:"accordionContent",AccordionItem:"accordionItem",AccordionTitle:"accordionTitle",App:"app",AppBanner:"appBanner",AppBannerLayout:"appBannerLayout",AppFooter:"appFooter",AppFooterLink:"appFooterLink",Backdrop:"backdrop",Banner:"banner",BrowserDefaultFocusStyleProvider:"browserDefaultFocusStyleProvider",Button:"button",ButtonIcon:"buttonIcon",ButtonPrimary:"buttonPrimary",ButtonSecondary:"buttonSecondary",ButtonTertiary:"buttonTertiary",Chip:"chip",ChipClear:"chipClear",CollapseButton:"collapseButton",DialogAlert:"dialogAlert",DialogConfirmation:"dialogConfirmation",DialogFullScreen:"dialogFullScreen",Dropdown:"dropdown",DropdownItem:"dropdownItem",DropdownLink:"dropdownLink",DropdownList:"dropdownList",DropdownTrigger:"dropdownTrigger",EmptyState:"emptyState",EmptyStateButton:"emptyStateButton",EmptyStateText:"emptyStateText",EmptyStateTitle:"emptyStateTitle",EncoreProvider:"encoreProvider",FlyOut:"flyOut",FlyOutAccount:"flyOutAccount",FlyOutBody:"flyOutBody",FlyOutControl:"flyOutControl",FlyOutFooter:"flyOutFooter",FlyOutHeader:"flyOutHeader",FlyOutHeaderTitle:"flyOutHeaderTitle",FlyOutLink:"flyOutLink",FormCheckbox:"formCheckbox",FormGroup:"formGroup",FormHelpText:"formHelpText",FormInput:"formInput",FormInputIcon:"formInputIcon",FormPopoverTrigger:"formPopoverTrigger",FormRadio:"formRadio",FormSelect:"formSelect",FormTextarea:"formTextarea",FormToggle:"formToggle",GlobalStyles:"globalStyles",HorizontalRule:"horizontalRule",Icon:"icon",IconWithText:"iconWithText",Image:"image",KeyboardDetectionProvider:"keyboardDetectionProvider",List:"list",ListItem:"listItem",LoadingIndicator:"loadingIndicator",LogoSpotify:"logoSpotify",LogoSpotifyForArtists:"logoSpotifyForArtists",NavBar:"navBar",NavBarList:"navBarList",NavBarListItem:"navBarListItem",NavPill:"navPill",NavPillList:"navPillList",NavPillListItem:"navPillListItem",NavPillPanel:"navPillPanel",NavStepper:"navStepper",NavStepperItem:"navStepperItem",Navigation:"navigation",NavigationAction:"navigationAction",NavigationList:"navigationList",NavigationListItem:"navigationListItem",NavigationListTitle:"navigationListTitle",OverlayPortal:"overlayPortal",OverlayTrigger:"overlayTrigger",PaginationControls:"paginationControls",PaginationDropdown:"paginationDropdown",PaginationDropdownItem:"paginationDropdownItem",PaginationDropdownLink:"paginationDropdownLink",PaginationDropdownList:"paginationDropdownList",PaginationDropdownTrigger:"paginationDropdownTrigger",Popover:"popover",PopoverNavigation:"popoverNavigation",PopoverNavigationItem:"popoverNavigationItem",PopoverNavigationLink:"popoverNavigationLink",PopoverOnboarding:"popoverOnboarding",PopoverTrigger:"popoverTrigger",ProgressBar:"progressBar",SkipLink:"skipLink",Snackbar:"snackbar",StatusIndicator:"statusIndicator",Table:"table",TableCell:"tableCell",TableCheckbox:"tableCheckbox",TableContainer:"tableContainer",TableHeaderCell:"tableHeaderCell",TablePagination:"tablePagination",TableRow:"tableRow",TableSortIcon:"tableSortIcon",TableThumbnail:"tableThumbnail",Tag:"tag",TextLink:"textLink",Tooltip:"tooltip",TooltipTrigger:"tooltipTrigger",Type:"type",TypeList:"typeList",TypeListItem:"typeListItem",UnsupportedBrowser:"unsupportedBrowser",VerifiedBadge:"verifiedBadge",VisuallyHidden:"visuallyHidden"}},58896:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>c,Zh:()=>u,iw:()=>d,u_:()=>p});var o,i,r=n(61835),a=n(14224),s="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==a&&(null==a||null==(o={})?void 0:o.MUTE_ENCORE_WARNINGS)||void 0,l="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==a&&(null==a||null==(i={})?void 0:i.NODE_ENV)||void 0;function c(e){"true"!==s&&"production"!==l&&console.warn(e)}function u(e,t,n){c("The ".concat(e," prop in ").concat(t," has been deprecated. ").concat(n||""))}function d(e,t,n,o){c("The ".concat(e," prop in ").concat(n," has been deprecated. Please use ").concat(t," instead. ").concat(o||""))}function p(e,t){return Object.keys(r.F).filter((function(e){return"top"!==e&&"bottom"!==e})).includes(e)?d(e,(0,r.a)(e),t,"This allows us to support localization."):null}},81239:(e,t,n)=>{"use strict";function o(e,t){return"var(--spacer-".concat(e,", ").concat(t,")")}function i(e,t){return"var(--border-radius-".concat(e,", ").concat(t,")")}function r(e,t){return"var(--control-size-".concat(e,", ").concat(t,")")}function a(e,t,n){return n?"calc(-1 * var(--layout-margin-".concat(e,", ").concat(t,"))"):"var(--layout-margin-".concat(e,", ").concat(t,")")}n.d(t,{EW:()=>r,Sq:()=>a,_S:()=>i,mA:()=>o})},9465:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var o=n(64709),i=function(){return(0,o.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])}},89312:(e,t,n)=>{"use strict";n.d(t,{O3:()=>a,VZ:()=>r,i8:()=>s});var o=n(58706),i=n(98590),r={sm:"sm",md:"md",lg:"lg"},a=function(e){switch(e){case"sm":return(0,i.VW)();case"md":default:return(0,i.Dg)();case"lg":return(0,i.Vr)()}},s={sm:o.dly,md:"14px",lg:o.o78}},88093:(e,t,n)=>{"use strict";n.d(t,{BX:()=>A,Dx:()=>f,FN:()=>m,IT:()=>S,Lm:()=>_,Z7:()=>g,ZG:()=>y,cp:()=>b,lK:()=>v,l_:()=>E});var o=n(58706),i=n(64709),r=n(56079),a=n(18542),s=n(89312),l=n(98590),c=n(30659),u=n(9465),d=n(50823),p=n(14911),f="500px",h={sm:o.o78,md:o.mGT,lg:o.JBZ},m={sm:o.nuo,md:o.F_T,lg:o.g4V},g={sm:"5px",md:o.nuo,lg:"10px"},v=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="".concat("deprecated"===(arguments.length>2?arguments[2]:void 0)?(0,a.zg)(s.i8[e])-n:(0,a.zg)(c.sz[e])-n,"px");var o="".concat((0,a.zg)(h[e])-n,"px"),i="".concat(function(e){var t=m[e],n=g[e],o=c._[e];return(0,a.zg)(t)+o+(0,a.zg)(n)}(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:o,withIconPaddingLeftRight:i}},y=function(e,t,n,o,r,a){var s=v(e,r,a),l=s.paddingTopBottom,u=s.paddingLeftRight,d=s.withIconPaddingLeftRight,p=(0,i.iv)(["inline-size:",";block-size:",";"],c.il[e],c.il[e]),f=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],l,l,u,u),h=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],l,l,d,d),m=(0,i.iv)(["padding-block-start:",";padding-block-end:",";padding-inline-start:",";padding-inline-end:",";"],l,l,t?d:u,n?d:u);return o?p:t||n?t&&n?h:m:f},_=function(e,t,n){return(0,i.iv)(["",";"," ",";background-color:transparent;border:0;border-radius:",";cursor:pointer;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,u.D)(),!t&&d.Cs,function(e,t){if(t===r.k3.deprecated)return(0,s.O3)(e);switch(e){case"sm":return(0,l.I_)();case"md":default:return(0,l.Vr)();case"lg":return(0,l.GW)()}}(e,n),f,"none","33ms")},b=(0,i.iv)(["cursor:",";opacity:",";transform:scale(1);"],p.fn,p.Zx),S=(0,i.iv)(["opacity:",";outline:none;transform:scale(1);"],p.MQ),E=(0,i.iv)(["transform:scale(",");"],"1.04"),A=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(["background-color:transparent;border:0;color:inherit;cursor:pointer;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&d.Cs)}},30659:(e,t,n)=>{"use strict";n.d(t,{_:()=>a,il:()=>i,sz:()=>r});var o=n(58706),i={sm:o.mGT,md:o.JBZ,lg:o.cQs},r={sm:o.hM$,md:o.dly,lg:o.nuo},a={sm:16,md:24,lg:24}},50823:(e,t,n)=>{"use strict";n.d(t,{Bg:()=>a,Cs:()=>c,Ef:()=>r,F5:()=>u,IW:()=>s,Nz:()=>d,_3:()=>h,k2:()=>f,qr:()=>l,qy:()=>g,s8:()=>m});var o=n(64709),i=n(3254),r=3,a=(0,i.NE)(i.iK.essentialBase),s="200ms",l="ease-in",c=(0,o.iv)(["&:focus{outline:none;}"]);function u(){return{dimension:"".concat(4*r,"px"),position:"-".concat(2*r,"px")}}var d=function(){var e=u(),t=e.dimension,n=e.position;return(0,o.iv)(["inline-size:",";block-size:",";top:",";left:",";"],"calc(100% + ".concat(t,")"),"calc(100% + ".concat(t,")"),n,n)},p=(0,o.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],s,l),f=function(e){return(0,o.iv)([""," "," background:transparent;border-radius:",";border:","px solid transparent;"],p,d(),e,r)},h=function(e){return(0,o.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],p,e-2*r,r)},m=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,o.iv)(["position:relative;"," ",""],c,t&&(0,o.iv)(["&::after{"," content:'';}&:focus::after{border-color:",";}",""],f(e),a,n&&(0,o.iv)(["&::after{border-color:",";}"],a)))},g=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,o.iv)(["position:relative;"," ",""],c,t&&(0,o.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],h(e),n&&(0,o.iv)(["&::after{border-color:inherit;}"])))}},42626:(e,t,n)=>{"use strict";n.d(t,{DW:()=>p,GN:()=>d,O0:()=>m,d_:()=>f,lm:()=>u,oi:()=>h});var o=n(58706),i=n(64709),r=n(30659),a=n(3254),s=n(14911),l=n(9465),c=n(98590),u=function(e){return(0,i.iv)(["-webkit-appearance:none;background-image:none;border:0;display:block;",";transition:box-shadow ease-in-out 0.1s,color ease-in-out 0.1s;inline-size:100%;&::placeholder{opacity:1;}"," &:disabled{cursor:not-allowed;opacity:1;}"],(0,c.Mp)(),!e&&(0,i.iv)(["&:focus,&:hover:focus{outline:0;}"]))},d=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:",";padding-block-end:",";padding-inline-start:14px;padding-inline-end:44px;"],(0,l.D)(),o.hM$,r.sz.md,r.sz.md)},p=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))},f=function(){return(0,i.iv)(["",";align-items:center;display:flex;padding-block-end:",";padding-block-start:",";position:relative;min-block-size:",";"],(0,l.D)(),o.hM$,o.hM$,o.mGT)},h=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,o.o78,o.o78)},m=function(e){var t=e.isUsingKeyboard,n=void 0===t||t,o=e.isHover,r=e.isFocus,l=e.useBrowserDefaultFocusStyle,c=e.error,u=(0,i.iv)(["box-shadow:inset 0 0 0 1px ",";"],(0,a.NE)(a.iK.essentialBase)),d=(0,i.iv)(["box-shadow:inset 0 0 0 ","px ",";"],n?3:1.5,(0,a.NE)(a.iK.essentialBase)),p=(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,&[readonly]:hover{","}"," &:focus,&[readonly]:focus{","}&&{",";}&::placeholder{color:",";}&:disabled{opacity:",";box-shadow:inset 0 0 0 1px ",";}&[readonly]{box-shadow:inset 0 0 0 1px ",";}&:invalid{",";}",""],(0,a.NE)(a.iK.backgroundBase),(0,a.NE)(a.iK.essentialSubdued),(0,a.NE)(a.iK.textBase),u,o&&u,!l&&d,r&&!l&&d,(0,a.NE)(a.iK.textSubdued),s.Zx,(0,a.NE)(a.iK.essentialSubdued),(0,a.NE)(a.iK.decorativeSubdued),void 0===c&&p,c&&p)}},7734:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var o=n(64709),i=function(){return(0,o.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"])}},61835:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,a:()=>a});var o=n(91689),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"},r={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=o.LR,t in n?e:r[e]}},91689:(e,t,n)=>{"use strict";n.d(t,{WZ:()=>h,IJ:()=>f,qE:()=>m,Jh:()=>d,LR:()=>p});var o=n(58706),i=n(64709),r=n(14911),a=n(18542),s=n(3254),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,r=e.position,a=e.offset,s=e.width,u=void 0===s?o.dly:s,d="-".concat(u);return(0,i.iv)(["position:relative;&&::after{bottom:auto;content:'';left:auto;position:absolute;right:auto;top:auto;",";",";",";",";",";",";",";",";}"],"bottom"===r&&(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"===r&&(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"===r&&(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"===r&&(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"===r&&(0,i.iv)(["left:",";top:",";filter:drop-shadow(0 -2px 1px ",");[dir='rtl'] &{left:unset;right:",";}"],"center"===a?"calc(50% - ".concat(u,")"):a,d,l,"center"===a?"calc(50% - ".concat(u,")"):a),"bottom"===r&&(0,i.iv)(["bottom:",";left:",";filter:drop-shadow(0 2px 1px ",");[dir='rtl'] &{left:unset;right:",";}"],d,"center"===a?"calc(50% - ".concat(u,")"):a,l,"center"===a?"calc(50% - ".concat(u,")"):a),"start"===r&&(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"===r&&(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(o.hM$," ").concat(o.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,r=e.colorSet,a=void 0===r?"base":r;return(0,i.iv)(["background:",";color:",";border-radius:",";box-shadow:",";text-align:start;cursor:default;display:inline-block;max-inline-size:",";position:relative;"],(0,s.NE)(s.iK.backgroundElevatedBase,s.uH[a].background.elevated.base),(0,s.NE)(s.iK.textBase,s.uH[a].text.base),o.dly,d,n)},h=function(e){var t=e.colorSet;return(0,i.iv)(["",";display:flex;flex-direction:column;max-block-size:90vh;z-index:",";@media (min-width:","){max-block-size:80vh;}"],f({maxWidth:"calc(100% - ".concat(o.JBZ,")"),colorSet:t}),r.x,o.SA3)},m=function(e){switch(e){case"top":return u({offset:"center",position:"top"});case"topStart":return u({offset:o.dly,position:"top"});case"topEnd":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"top"});case"bottom":return u({offset:"center",position:"bottom"});case"bottomStart":return u({offset:o.dly,position:"bottom"});case"bottomEnd":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"bottom"});case"start":return u({offset:"center",position:"start"});case"startTop":return u({offset:o.dly,position:"start"});case"startBottom":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"start"});case"end":return u({offset:"center",position:"end"});case"endTop":return u({offset:o.dly,position:"end"});case"endBottom":return u({offset:"calc(100% - ".concat(o.g4V,")"),position:"end"});default:return(0,a.vE)(e)}}},98590:(e,t,n)=>{"use strict";n.d(t,{h2:()=>W,AH:()=>z,Mp:()=>Q,Vr:()=>$,l8:()=>H,R:()=>Y,xi:()=>q,GW:()=>X,BS:()=>Z,QB:()=>re,VW:()=>ae,Yt:()=>K,Ue:()=>ne,I_:()=>oe,As:()=>ie,gI:()=>se,bx:()=>le,Ef:()=>ee,Dg:()=>te});var o=n(58706);const i={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},r={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},a={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},s={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},l={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},c={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},u={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},d={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},p={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},f={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},h={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},m={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},g={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},v={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},y={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},_={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},b={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},S={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},E={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},A={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},T={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},P={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},O={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},C={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},k={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},R={fontSize:"6rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},L={fontSize:"4.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},I={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},N={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},w={fontSize:"0.75rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},D={fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},M={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},x={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},F={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},U={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},B={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},V={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},G={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"};var J=n(64709),j=function(e,t){var n=e.fontSize!==t.fontSize,i=e.fontWeight!==t.fontWeight,r=e.textTransform!==t.textTransform,a=e.letterSpacing!==t.letterSpacing,s=e.fontFamily!==t.fontFamily,l=n||i||s||r||a;return(0,J.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,l&&(0,J.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],o.eqR.screenSmMin,n&&t.fontSize,i&&t.fontWeight,s&&"var(--font-family, ".concat(t.fontFamily,")"),r&&t.textTransform,a&&t.letterSpacing))},H=function(){return j(u,R)},K=function(){return j(d,L)},Y=function(){return j(p,I)},W=function(){return j(_,U)},z=function(){return j(y,F)},q=function(){return j(b,B)},X=function(){return j(E,G)},Z=function(){return j(S,V)},Q=function(){return j(i,A)},$=function(){return j(r,T)},ee=function(){return j(a,P)},te=function(){return j(s,O)},ne=function(){return j(l,C)},oe=function(){return j(c,k)},ie=function(){return j(v,N)},re=function(){return j(f,M)},ae=function(){return j(h,x)},se=function(){return j(m,w)},le=function(){return j(g,D)}},87577:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var o=n(64709),i=function(){return(0,o.iv)(["border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"])}},3254:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>v,Ev:()=>O,D6:()=>_,NE:()=>b,cv:()=>p,Y7:()=>d,uH:()=>u,EG:()=>m,iK:()=>T});var o=n(60901),i=n(68492);const r={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};var a=n(74654),s=n.n(a);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,o){var r,a=(0,i.Z)(o,2),s=a[0],l=a[1],u=s;return""!==n&&(u="".concat(n).concat((r=s).charAt(0).toUpperCase()+r.slice(1))),"object"==typeof l?c(c({},t),e(l,u)):"string"==typeof l?(t[u]=l,t):t}),{})});function h(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function m(e){return e?"encore-".concat(h(e),"-set"):""}function g(e){if(!e)return"";var t=e.replace("Set","");return"encore-".concat(h(t),"-set")}function v(e,t){return e in r?[m(e),t].join(" ").trim():[g(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],o=t[1];return"\n ".concat(y(n),": ").concat(o," !important;\n ")}))}function b(e,t){var n=f(p)[e];return t&&(n=t),"var(".concat(y(e),", ").concat(n,")")}var S={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},E={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},A={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},T=(c(c(c({},S),E),A),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"}),S),E),A)),P=function(e,t){return e.contrast(t)},O=function(e,t){var n=s()(e),o=void 0;t&&(o=s()(t));var i,r,a,l=o&&P(n,o)>=4.45?o:(i=n,r=s()("#FFFFFF"),a=s()("#000000"),P(i,r)>=P(i,a)?r:a),c=l.luminosity()>=n.luminosity(),u=c?s()(n.lightness(n.hsl().object().l-5)):s()(n.lightness(n.hsl().object().l+5)),d=c?s()(u.lightness(u.hsl().object().l-5)):s()(u.lightness(u.hsl().object().l+5));return{background:{base:n.hex(),highlight:u.hex(),press:d.hex(),elevated:{base:n.hex(),highlight:u.hex(),press:d.hex()},tinted:{base:n.hex(),highlight:u.hex(),press:d.hex()},unsafeForSmallText:{base:n.hex(),highlight:u.hex(),press:d.hex()}},text:{base:l.hex(),subdued:l.hex(),brightAccent:l.hex(),negative:l.hex(),warning:l.hex(),positive:l.hex(),announcement:l.hex()},essential:{base:l.hex(),subdued:l.hex(),brightAccent:l.hex(),negative:l.hex(),warning:l.hex(),positive:l.hex(),announcement:l.hex()},decorative:{base:l.hex(),subdued:l.hex()}}}},14911:(e,t,n)=>{"use strict";n.d(t,{CR:()=>h,CV:()=>c,MQ:()=>g,Tu:()=>l,V9:()=>p,Y$:()=>a,Zx:()=>m,fn:()=>v,nj:()=>s,rp:()=>d,tE:()=>r,tS:()=>f,x:()=>u});var o=n(58706),i=n(81239),r=400,a=700,s=900,l=0,c=1040,u=1050,d=1060,p="200px",f=(0,i.Sq)("compact",o.g4V),h="0.1s",m=o.YhY,g=o.crY,v="not-allowed"},18542:(e,t,n)=>{"use strict";function o(e){throw new Error("Unreachable value")}n.d(t,{vE:()=>o,zg:()=>i});var i=function(e){return parseInt(e,10)}},78400:(e,t,n)=>{"use strict";function o(e,t){return function(e){return e&&"string"==typeof e.valueOf()}(e)?t:e}n.d(t,{Q:()=>o})},90093:(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}}},69499:(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}}},41302:(e,t)=>{"use strict";t.F=void 0,t.F=function(e){return{name:"ConfigurationApplied",environments:["device","browser"],data:e}}},64342:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"ConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},72611:(e,t)=>{"use strict";t.T=void 0,t.T=function(e){return{name:"DefaultConfigurationApplied",environments:["device","browser"],data:e}}},24769:(e,t)=>{"use strict";t.$=void 0,t.$=function(e){return{name:"DefaultConfigurationAppliedNonAuth",environments:["devicenonauth","browsernonauth"],data:e}}},43319:(e,t)=>{"use strict";t.C=void 0,t.C=function(e){return{name:"SptCookieConsentClientNonAuth",environments:["browsernonauth"],data:e}}},75887:(e,t)=>{"use strict";t.i=void 0,t.i=function(e){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},32885:(e,t)=>{"use strict";t.t=void 0,t.t=function(e){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:e}}},4842:(e,t)=>{"use strict";t.U=void 0,t.U=function(e){return{name:"UbiExpr2PageView",environments:["device","browser","desktop"],data:e}}},87699:(e,t)=>{"use strict";t.z=void 0,t.z=function(e){return{name:"UbiExpr5ImpressionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},69274:(e,t)=>{"use strict";t.Y=void 0,t.Y=function(e){return{name:"UbiExpr6InteractionNonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:e}}},2584:(e,t)=>{"use strict";t.S=void 0,t.S=function(e){return{name:"UbiProd1Impression",environments:["device","browser","desktop"],data:e}}},77393:(e,t)=>{"use strict";t.E=void 0,t.E=function(e){return{name:"UbiProd1Interaction",environments:["device","browser","desktop"],data:e}}},13799:(e,t)=>{"use strict";t.x=void 0,t.x=function(e){return{name:"WwwExperiments",environments:["browser"],data:e}}},74263:(e,t)=>{"use strict";t.k=void 0,t.k=function(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}},33334:(e,t,n)=>{"use strict";function o(e){return{name:"AdError",environments:["device"],data:e}}n.d(t,{v:()=>o})},96481:(e,t,n)=>{"use strict";function o(e){return{name:"AdEvent",environments:["browser","device","desktop"],data:e}}n.d(t,{X:()=>o})},71666:(e,t,n)=>{"use strict";function o(e){return{name:"AdViewContext",environments:["browser","device","desktop"],data:e}}n.d(t,{u:()=>o})},23926:(e,t,n)=>{"use strict";function o(e){return{name:"BetamaxPlaybackErrorDevice",environments:["device","desktop"],data:e}}n.d(t,{c:()=>o})},8136:(e,t,n)=>{"use strict";function o(e){return{name:"CastTransfer",environments:["device","browser"],data:e}}n.d(t,{I:()=>o})},16364:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableExtendedCredit",environments:["browser"],data:e}}n.d(t,{v:()=>o})},12050:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableExtendedCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{Y:()=>o})},54946:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableTrackCredit",environments:["browser","device","desktop"],data:e}}n.d(t,{x:()=>o})},63437:(e,t,n)=>{"use strict";function o(e){return{name:"ClickableTrackCreditNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{d:()=>o})},35889:(e,t,n)=>{"use strict";function o(e){return{name:"ClientStreamSignals",environments:["browser","desktop"],data:e}}n.d(t,{m:()=>o})},12505:(e,t,n)=>{"use strict";function o(e){return{name:"ClientVerificationCompleted",environments:["browser","desktop"],data:e}}n.d(t,{h:()=>o})},46378:(e,t,n)=>{"use strict";function o(e){return{name:"ClientVerificationPresented",environments:["browser","desktop"],data:e}}n.d(t,{x:()=>o})},81460:(e,t,n)=>{"use strict";function o(e){return{name:"ClientVerificationRequestFailed",environments:["browser","desktop"],data:e}}n.d(t,{b:()=>o})},72595:(e,t,n)=>{"use strict";function o(e){return{name:"ConnectDevicePickerClosed",environments:["device","desktop","browser"],data:e}}n.d(t,{n:()=>o})},56129:(e,t,n)=>{"use strict";function o(e){return{name:"ConnectNudgeRequestedDesktopExperiment",environments:["desktop"],data:e}}n.d(t,{U:()=>o})},25515:(e,t,n)=>{"use strict";function o(e){return{name:"DeeplinkOpen",environments:["browser","device"],data:e}}n.d(t,{K:()=>o})},22372:(e,t,n)=>{"use strict";function o(e){return{name:"KmInteraction",environments:["browser"],data:e}}n.d(t,{p:()=>o})},21950:(e,t,n)=>{"use strict";function o(e){return{name:"KmInteractionNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>o})},43115:(e,t,n)=>{"use strict";function o(e){return{name:"KmPageView",environments:["browser"],data:e}}n.d(t,{v:()=>o})},16064:(e,t,n)=>{"use strict";function o(e){return{name:"KmPageViewNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{t:()=>o})},4174:(e,t,n)=>{"use strict";function o(e){return{name:"MinimumLyricsCharactersSeen",environments:["device","desktop"],data:e}}n.d(t,{N:()=>o})},64265:(e,t,n)=>{"use strict";function o(e){return{name:"PodcastAdCtaCardEvent",environments:["desktop"],data:e}}n.d(t,{createPodcastAdCtaCardEvent:()=>o})},81022:(e,t,n)=>{"use strict";function o(e){return{name:"ScrollTrackCredits",environments:["browser","desktop","device"],data:e}}n.d(t,{d:()=>o})},72703:(e,t,n)=>{"use strict";function o(e){return{name:"ScrollTrackCreditsNonAuth",environments:["browsernonauth","devicenonauth"],data:e}}n.d(t,{W:()=>o})},99583:(e,t,n)=>{"use strict";function o(e){return{name:"Share",environments:["browser","device"],data:e}}n.d(t,{G:()=>o})},30045:(e,t,n)=>{"use strict";function o(e){return{name:"WindowSize",environments:["desktop","browser"],data:e}}n.d(t,{_:()=>o})},42116:(e,t,n)=>{"use strict";function o(e){return{name:"WwwAnalytics",environments:["browser"],data:e}}n.d(t,{t:()=>o})},7572:(e,t,n)=>{"use strict";function o(e){return{name:"WwwAnalyticsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{w:()=>o})},50787:(e,t,n)=>{"use strict";function o(e){return{name:"WwwExperiments",environments:["browser"],data:e}}n.d(t,{x:()=>o})},79739:(e,t,n)=>{"use strict";function o(e){return{name:"WwwExperimentsNonAuth",environments:["browsernonauth"],data:e}}n.d(t,{k:()=>o})},37105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBase64=void 0;var o=n(47739);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 o.Base64.encode(n)}},52756:(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}}}},88010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApplicationDesktopContext=void 0,t.createApplicationDesktopContext=function(e){return function(){return{name:"context_application_desktop",data:e}}}},80393:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCacheIdContext=void 0;var o=n(37105);t.createCacheIdContext=function(e){var t=o.hexToBase64(e);return function(){return{name:"context_cache_id",data:{value:t}}}}},57298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createClientIdContext=void 0;var o=n(37105);t.createClientIdContext=function(e){var t=o.hexToBase64(e);return function(){return{name:"context_client_id",data:{value:t}}}}},77950:(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}}}}},81538:(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}}}}},26844:(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}}}},28936:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDeviceDesktopContext=void 0,t.createDeviceDesktopContext=function(e){return function(){return{name:"context_device_desktop",data:e}}}},35267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(96583);o.__exportStar(n(52756),t),o.__exportStar(n(88010),t),o.__exportStar(n(80393),t),o.__exportStar(n(57298),t),o.__exportStar(n(77950),t),o.__exportStar(n(81538),t),o.__exportStar(n(26844),t),o.__exportStar(n(28936),t),o.__exportStar(n(3755),t),o.__exportStar(n(63758),t),o.__exportStar(n(33095),t)},3755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInstallationIdContext=void 0;var o=n(37105);t.createInstallationIdContext=function(e){var t=o.hexToBase64(e);return function(){return{name:"context_installation_id",data:{value:t}}}}},63758:(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}}}},33095:(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}}}}},52381:(e,t,n)=>{"use strict";var o;n.r(t),n.d(t,{Environment:()=>o,EventSenderEvent:()=>i,createEventSender:()=>P}),function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(o||(o={}));var i,r=n(96583),a=n(72755),s=n(86338),l=n(53016);!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:o}=e,{message:i}=o;return{reason:t,contexts:(0,r.__rest)(o,["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,o=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(o,{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:o,headers:r,status:a}=n,s=this._authorize;if(200!==a||!o)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(o.error&&o.error.length){c.info("response errors",e,o.error);for(let t=0,n=o.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 o=[...e];return this._uploadBatch(o.splice(0,20)).then((e=>{if(n=[...n,...e],this._backoff)n=[...n,...o];else if(o.length)return this.upload(o,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(19713),m=n(32885);!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 g="4.0.3";var v=n(75887);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 o=0;o{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 o=t.sequence_ids.indexOf(e);t.loss_stats_num_entries_per_sequence_id[o]+=Object.keys(n).length}Object.entries(n).map((([e,n])=>{y.pushToArrIfMissing(t.event_names,e);const o=t.event_names.indexOf(e);t.loss_stats_event_name_index.push(o);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:o,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:o})}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._essLastSent||Date.now()-this._essLastSent.getTime()>3e5){const e=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(e).finally((()=>{this._essLastSent=new Date}))}const o=this.initFlush(t).then((e=>(this._ongoingUploads[t]=!1,e))).catch((()=>(this._ongoingUploads[t]=!1,this._transport.isOnline()?(T.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]=o,o}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:this._sdkVersion,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:e.data})}}validateEventData(e,t,n){return e.name?function(e){let t=e.length,n=t;for(;n--;){const o=e.charCodeAt(n);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&n--}return t}(JSON.stringify(e.data))>5e3?f.PAYLOAD_SIZE_LIMIT_EXCEEDED:t&&n&&!n()?f.UNKNOWN_OWNER:null:f.INVALID_NAME}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 o=this.validateEventData(e,n,this._ownerProvider);if(o===f.UNKNOWN_OWNER&&(T.consoleLogger.warn(`Trying to send an authenticated event without a current owner: ${e.name}`),o=null),o){const t=(0,m.t)({event_name:e.name,reject_reason:o});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${o}`))}return this.storeEvent(n,e),t?this.flush(n):Promise.resolve()}hasContext(...e){return e.every((e=>!!this._instanceContexts[e]))}}function P(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new T(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}T.consoleLogger=s.P.forTag("EventSender")},90091:(e,t,n)=>{"use strict";function o(e){return()=>({name:"context_application",data:e})}function i(e){return()=>({name:"context_application_desktop",data:e})}n.d(t,{UR:()=>o,UY:()=>i,jx:()=>s,sr:()=>l,CF:()=>c,IE:()=>u,Mb:()=>d});var r=n(6714);function a(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(0,r.encode)(n)}function s(e){const t=a(e);return()=>({name:"context_client_id",data:{value:t}})}function l(e){return()=>({name:"context_correlation_id",data:{value:e}})}function c(e){return()=>({name:"context_device_desktop",data:e})}function u(e){const t=a(e);return()=>({name:"context_installation_id",data:{value:t}})}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}})}},57920:(e,t,n)=>{"use strict";n.d(t,{_S:()=>r,UY:()=>i.UY,jx:()=>i.jx,CF:()=>i.CF,mi:()=>ie,IE:()=>i.IE});var o,i=n(90091);!function(e){e.BACKEND="BACKEND",e.BROWSER="BROWSER",e.BROWSER_NON_AUTH="BROWSER_NON_AUTH",e.DESKTOP="DESKTOP",e.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",e.DEVICE="DEVICE",e.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(o||(o={}));var r,a=n(96583),s=n(72755),l=n(86338),c=n(53016);!function(e){e.UPLOAD_SUCCEEDED="upload_succeeded",e.UPLOAD_FAILED="upload_failed",e.UPLOAD_REQUEST_FAILED="upload_request_failed"}(r||(r={}));const u=l.P.forTag("Uploader");class d extends c.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,{events:o}=e,i=t&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(i,{method:s.Method.POST,metadata:{eventSenderEventNames:o.map((e=>e.event_name))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:o}),forget:t,authorize:!t&&this._authorize}).then(this._parseUploadResponse.bind(this,e,t))}_parseUploadResponse(e,t,n){if(t)return Promise.resolve([]);const{events:o,keys:i}=e;if(!i.length)return Promise.resolve([]);const{body:s,headers:l,status:c}=n,d=this._authorize;if(200!==c||!s)return u.warn("Upload request failed",n),this.emit(r.UPLOAD_REQUEST_FAILED,{authorize:d,status:c}),this._backoff=!0,Promise.reject(i);const p=[],f=[],h=[],m=[],g=[],v=s.errors;v&&v.length&&(u.info("response errors",i,v),v.forEach((e=>{const{transient:t,index:n,reason:r}=e,s=i[n],l=function(e,t){const{event_name:n,fragments:o}=e,{message:i}=o;return{reason:t,contexts:(0,a.__rest)(o,["message"]),event_data:{name:n,data:i}}}(o[n],r);p.push(s),t?(h.push(s),m.push(l)):(f.push(s),g.push(l))})));const y=i.filter((e=>!p.includes(e)));this._backoff=!("true"!==(null==l?void 0:l.get("Spotify-Back-Off")));const _=f.length+h.length,b=y.length;_>0&&this.emit(r.UPLOAD_FAILED,{authorize:d,rejected:g,will_retry:m}),b>0&&this.emit(r.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:b});const S=[...y,...f];return Promise.resolve(S)}upload(e){const{events:t}=e;return t.length?this._uploadBatch(e):Promise.resolve([])}lastUpload(e){const{events:t}=e;return t.length?this._uploadBatch(e,!0).then((()=>[])):Promise.resolve([])}shouldBackoff(){return this._backoff}}function p(e){return new d(e)}var f,h,m,g,v=n(32885),y=n(19713);!function(e){e.JS_SDK_MULTI_ENV_TEST="JSSDKMultiEnvTest",e.JS_SDK_MULTI_ENV_TEST_NON_AUTH="JSSDKMultiEnvTestNonAuth"}(f||(f={})),function(e){e.AUTHORIZED="authorized",e.UNAUTHORIZED="unauthorized"}(h||(h={})),function(e){e.AUTH="Auth",e.NON_AUTH="NonAuth"}(m||(m={})),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"}(g||(g={}));const _="5.0.0-rc.0";function b(e){let t=e.length,n=t;for(;n--;){const o=e.charCodeAt(n);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&n--}return t}var S;!function(e){e.IMMEDIATE="flush_strategy_kind_immediate",e.SCHEDULED="flush_strategy_kind_scheduled"}(S||(S={}));var E=n(6714);class A{static pushToArrIfMissing(e,t){-1===e.indexOf(t)&&e.push(t)}static isMissingFromArray(e,t){return-1===e.indexOf(t)}}class T{constructor(e){this.installationId=e}getIdHash(e){const t=(e=>{let t=0;for(let n=0;ne+t)),L="|";var I,N,w,D;function M(e){return e.split(L)}function x(e,t){return M(e)[t]}function F(...e){return e.join(L)}!function(e){e.EVENTS="EVENT",e.SEQ_NUM="SEQ_NUM",e.GLOBAL_SEQ_NUM="GLOBAL_SEQ_NUM",e.DROPPED_EVENT="DROPPED_EVENT"}(I||(I={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.GLOBAL_SEQ_NUM=1]="GLOBAL_SEQ_NUM",e[e.SEQ_ID=2]="SEQ_ID",e[e.EVENT_NAME=3]="EVENT_NAME",e[e.EVENT_SEQ_NUM=4]="EVENT_SEQ_NUM"}(N||(N={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(w||(w={})),function(e){e[e.ITEM_GROUP_ID=0]="ITEM_GROUP_ID",e[e.SEQ_ID=1]="SEQ_ID",e[e.EVENT_NAME=2]="EVENT_NAME"}(D||(D={}));const U="STORAGE_ID",B="INSTALLATION_ID";function V(e){let t=0;for(const n of e)localStorage.hasOwnProperty(n)&&(t+=2*(localStorage[n].length+n.length));return t}var G;!function(e){e.CUSTOM_STORAGE="CS",e.IN_MEMORY_STORAGE="IMS",e.LOCAL_STORAGE="LS"}(G||(G={}));class J{constructor(e){this.currentTotalSizeForEvents=0,this.currentTotalSizeForDroppedCounters=0,this.maxStorageCapacityForEventsInBytes=0,this.maxStorageCapacityForDroppedCountersInBytes=0;const t=e.storagePrefix.replace(/\|/g,"");this.storageKeyPrefix=`${F("ES",t)}${L}`,this.storage=this.createStorage(e),this.configureMaxStorageCapacity(e),this.configureMaxStorageCapacity=this.configureMaxStorageCapacity.bind(this),this.configureMaxStorageCapacity(e),this.setTotalEventStorageSizeAtStartup=this.setTotalEventStorageSizeAtStartup.bind(this),this.setTotalEventStorageSizeAtStartup(),this.setTotalDroppedCountersStorageSizeAtStartup=this.setTotalDroppedCountersStorageSizeAtStartup.bind(this)}configureMaxStorageCapacity(e){let t,n;this.storage.maxCapacityInBytes?t=this.storage.maxCapacityInBytes:e.maxCapacityInBytes&&(t=e.maxCapacityInBytes),this.storage.maxCapacityForDroppedInPercentage?n=this.storage.maxCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage),void 0!==t&&void 0!==n?(this.maxStorageCapacityForDroppedCountersInBytes=t*n,this.maxStorageCapacityForEventsInBytes=t-this.maxStorageCapacityForDroppedCountersInBytes):(this.maxStorageCapacityForEventsInBytes=void 0,this.maxStorageCapacityForDroppedCountersInBytes=void 0)}setTotalEventStorageSizeAtStartup(){const e=this.getKeys(!0);this.currentTotalSizeForEvents=V(e)}setTotalDroppedCountersStorageSizeAtStartup(){const e=this.getKeys(!0).filter((e=>M(e)[D.ITEM_GROUP_ID]===I.DROPPED_EVENT));this.currentTotalSizeForDroppedCounters=V(e)}createStorage(e){if(e.storage)return e.storage;let t=2e6;void 0!==e.maxCapacityInBytes&&(t=e.maxCapacityInBytes);let n=.1;void 0!==e.maxStorageCapacityForDroppedInPercentage&&(n=e.maxStorageCapacityForDroppedInPercentage);const o={maxCapacityInBytes:t,adapter:new P,flushStrategy:{kind:S.SCHEDULED,interval:e.flushIntervalMs||1e4},maxCapacityForDroppedInPercentage:n},i={adapter:new O,flushStrategy:{kind:S.IMMEDIATE}};switch(k(R)){case C.OK:return o;case C.LOW_STORAGE_SPACE:return(e.requiredPersistentStorageItems||[]).every((e=>{const t=`${this.storageKeyPrefix}${e}`;return!!o.adapter.getItem(t)}))?o:i;case C.NOT_SUPPORTED:default:return i}}getItemSizeInBytes(e,t){return 2*e.length+2*t.length}canMakeEventsStorageFull(e){return void 0!==this.maxStorageCapacityForEventsInBytes&&e+this.currentTotalSizeForEvents>this.maxStorageCapacityForEventsInBytes}canMakeDroppedCountersStorageFull(e){return void 0!==this.maxStorageCapacityForDroppedCountersInBytes&&e+this.currentTotalSizeForDroppedCounters>this.maxStorageCapacityForDroppedCountersInBytes}get storageType(){return this.storageAdapter instanceof P?G.LOCAL_STORAGE:this.storageAdapter instanceof O?G.IN_MEMORY_STORAGE:G.CUSTOM_STORAGE}get storageAdapter(){return this.storage.adapter}get flushStrategy(){return this.storage.flushStrategy}getOrCreateId(e,t){const n=this.getItem(e);if(n)return n;const o=t||"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));return this.addItemInEventsStorage(e,o),o}updateItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItem(e);let o=0;n&&(o=this.getItemSizeInBytes(e,n));const i=this.getItemSizeInBytes(e,t);return!(i>o&&this.canMakeEventsStorageFull(i-o))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=i-o,!0))}return this.setItem(e,t)}updateItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItem(e);let o=0;n&&(o=this.getItemSizeInBytes(e,n));const i=this.getItemSizeInBytes(e,t);return!(i>o&&this.canMakeDroppedCountersStorageFull(i-o))&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=i-o,!0))}return this.setItem(e,t)}addItemInEventsStorage(e,t){if(void 0!==this.maxStorageCapacityForEventsInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeEventsStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForEvents+=n,!0))}return this.setItem(e,t)}addItemInDroppedCountersStorage(e,t){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const n=this.getItemSizeInBytes(e,t);return!this.canMakeDroppedCountersStorageFull(n)&&(!!this.setItem(e,t)&&(this.currentTotalSizeForDroppedCounters+=n,!0))}return this.setItem(e,t)}setItem(e,t){return this.storageAdapter.setItem(`${this.storageKeyPrefix}${e}`,t)}getItem(e){return this.storageAdapter.getItem(`${this.storageKeyPrefix}${e}`)}removeItemInEventsStorage(e){if(void 0!==this.maxStorageCapacityForEventsInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}removeItemInDroppedCountersStorage(e){if(void 0!==this.maxStorageCapacityForDroppedCountersInBytes){const t=this.getItem(e);let n=0;t&&(n=this.getItemSizeInBytes(e,t)),this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`),this.currentTotalSizeForEvents-=n}else this.storageAdapter.removeItem(`${this.storageKeyPrefix}${e}`)}getKeys(e=!1){const t=this.storageAdapter.getKeys(),n=[];for(const o of t)o.startsWith(this.storageKeyPrefix)&&(e?n.push(o):n.push(o.replace(this.storageKeyPrefix,"")));return n}clear(){return this.storageAdapter.clear()}setCounterItem(e,t,n=9){const o="string"==typeof t?t:String(t);"1"===o?this.addItemInEventsStorage(e,o.padStart(n,"0")):this.updateItemInEventsStorage(e,o.padStart(n,"0"))}}class j{constructor(e){this.storageManager=e}commitSequenceNumber(e,t){this.storageManager.setCounterItem(e,t)}getNextSequenceNumber(e){const t=this.storageManager.getItem(e);return(e=>{let t=1;return e&&(t=e+1),t})(Number(t))}generateNextSequenceNumber(e){const t=this.getNextSequenceNumber(e);return[t,()=>{this.commitSequenceNumber(e,t)}]}generateNextEventSequenceNumber(e,t){const n=F(I.SEQ_NUM,t,e);return this.generateNextSequenceNumber(n)}generateNextGlobalSequenceNumber(){const e=F(I.GLOBAL_SEQ_NUM);return this.generateNextSequenceNumber(e)}getEventsSequenceNumbers(e){const t={},n=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[w.ITEM_GROUP_ID]===I.SEQ_NUM&&n[w.SEQ_ID]===t})(t,e)));return n.forEach((e=>{const n=this.storageManager.getItem(e),o=x(e,w.EVENT_NAME);n&&(t[o]=Number(n))})),t}getSequenceNumbersPerSequenceId(e){const t={};return e.forEach((e=>{t[e]=this.getEventsSequenceNumbers(e)})),t}}var H=n(75887);class K{getInitialESSData(e){const t={};for(const[n,o]of Object.entries(e)){Object.keys(t).includes(n)||(t[n]={});for(const[e,i]of Object.entries(o))t[n][e]={sequence_number_min:i+1,sequence_number_next:i+1,storage_size:0}}return t}addEventsToESSData(e,t){const n=Object.assign({},e);for(const[o]of Object.entries(e)){t[o].forEach((e=>{const t=x(e,N.EVENT_NAME),i=Number(x(e,N.EVENT_SEQ_NUM));i!o.includes(e)));return i.length&&(n=this.addDroppedEventsCounters(n,t,i),i.forEach((e=>{n.sequence_ids.push(e),n.loss_stats_num_entries_per_sequence_id.push(0)}))),n}addDroppedEventsCounters(e,t,n){const o=Object.assign({},e);return n.forEach((n=>{var i;const r=t[n];if(r&&Object.keys(r).length){o.drop_list_num_entries_per_sequence_id.push(r?Object.keys(r).length:0);for(const[t,n]of Object.entries(r)){o.drop_list_counts_unreported.push(n.unreported),o.drop_list_counts_total.push(n.total);const r=e.event_names.indexOf(t);r>-1?o.drop_list_event_name_index.push(r):(null===(i=o.event_names)||void 0===i||i.push(t),o.drop_list_event_name_index.push((null==o?void 0:o.event_names.length)-1))}}else o.drop_list_num_entries_per_sequence_id.push(0)})),o}provideEventSenderStats(e,t,n){const o=this.getInitialESSData(e),i=this.addEventsToESSData(o,t);let r=this.addLossStatsData(i);r=this.addDroppedEventsCountersData(r,n);return(0,H.i)(r)}}class Y{constructor(e){this.storageManager=e.storageManager}updateDroppedEventCount(e,t){const n=F(I.DROPPED_EVENT,t,e),o=this.storageManager.getItem(n);if(o){const{unreported:e,total:t=e}=JSON.parse(o);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({unreported:e+1,total:t+1}))}else this.storageManager.addItemInDroppedCountersStorage(n,JSON.stringify({unreported:1,total:1}))}getDroppedEventCounters(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[D.ITEM_GROUP_ID]===I.DROPPED_EVENT&&n[D.SEQ_ID]===t})(t,e)));if(t.length>0){const e={};return t.forEach((t=>{const n=this.storageManager.getItem(t);if(n){const o=x(t,D.EVENT_NAME),{unreported:i,total:r=i}=JSON.parse(n);e[o]={unreported:i,total:r}}})),e}}getDroppedEventsCountersPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getDroppedEventCounters(e);n&&Object.keys(n).length&&(t[e]=n)})),t}updateReportedEventCounters(e){for(const[t,n]of Object.entries(e))for(const[e,o]of Object.entries(n)){const n=F(I.DROPPED_EVENT,t,e),i=this.storageManager.getItem(n);if(i){const{unreported:e,total:t=e}=JSON.parse(i);void 0!==e&&this.storageManager.updateItemInDroppedCountersStorage(n,JSON.stringify({total:t,unreported:e-o.unreported}))}}}}var W=n(20484);const z={encode:function(e){const t=(0,W.encode)(e);return(0,E.encode)(t)},decode(e){const t=(0,E.decode)(e);return(0,W.decode)(t)}},q=[28,43,34,35,35,12,43,43,16,5,23,13,24,36,10,4,41,3,12,2,36,43,39,12,10,23,44,42,22,3],X=function(e){let t="";for(let n=0;n{const n=M(e),o=M(t);return Number(n[N.GLOBAL_SEQ_NUM])-Number(o[N.GLOBAL_SEQ_NUM])};class ${constructor(e){this.storageManager=e.storageManager}getEvent(e){const t=this.storageManager.getItem(e);return t?function(e){try{const t=e.charAt(0),n=e.substring(1);let o;switch(t){case Z.XOR:o=X(n);break;default:{const{event:t}=JSON.parse(e);o=z.decode(t);break}}return JSON.parse(o)}catch(e){return null}}(t):null}getEventKey(e,t){return F(I.EVENTS,t.toString(),e.sequence_id,e.event_name,e.sequence_number.toString())}getGlobalSequenceNumberFromEventKey(e){const t=Number(x(e,N.GLOBAL_SEQ_NUM));if(Number.isNaN(t))throw new Error(`Unable to parse event key: ${e}`);return Number(t)}addEvent(e,t){const n=this.getEventKey(e,t),o=function(e){const t=JSON.stringify(e);return`${Z.XOR}${X(t)}`}(e);return this.storageManager.addItemInEventsStorage(n,o)}getEventsKeys(e){const t=this.storageManager.getKeys().filter((t=>((e,t)=>{const n=M(e);return n[N.ITEM_GROUP_ID]===I.EVENTS&&n[N.SEQ_ID]===t})(t,e)));return t}getEvents({minimumGlobalSequenceNumber:e=0,sequenceId:t,size:n=20}){const o=[],i=[],r=this.getEventsKeys(t),a=[],s=r.sort(Q).filter(e>0?t=>this.getGlobalSequenceNumberFromEventKey(t)>=e:()=>!0).slice(0,n);return s.length&&s.forEach((e=>{const t=this.getEvent(e);t?(i.push(t),o.push(e)):a.push(e)})),a.length&&this.removeEvents(a),{events:i,keys:o}}getEventsKeysPerSequenceId(e){const t={};return e.forEach((e=>{const n=this.getEventsKeys(e);t[e]=n})),t}removeEvents(e){e.forEach((e=>{this.storageManager.removeItemInEventsStorage(e)}))}}const ee=(e,t,n)=>{const o={};var i;return((e,t)=>{Object.entries(t).forEach((([t,n])=>{e[t]={},Object.entries(n).forEach((([n,o])=>{e[t][n]={sequence_number_min:o+1,sequence_number_next:o+1,storage_size:0}}))}))})(o,e),((e,t)=>{Object.keys(e).forEach((n=>{var o;(null!==(o=t[n])&&void 0!==o?o:[]).forEach((t=>{const o=x(t,N.EVENT_NAME),i=Number(x(t,N.EVENT_SEQ_NUM)),r=e[n][o];r.sequence_number_min=Math.min(i,r.sequence_number_min),r.storage_size++}))}))})(o,t),((e,t)=>{Object.entries(t).forEach((([t,n])=>{Object.entries(n).forEach((([n,o])=>{var i,r;const{total:a,unreported:s}=o,l=null!==(r=null===(i=e[t])||void 0===i?void 0:i[n])&&void 0!==r?r:{};e[t]=Object.assign(Object.assign({},e[t]),{[n]:Object.assign(Object.assign({},l),{drop_list_counts_total:a,drop_list_counts_unreported:s})})}))}))})(o,n),i=o,Object.entries(i).forEach((([e,t])=>{delete t.EventSenderStats2NonAuth,0===Object.keys(t).length&&delete i[e]})),o},te=e=>{const t=(e=>{const t={sequence_ids:[],event_names:[],loss_stats_num_entries_per_sequence_id:[],loss_stats_event_name_index:[],loss_stats_storage_sizes:[],loss_stats_sequence_number_mins:[],loss_stats_sequence_number_nexts:[],drop_list_counts_unreported:[],drop_list_counts_total:[],drop_list_event_name_index:[],drop_list_num_entries_per_sequence_id:[]};return Object.entries(e).forEach((([e,n])=>{t.sequence_ids.push(e);let o=0,i=0;Object.entries(n).forEach((([e,n])=>{let r=t.event_names.indexOf(e);-1===r&&(r=t.event_names.length,t.event_names.push(e)),"sequence_number_min"in n&&(t.loss_stats_sequence_number_mins.push(n.sequence_number_min),t.loss_stats_storage_sizes.push(n.storage_size),t.loss_stats_sequence_number_nexts.push(n.sequence_number_next),t.loss_stats_event_name_index.push(r),i++),void 0!==n.drop_list_counts_total&&void 0!==n.drop_list_counts_unreported&&(t.drop_list_counts_total.push(n.drop_list_counts_total),t.drop_list_counts_unreported.push(n.drop_list_counts_unreported),t.drop_list_event_name_index.push(r),o++)})),t.loss_stats_num_entries_per_sequence_id.push(i),t.drop_list_num_entries_per_sequence_id.push(o)})),t})(e);return(0,H.i)(t)},ne="FAKE_ESS_DB_KEY";class oe extends c.vp{constructor(e){var t;super(),this.instanceContexts={},this.uploadingInProgress=!1,this.transport=e.transport,this.ownerProvider=e.ownerProvider,this.uploaders=e.uploaders,"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("beforeunload",this.onBeforeDisconnect.bind(this)),this.useOptimizedESS2NA=null!==(t=e.useOptimizedESS2NA)&&void 0!==t&&t,this.sendESStats=this.sendESStats.bind(this),this.flush=this.flush.bind(this),this.initializeContexts(e.context),this.storageManager=new J({storage:e.storage,flushIntervalMs:e.flushIntervalMs,requiredPersistentStorageItems:[B,U],storagePrefix:e.storagePrefix,maxCapacityInBytes:e.maxStorageCapacityInBytes,maxStorageCapacityForDroppedInPercentage:e.maxStorageCapacityForDroppedInPercentage}),this.droppedEventsTracker=new Y({storageManager:this.storageManager}),this.eventsManager=new $({storageManager:this.storageManager}),this.installationId=this.setupInstallationId(),this.sequenceIdProvider=new T(this.installationId),this.sequenceNumberProvider=new j(this.storageManager),this.statsProvider=new K;const n={[r.UPLOAD_SUCCEEDED]:r.UPLOAD_SUCCEEDED,[r.UPLOAD_FAILED]:r.UPLOAD_FAILED,[r.UPLOAD_REQUEST_FAILED]:r.UPLOAD_REQUEST_FAILED};this.proxyEmitAll(this.uploaders.authorized,n),this.proxyEmitAll(this.uploaders.unauthorized,n),this.initSendingEvents(),this.storageManager.getOrCreateId(U)}initSendingEvents(){this.storageManager.flushStrategy.kind===S.SCHEDULED&&(this.sendEventsInterval=setInterval(this.flush,this.storageManager.flushStrategy.interval))}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)}}buildEvent(e,t){const n=this.sequenceIdProvider.getId(this.getStorageId(),t?this.ownerProvider():null),[o,i]=this.sequenceNumberProvider.generateNextEventSequenceNumber(e.name,n);return{event:{sequence_id:n,sequence_number:o,event_name:e.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this.getVersion(),type:"javascript"},context_time:{timestamp:Date.now()}},this.instanceContexts),{message:e.data})},commitEventSequenceNumber:i}}getSpecificContext(e){return this.instanceContexts[e]||null}setupInstallationId(){var e;const t=null===(e=this.getSpecificContext("context_correlation_id"))||void 0===e?void 0:e.value;return t?this.storageManager.getOrCreateId(B,t):this.storageManager.getOrCreateId(B)}getStorageId(){return this.storageManager.getOrCreateId(U)}onBeforeDisconnect(){this.destroy(),this.lastFlush()}lastFlush(){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(this.storageManager.flushStrategy.kind!==S.IMMEDIATE)return Promise.resolve({fired:!1,reason:`Events cannot be forcefully flushed with the current storage type (${this.storageManager.storageType})`});const e=[];if(e.push(this.sendESStats(!0)),this.ownerProvider()){const t=this.getEvents({owner:this.ownerProvider(),size:100});e.push(this.uploaders.authorized.lastUpload(t))}const t=this.getEvents({owner:null,size:100});return e.push(this.uploaders.unauthorized.lastUpload(t)),yield Promise.all(e),{fired:!0}}))}flush(){return(0,a.__awaiter)(this,void 0,void 0,(function*(){if(!this.uploadingInProgress)try{this.uploadingInProgress=!0;(void 0===this.essLastSent||Date.now()-this.essLastSent.getTime()>18e4)&&(yield this.sendESStats()),yield this.sendEvents(h.UNAUTHORIZED),this.ownerProvider()&&(yield this.sendEvents(h.AUTHORIZED))}catch(e){oe.consoleLogger.warn(e)}finally{this.uploadingInProgress=!1}}))}sendEvents(e){return(0,a.__awaiter)(this,void 0,void 0,(function*(){const t=e===h.AUTHORIZED?this.ownerProvider():null;let n,o=!1;for(;!o;){const i=this.getEvents({owner:t,minimumGlobalSequenceNumber:n});if(i.events.length){const t=i.keys[i.keys.length-1];n=this.eventsManager.getGlobalSequenceNumberFromEventKey(t)+1;const o=yield this.sendToGabito(e,i);this.eventsManager.removeEvents(o)}else o=!0}return Promise.resolve()}))}sendESStats(e=!1){const t=this.ownerProvider();let n=[this.sequenceIdProvider.getId(this.getStorageId(),null)];t&&(n=[...n,this.sequenceIdProvider.getId(this.getStorageId(),t)]);const o=this.sequenceNumberProvider.getSequenceNumbersPerSequenceId(n),i=this.eventsManager.getEventsKeysPerSequenceId(n),r=this.droppedEventsTracker.getDroppedEventsCountersPerSequenceId(n);if(this.useOptimizedESS2NA)return this.sendESS2NAWithOptimization(o,i,r,e);const a=this.statsProvider.provideEventSenderStats(o,i,r);return this.commitAndUploadESStats(a,e,r)}sendESS2NAWithOptimization(e,t,n,o){const i=ee(e,t,n),r=((e,t,n)=>!e&&!!t&&!(!n||Date.now()-n.getTime()>828e5))(o,this.previousESS2NA,this.fullESS2NALastSent),a=r?((e,t)=>{if(!t)return e;const n=Object.entries(e).reduce(((e,[n,o])=>{const i=Object.entries(o).reduce(((e,[o,i])=>{var r;const a=null===(r=t[n])||void 0===r?void 0:r[o];return JSON.stringify(a)===JSON.stringify(i)?e:Object.assign(Object.assign({},e),{[o]:i})}),{});return Object.keys(i).length?Object.assign(Object.assign({},e),{[n]:i}):e}),{});return Object.keys(n).length?n:null})(i,this.previousESS2NA):i;return a?this.commitAndUploadESStats(te(a),o,n,r,i):Promise.resolve()}commitAndUploadESStats(e,t,n,o=!1,i){const{event:r,commitEventSequenceNumber:a}=this.buildEvent(e,!1);a();return(t?this.uploaders.unauthorized.lastUpload.bind(this.uploaders.unauthorized):this.uploaders.unauthorized.upload.bind(this.uploaders.unauthorized))({events:[r],keys:[ne]}).then((e=>{e.includes(ne)&&(this.onSuccessfullySentESStats(n),this.essLastSent=new Date,this.previousESS2NA=i,o||(this.fullESS2NALastSent=new Date))}))}onSuccessfullySentESStats(e){this.droppedEventsTracker.updateReportedEventCounters(e)}sendToGabito(e,t){if(!this.transport.isOnline()&&!this.uploadingInProgress)throw Promise.resolve([]);return t.events.length?y.V.init((()=>this.uploaders[e].upload(t)),{backoffInitial:this.uploaders[e].shouldBackoff(),baseTime:1e4,curve:"static",jitter:!1,maxRetries:3,retryPredicate:()=>this.transport.isOnline()}).catch((()=>[])):Promise.resolve([])}getEvents({owner:e,size:t=20,minimumGlobalSequenceNumber:n}){const o=this.sequenceIdProvider.getId(this.getStorageId(),e);return this.eventsManager.getEvents({sequenceId:o,size:t,minimumGlobalSequenceNumber:n})}storeEvent(e,t){const{event:n,commitEventSequenceNumber:o}=this.buildEvent(t,e),[i,r]=this.sequenceNumberProvider.generateNextGlobalSequenceNumber();this.eventsManager.addEvent(n,i)?(o(),r()):this.droppedEventsTracker.updateDroppedEventCount(n.event_name,n.sequence_id)}validateEventData(e,t,n){let o=null;if(e.name){if(b(JSON.stringify(e.data))>5e3)o=g.PAYLOAD_SIZE_LIMIT_EXCEEDED;else if(t&&n&&!n())return g.UNKNOWN_OWNER}else o=g.INVALID_NAME;return o||null}send(e,t={}){const n=!e.name.endsWith(m.NON_AUTH);const o=this.validateEventData(e,n,this.ownerProvider);if(o){const t=(0,v.t)({event_name:e.name,reject_reason:o});return this.storeEvent(!1,t),Promise.reject(new TypeError(`The event is invalid and has been rejected for reason: ${o}`))}return this.storeEvent(n,e),this.storageManager.flushStrategy.kind===S.IMMEDIATE?this.flush():Promise.resolve()}hasContext(...e){return e.every((e=>!!this.instanceContexts[e]))}destroy(){this.sendEventsInterval&&clearInterval(this.sendEventsInterval)}getStorageType(){return this.storageManager.storageType}isUsingESS2NAOptimization(){return this.useOptimizedESS2NA}getVersion(){return`${_}-${this.storageManager.storageType}${this.isUsingESS2NAOptimization()?"-essopt":""}`}finalFlush(){return this.lastFlush()}}function ie(e){const t={suppressPersist:e.suppressPersist,transport:e.transport};return new oe(Object.assign(Object.assign({},e),{uploaders:{authorized:p(t),unauthorized:p(Object.assign(Object.assign({},t),{authorize:!1}))}}))}oe.consoleLogger=l.P.forTag("EventSender")},41082:(e,t,n)=>{"use strict";var o;n.d(t,{_j:()=>Ao,cI:()=>f,ih:()=>p,cJ:()=>bn,zq:()=>h,nA:()=>En,BE:()=>To}),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"}(o||(o={}));var i,r=n(72226);!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_REGISTRATION_FAILED_NON_PREMIUM="CP_REGISTRATION_FAILED_NON_PREMIUM",e.CP_REQUEST_FAILED_WITH_STATUS="CP_REQUEST_FAILED_WITH_STATUS",e.CP_NO_DEVICE_ID="CP_NO_DEVICE_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"}(i||(i={}));n(61207);var a=n(72755);var s,l=n(53016);!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"}(s||(s={}));var c=n(60220);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 m 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 m(e,t);return n.unrecoverable=!0,n}}function g(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.is_being_activated===t.is_being_activated&&e.local===t.local&&e.name===t.name&&e.type===t.type&&e.version===t.version&&e.volume===t.volume)}class v extends Error{constructor(e,t){super(t),this.unrecoverable=!1,this.code=e,this.name="PlayerQueueError"}}const y=":::";function _(e,t={ignoreMetaForTrack:!1}){var n,o,i,r,a;const s=[],l=[];let c=!1,u=!1;if(!(null==e?void 0:e.length))return{items:s,tracks:l,hasQueuedTracks:c};for(const d of e){const e="spotify:delimiter"===d.uri||/^spotify:meta:/.test(d.uri)?"meta":"track",p=`${d.uid}${y}${null!==(o=null===(n=d.metadata)||void 0===n?void 0:n.iteration)&&void 0!==o?o:""}`,f={type:e,uri:d.uri,uid:d.uid,qid:p,metadata:d.metadata||{},hidden:"true"===(null===(i=d.metadata)||void 0===i?void 0:i.hidden),queued:"true"===(null===(r=d.metadata)||void 0===r?void 0:r.is_queued),provider:d.provider,removed_reasons:d.removed,$blck_rs:d.blocked};f.queued&&(c=!0),s.push(f),"meta"===f.type?u=!0:!t.ignoreMetaForTrack&&u||"track"!==f.type||f.hidden||(null===(a=f.removed_reasons)||void 0===a?void 0:a.length)||l.push(f)}return{items:s,tracks:l,hasQueuedTracks:c}}function b(e,t={}){if(!Array.isArray(e))throw new TypeError("Items is not an array.");if(!e.length)return[];const n=[];for(let o of e){if(!o)continue;"string"==typeof o&&(o={type:"track",uri:o});const e={uri:o.uri,uid:o.uid,metadata:o.metadata||{},removed:o.removed_reasons,blocked:o.$blck_rs,provider:o.provider};(o.queued||t.queued)&&(e.metadata.is_queued="true",e.provider="queue"),(o.hidden||"meta"===o.type)&&(e.metadata.hidden="true"),n.push(e)}return n}function S(e){const[t,n]=e.split(y),o={type:"track",uid:t};return n&&(o.metadata={iteration:n}),o}class E extends l.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:o}=e.data;this._parsePlayerState(t,n,o)}_parsePlayerState(e,t,n){var o,i,r;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===(o=this._currentInternalQueue)||void 0===o?void 0:o.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=_([e.track]).items[0],s=_(e.next_tracks,t),l=_(e.prev_tracks,t);this._hasQueuedTracks=s.hasQueuedTracks;const c={uri:e.context_uri,metadata:null!==(r=e.context_metadata)&&void 0!==r?r: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 v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const o={next_tracks:e,prev_tracks:n.prev_tracks,queue_revision:n.queue_revision};return this._runner((()=>this._connectClient.setQueue(o,t)),t)}_appendQueued(e,t){var n,o;const r=this._currentPlayerState;if(!r)return Promise.reject(new v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));const a=Array.from(null!==(n=r.next_tracks)&&void 0!==n?n:[]);if(this._hasQueuedTracks){let t=!1;for(let n=0,i=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 v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));if(e.revision!==this._currentPlayerState.queue_revision&&!n.ignoreRevision)return Promise.reject(new v(i.QUEUE_OPERATION_STALE_REVISION,"Cannot perform operation; revision is stale."));const o={next_tracks:b(e.next_items),prev_tracks:b(e.previous_items),queue_revision:n.ignoreRevision?void 0:this._currentPlayerState.queue_revision};return this._runner((()=>this._connectClient.setQueue(o,t)),t)}addToQueue(e,t){if(!Array.isArray(e))return Promise.reject(new TypeError("Argument `items` must be an array."));const n=b(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,o,r;const a=this._currentPlayerState;if(!a)return Promise.reject(new v(i.QUEUE_MANAGER_NO_STATE,"Cannot perform operation; no current state."));let s;s="string"==typeof e?S(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.proxyEmit(n,"speed_changed",p.SPEED_CHANGED),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 m(i.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 m(i.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){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,o=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=>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 m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided."))),(()=>Promise.resolve(!0)),{bypassFakeState:!0})}_activateElement(){this._autoActivateElement=!1,this._streamer&&this._streamer.activateElement().catch((()=>{}))}_runOnDevice(e=undefined,t,n,o){return this._hasFakeState&&!(null==o?void 0:o.bypassFakeState)?(this._autoActivateElement&&this._activateElement(),this._claimStateAndRun(n,o)):this._isTargetIdLocal(e).then((e=>e?this._onStreamerConnect().then(t):n()))}_claimStateAndRun(e,t){return this._onStreamerConnect().then((()=>{this._hasFakeState=!1;const e={paused:!0};return(null==t?void 0:t.loggingParams)&&(e.loggingParams=t.loggingParams),Promise.all([this._controller.transfer(u,e),new Promise(((e,t)=>{this._streamer?this._streamer.once("track_loaded",e):t(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided."))}))])})).then((()=>e()))}_generateLocalDeviceInfo(e=!1){const t=this._client,n=this._streamer;let o=Promise.resolve(!1),i=Promise.resolve(-1);return this._localPlayerEnabled&&(e?o=Promise.resolve(!0):n&&(o=n.getCurrentState().then((e=>!!e))),n&&(i=n.getVolume())),Promise.all([t.getClientDescriptor(),t.getSDKId(),o,i]).then((([e,t,n,o])=>{var i;const r={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:o,capabilities:{supports_lossless_audio:!1},playback_features:r,has_inactive_player_state:this._hasFakeState}}))}_movePosition(e,t){return this.getCurrentState().then((n=>{if(!n||isNaN(n.position))return Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Seeking not allowed with invalid track."));const o=e,r=Math.min(n.duration,Math.max(0,n.position+o));return this.seek(r,t)}))}_prepareSkipTrack(e){let t;return t="string"==typeof e?S(e):e,t}_cycleRepeatMode(e){return this.getCurrentState().then((t=>{if(!t)return Promise.reject(new m(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));let n=null;const o=t.disallows;switch(t.repeat_mode){case h.OFF:if(o.toggling_repeat_context){if(o.toggling_repeat_track)return Promise.resolve(!1);n=h.TRACK}else n=h.CONTEXT;break;case h.CONTEXT:n=o.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))}pause(e,t){return this._runOnDevice(e,(()=>this._streamer.pause()),this._controller.pause.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}resume(e,t){return this._runOnDevice(e,(()=>this._streamer.resume()),this._controller.resume.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}togglePlay(e,t){return this._runOnDevice(e,(()=>this._streamer.togglePlay()),this._controller.togglePlay.bind(this._controller,e,t),{loggingParams:null==t?void 0:t.loggingParams})}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 o=()=>this._streamer.nextTrack(s.FORWARD_BUTTON);const i=this._controller.nextTrack.bind(this._controller,e,n);return(null==t?void 0:t.track)&&(o=i,n.track=this._prepareSkipTrack(t.track)),(null==t?void 0:t.loggingParams)&&(n.loggingParams=t.loggingParams),this._runOnDevice(e,o,i,{loggingParams:null==t?void 0:t.loggingParams})}smartPreviousTrack(e,t){return this.getCurrentState().then((n=>{if(!n)return Promise.reject(new m(i.HARMONY_NO_TRACKS_LOADED,"No current state."));return(n.disallows||{}).seeking||n.position<3e3&&n.track_window&&n.track_window.previous_tracks&&n.track_window.previous_tracks.length>0?this.previousTrack(e,t):this.seek(0,e)}))}previousTrack(e,t){const n={};let o=()=>this._streamer.previousTrack(s.FORWARD_BUTTON);const i=this._controller.previousTrack.bind(this._controller,e,n);return(null==t?void 0:t.track)&&(o=i,n.track=this._prepareSkipTrack(t.track)),(null==t?void 0:t.loggingParams)&&(n.loggingParams=t.loggingParams),this._runOnDevice(e,o,i,{loggingParams:null==t?void 0:t.loggingParams})}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),{bypassFakeState:!0})}getVideoProfiles(){if(!this._streamer)throw new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");return this._streamer.getVideoVariants()}setPreferredBitrate(e){if(!this._streamer)throw new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.");return this._streamer.setPreferredBitrate(e)}getDevices(){return this._controller.getDevices().then(this._parseDeviceList).then((e=>(this._lastDeviceList=e,e)))}setQueue(e,t,n){console.warn("Harmony.setQueue is deprecated; migrate to new PlayerQueue API");const o=this._controller.setQueue.bind(this._controller,e,t,n);return this._runOnDevice(n,o,o)}addToQueue(e,t){const n=e.map((e=>"string"==typeof e?e:e.uri));return this._controller.getQueueManager().addToQueue(n,t)}setShuffle(e,t,n){const o=this._controller.setShuffle.bind(this._controller,e,t,n);return this._runOnDevice(t,o,o,{loggingParams:null==n?void 0:n.loggingParams})}toggleShuffle(e,t){const n=this._controller.toggleShuffle.bind(this._controller,e,t);return this._runOnDevice(e,n,n,{loggingParams:null==t?void 0:t.loggingParams})}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,o=this._controller.transfer.bind(this._controller,n,t);return this._autoActivateElement&&this._activateElement(),this._runOnDevice(n,o,o,{bypassFakeState:!0,loggingParams:null==t?void 0:t.loggingParams})}logout(e){return this._controller.logout(e||u)}activateElement(){return this._streamer?this._streamer.activateElement():Promise.reject(new m(i.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 m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot hide subtitles on remote player."))}showSubtitles(){return this._localPlayback?this._streamer?this._streamer.showSubtitles():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."))}areSubtitlesShown(){return this._localPlayback?this._streamer?this._streamer.areSubtitlesShown():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot show subtitles on remote player."))}getSubtitleLanguages(){return this._localPlayback?this._streamer?this._streamer.getSubtitleLanguages():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle languages on remote player."))}getActiveSubtitleLanguage(){return this._localPlayback?this._streamer?this._streamer.getActiveSubtitleLanguage():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot get subtitle language on remote player."))}setSubtitleLanguage(e){return this._localPlayback?this._streamer?this._streamer.setSubtitleLanguage(e):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot set subtitle languages on remote player."))}deactivateSubtitleEvents(){return this._localPlayback?this._streamer?this._streamer.activateSubtitleEvents():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot deactivate subtitle events on remote player."))}activateSubtitleEvents(){return this._localPlayback?this._streamer?this._streamer.activateSubtitleEvents():Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot activate subtitle events on remote player."))}setBackgrounded(e){return this._localPlayback?this._streamer?this._streamer.setBackgrounded(e):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot set background mode on remote player."))}setVideoResolution(e){return this._localPlayback?this._streamer?this._streamer.setVideoResolution(e):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"No streamer provided.")):Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot set preferred video resolution on remote player."))}getMediaConfig(){return this._streamer?this._streamer.getMediaConfig():Promise.reject(new m(i.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot activate element; local player is disabled."))}setPlaybackSpeed(e){const t=this._streamer;return t?this.getCurrentState().then((n=>{var o;return"episode"!==(null===(o=null==n?void 0:n.track_window.current_track)||void 0===o?void 0:o.type)?Promise.reject(new m(i.HARMONY_OPERATION_FORBIDDEN,"Cannot change playback speed; content type is not an episode.")):t.setPlaybackSpeed(e)})):Promise.reject(new m(i.HARMONY_LOCAL_PLAYER_DISABLED,"Cannot change speed; local player is disabled."))}}var T=n(77321),P=n(30212),O=n(42450);const C="spotify:user:attributes:mutated";class k extends l.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 k(e)}_init(){this.register()}_handleUserUpdate(){clearTimeout(this._debounce),this._debounce=setTimeout((()=>{this._transport.forceTokenRefresh().catch((function(){})),this.getCurrentState(!0).then((e=>{this.emit(O.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!==P.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)}}const R=/(edge)[\s\/:]([\w\d\.]+)/,L=new RegExp("(opera|ie|firefox|chrome|trident|crios|version)[\\s/:]([\\w\\d\\.]+)?.*?(safari|(?:rv[\\s\\/:]|version[\\s\\/:])([\\w\\d\\.]+)|$)"),I={};function N(e){if(!e)return e;const t=function(e,t){var n,o,i;const r=e.toLowerCase();let a=t?t.toLowerCase():"";const s=`${r}:${a}`,l=I[s];if(l)return l;const c=r.match(R),u=r.match(L)||[null,"unknown",0],d=c||u;"trident"===d[1]?(d[1]="ie",d[4]&&(d[2]=d[4])):"crios"===d[1]&&(d[1]="chrome"),a=r.match(/ip(?:ad|od|hone)/)?"ios":null!==(n=(r.match(/(?:webos|android)/)||r.match(/mac|win|linux|cros/)||[])[0])&&void 0!==n?n:"other","win"===a&&(a="windows");const p="version"===d[1]?d[3]:d[1],f="opera"===d[1]&&d[4]?d[4]:d[2],h={name:null!==(o=null==p?void 0:p.toString())&&void 0!==o?o:"unknown",version:null!==(i=null==f?void 0:f.toString())&&void 0!==i?i:"unknown",platform:a};return I[s]=h,h}(navigator.userAgent,navigator.platform);return e.replace(/\{\{([^}]+?)\}\}/g,(function(e,n){return o=n,(i=t)&&i.hasOwnProperty(o)?t[n]:"";var o,i}))}var w,D;!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"}(w||(w={})),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"}(D||(D={}));const M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",x={},F={};function U(e,t,n){let o=0;for(let i=0;i{const e=[];for(let t=0;t<256;++t)e[t]=255;for(let t=0;twindow.btoa(e),Y=e=>window.atob(e));function W(){const e=new Uint8Array(16);crypto.getRandomValues(e);return j(e.join(""),40).slice(0,40)}function z(){const e=new Array(27);let t=e.length;for(;t--;)e[t]=Math.floor(8*Math.random());return j(e.join(""),40)}const q="undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues?W:z,X="_spharmony_device_id";const Z={get:function(e,t=!1){if(e&&"string"==typeof e)return e;if(t)return q();let n=localStorage.getItem(X);return n||(n=q(),localStorage.setItem(X,n)),n},generate:q,generateWithCrypto:W,generateWithRandom:z};class Q extends l.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 Q({id:Z.get(e.id,e.randomizeId),model:e.model||N("harmony-{{name}}.{{version}}-{{platform}}").toLowerCase(),name:e.nameTemplate?N(e.nameTemplate):e.name||(t=N("Spotify ({{name}}/{{platform}})"),t.replace(/\b[a-z]/g,(e=>e.toUpperCase()))),type:e.type||D.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 $={tagged:"4.27.1-af7f4f3",version:"4.27.1",revision:"af7f4f3"};var ee=n(6768);class te{constructor(e){this._melodyLogger=new ee.Hx(e)}logClientEvent(e,t){return e?this._melodyLogger.sendLog("/v1/msg/batch",{type:"client_event",message:{source:e.source||ee.eV.UNKNOWN,context:e.context||ee.eV.UNKNOWN,event:e.event||ee.eV.UNKNOWN,event_version:e.event_version||ee.eV.EMPTY,test_version:e.test_version||ee.eV.EMPTY,source_version:e.source_version||ee.eV.UNKNOWN,source_vendor:e.source_vendor||ee.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||[],o=t||[];if(!n.length&&!o.length)return Promise.resolve(!0);if(!Array.isArray(n)||!Array.isArray(o))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 o)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:o})}logJSSDKError(e,t){return this._melodyLogger.sendLog("/v1/msg/batch",{type:"jssdk_error",message:{source:e.source||ee.eV.UNKNOWN,source_version:e.source_version||ee.eV.UNKNOWN,type:e.type||ee.eV.UNKNOWN,message:e.message||ee.eV.EMPTY,stack:JSON.stringify(e.stack||ee.eV.EMPTY),json_data:"json"===t?e.json_data||"{}":JSON.stringify(e.json_data||{}),json_data_version:e.json_data_version||ee.eV.EMPTY_VERSION}},{batch:!0})}logJSSDKContentRequest(e){var t;return this._melodyLogger.sendLog("/v1/msg/jssdk_content_request",{source:e.source||ee.eV.UNKNOWN,type:e.type||ee.eV.UNKNOWN,http_status:null!==(t=e.http_status)&&void 0!==t?t:void 0,ms_request_duration:e.ms_request_duration||ee.eV.EMPTY,n_retries:e.n_retries||ee.eV.ZERO,playback_id:e.playback_id||ee.eV.EMPTY})}}const ne=T.P.forTag("harmonyclient"),oe=/^[a-zA-Z0-9_%:-]{1,40}$/;class ie extends l.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 te({transport:this._transport.toPublic(),sdkId:this.getSDKId(),platform:this._platformIdentifier.promise,clientVersion:this._platformVersion.promise}),this._productStateObserver=k.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 ie(e)}static of(e){return e._client}_createDeviceDescriptor(e,t={}){var n,o;if((null==t?void 0:t.id)&&!oe.test(t.id))throw m.fatal(i.HARMONY_INVALID_DESCRIPTOR_ID,"Invalid device id.");const r=t.capabilities||{},a={change_volume:null===(n=r.change_volume)||void 0===n||n,endsong_snooping:r.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===(o=r.audio_podcasts)||void 0===o||o,video_playback:r.video_playback,lossless_playback:r.lossless_playback,volume_steps:void 0!==r.volume_steps&&r.volume_steps>=0&&r.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:$.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=>ne.warn(`${e.type} Logging Error:`,t)))}getVersionDescriptor(){return Object.assign({},$)}getSDKId(){return`harmony:${$.tagged}`}getUntaggedSDKId(){return`harmony:${$.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 m(i.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 m(i.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(N(e))}setCapability(e,t){return this._deviceDescriptor.then((n=>n.setCapability(e,t)))}notifyError(e,t){this._onError(e,{error:t})}}var re,ae,se,le,ce,ue=n(26336),de=n(46506),pe=n(46712);!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_STALLED="stalled",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.FRAGMENT_APPENDED="fragment_appended",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"}(re||(re={})),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"}(ae||(ae={})),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"}(se||(se={})),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"}(le||(le={})),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"}(ce||(ce={}));class fe 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 fe(e,t);return n.unrecoverable=!0,n}}class he extends Error{constructor(e=o.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}var me=n(39222);class ge extends Error{constructor(e=o.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=o.EME_ERROR_UNKNOWN,t){const n=new ge(e,t);return n.unrecoverable=!0,n}}class ve extends Error{constructor(e,t){super(t),this.name="CappingError",this.message=t,this.code=e}}function ye(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 _e extends l.B{constructor(e){super(re.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class be extends l.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,me.$)(),this._lastGenerateDeferred=(0,me.$)(),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(re.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(re.MS_KEY_ERROR,this._onKeyError),e.addEventListener(re.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(re.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(re.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(re.MS_KEY_MESSAGE,this._onKeyMessage))}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _e(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(re.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(re.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 Se{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(re.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(re.MEDIA_LOADEDMETADATA,n),e.addEventListener(re.MS_NEEDKEY,ye),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(re.MS_NEEDKEY,ye),e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new ge(o.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new be(this._nativeMediaKeys)}}function Ee(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 Ae{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new ge(o.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:i.label};let r;if(i.audioCapabilities&&i.audioCapabilities.length&&e.audioCapabilities){r=!1;for(const n of i.audioCapabilities){const i=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.audioCapabilities.push(n),r=!0)}}if(i.videoCapabilities&&i.videoCapabilities.length&&e.videoCapabilities){r=!1;for(const t of i.videoCapabilities){const i=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.videoCapabilities.push(t),r=!0)}}if(r)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new Se(this.keySystem))}))}}const Te=de.P.forTag("eme_polyfill.v0_1b");class Pe extends l.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(e)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null)}updateComplete(){this._lastUpdateDeferred&&(this._lastUpdateDeferred.resolve(!0),this._lastUpdateDeferred=null),this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new ge(o.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(re.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,me.$)();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){Te.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class Oe{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+re.V0_1B_NEEDKEY,ye);const n=e.addEventListener.bind(e);n(t+re.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+re.V0_1B_KEY_ERROR,this._onKeyError),n(t+re.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+re.V0_1B_NEEDKEY,ye);const n=e.removeEventListener.bind(e);n(t+re.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+re.V0_1B_KEY_ERROR,this._onKeyError),n(t+re.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):Te.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():Te.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):Te.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new ge(o.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new Pe(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function Ce(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 ke{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new ge(o.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem,i=document.createElement("video");for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:r.label};let a=!1;if(r.audioCapabilities&&r.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of r.audioCapabilities){const r=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];r&&i.canPlayType(r,o)&&(e.audioCapabilities.push(n),a=!0)}}if(r.videoCapabilities&&r.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of r.videoCapabilities){const r=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];r&&i.canPlayType(r,o)&&(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 Oe(this.keySystem,this._prefix))}))}}function Re(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((o=>{o(new ke(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=Ce}const Le=de.P.forTag("eme_polyfill.safari");class Ie extends l.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,me.$)(),this._lastUpdateResolver=(0,me.$)(),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(re.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(re.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(re.WEBKIT_KEY_ERROR,this._onKeyError)):Le.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(re.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(re.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(re.WEBKIT_KEY_ERROR,this._onKeyError)):Le.warn("Tried to detach with no WebKitMediaKeySession")}_onKeyMessage(e){e.message&&e.message.buffer&&(this.emitEvent(new _e(e.message.buffer)),this._lastGenerateResolver&&(this._lastGenerateResolver.resolve(!0),this._lastGenerateResolver=null))}_onKeyAdded(){this._lastUpdateResolver&&(this._lastUpdateResolver.resolve(!0),this._lastUpdateResolver=null),this.emit(re.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new ge(o.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 ge(o.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),o=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,me.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return Le.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 Ne{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(re.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(re.MEDIA_LOADEDMETADATA,n),e.addEventListener(re.WEBKIT_NEEDKEY,ye),t()}))}detach(e){e.removeEventListener(re.WEBKIT_NEEDKEY,ye),this._lastBoundSetter&&(e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new ge(o.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new Ie(this._nativeMediaKeys,this._serverCertificate)}}class we{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new ge(o.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(o.audioCapabilities)for(const i of o.audioCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.audioCapabilities.push(i),n=!0)}if(o.videoCapabilities)for(const i of o.videoCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.videoCapabilities.push(i),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new Ne(this.keySystem))}))}}function De(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 Me=de.P.forTag("eme_polyfills.tester");function xe(){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)?(Me.log("Using native EME implementation."),"native"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.webkitGenerateKeyRequest)?(Me.log('Detected "webkit" Prefixed EME v0.1b. Polyfilling.'),Re("webkit"),"v0.1b-webkit"):"undefined"!=typeof HTMLMediaElement&&(null===HTMLMediaElement||void 0===HTMLMediaElement?void 0:HTMLMediaElement.prototype.generateKeyRequest)?(Me.log("Detected Unprefixed EME v0.1b. Polyfilling."),Re(),"v0.1b"):"undefined"!=typeof MSMediaKeys?(Me.log("Detected MS IE EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new Ae(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=Ee}(),"ms-ie"):"function"==typeof WebKitMediaKeys?(Me.log("Detected Safari EME. Polyfilling."),function(){navigator.requestMediaKeySystemAccess=function(e,t){return new Promise((n=>{n(new we(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=De}(),"safari"):(Me.warn("Detected no EME APIs."),null)}const Fe={[ae.WIDEVINE]:{commonName:"widevine",licenseServer:"https://@webgate/widevine-license",withCertificate:!0,pssh_field:{audio:"pssh_widevine",video:"encryption_data"}},[ae.PLAYREADY]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[ae.PLAYREADY_HARDWARE]:{commonName:"playready",licenseServer:"https://@webgate/playready-license",withCertificate:!1,pssh_field:{audio:"pssh_playready",video:"encryption_data"}},[ae.FAIRPLAY]:{commonName:"fairplay",licenseServer:"https://@webgate/fairplay-license",withCertificate:!0,pssh_field:{audio:"pssh_fairplay",video:"asset_id"}},[ae.INVALID_SPOTIFY_KEY]:{commonName:"spotify-invalid",licenseServer:"https://@webgate",withCertificate:!1,pssh_field:{audio:"pssh_invalid",video:"encryption_data"}}},Ue=[{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 Be(e,t){var n,o;for(const i of e){const e={audioCapabilities:[],videoCapabilities:[]};let r,a=!1;if(null===(n=i.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of i.audioCapabilities)r=n.contentType,r&&t(r)&&(e.audioCapabilities.push(n),a=!0)}if(null===(o=i.videoCapabilities)||void 0===o?void 0:o.length){a=!1;for(const n of i.videoCapabilities)r=n.contentType,r&&t(r)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const Ve=/([^;]+)(?:;\s?codecs="(.*)")?/;function Ge(e){var t;const[,n="unknown",o="unknown"]=null!==(t=e.match(Ve))&&void 0!==t?t:[];return{mimeType:n,codec:o,contentType:e}}const Je=/([^;]+)(?:;\s?codecs="(.*)")?/,je=de.P.forTag("playback.eme_manager"),He={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function Ke(e,t){var n;const o=[],i=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)i.test(null!==(n=t.contentType)&&void 0!==n?n:"")||o.push(t);return o.length?o:null}function Ye(e,{audio:t,video:n}){var o,i,r,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===(o=e.audioCapabilities)||void 0===o?void 0:o.length)&&(s=null!==(i=Ke(e.audioCapabilities,t))&&void 0!==i?i:void 0,!s)||(null==n?void 0:n.length)&&(null===(r=e.videoCapabilities)||void 0===r?void 0:r.length)&&(l=null!==(a=Ke(e.videoCapabilities,n))&&void 0!==a?a:void 0,!l)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:l})}class We extends l.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,me.$)(),this._configuration=(0,me.$)(),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 o=e[n];o&&He.hasOwnProperty(o)&&t.push(He[o])}}return new RegExp(`(${t.join("|")})$`)}(e.disallowRobustnessValues||[]),this._disallowCodecs=e.disallowCodecs,this._preferredKeySystems=e.preferredKeySystems||[ae.WIDEVINE,ae.PLAYREADY,ae.PLAYREADY_HARDWARE,ae.FAIRPLAY]}static create(e){return new Promise((t=>{const n=xe();if(!n)throw ge.fatal(o.EME_API_NOT_SUPPORTED,"Platform does not support navigator.requestMediaKeySystemAccess");t(new We(Object.assign(Object.assign({},e),{emeImpl:n})).init())}))}_prepareConfiguration(e){const t=e.getConfiguration();je.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=Fe[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const o of e){if(!(null==o?void 0:o.contentType))continue;const[,e,i]=null!==(t=o.contentType.match(Je))&&void 0!==t?t:[];e&&n.push({contentType:o.contentType,mimeType:e,codec:null!=i?i:""})}return n}_appendProbableMediaCapabilities(e,t){const n=Be(this._configs,(t=>(-1===t.indexOf("webm")||e!==ae.PLAYREADY&&e!==ae.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=>(je.warn("Error from setting server certificate",e),this)))}_cacheServerCertificate(e){let t="";switch(e){case ae.FAIRPLAY:t="fairplay";break;case ae.WIDEVINE:t="widevine";break;default:return Promise.resolve(this)}return this._requestServerCertificate(`${this._unauthServerCertificateBase}/${t}-license`,!1).then((()=>this),(e=>(je.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 o=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(o){const e=o.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 r=new Uint16Array(e),a=String.fromCharCode.apply(null,r);if(-1===a.indexOf("PlayReadyKeyMessage"))return je.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 ge(o.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header / pair in key message")}catch(e){this.emit(re.EME_LICENSE_REQUEST_ERROR,{signal:t,error:e}),i=null}else this.emit(re.EME_LICENSE_REQUEST_ERROR,{signal:t,error:new ge(o.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 o="messageType"in t?t.messageType:void 0;if(je.info("Got EME message event with type",o),n&&e.keySystem===ae.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.signal)),!n)return void je.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void je.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let i=e.licenseServer;e.keySystem===ae.FAIRPLAY&&(i=`${i}${-1!==i.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(i,{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=>{e.licenseServer&&(t.licenseServer=e.licenseServer),this.emit(re.EME_LICENSE_REQUEST_ERROR,{signal:e.signal,error:t})};let i,r;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);r=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(re.EME_LICENSE_REQUEST_CAPPED,{signal:e.signal,error:new ve(o.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===r?(i=ge.fatal(o.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),i.status=t.status,i.shouldRefreshEndpoint=!0,n(i)):(i=new ge(o.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${r||"unknown"})`),i.status=t.status,i.shouldRefreshEndpoint=400===t.status||403===t.status,n(i))}else{if(!t.body)return i=new ge(o.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 ge(o.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),je.info("KeySession updated.")}catch(e){const{message:t}=e;n(new ge(o.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,o=t.length;n{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(ge.fatal(o.EME_MEDIA_KEYS_NOT_SUPPORTED,"Cannot create MediaKeys from KeySystemAccess"));e.keySystem===ae.FAIRPLAY&&t.setServerCertificate(new ArrayBuffer(0));try{if(!t.createSession())throw new Error("")}catch(e){const{message:t}=e;return Promise.reject(ge.fatal(o.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(je.error(e.name),Promise.reject(ge.fatal(o.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(re.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(re.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const o=Promise.resolve(t.close()).catch((e=>{je.warn("Failed to close KeySession",e)}));e.push(o),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,je.info("Closed KeySession")}catch(e){je.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=this._keySystemDeferred,t={},n=[],i=[];for(let e of Ue)if(!e.label||!this._configFilter.test(e.label)){if(this._disallowCodecs){const t=Ye(e,this._disallowCodecs);if(!t)continue;e=t}i.push(e)}this._configs=i;for(const e in ae){if(!Object.prototype.hasOwnProperty.call(ae,e))continue;const o=e;n.push(navigator.requestMediaKeySystemAccess(ae[o],i).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 ge(o.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||o.EME_NO_SUPPORTED_KEYSYSTEM,i=t.message||"No supported keysystem";return e.reject(ge.fatal(n,i)),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 ge(o.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)=>{je.info("Creating KeySession",e.keySystem);const i=e.mediaKeys.createSession(),r={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,signal:e.signal,timeMap:r});i.addEventListener(re.KEY_SESSION_MESSAGE,s);const l=()=>{je.info("KeyStatus change"),r.update.end=Date.now(),t({elapsed:{generate:Math.max(r.generate.end-r.generate.start,0),request:Math.max(r.request.end-r.request.start,0),update:Math.max(r.update.end-r.update.start,0)}})};return i.addEventListener(re.KEY_SESSION_STATUSES_CHANGE,l),this._saveSession({keySession:i,onMessageListener:s,onKeyStatusChangeListener:l}),je.info("Generating KeySession request",e.keySystem),r.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=o.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=o.EME_INVALID_STATE_ERROR;break;default:t=o.EME_UNKNOWN_ERROR}n(new ge(t,e.message||"Unknown error message."))}))}))}}class ze extends Error{constructor(e,t,n,o={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=o,this.name="FragmentError"}}var qe=n(68035);class Xe{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=Fe[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,this._audioGainDb=e.audioGain}_parsePSSHBox(e){const t=qe.D.decode(e),n=new Uint8Array(t.length);for(let e=0,o=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),o=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?`${o}\n${i}`:o}\n${n}\n#EXT-X-ENDLIST`}function $e(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function et(e){const t=new Blob([e],{type:Ze});return URL.createObjectURL(t)}function tt(e){return et(Qe(e))}function nt(e){return $e(Qe(e))}const ot=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/,it="4d";function rt(e,t){const n=e.toLowerCase().match(ot),o=t.toLowerCase().match(ot);if(!n||!o)return!1;const[,i,r,a]=n,[,s,l,c]=o;return i===s||r===it&&l===it&&parseInt(a,16)>=parseInt(c,16)}function at(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 st(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function lt(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,resolution:e.video_resolution}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function ct(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function ut(e){const{codec:t,formats:n,profiles:o,encryptionIndex:i,disallowProfile:r,preferredKeySystem:a,preferredVideoResolution:s,allowMixedAVC1Codecs:l}=e;for(const e of n){const n=[];let c="spotify/unknown-mimetype",u="unknown-codec";for(const s of o){const o=ct(s);!(t in s)||st(s,i)||a===ae.FAIRPLAY&&"ts"!==s.file_type||lt(s,r)||(a!==ae.FAIRPLAY||"ts"!==s.file_type?"unknown-codec"!==u||s.mime_type!==e.mimeType||o!==e.codec&&!rt(e.codec,o)?s.mime_type===c&&(o===u||l&&rt(u,o))&&(n.push(s),s.__effective_codec=u):(c=e.mimeType,u=l?e.codec:o,n.push(s),s.__effective_codec=e.codec):n.push(s))}if(n.length)return at(n,s)}return[]}const dt=de.P.forTag("playback.video_content");function pt(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 ft={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 ht extends Xe{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===ae.FAIRPLAY&&this._audioFormats.unshift({mimeType:"audio/mp2t",codec:"mp4a.40.2"}),this._parseFragmentResponse=this._parseFragmentResponse.bind(this)}static create(e){return new ht(e)}_isQualityMatched(e,t,n){var o,i,r,a;if(this._videoResolution){const t=null!==(o=this._videoResolution.max)&&void 0!==o?o:9007199254740991,a=null!==(i=this._videoResolution.min)&&void 0!==i?i:0;if(n){const n=null!==(r=this._videoResolution.start)&&void 0!==r?r: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 o=this._videoProfiles,i=this._videoProfile;let r=null,a=o.length;if(a){for(;a--;){const t=o[a];if(t&&this._isQualityMatched(t,n,!!e)){r=t;break}}r||(r=o[0]),this._videoProfile=r,(null==i?void 0:i.id)!==r.id&&(dt.log(`Video profile changed. ID ${r.id} (${r.video_codec}), Bitrate ${r.video_bitrate}, ${r.video_width}x${r.video_height}`),null===(t=this._mediator)||void 0===t||t.emit(ce.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:r.mime_type,codec:r.video_codec,bitrate:r.video_bitrate,height:r.video_height,width:r.video_width,resolution:r.video_resolution}}))}}_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,o){return this._transport.request(e,Object.assign(Object.assign({},ft),{metadata:{timeStart:Date.now(),fragment:t,profile:n,loggingURL:o}})).then(this._parseFragmentResponse)}_fetchInitSegmentBuffers(e,t){const n=this._initFragment;if(!n)return Promise.reject(new he(o.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let i;try{i=this._constructFragmentURL(n,e,t)}catch(e){return Promise.reject(e)}const r=this._initSegments;let a=Promise.resolve(null);if(e){const t=r[e.id];(null==t?void 0:t.buffer.byteLength)?a=Promise.resolve(t):(null==i?void 0:i.audio)&&(a=this._fetchBufferData(i.audio,n,e,i.audioLogging).then((t=>(r[e.id]=t,t))))}let s=Promise.resolve(null);if(t){const e=r[t.id];(null==e?void 0:e.buffer.byteLength)?s=Promise.resolve(e):(null==i?void 0:i.video)&&(s=this._fetchBufferData(i.video,n,t,i.videoLogging).then((e=>(r[t.id]=e,e))))}return Promise.all([a,s]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferForFragment(e,t,n){let o;try{o=this._constructFragmentURL(e,t,n)}catch(e){return Promise.reject(e)}return Promise.all([this._fetchInitSegmentBuffers(t,n),!e.init&&o.audio?this._fetchBufferData(o.audio,e,t,o.audioLogging):null,!e.init&&o.video?this._fetchBufferData(o.video,e,n,o.videoLogging):null]).then((([t,n,o])=>{var i,r;let a;return e.init?a={audio:null!==(i=t.audio)&&void 0!==i?i:void 0,video:null!==(r=t.video)&&void 0!==r?r:void 0}:(a={audio:null!=n?n:void 0,video:null!=o?o: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,i,r;const{fragment:a,profile:s,timeStart:l,loggingURL:c}=e.metadata,u=pt(s),d=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(s),p="video_resolution"in s?s.video_resolution:void 0,f=`${a.timeStart}-${a.timeEnd}`,h="video_resolution"in s?"video":"audio";switch(e.status){case 0:{const e=new ze(o.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:f,mimetype:u,resolution:p,bitrate:d});return null===(t=this._mediator)||void 0===t||t.emit(ce.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:c,start_time:l,init:a.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new ze(o.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:f,mimetype:u,resolution:p,bitrate:d});return null===(n=this._mediator)||void 0===n||n.emit(ce.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:c,start_time:l,init:a.init,error:t}),Promise.reject(t)}const r=t.byteLength;this._abrManager.sample(r,Date.now()-l),this._updateVariants();const m=8e3*r/e.timing.completed;return null===(i=this._mediator)||void 0===i||i.emit(ce.FRAGMENT_FETCHED,{media_type:"video",segment_type:h,url:c,init:a.init,byte_length:r,start_time:l,end_time:Date.now(),resolution:p,bandwidth:m}),Promise.resolve({profileId:`${this._fileId}-${s.id}`,bufferURL:c,byteStart:0,byteEnd:r-1,buffer:t,mimetype:u,resolution:p,bitrate:d,bandwidth:m})}}const m=new ze(o.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:f,mimetype:u,resolution:p,bitrate:d});return null===(r=this._mediator)||void 0===r||r.emit(ce.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:h,url:c,init:a.init,start_time:l,error:m}),Promise.reject(m)}_getHLSURLForProfile(e){const t=this._duration,n=this._segmentLength,o=this._segmentTemplate,i=[];for(let r=0;rt?t-r:n,s=o.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",r.toString(10)).replace("{{file_type}}",e.file_type);i.push({duration:a,url:`${this._baseURL}${s}`})}const r=("undefined"==typeof MediaSource?tt:nt)({assetID:this._assetId,targetDuration:n,segments:i});return this._hlsURLs.push(r),r}_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=i.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferForFragment(e,null!=o?o:void 0,null!=i?i:void 0)}clearCachedBuffers(){this._initFragment&&(this._initSegments={}),this._fragments.forEach((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 i,r,a;let s;e.resolveLatency=0,e.manifestLatency=Date.now()-t;const l=n.contents[0];if(!l)return s=new he(o.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),s.track=this.toLogJSON(),Promise.reject(s);this._resolvedURLs=n.base_urls.slice();const[c,...u]=n.base_urls;let d;if(c&&(this._baseURL=c,this._fallbackURLs=u),this._resolvedURL=this._baseURL,this._initTemplate=n.initialization_template,this._segmentTemplate=n.segment_template,this._segmentLength=l.segment_length,null===(i=l.encryption_infos)||void 0===i?void 0:i.length){const e=l.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let o=0,i=e.length;o!!e))}getAudioProfile(){return this._audioProfile}getVideoProfile(){return this._videoProfile}getVideoProfiles(){return this._videoProfiles}getHLSURL(){if(!this._resolvedURL)throw new he(o.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")}`,i=("undefined"==typeof MediaSource?et:$e)(n);return this._hlsURLs.push(i),i}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 mt;!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"}(mt||(mt={}));const gt={[mt.MP3_256]:"audio/mp3",[mt.MP3_320]:"audio/mp3",[mt.MP3_160]:"audio/mp3",[mt.MP3_96]:"audio/mp3",[mt.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[mt.MP4_FLAC]:'audio/mp4; codecs="flac"'};class vt extends Xe{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=gt[this._fileFormat];else switch(this._format){case le.MP3:this._audioCodec=gt[mt.MP3_160];break;case le.MP4:case le.MP4_DUAL:case le.MP4_CBCS:this._audioCodec=gt[mt.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 vt(e)}_parseFragmentResponse(e){const{requestURL:t,fragment:n,byteRangeHeader:i,expectedLength:r}=e.metadata,a=`${n.timeStart}-${n.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new ze(o.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:a,byte_range:i}));const r=new ze(o.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let s=!1;return this._resolvedURL!==t?s=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(s=!0,this._resolvedURL=this._fallbackURLs.shift()),r.debug.has_fallback=s,s?(this._emitWarning(r,this.toLogJSON()),this.getBufferForFragment(n)):Promise.reject(r)}case 200:case 206:{const s=e.body;if(!s)return Promise.reject(new ze(o.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:a,byte_range:i}));if(s.byteLength!==r)return Promise.reject(new ze(o.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:a,byte_range:i,received_length:s.byteLength,expected_length:r}));const l={audio:{profileId:this._profileId,bufferURL:t,byteStart:n.byteRanges.audio.start,byteEnd:n.byteRanges.audio.end,buffer:s,mimetype:this._audioCodec,bandwidth:8e3*s.byteLength/e.timing.completed}};if(n.cacheBufferSet&&s&&s.byteLength){n.bufferSet=l;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({},l.audio),{buffer:s.slice(t.start,t.end),byteStart:e.byteRanges.audio.start,byteEnd:e.byteRanges.audio.end})})}}return this._abrManager.sample(s.byteLength,e.timing.completed),Promise.resolve(l)}case 403:return this.resolve().then((()=>this.getBufferForFragment(n)));default:{let r=!1;return this._resolvedURL!==t?r=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(r=!0,this._resolvedURL=this._fallbackURLs.shift()),r?this.getBufferForFragment(n):Promise.reject(new ze(o.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:a,byte_range:i}))}}}_getInitBuffer(){var e,t;if(!this._initFragment)throw new he(o.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,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;ethis._segmentLength&&(this._segmentLength=Math.floor(u))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=s/o}_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,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;ethis._segmentLength&&(this._segmentLength=Math.floor(l))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=a/o}_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,i=this._initFragment;if(!n||!i)throw new he(o.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const r={url:n,byteStart:null===(e=i.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=i.byteRanges.audio)||void 0===t?void 0:t.end},a=this._fragments.map((e=>{var t,o;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(o=e.byteRanges.audio)||void 0===o?void 0:o.end}})),s="undefined"==typeof MediaSource?tt:nt;return this._hlsURL=s({assetID:this._fileId,targetDuration:10,map:r,segments:a}),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 he(o.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 he(o.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const n=e.byteRanges.audio,i=`${n.start}-${n.end}`,r=n.end+1-n.start,a=this._resolvedURL,s=e.init?Promise.resolve(null):this._getInitBuffer();return Promise.all([s,this._transport.request(a,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${i}`},timing:!0,metadata:{requestURL:a,fragment:e,byteRangeHeader:i,expectedLength:r},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!==r}}}).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)))),o=Date.now()-this._lastResolveTimestamp;let i;return i=o<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-o)})):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===ae.INVALID_SPOTIFY_KEY)return this._protection=t.protection||"cenc",this._psshBox=new Uint8Array(0),this;let i;const r=this._keySystemSettings.pssh_field.audio;let a=function(e,t){return t.hasOwnProperty(e)}(r,t)?`${t[r]}`:null;if(!a&&"pssh_widevine"===r&&"pssh"in t&&(a=null!==(n=t.pssh)&&void 0!==n?n:null),!a)return i=new he(o.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),i.track=this.toLogJSON(),Promise.reject(i);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 i=new he(o.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),i.track=this.toLogJSON(),Promise.reject(i);this._calculateFragmentsV1(t)}return this}))}adaptToBandwidth(){return Promise.resolve(!1)}}class yt{constructor(e){if(this._estimate=0,this._totalWeight=0,e<0)throw new TypeError("Halflife must be set to a positive value.");this._weightingDecrease=Math.exp(Math.log(.5)/e)}sample(e,t){const n=Math.pow(this._weightingDecrease,e),o=t*(1-n)+n*this._estimate;isNaN(o)||(this._estimate=o,this._totalWeight+=t)}getEstimate(){return this._estimate/1-Math.pow(this._weightingDecrease,this._totalWeight)}}class _t{constructor(e=4e5){this._totalBytes=0,this._overrideBitrate=0,this._currentBandwidth=e,this._short=new yt(2),this._long=new yt(5),this._init()}_init(){if("undefined"==typeof navigator)return;const e=navigator;e.connection&&e.connection.downlink&&(this._currentBandwidth=1e6*e.connection.downlink,this._onConnectionChange=this._onConnectionChange.bind(this),e.connection.addEventListener("change",this._onConnectionChange))}_onConnectionChange(e){const t=e.target.downlink||0;this._setBandwidth(t)}_setBandwidth(e){this._currentBandwidth=1e6*e}getBandwidthEstimate(){if(this._overrideBitrate)return this._overrideBitrate;if(this._totalBytes<128e3)return this._currentBandwidth;const e=this._short.getEstimate(),t=this._long.getEstimate();return Math.min(e,t)}sample(e,t){if(e<16e3)return;const n=t/1e3,o=8*e/n;this._totalBytes+=e,this._short.sample(n,o),this._long.sample(n,o)}overrideBitrate(e){this._overrideBitrate=e<=0?0:e}}var bt;!function(e){e.SHOWING="showing",e.HIDDEN="hidden"}(bt||(bt={}));const St=Array.prototype.slice,Et="function"==typeof Array.from?e=>Array.from(e):e=>St.call(e);function At(e,t){const n=Et(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Tt(e){const t=e;return{id:t.id,text:t.text}}const Pt="visible",Ot="hidden",Ct=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$/;class kt extends l.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(n.mode=this._isVisible?bt.SHOWING:bt.HIDDEN,null===(t=n.cues)||void 0===t?void 0:t.length){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(re.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Tt)})}_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?Pt:Ot}));const o=this._player.textTracks;for(let e=0,t=o.length;e=1?this._onLoadedMetadata():this._currentVideoContent&&e.addEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata))}_onLoadedMetadata(){const e=this._player;if(!e)return;if(At(e,"track"),!this._currentVideoContent)return;e.crossOrigin="anonymous";const t=this._updateActiveLanguage();for(const{lang:n,url:o}of this._currentVideoContent.getSubtitles()){const i=n.toLowerCase()===t,r=document.createElement("track");r.label=`${n} subtitles`,r.kind="subtitles",r.srclang=n,r.src=o,r.default=i,r.style.visibility=this._isVisible?Pt:Ot,e.appendChild(r),i&&!this._deactivateListeners&&this._subscribeToCueEvents(r)}}_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 o of e){const e=o.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(!Ct.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=[],At(e,"track"),e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class Rt{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new Rt(e)}getSample(e,t){var n,o;const i=this.bandwidthEstimator.getBandwidthEstimate(),r=function(e,t){const n=e.length;for(let o=0;oe.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:pt(null!=s?s:void 0)},audio:{bitrate:null==a?void 0:a.audio_bitrate,contentType:pt(null!=a?a:void 0)}}}}const Lt=de.P.forTag("playback.audio_processor");class It{constructor(e){this._audioContext=null,this._mediaElementSource=null,this._gainNode=null,this._nodes=[],(null==e?void 0:e.disable)?Lt.info("AudioProcessor disabled"):(this._audioContext=(null==e?void 0:e.audioContext)||("undefined"!=typeof AudioContext?new AudioContext:null),this._audioContext?(this._gainNode=this._audioContext.createGain(),this._buildNodePipeline(null==e?void 0:e.nodes)):Lt.warn("The AudioContext API is not supported. Any future operation related to `AudioProcessor` will be skipped."))}static create(e){return new It(e)}_setMediaElementSource(e){var t;this._audioContext&&(this._mediaElementSource&&(Lt.info("Disconnecting previous media element source"),this._mediaElementSource.disconnect()),Lt.info("Creating new media element source"),this._mediaElementSource=this._audioContext.createMediaElementSource(e)||null,this._mediaElementSource.connect(null!==(t=this._nodes[0])&&void 0!==t?t:this._audioContext.destination))}_buildNodePipeline(e=[]){var t;if(!this._audioContext)return;Lt.info("Disconnecting previous nodes");const n=this._nodes;for(const e of n)e.disconnect();const o=[this._gainNode,...e];let i=null;for(const e of o)i&&i.connect(e),i=e;null===(t=o[o.length-1])||void 0===t||t.connect(this._audioContext.destination),Lt.info("Node pipeline built"),this._nodes=o}setPlayer(e){var t;e&&((null===(t=this._mediaElementSource)||void 0===t?void 0:t.mediaElement)!==e?this._setMediaElementSource(e):Lt.info("The new player is the same as the current player"))}setAudioGain(e=0){if(!this._gainNode)return Lt.info("The default gain node is not available"),!1;const t=Math.pow(10,e/20);return this._gainNode.gain.value=t,Lt.info("Main gain set to",t),!0}getAudioContext(){return this._audioContext}resume(){return this._audioContext&&"running"!==this._audioContext.state?this._audioContext.resume():Promise.resolve()}suspend(){return this._audioContext&&"suspended"!==this._audioContext.state?this._audioContext.suspend():Promise.resolve()}destroy(){var e;this._audioContext&&(null===(e=this._mediaElementSource)||void 0===e||e.connect(this._audioContext.destination)),this._nodes=[],this._audioContext=null,this._gainNode=null,this._mediaElementSource=null,Lt.info("The AudioProcessor is destroyed")}}const Nt=de.P.forTag("playback.media_source_manager");function wt(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n]?`="${e[n]}"`:"";t.push(`${n}${o}`)}return t.length?`; ${t.join("; ")}`:""}class Dt extends l.vp{constructor(e){super(),this._mediaSource=null,this._sourceBuffers={},this._currentInitSegments={},this._updateQueue=[],this._codecs=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="";const{codecs:t,customSourceBufferParams:n,disableBufferAbort:o}=e;this._codecs=t,this._customSourceBufferParams=wt(n),this._disableBufferAbort=!!o,this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),e.noInit||this._init()}static create(e){return new Dt(e)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(re.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(re.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_onSourceOpen(){var e;Nt.info("MediaSource opened.");const t=this._mediaSource;if(0===(null===(e=null==t?void 0:t.sourceBuffers)||void 0===e?void 0:e.length)&&"open"===(null==t?void 0:t.readyState)){Nt.info("Creating source buffers for codecs",this._codecs);for(const e of this._codecs){const n=t.addSourceBuffer(e+this._customSourceBufferParams);n.addEventListener(re.SOURCE_BUFFER_UPDATE_END,this.dequeueUpdates),this._sourceBuffers[e]=n}}this.dequeueUpdates(),this.emit(re.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){Nt.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(re.BUFFER_SOURCE_CLOSE,null)}_destroySourceBuffers(){const e=this._mediaSource;if(!e)return;const t=e.sourceBuffers;if(t.length)for(let n=0,o=t.length;n{n?setTimeout(e,500):e()})).then((()=>{this.emitSync(re.FRAGMENT_APPENDED,e.fragment),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}this.emitSync(re.FRAGMENT_APPENDED,e.fragment);const r=i.byteLength>e.buffer.byteLength;(e.fragment.init||r)&&(this._currentInitSegments[e.codec]=e.profileId),null===(n=e.resolve)||void 0===n||n.call(e,!0),r?Nt.info(`Injected combined init segment and playable segment (${e.codec}, ${e.profileId})`):e.init&&Nt.info(`Injected individual init segment (${e.codec}, ${e.profileId})`)}_abortUpdate(e){var t;"fragment"in e&&this.emitSync(re.FRAGMENT_APPENDED,e.fragment),null===(t=e.resolve)||void 0===t||t.call(e,!1),Promise.resolve().then(this.dequeueUpdates)}dequeueUpdates(){const e=this._updateQueue.shift();e&&this.tryUpdate(e)}tryUpdate(e){if(e.playId!==this._playId)return Nt.info("Try update dropped: playId has changed"),void this._abortUpdate(e);if(e.timestamp{this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"duration",duration:e,resolve:t})}))}getMediaSource(){return this._mediaSource}setPlayId(e){this._playId=e}getPlayId(){return this._playId}}const Mt=de.P.forTag("playback.content_buffer");var xt;function Ft(){}!function(e){e[e.AUDIO=10]="AUDIO",e[e.VIDEO=20]="VIDEO"}(xt||(xt={}));class Ut extends l.vp{constructor(e,t=[],n={}){super(),this._appendingFragments=[],this._tracker=e;const{customSourceBufferParams:o,noInit:i,disableBufferAbort:r}=n;this._mediaSourceManager=Dt.create({codecs:t,noInit:i,customSourceBufferParams:o,disableBufferAbort:r}),this._removeAppendingFragment=this._removeAppendingFragment.bind(this),this._mediaSourceManager.on(re.FRAGMENT_APPENDED,(({data:e})=>this._removeAppendingFragment(e))),this.proxyEmitAll(this._mediaSourceManager,{[re.BUFFER_SOURCE_OPEN]:re.BUFFER_SOURCE_OPEN,[re.BUFFER_SOURCE_CLOSE]:re.BUFFER_SOURCE_CLOSE,[re.BUFFER_QUOTA_EXCEEDED]:re.BUFFER_QUOTA_EXCEEDED})}static create(e,t=[],n={}){return new Ut(e,t,n)}_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 o,i;const r=t.byteRanges.video?t.byteRanges.video.start:null!==(i=null===(o=t.byteRanges.audio)||void 0===o?void 0:o.start)&&void 0!==i?i:-1;var a;e>9e3&&this.emit(re.BUFFER_STALLED,{byteStart:r,timeStart:(a=t.timeStart,Math.ceil(1e3*a)),stallAmount:e-9e3,didTimeout:n})}_removeAppendingFragment(e){if(!e)return;const t=this._appendingFragments,n=t.indexOf(e);-1!==n&&t.splice(n,1)}dequeueUpdates(){this._mediaSourceManager.dequeueUpdates()}appendFragment(e,t,n=!1){if(-1!==this._appendingFragments.indexOf(t))return Promise.resolve([]);this._appendingFragments.push(t),this.emit(re.BUFFERING_START,null);const o=Date.now(),i=this._mediaSourceManager.getPlayId(),r=e.toLogJSON();return e.getBufferForFragment(t).then((e=>{var r,a,s,l,c,u;return this._trackBufferingProgress(e),i!==this._mediaSourceManager.getPlayId()?(Mt.info("Append fragment dropped: playId has changed."),[]):(n||this._checkStalling(Date.now()-o,t,!1),null!==(null===(r=e.audio)||void 0===r?void 0:r.bandwidth)&&this._tracker.trackBufferURL((null===(a=e.audio)||void 0===a?void 0:a.bufferURL)||"",{bandwidth:(null===(s=e.audio)||void 0===s?void 0:s.bandwidth)||0}),null!==(null===(l=e.video)||void 0===l?void 0:l.bandwidth)&&this._tracker.trackBufferURL((null===(c=e.video)||void 0===c?void 0:c.bufferURL)||"",{bandwidth:(null===(u=e.video)||void 0===u?void 0:u.bandwidth)||0}),this.emit(re.BUFFERING_END,null),this._mediaSourceManager.appendBufferData(e,t,i,o))})).catch((e=>(this._removeAppendingFragment(t),n||this._checkStalling(Date.now()-o,t,!0),this.emit(re.BUFFER_APPEND_ERROR,{error:e,canPlayNext:!0,track:r}),Promise.reject(e))))}abort(e=!1){this._appendingFragments=[],this._mediaSourceManager.abort(e)}getMediaSource(){return this._mediaSourceManager.getMediaSource()}destroy(){this._mediaSourceManager.destroy()}progress(e,t,n){const o=this._mediaSourceManager.getMediaSource();if(!o)return;const i="video"===e.getMediaType()?xt.VIDEO:xt.AUDIO;if("open"===o.readyState||"ended"===o.readyState){let r;const a=function(e,t){var n;const o=null===(n=e.sourceBuffers[e.sourceBuffers.length-1])||void 0===n?void 0:n.buffered;if(o){let e,n;for(let i=0;io.duration)return void("open"===o.readyState&&this._mediaSourceManager.endOfStream());const s=e.getFragmentLength();Math.ceil(n/s)>Math.floor(a.end/s)&&(r=e.getFragmentForTime(n),r&&this.appendFragment(e,r,t).catch(Ft));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);r=e.getFragmentForTime(u),r?this.appendFragment(e,r,t).catch(Ft):this._mediaSourceManager.endOfStream()}else if(r=e.getFragmentForTime(n),r){const o=this.appendFragment(e,r,t).catch(Ft);if(r.timeEnd{this._mediaSourceManager.endOfStream()}))}}else this._mediaSourceManager.endOfStream()}}recreate(e){this._appendingFragments=[],this._mediaSourceManager.recreate({codecs:e})}setDuration(e){return this._mediaSourceManager.setDuration(e)}setPlayId(e){this._mediaSourceManager.setPlayId(e)}}const Bt=de.P.forTag("playback.player"),Vt=/^blob:/,Gt={[le.MP4]:!0,[le.MP4_DUAL]:!0,[le.MP4_CBCS]:!0,[le.MP4_FLAC]:!0,[le.MP3]:!1,[le.MANIFEST_ID]:!1};function Jt(e){return Math.ceil(1e3*e)}function jt(e){return e/1e3}function Ht(e){return document.createElement(e)}class Kt extends l.vp{constructor(e){super(),this._cubicVolume=!1,this._player=null,this._emeManager=null,this._mediator=new l.vp,this._currentContent=null,this._upcomingContent=null,this._preloadingTracks={},this._playId=0,this._abortController=null,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||Ht,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 _t,this._emeManager=e.disallowProtectedTracks?null:e.emeManager||null,this._disallowProfile=e.disallowProfile,this._disableBufferingBeforeLicense=!!e.disableBufferingBeforeLicense,this._cache=new pe.z(e.trackCacheSize||2),this._subtitleManager=new kt({language:e.preferredSubtitleLanguage||navigator.language,player:this._player}),this._videoResolution=e.videoResolution,Bt.info("Setting Player track cache to:",e.trackCacheSize||2),this._bufferManager=Ut.create(this._tracker,void 0,{disableBufferAbort:!!e.disableBufferAbort,reinjectInitsOnAbort:!!e.reinjectInitsOnAbort,noInit:!0,customSourceBufferParams:e.customSourceBufferParams}),this._statistics=Rt.create({bandwidthEstimator:this._abrManager}),this._audioProcessor=It.create(e.audioProcessorOptions),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._setAudioGain=this._setAudioGain.bind(this),this._init()}static create(e){const t=Object.assign({},e);return e.disallowProtectedTracks?Kt.createWithOptions(t):We.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 Kt(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return Kt.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new Kt(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&Bt.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[re.TRACKER_TRACKING_DATA_CREATED]:re.PLAYER_TRACKING_DATA_CREATED,[re.TRACKER_TRACKING_DATA_FINALIZED]:re.PLAYER_TRACKING_DATA_FINALIZED,[re.TRACKER_PLAYBACK_START]:re.PLAYER_PLAYBACK_START}),this._tracker.on(re.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[re.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[re.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._bufferManager.addListeners({[re.BUFFER_APPEND_ERROR]:this._onBufferError,[re.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded}),this.proxyEmitAll(this._bufferManager,{[re.BUFFER_STALLED]:re.PLAYER_BUFFER_STALLED}),this._mediator.addListeners({[ce.FRAGMENT_FETCHED]:this._onFragmentFetched,[ce.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[ce.FRAGMENT_FETCH_ERROR]:re.PLAYER_FRAGMENT_FETCH_ERROR,[ce.SUBTITLE_LANGUAGES_LOADED]:re.PLAYER_SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitSync(this._subtitleManager,re.PLAYER_DISPLAYED_CUES_CHANGED,re.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmitAll(this._videoResolver,{[re.VIDEO_MANIFEST_RESOLVED]:re.PLAYER_VIDEO_MANIFEST_RESOLVED,[re.VIDEO_MANIFEST_RESOLVE_FAILED]:re.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED})}_onRateChange(){this._player&&(this._tracker.trackSpeedChanged(this._player.playbackRate),this.emit(re.PLAYER_PLAYBACK_SPEED_CHANGED,{playback_speed:this._player.playbackRate}))}_onLicenseRequestError(e){if(e.data.signal.aborted)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.trackFragment(t),this.emit(re.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.trackProfileChanged(t.profile),this.emit(re.PLAYER_VIDEO_PROFILE_CHANGED,t)}_onLicenseRequestCapped(e){if(e.data.signal.aborted)return;this._currentContent&&(this.pause(),this.emit(re.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(re.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(re.MEDIA_PLAY,this._onPlay),e.addEventListener(re.MEDIA_PLAYING,this._onPlaying),e.addEventListener(re.MEDIA_PAUSE,this._onPause),e.addEventListener(re.MEDIA_SEEKING,this._onSeeking),e.addEventListener(re.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(re.MEDIA_ENDED,this._onEnded),e.addEventListener(re.MEDIA_ERROR,this._onError),e.addEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(re.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(re.MEDIA_WAITING,this._onWaiting),e.addEventListener(re.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(re.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(re.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(re.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(re.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(re.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(re.MEDIA_PLAY,this._onPlay),e.removeEventListener(re.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(re.MEDIA_PAUSE,this._onPause),e.removeEventListener(re.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(re.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(re.MEDIA_ENDED,this._onEnded),e.removeEventListener(re.MEDIA_ERROR,this._onError),e.removeEventListener(re.MEDIA_WAITING,this._onWaiting),e.removeEventListener(re.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(re.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(re.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(re.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(re.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(re.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(re.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,o){if(t.aborted)return Bt.info("Recreate player dropped: operation aborted."),Promise.resolve(!1);const i=this._player;if(i){if(!this._newElementPerTrack&&("AUDIO"!==i.tagName||"video"!==n)){let t=!0;for(const n of e)if('audio/mp2t;codecs="mp4a.40.2"'!==n&&!i.canPlayType(n)){t=!1;break}if(t)return Bt.info("Reusing media element."),e.join(",")===this._activeCodecs.join(",")&&!this._newBufferPerTrack||o||(Bt.info("Recreating buffer."),this._bufferManager.recreate(e),this._activeCodecs=e),Promise.resolve(!0)}this._removePlayerEvents(i),i.pause(),this._emeManager&&this._emeManager.removeMediaKeys(i).catch((function(e){Bt.warn("Failed to remove media keys.",e)})),this._player=null;const t=this._getContainerElement(this._videoPlayerContainer);t&&i.parentNode===t&&(t.removeChild(i),this.emit(re.PLAYER_VIDEO_ELEMENT_REMOVED,null));const r=this._getContainerElement(this._audioPlayerContainer);r&&i.parentNode===r&&r.removeChild(i)}Bt.info("Creating new media element.");const r=this._createPlayer(n),a=this._playerVolume;return r.volume=this._cubicVolume?a*a*a:a,r.autoplay=!1,r.loop=!1,"playsInline"in r&&(r.playsInline=!0),this._player=r,this._subtitleManager.setPlayer(r),this._playerActivated=!1,this._addPlayerEvents(r),o||this._bufferManager.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(re.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){var e;const t=null===(e=this._abortController)||void 0===e?void 0:e.signal,n=()=>{if(!this._player)return;if(null==t?void 0:t.aborted)return void Bt.info("Duration changed drop: operation aborted.");const e=Jt(this._player.duration),n=Jt(this._player.currentTime);this._tracker.setActualDuration(e),this.emit(re.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:e})};this._loaded?n():this.once(re.PLAYER_LOAD,n)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=Jt(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(re.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=Jt(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(re.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){if(!this._player)return;const e=Jt(this._player.currentTime);this._tracker.trackPaused(e);const t=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(re.PLAYER_PAUSED,{position:e,logData:t})}),10)}_onSeeking(){this.emit(re.PLAYER_SEEKING,null),this._bufferManager.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&&(Bt.info("Exceeded quota: rebuffering current track."),this._bufferManager.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){Bt.info("Got Encrypted event");this._currentContent&&this.emitSync(re.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(Bt.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(Bt.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const i=this._currentContent;let r,a,s,l=!1;i&&(n=i.isProtected(),t=i.toLogJSON(),l=i.isAd(),i.clearCachedBuffers());let c=!0;const u=!i||l||!this._fatalOnNextError,d=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,p=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:r=o.MEDIA_ABORTED,a="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:r=o.MEDIA_NETWORK_ERROR,a="Network error.";break;case MediaError.MEDIA_ERR_DECODE:r=o.MEDIA_DECODING_ERROR,a="Media decoding error.",c=u;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:r=o.MEDIA_NOT_SUPPORTED,a="Media not supported.",c=u;break;default:r=o.PLAYER_MEDIA_ERROR,a="Media error.",s=!0}a+=` (${e.message||d||p||e.toString()})`}else r=o.PLAYER_PLAYBACK_ERROR,a="Error message undefined",s=!0;this._bufferManager.abort(!0);const f=new fe(r,a);c||(f.unrecoverable=!0),f.listPlayerIgnore=l,f.debug.src_url=p,f.debug.protected=n,f.debug.extendedCode=d,f.debug.rawExCode=e&&e.msExtendedCode||null,s&&e&&(f.debug.nativeCode=e.code||null,f.debug.errorData=e),this._emitError(f,c,t)}_onLoadedMetadata(){this.emitSync(re.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._buffering=!1,this.emitSync(re.INTERNAL_PLAYER_CANPLAY,null),this.emit(re.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this.emitSync(re.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(),o=this._tracker;this.emit(re.PLAYER_BUFFERING_START,Object.assign({position:Jt(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,seeking:t},o.getStallsInformation())),this._getBufferingLatency().then((i=>{t||this._tracker.trackMsStalled(i),this.emit(re.PLAYER_BUFFERING_END,Object.assign({position:Jt(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,msStalled:i,seeking:t},o.getStallsInformation()))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(re.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:Jt(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(re.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(re.PLAYER_ENDED,null)}_emitError(e,t,n){Bt.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(re.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?Jt(this._player.currentTime):0})}_emitWarning(e,t){Bt.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(re.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?Jt(this._player.currentTime):0})}_prepareMediaElement(e,t){return t.aborted||!this._upcomingContent?(Bt.info("Loading content dropped: operation aborted."),Promise.resolve(!1)):this._recreateMediaElement(this._upcomingContent.getPlayableCodecs(),t,this._upcomingContent.getMediaType(),this._upcomingContent.getKeySystem()===ae.FAIRPLAY).then((n=>{var o;if(!n||t.aborted)return Bt.info("Loading content dropped after recreate: operation aborted."),Promise.resolve(!1);this._player.playbackRate=(null===(o=this._loadingOptions)||void 0===o?void 0:o.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)?(Bt.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)}))}_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(re.PLAYER_VIDEO_ELEMENT_APPENDED,null)),this._upcomingContent=null,e}_handleLoadingError(e,t,n,o){if(this._upcomingContent=null,n.aborted)return Promise.resolve(!1);if(this._tracker.trackLoadFailed(),this.emit(re.PLAYER_LOADING_FAILED,{uri:e,logData:t.logData}),o){const n=o.track||{uri:e,fileId:t.fileId,format:t.format,deviceId:t.logData.deviceId};this._emitError(o,"StorageError"!==o.name||!!o.canPlayNext,n)}return Promise.reject(o)}_handleLoadedMetadata(e,t,n){if(e.aborted)return void Bt.info("LoadedMetadata operations dropped: operation aborted.");this._loaded=!0;const o=this._player;if(!o)return;this._bufferManager.dequeueUpdates();const i=n.position>o.duration?0:n.position;this._lastTimeUpdatePostion=0,(isNaN(o.currentTime)||o.currentTime{this._onTimeUpdate()}));let r=()=>{o.currentTime{if(o.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(re.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),o.readyState>2?(Bt.info("Ready to play, triggering play."),r()):(Bt.info("Waiting to be playable."),this.once(re.INTERNAL_PLAYER_CANPLAY,r))}_handleCanPlayThrough(e){e.aborted?Bt.info("CanPlayThrough operations dropped: operation aborted."):this._tracker.trackCanPlayThrough()}_loadContent(e,t){if(t.aborted||!this._upcomingContent)return Bt.info("Loading content dropped: operation aborted."),Promise.resolve(!1);if(!this._player)throw new fe(o.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._setAudioGain(n),this._subtitleManager.setVideoContent(n instanceof ht?n:null);const i=e.callback;i&&this.once(re.PLAYER_LOAD,(()=>{t.aborted?Bt.info("Load content event dropped: operation aborted."):i()})),this.once(re.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(re.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let r=e.position;const a=n.getCalculatedDuration();a&&r>a&&(r=e.position=0);try{this._player.currentTime=r}catch(e){Bt.warn("Cannot set initial position before loading.",e)}const s=n.isProtected();return this._tracker.setProtected(s),n.getKeySystem()===ae.FAIRPLAY?n instanceof vt&&!s?Promise.resolve(this._loadUnprotectedTrack()):Promise.resolve(this._loadHLSProtectedTrack(e,t)):n instanceof ht?this._loadVideoTrack(e,t):s?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 ht))return Promise.resolve(!1);const n=this._currentContent;Bt.info("_loadVideoTrack");const i=()=>{this._currentContent&&this._currentContent.isProtected()&&this._requestLicense(t).then((()=>{t.aborted||(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}))};this._disableLicensePrefetch?this.once(re.INTERNAL_ENCRYPTED,i):this._bufferManager.once(re.BUFFER_SOURCE_OPEN,i);const r=this.getMediaSource();if(!r)throw new fe(o.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(r);const a=n.getVideoProfile(),s=n.getAudioProfile();return s||a?(this._tracker.trackVideoLoadStart({bitrate:null==a?void 0:a.video_bitrate,audioProfile:null!=s?s:void 0,videoProfile:null!=a?a:void 0}),this._tracker.trackBufferLoadStart(),this._bufferManager.setDuration(n.getCalculatedDuration()).then((()=>this._bufferManager.appendFragment(n,n.getInitFragment()))).then(this._onAppendedHeadSegment(t))):Promise.resolve(!1)}_loadHLSProtectedTrack(e,t){if(Bt.info("Load HLS Protected Track"),!this._player||!this._currentContent)return!1;const n=this._currentContent.getResolvedURL();if(!n)throw new he(o.FILE_NOT_RESOLVED,"Cannot load HLS protected track: File not resolved.");const i=e=>{e.data.fromPolyfill&&(this.removeListener(re.INTERNAL_ENCRYPTED,i),this._requestLicense(t,{initData:e.data.initData}))};this.on(re.INTERNAL_ENCRYPTED,i);const r=this._currentContent;if(r instanceof ht){const e=r.getVideoProfile(),t=r.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=Ze,this._player.appendChild(a),this._player.load(),!0}_loadUnprotectedTrack(){if(!this._player||!this._currentContent)return!1;const e=this._currentContent.getResolvedURL();return!!e&&(Bt.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.aborted&&(this._player&&this._player.spload&&this._player.spload(),Bt.info("Head segment appended."),!0)}_loadProtectedTrack(e,t){if(!(this._currentContent&&this._player&&this._currentContent instanceof vt))return Promise.resolve(!1);const n=this._currentContent;Bt.info("_loadProtectedTrack",n.getURI());const i=()=>this._requestLicense(t).then((()=>{t.aborted||(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(re.INTERNAL_ENCRYPTED,i):this._bufferManager.once(re.BUFFER_SOURCE_OPEN,i);const r=this.getMediaSource();if(!r)throw new fe(o.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(r),this._tracker.trackBufferLoadStart();const a=n.getFragmentForTime(e.position);let s=null;return a===n.getFirstFragment()?(Bt.info("Appending combined init and playable fragment."),s=this._bufferManager.appendFragment(n,n.getHeadFragment())):(Bt.info("Appending split init and playable fragment."),s=this._bufferManager.appendFragment(n,a)),s.then(this._onAppendedHeadSegment(t)).then((()=>Promise.resolve(!t.aborted)))}_requestLicense(e,t={}){if(e.aborted){const e="Request license dropped: operation aborted.";return Bt.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),o=this._player.mediaKeys,i=this._currentContent,r=i.getFileId(),a=i.getLogData(),s=i.toLogJSON(),l=i.getKeySystem(),c=i.getLicenseEndpoint();let u;if(c)u=Promise.resolve(c);else{if(!r)return Promise.reject(new TypeError("Missing: fileId or licenseEndpoint"));u=this._licenseURLResolver.get(l,i.getMediaType()).then((e=>e.replace(/\{contentId\}/,r)))}const d=this._emeManager,p=this._tracker;return p.setKeySystem(l),p.setKeySystemImpl(d.getKeySystemImpl()),Promise.all([u,i.getInitParams()]).then((([i,r])=>{p.setLicenseSessionLatency(Date.now()-n);const a=r.initDataType,s=t.initData||r.initData;if(o&&s&&a){const t=Object.assign(Object.assign({},r),{signal:e,initData:s,mediaKeys:o,licenseServer:i,initDataType:a});return d.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e.aborted)return Bt.info("License tracking dropped: operation aborted."),Promise.resolve(!1);"boolean"!=typeof t&&"elapsed"in t&&(p.setLicenseGenerationLatency(t.elapsed.generate),p.setLicenseRequestLatency(t.elapsed.request),p.setLicenseUpdateLatency(t.elapsed.update));const o=Date.now()-n;return p.setKeyLatency(o),this.emit(re.PLAYER_KEY_RECEIVED,{requestTime:o,logData:a}),Bt.info("License updated."),Promise.resolve(!0)})).catch((t=>{if(e.aborted)return Promise.resolve(!1);const n=!t||!("canPlayNext"in t)||t.canPlayNext;return this._emitError(t,n,s),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,i="video"===t.getMediaType();if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void Bt.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===o)return void Bt.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:o,t.getKeySystem()!==ae.FAIRPLAY&&(i||t.isProtected())&&this._bufferManager.progress(t,n,o);const r=this._player.duration,a=Jt(o),s=t.getLogData();n?(this._tracker.trackPositionChanged(a),this.emit(re.PLAYER_POSITION_CHANGED,{position:a,logData:s})):(this._tracker.trackProgress(a,"getCurrentBitrate"in t?t.getCurrentBitrate():0),this.emit(re.PLAYER_PROGRESS,{timestamp:Date.now(),position:a,played:this._tracker.getMSPlayed(),interval:500,logData:s})),!this._canPreloadEmitted&&r-o<=10?(this._canPreloadEmitted=!0,this.emit(re.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted=!1,clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,Jt(r-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:ae.INVALID_SPOTIFY_KEY})).then((o=>vt.create({abrManager:this._abrManager,mediator:this._mediator,keySystem:o.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,audioGain:t.audioGain}).load(n))).then((e=>{const o=this._tracker;return o.setResolveLatency(n.resolveLatency),o.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},o=t.fileId;return(this._emeManager?this._emeManager.getKeySystemInfo():this.getMediaConfig().then((e=>({keySystem:ae.INVALID_SPOTIFY_KEY,audioFormats:e.formatsInfo.audio,videoFormats:e.formatsInfo.video})))).then((i=>ht.create({uri:e,abrManager:this._abrManager,mediator:this._mediator,resolver:this._videoResolver,keySystem:i.keySystem,licenseEndpoint:t.licenseEndpoint,fileId:o,noAuth:t.noAuth,format:le.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,audioGain:t.audioGain}).load(n))).then((e=>{const t=this._tracker;return t.setResolveLatency(n.resolveLatency),t.setManifestLatency(n.manifestLatency),e.isProtected()&&o&&!this._disableCache&&this._cache.set(o,e),e}))}_preinitMediaElement(){if(this._player||!this._emeManager)return Promise.resolve(this);const e=(0,a.createAbortControllerLike)();return this._emeManager.getKeySystemInfo().then((t=>{var n,o;const i=[];return(null===(n=t.audioFormats)||void 0===n?void 0:n[0])&&i.push(t.audioFormats[0].contentType),(null===(o=t.videoFormats)||void 0===o?void 0:o[0])&&i.push(t.videoFormats[0].contentType),!!i.length&&this._recreateMediaElement(i,e.signal,i.length>1?"video":"audio",t.keySystem!==ae.FAIRPLAY)})).then((()=>this),(e=>(Bt.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}_setAudioGain(e){var t;null===(t=this._audioProcessor)||void 0===t||t.setAudioGain(e.getAudioGain())}getCodecInfo(){return{audiocodec:"mp3",bitrate:160}}getMediaSource(){return this._bufferManager.getMediaSource()}load(e,t,n){var i;const r=function(e,t){return t&&t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",s=e[r];if(Bt.info("load",s),!s)return Promise.reject(new fe(o.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 l=++this._playId;this._abortController=(0,a.createAbortControllerLike)();const c=this._abortController.signal,u=this._tracker;let d;u.trackLoadStart(s,e.fileId,l.toString(),e.logData,e.metadata),this.emit(re.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:s,timestamp:Date.now()}),this._bufferManager.setPlayId(l),this._loadingOptions={position:jt(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},u.setPlayIntended(this._loadingOptions.autoplay),u.setPlayedThreshold(t.playedThreshold);const p=this._cache,f="video"===e.mediaType?this._createVideoContent.bind(this,s,e):this._createAudioContent.bind(this,s,e);if(e.fileId){const t=e.fileId,n=this._preloadingTracks[t],o=this._disableCache?null:p.get(t);n?(Bt.info("Waiting for preloading track.",t),d=n.then((e=>(Bt.info("Preloading succeeded.",t),u.setResolveLatency(e.resolveLatency),u.setManifestLatency(e.manifestLatency),p.get(t))),(()=>(Bt.info("Preloading failed, creating new track",t),f())))):o?(Bt.info("Using cached track.",t,o),u.setMemoryCached(!0),d=Promise.resolve(o)):(Bt.info("Creating new track from fileId",t),d=f())}else Bt.info("Creating new track without fileId",e.resolvedURL),d=f();return d.then((t=>{if(t.isProtected()&&!this._emeManager)throw new fe(o.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported");t.setLogData(e.logData),u.setCalculatedDuration(Jt(t.getCalculatedDuration())),this._upcomingContent=t})).then(this._prepareMediaElement.bind(this,this._loadingOptions,c)).then((()=>{this._audioProcessor.setPlayer(this._player)})).then(this._loadContent.bind(this,this._loadingOptions,c)).then(this._handleLoadingComplete,this._handleLoadingError.bind(this,s,e,c))}preload(e){const t=!this._disableCache,n=e.uri,o=e.fileId,i=this._cache;if(!t||!o||!this._emeManager)return Promise.resolve(null);const r="video"===e.mediaType;if(!(Gt[e.format]&&!r)||i.get(o))return Promise.resolve(null);const a=this._preloadingTracks,s=a[o];if(s)return s;Bt.info("Preloading track",o);const l={manifestLatency:0,resolveLatency:0},c=this._emeManager.getKeySystemInfo().then((t=>vt.create({abrManager:this._abrManager,keySystem:t.keySystem,licenseEndpoint:e.licenseEndpoint,transport:this._transport,resolver:this._audioResolver,uri:n,fileId:o,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,audioGain:e.audioGain}).load(l))).then((t=>Promise.all([t,"MP4_CBCS"!==e.format?t.getBufferForFragment(t.getHeadFragment()):null]))).then((([e])=>(i.set(o,e),delete a[o],Bt.info("Cached",o),l))).catch((e=>(delete a[o],Bt.warn("Preloading error",e),this.emit(re.PLAYER_PRELOADING_ERROR,{error:e,track:e.track||null,canPlayNext:!("canPlayNext"in e)||e.canPlayNext,preloading:!0}),Promise.reject(e))));return a[o]=c,c}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(re.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new fe(o.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 o=this._player,i=this._currentContent,r={src:(null==o?void 0:o.src)?`data:${(null==i?void 0:i.getFileId())||"unknown"}`:void 0,height:(null==o?void 0:o.clientWidth)||0,width:(null==o?void 0:o.clientHeight)||0},a={};if(i){const[e,t]=i.getPlayableCodecs();a.audio_format=e,a.video_format=t,i instanceof ht&&o instanceof HTMLVideoElement&&(a.video_height=o.videoHeight,a.video_width=o.videoWidth,r.poster=o.poster)}return{playing:null!==(e=!(null==o?void 0:o.paused))&&void 0!==e&&e,position:o?Jt(o.currentTime):0,duration:o?Jt(o.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==o?void 0:o.playbackRate)&&void 0!==n?n:0,buffering:this._buffering,media_type:(null==i?void 0:i.getMediaType())||null,media_info:a,player_element:r}}getPlayerPosition(){return this._player?Jt(this._player.currentTime):0}seek(e){var t;if(!this._player)return;const n=null===(t=this._abortController)||void 0===t?void 0:t.signal,o=()=>{if(!this._player||(null==n?void 0:n.aborted))return void Bt.info("Seek dropped: operation aborted.");let t=jt(e);t<0?t=0:t>=this._player.duration&&(t=this._player.duration),this._player.currentTime=t};this._loaded?o():this.once(re.PLAYER_LOAD,o),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 this._audioProcessor.resume().then((()=>{this._player&&!this._isPlaying()&&Promise.resolve(this._player.play())}))}stop(e,t){var n,o;const i=[],r=e||{};this.emit(re.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:r}),null===(n=this._abortController)||void 0===n||n.abort(),this._tracker.trackStopped(this._player?Jt(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._bufferManager.abort(!0),this._emeManager&&i.push(this._emeManager.destroySessions());const a=this._player;if(a){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&Bt.warn("MediaError detected: next immediate media error will be fatal.");const e=a.src;if(e)Vt.test(e)&&URL.revokeObjectURL(e),a.removeAttribute("src");else{const e=Et(a.getElementsByTagName("source"));Bt.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)a.removeChild(t);Bt.info("Releasing HLS URLs"),null===(o=this._currentContent)||void 0===o||o.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(re.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(re.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 ht))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(se.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._bufferManager.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(se.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 ht&&this._currentContent.setVideoResolution(this._videoResolution)}activateElement(){return this._playerActivated||!this._player||this._player.src?(this._audioProcessor.resume(),!1):(this._audioProcessor.resume().then((()=>{var e;return null===(e=this._player)||void 0===e?void 0:e.load()})),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||Ht("video"),o=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,o(i),i}));const i="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),r=Be([Ue[0]],i),a=[],s=[],l=[],c=[];if(r){const{audioCapabilities:e,videoCapabilities:t}=r;for(const t of e)a.push(t.contentType),l.push(Ge(t.contentType));for(const e of t)s.push(e.contentType),c.push(Ge(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 o(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){var t;return!(!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}getAudioProcessor(){return this._audioProcessor}}class Yt extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const Wt="7.21.3-1cb09a4",zt="7.21.3",qt=de.P.forTag("playback.logger");class Xt extends l.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 Xt(e)}_init(){const e=this._player;e.on(re.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(re.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(re.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(re.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(re.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(re.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(re.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(re.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,i,r;const a=t.data,s=this._currentTrackingData;if(!s||s.noLog)return;const l=a.error,c=null!==(n=null==l?void 0:l.debug)&&void 0!==n?n:{};c.position="position"in a?a.position:0;const u={track:a.track||{},debug:c,preloading:"preloading"in a&&!!a.preloading,session_id:this._sessionId,playback_id:s.playbackId||null,player_play_id:"playId"in a?a.playId:null,http_status_code:null!==(i=null==l?void 0:l.status)&&void 0!==i?i:null,license_server:null!==(r=null==l?void 0:l.licenseServer)&&void 0!==r?r:null};this._logError(l.code||o.UNKNOWN,l,u,s,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};qt.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const i=new Yt(o.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,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_metadata_duration:e.msMetadataDuration,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,resolution_max:e.maxResolution||0,resolution_min:e.minResolution||0};qt.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const i=new Yt(o.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,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};qt.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const i=new Yt(o.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(i.code,n,t,e,!1),this._emitError(i,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){qt.warn("Unable to send impression request",e)}))}_logError(e,t,n,o,i){let r="";t&&(r=t.stack||"",r||(r=t.toString()));const a={source:"playback",source_version:Wt||ee.eV.UNKNOWN,type:e||ee.eV.UNKNOWN,message:t&&t.message||ee.eV.EMPTY,stack:JSON.stringify(r),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:o.clientId,correlation_id:o.correlationId};i?this._logSender.logJSSDKWarning(a).catch((e=>qt.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>qt.warn("Failed to log error",a,e)))}}class Zt extends Error{constructor(e=o.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 Qt=de.P.forTag("playback.storage_resolve");class $t{constructor(e){this._transport=e}_parseResponse(e,t){var n;let i;if(200!==t.status)return i=new Zt(o.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),i.status=t.status,i.fileId=e,Promise.reject(i);const r=t.body;if(!(null===(n=null==r?void 0:r.cdnurl)||void 0===n?void 0:n.length))return i=new Zt(o.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),i.fileId=e,Promise.reject(i);const a={uri:r.cdnurl[0],uris:r.cdnurl,protection:"cenc"};return Promise.resolve(a)}getCDNURL(e,t){Qt.info("Requesting CDN URL for ",e);const n="files/audio/interactive",o=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(o,{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 Qt.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 Zt(o.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 Zt(o.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class en extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class tn{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 nn{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new tn,this._currentSpeed=1,this.audiocodec=null,this.bitrate=0,this.audioQuality=void 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.msMetadataDuration=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.totalBandwidth=0,this.lastBitrate=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,this.maxResolution=0,this.minResolution=0}static create(){return new nn}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,o=0,i=0,r=0,a=0,s=this.maxContinuous;for(;rs?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));i0&&(n+=parseInt(o,10)*t[o]/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&&(this.audiocodec=e.audioProfile.audio_codec),e.videoProfile&&(this.videocodec=e.videoProfile.video_codec,this.lastBitrate=e.videoProfile.video_bitrate,this.minResolution=e.videoProfile.video_resolution,this.maxResolution=e.videoProfile.video_resolution)}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(){if(this._isFinalized)throw new en(o.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 e=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(e),this.startBitrate||(this.startBitrate=this.bitrate),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 ae.WIDEVINE:e="widevine";break;case ae.PLAYREADY:case ae.PLAYREADY_HARDWARE:e="playready";break;default:e="none"}return{ms_total_est:this.msActualDuration,ms_metadata_duration:this.msMetadataDuration,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,resolution_max:this.maxResolution,resolution_min:this.minResolution}}isFinalized(){return this._isFinalized}}const on=de.P.forTag("playback.tracker");class rn extends l.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._playedThreshold=e.playerThreshold||31e3}static create(e){return new rn(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 o,i,r,a;const s=this._trackingData;if(!s||s.isFinalized())return;const l=Date.now();if(s.stopTime=l,s.lastPlayPosition>=0&&e>=0&&s.lastPlayPositionn?(t.nSeeksForward++,t.msSeeksForward+=e-n):e=0&&t.lastPlayPosition=0&&t.lastPlayPosition=0){if(o=e-n.lastPlayPosition,o<0)return void on.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(o)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,t&&n.trackBitrate(t,o)}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}trackFragment(e){const t=this._trackingData;if(!t)return;const{bandwidth:n,resolution:o}=e;o&&((ot.maxResolution&&(t.maxResolution=o)),(nt.bpsBandwidthMax&&(t.bpsBandwidthMax=n),t.bpsBandwidthAvg=t.bpsBandwidthAvg?(t.bpsBandwidthAvg+n)/2:n}trackProfileChanged(e){const t=this._trackingData;if(!t)return;const{bitrate:n}=e;nt.lastBitrate&&t.nRenditionUpgrade++,t.lastBitrate=n}}class an extends l.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new an(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Zt(o.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(re.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const i=e.body,r=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(re.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:r?parseInt(r,10):JSON.stringify(i).length,start_time:n,end_time:Date.now()}),Promise.resolve(i)}getInitSegmentURLs(e,t,n,o){let i="";n&&(i=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let r="";return o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type)),{audio:i,video:r,audioLogging:i,videoLogging:r}}getSegmentURLs(e,t,n,o,i){let r="";o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type));let a="";return i&&(a=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:r.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:r,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 sn 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 sn(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class ln{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}`,i=this._urls[n];if(i&&i.expires>Date.now()+6e4)return Promise.resolve(i.uri);const r=this._useTestLicenseServer?"&use_test_license_server=true":"",a=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${r}`;return this._transport.request(a,{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 i;return i=t?400===e.status&&t&&"deprecated-version"===t.code?sn.fatal(o.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new sn(o.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):sn.fatal(o.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),i.status=e.status,Promise.reject(i)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class cn{constructor(e){this._melodyLogger=new ee.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 un;!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"}(un||(un={}));const dn={[o.MEDIA_ABORTED]:un.ABORTED,[o.MEDIA_DECODING_ERROR]:un.MEDIA_DECODING,[o.MEDIA_NOT_SUPPORTED]:un.SRC_NOT_SUPPORTED,[o.MEDIA_NETWORK_ERROR]:un.NETWORK};function pn(e){let t=dn[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=un.NETWORK:t||(t=/^EME_/.test(e)?un.EME:un.GENERIC),t}function fn(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var hn;!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"}(hn||(hn={}));const mn={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 gn{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,me.$)(),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 gn(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||zt,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:zt},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[re.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[re.PLAYER_PLAY]:this._onPlay.bind(this),[re.PLAYER_PLAYING]:this._onPlaying.bind(this),[re.PLAYER_PAUSED]:this._onPause.bind(this),[re.PLAYER_PROGRESS]:this._onProgress.bind(this),[re.PLAYER_SEEKING]:this._onSeeking.bind(this),[re.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[re.PLAYER_ERROR]:this._onError.bind(this),[re.PLAYER_ENDED]:this._onEnded.bind(this),[re.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[re.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[re.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[re.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[re.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[re.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[re.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:o}=e.data,i=!!this._currentContentInfo;if("video"!==t.mediaType||(null==o?void 0:o.noLog)||(null==o?void 0:o.noMuxEvents))return i&&this._mux.emit(this._playerId,hn.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const r={video_id:t.fileId,video_title:(null==o?void 0:o.displayTitle)||void 0,video_series:(null==o?void 0:o.displayGroup)||void 0,video_duration:(null==o?void 0:o.displayDuration)||void 0},a=Object.assign({},mn);this._currentContentInfo={track:t,options:n,videoData:r,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,hn.READY),this._isMuxInitialized=!0):i&&this._mux.emit(this._playerId,hn.VIDEO_CHANGE,r)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,o=this._player.getPlayerState(),i=o.media_info,r=(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}=o.player_element;n.player_is_paused=!o.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=r,n.video_source_url=l,n.video_source_mime_type=i.video_format,n.video_source_duration=o.duration,n.video_poster_url=c,this._mux.emit(this._playerId,hn.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,hn.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,hn.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,hn.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,hn.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,hn.SEEKED)}_onError(e){var t,n;const o=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&o&&this._mux.emit(this._playerId,hn.ERROR,{player_error_code:pn(o),player_error_message:o})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,hn.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,hn.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,hn.REQUEST_COMPLETED,{request_type:n,request_hostname:fn(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,hn.REQUEST_FAILED,{request_type:n,request_hostname:fn(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,hn.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:fn(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,hn.REQUEST_FAILED,{request_type:"manifest",request_hostname:fn(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 vn,yn,_n,bn,Sn,En;!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"}(vn||(vn={})),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"}(yn||(yn={})),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"}(_n||(_n={})),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"}(bn||(bn={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(Sn||(Sn={})),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"}(En||(En={}));class An 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 An(e,t);return n.unrecoverable=!0,n}}function Tn(e){return"uri"in e}class Pn extends l.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,me.$)(),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=Sn.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 Pn(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({[re.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[re.PLAYER_CAPPED]:this._handleCapped,[re.PLAYER_ENDED]:this._handleEnded,[re.PLAYER_ERROR]:this._handleError,[re.PLAYER_PAUSED]:this._handlePaused,[re.PLAYER_PLAYING]:this._handlePlaying,[re.PLAYER_TIMEOUT]:this._handleTimeout,[re.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[re.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[re.PLAYER_PROGRESS]:this._handleProgress,[re.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[re.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[re.PLAYER_BEFORE_VOLUME_CHANGE]:re.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[re.PLAYER_LOAD]:re.LIST_PLAYER_PLAYER_LOAD}),this.proxyEmitAll(e,{[re.PLAYER_AUTOPLAY_FAILED]:re.LIST_PLAYER_AUTOPLAY_FAILED,[re.PLAYER_TRACKING_DATA_CREATED]:re.LIST_PLAYER_TRACKING_DATA_CREATED,[re.PLAYER_TRACKING_DATA_FINALIZED]:re.LIST_PLAYER_TRACKING_DATA_FINALIZED,[re.PLAYER_BUFFER_STALLED]:re.LIST_PLAYER_BUFFER_STALLED,[re.PLAYER_BUFFERING_START]:re.LIST_PLAYER_BUFFERING_START,[re.PLAYER_BUFFERING_END]:re.LIST_PLAYER_BUFFERING_END,[re.PLAYER_VIDEO_ELEMENT_APPENDED]:re.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[re.PLAYER_VIDEO_ELEMENT_REMOVED]:re.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[re.PLAYER_DISPLAYED_CUES_CHANGED]:re.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[re.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:re.PLAYER_VIDEO_PROFILE_CHANGED,[re.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:re.PLAYER_PLAYBACK_SPEED_CHANGED,[re.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:re.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_translateDuration(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_handleProgress(e){const{data:t}=e;this.emit(re.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(re.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 An(o.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(re.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(re.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(re.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(re.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(s.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(re.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(s.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(re.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(re.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(re.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(re.LIST_PLAYER_ERROR,n),this.emitSync(re.LIST_PLAYER_ERROR_SYNC,n);const o=!!n.error&&n.error.listPlayerIgnore;o||this._listErrorCount++,n.canPlayNext&&(o||this._listErrorCount<=this._maxListErrors?this.next(s.TRACK_ERROR):this.emit(re.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(re.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(re.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(re.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),se.SUCCESS}_preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),se.SUCCESS)))}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(se.CANCELLED);this.emitSync(re.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const o=++this._listPlayCount,i=this._loadedOptions;let r=!0,a=0,l=3e4;i&&(1===o?(r=!i.paused,a=i.initialPosition||i.position||0):a=i.position||0);const c=t===s.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(r=!t.paused),void 0!==t.position&&(a=t.position),void 0!==t.playedThreshold&&(l=t.playedThreshold)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!r,position:a,playedThreshold:l};const u=this._handleTrackLoaded.bind(this,{uid:this._uid,track:this._currentTrack,options:this._currentTrackOptions,list:this._loadedList});return this._getTrackPlayer().then((t=>this._currentSeqId!==n?se.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:r,position:a,playedThreshold:l,continuePrevious:c},u)).catch((()=>{})),se.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;if(!e)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));const t={reason:s.TRACK_DONE,listConstants:vn};return e.peekNext(t).then((e=>e===vn.FORBIDDEN?se.FORBIDDEN:e===vn.NULL_VALUE?this._preloadUpcomingTrack():e===vn.LIST_END?se.LIST_END:Tn(e)&&e.playable?this._preloadTrack(e):se.INVALID))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),se.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,duration:-1,paused:!1,reason:s.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 se.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:s.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:s.FORWARD_BUTTON,listConstants:vn}).then((e=>e!==vn.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new An(o.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(re.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vn};return t.next(i).then((o=>this._currentSeqId!==n?se.CANCELLED:o===vn.FORBIDDEN?se.FORBIDDEN:o===vn.NULL_VALUE?this.next(e):o===vn.LIST_END?(this.emit(re.LIST_PLAYER_LIST_ENDED,{list:t,reason:s.END_PLAY}),this.clear(e),se.LIST_END):Tn(o)?o.playable?this._changeTrack(o,e,n):(this.emit(re.LIST_PLAYER_TRACK_UNPLAYABLE,{track:o,list:t}),this.next(e)):se.INVALID))}previous(e){if(!e)return Promise.reject(new An(o.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(re.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vn};return t.previous(i).then((o=>this._currentSeqId!==n?se.CANCELLED:o===vn.FORBIDDEN?se.FORBIDDEN:o===vn.NULL_VALUE?this.previous(e):o===vn.LIST_START?(this.emit(re.LIST_PLAYER_LIST_ENDED,{list:t,reason:s.END_PLAY}),this.clear(e),se.LIST_END):Tn(o)?o.playable?this._changeTrack(o,e,n):(this.emit(re.LIST_PLAYER_TRACK_UNPLAYABLE,{track:o,list:t}),this.previous(e)):se.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>se.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?se.CANCELLED:se.FORBIDDEN)))):Promise.resolve(se.SUCCESS):Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>se.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?se.CANCELLED:se.FORBIDDEN)))):Promise.resolve(se.SUCCESS):Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>se.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?se.CANCELLED:se.FORBIDDEN)))):Promise.resolve(se.SUCCESS):Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||s.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(re.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),se.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(re.LIST_PLAYER_CLEARED,null),se.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(re.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(se.SUCCESS)}setRepeatMode(e){if(!(e in Sn))return Promise.reject(new An(o.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(re.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(se.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(re.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),se.SUCCESS)))}seek(e,t=s.SEEK){var n,i;const r=this._loadedList;if(!r)return Promise.reject(new An(o.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof r.allowSeeking&&!r.allowSeeking())return Promise.reject(new An(o.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const a=null!==(i=null===(n=r.handleSeek)||void 0===n?void 0:n.call(r,e,{reason:t,listConstants:vn}))&&void 0!==i?i:e;return a===vn.PAUSE?this.pause().then((t=>(this.emit(re.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),t))):a===vn.IGNORE?(this.emit(re.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:a}),Promise.resolve(se.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(a),se.SUCCESS))):Promise.resolve(se.SUCCESS)}getListConstants(){return vn}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((()=>se.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>se.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((()=>se.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>se.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>se.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?se.SUCCESS:se.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}getAudioProcessor(){return this._getTrackPlayer().then((e=>e.getAudioProcessor()))}}const On=de.P.forTag("playback.init");function Cn(e){return new Promise(((t,n)=>{var o,i,r,a,s,l,c;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===(o=window.console)||void 0===o||o.warn("%cDRM might not be available from unsecure contexts","background: #222; color: #bada55; font-size: 40px")}const{transport:u}=e,[d="",p=""]=(e.sdkId||"").split(":"),f=Object.assign(Object.assign({},e),{tracker:rn.create(),audioResolver:new $t(u),videoResolver:new an(u),licenseURLResolver:new ln({transport:u,sdk:{name:d,version:p},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(i=e.newBufferPerTrack)||void 0===i||i,preinitMediaElement:null===(r=e.preinitMediaElement)||void 0===r||r});e.unauthenticatedLogs&&!(null===(a=e.loggerOptions)||void 0===a?void 0:a.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(s=null==e?void 0:e.loggerOptions)||void 0===s?void 0:s.deviceInfo)||Promise.all([null===(l=e.loggerOptions)||void 0===l?void 0:l.platform,null===(c=e.loggerOptions)||void 0===c?void 0:c.clientVersion]).then((([t,n])=>{e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{deviceInfo:{platform:t,version:n}})})),Kt.create(f).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),o=function(e){return new cn(e)}(Object.assign(Object.assign({},n),{transport:u,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=Xt.create({transport:u,player:t,logSender:o});return n.disableMux||gn.create({player:t,mux:ue,envKey:null==n?void 0:n.muxEnvKey,sdk:d,sdkVersion:p,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>On.info("MuxReporter ready")),(e=>On.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:i}})).then(t,n)}))}class kn extends l.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({[re.LIST_PLAYER_CAPPED]:this._onCapped.bind(this),[re.LIST_PLAYER_TRACK_ENDED]:this._onTrackEnded.bind(this),[re.LIST_PLAYER_BEFORE_VOLUME_CHANGE]:this._onBeforeVolumeChange.bind(this),[re.LIST_PLAYER_VOLUME_CHANGED]:this._onVolumeChanged.bind(this),[re.LIST_PLAYER_ERROR]:e=>{this._onError(e,f.PLAYBACK)}}),this.proxyEmitAll(e,{[re.LIST_PLAYER_AUTOPLAY_FAILED]:"autoplay_failed",[re.LIST_PLAYER_TRACK_LOADED]:"track_loaded",[re.LIST_PLAYER_DURATION_CHANGED]:"duration_changed",[re.LIST_PLAYER_POSITION_CHANGED]:"position_changed",[re.LIST_PLAYER_PROGRESS]:"progress",[re.LIST_PLAYER_BUFFER_STALLED]:"stalled",[re.LIST_PLAYER_BUFFERING_END]:"buffering_end",[re.LIST_PLAYER_BUFFERING_START]:"buffering_start",[re.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:"max_list_errors_reached",[re.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:"video_element_appended",[re.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:"video_element_removed",[re.LIST_PLAYER_LIST_ENDED]:"context_ended",[re.LIST_PLAYER_SEEK_HANDLED]:"streamer_seek_handled",[re.LIST_PLAYER_DISPLAYED_CUES_CHANGED]:"displayed_cues_changed",[re.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:"subtitle_languages_loaded",[re.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===se.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&&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=s.FORWARD_BUTTON){return this._listPlayer.next(e).then(this._assertOperationSuccess)}canChangeTrack(){return this._listPlayer.canChangeTrack()}previousTrack(e=s.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 Rn 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 Rn(e,t);return n.unrecoverable=!0,n}}class Ln{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 Ln(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 Rn(i.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 o=this._currentState&&this._currentState.transitions.advance;o&&(t=e.states[o.state_index],n=o.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(se.SUCCESS)}setShuffle(){return Promise.resolve(se.SUCCESS)}setRepeatMode(){return Promise.resolve(se.SUCCESS)}next(e){const t=this._currentState;let n=null;if(t){const o=t.transitions;if(e.reason===s.FORWARD_BUTTON)"skip_next"in o&&(n=o.skip_next);else"advance"in o&&(n=o.advance)}return this._transitionTo(e,n,!1)}peekNext(e){const t=this._currentState;let n=null;if(t){const o=t.transitions;if(e.reason===s.FORWARD_BUTTON)"skip_next"in o&&(n=o.skip_next);else"advance"in o&&(n=o.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!==s.REMOTE?t.listConstants.IGNORE:e}allowSeeking(){return!!this._currentState&&!this._currentState.disallow_seeking}_transitionTo(e,t,n=!1){return new Promise((o=>{var i;const r=e.reason,a=e.listConstants;if(!t)return o(a.FORBIDDEN);const s=this._stateMachine;if(!s)return o(a.NULL_VALUE);const l=s.states[t.state_index];if(!l)return o(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 o(a.NULL_VALUE);if(!this._currentState)return o(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 o(a.NULL_VALUE);let t=this._uri;c.metadata&&c.metadata.context_uri&&(t=c.metadata.context_uri);const n=r,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,audioGain:e.gainDb};return o(u)}))}))}getCurrentState(){return this._currentState}}var In,Nn=n(50346);!function(e){e.ON="ON",e.OFF="OFF",e.NONE="NONE"}(In||(In={}));const wn=/^disallow_([^]+)_reasons$/;const Dn=T.P.forTag("tp.stream.PlaybackStateObserver");class Mn extends l.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 Mn(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,o,i,r,a,s,l,c;const{stateMachine:u,stateRef:d,position:p,paused:f,loading:h,currentTrackInfo:m}=e.data,g=null==u?void 0:u.states;if(!u||!(null==g?void 0:g.length)||!d)return void Dn.warn("_onStateChanged called with no current state",e);const v=g[d.state_index],y=u.tracks[null==v?void 0:v.track];if(!v||!y)return void Dn.warn("_onStateChanged called with no current state or track",e);let _=null!==(t=m.duration)&&void 0!==t?t:0;const b=this._createTrackWindow(u,v,_);_||(_=null!==(o=null===(n=b.current_track)||void 0===n?void 0:n.duration_ms)&&void 0!==o?o:0);const S=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}(v.restrictions||{},f),E=function(e){const t={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],i=!(!o||!o.length);t[n.replace(wn,"$1")]=i}return t}(S),A={timestamp:Date.now(),context:{uri:null!==(r=null===(i=y.metadata)||void 0===i?void 0:i.context_uri)&&void 0!==r?r:null,metadata:{}},position:p,duration:_,paused:f,playback_quality:null!==(a=m.playbackQuality)&&void 0!==a?a:bn.UNKNOWN,playback_features:{hifi_status:null!==(s=m.hifiStatus)&&void 0!==s?s:In.NONE,change_playback_speed:null!==(l=m.changePlaybackSpeed)&&void 0!==l&&l},shuffle:this._getShuffleSetting(u),repeat_mode:this._getRepeatSetting(u),track_window:b,restrictions:S,disallows:E,loading:h,playback_speed:m.playbackSpeed,playback_id:v.state_id};(null===(c=y.metadata)||void 0===c?void 0:c.context_description)&&(A.context.metadata.context_description=y.metadata.context_description),this._currentState=A,this.emit("state_changed",{state:A?Object.assign({},A):null})}_createTrackWindow(e,t,n){const o=e.states;return{current_track:this._getTrackMetadata(e,t,n),next_tracks:this._getNextStates(t,o).map((t=>this._getTrackMetadata(e,t,null))).filter((e=>!!e)),previous_tracks:this._getPreviousStates(t,o).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,o=[];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&&o.push(e),i=e,o.length>=n)break}return o}_getPreviousStates(e,t){const n=this._numPreviousTracks,o=[];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&&o.unshift(e),i=e,o.length>=n)break}return o}_getTrackMetadata(e,t,n){const o=null==e?void 0:e.tracks[t.track];if(!(null==o?void 0:o.metadata))return null;const i=o.metadata,r=o.manifest&&"manifest_ids_video"in o.manifest,a=o.track_type.toLowerCase(),s=(0,Nn.EC)(i.uri),l=i.linked_from_uri?(0,Nn.EC)(i.linked_from_uri):null;return{id:s?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?l.id:null},media_type:r?"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 xn=/^https:\/\//,Fn={[w.FILE_URLS_MP3]:le.MP3,[w.FILE_URLS_EXTERNAL]:le.MP3,[w.FILE_IDS_MP3]:le.MP3,[w.FILE_IDS_MP4]:le.MP4,[w.FILE_IDS_MP4_DUAL]:le.MP4,[w.FILE_IDS_CBCS]:le.MP4_CBCS,[w.FILE_IDS_MP4FLAC]:le.MP4_FLAC,[w.MANIFEST_IDS_VIDEO]:le.MANIFEST_ID};class Un{constructor(e){this._descriptor=e.descriptor,this._listPlayer=e.listPlayer}static create(e){return new Un(e)}_resolveFromStateTrack(e,t,n){var o,i,r,a;const s=e.manifest,l=e.metadata.uri,c=(0,Nn.EC)(l);let u=null;for(const e of n){const n=s[e];if(n)for(const s of n){if(!s.file_id&&!xn.test(null!==(o=s.file_url)&&void 0!==o?o:""))continue;const n=!(!c||c.type!==Nn.JM.AD&&c.type!==Nn.JM.INTERRUPTION);if(e===w.FILE_IDS_MP3&&!n)continue;let d,p;if(d=s.track_type?s.track_type.toLowerCase():e===w.MANIFEST_IDS_VIDEO?"video":"audio",s.format){const e=parseInt(s.format,10);mt[e]&&(p=e)}const f=null!==(i=s.bitrate)&&void 0!==i?i:e===w.FILE_IDS_MP4FLAC?1411200:128e3,h=null!==(r=s.bitrate)&&void 0!==r?r:e===w.FILE_IDS_MP4FLAC?7e5:128e3,m=Fn[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:m,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,gainDb:s.gain_db,isAd:n,noLog:!1,noTSV:n,noStats:n,noManifest:m===le.MP3,playable:!0},e===w.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 Bn=1e3,Vn=0,Gn=!1;class Jn{constructor(e,t={}){this._cancelFn=null,this._deferredTimer=0,this._fn=e,this._cancelFn=t.cancel||null,this._threshold=t.threshold||Bn,this._ts=t.initialTimetamp||Vn,this._blockInital=t.blockInitial||Gn}_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.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,o=this._generateStatePayload(n,jn.TRACK_DATA_FINALIZED);this._setSequenceNumber(o),this._nextFinalizedDataPayload=o}_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,o,i,r,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!==(o=null!==(n=null==d?void 0:d.duration_override)&&void 0!==n?n:null==u?void 0:u.metadata.duration)&&void 0!==o?o:0,{data:f}=e,h=f.track.metadata||{},m=this._currentTrackInfo.playbackSpeed||1;this._currentTrackInfo={duration:p,mediaType:f.track.mediaType.toUpperCase(),fileFormat:f.track.fileFormat,bitrate:null===(r=null===(i=f.logData)||void 0===i?void 0:i.format)||void 0===r?void 0:r.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:m};const g=f.options;c.setPaused(!g.autoplay),this._setCurrentTrackPosition(g&&g.position||0),this._updateState(jn.BEFORE_TRACK_LOAD),this._startedPlayingUpdateSent=!1,this._initialUpdateSent=!1}_onCapped(){this._listPlayer.clear(s.CAPPED),this._currentContext=null,this._updateState(jn.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=>{Hn.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(jn.ERROR))}_onSpeedChanged(e){this._currentTrackInfo.playbackSpeed=e.data.playback_speed,this._updateState(jn.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?jn.PAUSE:jn.RESUME):(this._lastProcessedStateId=null,this._emitStateChanged()))}_onPlayThresholdReached(e){this._initialUpdateSent=!0,this._setAllTrackPositions(e.data.position),this._updateState(jn.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(jn.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(jn.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(jn.PROGRESS)}_onTrackDataCreatedEvent(){this._waitingForTrackingData=(0,c.$)()}_onTrackDataFinalizedEvent(e){const t=this._nextFinalizedDataPayload;t&&(t.playback_stats=e.data.playbackStats,this._updateState(jn.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:"",o={seq_num:void 0,volume:this._currentGaiaVolume,command_id:n};this._volumeDebouncer.async(o)}_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 Rn(i.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 o=this._generateStatePayload(t,jn.DEREGISTER);this._setSequenceNumber(o);const i=`${this._endpoint}/v1/devices/${this._deviceId}`;return this._transport.request(i,{authorize:!0,method:"DELETE",payload:JSON.stringify(o),responseType:"json",retry:Zn}).then((e=>{if(200!==e.status&&204!==e.status)return this._registered=!0,!1;const{body:t}=e;return t&&(t.endsong&&Kn.log(t.endsong),t.endsongs&&(Yn.log(t.endsongs),this.emit("internal_endcontent",{endcontents:t.endsongs}))),this._clearSessionData(),this.emit("deregistered",null),!0}))}_emitError(e,t={}){this.emit("error",{error:e,source:f.TRACK_PLAYBACK}),e.registration||this._logger.logJSSDKError({source:"tpapi-client",source_version:$.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){Hn.error("Track-Playback Logging Error",e)}))}_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=Rn.fatal(i.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=Rn.fatal(i.TP_REGISTRATION_FAILED_NON_PREMIUM,"Cannot register to Track Playback with non-premium user."):200!==e.status?t=Rn.fatal(i.TP_REGISTRATION_FAILED_WITH_STATUS,`track-playback service responded with status ${e.status} when registering device`):e.body||(t=Rn.fatal(i.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&&Kn.log(n.endsong),n.endsongs&&(Yn.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{Hn.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(jn.PING);break;default:this._emitError(new Rn(i.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),o=this._currentContext?this._currentContext.getStateRef():null,i=this._generateStatePayload(o);i.rejected_state_refs=n,this._setSequenceNumbers(i,n.length);const r=()=>{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:Zn}).then(this._handleStateConflictResponse).then(r,r)}_replaceState(e){var t,n,o;const i=this._listPlayer,r=e.state_machine,a=e.state_ref,l=this._createStateRef(r,a);if(!this._isCurrentStateRef(e.prev_state_ref))return void this._rejectState(l);if(!a)return void this._clearContextAndState();const c=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!==l,"New state reference is null"),this._currentContext&&(null==c?void 0:c.state_id)===l.state_id){const t=this._currentContext;t.setStateMachine(r),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 o=parseInt(e.seek_to,10);t.allowSeeking()&&!isNaN(o)&&(i.seek(o,s.REMOTE),this._setCurrentTrackPosition(o),n=!0),n?this._emitStateChanged():(this._lastProcessedStateId=null,this._updateState(jn.MODIFY_CURRENT_STATE))}else{this._lastProcessedStateId=null!==(o=l.state_id)&&void 0!==o?o:null,this._currentContext&&this._onBeforeTrackChange();const t=this._ListClass.create("spotify:app:jsspeaker",this._manifestTrackResolver);t.setStateMachine(r),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:s.REMOTE})}}_clearContextAndState(){const e=this._listPlayer;e.pause().catch((function(){})),e.clear(s.REMOTE),this._currentContext=null,this._updateState(jn.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:Xn})}_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,o;if(!this._registered)return;let i,r;if(t?(i=t.state_ref,r=t):(i=null!==(o=null===(n=this._currentContext)||void 0===n?void 0:n.getStateRef())&&void 0!==o?o:null,r=this._generateStatePayload(i,e)),!this._shouldSendPayload(r))return void Hn.info("State update ignored (duplicate).",r);if(this._emitStateChanged(),this._isSendingUpdate&&this._limitStateUpdates)return this._logUnsentStateUpdate(r),void this._queueSendUpdate.push(e);this._isSendingUpdate=!0,this._queueSendUpdate=[],this._setSequenceNumber(r),this._lastSentStateUpdatePayload=r;const a=()=>{this._isSendingUpdate=!1,this._queueSendUpdate.length&&this._updateState(this._queueSendUpdate[this._queueSendUpdate.length-1]),Hn.info("State update sent.",e,r)},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(r),retry:Xn}).then(this._handleStateUpdateResponse.bind(this,i)).then(a,(e=>{this._emitError(e),a()}))}_shouldSendPayload(e){const t=this._lastSentStateUpdatePayload;if(!t||!t.state_ref||!e.state_ref)return!0;const n=e.state_ref,o=t.state_ref;if(n.paused!==o.paused||n.state_id!==o.state_id||n.state_machine_id!==o.state_machine_id)return!0;const i=e.sub_state,r=t.sub_state;if(i.playback_speed!==r.playback_speed||i.position!==r.position)return!0;if(e.previous_position!==t.previous_position)return!0;return Math.abs((i.duration||0)-(r.duration||0))>=26}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(),jn.REGISTER),this._setSequenceNumber(e)),this._sendDevicesRequest("POST",{device:this._deviceInfo,outro_endcontent_snooping:"true"==={}.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 $n(e,t={}){return function(e,t,n={}){var o,i,r,a,s,l,c,u,d;const p=e.getSDKId(),f=e.getPublicTransport(),h=e.getLogger(),m=e.getDeviceDescriptor(),g=null!==(o=n.initialVolume)&&void 0!==o?o:1;n.audioProcessorOptions=Object.assign(Object.assign({},n.audioProcessorOptions),{disable:null===(r=null===(i=n.audioProcessorOptions)||void 0===i?void 0:i.disable)||void 0===r||r});const v=Cn(Object.assign(Object.assign({},n),{transport:f,sdkId:e.getUntaggedSDKId(),loggerOptions:{disableMux:null===(l=null!==(s=null===(a=null==n?void 0:n.mux)||void 0===a?void 0:a.disable)&&void 0!==s?s:null==n?void 0:n.disableMux)||void 0===l||l,muxEnvKey:null!==(u=null===(c=null==n?void 0:n.mux)||void 0===c?void 0:c.envKey)&&void 0!==u?u:null==n?void 0:n.muxEnvKey,deviceInfo:m.then((e=>({platform_name:e.getPlatformName(),platform:e.getPlatformIdentifier(),version:e.getPlatformVersion(),brand:e.getBrand(),model:e.getModel(),type:e.getType()}))),muxCustomDimensions:null===(d=null==n?void 0:n.mux)||void 0===d?void 0:d.customDimensions,platform:e.getPlatformIdentifier(),clientVersion:e.getPlatformVersion()}})).then((({player:e})=>e)),y=v.then((e=>e.getMediaConfig())),_=Promise.all([m,y]).then((([e,t])=>(e.getCapability("audio_podcasts")&&!n.disableExternalFiles&&e.appendManifestFormat(w.FILE_URLS_EXTERNAL),t.keysystem===ae.FAIRPLAY?e.appendManifestFormat(w.FILE_IDS_CBCS):t.keysystem!==ae.WIDEVINE||n.preferMultiDRMFormat?e.appendManifestFormat(w.FILE_IDS_MP4_DUAL,w.FILE_IDS_MP4):(-1!==t.formats.audio.indexOf('audio/mp4; codecs="flac"')&&e.getCapability("lossless_playback")&&e.appendManifestFormat(w.FILE_IDS_MP4FLAC),e.appendManifestFormat(w.FILE_IDS_MP4,w.FILE_IDS_MP4_DUAL)),t.supports.protected_video&&e.getCapability("video_playback")&&e.prependManifestFormat(w.MANIFEST_IDS_VIDEO),e))),b=Pn.create({trackPlayer:v}),S=Un.create({descriptor:m,listPlayer:b}),{playbackServiceClient:E,playbackStateObserver:A}=t({initialVolume:g,listPlayer:b,logger:h,transport:f,clientVersion:p,descriptor:_,endpoint:n.endpoint,manifestTrackResolver:S});return new kn({client:e,playbackServiceClient:E,playbackStateObserver:A,initialVolume:g,playerPromise:v,listPlayer:b,stopOnBackground:n.stopOnBackground})}(e,(e=>{const t=Qn.create(Object.assign(Object.assign({},e),{ListClass:Ln}));return{playbackServiceClient:t,playbackStateObserver:Mn.create(t)}}),t)}const eo=T.P.forTag("transport.server_time");class to{constructor(e){this._serverTime=0,this._serverTimeFetchedAt=0,this._transport=e}static create(e){return new to(e)}_parseServiceResponse(e,t){const n=Date.now(),o=t.status;return o===P.G.OK?this._serverTime=parseInt(t.body.timestamp,10)+Math.round((n-e)/2):(eo.error(`Cannot fetch server time. Service responded with ${o}`),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 no;!function(e){e.LOCAL_PLAYER_DISABLED="local_player_disabled",e.STOPPED="stopped",e.REMOTE_ACTIVATED="remote_activated",e.UNKNOWN="unknown"}(no||(no={}));class oo 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 oo(e,t);return n.unrecoverable=!0,n}}class io{constructor(e){this._transport=e.transport,this._metadataCache=new pe.z(e.cacheSize||20)}static create(e){return new io(e)}_decorateTrackWindow(e){const t=this._metadataCache,n={current_track:null,next_tracks:[],previous_tracks:[]};let o,i,r;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)),o=e.next_tracks.length;for(;o--;)r=e.next_tracks[o],i=t&&r&&"uri"in r&&t.get(r.uri),n.next_tracks[o]=Object.assign({uid:r.uid},i||r);for(o=e.previous_tracks.length;o--;)r=e.previous_tracks[o],i=t&&r&&"uri"in r&&t.get(r.uri),n.previous_tracks[o]=Object.assign({uid:r.uid},i||r);return n}_buildTrackList(e){const t=[],n={},o=[e.current_track,...e.next_tracks,...e.previous_tracks];for(const e of o)e&&!n[e.uri]&&t.push(e.uri);return t}_cacheMetadata(e){const t=[],n=[],o=this._metadataCache;for(const i of e){if(o.get(i))continue;const e=(0,Nn.EC)(i);e&&(e.type===Nn.JM.TRACK?n.push(e.id):e.type===Nn.JM.EPISODE&&t.push(e.id))}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,o=["https://@webapi/v1/",e,"?ids=",t.join(","),"&market=from_token"].join("");return this._transport.request(o,{responseType:"json"}).then((t=>{var o;if(200!==t.status)return!1;const i=null===(o=t.body)||void 0===o?void 0:o[e];if(!i)return!1;let r=i.length;for(;r--;){let t=i[r];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!==Nn.JM.LOCAL_TRACK)return null;return{uri:e.toURI(),type:"local",uid:t,media_type:"audio",track_type:"audio",name:e.track,artists:[{uri:(0,Nn.ak)(e.artist).toURI(),name:e.artist}],album:{uri:(0,Nn.Jf)(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!==Nn.JM.AD&&e.type!==Nn.JM.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 ro=T.P.forTag("harmony.controller"),ao=/^disallow_([^]+)_reasons$/,so={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},lo="premium",co="on-demand",uo={unknown:bn.UNKNOWN,default:bn.DEFAULT,low:bn.LOW,normal:bn.NORMAL,normalized:bn.NORMAL,high:bn.HIGH,veryhigh:bn.VERY_HIGH,hifi:bn.HIFI},po={on:In.ON,off:In.OFF,none:In.NONE};function fo(e,t){if(!e)return[];const n=[],o=[Nn.JM.TRACK,Nn.JM.EPISODE];for(let i=0,r=e.length;i{})))}_onDeviceStateChanged(e){var t,n;const{deviceState:o,hasOrphanedState:i}=e.data,r=!!(null===(n=null===(t=this._lastDeviceInfoData)||void 0===t?void 0:t.deviceInfo)||void 0===n?void 0:n.local);this._lastDeviceInfoData={deviceInfo:o,hasOrphanedState:i},r&&!(null==o?void 0:o.local)&&this._playerClient.getDevices().then((({localDevice:e})=>{let t=no.STOPPED;i?e||(t=no.LOCAL_PLAYER_DISABLED):t=no.REMOTE_ACTIVATED,this.emit("device_deactivated",{reason:t})})).catch((e=>{ro.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?lo:co)).catch((()=>co))}_generatePlayOptions(e,t){return this._getLicense().then((n=>{const o={license:n};if(!e)return o;if(("index"in e||"trackUID"in e||"trackURI"in e||"pageIndex"in e)&&(o.skip_to={track_uid:e.trackUID,track_index:e.index,track_uri:e.trackURI,page_index:e.pageIndex}),"initialOffset"in e&&(o.seek_to=e.initialOffset),"paused"in e&&(o.initially_paused=e.paused),"alwaysPlaySomething"in e&&(o.always_play_something=e.alwaysPlaySomething),t)return o;o.player_options_override={};const i=o.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 o}))}_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){if(!e)return;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)&&so[n]?t[n]=e.restrictions[n]:so[n]&&(t[n]=[]);return t}_parseDisallows(e){const t={},n=e.restrictions;for(const e in n)if(n.hasOwnProperty(e)&&so[e]){const o=n[e],i=!(!o||!o.length);t[e.replace(ao,"$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,o,i,r,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!==(r=uo[null!==(i=null===(o=e.playback_quality)||void 0===o?void 0:o.bitrate_level)&&void 0!==i?i:"unknown"])&&void 0!==r?r:bn.UNKNOWN,playback_features:{hifi_status:po[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,o){const i=t+((o||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={},o=[];if(!e.track)return Promise.resolve(t);const i=e.track.uri;if(!i)return Promise.resolve(t);const r=this._metadataDecorator,a=(0,Nn.EC)(i),s=r.formatLocalTrack(a,e.track.uid),l=r.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,o.push(i)),this._isRestricted(e,"peeking_next")||this._fillWindow(o,t.next_tracks,n,e.next_tracks?e.next_tracks.slice(0,5):[]),this._isRestricted(e,"peeking_prev")||this._fillWindow(o,t.previous_tracks,n,e.prev_tracks?e.prev_tracks.slice(-5):[],!0),this._decorate?this._metadataDecorator.decorateTrackWindow(t,o):Promise.resolve(t)}_fillWindow(e,t,n,o,i){i&&o.reverse();for(const r of o){const o=r.uri,a=(0,Nn.EC)(o);if(!o||"spotify:delimiter"===o||a&&(a.type===Nn.JM.AD||a.type===Nn.JM.INTERRUPTION))continue;const s=this._metadataDecorator.formatLocalTrack(a,r.uid),l=s||{uri:o,uid:r.uid,type:"unknown"};if(s||o in n||(n[o]=1,e.push(o)),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((o=>{const i={context:e,play_origin:this._generatePlayOrigin(n&&n.playOrigin),options:o,logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)};return 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 ro.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(!(0,Nn.EC)(e))return Promise.reject(new TypeError("Invalid Spotify URI"));const o={uri:e,url:`context://${e}`,metadata:n&&n.contextMetadata||{}};return this._play(o,t,n)}playPages(e,t,n){var o;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid pages array."));let i;try{i=function(e){var t,n,o;const i=[];for(const r of e)i.push({tracks:Array.isArray(r.tracks)?fo(r.tracks):void 0,page_url:null!==(t=ho(r.pageURL))&&void 0!==t?t:void 0,next_page_url:null!==(n=ho(r.nextPageURL))&&void 0!==n?n:void 0,metadata:null!==(o=r.metadata)&&void 0!==o?o:void 0});return i}(e)}catch(e){return Promise.reject(e)}const r={uri:null!==(o=null==n?void 0:n.contextURI)&&void 0!==o?o:"spotify:internal:harmony-play-pages",metadata:(null==n?void 0:n.contextMetadata)||{},pages:i};return this._play(r,t,n)}playTracks(e,t,n){var o;if(!Array.isArray(e))return Promise.reject(new TypeError("Invalid tracks array."));let i;try{i=fo(e)}catch(e){return Promise.reject(e)}const r={uri:null!==(o=null==n?void 0:n.contextURI)&&void 0!==o?o:"spotify:internal:harmony-play-tracks",metadata:(null==n?void 0:n.contextMetadata)||{},pages:[{tracks:i}]};return this._play(r,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 o,i;try{o=fo(e),i=fo(t)}catch(e){return Promise.reject(e)}const r={next_tracks:o.length?o:void 0,prev_tracks:i.length?i:void 0};return this._playerClient.setQueue(r,n)}transfer(e,t={}){return this._playerClient.transfer(e,t)}pause(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.pause(e,n)}resume(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.resume(e,n)}togglePlay(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.togglePlay(e,n)}nextTrack(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return(null==t?void 0:t.track)&&(n.track=b([t.track])[0]),this._playerClient.nextTrack(e,n)}previousTrack(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return(null==t?void 0:t.track)&&(n.track=b([t.track])[0]),this._playerClient.previousTrack(e,n)}seek(e,t){return this._playerClient.seek(e,t)}setShuffle(e,t,n){const o={logging_params:this._generateLoggingParams(null==n?void 0:n.loggingParams)};return this._playerClient.setShuffle(e,t,o)}toggleShuffle(e,t){const n={logging_params:this._generateLoggingParams(null==t?void 0:t.loggingParams)};return this._playerClient.toggleShuffle(e,n)}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 oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const o=this._playerClient,r=n.disallows;switch(e){case h.OFF:return(!r.toggling_repeat_context||!r.toggling_repeat_track)&&o.setOptions({repeating_context:!!r.toggling_repeat_context&&void 0,repeating_track:!!r.toggling_repeat_track&&void 0},t);case h.CONTEXT:return!r.toggling_repeat_context&&o.setOptions({repeating_context:!0,repeating_track:!!r.toggling_repeat_track&&void 0},t);case h.TRACK:return!r.toggling_repeat_track&&o.setOptions({repeating_context:!r.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 go=n(16221);const vo=/connect-state\/v1\/cluster$/,yo=/^([a-zA-Z0-9_%:-]{1,40}).*$/;function _o(e){var t,n,o;return!!e.track&&0===(null!==(o=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!==o?o:0)}const bo="::a_";function So(e){if(!e)return{deviceId:null};const[t,n]=e.split(bo);return{deviceId:t,aliasId:n?parseInt(n,10):void 0}}class Eo extends l.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(vo,this._onClusterMessage),this._descriptorPromise=Promise.resolve(this._descriptor).then((e=>(this._localDeviceId=e.id||"",this._localObserverDeviceId=("hobs_"+this._localDeviceId).replace(yo,"$1"),!0)))}static create(e){return new Eo(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 So(e?e===u?t:e:this._lastActiveDevice?this._lastActiveDevice.id:t)}))}_makeEndpoint(e,t,n){return this._descriptorPromise.then((()=>{const o=this._localDeviceId;return`${this._endpoint}/${e}/${t}/from/${o}/to/${n}`}))}_sendPlayerCommand(e,t=null,n={}){n.endpoint=e;const o={command:n};return this._resolveTargetDevice(t).then((e=>{if(!e.deviceId)throw new oo(i.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return!o.target_alias_id&&e.aliasId&&(o.target_alias_id=e.aliasId),this._makeEndpoint("v1","player/command",e.deviceId)})).then((e=>this._sendRequest(go.n.POST,e,o))).then(this._awaitResponseWithAck)}_sendConnectCommand(e,t=null,n={}){const o="volume"===e?go.n.PUT:go.n.POST,r="volume"===e||"logout"===e;return this._resolveTargetDevice(t).then((t=>{if(!t.deviceId)throw new oo(i.CONNECTAPI_CLIENT_MISSING_DEVICE_ID,"Operation resulted in a null device id");return t.aliasId&&(r?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(o,e,n))).then(this._awaitResponseWithAck)}_sendRequest(e,t,n){const o=this._acknowledgementMaps,i={};o.push(i);const r=()=>{const e=o.indexOf(i);-1!==e&&o.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=>(r(),{response:e,map:i})),(e=>(r(),Promise.reject(e))))}_awaitResponseWithAck(e){var t,n;if(404===e.response.status)return Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_DEVICE,"No such device."));const o=null===(t=e.response.body)||void 0===t?void 0:t.ack_id;if(200===e.response.status&&o){if(null===(n=e.map)||void 0===n?void 0:n[o])return Promise.resolve(!0);const t=(0,c.$)();return this._awaitingAcknowledgment[o]=t,t.promise}return Promise.resolve(202===e.response.status&&!o)}_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 o of n){const n=e.devices[o],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||!g(this._lastActiveDevice,t)){const n=e.player_state,o=n&&_o(n);this.emit("device_state_changed",{deviceState:this._lastActiveDevice,hasOrphanedState:!this._lastActiveDevice&&!!o,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,o=e.metadata.length;t{429===e.status?this.emit("max_subscriptions_reached",{error:new oo(i.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 oo(i.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 oo(i.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 oo(i.CONNECTAPI_CLIENT_NO_SESSION_ID,"The current state does not have a session id")):Promise.reject(new oo(i.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})}transfer(e,t={}){var n,o;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===(o=t.loggingParams)||void 0===o?void 0:o.interactionId})}pause(e,t){return this._sendPlayerCommand("pause",e,t)}resume(e,t){return this._sendPlayerCommand("resume",e,t)}togglePlay(e,t){return this.getContextPlayerState().then((n=>n?n.is_paused?this.resume(e,t):this.pause(e,t):Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"))))}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 oo(i.CONNECTAPI_CLIENT_INVALID_POSITION,"Invalid position.")):this._sendPlayerCommand("seek_to",t,{value:e})}setShuffle(e,t,n){return this._sendPlayerCommand("set_shuffling_context",t,Object.assign({value:!!e},n))}toggleShuffle(e,t){return this.getContextPlayerState().then((n=>{if(!n)return Promise.reject(new oo(i.CONNECTAPI_CLIENT_NO_STATE,"Nothing playing"));const o=n.options&&n.options.shuffling_context;return this.setShuffle(!o,e,t)}))}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 oo(i.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 Ao=Object.assign(Object.assign(Object.assign({},i),r.J),o);function To(e){var t;const n=e.transport;if(!n)throw new TypeError("No Transport instance provided");const o=function(e){return ie.create(e)}(Object.assign(Object.assign({},e.client),{transport:n,hidden:!!e.hidden,playTokenLostBehavior:e.hidden&&!e.onlyLocalState?"stop":"pause"})),i=e.streamer||{},r=e.controller||{};let a,s=!1;e.streamer&&e.streamer.disabled?(e.hidden=!0,e.onlyLocalState=!1,e.claimInactivePlayerStates=!1,s=!0):(a=$n(o,i),r.autoregister=!1,e.onlyLocalState&&(r.decorateTrackWindow=!1,r.disableProgress=!0));const l=function(e,t={}){const n=e.getPublicTransport(),o=e.getVersionDescriptor().tagged,i=Eo.create({autoregister:!("autoregister"in t)||t.autoregister,descriptor:e.getClientDescriptor(),transport:n});return mo.create({client:e,playerClient:i,version:o,serverTime:to.create(n),decorateTrackWindow:"boolean"!=typeof t.decorateTrackWindow||t.decorateTrackWindow,disableProgress:t.disableProgress})}(o,r);return A.create({transport:n,client:o,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})}},51833:(e,t,n)=>{"use strict";n.d(t,{FP:()=>A,Of:()=>P});var o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t0){var o=t[n[0]],i=o.click_actions,r=o.html_content,a=o.impression_url;return{actions:i,format:o.creative_type,htmlContent:r,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 o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},u=function(){for(var e=[],t=0;t1&&r.push("Triggers must all be of the same type."),r}function p(e,t){var n=t.actions,o=t.app,i=t.appUri,c=t.enableLogs,p=t.formats,f=t.locale,h=t.env,m=t.triggers,g=d({formats:p,triggers:m});return g.length>0?(c&&console.error("In-App Messaging: Please fix the following request errors: "+g.join(" ")),Promise.resolve(void 0)):e.request.apply(e,u(function(e){var t=e.actions,n=e.app,o=e.appUri,i=e.formats,a=e.locale,c=e.env,u=e.triggers,d=l(c),p=u.map((function(e){return encodeURIComponent(e.pattern)})),f=r("trigger",p),h=r("ctv_type",i),m=r("action",t),g="@webgate/"+d+"messages?"+h+f+m+"locale="+a+"&trig_type="+u[0].type;return[g,s(n,o)]}({actions:n,app:o,appUri:i,formats:p,locale:f,env:h,triggers:m}))).then((function(e){return a(e)}))}var f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},h=function(){for(var e=[],t=0;t0?(r&&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,o=e.creativeId,i=e.locale,r=e.env,a=l(r),c=encodeURIComponent("spotify:home"),u="@webgate/"+a+"preview?trigger="+c+"&locale="+i+"&trig_type=URI&return_messages=true&relay_creative=true&creative_id="+o;return[u,s(t,n)]}({app:n,appUri:o,creativeId:i,locale:c,env:u}))).then((function(e){return a(e)}))}var g=function(e){var t=e.actions,n=e.app,o=e.enableLogs,i=e.formats,a=e.locale,c=e.transport;return{requestMessage:function(e){var r=e.appUri,s=e.env,l=e.triggers;return p(c,{actions:t,app:n,appUri:r,enableLogs:o,formats:i,locale:a,env:s,triggers:l})},previewMessage:function(e){var t=e.appUri,i=e.creativeId,r=e.env;return m(c,{app:n,appUri:t,creativeId:i,enableLogs:o,locale:a,env:r})},getTriggers:function(e,t){return function(e,t){var n=t.app,o=t.triggerTypes,i=t.env,a=t.formats,s="@webgate/"+l(i)+"triggers?"+r("trig_type",o)+r("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)}}},v=["DISMISS","URL","EXTERNAL_URL","SELECT_OPTION"];function y(e,t,n){var o=document.createElement("iframe");return o.srcdoc=e.htmlContent,o.addEventListener("load",(function(){!function(e,t,n){var o=e.contentDocument,i=e.contentWindow;o&&o.querySelectorAll("[data-click-to-action-id]").forEach((function(e){i&&e instanceof i.HTMLElement&&e.addEventListener("click",(function(e){var o,r=e.currentTarget;if(r instanceof i.HTMLElement||r instanceof HTMLElement){var a=r.dataset.clickToActionId,s=a&&t[a];s&&(o=s.action,v.some((function(e){return e===o})))&&n(s)}}))}))}(o,e.actions,n),function(e){var t=e.contentDocument;t&&(e.style.width=(t.body.getAttribute("data-iframe-width")||_)+"px",e.style.height=t.body.scrollHeight+"px")}(o),t()}),{once:!0}),o}var _=500;var b=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},S=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)},46712:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});const o="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 r{constructor(){this._id={},this.length=0,this.first=null,this.last=null}append(e){if(e.listId)throw new Error(o);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(o);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 r,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,o=this._map;if(n.length>=this._limit){const e=n.first;o[e.key]=null,n.remove(e)}let r=o[e];r?(n.remove(r),r.value=t):(r=new i(t),r.key=e),n.append(r),o[e]=r}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 r,this._map={},e}}},19709:(e,t,n)=>{"use strict";n.d(t,{$_:()=>ui,VB:()=>ee,Po:()=>di});var o=n(4637),i=n(59496);function r(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))}function a(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]r||setTimeout(o,s,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:J,mutate:j,fallback:{}},O),K=function(e,t){var n=f(e,t);if(t){var o=e.use,i=e.fallback,r=t.use,a=t.fallback;o&&r&&(n.use=o.concat(r)),i&&a&&(n.fallback=f(i,a))}return n},Y=(0,i.createContext)({}),W=function(e,t,n){var o=t[e]||(t[e]=[]);return o.push(n),function(){var e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}},z={dedupe:!0},q=(u.defineProperty((function(e){var t=e.value,n=K((0,i.useContext)(Y),t),o=t&&t.provider,r=(0,i.useState)((function(){return o?V(o(n.cache||J),t):c}))[0];return r&&(n.cache=r[0],n.mutate=r[1]),L((function(){return r?r[2]:c}),[]),(0,i.createElement)(Y.Provider,f(e,{value:n}))}),"default",{value:H}),s=function(e,t,n){var o=n.cache,s=n.compare,l=n.fallbackData,u=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,g=n.refreshWhenHidden,v=n.refreshWhenOffline,y=D.get(o),_=y[0],b=y[1],S=y[2],E=y[3],A=w(e),T=A[0],P=A[1],O=A[2],C=(0,i.useRef)(!1),I=(0,i.useRef)(!1),N=(0,i.useRef)(T),x=(0,i.useRef)(t),B=(0,i.useRef)(n),V=function(){return B.current},G=function(){return V().isVisible()&&V().isOnline()},J=function(e){return o.set(O,f(o.get(O),e))},j=o.get(T),H=d(l)?n.fallback[T]:l,K=d(j)?H:j,Y=o.get(O)||{},q=Y.error,X=!C.current,Z=function(){return X&&!d(h)?h:!V().isPaused()&&(u?!d(K)&&n.revalidateIfStale:d(K)||n.revalidateIfStale)},Q=!(!T||!t)&&(!!Y.isValidating||X&&Z()),$=function(e,t){var n=(0,i.useState)({})[1],o=(0,i.useRef)(e),r=(0,i.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,i.useCallback)((function(e){var i=!1,a=o.current;for(var s in e){var l=s;a[l]!==e[l]&&(a[l]=e[l],r.current[l]&&(i=!0))}i&&!t.current&&n({})}),[]);return L((function(){o.current=e})),[o,r.current,a]}({data:K,error:q,isValidating:Q},I),ee=$[0],te=$[1],ne=$[2],oe=(0,i.useCallback)((function(e){return r(void 0,void 0,void 0,(function(){var t,i,r,l,u,f,h,m,g,v,y,_,b;return a(this,(function(a){switch(a.label){case 0:if(t=x.current,!T||!t||I.current||V().isPaused())return[2,!1];l=!0,u=e||{},f=!E[T]||!u.dedupe,h=function(){return!I.current&&T===N.current&&C.current},m=function(){var e=E[T];e&&e[1]===r&&delete E[T]},g={isValidating:!1},v=function(){J({isValidating:!1}),h()&&ne(g)},J({isValidating:!0}),ne({isValidating:!0}),a.label=1;case 1:return a.trys.push([1,3,,4]),f&&(M(o,T,ee.current.data,ee.current.error,!0),n.loadingTimeout&&!o.get(T)&&setTimeout((function(){l&&h()&&V().onLoadingSlow(T,n)}),n.loadingTimeout),E[T]=[t.apply(void 0,P),F()]),b=E[T],i=b[0],r=b[1],[4,i];case 2:return i=a.sent(),f&&setTimeout(m,n.dedupingInterval),E[T]&&E[T][1]===r?(J({error:c}),g.error=c,y=S[T],!d(y)&&(r<=y[0]||r<=y[1]||0===y[1])?(v(),f&&h()&&V().onDiscarded(T),[2,!1]):(s(ee.current.data,i)?g.data=ee.current.data:g.data=i,s(o.get(T),i)||o.set(T,i),f&&h()&&V().onSuccess(i,T,n),[3,4])):(f&&h()&&V().onDiscarded(T),[2,!1]);case 3:return _=a.sent(),m(),V().isPaused()||(J({error:_}),g.error=_,f&&h()&&(V().onError(_,T,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||p(n.shouldRetryOnError)&&n.shouldRetryOnError(_))&&G()&&V().onErrorRetry(_,T,n,oe,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,v(),h()&&f&&M(o,T,g.data,g.error,!1),[2,!0]}}))}))}),[T]),ie=(0,i.useCallback)(U.bind(c,o,(function(){return N.current})),[]);if(L((function(){x.current=t,B.current=n})),L((function(){if(T){var e=T!==N.current,t=oe.bind(c,z),n=0,o=W(T,b,(function(e,t,n){ne(f({error:t,isValidating:n},s(ee.current.data,e)?c:{data:e}))})),i=W(T,_,(function(e){if(0==e){var o=Date.now();V().revalidateOnFocus&&o>n&&G()&&(n=o+V().focusThrottleInterval,t())}else if(1==e)V().revalidateOnReconnect&&G()&&t();else if(2==e)return oe()}));return I.current=!1,N.current=T,C.current=!0,e&&ne({data:K,error:q,isValidating:Q}),Z()&&(d(K)||k?t():R(t)),function(){I.current=!0,o(),i()}}}),[T,oe]),L((function(){var e;function t(){var t=p(m)?m(K):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){ee.current.error||!g&&!V().isVisible()||!v&&!V().isOnline()?t():oe(z).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,g,v,oe]),(0,i.useDebugValue)(K),u&&d(K)&&T)throw x.current=t,B.current=n,I.current=!1,d(q)?oe(z):q;return{mutate:ie,get data(){return te.data=!0,K},get error(){return te.error=!0,q},get isValidating(){return te.isValidating=!0,Q}}},function(){for(var e=[],t=0;t0;)u=d[h](u);return u(r,a||c.fetcher,c)}),X=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};var Z=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const Q=(e,t,n)=>{const{data:o}=q("masthead-data",(()=>Z(void 0,void 0,void 0,(function*(){return yield(o={market:e,language:t,testFeature:n},X(void 0,void 0,void 0,(function*(){const{language:e,market:t,testFeature:n}=o,i=window.location.origin.includes(".com")?"https://www.spotify.com":"https://www-testing.spotify.net",r=n?`&testFeature=${n}`:"",a=yield fetch(`${i}/api/masthead/v1/masthead?market=${t}&language=${e}${r}`,{credentials:"include"});return yield a.json()})));var o}))),{errorRetryCount:2});return null!=o?o:{}},$=(0,i.createContext)({}),ee=({market:e,language:t,children:n,testFeature:i})=>{const r=Q(e,t,i);return(0,o.jsx)($.Provider,Object.assign({value:r},{children:n}))};var te,ne,oe;!function(e){e.UNKNOWN="UNKNOWN",e.NORMAL="normal",e.CONDENSED="condensed",e.MESSAGES_ONLY="messagesOnly"}(te||(te={})),function(e){e.INSTAGRAM="Instagram",e.TWITTER="Twitter",e.FACEBOOK="Facebook"}(ne||(ne={})),function(e){e.CCPA="Ccpa"}(oe||(oe={}));oe.CCPA;var ie=n(64709);const re="#121212",ae="rgba(255, 255, 255, 0.1)",se="#000000",le=getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),ce="4px",ue="8px",de="12px",pe="16px",fe="20px",he="24px",me="32px",ge="40px",ve="48px",ye="56px",_e="768px",be="992px",Se=_e;ie.ZP.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1o8eth5-0"})(["background-color:",";height:56px;@media (min-width:","){height:53px;}@media (min-width:","){height:56px;}color:",";"],se,_e,be,le);var Ee=n(51163),Ae="buttonTertiary",Te="horizontalRule",Pe="icon",Oe="list",Ce="textLink",ke="type",Re=function(){return(0,ie.iv)(["box-sizing:border-box;-webkit-tap-highlight-color:transparent;"])},Le=n(60901),Ie=n(68492);const Ne={base:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#8f8f8f",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#5e5e5e",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#1f1f1f"}},invertedLight:{background:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:"#f6f6f6",press:"#b7b7b7",elevated:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},tinted:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},unsafeForSmallText:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),highlight:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),press:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()}},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:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#a7a7a7",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#727272",brightAccent:"#1ed760",negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"#292929"}},overMedia:{background:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.56)",press:"rgba(0, 0, 0, 0.72)",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.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"},tinted:{base:"rgba(0, 0, 0, 0.54)",highlight:"rgba(0, 0, 0, 0.54)",press:"rgba(0, 0, 0, 0.54)"}},text:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},essential:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),brightAccent:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),negative:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),warning:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),positive:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),announcement:getComputedStyle(document.body).getPropertyValue("--spice-text").trim()},decorative:{base:getComputedStyle(document.body).getPropertyValue("--spice-text").trim(),subdued:"rgba(255, 255, 255, 0.13)"}}};n(74654);function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function De(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(t).reduce((function(t,o){var i,r=(0,Ie.Z)(o,2),a=r[0],s=r[1],l=a;return""!==n&&(l="".concat(n).concat((i=a).charAt(0).toUpperCase()+i.slice(1))),"object"==typeof s?De(De({},t),e(s,l)):"string"==typeof s?(t[l]=s,t):t}),{})});function Ue(e){return e.replace(/[A-Z0-9]/g,(function(e){return"-".concat(e.toLowerCase())}))}function Be(e){return"--".concat(Ue(e))}function Ve(e,t){var n=Fe(xe)[e];return t&&(n=t),"var(".concat(Be(e),", ").concat(n,")")}var Ge={textBase:"textBase",textSubdued:"textSubdued",textBrightAccent:"textBrightAccent",textNegative:"textNegative",textWarning:"textWarning",textPositive:"textPositive",textAnnouncement:"textAnnouncement"},Je={essentialBase:"essentialBase",essentialSubdued:"essentialSubdued",essentialBrightAccent:"essentialBrightAccent",essentialNegative:"essentialNegative",essentialWarning:"essentialWarning",essentialPositive:"essentialPositive",essentialAnnouncement:"essentialAnnouncement"},je={decorativeBase:"decorativeBase",decorativeSubdued:"decorativeSubdued"},He=(De(De(De({},Ge),Je),je),De(De(De(De({},{backgroundBase:"backgroundBase",backgroundHighlight:"backgroundHighlight",backgroundPress:"backgroundPress",backgroundElevatedBase:"backgroundElevatedBase",backgroundElevatedHighlight:"backgroundElevatedHighlight",backgroundElevatedPress:"backgroundElevatedPress",backgroundTintedBase:"backgroundTintedBase",backgroundTintedHighlight:"backgroundTintedHighlight",backgroundTintedPress:"backgroundTintedPress",backgroundUnsafeForSmallTextBase:"backgroundUnsafeForSmallTextBase",backgroundUnsafeForSmallTextHighlight:"backgroundUnsafeForSmallTextHighlight",backgroundUnsafeForSmallTextPress:"backgroundUnsafeForSmallTextPress"}),Ge),Je),je));function Ke(e,t){return"var(--spacer-".concat(e,", ").concat(t,")")}var Ye=ie.ZP.hr.withConfig({displayName:"HorizontalRule__HorizontalRuleElement",componentId:"sc-198gjx4-0"})(["",";border:0;border-block-start:1px solid ",";margin-block-end:",";margin-block-start:",";"],Re(),Ve(He.decorativeSubdued),Ke(1,he),Ke(1,he));const We={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ze={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},qe={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Xe={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ze={fontSize:"0.8125rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Qe={fontSize:"0.8125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},$e={fontSize:"3.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},et={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},tt={fontSize:"2.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},nt={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ot={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},it={fontSize:"0.625rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},rt={fontSize:"0.625rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},at={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},st={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},lt={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ct={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ut={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},dt={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},pt={fontSize:"1rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ft={fontSize:"1rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},ht={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},mt={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},gt={fontSize:"0.875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},vt={fontSize:"0.875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},yt={fontSize:"6rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},_t={fontSize:"4.5rem",fontWeight:900,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},bt={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},St={fontSize:"0.875rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Et={fontSize:"0.75rem",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},At={fontSize:"0.75rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Tt={fontSize:"0.6875rem",fontWeight:400,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Pt={fontSize:"0.6875rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ot={fontSize:"3rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Ct={fontSize:"2rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},kt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Rt={fontSize:"1.5rem",fontWeight:700,fontFamily:"CircularSpTitle,CircularSpTitle-Tall,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"},Lt={fontSize:"1.125rem",fontWeight:700,fontFamily:"CircularSp,CircularSp-Arab,CircularSp-Hebr,CircularSp-Cyrl,CircularSp-Grek,CircularSp-Deva, var(--fallback-fonts, sans-serif)"};var It=function(e,t){var n=e.fontSize!==t.fontSize,o=e.fontWeight!==t.fontWeight,i=e.textTransform!==t.textTransform,r=e.letterSpacing!==t.letterSpacing,a=e.fontFamily!==t.fontFamily,s=n||o||a||i||r;return(0,ie.iv)(["font-size:",";font-weight:",";text-transform:",";letter-spacing:",";font-family:var(--font-family,",");",";"],e.fontSize,e.fontWeight,e.textTransform,e.letterSpacing,e.fontFamily,s&&(0,ie.iv)(["@media (min-width:","){font-size:",";font-weight:",";font-family:",";text-transform:",";letter-spacing:",";}"],Se,n&&t.fontSize,o&&t.fontWeight,a&&"var(--font-family, ".concat(t.fontFamily,")"),i&&t.textTransform,r&&t.letterSpacing))},Nt=function(){return It(dt,Lt)},wt=function(){return It(ze,ft)},Dt=function(){return It(qe,ht)},Mt=function(){return It(Xe,mt)},xt=function(){return It(Qe,vt)},Ft=function(){return It(ot,Pt)},Ut=n(68901),Bt={useBrowserDefaultFocusStyle:!1},Vt=i.createContext(Bt);Vt.displayName="BrowserDefault";var Gt={isUsingKeyboard:!0},Jt=i.createContext(Gt);Jt.displayName="KeyboardDetection";var jt=3,Ht=(Ve(He.essentialBase),"200ms"),Kt="ease-in",Yt=(0,ie.iv)(["&:focus{outline:none;}"]);var Wt,zt,qt,Xt=(0,ie.iv)(["display:block;position:absolute;pointer-events:none;transition:border-color "," ",";box-sizing:border-box;"],Ht,Kt),Zt=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,ie.iv)(["position:relative;"," ",""],Yt,t&&(0,ie.iv)(["&::after{content:'';","}&:focus::after{border-color:inherit;}",""],function(e){return(0,ie.iv)([""," bottom:","px;border-bottom:","px solid transparent;width:100%;"],Xt,e-2*jt,jt)}(e),n&&(0,ie.iv)(["&::after{border-color:inherit;}"])))},Qt=(Wt="compact",zt=he,qt?"calc(-1 * var(--layout-margin-".concat(Wt,", ").concat(zt,"))"):"var(--layout-margin-".concat(Wt,", ").concat(zt,")"),{experimental:"experimental",next:"next",deprecated:"deprecated"}),$t="button",en={experimental:[],next:[],deprecated:[]},tn=i.createContext(en);tn.displayName="Encore";var nn=function(e){return parseInt(e,10)},on={sm:ue,md:"14px",lg:pe},rn={sm:me,md:ve,lg:ye},an={sm:ce,md:ue,lg:de},sn={sm:16,md:24,lg:24},ln={sm:pe,md:me,lg:ve},cn={sm:de,md:fe,lg:he},un={sm:"5px",md:de,lg:"10px"},dn=function(e,t){if(t===Qt.deprecated)return function(e){switch(e){case"sm":return Ft();case"md":default:return Mt();case"lg":return wt()}}(e);switch(e){case"sm":return xt();case"md":default:return wt();case"lg":return Nt()}},pn=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="".concat("deprecated"===(arguments.length>2?arguments[2]:void 0)?nn(on[e])-n:nn(an[e])-n,"px");var o="".concat(nn(ln[e])-n,"px"),i="".concat(function(e){var t=un[e],n=sn[e];return nn(cn[e])+n+nn(t)}(e)-n,"px");return{paddingTopBottom:t,paddingLeftRight:o,withIconPaddingLeftRight:i}},fn=(0,ie.iv)(["cursor:",";opacity:",";transform:scale(1);"],"not-allowed","0.3"),hn=(0,ie.iv)(["opacity:",";outline:none;transform:scale(1);"],"0.7"),mn=(0,ie.iv)(["transform:scale(",");"],"1.04"),gn=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,ie.iv)(["background-color:transparent;border:0;color:inherit;line-height:1;letter-spacing:inherit;padding:0;",""],!e&&Yt)},vn=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isFocus","isActive","standalone","semanticColor"],yn=function(e){var t=e.color;return(0,ie.iv)(["text-decoration:underline;color:",";"],t)},_n=(0,ie.iv)(["box-shadow:",";transition:box-shadow "," ",";&&{text-decoration:none;}"],"0 3px 0 0",Ht,Kt),bn=(0,ie.iv)(["color:",";"],Ve(He.textBrightAccent)),Sn=(0,ie.iv)(["color:",";opacity:",";cursor:not-allowed;"],Ve(He.textSubdued),"0.3"),En=function(e){var t=e.semanticColor;return(0,ie.iv)(["text-decoration:underline;color:",";"],Ve(t||He.textSubdued))},An=(0,ie.iv)(["color:",";"],Ve(He.textBase)),Tn=function(e){var t=e.semanticColor;return(0,ie.iv)(["text-decoration:underline;color:",";"],Ve(t||He.textBase))},Pn=(0,ie.iv)(["text-decoration:none;"]),On=(0,ie.ZP)(i.forwardRef((function(e,t){var n=e.component,o=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isFocus,e.isActive,e.standalone,e.semanticColor,(0,Ut.Z)(e,vn));return i.createElement(n,Object.assign({},o,{ref:t}))}))).withConfig({displayName:"Link",componentId:"sc-k8gsk-0"})(["",";",";"," align-items:center;text-decoration:none;&[href],&:hover:not([disabled]){text-decoration:underline;}&[href]:hover{",";}"," &[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}",""],Re(),(function(e){return"button"===e.component&&(0,ie.iv)(["",";font-size:inherit;&:focus{","}"],gn(e.useBrowserDefaultFocusStyle),e.isUsingKeyboard&&!e.useBrowserDefaultFocusStyle&&_n)}),(function(e){return e.semanticColor?(0,ie.iv)(["color:",";"],Ve(e.semanticColor)):(0,ie.iv)(["color:inherit;"])}),(function(e){return e.semanticColor?yn({color:Ve(e.semanticColor)}):yn({color:Ve(He.textBrightAccent)})}),(function(e){return!e.useBrowserDefaultFocusStyle&&(0,ie.iv)(["&[href]:focus{outline:none;",";}"],e.isUsingKeyboard&&_n)}),bn,(function(e){return e.isHover&&(e.semanticColor?yn({color:Ve(e.semanticColor)}):yn({color:Ve(He.textBrightAccent)}))}),(function(e){return e.isFocus&&!e.useBrowserDefaultFocusStyle&&_n}),(function(e){return e.isActive&&bn}),Sn,(function(e){return e.standalone&&(0,ie.iv)(["color:",";display:inline-flex;&,&[href]{text-decoration:none;}&[href]:hover,&[href]:hover:focus{",";}&[href]:focus{text-decoration:none;",";}&[href]:active{",";}&&{",";",";",";}&[disabled],&[href][disabled],&[aria-disabled='true']{",";}"],e.semanticColor?Ve(e.semanticColor):Ve(He.textSubdued),En({semanticColor:e.semanticColor}),e.isUsingKeyboard&&An,Tn({semanticColor:e.semanticColor}),e.isHover&&En({semanticColor:e.semanticColor}),e.isFocus&&An,e.isActive&&Tn({semanticColor:e.semanticColor}),Pn)})),Cn=["children","color","semanticColor","component","href","disabled","role"],kn=i.forwardRef((function(e,t){var n=e.children,o=e.color,r=e.semanticColor,a=e.component,s=void 0===a?"a":a,l=e.href,c=e.disabled,u=e.role,d=(0,Ut.Z)(e,Cn),p=(0,i.useContext)(Jt).isUsingKeyboard,f=(0,i.useContext)(Vt).useBrowserDefaultFocusStyle;return i.createElement(On,Object.assign({component:s,isUsingKeyboard:p,useBrowserDefaultFocusStyle:f,color:o,semanticColor:r,ref:t,href:c?void 0:l,disabled:c,"aria-disabled":c,role:c&&"button"!==s?"link":u},d,{"data-encore-id":Ce}),n)})),Rn=(0,ie.ZP)(i.forwardRef((function(e,t){return i.createElement(kn,Object.assign({semanticColor:"textBase",standalone:!0,ref:t},e))}))).withConfig({displayName:"Link",componentId:"sc-fe80qw-0"})(["display:block;",";"],Ft());var Ln=i.forwardRef((function(e,t){var n=e.target&&"_blank"===e.target?"noopener noreferrer":void 0;return i.createElement(Rn,Object.assign({},e,{ref:t,rel:n}))})),In=ie.ZP.ul.attrs((function(e){return{role:e.role||"list"}})).withConfig({displayName:"List__ListElement",componentId:"sc-64p3hb-0"})(["",";padding-inline-start:0;padding-inline-end:0;margin-block-start:0;margin-block-end:0;overflow-wrap:break-word;",";"],Re(),(function(e){return!1!==e.listStyleReset&&(0,ie.iv)(["list-style-type:none;"])})),Nn=i.forwardRef((function(e,t){var n=(0,Ee.Z)({},e);return i.createElement(In,Object.assign({},n,{ref:t,"data-encore-id":Oe}))})),wn=function(e){switch(e){case"book":return 400;case"bold":return 700;case"black":return 900;default:return function(e){throw new Error("Unreachable value")}()}},Dn=function(e){switch(e){case"bass":return It($e,yt);case"forte":return It(et,_t);case"brio":return It(tt,bt);case"altoBrio":return It(st,Ot);case"alto":return It(lt,Ct);case"canon":return It(ct,kt);case"celloCanon":return It(ut,Rt);case"cello":return Nt();case"ballad":return It(We,pt);case"balladBold":return wt();case"viola":default:return Dt();case"violaBold":return Mt();case"mesto":return It(Ze,gt);case"mestoBold":return xt();case"metronome":return It(at,St);case"finale":return It(nt,Tt);case"finaleBold":return Ft();case"minuet":return It(it,Et);case"minuetBold":return It(rt,At)}},Mn=ie.ZP.span.withConfig({displayName:"Type__TypeElement",componentId:"sc-goli3j-0"})(["",";margin-block-start:0;margin-block-end:0;",";",";"," ",";"],Re(),(function(e){return e.variant?Dn(e.variant):void 0}),(function(e){return e.paddingBottom&&(0,ie.iv)(["padding-block-end:",";"],e.paddingBottom)}),(function(e){return e.semanticColor?(0,ie.iv)(["color:",";"],Ve(e.semanticColor)):(0,ie.iv)(["color:inherit;"])}),(function(e){return e.weight&&(0,ie.iv)(["font-weight:",";"],wn(e.weight))})),xn=["color","semanticColor","paddingBottom","variant"];function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Un(e){for(var t=1;te.columnWidth?`width: ${e.columnWidth}`:"width: 40%"),(e=>e.columnGap?`margin-right: ${e.columnGap}`:`margin-right: ${he}`),(e=>e.columnGap?`margin-left: ${e.columnGap}`:`margin-left: ${he}`),be,(e=>e.columnWidth?`width: ${e.columnWidth}`:"width: 20%")),zn=(0,ie.ZP)(Ln).withConfig({displayName:"TopLinksGroup__MastheadFooterLink",componentId:"sc-100cyfq-1"})(["margin:"," 0;width:fit-content;span:hover{color:",";}"],ue,le),qn=({title:e,links:t,columnWidth:n,columnGap:i})=>e&&t?(0,o.jsx)(Wn,Object.assign({columnWidth:n,columnGap:i},{children:(0,o.jsxs)(Nn,{children:[(0,o.jsx)(Gn,Object.assign({as:"p",variant:"balladBold"},{children:e})),t.map((e=>(0,o.jsx)(zn,Object.assign({role:"link",href:e.href,semanticColor:He.textSubdued,onClick:()=>{return t=e.href,n=e.dataAttributes["data-ga-action"],Hn({metric_type:Jn.MetricTypes.COUNTER,what:Yn.CTA_CLICK,value:1}),void(0,jn.sendWwwAnalyticsAgnostic)({category:Kn.MASTHEAD,action:Yn.CLICK,label:n,destination_url:t});var t,n}},e.dataAttributes,{children:(0,o.jsx)(Gn,Object.assign({variant:"ballad",paddingBottom:ue},{children:e.title}))}),e.href)))]})})):null,Xn=({columnWidth:e,columnGap:t})=>{var n,r,a,s;const l=(0,i.useContext)($),c=null===(r=null===(n=null==l?void 0:l.footer)||void 0===n?void 0:n.topLinkGroups[0])||void 0===r?void 0:r.title,u=null===(s=null===(a=null==l?void 0:l.footer)||void 0===a?void 0:a.topLinkGroups[0])||void 0===s?void 0:s.links;return(0,o.jsx)(qn,{title:c,links:u,columnWidth:e,columnGap:t})},Zn=({columnWidth:e,columnGap:t})=>{var n,r,a,s;const l=(0,i.useContext)($),c=null===(r=null===(n=null==l?void 0:l.footer)||void 0===n?void 0:n.topLinkGroups[1])||void 0===r?void 0:r.title,u=null===(s=null===(a=null==l?void 0:l.footer)||void 0===a?void 0:a.topLinkGroups[1])||void 0===s?void 0:s.links;return(0,o.jsx)(qn,{title:c,links:u,columnWidth:e,columnGap:t})},Qn=({hideWebPlayerLink:e,columnWidth:t,columnGap:n})=>{var r,a,s,l;const c=(0,i.useContext)($),u=null===(a=null===(r=null==c?void 0:c.footer)||void 0===r?void 0:r.topLinkGroups[2])||void 0===a?void 0:a.title,d=null===(l=null===(s=null==c?void 0:c.footer)||void 0===s?void 0:s.topLinkGroups[2])||void 0===l?void 0:l.links.filter((t=>!e||"https://open.spotify.com/"!==t.href));return(0,o.jsx)(qn,{title:u,links:d,columnWidth:t,columnGap:n})};var $n;!function(e){e.ADDITIONAL_CLASSES="additionalClassNames",e.ADDITIONAL_IDS="additionalIds"}($n||($n={}));const eo=(e,t)=>{var n;return e[t]?null===(n=e[t])||void 0===n?void 0:n.join(" "):""},to=()=>(0,o.jsxs)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 30 14","aria-labelledby":"ccpa-svg-title",style:{width:"25px",paddingLeft:ce,paddingBottom:ce}},{children:[(0,o.jsx)("title",Object.assign({id:"ccpa-svg-title"},{children:"California Consumer Privacy Act (CCPA) Opt-Out Icon"})),(0,o.jsx)("path",{d:"M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#fff"}}),(0,o.jsx)("path",{d:"M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z",style:{fillRule:"evenodd",clipRule:"evenodd",fill:"#06f"}}),(0,o.jsx)("path",{d:"M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z",style:{fill:"#fff"}}),(0,o.jsx)("path",{d:"M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z",style:{fill:"#06f"}})]})),no=({name:e})=>e===oe.CCPA?(0,o.jsx)(to,{}):null,oo=(0,ie.ZP)(kn).withConfig({displayName:"Link__BottomLink",componentId:"sc-j13lu8-0"})(["margin-bottom:"," !important;text-decoration:none !important;line-height:inherit !important;border:none !important;padding:0 !important;color:"," !important;&:hover{background-color:!important;}[dir='rtl'] &{margin-right:0;margin-left:"," !important;}",""],ue,Ve(He.textSubdued),pe,(({$isSmall:e})=>!e&&`span:hover {\n color: ${le};\n }`)),io=ie.ZP.div.withConfig({displayName:"Link__Container",componentId:"sc-j13lu8-1"})(["margin-right:",";[dir='rtl'] &{margin-right:0 !important;}"],pe),ro=({link:e,isSmall:t})=>(0,o.jsxs)(io,{children:[(0,o.jsx)(oo,Object.assign({href:e.href,semanticColor:He.textSubdued,standalone:!0,$isSmall:t,id:eo(e,$n.ADDITIONAL_IDS),className:eo(e,$n.ADDITIONAL_CLASSES)},{children:(0,o.jsx)(Gn,Object.assign({variant:t?"finale":"viola"},{children:e.title}))})),(0,o.jsx)(no,{name:e.icon})]});var ao,so,lo=n(14224),co="undefined"!=typeof MUTE_ENCORE_WARNINGS&&MUTE_ENCORE_WARNINGS||void 0!==lo&&(null==lo||null==(ao={})?void 0:ao.MUTE_ENCORE_WARNINGS)||void 0,uo="undefined"!=typeof NODE_ENV&&NODE_ENV||void 0!==lo&&(null==lo||null==(so={})?void 0:so.NODE_ENV)||void 0;function po(e){"true"!==co&&"production"!==uo&&console.warn(e)}var fo=["component","semanticColor","condensed","condensedAll","iconLeading","iconTrailing","iconOnly","buttonSize","iconSize","hover","active","focus","isUsingKeyboard","useBrowserDefaultFocusStyle","status"],ho=(0,ie.ZP)(i.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,r=(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,Ut.Z)(e,fo));return i.createElement(o,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-1dqy6lx-0"})(["",""],(function(e){var t=e.buttonSize,n=e.semanticColor,o=void 0===n?"textSubdued":n,i=e.hover,r=e.active,a=e.focus,s=e.useBrowserDefaultFocusStyle,l=e.status,c=e.isUsingKeyboard,u=e.condensed,d=e.condensedAll,p=e.iconLeading,f=e.iconTrailing,h=e.iconOnly,m=e.iconSize,g=pn(t),v=g.paddingTopBottom,y=g.paddingLeftRight,_="md"===t&&(p||f)?-2:0,b="".concat(nn(v)+_,"px"),S=cn[t],E="".concat((nn(rn[t])-m)/2,"px"),A=(0,ie.iv)([""," "," "," "," ",""],!d&&(0,ie.iv)(["padding-block-start:",";padding-block-end:",";min-block-size:",";"],h?E:b,h?E:b,rn[t]),d&&(0,ie.iv)(["padding:0;"]),u&&(0,ie.iv)(["padding-inline-start:0;padding-inline-end:0;"]),!u&&!d&&!h&&(0,ie.iv)(["padding-inline-start:",";padding-inline-end:",";"],p?S:y,f?S:y),!u&&!d&&h&&(0,ie.iv)(["padding-inline-start:",";padding-inline-end:",";"],E,E)),T=(0,ie.iv)([""," ",""],mn,"textSubdued"===o&&(0,ie.iv)(["color:",";"],Ve(He.textBase))),P=(0,ie.iv)([""," color:",";"],hn,Ve(He.textSubdued)),O=(0,ie.iv)([""," color:",";&::before{background-color:transparent;}&::after{border-color:transparent;}"],fn,Ve(He.textSubdued));return(0,ie.iv)([""," color:",";min-inline-size:0;",";",";display:inline-flex;align-items:center;justify-content:center;&:hover{","}"," &:active{","}"," "," &[disabled],&[aria-disabled='true'],fieldset[disabled] &{","}"],function(e,t,n){return(0,ie.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);"],Re(),!t&&Yt,dn(e,n),"500px","none","33ms")}(t,s,l),Ve(o),(0,ie.iv)(["@supports (overflow-wrap:anywhere){overflow-wrap:anywhere;}@supports not (overflow-wrap:anywhere){word-break:break-word;}"]),A,T,i&&T,P,r&&P,(function(){var e=(d?0:nn(b))+jt,t=h?"".concat(m,"px"):"calc(100% - ".concat(u||d?0:2*nn(p||f?S:y),"px)");return(0,ie.iv)(["",";&::after{inline-size:",";}"],!s&&Zt(e,c,a),t)}),O)})),mo=ie.ZP.span.withConfig({displayName:"IconWrapper__Wrapper",componentId:"sc-16usrgb-0"})(["display:flex;",""],(function(e){var t=e.buttonSize,n=e.position;return(0,ie.iv)([""," ",""],"leading"===n&&(0,ie.iv)(["margin-inline-end:",";"],un[t]),"trailing"===n&&(0,ie.iv)(["margin-inline-start:",";"],un[t]))})),go=function(e){var t=e.position,n=e.buttonSize,o=e.icon,r=e.iconSize,a=o;return i.createElement(mo,{position:t,buttonSize:n,"aria-hidden":"true"},i.createElement(a,{iconSize:r}))},vo=function(e){var t=e.iconOnly,n=e.iconLeading,o=e.iconTrailing,r=e.children,a=e.buttonSize,s=e.iconSize,l=function(e,t){return t&&i.createElement(go,{icon:t,position:e,buttonSize:a,iconSize:s})};return t?i.createElement(i.Fragment,null,l("only",t)):i.createElement(i.Fragment,null,l("leading",n),r,l("trailing",o))},yo=["component","color","children","buttonSize","iconOnly","iconLeading","iconTrailing","aria-label","aria-labelledby"];function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bo(e){for(var t=1;t-1})(e,t[o])&&(n=o)})),n}($t,m),v=p.href&&"_blank"===p.target?"noopener noreferrer":null,y=s&&"lg"===a?32:sn[a];return i.createElement(ho,Object.assign({},p,{rel:v,ref:t,component:!n&&p.href?"a":n,"aria-label":u,"aria-labelledby":d,buttonSize:a,iconSize:y,iconLeading:l,iconTrailing:c,iconOnly:s,isUsingKeyboard:f,useBrowserDefaultFocusStyle:h,status:g,"data-encore-id":Ae}),i.createElement(vo,{iconOnly:s,iconLeading:l,iconTrailing:c,iconSize:y,children:o,buttonSize:a}))})),Eo=bo(bo({},{sm:"sm",md:"md",lg:"lg"}),{},{displayName:"ButtonTertiary"}),Ao=Object.assign(So,Eo);const To=(0,ie.ZP)(Ao).withConfig({displayName:"Button__ButtonComponent",componentId:"sc-yof409-0"})(["text-decoration:none !important;margin-bottom:"," !important;line-height:inherit !important;border:none !important;padding:0 !important;color:"," !important;[dir='rtl'] &{margin-right:0;margin-left:"," !important;}&:hover{transform:none;cursor:pointer;background-color:transparent !important;}",""],ce,Ve(He.textSubdued),pe,(({$isSmall:e})=>!e&&`\n span:hover {\n color: ${le};\n text-decoration:underline;\n text-decoration-color: ${Ve("textSubdued")};\n } `)),Po=ie.ZP.div.withConfig({displayName:"Button__Container",componentId:"sc-yof409-1"})(["display:flex;",";[dir='ltr'] &{margin-right:",";}[dir='rtl'] &{margin-right:0;}"],(({$isSmall:e})=>!e&&`margin-bottom: ${ue} !important`),pe),Oo=({button:e,isSmall:t})=>(0,o.jsxs)(Po,Object.assign({$isSmall:t},{children:[(0,o.jsx)(To,Object.assign({id:eo(e,$n.ADDITIONAL_IDS),className:eo(e,$n.ADDITIONAL_CLASSES),condensedAll:!0,buttonSize:"sm",semanticColor:He.textSubdued,$isSmall:t},{children:(0,o.jsx)(Gn,Object.assign({variant:t?"finale":"viola"},{children:e.title}))})),(0,o.jsx)(no,{name:e.icon})]})),Co=ie.ZP.div.withConfig({displayName:"BottomLinksList__Container",componentId:"sc-1li1pru-0"})(["display:flex;flex-wrap:wrap;"]),ko=({isSmall:e,links:t})=>(0,o.jsx)(Co,{children:t.map((t=>t.href?(0,o.jsx)(ro,{link:t,isSmall:e},null==t?void 0:t.href):(0,o.jsx)(Oo,{button:t,isSmall:e},null==t?void 0:t.title)))}),Ro=ie.ZP.div.withConfig({displayName:"BottomLinks__BottomLinksContainer",componentId:"sc-1g2bphb-0"})(["display:flex;flex-flow:row wrap;"]),Lo=()=>{var e;const t=(0,i.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.bottomLinks;return n?(0,o.jsx)(Ro,{children:(0,o.jsx)(ko,{links:n})}):null},Io=ie.ZP.div.withConfig({displayName:"CountryCopyright__CountryCopyrightContainer",componentId:"sc-1k7wleo-0"})(["flex:0 0 auto;display:flex;flex-flow:row nowrap;align-items:end;color:",";"],Ve(He.textSubdued)),No=(0,ie.ZP)(kn).withConfig({displayName:"CountryCopyright__StyledTextLink",componentId:"sc-1k7wleo-1"})(["span:hover{color:",";}"],le),wo=ie.ZP.svg.withConfig({displayName:"CountryCopyright__Globe",componentId:"sc-1k7wleo-2"})(["padding-right:",";width:auto;[dir='rtl'] &{padding-right:0;padding-left:",";}"],ue,ue),Do=ie.ZP.div.withConfig({displayName:"CountryCopyright__Copyright",componentId:"sc-1k7wleo-3"})(["padding-right:",";[dir='rtl'] &{padding-right:0;padding-left:",";}"],pe,pe),Mo=({hideGeoIndicators:e})=>{var t,n;const r=(0,i.useContext)($),a=null===(t=null==r?void 0:r.footer)||void 0===t?void 0:t.country,s=null===(n=null==r?void 0:r.footer)||void 0===n?void 0:n.copyrightNotice;return a&&s?(0,o.jsxs)(Io,{children:[(0,o.jsx)(Do,{children:(0,o.jsx)(Gn,Object.assign({variant:"viola",as:"p"},{children:s}))}),!e&&(0,o.jsxs)(No,Object.assign({href:a.href,semanticColor:He.textSubdued,standalone:!0},{children:[(0,o.jsx)(wo,Object.assign({width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false"},{children:(0,o.jsx)("path",{fill:"currentColor",d:"M6 0.624023C8.07255 0.624023 9.90309 1.68041 10.9815 3.28299C10.9819 3.28367 10.9822 3.28403 10.9825 3.28438C11.0029 3.30998 11.0209 3.33677 11.0363 3.36446C11.6453 4.30352 12 5.42315 12 6.62402C12 9.92265 9.32436 12.6079 6.02962 12.624C6.02732 12.6241 6.02495 12.6241 6.02258 12.6241L6 12.624C2.69149 12.624 0 9.93253 0 6.62402C0 3.31571 2.69149 0.624023 6 0.624023ZM6 1.78528C5.80411 1.78528 5.61089 1.79698 5.42102 1.81972C5.39755 1.91375 5.34896 2.0023 5.2765 2.07641L3.75157 3.63714C3.64024 3.75103 3.48978 3.812 3.33616 3.812C3.26752 3.812 3.19848 3.7998 3.1318 3.77483C2.91623 3.69359 2.76891 3.49277 2.75652 3.26265L2.74444 3.04725C1.77228 3.93289 1.16125 5.20844 1.16125 6.62402C1.16125 6.90513 1.18535 7.1807 1.23158 7.44881L2.11909 8.18538C2.12814 8.19266 2.13699 8.20053 2.14564 8.20859L2.91981 8.93437C2.99003 9.00007 3.04274 9.08228 3.07323 9.17374L3.37633 10.0793L3.83343 10.3016H4.86133C5.01514 10.3016 5.16285 10.3625 5.27182 10.4715L6.25621 11.4561C8.80567 11.3224 10.8387 9.20617 10.8387 6.62402C10.8387 5.8726 10.6666 5.16063 10.3596 4.52549L9.45716 5.24616L9.62455 5.6122C9.65956 5.68812 9.67726 5.77053 9.67726 5.85393V6.60784C9.67726 6.78014 9.60075 6.94358 9.46857 7.05393C9.3362 7.16407 9.16154 7.2103 8.99219 7.17902L8.05556 7.00751L8.52643 8.28855C8.58347 8.44354 8.57167 8.61544 8.49417 8.76139L7.67162 10.3097C7.58211 10.4783 7.41628 10.5907 7.22969 10.6136L7.15866 10.6179C6.94387 10.6179 6.74659 10.4991 6.64589 10.3093L6.25231 9.56742C6.24563 9.55444 6.23913 9.54126 6.23323 9.52788L5.91027 8.78833L5.5222 8.25412L4.15443 8.44118C4.0551 8.45475 3.9538 8.44255 3.86057 8.40518L2.68811 7.93765C2.46526 7.84855 2.3201 7.632 2.32244 7.39204L2.33879 5.84783C2.34095 5.65035 2.44304 5.46763 2.61022 5.3624L4.57554 4.12641C4.81058 3.97869 5.11781 4.01783 5.30801 4.22062L5.95905 4.91395L6.7818 5.23062L7.05303 5.13365L5.90181 3.48933C5.77849 3.3131 5.76256 3.08317 5.86051 2.89179L6.41732 1.80311C6.27976 1.7913 6.14057 1.78528 6 1.78528Z"})})),(0,o.jsx)(Gn,Object.assign({variant:"viola"},{children:a.name}))]}))]}):null},xo=ie.ZP.svg.withConfig({displayName:"Svg",componentId:"sc-ytk21e-0"})(["*{vector-effect:non-scaling-stroke;}"," ",""],(function(e){return e.autoMirror&&(0,ie.iv)(["[dir='rtl'] &&{transform:scaleX(-1);}"])}),(function(e){return e.iconColor?(0,ie.iv)(["fill:","};"],Ve(e.iconColor)):(0,ie.iv)(["fill:currentColor;"])}));var Fo=["iconSize","semanticColor","color","title","titleId","desc","descId","autoMirror"],Uo=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}))},Bo=function(e){var t=e.iconSize,n=void 0===t?24:t,o=e.semanticColor,r=(e.color,e.title),a=e.titleId,s=e.desc,l=e.descId,c=e.autoMirror,u=(0,Ut.Z)(e,Fo);return i.createElement(xo,Object.assign({role:"img",height:n,width:n,iconSize:n,iconColor:o,autoMirror:c,"aria-labelledby":r&&a?a:u["aria-labelledby"],"aria-describedby":s&&l?l:u["aria-describedby"],"aria-hidden":!r&&!a},u,{"data-encore-id":Pe}))};function Vo(e){var t,n,o,r,a,s=Uo([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(Bo,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"").concat(r,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(s.svgContent)}}))}var Go=["component","isUsingKeyboard","useBrowserDefaultFocusStyle","isHover","isActive","isFocus","semanticColor"],Jo=["semanticColor"],jo=(0,ie.iv)(["color:",";"],Ve(He.textBase)),Ho=(0,ie.iv)([""," color:",";"],hn,Ve(He.textSubdued)),Ko=(0,ie.ZP)(i.forwardRef((function(e,t){var n=e.component,o=void 0===n?"button":n,r=(e.isUsingKeyboard,e.useBrowserDefaultFocusStyle,e.isHover,e.isActive,e.isFocus,e.semanticColor,(0,Ut.Z)(e,Go));return i.createElement(o,Object.assign({},r,{ref:t}))}))).withConfig({displayName:"Button",componentId:"sc-me270r-0"})(["",""],(function(e){var t=e.semanticColor,n=void 0===t?"textSubdued":t,o=(0,Ut.Z)(e,Jo);return(0,ie.iv)(["",";",";cursor:inherit;display:inline-flex;align-items:center;color:",";&:hover{","}"," &:active{","}&[disabled],&[aria-disabled='true'],fieldset[disabled] &{"," color:",";}"," ",";"],Re(),(!o.component||"button"===o.component)&&gn(o.useBrowserDefaultFocusStyle),Ve(n),jo,o.isHover&&jo,Ho,fn,Ve(n),o.isActive&&Ho,!o.useBrowserDefaultFocusStyle&&Zt(0,o.isUsingKeyboard,o.isFocus))})),Yo=["type"],Wo=i.forwardRef((function(e,t){var n=e.type,o=void 0===n?"button":n,r=(0,Ut.Z)(e,Yo),a=(0,i.useContext)(Jt).isUsingKeyboard,s=(0,i.useContext)(Vt).useBrowserDefaultFocusStyle;return i.createElement(Ko,Object.assign({},r,{ref:t,type:o,isUsingKeyboard:a,useBrowserDefaultFocusStyle:s}))}));const zo=(0,ie.ZP)(Wo).withConfig({displayName:"styles__StyledLink",componentId:"sc-17pc5ri-0"})(["height:40px;width:40px;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;background-color:",";:hover{background-color:",";}"],"#292929","#727272"),qo=({name:e,href:t})=>(0,o.jsx)(zo,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,target:"_blank",rel:"noopener noreferrer"},{children:(0,o.jsx)(Vo,{iconSize:16,semanticColor:He.textBase})}));function Xo(e){var t,n,o,r,a,s=Uo([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(Bo,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"").concat(r,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(s.svgContent)}}))}const Zo=({name:e,href:t})=>(0,o.jsx)(zo,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,target:"_blank",rel:"noopener noreferrer"},{children:(0,o.jsx)(Xo,{iconSize:16,semanticColor:He.textBase})}));function Qo(e){var t,n,o,r,a,s=Uo([{size:16,svgContent:""},{size:24,svgContent:""}],e.iconSize||24),l=null!==(t=e.autoMirror)&&void 0!==t&&t;return i.createElement(Bo,Object.assign({},e,{autoMirror:l,viewBox:"0 0 ".concat(s.size," ").concat(s.size),dangerouslySetInnerHTML:{__html:"".concat((r=e.title,a=e.titleId,r?"").concat(r,""):"")).concat((n=e.desc,o=e.descId,n?"").concat(n,""):"")).concat(s.svgContent)}}))}const $o=({name:e,href:t})=>(0,o.jsx)(zo,Object.assign({component:"a",className:"encore-dark-theme",href:t,"aria-label":e,title:e,semanticColor:He.textBase,target:"_blank",rel:"noopener noreferrer"},{children:(0,o.jsx)(Qo,{iconSize:16})})),ei=({name:e,href:t})=>{switch(e){case ne.INSTAGRAM:return(0,o.jsx)(qo,{name:e,href:t});case ne.TWITTER:return(0,o.jsx)(Zo,{name:e,href:t});case ne.FACEBOOK:return(0,o.jsx)($o,{name:e,href:t});default:return null}},ti=ie.ZP.div.withConfig({displayName:"SocialLinks__SocialContainer",componentId:"sc-kqbr2e-0"})(["margin-bottom:",";"],ge),ni=ie.ZP.div.withConfig({displayName:"SocialLinks__SocialLink",componentId:"sc-kqbr2e-1"})(["display:inline;padding-right:",";&:last-of-type{padding-right:0;}[dir='rtl'] &{padding-right:0;padding-left:",";&:last-of-type{padding-left:0;}}"],pe,pe),oi=()=>{var e;const t=(0,i.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.socialLinks;return n?(0,o.jsx)(ti,{children:n.map((e=>(0,o.jsx)(ni,{children:ei({name:e.name,href:e.href})},e.icon)))}):null},ii=ie.ZP.nav.withConfig({displayName:"Footer__StyledFooter",componentId:"sc-xwm5vq-0"})(["background-color:",";padding:"," "," ",";width:100%;box-sizing:border-box;@media (min-width:","){padding-left:",";padding-right:",";}"],re,ue,pe,ge,be,me,me),ri=ie.ZP.div.withConfig({displayName:"Footer__TopSection",componentId:"sc-xwm5vq-1"})(["display:flex;flex-direction:column;margin-top:",";@media (min-width:","){justify-content:space-between;flex-direction:row;}"],me,be),ai=ie.ZP.div.withConfig({displayName:"Footer__StyledTopLinks",componentId:"sc-xwm5vq-2"})(["display:flex;flex-flow:column wrap;@media (min-width:","){flex-direction:row;}@media (min-width:","){flex:50%;padding-bottom:0;}"],_e,be),si=(0,ie.ZP)((function(e){var t=(0,Ee.Z)({},e);return i.createElement(Ye,Object.assign({},t,{"data-encore-id":Te}))})).withConfig({displayName:"Footer__Line",componentId:"sc-xwm5vq-3"})(["border-color:",";margin-block-start:0;"],ae),li=ie.ZP.div.withConfig({displayName:"Footer__StyledBottomLinks",componentId:"sc-xwm5vq-4"})(["display:flex;flex-flow:column wrap;justify-content:space-between;padding-top:",";@media (min-width:","){flex-flow:row nowrap;align-items:start;}"],pe,be),ci=ie.ZP.div.withConfig({displayName:"Footer__LanguageSelectionButtonContainer",componentId:"sc-xwm5vq-5"})(["padding-top:",";@media (min-width:","){display:none;}"],pe,be),ui=({hideWebPlayerLink:e,columnWidth:t,columnGap:n,languageSelectionButton:i,hideLegalLinks:r})=>(0,o.jsxs)(ii,Object.assign({"data-testid":"footer-div"},{children:[(0,o.jsxs)(ri,{children:[(0,o.jsxs)(ai,{children:[(0,o.jsx)(Xn,{columnWidth:t,columnGap:n}),(0,o.jsx)(Zn,{columnWidth:t,columnGap:n}),(0,o.jsx)(Qn,{hideWebPlayerLink:e,columnWidth:t,columnGap:n})]}),(0,o.jsx)(oi,{})]}),(0,o.jsx)(si,{}),(0,o.jsxs)(li,{children:[!r&&(0,o.jsx)(Lo,{}),(0,o.jsx)(Mo,{hideGeoIndicators:e}),i&&(0,o.jsx)(ci,{children:i})]})]})),di=()=>{var e;const t=(0,i.useContext)($),n=null===(e=null==t?void 0:t.footer)||void 0===e?void 0:e.bottomLinks;return n?(0,o.jsx)(ko,{links:n,isSmall:!0}):null}},76542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataServiceClient=void 0;const o=n(33892),i=n(12492),r=n(43575);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}fetch(e){const t="spotify.mdata_esperanto.proto.MetadataService",n="Fetch",r=i.LocalBatchedEntityRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.LocalBatchedExtensionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}expire(e){const t="spotify.mdata_esperanto.proto.MetadataService",n="Expire",i=r.InvalidateCacheRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.InvalidateCacheResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}purge(e){const t="spotify.mdata_esperanto.proto.MetadataService",n="Purge",i=r.InvalidateCacheRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.InvalidateCacheResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.mdata_esperanto.proto.MetadataService";static DECODERS={Fetch:{request:i.LocalBatchedEntityRequest.decode,response:i.LocalBatchedExtensionResponse.decode},Expire:{request:r.InvalidateCacheRequest.decode,response:r.InvalidateCacheResponse.decode},Purge:{request:r.InvalidateCacheRequest.decode,response:r.InvalidateCacheResponse.decode}}}t.MetadataServiceClient=a},44079:(e,t,n)=>{"use strict";t.ev=void 0;var o=n(76542);Object.defineProperty(t,"ev",{enumerable:!0,get:function(){return o.MetadataServiceClient}});var i=n(40839);var r=n(43575);var a=n(12492)},40839:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;case 79:case"COVER_IMAGE":return n.COVER_IMAGE;case 80:case"SHARE_TRAIT":return n.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return n.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return n.ARTIST_TOUR;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.COVER_IMAGE:return"COVER_IMAGE";case n.SHARE_TRAIT:return"SHARE_TRAIT";case n.INSTANCE_SHARING:return"INSTANCE_SHARING";case n.ARTIST_TOUR:return"ARTIST_TOUR";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},25039:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const i=o(n(33892));function r(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={encode:(e,t=i.default.Writer.create())=>(""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({typeUrl:l(e.typeUrl)?String(e.typeUrl):"",value:l(e.value)?s(e.value):new Uint8Array}),toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial(e){const t=r();return t.typeUrl=e.typeUrl??"",t.value=e.value??new Uint8Array,t}};var a=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e>>3){case 1:i.extensionKind=n.int32();break;case 2:i.entityUri.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,entityUri:Array.isArray(e?.entityUri)?e.entityUri.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),e.entityUri?t.entityUri=e.entityUri.map((e=>e)):t.entityUri=[],t},fromPartial(e){const t={extensionKind:0,entityUri:[]};return t.extensionKind=e.extensionKind??0,t.entityUri=e.entityUri?.map((e=>e))||[],t}},t.LocalBatchedEntityRequest={encode(e,n=r.default.Writer.create()){for(const o of e.extensionQuery)t.LocalExtensionQuery.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={extensionQuery:[]};for(;o.pos>>3==1)a.extensionQuery.push(t.LocalExtensionQuery.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({extensionQuery:Array.isArray(e?.extensionQuery)?e.extensionQuery.map((e=>t.LocalExtensionQuery.fromJSON(e))):[]}),toJSON(e){const n={};return e.extensionQuery?n.extensionQuery=e.extensionQuery.map((e=>e?t.LocalExtensionQuery.toJSON(e):void 0)):n.extensionQuery=[],n},fromPartial(e){const n={extensionQuery:[]};return n.extensionQuery=e.extensionQuery?.map((e=>t.LocalExtensionQuery.fromPartial(e)))||[],n}},t.LocalBatchedExtensionResponse={encode(e,n=r.default.Writer.create()){for(const o of e.extension)t.LocalBatchedExtensionResponse_Extension.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={extension:[]};for(;o.pos>>3==1)a.extension.push(t.LocalBatchedExtensionResponse_Extension.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({extension:Array.isArray(e?.extension)?e.extension.map((e=>t.LocalBatchedExtensionResponse_Extension.fromJSON(e))):[]}),toJSON(e){const n={};return e.extension?n.extension=e.extension.map((e=>e?t.LocalBatchedExtensionResponse_Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n={extension:[]};return n.extension=e.extension?.map((e=>t.LocalBatchedExtensionResponse_Extension.fromPartial(e)))||[],n}},t.LocalBatchedExtensionResponse_ExtensionHeader={encode:(e,t=r.default.Writer.create())=>(!0===e.cacheValid&&t.uint32(8).bool(e.cacheValid),!0===e.offlineValid&&t.uint32(16).bool(e.offlineValid),0!==e.statusCode&&t.uint32(24).int32(e.statusCode),!0===e.isEmpty&&t.uint32(32).bool(e.isEmpty),"0"!==e.cacheExpiryTimestamp&&t.uint32(40).int64(e.cacheExpiryTimestamp),"0"!==e.offlineExpiryTimestamp&&t.uint32(48).int64(e.offlineExpiryTimestamp),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={cacheValid:!1,offlineValid:!1,statusCode:0,isEmpty:!1,cacheExpiryTimestamp:"0",offlineExpiryTimestamp:"0"};for(;n.pos>>3){case 1:i.cacheValid=n.bool();break;case 2:i.offlineValid=n.bool();break;case 3:i.statusCode=n.int32();break;case 4:i.isEmpty=n.bool();break;case 5:i.cacheExpiryTimestamp=l(n.int64());break;case 6:i.offlineExpiryTimestamp=l(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({cacheValid:!!c(e.cacheValid)&&Boolean(e.cacheValid),offlineValid:!!c(e.offlineValid)&&Boolean(e.offlineValid),statusCode:c(e.statusCode)?Number(e.statusCode):0,isEmpty:!!c(e.isEmpty)&&Boolean(e.isEmpty),cacheExpiryTimestamp:c(e.cacheExpiryTimestamp)?String(e.cacheExpiryTimestamp):"0",offlineExpiryTimestamp:c(e.offlineExpiryTimestamp)?String(e.offlineExpiryTimestamp):"0"}),toJSON(e){const t={};return void 0!==e.cacheValid&&(t.cacheValid=e.cacheValid),void 0!==e.offlineValid&&(t.offlineValid=e.offlineValid),void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.isEmpty&&(t.isEmpty=e.isEmpty),void 0!==e.cacheExpiryTimestamp&&(t.cacheExpiryTimestamp=e.cacheExpiryTimestamp),void 0!==e.offlineExpiryTimestamp&&(t.offlineExpiryTimestamp=e.offlineExpiryTimestamp),t},fromPartial(e){const t={cacheValid:!1,offlineValid:!1,statusCode:0,isEmpty:!1,cacheExpiryTimestamp:"0",offlineExpiryTimestamp:"0"};return t.cacheValid=e.cacheValid??!1,t.offlineValid=e.offlineValid??!1,t.statusCode=e.statusCode??0,t.isEmpty=e.isEmpty??!1,t.cacheExpiryTimestamp=e.cacheExpiryTimestamp??"0",t.offlineExpiryTimestamp=e.offlineExpiryTimestamp??"0",t}},t.LocalBatchedExtensionResponse_EntityExtension={encode:(e,n=r.default.Writer.create())=>(""!==e.entityUri&&n.uint32(10).string(e.entityUri),void 0!==e.header&&t.LocalBatchedExtensionResponse_ExtensionHeader.encode(e.header,n.uint32(18).fork()).ldelim(),void 0!==e.extensionData&&s.Any.encode(e.extensionData,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={entityUri:"",header:void 0,extensionData:void 0};for(;o.pos>>3){case 1:a.entityUri=o.string();break;case 2:a.header=t.LocalBatchedExtensionResponse_ExtensionHeader.decode(o,o.uint32());break;case 3:a.extensionData=s.Any.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({entityUri:c(e.entityUri)?String(e.entityUri):"",header:c(e.header)?t.LocalBatchedExtensionResponse_ExtensionHeader.fromJSON(e.header):void 0,extensionData:c(e.extensionData)?s.Any.fromJSON(e.extensionData):void 0}),toJSON(e){const n={};return void 0!==e.entityUri&&(n.entityUri=e.entityUri),void 0!==e.header&&(n.header=e.header?t.LocalBatchedExtensionResponse_ExtensionHeader.toJSON(e.header):void 0),void 0!==e.extensionData&&(n.extensionData=e.extensionData?s.Any.toJSON(e.extensionData):void 0),n},fromPartial(e){const n={entityUri:"",header:void 0,extensionData:void 0};return n.entityUri=e.entityUri??"",n.header=void 0!==e.header&&null!==e.header?t.LocalBatchedExtensionResponse_ExtensionHeader.fromPartial(e.header):void 0,n.extensionData=void 0!==e.extensionData&&null!==e.extensionData?s.Any.fromPartial(e.extensionData):void 0,n}},t.LocalBatchedExtensionResponse_Extension={encode(e,n=r.default.Writer.create()){0!==e.extensionKind&&n.uint32(8).int32(e.extensionKind);for(const o of e.entityExtension)t.LocalBatchedExtensionResponse_EntityExtension.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={extensionKind:0,entityExtension:[]};for(;o.pos>>3){case 1:a.extensionKind=o.int32();break;case 2:a.entityExtension.push(t.LocalBatchedExtensionResponse_EntityExtension.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,a.extensionKindFromJSON)(e.extensionKind):0,entityExtension:Array.isArray(e?.entityExtension)?e.entityExtension.map((e=>t.LocalBatchedExtensionResponse_EntityExtension.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.extensionKind&&(n.extensionKind=(0,a.extensionKindToJSON)(e.extensionKind)),e.entityExtension?n.entityExtension=e.entityExtension.map((e=>e?t.LocalBatchedExtensionResponse_EntityExtension.toJSON(e):void 0)):n.entityExtension=[],n},fromPartial(e){const n={extensionKind:0,entityExtension:[]};return n.extensionKind=e.extensionKind??0,n.entityExtension=e.entityExtension?.map((e=>t.LocalBatchedExtensionResponse_EntityExtension.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},43575:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidateCacheResponse=t.InvalidateCacheRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(40839);t.protobufPackage="spotify.mdata_cosmos.proto",t.InvalidateCacheRequest={encode(e,t=i.default.Writer.create()){0!==e.extensionKind&&t.uint32(8).int32(e.extensionKind);for(const n of e.entityUri)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={extensionKind:0,entityUri:[]};for(;n.pos>>3){case 1:r.extensionKind=n.int32();break;case 2:r.entityUri.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON(e){return{extensionKind:(t=e.extensionKind,null!=t?(0,r.extensionKindFromJSON)(e.extensionKind):0),entityUri:Array.isArray(e?.entityUri)?e.entityUri.map((e=>String(e))):[]};var t},toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),e.entityUri?t.entityUri=e.entityUri.map((e=>e)):t.entityUri=[],t},fromPartial(e){const t={extensionKind:0,entityUri:[]};return t.extensionKind=e.extensionKind??0,t.entityUri=e.entityUri?.map((e=>e))||[],t}},t.InvalidateCacheResponse={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},70784:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>Rt,zq:()=>Et,Sy:()=>Ft,cr:()=>Ut,SK:()=>xt});var o,i,r,a,s,l,c=n(26336),u=n(46506),d=n(53016),p=n(46712);!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_STALLED="stalled",e.BUFFERING_START="buffering_start",e.BUFFERING_END="buffering_end",e.BUFFER_SOURCE_OPEN="source_open",e.BUFFER_SOURCE_CLOSE="source_close",e.BUFFER_QUOTA_EXCEEDED="quota_exceeded",e.FRAGMENT_APPENDED="fragment_appended",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"}(o||(o={})),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={})),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={})),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"}(a||(a={})),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"}(s||(s={})),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"}(l||(l={}));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=r.STORAGE_ERROR,t="File Error"){super(t),this.canPlayNext=!0,this.debug={},this.code=e,this.message=t,this.name="FileError"}}n(20464);var m=n(39222);class g extends Error{constructor(e=r.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=r.EME_ERROR_UNKNOWN,t){const n=new g(e,t);return n.unrecoverable=!0,n}}class v 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 d.B{constructor(e){super(o.KEY_SESSION_MESSAGE,null),this.messageType="license-request",this.message=e}}class b extends d.vp{constructor(e){super(),this._nativeKeySession=null,this._lastUpdateDeferred=(0,m.$)(),this._lastGenerateDeferred=(0,m.$)(),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(o.MS_KEY_ADDED,this._onKeyAdded),e.addEventListener(o.MS_KEY_ERROR,this._onKeyError),e.addEventListener(o.MS_KEY_MESSAGE,this._onKeyMessage))}_detach(){const e=this._nativeKeySession;e&&(e.removeEventListener(o.MS_KEY_ADDED,this._onKeyAdded),e.removeEventListener(o.MS_KEY_ERROR,this._onKeyError),e.removeEventListener(o.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(o.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(o.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 S{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(o.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.msSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(o.MEDIA_LOADEDMETADATA,n),e.addEventListener(o.MS_NEEDKEY,y),t()}))}detach(e){this._lastBoundSetter&&(e.removeEventListener(o.MS_NEEDKEY,y),e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(){return Promise.reject(new g(r.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){return new b(this._nativeMediaKeys)}}function E(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 A{constructor(e,t){if(this._configuration=null,this.keySystem=e,!this._checkConfig(t))throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem;for(const i of e){const e={initDataTypes:i.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:i.label};let r;if(i.audioCapabilities&&i.audioCapabilities.length&&e.audioCapabilities){r=!1;for(const n of i.audioCapabilities){const i=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.audioCapabilities.push(n),r=!0)}}if(i.videoCapabilities&&i.videoCapabilities.length&&e.videoCapabilities){r=!1;for(const t of i.videoCapabilities){const i=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];MSMediaKeys.isTypeSupported(o,i)&&(e.videoCapabilities.push(t),r=!0)}}if(r)return this._configuration=e,!0}return!1}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new S(this.keySystem))}))}}const T=u.P.forTag("eme_polyfill.v0_1b");class P extends d.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(o.KEY_SESSION_STATUSES_CHANGE,null)}handleErrorEvent(e){const t=new g(r.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(o.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,m.$)();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){T.warn("Could not close keysession",e)}return Promise.resolve(!0)}}class O{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+o.V0_1B_NEEDKEY,y);const n=e.addEventListener.bind(e);n(t+o.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+o.V0_1B_KEY_ERROR,this._onKeyError),n(t+o.V0_1B_KEY_MESSAGE,this._onKeyMessage)}detach(e){this._mediaElement=null;const t=this._prefix;e.removeEventListener(t+o.V0_1B_NEEDKEY,y);const n=e.removeEventListener.bind(e);n(t+o.V0_1B_KEY_ADDED,this._onKeyAdded),n(t+o.V0_1B_KEY_ERROR,this._onKeyError),n(t+o.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):T.warn("Got keymessage without session.")}_onKeyAdded(e){const t=this._getSession(e.sessionId);t?t.updateComplete():T.warn("Got keyadded without session.")}_onKeyError(e){const t=this._getSession(e.sessionId);t?t.handleErrorEvent(e):T.warn("Got keyerror without session.")}setServerCertificate(){return Promise.reject(new g(r.EME_CANNOT_SET_CERTIFICATE_FOR_PLATFORM,"Cannot set server certificate on this platform."))}createSession(){const e=new P(this._keySystem,this._mediaElement,this._prefix);return this._waitingForSessionIds.push(e),e}}function C(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 k{constructor(e,t,n){if(this._configuration=null,this.keySystem=e,this._prefix=n,!this._checkConfig(t))throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations")}_checkConfig(e){var t,n;const o=this.keySystem,i=document.createElement("video");for(const r of e){const e={initDataTypes:r.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"],label:r.label};let a=!1;if(r.audioCapabilities&&r.audioCapabilities.length&&e.audioCapabilities){a=!1;for(const n of r.audioCapabilities){const r=null===(t=n.contentType)||void 0===t?void 0:t.split(";")[0];r&&i.canPlayType(r,o)&&(e.audioCapabilities.push(n),a=!0)}}if(r.videoCapabilities&&r.videoCapabilities.length&&e.videoCapabilities){a=!1;for(const t of r.videoCapabilities){const r=null===(n=t.contentType)||void 0===n?void 0:n.split(";")[0];r&&i.canPlayType(r,o)&&(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 O(this.keySystem,this._prefix))}))}}function R(e){navigator.requestMediaKeySystemAccess=function(t,n){return new Promise((o=>{o(new k(t,n,e))}))};const t=HTMLMediaElement.prototype;delete t.mediaKeys,t.setMediaKeys=C}const L=u.P.forTag("eme_polyfill.safari");class I extends d.vp{constructor(e,t){super(),this._attached=!1,this._nativeKeySession=null,this._lastGenerateResolver=(0,m.$)(),this._lastUpdateResolver=(0,m.$)(),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(o.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.addEventListener(o.WEBKIT_KEY_ADDED,this._onKeyAdded),e.addEventListener(o.WEBKIT_KEY_ERROR,this._onKeyError)):L.warn("Tried to attach with no WebKitMediaKeySession")}_detach(){if(!this._attached)return;const e=this._nativeKeySession;e?(e.removeEventListener(o.WEBKIT_KEY_MESSAGE,this._onKeyMessage),e.removeEventListener(o.WEBKIT_KEY_ADDED,this._onKeyAdded),e.removeEventListener(o.WEBKIT_KEY_ERROR,this._onKeyError)):L.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(o.KEY_SESSION_STATUSES_CHANGE,null)}_onKeyError(){const e=this._nativeKeySession&&this._nativeKeySession.error,t=new g(r.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 g(r.EME_INIT_DATA_MALFORMED,"Malformed init data");const n=function(e){const t=Math.floor(e.byteLength/2),n=new Uint16Array(t),o=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,m.$)();if(this._lastUpdateResolver=t,!this._nativeKeySession)return L.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 N{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(o.MEDIA_LOADEDMETADATA,n),this._lastBoundSetter=null,e.webkitSetMediaKeys(this._nativeMediaKeys)};this._lastBoundSetter=n,e.addEventListener(o.MEDIA_LOADEDMETADATA,n),e.addEventListener(o.WEBKIT_NEEDKEY,y),t()}))}detach(e){e.removeEventListener(o.WEBKIT_NEEDKEY,y),this._lastBoundSetter&&(e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._lastBoundSetter),this._lastBoundSetter=null)}setServerCertificate(e){return this._serverCertificate=new Uint8Array(e),Promise.resolve(!0)}createSession(){if(!this._serverCertificate)throw new g(r.EME_INVALID_STATE_ERROR,"The server certificate is not available");return new I(this._nativeMediaKeys,this._serverCertificate)}}class w{constructor(e,t){this.keySystem=e;const n=this._checkConfig(t);if(!n)throw new g(r.EME_NO_SUPPORTED_CONFIGURATION,"No supported configurations");this._configuration=n}_checkConfig(e){const t=this.keySystem;let n=!1;for(const o of e){const e={initDataTypes:o.initDataTypes,audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",sessionTypes:["temporary"]};if(o.audioCapabilities)for(const i of o.audioCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.audioCapabilities.push(i),n=!0)}if(o.videoCapabilities)for(const i of o.videoCapabilities){if(!i.contentType)continue;const o=i.contentType.split(";")[0];WebKitMediaKeys.isTypeSupported(t,o)&&(e.videoCapabilities.push(i),n=!0)}if(n)return e}return null}getConfiguration(){return this._configuration}createMediaKeys(){return new Promise((e=>{e(new N(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=u.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 A(e,t))}))};const e=HTMLMediaElement.prototype;delete e.mediaKeys,e.setMediaKeys=E}(),"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 F={[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"}}},U=[{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 B(e,t){var n,o;for(const i of e){const e={audioCapabilities:[],videoCapabilities:[]};let r,a=!1;if(null===(n=i.audioCapabilities)||void 0===n?void 0:n.length){a=!1;for(const n of i.audioCapabilities)r=n.contentType,r&&t(r)&&(e.audioCapabilities.push(n),a=!0)}if(null===(o=i.videoCapabilities)||void 0===o?void 0:o.length){a=!1;for(const n of i.videoCapabilities)r=n.contentType,r&&t(r)&&(e.videoCapabilities.push(n),a=!0)}if(a)return e}return null}const V=/([^;]+)(?:;\s?codecs="(.*)")?/;function G(e){var t;const[,n="unknown",o="unknown"]=null!==(t=e.match(V))&&void 0!==t?t:[];return{mimeType:n,codec:o,contentType:e}}const J=/([^;]+)(?:;\s?codecs="(.*)")?/,j=u.P.forTag("playback.eme_manager"),H={EMPTY:"-no-robustness",SW_CRYPTO:"-sw-crypto",SW_DECODE:"-sw-decode",HW_CRYPTO:"-hw-crypto",HW_DECODE:"-hw-decode",HW_ALL:"-hw-all"};function K(e,t){var n;const o=[],i=new RegExp(`codecs="(${t.join("|")})"`);for(const t of e)i.test(null!==(n=t.contentType)&&void 0!==n?n:"")||o.push(t);return o.length?o:null}function Y(e,{audio:t,video:n}){var o,i,r,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===(o=e.audioCapabilities)||void 0===o?void 0:o.length)&&(s=null!==(i=K(e.audioCapabilities,t))&&void 0!==i?i:void 0,!s)||(null==n?void 0:n.length)&&(null===(r=e.videoCapabilities)||void 0===r?void 0:r.length)&&(l=null!==(a=K(e.videoCapabilities,n))&&void 0!==a?a:void 0,!l)?null:Object.assign(Object.assign({},e),{audioCapabilities:s,videoCapabilities:l})}class W extends d.vp{constructor(e){var t;super(),this._unauthServerCertificateBase="",this._disallowCodecs={},this._keySystemDeferred=(0,m.$)(),this._configuration=(0,m.$)(),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 o=e[n];o&&H.hasOwnProperty(o)&&t.push(H[o])}}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 g.fatal(r.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();j.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=F[e.keySystem],this._configuration.resolve(n),n}_parseCapabilities(e){var t;if(!e)return[];const n=[];for(const o of e){if(!(null==o?void 0:o.contentType))continue;const[,e,i]=null!==(t=o.contentType.match(J))&&void 0!==t?t:[];e&&n.push({contentType:o.contentType,mimeType:e,codec:null!=i?i:""})}return n}_appendProbableMediaCapabilities(e,t){const n=B(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=>(j.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=>(j.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 o=null===(t=e.headers)||void 0===t?void 0:t.get("cache-control");if(o){const e=o.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 a=new Uint16Array(e),s=String.fromCharCode.apply(null,a);if(-1===s.indexOf("PlayReadyKeyMessage"))return j.info("Using unextracted PlayReady message."),e;const l=(new DOMParser).parseFromString(s,"application/xml"),c=l.getElementsByTagName("Challenge")[0],u=null===(n=null==c?void 0:c.childNodes[0])||void 0===n?void 0:n.nodeValue;if(u)try{i=atob(u);const e=l.getElementsByTagName("name"),t=l.getElementsByTagName("value");if(e.length!==t.length)throw new g(r.EME_HEADER_KEY_VALUE_MISMATCH,"Mismatched header / pair in key message")}catch(e){this.emit(o.EME_LICENSE_REQUEST_ERROR,{playId:t,error:e}),i=null}else this.emit(o.EME_LICENSE_REQUEST_ERROR,{playId:t,error:new g(r.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 o="messageType"in t?t.messageType:void 0;if(j.info("Got EME message event with type",o),n&&e.keySystem===i.PLAYREADY&&(n=this._extractPlayReadyChallenge(n,e.playId)),!n)return void j.info("Ignoring message event: no valid request payload");if(!e.licenseServer)return void j.info("Ignoring message event: no licenseServer url");e.timeMap.request.start=Date.now();let r=e.licenseServer;e.keySystem===i.FAIRPLAY&&(r=`${r}${-1!==r.indexOf("?")?"&":"?"}assetId=hex`),this._transport.request(r,{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(o.EME_LICENSE_REQUEST_ERROR,{playId:e.playId,error:t})};let i,a;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);a=JSON.parse(n).errorMsg}}catch(e){}402===t.status?this.emit(o.EME_LICENSE_REQUEST_CAPPED,{playId:e.playId,error:new v(r.CAPPING_USER_IS_CAPPED,"User is capped.")}):400===t.status&&"widevine error"===a?(i=g.fatal(r.EME_LICENSE_REQUEST_WIDEVINE_ERROR,"Widevine license server failed to parse request."),i.status=t.status,i.shouldRefreshEndpoint=!0,n(i)):(i=new g(r.EME_LICENSE_REQUEST_FAILED_WITH_STATUS,`License request failed (${a||"unknown"})`),i.status=t.status,i.shouldRefreshEndpoint=400===t.status||403===t.status,n(i))}else{if(!t.body)return i=new g(r.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 g(r.EME_LICENSE_UPDATE_FAILED,e.message||"License update failed."))})),j.info("KeySession updated.")}catch(e){const{message:t}=e;n(new g(r.EME_LICENSE_UPDATE_FAILED,t||"License update failed."))}}}_selectKeySystem(e){const t=this._preferredKeySystems;for(let n=0,o=t.length;n{t(e.createMediaKeys())})).then((t=>{if(!t)return Promise.reject(g.fatal(r.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(g.fatal(r.EME_MEDIA_KEY_SESSION_NOT_SUPPORTED,t||"Cannot create MediaKeySession from KeySystemAccess"))}return Promise.resolve(e)}),(e=>(j.error(e.name),Promise.reject(g.fatal(r.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(o.KEY_SESSION_MESSAGE,n.onMessageListener),n.onKeyStatusChangeListener&&t.removeEventListener(o.KEY_SESSION_STATUSES_CHANGE,n.onKeyStatusChangeListener);const i=Promise.resolve(t.close()).catch((e=>{j.warn("Failed to close KeySession",e)}));e.push(i),n.keySession=null,n.onMessageListener=null,n.onKeyStatusChangeListener=null,j.info("Closed KeySession")}catch(e){j.warn("Failed to close KeySession",e)}return this._keySessions=[],Promise.all(e)}init(){const e=this._keySystemDeferred,t={},n=[],o=[];for(let e of U)if(!e.label||!this._configFilter.test(e.label)){if(this._disallowCodecs){const t=Y(e,this._disallowCodecs);if(!t)continue;e=t}o.push(e)}this._configs=o;for(const e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;const r=e;n.push(navigator.requestMediaKeySystemAccess(i[r],o).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 g(r.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||r.EME_NO_SUPPORTED_KEYSYSTEM,o=t.message||"No supported keysystem";return e.reject(g.fatal(n,o)),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 g(r.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)=>{j.info("Creating KeySession",e.keySystem);const i=e.mediaKeys.createSession(),a={generate:{start:0,end:0},request:{start:0,end:0},update:{start:0,end:0}},s=this._keySystemSettings&&this._keySystemSettings.licenseServer||void 0,l=this._onMessage.bind(this,{keySystem:e.keySystem,keySession:i,licenseServer:e.licenseServer||s,playId:e.playId,timeMap:a});i.addEventListener(o.KEY_SESSION_MESSAGE,l);const c=()=>{j.info("KeyStatus change"),a.update.end=Date.now(),t({elapsed:{generate:Math.max(a.generate.end-a.generate.start,0),request:Math.max(a.request.end-a.request.start,0),update:Math.max(a.update.end-a.update.start,0)}})};return i.addEventListener(o.KEY_SESSION_STATUSES_CHANGE,c),this._saveSession({keySession:i,onMessageListener:l,onKeyStatusChangeListener:c}),j.info("Generating KeySession request",e.keySystem),a.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=r.EME_NOT_SUPPORTED_ERROR;break;case"InvalidStateError":t=r.EME_INVALID_STATE_ERROR;break;default:t=r.EME_UNKNOWN_ERROR}n(new g(t,e.message||"Unknown error message."))}))}))}}class z extends Error{constructor(e,t,n,o={}){super(t),this.code=e,this.message=t,this.status=n,this.debug=o,this.name="FragmentError"}}var q=n(68035);class X{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=F[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,this._audioGainDb=e.audioGain}_parsePSSHBox(e){const t=q.D.decode(e),n=new Uint8Array(t.length);for(let e=0,o=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),o=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?`${o}\n${i}`:o}\n${n}\n#EXT-X-ENDLIST`}function $(e){return`data:application/vnd.apple.mpegurl;base64,${btoa(e)}`}function ee(e){const t=new Blob([e],{type:Z});return URL.createObjectURL(t)}function te(e){return ee(Q(e))}function ne(e){return $(Q(e))}const oe=/avc1\.(([0-9a-f]{2})[0-9a-f]{2}([0-9a-f]{2}))/,ie="4d";function re(e,t){const n=e.toLowerCase().match(oe),o=t.toLowerCase().match(oe);if(!n||!o)return!1;const[,i,r,a]=n,[,s,l,c]=o;return i===s||r===ie&&l===ie&&parseInt(a,16)>=parseInt(c,16)}function ae(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 se(e,t){return void 0!==t&&Array.isArray(e.encryption_indices)&&-1===e.encryption_indices.indexOf(t)}function le(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,resolution:e.video_resolution}:{type:"audio",codec:e.audio_codec,bitrate:e.audio_bitrate}))}function ce(e){return"audio_codec"in e?e.audio_codec:e.video_codec}function ue(e){const{codec:t,formats:n,profiles:o,encryptionIndex:r,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 o){const o=ce(l);!(t in l)||se(l,r)||s===i.FAIRPLAY&&"ts"!==l.file_type||le(l,a)||(s!==i.FAIRPLAY||"ts"!==l.file_type?"unknown-codec"!==d||l.mime_type!==e.mimeType||o!==e.codec&&!re(e.codec,o)?l.mime_type===u&&(o===d||c&&re(d,o))&&(n.push(l),l.__effective_codec=d):(u=e.mimeType,d=c?e.codec:o,n.push(l),l.__effective_codec=e.codec):n.push(l))}if(n.length)return ae(n,l)}return[]}const de=u.P.forTag("playback.video_content");function pe(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 fe={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 he extends X{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 he(e)}_isQualityMatched(e,t,n){var o,i,r,a;if(this._videoResolution){const t=null!==(o=this._videoResolution.max)&&void 0!==o?o:9007199254740991,a=null!==(i=this._videoResolution.min)&&void 0!==i?i:0;if(n){const n=null!==(r=this._videoResolution.start)&&void 0!==r?r: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 o=this._videoProfiles,i=this._videoProfile;let r=null,a=o.length;if(a){for(;a--;){const t=o[a];if(t&&this._isQualityMatched(t,n,!!e)){r=t;break}}r||(r=o[0]),this._videoProfile=r,(null==i?void 0:i.id)!==r.id&&(de.log(`Video profile changed. ID ${r.id} (${r.video_codec}), Bitrate ${r.video_bitrate}, ${r.video_width}x${r.video_height}`),null===(t=this._mediator)||void 0===t||t.emit(l.VIDEO_PROFILE_CHANGED,{profile:{type:"video",mimeType:r.mime_type,codec:r.video_codec,bitrate:r.video_bitrate,height:r.video_height,width:r.video_width,resolution:r.video_resolution}}))}}_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,o){return this._transport.request(e,Object.assign(Object.assign({},fe),{metadata:{timeStart:Date.now(),fragment:t,profile:n,loggingURL:o}})).then(this._parseFragmentResponse)}_fetchInitSegmentBuffers(e,t){const n=this._initFragment;if(!n)return Promise.reject(new h(r.FILE_NOT_RESOLVED,"Cannot fetch Init Segment buffers: File not resolved."));let o;try{o=this._constructFragmentURL(n,e,t)}catch(e){return Promise.reject(e)}const i=this._initSegments;let a=Promise.resolve(null);if(e){const t=i[e.id];(null==t?void 0:t.buffer.byteLength)?a=Promise.resolve(t):(null==o?void 0:o.audio)&&(a=this._fetchBufferData(o.audio,n,e,o.audioLogging).then((t=>(i[e.id]=t,t))))}let s=Promise.resolve(null);if(t){const e=i[t.id];(null==e?void 0:e.buffer.byteLength)?s=Promise.resolve(e):(null==o?void 0:o.video)&&(s=this._fetchBufferData(o.video,n,t,o.videoLogging).then((e=>(i[t.id]=e,e))))}return Promise.all([a,s]).then((([e,t])=>({audio:e,video:t})))}_fetchBufferForFragment(e,t,n){let o;try{o=this._constructFragmentURL(e,t,n)}catch(e){return Promise.reject(e)}return Promise.all([this._fetchInitSegmentBuffers(t,n),!e.init&&o.audio?this._fetchBufferData(o.audio,e,t,o.audioLogging):null,!e.init&&o.video?this._fetchBufferData(o.video,e,n,o.videoLogging):null]).then((([t,n,o])=>{var i,r;let a;return e.init?a={audio:null!==(i=t.audio)&&void 0!==i?i:void 0,video:null!==(r=t.video)&&void 0!==r?r:void 0}:(a={audio:null!=n?n:void 0,video:null!=o?o: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,o,i;const{fragment:a,profile:s,timeStart:c,loggingURL:u}=e.metadata,d=pe(s),p=function(e){return e?"audio_bitrate"in e?e.audio_bitrate:e.video_bitrate:0}(s),f="video_resolution"in s?s.video_resolution:void 0,h=`${a.timeStart}-${a.timeEnd}`,m="video_resolution"in s?"video":"audio";switch(e.status){case 0:{const e=new z(r.FRAGMENT_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(t=this._mediator)||void 0===t||t.emit(l.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,start_time:c,init:a.init,error:e}),Promise.reject(e)}case 200:case 206:{const t=e.body;if(!(null==t?void 0:t.byteLength)){const t=new z(r.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(n=this._mediator)||void 0===n||n.emit(l.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,start_time:c,init:a.init,error:t}),Promise.reject(t)}const i=t.byteLength;this._abrManager.sample(i,Date.now()-c),this._updateVariants();const g=8e3*i/e.timing.completed;return null===(o=this._mediator)||void 0===o||o.emit(l.FRAGMENT_FETCHED,{media_type:"video",segment_type:m,url:u,init:a.init,byte_length:i,start_time:c,end_time:Date.now(),resolution:f,bandwidth:g}),Promise.resolve({profileId:`${this._fileId}-${s.id}`,bufferURL:u,byteStart:0,byteEnd:i-1,buffer:t,mimetype:d,resolution:f,bitrate:p,bandwidth:g})}}const g=new z(r.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:h,mimetype:d,resolution:f,bitrate:p});return null===(i=this._mediator)||void 0===i||i.emit(l.FRAGMENT_FETCH_ERROR,{media_type:"video",segment_type:m,url:u,init:a.init,start_time:c,error:g}),Promise.reject(g)}_getHLSURLForProfile(e){const t=this._duration,n=this._segmentLength,o=this._segmentTemplate,i=[];for(let r=0;rt?t-r:n,s=o.replace("{{profile_id}}",e.id.toString(10)).replace("{{segment_timestamp}}",r.toString(10)).replace("{{file_type}}",e.file_type);i.push({duration:a,url:`${this._baseURL}${s}`})}const r=("undefined"==typeof MediaSource?te:ne)({assetID:this._assetId,targetDuration:n,segments:i});return this._hlsURLs.push(r),r}_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=i.video_resolution)?Promise.resolve(e.bufferSet):this._fetchBufferForFragment(e,null!=o?o:void 0,null!=i?i:void 0)}clearCachedBuffers(){this._initFragment&&(this._initSegments={}),this._fragments.forEach((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 o,i,a;let s;e.resolveLatency=0,e.manifestLatency=Date.now()-t;const c=n.contents[0];if(!c)return s=new h(r.FILE_MALFORMED_SEEKTABLE,"Malformed seektable: no contents."),s.track=this.toLogJSON(),Promise.reject(s);this._resolvedURLs=n.base_urls.slice();const[u,...d]=n.base_urls;let p;if(u&&(this._baseURL=u,this._fallbackURLs=d),this._resolvedURL=this._baseURL,this._initTemplate=n.initialization_template,this._segmentTemplate=n.segment_template,this._segmentLength=c.segment_length,null===(o=c.encryption_infos)||void 0===o?void 0:o.length){const e=c.encryption_infos,t=this._keySystemSettings.commonName;let n;for(let o=0,i=e.length;o!!e))}getAudioProfile(){return this._audioProfile}getVideoProfile(){return this._videoProfile}getVideoProfiles(){return this._videoProfiles}getHLSURL(){if(!this._resolvedURL)throw new h(r.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")}`,o=("undefined"==typeof MediaSource?ee:$)(n);return this._hlsURLs.push(o),o}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 me;!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"}(me||(me={}));const ge={[me.MP3_256]:"audio/mp3",[me.MP3_320]:"audio/mp3",[me.MP3_160]:"audio/mp3",[me.MP3_96]:"audio/mp3",[me.MP4_128]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_128_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256_DUAL]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_128_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_256_CBCS]:'audio/mp4; codecs="mp4a.40.2"',[me.MP4_FLAC]:'audio/mp4; codecs="flac"'};class ve extends X{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=ge[this._fileFormat];else switch(this._format){case s.MP3:this._audioCodec=ge[me.MP3_160];break;case s.MP4:case s.MP4_DUAL:case s.MP4_CBCS:this._audioCodec=ge[me.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 ve(e)}_parseFragmentResponse(e){const{requestURL:t,fragment:n,byteRangeHeader:o,expectedLength:i}=e.metadata,a=`${n.timeStart}-${n.timeEnd}`;switch(e.status){case 0:{if(e.offline)return Promise.reject(new z(r.FRAGMENT_OFFLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0,{time_range:a,byte_range:o}));const i=new z(r.FRAGMENT_ONLINE_REQUEST_FAILED_WITH_ZERO,"Request failed with status 0.",0);let s=!1;return this._resolvedURL!==t?s=!0:this._fallbackURLs.length&&this._resolvedURL===t&&(s=!0,this._resolvedURL=this._fallbackURLs.shift()),i.debug.has_fallback=s,s?(this._emitWarning(i,this.toLogJSON()),this.getBufferForFragment(n)):Promise.reject(i)}case 200:case 206:{const s=e.body;if(!s)return Promise.reject(new z(r.FRAGMENT_REQUEST_EMPTY_RESPONSE,"Empty response for successful buffer.",e.status,{time_range:a,byte_range:o}));if(s.byteLength!==i)return Promise.reject(new z(r.FRAGMENT_REQUEST_UNEXPECTED_LENGTH,"Received buffer of unexpected length.",e.status,{time_range:a,byte_range:o,received_length:s.byteLength,expected_length:i}));const l={audio:{profileId:this._profileId,bufferURL:t,byteStart:n.byteRanges.audio.start,byteEnd:n.byteRanges.audio.end,buffer:s,mimetype:this._audioCodec,bandwidth:8e3*s.byteLength/e.timing.completed}};if(n.cacheBufferSet&&s&&s.byteLength){n.bufferSet=l;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({},l.audio),{buffer:s.slice(t.start,t.end),byteStart:e.byteRanges.audio.start,byteEnd:e.byteRanges.audio.end})})}}return this._abrManager.sample(s.byteLength,e.timing.completed),Promise.resolve(l)}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 z(r.FRAGMENT_REQUEST_FAILED_WITH_STATUS,`Buffer request failed with status ${e.status}`,e.status,{time_range:a,byte_range:o}))}}}_getInitBuffer(){var e,t;if(!this._initFragment)throw new h(r.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,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;ethis._segmentLength&&(this._segmentLength=Math.floor(u))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=s/o}_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,o=e.timescale,i=n.length,r=new Array(i);let a=0,s=0;for(let e=0,l=i;ethis._segmentLength&&(this._segmentLength=Math.floor(l))}r[r.length-1].isLastFragment=!0,this._fragments=r,this._duration=a/o}_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,o=this._initFragment;if(!n||!o)throw new h(r.FILE_NOT_RESOLVED,"Cannot return HLS Manifest URL: File not resolved.");this.releaseHLSURL();const i={url:n,byteStart:null===(e=o.byteRanges.audio)||void 0===e?void 0:e.start,byteEnd:null===(t=o.byteRanges.audio)||void 0===t?void 0:t.end},a=this._fragments.map((e=>{var t,o;return{url:n,duration:e.timeEnd-e.timeStart,byteStart:null===(t=e.byteRanges.audio)||void 0===t?void 0:t.start,byteEnd:null===(o=e.byteRanges.audio)||void 0===o?void 0:o.end}})),s="undefined"==typeof MediaSource?te:ne;return this._hlsURL=s({assetID:this._fileId,targetDuration:10,map:i,segments:a}),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(r.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(r.FILE_NOT_RESOLVED,"Cannot fetch buffer: No resolved URL"));const n=e.byteRanges.audio,o=`${n.start}-${n.end}`,i=n.end+1-n.start,a=this._resolvedURL,s=e.init?Promise.resolve(null):this._getInitBuffer();return Promise.all([s,this._transport.request(a,{method:"GET",responseType:"arraybuffer",headers:{Range:`bytes=${o}`},timing:!0,metadata:{requestURL:a,fragment:e,byteRangeHeader:o,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)))),o=Date.now()-this._lastResolveTimestamp;let i;return i=o<1001?new Promise(((e,t)=>{this._lastResolveToken=setTimeout((()=>{n().then(e,t)}),1001-o)})):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 o;const a=this._keySystemSettings.pssh_field.audio;let s=function(e,t){return t.hasOwnProperty(e)}(a,t)?`${t[a]}`:null;if(!s&&"pssh_widevine"===a&&"pssh"in t&&(s=null!==(n=t.pssh)&&void 0!==n?n:null),!s)return o=new h(r.FILE_FORMAT_NOT_SUPPORTED,"KeySystem does not support the file format."),o.track=this.toLogJSON(),Promise.reject(o);if(this._protection=t.protection||"cenc",this._psshBox=this._parsePSSHBox(s),"segments"in t&&t.segments)this._calculateFragments(t);else{if(!("references"in t)||!t.references)return o=new h(r.FILE_MALFORMED_SEEKTABLE,"Malformed seektable."),o.track=this.toLogJSON(),Promise.reject(o);this._calculateFragmentsV1(t)}return this}))}adaptToBandwidth(){return Promise.resolve(!1)}}class ye{constructor(e){if(this._estimate=0,this._totalWeight=0,e<0)throw new TypeError("Halflife must be set to a positive value.");this._weightingDecrease=Math.exp(Math.log(.5)/e)}sample(e,t){const n=Math.pow(this._weightingDecrease,e),o=t*(1-n)+n*this._estimate;isNaN(o)||(this._estimate=o,this._totalWeight+=t)}getEstimate(){return this._estimate/1-Math.pow(this._weightingDecrease,this._totalWeight)}}class _e{constructor(e=4e5){this._totalBytes=0,this._overrideBitrate=0,this._currentBandwidth=e,this._short=new ye(2),this._long=new ye(5),this._init()}_init(){if("undefined"==typeof navigator)return;const e=navigator;e.connection&&e.connection.downlink&&(this._currentBandwidth=1e6*e.connection.downlink,this._onConnectionChange=this._onConnectionChange.bind(this),e.connection.addEventListener("change",this._onConnectionChange))}_onConnectionChange(e){const t=e.target.downlink||0;this._setBandwidth(t)}_setBandwidth(e){this._currentBandwidth=1e6*e}getBandwidthEstimate(){if(this._overrideBitrate)return this._overrideBitrate;if(this._totalBytes<128e3)return this._currentBandwidth;const e=this._short.getEstimate(),t=this._long.getEstimate();return Math.min(e,t)}sample(e,t){if(e<16e3)return;const n=t/1e3,o=8*e/n;this._totalBytes+=e,this._short.sample(n,o),this._long.sample(n,o)}overrideBitrate(e){this._overrideBitrate=e<=0?0:e}}var be;!function(e){e.SHOWING="showing",e.HIDDEN="hidden"}(be||(be={}));const Se=Array.prototype.slice,Ee="function"==typeof Array.from?e=>Array.from(e):e=>Se.call(e);function Ae(e,t){const n=Ee(e.getElementsByTagName(t));for(const t of n)e.removeChild(t)}function Te(e){const t=e;return{id:t.id,text:t.text}}const Pe="visible",Oe="hidden",Ce=/^[A-Za-z]{2,4}([_-][A-Za-z]{4})?([_-]([A-Za-z]{2}|[0-9]{3}))?$/;class ke extends d.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(n.mode=this._isVisible?be.SHOWING:be.HIDDEN,null===(t=n.cues)||void 0===t?void 0:t.length){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(o.PLAYER_DISPLAYED_CUES_CHANGED,{cues:this._displayedCues.map(Te)})}_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?Pe:Oe}));const o=this._player.textTracks;for(let e=0,t=o.length;e=1?this._onLoadedMetadata():this._currentVideoContent&&e.addEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata))}_onLoadedMetadata(){const e=this._player;if(!e)return;if(Ae(e,"track"),!this._currentVideoContent)return;e.crossOrigin="anonymous";const t=this._updateActiveLanguage();for(const{lang:n,url:o}of this._currentVideoContent.getSubtitles()){const i=n.toLowerCase()===t,r=document.createElement("track");r.label=`${n} subtitles`,r.kind="subtitles",r.srclang=n,r.src=o,r.default=i,r.style.visibility=this._isVisible?Pe:Oe,e.appendChild(r),i&&!this._deactivateListeners&&this._subscribeToCueEvents(r)}}_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 o of e){const e=o.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(!Ce.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=[],Ae(e,"track"),e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.crossOrigin=this._crossOrigin)}visible(){return this._isVisible}}class Re{constructor(e){this.bandwidthEstimator=e.bandwidthEstimator}static create(e){return new Re(e)}getSample(e,t){var n,o;const i=this.bandwidthEstimator.getBandwidthEstimate(),r=function(e,t){const n=e.length;for(let o=0;oe.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:pe(null!=s?s:void 0)},audio:{bitrate:null==a?void 0:a.audio_bitrate,contentType:pe(null!=a?a:void 0)}}}}const Le=u.P.forTag("playback.audio_processor");class Ie{constructor(e){this._audioContext=null,this._mediaElementSource=null,this._gainNode=null,this._nodes=[],(null==e?void 0:e.disable)?Le.info("AudioProcessor disabled"):(this._audioContext=(null==e?void 0:e.audioContext)||("undefined"!=typeof AudioContext?new AudioContext:null),this._audioContext?(this._gainNode=this._audioContext.createGain(),this._buildNodePipeline(null==e?void 0:e.nodes)):Le.warn("The AudioContext API is not supported. Any future operation related to `AudioProcessor` will be skipped."))}static create(e){return new Ie(e)}_setMediaElementSource(e){var t;this._audioContext&&(this._mediaElementSource&&(Le.info("Disconnecting previous media element source"),this._mediaElementSource.disconnect()),Le.info("Creating new media element source"),this._mediaElementSource=this._audioContext.createMediaElementSource(e)||null,this._mediaElementSource.connect(null!==(t=this._nodes[0])&&void 0!==t?t:this._audioContext.destination))}_buildNodePipeline(e=[]){var t;if(!this._audioContext)return;Le.info("Disconnecting previous nodes");const n=this._nodes;for(const e of n)e.disconnect();const o=[this._gainNode,...e];let i=null;for(const e of o)i&&i.connect(e),i=e;null===(t=o[o.length-1])||void 0===t||t.connect(this._audioContext.destination),Le.info("Node pipeline built"),this._nodes=o}setPlayer(e){var t;e&&((null===(t=this._mediaElementSource)||void 0===t?void 0:t.mediaElement)!==e?this._setMediaElementSource(e):Le.info("The new player is the same as the current player"))}setAudioGain(e=0){if(!this._gainNode)return Le.info("The default gain node is not available"),!1;const t=Math.pow(10,e/20);return this._gainNode.gain.value=t,Le.info("Main gain set to",t),!0}getAudioContext(){return this._audioContext}resume(){return this._audioContext&&"running"!==this._audioContext.state?this._audioContext.resume():Promise.resolve()}suspend(){return this._audioContext&&"suspended"!==this._audioContext.state?this._audioContext.suspend():Promise.resolve()}destroy(){var e;this._audioContext&&(null===(e=this._mediaElementSource)||void 0===e||e.connect(this._audioContext.destination)),this._nodes=[],this._audioContext=null,this._gainNode=null,this._mediaElementSource=null,Le.info("The AudioProcessor is destroyed")}}const Ne=u.P.forTag("playback.media_source_manager");function we(e){if(!e)return"";const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n]?`="${e[n]}"`:"";t.push(`${n}${o}`)}return t.length?`; ${t.join("; ")}`:""}class De extends d.vp{constructor(e){super(),this._mediaSource=null,this._sourceBuffers={},this._currentInitSegments={},this._updateQueue=[],this._codecs=[],this._playId=0,this._lastBufferClearTime=Date.now(),this._customSourceBufferParams="";const{codecs:t,customSourceBufferParams:n,disableBufferAbort:o}=e;this._codecs=t,this._customSourceBufferParams=we(n),this._disableBufferAbort=!!o,this._onSourceOpen=this._onSourceOpen.bind(this),this._onSourceClose=this._onSourceClose.bind(this),this.dequeueUpdates=this.dequeueUpdates.bind(this),e.noInit||this._init()}static create(e){return new De(e)}_init(){this._mediaSource=new MediaSource,this._mediaSource.addEventListener(o.MEDIA_SOURCE_OPEN,this._onSourceOpen),this._mediaSource.addEventListener(o.MEDIA_SOURCE_CLOSE,this._onSourceClose),this._sourceBuffers={},this._currentInitSegments={}}_onSourceOpen(){var e;Ne.info("MediaSource opened.");const t=this._mediaSource;if(0===(null===(e=null==t?void 0:t.sourceBuffers)||void 0===e?void 0:e.length)&&"open"===(null==t?void 0:t.readyState)){Ne.info("Creating source buffers for codecs",this._codecs);for(const e of this._codecs){const n=t.addSourceBuffer(e+this._customSourceBufferParams);n.addEventListener(o.SOURCE_BUFFER_UPDATE_END,this.dequeueUpdates),this._sourceBuffers[e]=n}}this.dequeueUpdates(),this.emit(o.BUFFER_SOURCE_OPEN,null)}_onSourceClose(){Ne.info("MediaSource closed."),this._destroySourceBuffers(),this.emit(o.BUFFER_SOURCE_CLOSE,null)}_destroySourceBuffers(){const e=this._mediaSource;if(!e)return;const t=e.sourceBuffers;if(t.length)for(let n=0,o=t.length;n{n?setTimeout(e,500):e()})).then((()=>{this.emitSync(o.FRAGMENT_APPENDED,e.fragment),this.dequeueUpdates()})).then((()=>{e.init&&this._updateQueue.push(e)}))}this.emitSync(o.FRAGMENT_APPENDED,e.fragment);const a=r.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?Ne.info(`Injected combined init segment and playable segment (${e.codec}, ${e.profileId})`):e.init&&Ne.info(`Injected individual init segment (${e.codec}, ${e.profileId})`)}_abortUpdate(e){var t;"fragment"in e&&this.emitSync(o.FRAGMENT_APPENDED,e.fragment),null===(t=e.resolve)||void 0===t||t.call(e,!1),Promise.resolve().then(this.dequeueUpdates)}dequeueUpdates(){const e=this._updateQueue.shift();e&&this.tryUpdate(e)}tryUpdate(e){if(e.playId!==this._playId)return Ne.info("Try update dropped: playId has changed"),void this._abortUpdate(e);if(e.timestamp{this.tryUpdate({playId:this._playId,timestamp:Date.now(),type:"duration",duration:e,resolve:t})}))}getMediaSource(){return this._mediaSource}setPlayId(e){this._playId=e}getPlayId(){return this._playId}}const Me=u.P.forTag("playback.content_buffer");var xe;function Fe(){}!function(e){e[e.AUDIO=10]="AUDIO",e[e.VIDEO=20]="VIDEO"}(xe||(xe={}));class Ue extends d.vp{constructor(e,t=[],n={}){super(),this._appendingFragments=[],this._tracker=e;const{customSourceBufferParams:i,noInit:r,disableBufferAbort:a}=n;this._mediaSourceManager=De.create({codecs:t,noInit:r,customSourceBufferParams:i,disableBufferAbort:a}),this._removeAppendingFragment=this._removeAppendingFragment.bind(this),this._mediaSourceManager.on(o.FRAGMENT_APPENDED,(({data:e})=>this._removeAppendingFragment(e))),this.proxyEmitAll(this._mediaSourceManager,{[o.BUFFER_SOURCE_OPEN]:o.BUFFER_SOURCE_OPEN,[o.BUFFER_SOURCE_CLOSE]:o.BUFFER_SOURCE_CLOSE,[o.BUFFER_QUOTA_EXCEEDED]:o.BUFFER_QUOTA_EXCEEDED})}static create(e,t=[],n={}){return new Ue(e,t,n)}_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,r;const a=t.byteRanges.video?t.byteRanges.video.start:null!==(r=null===(i=t.byteRanges.audio)||void 0===i?void 0:i.start)&&void 0!==r?r:-1;var s;e>9e3&&this.emit(o.BUFFER_STALLED,{byteStart:a,timeStart:(s=t.timeStart,Math.ceil(1e3*s)),stallAmount:e-9e3,didTimeout:n})}_removeAppendingFragment(e){if(!e)return;const t=this._appendingFragments,n=t.indexOf(e);-1!==n&&t.splice(n,1)}dequeueUpdates(){this._mediaSourceManager.dequeueUpdates()}appendFragment(e,t,n=!1){if(-1!==this._appendingFragments.indexOf(t))return Promise.resolve([]);this._appendingFragments.push(t),this.emit(o.BUFFERING_START,null);const i=Date.now(),r=this._mediaSourceManager.getPlayId(),a=e.toLogJSON();return e.getBufferForFragment(t).then((e=>{var a,s,l,c,u,d;return this._trackBufferingProgress(e),r!==this._mediaSourceManager.getPlayId()?(Me.info("Append fragment dropped: playId has changed."),[]):(n||this._checkStalling(Date.now()-i,t,!1),null!==(null===(a=e.audio)||void 0===a?void 0:a.bandwidth)&&this._tracker.trackBufferURL((null===(s=e.audio)||void 0===s?void 0:s.bufferURL)||"",{bandwidth:(null===(l=e.audio)||void 0===l?void 0:l.bandwidth)||0}),null!==(null===(c=e.video)||void 0===c?void 0:c.bandwidth)&&this._tracker.trackBufferURL((null===(u=e.video)||void 0===u?void 0:u.bufferURL)||"",{bandwidth:(null===(d=e.video)||void 0===d?void 0:d.bandwidth)||0}),this.emit(o.BUFFERING_END,null),this._mediaSourceManager.appendBufferData(e,t,r,i))})).catch((e=>(this._removeAppendingFragment(t),n||this._checkStalling(Date.now()-i,t,!0),this.emit(o.BUFFER_APPEND_ERROR,{error:e,canPlayNext:!0,track:a}),Promise.reject(e))))}abort(e=!1){this._appendingFragments=[],this._mediaSourceManager.abort(e)}getMediaSource(){return this._mediaSourceManager.getMediaSource()}destroy(){this._mediaSourceManager.destroy()}progress(e,t,n){const o=this._mediaSourceManager.getMediaSource();if(!o)return;const i="video"===e.getMediaType()?xe.VIDEO:xe.AUDIO;if("open"===o.readyState||"ended"===o.readyState){let r;const a=function(e,t){var n;const o=null===(n=e.sourceBuffers[e.sourceBuffers.length-1])||void 0===n?void 0:n.buffered;if(o){let e,n;for(let i=0;io.duration)return void("open"===o.readyState&&this._mediaSourceManager.endOfStream());const s=e.getFragmentLength();Math.ceil(n/s)>Math.floor(a.end/s)&&(r=e.getFragmentForTime(n),r&&this.appendFragment(e,r,t).catch(Fe));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);r=e.getFragmentForTime(u),r?this.appendFragment(e,r,t).catch(Fe):this._mediaSourceManager.endOfStream()}else if(r=e.getFragmentForTime(n),r){if(this.appendFragment(e,r,t).catch(Fe),r.timeEnd{t.emeManager=e;const n=new Ke(t);return t.preinitMediaElement?n._preinitMediaElement():n})).catch((n=>{if(e.enableWithoutEME)return Ke.createWithOptions(t);throw n}))}static createWithOptions(e){return new Promise((t=>{const n=new Ke(e);t(e.preinitMediaElement?n._preinitMediaElement():n)}))}_init(){this._disableCache&&Be.info("Cache disabled."),this._transport.on(this._transport.EVENT_CONNECTION_OFFLINE,this._onNavigatorOffline),this.proxyEmitAllSync(this._tracker,{[o.TRACKER_TRACKING_DATA_CREATED]:o.PLAYER_TRACKING_DATA_CREATED,[o.TRACKER_TRACKING_DATA_FINALIZED]:o.PLAYER_TRACKING_DATA_FINALIZED,[o.TRACKER_PLAYBACK_START]:o.PLAYER_PLAYBACK_START}),this._tracker.on(o.TRACKER_PLAYED_THRESHOLD_REACHED,this._onPlayedThresholdReached),this._emeManager&&this._emeManager.addListeners({[o.EME_LICENSE_REQUEST_CAPPED]:this._onLicenseRequestCapped,[o.EME_LICENSE_REQUEST_ERROR]:this._onLicenseRequestError}),this._bufferManager.addListeners({[o.BUFFER_APPEND_ERROR]:this._onBufferError,[o.BUFFER_QUOTA_EXCEEDED]:this._onQuotaExceeded}),this.proxyEmitAll(this._bufferManager,{[o.BUFFER_STALLED]:o.PLAYER_BUFFER_STALLED}),this._mediator.addListeners({[l.FRAGMENT_FETCHED]:this._onFragmentFetched,[l.VIDEO_PROFILE_CHANGED]:this._onProfileChanged}),this.proxyEmitAll(this._mediator,{[l.FRAGMENT_FETCH_ERROR]:o.PLAYER_FRAGMENT_FETCH_ERROR,[l.SUBTITLE_LANGUAGES_LOADED]:o.PLAYER_SUBTITLE_LANGUAGES_LOADED}),this.proxyEmitSync(this._subtitleManager,o.PLAYER_DISPLAYED_CUES_CHANGED,o.PLAYER_DISPLAYED_CUES_CHANGED),this.proxyEmitAll(this._videoResolver,{[o.VIDEO_MANIFEST_RESOLVED]:o.PLAYER_VIDEO_MANIFEST_RESOLVED,[o.VIDEO_MANIFEST_RESOLVE_FAILED]:o.PLAYER_VIDEO_MANIFEST_RESOLVE_FAILED})}_onRateChange(){this._player&&(this._tracker.trackSpeedChanged(this._player.playbackRate),this.emit(o.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.trackFragment(t),this.emit(o.PLAYER_FRAGMENT_FETCHED,t)}_onProfileChanged(e){const{data:t}=e;this._tracker.trackProfileChanged(t.profile),this.emit(o.PLAYER_VIDEO_PROFILE_CHANGED,t)}_onLicenseRequestCapped(e){if(e.data.playId!==this._playId)return;this._currentContent&&(this.pause(),this.emit(o.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(o.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.addEventListener(o.MEDIA_PLAY,this._onPlay),e.addEventListener(o.MEDIA_PLAYING,this._onPlaying),e.addEventListener(o.MEDIA_PAUSE,this._onPause),e.addEventListener(o.MEDIA_SEEKING,this._onSeeking),e.addEventListener(o.MEDIA_ENCRYPTED,this._onEncrypted),e.addEventListener(o.MEDIA_ENDED,this._onEnded),e.addEventListener(o.MEDIA_ERROR,this._onError),e.addEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.addEventListener(o.MEDIA_DURATIONCHANGE,this._onDurationChange),e.addEventListener(o.MEDIA_WAITING,this._onWaiting),e.addEventListener(o.MEDIA_CANPLAY,this._onCanPlay),e.addEventListener(o.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.addEventListener(o.MEDIA_RATECHANGE,this._onRateChange),e.addEventListener(o.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.addEventListener(o.MEDIA_RESIZE,this._onVideoResize)}_removePlayerEvents(e){e.removeEventListener(o.MEDIA_TIMEUPDATE,this._onTimeUpdate),e.removeEventListener(o.MEDIA_PLAY,this._onPlay),e.removeEventListener(o.MEDIA_PLAYING,this._onPlaying),e.removeEventListener(o.MEDIA_PAUSE,this._onPause),e.removeEventListener(o.MEDIA_SEEKING,this._onSeeking),e.removeEventListener(o.MEDIA_ENCRYPTED,this._onEncrypted),e.removeEventListener(o.MEDIA_ENDED,this._onEnded),e.removeEventListener(o.MEDIA_ERROR,this._onError),e.removeEventListener(o.MEDIA_WAITING,this._onWaiting),e.removeEventListener(o.MEDIA_CANPLAY,this._onCanPlay),e.removeEventListener(o.MEDIA_RATECHANGE,this._onRateChange),e.removeEventListener(o.MEDIA_CANPLAYTHROUGH,this._onCanPlayThrough),e.removeEventListener(o.MEDIA_LOADEDMETADATA,this._onLoadedMetadata),e.removeEventListener(o.MEDIA_DURATIONCHANGE,this._onDurationChange),e.removeEventListener(o.INTERNAL_MEDIA_REQUIRES_DURATION,this._onRequiresDuration),e.removeEventListener(o.MEDIA_RESIZE,this._onVideoResize)}_recreateMediaElement(e,t,n,i){if(t!==this._playId)return Be.info("Recreate player dropped: playId has changed."),Promise.resolve(!1);const r=this._player;if(r){if(!this._newElementPerTrack&&("AUDIO"!==r.tagName||"video"!==n)){let t=!0;for(const n of e)if('audio/mp2t;codecs="mp4a.40.2"'!==n&&!r.canPlayType(n)){t=!1;break}if(t)return Be.info("Reusing media element."),e.join(",")===this._activeCodecs.join(",")&&!this._newBufferPerTrack||i||(Be.info("Recreating buffer."),this._bufferManager.recreate(e),this._activeCodecs=e),Promise.resolve(!0)}this._removePlayerEvents(r),r.pause(),this._emeManager&&this._emeManager.removeMediaKeys(r).catch((function(e){Be.warn("Failed to remove media keys.",e)})),this._player=null;const t=this._getContainerElement(this._videoPlayerContainer);t&&r.parentNode===t&&(t.removeChild(r),this.emit(o.PLAYER_VIDEO_ELEMENT_REMOVED,null));const a=this._getContainerElement(this._audioPlayerContainer);a&&r.parentNode===a&&a.removeChild(r)}Be.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._bufferManager.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(o.PLAYER_VIDEO_RESIZED,{width:e,height:t})}_onDurationChange(){const e=this._playId,t=()=>{if(!this._player)return;if(e!==this._playId)return void Be.info("Duration changed drop: playId has changed.");const t=Je(this._player.duration),n=Je(this._player.currentTime);this._tracker.setActualDuration(t),this.emit(o.PLAYER_DURATION_CHANGED,{timestamp:Date.now(),position:n,duration:t})};this._loaded?t():this.once(o.PLAYER_LOAD,t)}_onPlay(){var e;if(!this._player||!this._currentContent)return;const t=Je(this._player.currentTime);this._tracker.trackPlay(t,this._player.playbackRate),this.emit(o.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=Je(this._player.currentTime);this._tracker.trackPlaying(t),this.emit(o.PLAYER_PLAYING,{timestamp:Date.now(),position:t,logData:e?e.getLogData():null})}_onPause(){if(!this._player)return;const e=Je(this._player.currentTime);this._tracker.trackPaused(e);const t=this._currentContent?this._currentContent.getLogData():null;this._pauseToken=setTimeout((()=>{clearTimeout(this._syntheticEndedToken),this.emit(o.PLAYER_PAUSED,{position:e,logData:t})}),10)}_onSeeking(){this.emit(o.PLAYER_SEEKING,null),this._bufferManager.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&&(Be.info("Exceeded quota: rebuffering current track."),this._bufferManager.abort(!0),this._player.currentTime=this._player.currentTime,this._onTimeUpdate())}_onEncrypted(e){Be.info("Got Encrypted event");this._currentContent&&this.emitSync(o.INTERNAL_ENCRYPTED,{initData:e.initData,fromPolyfill:!!e.fromPolyfill})}_onEnded(){!this._currentContent||this._synthesizeEnded&&this._currentContent.isProtected()||(Be.info("Native ended emitted."),this._emitEnded())}_onSyntheticEnded(){this._synthesizeEnded&&this._currentContent&&this._currentContent.isProtected()&&(Be.info("Synthetic ended emitted."),this._emitEnded())}_onError(){if(!this._player)return;const e=this._player.error;let t,n=!1;const o=this._currentContent;let i,a,s,l=!1;o&&(n=o.isProtected(),t=o.toLogJSON(),l=o.isAd(),o.clearCachedBuffers());let c=!0;const u=!o||l||!this._fatalOnNextError,d=e&&e.msExtendedCode?`0x${(e.msExtendedCode>>>0).toString(16).toUpperCase()}`:null,p=`data:${(null==t?void 0:t.fileId)||"unknown"}`;if(e instanceof MediaError){switch(e.code){case MediaError.MEDIA_ERR_ABORTED:i=r.MEDIA_ABORTED,a="Media aborted.";break;case MediaError.MEDIA_ERR_NETWORK:i=r.MEDIA_NETWORK_ERROR,a="Network error.";break;case MediaError.MEDIA_ERR_DECODE:i=r.MEDIA_DECODING_ERROR,a="Media decoding error.",c=u;break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:i=r.MEDIA_NOT_SUPPORTED,a="Media not supported.",c=u;break;default:i=r.PLAYER_MEDIA_ERROR,a="Media error.",s=!0}a+=` (${e.message||d||p||e.toString()})`}else i=r.PLAYER_PLAYBACK_ERROR,a="Error message undefined",s=!0;this._bufferManager.abort(!0);const h=new f(i,a);c||(h.unrecoverable=!0),h.listPlayerIgnore=l,h.debug.src_url=p,h.debug.protected=n,h.debug.extendedCode=d,h.debug.rawExCode=e&&e.msExtendedCode||null,s&&e&&(h.debug.nativeCode=e.code||null,h.debug.errorData=e),this._emitError(h,c,t)}_onLoadedMetadata(){this.emitSync(o.INTERNAL_PLAYER_LOADED_METADATA,null)}_onCanPlay(){this._buffering=!1,this.emitSync(o.INTERNAL_PLAYER_CANPLAY,null),this.emit(o.PLAYER_FIRST_BYTES,null)}_onCanPlayThrough(){this.emitSync(o.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(o.PLAYER_BUFFERING_START,Object.assign({position:Je(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,seeking:t},i.getStallsInformation())),this._getBufferingLatency().then((r=>{t||this._tracker.trackMsStalled(r),this.emit(o.PLAYER_BUFFERING_END,Object.assign({position:Je(e.currentTime),msPlayed:this._tracker.getMSPlayed(),canLowerBitrate:n,msStalled:r,seeking:t},i.getStallsInformation()))}))}_onPlayedThresholdReached(e){this._currentContent&&this._player&&this.emit(o.PLAYER_PLAYED_THRESHOLD_REACHED,{played:e.data.played,threshold:e.data.threshold,position:Je(this._player.currentTime)})}_emitEnded(){this._currentContent&&"video"===this._currentContent.getMediaType()&&this.emit(o.PLAYER_ENDED_VIDEO,null),clearTimeout(this._pauseToken),this.emit(o.PLAYER_ENDED,null)}_emitError(e,t,n){Be.error("Player Error",e,n,t),this._tracker.setHadError(!0),!this._disableCache&&n&&n.fileId&&this._cache.remove(n.fileId),this.emit(o.PLAYER_ERROR,{playId:this._playId,error:e,track:n,canPlayNext:t,position:this._player?Je(this._player.currentTime):0})}_emitWarning(e,t){Be.error("Player Warning",e,t,!0),this._tracker.trackWarning(),this.emit(o.PLAYER_WARNING,{playId:this._playId,error:e,track:t,canPlayNext:!0,position:this._player?Je(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 o;if(!n||t!==this._playId)return Be.info("Loading content dropped after recreate: playId has changed."),Promise.resolve(!1);this._player.playbackRate=(null===(o=this._loadingOptions)||void 0===o?void 0:o.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)?(Be.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)})):(Be.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(o.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(o.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 Be.info("LoadedMetadata operations dropped: playId has changed.");this._loaded=!0;const i=this._player;if(!i)return;this._bufferManager.dequeueUpdates();const r=n.position>i.duration?0:n.position;this._lastTimeUpdatePostion=0,(isNaN(i.currentTime)||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(o.PLAYER_AUTOPLAY_FAILED,null),Promise.reject(e)}return this._player?this._player.play():Promise.resolve()})).catch((()=>{this._onPause()}))}),i.readyState>2?(Be.info("Ready to play, triggering play."),a()):(Be.info("Waiting to be playable."),this.once(o.INTERNAL_PLAYER_CANPLAY,a))}_handleCanPlayThrough(e){e===this._playId?this._tracker.trackCanPlayThrough():Be.info("CanPlayThrough operations dropped: playId has changed.")}_loadContent(e,t){if(t!==this._playId||!this._upcomingContent)return Be.info("Loading content dropped: playId has changed."),Promise.resolve(!1);if(!this._player)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"Cannot load content without an HTMLMediaElement");this._canPreloadEmitted=!1;const n=this._upcomingContent;this._upcomingContent=null,this._currentContent=n,this._setAudioGain(n),this._subtitleManager.setVideoContent(n instanceof he?n:null);const a=e.callback;a&&this.once(o.PLAYER_LOAD,(()=>{this._playId&&t===this._playId?a():Be.info("Load content event dropped: playId has changed.")})),this.once(o.INTERNAL_PLAYER_LOADED_METADATA,this._handleLoadedMetadata.bind(this,t,this._currentContent.getLogData(),e)),this.once(o.INTERNAL_PLAYER_CANPLAYTHROUGH,this._handleCanPlayThrough.bind(this,t));let s=e.position;const l=n.getCalculatedDuration();l&&s>l&&(s=e.position=0);try{this._player.currentTime=s}catch(e){Be.warn("Cannot set initial position before loading.",e)}const c=n.isProtected();return this._tracker.setProtected(c),n.getKeySystem()===i.FAIRPLAY?n instanceof ve&&!c?Promise.resolve(this._loadUnprotectedTrack()):Promise.resolve(this._loadHLSProtectedTrack(e,t)):n instanceof he?this._loadVideoTrack(e,t):c?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 he))return Promise.resolve(!1);const n=this._currentContent;Be.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(o.INTERNAL_ENCRYPTED,i):this._bufferManager.once(o.BUFFER_SOURCE_OPEN,i);const a=this.getMediaSource();if(!a)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(a);const s=n.getVideoProfile(),l=n.getAudioProfile();return l||s?(this._tracker.trackVideoLoadStart({bitrate:null==s?void 0:s.video_bitrate,audioProfile:null!=l?l:void 0,videoProfile:null!=s?s:void 0}),this._tracker.trackBufferLoadStart(),this._bufferManager.setDuration(n.getCalculatedDuration()).then((()=>this._bufferManager.appendFragment(n,n.getInitFragment()))).then(this._onAppendedHeadSegment(t))):Promise.resolve(!1)}_loadHLSProtectedTrack(e,t){if(Be.info("Load HLS Protected Track"),!this._player||!this._currentContent)return!1;const n=this._currentContent.getResolvedURL();if(!n)throw new h(r.FILE_NOT_RESOLVED,"Cannot load HLS protected track: File not resolved.");const i=e=>{e.data.fromPolyfill&&(this.removeListener(o.INTERNAL_ENCRYPTED,i),this._requestLicense(t,{initData:e.data.initData}))};this.on(o.INTERNAL_ENCRYPTED,i);const a=this._currentContent;if(a instanceof he){const e=a.getVideoProfile(),t=a.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 s=document.createElement("source");return s.src=this._currentContent.getHLSURL(),s.type=Z,this._player.appendChild(s),this._player.load(),!0}_loadUnprotectedTrack(){if(!this._player||!this._currentContent)return!1;const e=this._currentContent.getResolvedURL();return!!e&&(Be.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(),Be.info("Head segment appended."),!0)}_loadProtectedTrack(e,t){if(!(this._currentContent&&this._player&&this._currentContent instanceof ve))return Promise.resolve(!1);const n=this._currentContent;Be.info("_loadProtectedTrack",n.getURI());const i=()=>this._requestLicense(t).then((()=>{this._playId===t&&(this._licenseRequested=!0,this._disableBufferingBeforeLicense&&this._onTimeUpdate())}));this._disableLicensePrefetch?this.once(o.INTERNAL_ENCRYPTED,i):this._bufferManager.once(o.BUFFER_SOURCE_OPEN,i);const a=this.getMediaSource();if(!a)throw new f(r.PLAYER_INVALID_INTERNAL_STATE,"No media source.");this._player.src=URL.createObjectURL(a),this._tracker.trackBufferLoadStart();const s=n.getFragmentForTime(e.position);let l=null;return s===n.getFirstFragment()?(Be.info("Appending combined init and playable fragment."),l=this._bufferManager.appendFragment(n,n.getHeadFragment())):(Be.info("Appending split init and playable fragment."),l=this._bufferManager.appendFragment(n,s)),l.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 Be.info(e),Promise.resolve(!1)}if(!this._player||!this._currentContent||!this._emeManager)return Promise.resolve(!1);const n=Date.now(),i=this._player.mediaKeys,r=this._currentContent,a=r.getFileId(),s=r.getLogData(),l=r.toLogJSON(),c=r.getKeySystem(),u=r.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,r.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,r.getInitParams()]).then((([o,r])=>{f.setLicenseSessionLatency(Date.now()-n);const a=r.initDataType,s=t.initData||r.initData;if(i&&s&&a){const t=Object.assign(Object.assign({},r),{playId:e,initData:s,mediaKeys:i,licenseServer:o,initDataType:a});return p.createSessionWithParams(t)}return Promise.resolve(!1)})).then((t=>{if(e!==this._playId)return Be.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(o.PLAYER_KEY_RECEIVED,{requestTime:i,logData:s}),Be.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,r=this._player.currentTime,a="video"===t.getMediaType();if(t.isProtected()&&this._disableBufferingBeforeLicense&&!this._licenseRequested)return void Be.log("Dropping time update event: buffering before license disabled.");if(!n&&this._lastTimeUpdatePostion&&this._lastTimeUpdatePostion===r)return void Be.warn("Dropping duplicate time update.");this._lastTimeUpdatePostion=n?0:r,t.getKeySystem()!==i.FAIRPLAY&&(a||t.isProtected())&&this._bufferManager.progress(t,n,r);const s=this._player.duration,l=Je(r),c=t.getLogData();n?(this._tracker.trackPositionChanged(l),this.emit(o.PLAYER_POSITION_CHANGED,{position:l,logData:c})):(this._tracker.trackProgress(l,"getCurrentBitrate"in t?t.getCurrentBitrate():0),this.emit(o.PLAYER_PROGRESS,{timestamp:Date.now(),position:l,played:this._tracker.getMSPlayed(),interval:500,logData:c})),!this._canPreloadEmitted&&s-r<=10?(this._canPreloadEmitted=!0,this.emit(o.PLAYER_CAN_PRELOAD,null)):this._canPreloadEmitted=!1,clearTimeout(this._syntheticEndedToken),this._synthesizeEnded&&t.isProtected()&&this._isPlaying()&&(this._syntheticEndedToken=setTimeout(this._onSyntheticEnded,Je(s-r)))}_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((o=>ve.create({abrManager:this._abrManager,mediator:this._mediator,keySystem:o.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,audioGain:t.audioGain}).load(n))).then((e=>{const o=this._tracker;return o.setResolveLatency(n.resolveLatency),o.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},o=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=>he.create({uri:e,abrManager:this._abrManager,mediator:this._mediator,resolver:this._videoResolver,keySystem:i.keySystem,licenseEndpoint:t.licenseEndpoint,fileId:o,noAuth:t.noAuth,format:s.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,audioGain:t.audioGain}).load(n))).then((e=>{const t=this._tracker;return t.setResolveLatency(n.resolveLatency),t.setManifestLatency(n.manifestLatency),e.isProtected()&&o&&!this._disableCache&&this._cache.set(o,e),e}))}_preinitMediaElement(){return this._player||!this._emeManager?Promise.resolve(this):this._emeManager.getKeySystemInfo().then((e=>{var t,n;const o=[];return(null===(t=e.audioFormats)||void 0===t?void 0:t[0])&&o.push(e.audioFormats[0].contentType),(null===(n=e.videoFormats)||void 0===n?void 0:n[0])&&o.push(e.videoFormats[0].contentType),!!o.length&&this._recreateMediaElement(o,this._playId,o.length>1?"video":"audio",e.keySystem!==i.FAIRPLAY)})).then((()=>this),(e=>(Be.warn("Cannot precreate media element:",null==e?void 0:e.message),this)))}_setAudioGain(e){var t;null===(t=this._audioProcessor)||void 0===t||t.setAudioGain(e.getAudioGain())}getCodecInfo(){return{audiocodec:"mp3",bitrate:160}}getMediaSource(){return this._bufferManager.getMediaSource()}load(e,t,n){var i;const a=function(e,t){return t&&t.hasOwnProperty(e)}(t.uriProperty,e)?t.uriProperty:"uri",s=e[a];if(Be.info("load",s),!s)return Promise.reject(new f(r.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 l=++this._playId,c=this._tracker;let u;c.trackLoadStart(s,e.fileId,l.toString(),e.logData,e.metadata),this.emit(o.PLAYER_BEFORE_LOAD,{track:e,options:t,logData:e.logData,uri:s,timestamp:Date.now()}),this._bufferManager.setPlayId(l),this._loadingOptions={position:je(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},c.setPlayIntended(this._loadingOptions.autoplay),c.setPlayedThreshold(t.playedThreshold);const d=this._cache,p="video"===e.mediaType?this._createVideoContent.bind(this,s,e):this._createAudioContent.bind(this,s,e,l);if(e.fileId){const t=e.fileId,n=this._preloadingTracks[t],o=this._disableCache?null:d.get(t);n?(Be.info("Waiting for preloading track.",t),u=n.then((e=>(Be.info("Preloading succeeded.",t),c.setResolveLatency(e.resolveLatency),c.setManifestLatency(e.manifestLatency),d.get(t))),(()=>(Be.info("Preloading failed, creating new track",t),p())))):o?(Be.info("Using cached track.",t,o),c.setMemoryCached(!0),u=Promise.resolve(o)):(Be.info("Creating new track from fileId",t),u=p())}else Be.info("Creating new track without fileId",e.resolvedURL),u=p();return u.then((t=>t.isProtected()&&!this._emeManager?Promise.reject(new f(r.DISALLOW_PROTECTED_TRACK_ERROR,"Protected tracks not supported")):(t.setLogData(e.logData),c.setCalculatedDuration(Je(t.getCalculatedDuration())),this._upcomingContent=t,Promise.resolve()))).then(this._prepareMediaElement.bind(this,this._loadingOptions,l)).then((()=>{this._audioProcessor.setPlayer(this._player)})).then(this._loadContent.bind(this,this._loadingOptions,l)).then(this._handleLoadingComplete,this._handleLoadingError.bind(this,s,e,l))}preload(e){const t=!this._disableCache,n=e.uri,i=e.fileId,r=this._cache;if(!t||!i||!this._emeManager)return Promise.resolve(null);const a="video"===e.mediaType;if(!(Ge[e.format]&&!a)||r.get(i))return Promise.resolve(null);const s=this._preloadingTracks,l=s[i];if(l)return l;Be.info("Preloading track",i);const c={manifestLatency:0,resolveLatency:0},u=this._emeManager.getKeySystemInfo().then((t=>ve.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,audioGain:e.audioGain}).load(c))).then((t=>Promise.all([t,"MP4_CBCS"!==e.format?t.getBufferForFragment(t.getHeadFragment()):null]))).then((([e])=>(r.set(i,e),delete s[i],Be.info("Cached",i),c))).catch((e=>(delete s[i],Be.warn("Preloading error",e),this.emit(o.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(o.PLAYER_BEFORE_VOLUME_CHANGE,{volume:e,options:t}).defaultPrevented){if(e<0||e>1)throw new f(r.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 o=this._player,i=this._currentContent,r={src:(null==o?void 0:o.src)?`data:${(null==i?void 0:i.getFileId())||"unknown"}`:void 0,height:(null==o?void 0:o.clientWidth)||0,width:(null==o?void 0:o.clientHeight)||0},a={};if(i){const[e,t]=i.getPlayableCodecs();a.audio_format=e,a.video_format=t,i instanceof he&&o instanceof HTMLVideoElement&&(a.video_height=o.videoHeight,a.video_width=o.videoWidth,r.poster=o.poster)}return{playing:null!==(e=!(null==o?void 0:o.paused))&&void 0!==e&&e,position:o?Je(o.currentTime):0,duration:o?Je(o.duration):0,volume:null!==(t=this._playerVolume)&&void 0!==t?t:1,playback_speed:null!==(n=null==o?void 0:o.playbackRate)&&void 0!==n?n:0,buffering:this._buffering,media_type:(null==i?void 0:i.getMediaType())||null,media_info:a,player_element:r}}getPlayerPosition(){return this._player?Je(this._player.currentTime):0}seek(e){if(!this._player)return;const t=this._playId,n=()=>{if(!this._player||t!==this._playId)return void Be.info("Seek dropped: playId has changed.");let n=je(e);n<0?n=0:n>=this._player.duration&&(n=this._player.duration),this._player.currentTime=n};this._loaded?n():this.once(o.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 this._audioProcessor.resume().then((()=>{this._player&&!this._isPlaying()&&Promise.resolve(this._player.play())}))}stop(e,t){var n;const i=[],r=e||{};this.emit(o.PLAYER_BEFORE_STOP,{timestamp:Date.now(),logData:r}),this._tracker.trackStopped(this._player?Je(this._player.currentTime):-1,e,this.getStatistics()||void 0),this._bufferManager.abort(!0),this._emeManager&&i.push(this._emeManager.destroySessions());const a=this._player;if(a){this._subtitleManager.clear(),this._fatalOnNextError=this._shouldNextErrorBeFatal(),this._fatalOnNextError&&Be.warn("MediaError detected: next immediate media error will be fatal.");const e=a.src;if(e)Ve.test(e)&&URL.revokeObjectURL(e),a.removeAttribute("src");else{const e=Ee(a.getElementsByTagName("source"));Be.info(`HTMLSourceElements to removed: ${e.length}`);for(const t of e)a.removeChild(t);Be.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(o.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(o.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 he))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(a.INVALID):(this._preferredBitrate=e,this._currentContent&&"video"===this._currentContent.getMediaType()&&e>0&&this._bufferManager.abort(!0),this._abrManager.overrideBitrate(e),Promise.resolve(a.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 he&&this._currentContent.setVideoResolution(this._videoResolution)}activateElement(){return this._playerActivated||!this._player||this._player.src?(this._audioProcessor.resume(),!1):(this._audioProcessor.resume().then((()=>{var e;return null===(e=this._player)||void 0===e?void 0:e.load()})),this._playerActivated=!0,!0)}getMediaConfig(){return void 0===this._mediaConfig?function(e,t){const n=t||He("video"),o=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,o(i),i}));const i="undefined"!=typeof window&&window.MediaSource?e=>MediaSource.isTypeSupported(e):e=>"probably"===n.canPlayType(e)||"probably"===n.canPlayType(e.split(";")[0]),r=B([U[0]],i),a=[],s=[],l=[],c=[];if(r){const{audioCapabilities:e,videoCapabilities:t}=r;for(const t of e)a.push(t.contentType),l.push(G(t.contentType));for(const e of t)s.push(e.contentType),c.push(G(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 o(u),Promise.resolve(u)}(this._emeManager,this._player).then((e=>(this._mediaConfig=e,this._mediaConfig))):Promise.resolve(this._mediaConfig)}setPlaybackSpeed(e){var t;return!(!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}getAudioProcessor(){return this._audioProcessor}}var Ye=n(6768);class We extends Error{constructor(e,t){super(t),this.debug={},this.name="LoggingError",this.message=t,this.code=e}}const ze="7.21.2-8cb7697",qe="7.21.2",Xe=u.P.forTag("playback.logger");class Ze extends d.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 Ze(e)}_init(){const e=this._player;e.on(o.PLAYER_LOAD,this._onPlayerLoad.bind(this)),e.on(o.PLAYER_ERROR,this._onError.bind(this,!1)),e.on(o.PLAYER_WARNING,this._onError.bind(this,!0)),e.on(o.PLAYER_PRELOADING_ERROR,this._onError.bind(this,!1)),e.on(o.PLAYER_TRACKING_DATA_CREATED,this._onTrackingDataCreated.bind(this)),e.on(o.PLAYER_TRACKING_DATA_FINALIZED,this._onTrackingDataFinalized.bind(this)),e.on(o.PLAYER_PLAYBACK_START,this._onPlaybackStart.bind(this))}_emitError(e,t){this.emit(o.LOGGER_ERROR,{error:e,trackingData:t})}_onError(e,t){var n,o,i;const a=t.data,s=this._currentTrackingData;if(!s||s.noLog)return;const l=a.error,c=null!==(n=null==l?void 0:l.debug)&&void 0!==n?n:{};c.position="position"in a?a.position:0;const u={track:a.track||{},debug:c,preloading:"preloading"in a&&!!a.preloading,session_id:this._sessionId,playback_id:s.playbackId||null,player_play_id:"playId"in a?a.playId:null,http_status_code:null!==(o=null==l?void 0:l.status)&&void 0!==o?o:null,license_server:null!==(i=null==l?void 0:l.licenseServer)&&void 0!==i?i:null};this._logError(l.code||r.UNKNOWN,l,u,s,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};Xe.debug("Logged TrackStreamVerification",t),this._logSender.logTrackStreamVerification(t).catch((n=>{const o=new We(r.TSV_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,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_metadata_duration:e.msMetadataDuration,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,resolution_max:e.maxResolution||0,resolution_min:e.minResolution||0};Xe.info("Logging PlaybackStats"),this._logSender.logJSSDKPlaybackStats(t).catch((n=>{const o=new We(r.PLAYBACK_STATS_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,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};Xe.info("Logging PlaybackStart"),this._logSender.logJSSDKPlaybackStart(t).catch((n=>{const o=new We(r.PLAYBACK_START_SENDING_FAILED,n.message||"Unknown reason.");this._logError(o.code,n,t,e,!1),this._emitError(o,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){Xe.warn("Unable to send impression request",e)}))}_logError(e,t,n,o,i){let r="";t&&(r=t.stack||"",r||(r=t.toString()));const a={source:"playback",source_version:ze||Ye.eV.UNKNOWN,type:e||Ye.eV.UNKNOWN,message:t&&t.message||Ye.eV.EMPTY,stack:JSON.stringify(r),json_data:JSON.stringify(n||{}),json_data_version:"1.0.0",client_id:o.clientId,correlation_id:o.correlationId};i?this._logSender.logJSSDKWarning(a).catch((e=>Xe.warn("Failed to log warning",a,e))):this._logSender.logJSSDKError(a).catch((e=>Xe.warn("Failed to log error",a,e)))}}class Qe extends Error{constructor(e=r.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 $e=u.P.forTag("playback.storage_resolve");class et{constructor(e){this._transport=e}_parseResponse(e,t){var n;let o;if(200!==t.status)return o=new Qe(r.STORAGE_FAILED_WITH_STATUS,`Storage Resolve responded with ${t.status}`),o.status=t.status,o.fileId=e,Promise.reject(o);const i=t.body;if(!(null===(n=null==i?void 0:i.cdnurl)||void 0===n?void 0:n.length))return o=new Qe(r.STORAGE_RETURNED_NO_TRACKS,`Storage Resolve returned no tracks for fileId ${e}`),o.fileId=e,Promise.reject(o);const a={uri:i.cdnurl[0],uris:i.cdnurl,protection:"cenc"};return Promise.resolve(a)}getCDNURL(e,t){$e.info("Requesting CDN URL for ",e);const n="files/audio/interactive",o=`@webgate/storage-resolve/${t?`v2/${n}/${t}/${e}`:`${n}/${e}`}?version=10000000&product=9&platform=39&alt=json`;return this._transport.request(o,{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 $e.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 Qe(r.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 Qe(r.STORAGE_TRACK_MANIFEST_EMPTY,"Received empty manifest."),n.debug.file_id=e,n.status=t.status,Promise.reject(n))}))}}class tt extends Error{constructor(e,t){super(t),this.debug={},this.name="TrackingError",this.message=t,this.code=e}}class nt{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 ot{constructor(){this._bitrates={},this._isFinalized=!1,this._needsEndSegment=!1,this._segments=[],this._cdnURLTracker=new nt,this._currentSpeed=1,this.audiocodec=null,this.bitrate=0,this.audioQuality=void 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.msMetadataDuration=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.totalBandwidth=0,this.lastBitrate=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,this.maxResolution=0,this.minResolution=0}static create(){return new ot}_calculateUnion(){const e=this._segments.slice(0);let t=0,n=0,o=0,i=0,r=0,a=0,s=this.maxContinuous;for(;rs?a:s);for(this.maxContinuous=s,e.sort(((e,t)=>e.time-t.time));i0&&(n+=parseInt(o,10)*t[o]/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&&(this.audiocodec=e.audioProfile.audio_codec),e.videoProfile&&(this.videocodec=e.videoProfile.video_codec,this.lastBitrate=e.videoProfile.video_bitrate,this.minResolution=e.videoProfile.video_resolution,this.maxResolution=e.videoProfile.video_resolution)}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(){if(this._isFinalized)throw new tt(r.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 e=this.msPlayed;return this.timeWeightedBitrate=this._calculateWeightedBitrate(e),this.startBitrate||(this.startBitrate=this.bitrate),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_metadata_duration:this.msMetadataDuration,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,resolution_max:this.maxResolution,resolution_min:this.minResolution}}isFinalized(){return this._isFinalized}}const it=u.P.forTag("playback.tracker");class rt extends d.vp{constructor(e={}){super(),this._playedThreshold=31e3,this._playedThresholdReached=!1,this._trackingData=null,this._playedThreshold=e.playerThreshold||31e3}static create(e){return new rt(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,r,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(o=e-n.lastPlayPosition,o<0)return void it.warn("Skipping msPlayed calculation: late progress event.");n.addMSPlayed(o)}this._checkPlayedThreshold(),n.position=e,n.lastPlayPosition=e,t&&n.trackBitrate(t,o)}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}trackFragment(e){const t=this._trackingData;if(!t)return;const{bandwidth:n,resolution:o}=e;o&&((ot.maxResolution&&(t.maxResolution=o)),(nt.bpsBandwidthMax&&(t.bpsBandwidthMax=n),t.bpsBandwidthAvg=t.bpsBandwidthAvg?(t.bpsBandwidthAvg+n)/2:n}trackProfileChanged(e){const t=this._trackingData;if(!t)return;const{bitrate:n}=e;nt.lastBitrate&&t.nRenditionUpgrade++,t.lastBitrate=n}}class at extends d.vp{constructor(e){super(),this._transport=e,this._parseManifestResponse=this._parseManifestResponse.bind(this)}static create(e){return new at(e)}_parseManifestResponse(e){var t;const n=e.metadata.startTime;if(200!==e.status){const t=new Qe(r.STORAGE_VIDEO_MANIFEST_FAILED,`Video manifest request failed with status ${e.status}`);return t.status=e.status,this.emit(o.VIDEO_MANIFEST_RESOLVE_FAILED,{url:e.url,error:t,start_time:n}),Promise.reject(t)}const i=e.body,a=null===(t=e.headers)||void 0===t?void 0:t.get("content-length");return this.emit(o.VIDEO_MANIFEST_RESOLVED,{url:e.url,manifest_size:a?parseInt(a,10):JSON.stringify(i).length,start_time:n,end_time:Date.now()}),Promise.resolve(i)}getInitSegmentURLs(e,t,n,o){let i="";n&&(i=e+t.replace("{{profile_id}}",n.id.toString(10)).replace("{{file_type}}",n.file_type));let r="";return o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type)),{audio:i,video:r,audioLogging:i,videoLogging:r}}getSegmentURLs(e,t,n,o,i){let r="";o&&(r=e+t.replace("{{profile_id}}",o.id.toString(10)).replace("{{file_type}}",o.file_type));let a="";return i&&(a=e+t.replace("{{profile_id}}",i.id.toString(10)).replace("{{file_type}}",i.file_type)),{audio:r.replace("{{segment_timestamp}}",n.toString()),video:a.replace("{{segment_timestamp}}",n.toString()),audioLogging:r,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 st 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 st(e,t);return n.unrecoverable=!0,n.canPlayNext=!1,n}}class lt{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}`,o=this._urls[n];if(o&&o.expires>Date.now()+6e4)return Promise.resolve(o.uri);const i=this._useTestLicenseServer?"&use_test_license_server=true":"",a=`@webgate/melody/v1/license_url?keysystem=${e}&mediatype=${t}&sdk_name=${this._sdk.name}&sdk_version=${this._sdk.version}${i}`;return this._transport.request(a,{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 o;return o=t?400===e.status&&t&&"deprecated-version"===t.code?st.fatal(r.LICENSE_RESOLVER_DEPRECATED_VERSION,"This version of the SDK is no longer supported. Please upgrade"):new st(r.LICENSE_RESOLVER_CANT_RESOLVE_URL,`License URL endpoint responded with status ${e.status}`):st.fatal(r.LICENSE_RESOLVE_INVALID_RESPONSE,"License URL endpoint responded with invalid response"),o.status=e.status,Promise.reject(o)}))}remove(e,t){this._urls[`${e}:${t}`]=null}}class ct{constructor(e){this._melodyLogger=new Ye.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 ut;!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"}(ut||(ut={}));const dt={[r.MEDIA_ABORTED]:ut.ABORTED,[r.MEDIA_DECODING_ERROR]:ut.MEDIA_DECODING,[r.MEDIA_NOT_SUPPORTED]:ut.SRC_NOT_SUPPORTED,[r.MEDIA_NETWORK_ERROR]:ut.NETWORK};function pt(e){let t=dt[e];return/_REQUEST_|_RESPONSE$/.test(e)?t=ut.NETWORK:t||(t=/^EME_/.test(e)?ut.EME:ut.GENERIC),t}function ft(e){var t;const n=e.match(/^https?:\/\/([^\/]+@)?([^\/?#]+)/);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:""}var ht;!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"}(ht||(ht={}));const mt={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 gt{constructor(e){this._playerId=`spotify-playback-${Date.now()}`,this._currentContentInfo=null,this._readyDeferred=(0,m.$)(),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 gt(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||qe,player_mux_plugin_name:"spotify-playback-mux-reporter",player_mux_plugin_version:qe},e.muxCustomDimensions),getPlayheadTime:this._getPlayheadTime,getStateData:this._getStateData},this._player.addListeners({[o.PLAYER_BEFORE_LOAD]:this._onBeforeLoad.bind(this),[o.PLAYER_PLAY]:this._onPlay.bind(this),[o.PLAYER_PLAYING]:this._onPlaying.bind(this),[o.PLAYER_PAUSED]:this._onPause.bind(this),[o.PLAYER_PROGRESS]:this._onProgress.bind(this),[o.PLAYER_SEEKING]:this._onSeeking.bind(this),[o.PLAYER_POSITION_CHANGED]:this._onPositionChanged.bind(this),[o.PLAYER_ERROR]:this._onError.bind(this),[o.PLAYER_ENDED]:this._onEnded.bind(this),[o.PLAYER_DURATION_CHANGED]:this._onDurationChanged.bind(this),[o.PLAYER_VIDEO_RESIZED]:this._onVideoResized.bind(this),[o.PLAYER_VIDEO_PROFILE_CHANGED]:this._onVideoProfileChanged.bind(this),[o.PLAYER_FRAGMENT_FETCHED]:this._onFragmentFetched.bind(this),[o.PLAYER_FRAGMENT_FETCH_ERROR]:this._onFragmentFetchError.bind(this),[o.PLAYER_VIDEO_MANIFEST_RESOLVED]:this._onVideoManifestResolved.bind(this),[o.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:o}=e.data,i=!!this._currentContentInfo;if("video"!==t.mediaType||(null==o?void 0:o.noLog)||(null==o?void 0:o.noMuxEvents))return i&&this._mux.emit(this._playerId,ht.VIDEO_CHANGE,{}),void(this._currentContentInfo=null);const r={video_id:t.fileId,video_title:(null==o?void 0:o.displayTitle)||void 0,video_series:(null==o?void 0:o.displayGroup)||void 0,video_duration:(null==o?void 0:o.displayDuration)||void 0},a=Object.assign({},mt);this._currentContentInfo={track:t,options:n,videoData:r,stateData:a},!this._isMuxInitialized&&this._muxInitData?(this._mux.init(this._playerId,this._muxInitData),this._mux.emit(this._playerId,ht.READY),this._isMuxInitialized=!0):i&&this._mux.emit(this._playerId,ht.VIDEO_CHANGE,r)}_onPlay(){var e,t;if(!this._currentContentInfo)return;const n=this._currentContentInfo.stateData,o=this._player.getPlayerState(),i=o.media_info,r=(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}=o.player_element;n.player_is_paused=!o.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=r,n.video_source_url=l,n.video_source_mime_type=i.video_format,n.video_source_duration=o.duration,n.video_poster_url=c,this._mux.emit(this._playerId,ht.PLAY,this._currentContentInfo.videoData)}_onPlaying(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!1,this._mux.emit(this._playerId,ht.PLAYING))}_onPause(){this._currentContentInfo&&(this._currentContentInfo.stateData.player_is_paused=!0,this._mux.emit(this._playerId,ht.PAUSE))}_onProgress(e){this._currentContentInfo&&this._mux.emit(this._playerId,ht.TIMEUPDATE,{player_playhead_time:e.data.position})}_onSeeking(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.SEEKING)}_onPositionChanged(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.SEEKED)}_onError(e){var t,n;const o=null===(n=null===(t=e.data)||void 0===t?void 0:t.error)||void 0===n?void 0:n.code;this._currentContentInfo&&o&&this._mux.emit(this._playerId,ht.ERROR,{player_error_code:pt(o),player_error_message:o})}_onEnded(){this._currentContentInfo&&this._mux.emit(this._playerId,ht.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,ht.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,ht.REQUEST_COMPLETED,{request_type:n,request_hostname:ft(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,ht.REQUEST_FAILED,{request_type:n,request_hostname:ft(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,ht.REQUEST_COMPLETED,{request_type:"manifest",request_hostname:ft(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,ht.REQUEST_FAILED,{request_type:"manifest",request_hostname:ft(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 vt,yt,_t,bt,St,Et,At;!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"}(vt||(vt={})),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"}(yt||(yt={})),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"}(_t||(_t={})),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"}(bt||(bt={})),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"}(St||(St={})),function(e){e.NONE="NONE",e.CONTEXT="CONTEXT",e.TRACK="TRACK"}(Et||(Et={})),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"}(At||(At={}));class Tt 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 Tt(e,t);return n.unrecoverable=!0,n}}function Pt(e){return"uri"in e}class Ot extends d.vp{constructor(e){if(super(),this._trackPlayerPromise=(0,m.$)(),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=Et.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 Ot(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({[o.PLAYER_CAN_PRELOAD]:this._handleCanPreload,[o.PLAYER_CAPPED]:this._handleCapped,[o.PLAYER_ENDED]:this._handleEnded,[o.PLAYER_ERROR]:this._handleError,[o.PLAYER_PAUSED]:this._handlePaused,[o.PLAYER_PLAYING]:this._handlePlaying,[o.PLAYER_TIMEOUT]:this._handleTimeout,[o.PLAYER_POSITION_CHANGED]:this._handlePositionChanged,[o.PLAYER_DURATION_CHANGED]:this._handleDurationChanged,[o.PLAYER_PROGRESS]:this._handleProgress,[o.PLAYER_BEFORE_LOAD]:this._handleBeforeLoad,[o.PLAYER_PLAYED_THRESHOLD_REACHED]:this._handlePlayedThresholdReached}),this.proxyEmitAllSync(e,{[o.PLAYER_BEFORE_VOLUME_CHANGE]:o.LIST_PLAYER_BEFORE_VOLUME_CHANGE,[o.PLAYER_LOAD]:o.LIST_PLAYER_PLAYER_LOAD}),this.proxyEmitAll(e,{[o.PLAYER_AUTOPLAY_FAILED]:o.LIST_PLAYER_AUTOPLAY_FAILED,[o.PLAYER_TRACKING_DATA_CREATED]:o.LIST_PLAYER_TRACKING_DATA_CREATED,[o.PLAYER_TRACKING_DATA_FINALIZED]:o.LIST_PLAYER_TRACKING_DATA_FINALIZED,[o.PLAYER_BUFFER_STALLED]:o.LIST_PLAYER_BUFFER_STALLED,[o.PLAYER_BUFFERING_START]:o.LIST_PLAYER_BUFFERING_START,[o.PLAYER_BUFFERING_END]:o.LIST_PLAYER_BUFFERING_END,[o.PLAYER_VIDEO_ELEMENT_APPENDED]:o.LIST_PLAYER_VIDEO_ELEMENT_APPENDED,[o.PLAYER_VIDEO_ELEMENT_REMOVED]:o.LIST_PLAYER_VIDEO_ELEMENT_REMOVED,[o.PLAYER_DISPLAYED_CUES_CHANGED]:o.LIST_PLAYER_DISPLAYED_CUES_CHANGED,[o.LIST_PLAYER_VIDEO_PROFILE_CHANGED]:o.PLAYER_VIDEO_PROFILE_CHANGED,[o.LIST_PLAYER_PLAYBACK_SPEED_CHANGED]:o.PLAYER_PLAYBACK_SPEED_CHANGED,[o.LIST_PLAYER_SUBTITLE_LANGUAGES_LOADED]:o.PLAYER_SUBTITLE_LANGUAGES_LOADED})}_translatePosition(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translatePosition)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_translateDuration(e){var t,n,o;return null!==(o=null===(n=null===(t=this._loadedList)||void 0===t?void 0:t.translateDuration)||void 0===n?void 0:n.call(t,e))&&void 0!==o?o:e}_handleProgress(e){const{data:t}=e;this.emit(o.LIST_PLAYER_PROGRESS,Object.assign(Object.assign({},t),{position:this._translatePosition(t.position)}))}_handleBeforeLoad(e){const{data:t}=e;this.emit(o.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 Tt(r.LIST_PLAYER_NO_TRACK_PLAYER,e.message||"Track player promise was rejected."))}_handleCapped(){const e=this._currentTrack;e&&this.emit(o.LIST_PLAYER_CAPPED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList})}_handlePlaying(e){const t=this._currentTrack;t&&this.emit(o.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(o.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(o.LIST_PLAYER_TRACK_ENDED,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(bt.TRACK_DONE))}_handleTimeout(){const e=this._currentTrack;e&&(this.emit(o.LIST_PLAYER_TRACK_TIMEOUT,{uid:this._uid,track:e,options:this._currentTrackOptions,list:this._loadedList}),this.next(bt.TRACK_ERROR))}_handlePositionChanged(e){const t=this._currentTrack;t&&this.emit(o.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(o.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(o.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(o.LIST_PLAYER_ERROR,n),this.emitSync(o.LIST_PLAYER_ERROR_SYNC,n);const i=!!n.error&&n.error.listPlayerIgnore;i||this._listErrorCount++,n.canPlayNext&&(i||this._listErrorCount<=this._maxListErrors?this.next(bt.TRACK_ERROR):this.emit(o.LIST_PLAYER_MAX_LIST_ERRORS_REACHED,{count:this._listErrorCount,threshold:this._maxListErrors}))}_handleTrackLoaded(e){this.emitSync(o.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(o.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(o.LIST_PLAYER_LIST_CHANGED,{list:e,options:t}),a.SUCCESS}_preloadTrack(e){return this._getTrackPlayer().then((t=>(t.preload(e).catch((()=>{})),a.SUCCESS)))}_changeTrack(e,t,n){if(this._currentSeqId!==n)return Promise.resolve(a.CANCELLED);this.emitSync(o.LIST_PLAYER_BEFORE_TRACK_LOAD,{list:this._loadedList,newTrack:e,oldTrack:this._currentTrack}),this._uid++;const i=++this._listPlayCount,r=this._loadedOptions;let s=!0,l=0,c=3e4;r&&(1===i?(s=!r.paused,l=r.initialPosition||r.position||0):l=r.position||0);const u=t===bt.TRACK_DONE;if(e.options){const t=e.options;void 0!==t.paused&&(s=!t.paused),void 0!==t.position&&(l=t.position),void 0!==t.playedThreshold&&(c=t.playedThreshold)}this._currentTrack=e,this._currentTrackOptions={reason:t,paused:!s,position:l,playedThreshold:c};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?a.CANCELLED:(Promise.resolve(t.load(e,{uriProperty:"playableURI",autoplay:s,position:l,playedThreshold:c,continuePrevious:u},d)).catch((()=>{})),a.SUCCESS)))}_preloadUpcomingTrack(){const e=this._loadedList;if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));const t={reason:bt.TRACK_DONE,listConstants:vt};return e.peekNext(t).then((e=>e===vt.FORBIDDEN?a.FORBIDDEN:e===vt.NULL_VALUE?this._preloadUpcomingTrack():e===vt.LIST_END?a.LIST_END:Pt(e)&&e.playable?this._preloadTrack(e):a.INVALID))}activateElement(){return this._getTrackPlayer().then((e=>(e.activateElement(),a.SUCCESS)))}load(e,t){const n=function(e={}){const t={index:-1,position:0,initialPosition:0,duration:-1,paused:!1,reason:bt.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 a.CANCELLED;const t=this._loadedOptions?this._loadedOptions.reason:bt.UNKNOWN;return this.next(t)}))}canChangeTrack(){return this._loadedList?this._loadedList.peekNext({reason:bt.FORWARD_BUTTON,listConstants:vt}).then((e=>e!==vt.FORBIDDEN)):Promise.resolve(!0)}next(e){if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(o.LIST_PLAYER_BEFORE_NEXT,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vt};return t.next(i).then((i=>this._currentSeqId!==n?a.CANCELLED:i===vt.FORBIDDEN?a.FORBIDDEN:i===vt.NULL_VALUE?this.next(e):i===vt.LIST_END?(this.emit(o.LIST_PLAYER_LIST_ENDED,{list:t,reason:bt.END_PLAY}),this.clear(e),a.LIST_END):Pt(i)?i.playable?this._changeTrack(i,e,n):(this.emit(o.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.next(e)):a.INVALID))}previous(e){if(!e)return Promise.reject(new Tt(r.LIST_PLAYER_INVALID_ARGUMENT,"The argument `reason` is required."));const t=this._loadedList;if(!t)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));this.emitSync(o.LIST_PLAYER_BEFORE_PREVIOUS,{list:t,reason:e});const n=this._incrementSeqId(),i={reason:e,listConstants:vt};return t.previous(i).then((i=>this._currentSeqId!==n?a.CANCELLED:i===vt.FORBIDDEN?a.FORBIDDEN:i===vt.NULL_VALUE?this.previous(e):i===vt.LIST_START?(this.emit(o.LIST_PLAYER_LIST_ENDED,{list:t,reason:bt.END_PLAY}),this.clear(e),a.LIST_END):Pt(i)?i.playable?this._changeTrack(i,e,n):(this.emit(o.LIST_PLAYER_TRACK_UNPLAYABLE,{track:i,list:t}),this.previous(e)):a.INVALID))}pause(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.pause().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}resume(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.resume().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}togglePlay(){return this._loadedList?this._currentTrack?this._getTrackPlayer().then((e=>e.togglePlay().then((()=>a.SUCCESS)).catch((e=>"AbortError"===(null==e?void 0:e.name)?a.CANCELLED:a.FORBIDDEN)))):Promise.resolve(a.SUCCESS):Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."))}stop(e){const t={reason:e||bt.UNKNOWN},n=this._currentTrack;return n&&n.logData&&(t.source=n.logData.source),this._incrementSeqId(),this._getTrackPlayer().then((e=>(e.stop(t),this.emit(o.LIST_PLAYER_STOPPED,{uid:this._uid,options:this._currentTrackOptions,list:this._loadedList}),a.SUCCESS)))}clear(e){return this.stop(e).then((()=>(this._loadedList=null,this._loadedOptions=null,this._currentTrack=null,this._currentTrackOptions=null,this.emit(o.LIST_PLAYER_CLEARED,null),a.SUCCESS)))}setShuffle(e){const t=!!e;if(this._shuffled!==t){this._shuffled=t,this.emit(o.LIST_PLAYER_SHUFFLE_CHANGED,{player:this,shuffled:t});const e=this._loadedList;e&&e.setShuffle(this._shuffled)}return Promise.resolve(a.SUCCESS)}setRepeatMode(e){if(!(e in Et))return Promise.reject(new Tt(r.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(o.LIST_PLAYER_REPEAT_MODE_CHANGED,{player:this,repeatMode:e});const t=this._loadedList;t&&t.setRepeatMode(this._repeatMode)}return Promise.resolve(a.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(o.LIST_PLAYER_VOLUME_CHANGED,{volume:e,commandId:t}),a.SUCCESS)))}seek(e,t=bt.SEEK){var n,i;const s=this._loadedList;if(!s)return Promise.reject(new Tt(r.LIST_PLAYER_NO_LIST,"Cannot perform operation; no list was loaded."));if("function"==typeof s.allowSeeking&&!s.allowSeeking())return Promise.reject(new Tt(r.LIST_PLAYER_FORBIDDEN,"The operation is not allowed."));const l=null!==(i=null===(n=s.handleSeek)||void 0===n?void 0:n.call(s,e,{reason:t,listConstants:vt}))&&void 0!==i?i:e;return l===vt.PAUSE?this.pause().then((t=>(this.emit(o.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:l}),t))):l===vt.IGNORE?(this.emit(o.LIST_PLAYER_SEEK_HANDLED,{position:e,reason:l}),Promise.resolve(a.SUCCESS)):this._currentTrack?this._getTrackPlayer().then((e=>(e.seek(l),a.SUCCESS))):Promise.resolve(a.SUCCESS)}getListConstants(){return vt}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((()=>a.SUCCESS))}showSubtitles(){return this._getTrackPlayer().then((e=>e.showSubtitles())).then((()=>a.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((()=>a.SUCCESS))}activateCueEvents(){return this._getTrackPlayer().then((e=>e.activateCueEvents())).then((()=>a.SUCCESS))}getCurrentBandwidth(){return this._getTrackPlayer().then((e=>e.getCurrentBandwidth()))}setSubtitleLanguage(e){return this._getTrackPlayer().then((t=>t.setSubtitleLanguage(e))).then((()=>a.SUCCESS))}setPlaybackSpeed(e){return this._getTrackPlayer().then((t=>t.setPlaybackSpeed(e))).then((e=>e?a.SUCCESS:a.FORBIDDEN))}getStatistics(){return this._getTrackPlayer().then((e=>e.getStatistics()))}getAudioProcessor(){return this._getTrackPlayer().then((e=>e.getAudioProcessor()))}}const Ct=u.P.forTag("playback.init");function kt(e){return new Promise(((t,n)=>{var o,i,r,a,s,l,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===(o=window.console)||void 0===o||o.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:rt.create(),audioResolver:new et(d),videoResolver:new at(d),licenseURLResolver:new lt({transport:d,sdk:{name:p,version:f},securityLevel:e.securityLevel,useTestLicenseServer:e.useTestLicenseServer}),newBufferPerTrack:null===(i=e.newBufferPerTrack)||void 0===i||i,preinitMediaElement:null===(r=e.preinitMediaElement)||void 0===r||r});e.unauthenticatedLogs&&!(null===(a=e.loggerOptions)||void 0===a?void 0:a.endpoint)&&(e.loggerOptions=Object.assign(Object.assign({},e.loggerOptions),{endpoint:"https://spclient.wg.spotify.com/melody/unauth"})),(null===(s=null==e?void 0:e.loggerOptions)||void 0===s?void 0:s.deviceInfo)||Promise.all([null===(l=e.loggerOptions)||void 0===l?void 0:l.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}})})),Ke.create(h).then((t=>{const n=Object.assign({disableMux:!0},e.loggerOptions),o=function(e){return new ct(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=Ze.create({transport:d,player:t,logSender:o});return n.disableMux||gt.create({player:t,mux:c,envKey:null==n?void 0:n.muxEnvKey,sdk:p,sdkVersion:f,deviceInfo:n.deviceInfo,muxCustomDimensions:n.muxCustomDimensions}).ready().then((()=>Ct.info("MuxReporter ready")),(e=>Ct.error("Failed to instantiate MuxReporter",null==e?void 0:e.message))),{player:t,logger:i}})).then(t,n)}))}var Rt,Lt=n(72755);!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",e.SPEED_CHANGED="SPEED_CHANGED"}(Rt||(Rt={}));const It={MP3:s.MP3,MP4:s.MP4,MP4_DUAL:s.MP4_DUAL,MP4_CBCS:s.MP4_CBCS,MP4_FLAC:s.MP4_FLAC,MANIFEST_ID:s.MANIFEST_ID};class Nt{constructor(e){var t,n,o,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!==(o=e.noAuth)&&void 0!==o&&o,this.preloadedManifest=e.preloadedManifest,this.licenseEndpoint=e.licenseEndpoint,this.fileFormat=e.fileFormat,this.poster=e.poster,this.options=e.options;const r=null!==(i=e.format)&&void 0!==i?i:"MP4";if(!It.hasOwnProperty(r))throw new TypeError("Invalid `format` option.");this.format=It[r],this.logData=Object.assign(Object.assign({},e.logData),{noLog:!1,noTSV:!0,noStats:!1})}static create(e){return new Nt(e)}}class wt{constructor(e){this._index=-1,this._tracks=[],this._tracks=e.tracks}static create(e){const t=[];for(const n of e.tracks)n instanceof Nt?t.push(n):t.push(Nt.create(n));return new wt({tracks:t})}startAt(e){return e>this._tracks.length||e<0?this._index=-1:this._index=e-1,Promise.resolve(a.SUCCESS)}next(e,t){const n=this._index+1;if(n>=this._tracks.length)return Promise.resolve(e.listConstants.LIST_END);const o=this._tracks[n];return t||(this._index=n),o?Promise.resolve(o):Promise.reject(vt.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(vt.NULL_VALUE)}setShuffle(){return Promise.resolve(a.SUCCESS)}setRepeatMode(){return Promise.resolve(a.SUCCESS)}}class Dt extends d.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 Dt(e)}_init(){const e=this._listPlayer;this.proxyEmitAll(e,{[o.LIST_PLAYER_AUTOPLAY_FAILED]:Rt.AUTOPLAY_FAILED,[o.LIST_PLAYER_BEFORE_LIST_CHANGE]:Rt.BEFORE_LIST_CHANGE,[o.LIST_PLAYER_BUFFER_STALLED]:Rt.BUFFER_STALLED,[o.LIST_PLAYER_BUFFERING_START]:Rt.BUFFERING_START,[o.LIST_PLAYER_BUFFERING_END]:Rt.BUFFERING_END,[o.LIST_PLAYER_CLEARED]:Rt.CLEARED,[o.LIST_PLAYER_DURATION_CHANGED]:Rt.DURATION_CHANGED,[o.LIST_PLAYER_ERROR]:Rt.ERROR,[o.LIST_PLAYER_LIST_CHANGED]:Rt.LIST_CHANGED,[o.LIST_PLAYER_LIST_ENDED]:Rt.LIST_ENDED,[o.LIST_PLAYER_MAX_LIST_ERRORS_REACHED]:Rt.MAX_LIST_ERRORS_REACHED,[o.LIST_PLAYER_PAUSED]:Rt.PAUSED,[o.LIST_PLAYER_PLAYING]:Rt.PLAYING,[o.LIST_PLAYER_PLAYED_THRESHOLD_REACHED]:Rt.PLAYED_THRESHOLD_REACHED,[o.LIST_PLAYER_POSITION_CHANGED]:Rt.POSITION_CHANGED,[o.LIST_PLAYER_PROGRESS]:Rt.PROGRESS,[o.LIST_PLAYER_REPEAT_MODE_CHANGED]:Rt.REPEAT_MODE_CHANGED,[o.LIST_PLAYER_SHUFFLE_CHANGED]:Rt.SHUFFLE_CHANGED,[o.LIST_PLAYER_STOPPED]:Rt.STOPPED,[o.LIST_PLAYER_TRACKING_DATA_CREATED]:Rt.TRACKING_DATA_CREATED,[o.LIST_PLAYER_TRACKING_DATA_FINALIZED]:Rt.TRACKING_DATA_FINALIZED,[o.LIST_PLAYER_TRACK_ENDED]:Rt.TRACK_ENDED,[o.LIST_PLAYER_TRACK_LOADED]:Rt.TRACK_LOADED,[o.LIST_PLAYER_TRACK_TIMEOUT]:Rt.TRACK_TIMEOUT,[o.LIST_PLAYER_TRACK_UNPLAYABLE]:Rt.TRACK_UNPLAYABLE,[o.LIST_PLAYER_VOLUME_CHANGED]:Rt.VOLUME_CHANGED,[o.LIST_PLAYER_VIDEO_ELEMENT_APPENDED]:Rt.VIDEO_ELEMENT_APPENDED,[o.LIST_PLAYER_VIDEO_ELEMENT_REMOVED]:Rt.VIDEO_ELEMENT_REMOVED,[o.LIST_PLAYER_AUTOPLAY_FAILED]:Rt.AUTOPLAY_FAILED,[o.PLAYER_DISPLAYED_CUES_CHANGED]:Rt.DISPLAYED_CUES_CHANGED,[o.PLAYER_SUBTITLE_LANGUAGES_LOADED]:Rt.SUBTITLE_LANGUAGES_LOADED,[o.PLAYER_PLAYBACK_SPEED_CHANGED]:Rt.SPEED_CHANGED}),this.proxyEmitAllSync(e,{[o.LIST_PLAYER_BEFORE_NEXT]:Rt.BEFORE_NEXT,[o.LIST_PLAYER_BEFORE_PREVIOUS]:Rt.BEFORE_PREVIOUS,[o.LIST_PLAYER_BEFORE_TRACK_LOAD]:Rt.BEFORE_TRACK_LOAD,[o.LIST_PLAYER_ERROR_SYNC]:Rt.ERROR_SYNC}),this._emitStateChanged=this._emitStateChanged.bind(this),this.on(Rt.CLEARED,this._emitStateChanged),this.on(Rt.PAUSED,this._emitStateChanged),this.on(Rt.PLAYING,this._emitStateChanged),this.on(Rt.POSITION_CHANGED,this._emitStateChanged),this.on(Rt.STOPPED,this._emitStateChanged),this.on(Rt.LIST_CHANGED,this._emitStateChanged),this.on(Rt.VOLUME_CHANGED,this._emitStateChanged),this.on(Rt.SPEED_CHANGED,this._emitStateChanged),this._playerPromise.then((()=>this.emit(Rt.PLAYER_INITIALIZATION_DONE,null))).catch((e=>this.emit(Rt.PLAYER_INITIALIZATION_FAILED,{error:e}))),this._transport.on(Lt.TransportEvent.BEFORE_ONLINE_DISCONNECT,(e=>{e.data.awaitPromise(this._listPlayer.stop(bt.END_PLAY).catch((e=>{})))}))}_emitStateChanged(){this._listPlayer.getState().then((e=>{this.emit(Rt.STATE_CHANGED,{state:e})}))}playTracks(e,t){return this._autoActivateElement&&this._listPlayer.activateElement(),new Promise((t=>{t(wt.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(bt.END_PLAY)}seek(e){return this._listPlayer.seek(e)}nextTrack(){return this._listPlayer.next(bt.FORWARD_BUTTON)}previousTrack(){return this._listPlayer.previous(bt.BACK_BUTTON)}getVolume(){return this._listPlayer.getVolume()}setVolume(e){return this._listPlayer.setVolume(e)}setPlaybackSpeed(e){return this._listPlayer.setPlaybackSpeed(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 Mt={tagged:"2.17.0-84926a3",version:"2.17.0",revision:"84926a3"},xt=(Object.assign(Object.assign({},Lt.TransportErrors),r),Nt.create),Ft=wt.create;function Ut(e){var t,n,o;const{transport:i,autoActivateElement:r,config:a}=e,s=null==a?void 0:a.mux,l=kt(Object.assign(Object.assign({},e.config),{loggerOptions:{platform:e.platform_identifier,disableMux:null===(n=null!==(t=null==s?void 0:s.disable)&&void 0!==t?t:null==a?void 0:a.disableMux)||void 0===n||n,muxEnvKey:null!==(o=null==s?void 0:s.envKey)&&void 0!==o?o:null==a?void 0:a.muxEnvKey,muxCustomDimensions:null==s?void 0:s.customDimensions,deviceInfo:null==s?void 0:s.deviceInfo},sdkId:`overture:${Mt.version}`,transport:i.toPublic(),audioProcessorOptions:{disable:!0}})).then((e=>e.player)),c=Ot.create({trackPlayer:l});return Dt.create({listPlayer:c,playerPromise:l,transport:i,autoActivateElement:r})}},58929:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextPlayerClient=void 0;const o=n(33892),i=n(95073),r=n(551),a=n(5242),s=n(9354),l=n(24901),c=n(57627),u=n(91481),d=n(84681),p=n(84526),f=n(10103),h=n(14404),m=n(50778),g=n(80568),v=n(78117),y=n(1202),_=n(36631),b=n(2387),S=n(63137),E=n(36782),A=n(60534),T=n(26932),P=n(78418),O=n(16207),C=n(82864),k=n(26894),R=n(16838);class L{transport;options;constructor(e,t={}){this.transport=e,this.options=t}preparePlay(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="PreparePlay",a=i.PreparePlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.SessionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}playPrepared(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="PlayPrepared",i=a.PlayPreparedRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}deleteSession(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="DeleteSession",i=l.DeleteSessionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=l.DeleteSessionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateContext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateContext",i=c.UpdateContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateContextPage(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateContextPage",i=c.UpdateContextPageRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateContextTrack(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateContextTrack",i=c.UpdateContextTrackRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}updateViewUri(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="UpdateViewUri",i=c.UpdateViewUriRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}play(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Play",i=a.PlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}pause(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Pause",i=u.PauseRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}resume(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Resume",i=d.ResumeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}skipNext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SkipNext",i=p.SkipNextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}skipPrev(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SkipPrev",i=f.SkipPrevRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}seekTo(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SeekTo",i=h.SeekToRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}stop(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="Stop",i=m.StopRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setOptions(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetOptions",i=g.SetOptionsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setRepeatingContext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetRepeatingContext",i=v.SetRepeatingContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setRepeatingTrack(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetRepeatingTrack",i=y.SetRepeatingTrackRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setShufflingContext(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetShufflingContext",i=_.SetShufflingContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getQueue(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetQueue",r=b.GetQueueRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=S.Queue.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}setQueue(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="SetQueue",i=E.SetQueueRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}addToQueue(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="AddToQueue",i=A.AddToQueueRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.ResponseWithReasons.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getError(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetError",r=T.GetErrorRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=P.ContextPlayerError.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getState(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetState",r=O.GetStateRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=C.ContextPlayerState.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getPlayHistory(e,t){const n="spotify.player.esperanto.proto.ContextPlayer",i="GetPlayHistory",r=k.GetPlayHistoryRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=k.GetPlayHistoryResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getPositionState(e){const t="spotify.player.esperanto.proto.ContextPlayer",n="GetPositionState",i=R.GetPositionStateRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=R.GetPositionStateResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.player.esperanto.proto.ContextPlayer";static DECODERS={PreparePlay:{request:i.PreparePlayRequest.decode,response:r.SessionResponse.decode},PlayPrepared:{request:a.PlayPreparedRequest.decode,response:s.ResponseWithReasons.decode},DeleteSession:{request:l.DeleteSessionRequest.decode,response:l.DeleteSessionResponse.decode},UpdateContext:{request:c.UpdateContextRequest.decode,response:s.ResponseWithReasons.decode},UpdateContextPage:{request:c.UpdateContextPageRequest.decode,response:s.ResponseWithReasons.decode},UpdateContextTrack:{request:c.UpdateContextTrackRequest.decode,response:s.ResponseWithReasons.decode},UpdateViewUri:{request:c.UpdateViewUriRequest.decode,response:s.ResponseWithReasons.decode},Play:{request:a.PlayRequest.decode,response:s.ResponseWithReasons.decode},Pause:{request:u.PauseRequest.decode,response:s.ResponseWithReasons.decode},Resume:{request:d.ResumeRequest.decode,response:s.ResponseWithReasons.decode},SkipNext:{request:p.SkipNextRequest.decode,response:s.ResponseWithReasons.decode},SkipPrev:{request:f.SkipPrevRequest.decode,response:s.ResponseWithReasons.decode},SeekTo:{request:h.SeekToRequest.decode,response:s.ResponseWithReasons.decode},Stop:{request:m.StopRequest.decode,response:s.ResponseWithReasons.decode},SetOptions:{request:g.SetOptionsRequest.decode,response:s.ResponseWithReasons.decode},SetRepeatingContext:{request:v.SetRepeatingContextRequest.decode,response:s.ResponseWithReasons.decode},SetRepeatingTrack:{request:y.SetRepeatingTrackRequest.decode,response:s.ResponseWithReasons.decode},SetShufflingContext:{request:_.SetShufflingContextRequest.decode,response:s.ResponseWithReasons.decode},GetQueue:{request:b.GetQueueRequest.decode,response:S.Queue.decode},SetQueue:{request:E.SetQueueRequest.decode,response:s.ResponseWithReasons.decode},AddToQueue:{request:A.AddToQueueRequest.decode,response:s.ResponseWithReasons.decode},GetError:{request:T.GetErrorRequest.decode,response:P.ContextPlayerError.decode},GetState:{request:O.GetStateRequest.decode,response:C.ContextPlayerState.decode},GetPlayHistory:{request:k.GetPlayHistoryRequest.decode,response:k.GetPlayHistoryResponse.decode},GetPositionState:{request:R.GetPositionStateRequest.decode,response:R.GetPositionStateResponse.decode}}}t.ContextPlayerClient=L},33782:(e,t,n)=>{"use strict";t.ed=t.c_=t.jx=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 o=n(58929);Object.defineProperty(t,"R3",{enumerable:!0,get:function(){return o.ContextPlayerClient}});var i=n(60534);var r=n(17544);var a=n(15127);Object.defineProperty(t,"_y",{enumerable:!0,get:function(){return a.Context}});var s=n(11416);Object.defineProperty(t,"uF",{enumerable:!0,get:function(){return s.ContextPage}});var l=n(78418);var c=n(49726);Object.defineProperty(t,"ST",{enumerable:!0,get:function(){return c.ContextPlayerOptionOverrides}});var u=n(82864);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(76498);Object.defineProperty(t,"nh",{enumerable:!0,get:function(){return d.ContextTrack}});var p=n(24901);var f=n(26932);Object.defineProperty(t,"vf",{enumerable:!0,get:function(){return f.GetErrorRequest}});var h=n(26894);var m=n(16838);var g=n(2387);Object.defineProperty(t,"as",{enumerable:!0,get:function(){return g.GetQueueRequest}});var v=n(16207);Object.defineProperty(t,"o7",{enumerable:!0,get:function(){return v.GetStateRequest}});var y=n(1105);Object.defineProperty(t,"yb",{enumerable:!0,get:function(){return y.LoggingParams}});var _=n(1745);var b=n(91481);Object.defineProperty(t,"jX",{enumerable:!0,get:function(){return b.PauseRequest}});var S=n(5242);Object.defineProperty(t,"l7",{enumerable:!0,get:function(){return S.PlayRequest}});var E=n(91011);var A=n(12433);Object.defineProperty(t,"Yr",{enumerable:!0,get:function(){return A.PlayOrigin}});var T=n(95073);Object.defineProperty(t,"vy",{enumerable:!0,get:function(){return T.PreparePlayRequest}});var P=n(12489);Object.defineProperty(t,"Nr",{enumerable:!0,get:function(){return P.PreparePlayOptions}});var O=n(29719);Object.defineProperty(t,"L6",{enumerable:!0,get:function(){return O.ProvidedTrack}});var C=n(63137);var k=n(9354);Object.defineProperty(t,"a4",{enumerable:!0,get:function(){return k.ResponseWithReasons_Error}});var R=n(3669);Object.defineProperty(t,"aS",{enumerable:!0,get:function(){return R.Restrictions}});var L=n(84681);Object.defineProperty(t,"$5",{enumerable:!0,get:function(){return L.ResumeRequest}});var I=n(14404);Object.defineProperty(t,"eS",{enumerable:!0,get:function(){return I.SeekToRequest}}),Object.defineProperty(t,"RN",{enumerable:!0,get:function(){return I.SeekToRequest_Relative}});var N=n(551);var w=n(80568);Object.defineProperty(t,"jx",{enumerable:!0,get:function(){return w.SetOptionsRequest}});var D=n(36782);Object.defineProperty(t,"c_",{enumerable:!0,get:function(){return D.SetQueueRequest}});var M=n(78117);var x=n(1202);var F=n(36631);Object.defineProperty(t,"ed",{enumerable:!0,get:function(){return F.SetShufflingContextRequest}});var U=n(84526);Object.defineProperty(t,"t6",{enumerable:!0,get:function(){return U.SkipNextRequest}});var B=n(10103);Object.defineProperty(t,"n",{enumerable:!0,get:function(){return B.SkipPrevRequest}});var V=n(69316);var G=n(50778);var J=n(57627);Object.defineProperty(t,"eB",{enumerable:!0,get:function(){return J.UpdateContextRequest}})},60534:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(76498),s=n(1105);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.AddToQueueRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.track&&a.ContextTrack.encode(e.track,t.uint32(10).fork()).ldelim(),void 0!==e.options&&r.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={track:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:l.track=a.ContextTrack.decode(n,n.uint32());break;case 2:l.options=r.CommandOptions.decode(n,n.uint32());break;case 3:l.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({track:l(e.track)?a.ContextTrack.fromJSON(e.track):void 0,options:l(e.options)?r.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.track&&(t.track=e.track?a.ContextTrack.toJSON(e.track):void 0),void 0!==e.options&&(t.options=e.options?r.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={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?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?s.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},17544:function(e,t,n){"use strict";var o=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=o(n(33892));function r(){return{overrideRestrictions:!1,onlyForLocalDevice:!1,systemInitiated:!1,onlyForPlaybackId:new Uint8Array}}t.protobufPackage="spotify.player.esperanto.proto",t.CommandOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a=r();for(;n.pos>>3){case 1:a.overrideRestrictions=n.bool();break;case 2:a.onlyForLocalDevice=n.bool();break;case 3:a.systemInitiated=n.bool();break;case 4:a.onlyForPlaybackId=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({overrideRestrictions:!!l(e.overrideRestrictions)&&Boolean(e.overrideRestrictions),onlyForLocalDevice:!!l(e.onlyForLocalDevice)&&Boolean(e.onlyForLocalDevice),systemInitiated:!!l(e.systemInitiated)&&Boolean(e.systemInitiated),onlyForPlaybackId:l(e.onlyForPlaybackId)?s(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){if(a.Buffer)return a.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),a.btoa(t.join(""))}}(void 0!==e.onlyForPlaybackId?e.onlyForPlaybackId:new Uint8Array)),t},fromPartial(e){const t=r();return t.overrideRestrictions=e.overrideRestrictions??!1,t.onlyForLocalDevice=e.onlyForLocalDevice??!1,t.systemInitiated=e.systemInitiated??!1,t.onlyForPlaybackId=e.onlyForPlaybackId??new Uint8Array,t}};var a=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 s(e){if(a.Buffer)return Uint8Array.from(a.Buffer.from(e,"base64"));{const t=a.atob(e),n=new Uint8Array(t.length);for(let e=0;e{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&a.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let s=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;o.pos>>3){case 1:l.pages.push(r.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoading=o.bool();break;case 6:l.restrictions=a.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>r.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:s(e.uri)?String(e.uri):"",url:s(e.url)?String(e.url):"",isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),restrictions:s(e.restrictions)?a.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?r.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.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=e.restrictions?a.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>r.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?a.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},11416:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(76498);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=i.default.Writer.create()){for(const t of e.tracks)r.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;o.pos>>3){case 1:s.tracks.push(r.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoading=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.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:a(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:a(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.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.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},78418:function(e,t,n){"use strict";var o=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=o(n(33892));var r;function a(e){switch(e){case 0:case"SUCCESS":return r.SUCCESS;case 1:case"PLAYBACK_STUCK":return r.PLAYBACK_STUCK;case 2:case"PLAYBACK_ERROR":return r.PLAYBACK_ERROR;case 3:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;case 4:case"PLAY_RESTRICTED":return r.PLAY_RESTRICTED;case 5:case"STOP_RESTRICTED":return r.STOP_RESTRICTED;case 6:case"UPDATE_RESTRICTED":return r.UPDATE_RESTRICTED;case 7:case"PAUSE_RESTRICTED":return r.PAUSE_RESTRICTED;case 8:case"RESUME_RESTRICTED":return r.RESUME_RESTRICTED;case 9:case"SKIP_TO_PREV_RESTRICTED":return r.SKIP_TO_PREV_RESTRICTED;case 10:case"SKIP_TO_NEXT_RESTRICTED":return r.SKIP_TO_NEXT_RESTRICTED;case 11:case"SKIP_TO_NON_EXISTENT_TRACK":return r.SKIP_TO_NON_EXISTENT_TRACK;case 12:case"SEEK_TO_RESTRICTED":return r.SEEK_TO_RESTRICTED;case 13:case"TOGGLE_REPEAT_CONTEXT_RESTRICTED":return r.TOGGLE_REPEAT_CONTEXT_RESTRICTED;case 14:case"TOGGLE_REPEAT_TRACK_RESTRICTED":return r.TOGGLE_REPEAT_TRACK_RESTRICTED;case 15:case"SET_OPTIONS_RESTRICTED":return r.SET_OPTIONS_RESTRICTED;case 16:case"TOGGLE_SHUFFLE_RESTRICTED":return r.TOGGLE_SHUFFLE_RESTRICTED;case 17:case"SET_QUEUE_RESTRICTED":return r.SET_QUEUE_RESTRICTED;case 18:case"INTERRUPT_PLAYBACK_RESTRICTED":return r.INTERRUPT_PLAYBACK_RESTRICTED;case 19:case"ONE_TRACK_UNPLAYABLE":return r.ONE_TRACK_UNPLAYABLE;case 20:case"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED":return r.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED;case 21:case"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED":return r.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED;case 22:case"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED":return r.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED;case 23:case"QUEUE_REVISION_MISMATCH":return r.QUEUE_REVISION_MISMATCH;case 24:case"VIDEO_PLAYBACK_ERROR":return r.VIDEO_PLAYBACK_ERROR;case 25:case"VIDEO_GEOGRAPHICALLY_RESTRICTED":return r.VIDEO_GEOGRAPHICALLY_RESTRICTED;case 26:case"VIDEO_UNSUPPORTED_PLATFORM_VERSION":return r.VIDEO_UNSUPPORTED_PLATFORM_VERSION;case 27:case"VIDEO_UNSUPPORTED_CLIENT_VERSION":return r.VIDEO_UNSUPPORTED_CLIENT_VERSION;case 28:case"VIDEO_UNSUPPORTED_KEY_SYSTEM":return r.VIDEO_UNSUPPORTED_KEY_SYSTEM;case 29:case"VIDEO_MANIFEST_DELETED":return r.VIDEO_MANIFEST_DELETED;case 30:case"VIDEO_COUNTRY_RESTRICTED":return r.VIDEO_COUNTRY_RESTRICTED;case 31:case"VIDEO_UNAVAILABLE":return r.VIDEO_UNAVAILABLE;case 32:case"VIDEO_CATALOGUE_RESTRICTED":return r.VIDEO_CATALOGUE_RESTRICTED;case 33:case"INVALID":return r.INVALID;case 34:case"TIMEOUT":return r.TIMEOUT;case 35:case"PLAYBACK_REPORTING_ERROR":return r.PLAYBACK_REPORTING_ERROR;case 36:case"UNKNOWN":return r.UNKNOWN;case 37:case"ADD_TO_QUEUE_RESTRICTED":return r.ADD_TO_QUEUE_RESTRICTED;case 38:case"PICK_AND_SHUFFLE_CAPPED":return r.PICK_AND_SHUFFLE_CAPPED;case 39:case"PICK_AND_SHUFFLE_CONNECT_RESTRICTED":return r.PICK_AND_SHUFFLE_CONNECT_RESTRICTED;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.SUCCESS:return"SUCCESS";case r.PLAYBACK_STUCK:return"PLAYBACK_STUCK";case r.PLAYBACK_ERROR:return"PLAYBACK_ERROR";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.PLAY_RESTRICTED:return"PLAY_RESTRICTED";case r.STOP_RESTRICTED:return"STOP_RESTRICTED";case r.UPDATE_RESTRICTED:return"UPDATE_RESTRICTED";case r.PAUSE_RESTRICTED:return"PAUSE_RESTRICTED";case r.RESUME_RESTRICTED:return"RESUME_RESTRICTED";case r.SKIP_TO_PREV_RESTRICTED:return"SKIP_TO_PREV_RESTRICTED";case r.SKIP_TO_NEXT_RESTRICTED:return"SKIP_TO_NEXT_RESTRICTED";case r.SKIP_TO_NON_EXISTENT_TRACK:return"SKIP_TO_NON_EXISTENT_TRACK";case r.SEEK_TO_RESTRICTED:return"SEEK_TO_RESTRICTED";case r.TOGGLE_REPEAT_CONTEXT_RESTRICTED:return"TOGGLE_REPEAT_CONTEXT_RESTRICTED";case r.TOGGLE_REPEAT_TRACK_RESTRICTED:return"TOGGLE_REPEAT_TRACK_RESTRICTED";case r.SET_OPTIONS_RESTRICTED:return"SET_OPTIONS_RESTRICTED";case r.TOGGLE_SHUFFLE_RESTRICTED:return"TOGGLE_SHUFFLE_RESTRICTED";case r.SET_QUEUE_RESTRICTED:return"SET_QUEUE_RESTRICTED";case r.INTERRUPT_PLAYBACK_RESTRICTED:return"INTERRUPT_PLAYBACK_RESTRICTED";case r.ONE_TRACK_UNPLAYABLE:return"ONE_TRACK_UNPLAYABLE";case r.ONE_TRACK_UNPLAYABLE_AUTO_STOPPED:return"ONE_TRACK_UNPLAYABLE_AUTO_STOPPED";case r.ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED:return"ALL_TRACKS_UNPLAYABLE_AUTO_STOPPED";case r.SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED:return"SKIP_TO_NON_EXISTENT_TRACK_AUTO_STOPPED";case r.QUEUE_REVISION_MISMATCH:return"QUEUE_REVISION_MISMATCH";case r.VIDEO_PLAYBACK_ERROR:return"VIDEO_PLAYBACK_ERROR";case r.VIDEO_GEOGRAPHICALLY_RESTRICTED:return"VIDEO_GEOGRAPHICALLY_RESTRICTED";case r.VIDEO_UNSUPPORTED_PLATFORM_VERSION:return"VIDEO_UNSUPPORTED_PLATFORM_VERSION";case r.VIDEO_UNSUPPORTED_CLIENT_VERSION:return"VIDEO_UNSUPPORTED_CLIENT_VERSION";case r.VIDEO_UNSUPPORTED_KEY_SYSTEM:return"VIDEO_UNSUPPORTED_KEY_SYSTEM";case r.VIDEO_MANIFEST_DELETED:return"VIDEO_MANIFEST_DELETED";case r.VIDEO_COUNTRY_RESTRICTED:return"VIDEO_COUNTRY_RESTRICTED";case r.VIDEO_UNAVAILABLE:return"VIDEO_UNAVAILABLE";case r.VIDEO_CATALOGUE_RESTRICTED:return"VIDEO_CATALOGUE_RESTRICTED";case r.INVALID:return"INVALID";case r.TIMEOUT:return"TIMEOUT";case r.PLAYBACK_REPORTING_ERROR:return"PLAYBACK_REPORTING_ERROR";case r.UNKNOWN:return"UNKNOWN";case r.ADD_TO_QUEUE_RESTRICTED:return"ADD_TO_QUEUE_RESTRICTED";case r.PICK_AND_SHUFFLE_CAPPED:return"PICK_AND_SHUFFLE_CAPPED";case r.PICK_AND_SHUFFLE_CONNECT_RESTRICTED:return"PICK_AND_SHUFFLE_CONNECT_RESTRICTED";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(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.ADD_TO_QUEUE_RESTRICTED=37]="ADD_TO_QUEUE_RESTRICTED",e[e.PICK_AND_SHUFFLE_CAPPED=38]="PICK_AND_SHUFFLE_CAPPED",e[e.PICK_AND_SHUFFLE_CONNECT_RESTRICTED=39]="PICK_AND_SHUFFLE_CONNECT_RESTRICTED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.ContextPlayerError_ErrorCode||(t.ContextPlayerError_ErrorCode={})),t.contextPlayerError_ErrorCodeFromJSON=a,t.contextPlayerError_ErrorCodeToJSON=s,t.ContextPlayerError={encode:(e,n=i.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,o])=>{t.ContextPlayerError_DataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={code:0,message:"",data:{}};for(;o.pos>>3){case 1:a.code=o.int32();break;case 2:a.message=o.string();break;case 3:const n=t.ContextPlayerError_DataEntry.decode(o,o.uint32());void 0!==n.value&&(a.data[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{code:l(e.code)?a(e.code):0,message:l(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=s(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){const t={code:0,message:"",data:{}};return t.code=e.code??0,t.message=e.message??"",t.data=Object.entries(e.data??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextPlayerError_DataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},49726:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos>>3){case 1:r.shufflingContext=n.bool();break;case 2:r.repeatingContext=n.bool();break;case 3:r.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({shufflingContext:!!a(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!a(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!a(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){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=i.default.Writer.create())=>(void 0!==e.shufflingContext&&r.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&r.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&r.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos>>3){case 1:a.shufflingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 2:a.repeatingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 3:a.repeatingTrack=r.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({shufflingContext:a(e.shufflingContext)?r.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:a(e.repeatingContext)?r.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:a(e.repeatingTrack)?r.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?r.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?r.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?r.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?r.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?r.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?r.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}}},82864:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(49726),s=n(1745),l=n(12433),c=n(12489),u=n(29719),d=n(3669);var p,f,h;function m(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 g(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";case p.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function v(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";case f.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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";case h.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function S(){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=m,t.playbackQuality_BitrateLevelToJSON=g,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=v,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=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={page:"0",track:"0"};for(;n.pos>>3){case 1:i.page=T(n.uint64());break;case 2:i.track=T(n.uint64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({page:O(e.page)?String(e.page):"0",track:O(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){const t={page:"0",track:"0"};return t.page=e.page??"0",t.track=e.track??"0",t}},t.PlaybackQuality={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.bitrateLevel)?m(e.bitrateLevel):0,strategy:O(e.strategy)?v(e.strategy):0,targetBitrateLevel:O(e.targetBitrateLevel)?m(e.targetBitrateLevel):0,targetBitrateAvailable:!!O(e.targetBitrateAvailable)&&Boolean(e.targetBitrateAvailable),hifiStatus:O(e.hifiStatus)?_(e.hifiStatus):0}),toJSON(e){const t={};return void 0!==e.bitrateLevel&&(t.bitrateLevel=g(e.bitrateLevel)),void 0!==e.strategy&&(t.strategy=y(e.strategy)),void 0!==e.targetBitrateLevel&&(t.targetBitrateLevel=g(e.targetBitrateLevel)),void 0!==e.targetBitrateAvailable&&(t.targetBitrateAvailable=e.targetBitrateAvailable),void 0!==e.hifiStatus&&(t.hifiStatus=b(e.hifiStatus)),t},fromPartial(e){const t={bitrateLevel:0,strategy:0,targetBitrateLevel:0,targetBitrateAvailable:!1,hifiStatus:0};return t.bitrateLevel=e.bitrateLevel??0,t.strategy=e.strategy??0,t.targetBitrateLevel=e.targetBitrateLevel??0,t.targetBitrateAvailable=e.targetBitrateAvailable??!1,t.hifiStatus=e.hifiStatus??0,t}},t.ContextPlayerState={encode(e,n=r.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&&d.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&&u.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&&s.OptionalDouble.encode(e.playbackSpeed,n.uint32(82).fork()).ldelim(),void 0!==e.positionAsOfTimestamp&&s.OptionalInt64.encode(e.positionAsOfTimestamp,n.uint32(90).fork()).ldelim(),void 0!==e.duration&&s.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&&a.ContextPlayerOptions.encode(e.options,n.uint32(138).fork()).ldelim(),void 0!==e.restrictions&&d.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)u.ProvidedTrack.encode(t,n.uint32(162).fork()).ldelim();for(const t of e.nextTracks)u.ProvidedTrack.encode(t,n.uint32(170).fork()).ldelim();return Object.entries(e.contextMetadata).forEach((([e,o])=>{t.ContextPlayerState_ContextMetadataEntry.encode({key:e,value:o},n.uint32(178).fork()).ldelim()})),Object.entries(e.pageMetadata).forEach((([e,o])=>{t.ContextPlayerState_PageMetadataEntry.encode({key:e,value:o},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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const c=S();for(;o.pos>>3){case 1:c.timestamp=T(o.uint64());break;case 2:c.contextUri=o.string();break;case 3:c.contextUrl=o.string();break;case 4:c.contextRestrictions=d.Restrictions.decode(o,o.uint32());break;case 5:c.playOrigin=l.PlayOrigin.decode(o,o.uint32());break;case 6:c.index=t.ContextIndex.decode(o,o.uint32());break;case 7:c.track=u.ProvidedTrack.decode(o,o.uint32());break;case 8:c.playbackId=o.bytes();break;case 9:c.playbackQuality=t.PlaybackQuality.decode(o,o.uint32());break;case 10:c.playbackSpeed=s.OptionalDouble.decode(o,o.uint32());break;case 11:c.positionAsOfTimestamp=s.OptionalInt64.decode(o,o.uint32());break;case 12:c.duration=s.OptionalInt64.decode(o,o.uint32());break;case 13:c.isPlaying=o.bool();break;case 14:c.isPaused=o.bool();break;case 15:c.isBuffering=o.bool();break;case 16:c.isSystemInitiated=o.bool();break;case 17:c.options=a.ContextPlayerOptions.decode(o,o.uint32());break;case 18:c.restrictions=d.Restrictions.decode(o,o.uint32());break;case 19:c.suppressions.push(o.string());break;case 20:c.prevTracks.push(u.ProvidedTrack.decode(o,o.uint32()));break;case 21:c.nextTracks.push(u.ProvidedTrack.decode(o,o.uint32()));break;case 22:const n=t.ContextPlayerState_ContextMetadataEntry.decode(o,o.uint32());void 0!==n.value&&(c.contextMetadata[n.key]=n.value);break;case 23:const i=t.ContextPlayerState_PageMetadataEntry.decode(o,o.uint32());void 0!==i.value&&(c.pageMetadata[i.key]=i.value);break;case 24:c.sessionId=o.string();break;case 25:c.queueRevision=T(o.uint64());break;case 26:c.audioStream=o.int32();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({timestamp:O(e.timestamp)?String(e.timestamp):"0",contextUri:O(e.contextUri)?String(e.contextUri):"",contextUrl:O(e.contextUrl)?String(e.contextUrl):"",contextRestrictions:O(e.contextRestrictions)?d.Restrictions.fromJSON(e.contextRestrictions):void 0,playOrigin:O(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0,index:O(e.index)?t.ContextIndex.fromJSON(e.index):void 0,track:O(e.track)?u.ProvidedTrack.fromJSON(e.track):void 0,playbackId:O(e.playbackId)?A(e.playbackId):new Uint8Array,playbackQuality:O(e.playbackQuality)?t.PlaybackQuality.fromJSON(e.playbackQuality):void 0,playbackSpeed:O(e.playbackSpeed)?s.OptionalDouble.fromJSON(e.playbackSpeed):void 0,positionAsOfTimestamp:O(e.positionAsOfTimestamp)?s.OptionalInt64.fromJSON(e.positionAsOfTimestamp):void 0,duration:O(e.duration)?s.OptionalInt64.fromJSON(e.duration):void 0,isPlaying:!!O(e.isPlaying)&&Boolean(e.isPlaying),isPaused:!!O(e.isPaused)&&Boolean(e.isPaused),isBuffering:!!O(e.isBuffering)&&Boolean(e.isBuffering),isSystemInitiated:!!O(e.isSystemInitiated)&&Boolean(e.isSystemInitiated),options:O(e.options)?a.ContextPlayerOptions.fromJSON(e.options):void 0,restrictions:O(e.restrictions)?d.Restrictions.fromJSON(e.restrictions):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>u.ProvidedTrack.fromJSON(e))):[],nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>u.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:O(e.sessionId)?String(e.sessionId):"",queueRevision:O(e.queueRevision)?String(e.queueRevision):"0",audioStream:O(e.audioStream)?(0,c.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?d.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?u.ProvidedTrack.toJSON(e.track):void 0),void 0!==e.playbackId&&(n.playbackId=function(e){if(E.Buffer)return E.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),E.btoa(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?s.OptionalDouble.toJSON(e.playbackSpeed):void 0),void 0!==e.positionAsOfTimestamp&&(n.positionAsOfTimestamp=e.positionAsOfTimestamp?s.OptionalInt64.toJSON(e.positionAsOfTimestamp):void 0),void 0!==e.duration&&(n.duration=e.duration?s.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?a.ContextPlayerOptions.toJSON(e.options):void 0),void 0!==e.restrictions&&(n.restrictions=e.restrictions?d.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?u.ProvidedTrack.toJSON(e):void 0)):n.prevTracks=[],e.nextTracks?n.nextTracks=e.nextTracks.map((e=>e?u.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,c.preparePlayOptions_AudioStreamToJSON)(e.audioStream)),n},fromPartial(e){const n=S();return n.timestamp=e.timestamp??"0",n.contextUri=e.contextUri??"",n.contextUrl=e.contextUrl??"",n.contextRestrictions=void 0!==e.contextRestrictions&&null!==e.contextRestrictions?d.Restrictions.fromPartial(e.contextRestrictions):void 0,n.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,n.index=void 0!==e.index&&null!==e.index?t.ContextIndex.fromPartial(e.index):void 0,n.track=void 0!==e.track&&null!==e.track?u.ProvidedTrack.fromPartial(e.track):void 0,n.playbackId=e.playbackId??new Uint8Array,n.playbackQuality=void 0!==e.playbackQuality&&null!==e.playbackQuality?t.PlaybackQuality.fromPartial(e.playbackQuality):void 0,n.playbackSpeed=void 0!==e.playbackSpeed&&null!==e.playbackSpeed?s.OptionalDouble.fromPartial(e.playbackSpeed):void 0,n.positionAsOfTimestamp=void 0!==e.positionAsOfTimestamp&&null!==e.positionAsOfTimestamp?s.OptionalInt64.fromPartial(e.positionAsOfTimestamp):void 0,n.duration=void 0!==e.duration&&null!==e.duration?s.OptionalInt64.fromPartial(e.duration):void 0,n.isPlaying=e.isPlaying??!1,n.isPaused=e.isPaused??!1,n.isBuffering=e.isBuffering??!1,n.isSystemInitiated=e.isSystemInitiated??!1,n.options=void 0!==e.options&&null!==e.options?a.ContextPlayerOptions.fromPartial(e.options):void 0,n.restrictions=void 0!==e.restrictions&&null!==e.restrictions?d.Restrictions.fromPartial(e.restrictions):void 0,n.suppressions=e.suppressions?.map((e=>e))||[],n.prevTracks=e.prevTracks?.map((e=>u.ProvidedTrack.fromPartial(e)))||[],n.nextTracks=e.nextTracks?.map((e=>u.ProvidedTrack.fromPartial(e)))||[],n.contextMetadata=Object.entries(e.contextMetadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.pageMetadata=Object.entries(e.pageMetadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),n.sessionId=e.sessionId??"",n.queueRevision=e.queueRevision??"0",n.audioStream=e.audioStream??0,n}},t.ContextPlayerState_ContextMetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.key)?String(e.key):"",value:O(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.ContextPlayerState_PageMetadataEntry={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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:O(e.key)?String(e.key):"",value:O(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var E=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 A(e){if(E.Buffer)return Uint8Array.from(E.Buffer.from(e,"base64"));{const t=E.atob(e),n=new Uint8Array(t.length);for(let e=0;e(""!==e.uri&&n.uint32(10).string(e.uri),""!==e.uid&&n.uint32(18).string(e.uid),Object.entries(e.metadata).forEach((([e,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:r(e.uri)?String(e.uri):"",uid:r(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){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:r(e.key)?String(e.key):"",value:r(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},24901:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.DeleteSessionRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:""};for(;n.pos>>3==1)r.sessionId=n.string();else n.skipType(7&e)}return r},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){const t={sessionId:""};return t.sessionId=e.sessionId??"",t}},t.DeleteSessionResponse={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},26932:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.GetErrorRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},26894:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(76498);t.protobufPackage="spotify.player.esperanto.proto",t.GetPlayHistoryRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetPlayHistoryResponse={encode(e,t=i.default.Writer.create()){for(const n of e.tracks)r.ContextTrack.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={tracks:[]};for(;n.pos>>3==1)a.tracks.push(r.ContextTrack.decode(n,n.uint32()));else n.skipType(7&e)}return a},fromJSON:e=>({tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.ContextTrack.fromJSON(e))):[]}),toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.ContextTrack.toJSON(e):void 0)):t.tracks=[],t},fromPartial(e){const t={tracks:[]};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t}}},16838:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetPositionStateResponse={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={error:0,timestamp:"0",position:"0",playbackSpeed:0};return t.error=e.error??0,t.timestamp=e.timestamp??"0",t.position=e.position??"0",t.playbackSpeed=e.playbackSpeed??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},2387:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.GetQueueRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},16207:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.GetStateRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.prevTracksCap&&r.OptionalInt64.encode(e.prevTracksCap,t.uint32(10).fork()).ldelim(),void 0!==e.nextTracksCap&&r.OptionalInt64.encode(e.nextTracksCap,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={prevTracksCap:void 0,nextTracksCap:void 0};for(;n.pos>>3){case 1:a.prevTracksCap=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.nextTracksCap=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({prevTracksCap:a(e.prevTracksCap)?r.OptionalInt64.fromJSON(e.prevTracksCap):void 0,nextTracksCap:a(e.nextTracksCap)?r.OptionalInt64.fromJSON(e.nextTracksCap):void 0}),toJSON(e){const t={};return void 0!==e.prevTracksCap&&(t.prevTracksCap=e.prevTracksCap?r.OptionalInt64.toJSON(e.prevTracksCap):void 0),void 0!==e.nextTracksCap&&(t.nextTracksCap=e.nextTracksCap?r.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?r.OptionalInt64.fromPartial(e.prevTracksCap):void 0,t.nextTracksCap=void 0!==e.nextTracksCap&&null!==e.nextTracksCap?r.OptionalInt64.fromPartial(e.nextTracksCap):void 0,t}}},1105:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=i.default.Writer.create()){void 0!==e.commandInitiatedTime&&r.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&r.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos>>3){case 1:a.commandInitiatedTime=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.commandReceivedTime=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.pageInstanceIds.push(n.string());break;case 4:a.interactionIds.push(n.string());break;case 5:a.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({commandInitiatedTime:a(e.commandInitiatedTime)?r.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:a(e.commandReceivedTime)?r.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?r.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?r.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){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?r.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?r.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}}},1745:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},91481:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105),s=n(1674);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PauseRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.pauseOrigin&&s.PauseResumeOrigin.encode(e.pauseOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,loggingParams:void 0,pauseOrigin:void 0};for(;n.pos>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 3:l.pauseOrigin=s.PauseResumeOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,pauseOrigin:l(e.pauseOrigin)?s.PauseResumeOrigin.fromJSON(e.pauseOrigin):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.pauseOrigin&&(t.pauseOrigin=e.pauseOrigin?s.PauseResumeOrigin.toJSON(e.pauseOrigin):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,pauseOrigin:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.pauseOrigin=void 0!==e.pauseOrigin&&null!==e.pauseOrigin?s.PauseResumeOrigin.fromPartial(e.pauseOrigin):void 0,t}}},1674:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PauseResumeOrigin=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.PauseResumeOrigin={encode:(e,t=i.default.Writer.create())=>(""!==e.featureIdentifier&&t.uint32(10).string(e.featureIdentifier),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:""};for(;n.pos>>3==1)r.featureIdentifier=n.string();else n.skipType(7&e)}return r},fromJSON(e){return{featureIdentifier:(t=e.featureIdentifier,null!=t?String(e.featureIdentifier):"")};var t},toJSON(e){const t={};return void 0!==e.featureIdentifier&&(t.featureIdentifier=e.featureIdentifier),t},fromPartial(e){const t={featureIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t}}},5242:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105),s=n(91011),l=n(95073);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.preparePlayRequest&&l.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&&r.CommandOptions.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const c={preparePlayRequest:void 0,playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:c.preparePlayRequest=l.PreparePlayRequest.decode(n,n.uint32());break;case 2:c.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 3:c.options=r.CommandOptions.decode(n,n.uint32());break;case 4:c.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return c},fromJSON:e=>({preparePlayRequest:c(e.preparePlayRequest)?l.PreparePlayRequest.fromJSON(e.preparePlayRequest):void 0,playOptions:c(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,options:c(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.preparePlayRequest&&(t.preparePlayRequest=e.preparePlayRequest?l.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?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.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?l.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?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.PlayPreparedRequest={encode:(e,t=i.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&&r.CommandOptions.encode(e.options,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:l.sessionId=n.string();break;case 2:l.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 3:l.options=r.CommandOptions.decode(n,n.uint32());break;case 4:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",playOptions:c(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,options:c(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?a.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?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",playOptions:void 0,options:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",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?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},91011:function(e,t,n){"use strict";var o=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=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"INTERACTIVE":return r.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return r.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.INTERACTIVE:return"INTERACTIVE";case r.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"REPLACE":return a.REPLACE;case 1:case"ENQUEUE":return a.ENQUEUE;case 2:case"PUSH":return a.PUSH;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.REPLACE:return"REPLACE";case a.ENQUEUE:return"ENQUEUE";case a.PUSH:return"PUSH";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"IMMEDIATELY":return s.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return s.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return s.ADVANCED_PAST_CONTEXT;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.IMMEDIATELY:return"IMMEDIATELY";case s.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case s.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(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"}(r=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=l,t.playOptions_ReasonToJSON=c,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=u,t.playOptions_OperationToJSON=d,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"}(s=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=p,t.playOptions_TriggerToJSON=f,t.PlayOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0};for(;n.pos>>3){case 1:r.reason=n.int32();break;case 2:r.operation=n.int32();break;case 3:r.trigger=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({reason:h(e.reason)?l(e.reason):0,operation:h(e.operation)?u(e.operation):0,trigger:h(e.trigger)?p(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.operation&&(t.operation=d(e.operation)),void 0!==e.trigger&&(t.trigger=f(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}}},12433:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=i.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""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos>>3){case 1:r.featureIdentifier=n.string();break;case 2:r.featureVersion=n.string();break;case 3:r.viewUri=n.string();break;case 4:r.externalReferrer=n.string();break;case 5:r.referrerIdentifier=n.string();break;case 6:r.deviceIdentifier=n.string();break;case 7:r.featureClasses.push(n.string());break;case 8:r.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({featureIdentifier:r(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:r(e.featureVersion)?String(e.featureVersion):"",viewUri:r(e.viewUri)?String(e.viewUri):"",externalReferrer:r(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:r(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:r(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:r(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),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=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}}},95073:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(15127),a=n(12433),s=n(12489);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PreparePlayRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.context&&r.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&&a.PlayOrigin.encode(e.playOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={context:void 0,options:void 0,playOrigin:void 0};for(;n.pos>>3){case 1:l.context=r.Context.decode(n,n.uint32());break;case 2:l.options=s.PreparePlayOptions.decode(n,n.uint32());break;case 3:l.playOrigin=a.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({context:l(e.context)?r.Context.fromJSON(e.context):void 0,options:l(e.options)?s.PreparePlayOptions.fromJSON(e.options):void 0,playOrigin:l(e.playOrigin)?a.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.context&&(t.context=e.context?r.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?a.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?r.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?a.PlayOrigin.fromPartial(e.playOrigin):void 0,t}}},12489:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(49726),a=n(1745),s=n(69316);var l,c;function u(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"MEDIA":return l.MEDIA;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NONE:return"NONE";case l.MEDIA:return"MEDIA";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"DEFAULT":return c.DEFAULT;case 1:case"ALARM":return c.ALARM;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.DEFAULT:return"DEFAULT";case c.ALARM:return"ALARM";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){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"}(l=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=u,t.preparePlayOptions_PrefetchLevelToJSON=d,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=p,t.preparePlayOptions_AudioStreamToJSON=f,t.PreparePlayOptions={encode(e,n=i.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&&s.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&a.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&&r.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,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c=h();for(;o.pos>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=s.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=a.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=r.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:v(e.playbackId)?g(e.playbackId):new Uint8Array,alwaysPlaySomething:!!v(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:v(e.skipTo)?s.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:v(e.seekTo)?a.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!v(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!v(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:v(e.playerOptionsOverride)?r.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:v(e.prefetchLevel)?u(e.prefetchLevel):0,audioStream:v(e.audioStream)?p(e.audioStream):0,sessionId:v(e.sessionId)?String(e.sessionId):"",license:v(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){if(m.Buffer)return m.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),m.btoa(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?s.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?a.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?r.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=d(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=f(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){const t=h();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?s.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?a.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?r.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var m=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 g(e){if(m.Buffer)return Uint8Array.from(m.Buffer.from(e,"base64"));{const t=m.atob(e),n=new Uint8Array(t.length);for(let e=0;e>>3){case 1:a.contextTrack=r.ContextTrack.decode(n,n.uint32());break;case 2:a.removed.push(n.string());break;case 3:a.blocked.push(n.string());break;case 4:a.provider=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({contextTrack:a(e.contextTrack)?r.ContextTrack.fromJSON(e.contextTrack):void 0,removed:Array.isArray(e?.removed)?e.removed.map((e=>String(e))):[],blocked:Array.isArray(e?.blocked)?e.blocked.map((e=>String(e))):[],provider:a(e.provider)?String(e.provider):""}),toJSON(e){const t={};return void 0!==e.contextTrack&&(t.contextTrack=e.contextTrack?r.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){const t={contextTrack:void 0,removed:[],blocked:[],provider:""};return t.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?r.ContextTrack.fromPartial(e.contextTrack):void 0,t.removed=e.removed?.map((e=>e))||[],t.blocked=e.blocked?.map((e=>e))||[],t.provider=e.provider??"",t}}},63137:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(29719);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Queue={encode(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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(e?.nextTracks)?e.nextTracks.map((e=>a.ProvidedTrack.fromJSON(e))):[],prevTracks:Array.isArray(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){const t={queueRevision:"0",track:void 0,nextTracks:[],prevTracks:[]};return t.queueRevision=e.queueRevision??"0",t.track=void 0!==e.track&&null!==e.track?a.ProvidedTrack.fromPartial(e.track):void 0,t.nextTracks=e.nextTracks?.map((e=>a.ProvidedTrack.fromPartial(e)))||[],t.prevTracks=e.prevTracks?.map((e=>a.ProvidedTrack.fromPartial(e)))||[],t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},9354:function(e,t,n){"use strict";var o=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=o(n(33892));var r;function a(e){switch(e){case 0:case"OK":return r.OK;case 1:case"FORBIDDEN":return r.FORBIDDEN;case 2:case"NOT_FOUND":return r.NOT_FOUND;case 3:case"CONFLICT":return r.CONFLICT;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.OK:return"OK";case r.FORBIDDEN:return"FORBIDDEN";case r.NOT_FOUND:return"NOT_FOUND";case r.CONFLICT:return"CONFLICT";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(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"}(r=t.ResponseWithReasons_Error||(t.ResponseWithReasons_Error={})),t.responseWithReasons_ErrorFromJSON=a,t.responseWithReasons_ErrorToJSON=s,t.ResponseWithReasons={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={error:0,reasons:""};for(;n.pos>>3){case 1:r.error=n.int32();break;case 2:r.reasons=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({error:l(e.error)?a(e.error):0,reasons:l(e.reasons)?String(e.reasons):""}),toJSON(e){const t={};return void 0!==e.error&&(t.error=s(e.error)),void 0!==e.reasons&&(t.reasons=e.reasons),t},fromPartial(e){const t={error:0,reasons:""};return t.error=e.error??0,t.reasons=e.reasons??"",t}}},3669:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.Restrictions={encode(e,t=i.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);for(const n of e.disallowAddToQueueReasons)t.uint32(178).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};for(;n.pos>>3){case 1:r.disallowPausingReasons.push(n.string());break;case 2:r.disallowResumingReasons.push(n.string());break;case 3:r.disallowSeekingReasons.push(n.string());break;case 4:r.disallowPeekingPrevReasons.push(n.string());break;case 5:r.disallowPeekingNextReasons.push(n.string());break;case 6:r.disallowSkippingPrevReasons.push(n.string());break;case 7:r.disallowSkippingNextReasons.push(n.string());break;case 8:r.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:r.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:r.disallowTogglingShuffleReasons.push(n.string());break;case 11:r.disallowSetQueueReasons.push(n.string());break;case 12:r.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:r.disallowTransferringPlaybackReasons.push(n.string());break;case 14:r.disallowRemoteControlReasons.push(n.string());break;case 15:r.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:r.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:r.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:r.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:r.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:r.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:r.disallowUpdatingContextReasons.push(n.string());break;case 22:r.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.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=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}}},84681:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105),s=n(1674);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ResumeRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(18).fork()).ldelim(),void 0!==e.resumeOrigin&&s.PauseResumeOrigin.encode(e.resumeOrigin,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,loggingParams:void 0,resumeOrigin:void 0};for(;n.pos>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 3:l.resumeOrigin=s.PauseResumeOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,resumeOrigin:l(e.resumeOrigin)?s.PauseResumeOrigin.fromJSON(e.resumeOrigin):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.resumeOrigin&&(t.resumeOrigin=e.resumeOrigin?s.PauseResumeOrigin.toJSON(e.resumeOrigin):void 0),t},fromPartial(e){const t={options:void 0,loggingParams:void 0,resumeOrigin:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.resumeOrigin=void 0!==e.resumeOrigin&&null!==e.resumeOrigin?s.PauseResumeOrigin.fromPartial(e.resumeOrigin):void 0,t}}},14404:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(17544),s=n(1105);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";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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=r.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 r.default.Reader?e:new r.default.Reader(e);let o=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){const t={options:void 0,loggingParams:void 0,position:"0",relative: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.position=e.position??"0",t.relative=e.relative??0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},551:function(e,t,n){"use strict";var o=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=o(n(33892));t.protobufPackage="spotify.player.esperanto.proto",t.SessionResponse={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:""};for(;n.pos>>3==1)r.sessionId=n.string();else n.skipType(7&e)}return r},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){const t={sessionId:""};return t.sessionId=e.sessionId??"",t}}},80568:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105),s=n(1745);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetOptionsRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.repeatingTrack&&s.OptionalBoolean.encode(e.repeatingTrack,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&s.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.shufflingContext&&s.OptionalBoolean.encode(e.shufflingContext,t.uint32(26).fork()).ldelim(),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={repeatingTrack:void 0,repeatingContext:void 0,shufflingContext:void 0,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:l.repeatingTrack=s.OptionalBoolean.decode(n,n.uint32());break;case 2:l.repeatingContext=s.OptionalBoolean.decode(n,n.uint32());break;case 3:l.shufflingContext=s.OptionalBoolean.decode(n,n.uint32());break;case 4:l.options=r.CommandOptions.decode(n,n.uint32());break;case 5:l.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({repeatingTrack:l(e.repeatingTrack)?s.OptionalBoolean.fromJSON(e.repeatingTrack):void 0,repeatingContext:l(e.repeatingContext)?s.OptionalBoolean.fromJSON(e.repeatingContext):void 0,shufflingContext:l(e.shufflingContext)?s.OptionalBoolean.fromJSON(e.shufflingContext):void 0,options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?s.OptionalBoolean.toJSON(e.repeatingTrack):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?s.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?s.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.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?s.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?s.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.shufflingContext=void 0!==e.shufflingContext&&null!==e.shufflingContext?s.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},36782:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(17544),s=n(1105),l=n(29719);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetQueueRequest={encode(e,t=r.default.Writer.create()){for(const n of e.nextTracks)l.ProvidedTrack.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.prevTracks)l.ProvidedTrack.encode(n,t.uint32(18).fork()).ldelim();return"0"!==e.queueRevision&&t.uint32(24).uint64(e.queueRevision),void 0!==e.options&&a.CommandOptions.encode(e.options,t.uint32(34).fork()).ldelim(),void 0!==e.loggingParams&&s.LoggingParams.encode(e.loggingParams,t.uint32(42).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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(l.ProvidedTrack.decode(n,n.uint32()));break;case 2:i.prevTracks.push(l.ProvidedTrack.decode(n,n.uint32()));break;case 3:i.queueRevision=n.uint64().toString();break;case 4:i.options=a.CommandOptions.decode(n,n.uint32());break;case 5:i.loggingParams=s.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({nextTracks:Array.isArray(e?.nextTracks)?e.nextTracks.map((e=>l.ProvidedTrack.fromJSON(e))):[],prevTracks:Array.isArray(e?.prevTracks)?e.prevTracks.map((e=>l.ProvidedTrack.fromJSON(e))):[],queueRevision:c(e.queueRevision)?String(e.queueRevision):"0",options:c(e.options)?a.CommandOptions.fromJSON(e.options):void 0,loggingParams:c(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return e.nextTracks?t.nextTracks=e.nextTracks.map((e=>e?l.ProvidedTrack.toJSON(e):void 0)):t.nextTracks=[],e.prevTracks?t.prevTracks=e.prevTracks.map((e=>e?l.ProvidedTrack.toJSON(e):void 0)):t.prevTracks=[],void 0!==e.queueRevision&&(t.queueRevision=e.queueRevision),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={nextTracks:[],prevTracks:[],queueRevision:"0",options:void 0,loggingParams:void 0};return t.nextTracks=e.nextTracks?.map((e=>l.ProvidedTrack.fromPartial(e)))||[],t.prevTracks=e.prevTracks?.map((e=>l.ProvidedTrack.fromPartial(e)))||[],t.queueRevision=e.queueRevision??"0",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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},78117:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetRepeatingContextRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.repeatingContext&&t.uint32(8).bool(e.repeatingContext),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={repeatingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:s.repeatingContext=n.bool();break;case 2:s.options=r.CommandOptions.decode(n,n.uint32());break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({repeatingContext:!!s(e.repeatingContext)&&Boolean(e.repeatingContext),options:s(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:s(e.loggingParams)?a.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?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={repeatingContext:!1,options:void 0,loggingParams:void 0};return t.repeatingContext=e.repeatingContext??!1,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},1202:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetRepeatingTrackRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.repeatingTrack&&t.uint32(8).bool(e.repeatingTrack),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={repeatingTrack:!1,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:s.repeatingTrack=n.bool();break;case 2:s.options=r.CommandOptions.decode(n,n.uint32());break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({repeatingTrack:!!s(e.repeatingTrack)&&Boolean(e.repeatingTrack),options:s(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:s(e.loggingParams)?a.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?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={repeatingTrack:!1,options:void 0,loggingParams:void 0};return t.repeatingTrack=e.repeatingTrack??!1,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},36631:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SetShufflingContextRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.shufflingContext&&t.uint32(8).bool(e.shufflingContext),void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(18).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={shufflingContext:!1,options:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:s.shufflingContext=n.bool();break;case 2:s.options=r.CommandOptions.decode(n,n.uint32());break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({shufflingContext:!!s(e.shufflingContext)&&Boolean(e.shufflingContext),options:s(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:s(e.loggingParams)?a.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?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={shufflingContext:!1,options:void 0,loggingParams:void 0};return t.shufflingContext=e.shufflingContext??!1,t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},84526:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(76498),s=n(1105);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipNextRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.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&&a.ContextTrack.encode(e.track,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,loggingParams:void 0,track:void 0};for(;n.pos>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 3:l.track=a.ContextTrack.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,track:l(e.track)?a.ContextTrack.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.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?a.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?r.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?a.ContextTrack.fromPartial(e.track):void 0,t}}},10103:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(76498),s=n(1105);function l(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipPrevRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.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&&a.ContextTrack.encode(e.track,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};for(;n.pos>>3){case 1:l.options=r.CommandOptions.decode(n,n.uint32());break;case 2:l.allowSeeking=n.bool();break;case 3:l.loggingParams=s.LoggingParams.decode(n,n.uint32());break;case 4:l.track=a.ContextTrack.decode(n,n.uint32());break;default:n.skipType(7&e)}}return l},fromJSON:e=>({options:l(e.options)?r.CommandOptions.fromJSON(e.options):void 0,allowSeeking:!!l(e.allowSeeking)&&Boolean(e.allowSeeking),loggingParams:l(e.loggingParams)?s.LoggingParams.fromJSON(e.loggingParams):void 0,track:l(e.track)?a.ContextTrack.fromJSON(e.track):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.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?a.ContextTrack.toJSON(e.track):void 0),t},fromPartial(e){const t={options:void 0,allowSeeking:!1,loggingParams:void 0,track:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.allowSeeking=e.allowSeeking??!1,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?a.ContextTrack.fromPartial(e.track):void 0,t}}},69316:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(1745);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=i.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&r.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&&r.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos>>3){case 1:a.pageUrl=n.string();break;case 2:a.pageIndex=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.trackUid=n.string();break;case 4:a.trackUri=n.string();break;case 5:a.trackIndex=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({pageUrl:a(e.pageUrl)?String(e.pageUrl):"",pageIndex:a(e.pageIndex)?r.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:a(e.trackUid)?String(e.trackUid):"",trackUri:a(e.trackUri)?String(e.trackUri):"",trackIndex:a(e.trackIndex)?r.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?r.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?r.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?r.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?r.OptionalInt64.fromPartial(e.trackIndex):void 0,t}}},50778:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(17544),a=n(1105);var s;function l(e){switch(e){case 0:case"INTERACTIVE":return s.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return s.REMOTE_TRANSFER;case 2:case"SHUTDOWN":return s.SHUTDOWN;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.INTERACTIVE:return"INTERACTIVE";case s.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case s.SHUTDOWN:return"SHUTDOWN";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(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"}(s=t.StopRequest_Reason||(t.StopRequest_Reason={})),t.stopRequest_ReasonFromJSON=l,t.stopRequest_ReasonToJSON=c,t.StopRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.options&&r.CommandOptions.encode(e.options,t.uint32(10).fork()).ldelim(),0!==e.reason&&t.uint32(16).int32(e.reason),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={options:void 0,reason:0,loggingParams:void 0};for(;n.pos>>3){case 1:s.options=r.CommandOptions.decode(n,n.uint32());break;case 2:s.reason=n.int32();break;case 3:s.loggingParams=a.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({options:u(e.options)?r.CommandOptions.fromJSON(e.options):void 0,reason:u(e.reason)?l(e.reason):0,loggingParams:u(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0}),toJSON(e){const t={};return void 0!==e.options&&(t.options=e.options?r.CommandOptions.toJSON(e.options):void 0),void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={options:void 0,reason:0,loggingParams:void 0};return t.options=void 0!==e.options&&null!==e.options?r.CommandOptions.fromPartial(e.options):void 0,t.reason=e.reason??0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},57627:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(15127),a=n(11416),s=n(76498),l=n(1105);function c(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.UpdateContextRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.context&&r.Context.encode(e.context,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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={sessionId:"",context:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:a.sessionId=n.string();break;case 2:a.context=r.Context.decode(n,n.uint32());break;case 3:a.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",context:c(e.context)?r.Context.fromJSON(e.context):void 0,loggingParams:c(e.loggingParams)?l.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?r.Context.toJSON(e.context):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",context:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.UpdateContextPageRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextPage&&a.ContextPage.encode(e.contextPage,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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",contextPage:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:r.sessionId=n.string();break;case 2:r.contextPage=a.ContextPage.decode(n,n.uint32());break;case 3:r.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",contextPage:c(e.contextPage)?a.ContextPage.fromJSON(e.contextPage):void 0,loggingParams:c(e.loggingParams)?l.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?a.ContextPage.toJSON(e.contextPage):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",contextPage:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.contextPage=void 0!==e.contextPage&&null!==e.contextPage?a.ContextPage.fromPartial(e.contextPage):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.UpdateContextTrackRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),void 0!==e.contextTrack&&s.ContextTrack.encode(e.contextTrack,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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",contextTrack:void 0,loggingParams:void 0};for(;n.pos>>3){case 1:r.sessionId=n.string();break;case 2:r.contextTrack=s.ContextTrack.decode(n,n.uint32());break;case 3:r.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",contextTrack:c(e.contextTrack)?s.ContextTrack.fromJSON(e.contextTrack):void 0,loggingParams:c(e.loggingParams)?l.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?s.ContextTrack.toJSON(e.contextTrack):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",contextTrack:void 0,loggingParams:void 0};return t.sessionId=e.sessionId??"",t.contextTrack=void 0!==e.contextTrack&&null!==e.contextTrack?s.ContextTrack.fromPartial(e.contextTrack):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}},t.UpdateViewUriRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.sessionId&&t.uint32(10).string(e.sessionId),""!==e.viewUri&&t.uint32(18).string(e.viewUri),void 0!==e.loggingParams&&l.LoggingParams.encode(e.loggingParams,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={sessionId:"",viewUri:"",loggingParams:void 0};for(;n.pos>>3){case 1:r.sessionId=n.string();break;case 2:r.viewUri=n.string();break;case 3:r.loggingParams=l.LoggingParams.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({sessionId:c(e.sessionId)?String(e.sessionId):"",viewUri:c(e.viewUri)?String(e.viewUri):"",loggingParams:c(e.loggingParams)?l.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?l.LoggingParams.toJSON(e.loggingParams):void 0),t},fromPartial(e){const t={sessionId:"",viewUri:"",loggingParams:void 0};return t.sessionId=e.sessionId??"",t.viewUri=e.viewUri??"",t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?l.LoggingParams.fromPartial(e.loggingParams):void 0,t}}},43249:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},65689:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};t.AlbumDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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 s={collectionLink:!1,numTracksInCollection:!1,complete:!1};t.AlbumCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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={...s};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 l={inferredOffline:!1,offlineState:!1,syncProgress:!1};t.AlbumSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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={...l};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={...l};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},32691:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={link:!1,name:!1,isVariousArtists:!1,portraits:!1};t.ArtistDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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 s={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};t.ArtistCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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={...s};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 l={inferredOffline:!1,offlineState:!1,syncProgress:!1};t.ArtistSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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={...l};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={...l};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},43434:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(43249);t.protobufPackage="spotify.cosmos_util.proto";const s={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:0,is19PlusOnly:!1,isBookChapter:!1};t.EpisodeDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(i.extension=[];n.pos>>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.posa.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={...s};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 l={isFollowingShow:!1,isInListenLater:!1,isNew:!1};t.EpisodeCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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={...l};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={...l};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 c={offline:!1,syncProgress:!1};t.EpisodeSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};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={...c};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={...c};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 u={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};t.EpisodePlayedStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};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={...u};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={...u};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},10853:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};t.FolderDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},52272:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(65689),s=n(32691);t.protobufPackage="spotify.playlist.cosmos.proto";const l={};t.PlaylistAlbumDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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){const t={...l};return void 0!==e.album&&null!==e.album?t.album=a.AlbumDecorationPolicy.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=s.ArtistDecorationPolicy.fromJSON(e.artist):t.artist=void 0,t},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={...l};return void 0!==e.album&&null!==e.album?t.album=a.AlbumDecorationPolicy.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=s.ArtistDecorationPolicy.fromPartial(e.artist):t.artist=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},73034:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDecorationPolicy=t.PlaylistAllowsDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(54546),s=n(43249);t.protobufPackage="spotify.playlist.cosmos.proto";const l={insert:!1,remove:!1};t.PlaylistAllowsDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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={...l};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={...l};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 c={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=r.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&&a.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&a.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&&a.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...c};for(s.extension=[];o.pos>>3){case 1:s.rowId=o.bool();break;case 2:s.link=o.bool();break;case 3:s.name=o.bool();break;case 4:s.loadState=o.bool();break;case 5:s.loaded=o.bool();break;case 6:s.collaborative=o.bool();break;case 7:s.length=o.bool();break;case 8:s.lastModification=o.bool();break;case 9:s.totalLength=o.bool();break;case 10:s.duration=o.bool();break;case 11:s.description=o.bool();break;case 12:s.picture=o.bool();break;case 13:s.playable=o.bool();break;case 14:s.descriptionFromAnnotate=o.bool();break;case 15:s.pictureFromAnnotate=o.bool();break;case 16:s.canReportAnnotationAbuse=o.bool();break;case 17:s.followed=o.bool();break;case 18:s.followers=o.bool();break;case 19:s.ownedBySelf=o.bool();break;case 20:s.offline=o.bool();break;case 21:s.syncProgress=o.bool();break;case 22:s.published=o.bool();break;case 23:s.browsableOffline=o.bool();break;case 24:s.formatListType=o.bool();break;case 25:s.formatListAttributes=o.bool();break;case 26:s.hasExplicitContent=o.bool();break;case 27:s.containsSpotifyTracks=o.bool();break;case 28:s.containsTracks=o.bool();break;case 29:s.containsEpisodes=o.bool();break;case 30:s.containsAudioEpisodes=o.bool();break;case 31:s.onlyContainsExplicit=o.bool();break;case 32:s.isOnDemandInFree=o.bool();break;case 33:s.owner=a.UserDecorationPolicy.decode(o,o.uint32());break;case 34:s.madeFor=a.UserDecorationPolicy.decode(o,o.uint32());break;case 35:s.allows=t.PlaylistAllowsDecorationPolicy.decode(o,o.uint32());break;case 36:s.numberOfEpisodes=o.bool();break;case 37:s.numberOfTracks=o.bool();break;case 38:s.preferLinearPlayback=o.bool();break;case 39:s.onDemandInFreeReason=o.bool();break;case 40:s.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.decode(o,o.uint32());break;case 41:s.basePermission=o.bool();break;case 42:s.userCapabilities=o.bool();break;case 43:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.poss.extensionKindToJSON(e))):n.extension=[],n},fromPartial(e){const n={...c};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=a.UserDecorationPolicy.fromPartial(e.owner):n.owner=void 0,void 0!==e.madeFor&&null!==e.madeFor?n.madeFor=a.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=a.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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},72599:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistEpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(43434),s=n(54546),l=n(50614);t.protobufPackage="spotify.playlist.cosmos.proto";const c={rowId:!1,addTime:!1,formatListAttributes:!1};t.PlaylistEpisodeDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.episode&&a.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&&a.EpisodeCollectionDecorationPolicy.encode(e.collection,t.uint32(42).fork()).ldelim(),void 0!==e.sync&&a.EpisodeSyncDecorationPolicy.encode(e.sync,t.uint32(50).fork()).ldelim(),void 0!==e.playedState&&a.EpisodePlayedStateDecorationPolicy.encode(e.playedState,t.uint32(58).fork()).ldelim(),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(66).fork()).ldelim(),void 0!==e.show&&l.ShowDecorationPolicy.encode(e.show,t.uint32(74).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos>>3){case 1:i.episode=a.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=a.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 6:i.sync=a.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 7:i.playedState=a.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 8:i.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 9:i.show=l.ShowDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.episode&&null!==e.episode?t.episode=a.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=a.EpisodeCollectionDecorationPolicy.fromJSON(e.collection):t.collection=void 0,void 0!==e.sync&&null!==e.sync?t.sync=a.EpisodeSyncDecorationPolicy.fromJSON(e.sync):t.sync=void 0,void 0!==e.playedState&&null!==e.playedState?t.playedState=a.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedState):t.playedState=void 0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.UserDecorationPolicy.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.show&&null!==e.show?t.show=l.ShowDecorationPolicy.fromJSON(e.show):t.show=void 0,t},toJSON(e){const t={};return void 0!==e.episode&&(t.episode=e.episode?a.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?a.EpisodeCollectionDecorationPolicy.toJSON(e.collection):void 0),void 0!==e.sync&&(t.sync=e.sync?a.EpisodeSyncDecorationPolicy.toJSON(e.sync):void 0),void 0!==e.playedState&&(t.playedState=e.playedState?a.EpisodePlayedStateDecorationPolicy.toJSON(e.playedState):void 0),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.show&&(t.show=e.show?l.ShowDecorationPolicy.toJSON(e.show):void 0),t},fromPartial(e){const t={...c};return void 0!==e.episode&&null!==e.episode?t.episode=a.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=a.EpisodeCollectionDecorationPolicy.fromPartial(e.collection):t.collection=void 0,void 0!==e.sync&&null!==e.sync?t.sync=a.EpisodeSyncDecorationPolicy.fromPartial(e.sync):t.sync=void 0,void 0!==e.playedState&&null!==e.playedState?t.playedState=a.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedState):t.playedState=void 0,void 0!==e.addedBy&&null!==e.addedBy?t.addedBy=s.UserDecorationPolicy.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.show&&null!==e.show?t.show=l.ShowDecorationPolicy.fromPartial(e.show):t.show=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94296:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistRequestDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(73034),s=n(13485),l=n(72599);t.protobufPackage="spotify.playlist.cosmos.proto";const c={};t.PlaylistRequestDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(void 0!==e.playlist&&a.PlaylistDecorationPolicy.encode(e.playlist,t.uint32(10).fork()).ldelim(),void 0!==e.track&&s.PlaylistTrackDecorationPolicy.encode(e.track,t.uint32(18).fork()).ldelim(),void 0!==e.episode&&l.PlaylistEpisodeDecorationPolicy.encode(e.episode,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};for(;n.pos>>3){case 1:i.playlist=a.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 2:i.track=s.PlaylistTrackDecorationPolicy.decode(n,n.uint32());break;case 3:i.episode=l.PlaylistEpisodeDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...c};return void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.track&&null!==e.track?t.track=s.PlaylistTrackDecorationPolicy.fromJSON(e.track):t.track=void 0,void 0!==e.episode&&null!==e.episode?t.episode=l.PlaylistEpisodeDecorationPolicy.fromJSON(e.episode):t.episode=void 0,t},toJSON(e){const t={};return void 0!==e.playlist&&(t.playlist=e.playlist?a.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.track&&(t.track=e.track?s.PlaylistTrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.episode&&(t.episode=e.episode?l.PlaylistEpisodeDecorationPolicy.toJSON(e.episode):void 0),t},fromPartial(e){const t={...c};return void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.track&&null!==e.track?t.track=s.PlaylistTrackDecorationPolicy.fromPartial(e.track):t.track=void 0,void 0!==e.episode&&null!==e.episode?t.episode=l.PlaylistEpisodeDecorationPolicy.fromPartial(e.episode):t.episode=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13485:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(1531),s=n(54546),l=n(52272),c=n(32691);t.protobufPackage="spotify.playlist.cosmos.proto";const u={rowId:!1,addTime:!1,inCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1,localFile:!1,offline:!1,formatListAttributes:!1,displayCovers:!1};t.PlaylistTrackDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};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){const t={...u};return void 0!==e.track&&null!==e.track?t.track=a.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=s.UserDecorationPolicy.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.album&&null!==e.album?t.album=l.PlaylistAlbumDecorationPolicy.fromJSON(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=c.ArtistDecorationPolicy.fromJSON(e.artist):t.artist=void 0,t},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){const t={...u};return void 0!==e.track&&null!==e.track?t.track=a.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=s.UserDecorationPolicy.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.album&&null!==e.album?t.album=l.PlaylistAlbumDecorationPolicy.fromPartial(e.album):t.album=void 0,void 0!==e.artist&&null!==e.artist?t.artist=c.ArtistDecorationPolicy.fromPartial(e.artist):t.artist=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},6894:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistFolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(10853);t.protobufPackage="spotify.playlist.cosmos.proto";const s={addTime:!1,groupLabel:!1};t.RootlistFolderDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.folder&&a.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos>>3){case 1:i.addTime=n.bool();break;case 2:i.folder=a.FolderDecorationPolicy.decode(n,n.uint32());break;case 3:i.groupLabel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};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=a.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?a.FolderDecorationPolicy.toJSON(e.folder):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={...s};return void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.folder&&null!==e.folder?t.folder=a.FolderDecorationPolicy.fromPartial(e.folder):t.folder=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},41381:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistPlaylistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(73034);t.protobufPackage="spotify.playlist.cosmos.proto";const s={addTime:!1,groupLabel:!1};t.RootlistPlaylistDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.playlist&&a.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos>>3){case 1:i.addTime=n.bool();break;case 2:i.playlist=a.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 3:i.groupLabel=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...s};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=a.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?a.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={...s};return void 0!==e.addTime&&null!==e.addTime?t.addTime=e.addTime:t.addTime=!1,void 0!==e.playlist&&null!==e.playlist?t.playlist=a.PlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.groupLabel&&null!==e.groupLabel?t.groupLabel=e.groupLabel:t.groupLabel=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},46747:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistRequestDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(41381),s=n(6894);t.protobufPackage="spotify.playlist.cosmos.proto";const l={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1};t.RootlistRequestDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!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&&a.RootlistPlaylistDecorationPolicy.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.folder&&s.RootlistFolderDecorationPolicy.encode(e.folder,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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=a.RootlistPlaylistDecorationPolicy.decode(n,n.uint32());break;case 5:i.folder=s.RootlistFolderDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...l};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=a.RootlistPlaylistDecorationPolicy.fromJSON(e.playlist):t.playlist=void 0,void 0!==e.folder&&null!==e.folder?t.folder=s.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?a.RootlistPlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.folder&&(t.folder=e.folder?s.RootlistFolderDecorationPolicy.toJSON(e.folder):void 0),t},fromPartial(e){const t={...l};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=a.RootlistPlaylistDecorationPolicy.fromPartial(e.playlist):t.playlist=void 0,void 0!==e.folder&&null!==e.folder?t.folder=s.RootlistFolderDecorationPolicy.fromPartial(e.folder):t.folder=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},50614:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(43249);t.protobufPackage="spotify.cosmos_util.proto";const s={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:0,isBook:!1};t.ShowDecorationPolicy={encode(e,t=r.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(i.extension=[];n.pos>>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.posa.extensionKindToJSON(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),t},fromPartial(e){const t={...s};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 l={latestPlayedEpisodeLink:!1};t.ShowPlayedStateDecorationPolicy={encode:(e,t=r.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos>>3==1)i.latestPlayedEpisodeLink=n.bool();else n.skipType(7&e)}return i},fromJSON(e){const t={...l};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={...l};return void 0!==e.latestPlayedEpisodeLink&&null!==e.latestPlayedEpisodeLink?t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink:t.latestPlayedEpisodeLink=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},1531:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={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};t.TrackDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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 s={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};t.TrackPlayedStateDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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={...s};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 l={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};t.TrackCollectionDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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={...l};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={...l};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 c={offlineState:!1,syncProgress:!1};t.TrackSyncDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};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={...c};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={...c};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},54546:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};t.UserDecorationPolicy={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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 s={numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};t.CollaboratorPolicy={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...s};for(;o.pos>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...s};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={...s};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 l={count:!1,limit:0};t.CollaboratingUsersDecorationPolicy={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...l};for(;o.pos>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...l};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={...l};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},41815:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={isFollowingShow:!1,isNew:!1,isInListenLater:!1};t.EpisodeCollectionState={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},46838:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContainsResponse=t.ContainsRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={items:""};t.ContainsRequest={encode(e,t=r.default.Writer.create()){for(const n of e.items)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(i.items=[];n.pos>>3==1)i.items.push(n.string());else n.skipType(7&e)}return i},fromJSON(e){const t={...a};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={...a};if(t.items=[],void 0!==e.items&&null!==e.items)for(const n of e.items)t.items.push(n);return t}};const s={found:!1};t.ContainsResponse={encode(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};if(t.found=[],void 0!==e.found&&null!==e.found)for(const n of e.found)t.found.push(n);return t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},80610:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},52645:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=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}),r=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)&&o(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=r(n(46838));t.contains_request=a;const s=r(n(51204));t.members_request=s;const l=r(n(71920));t.members_response=l;const c=r(n(89513));t.modification_request=c;const u=r(n(86902));t.offline_playlists_containing=u;const d=r(n(5546));t.playlist_playback_request=d;const p=r(n(22852));t.playlist_request=p;const f=r(n(89648));t.playlist_set_permission_request=f;const h=r(n(67168));t.rootlist_request=h;const m=r(n(12216));t.set_member_permission_request=m;const g=r(n(95574));t.sync_request=g},51204:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersRequest=t.OptionalLimit=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={value:0};t.OptionalLimit={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos>>3==1)i.value=n.uint32();else n.skipType(7&e)}return i},fromJSON(e){const t={...a};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={...a};return void 0!==e.value&&null!==e.value?t.value=e.value:t.value=0,t}};const s={uri:""};t.PlaylistMembersRequest={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...s};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.limit=t.OptionalLimit.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...s};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={...s};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},71920:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersResponse=t.Member=t.followStateToJSON=t.followStateFromJSON=t.FollowState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(71249),s=n(95583);var l;function c(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"CAN_BE_FOLLOWED":return l.CAN_BE_FOLLOWED;case 2:case"CAN_BE_UNFOLLOWED":return l.CAN_BE_UNFOLLOWED;default:return l.UNRECOGNIZED}}function u(e){switch(e){case l.NONE:return"NONE";case l.CAN_BE_FOLLOWED:return"CAN_BE_FOLLOWED";case l.CAN_BE_UNFOLLOWED:return"CAN_BE_UNFOLLOWED";default:return"UNKNOWN"}}t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.NONE=0]="NONE",e[e.CAN_BE_FOLLOWED=1]="CAN_BE_FOLLOWED",e[e.CAN_BE_UNFOLLOWED=2]="CAN_BE_UNFOLLOWED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.FollowState||(t.FollowState={})),t.followStateFromJSON=c,t.followStateToJSON=u;const d={isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};t.Member={encode:(e,t=r.default.Writer.create())=>(void 0!==e.user&&s.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...d};for(;n.pos>>3){case 1:i.user=s.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={...d};return void 0!==e.user&&null!==e.user?t.user=s.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=c(e.followState):t.followState=0,void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=a.permissionLevelFromJSON(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?s.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=u(e.followState)),void 0!==e.permissionLevel&&(t.permissionLevel=a.permissionLevelToJSON(e.permissionLevel)),t},fromPartial(e){const t={...d};return void 0!==e.user&&null!==e.user?t.user=s.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 p={title:"",numTotalMembers:0,basePermissionLevel:0};t.PlaylistMembersResponse={encode(e,n=r.default.Writer.create()){""!==e.title&&n.uint32(10).string(e.title),0!==e.numTotalMembers&&n.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&a.Capabilities.encode(e.capabilities,n.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&n.uint32(32).int32(e.basePermissionLevel);for(const o of e.members)t.Member.encode(o,n.uint32(42).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...p};for(s.members=[];o.pos>>3){case 1:s.title=o.string();break;case 2:s.numTotalMembers=o.uint32();break;case 3:s.capabilities=a.Capabilities.decode(o,o.uint32());break;case 4:s.basePermissionLevel=o.int32();break;case 5:s.members.push(t.Member.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...p};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=a.Capabilities.fromJSON(e.capabilities):n.capabilities=void 0,void 0!==e.basePermissionLevel&&null!==e.basePermissionLevel?n.basePermissionLevel=a.permissionLevelFromJSON(e.basePermissionLevel):n.basePermissionLevel=0,void 0!==e.members&&null!==e.members)for(const o of e.members)n.members.push(t.Member.fromJSON(o));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?a.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.basePermissionLevel&&(n.basePermissionLevel=a.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={...p};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=a.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 o of e.members)n.members.push(t.Member.fromPartial(o));return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},8640:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(15792),s=n(94581);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"}}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;const h={link:"",name:"",publisher:""};t.EpisodeShowMetadata={encode:(e,t=r.default.Writer.create())=>(""!==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&&a.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...h};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=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...h};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=a.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?a.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={...h};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=a.ImageGroup.fromPartial(e.covers):t.covers=void 0,t}};const m={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=r.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&&a.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&&a.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)s.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={...m};for(l.extension=[];o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=a.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=a.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(s.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;default:o.skipType(7&e)}}return l},fromJSON(e){const n={...m};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=a.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=a.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=p(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=u(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(s.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?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=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),n},fromPartial(e){const n={...m};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=a.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=a.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(s.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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},94581:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(80610);t.protobufPackage="spotify.cosmos_util.proto";const s={extensionKind:0};t.Extension={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};return t.data=new Uint8Array,void 0!==e.extensionKind&&null!==e.extensionKind?t.extensionKind=a.extensionKindFromJSON(e.extensionKind):t.extensionKind=0,void 0!==e.data&&null!==e.data&&(t.data=function(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e{if(void 0!==l)return l;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 c=l.atob||(e=>l.Buffer.from(e,"base64").toString("binary"));const u=l.btoa||(e=>l.Buffer.from(e,"binary").toString("base64"));r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},15792:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};t.ImageGroup={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},72711:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(15792);t.protobufPackage="spotify.cosmos_util.proto";const s={link:"",name:""};t.TrackAlbumArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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={...s};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 l={link:"",name:""};t.TrackAlbumMetadata={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...l};for(;o.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...l};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=a.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?a.ImageGroup.toJSON(e.covers):void 0),n},fromPartial(e){const n={...l};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=a.ImageGroup.fromPartial(e.covers):n.covers=void 0,n}};const c={link:"",name:""};t.TrackArtistMetadata={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};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){const t={...c};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=a.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?a.ImageGroup.toJSON(e.portraits):void 0),t},fromPartial(e){const t={...c};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=a.ImageGroup.fromPartial(e.portraits):t.portraits=void 0,t}};const u={name:""};t.TrackDescriptor={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos>>3==1)i.name=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t={...u};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={...u};return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",t}};const d={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=r.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,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 o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...d};for(a.artist=[],a.trackDescriptors=[];o.pos>>3){case 1:a.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:a.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:a.link=o.string();break;case 4:a.name=o.string();break;case 5:a.length=o.uint32();break;case 6:a.playable=o.bool();break;case 7:a.discNumber=o.uint32();break;case 8:a.trackNumber=o.uint32();break;case 9:a.isExplicit=o.bool();break;case 10:a.previewId=o.string();break;case 11:a.isLocal=o.bool();break;case 12:a.playableLocalTrack=o.bool();break;case 13:a.hasLyrics=o.bool();break;case 14:a.isPremiumOnly=o.bool();break;case 15:a.locallyPlayable=o.bool();break;case 16:a.playableTrackLink=o.string();break;case 17:a.popularity=o.uint32();break;case 18:a.is19PlusOnly=o.bool();break;case 19:a.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...d};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 o of e.artist)n.artist.push(t.TrackArtistMetadata.fromJSON(o));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 o of e.trackDescriptors)n.trackDescriptors.push(t.TrackDescriptor.fromJSON(o));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={...d};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 o of e.artist)n.artist.push(t.TrackArtistMetadata.fromPartial(o));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 o of e.trackDescriptors)n.trackDescriptors.push(t.TrackDescriptor.fromPartial(o));return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},89513:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModificationResponse=t.ModificationRequest_Attributes=t.ModificationRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={operation:"",before:"",after:"",name:"",playlist:!1,uris:"",rows:"",contents:!1,itemId:""};t.ModificationRequest={encode(e,n=r.default.Writer.create()){""!==e.operation&&n.uint32(10).string(e.operation),""!==e.before&&n.uint32(18).string(e.before),""!==e.after&&n.uint32(26).string(e.after),""!==e.name&&n.uint32(34).string(e.name),!0===e.playlist&&n.uint32(40).bool(e.playlist),void 0!==e.attributes&&t.ModificationRequest_Attributes.encode(e.attributes,n.uint32(50).fork()).ldelim();for(const t of e.uris)n.uint32(58).string(t);for(const t of e.rows)n.uint32(66).string(t);return!0===e.contents&&n.uint32(72).bool(e.contents),""!==e.itemId&&n.uint32(82).string(e.itemId),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const s={...a};for(s.uris=[],s.rows=[];o.pos>>3){case 1:s.operation=o.string();break;case 2:s.before=o.string();break;case 3:s.after=o.string();break;case 4:s.name=o.string();break;case 5:s.playlist=o.bool();break;case 6:s.attributes=t.ModificationRequest_Attributes.decode(o,o.uint32());break;case 7:s.uris.push(o.string());break;case 8:s.rows.push(o.string());break;case 9:s.contents=o.bool();break;case 10:s.itemId=o.string();break;default:o.skipType(7&e)}}return s},fromJSON(e){const n={...a};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={...a};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 s={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};t.ModificationRequest_Attributes={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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={...s};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 l={success:!1,uri:""};t.ModificationResponse={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};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={...l};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={...l};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},86902:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfflinePlaylistsContainingItemResponse=t.OfflinePlaylistContainingItem=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={playlistLink:"",playlistName:""};t.OfflinePlaylistContainingItem={encode:(e,t=r.default.Writer.create())=>(""!==e.playlistLink&&t.uint32(10).string(e.playlistLink),""!==e.playlistName&&t.uint32(18).string(e.playlistName),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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 s={};t.OfflinePlaylistsContainingItemResponse={encode(e,n=r.default.Writer.create()){for(const o of e.playlists)t.OfflinePlaylistContainingItem.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...s};for(a.playlists=[];o.pos>>3==1)a.playlists.push(t.OfflinePlaylistContainingItem.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON(e){const n={...s};if(n.playlists=[],void 0!==e.playlists&&null!==e.playlists)for(const o of e.playlists)n.playlists.push(t.OfflinePlaylistContainingItem.fromJSON(o));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={...s};if(n.playlists=[],void 0!==e.playlists&&null!==e.playlists)for(const o of e.playlists)n.playlists.push(t.OfflinePlaylistContainingItem.fromPartial(o));return n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},70456:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},63192:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(89623);t.protobufPackage="spotify.cosmos_util.proto";const s={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};t.EpisodePlayState={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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=a.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=a.playabilityRestrictionToJSON(e.playabilityRestriction)),t},fromPartial(e){const t={...s};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},89623:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},67524:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(89623);t.protobufPackage="spotify.cosmos_util.proto";const s={isPlayable:!1,playabilityRestriction:0};t.TrackPlayState={encode:(e,t=r.default.Writer.create())=>(!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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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=a.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=a.playabilityRestrictionToJSON(e.playabilityRestriction)),t},fromPartial(e){const t={...s};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},81708:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderMetadata=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};t.FolderMetadata={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},71249:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseStatus=t.ClaimPermissionGrantResponse=t.PermissionGrant=t.PermissionGrantOptions=t.PermissionStatePub=t.PermissionState=t.Permissions=t.GetMemberPermissionsResponse_MemberPermissionsEntry=t.GetMemberPermissionsResponse=t.SetPermissionResponse=t.SetPermissionLevelRequest=t.CapabilitiesResponse=t.CapabilitiesMultiResponse=t.CapabilitiesRequest=t.CapabilitiesMultiRequest=t.Capabilities=t.Permission=t.permissionLevelToJSON=t.permissionLevelFromJSON=t.PermissionLevel=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"BLOCKED":return a.BLOCKED;case 2:case"VIEWER":return a.VIEWER;case 3:case"CONTRIBUTOR":return a.CONTRIBUTOR;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.BLOCKED:return"BLOCKED";case a.VIEWER:return"VIEWER";case a.CONTRIBUTOR:return"CONTRIBUTOR";default:return"UNKNOWN"}}t.protobufPackage="spotify.playlist_permission.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PermissionLevel||(t.PermissionLevel={})),t.permissionLevelFromJSON=s,t.permissionLevelToJSON=l;const c={permissionLevel:0};t.Permission={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};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={...c};return t.revision=new Uint8Array,void 0!==e.revision&&null!==e.revision&&(t.revision=function(e){const t=C(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.posl(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={...u};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 d={fallbackUsername:"",fallbackUserId:"",fallbackUri:""};t.CapabilitiesMultiRequest={encode(e,n=r.default.Writer.create()){for(const o of e.request)t.CapabilitiesRequest.encode(o,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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...d};for(a.request=[];o.pos>>3){case 1:a.request.push(t.CapabilitiesRequest.decode(o,o.uint32()));break;case 2:a.fallbackUsername=o.string();break;case 3:a.fallbackUserId=o.string();break;case 4:a.fallbackUri=o.string();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...d};if(n.request=[],void 0!==e.request&&null!==e.request)for(const o of e.request)n.request.push(t.CapabilitiesRequest.fromJSON(o));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={...d};if(n.request=[],void 0!==e.request&&null!==e.request)for(const o of e.request)n.request.push(t.CapabilitiesRequest.fromPartial(o));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 p={username:"",userId:"",uri:"",userIsOwner:!1};t.CapabilitiesRequest={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...p};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={...p};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={...p};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 f={};t.CapabilitiesMultiResponse={encode(e,n=r.default.Writer.create()){for(const o of e.response)t.CapabilitiesResponse.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...f};for(a.response=[];o.pos>>3==1)a.response.push(t.CapabilitiesResponse.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON(e){const n={...f};if(n.response=[],void 0!==e.response&&null!==e.response)for(const o of e.response)n.response.push(t.CapabilitiesResponse.fromJSON(o));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={...f};if(n.response=[],void 0!==e.response&&null!==e.response)for(const o of e.response)n.response.push(t.CapabilitiesResponse.fromPartial(o));return n}};const h={};t.CapabilitiesResponse={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...h};for(;o.pos>>3){case 1:a.status=t.ResponseStatus.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...h};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={...h};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 m={permissionLevel:0};t.SetPermissionLevelRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...m};for(;n.pos>>3==1)i.permissionLevel=n.int32();else n.skipType(7&e)}return i},fromJSON(e){const t={...m};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=s(e.permissionLevel):t.permissionLevel=0,t},toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=l(e.permissionLevel)),t},fromPartial(e){const t={...m};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=e.permissionLevel:t.permissionLevel=0,t}};const g={};t.SetPermissionResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.resultingPermission&&t.Permission.encode(e.resultingPermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...g};for(;o.pos>>3==1)a.resultingPermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON(e){const n={...g};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={...g};return void 0!==e.resultingPermission&&null!==e.resultingPermission?n.resultingPermission=t.Permission.fromPartial(e.resultingPermission):n.resultingPermission=void 0,n}};const v={};t.GetMemberPermissionsResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.memberPermissions).forEach((([e,o])=>{t.GetMemberPermissionsResponse_MemberPermissionsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...v};for(a.memberPermissions={};o.pos>>3==1){const e=t.GetMemberPermissionsResponse_MemberPermissionsEntry.decode(o,o.uint32());void 0!==e.value&&(a.memberPermissions[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON(e){const n={...v};return n.memberPermissions={},void 0!==e.memberPermissions&&null!==e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{n.memberPermissions[e]=t.Permission.fromJSON(o)})),n},toJSON(e){const n={memberPermissions:{}};return e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{n.memberPermissions[e]=t.Permission.toJSON(o)})),n},fromPartial(e){const n={...v};return n.memberPermissions={},void 0!==e.memberPermissions&&null!==e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{void 0!==o&&(n.memberPermissions[e]=t.Permission.fromPartial(o))})),n}};const y={key:""};t.GetMemberPermissionsResponse_MemberPermissionsEntry={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...y};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.Permission.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...y};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={...y};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 _={};t.Permissions={encode:(e,n=r.default.Writer.create())=>(void 0!==e.basePermission&&t.Permission.encode(e.basePermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={..._};for(;o.pos>>3==1)a.basePermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON(e){const n={..._};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={..._};return void 0!==e.basePermission&&null!==e.basePermission?n.basePermission=t.Permission.fromPartial(e.basePermission):n.basePermission=void 0,n}};const b={isPrivate:!1,isCollaborative:!1};t.PermissionState={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...b};for(;o.pos>>3){case 1:a.permissions=t.Permissions.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;case 3:a.isPrivate=o.bool();break;case 4:a.isCollaborative=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...b};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={...b};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 S={};t.PermissionStatePub={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissionState&&t.PermissionState.encode(e.permissionState,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...S};for(;o.pos>>3==1)a.permissionState=t.PermissionState.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON(e){const n={...S};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={...S};return void 0!==e.permissionState&&null!==e.permissionState?n.permissionState=t.PermissionState.fromPartial(e.permissionState):n.permissionState=void 0,n}};const E={ttlMs:"0"};t.PermissionGrantOptions={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...E};for(;o.pos>>3){case 1:a.permission=t.Permission.decode(o,o.uint32());break;case 2:a.ttlMs=o.int64().toString();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...E};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={...E};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 A={token:""};t.PermissionGrant={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...A};for(;o.pos>>3){case 1:a.token=o.string();break;case 2:a.permissionGrantOptions=t.PermissionGrantOptions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...A};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={...A};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 T={};t.ClaimPermissionGrantResponse={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...T};for(;o.pos>>3){case 1:a.userPermission=t.Permission.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...T};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={...T};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 P={statusCode:0,statusMessage:""};t.ResponseStatus={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...P};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={...P};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={...P};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 O=(()=>{if(void 0!==O)return O;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 C=O.atob||(e=>O.Buffer.from(e,"base64").toString("binary"));const k=O.btoa||(e=>O.Buffer.from(e,"binary").toString("base64"));r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},5546:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaybackResponse=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={success:!1};t.PlaybackResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.success&&t.uint32(8).bool(e.success),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(;n.pos>>3==1)i.success=n.bool();else n.skipType(7&e)}return i},fromJSON(e){const t={...a};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={...a};return void 0!==e.success&&null!==e.success?t.success=e.success:t.success=!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},93048:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineState=t.PlaylistMetadata=t.Allows=t.FormatListAttribute=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(95583),s=n(15792),l=n(94581);t.protobufPackage="spotify.playlist.cosmos.proto";const c={key:"",value:""};t.FormatListAttribute={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};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={...c};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={...c};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 u={canInsert:!1,canRemove:!1};t.Allows={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};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={...u};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={...u};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 d={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=r.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&a.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&&s.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 o of e.formatListAttributes)t.FormatListAttribute.encode(o,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&&a.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)l.Extension.encode(t,n.uint32(170).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const c={...d};for(c.formatListAttributes=[],c.extension=[];o.pos>>3){case 1:c.link=o.string();break;case 2:c.name=o.string();break;case 3:c.owner=a.User.decode(o,o.uint32());break;case 4:c.ownedBySelf=o.bool();break;case 5:c.collaborative=o.bool();break;case 6:c.totalLength=o.uint32();break;case 7:c.description=o.string();break;case 8:c.pictures=s.ImageGroup.decode(o,o.uint32());break;case 9:c.followed=o.bool();break;case 10:c.published=o.bool();break;case 11:c.browsableOffline=o.bool();break;case 12:c.descriptionFromAnnotate=o.bool();break;case 13:c.pictureFromAnnotate=o.bool();break;case 14:c.formatListType=o.string();break;case 15:c.formatListAttributes.push(t.FormatListAttribute.decode(o,o.uint32()));break;case 16:c.canReportAnnotationAbuse=o.bool();break;case 17:c.isLoaded=o.bool();break;case 18:c.allows=t.Allows.decode(o,o.uint32());break;case 19:c.loadState=o.string();break;case 20:c.madeFor=a.User.decode(o,o.uint32());break;case 21:c.extension.push(l.Extension.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return c},fromJSON(e){const n={...d};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=a.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=s.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 o of e.formatListAttributes)n.formatListAttributes.push(t.FormatListAttribute.fromJSON(o));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=a.User.fromJSON(e.madeFor):n.madeFor=void 0,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(l.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?a.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?s.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?a.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?l.Extension.toJSON(e):void 0)):n.extension=[],n},fromPartial(e){const n={...d};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=a.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=s.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 o of e.formatListAttributes)n.formatListAttributes.push(t.FormatListAttribute.fromPartial(o));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=a.User.fromPartial(e.madeFor):n.madeFor=void 0,void 0!==e.extension&&null!==e.extension)for(const t of e.extension)n.extension.push(l.Extension.fromPartial(t));return n}};const p={offline:"",syncProgress:0};t.PlaylistOfflineState={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...p};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={...p};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={...p};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},22852:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Collaborators=t.Collaborator=t.RecommendationItem=t.Playlist=t.Item=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(70456),s=n(95583),l=n(72711),c=n(57812),u=n(67524),d=n(93048),p=n(8640),f=n(66141),h=n(41815),m=n(63192),g=n(15792),v=n(71249);t.protobufPackage="spotify.playlist.cosmos.playlist_request.proto";const y={headerField:"",addTime:0,rowId:""};t.Item={encode(e,t=r.default.Writer.create()){""!==e.headerField&&t.uint32(10).string(e.headerField),0!==e.addTime&&t.uint32(16).uint32(e.addTime),void 0!==e.addedBy&&s.User.encode(e.addedBy,t.uint32(26).fork()).ldelim(),void 0!==e.trackMetadata&&l.TrackMetadata.encode(e.trackMetadata,t.uint32(34).fork()).ldelim(),void 0!==e.trackCollectionState&&c.TrackCollectionState.encode(e.trackCollectionState,t.uint32(42).fork()).ldelim(),void 0!==e.trackOfflineState&&c.TrackOfflineState.encode(e.trackOfflineState,t.uint32(50).fork()).ldelim(),""!==e.rowId&&t.uint32(58).string(e.rowId),void 0!==e.trackPlayState&&u.TrackPlayState.encode(e.trackPlayState,t.uint32(66).fork()).ldelim();for(const n of e.formatListAttributes)d.FormatListAttribute.encode(n,t.uint32(74).fork()).ldelim();return void 0!==e.episodeMetadata&&p.EpisodeMetadata.encode(e.episodeMetadata,t.uint32(82).fork()).ldelim(),void 0!==e.episodeOfflineState&&f.EpisodeSyncState.encode(e.episodeOfflineState,t.uint32(90).fork()).ldelim(),void 0!==e.episodeCollectionState&&h.EpisodeCollectionState.encode(e.episodeCollectionState,t.uint32(98).fork()).ldelim(),void 0!==e.episodePlayState&&m.EpisodePlayState.encode(e.episodePlayState,t.uint32(106).fork()).ldelim(),void 0!==e.displayCovers&&g.ImageGroup.encode(e.displayCovers,t.uint32(114).fork()).ldelim(),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...y};for(i.formatListAttributes=[];n.pos>>3){case 1:i.headerField=n.string();break;case 2:i.addTime=n.uint32();break;case 3:i.addedBy=s.User.decode(n,n.uint32());break;case 4:i.trackMetadata=l.TrackMetadata.decode(n,n.uint32());break;case 5:i.trackCollectionState=c.TrackCollectionState.decode(n,n.uint32());break;case 6:i.trackOfflineState=c.TrackOfflineState.decode(n,n.uint32());break;case 7:i.rowId=n.string();break;case 8:i.trackPlayState=u.TrackPlayState.decode(n,n.uint32());break;case 9:i.formatListAttributes.push(d.FormatListAttribute.decode(n,n.uint32()));break;case 10:i.episodeMetadata=p.EpisodeMetadata.decode(n,n.uint32());break;case 11:i.episodeOfflineState=f.EpisodeSyncState.decode(n,n.uint32());break;case 12:i.episodeCollectionState=h.EpisodeCollectionState.decode(n,n.uint32());break;case 13:i.episodePlayState=m.EpisodePlayState.decode(n,n.uint32());break;case 14:i.displayCovers=g.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...y};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=s.User.fromJSON(e.addedBy):t.addedBy=void 0,void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromJSON(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromJSON(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.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=u.TrackPlayState.fromJSON(e.trackPlayState):t.trackPlayState=void 0,void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const n of e.formatListAttributes)t.formatListAttributes.push(d.FormatListAttribute.fromJSON(n));return void 0!==e.episodeMetadata&&null!==e.episodeMetadata?t.episodeMetadata=p.EpisodeMetadata.fromJSON(e.episodeMetadata):t.episodeMetadata=void 0,void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?t.episodeOfflineState=f.EpisodeSyncState.fromJSON(e.episodeOfflineState):t.episodeOfflineState=void 0,void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?t.episodeCollectionState=h.EpisodeCollectionState.fromJSON(e.episodeCollectionState):t.episodeCollectionState=void 0,void 0!==e.episodePlayState&&null!==e.episodePlayState?t.episodePlayState=m.EpisodePlayState.fromJSON(e.episodePlayState):t.episodePlayState=void 0,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=g.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?s.User.toJSON(e.addedBy):void 0),void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?l.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?c.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?c.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?u.TrackPlayState.toJSON(e.trackPlayState):void 0),e.formatListAttributes?t.formatListAttributes=e.formatListAttributes.map((e=>e?d.FormatListAttribute.toJSON(e):void 0)):t.formatListAttributes=[],void 0!==e.episodeMetadata&&(t.episodeMetadata=e.episodeMetadata?p.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeOfflineState&&(t.episodeOfflineState=e.episodeOfflineState?f.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodeCollectionState&&(t.episodeCollectionState=e.episodeCollectionState?h.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodePlayState&&(t.episodePlayState=e.episodePlayState?m.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.displayCovers&&(t.displayCovers=e.displayCovers?g.ImageGroup.toJSON(e.displayCovers):void 0),t},fromPartial(e){const t={...y};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=s.User.fromPartial(e.addedBy):t.addedBy=void 0,void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromPartial(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromPartial(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.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=u.TrackPlayState.fromPartial(e.trackPlayState):t.trackPlayState=void 0,void 0!==e.formatListAttributes&&null!==e.formatListAttributes)for(const n of e.formatListAttributes)t.formatListAttributes.push(d.FormatListAttribute.fromPartial(n));return void 0!==e.episodeMetadata&&null!==e.episodeMetadata?t.episodeMetadata=p.EpisodeMetadata.fromPartial(e.episodeMetadata):t.episodeMetadata=void 0,void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?t.episodeOfflineState=f.EpisodeSyncState.fromPartial(e.episodeOfflineState):t.episodeOfflineState=void 0,void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?t.episodeCollectionState=h.EpisodeCollectionState.fromPartial(e.episodeCollectionState):t.episodeCollectionState=void 0,void 0!==e.episodePlayState&&null!==e.episodePlayState?t.episodePlayState=m.EpisodePlayState.fromPartial(e.episodePlayState):t.episodePlayState=void 0,void 0!==e.displayCovers&&null!==e.displayCovers?t.displayCovers=g.ImageGroup.fromPartial(e.displayCovers):t.displayCovers=void 0,t}};const _={};t.Playlist={encode:(e,t=r.default.Writer.create())=>(void 0!==e.playlistMetadata&&d.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&d.PlaylistOfflineState.encode(e.playlistOfflineState,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={..._};for(;n.pos>>3){case 1:i.playlistMetadata=d.PlaylistMetadata.decode(n,n.uint32());break;case 2:i.playlistOfflineState=d.PlaylistOfflineState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={..._};return void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=d.PlaylistMetadata.fromJSON(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=d.PlaylistOfflineState.fromJSON(e.playlistOfflineState):t.playlistOfflineState=void 0,t},toJSON(e){const t={};return void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?d.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?d.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),t},fromPartial(e){const t={..._};return void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=d.PlaylistMetadata.fromPartial(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=d.PlaylistOfflineState.fromPartial(e.playlistOfflineState):t.playlistOfflineState=void 0,t}};const b={};t.RecommendationItem={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackMetadata&&l.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&c.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&c.TrackOfflineState.encode(e.trackOfflineState,t.uint32(26).fork()).ldelim(),void 0!==e.trackPlayState&&u.TrackPlayState.encode(e.trackPlayState,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...b};for(;n.pos>>3){case 1:i.trackMetadata=l.TrackMetadata.decode(n,n.uint32());break;case 2:i.trackCollectionState=c.TrackCollectionState.decode(n,n.uint32());break;case 3:i.trackOfflineState=c.TrackOfflineState.decode(n,n.uint32());break;case 4:i.trackPlayState=u.TrackPlayState.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...b};return void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromJSON(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromJSON(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.TrackOfflineState.fromJSON(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=u.TrackPlayState.fromJSON(e.trackPlayState):t.trackPlayState=void 0,t},toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?l.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?c.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?c.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.trackPlayState&&(t.trackPlayState=e.trackPlayState?u.TrackPlayState.toJSON(e.trackPlayState):void 0),t},fromPartial(e){const t={...b};return void 0!==e.trackMetadata&&null!==e.trackMetadata?t.trackMetadata=l.TrackMetadata.fromPartial(e.trackMetadata):t.trackMetadata=void 0,void 0!==e.trackCollectionState&&null!==e.trackCollectionState?t.trackCollectionState=c.TrackCollectionState.fromPartial(e.trackCollectionState):t.trackCollectionState=void 0,void 0!==e.trackOfflineState&&null!==e.trackOfflineState?t.trackOfflineState=c.TrackOfflineState.fromPartial(e.trackOfflineState):t.trackOfflineState=void 0,void 0!==e.trackPlayState&&null!==e.trackPlayState?t.trackPlayState=u.TrackPlayState.fromPartial(e.trackPlayState):t.trackPlayState=void 0,t}};const S={numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};t.Collaborator={encode:(e,t=r.default.Writer.create())=>(void 0!==e.user&&s.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...S};for(;n.pos>>3){case 1:i.user=s.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={...S};return void 0!==e.user&&null!==e.user?t.user=s.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?s.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={...S};return void 0!==e.user&&null!==e.user?t.user=s.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 E={count:0};t.Collaborators={encode(e,n=r.default.Writer.create()){0!==e.count&&n.uint32(8).uint32(e.count);for(const o of e.collaborator)t.Collaborator.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...E};for(a.collaborator=[];o.pos>>3){case 1:a.count=o.uint32();break;case 2:a.collaborator.push(t.Collaborator.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...E};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 o of e.collaborator)n.collaborator.push(t.Collaborator.fromJSON(o));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={...E};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 o of e.collaborator)n.collaborator.push(t.Collaborator.fromPartial(o));return n}};const A={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 T(e){return e.toString()}t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,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 o of e.recommendations)t.RecommendationItem.encode(o,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&&v.Permission.encode(e.basePermission,n.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&v.Capabilities.encode(e.userCapabilities,n.uint32(194).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...A};for(a.item=[],a.recommendations=[];o.pos>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.playlist=t.Playlist.decode(o,o.uint32());break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.duration=T(o.uint64());break;case 6:a.loadingContents=o.bool();break;case 7:a.lastModification=T(o.uint64());break;case 8:a.numFollowers=o.uint32();break;case 9:a.playable=o.bool();break;case 10:a.recommendations.push(t.RecommendationItem.decode(o,o.uint32()));break;case 11:a.hasExplicitContent=o.bool();break;case 12:a.containsSpotifyTracks=o.bool();break;case 13:a.containsEpisodes=o.bool();break;case 14:a.onlyContainsExplicit=o.bool();break;case 15:a.containsAudioEpisodes=o.bool();break;case 16:a.containsTracks=o.bool();break;case 17:a.isOnDemandInFree=o.bool();break;case 18:a.numberOfTracks=o.uint32();break;case 19:a.numberOfEpisodes=o.uint32();break;case 20:a.preferLinearPlayback=o.bool();break;case 21:a.onDemandInFreeReason=o.int32();break;case 22:a.collaborators=t.Collaborators.decode(o,o.uint32());break;case 23:a.basePermission=v.Permission.decode(o,o.uint32());break;case 24:a.userCapabilities=v.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...A};if(n.item=[],n.recommendations=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromJSON(o));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 o of e.recommendations)n.recommendations.push(t.RecommendationItem.fromJSON(o));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=a.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=v.Permission.fromJSON(e.basePermission):n.basePermission=void 0,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=v.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=a.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?v.Permission.toJSON(e.basePermission):void 0),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities?v.Capabilities.toJSON(e.userCapabilities):void 0),n},fromPartial(e){const n={...A};if(n.item=[],n.recommendations=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromPartial(o));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 o of e.recommendations)n.recommendations.push(t.RecommendationItem.fromPartial(o));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=v.Permission.fromPartial(e.basePermission):n.basePermission=void 0,void 0!==e.userCapabilities&&null!==e.userCapabilities?n.userCapabilities=v.Capabilities.fromPartial(e.userCapabilities):n.userCapabilities=void 0,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},89648:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetBasePermissionResponse=t.SetBasePermissionRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(71249);t.protobufPackage="spotify.playlist.cosmos.proto";const s={permissionLevel:0,timeoutMs:0};t.SetBasePermissionRequest={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};return void 0!==e.permissionLevel&&null!==e.permissionLevel?t.permissionLevel=a.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=a.permissionLevelToJSON(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=e.timeoutMs),t},fromPartial(e){const t={...s};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 l={};t.SetBasePermissionResponse={encode:(e,t=r.default.Writer.create())=>(void 0!==e.basePermission&&a.Permission.encode(e.basePermission,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...l};for(;n.pos>>3==1)i.basePermission=a.Permission.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON(e){const t={...l};return void 0!==e.basePermission&&null!==e.basePermission?t.basePermission=a.Permission.fromJSON(e.basePermission):t.basePermission=void 0,t},toJSON(e){const t={};return void 0!==e.basePermission&&(t.basePermission=e.basePermission?a.Permission.toJSON(e.basePermission):void 0),t},fromPartial(e){const t={...l};return void 0!==e.basePermission&&null!==e.basePermission?t.basePermission=a.Permission.fromPartial(e.basePermission):t.basePermission=void 0,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},57812:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};t.TrackCollectionState={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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 s={offline:""};t.TrackOfflineState={encode:(e,t=r.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};for(;n.pos>>3==1)i.offline=n.string();else n.skipType(7&e)}return i},fromJSON(e){const t={...s};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={...s};return void 0!==e.offline&&null!==e.offline?t.offline=e.offline:t.offline="",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95583:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};t.User={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},45793:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delta=t.delta_TypeToJSON=t.delta_TypeFromJSON=t.Delta_Type=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a;function s(e){switch(e){case 0:case"DELETE":return a.DELETE;case 1:case"INSERT":return a.INSERT;default:return a.UNRECOGNIZED}}function l(e){switch(e){case a.DELETE:return"DELETE";case a.INSERT:return"INSERT";default:return"UNKNOWN"}}t.protobufPackage="spotify.protobuf_deltas.proto",function(e){e[e.DELETE=0]="DELETE",e[e.INSERT=1]="INSERT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.Delta_Type||(t.Delta_Type={})),t.delta_TypeFromJSON=s,t.delta_TypeToJSON=l;const c={type:0,index:0,length:0};t.Delta={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...c};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={...c};return void 0!==e.type&&null!==e.type?t.type=s(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=l(e.type)),void 0!==e.index&&(t.index=e.index),void 0!==e.length&&(t.length=e.length),t},fromPartial(e){const t={...c};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},67168:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Folder=t.Item=t.Playlist=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(93048),s=n(71249),l=n(45793),c=n(81708);t.protobufPackage="spotify.playlist.cosmos.rootlist_request.proto";const u={rowId:"",addTime:0,isOnDemandInFree:!1,groupLabel:""};t.Playlist={encode:(e,t=r.default.Writer.create())=>(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&a.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&a.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&&s.Capabilities.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...u};for(;n.pos>>3){case 1:i.rowId=n.string();break;case 2:i.playlistMetadata=a.PlaylistMetadata.decode(n,n.uint32());break;case 3:i.playlistOfflineState=a.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=s.Capabilities.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t={...u};return void 0!==e.rowId&&null!==e.rowId?t.rowId=String(e.rowId):t.rowId="",void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=a.PlaylistMetadata.fromJSON(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=a.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=s.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?a.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?a.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?s.Capabilities.toJSON(e.capabilities):void 0),t},fromPartial(e){const t={...u};return void 0!==e.rowId&&null!==e.rowId?t.rowId=e.rowId:t.rowId="",void 0!==e.playlistMetadata&&null!==e.playlistMetadata?t.playlistMetadata=a.PlaylistMetadata.fromPartial(e.playlistMetadata):t.playlistMetadata=void 0,void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?t.playlistOfflineState=a.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=s.Capabilities.fromPartial(e.capabilities):t.capabilities=void 0,t}};const d={headerField:""};t.Item={encode:(e,n=r.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&&l.Delta.encode(e.delta,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...d};for(;o.pos>>3){case 1:a.headerField=o.string();break;case 2:a.folder=t.Folder.decode(o,o.uint32());break;case 3:a.playlist=t.Playlist.decode(o,o.uint32());break;case 4:a.delta=l.Delta.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...d};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=l.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?l.Delta.toJSON(e.delta):void 0),n},fromPartial(e){const n={...d};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=l.Delta.fromPartial(e.delta):n.delta=void 0,n}};const p={rowId:"",addTime:0,groupLabel:""};t.Folder={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&c.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...p};for(a.item=[];o.pos>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.folderMetadata=c.FolderMetadata.decode(o,o.uint32());break;case 3:a.rowId=o.string();break;case 4:a.addTime=o.uint32();break;case 5:a.groupLabel=o.string();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...p};if(n.item=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromJSON(o));return void 0!==e.folderMetadata&&null!==e.folderMetadata?n.folderMetadata=c.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?c.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={...p};if(n.item=[],void 0!==e.item&&null!==e.item)for(const o of e.item)n.item.push(t.Item.fromPartial(o));return void 0!==e.folderMetadata&&null!==e.folderMetadata?n.folderMetadata=c.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 f={unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};t.Response={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={...f};for(;o.pos>>3){case 1:a.root=t.Folder.decode(o,o.uint32());break;case 2:a.unfilteredLength=o.int32();break;case 3:a.unrangedLength=o.int32();break;case 4:a.isLoadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON(e){const n={...f};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={...f};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12216:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetMemberPermissionRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(71249);t.protobufPackage="spotify.playlist.cosmos.proto";const s={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};t.SetMemberPermissionRequest={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...s};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={...s};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=a.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=a.permissionLevelToJSON(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=e.timeoutMs),t},fromPartial(e){const t={...s};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},66141:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.cosmos_util.proto";const a={offlineState:"",syncProgress:0};t.EpisodeSyncState={encode:(e,t=r.default.Writer.create())=>(""!==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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};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={...a};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={...a};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}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},95574:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto";const a={playlistUris:""};t.SyncRequest={encode(e,t=r.default.Writer.create()){for(const n of e.playlistUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={...a};for(i.playlistUris=[];n.pos>>3==1)i.playlistUris.push(n.string());else n.skipType(7&e)}return i},fromJSON(e){const t={...a};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={...a};if(t.playlistUris=[],void 0!==e.playlistUris&&null!==e.playlistUris)for(const n of e.playlistUris)t.playlistUris.push(n);return t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},12871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDataServiceClient=void 0;const o=n(33892),i=n(82440),r=n(65373);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}find(e){const t="spotify.playlist_esperanto.proto.PlaylistDataService",n="Find",r=i.PlaylistFindRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PlaylistFindResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}get(e){const t="spotify.playlist_esperanto.proto.PlaylistDataService",n="Get",i=r.PlaylistGetRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.PlaylistGetResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribe(e,t){const n="spotify.playlist_esperanto.proto.PlaylistDataService",i="Subscribe",a=r.PlaylistGetRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:a},(e=>{const a=r.PlaylistGetResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,i,"stream"),t(a)}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistDataService";static DECODERS={Find:{request:i.PlaylistFindRequest.decode,response:i.PlaylistFindResponse.decode},Get:{request:r.PlaylistGetRequest.decode,response:r.PlaylistGetResponse.decode},Subscribe:{request:r.PlaylistGetRequest.decode,response:r.PlaylistGetResponse.decode}}}t.PlaylistDataServiceClient=a},49560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistPlayServiceClient=void 0;const o=n(33892),i=n(59011),r=n(174);class a{transport;options;constructor(e,t={}){this.transport=e,this.options=t}play(e){const t="spotify.playlist_esperanto.proto.PlaylistPlayService",n="Play",r=i.PlaylistPlayRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PlaylistPlayResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}getPlayContext(e){const t="spotify.playlist_esperanto.proto.PlaylistPlayService",n="GetPlayContext",i=r.PlaylistGetPlayContextRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.PlaylistGetPlayContextResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistPlayService";static DECODERS={Play:{request:i.PlaylistPlayRequest.decode,response:i.PlaylistPlayResponse.decode},GetPlayContext:{request:r.PlaylistGetPlayContextRequest.decode,response:r.PlaylistGetPlayContextResponse.decode}}}t.PlaylistPlayServiceClient=a},46528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistServiceClient=void 0;const o=n(33892),i=n(42733),r=n(35708),a=n(44031),s=n(36912),l=n(94930),c=n(17081),u=n(22660),d=n(64270),p=n(9265),f=n(53872),h=n(87731),m=n(82706),g=n(58779),v=n(76850);class y{transport;options;constructor(e,t={}){this.transport=e,this.options=t}requestLenses(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="RequestLenses",r=i.PlaylistLensRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.PlaylistLensResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}signalItem(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SignalItem",i=r.PlaylistItemSignalRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=r.PlaylistItemSignalResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}modify(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="Modify",i=a.PlaylistModificationRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.PlaylistModificationResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setBasePermission(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetBasePermission",i=s.PlaylistSetBasePermissionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.PlaylistSetBasePermissionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}getMembers(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="GetMembers",i=l.PlaylistMembersRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=c.PlaylistMembersResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribeToMembers(e,t){const n="spotify.playlist_esperanto.proto.PlaylistService",i="SubscribeToMembers",r=l.PlaylistMembersRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=c.PlaylistMembersResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}setMemberPermission(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetMemberPermission",i=u.SetMemberPermissionRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=d.PlaylistSetMemberPermissionResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}contains(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="Contains",i=p.PlaylistContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=p.PlaylistContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setOfflineState(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetOfflineState",i=f.PlaylistOfflineRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=f.PlaylistOfflineResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}resync(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="Resync",i=h.SyncRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=m.PlaylistResyncResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}setToken(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="SetToken",i=g.PlaylistSetTokenRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=g.PlaylistSetTokenResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}clearToken(e){const t="spotify.playlist_esperanto.proto.PlaylistService",n="ClearToken",i=v.PlaylistClearTokenRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=v.PlaylistClearTokenResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.playlist_esperanto.proto.PlaylistService";static DECODERS={RequestLenses:{request:i.PlaylistLensRequest.decode,response:i.PlaylistLensResponse.decode},SignalItem:{request:r.PlaylistItemSignalRequest.decode,response:r.PlaylistItemSignalResponse.decode},Modify:{request:a.PlaylistModificationRequest.decode,response:a.PlaylistModificationResponse.decode},SetBasePermission:{request:s.PlaylistSetBasePermissionRequest.decode,response:s.PlaylistSetBasePermissionResponse.decode},GetMembers:{request:l.PlaylistMembersRequest.decode,response:c.PlaylistMembersResponse.decode},SubscribeToMembers:{request:l.PlaylistMembersRequest.decode,response:c.PlaylistMembersResponse.decode},SetMemberPermission:{request:u.SetMemberPermissionRequest.decode,response:d.PlaylistSetMemberPermissionResponse.decode},Contains:{request:p.PlaylistContainsRequest.decode,response:p.PlaylistContainsResponse.decode},SetOfflineState:{request:f.PlaylistOfflineRequest.decode,response:f.PlaylistOfflineResponse.decode},Resync:{request:h.SyncRequest.decode,response:m.PlaylistResyncResponse.decode},SetToken:{request:g.PlaylistSetTokenRequest.decode,response:g.PlaylistSetTokenResponse.decode},ClearToken:{request:v.PlaylistClearTokenRequest.decode,response:v.PlaylistClearTokenResponse.decode}}}t.PlaylistServiceClient=y},94314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistDataServiceClient=void 0;const o=n(33892),i=n(4206),r=n(24766),a=n(73706),s=n(89818);class l{transport;options;constructor(e,t={}){this.transport=e,this.options=t}contains(e){const t="spotify.playlist_esperanto.proto.RootlistDataService",n="Contains",a=i.ContainsRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.RootlistContainsResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}get(e){const t="spotify.playlist_esperanto.proto.RootlistDataService",n="Get",i=a.RootlistGetRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=a.RootlistGetResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}subscribe(e,t){const n="spotify.playlist_esperanto.proto.RootlistDataService",i="Subscribe",r=a.RootlistGetRequest.encode(e).finish();return this.options.onRequest?.(e,n,i,"stream"),this.transport.callStream({service:n,method:i,payload:r},(e=>{const r=a.RootlistGetResponse.decode(o.Reader.create(e));this.options.onResponse?.(r,n,i,"stream"),t(r)}))}getOfflinePlaylistsContainingItem(e){const t="spotify.playlist_esperanto.proto.RootlistDataService",n="GetOfflinePlaylistsContainingItem",i=s.GetOfflinePlaylistsContainingItemRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.GetOfflinePlaylistsContainingItemResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.playlist_esperanto.proto.RootlistDataService";static DECODERS={Contains:{request:i.ContainsRequest.decode,response:r.RootlistContainsResponse.decode},Get:{request:a.RootlistGetRequest.decode,response:a.RootlistGetResponse.decode},Subscribe:{request:a.RootlistGetRequest.decode,response:a.RootlistGetResponse.decode},GetOfflinePlaylistsContainingItem:{request:s.GetOfflinePlaylistsContainingItemRequest.decode,response:s.GetOfflinePlaylistsContainingItemResponse.decode}}}t.RootlistDataServiceClient=l},54292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistModificationServiceClient=void 0;const o=n(33892),i=n(64011);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}modify(e){const t="spotify.playlist_esperanto.proto.RootlistModificationService",n="Modify",r=i.RootlistModificationRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.RootlistModificationResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}static SERVICE_ID="spotify.playlist_esperanto.proto.RootlistModificationService";static DECODERS={Modify:{request:i.RootlistModificationRequest.decode,response:i.RootlistModificationResponse.decode}}}t.RootlistModificationServiceClient=r},95869:(e,t,n)=>{"use strict";t.a5=t.LM=t.IB=t.lc=t.MR=t.p1=void 0,t.$r=void 0;var o=n(46528);Object.defineProperty(t,"p1",{enumerable:!0,get:function(){return o.PlaylistServiceClient}});var i=n(12871);Object.defineProperty(t,"MR",{enumerable:!0,get:function(){return i.PlaylistDataServiceClient}});var r=n(49560);var a=n(94314);Object.defineProperty(t,"lc",{enumerable:!0,get:function(){return a.RootlistDataServiceClient}});var s=n(54292);Object.defineProperty(t,"IB",{enumerable:!0,get:function(){return s.RootlistModificationServiceClient}});var l=n(32781);var c=n(38931);var u=n(46615);var d=n(13741);var p=n(45295);var f=n(84622);var h=n(29940);var m=n(37861);var g=n(12645);var v=n(81085);var y=n(34992);var _=n(42430);var b=n(73820);var S=n(33733);var E=n(19801);Object.defineProperty(t,"LM",{enumerable:!0,get:function(){return E.PlaylistDecorationPolicy}});var A=n(23557);var T=n(90802);Object.defineProperty(t,"a5",{enumerable:!0,get:function(){return T.PlaylistRequestDecorationPolicy}});var P=n(66028);var O=n(36393);var C=n(52631);var k=n(23630);var R=n(12379);var L=n(94930);var I=n(90923);var N=n(33632);var w=n(65373);var D=n(17081);var M=n(44031);var x=n(9265);var F=n(174);var U=n(53872);var B=n(58779);var V=n(16056);var G=n(59011);var J=n(71119);Object.defineProperty(t,"$r",{enumerable:!0,get:function(){return J.PlaylistQuery}});var j=n(64366);var H=n(36912);var K=n(64270);var Y=n(64937);var W=n(28848);var z=n(39081);var q=n(87445);var X=n(22660);var Z=n(73706);var Q=n(84420);var $=n(27567);var ee=n(27567);var te=n(27567);var ne=n(4206);var oe=n(89818);var ie=n(64011)},32781:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeCollectionState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeCollectionState={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isNew:!1,isInListenLater:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isNew=n.bool();break;case 3:r.isInListenLater=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!r(e.isFollowingShow)&&Boolean(e.isFollowingShow),isNew:!!r(e.isNew)&&Boolean(e.isNew),isInListenLater:!!r(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){const t={isFollowingShow:!1,isNew:!1,isInListenLater:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isNew=e.isNew??!1,t.isInListenLater=e.isInListenLater??!1,t}}},4206:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContainsResponse=t.ContainsRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto",t.ContainsRequest={encode(e,t=i.default.Writer.create()){for(const n of e.items)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={items:[]};for(;n.pos>>3==1)r.items.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({items:Array.isArray(e?.items)?e.items.map((e=>String(e))):[]}),toJSON(e){const t={};return e.items?t.items=e.items.map((e=>e)):t.items=[],t},fromPartial(e){const t={items:[]};return t.items=e.items?.map((e=>e))||[],t}},t.ContainsResponse={encode(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={found:[]};for(;n.pos>>3==1)if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({found:Array.isArray(e?.found)?e.found.map((e=>Boolean(e))):[]}),toJSON(e){const t={};return e.found?t.found=e.found.map((e=>e)):t.found=[],t},fromPartial(e){const t={found:[]};return t.found=e.found?.map((e=>e))||[],t}}},2866:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(99829),a=n(19190);function s(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.Context={encode(e,n=i.default.Writer.create()){for(const t of e.pages)r.ContextPage.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.Context_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.uri&&n.uint32(26).string(e.uri),""!==e.url&&n.uint32(34).string(e.url),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),void 0!==e.restrictions&&a.Restrictions.encode(e.restrictions,n.uint32(50).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let s=void 0===n?o.len:o.pos+n;const l={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};for(;o.pos>>3){case 1:l.pages.push(r.ContextPage.decode(o,o.uint32()));break;case 2:const n=t.Context_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(l.metadata[n.key]=n.value);break;case 3:l.uri=o.string();break;case 4:l.url=o.string();break;case 5:l.isLoading=o.bool();break;case 6:l.restrictions=a.Restrictions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return l},fromJSON(e){return{pages:Array.isArray(e?.pages)?e.pages.map((e=>r.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:s(e.uri)?String(e.uri):"",url:s(e.url)?String(e.url):"",isLoading:!!s(e.isLoading)&&Boolean(e.isLoading),restrictions:s(e.restrictions)?a.Restrictions.fromJSON(e.restrictions):void 0};var t},toJSON(e){const t={};return e.pages?t.pages=e.pages.map((e=>e?r.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.isLoading&&(t.isLoading=e.isLoading),void 0!==e.restrictions&&(t.restrictions=e.restrictions?a.Restrictions.toJSON(e.restrictions):void 0),t},fromPartial(e){const t={pages:[],metadata:{},uri:"",url:"",isLoading:!1,restrictions:void 0};return t.pages=e.pages?.map((e=>r.ContextPage.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.uri=e.uri??"",t.url=e.url??"",t.isLoading=e.isLoading??!1,t.restrictions=void 0!==e.restrictions&&null!==e.restrictions?a.Restrictions.fromPartial(e.restrictions):void 0,t}},t.Context_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},99829:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(48304);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPage={encode(e,n=i.default.Writer.create()){for(const t of e.tracks)r.ContextTrack.encode(t,n.uint32(10).fork()).ldelim();return Object.entries(e.metadata).forEach((([e,o])=>{t.ContextPage_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),""!==e.pageUrl&&n.uint32(26).string(e.pageUrl),""!==e.nextPageUrl&&n.uint32(34).string(e.nextPageUrl),!0===e.isLoading&&n.uint32(40).bool(e.isLoading),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};for(;o.pos>>3){case 1:s.tracks.push(r.ContextTrack.decode(o,o.uint32()));break;case 2:const n=t.ContextPage_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;case 3:s.pageUrl=o.string();break;case 4:s.nextPageUrl=o.string();break;case 5:s.isLoading=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON(e){return{tracks:Array.isArray(e?.tracks)?e.tracks.map((e=>r.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:a(e.pageUrl)?String(e.pageUrl):"",nextPageUrl:a(e.nextPageUrl)?String(e.nextPageUrl):"",isLoading:!!a(e.isLoading)&&Boolean(e.isLoading)};var t},toJSON(e){const t={};return e.tracks?t.tracks=e.tracks.map((e=>e?r.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.isLoading&&(t.isLoading=e.isLoading),t},fromPartial(e){const t={tracks:[],metadata:{},pageUrl:"",nextPageUrl:"",isLoading:!1};return t.tracks=e.tracks?.map((e=>r.ContextTrack.fromPartial(e)))||[],t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t.pageUrl=e.pageUrl??"",t.nextPageUrl=e.nextPageUrl??"",t.isLoading=e.isLoading??!1,t}},t.ContextPage_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},98950:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(70947);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextPlayerOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};for(;n.pos>>3){case 1:r.shufflingContext=n.bool();break;case 2:r.repeatingContext=n.bool();break;case 3:r.repeatingTrack=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({shufflingContext:!!a(e.shufflingContext)&&Boolean(e.shufflingContext),repeatingContext:!!a(e.repeatingContext)&&Boolean(e.repeatingContext),repeatingTrack:!!a(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){const t={shufflingContext:!1,repeatingContext:!1,repeatingTrack:!1};return t.shufflingContext=e.shufflingContext??!1,t.repeatingContext=e.repeatingContext??!1,t.repeatingTrack=e.repeatingTrack??!1,t}},t.ContextPlayerOptionOverrides={encode:(e,t=i.default.Writer.create())=>(void 0!==e.shufflingContext&&r.OptionalBoolean.encode(e.shufflingContext,t.uint32(10).fork()).ldelim(),void 0!==e.repeatingContext&&r.OptionalBoolean.encode(e.repeatingContext,t.uint32(18).fork()).ldelim(),void 0!==e.repeatingTrack&&r.OptionalBoolean.encode(e.repeatingTrack,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={shufflingContext:void 0,repeatingContext:void 0,repeatingTrack:void 0};for(;n.pos>>3){case 1:a.shufflingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 2:a.repeatingContext=r.OptionalBoolean.decode(n,n.uint32());break;case 3:a.repeatingTrack=r.OptionalBoolean.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({shufflingContext:a(e.shufflingContext)?r.OptionalBoolean.fromJSON(e.shufflingContext):void 0,repeatingContext:a(e.repeatingContext)?r.OptionalBoolean.fromJSON(e.repeatingContext):void 0,repeatingTrack:a(e.repeatingTrack)?r.OptionalBoolean.fromJSON(e.repeatingTrack):void 0}),toJSON(e){const t={};return void 0!==e.shufflingContext&&(t.shufflingContext=e.shufflingContext?r.OptionalBoolean.toJSON(e.shufflingContext):void 0),void 0!==e.repeatingContext&&(t.repeatingContext=e.repeatingContext?r.OptionalBoolean.toJSON(e.repeatingContext):void 0),void 0!==e.repeatingTrack&&(t.repeatingTrack=e.repeatingTrack?r.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?r.OptionalBoolean.fromPartial(e.shufflingContext):void 0,t.repeatingContext=void 0!==e.repeatingContext&&null!==e.repeatingContext?r.OptionalBoolean.fromPartial(e.repeatingContext):void 0,t.repeatingTrack=void 0!==e.repeatingTrack&&null!==e.repeatingTrack?r.OptionalBoolean.fromPartial(e.repeatingTrack):void 0,t}}},48304:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.ContextTrack={encode:(e,n=i.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,o])=>{t.ContextTrack_MetadataEntry.encode({key:e,value:o},n.uint32(26).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",uid:"",metadata:{}};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.uid=o.string();break;case 3:const n=t.ContextTrack_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(a.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return a},fromJSON(e){return{uri:r(e.uri)?String(e.uri):"",uid:r(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){const t={uri:"",uid:"",metadata:{}};return t.uri=e.uri??"",t.uid=e.uid??"",t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.ContextTrack_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:r(e.key)?String(e.key):"",value:r(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},84314:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(70947);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.LoggingParams={encode(e,t=i.default.Writer.create()){void 0!==e.commandInitiatedTime&&r.OptionalInt64.encode(e.commandInitiatedTime,t.uint32(10).fork()).ldelim(),void 0!==e.commandReceivedTime&&r.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};for(;n.pos>>3){case 1:a.commandInitiatedTime=r.OptionalInt64.decode(n,n.uint32());break;case 2:a.commandReceivedTime=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.pageInstanceIds.push(n.string());break;case 4:a.interactionIds.push(n.string());break;case 5:a.deviceIdentifier=n.string();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({commandInitiatedTime:a(e.commandInitiatedTime)?r.OptionalInt64.fromJSON(e.commandInitiatedTime):void 0,commandReceivedTime:a(e.commandReceivedTime)?r.OptionalInt64.fromJSON(e.commandReceivedTime):void 0,pageInstanceIds:Array.isArray(e?.pageInstanceIds)?e.pageInstanceIds.map((e=>String(e))):[],interactionIds:Array.isArray(e?.interactionIds)?e.interactionIds.map((e=>String(e))):[],deviceIdentifier:a(e.deviceIdentifier)?String(e.deviceIdentifier):""}),toJSON(e){const t={};return void 0!==e.commandInitiatedTime&&(t.commandInitiatedTime=e.commandInitiatedTime?r.OptionalInt64.toJSON(e.commandInitiatedTime):void 0),void 0!==e.commandReceivedTime&&(t.commandReceivedTime=e.commandReceivedTime?r.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){const t={commandInitiatedTime:void 0,commandReceivedTime:void 0,pageInstanceIds:[],interactionIds:[],deviceIdentifier:""};return t.commandInitiatedTime=void 0!==e.commandInitiatedTime&&null!==e.commandInitiatedTime?r.OptionalInt64.fromPartial(e.commandInitiatedTime):void 0,t.commandReceivedTime=void 0!==e.commandReceivedTime&&null!==e.commandReceivedTime?r.OptionalInt64.fromPartial(e.commandReceivedTime):void 0,t.pageInstanceIds=e.pageInstanceIds?.map((e=>e))||[],t.interactionIds=e.interactionIds?.map((e=>e))||[],t.deviceIdentifier=e.deviceIdentifier??"",t}}},70947:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.OptionalInt64={encode:(e,t=r.default.Writer.create())=>("0"!==e.value&&t.uint32(8).int64(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:"0"};return t.value=e.value??"0",t}},t.OptionalDouble={encode:(e,t=r.default.Writer.create())=>(0!==e.value&&t.uint32(9).double(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:0};return t.value=e.value??0,t}},t.OptionalBoolean={encode:(e,t=r.default.Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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){const t={value:!1};return t.value=e.value??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},25259:function(e,t,n){"use strict";var o=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=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"INTERACTIVE":return r.INTERACTIVE;case 1:case"REMOTE_TRANSFER":return r.REMOTE_TRANSFER;case 2:case"LICENSE_CHANGE":return r.LICENSE_CHANGE;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.INTERACTIVE:return"INTERACTIVE";case r.REMOTE_TRANSFER:return"REMOTE_TRANSFER";case r.LICENSE_CHANGE:return"LICENSE_CHANGE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"REPLACE":return a.REPLACE;case 1:case"ENQUEUE":return a.ENQUEUE;case 2:case"PUSH":return a.PUSH;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.REPLACE:return"REPLACE";case a.ENQUEUE:return"ENQUEUE";case a.PUSH:return"PUSH";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"IMMEDIATELY":return s.IMMEDIATELY;case 1:case"ADVANCED_PAST_TRACK":return s.ADVANCED_PAST_TRACK;case 2:case"ADVANCED_PAST_CONTEXT":return s.ADVANCED_PAST_CONTEXT;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.IMMEDIATELY:return"IMMEDIATELY";case s.ADVANCED_PAST_TRACK:return"ADVANCED_PAST_TRACK";case s.ADVANCED_PAST_CONTEXT:return"ADVANCED_PAST_CONTEXT";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(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"}(r=t.PlayOptions_Reason||(t.PlayOptions_Reason={})),t.playOptions_ReasonFromJSON=l,t.playOptions_ReasonToJSON=c,function(e){e[e.REPLACE=0]="REPLACE",e[e.ENQUEUE=1]="ENQUEUE",e[e.PUSH=2]="PUSH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlayOptions_Operation||(t.PlayOptions_Operation={})),t.playOptions_OperationFromJSON=u,t.playOptions_OperationToJSON=d,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"}(s=t.PlayOptions_Trigger||(t.PlayOptions_Trigger={})),t.playOptions_TriggerFromJSON=p,t.playOptions_TriggerToJSON=f,t.PlayOptions={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={reason:0,operation:0,trigger:0};for(;n.pos>>3){case 1:r.reason=n.int32();break;case 2:r.operation=n.int32();break;case 3:r.trigger=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({reason:h(e.reason)?l(e.reason):0,operation:h(e.operation)?u(e.operation):0,trigger:h(e.trigger)?p(e.trigger):0}),toJSON(e){const t={};return void 0!==e.reason&&(t.reason=c(e.reason)),void 0!==e.operation&&(t.operation=d(e.operation)),void 0!==e.trigger&&(t.trigger=f(e.trigger)),t},fromPartial(e){const t={reason:0,operation:0,trigger:0};return t.reason=e.reason??0,t.operation=e.operation??0,t.trigger=e.trigger??0,t}}},39016:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.PlayOrigin={encode(e,t=i.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""!==e.restrictionIdentifier&&t.uint32(66).string(e.restrictionIdentifier),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};for(;n.pos>>3){case 1:r.featureIdentifier=n.string();break;case 2:r.featureVersion=n.string();break;case 3:r.viewUri=n.string();break;case 4:r.externalReferrer=n.string();break;case 5:r.referrerIdentifier=n.string();break;case 6:r.deviceIdentifier=n.string();break;case 7:r.featureClasses.push(n.string());break;case 8:r.restrictionIdentifier=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({featureIdentifier:r(e.featureIdentifier)?String(e.featureIdentifier):"",featureVersion:r(e.featureVersion)?String(e.featureVersion):"",viewUri:r(e.viewUri)?String(e.viewUri):"",externalReferrer:r(e.externalReferrer)?String(e.externalReferrer):"",referrerIdentifier:r(e.referrerIdentifier)?String(e.referrerIdentifier):"",deviceIdentifier:r(e.deviceIdentifier)?String(e.deviceIdentifier):"",featureClasses:Array.isArray(e?.featureClasses)?e.featureClasses.map((e=>String(e))):[],restrictionIdentifier:r(e.restrictionIdentifier)?String(e.restrictionIdentifier):""}),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=[],void 0!==e.restrictionIdentifier&&(t.restrictionIdentifier=e.restrictionIdentifier),t},fromPartial(e){const t={featureIdentifier:"",featureVersion:"",viewUri:"",externalReferrer:"",referrerIdentifier:"",deviceIdentifier:"",featureClasses:[],restrictionIdentifier:""};return t.featureIdentifier=e.featureIdentifier??"",t.featureVersion=e.featureVersion??"",t.viewUri=e.viewUri??"",t.externalReferrer=e.externalReferrer??"",t.referrerIdentifier=e.referrerIdentifier??"",t.deviceIdentifier=e.deviceIdentifier??"",t.featureClasses=e.featureClasses?.map((e=>e))||[],t.restrictionIdentifier=e.restrictionIdentifier??"",t}}},41293:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(98950),a=n(70947),s=n(72479);var l,c;function u(e){switch(e){case 0:case"NONE":return l.NONE;case 1:case"MEDIA":return l.MEDIA;default:return l.UNRECOGNIZED}}function d(e){switch(e){case l.NONE:return"NONE";case l.MEDIA:return"MEDIA";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"DEFAULT":return c.DEFAULT;case 1:case"ALARM":return c.ALARM;default:return c.UNRECOGNIZED}}function f(e){switch(e){case c.DEFAULT:return"DEFAULT";case c.ALARM:return"ALARM";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(){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"}(l=t.PreparePlayOptions_PrefetchLevel||(t.PreparePlayOptions_PrefetchLevel={})),t.preparePlayOptions_PrefetchLevelFromJSON=u,t.preparePlayOptions_PrefetchLevelToJSON=d,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ALARM=1]="ALARM",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.PreparePlayOptions_AudioStream||(t.PreparePlayOptions_AudioStream={})),t.preparePlayOptions_AudioStreamFromJSON=p,t.preparePlayOptions_AudioStreamToJSON=f,t.PreparePlayOptions={encode(e,n=i.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&&s.SkipToTrack.encode(e.skipTo,n.uint32(26).fork()).ldelim(),void 0!==e.seekTo&&a.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&&r.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,o])=>{t.PreparePlayOptions_ConfigurationOverrideEntry.encode({key:e,value:o},n.uint32(106).fork()).ldelim()})),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c=h();for(;o.pos>>3){case 1:c.playbackId=o.bytes();break;case 2:c.alwaysPlaySomething=o.bool();break;case 3:c.skipTo=s.SkipToTrack.decode(o,o.uint32());break;case 4:c.seekTo=a.OptionalInt64.decode(o,o.uint32());break;case 5:c.initiallyPaused=o.bool();break;case 6:c.systemInitiated=o.bool();break;case 7:c.playerOptionsOverride=r.ContextPlayerOptionOverrides.decode(o,o.uint32());break;case 8:c.suppressions.push(o.string());break;case 9:c.prefetchLevel=o.int32();break;case 10:c.audioStream=o.int32();break;case 11:c.sessionId=o.string();break;case 12:c.license=o.string();break;case 13:const n=t.PreparePlayOptions_ConfigurationOverrideEntry.decode(o,o.uint32());void 0!==n.value&&(c.configurationOverride[n.key]=n.value);break;default:o.skipType(7&e)}}return c},fromJSON(e){return{playbackId:v(e.playbackId)?g(e.playbackId):new Uint8Array,alwaysPlaySomething:!!v(e.alwaysPlaySomething)&&Boolean(e.alwaysPlaySomething),skipTo:v(e.skipTo)?s.SkipToTrack.fromJSON(e.skipTo):void 0,seekTo:v(e.seekTo)?a.OptionalInt64.fromJSON(e.seekTo):void 0,initiallyPaused:!!v(e.initiallyPaused)&&Boolean(e.initiallyPaused),systemInitiated:!!v(e.systemInitiated)&&Boolean(e.systemInitiated),playerOptionsOverride:v(e.playerOptionsOverride)?r.ContextPlayerOptionOverrides.fromJSON(e.playerOptionsOverride):void 0,suppressions:Array.isArray(e?.suppressions)?e.suppressions.map((e=>String(e))):[],prefetchLevel:v(e.prefetchLevel)?u(e.prefetchLevel):0,audioStream:v(e.audioStream)?p(e.audioStream):0,sessionId:v(e.sessionId)?String(e.sessionId):"",license:v(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){if(m.Buffer)return m.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),m.btoa(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?s.SkipToTrack.toJSON(e.skipTo):void 0),void 0!==e.seekTo&&(t.seekTo=e.seekTo?a.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?r.ContextPlayerOptionOverrides.toJSON(e.playerOptionsOverride):void 0),e.suppressions?t.suppressions=e.suppressions.map((e=>e)):t.suppressions=[],void 0!==e.prefetchLevel&&(t.prefetchLevel=d(e.prefetchLevel)),void 0!==e.audioStream&&(t.audioStream=f(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){const t=h();return t.playbackId=e.playbackId??new Uint8Array,t.alwaysPlaySomething=e.alwaysPlaySomething??!1,t.skipTo=void 0!==e.skipTo&&null!==e.skipTo?s.SkipToTrack.fromPartial(e.skipTo):void 0,t.seekTo=void 0!==e.seekTo&&null!==e.seekTo?a.OptionalInt64.fromPartial(e.seekTo):void 0,t.initiallyPaused=e.initiallyPaused??!1,t.systemInitiated=e.systemInitiated??!1,t.playerOptionsOverride=void 0!==e.playerOptionsOverride&&null!==e.playerOptionsOverride?r.ContextPlayerOptionOverrides.fromPartial(e.playerOptionsOverride):void 0,t.suppressions=e.suppressions?.map((e=>e))||[],t.prefetchLevel=e.prefetchLevel??0,t.audioStream=e.audioStream??0,t.sessionId=e.sessionId??"",t.license=e.license??"",t.configurationOverride=Object.entries(e.configurationOverride??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PreparePlayOptions_ConfigurationOverrideEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({key:v(e.key)?String(e.key):"",value:v(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};var m=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 g(e){if(m.Buffer)return Uint8Array.from(m.Buffer.from(e,"base64"));{const t=m.atob(e),n=new Uint8Array(t.length);for(let e=0;e>>3){case 1:r.disallowPausingReasons.push(n.string());break;case 2:r.disallowResumingReasons.push(n.string());break;case 3:r.disallowSeekingReasons.push(n.string());break;case 4:r.disallowPeekingPrevReasons.push(n.string());break;case 5:r.disallowPeekingNextReasons.push(n.string());break;case 6:r.disallowSkippingPrevReasons.push(n.string());break;case 7:r.disallowSkippingNextReasons.push(n.string());break;case 8:r.disallowTogglingRepeatContextReasons.push(n.string());break;case 9:r.disallowTogglingRepeatTrackReasons.push(n.string());break;case 10:r.disallowTogglingShuffleReasons.push(n.string());break;case 11:r.disallowSetQueueReasons.push(n.string());break;case 12:r.disallowInterruptingPlaybackReasons.push(n.string());break;case 13:r.disallowTransferringPlaybackReasons.push(n.string());break;case 14:r.disallowRemoteControlReasons.push(n.string());break;case 15:r.disallowInsertingIntoNextTracksReasons.push(n.string());break;case 16:r.disallowInsertingIntoContextTracksReasons.push(n.string());break;case 17:r.disallowReorderingInNextTracksReasons.push(n.string());break;case 18:r.disallowReorderingInContextTracksReasons.push(n.string());break;case 19:r.disallowRemovingFromNextTracksReasons.push(n.string());break;case 20:r.disallowRemovingFromContextTracksReasons.push(n.string());break;case 21:r.disallowUpdatingContextReasons.push(n.string());break;case 22:r.disallowAddToQueueReasons.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({disallowPausingReasons:Array.isArray(e?.disallowPausingReasons)?e.disallowPausingReasons.map((e=>String(e))):[],disallowResumingReasons:Array.isArray(e?.disallowResumingReasons)?e.disallowResumingReasons.map((e=>String(e))):[],disallowSeekingReasons:Array.isArray(e?.disallowSeekingReasons)?e.disallowSeekingReasons.map((e=>String(e))):[],disallowPeekingPrevReasons:Array.isArray(e?.disallowPeekingPrevReasons)?e.disallowPeekingPrevReasons.map((e=>String(e))):[],disallowPeekingNextReasons:Array.isArray(e?.disallowPeekingNextReasons)?e.disallowPeekingNextReasons.map((e=>String(e))):[],disallowSkippingPrevReasons:Array.isArray(e?.disallowSkippingPrevReasons)?e.disallowSkippingPrevReasons.map((e=>String(e))):[],disallowSkippingNextReasons:Array.isArray(e?.disallowSkippingNextReasons)?e.disallowSkippingNextReasons.map((e=>String(e))):[],disallowTogglingRepeatContextReasons:Array.isArray(e?.disallowTogglingRepeatContextReasons)?e.disallowTogglingRepeatContextReasons.map((e=>String(e))):[],disallowTogglingRepeatTrackReasons:Array.isArray(e?.disallowTogglingRepeatTrackReasons)?e.disallowTogglingRepeatTrackReasons.map((e=>String(e))):[],disallowTogglingShuffleReasons:Array.isArray(e?.disallowTogglingShuffleReasons)?e.disallowTogglingShuffleReasons.map((e=>String(e))):[],disallowSetQueueReasons:Array.isArray(e?.disallowSetQueueReasons)?e.disallowSetQueueReasons.map((e=>String(e))):[],disallowInterruptingPlaybackReasons:Array.isArray(e?.disallowInterruptingPlaybackReasons)?e.disallowInterruptingPlaybackReasons.map((e=>String(e))):[],disallowTransferringPlaybackReasons:Array.isArray(e?.disallowTransferringPlaybackReasons)?e.disallowTransferringPlaybackReasons.map((e=>String(e))):[],disallowRemoteControlReasons:Array.isArray(e?.disallowRemoteControlReasons)?e.disallowRemoteControlReasons.map((e=>String(e))):[],disallowInsertingIntoNextTracksReasons:Array.isArray(e?.disallowInsertingIntoNextTracksReasons)?e.disallowInsertingIntoNextTracksReasons.map((e=>String(e))):[],disallowInsertingIntoContextTracksReasons:Array.isArray(e?.disallowInsertingIntoContextTracksReasons)?e.disallowInsertingIntoContextTracksReasons.map((e=>String(e))):[],disallowReorderingInNextTracksReasons:Array.isArray(e?.disallowReorderingInNextTracksReasons)?e.disallowReorderingInNextTracksReasons.map((e=>String(e))):[],disallowReorderingInContextTracksReasons:Array.isArray(e?.disallowReorderingInContextTracksReasons)?e.disallowReorderingInContextTracksReasons.map((e=>String(e))):[],disallowRemovingFromNextTracksReasons:Array.isArray(e?.disallowRemovingFromNextTracksReasons)?e.disallowRemovingFromNextTracksReasons.map((e=>String(e))):[],disallowRemovingFromContextTracksReasons:Array.isArray(e?.disallowRemovingFromContextTracksReasons)?e.disallowRemovingFromContextTracksReasons.map((e=>String(e))):[],disallowUpdatingContextReasons:Array.isArray(e?.disallowUpdatingContextReasons)?e.disallowUpdatingContextReasons.map((e=>String(e))):[],disallowAddToQueueReasons:Array.isArray(e?.disallowAddToQueueReasons)?e.disallowAddToQueueReasons.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=[],e.disallowAddToQueueReasons?t.disallowAddToQueueReasons=e.disallowAddToQueueReasons.map((e=>e)):t.disallowAddToQueueReasons=[],t},fromPartial(e){const t={disallowPausingReasons:[],disallowResumingReasons:[],disallowSeekingReasons:[],disallowPeekingPrevReasons:[],disallowPeekingNextReasons:[],disallowSkippingPrevReasons:[],disallowSkippingNextReasons:[],disallowTogglingRepeatContextReasons:[],disallowTogglingRepeatTrackReasons:[],disallowTogglingShuffleReasons:[],disallowSetQueueReasons:[],disallowInterruptingPlaybackReasons:[],disallowTransferringPlaybackReasons:[],disallowRemoteControlReasons:[],disallowInsertingIntoNextTracksReasons:[],disallowInsertingIntoContextTracksReasons:[],disallowReorderingInNextTracksReasons:[],disallowReorderingInContextTracksReasons:[],disallowRemovingFromNextTracksReasons:[],disallowRemovingFromContextTracksReasons:[],disallowUpdatingContextReasons:[],disallowAddToQueueReasons:[]};return t.disallowPausingReasons=e.disallowPausingReasons?.map((e=>e))||[],t.disallowResumingReasons=e.disallowResumingReasons?.map((e=>e))||[],t.disallowSeekingReasons=e.disallowSeekingReasons?.map((e=>e))||[],t.disallowPeekingPrevReasons=e.disallowPeekingPrevReasons?.map((e=>e))||[],t.disallowPeekingNextReasons=e.disallowPeekingNextReasons?.map((e=>e))||[],t.disallowSkippingPrevReasons=e.disallowSkippingPrevReasons?.map((e=>e))||[],t.disallowSkippingNextReasons=e.disallowSkippingNextReasons?.map((e=>e))||[],t.disallowTogglingRepeatContextReasons=e.disallowTogglingRepeatContextReasons?.map((e=>e))||[],t.disallowTogglingRepeatTrackReasons=e.disallowTogglingRepeatTrackReasons?.map((e=>e))||[],t.disallowTogglingShuffleReasons=e.disallowTogglingShuffleReasons?.map((e=>e))||[],t.disallowSetQueueReasons=e.disallowSetQueueReasons?.map((e=>e))||[],t.disallowInterruptingPlaybackReasons=e.disallowInterruptingPlaybackReasons?.map((e=>e))||[],t.disallowTransferringPlaybackReasons=e.disallowTransferringPlaybackReasons?.map((e=>e))||[],t.disallowRemoteControlReasons=e.disallowRemoteControlReasons?.map((e=>e))||[],t.disallowInsertingIntoNextTracksReasons=e.disallowInsertingIntoNextTracksReasons?.map((e=>e))||[],t.disallowInsertingIntoContextTracksReasons=e.disallowInsertingIntoContextTracksReasons?.map((e=>e))||[],t.disallowReorderingInNextTracksReasons=e.disallowReorderingInNextTracksReasons?.map((e=>e))||[],t.disallowReorderingInContextTracksReasons=e.disallowReorderingInContextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromNextTracksReasons=e.disallowRemovingFromNextTracksReasons?.map((e=>e))||[],t.disallowRemovingFromContextTracksReasons=e.disallowRemovingFromContextTracksReasons?.map((e=>e))||[],t.disallowUpdatingContextReasons=e.disallowUpdatingContextReasons?.map((e=>e))||[],t.disallowAddToQueueReasons=e.disallowAddToQueueReasons?.map((e=>e))||[],t}}},72479:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(70947);function a(e){return null!=e}t.protobufPackage="spotify.player.esperanto.proto",t.SkipToTrack={encode:(e,t=i.default.Writer.create())=>(""!==e.pageUrl&&t.uint32(10).string(e.pageUrl),void 0!==e.pageIndex&&r.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&&r.OptionalInt64.encode(e.trackIndex,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};for(;n.pos>>3){case 1:a.pageUrl=n.string();break;case 2:a.pageIndex=r.OptionalInt64.decode(n,n.uint32());break;case 3:a.trackUid=n.string();break;case 4:a.trackUri=n.string();break;case 5:a.trackIndex=r.OptionalInt64.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({pageUrl:a(e.pageUrl)?String(e.pageUrl):"",pageIndex:a(e.pageIndex)?r.OptionalInt64.fromJSON(e.pageIndex):void 0,trackUid:a(e.trackUid)?String(e.trackUid):"",trackUri:a(e.trackUri)?String(e.trackUri):"",trackIndex:a(e.trackIndex)?r.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?r.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?r.OptionalInt64.toJSON(e.trackIndex):void 0),t},fromPartial(e){const t={pageUrl:"",pageIndex:void 0,trackUid:"",trackUri:"",trackIndex:void 0};return t.pageUrl=e.pageUrl??"",t.pageIndex=void 0!==e.pageIndex&&null!==e.pageIndex?r.OptionalInt64.fromPartial(e.pageIndex):void 0,t.trackUid=e.trackUid??"",t.trackUri=e.trackUri??"",t.trackIndex=void 0!==e.trackIndex&&null!==e.trackIndex?r.OptionalInt64.fromPartial(e.trackIndex):void 0,t}}},45295:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.extensionKindToJSON=t.extensionKindFromJSON=t.ExtensionKind=t.protobufPackage=void 0,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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",e[e.PLAYLIST_EVALUATION=71]="PLAYLIST_EVALUATION",e[e.LIVESTREAM_ENTITY=73]="LIVESTREAM_ENTITY",e[e.SINGLE_TAP_REACTIONS=74]="SINGLE_TAP_REACTIONS",e[e.USER_COMMENTS=75]="USER_COMMENTS",e[e.CLIENT_RESTRICTIONS=76]="CLIENT_RESTRICTIONS",e[e.PODCAST_GUEST=77]="PODCAST_GUEST",e[e.PLAYABILITY=78]="PLAYABILITY",e[e.COVER_IMAGE=79]="COVER_IMAGE",e[e.SHARE_TRAIT=80]="SHARE_TRAIT",e[e.INSTANCE_SHARING=81]="INSTANCE_SHARING",e[e.ARTIST_TOUR=82]="ARTIST_TOUR",e[e.MUSIC_VIDEO=85]="MUSIC_VIDEO",e[e.LIVE_EVENTS=87]="LIVE_EVENTS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.ExtensionKind||(t.ExtensionKind={})),t.extensionKindFromJSON=function(e){switch(e){case 0:case"UNKNOWN_EXTENSION":return n.UNKNOWN_EXTENSION;case 1:case"CANVAZ":return n.CANVAZ;case 2:case"STORYLINES":return n.STORYLINES;case 3:case"PODCAST_TOPICS":return n.PODCAST_TOPICS;case 4:case"PODCAST_SEGMENTS":return n.PODCAST_SEGMENTS;case 5:case"AUDIO_FILES":return n.AUDIO_FILES;case 6:case"TRACK_DESCRIPTOR":return n.TRACK_DESCRIPTOR;case 8:case"ARTIST_V4":return n.ARTIST_V4;case 9:case"ALBUM_V4":return n.ALBUM_V4;case 10:case"TRACK_V4":return n.TRACK_V4;case 11:case"SHOW_V4":return n.SHOW_V4;case 12:case"EPISODE_V4":return n.EPISODE_V4;case 13:case"PODCAST_HTML_DESCRIPTION":return n.PODCAST_HTML_DESCRIPTION;case 14:case"PODCAST_QUOTES":return n.PODCAST_QUOTES;case 15:case"USER_PROFILE":return n.USER_PROFILE;case 16:case"CANVAS_V1":return n.CANVAS_V1;case 17:case"SHOW_V4_BASE":return n.SHOW_V4_BASE;case 18:case"SHOW_V4_EPISODES_ASSOC":return n.SHOW_V4_EPISODES_ASSOC;case 19:case"TRACK_DESCRIPTOR_SIGNATURES":return n.TRACK_DESCRIPTOR_SIGNATURES;case 20:case"PODCAST_AD_SEGMENTS":return n.PODCAST_AD_SEGMENTS;case 21:case"EPISODE_TRANSCRIPTS":return n.EPISODE_TRANSCRIPTS;case 22:case"PODCAST_SUBSCRIPTIONS":return n.PODCAST_SUBSCRIPTIONS;case 23:case"EXTRACTED_COLOR":return n.EXTRACTED_COLOR;case 24:case"PODCAST_VIRALITY":return n.PODCAST_VIRALITY;case 25:case"IMAGE_SPARKLES_HACK":return n.IMAGE_SPARKLES_HACK;case 26:case"PODCAST_POPULARITY_HACK":return n.PODCAST_POPULARITY_HACK;case 27:case"AUTOMIX_MODE":return n.AUTOMIX_MODE;case 28:case"CUEPOINTS":return n.CUEPOINTS;case 29:case"PODCAST_POLL":return n.PODCAST_POLL;case 30:case"EPISODE_ACCESS":return n.EPISODE_ACCESS;case 31:case"SHOW_ACCESS":return n.SHOW_ACCESS;case 32:case"PODCAST_QNA":return n.PODCAST_QNA;case 33:case"CLIPS":return n.CLIPS;case 36:case"PODCAST_CTA_CARDS":return n.PODCAST_CTA_CARDS;case 37:case"PODCAST_RATING":return n.PODCAST_RATING;case 38:case"DISPLAY_SEGMENTS":return n.DISPLAY_SEGMENTS;case 39:case"GREENROOM":return n.GREENROOM;case 40:case"USER_CREATED":return n.USER_CREATED;case 48:case"CLIENT_CONFIG":return n.CLIENT_CONFIG;case 52:case"AUDIOBOOK_SPECIFICS":return n.AUDIOBOOK_SPECIFICS;case 53:case"EPISODE_RANKING":return n.EPISODE_RANKING;case 54:case"HTML_DESCRIPTION":return n.HTML_DESCRIPTION;case 55:case"CREATOR_CHANNEL":return n.CREATOR_CHANNEL;case 57:case"PLAY_TRAIT":return n.PLAY_TRAIT;case 58:case"CONTENT_WARNING":return n.CONTENT_WARNING;case 59:case"IMAGE_CUE":return n.IMAGE_CUE;case 60:case"STREAM_COUNT":return n.STREAM_COUNT;case 61:case"AUDIO_ATTRIBUTES":return n.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return n.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return n.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return n.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return n.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return n.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return n.LIVE;case 69:case"AD_BREAK_FREE_PODCASTS":return n.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return n.ASSOCIATIONS;case 71:case"PLAYLIST_EVALUATION":return n.PLAYLIST_EVALUATION;case 73:case"LIVESTREAM_ENTITY":return n.LIVESTREAM_ENTITY;case 74:case"SINGLE_TAP_REACTIONS":return n.SINGLE_TAP_REACTIONS;case 75:case"USER_COMMENTS":return n.USER_COMMENTS;case 76:case"CLIENT_RESTRICTIONS":return n.CLIENT_RESTRICTIONS;case 77:case"PODCAST_GUEST":return n.PODCAST_GUEST;case 78:case"PLAYABILITY":return n.PLAYABILITY;case 79:case"COVER_IMAGE":return n.COVER_IMAGE;case 80:case"SHARE_TRAIT":return n.SHARE_TRAIT;case 81:case"INSTANCE_SHARING":return n.INSTANCE_SHARING;case 82:case"ARTIST_TOUR":return n.ARTIST_TOUR;case 85:case"MUSIC_VIDEO":return n.MUSIC_VIDEO;case 87:case"LIVE_EVENTS":return n.LIVE_EVENTS;default:return n.UNRECOGNIZED}},t.extensionKindToJSON=function(e){switch(e){case n.UNKNOWN_EXTENSION:return"UNKNOWN_EXTENSION";case n.CANVAZ:return"CANVAZ";case n.STORYLINES:return"STORYLINES";case n.PODCAST_TOPICS:return"PODCAST_TOPICS";case n.PODCAST_SEGMENTS:return"PODCAST_SEGMENTS";case n.AUDIO_FILES:return"AUDIO_FILES";case n.TRACK_DESCRIPTOR:return"TRACK_DESCRIPTOR";case n.ARTIST_V4:return"ARTIST_V4";case n.ALBUM_V4:return"ALBUM_V4";case n.TRACK_V4:return"TRACK_V4";case n.SHOW_V4:return"SHOW_V4";case n.EPISODE_V4:return"EPISODE_V4";case n.PODCAST_HTML_DESCRIPTION:return"PODCAST_HTML_DESCRIPTION";case n.PODCAST_QUOTES:return"PODCAST_QUOTES";case n.USER_PROFILE:return"USER_PROFILE";case n.CANVAS_V1:return"CANVAS_V1";case n.SHOW_V4_BASE:return"SHOW_V4_BASE";case n.SHOW_V4_EPISODES_ASSOC:return"SHOW_V4_EPISODES_ASSOC";case n.TRACK_DESCRIPTOR_SIGNATURES:return"TRACK_DESCRIPTOR_SIGNATURES";case n.PODCAST_AD_SEGMENTS:return"PODCAST_AD_SEGMENTS";case n.EPISODE_TRANSCRIPTS:return"EPISODE_TRANSCRIPTS";case n.PODCAST_SUBSCRIPTIONS:return"PODCAST_SUBSCRIPTIONS";case n.EXTRACTED_COLOR:return"EXTRACTED_COLOR";case n.PODCAST_VIRALITY:return"PODCAST_VIRALITY";case n.IMAGE_SPARKLES_HACK:return"IMAGE_SPARKLES_HACK";case n.PODCAST_POPULARITY_HACK:return"PODCAST_POPULARITY_HACK";case n.AUTOMIX_MODE:return"AUTOMIX_MODE";case n.CUEPOINTS:return"CUEPOINTS";case n.PODCAST_POLL:return"PODCAST_POLL";case n.EPISODE_ACCESS:return"EPISODE_ACCESS";case n.SHOW_ACCESS:return"SHOW_ACCESS";case n.PODCAST_QNA:return"PODCAST_QNA";case n.CLIPS:return"CLIPS";case n.PODCAST_CTA_CARDS:return"PODCAST_CTA_CARDS";case n.PODCAST_RATING:return"PODCAST_RATING";case n.DISPLAY_SEGMENTS:return"DISPLAY_SEGMENTS";case n.GREENROOM:return"GREENROOM";case n.USER_CREATED:return"USER_CREATED";case n.CLIENT_CONFIG:return"CLIENT_CONFIG";case n.AUDIOBOOK_SPECIFICS:return"AUDIOBOOK_SPECIFICS";case n.EPISODE_RANKING:return"EPISODE_RANKING";case n.HTML_DESCRIPTION:return"HTML_DESCRIPTION";case n.CREATOR_CHANNEL:return"CREATOR_CHANNEL";case n.PLAY_TRAIT:return"PLAY_TRAIT";case n.CONTENT_WARNING:return"CONTENT_WARNING";case n.IMAGE_CUE:return"IMAGE_CUE";case n.STREAM_COUNT:return"STREAM_COUNT";case n.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case n.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case n.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case n.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case n.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case n.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case n.LIVE:return"LIVE";case n.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case n.ASSOCIATIONS:return"ASSOCIATIONS";case n.PLAYLIST_EVALUATION:return"PLAYLIST_EVALUATION";case n.LIVESTREAM_ENTITY:return"LIVESTREAM_ENTITY";case n.SINGLE_TAP_REACTIONS:return"SINGLE_TAP_REACTIONS";case n.USER_COMMENTS:return"USER_COMMENTS";case n.CLIENT_RESTRICTIONS:return"CLIENT_RESTRICTIONS";case n.PODCAST_GUEST:return"PODCAST_GUEST";case n.PLAYABILITY:return"PLAYABILITY";case n.COVER_IMAGE:return"COVER_IMAGE";case n.SHARE_TRAIT:return"SHARE_TRAIT";case n.INSTANCE_SHARING:return"INSTANCE_SHARING";case n.ARTIST_TOUR:return"ARTIST_TOUR";case n.MUSIC_VIDEO:return"MUSIC_VIDEO";case n.LIVE_EVENTS:return"LIVE_EVENTS";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},94930:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersRequest=t.OptionalLimit=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.OptionalLimit={encode:(e,t=i.default.Writer.create())=>(0!==e.value&&t.uint32(8).uint32(e.value),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={value:0};for(;n.pos>>3==1)r.value=n.uint32();else n.skipType(7&e)}return r},fromJSON:e=>({value:r(e.value)?Number(e.value):0}),toJSON(e){const t={};return void 0!==e.value&&(t.value=Math.round(e.value)),t},fromPartial(e){const t={value:0};return t.value=e.value??0,t}},t.PlaylistMembersRequest={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",limit:void 0};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.limit=t.OptionalLimit.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:r(e.uri)?String(e.uri):"",limit:r(e.limit)?t.OptionalLimit.fromJSON(e.limit):void 0}),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={uri:"",limit:void 0};return n.uri=e.uri??"",n.limit=void 0!==e.limit&&null!==e.limit?t.OptionalLimit.fromPartial(e.limit):void 0,n}}},90923:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersResponse=t.Member=t.followStateToJSON=t.followStateFromJSON=t.FollowState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16056),a=n(39081);var s;function l(e){switch(e){case 0:case"NONE":return s.NONE;case 1:case"CAN_BE_FOLLOWED":return s.CAN_BE_FOLLOWED;case 2:case"CAN_BE_UNFOLLOWED":return s.CAN_BE_UNFOLLOWED;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.NONE:return"NONE";case s.CAN_BE_FOLLOWED:return"CAN_BE_FOLLOWED";case s.CAN_BE_UNFOLLOWED:return"CAN_BE_UNFOLLOWED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.NONE=0]="NONE",e[e.CAN_BE_FOLLOWED=1]="CAN_BE_FOLLOWED",e[e.CAN_BE_UNFOLLOWED=2]="CAN_BE_UNFOLLOWED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.FollowState||(t.FollowState={})),t.followStateFromJSON=l,t.followStateToJSON=c,t.Member={encode:(e,t=i.default.Writer.create())=>(void 0!==e.user&&a.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};for(;n.pos>>3){case 1:r.user=a.User.decode(n,n.uint32());break;case 2:r.isOwner=n.bool();break;case 3:r.numTracks=n.uint32();break;case 4:r.numEpisodes=n.uint32();break;case 5:r.followState=n.int32();break;case 6:r.permissionLevel=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({user:u(e.user)?a.User.fromJSON(e.user):void 0,isOwner:!!u(e.isOwner)&&Boolean(e.isOwner),numTracks:u(e.numTracks)?Number(e.numTracks):0,numEpisodes:u(e.numEpisodes)?Number(e.numEpisodes):0,followState:u(e.followState)?l(e.followState):0,permissionLevel:u(e.permissionLevel)?(0,r.permissionLevelFromJSON)(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?a.User.toJSON(e.user):void 0),void 0!==e.isOwner&&(t.isOwner=e.isOwner),void 0!==e.numTracks&&(t.numTracks=Math.round(e.numTracks)),void 0!==e.numEpisodes&&(t.numEpisodes=Math.round(e.numEpisodes)),void 0!==e.followState&&(t.followState=c(e.followState)),void 0!==e.permissionLevel&&(t.permissionLevel=(0,r.permissionLevelToJSON)(e.permissionLevel)),t},fromPartial(e){const t={user:void 0,isOwner:!1,numTracks:0,numEpisodes:0,followState:0,permissionLevel:0};return t.user=void 0!==e.user&&null!==e.user?a.User.fromPartial(e.user):void 0,t.isOwner=e.isOwner??!1,t.numTracks=e.numTracks??0,t.numEpisodes=e.numEpisodes??0,t.followState=e.followState??0,t.permissionLevel=e.permissionLevel??0,t}},t.PlaylistMembersResponse={encode(e,n=i.default.Writer.create()){""!==e.title&&n.uint32(10).string(e.title),0!==e.numTotalMembers&&n.uint32(16).uint32(e.numTotalMembers),void 0!==e.capabilities&&r.Capabilities.encode(e.capabilities,n.uint32(26).fork()).ldelim(),0!==e.basePermissionLevel&&n.uint32(32).int32(e.basePermissionLevel);for(const o of e.members)t.Member.encode(o,n.uint32(42).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};for(;o.pos>>3){case 1:s.title=o.string();break;case 2:s.numTotalMembers=o.uint32();break;case 3:s.capabilities=r.Capabilities.decode(o,o.uint32());break;case 4:s.basePermissionLevel=o.int32();break;case 5:s.members.push(t.Member.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON:e=>({title:u(e.title)?String(e.title):"",numTotalMembers:u(e.numTotalMembers)?Number(e.numTotalMembers):0,capabilities:u(e.capabilities)?r.Capabilities.fromJSON(e.capabilities):void 0,basePermissionLevel:u(e.basePermissionLevel)?(0,r.permissionLevelFromJSON)(e.basePermissionLevel):0,members:Array.isArray(e?.members)?e.members.map((e=>t.Member.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.numTotalMembers&&(n.numTotalMembers=Math.round(e.numTotalMembers)),void 0!==e.capabilities&&(n.capabilities=e.capabilities?r.Capabilities.toJSON(e.capabilities):void 0),void 0!==e.basePermissionLevel&&(n.basePermissionLevel=(0,r.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={title:"",numTotalMembers:0,capabilities:void 0,basePermissionLevel:0,members:[]};return n.title=e.title??"",n.numTotalMembers=e.numTotalMembers??0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?r.Capabilities.fromPartial(e.capabilities):void 0,n.basePermissionLevel=e.basePermissionLevel??0,n.members=e.members?.map((e=>t.Member.fromPartial(e)))||[],n}}},38931:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(13741),s=n(46615);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";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}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={encode:(e,t=r.default.Writer.create())=>(""!==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&&s.ImageGroup.encode(e.covers,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={link:"",name:"",publisher:"",covers:void 0};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=s.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},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)?s.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?s.ImageGroup.toJSON(e.covers):void 0),t},fromPartial(e){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,t}},t.EpisodeMetadata={encode(e,n=r.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&&s.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&&s.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)a.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),!0===e.isPodcastShort&&n.uint32(200).bool(e.isPodcastShort),!0===e.isCurated&&n.uint32(208).bool(e.isCurated),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const l={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,isCurated:!1};for(;o.pos>>3){case 1:l.show=t.EpisodeShowMetadata.decode(o,o.uint32());break;case 2:l.link=o.string();break;case 3:l.name=o.string();break;case 4:l.length=o.uint32();break;case 5:l.covers=s.ImageGroup.decode(o,o.uint32());break;case 6:l.manifestId=o.string();break;case 7:l.description=o.string();break;case 8:l.publishDate=o.int64().toString();break;case 9:l.freezeFrames=s.ImageGroup.decode(o,o.uint32());break;case 10:l.language=o.string();break;case 11:l.available=o.bool();break;case 12:l.mediaTypeEnum=o.int32();break;case 13:l.number=o.int32();break;case 14:l.backgroundable=o.bool();break;case 15:l.previewManifestId=o.string();break;case 16:l.isExplicit=o.bool();break;case 17:l.previewId=o.string();break;case 18:l.episodeType=o.int32();break;case 19:l.isMusicAndTalk=o.bool();break;case 22:l.extension.push(a.Extension.decode(o,o.uint32()));break;case 23:l.is19PlusOnly=o.bool();break;case 24:l.isBookChapter=o.bool();break;case 25:l.isPodcastShort=o.bool();break;case 26:l.isCurated=o.bool();break;default:o.skipType(7&e)}}return l},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)?s.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)?s.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(e?.extension)?e.extension.map((e=>a.Extension.fromJSON(e))):[],is19PlusOnly:!!h(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!h(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!h(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!h(e.isCurated)&&Boolean(e.isCurated)}),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?s.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?s.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?a.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),void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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,isCurated:!1};return n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?s.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?s.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>a.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n.isCurated=e.isCurated??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},13741:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(45295);function a(){return{extensionKind:0,data:new Uint8Array}}t.protobufPackage="spotify.cosmos_util.proto",t.Extension={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r=a();for(;n.pos>>3){case 1:r.extensionKind=n.int32();break;case 2:r.data=n.bytes();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({extensionKind:c(e.extensionKind)?(0,r.extensionKindFromJSON)(e.extensionKind):0,data:c(e.data)?l(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.extensionKind&&(t.extensionKind=(0,r.extensionKindToJSON)(e.extensionKind)),void 0!==e.data&&(t.data=function(e){if(s.Buffer)return s.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),s.btoa(t.join(""))}}(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=a();return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};var s=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 l(e){if(s.Buffer)return Uint8Array.from(s.Buffer.from(e,"base64"));{const t=s.atob(e),n=new Uint8Array(t.length);for(let e=0;e(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};for(;n.pos>>3){case 1:r.standardLink=n.string();break;case 2:r.smallLink=n.string();break;case 3:r.largeLink=n.string();break;case 4:r.xlargeLink=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({standardLink:r(e.standardLink)?String(e.standardLink):"",smallLink:r(e.smallLink)?String(e.smallLink):"",largeLink:r(e.largeLink)?String(e.largeLink):"",xlargeLink:r(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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}}},84622:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(13741),a=n(46615);function s(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackAlbumArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:""};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;default:n.skipType(7&e)}}return r},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){const t={link:"",name:""};return t.link=e.link??"",t.name=e.name??"",t}},t.TrackAlbumMetadata={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={artist:void 0,link:"",name:"",covers:void 0};for(;o.pos>>3){case 1:s.artist=t.TrackAlbumArtistMetadata.decode(o,o.uint32());break;case 2:s.link=o.string();break;case 3:s.name=o.string();break;case 4:s.covers=a.ImageGroup.decode(o,o.uint32());break;default:o.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){const n={artist:void 0,link:"",name:"",covers:void 0};return n.artist=void 0!==e.artist&&null!==e.artist?t.TrackAlbumArtistMetadata.fromPartial(e.artist):void 0,n.link=e.link??"",n.name=e.name??"",n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n}},t.TrackArtistMetadata={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",name:"",portraits:void 0};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.name=n.string();break;case 3:r.portraits=a.ImageGroup.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},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){const t={link:"",name:"",portraits:void 0};return t.link=e.link??"",t.name=e.name??"",t.portraits=void 0!==e.portraits&&null!==e.portraits?a.ImageGroup.fromPartial(e.portraits):void 0,t}},t.TrackDescriptor={encode:(e,t=i.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={name:""};for(;n.pos>>3==1)r.name=n.string();else n.skipType(7&e)}return r},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){const t={name:""};return t.name=e.name??"",t}},t.TrackMetadata={encode(e,n=i.default.Writer.create()){void 0!==e.album&&t.TrackAlbumMetadata.encode(e.album,n.uint32(10).fork()).ldelim();for(const o of e.artist)t.TrackArtistMetadata.encode(o,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 o of e.trackDescriptors)t.TrackDescriptor.encode(o,n.uint32(154).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(162).fork()).ldelim();return!0===e.isCurated&&n.uint32(168).bool(e.isCurated),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={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:[],extension:[],isCurated:!1};for(;o.pos>>3){case 1:s.album=t.TrackAlbumMetadata.decode(o,o.uint32());break;case 2:s.artist.push(t.TrackArtistMetadata.decode(o,o.uint32()));break;case 3:s.link=o.string();break;case 4:s.name=o.string();break;case 5:s.length=o.uint32();break;case 6:s.playable=o.bool();break;case 7:s.discNumber=o.uint32();break;case 8:s.trackNumber=o.uint32();break;case 9:s.isExplicit=o.bool();break;case 10:s.previewId=o.string();break;case 11:s.isLocal=o.bool();break;case 12:s.playableLocalTrack=o.bool();break;case 13:s.hasLyrics=o.bool();break;case 14:s.isPremiumOnly=o.bool();break;case 15:s.locallyPlayable=o.bool();break;case 16:s.playableTrackLink=o.string();break;case 17:s.popularity=o.uint32();break;case 18:s.is19PlusOnly=o.bool();break;case 19:s.trackDescriptors.push(t.TrackDescriptor.decode(o,o.uint32()));break;case 20:s.extension.push(r.Extension.decode(o,o.uint32()));break;case 21:s.isCurated=o.bool();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?t.TrackAlbumMetadata.fromJSON(e.album):void 0,artist:Array.isArray(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(e?.trackDescriptors)?e.trackDescriptors.map((e=>t.TrackDescriptor.fromJSON(e))):[],extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],isCurated:!!s(e.isCurated)&&Boolean(e.isCurated)}),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=[],e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.isCurated&&(n.isCurated=e.isCurated),n},fromPartial(e){const n={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:[],extension:[],isCurated:!1};return n.album=void 0!==e.album&&null!==e.album?t.TrackAlbumMetadata.fromPartial(e.album):void 0,n.artist=e.artist?.map((e=>t.TrackArtistMetadata.fromPartial(e)))||[],n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.playable=e.playable??!1,n.discNumber=e.discNumber??0,n.trackNumber=e.trackNumber??0,n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.isLocal=e.isLocal??!1,n.playableLocalTrack=e.playableLocalTrack??!1,n.hasLyrics=e.hasLyrics??!1,n.isPremiumOnly=e.isPremiumOnly??!1,n.locallyPlayable=e.locallyPlayable??!1,n.playableTrackLink=e.playableTrackLink??"",n.popularity=e.popularity??0,n.is19PlusOnly=e.is19PlusOnly??!1,n.trackDescriptors=e.trackDescriptors?.map((e=>t.TrackDescriptor.fromPartial(e)))||[],n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.isCurated=e.isCurated??!1,n}}},33632:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModificationResponse=t.ModificationRequest_Attributes=t.ModificationRequest=t.listAttributeKindToJSON=t.listAttributeKindFromJSON=t.ListAttributeKind=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"LIST_UNKNOWN":return r.LIST_UNKNOWN;case 1:case"LIST_NAME":return r.LIST_NAME;case 2:case"LIST_DESCRIPTION":return r.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return r.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return r.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return r.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return r.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return r.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return r.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return r.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return r.LIST_PICTURE_SIZE;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.LIST_UNKNOWN:return"LIST_UNKNOWN";case r.LIST_NAME:return"LIST_NAME";case r.LIST_DESCRIPTION:return"LIST_DESCRIPTION";case r.LIST_PICTURE:return"LIST_PICTURE";case r.LIST_COLLABORATIVE:return"LIST_COLLABORATIVE";case r.LIST_PL3_VERSION:return"LIST_PL3_VERSION";case r.LIST_DELETED_BY_OWNER:return"LIST_DELETED_BY_OWNER";case r.LIST_CLIENT_ID:return"LIST_CLIENT_ID";case r.LIST_FORMAT:return"LIST_FORMAT";case r.LIST_FORMAT_ATTRIBUTES:return"LIST_FORMAT_ATTRIBUTES";case r.LIST_PICTURE_SIZE:return"LIST_PICTURE_SIZE";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.ListAttributeKind||(t.ListAttributeKind={})),t.listAttributeKindFromJSON=a,t.listAttributeKindToJSON=s,t.ModificationRequest={encode(e,n=i.default.Writer.create()){""!==e.operation&&n.uint32(10).string(e.operation),""!==e.before&&n.uint32(18).string(e.before),""!==e.after&&n.uint32(26).string(e.after),""!==e.name&&n.uint32(34).string(e.name),!0===e.playlist&&n.uint32(40).bool(e.playlist),void 0!==e.attributes&&t.ModificationRequest_Attributes.encode(e.attributes,n.uint32(50).fork()).ldelim();for(const t of e.uris)n.uint32(58).string(t);for(const t of e.rows)n.uint32(66).string(t);!0===e.contents&&n.uint32(72).bool(e.contents),""!==e.itemId&&n.uint32(82).string(e.itemId),n.uint32(90).fork();for(const t of e.attributesToClear)n.int32(t);return n.ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[]};for(;o.pos>>3){case 1:a.operation=o.string();break;case 2:a.before=o.string();break;case 3:a.after=o.string();break;case 4:a.name=o.string();break;case 5:a.playlist=o.bool();break;case 6:a.attributes=t.ModificationRequest_Attributes.decode(o,o.uint32());break;case 7:a.uris.push(o.string());break;case 8:a.rows.push(o.string());break;case 9:a.contents=o.bool();break;case 10:a.itemId=o.string();break;case 11:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos({operation:l(e.operation)?String(e.operation):"",before:l(e.before)?String(e.before):"",after:l(e.after)?String(e.after):"",name:l(e.name)?String(e.name):"",playlist:!!l(e.playlist)&&Boolean(e.playlist),attributes:l(e.attributes)?t.ModificationRequest_Attributes.fromJSON(e.attributes):void 0,uris:Array.isArray(e?.uris)?e.uris.map((e=>String(e))):[],rows:Array.isArray(e?.rows)?e.rows.map((e=>String(e))):[],contents:!!l(e.contents)&&Boolean(e.contents),itemId:l(e.itemId)?String(e.itemId):"",attributesToClear:Array.isArray(e?.attributesToClear)?e.attributesToClear.map((e=>a(e))):[]}),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),e.attributesToClear?n.attributesToClear=e.attributesToClear.map((e=>s(e))):n.attributesToClear=[],n},fromPartial(e){const n={operation:"",before:"",after:"",name:"",playlist:!1,attributes:void 0,uris:[],rows:[],contents:!1,itemId:"",attributesToClear:[]};return n.operation=e.operation??"",n.before=e.before??"",n.after=e.after??"",n.name=e.name??"",n.playlist=e.playlist??!1,n.attributes=void 0!==e.attributes&&null!==e.attributes?t.ModificationRequest_Attributes.fromPartial(e.attributes):void 0,n.uris=e.uris?.map((e=>e))||[],n.rows=e.rows?.map((e=>e))||[],n.contents=e.contents??!1,n.itemId=e.itemId??"",n.attributesToClear=e.attributesToClear?.map((e=>e))||[],n}},t.ModificationRequest_Attributes={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};for(;n.pos>>3){case 1:r.published=n.bool();break;case 2:r.collaborative=n.bool();break;case 3:r.name=n.string();break;case 4:r.description=n.string();break;case 5:r.imageUri=n.string();break;case 6:r.picture=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({published:!!l(e.published)&&Boolean(e.published),collaborative:!!l(e.collaborative)&&Boolean(e.collaborative),name:l(e.name)?String(e.name):"",description:l(e.description)?String(e.description):"",imageUri:l(e.imageUri)?String(e.imageUri):"",picture:l(e.picture)?String(e.picture):""}),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={published:!1,collaborative:!1,name:"",description:"",imageUri:"",picture:""};return t.published=e.published??!1,t.collaborative=e.collaborative??!1,t.name=e.name??"",t.description=e.description??"",t.imageUri=e.imageUri??"",t.picture=e.picture??"",t}},t.ModificationResponse={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={success:!1,uri:""};for(;n.pos>>3){case 1:r.success=n.bool();break;case 2:r.uri=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({success:!!l(e.success)&&Boolean(e.success),uri:l(e.uri)?String(e.uri):""}),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={success:!1,uri:""};return t.success=e.success??!1,t.uri=e.uri??"",t}}},89818:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetOfflinePlaylistsContainingItemResponse=t.GetOfflinePlaylistsContainingItemRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(35164),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.GetOfflinePlaylistsContainingItemRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.itemUri&&t.uint32(10).string(e.itemUri),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={itemUri:""};for(;n.pos>>3==1)r.itemUri=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({itemUri:s(e.itemUri)?String(e.itemUri):""}),toJSON(e){const t={};return void 0!==e.itemUri&&(t.itemUri=e.itemUri),t},fromPartial(e){const t={itemUri:""};return t.itemUri=e.itemUri??"",t}},t.GetOfflinePlaylistsContainingItemResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.OfflinePlaylistsContainingItemResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.OfflinePlaylistsContainingItemResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.OfflinePlaylistsContainingItemResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.OfflinePlaylistsContainingItemResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.OfflinePlaylistsContainingItemResponse.fromPartial(e.response):void 0,t}}},35164:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfflinePlaylistsContainingItemResponse=t.OfflinePlaylistContainingItem=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.OfflinePlaylistContainingItem={encode:(e,t=i.default.Writer.create())=>(""!==e.playlistLink&&t.uint32(10).string(e.playlistLink),""!==e.playlistName&&t.uint32(18).string(e.playlistName),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistLink:"",playlistName:""};for(;n.pos>>3){case 1:r.playlistLink=n.string();break;case 2:r.playlistName=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistLink:r(e.playlistLink)?String(e.playlistLink):"",playlistName:r(e.playlistName)?String(e.playlistName):""}),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={playlistLink:"",playlistName:""};return t.playlistLink=e.playlistLink??"",t.playlistName=e.playlistName??"",t}},t.OfflinePlaylistsContainingItemResponse={encode(e,n=i.default.Writer.create()){for(const o of e.playlists)t.OfflinePlaylistContainingItem.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={playlists:[]};for(;o.pos>>3==1)a.playlists.push(t.OfflinePlaylistContainingItem.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({playlists:Array.isArray(e?.playlists)?e.playlists.map((e=>t.OfflinePlaylistContainingItem.fromJSON(e))):[]}),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={playlists:[]};return n.playlists=e.playlists?.map((e=>t.OfflinePlaylistContainingItem.fromPartial(e)))||[],n}}},81085:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.onDemandInFreeReasonToJSON=t.onDemandInFreeReasonFromJSON=t.OnDemandInFreeReason=t.protobufPackage=void 0,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"}(n=t.OnDemandInFreeReason||(t.OnDemandInFreeReason={})),t.onDemandInFreeReasonFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NOT_ON_DEMAND":return n.NOT_ON_DEMAND;case 2:case"ON_DEMAND":return n.ON_DEMAND;case 3:case"ON_DEMAND_EPISODES_ONLY":return n.ON_DEMAND_EPISODES_ONLY;default:return n.UNRECOGNIZED}},t.onDemandInFreeReasonToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NOT_ON_DEMAND:return"NOT_ON_DEMAND";case n.ON_DEMAND:return"ON_DEMAND";case n.ON_DEMAND_EPISODES_ONLY:return"ON_DEMAND_EPISODES_ONLY";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},29940:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(37861);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodePlayState={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};for(;n.pos>>3){case 1:r.timeLeft=n.uint32();break;case 2:r.isPlayable=n.bool();break;case 3:r.isPlayed=n.bool();break;case 4:r.lastPlayedAt=n.uint32();break;case 5:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:a(e.timeLeft)?Number(e.timeLeft):0,isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),lastPlayedAt:a(e.lastPlayedAt)?Number(e.lastPlayedAt):0,playabilityRestriction:a(e.playabilityRestriction)?(0,r.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,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={timeLeft:0,isPlayable:!1,isPlayed:!1,lastPlayedAt:0,playabilityRestriction:0};return t.timeLeft=e.timeLeft??0,t.isPlayable=e.isPlayable??!1,t.isPlayed=e.isPlayed??!1,t.lastPlayedAt=e.lastPlayedAt??0,t.playabilityRestriction=e.playabilityRestriction??0,t}}},37861:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playabilityRestrictionToJSON=t.playabilityRestrictionFromJSON=t.PlayabilityRestriction=t.protobufPackage=void 0,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"}(n=t.PlayabilityRestriction||(t.PlayabilityRestriction={})),t.playabilityRestrictionFromJSON=function(e){switch(e){case 0:case"UNKNOWN":return n.UNKNOWN;case 1:case"NO_RESTRICTION":return n.NO_RESTRICTION;case 2:case"EXPLICIT_CONTENT":return n.EXPLICIT_CONTENT;case 3:case"AGE_RESTRICTED":return n.AGE_RESTRICTED;case 4:case"NOT_IN_CATALOGUE":return n.NOT_IN_CATALOGUE;case 5:case"NOT_AVAILABLE_OFFLINE":return n.NOT_AVAILABLE_OFFLINE;default:return n.UNRECOGNIZED}},t.playabilityRestrictionToJSON=function(e){switch(e){case n.UNKNOWN:return"UNKNOWN";case n.NO_RESTRICTION:return"NO_RESTRICTION";case n.EXPLICIT_CONTENT:return"EXPLICIT_CONTENT";case n.AGE_RESTRICTED:return"AGE_RESTRICTED";case n.NOT_IN_CATALOGUE:return"NOT_IN_CATALOGUE";case n.NOT_AVAILABLE_OFFLINE:return"NOT_AVAILABLE_OFFLINE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},12645:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackPlayState=t.protobufPackage=void 0;const i=o(n(33892)),r=n(37861);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackPlayState={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isPlayable:!1,playabilityRestriction:0};for(;n.pos>>3){case 1:r.isPlayable=n.bool();break;case 2:r.playabilityRestriction=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:a(e.playabilityRestriction)?(0,r.playabilityRestrictionFromJSON)(e.playabilityRestriction):0}),toJSON(e){const t={};return void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=(0,r.playabilityRestrictionToJSON)(e.playabilityRestriction)),t},fromPartial(e){const t={isPlayable:!1,playabilityRestriction:0};return t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??0,t}}},76850:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistClearTokenResponse=t.PlaylistClearTokenRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistClearTokenRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:""};for(;n.pos>>3==1)r.uri=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({uri:a(e.uri)?String(e.uri):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),t},fromPartial(e){const t={uri:""};return t.uri=e.uri??"",t}},t.PlaylistClearTokenResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},9265:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistContainsResponse=t.PlaylistContainsRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(4206),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistContainsRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&r.ContainsRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",request:void 0};for(;n.pos>>3){case 1:a.uri=n.string();break;case 2:a.request=r.ContainsRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",request:s(e.request)?r.ContainsRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=e.request?r.ContainsRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?r.ContainsRequest.fromPartial(e.request):void 0,t}},t.PlaylistContainsResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.ContainsResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.ContainsResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.ContainsResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.ContainsResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.ContainsResponse.fromPartial(e.response):void 0,t}}},82440:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistFindResponse=t.ItemUriToRowIds=t.PlaylistFindRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistFindRequest={encode(e,t=i.default.Writer.create()){""!==e.playlistUri&&t.uint32(10).string(e.playlistUri);for(const n of e.itemUris)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUri:"",itemUris:[]};for(;n.pos>>3){case 1:r.playlistUri=n.string();break;case 2:r.itemUris.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistUri:a(e.playlistUri)?String(e.playlistUri):"",itemUris:Array.isArray(e?.itemUris)?e.itemUris.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.playlistUri&&(t.playlistUri=e.playlistUri),e.itemUris?t.itemUris=e.itemUris.map((e=>e)):t.itemUris=[],t},fromPartial(e){const t={playlistUri:"",itemUris:[]};return t.playlistUri=e.playlistUri??"",t.itemUris=e.itemUris?.map((e=>e))||[],t}},t.ItemUriToRowIds={encode(e,t=i.default.Writer.create()){""!==e.uri&&t.uint32(10).string(e.uri);for(const n of e.rowIds)t.uint32(18).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",rowIds:[]};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.rowIds.push(n.string());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",rowIds:Array.isArray(e?.rowIds)?e.rowIds.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),e.rowIds?t.rowIds=e.rowIds.map((e=>e)):t.rowIds=[],t},fromPartial(e){const t={uri:"",rowIds:[]};return t.uri=e.uri??"",t.rowIds=e.rowIds?.map((e=>e))||[],t}},t.PlaylistFindResponse={encode(e,n=i.default.Writer.create()){void 0!==e.status&&r.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim();for(const o of e.items)t.ItemUriToRowIds.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={status:void 0,items:[]};for(;o.pos>>3){case 1:s.status=r.ResponseStatus.decode(o,o.uint32());break;case 2:s.items.push(t.ItemUriToRowIds.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return s},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0,items:Array.isArray(e?.items)?e.items.map((e=>t.ItemUriToRowIds.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.status&&(n.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),e.items?n.items=e.items.map((e=>e?t.ItemUriToRowIds.toJSON(e):void 0)):n.items=[],n},fromPartial(e){const n={status:void 0,items:[]};return n.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,n.items=e.items?.map((e=>t.ItemUriToRowIds.fromPartial(e)))||[],n}}},48670:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderMetadata=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FolderMetadata={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};for(;n.pos>>3){case 1:r.id=n.string();break;case 2:r.name=n.string();break;case 3:r.numFolders=n.uint32();break;case 4:r.numPlaylists=n.uint32();break;case 5:r.numRecursiveFolders=n.uint32();break;case 6:r.numRecursivePlaylists=n.uint32();break;case 7:r.link=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({id:r(e.id)?String(e.id):"",name:r(e.name)?String(e.name):"",numFolders:r(e.numFolders)?Number(e.numFolders):0,numPlaylists:r(e.numPlaylists)?Number(e.numPlaylists):0,numRecursiveFolders:r(e.numRecursiveFolders)?Number(e.numRecursiveFolders):0,numRecursivePlaylists:r(e.numRecursivePlaylists)?Number(e.numRecursivePlaylists):0,link:r(e.link)?String(e.link):""}),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=Math.round(e.numFolders)),void 0!==e.numPlaylists&&(t.numPlaylists=Math.round(e.numPlaylists)),void 0!==e.numRecursiveFolders&&(t.numRecursiveFolders=Math.round(e.numRecursiveFolders)),void 0!==e.numRecursivePlaylists&&(t.numRecursivePlaylists=Math.round(e.numRecursivePlaylists)),void 0!==e.link&&(t.link=e.link),t},fromPartial(e){const t={id:"",name:"",numFolders:0,numPlaylists:0,numRecursiveFolders:0,numRecursivePlaylists:0,link:""};return t.id=e.id??"",t.name=e.name??"",t.numFolders=e.numFolders??0,t.numPlaylists=e.numPlaylists??0,t.numRecursiveFolders=e.numRecursiveFolders??0,t.numRecursivePlaylists=e.numRecursivePlaylists??0,t.link=e.link??"",t}}},174:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistGetPlayContextResponse_MetadataEntry=t.PlaylistGetPlayContextResponse=t.PlaylistGetPlayContextRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(71119),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistGetPlayContextRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.playlistQuery&&r.PlaylistQuery.encode(e.playlistQuery,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",playlistQuery:void 0};for(;n.pos>>3){case 1:a.uri=n.string();break;case 2:a.playlistQuery=r.PlaylistQuery.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",playlistQuery:s(e.playlistQuery)?r.PlaylistQuery.fromJSON(e.playlistQuery):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.playlistQuery&&(t.playlistQuery=e.playlistQuery?r.PlaylistQuery.toJSON(e.playlistQuery):void 0),t},fromPartial(e){const t={uri:"",playlistQuery:void 0};return t.uri=e.uri??"",t.playlistQuery=void 0!==e.playlistQuery&&null!==e.playlistQuery?r.PlaylistQuery.fromPartial(e.playlistQuery):void 0,t}},t.PlaylistGetPlayContextResponse={encode:(e,n=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,n.uint32(10).fork()).ldelim(),Object.entries(e.metadata).forEach((([e,o])=>{t.PlaylistGetPlayContextResponse_MetadataEntry.encode({key:e,value:o},n.uint32(18).fork()).ldelim()})),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={status:void 0,metadata:{}};for(;o.pos>>3){case 1:s.status=a.ResponseStatus.decode(o,o.uint32());break;case 2:const n=t.PlaylistGetPlayContextResponse_MetadataEntry.decode(o,o.uint32());void 0!==n.value&&(s.metadata[n.key]=n.value);break;default:o.skipType(7&e)}}return s},fromJSON(e){return{status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,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.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),t.metadata={},e.metadata&&Object.entries(e.metadata).forEach((([e,n])=>{t.metadata[e]=n})),t},fromPartial(e){const t={status:void 0,metadata:{}};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.metadata=Object.entries(e.metadata??{}).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=String(n)),e)),{}),t}},t.PlaylistGetPlayContextResponse_MetadataEntry={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}}},65373:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistGetResponse=t.PlaylistGetRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(71119),a=n(64366),s=n(90802),l=n(87445);function c(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistGetRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.query&&r.PlaylistQuery.encode(e.query,t.uint32(18).fork()).ldelim(),void 0!==e.policy&&s.PlaylistRequestDecorationPolicy.encode(e.policy,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",query:void 0,policy:void 0};for(;n.pos>>3){case 1:a.uri=n.string();break;case 2:a.query=r.PlaylistQuery.decode(n,n.uint32());break;case 3:a.policy=s.PlaylistRequestDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:c(e.uri)?String(e.uri):"",query:c(e.query)?r.PlaylistQuery.fromJSON(e.query):void 0,policy:c(e.policy)?s.PlaylistRequestDecorationPolicy.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.query&&(t.query=e.query?r.PlaylistQuery.toJSON(e.query):void 0),void 0!==e.policy&&(t.policy=e.policy?s.PlaylistRequestDecorationPolicy.toJSON(e.policy):void 0),t},fromPartial(e){const t={uri:"",query:void 0,policy:void 0};return t.uri=e.uri??"",t.query=void 0!==e.query&&null!==e.query?r.PlaylistQuery.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?s.PlaylistRequestDecorationPolicy.fromPartial(e.policy):void 0,t}},t.PlaylistGetResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&l.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&a.Response.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.query&&r.PlaylistQuery.encode(e.query,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,data:void 0,query:void 0};for(;n.pos>>3){case 1:s.status=l.ResponseStatus.decode(n,n.uint32());break;case 2:s.data=a.Response.decode(n,n.uint32());break;case 3:s.query=r.PlaylistQuery.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:c(e.status)?l.ResponseStatus.fromJSON(e.status):void 0,data:c(e.data)?a.Response.fromJSON(e.data):void 0,query:c(e.query)?r.PlaylistQuery.fromJSON(e.query):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?l.ResponseStatus.toJSON(e.status):void 0),void 0!==e.data&&(t.data=e.data?a.Response.toJSON(e.data):void 0),void 0!==e.query&&(t.query=e.query?r.PlaylistQuery.toJSON(e.query):void 0),t},fromPartial(e){const t={status:void 0,data:void 0,query:void 0};return t.status=void 0!==e.status&&null!==e.status?l.ResponseStatus.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?a.Response.fromPartial(e.data):void 0,t.query=void 0!==e.query&&null!==e.query?r.PlaylistQuery.fromPartial(e.query):void 0,t}}},42733:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistLensResponse=t.PlaylistLensRequest=t.LensDefinition=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.LensDefinition={encode:(e,t=i.default.Writer.create())=>(""!==e.identifier&&t.uint32(10).string(e.identifier),!0===e.active&&t.uint32(16).bool(e.active),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={identifier:"",active:!1};for(;n.pos>>3){case 1:r.identifier=n.string();break;case 2:r.active=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({identifier:a(e.identifier)?String(e.identifier):"",active:!!a(e.active)&&Boolean(e.active)}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.active&&(t.active=e.active),t},fromPartial(e){const t={identifier:"",active:!1};return t.identifier=e.identifier??"",t.active=e.active??!1,t}},t.PlaylistLensRequest={encode(e,n=i.default.Writer.create()){""!==e.uri&&n.uint32(10).string(e.uri);for(const o of e.lenses)t.LensDefinition.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:"",lenses:[]};for(;o.pos>>3){case 1:a.uri=o.string();break;case 2:a.lenses.push(t.LensDefinition.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",lenses:Array.isArray(e?.lenses)?e.lenses.map((e=>t.LensDefinition.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),e.lenses?n.lenses=e.lenses.map((e=>e?t.LensDefinition.toJSON(e):void 0)):n.lenses=[],n},fromPartial(e){const n={uri:"",lenses:[]};return n.uri=e.uri??"",n.lenses=e.lenses?.map((e=>t.LensDefinition.fromPartial(e)))||[],n}},t.PlaylistLensResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},17081:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistMembersResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(90923),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistMembersResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.PlaylistMembersResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.PlaylistMembersResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.PlaylistMembersResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.PlaylistMembersResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.PlaylistMembersResponse.fromPartial(e.response):void 0,t}}},44031:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistModificationResponse=t.PlaylistModificationRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(33632),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistModificationRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&r.ModificationRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",request:void 0};for(;n.pos>>3){case 1:a.uri=n.string();break;case 2:a.request=r.ModificationRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",request:s(e.request)?r.ModificationRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=e.request?r.ModificationRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?r.ModificationRequest.fromPartial(e.request):void 0,t}},t.PlaylistModificationResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos>>3==1)r.status=a.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return r},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t}}},53872:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineResponse=t.PlaylistOfflineRequest=t.playlistOfflineActionToJSON=t.playlistOfflineActionFromJSON=t.PlaylistOfflineAction=t.protobufPackage=void 0;const i=o(n(33892)),r=n(71119),a=n(87445);var s;function l(e){switch(e){case 0:case"NONE":return s.NONE;case 1:case"SET_AS_AVAILABLE_OFFLINE":return s.SET_AS_AVAILABLE_OFFLINE;case 2:case"REMOVE_AS_AVAILABLE_OFFLINE":return s.REMOVE_AS_AVAILABLE_OFFLINE;default:return s.UNRECOGNIZED}}function c(e){switch(e){case s.NONE:return"NONE";case s.SET_AS_AVAILABLE_OFFLINE:return"SET_AS_AVAILABLE_OFFLINE";case s.REMOVE_AS_AVAILABLE_OFFLINE:return"REMOVE_AS_AVAILABLE_OFFLINE";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",function(e){e[e.NONE=0]="NONE",e[e.SET_AS_AVAILABLE_OFFLINE=1]="SET_AS_AVAILABLE_OFFLINE",e[e.REMOVE_AS_AVAILABLE_OFFLINE=2]="REMOVE_AS_AVAILABLE_OFFLINE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlaylistOfflineAction||(t.PlaylistOfflineAction={})),t.playlistOfflineActionFromJSON=l,t.playlistOfflineActionToJSON=c,t.PlaylistOfflineRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.query&&r.PlaylistQuery.encode(e.query,t.uint32(18).fork()).ldelim(),0!==e.action&&t.uint32(24).int32(e.action),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",query:void 0,action:0};for(;n.pos>>3){case 1:a.uri=n.string();break;case 2:a.query=r.PlaylistQuery.decode(n,n.uint32());break;case 3:a.action=n.int32();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:u(e.uri)?String(e.uri):"",query:u(e.query)?r.PlaylistQuery.fromJSON(e.query):void 0,action:u(e.action)?l(e.action):0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.query&&(t.query=e.query?r.PlaylistQuery.toJSON(e.query):void 0),void 0!==e.action&&(t.action=c(e.action)),t},fromPartial(e){const t={uri:"",query:void 0,action:0};return t.uri=e.uri??"",t.query=void 0!==e.query&&null!==e.query?r.PlaylistQuery.fromPartial(e.query):void 0,t.action=e.action??0,t}},t.PlaylistOfflineResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos>>3==1)r.status=a.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return r},fromJSON:e=>({status:u(e.status)?a.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t}}},16056:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseStatus=t.ClaimPermissionGrantResponse=t.PermissionGrantDescription=t.PermissionGrant=t.PermissionGrantOptions=t.PermissionStatePub=t.PermissionState=t.Permissions=t.GetMemberPermissionsResponse_MemberPermissionsEntry=t.GetMemberPermissionsResponse=t.SetPermissionResponse=t.SetPermissionLevelRequest=t.CapabilitiesResponse=t.CapabilitiesMultiResponse=t.CapabilitiesRequest=t.CapabilitiesMultiRequest=t.Capabilities=t.Permission=t.permissionGrantDescription_ClaimFailReasonToJSON=t.permissionGrantDescription_ClaimFailReasonFromJSON=t.PermissionGrantDescription_ClaimFailReason=t.permissionLevelToJSON=t.permissionLevelFromJSON=t.PermissionLevel=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s;function l(e){switch(e){case 0:case"UNKNOWN":return a.UNKNOWN;case 1:case"BLOCKED":return a.BLOCKED;case 2:case"VIEWER":return a.VIEWER;case 3:case"CONTRIBUTOR":return a.CONTRIBUTOR;default:return a.UNRECOGNIZED}}function c(e){switch(e){case a.UNKNOWN:return"UNKNOWN";case a.BLOCKED:return"BLOCKED";case a.VIEWER:return"VIEWER";case a.CONTRIBUTOR:return"CONTRIBUTOR";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"CLAIM_FAIL_REASON_UNSPECIFIED":return s.CLAIM_FAIL_REASON_UNSPECIFIED;case 1:case"CLAIM_FAIL_REASON_ANONYMOUS":return s.CLAIM_FAIL_REASON_ANONYMOUS;case 2:case"CLAIM_FAIL_REASON_NO_GRANT_FOUND":return s.CLAIM_FAIL_REASON_NO_GRANT_FOUND;case 3:case"CLAIM_FAIL_REASON_GRANT_EXPIRED":return s.CLAIM_FAIL_REASON_GRANT_EXPIRED;default:return s.UNRECOGNIZED}}function d(e){switch(e){case s.CLAIM_FAIL_REASON_UNSPECIFIED:return"CLAIM_FAIL_REASON_UNSPECIFIED";case s.CLAIM_FAIL_REASON_ANONYMOUS:return"CLAIM_FAIL_REASON_ANONYMOUS";case s.CLAIM_FAIL_REASON_NO_GRANT_FOUND:return"CLAIM_FAIL_REASON_NO_GRANT_FOUND";case s.CLAIM_FAIL_REASON_GRANT_EXPIRED:return"CLAIM_FAIL_REASON_GRANT_EXPIRED";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(){return{revision:new Uint8Array,permissionLevel:0}}t.protobufPackage="spotify.playlist_permission.proto",function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.BLOCKED=1]="BLOCKED",e[e.VIEWER=2]="VIEWER",e[e.CONTRIBUTOR=3]="CONTRIBUTOR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PermissionLevel||(t.PermissionLevel={})),t.permissionLevelFromJSON=l,t.permissionLevelToJSON=c,function(e){e[e.CLAIM_FAIL_REASON_UNSPECIFIED=0]="CLAIM_FAIL_REASON_UNSPECIFIED",e[e.CLAIM_FAIL_REASON_ANONYMOUS=1]="CLAIM_FAIL_REASON_ANONYMOUS",e[e.CLAIM_FAIL_REASON_NO_GRANT_FOUND=2]="CLAIM_FAIL_REASON_NO_GRANT_FOUND",e[e.CLAIM_FAIL_REASON_GRANT_EXPIRED=3]="CLAIM_FAIL_REASON_GRANT_EXPIRED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PermissionGrantDescription_ClaimFailReason||(t.PermissionGrantDescription_ClaimFailReason={})),t.permissionGrantDescription_ClaimFailReasonFromJSON=u,t.permissionGrantDescription_ClaimFailReasonToJSON=d,t.Permission={encode:(e,t=r.default.Writer.create())=>(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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=p();for(;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=>({revision:m(e.revision)?h(e.revision):new Uint8Array,permissionLevel:m(e.permissionLevel)?l(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=function(e){if(f.Buffer)return f.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),f.btoa(t.join(""))}}(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.permissionLevel&&(t.permissionLevel=c(e.permissionLevel)),t},fromPartial(e){const t=p();return t.revision=e.revision??new Uint8Array,t.permissionLevel=e.permissionLevel??0,t}},t.Capabilities={encode(e,t=r.default.Writer.create()){!0===e.canView&&t.uint32(8).bool(e.canView),!0===e.canAdministratePermissions&&t.uint32(16).bool(e.canAdministratePermissions),t.uint32(26).fork();for(const n of e.grantableLevel)t.int32(n);return t.ldelim(),!0===e.canEditMetadata&&t.uint32(32).bool(e.canEditMetadata),!0===e.canEditItems&&t.uint32(40).bool(e.canEditItems),!0===e.canCancelMembership&&t.uint32(48).bool(e.canCancelMembership),t},decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};for(;n.pos>>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.pos({canView:!!m(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!m(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>l(e))):[],canEditMetadata:!!m(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!m(e.canEditItems)&&Boolean(e.canEditItems),canCancelMembership:!!m(e.canCancelMembership)&&Boolean(e.canCancelMembership)}),toJSON(e){const t={};return void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?t.grantableLevel=e.grantableLevel.map((e=>c(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={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1,canCancelMembership:!1};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t.canCancelMembership=e.canCancelMembership??!1,t}},t.CapabilitiesMultiRequest={encode(e,n=r.default.Writer.create()){for(const o of e.request)t.CapabilitiesRequest.encode(o,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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={request:[],fallbackUsername:"",fallbackUserId:"",fallbackUri:""};for(;o.pos>>3){case 1:a.request.push(t.CapabilitiesRequest.decode(o,o.uint32()));break;case 2:a.fallbackUsername=o.string();break;case 3:a.fallbackUserId=o.string();break;case 4:a.fallbackUri=o.string();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({request:Array.isArray(e?.request)?e.request.map((e=>t.CapabilitiesRequest.fromJSON(e))):[],fallbackUsername:m(e.fallbackUsername)?String(e.fallbackUsername):"",fallbackUserId:m(e.fallbackUserId)?String(e.fallbackUserId):"",fallbackUri:m(e.fallbackUri)?String(e.fallbackUri):""}),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={request:[],fallbackUsername:"",fallbackUserId:"",fallbackUri:""};return n.request=e.request?.map((e=>t.CapabilitiesRequest.fromPartial(e)))||[],n.fallbackUsername=e.fallbackUsername??"",n.fallbackUserId=e.fallbackUserId??"",n.fallbackUri=e.fallbackUri??"",n}},t.CapabilitiesRequest={encode:(e,t=r.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),""!==e.permissionGrantToken&&t.uint32(42).string(e.permissionGrantToken),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={username:"",userId:"",uri:"",userIsOwner:!1,permissionGrantToken:""};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;case 5:i.permissionGrantToken=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({username:m(e.username)?String(e.username):"",userId:m(e.userId)?String(e.userId):"",uri:m(e.uri)?String(e.uri):"",userIsOwner:!!m(e.userIsOwner)&&Boolean(e.userIsOwner),permissionGrantToken:m(e.permissionGrantToken)?String(e.permissionGrantToken):""}),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),void 0!==e.permissionGrantToken&&(t.permissionGrantToken=e.permissionGrantToken),t},fromPartial(e){const t={username:"",userId:"",uri:"",userIsOwner:!1,permissionGrantToken:""};return t.username=e.username??"",t.userId=e.userId??"",t.uri=e.uri??"",t.userIsOwner=e.userIsOwner??!1,t.permissionGrantToken=e.permissionGrantToken??"",t}},t.CapabilitiesMultiResponse={encode(e,n=r.default.Writer.create()){for(const o of e.response)t.CapabilitiesResponse.encode(o,n.uint32(10).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={response:[]};for(;o.pos>>3==1)a.response.push(t.CapabilitiesResponse.decode(o,o.uint32()));else o.skipType(7&e)}return a},fromJSON:e=>({response:Array.isArray(e?.response)?e.response.map((e=>t.CapabilitiesResponse.fromJSON(e))):[]}),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={response:[]};return n.response=e.response?.map((e=>t.CapabilitiesResponse.fromPartial(e)))||[],n}},t.CapabilitiesResponse={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={status:void 0,capabilities:void 0};for(;o.pos>>3){case 1:a.status=t.ResponseStatus.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({status:m(e.status)?t.ResponseStatus.fromJSON(e.status):void 0,capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):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.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={status:void 0,capabilities:void 0};return n.status=void 0!==e.status&&null!==e.status?t.ResponseStatus.fromPartial(e.status):void 0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n}},t.SetPermissionLevelRequest={encode:(e,t=r.default.Writer.create())=>(0!==e.permissionLevel&&t.uint32(8).int32(e.permissionLevel),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={permissionLevel:0};for(;n.pos>>3==1)i.permissionLevel=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({permissionLevel:m(e.permissionLevel)?l(e.permissionLevel):0}),toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=c(e.permissionLevel)),t},fromPartial(e){const t={permissionLevel:0};return t.permissionLevel=e.permissionLevel??0,t}},t.SetPermissionResponse={encode:(e,n=r.default.Writer.create())=>(void 0!==e.resultingPermission&&t.Permission.encode(e.resultingPermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={resultingPermission:void 0};for(;o.pos>>3==1)a.resultingPermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({resultingPermission:m(e.resultingPermission)?t.Permission.fromJSON(e.resultingPermission):void 0}),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={resultingPermission:void 0};return n.resultingPermission=void 0!==e.resultingPermission&&null!==e.resultingPermission?t.Permission.fromPartial(e.resultingPermission):void 0,n}},t.GetMemberPermissionsResponse={encode:(e,n=r.default.Writer.create())=>(Object.entries(e.memberPermissions).forEach((([e,o])=>{t.GetMemberPermissionsResponse_MemberPermissionsEntry.encode({key:e,value:o},n.uint32(10).fork()).ldelim()})),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={memberPermissions:{}};for(;o.pos>>3==1){const e=t.GetMemberPermissionsResponse_MemberPermissionsEntry.decode(o,o.uint32());void 0!==e.value&&(a.memberPermissions[e.key]=e.value)}else o.skipType(7&e)}return a},fromJSON(e){return{memberPermissions:(n=e.memberPermissions,"object"==typeof n&&null!==n?Object.entries(e.memberPermissions).reduce(((e,[n,o])=>(e[n]=t.Permission.fromJSON(o),e)),{}):{})};var n},toJSON(e){const n={memberPermissions:{}};return e.memberPermissions&&Object.entries(e.memberPermissions).forEach((([e,o])=>{n.memberPermissions[e]=t.Permission.toJSON(o)})),n},fromPartial(e){const n={memberPermissions:{}};return n.memberPermissions=Object.entries(e.memberPermissions??{}).reduce(((e,[n,o])=>(void 0!==o&&(e[n]=t.Permission.fromPartial(o)),e)),{}),n}},t.GetMemberPermissionsResponse_MemberPermissionsEntry={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={key:"",value:void 0};for(;o.pos>>3){case 1:a.key=o.string();break;case 2:a.value=t.Permission.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({key:m(e.key)?String(e.key):"",value:m(e.value)?t.Permission.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.Permission.toJSON(e.value):void 0),n},fromPartial(e){const n={key:"",value:void 0};return n.key=e.key??"",n.value=void 0!==e.value&&null!==e.value?t.Permission.fromPartial(e.value):void 0,n}},t.Permissions={encode:(e,n=r.default.Writer.create())=>(void 0!==e.basePermission&&t.Permission.encode(e.basePermission,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={basePermission:void 0};for(;o.pos>>3==1)a.basePermission=t.Permission.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({basePermission:m(e.basePermission)?t.Permission.fromJSON(e.basePermission):void 0}),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={basePermission:void 0};return n.basePermission=void 0!==e.basePermission&&null!==e.basePermission?t.Permission.fromPartial(e.basePermission):void 0,n}},t.PermissionState={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permissions:void 0,capabilities:void 0,isPrivate:!1,isCollaborative:!1};for(;o.pos>>3){case 1:a.permissions=t.Permissions.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;case 3:a.isPrivate=o.bool();break;case 4:a.isCollaborative=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({permissions:m(e.permissions)?t.Permissions.fromJSON(e.permissions):void 0,capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0,isPrivate:!!m(e.isPrivate)&&Boolean(e.isPrivate),isCollaborative:!!m(e.isCollaborative)&&Boolean(e.isCollaborative)}),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={permissions:void 0,capabilities:void 0,isPrivate:!1,isCollaborative:!1};return n.permissions=void 0!==e.permissions&&null!==e.permissions?t.Permissions.fromPartial(e.permissions):void 0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n.isPrivate=e.isPrivate??!1,n.isCollaborative=e.isCollaborative??!1,n}},t.PermissionStatePub={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissionState&&t.PermissionState.encode(e.permissionState,n.uint32(10).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permissionState:void 0};for(;o.pos>>3==1)a.permissionState=t.PermissionState.decode(o,o.uint32());else o.skipType(7&e)}return a},fromJSON:e=>({permissionState:m(e.permissionState)?t.PermissionState.fromJSON(e.permissionState):void 0}),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={permissionState:void 0};return n.permissionState=void 0!==e.permissionState&&null!==e.permissionState?t.PermissionState.fromPartial(e.permissionState):void 0,n}},t.PermissionGrantOptions={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permission:void 0,ttlMs:"0"};for(;o.pos>>3){case 1:a.permission=t.Permission.decode(o,o.uint32());break;case 2:a.ttlMs=o.int64().toString();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({permission:m(e.permission)?t.Permission.fromJSON(e.permission):void 0,ttlMs:m(e.ttlMs)?String(e.ttlMs):"0"}),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={permission:void 0,ttlMs:"0"};return n.permission=void 0!==e.permission&&null!==e.permission?t.Permission.fromPartial(e.permission):void 0,n.ttlMs=e.ttlMs??"0",n}},t.PermissionGrant={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={token:"",permissionGrantOptions:void 0};for(;o.pos>>3){case 1:a.token=o.string();break;case 2:a.permissionGrantOptions=t.PermissionGrantOptions.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({token:m(e.token)?String(e.token):"",permissionGrantOptions:m(e.permissionGrantOptions)?t.PermissionGrantOptions.fromJSON(e.permissionGrantOptions):void 0}),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={token:"",permissionGrantOptions:void 0};return n.token=e.token??"",n.permissionGrantOptions=void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?t.PermissionGrantOptions.fromPartial(e.permissionGrantOptions):void 0,n}},t.PermissionGrantDescription={encode:(e,n=r.default.Writer.create())=>(void 0!==e.permissionGrantOptions&&t.PermissionGrantOptions.encode(e.permissionGrantOptions,n.uint32(10).fork()).ldelim(),0!==e.claimFailReason&&n.uint32(16).int32(e.claimFailReason),!0===e.isEffective&&n.uint32(24).bool(e.isEffective),void 0!==e.capabilities&&t.Capabilities.encode(e.capabilities,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={permissionGrantOptions:void 0,claimFailReason:0,isEffective:!1,capabilities:void 0};for(;o.pos>>3){case 1:a.permissionGrantOptions=t.PermissionGrantOptions.decode(o,o.uint32());break;case 2:a.claimFailReason=o.int32();break;case 3:a.isEffective=o.bool();break;case 4:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({permissionGrantOptions:m(e.permissionGrantOptions)?t.PermissionGrantOptions.fromJSON(e.permissionGrantOptions):void 0,claimFailReason:m(e.claimFailReason)?u(e.claimFailReason):0,isEffective:!!m(e.isEffective)&&Boolean(e.isEffective),capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0}),toJSON(e){const n={};return void 0!==e.permissionGrantOptions&&(n.permissionGrantOptions=e.permissionGrantOptions?t.PermissionGrantOptions.toJSON(e.permissionGrantOptions):void 0),void 0!==e.claimFailReason&&(n.claimFailReason=d(e.claimFailReason)),void 0!==e.isEffective&&(n.isEffective=e.isEffective),void 0!==e.capabilities&&(n.capabilities=e.capabilities?t.Capabilities.toJSON(e.capabilities):void 0),n},fromPartial(e){const n={permissionGrantOptions:void 0,claimFailReason:0,isEffective:!1,capabilities:void 0};return n.permissionGrantOptions=void 0!==e.permissionGrantOptions&&null!==e.permissionGrantOptions?t.PermissionGrantOptions.fromPartial(e.permissionGrantOptions):void 0,n.claimFailReason=e.claimFailReason??0,n.isEffective=e.isEffective??!1,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n}},t.ClaimPermissionGrantResponse={encode:(e,n=r.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 o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={userPermission:void 0,capabilities:void 0};for(;o.pos>>3){case 1:a.userPermission=t.Permission.decode(o,o.uint32());break;case 2:a.capabilities=t.Capabilities.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({userPermission:m(e.userPermission)?t.Permission.fromJSON(e.userPermission):void 0,capabilities:m(e.capabilities)?t.Capabilities.fromJSON(e.capabilities):void 0}),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={userPermission:void 0,capabilities:void 0};return n.userPermission=void 0!==e.userPermission&&null!==e.userPermission?t.Permission.fromPartial(e.userPermission):void 0,n.capabilities=void 0!==e.capabilities&&null!==e.capabilities?t.Capabilities.fromPartial(e.capabilities):void 0,n}},t.ResponseStatus={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={statusCode:0,statusMessage:""};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=>({statusCode:m(e.statusCode)?Number(e.statusCode):0,statusMessage:m(e.statusMessage)?String(e.statusMessage):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=Math.round(e.statusCode)),void 0!==e.statusMessage&&(t.statusMessage=e.statusMessage),t},fromPartial(e){const t={statusCode:0,statusMessage:""};return t.statusCode=e.statusCode??0,t.statusMessage=e.statusMessage??"",t}};var f=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 h(e){if(f.Buffer)return Uint8Array.from(f.Buffer.from(e,"base64"));{const t=f.atob(e),n=new Uint8Array(t.length);for(let e=0;e(void 0!==e.playlistQuery&&u.PlaylistQuery.encode(e.playlistQuery,t.uint32(10).fork()).ldelim(),void 0!==e.context&&r.Context.encode(e.context,t.uint32(18).fork()).ldelim(),void 0!==e.playOptions&&s.PlayOptions.encode(e.playOptions,t.uint32(26).fork()).ldelim(),void 0!==e.loggingParams&&a.LoggingParams.encode(e.loggingParams,t.uint32(34).fork()).ldelim(),void 0!==e.preparePlayOptions&&c.PreparePlayOptions.encode(e.preparePlayOptions,t.uint32(42).fork()).ldelim(),void 0!==e.playOrigin&&l.PlayOrigin.encode(e.playOrigin,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const d={playlistQuery:void 0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};for(;n.pos>>3){case 1:d.playlistQuery=u.PlaylistQuery.decode(n,n.uint32());break;case 2:d.context=r.Context.decode(n,n.uint32());break;case 3:d.playOptions=s.PlayOptions.decode(n,n.uint32());break;case 4:d.loggingParams=a.LoggingParams.decode(n,n.uint32());break;case 5:d.preparePlayOptions=c.PreparePlayOptions.decode(n,n.uint32());break;case 6:d.playOrigin=l.PlayOrigin.decode(n,n.uint32());break;default:n.skipType(7&e)}}return d},fromJSON:e=>({playlistQuery:p(e.playlistQuery)?u.PlaylistQuery.fromJSON(e.playlistQuery):void 0,context:p(e.context)?r.Context.fromJSON(e.context):void 0,playOptions:p(e.playOptions)?s.PlayOptions.fromJSON(e.playOptions):void 0,loggingParams:p(e.loggingParams)?a.LoggingParams.fromJSON(e.loggingParams):void 0,preparePlayOptions:p(e.preparePlayOptions)?c.PreparePlayOptions.fromJSON(e.preparePlayOptions):void 0,playOrigin:p(e.playOrigin)?l.PlayOrigin.fromJSON(e.playOrigin):void 0}),toJSON(e){const t={};return void 0!==e.playlistQuery&&(t.playlistQuery=e.playlistQuery?u.PlaylistQuery.toJSON(e.playlistQuery):void 0),void 0!==e.context&&(t.context=e.context?r.Context.toJSON(e.context):void 0),void 0!==e.playOptions&&(t.playOptions=e.playOptions?s.PlayOptions.toJSON(e.playOptions):void 0),void 0!==e.loggingParams&&(t.loggingParams=e.loggingParams?a.LoggingParams.toJSON(e.loggingParams):void 0),void 0!==e.preparePlayOptions&&(t.preparePlayOptions=e.preparePlayOptions?c.PreparePlayOptions.toJSON(e.preparePlayOptions):void 0),void 0!==e.playOrigin&&(t.playOrigin=e.playOrigin?l.PlayOrigin.toJSON(e.playOrigin):void 0),t},fromPartial(e){const t={playlistQuery:void 0,context:void 0,playOptions:void 0,loggingParams:void 0,preparePlayOptions:void 0,playOrigin:void 0};return t.playlistQuery=void 0!==e.playlistQuery&&null!==e.playlistQuery?u.PlaylistQuery.fromPartial(e.playlistQuery):void 0,t.context=void 0!==e.context&&null!==e.context?r.Context.fromPartial(e.context):void 0,t.playOptions=void 0!==e.playOptions&&null!==e.playOptions?s.PlayOptions.fromPartial(e.playOptions):void 0,t.loggingParams=void 0!==e.loggingParams&&null!==e.loggingParams?a.LoggingParams.fromPartial(e.loggingParams):void 0,t.preparePlayOptions=void 0!==e.preparePlayOptions&&null!==e.preparePlayOptions?c.PreparePlayOptions.fromPartial(e.preparePlayOptions):void 0,t.playOrigin=void 0!==e.playOrigin&&null!==e.playOrigin?l.PlayOrigin.fromPartial(e.playOrigin):void 0,t}},t.PlaylistPlayResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&d.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0};for(;n.pos>>3==1)r.status=d.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return r},fromJSON:e=>({status:p(e.status)?d.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?d.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?d.ResponseStatus.fromPartial(e.status):void 0,t}}},57074:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistOfflineState=t.PlaylistMetadata=t.Allows=t.FormatListAttribute=t.protobufPackage=void 0;const i=o(n(33892)),r=n(13741),a=n(46615),s=n(39081);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FormatListAttribute={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={key:"",value:""};for(;n.pos>>3){case 1:r.key=n.string();break;case 2:r.value=n.string();break;default:n.skipType(7&e)}}return r},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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}},t.Allows={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={canInsert:!1,canRemove:!1};for(;n.pos>>3){case 1:r.canInsert=n.bool();break;case 2:r.canRemove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({canInsert:!!l(e.canInsert)&&Boolean(e.canInsert),canRemove:!!l(e.canRemove)&&Boolean(e.canRemove)}),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={canInsert:!1,canRemove:!1};return t.canInsert=e.canInsert??!1,t.canRemove=e.canRemove??!1,t}},t.PlaylistMetadata={encode(e,n=i.default.Writer.create()){""!==e.link&&n.uint32(10).string(e.link),""!==e.name&&n.uint32(18).string(e.name),void 0!==e.owner&&s.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&&a.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 o of e.formatListAttributes)t.FormatListAttribute.encode(o,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&&s.User.encode(e.madeFor,n.uint32(162).fork()).ldelim();for(const t of e.extension)r.Extension.encode(t,n.uint32(170).fork()).ldelim();return 0!==e.lengthIgnoringTextFilter&&n.uint32(176).uint32(e.lengthIgnoringTextFilter),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let l=void 0===n?o.len:o.pos+n;const c={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};for(;o.pos>>3){case 1:c.link=o.string();break;case 2:c.name=o.string();break;case 3:c.owner=s.User.decode(o,o.uint32());break;case 4:c.ownedBySelf=o.bool();break;case 5:c.collaborative=o.bool();break;case 6:c.totalLength=o.uint32();break;case 7:c.description=o.string();break;case 8:c.pictures=a.ImageGroup.decode(o,o.uint32());break;case 9:c.followed=o.bool();break;case 10:c.published=o.bool();break;case 11:c.browsableOffline=o.bool();break;case 12:c.descriptionFromAnnotate=o.bool();break;case 13:c.pictureFromAnnotate=o.bool();break;case 14:c.formatListType=o.string();break;case 15:c.formatListAttributes.push(t.FormatListAttribute.decode(o,o.uint32()));break;case 16:c.canReportAnnotationAbuse=o.bool();break;case 17:c.isLoaded=o.bool();break;case 18:c.allows=t.Allows.decode(o,o.uint32());break;case 19:c.loadState=o.string();break;case 20:c.madeFor=s.User.decode(o,o.uint32());break;case 21:c.extension.push(r.Extension.decode(o,o.uint32()));break;case 22:c.lengthIgnoringTextFilter=o.uint32();break;default:o.skipType(7&e)}}return c},fromJSON:e=>({link:l(e.link)?String(e.link):"",name:l(e.name)?String(e.name):"",owner:l(e.owner)?s.User.fromJSON(e.owner):void 0,ownedBySelf:!!l(e.ownedBySelf)&&Boolean(e.ownedBySelf),collaborative:!!l(e.collaborative)&&Boolean(e.collaborative),totalLength:l(e.totalLength)?Number(e.totalLength):0,description:l(e.description)?String(e.description):"",pictures:l(e.pictures)?a.ImageGroup.fromJSON(e.pictures):void 0,followed:!!l(e.followed)&&Boolean(e.followed),published:!!l(e.published)&&Boolean(e.published),browsableOffline:!!l(e.browsableOffline)&&Boolean(e.browsableOffline),descriptionFromAnnotate:!!l(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!l(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),formatListType:l(e.formatListType)?String(e.formatListType):"",formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>t.FormatListAttribute.fromJSON(e))):[],canReportAnnotationAbuse:!!l(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),isLoaded:!!l(e.isLoaded)&&Boolean(e.isLoaded),allows:l(e.allows)?t.Allows.fromJSON(e.allows):void 0,loadState:l(e.loadState)?String(e.loadState):"",madeFor:l(e.madeFor)?s.User.fromJSON(e.madeFor):void 0,extension:Array.isArray(e?.extension)?e.extension.map((e=>r.Extension.fromJSON(e))):[],lengthIgnoringTextFilter:l(e.lengthIgnoringTextFilter)?Number(e.lengthIgnoringTextFilter):0}),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?s.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=Math.round(e.totalLength)),void 0!==e.description&&(n.description=e.description),void 0!==e.pictures&&(n.pictures=e.pictures?a.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?s.User.toJSON(e.madeFor):void 0),e.extension?n.extension=e.extension.map((e=>e?r.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=Math.round(e.lengthIgnoringTextFilter)),n},fromPartial(e){const n={link:"",name:"",owner:void 0,ownedBySelf:!1,collaborative:!1,totalLength:0,description:"",pictures:void 0,followed:!1,published:!1,browsableOffline:!1,descriptionFromAnnotate:!1,pictureFromAnnotate:!1,formatListType:"",formatListAttributes:[],canReportAnnotationAbuse:!1,isLoaded:!1,allows:void 0,loadState:"",madeFor:void 0,extension:[],lengthIgnoringTextFilter:0};return n.link=e.link??"",n.name=e.name??"",n.owner=void 0!==e.owner&&null!==e.owner?s.User.fromPartial(e.owner):void 0,n.ownedBySelf=e.ownedBySelf??!1,n.collaborative=e.collaborative??!1,n.totalLength=e.totalLength??0,n.description=e.description??"",n.pictures=void 0!==e.pictures&&null!==e.pictures?a.ImageGroup.fromPartial(e.pictures):void 0,n.followed=e.followed??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.formatListType=e.formatListType??"",n.formatListAttributes=e.formatListAttributes?.map((e=>t.FormatListAttribute.fromPartial(e)))||[],n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.isLoaded=e.isLoaded??!1,n.allows=void 0!==e.allows&&null!==e.allows?t.Allows.fromPartial(e.allows):void 0,n.loadState=e.loadState??"",n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?s.User.fromPartial(e.madeFor):void 0,n.extension=e.extension?.map((e=>r.Extension.fromPartial(e)))||[],n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??0,n}},t.PlaylistOfflineState={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:"",syncProgress:0};for(;n.pos>>3){case 1:r.offline=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:l(e.offline)?String(e.offline):"",syncProgress:l(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}}},71119:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistQuery=t.PlaylistRange=t.playlistQuery_SortByToJSON=t.playlistQuery_SortByFromJSON=t.PlaylistQuery_SortBy=t.playlistQuery_BoolPredicateToJSON=t.playlistQuery_BoolPredicateFromJSON=t.PlaylistQuery_BoolPredicate=t.playlistSourceRestrictionToJSON=t.playlistSourceRestrictionFromJSON=t.PlaylistSourceRestriction=t.protobufPackage=void 0;const i=o(n(33892)),r=n(89473);var a,s,l;function c(e){switch(e){case 0:case"NO_RESTRICTION":return a.NO_RESTRICTION;case 1:case"RESTRICT_SOURCE_TO_50":return a.RESTRICT_SOURCE_TO_50;case 2:case"RESTRICT_SOURCE_TO_500":return a.RESTRICT_SOURCE_TO_500;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.NO_RESTRICTION:return"NO_RESTRICTION";case a.RESTRICT_SOURCE_TO_50:return"RESTRICT_SOURCE_TO_50";case a.RESTRICT_SOURCE_TO_500:return"RESTRICT_SOURCE_TO_500";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"NO_FILTER":return s.NO_FILTER;case 1:case"AVAILABLE":return s.AVAILABLE;case 2:case"AVAILABLE_OFFLINE":return s.AVAILABLE_OFFLINE;case 3:case"ARTIST_NOT_BANNED":return s.ARTIST_NOT_BANNED;case 4:case"NOT_BANNED":return s.NOT_BANNED;case 5:case"NOT_EXPLICIT":return s.NOT_EXPLICIT;case 6:case"NOT_EPISODE":return s.NOT_EPISODE;case 7:case"NOT_RECOMMENDATION":return s.NOT_RECOMMENDATION;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.NO_FILTER:return"NO_FILTER";case s.AVAILABLE:return"AVAILABLE";case s.AVAILABLE_OFFLINE:return"AVAILABLE_OFFLINE";case s.ARTIST_NOT_BANNED:return"ARTIST_NOT_BANNED";case s.NOT_BANNED:return"NOT_BANNED";case s.NOT_EXPLICIT:return"NOT_EXPLICIT";case s.NOT_EPISODE:return"NOT_EPISODE";case s.NOT_RECOMMENDATION:return"NOT_RECOMMENDATION";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function f(e){switch(e){case 0:case"NO_SORT":return l.NO_SORT;case 1:case"ALBUM_ARTIST_NAME_ASC":return l.ALBUM_ARTIST_NAME_ASC;case 2:case"ALBUM_ARTIST_NAME_DESC":return l.ALBUM_ARTIST_NAME_DESC;case 3:case"TRACK_NUMBER_ASC":return l.TRACK_NUMBER_ASC;case 4:case"TRACK_NUMBER_DESC":return l.TRACK_NUMBER_DESC;case 5:case"DISC_NUMBER_ASC":return l.DISC_NUMBER_ASC;case 6:case"DISC_NUMBER_DESC":return l.DISC_NUMBER_DESC;case 7:case"ALBUM_NAME_ASC":return l.ALBUM_NAME_ASC;case 8:case"ALBUM_NAME_DESC":return l.ALBUM_NAME_DESC;case 9:case"ARTIST_NAME_ASC":return l.ARTIST_NAME_ASC;case 10:case"ARTIST_NAME_DESC":return l.ARTIST_NAME_DESC;case 11:case"NAME_ASC":return l.NAME_ASC;case 12:case"NAME_DESC":return l.NAME_DESC;case 13:case"ADD_TIME_ASC":return l.ADD_TIME_ASC;case 14:case"ADD_TIME_DESC":return l.ADD_TIME_DESC;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.NO_SORT:return"NO_SORT";case l.ALBUM_ARTIST_NAME_ASC:return"ALBUM_ARTIST_NAME_ASC";case l.ALBUM_ARTIST_NAME_DESC:return"ALBUM_ARTIST_NAME_DESC";case l.TRACK_NUMBER_ASC:return"TRACK_NUMBER_ASC";case l.TRACK_NUMBER_DESC:return"TRACK_NUMBER_DESC";case l.DISC_NUMBER_ASC:return"DISC_NUMBER_ASC";case l.DISC_NUMBER_DESC:return"DISC_NUMBER_DESC";case l.ALBUM_NAME_ASC:return"ALBUM_NAME_ASC";case l.ALBUM_NAME_DESC:return"ALBUM_NAME_DESC";case l.ARTIST_NAME_ASC:return"ARTIST_NAME_ASC";case l.ARTIST_NAME_DESC:return"ARTIST_NAME_DESC";case l.NAME_ASC:return"NAME_ASC";case l.NAME_DESC:return"NAME_DESC";case l.ADD_TIME_ASC:return"ADD_TIME_ASC";case l.ADD_TIME_DESC:return"ADD_TIME_DESC";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",function(e){e[e.NO_RESTRICTION=0]="NO_RESTRICTION",e[e.RESTRICT_SOURCE_TO_50=1]="RESTRICT_SOURCE_TO_50",e[e.RESTRICT_SOURCE_TO_500=2]="RESTRICT_SOURCE_TO_500",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.PlaylistSourceRestriction||(t.PlaylistSourceRestriction={})),t.playlistSourceRestrictionFromJSON=c,t.playlistSourceRestrictionToJSON=u,function(e){e[e.NO_FILTER=0]="NO_FILTER",e[e.AVAILABLE=1]="AVAILABLE",e[e.AVAILABLE_OFFLINE=2]="AVAILABLE_OFFLINE",e[e.ARTIST_NOT_BANNED=3]="ARTIST_NOT_BANNED",e[e.NOT_BANNED=4]="NOT_BANNED",e[e.NOT_EXPLICIT=5]="NOT_EXPLICIT",e[e.NOT_EPISODE=6]="NOT_EPISODE",e[e.NOT_RECOMMENDATION=7]="NOT_RECOMMENDATION",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.PlaylistQuery_BoolPredicate||(t.PlaylistQuery_BoolPredicate={})),t.playlistQuery_BoolPredicateFromJSON=d,t.playlistQuery_BoolPredicateToJSON=p,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.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.PlaylistQuery_SortBy||(t.PlaylistQuery_SortBy={})),t.playlistQuery_SortByFromJSON=f,t.playlistQuery_SortByToJSON=h,t.PlaylistRange={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos>>3){case 1:r.start=n.int32();break;case 2:r.length=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({start:m(e.start)?Number(e.start):0,length:m(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){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}},t.PlaylistQuery={encode(e,n=i.default.Writer.create()){n.uint32(10).fork();for(const t of e.boolPredicates)n.int32(t);n.ldelim(),""!==e.textFilter&&n.uint32(18).string(e.textFilter),0!==e.sortBy&&n.uint32(24).int32(e.sortBy),void 0!==e.range&&t.PlaylistRange.encode(e.range,n.uint32(34).fork()).ldelim(),0!==e.updateThrottlingMs&&n.uint32(40).int32(e.updateThrottlingMs),!0===e.group&&n.uint32(48).bool(e.group),0!==e.sourceRestriction&&n.uint32(56).int32(e.sourceRestriction),!0===e.showUnavailable&&n.uint32(64).bool(e.showUnavailable),!0===e.alwaysShowWindowed&&n.uint32(72).bool(e.alwaysShowWindowed),!0===e.loadRecommendations&&n.uint32(80).bool(e.loadRecommendations),n.uint32(90).fork();for(const t of e.supportedPlaceholderTypes)n.int32(t);n.ldelim();for(const t of e.descriptorFilter)n.uint32(98).string(t);return n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={boolPredicates:[],textFilter:"",sortBy:0,range:void 0,updateThrottlingMs:0,group:!1,sourceRestriction:0,showUnavailable:!1,alwaysShowWindowed:!1,loadRecommendations:!1,supportedPlaceholderTypes:[],descriptorFilter:[]};for(;o.pos>>3){case 1:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos({boolPredicates:Array.isArray(e?.boolPredicates)?e.boolPredicates.map((e=>d(e))):[],textFilter:m(e.textFilter)?String(e.textFilter):"",sortBy:m(e.sortBy)?f(e.sortBy):0,range:m(e.range)?t.PlaylistRange.fromJSON(e.range):void 0,updateThrottlingMs:m(e.updateThrottlingMs)?Number(e.updateThrottlingMs):0,group:!!m(e.group)&&Boolean(e.group),sourceRestriction:m(e.sourceRestriction)?c(e.sourceRestriction):0,showUnavailable:!!m(e.showUnavailable)&&Boolean(e.showUnavailable),alwaysShowWindowed:!!m(e.alwaysShowWindowed)&&Boolean(e.alwaysShowWindowed),loadRecommendations:!!m(e.loadRecommendations)&&Boolean(e.loadRecommendations),supportedPlaceholderTypes:Array.isArray(e?.supportedPlaceholderTypes)?e.supportedPlaceholderTypes.map((e=>(0,r.linkTypeFromJSON)(e))):[],descriptorFilter:Array.isArray(e?.descriptorFilter)?e.descriptorFilter.map((e=>String(e))):[]}),toJSON(e){const n={};return e.boolPredicates?n.boolPredicates=e.boolPredicates.map((e=>p(e))):n.boolPredicates=[],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.PlaylistRange.toJSON(e.range):void 0),void 0!==e.updateThrottlingMs&&(n.updateThrottlingMs=Math.round(e.updateThrottlingMs)),void 0!==e.group&&(n.group=e.group),void 0!==e.sourceRestriction&&(n.sourceRestriction=u(e.sourceRestriction)),void 0!==e.showUnavailable&&(n.showUnavailable=e.showUnavailable),void 0!==e.alwaysShowWindowed&&(n.alwaysShowWindowed=e.alwaysShowWindowed),void 0!==e.loadRecommendations&&(n.loadRecommendations=e.loadRecommendations),e.supportedPlaceholderTypes?n.supportedPlaceholderTypes=e.supportedPlaceholderTypes.map((e=>(0,r.linkTypeToJSON)(e))):n.supportedPlaceholderTypes=[],e.descriptorFilter?n.descriptorFilter=e.descriptorFilter.map((e=>e)):n.descriptorFilter=[],n},fromPartial(e){const n={boolPredicates:[],textFilter:"",sortBy:0,range:void 0,updateThrottlingMs:0,group:!1,sourceRestriction:0,showUnavailable:!1,alwaysShowWindowed:!1,loadRecommendations:!1,supportedPlaceholderTypes:[],descriptorFilter:[]};return n.boolPredicates=e.boolPredicates?.map((e=>e))||[],n.textFilter=e.textFilter??"",n.sortBy=e.sortBy??0,n.range=void 0!==e.range&&null!==e.range?t.PlaylistRange.fromPartial(e.range):void 0,n.updateThrottlingMs=e.updateThrottlingMs??0,n.group=e.group??!1,n.sourceRestriction=e.sourceRestriction??0,n.showUnavailable=e.showUnavailable??!1,n.alwaysShowWindowed=e.alwaysShowWindowed??!1,n.loadRecommendations=e.loadRecommendations??!1,n.supportedPlaceholderTypes=e.supportedPlaceholderTypes?.map((e=>e))||[],n.descriptorFilter=e.descriptorFilter?.map((e=>e))||[],n}}},64366:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.NumberOfItemsForLinkType=t.Collaborators=t.Collaborator=t.RecommendationItem=t.Playlist=t.LensState=t.Lens=t.Item=t.ItemOfflineState=t.ItemSignal=t.itemSignalStateToJSON=t.itemSignalStateFromJSON=t.ItemSignalState=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(32781),s=n(38931),l=n(13741),c=n(46615),u=n(84622),d=n(81085),p=n(29940),f=n(12645),h=n(16056),m=n(57074),g=n(28848),v=n(39081),y=n(89473),_=n(12379);var b;function S(e){switch(e){case 0:case"READY":return b.READY;case 1:case"PENDING":return b.PENDING;default:return b.UNRECOGNIZED}}function E(e){switch(e){case b.READY:return"READY";case b.PENDING:return"PENDING";case b.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function A(e){return e.toString()}function T(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.playlist_request.proto",function(e){e[e.READY=0]="READY",e[e.PENDING=1]="PENDING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(b=t.ItemSignalState||(t.ItemSignalState={})),t.itemSignalStateFromJSON=S,t.itemSignalStateToJSON=E,t.ItemSignal={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),0!==e.state&&t.uint32(16).int32(e.state),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={name:"",state:0};for(;n.pos>>3){case 1:i.name=n.string();break;case 2:i.state=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({name:T(e.name)?String(e.name):"",state:T(e.state)?S(e.state):0}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.state&&(t.state=E(e.state)),t},fromPartial(e){const t={name:"",state:0};return t.name=e.name??"",t.state=e.state??0,t}},t.ItemOfflineState={encode:(e,t=r.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={offline:"",syncProgress:0};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=>({offline:T(e.offline)?String(e.offline):"",syncProgress:T(e.syncProgress)?Number(e.syncProgress):0}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),void 0!==e.syncProgress&&(t.syncProgress=Math.round(e.syncProgress)),t},fromPartial(e){const t={offline:"",syncProgress:0};return t.offline=e.offline??"",t.syncProgress=e.syncProgress??0,t}},t.Item={encode(e,n=r.default.Writer.create()){""!==e.headerField&&n.uint32(10).string(e.headerField),0!==e.addTime&&n.uint32(16).uint32(e.addTime),void 0!==e.addedBy&&v.User.encode(e.addedBy,n.uint32(26).fork()).ldelim(),void 0!==e.trackMetadata&&u.TrackMetadata.encode(e.trackMetadata,n.uint32(34).fork()).ldelim(),void 0!==e.trackCollectionState&&g.TrackCollectionState.encode(e.trackCollectionState,n.uint32(42).fork()).ldelim(),void 0!==e.trackOfflineState&&g.TrackOfflineState.encode(e.trackOfflineState,n.uint32(50).fork()).ldelim(),""!==e.rowId&&n.uint32(58).string(e.rowId),void 0!==e.trackPlayState&&f.TrackPlayState.encode(e.trackPlayState,n.uint32(66).fork()).ldelim();for(const t of e.formatListAttributes)m.FormatListAttribute.encode(t,n.uint32(74).fork()).ldelim();void 0!==e.episodeMetadata&&s.EpisodeMetadata.encode(e.episodeMetadata,n.uint32(82).fork()).ldelim(),void 0!==e.episodeOfflineState&&_.EpisodeSyncState.encode(e.episodeOfflineState,n.uint32(90).fork()).ldelim(),void 0!==e.episodeCollectionState&&a.EpisodeCollectionState.encode(e.episodeCollectionState,n.uint32(98).fork()).ldelim(),void 0!==e.episodePlayState&&p.EpisodePlayState.encode(e.episodePlayState,n.uint32(106).fork()).ldelim(),void 0!==e.displayCovers&&c.ImageGroup.encode(e.displayCovers,n.uint32(114).fork()).ldelim();for(const o of e.signals)t.ItemSignal.encode(o,n.uint32(122).fork()).ldelim();!0===e.isRecommendation&&n.uint32(128).bool(e.isRecommendation);for(const t of e.extension)l.Extension.encode(t,n.uint32(138).fork()).ldelim();return""!==e.uri&&n.uint32(146).string(e.uri),void 0!==e.offlineState&&t.ItemOfflineState.encode(e.offlineState,n.uint32(154).fork()).ldelim(),n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const d={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,signals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0};for(;o.pos>>3){case 1:d.headerField=o.string();break;case 2:d.addTime=o.uint32();break;case 3:d.addedBy=v.User.decode(o,o.uint32());break;case 4:d.trackMetadata=u.TrackMetadata.decode(o,o.uint32());break;case 5:d.trackCollectionState=g.TrackCollectionState.decode(o,o.uint32());break;case 6:d.trackOfflineState=g.TrackOfflineState.decode(o,o.uint32());break;case 7:d.rowId=o.string();break;case 8:d.trackPlayState=f.TrackPlayState.decode(o,o.uint32());break;case 9:d.formatListAttributes.push(m.FormatListAttribute.decode(o,o.uint32()));break;case 10:d.episodeMetadata=s.EpisodeMetadata.decode(o,o.uint32());break;case 11:d.episodeOfflineState=_.EpisodeSyncState.decode(o,o.uint32());break;case 12:d.episodeCollectionState=a.EpisodeCollectionState.decode(o,o.uint32());break;case 13:d.episodePlayState=p.EpisodePlayState.decode(o,o.uint32());break;case 14:d.displayCovers=c.ImageGroup.decode(o,o.uint32());break;case 15:d.signals.push(t.ItemSignal.decode(o,o.uint32()));break;case 16:d.isRecommendation=o.bool();break;case 17:d.extension.push(l.Extension.decode(o,o.uint32()));break;case 18:d.uri=o.string();break;case 19:d.offlineState=t.ItemOfflineState.decode(o,o.uint32());break;default:o.skipType(7&e)}}return d},fromJSON:e=>({headerField:T(e.headerField)?String(e.headerField):"",addTime:T(e.addTime)?Number(e.addTime):0,addedBy:T(e.addedBy)?v.User.fromJSON(e.addedBy):void 0,trackMetadata:T(e.trackMetadata)?u.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:T(e.trackCollectionState)?g.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackOfflineState:T(e.trackOfflineState)?g.TrackOfflineState.fromJSON(e.trackOfflineState):void 0,rowId:T(e.rowId)?String(e.rowId):"",trackPlayState:T(e.trackPlayState)?f.TrackPlayState.fromJSON(e.trackPlayState):void 0,formatListAttributes:Array.isArray(e?.formatListAttributes)?e.formatListAttributes.map((e=>m.FormatListAttribute.fromJSON(e))):[],episodeMetadata:T(e.episodeMetadata)?s.EpisodeMetadata.fromJSON(e.episodeMetadata):void 0,episodeOfflineState:T(e.episodeOfflineState)?_.EpisodeSyncState.fromJSON(e.episodeOfflineState):void 0,episodeCollectionState:T(e.episodeCollectionState)?a.EpisodeCollectionState.fromJSON(e.episodeCollectionState):void 0,episodePlayState:T(e.episodePlayState)?p.EpisodePlayState.fromJSON(e.episodePlayState):void 0,displayCovers:T(e.displayCovers)?c.ImageGroup.fromJSON(e.displayCovers):void 0,signals:Array.isArray(e?.signals)?e.signals.map((e=>t.ItemSignal.fromJSON(e))):[],isRecommendation:!!T(e.isRecommendation)&&Boolean(e.isRecommendation),extension:Array.isArray(e?.extension)?e.extension.map((e=>l.Extension.fromJSON(e))):[],uri:T(e.uri)?String(e.uri):"",offlineState:T(e.offlineState)?t.ItemOfflineState.fromJSON(e.offlineState):void 0}),toJSON(e){const n={};return void 0!==e.headerField&&(n.headerField=e.headerField),void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.addedBy&&(n.addedBy=e.addedBy?v.User.toJSON(e.addedBy):void 0),void 0!==e.trackMetadata&&(n.trackMetadata=e.trackMetadata?u.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(n.trackCollectionState=e.trackCollectionState?g.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(n.trackOfflineState=e.trackOfflineState?g.TrackOfflineState.toJSON(e.trackOfflineState):void 0),void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.trackPlayState&&(n.trackPlayState=e.trackPlayState?f.TrackPlayState.toJSON(e.trackPlayState):void 0),e.formatListAttributes?n.formatListAttributes=e.formatListAttributes.map((e=>e?m.FormatListAttribute.toJSON(e):void 0)):n.formatListAttributes=[],void 0!==e.episodeMetadata&&(n.episodeMetadata=e.episodeMetadata?s.EpisodeMetadata.toJSON(e.episodeMetadata):void 0),void 0!==e.episodeOfflineState&&(n.episodeOfflineState=e.episodeOfflineState?_.EpisodeSyncState.toJSON(e.episodeOfflineState):void 0),void 0!==e.episodeCollectionState&&(n.episodeCollectionState=e.episodeCollectionState?a.EpisodeCollectionState.toJSON(e.episodeCollectionState):void 0),void 0!==e.episodePlayState&&(n.episodePlayState=e.episodePlayState?p.EpisodePlayState.toJSON(e.episodePlayState):void 0),void 0!==e.displayCovers&&(n.displayCovers=e.displayCovers?c.ImageGroup.toJSON(e.displayCovers):void 0),e.signals?n.signals=e.signals.map((e=>e?t.ItemSignal.toJSON(e):void 0)):n.signals=[],void 0!==e.isRecommendation&&(n.isRecommendation=e.isRecommendation),e.extension?n.extension=e.extension.map((e=>e?l.Extension.toJSON(e):void 0)):n.extension=[],void 0!==e.uri&&(n.uri=e.uri),void 0!==e.offlineState&&(n.offlineState=e.offlineState?t.ItemOfflineState.toJSON(e.offlineState):void 0),n},fromPartial(e){const n={headerField:"",addTime:0,addedBy:void 0,trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,rowId:"",trackPlayState:void 0,formatListAttributes:[],episodeMetadata:void 0,episodeOfflineState:void 0,episodeCollectionState:void 0,episodePlayState:void 0,displayCovers:void 0,signals:[],isRecommendation:!1,extension:[],uri:"",offlineState:void 0};return n.headerField=e.headerField??"",n.addTime=e.addTime??0,n.addedBy=void 0!==e.addedBy&&null!==e.addedBy?v.User.fromPartial(e.addedBy):void 0,n.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?u.TrackMetadata.fromPartial(e.trackMetadata):void 0,n.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?g.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,n.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?g.TrackOfflineState.fromPartial(e.trackOfflineState):void 0,n.rowId=e.rowId??"",n.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?f.TrackPlayState.fromPartial(e.trackPlayState):void 0,n.formatListAttributes=e.formatListAttributes?.map((e=>m.FormatListAttribute.fromPartial(e)))||[],n.episodeMetadata=void 0!==e.episodeMetadata&&null!==e.episodeMetadata?s.EpisodeMetadata.fromPartial(e.episodeMetadata):void 0,n.episodeOfflineState=void 0!==e.episodeOfflineState&&null!==e.episodeOfflineState?_.EpisodeSyncState.fromPartial(e.episodeOfflineState):void 0,n.episodeCollectionState=void 0!==e.episodeCollectionState&&null!==e.episodeCollectionState?a.EpisodeCollectionState.fromPartial(e.episodeCollectionState):void 0,n.episodePlayState=void 0!==e.episodePlayState&&null!==e.episodePlayState?p.EpisodePlayState.fromPartial(e.episodePlayState):void 0,n.displayCovers=void 0!==e.displayCovers&&null!==e.displayCovers?c.ImageGroup.fromPartial(e.displayCovers):void 0,n.signals=e.signals?.map((e=>t.ItemSignal.fromPartial(e)))||[],n.isRecommendation=e.isRecommendation??!1,n.extension=e.extension?.map((e=>l.Extension.fromPartial(e)))||[],n.uri=e.uri??"",n.offlineState=void 0!==e.offlineState&&null!==e.offlineState?t.ItemOfflineState.fromPartial(e.offlineState):void 0,n}},t.Lens={encode:(e,t=r.default.Writer.create())=>(""!==e.name&&t.uint32(10).string(e.name),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=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:T(e.name)?String(e.name):""}),toJSON(e){const t={};return void 0!==e.name&&(t.name=e.name),t},fromPartial(e){const t={name:""};return t.name=e.name??"",t}},t.LensState={encode(e,n=r.default.Writer.create()){for(const o of e.requestedLenses)t.Lens.encode(o,n.uint32(10).fork()).ldelim();for(const o of e.appliedLenses)t.Lens.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={requestedLenses:[],appliedLenses:[]};for(;o.pos>>3){case 1:a.requestedLenses.push(t.Lens.decode(o,o.uint32()));break;case 2:a.appliedLenses.push(t.Lens.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({requestedLenses:Array.isArray(e?.requestedLenses)?e.requestedLenses.map((e=>t.Lens.fromJSON(e))):[],appliedLenses:Array.isArray(e?.appliedLenses)?e.appliedLenses.map((e=>t.Lens.fromJSON(e))):[]}),toJSON(e){const n={};return e.requestedLenses?n.requestedLenses=e.requestedLenses.map((e=>e?t.Lens.toJSON(e):void 0)):n.requestedLenses=[],e.appliedLenses?n.appliedLenses=e.appliedLenses.map((e=>e?t.Lens.toJSON(e):void 0)):n.appliedLenses=[],n},fromPartial(e){const n={requestedLenses:[],appliedLenses:[]};return n.requestedLenses=e.requestedLenses?.map((e=>t.Lens.fromPartial(e)))||[],n.appliedLenses=e.appliedLenses?.map((e=>t.Lens.fromPartial(e)))||[],n}},t.Playlist={encode:(e,n=r.default.Writer.create())=>(void 0!==e.playlistMetadata&&m.PlaylistMetadata.encode(e.playlistMetadata,n.uint32(10).fork()).ldelim(),void 0!==e.playlistOfflineState&&m.PlaylistOfflineState.encode(e.playlistOfflineState,n.uint32(18).fork()).ldelim(),void 0!==e.lenses&&t.LensState.encode(e.lenses,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};for(;o.pos>>3){case 1:a.playlistMetadata=m.PlaylistMetadata.decode(o,o.uint32());break;case 2:a.playlistOfflineState=m.PlaylistOfflineState.decode(o,o.uint32());break;case 3:a.lenses=t.LensState.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({playlistMetadata:T(e.playlistMetadata)?m.PlaylistMetadata.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:T(e.playlistOfflineState)?m.PlaylistOfflineState.fromJSON(e.playlistOfflineState):void 0,lenses:T(e.lenses)?t.LensState.fromJSON(e.lenses):void 0}),toJSON(e){const n={};return void 0!==e.playlistMetadata&&(n.playlistMetadata=e.playlistMetadata?m.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(n.playlistOfflineState=e.playlistOfflineState?m.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),void 0!==e.lenses&&(n.lenses=e.lenses?t.LensState.toJSON(e.lenses):void 0),n},fromPartial(e){const n={playlistMetadata:void 0,playlistOfflineState:void 0,lenses:void 0};return n.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?m.PlaylistMetadata.fromPartial(e.playlistMetadata):void 0,n.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?m.PlaylistOfflineState.fromPartial(e.playlistOfflineState):void 0,n.lenses=void 0!==e.lenses&&null!==e.lenses?t.LensState.fromPartial(e.lenses):void 0,n}},t.RecommendationItem={encode:(e,t=r.default.Writer.create())=>(void 0!==e.trackMetadata&&u.TrackMetadata.encode(e.trackMetadata,t.uint32(10).fork()).ldelim(),void 0!==e.trackCollectionState&&g.TrackCollectionState.encode(e.trackCollectionState,t.uint32(18).fork()).ldelim(),void 0!==e.trackOfflineState&&g.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};for(;n.pos>>3){case 1:i.trackMetadata=u.TrackMetadata.decode(n,n.uint32());break;case 2:i.trackCollectionState=g.TrackCollectionState.decode(n,n.uint32());break;case 3:i.trackOfflineState=g.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=>({trackMetadata:T(e.trackMetadata)?u.TrackMetadata.fromJSON(e.trackMetadata):void 0,trackCollectionState:T(e.trackCollectionState)?g.TrackCollectionState.fromJSON(e.trackCollectionState):void 0,trackOfflineState:T(e.trackOfflineState)?g.TrackOfflineState.fromJSON(e.trackOfflineState):void 0,trackPlayState:T(e.trackPlayState)?f.TrackPlayState.fromJSON(e.trackPlayState):void 0}),toJSON(e){const t={};return void 0!==e.trackMetadata&&(t.trackMetadata=e.trackMetadata?u.TrackMetadata.toJSON(e.trackMetadata):void 0),void 0!==e.trackCollectionState&&(t.trackCollectionState=e.trackCollectionState?g.TrackCollectionState.toJSON(e.trackCollectionState):void 0),void 0!==e.trackOfflineState&&(t.trackOfflineState=e.trackOfflineState?g.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={trackMetadata:void 0,trackCollectionState:void 0,trackOfflineState:void 0,trackPlayState:void 0};return t.trackMetadata=void 0!==e.trackMetadata&&null!==e.trackMetadata?u.TrackMetadata.fromPartial(e.trackMetadata):void 0,t.trackCollectionState=void 0!==e.trackCollectionState&&null!==e.trackCollectionState?g.TrackCollectionState.fromPartial(e.trackCollectionState):void 0,t.trackOfflineState=void 0!==e.trackOfflineState&&null!==e.trackOfflineState?g.TrackOfflineState.fromPartial(e.trackOfflineState):void 0,t.trackPlayState=void 0!==e.trackPlayState&&null!==e.trackPlayState?f.TrackPlayState.fromPartial(e.trackPlayState):void 0,t}},t.Collaborator={encode:(e,t=r.default.Writer.create())=>(void 0!==e.user&&v.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 r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};for(;n.pos>>3){case 1:i.user=v.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=>({user:T(e.user)?v.User.fromJSON(e.user):void 0,numberOfItems:T(e.numberOfItems)?Number(e.numberOfItems):0,numberOfTracks:T(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:T(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,isOwner:!!T(e.isOwner)&&Boolean(e.isOwner)}),toJSON(e){const t={};return void 0!==e.user&&(t.user=e.user?v.User.toJSON(e.user):void 0),void 0!==e.numberOfItems&&(t.numberOfItems=Math.round(e.numberOfItems)),void 0!==e.numberOfTracks&&(t.numberOfTracks=Math.round(e.numberOfTracks)),void 0!==e.numberOfEpisodes&&(t.numberOfEpisodes=Math.round(e.numberOfEpisodes)),void 0!==e.isOwner&&(t.isOwner=e.isOwner),t},fromPartial(e){const t={user:void 0,numberOfItems:0,numberOfTracks:0,numberOfEpisodes:0,isOwner:!1};return t.user=void 0!==e.user&&null!==e.user?v.User.fromPartial(e.user):void 0,t.numberOfItems=e.numberOfItems??0,t.numberOfTracks=e.numberOfTracks??0,t.numberOfEpisodes=e.numberOfEpisodes??0,t.isOwner=e.isOwner??!1,t}},t.Collaborators={encode(e,n=r.default.Writer.create()){0!==e.count&&n.uint32(8).uint32(e.count);for(const o of e.collaborator)t.Collaborator.encode(o,n.uint32(18).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={count:0,collaborator:[]};for(;o.pos>>3){case 1:a.count=o.uint32();break;case 2:a.collaborator.push(t.Collaborator.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:T(e.count)?Number(e.count):0,collaborator:Array.isArray(e?.collaborator)?e.collaborator.map((e=>t.Collaborator.fromJSON(e))):[]}),toJSON(e){const n={};return void 0!==e.count&&(n.count=Math.round(e.count)),e.collaborator?n.collaborator=e.collaborator.map((e=>e?t.Collaborator.toJSON(e):void 0)):n.collaborator=[],n},fromPartial(e){const n={count:0,collaborator:[]};return n.count=e.count??0,n.collaborator=e.collaborator?.map((e=>t.Collaborator.fromPartial(e)))||[],n}},t.NumberOfItemsForLinkType={encode:(e,t=r.default.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.numItems&&t.uint32(16).int32(e.numItems),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={linkType:0,numItems:0};for(;n.pos>>3){case 1:i.linkType=n.int32();break;case 2:i.numItems=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({linkType:T(e.linkType)?(0,y.linkTypeFromJSON)(e.linkType):0,numItems:T(e.numItems)?Number(e.numItems):0}),toJSON(e){const t={};return void 0!==e.linkType&&(t.linkType=(0,y.linkTypeToJSON)(e.linkType)),void 0!==e.numItems&&(t.numItems=Math.round(e.numItems)),t},fromPartial(e){const t={linkType:0,numItems:0};return t.linkType=e.linkType??0,t.numItems=e.numItems??0,t}},t.Response={encode(e,n=r.default.Writer.create()){for(const o of e.item)t.Item.encode(o,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 o of e.recommendations)t.RecommendationItem.encode(o,n.uint32(82).fork()).ldelim();!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&&h.Permission.encode(e.basePermission,n.uint32(186).fork()).ldelim(),void 0!==e.userCapabilities&&h.Capabilities.encode(e.userCapabilities,n.uint32(194).fork()).ldelim();for(const o of e.numberOfItemsPerLinkType)t.NumberOfItemsForLinkType.encode(o,n.uint32(202).fork()).ldelim();return n},decode(e,n){const o=e instanceof r.default.Reader?e:new r.default.Reader(e);let i=void 0===n?o.len:o.pos+n;const a={item:[],playlist:void 0,unfilteredLength:0,unrangedLength:0,duration:"0",loadingContents:!1,lastModification:"0",numFollowers:0,playable:!1,recommendations:[],hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0,collaborators:void 0,basePermission:void 0,userCapabilities:void 0,numberOfItemsPerLinkType:[]};for(;o.pos>>3){case 1:a.item.push(t.Item.decode(o,o.uint32()));break;case 2:a.playlist=t.Playlist.decode(o,o.uint32());break;case 3:a.unfilteredLength=o.uint32();break;case 4:a.unrangedLength=o.uint32();break;case 5:a.duration=A(o.uint64());break;case 6:a.loadingContents=o.bool();break;case 7:a.lastModification=A(o.uint64());break;case 8:a.numFollowers=o.uint32();break;case 9:a.playable=o.bool();break;case 10:a.recommendations.push(t.RecommendationItem.decode(o,o.uint32()));break;case 11:a.hasExplicitContent=o.bool();break;case 12:a.containsSpotifyTracks=o.bool();break;case 13:a.containsEpisodes=o.bool();break;case 14:a.onlyContainsExplicit=o.bool();break;case 15:a.containsAudioEpisodes=o.bool();break;case 16:a.containsTracks=o.bool();break;case 17:a.isOnDemandInFree=o.bool();break;case 18:a.numberOfTracks=o.uint32();break;case 19:a.numberOfEpisodes=o.uint32();break;case 20:a.preferLinearPlayback=o.bool();break;case 21:a.onDemandInFreeReason=o.int32();break;case 22:a.collaborators=t.Collaborators.decode(o,o.uint32());break;case 23:a.basePermission=h.Permission.decode(o,o.uint32());break;case 24:a.userCapabilities=h.Capabilities.decode(o,o.uint32());break;case 25:a.numberOfItemsPerLinkType.push(t.NumberOfItemsForLinkType.decode(o,o.uint32()));break;default:o.skipType(7&e)}}return a},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[],playlist:T(e.playlist)?t.Playlist.fromJSON(e.playlist):void 0,unfilteredLength:T(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:T(e.unrangedLength)?Number(e.unrangedLength):0,duration:T(e.duration)?String(e.duration):"0",loadingContents:!!T(e.loadingContents)&&Boolean(e.loadingContents),lastModification:T(e.lastModification)?String(e.lastModification):"0",numFollowers:T(e.numFollowers)?Number(e.numFollowers):0,playable:!!T(e.playable)&&Boolean(e.playable),recommendations:Array.isArray(e?.recommendations)?e.recommendations.map((e=>t.RecommendationItem.fromJSON(e))):[],hasExplicitContent:!!T(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!T(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsEpisodes:!!T(e.containsEpisodes)&&Boolean(e.containsEpisodes),onlyContainsExplicit:!!T(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),containsAudioEpisodes:!!T(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),containsTracks:!!T(e.containsTracks)&&Boolean(e.containsTracks),isOnDemandInFree:!!T(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),numberOfTracks:T(e.numberOfTracks)?Number(e.numberOfTracks):0,numberOfEpisodes:T(e.numberOfEpisodes)?Number(e.numberOfEpisodes):0,preferLinearPlayback:!!T(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:T(e.onDemandInFreeReason)?(0,d.onDemandInFreeReasonFromJSON)(e.onDemandInFreeReason):0,collaborators:T(e.collaborators)?t.Collaborators.fromJSON(e.collaborators):void 0,basePermission:T(e.basePermission)?h.Permission.fromJSON(e.basePermission):void 0,userCapabilities:T(e.userCapabilities)?h.Capabilities.fromJSON(e.userCapabilities):void 0,numberOfItemsPerLinkType:Array.isArray(e?.numberOfItemsPerLinkType)?e.numberOfItemsPerLinkType.map((e=>t.NumberOfItemsForLinkType.fromJSON(e))):[]}),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=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(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=Math.round(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=Math.round(e.numberOfTracks)),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=Math.round(e.numberOfEpisodes)),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=(0,d.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?h.Permission.toJSON(e.basePermission):void 0),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities?h.Capabilities.toJSON(e.userCapabilities):void 0),e.numberOfItemsPerLinkType?n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType.map((e=>e?t.NumberOfItemsForLinkType.toJSON(e):void 0)):n.numberOfItemsPerLinkType=[],n},fromPartial(e){const n={item:[],playlist:void 0,unfilteredLength:0,unrangedLength:0,duration:"0",loadingContents:!1,lastModification:"0",numFollowers:0,playable:!1,recommendations:[],hasExplicitContent:!1,containsSpotifyTracks:!1,containsEpisodes:!1,onlyContainsExplicit:!1,containsAudioEpisodes:!1,containsTracks:!1,isOnDemandInFree:!1,numberOfTracks:0,numberOfEpisodes:0,preferLinearPlayback:!1,onDemandInFreeReason:0,collaborators:void 0,basePermission:void 0,userCapabilities:void 0,numberOfItemsPerLinkType:[]};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.playlist=void 0!==e.playlist&&null!==e.playlist?t.Playlist.fromPartial(e.playlist):void 0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.duration=e.duration??"0",n.loadingContents=e.loadingContents??!1,n.lastModification=e.lastModification??"0",n.numFollowers=e.numFollowers??0,n.playable=e.playable??!1,n.recommendations=e.recommendations?.map((e=>t.RecommendationItem.fromPartial(e)))||[],n.hasExplicitContent=e.hasExplicitContent??!1,n.containsSpotifyTracks=e.containsSpotifyTracks??!1,n.containsEpisodes=e.containsEpisodes??!1,n.onlyContainsExplicit=e.onlyContainsExplicit??!1,n.containsAudioEpisodes=e.containsAudioEpisodes??!1,n.containsTracks=e.containsTracks??!1,n.isOnDemandInFree=e.isOnDemandInFree??!1,n.numberOfTracks=e.numberOfTracks??0,n.numberOfEpisodes=e.numberOfEpisodes??0,n.preferLinearPlayback=e.preferLinearPlayback??!1,n.onDemandInFreeReason=e.onDemandInFreeReason??0,n.collaborators=void 0!==e.collaborators&&null!==e.collaborators?t.Collaborators.fromPartial(e.collaborators):void 0,n.basePermission=void 0!==e.basePermission&&null!==e.basePermission?h.Permission.fromPartial(e.basePermission):void 0,n.userCapabilities=void 0!==e.userCapabilities&&null!==e.userCapabilities?h.Capabilities.fromPartial(e.userCapabilities):void 0,n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType?.map((e=>t.NumberOfItemsForLinkType.fromPartial(e)))||[],n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},82706:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistResyncResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistResyncResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?r.ResponseStatus.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},36912:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistSetBasePermissionResponse=t.PlaylistSetBasePermissionRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(64937),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistSetBasePermissionRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.request&&r.SetBasePermissionRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={uri:"",request:void 0};for(;n.pos>>3){case 1:a.uri=n.string();break;case 2:a.request=r.SetBasePermissionRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({uri:s(e.uri)?String(e.uri):"",request:s(e.request)?r.SetBasePermissionRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.request&&(t.request=e.request?r.SetBasePermissionRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={uri:"",request:void 0};return t.uri=e.uri??"",t.request=void 0!==e.request&&null!==e.request?r.SetBasePermissionRequest.fromPartial(e.request):void 0,t}},t.PlaylistSetBasePermissionResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.SetBasePermissionResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.SetBasePermissionResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.SetBasePermissionResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.SetBasePermissionResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.SetBasePermissionResponse.fromPartial(e.response):void 0,t}}},64270:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistSetMemberPermissionResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistSetMemberPermissionResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON(e){return{status:(t=e.status,null!=t?r.ResponseStatus.fromJSON(e.status):void 0)};var t},toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},64937:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetBasePermissionResponse=t.SetBasePermissionRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16056);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.SetBasePermissionRequest={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={permissionLevel:0,timeoutMs:0};for(;n.pos>>3){case 1:r.permissionLevel=n.int32();break;case 2:r.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({permissionLevel:a(e.permissionLevel)?(0,r.permissionLevelFromJSON)(e.permissionLevel):0,timeoutMs:a(e.timeoutMs)?Number(e.timeoutMs):0}),toJSON(e){const t={};return void 0!==e.permissionLevel&&(t.permissionLevel=(0,r.permissionLevelToJSON)(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=Math.round(e.timeoutMs)),t},fromPartial(e){const t={permissionLevel:0,timeoutMs:0};return t.permissionLevel=e.permissionLevel??0,t.timeoutMs=e.timeoutMs??0,t}},t.SetBasePermissionResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.basePermission&&r.Permission.encode(e.basePermission,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={basePermission:void 0};for(;n.pos>>3==1)a.basePermission=r.Permission.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({basePermission:a(e.basePermission)?r.Permission.fromJSON(e.basePermission):void 0}),toJSON(e){const t={};return void 0!==e.basePermission&&(t.basePermission=e.basePermission?r.Permission.toJSON(e.basePermission):void 0),t},fromPartial(e){const t={basePermission:void 0};return t.basePermission=void 0!==e.basePermission&&null!==e.basePermission?r.Permission.fromPartial(e.basePermission):void 0,t}}},58779:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistSetTokenResponse=t.PlaylistSetTokenRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.PlaylistSetTokenRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.uri&&t.uint32(10).string(e.uri),""!==e.token&&t.uint32(18).string(e.token),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={uri:"",token:""};for(;n.pos>>3){case 1:r.uri=n.string();break;case 2:r.token=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({uri:a(e.uri)?String(e.uri):"",token:a(e.token)?String(e.token):""}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.token&&(t.token=e.token),t},fromPartial(e){const t={uri:"",token:""};return t.uri=e.uri??"",t.token=e.token??"",t}},t.PlaylistSetTokenResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},35708:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistItemSignalResponse=t.PlaylistItemSignalRequest=t.Signal=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87445);function a(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.Signal={encode:(e,t=i.default.Writer.create())=>(""!==e.identifier&&t.uint32(10).string(e.identifier),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={identifier:""};for(;n.pos>>3==1)r.identifier=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({identifier:a(e.identifier)?String(e.identifier):""}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),t},fromPartial(e){const t={identifier:""};return t.identifier=e.identifier??"",t}},t.PlaylistItemSignalRequest={encode:(e,n=i.default.Writer.create())=>(""!==e.itemId&&n.uint32(10).string(e.itemId),""!==e.itemUri&&n.uint32(18).string(e.itemUri),void 0!==e.signal&&t.Signal.encode(e.signal,n.uint32(26).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={itemId:"",itemUri:"",signal:void 0};for(;o.pos>>3){case 1:a.itemId=o.string();break;case 2:a.itemUri=o.string();break;case 3:a.signal=t.Signal.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({itemId:a(e.itemId)?String(e.itemId):"",itemUri:a(e.itemUri)?String(e.itemUri):"",signal:a(e.signal)?t.Signal.fromJSON(e.signal):void 0}),toJSON(e){const n={};return void 0!==e.itemId&&(n.itemId=e.itemId),void 0!==e.itemUri&&(n.itemUri=e.itemUri),void 0!==e.signal&&(n.signal=e.signal?t.Signal.toJSON(e.signal):void 0),n},fromPartial(e){const n={itemId:"",itemUri:"",signal:void 0};return n.itemId=e.itemId??"",n.itemUri=e.itemUri??"",n.signal=void 0!==e.signal&&null!==e.signal?t.Signal.fromPartial(e.signal):void 0,n}},t.PlaylistItemSignalResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={status:void 0};for(;n.pos>>3==1)a.status=r.ResponseStatus.decode(n,n.uint32());else n.skipType(7&e)}return a},fromJSON:e=>({status:a(e.status)?r.ResponseStatus.fromJSON(e.status):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.ResponseStatus.toJSON(e.status):void 0),t},fromPartial(e){const t={status:void 0};return t.status=void 0!==e.status&&null!==e.status?r.ResponseStatus.fromPartial(e.status):void 0,t}}},28848:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.TrackCollectionState={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isInCollection:!!r(e.isInCollection)&&Boolean(e.isInCollection),canAddToCollection:!!r(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackOfflineState={encode:(e,t=i.default.Writer.create())=>(""!==e.offline&&t.uint32(10).string(e.offline),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:""};for(;n.pos>>3==1)r.offline=n.string();else n.skipType(7&e)}return r},fromJSON:e=>({offline:r(e.offline)?String(e.offline):""}),toJSON(e){const t={};return void 0!==e.offline&&(t.offline=e.offline),t},fromPartial(e){const t={offline:""};return t.offline=e.offline??"",t}}},39081:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.User=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.User={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};for(;n.pos>>3){case 1:r.link=n.string();break;case 2:r.username=n.string();break;case 3:r.displayName=n.string();break;case 4:r.imageUri=n.string();break;case 5:r.thumbnailUri=n.string();break;case 6:r.color=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:r(e.link)?String(e.link):"",username:r(e.username)?String(e.username):"",displayName:r(e.displayName)?String(e.displayName):"",imageUri:r(e.imageUri)?String(e.imageUri):"",thumbnailUri:r(e.thumbnailUri)?String(e.thumbnailUri):"",color:r(e.color)?Number(e.color):0}),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=Math.round(e.color)),t},fromPartial(e){const t={link:"",username:"",displayName:"",imageUri:"",thumbnailUri:"",color:0};return t.link=e.link??"",t.username=e.username??"",t.displayName=e.displayName??"",t.imageUri=e.imageUri??"",t.thumbnailUri=e.thumbnailUri??"",t.color=e.color??0,t}}},34992:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.AlbumDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.copyrights=n.bool();break;case 4:r.covers=n.bool();break;case 5:r.year=n.bool();break;case 6:r.numDiscs=n.bool();break;case 7:r.numTracks=n.bool();break;case 8:r.playability=n.bool();break;case 9:r.isPremiumOnly=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),copyrights:!!r(e.copyrights)&&Boolean(e.copyrights),covers:!!r(e.covers)&&Boolean(e.covers),year:!!r(e.year)&&Boolean(e.year),numDiscs:!!r(e.numDiscs)&&Boolean(e.numDiscs),numTracks:!!r(e.numTracks)&&Boolean(e.numTracks),playability:!!r(e.playability)&&Boolean(e.playability),isPremiumOnly:!!r(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){const t={link:!1,name:!1,copyrights:!1,covers:!1,year:!1,numDiscs:!1,numTracks:!1,playability:!1,isPremiumOnly:!1};return t.link=e.link??!1,t.name=e.name??!1,t.copyrights=e.copyrights??!1,t.covers=e.covers??!1,t.year=e.year??!1,t.numDiscs=e.numDiscs??!1,t.numTracks=e.numTracks??!1,t.playability=e.playability??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t}},t.AlbumCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,numTracksInCollection:!1,complete:!1};for(;n.pos>>3){case 1:r.collectionLink=n.bool();break;case 2:r.numTracksInCollection=n.bool();break;case 3:r.complete=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),complete:!!r(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){const t={collectionLink:!1,numTracksInCollection:!1,complete:!1};return t.collectionLink=e.collectionLink??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.complete=e.complete??!1,t}},t.AlbumSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},42430:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ArtistDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,isVariousArtists:!1,portraits:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.isVariousArtists=n.bool();break;case 4:r.portraits=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),isVariousArtists:!!r(e.isVariousArtists)&&Boolean(e.isVariousArtists),portraits:!!r(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){const t={link:!1,name:!1,isVariousArtists:!1,portraits:!1};return t.link=e.link??!1,t.name=e.name??!1,t.isVariousArtists=e.isVariousArtists??!1,t.portraits=e.portraits??!1,t}},t.ArtistCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.collectionLink=n.bool();break;case 2:r.isFollowed=n.bool();break;case 3:r.numTracksInCollection=n.bool();break;case 4:r.numAlbumsInCollection=n.bool();break;case 5:r.isBanned=n.bool();break;case 6:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({collectionLink:!!r(e.collectionLink)&&Boolean(e.collectionLink),isFollowed:!!r(e.isFollowed)&&Boolean(e.isFollowed),numTracksInCollection:!!r(e.numTracksInCollection)&&Boolean(e.numTracksInCollection),numAlbumsInCollection:!!r(e.numAlbumsInCollection)&&Boolean(e.numAlbumsInCollection),isBanned:!!r(e.isBanned)&&Boolean(e.isBanned),canBan:!!r(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){const t={collectionLink:!1,isFollowed:!1,numTracksInCollection:!1,numAlbumsInCollection:!1,isBanned:!1,canBan:!1};return t.collectionLink=e.collectionLink??!1,t.isFollowed=e.isFollowed??!1,t.numTracksInCollection=e.numTracksInCollection??!1,t.numAlbumsInCollection=e.numAlbumsInCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.ArtistSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={inferredOffline:!1,offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.inferredOffline=n.bool();break;case 2:r.offlineState=n.bool();break;case 3:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({inferredOffline:!!r(e.inferredOffline)&&Boolean(e.inferredOffline),offlineState:!!r(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!r(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){const t={inferredOffline:!1,offlineState:!1,syncProgress:!1};return t.inferredOffline=e.inferredOffline??!1,t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},73820:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodePlayedStateDecorationPolicy=t.EpisodeSyncDecorationPolicy=t.EpisodeCollectionDecorationPolicy=t.EpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.length&&t.uint32(16).bool(e.length),!0===e.name&&t.uint32(24).bool(e.name),!0===e.manifestId&&t.uint32(32).bool(e.manifestId),!0===e.previewId&&t.uint32(40).bool(e.previewId),!0===e.previewManifestId&&t.uint32(48).bool(e.previewManifestId),!0===e.description&&t.uint32(56).bool(e.description),!0===e.publishDate&&t.uint32(64).bool(e.publishDate),!0===e.covers&&t.uint32(72).bool(e.covers),!0===e.freezeFrames&&t.uint32(80).bool(e.freezeFrames),!0===e.language&&t.uint32(88).bool(e.language),!0===e.available&&t.uint32(96).bool(e.available),!0===e.mediaTypeEnum&&t.uint32(104).bool(e.mediaTypeEnum),!0===e.number&&t.uint32(112).bool(e.number),!0===e.backgroundable&&t.uint32(120).bool(e.backgroundable),!0===e.isExplicit&&t.uint32(128).bool(e.isExplicit),!0===e.type&&t.uint32(136).bool(e.type),!0===e.isMusicAndTalk&&t.uint32(144).bool(e.isMusicAndTalk),t.uint32(170).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.is19PlusOnly&&t.uint32(176).bool(e.is19PlusOnly),!0===e.isBookChapter&&t.uint32(184).bool(e.isBookChapter),!0===e.isPodcastShort&&t.uint32(192).bool(e.isPodcastShort),!0===e.isCurated&&t.uint32(200).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.length=n.bool();break;case 3:r.name=n.bool();break;case 4:r.manifestId=n.bool();break;case 5:r.previewId=n.bool();break;case 6:r.previewManifestId=n.bool();break;case 7:r.description=n.bool();break;case 8:r.publishDate=n.bool();break;case 9:r.covers=n.bool();break;case 10:r.freezeFrames=n.bool();break;case 11:r.language=n.bool();break;case 12:r.available=n.bool();break;case 13:r.mediaTypeEnum=n.bool();break;case 14:r.number=n.bool();break;case 15:r.backgroundable=n.bool();break;case 16:r.isExplicit=n.bool();break;case 17:r.type=n.bool();break;case 18:r.isMusicAndTalk=n.bool();break;case 21:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),length:!!a(e.length)&&Boolean(e.length),name:!!a(e.name)&&Boolean(e.name),manifestId:!!a(e.manifestId)&&Boolean(e.manifestId),previewId:!!a(e.previewId)&&Boolean(e.previewId),previewManifestId:!!a(e.previewManifestId)&&Boolean(e.previewManifestId),description:!!a(e.description)&&Boolean(e.description),publishDate:!!a(e.publishDate)&&Boolean(e.publishDate),covers:!!a(e.covers)&&Boolean(e.covers),freezeFrames:!!a(e.freezeFrames)&&Boolean(e.freezeFrames),language:!!a(e.language)&&Boolean(e.language),available:!!a(e.available)&&Boolean(e.available),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),number:!!a(e.number)&&Boolean(e.number),backgroundable:!!a(e.backgroundable)&&Boolean(e.backgroundable),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),type:!!a(e.type)&&Boolean(e.type),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],is19PlusOnly:!!a(e.is19PlusOnly)&&Boolean(e.is19PlusOnly),isBookChapter:!!a(e.isBookChapter)&&Boolean(e.isBookChapter),isPodcastShort:!!a(e.isPodcastShort)&&Boolean(e.isPodcastShort),isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),toJSON(e){const t={};return void 0!==e.link&&(t.link=e.link),void 0!==e.length&&(t.length=e.length),void 0!==e.name&&(t.name=e.name),void 0!==e.manifestId&&(t.manifestId=e.manifestId),void 0!==e.previewId&&(t.previewId=e.previewId),void 0!==e.previewManifestId&&(t.previewManifestId=e.previewManifestId),void 0!==e.description&&(t.description=e.description),void 0!==e.publishDate&&(t.publishDate=e.publishDate),void 0!==e.covers&&(t.covers=e.covers),void 0!==e.freezeFrames&&(t.freezeFrames=e.freezeFrames),void 0!==e.language&&(t.language=e.language),void 0!==e.available&&(t.available=e.available),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.number&&(t.number=e.number),void 0!==e.backgroundable&&(t.backgroundable=e.backgroundable),void 0!==e.isExplicit&&(t.isExplicit=e.isExplicit),void 0!==e.type&&(t.type=e.type),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.is19PlusOnly&&(t.is19PlusOnly=e.is19PlusOnly),void 0!==e.isBookChapter&&(t.isBookChapter=e.isBookChapter),void 0!==e.isPodcastShort&&(t.isPodcastShort=e.isPodcastShort),void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={link:!1,length:!1,name:!1,manifestId:!1,previewId:!1,previewManifestId:!1,description:!1,publishDate:!1,covers:!1,freezeFrames:!1,language:!1,available:!1,mediaTypeEnum:!1,number:!1,backgroundable:!1,isExplicit:!1,type:!1,isMusicAndTalk:!1,extension:[],is19PlusOnly:!1,isBookChapter:!1,isPodcastShort:!1,isCurated:!1};return t.link=e.link??!1,t.length=e.length??!1,t.name=e.name??!1,t.manifestId=e.manifestId??!1,t.previewId=e.previewId??!1,t.previewManifestId=e.previewManifestId??!1,t.description=e.description??!1,t.publishDate=e.publishDate??!1,t.covers=e.covers??!1,t.freezeFrames=e.freezeFrames??!1,t.language=e.language??!1,t.available=e.available??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.number=e.number??!1,t.backgroundable=e.backgroundable??!1,t.isExplicit=e.isExplicit??!1,t.type=e.type??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.is19PlusOnly=e.is19PlusOnly??!1,t.isBookChapter=e.isBookChapter??!1,t.isPodcastShort=e.isPodcastShort??!1,t.isCurated=e.isCurated??!1,t}},t.EpisodeCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isFollowingShow:!1,isInListenLater:!1,isNew:!1};for(;n.pos>>3){case 1:r.isFollowingShow=n.bool();break;case 2:r.isInListenLater=n.bool();break;case 3:r.isNew=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({isFollowingShow:!!a(e.isFollowingShow)&&Boolean(e.isFollowingShow),isInListenLater:!!a(e.isInListenLater)&&Boolean(e.isInListenLater),isNew:!!a(e.isNew)&&Boolean(e.isNew)}),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={isFollowingShow:!1,isInListenLater:!1,isNew:!1};return t.isFollowingShow=e.isFollowingShow??!1,t.isInListenLater=e.isInListenLater??!1,t.isNew=e.isNew??!1,t}},t.EpisodeSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}},t.EpisodePlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};for(;n.pos>>3){case 1:r.timeLeft=n.bool();break;case 2:r.isPlayed=n.bool();break;case 3:r.playable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.lastPlayedAt=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({timeLeft:!!a(e.timeLeft)&&Boolean(e.timeLeft),isPlayed:!!a(e.isPlayed)&&Boolean(e.isPlayed),playable:!!a(e.playable)&&Boolean(e.playable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),lastPlayedAt:!!a(e.lastPlayedAt)&&Boolean(e.lastPlayedAt)}),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={timeLeft:!1,isPlayed:!1,playable:!1,playabilityRestriction:!1,lastPlayedAt:!1};return t.timeLeft=e.timeLeft??!1,t.isPlayed=e.isPlayed??!1,t.playable=e.playable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.lastPlayedAt=e.lastPlayedAt??!1,t}}},47421:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.FolderDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};for(;n.pos>>3){case 1:r.rowId=n.bool();break;case 2:r.id=n.bool();break;case 3:r.link=n.bool();break;case 4:r.name=n.bool();break;case 5:r.folders=n.bool();break;case 6:r.playlists=n.bool();break;case 7:r.recursiveFolders=n.bool();break;case 8:r.recursivePlaylists=n.bool();break;case 9:r.rows=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({rowId:!!r(e.rowId)&&Boolean(e.rowId),id:!!r(e.id)&&Boolean(e.id),link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),folders:!!r(e.folders)&&Boolean(e.folders),playlists:!!r(e.playlists)&&Boolean(e.playlists),recursiveFolders:!!r(e.recursiveFolders)&&Boolean(e.recursiveFolders),recursivePlaylists:!!r(e.recursivePlaylists)&&Boolean(e.recursivePlaylists),rows:!!r(e.rows)&&Boolean(e.rows)}),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={rowId:!1,id:!1,link:!1,name:!1,folders:!1,playlists:!1,recursiveFolders:!1,recursivePlaylists:!1,rows:!1};return t.rowId=e.rowId??!1,t.id=e.id??!1,t.link=e.link??!1,t.name=e.name??!1,t.folders=e.folders??!1,t.playlists=e.playlists??!1,t.recursiveFolders=e.recursiveFolders??!1,t.recursivePlaylists=e.recursivePlaylists??!1,t.rows=e.rows??!1,t}}},33733:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(34992),a=n(42430);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAlbumDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.album&&r.AlbumDecorationPolicy.encode(e.album,t.uint32(10).fork()).ldelim(),void 0!==e.artist&&a.ArtistDecorationPolicy.encode(e.artist,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={album:void 0,artist:void 0};for(;n.pos>>3){case 1:s.album=r.AlbumDecorationPolicy.decode(n,n.uint32());break;case 2:s.artist=a.ArtistDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({album:s(e.album)?r.AlbumDecorationPolicy.fromJSON(e.album):void 0,artist:s(e.artist)?a.ArtistDecorationPolicy.fromJSON(e.artist):void 0}),toJSON(e){const t={};return void 0!==e.album&&(t.album=e.album?r.AlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?a.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?r.AlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?a.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t}}},19801:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistDecorationPolicy=t.PlaylistAllowsDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295),a=n(23630);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistAllowsDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={insert:!1,remove:!1};for(;n.pos>>3){case 1:r.insert=n.bool();break;case 2:r.remove=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({insert:!!s(e.insert)&&Boolean(e.insert),remove:!!s(e.remove)&&Boolean(e.remove)}),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={insert:!1,remove:!1};return t.insert=e.insert??!1,t.remove=e.remove??!1,t}},t.PlaylistDecorationPolicy={encode(e,n=i.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&&a.UserDecorationPolicy.encode(e.owner,n.uint32(266).fork()).ldelim(),void 0!==e.madeFor&&a.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&&a.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(),!0===e.lenses&&n.uint32(352).bool(e.lenses),!0===e.lengthIgnoringTextFilter&&n.uint32(360).bool(e.lengthIgnoringTextFilter),!0===e.numberOfItemsPerLinkType&&n.uint32(368).bool(e.numberOfItemsPerLinkType),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const s={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,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1};for(;o.pos>>3){case 1:s.rowId=o.bool();break;case 2:s.link=o.bool();break;case 3:s.name=o.bool();break;case 4:s.loadState=o.bool();break;case 5:s.loaded=o.bool();break;case 6:s.collaborative=o.bool();break;case 7:s.length=o.bool();break;case 8:s.lastModification=o.bool();break;case 9:s.totalLength=o.bool();break;case 10:s.duration=o.bool();break;case 11:s.description=o.bool();break;case 12:s.picture=o.bool();break;case 13:s.playable=o.bool();break;case 14:s.descriptionFromAnnotate=o.bool();break;case 15:s.pictureFromAnnotate=o.bool();break;case 16:s.canReportAnnotationAbuse=o.bool();break;case 17:s.followed=o.bool();break;case 18:s.followers=o.bool();break;case 19:s.ownedBySelf=o.bool();break;case 20:s.offline=o.bool();break;case 21:s.syncProgress=o.bool();break;case 22:s.published=o.bool();break;case 23:s.browsableOffline=o.bool();break;case 24:s.formatListType=o.bool();break;case 25:s.formatListAttributes=o.bool();break;case 26:s.hasExplicitContent=o.bool();break;case 27:s.containsSpotifyTracks=o.bool();break;case 28:s.containsTracks=o.bool();break;case 29:s.containsEpisodes=o.bool();break;case 30:s.containsAudioEpisodes=o.bool();break;case 31:s.onlyContainsExplicit=o.bool();break;case 32:s.isOnDemandInFree=o.bool();break;case 33:s.owner=a.UserDecorationPolicy.decode(o,o.uint32());break;case 34:s.madeFor=a.UserDecorationPolicy.decode(o,o.uint32());break;case 35:s.allows=t.PlaylistAllowsDecorationPolicy.decode(o,o.uint32());break;case 36:s.numberOfEpisodes=o.bool();break;case 37:s.numberOfTracks=o.bool();break;case 38:s.preferLinearPlayback=o.bool();break;case 39:s.onDemandInFreeReason=o.bool();break;case 40:s.collaboratingUsers=a.CollaboratingUsersDecorationPolicy.decode(o,o.uint32());break;case 41:s.basePermission=o.bool();break;case 42:s.userCapabilities=o.bool();break;case 43:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos({rowId:!!s(e.rowId)&&Boolean(e.rowId),link:!!s(e.link)&&Boolean(e.link),name:!!s(e.name)&&Boolean(e.name),loadState:!!s(e.loadState)&&Boolean(e.loadState),loaded:!!s(e.loaded)&&Boolean(e.loaded),collaborative:!!s(e.collaborative)&&Boolean(e.collaborative),length:!!s(e.length)&&Boolean(e.length),lastModification:!!s(e.lastModification)&&Boolean(e.lastModification),totalLength:!!s(e.totalLength)&&Boolean(e.totalLength),duration:!!s(e.duration)&&Boolean(e.duration),description:!!s(e.description)&&Boolean(e.description),picture:!!s(e.picture)&&Boolean(e.picture),playable:!!s(e.playable)&&Boolean(e.playable),descriptionFromAnnotate:!!s(e.descriptionFromAnnotate)&&Boolean(e.descriptionFromAnnotate),pictureFromAnnotate:!!s(e.pictureFromAnnotate)&&Boolean(e.pictureFromAnnotate),canReportAnnotationAbuse:!!s(e.canReportAnnotationAbuse)&&Boolean(e.canReportAnnotationAbuse),followed:!!s(e.followed)&&Boolean(e.followed),followers:!!s(e.followers)&&Boolean(e.followers),ownedBySelf:!!s(e.ownedBySelf)&&Boolean(e.ownedBySelf),offline:!!s(e.offline)&&Boolean(e.offline),syncProgress:!!s(e.syncProgress)&&Boolean(e.syncProgress),published:!!s(e.published)&&Boolean(e.published),browsableOffline:!!s(e.browsableOffline)&&Boolean(e.browsableOffline),formatListType:!!s(e.formatListType)&&Boolean(e.formatListType),formatListAttributes:!!s(e.formatListAttributes)&&Boolean(e.formatListAttributes),hasExplicitContent:!!s(e.hasExplicitContent)&&Boolean(e.hasExplicitContent),containsSpotifyTracks:!!s(e.containsSpotifyTracks)&&Boolean(e.containsSpotifyTracks),containsTracks:!!s(e.containsTracks)&&Boolean(e.containsTracks),containsEpisodes:!!s(e.containsEpisodes)&&Boolean(e.containsEpisodes),containsAudioEpisodes:!!s(e.containsAudioEpisodes)&&Boolean(e.containsAudioEpisodes),onlyContainsExplicit:!!s(e.onlyContainsExplicit)&&Boolean(e.onlyContainsExplicit),isOnDemandInFree:!!s(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),owner:s(e.owner)?a.UserDecorationPolicy.fromJSON(e.owner):void 0,madeFor:s(e.madeFor)?a.UserDecorationPolicy.fromJSON(e.madeFor):void 0,allows:s(e.allows)?t.PlaylistAllowsDecorationPolicy.fromJSON(e.allows):void 0,numberOfEpisodes:!!s(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),numberOfTracks:!!s(e.numberOfTracks)&&Boolean(e.numberOfTracks),preferLinearPlayback:!!s(e.preferLinearPlayback)&&Boolean(e.preferLinearPlayback),onDemandInFreeReason:!!s(e.onDemandInFreeReason)&&Boolean(e.onDemandInFreeReason),collaboratingUsers:s(e.collaboratingUsers)?a.CollaboratingUsersDecorationPolicy.fromJSON(e.collaboratingUsers):void 0,basePermission:!!s(e.basePermission)&&Boolean(e.basePermission),userCapabilities:!!s(e.userCapabilities)&&Boolean(e.userCapabilities),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],lenses:!!s(e.lenses)&&Boolean(e.lenses),lengthIgnoringTextFilter:!!s(e.lengthIgnoringTextFilter)&&Boolean(e.lengthIgnoringTextFilter),numberOfItemsPerLinkType:!!s(e.numberOfItemsPerLinkType)&&Boolean(e.numberOfItemsPerLinkType)}),toJSON(e){const n={};return void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.link&&(n.link=e.link),void 0!==e.name&&(n.name=e.name),void 0!==e.loadState&&(n.loadState=e.loadState),void 0!==e.loaded&&(n.loaded=e.loaded),void 0!==e.collaborative&&(n.collaborative=e.collaborative),void 0!==e.length&&(n.length=e.length),void 0!==e.lastModification&&(n.lastModification=e.lastModification),void 0!==e.totalLength&&(n.totalLength=e.totalLength),void 0!==e.duration&&(n.duration=e.duration),void 0!==e.description&&(n.description=e.description),void 0!==e.picture&&(n.picture=e.picture),void 0!==e.playable&&(n.playable=e.playable),void 0!==e.descriptionFromAnnotate&&(n.descriptionFromAnnotate=e.descriptionFromAnnotate),void 0!==e.pictureFromAnnotate&&(n.pictureFromAnnotate=e.pictureFromAnnotate),void 0!==e.canReportAnnotationAbuse&&(n.canReportAnnotationAbuse=e.canReportAnnotationAbuse),void 0!==e.followed&&(n.followed=e.followed),void 0!==e.followers&&(n.followers=e.followers),void 0!==e.ownedBySelf&&(n.ownedBySelf=e.ownedBySelf),void 0!==e.offline&&(n.offline=e.offline),void 0!==e.syncProgress&&(n.syncProgress=e.syncProgress),void 0!==e.published&&(n.published=e.published),void 0!==e.browsableOffline&&(n.browsableOffline=e.browsableOffline),void 0!==e.formatListType&&(n.formatListType=e.formatListType),void 0!==e.formatListAttributes&&(n.formatListAttributes=e.formatListAttributes),void 0!==e.hasExplicitContent&&(n.hasExplicitContent=e.hasExplicitContent),void 0!==e.containsSpotifyTracks&&(n.containsSpotifyTracks=e.containsSpotifyTracks),void 0!==e.containsTracks&&(n.containsTracks=e.containsTracks),void 0!==e.containsEpisodes&&(n.containsEpisodes=e.containsEpisodes),void 0!==e.containsAudioEpisodes&&(n.containsAudioEpisodes=e.containsAudioEpisodes),void 0!==e.onlyContainsExplicit&&(n.onlyContainsExplicit=e.onlyContainsExplicit),void 0!==e.isOnDemandInFree&&(n.isOnDemandInFree=e.isOnDemandInFree),void 0!==e.owner&&(n.owner=e.owner?a.UserDecorationPolicy.toJSON(e.owner):void 0),void 0!==e.madeFor&&(n.madeFor=e.madeFor?a.UserDecorationPolicy.toJSON(e.madeFor):void 0),void 0!==e.allows&&(n.allows=e.allows?t.PlaylistAllowsDecorationPolicy.toJSON(e.allows):void 0),void 0!==e.numberOfEpisodes&&(n.numberOfEpisodes=e.numberOfEpisodes),void 0!==e.numberOfTracks&&(n.numberOfTracks=e.numberOfTracks),void 0!==e.preferLinearPlayback&&(n.preferLinearPlayback=e.preferLinearPlayback),void 0!==e.onDemandInFreeReason&&(n.onDemandInFreeReason=e.onDemandInFreeReason),void 0!==e.collaboratingUsers&&(n.collaboratingUsers=e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.toJSON(e.collaboratingUsers):void 0),void 0!==e.basePermission&&(n.basePermission=e.basePermission),void 0!==e.userCapabilities&&(n.userCapabilities=e.userCapabilities),e.extension?n.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):n.extension=[],void 0!==e.lenses&&(n.lenses=e.lenses),void 0!==e.lengthIgnoringTextFilter&&(n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter),void 0!==e.numberOfItemsPerLinkType&&(n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType),n},fromPartial(e){const n={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,owner:void 0,madeFor:void 0,allows:void 0,numberOfEpisodes:!1,numberOfTracks:!1,preferLinearPlayback:!1,onDemandInFreeReason:!1,collaboratingUsers:void 0,basePermission:!1,userCapabilities:!1,extension:[],lenses:!1,lengthIgnoringTextFilter:!1,numberOfItemsPerLinkType:!1};return n.rowId=e.rowId??!1,n.link=e.link??!1,n.name=e.name??!1,n.loadState=e.loadState??!1,n.loaded=e.loaded??!1,n.collaborative=e.collaborative??!1,n.length=e.length??!1,n.lastModification=e.lastModification??!1,n.totalLength=e.totalLength??!1,n.duration=e.duration??!1,n.description=e.description??!1,n.picture=e.picture??!1,n.playable=e.playable??!1,n.descriptionFromAnnotate=e.descriptionFromAnnotate??!1,n.pictureFromAnnotate=e.pictureFromAnnotate??!1,n.canReportAnnotationAbuse=e.canReportAnnotationAbuse??!1,n.followed=e.followed??!1,n.followers=e.followers??!1,n.ownedBySelf=e.ownedBySelf??!1,n.offline=e.offline??!1,n.syncProgress=e.syncProgress??!1,n.published=e.published??!1,n.browsableOffline=e.browsableOffline??!1,n.formatListType=e.formatListType??!1,n.formatListAttributes=e.formatListAttributes??!1,n.hasExplicitContent=e.hasExplicitContent??!1,n.containsSpotifyTracks=e.containsSpotifyTracks??!1,n.containsTracks=e.containsTracks??!1,n.containsEpisodes=e.containsEpisodes??!1,n.containsAudioEpisodes=e.containsAudioEpisodes??!1,n.onlyContainsExplicit=e.onlyContainsExplicit??!1,n.isOnDemandInFree=e.isOnDemandInFree??!1,n.owner=void 0!==e.owner&&null!==e.owner?a.UserDecorationPolicy.fromPartial(e.owner):void 0,n.madeFor=void 0!==e.madeFor&&null!==e.madeFor?a.UserDecorationPolicy.fromPartial(e.madeFor):void 0,n.allows=void 0!==e.allows&&null!==e.allows?t.PlaylistAllowsDecorationPolicy.fromPartial(e.allows):void 0,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.numberOfTracks=e.numberOfTracks??!1,n.preferLinearPlayback=e.preferLinearPlayback??!1,n.onDemandInFreeReason=e.onDemandInFreeReason??!1,n.collaboratingUsers=void 0!==e.collaboratingUsers&&null!==e.collaboratingUsers?a.CollaboratingUsersDecorationPolicy.fromPartial(e.collaboratingUsers):void 0,n.basePermission=e.basePermission??!1,n.userCapabilities=e.userCapabilities??!1,n.extension=e.extension?.map((e=>e))||[],n.lenses=e.lenses??!1,n.lengthIgnoringTextFilter=e.lengthIgnoringTextFilter??!1,n.numberOfItemsPerLinkType=e.numberOfItemsPerLinkType??!1,n}}},23557:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistEpisodeDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(73820),a=n(36393),s=n(23630);function l(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistEpisodeDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.episode&&r.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&&r.EpisodeCollectionDecorationPolicy.encode(e.collection,t.uint32(42).fork()).ldelim(),void 0!==e.sync&&r.EpisodeSyncDecorationPolicy.encode(e.sync,t.uint32(50).fork()).ldelim(),void 0!==e.playedState&&r.EpisodePlayedStateDecorationPolicy.encode(e.playedState,t.uint32(58).fork()).ldelim(),void 0!==e.addedBy&&s.UserDecorationPolicy.encode(e.addedBy,t.uint32(66).fork()).ldelim(),void 0!==e.show&&a.ShowDecorationPolicy.encode(e.show,t.uint32(74).fork()).ldelim(),!0===e.signals&&t.uint32(80).bool(e.signals),!0===e.isRecommendation&&t.uint32(88).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const l={episode:void 0,rowId:!1,addTime:!1,formatListAttributes:!1,collection:void 0,sync:void 0,playedState:void 0,addedBy:void 0,show:void 0,signals:!1,isRecommendation:!1};for(;n.pos>>3){case 1:l.episode=r.EpisodeDecorationPolicy.decode(n,n.uint32());break;case 2:l.rowId=n.bool();break;case 3:l.addTime=n.bool();break;case 4:l.formatListAttributes=n.bool();break;case 5:l.collection=r.EpisodeCollectionDecorationPolicy.decode(n,n.uint32());break;case 6:l.sync=r.EpisodeSyncDecorationPolicy.decode(n,n.uint32());break;case 7:l.playedState=r.EpisodePlayedStateDecorationPolicy.decode(n,n.uint32());break;case 8:l.addedBy=s.UserDecorationPolicy.decode(n,n.uint32());break;case 9:l.show=a.ShowDecorationPolicy.decode(n,n.uint32());break;case 10:l.signals=n.bool();break;case 11:l.isRecommendation=n.bool();break;default:n.skipType(7&e)}}return l},fromJSON:e=>({episode:l(e.episode)?r.EpisodeDecorationPolicy.fromJSON(e.episode):void 0,rowId:!!l(e.rowId)&&Boolean(e.rowId),addTime:!!l(e.addTime)&&Boolean(e.addTime),formatListAttributes:!!l(e.formatListAttributes)&&Boolean(e.formatListAttributes),collection:l(e.collection)?r.EpisodeCollectionDecorationPolicy.fromJSON(e.collection):void 0,sync:l(e.sync)?r.EpisodeSyncDecorationPolicy.fromJSON(e.sync):void 0,playedState:l(e.playedState)?r.EpisodePlayedStateDecorationPolicy.fromJSON(e.playedState):void 0,addedBy:l(e.addedBy)?s.UserDecorationPolicy.fromJSON(e.addedBy):void 0,show:l(e.show)?a.ShowDecorationPolicy.fromJSON(e.show):void 0,signals:!!l(e.signals)&&Boolean(e.signals),isRecommendation:!!l(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.episode&&(t.episode=e.episode?r.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?r.EpisodeCollectionDecorationPolicy.toJSON(e.collection):void 0),void 0!==e.sync&&(t.sync=e.sync?r.EpisodeSyncDecorationPolicy.toJSON(e.sync):void 0),void 0!==e.playedState&&(t.playedState=e.playedState?r.EpisodePlayedStateDecorationPolicy.toJSON(e.playedState):void 0),void 0!==e.addedBy&&(t.addedBy=e.addedBy?s.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.show&&(t.show=e.show?a.ShowDecorationPolicy.toJSON(e.show):void 0),void 0!==e.signals&&(t.signals=e.signals),void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={episode:void 0,rowId:!1,addTime:!1,formatListAttributes:!1,collection:void 0,sync:void 0,playedState:void 0,addedBy:void 0,show:void 0,signals:!1,isRecommendation:!1};return t.episode=void 0!==e.episode&&null!==e.episode?r.EpisodeDecorationPolicy.fromPartial(e.episode):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.formatListAttributes=e.formatListAttributes??!1,t.collection=void 0!==e.collection&&null!==e.collection?r.EpisodeCollectionDecorationPolicy.fromPartial(e.collection):void 0,t.sync=void 0!==e.sync&&null!==e.sync?r.EpisodeSyncDecorationPolicy.fromPartial(e.sync):void 0,t.playedState=void 0!==e.playedState&&null!==e.playedState?r.EpisodePlayedStateDecorationPolicy.fromPartial(e.playedState):void 0,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?s.UserDecorationPolicy.fromPartial(e.addedBy):void 0,t.show=void 0!==e.show&&null!==e.show?a.ShowDecorationPolicy.fromPartial(e.show):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}}},90802:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistRequestDecorationPolicy=t.PlaylistItemDecorationPolicy=t.ItemOfflineStateDecorationPolicy=t.ItemExtensionPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295),a=n(19801),s=n(23557),l=n(66028),c=n(89473);function u(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.ItemExtensionPolicy={encode:(e,t=i.default.Writer.create())=>(0!==e.linkType&&t.uint32(8).int32(e.linkType),0!==e.extension&&t.uint32(16).int32(e.extension),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={linkType:0,extension:0};for(;n.pos>>3){case 1:r.linkType=n.int32();break;case 2:r.extension=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({linkType:u(e.linkType)?(0,c.linkTypeFromJSON)(e.linkType):0,extension:u(e.extension)?(0,r.extensionKindFromJSON)(e.extension):0}),toJSON(e){const t={};return void 0!==e.linkType&&(t.linkType=(0,c.linkTypeToJSON)(e.linkType)),void 0!==e.extension&&(t.extension=(0,r.extensionKindToJSON)(e.extension)),t},fromPartial(e){const t={linkType:0,extension:0};return t.linkType=e.linkType??0,t.extension=e.extension??0,t}},t.ItemOfflineStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:!!u(e.offlineState)&&Boolean(e.offlineState),syncProgress:!!u(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){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}},t.PlaylistItemDecorationPolicy={encode(e,n=i.default.Writer.create()){!0===e.uri&&n.uint32(8).bool(e.uri);for(const o of e.extensionPolicy)t.ItemExtensionPolicy.encode(o,n.uint32(18).fork()).ldelim();return void 0!==e.offlineState&&t.ItemOfflineStateDecorationPolicy.encode(e.offlineState,n.uint32(26).fork()).ldelim(),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={uri:!1,extensionPolicy:[],offlineState:void 0};for(;o.pos>>3){case 1:a.uri=o.bool();break;case 2:a.extensionPolicy.push(t.ItemExtensionPolicy.decode(o,o.uint32()));break;case 3:a.offlineState=t.ItemOfflineStateDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({uri:!!u(e.uri)&&Boolean(e.uri),extensionPolicy:Array.isArray(e?.extensionPolicy)?e.extensionPolicy.map((e=>t.ItemExtensionPolicy.fromJSON(e))):[],offlineState:u(e.offlineState)?t.ItemOfflineStateDecorationPolicy.fromJSON(e.offlineState):void 0}),toJSON(e){const n={};return void 0!==e.uri&&(n.uri=e.uri),e.extensionPolicy?n.extensionPolicy=e.extensionPolicy.map((e=>e?t.ItemExtensionPolicy.toJSON(e):void 0)):n.extensionPolicy=[],void 0!==e.offlineState&&(n.offlineState=e.offlineState?t.ItemOfflineStateDecorationPolicy.toJSON(e.offlineState):void 0),n},fromPartial(e){const n={uri:!1,extensionPolicy:[],offlineState:void 0};return n.uri=e.uri??!1,n.extensionPolicy=e.extensionPolicy?.map((e=>t.ItemExtensionPolicy.fromPartial(e)))||[],n.offlineState=void 0!==e.offlineState&&null!==e.offlineState?t.ItemOfflineStateDecorationPolicy.fromPartial(e.offlineState):void 0,n}},t.PlaylistRequestDecorationPolicy={encode:(e,n=i.default.Writer.create())=>(void 0!==e.playlist&&a.PlaylistDecorationPolicy.encode(e.playlist,n.uint32(10).fork()).ldelim(),void 0!==e.track&&l.PlaylistTrackDecorationPolicy.encode(e.track,n.uint32(18).fork()).ldelim(),void 0!==e.episode&&s.PlaylistEpisodeDecorationPolicy.encode(e.episode,n.uint32(26).fork()).ldelim(),void 0!==e.item&&t.PlaylistItemDecorationPolicy.encode(e.item,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const c={playlist:void 0,track:void 0,episode:void 0,item:void 0};for(;o.pos>>3){case 1:c.playlist=a.PlaylistDecorationPolicy.decode(o,o.uint32());break;case 2:c.track=l.PlaylistTrackDecorationPolicy.decode(o,o.uint32());break;case 3:c.episode=s.PlaylistEpisodeDecorationPolicy.decode(o,o.uint32());break;case 4:c.item=t.PlaylistItemDecorationPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return c},fromJSON:e=>({playlist:u(e.playlist)?a.PlaylistDecorationPolicy.fromJSON(e.playlist):void 0,track:u(e.track)?l.PlaylistTrackDecorationPolicy.fromJSON(e.track):void 0,episode:u(e.episode)?s.PlaylistEpisodeDecorationPolicy.fromJSON(e.episode):void 0,item:u(e.item)?t.PlaylistItemDecorationPolicy.fromJSON(e.item):void 0}),toJSON(e){const n={};return void 0!==e.playlist&&(n.playlist=e.playlist?a.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.track&&(n.track=e.track?l.PlaylistTrackDecorationPolicy.toJSON(e.track):void 0),void 0!==e.episode&&(n.episode=e.episode?s.PlaylistEpisodeDecorationPolicy.toJSON(e.episode):void 0),void 0!==e.item&&(n.item=e.item?t.PlaylistItemDecorationPolicy.toJSON(e.item):void 0),n},fromPartial(e){const n={playlist:void 0,track:void 0,episode:void 0,item:void 0};return n.playlist=void 0!==e.playlist&&null!==e.playlist?a.PlaylistDecorationPolicy.fromPartial(e.playlist):void 0,n.track=void 0!==e.track&&null!==e.track?l.PlaylistTrackDecorationPolicy.fromPartial(e.track):void 0,n.episode=void 0!==e.episode&&null!==e.episode?s.PlaylistEpisodeDecorationPolicy.fromPartial(e.episode):void 0,n.item=void 0!==e.item&&null!==e.item?t.PlaylistItemDecorationPolicy.fromPartial(e.item):void 0,n}}},66028:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(42430),a=n(33733),s=n(52631),l=n(23630);function c(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.PlaylistTrackDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(void 0!==e.track&&s.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&&l.UserDecorationPolicy.encode(e.addedBy,t.uint32(98).fork()).ldelim(),void 0!==e.album&&a.PlaylistAlbumDecorationPolicy.encode(e.album,t.uint32(106).fork()).ldelim(),void 0!==e.artist&&r.ArtistDecorationPolicy.encode(e.artist,t.uint32(114).fork()).ldelim(),!0===e.signals&&t.uint32(120).bool(e.signals),!0===e.isRecommendation&&t.uint32(128).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const c={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,signals:!1,isRecommendation:!1};for(;n.pos>>3){case 1:c.track=s.TrackDecorationPolicy.decode(n,n.uint32());break;case 2:c.rowId=n.bool();break;case 3:c.addTime=n.bool();break;case 4:c.inCollection=n.bool();break;case 5:c.canAddToCollection=n.bool();break;case 6:c.isBanned=n.bool();break;case 7:c.canBan=n.bool();break;case 8:c.localFile=n.bool();break;case 9:c.offline=n.bool();break;case 10:c.formatListAttributes=n.bool();break;case 11:c.displayCovers=n.bool();break;case 12:c.addedBy=l.UserDecorationPolicy.decode(n,n.uint32());break;case 13:c.album=a.PlaylistAlbumDecorationPolicy.decode(n,n.uint32());break;case 14:c.artist=r.ArtistDecorationPolicy.decode(n,n.uint32());break;case 15:c.signals=n.bool();break;case 16:c.isRecommendation=n.bool();break;default:n.skipType(7&e)}}return c},fromJSON:e=>({track:c(e.track)?s.TrackDecorationPolicy.fromJSON(e.track):void 0,rowId:!!c(e.rowId)&&Boolean(e.rowId),addTime:!!c(e.addTime)&&Boolean(e.addTime),inCollection:!!c(e.inCollection)&&Boolean(e.inCollection),canAddToCollection:!!c(e.canAddToCollection)&&Boolean(e.canAddToCollection),isBanned:!!c(e.isBanned)&&Boolean(e.isBanned),canBan:!!c(e.canBan)&&Boolean(e.canBan),localFile:!!c(e.localFile)&&Boolean(e.localFile),offline:!!c(e.offline)&&Boolean(e.offline),formatListAttributes:!!c(e.formatListAttributes)&&Boolean(e.formatListAttributes),displayCovers:!!c(e.displayCovers)&&Boolean(e.displayCovers),addedBy:c(e.addedBy)?l.UserDecorationPolicy.fromJSON(e.addedBy):void 0,album:c(e.album)?a.PlaylistAlbumDecorationPolicy.fromJSON(e.album):void 0,artist:c(e.artist)?r.ArtistDecorationPolicy.fromJSON(e.artist):void 0,signals:!!c(e.signals)&&Boolean(e.signals),isRecommendation:!!c(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.track&&(t.track=e.track?s.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?l.UserDecorationPolicy.toJSON(e.addedBy):void 0),void 0!==e.album&&(t.album=e.album?a.PlaylistAlbumDecorationPolicy.toJSON(e.album):void 0),void 0!==e.artist&&(t.artist=e.artist?r.ArtistDecorationPolicy.toJSON(e.artist):void 0),void 0!==e.signals&&(t.signals=e.signals),void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={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,signals:!1,isRecommendation:!1};return t.track=void 0!==e.track&&null!==e.track?s.TrackDecorationPolicy.fromPartial(e.track):void 0,t.rowId=e.rowId??!1,t.addTime=e.addTime??!1,t.inCollection=e.inCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t.localFile=e.localFile??!1,t.offline=e.offline??!1,t.formatListAttributes=e.formatListAttributes??!1,t.displayCovers=e.displayCovers??!1,t.addedBy=void 0!==e.addedBy&&null!==e.addedBy?l.UserDecorationPolicy.fromPartial(e.addedBy):void 0,t.album=void 0!==e.album&&null!==e.album?a.PlaylistAlbumDecorationPolicy.fromPartial(e.album):void 0,t.artist=void 0!==e.artist&&null!==e.artist?r.ArtistDecorationPolicy.fromPartial(e.artist):void 0,t.signals=e.signals??!1,t.isRecommendation=e.isRecommendation??!1,t}}},98270:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistFolderDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(47421);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.RootlistFolderDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.folder&&r.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={addTime:!1,folder:void 0,groupLabel:!1};for(;n.pos>>3){case 1:a.addTime=n.bool();break;case 2:a.folder=r.FolderDecorationPolicy.decode(n,n.uint32());break;case 3:a.groupLabel=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({addTime:!!a(e.addTime)&&Boolean(e.addTime),folder:a(e.folder)?r.FolderDecorationPolicy.fromJSON(e.folder):void 0,groupLabel:!!a(e.groupLabel)&&Boolean(e.groupLabel)}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.folder&&(t.folder=e.folder?r.FolderDecorationPolicy.toJSON(e.folder):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={addTime:!1,folder:void 0,groupLabel:!1};return t.addTime=e.addTime??!1,t.folder=void 0!==e.folder&&null!==e.folder?r.FolderDecorationPolicy.fromPartial(e.folder):void 0,t.groupLabel=e.groupLabel??!1,t}}},85057:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistPlaylistDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(19801);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.RootlistPlaylistDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.addTime&&t.uint32(8).bool(e.addTime),void 0!==e.playlist&&r.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={addTime:!1,playlist:void 0,groupLabel:!1};for(;n.pos>>3){case 1:a.addTime=n.bool();break;case 2:a.playlist=r.PlaylistDecorationPolicy.decode(n,n.uint32());break;case 3:a.groupLabel=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON:e=>({addTime:!!a(e.addTime)&&Boolean(e.addTime),playlist:a(e.playlist)?r.PlaylistDecorationPolicy.fromJSON(e.playlist):void 0,groupLabel:!!a(e.groupLabel)&&Boolean(e.groupLabel)}),toJSON(e){const t={};return void 0!==e.addTime&&(t.addTime=e.addTime),void 0!==e.playlist&&(t.playlist=e.playlist?r.PlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),t},fromPartial(e){const t={addTime:!1,playlist:void 0,groupLabel:!1};return t.addTime=e.addTime??!1,t.playlist=void 0!==e.playlist&&null!==e.playlist?r.PlaylistDecorationPolicy.fromPartial(e.playlist):void 0,t.groupLabel=e.groupLabel??!1,t}}},45859:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistRequestDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(98270),a=n(85057);function s(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.RootlistRequestDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!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&&a.RootlistPlaylistDecorationPolicy.encode(e.playlist,t.uint32(34).fork()).ldelim(),void 0!==e.folder&&r.RootlistFolderDecorationPolicy.encode(e.folder,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1,playlist:void 0,folder:void 0};for(;n.pos>>3){case 1:s.unfilteredLength=n.bool();break;case 2:s.unrangedLength=n.bool();break;case 3:s.isLoadingContents=n.bool();break;case 4:s.playlist=a.RootlistPlaylistDecorationPolicy.decode(n,n.uint32());break;case 5:s.folder=r.RootlistFolderDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({unfilteredLength:!!s(e.unfilteredLength)&&Boolean(e.unfilteredLength),unrangedLength:!!s(e.unrangedLength)&&Boolean(e.unrangedLength),isLoadingContents:!!s(e.isLoadingContents)&&Boolean(e.isLoadingContents),playlist:s(e.playlist)?a.RootlistPlaylistDecorationPolicy.fromJSON(e.playlist):void 0,folder:s(e.folder)?r.RootlistFolderDecorationPolicy.fromJSON(e.folder):void 0}),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?a.RootlistPlaylistDecorationPolicy.toJSON(e.playlist):void 0),void 0!==e.folder&&(t.folder=e.folder?r.RootlistFolderDecorationPolicy.toJSON(e.folder):void 0),t},fromPartial(e){const t={unfilteredLength:!1,unrangedLength:!1,isLoadingContents:!1,playlist:void 0,folder:void 0};return t.unfilteredLength=e.unfilteredLength??!1,t.unrangedLength=e.unrangedLength??!1,t.isLoadingContents=e.isLoadingContents??!1,t.playlist=void 0!==e.playlist&&null!==e.playlist?a.RootlistPlaylistDecorationPolicy.fromPartial(e.playlist):void 0,t.folder=void 0!==e.folder&&null!==e.folder?r.RootlistFolderDecorationPolicy.fromPartial(e.folder):void 0,t}}},36393:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShowOfflineStateDecorationPolicy=t.ShowCollectionDecorationPolicy=t.ShowPlayedStateDecorationPolicy=t.ShowDecorationPolicy=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45295);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.ShowDecorationPolicy={encode(e,t=i.default.Writer.create()){!0===e.link&&t.uint32(8).bool(e.link),!0===e.name&&t.uint32(16).bool(e.name),!0===e.description&&t.uint32(24).bool(e.description),!0===e.popularity&&t.uint32(32).bool(e.popularity),!0===e.publisher&&t.uint32(40).bool(e.publisher),!0===e.language&&t.uint32(48).bool(e.language),!0===e.isExplicit&&t.uint32(56).bool(e.isExplicit),!0===e.covers&&t.uint32(64).bool(e.covers),!0===e.numEpisodes&&t.uint32(72).bool(e.numEpisodes),!0===e.consumptionOrder&&t.uint32(80).bool(e.consumptionOrder),!0===e.mediaTypeEnum&&t.uint32(88).bool(e.mediaTypeEnum),!0===e.copyrights&&t.uint32(96).bool(e.copyrights),!0===e.trailerUri&&t.uint32(104).bool(e.trailerUri),!0===e.isMusicAndTalk&&t.uint32(112).bool(e.isMusicAndTalk),t.uint32(130).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isBook&&t.uint32(136).bool(e.isBook),!0===e.isCreatorChannel&&t.uint32(144).bool(e.isCreatorChannel),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};for(;n.pos>>3){case 1:r.link=n.bool();break;case 2:r.name=n.bool();break;case 3:r.description=n.bool();break;case 4:r.popularity=n.bool();break;case 5:r.publisher=n.bool();break;case 6:r.language=n.bool();break;case 7:r.isExplicit=n.bool();break;case 8:r.covers=n.bool();break;case 9:r.numEpisodes=n.bool();break;case 10:r.consumptionOrder=n.bool();break;case 11:r.mediaTypeEnum=n.bool();break;case 12:r.copyrights=n.bool();break;case 13:r.trailerUri=n.bool();break;case 14:r.isMusicAndTalk=n.bool();break;case 16:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({link:!!a(e.link)&&Boolean(e.link),name:!!a(e.name)&&Boolean(e.name),description:!!a(e.description)&&Boolean(e.description),popularity:!!a(e.popularity)&&Boolean(e.popularity),publisher:!!a(e.publisher)&&Boolean(e.publisher),language:!!a(e.language)&&Boolean(e.language),isExplicit:!!a(e.isExplicit)&&Boolean(e.isExplicit),covers:!!a(e.covers)&&Boolean(e.covers),numEpisodes:!!a(e.numEpisodes)&&Boolean(e.numEpisodes),consumptionOrder:!!a(e.consumptionOrder)&&Boolean(e.consumptionOrder),mediaTypeEnum:!!a(e.mediaTypeEnum)&&Boolean(e.mediaTypeEnum),copyrights:!!a(e.copyrights)&&Boolean(e.copyrights),trailerUri:!!a(e.trailerUri)&&Boolean(e.trailerUri),isMusicAndTalk:!!a(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isBook:!!a(e.isBook)&&Boolean(e.isBook),isCreatorChannel:!!a(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=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),void 0!==e.numEpisodes&&(t.numEpisodes=e.numEpisodes),void 0!==e.consumptionOrder&&(t.consumptionOrder=e.consumptionOrder),void 0!==e.mediaTypeEnum&&(t.mediaTypeEnum=e.mediaTypeEnum),void 0!==e.copyrights&&(t.copyrights=e.copyrights),void 0!==e.trailerUri&&(t.trailerUri=e.trailerUri),void 0!==e.isMusicAndTalk&&(t.isMusicAndTalk=e.isMusicAndTalk),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isBook&&(t.isBook=e.isBook),void 0!==e.isCreatorChannel&&(t.isCreatorChannel=e.isCreatorChannel),t},fromPartial(e){const t={link:!1,name:!1,description:!1,popularity:!1,publisher:!1,language:!1,isExplicit:!1,covers:!1,numEpisodes:!1,consumptionOrder:!1,mediaTypeEnum:!1,copyrights:!1,trailerUri:!1,isMusicAndTalk:!1,extension:[],isBook:!1,isCreatorChannel:!1};return t.link=e.link??!1,t.name=e.name??!1,t.description=e.description??!1,t.popularity=e.popularity??!1,t.publisher=e.publisher??!1,t.language=e.language??!1,t.isExplicit=e.isExplicit??!1,t.covers=e.covers??!1,t.numEpisodes=e.numEpisodes??!1,t.consumptionOrder=e.consumptionOrder??!1,t.mediaTypeEnum=e.mediaTypeEnum??!1,t.copyrights=e.copyrights??!1,t.trailerUri=e.trailerUri??!1,t.isMusicAndTalk=e.isMusicAndTalk??!1,t.extension=e.extension?.map((e=>e))||[],t.isBook=e.isBook??!1,t.isCreatorChannel=e.isCreatorChannel??!1,t}},t.ShowPlayedStateDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.latestPlayedEpisodeLink&&t.uint32(8).bool(e.latestPlayedEpisodeLink),!0===e.playedTime&&t.uint32(16).bool(e.playedTime),!0===e.isPlayable&&t.uint32(24).bool(e.isPlayable),!0===e.playabilityRestriction&&t.uint32(32).bool(e.playabilityRestriction),!0===e.label&&t.uint32(40).bool(e.label),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};for(;n.pos>>3){case 1:r.latestPlayedEpisodeLink=n.bool();break;case 2:r.playedTime=n.bool();break;case 3:r.isPlayable=n.bool();break;case 4:r.playabilityRestriction=n.bool();break;case 5:r.label=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({latestPlayedEpisodeLink:!!a(e.latestPlayedEpisodeLink)&&Boolean(e.latestPlayedEpisodeLink),playedTime:!!a(e.playedTime)&&Boolean(e.playedTime),isPlayable:!!a(e.isPlayable)&&Boolean(e.isPlayable),playabilityRestriction:!!a(e.playabilityRestriction)&&Boolean(e.playabilityRestriction),label:!!a(e.label)&&Boolean(e.label)}),toJSON(e){const t={};return void 0!==e.latestPlayedEpisodeLink&&(t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink),void 0!==e.playedTime&&(t.playedTime=e.playedTime),void 0!==e.isPlayable&&(t.isPlayable=e.isPlayable),void 0!==e.playabilityRestriction&&(t.playabilityRestriction=e.playabilityRestriction),void 0!==e.label&&(t.label=e.label),t},fromPartial(e){const t={latestPlayedEpisodeLink:!1,playedTime:!1,isPlayable:!1,playabilityRestriction:!1,label:!1};return t.latestPlayedEpisodeLink=e.latestPlayedEpisodeLink??!1,t.playedTime=e.playedTime??!1,t.isPlayable=e.isPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t.label=e.label??!1,t}},t.ShowCollectionDecorationPolicy={encode:(e,t=i.default.Writer.create())=>(!0===e.isInCollection&&t.uint32(8).bool(e.isInCollection),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1};for(;n.pos>>3==1)r.isInCollection=n.bool();else n.skipType(7&e)}return r},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){const t={isInCollection:!1};return t.isInCollection=e.isInCollection??!1,t}},t.ShowOfflineStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offline:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offline=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offline:!!a(e.offline)&&Boolean(e.offline),syncProgress:!!a(e.syncProgress)&&Boolean(e.syncProgress)}),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={offline:!1,syncProgress:!1};return t.offline=e.offline??!1,t.syncProgress=e.syncProgress??!1,t}}},89473:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.linkTypeToJSON=t.linkTypeFromJSON=t.LinkType=t.protobufPackage=void 0,t.protobufPackage="spotify.playlist.cosmos.proto",function(e){e[e.EMPTY=0]="EMPTY",e[e.ARTIST=1]="ARTIST",e[e.ALBUM=2]="ALBUM",e[e.TRACK=4]="TRACK",e[e.LOCAL_TRACK=9]="LOCAL_TRACK",e[e.SHOW=62]="SHOW",e[e.EPISODE=63]="EPISODE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.LinkType||(t.LinkType={})),t.linkTypeFromJSON=function(e){switch(e){case 0:case"EMPTY":return n.EMPTY;case 1:case"ARTIST":return n.ARTIST;case 2:case"ALBUM":return n.ALBUM;case 4:case"TRACK":return n.TRACK;case 9:case"LOCAL_TRACK":return n.LOCAL_TRACK;case 62:case"SHOW":return n.SHOW;case 63:case"EPISODE":return n.EPISODE;default:return n.UNRECOGNIZED}},t.linkTypeToJSON=function(e){switch(e){case n.EMPTY:return"EMPTY";case n.ARTIST:return"ARTIST";case n.ALBUM:return"ALBUM";case n.TRACK:return"TRACK";case n.LOCAL_TRACK:return"LOCAL_TRACK";case n.SHOW:return"SHOW";case n.EPISODE:return"EPISODE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},52631:function(e,t,n){"use strict";var o=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=o(n(33892)),r=n(45295);function a(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.TrackDecorationPolicy={encode(e,t=i.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.uint32(154).fork();for(const n of e.extension)t.int32(n);return t.ldelim(),!0===e.isCurated&&t.uint32(160).bool(e.isCurated),t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={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,extension:[],isCurated:!1};for(;n.pos>>3){case 1:r.hasLyrics=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.length=n.bool();break;case 5:r.playable=n.bool();break;case 6:r.isAvailableInMetadataCatalogue=n.bool();break;case 7:r.locallyPlayable=n.bool();break;case 8:r.playableLocalTrack=n.bool();break;case 9:r.discNumber=n.bool();break;case 10:r.trackNumber=n.bool();break;case 11:r.isExplicit=n.bool();break;case 12:r.previewId=n.bool();break;case 13:r.isLocal=n.bool();break;case 14:r.isPremiumOnly=n.bool();break;case 15:r.playableTrackLink=n.bool();break;case 16:r.popularity=n.bool();break;case 17:r.is19PlusOnly=n.bool();break;case 18:r.trackDescriptors=n.bool();break;case 19:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({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),extension:Array.isArray(e?.extension)?e.extension.map((e=>(0,r.extensionKindFromJSON)(e))):[],isCurated:!!a(e.isCurated)&&Boolean(e.isCurated)}),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),e.extension?t.extension=e.extension.map((e=>(0,r.extensionKindToJSON)(e))):t.extension=[],void 0!==e.isCurated&&(t.isCurated=e.isCurated),t},fromPartial(e){const t={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,extension:[],isCurated:!1};return t.hasLyrics=e.hasLyrics??!1,t.link=e.link??!1,t.name=e.name??!1,t.length=e.length??!1,t.playable=e.playable??!1,t.isAvailableInMetadataCatalogue=e.isAvailableInMetadataCatalogue??!1,t.locallyPlayable=e.locallyPlayable??!1,t.playableLocalTrack=e.playableLocalTrack??!1,t.discNumber=e.discNumber??!1,t.trackNumber=e.trackNumber??!1,t.isExplicit=e.isExplicit??!1,t.previewId=e.previewId??!1,t.isLocal=e.isLocal??!1,t.isPremiumOnly=e.isPremiumOnly??!1,t.playableTrackLink=e.playableTrackLink??!1,t.popularity=e.popularity??!1,t.is19PlusOnly=e.is19PlusOnly??!1,t.trackDescriptors=e.trackDescriptors??!1,t.extension=e.extension?.map((e=>e))||[],t.isCurated=e.isCurated??!1,t}},t.TrackPlayedStateDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};for(;n.pos>>3){case 1:r.playable=n.bool();break;case 2:r.isCurrentlyPlayable=n.bool();break;case 3:r.playabilityRestriction=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={playable:!1,isCurrentlyPlayable:!1,playabilityRestriction:!1};return t.playable=e.playable??!1,t.isCurrentlyPlayable=e.isCurrentlyPlayable??!1,t.playabilityRestriction=e.playabilityRestriction??!1,t}},t.TrackCollectionDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};for(;n.pos>>3){case 1:r.isInCollection=n.bool();break;case 2:r.canAddToCollection=n.bool();break;case 3:r.isBanned=n.bool();break;case 4:r.canBan=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={isInCollection:!1,canAddToCollection:!1,isBanned:!1,canBan:!1};return t.isInCollection=e.isInCollection??!1,t.canAddToCollection=e.canAddToCollection??!1,t.isBanned=e.isBanned??!1,t.canBan=e.canBan??!1,t}},t.TrackSyncDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:!1,syncProgress:!1};for(;n.pos>>3){case 1:r.offlineState=n.bool();break;case 2:r.syncProgress=n.bool();break;default:n.skipType(7&e)}}return r},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){const t={offlineState:!1,syncProgress:!1};return t.offlineState=e.offlineState??!1,t.syncProgress=e.syncProgress??!1,t}}},23630:function(e,t,n){"use strict";var o=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=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.UserDecorationPolicy={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};for(;n.pos>>3){case 1:r.username=n.bool();break;case 2:r.link=n.bool();break;case 3:r.name=n.bool();break;case 4:r.image=n.bool();break;case 5:r.thumbnail=n.bool();break;case 6:r.color=n.bool();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({username:!!r(e.username)&&Boolean(e.username),link:!!r(e.link)&&Boolean(e.link),name:!!r(e.name)&&Boolean(e.name),image:!!r(e.image)&&Boolean(e.image),thumbnail:!!r(e.thumbnail)&&Boolean(e.thumbnail),color:!!r(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){const t={username:!1,link:!1,name:!1,image:!1,thumbnail:!1,color:!1};return t.username=e.username??!1,t.link=e.link??!1,t.name=e.name??!1,t.image=e.image??!1,t.thumbnail=e.thumbnail??!1,t.color=e.color??!1,t}},t.CollaboratorPolicy={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};for(;o.pos>>3){case 1:a.user=t.UserDecorationPolicy.decode(o,o.uint32());break;case 2:a.numberOfItems=o.bool();break;case 3:a.numberOfTracks=o.bool();break;case 4:a.numberOfEpisodes=o.bool();break;case 5:a.isOwner=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({user:r(e.user)?t.UserDecorationPolicy.fromJSON(e.user):void 0,numberOfItems:!!r(e.numberOfItems)&&Boolean(e.numberOfItems),numberOfTracks:!!r(e.numberOfTracks)&&Boolean(e.numberOfTracks),numberOfEpisodes:!!r(e.numberOfEpisodes)&&Boolean(e.numberOfEpisodes),isOwner:!!r(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){const n={user:void 0,numberOfItems:!1,numberOfTracks:!1,numberOfEpisodes:!1,isOwner:!1};return n.user=void 0!==e.user&&null!==e.user?t.UserDecorationPolicy.fromPartial(e.user):void 0,n.numberOfItems=e.numberOfItems??!1,n.numberOfTracks=e.numberOfTracks??!1,n.numberOfEpisodes=e.numberOfEpisodes??!1,n.isOwner=e.isOwner??!1,n}},t.CollaboratingUsersDecorationPolicy={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={count:!1,limit:0,collaborator:void 0};for(;o.pos>>3){case 1:a.count=o.bool();break;case 2:a.limit=o.int32();break;case 3:a.collaborator=t.CollaboratorPolicy.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({count:!!r(e.count)&&Boolean(e.count),limit:r(e.limit)?Number(e.limit):0,collaborator:r(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){const n={count:!1,limit:0,collaborator:void 0};return n.count=e.count??!1,n.limit=e.limit??0,n.collaborator=void 0!==e.collaborator&&null!==e.collaborator?t.CollaboratorPolicy.fromPartial(e.collaborator):void 0,n}}},11332:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delta=t.delta_TypeToJSON=t.delta_TypeFromJSON=t.Delta_Type=t.protobufPackage=void 0;const i=o(n(33892));var r;function a(e){switch(e){case 0:case"DELETE":return r.DELETE;case 1:case"INSERT":return r.INSERT;default:return r.UNRECOGNIZED}}function s(e){switch(e){case r.DELETE:return"DELETE";case r.INSERT:return"INSERT";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function l(e){return null!=e}t.protobufPackage="spotify.protobuf_deltas.proto",function(e){e[e.DELETE=0]="DELETE",e[e.INSERT=1]="INSERT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.Delta_Type||(t.Delta_Type={})),t.delta_TypeFromJSON=a,t.delta_TypeToJSON=s,t.Delta={encode:(e,t=i.default.Writer.create())=>(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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={type:0,index:0,length:0};for(;n.pos>>3){case 1:r.type=n.int32();break;case 2:r.index=n.uint32();break;case 3:r.length=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({type:l(e.type)?a(e.type):0,index:l(e.index)?Number(e.index):0,length:l(e.length)?Number(e.length):0}),toJSON(e){const t={};return void 0!==e.type&&(t.type=s(e.type)),void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.length&&(t.length=Math.round(e.length)),t},fromPartial(e){const t={type:0,index:0,length:0};return t.type=e.type??0,t.index=e.index??0,t.length=e.length??0,t}}},87445:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseStatus=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.ResponseStatus={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos>>3){case 1:r.statusCode=n.int32();break;case 2:r.reason=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:r(e.statusCode)?Number(e.statusCode):0,reason:r(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){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}}},24766:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistContainsResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(4206),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.RootlistContainsResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.ContainsResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.ContainsResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.ContainsResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.ContainsResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.ContainsResponse.fromPartial(e.response):void 0,t}}},73706:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistGetResponse=t.RootlistGetRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(45859),a=n(87445),s=n(84420),l=n(27567);function c(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.RootlistGetRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.query&&s.RootlistQuery.encode(e.query,t.uint32(10).fork()).ldelim(),void 0!==e.policy&&r.RootlistRequestDecorationPolicy.encode(e.policy,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={query:void 0,policy:void 0};for(;n.pos>>3){case 1:a.query=s.RootlistQuery.decode(n,n.uint32());break;case 2:a.policy=r.RootlistRequestDecorationPolicy.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({query:c(e.query)?s.RootlistQuery.fromJSON(e.query):void 0,policy:c(e.policy)?r.RootlistRequestDecorationPolicy.fromJSON(e.policy):void 0}),toJSON(e){const t={};return void 0!==e.query&&(t.query=e.query?s.RootlistQuery.toJSON(e.query):void 0),void 0!==e.policy&&(t.policy=e.policy?r.RootlistRequestDecorationPolicy.toJSON(e.policy):void 0),t},fromPartial(e){const t={query:void 0,policy:void 0};return t.query=void 0!==e.query&&null!==e.query?s.RootlistQuery.fromPartial(e.query):void 0,t.policy=void 0!==e.policy&&null!==e.policy?r.RootlistRequestDecorationPolicy.fromPartial(e.policy):void 0,t}},t.RootlistGetResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.data&&l.Response.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.query&&s.RootlistQuery.encode(e.query,t.uint32(26).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={status:void 0,data:void 0,query:void 0};for(;n.pos>>3){case 1:r.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:r.data=l.Response.decode(n,n.uint32());break;case 3:r.query=s.RootlistQuery.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({status:c(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,data:c(e.data)?l.Response.fromJSON(e.data):void 0,query:c(e.query)?s.RootlistQuery.fromJSON(e.query):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.data&&(t.data=e.data?l.Response.toJSON(e.data):void 0),void 0!==e.query&&(t.query=e.query?s.RootlistQuery.toJSON(e.query):void 0),t},fromPartial(e){const t={status:void 0,data:void 0,query:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.data=void 0!==e.data&&null!==e.data?l.Response.fromPartial(e.data):void 0,t.query=void 0!==e.query&&null!==e.query?s.RootlistQuery.fromPartial(e.query):void 0,t}}},64011:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistModificationResponse=t.RootlistModificationRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(33632),a=n(87445);function s(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",t.RootlistModificationRequest={encode:(e,t=i.default.Writer.create())=>(""!==e.folderUri&&t.uint32(10).string(e.folderUri),void 0!==e.request&&r.ModificationRequest.encode(e.request,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const a={folderUri:"",request:void 0};for(;n.pos>>3){case 1:a.folderUri=n.string();break;case 2:a.request=r.ModificationRequest.decode(n,n.uint32());break;default:n.skipType(7&e)}}return a},fromJSON:e=>({folderUri:s(e.folderUri)?String(e.folderUri):"",request:s(e.request)?r.ModificationRequest.fromJSON(e.request):void 0}),toJSON(e){const t={};return void 0!==e.folderUri&&(t.folderUri=e.folderUri),void 0!==e.request&&(t.request=e.request?r.ModificationRequest.toJSON(e.request):void 0),t},fromPartial(e){const t={folderUri:"",request:void 0};return t.folderUri=e.folderUri??"",t.request=void 0!==e.request&&null!==e.request?r.ModificationRequest.fromPartial(e.request):void 0,t}},t.RootlistModificationResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&a.ResponseStatus.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.response&&r.ModificationResponse.encode(e.response,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,response:void 0};for(;n.pos>>3){case 1:s.status=a.ResponseStatus.decode(n,n.uint32());break;case 2:s.response=r.ModificationResponse.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?a.ResponseStatus.fromJSON(e.status):void 0,response:s(e.response)?r.ModificationResponse.fromJSON(e.response):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?a.ResponseStatus.toJSON(e.status):void 0),void 0!==e.response&&(t.response=e.response?r.ModificationResponse.toJSON(e.response):void 0),t},fromPartial(e){const t={status:void 0,response:void 0};return t.status=void 0!==e.status&&null!==e.status?a.ResponseStatus.fromPartial(e.status):void 0,t.response=void 0!==e.response&&null!==e.response?r.ModificationResponse.fromPartial(e.response):void 0,t}}},84420:function(e,t,n){"use strict";n(10612);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootlistQuery=t.SourceRestriction=t.RootlistRange=t.rootlistQuery_SortByToJSON=t.rootlistQuery_SortByFromJSON=t.RootlistQuery_SortBy=t.rootlistQuery_BoolPredicateToJSON=t.rootlistQuery_BoolPredicateFromJSON=t.RootlistQuery_BoolPredicate=t.rootlistItemTypeToJSON=t.rootlistItemTypeFromJSON=t.RootlistItemType=t.protobufPackage=void 0;const i=o(n(33892));var r,a,s;function l(e){switch(e){case 0:case"ALL_ROOTLIST_ITEMS":return r.ALL_ROOTLIST_ITEMS;case 1:case"PLAYLISTS_IN_ROOTLIST":return r.PLAYLISTS_IN_ROOTLIST;case 2:case"FOLDERS_IN_ROOTLIST":return r.FOLDERS_IN_ROOTLIST;default:return r.UNRECOGNIZED}}function c(e){switch(e){case r.ALL_ROOTLIST_ITEMS:return"ALL_ROOTLIST_ITEMS";case r.PLAYLISTS_IN_ROOTLIST:return"PLAYLISTS_IN_ROOTLIST";case r.FOLDERS_IN_ROOTLIST:return"FOLDERS_IN_ROOTLIST";case r.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function u(e){switch(e){case 0:case"ROOTLIST_ITEM_NO_FILTER":return a.ROOTLIST_ITEM_NO_FILTER;case 1:case"ROOTLIST_ITEM_AVAILABLE_OFFLINE":return a.ROOTLIST_ITEM_AVAILABLE_OFFLINE;case 2:case"ROOTLIST_ITEM_IS_WRITABLE":return a.ROOTLIST_ITEM_IS_WRITABLE;default:return a.UNRECOGNIZED}}function d(e){switch(e){case a.ROOTLIST_ITEM_NO_FILTER:return"ROOTLIST_ITEM_NO_FILTER";case a.ROOTLIST_ITEM_AVAILABLE_OFFLINE:return"ROOTLIST_ITEM_AVAILABLE_OFFLINE";case a.ROOTLIST_ITEM_IS_WRITABLE:return"ROOTLIST_ITEM_IS_WRITABLE";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"NO_SORT":return s.NO_SORT;case 1:case"NAME_ASC":return s.NAME_ASC;case 2:case"NAME_DESC":return s.NAME_DESC;case 3:case"ADD_TIME_ASC":return s.ADD_TIME_ASC;case 4:case"ADD_TIME_DESC":return s.ADD_TIME_DESC;case 5:case"RECENTLY_PLAYED_RANK_ASC":return s.RECENTLY_PLAYED_RANK_ASC;case 6:case"RECENTLY_PLAYED_RANK_DESC":return s.RECENTLY_PLAYED_RANK_DESC;case 7:case"FRECENCY_SCORE_ASC":return s.FRECENCY_SCORE_ASC;case 8:case"FRECENCY_SCORE_DESC":return s.FRECENCY_SCORE_DESC;case 9:case"OFFLINE_STATE_ASC":return s.OFFLINE_STATE_ASC;case 10:case"OFFLINE_STATE_DESC":return s.OFFLINE_STATE_DESC;default:return s.UNRECOGNIZED}}function f(e){switch(e){case s.NO_SORT:return"NO_SORT";case s.NAME_ASC:return"NAME_ASC";case s.NAME_DESC:return"NAME_DESC";case s.ADD_TIME_ASC:return"ADD_TIME_ASC";case s.ADD_TIME_DESC:return"ADD_TIME_DESC";case s.RECENTLY_PLAYED_RANK_ASC:return"RECENTLY_PLAYED_RANK_ASC";case s.RECENTLY_PLAYED_RANK_DESC:return"RECENTLY_PLAYED_RANK_DESC";case s.FRECENCY_SCORE_ASC:return"FRECENCY_SCORE_ASC";case s.FRECENCY_SCORE_DESC:return"FRECENCY_SCORE_DESC";case s.OFFLINE_STATE_ASC:return"OFFLINE_STATE_ASC";case s.OFFLINE_STATE_DESC:return"OFFLINE_STATE_DESC";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){return null!=e}t.protobufPackage="spotify.playlist_esperanto.proto",function(e){e[e.ALL_ROOTLIST_ITEMS=0]="ALL_ROOTLIST_ITEMS",e[e.PLAYLISTS_IN_ROOTLIST=1]="PLAYLISTS_IN_ROOTLIST",e[e.FOLDERS_IN_ROOTLIST=2]="FOLDERS_IN_ROOTLIST",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(r=t.RootlistItemType||(t.RootlistItemType={})),t.rootlistItemTypeFromJSON=l,t.rootlistItemTypeToJSON=c,function(e){e[e.ROOTLIST_ITEM_NO_FILTER=0]="ROOTLIST_ITEM_NO_FILTER",e[e.ROOTLIST_ITEM_AVAILABLE_OFFLINE=1]="ROOTLIST_ITEM_AVAILABLE_OFFLINE",e[e.ROOTLIST_ITEM_IS_WRITABLE=2]="ROOTLIST_ITEM_IS_WRITABLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.RootlistQuery_BoolPredicate||(t.RootlistQuery_BoolPredicate={})),t.rootlistQuery_BoolPredicateFromJSON=u,t.rootlistQuery_BoolPredicateToJSON=d,function(e){e[e.NO_SORT=0]="NO_SORT",e[e.NAME_ASC=1]="NAME_ASC",e[e.NAME_DESC=2]="NAME_DESC",e[e.ADD_TIME_ASC=3]="ADD_TIME_ASC",e[e.ADD_TIME_DESC=4]="ADD_TIME_DESC",e[e.RECENTLY_PLAYED_RANK_ASC=5]="RECENTLY_PLAYED_RANK_ASC",e[e.RECENTLY_PLAYED_RANK_DESC=6]="RECENTLY_PLAYED_RANK_DESC",e[e.FRECENCY_SCORE_ASC=7]="FRECENCY_SCORE_ASC",e[e.FRECENCY_SCORE_DESC=8]="FRECENCY_SCORE_DESC",e[e.OFFLINE_STATE_ASC=9]="OFFLINE_STATE_ASC",e[e.OFFLINE_STATE_DESC=10]="OFFLINE_STATE_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.RootlistQuery_SortBy||(t.RootlistQuery_SortBy={})),t.rootlistQuery_SortByFromJSON=p,t.rootlistQuery_SortByToJSON=f,t.RootlistRange={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={start:0,length:0};for(;n.pos>>3){case 1:r.start=n.int32();break;case 2:r.length=n.int32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({start:h(e.start)?Number(e.start):0,length:h(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){const t={start:0,length:0};return t.start=e.start??0,t.length=e.length??0,t}},t.SourceRestriction={encode:(e,t=i.default.Writer.create())=>(0!==e.maxFirstNItems&&t.uint32(8).int32(e.maxFirstNItems),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={maxFirstNItems:0};for(;n.pos>>3==1)r.maxFirstNItems=n.int32();else n.skipType(7&e)}return r},fromJSON:e=>({maxFirstNItems:h(e.maxFirstNItems)?Number(e.maxFirstNItems):0}),toJSON(e){const t={};return void 0!==e.maxFirstNItems&&(t.maxFirstNItems=Math.round(e.maxFirstNItems)),t},fromPartial(e){const t={maxFirstNItems:0};return t.maxFirstNItems=e.maxFirstNItems??0,t}},t.RootlistQuery={encode(e,n=i.default.Writer.create()){""!==e.folderUri&&n.uint32(10).string(e.folderUri),n.uint32(18).fork();for(const t of e.boolPredicates)n.int32(t);return n.ldelim(),""!==e.textFilter&&n.uint32(26).string(e.textFilter),0!==e.sortBy&&n.uint32(32).int32(e.sortBy),void 0!==e.range&&t.RootlistRange.encode(e.range,n.uint32(42).fork()).ldelim(),void 0!==e.sourceRestriction&&t.SourceRestriction.encode(e.sourceRestriction,n.uint32(50).fork()).ldelim(),0!==e.itemType&&n.uint32(56).int32(e.itemType),!0===e.group&&n.uint32(64).bool(e.group),!0===e.deltaUpdates&&n.uint32(72).bool(e.deltaUpdates),!0===e.flattenTree&&n.uint32(80).bool(e.flattenTree),0!==e.updateThrottlingMs&&n.uint32(88).int32(e.updateThrottlingMs),n},decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={folderUri:"",boolPredicates:[],textFilter:"",sortBy:0,range:void 0,sourceRestriction:void 0,itemType:0,group:!1,deltaUpdates:!1,flattenTree:!1,updateThrottlingMs:0};for(;o.pos>>3){case 1:a.folderUri=o.string();break;case 2:if(2==(7&e)){const e=o.uint32()+o.pos;for(;o.pos({folderUri:h(e.folderUri)?String(e.folderUri):"",boolPredicates:Array.isArray(e?.boolPredicates)?e.boolPredicates.map((e=>u(e))):[],textFilter:h(e.textFilter)?String(e.textFilter):"",sortBy:h(e.sortBy)?p(e.sortBy):0,range:h(e.range)?t.RootlistRange.fromJSON(e.range):void 0,sourceRestriction:h(e.sourceRestriction)?t.SourceRestriction.fromJSON(e.sourceRestriction):void 0,itemType:h(e.itemType)?l(e.itemType):0,group:!!h(e.group)&&Boolean(e.group),deltaUpdates:!!h(e.deltaUpdates)&&Boolean(e.deltaUpdates),flattenTree:!!h(e.flattenTree)&&Boolean(e.flattenTree),updateThrottlingMs:h(e.updateThrottlingMs)?Number(e.updateThrottlingMs):0}),toJSON(e){const n={};return void 0!==e.folderUri&&(n.folderUri=e.folderUri),e.boolPredicates?n.boolPredicates=e.boolPredicates.map((e=>d(e))):n.boolPredicates=[],void 0!==e.textFilter&&(n.textFilter=e.textFilter),void 0!==e.sortBy&&(n.sortBy=f(e.sortBy)),void 0!==e.range&&(n.range=e.range?t.RootlistRange.toJSON(e.range):void 0),void 0!==e.sourceRestriction&&(n.sourceRestriction=e.sourceRestriction?t.SourceRestriction.toJSON(e.sourceRestriction):void 0),void 0!==e.itemType&&(n.itemType=c(e.itemType)),void 0!==e.group&&(n.group=e.group),void 0!==e.deltaUpdates&&(n.deltaUpdates=e.deltaUpdates),void 0!==e.flattenTree&&(n.flattenTree=e.flattenTree),void 0!==e.updateThrottlingMs&&(n.updateThrottlingMs=Math.round(e.updateThrottlingMs)),n},fromPartial(e){const n={folderUri:"",boolPredicates:[],textFilter:"",sortBy:0,range:void 0,sourceRestriction:void 0,itemType:0,group:!1,deltaUpdates:!1,flattenTree:!1,updateThrottlingMs:0};return n.folderUri=e.folderUri??"",n.boolPredicates=e.boolPredicates?.map((e=>e))||[],n.textFilter=e.textFilter??"",n.sortBy=e.sortBy??0,n.range=void 0!==e.range&&null!==e.range?t.RootlistRange.fromPartial(e.range):void 0,n.sourceRestriction=void 0!==e.sourceRestriction&&null!==e.sourceRestriction?t.SourceRestriction.fromPartial(e.sourceRestriction):void 0,n.itemType=e.itemType??0,n.group=e.group??!1,n.deltaUpdates=e.deltaUpdates??!1,n.flattenTree=e.flattenTree??!1,n.updateThrottlingMs=e.updateThrottlingMs??0,n}}},27567:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=t.Folder=t.Item=t.Playlist=t.protobufPackage=void 0;const i=o(n(33892)),r=n(48670),a=n(16056),s=n(57074),l=n(11332);function c(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.rootlist_request.proto",t.Playlist={encode:(e,t=i.default.Writer.create())=>(""!==e.rowId&&t.uint32(10).string(e.rowId),void 0!==e.playlistMetadata&&s.PlaylistMetadata.encode(e.playlistMetadata,t.uint32(18).fork()).ldelim(),void 0!==e.playlistOfflineState&&s.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&&a.Capabilities.encode(e.capabilities,t.uint32(58).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};for(;n.pos>>3){case 1:r.rowId=n.string();break;case 2:r.playlistMetadata=s.PlaylistMetadata.decode(n,n.uint32());break;case 3:r.playlistOfflineState=s.PlaylistOfflineState.decode(n,n.uint32());break;case 4:r.addTime=n.uint32();break;case 5:r.isOnDemandInFree=n.bool();break;case 6:r.groupLabel=n.string();break;case 7:r.capabilities=a.Capabilities.decode(n,n.uint32());break;default:n.skipType(7&e)}}return r},fromJSON:e=>({rowId:c(e.rowId)?String(e.rowId):"",playlistMetadata:c(e.playlistMetadata)?s.PlaylistMetadata.fromJSON(e.playlistMetadata):void 0,playlistOfflineState:c(e.playlistOfflineState)?s.PlaylistOfflineState.fromJSON(e.playlistOfflineState):void 0,addTime:c(e.addTime)?Number(e.addTime):0,isOnDemandInFree:!!c(e.isOnDemandInFree)&&Boolean(e.isOnDemandInFree),groupLabel:c(e.groupLabel)?String(e.groupLabel):"",capabilities:c(e.capabilities)?a.Capabilities.fromJSON(e.capabilities):void 0}),toJSON(e){const t={};return void 0!==e.rowId&&(t.rowId=e.rowId),void 0!==e.playlistMetadata&&(t.playlistMetadata=e.playlistMetadata?s.PlaylistMetadata.toJSON(e.playlistMetadata):void 0),void 0!==e.playlistOfflineState&&(t.playlistOfflineState=e.playlistOfflineState?s.PlaylistOfflineState.toJSON(e.playlistOfflineState):void 0),void 0!==e.addTime&&(t.addTime=Math.round(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?a.Capabilities.toJSON(e.capabilities):void 0),t},fromPartial(e){const t={rowId:"",playlistMetadata:void 0,playlistOfflineState:void 0,addTime:0,isOnDemandInFree:!1,groupLabel:"",capabilities:void 0};return t.rowId=e.rowId??"",t.playlistMetadata=void 0!==e.playlistMetadata&&null!==e.playlistMetadata?s.PlaylistMetadata.fromPartial(e.playlistMetadata):void 0,t.playlistOfflineState=void 0!==e.playlistOfflineState&&null!==e.playlistOfflineState?s.PlaylistOfflineState.fromPartial(e.playlistOfflineState):void 0,t.addTime=e.addTime??0,t.isOnDemandInFree=e.isOnDemandInFree??!1,t.groupLabel=e.groupLabel??"",t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?a.Capabilities.fromPartial(e.capabilities):void 0,t}},t.Item={encode:(e,n=i.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&&l.Delta.encode(e.delta,n.uint32(34).fork()).ldelim(),n),decode(e,n){const o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={headerField:"",folder:void 0,playlist:void 0,delta:void 0};for(;o.pos>>3){case 1:a.headerField=o.string();break;case 2:a.folder=t.Folder.decode(o,o.uint32());break;case 3:a.playlist=t.Playlist.decode(o,o.uint32());break;case 4:a.delta=l.Delta.decode(o,o.uint32());break;default:o.skipType(7&e)}}return a},fromJSON:e=>({headerField:c(e.headerField)?String(e.headerField):"",folder:c(e.folder)?t.Folder.fromJSON(e.folder):void 0,playlist:c(e.playlist)?t.Playlist.fromJSON(e.playlist):void 0,delta:c(e.delta)?l.Delta.fromJSON(e.delta):void 0}),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?l.Delta.toJSON(e.delta):void 0),n},fromPartial(e){const n={headerField:"",folder:void 0,playlist:void 0,delta:void 0};return n.headerField=e.headerField??"",n.folder=void 0!==e.folder&&null!==e.folder?t.Folder.fromPartial(e.folder):void 0,n.playlist=void 0!==e.playlist&&null!==e.playlist?t.Playlist.fromPartial(e.playlist):void 0,n.delta=void 0!==e.delta&&null!==e.delta?l.Delta.fromPartial(e.delta):void 0,n}},t.Folder={encode(e,n=i.default.Writer.create()){for(const o of e.item)t.Item.encode(o,n.uint32(10).fork()).ldelim();return void 0!==e.folderMetadata&&r.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let a=void 0===n?o.len:o.pos+n;const s={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};for(;o.pos>>3){case 1:s.item.push(t.Item.decode(o,o.uint32()));break;case 2:s.folderMetadata=r.FolderMetadata.decode(o,o.uint32());break;case 3:s.rowId=o.string();break;case 4:s.addTime=o.uint32();break;case 5:s.groupLabel=o.string();break;default:o.skipType(7&e)}}return s},fromJSON:e=>({item:Array.isArray(e?.item)?e.item.map((e=>t.Item.fromJSON(e))):[],folderMetadata:c(e.folderMetadata)?r.FolderMetadata.fromJSON(e.folderMetadata):void 0,rowId:c(e.rowId)?String(e.rowId):"",addTime:c(e.addTime)?Number(e.addTime):0,groupLabel:c(e.groupLabel)?String(e.groupLabel):""}),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?r.FolderMetadata.toJSON(e.folderMetadata):void 0),void 0!==e.rowId&&(n.rowId=e.rowId),void 0!==e.addTime&&(n.addTime=Math.round(e.addTime)),void 0!==e.groupLabel&&(n.groupLabel=e.groupLabel),n},fromPartial(e){const n={item:[],folderMetadata:void 0,rowId:"",addTime:0,groupLabel:""};return n.item=e.item?.map((e=>t.Item.fromPartial(e)))||[],n.folderMetadata=void 0!==e.folderMetadata&&null!==e.folderMetadata?r.FolderMetadata.fromPartial(e.folderMetadata):void 0,n.rowId=e.rowId??"",n.addTime=e.addTime??0,n.groupLabel=e.groupLabel??"",n}},t.Response={encode:(e,n=i.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 o=e instanceof i.default.Reader?e:new i.default.Reader(e);let r=void 0===n?o.len:o.pos+n;const a={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};for(;o.pos>>3){case 1:a.root=t.Folder.decode(o,o.uint32());break;case 2:a.unfilteredLength=o.int32();break;case 3:a.unrangedLength=o.int32();break;case 4:a.isLoadingContents=o.bool();break;default:o.skipType(7&e)}}return a},fromJSON:e=>({root:c(e.root)?t.Folder.fromJSON(e.root):void 0,unfilteredLength:c(e.unfilteredLength)?Number(e.unfilteredLength):0,unrangedLength:c(e.unrangedLength)?Number(e.unrangedLength):0,isLoadingContents:!!c(e.isLoadingContents)&&Boolean(e.isLoadingContents)}),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=Math.round(e.unfilteredLength)),void 0!==e.unrangedLength&&(n.unrangedLength=Math.round(e.unrangedLength)),void 0!==e.isLoadingContents&&(n.isLoadingContents=e.isLoadingContents),n},fromPartial(e){const n={root:void 0,unfilteredLength:0,unrangedLength:0,isLoadingContents:!1};return n.root=void 0!==e.root&&null!==e.root?t.Folder.fromPartial(e.root):void 0,n.unfilteredLength=e.unfilteredLength??0,n.unrangedLength=e.unrangedLength??0,n.isLoadingContents=e.isLoadingContents??!1,n}}},22660:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetMemberPermissionRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(16056);function a(e){return null!=e}t.protobufPackage="spotify.playlist.cosmos.proto",t.SetMemberPermissionRequest={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};for(;n.pos>>3){case 1:r.playlistUri=n.string();break;case 2:r.username=n.string();break;case 3:r.permissionLevel=n.int32();break;case 4:r.timeoutMs=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({playlistUri:a(e.playlistUri)?String(e.playlistUri):"",username:a(e.username)?String(e.username):"",permissionLevel:a(e.permissionLevel)?(0,r.permissionLevelFromJSON)(e.permissionLevel):0,timeoutMs:a(e.timeoutMs)?Number(e.timeoutMs):0}),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=(0,r.permissionLevelToJSON)(e.permissionLevel)),void 0!==e.timeoutMs&&(t.timeoutMs=Math.round(e.timeoutMs)),t},fromPartial(e){const t={playlistUri:"",username:"",permissionLevel:0,timeoutMs:0};return t.playlistUri=e.playlistUri??"",t.username=e.username??"",t.permissionLevel=e.permissionLevel??0,t.timeoutMs=e.timeoutMs??0,t}}},12379:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpisodeSyncState=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.cosmos_util.proto",t.EpisodeSyncState={encode:(e,t=i.default.Writer.create())=>(""!==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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={offlineState:"",syncProgress:0};for(;n.pos>>3){case 1:r.offlineState=n.string();break;case 2:r.syncProgress=n.uint32();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({offlineState:r(e.offlineState)?String(e.offlineState):"",syncProgress:r(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){const t={offlineState:"",syncProgress:0};return t.offlineState=e.offlineState??"",t.syncProgress=e.syncProgress??0,t}}},87731:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRequest=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.playlist.cosmos.proto",t.SyncRequest={encode(e,t=i.default.Writer.create()){for(const n of e.playlistUris)t.uint32(10).string(n);return t},decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={playlistUris:[]};for(;n.pos>>3==1)r.playlistUris.push(n.string());else n.skipType(7&e)}return r},fromJSON:e=>({playlistUris:Array.isArray(e?.playlistUris)?e.playlistUris.map((e=>String(e))):[]}),toJSON(e){const t={};return e.playlistUris?t.playlistUris=e.playlistUris.map((e=>e)):t.playlistUris=[],t},fromPartial(e){const t={playlistUris:[]};return t.playlistUris=e.playlistUris?.map((e=>e))||[],t}}},12101:(e,t,n)=>{"use strict";n.d(t,{B3:()=>de,_c:()=>T,ow:()=>ae,Op:()=>Z,vY:()=>Q,Sh:()=>R,hA:()=>le,rf:()=>I});var o=n(3959),i=n(33892),r=n.n(i);const a={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={identifier:""};for(;n.pos>>3==1)i.identifier=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({identifier:d(e.identifier)?String(e.identifier):""}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),t},fromPartial(e){const t={identifier:""};return t.identifier=e.identifier??"",t}};function s(){return{identifier:"",revision:new Uint8Array}}const l={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),void 0!==e.revision&&0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;n.pos>>3){case 1:i.identifier=n.string();break;case 2:i.revision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({identifier:d(e.identifier)?String(e.identifier):"",revision:d(e.revision)?u(e.revision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.revision&&(t.revision=function(e){if(c.Buffer)return c.Buffer.from(e).toString("base64");{const t=[];return e.forEach((e=>{t.push(String.fromCharCode(e))})),c.btoa(t.join(""))}}(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=s();return t.identifier=e.identifier??"",t.revision=e.revision??new Uint8Array,t}};var c=(()=>{if(void 0!==c)return c;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 u(e){if(c.Buffer)return Uint8Array.from(c.Buffer.from(e,"base64"));{const t=c.atob(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.pos({canView:!!v(e.canView)&&Boolean(e.canView),canAdministratePermissions:!!v(e.canAdministratePermissions)&&Boolean(e.canAdministratePermissions),grantableLevel:Array.isArray(e?.grantableLevel)?e.grantableLevel.map((e=>f(e))):[],canEditMetadata:!!v(e.canEditMetadata)&&Boolean(e.canEditMetadata),canEditItems:!!v(e.canEditItems)&&Boolean(e.canEditItems)}),toJSON(e){const t={};return void 0!==e.canView&&(t.canView=e.canView),void 0!==e.canAdministratePermissions&&(t.canAdministratePermissions=e.canAdministratePermissions),e.grantableLevel?t.grantableLevel=e.grantableLevel.map((e=>h(e))):t.grantableLevel=[],void 0!==e.canEditMetadata&&(t.canEditMetadata=e.canEditMetadata),void 0!==e.canEditItems&&(t.canEditItems=e.canEditItems),t},fromPartial(e){const t={canView:!1,canAdministratePermissions:!1,grantableLevel:[],canEditMetadata:!1,canEditItems:!1};return t.canView=e.canView??!1,t.canAdministratePermissions=e.canAdministratePermissions??!1,t.grantableLevel=e.grantableLevel?.map((e=>e))||[],t.canEditMetadata=e.canEditMetadata??!1,t.canEditItems=e.canEditItems??!1,t}};var g=(()=>{if(void 0!==g)return g;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 v(e){return null!=e}function y(){return{identifier:"",data:new Uint8Array}}const _={encode:(e,t=r().Writer.create())=>(void 0!==e.identifier&&""!==e.identifier&&t.uint32(10).string(e.identifier),void 0!==e.data&&0!==e.data.length&&t.uint32(18).bytes(e.data),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=y();for(;n.pos>>3){case 1:i.identifier=n.string();break;case 2:i.data=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({identifier:A(e.identifier)?String(e.identifier):"",data:A(e.data)?S(e.data):new Uint8Array}),toJSON(e){const t={};return void 0!==e.identifier&&(t.identifier=e.identifier),void 0!==e.data&&(t.data=E(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial(e){const t=y();return t.identifier=e.identifier??"",t.data=e.data??new Uint8Array,t}};var b=(()=>{if(void 0!==b)return b;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 S(e){if(b.Buffer)return Uint8Array.from(b.Buffer.from(e,"base64"));{const t=b.atob(e),n=new Uint8Array(t.length);for(let e=0;e{t.push(String.fromCharCode(e))})),b.btoa(t.join(""))}}function A(e){return null!=e}let T=function(e){return e[e.LIST_UNKNOWN=0]="LIST_UNKNOWN",e[e.LIST_NAME=1]="LIST_NAME",e[e.LIST_DESCRIPTION=2]="LIST_DESCRIPTION",e[e.LIST_PICTURE=3]="LIST_PICTURE",e[e.LIST_COLLABORATIVE=4]="LIST_COLLABORATIVE",e[e.LIST_PL3_VERSION=5]="LIST_PL3_VERSION",e[e.LIST_DELETED_BY_OWNER=6]="LIST_DELETED_BY_OWNER",e[e.LIST_CLIENT_ID=10]="LIST_CLIENT_ID",e[e.LIST_FORMAT=11]="LIST_FORMAT",e[e.LIST_FORMAT_ATTRIBUTES=12]="LIST_FORMAT_ATTRIBUTES",e[e.LIST_PICTURE_SIZE=13]="LIST_PICTURE_SIZE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});let P=function(e){return e[e.ITEM_UNKNOWN=0]="ITEM_UNKNOWN",e[e.ITEM_ADDED_BY=1]="ITEM_ADDED_BY",e[e.ITEM_TIMESTAMP=2]="ITEM_TIMESTAMP",e[e.ITEM_SEEN_AT=9]="ITEM_SEEN_AT",e[e.ITEM_PUBLIC=10]="ITEM_PUBLIC",e[e.ITEM_FORMAT_ATTRIBUTES=11]="ITEM_FORMAT_ATTRIBUTES",e[e.ITEM_ID=12]="ITEM_ID",e[e.ITEM_SOURCE_LENS=13]="ITEM_SOURCE_LENS",e[e.ITEM_AVAILABLE_SIGNALS=14]="ITEM_AVAILABLE_SIGNALS",e[e.ITEM_RECOMMENDATION_INFO=15]="ITEM_RECOMMENDATION_INFO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});let O=function(e){return e[e.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED=0]="GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED",e[e.GEOBLOCK_BLOCKING_TYPE_TITLE=1]="GEOBLOCK_BLOCKING_TYPE_TITLE",e[e.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION=2]="GEOBLOCK_BLOCKING_TYPE_DESCRIPTION",e[e.GEOBLOCK_BLOCKING_TYPE_IMAGE=3]="GEOBLOCK_BLOCKING_TYPE_IMAGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function C(e){switch(e){case 0:case"GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED":return O.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED;case 1:case"GEOBLOCK_BLOCKING_TYPE_TITLE":return O.GEOBLOCK_BLOCKING_TYPE_TITLE;case 2:case"GEOBLOCK_BLOCKING_TYPE_DESCRIPTION":return O.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION;case 3:case"GEOBLOCK_BLOCKING_TYPE_IMAGE":return O.GEOBLOCK_BLOCKING_TYPE_IMAGE;default:return O.UNRECOGNIZED}}function k(e){switch(e){case O.GEOBLOCK_BLOCKING_TYPE_UNSPECIFIED:return 0;case O.GEOBLOCK_BLOCKING_TYPE_TITLE:return 1;case O.GEOBLOCK_BLOCKING_TYPE_DESCRIPTION:return 2;case O.GEOBLOCK_BLOCKING_TYPE_IMAGE:return 3;case O.UNRECOGNIZED:default:return-1}}let R=function(e){return e[e.KIND_UNKNOWN=0]="KIND_UNKNOWN",e[e.ADD=2]="ADD",e[e.REM=3]="REM",e[e.MOV=4]="MOV",e[e.UPDATE_ITEM_ATTRIBUTES=5]="UPDATE_ITEM_ATTRIBUTES",e[e.UPDATE_LIST_ATTRIBUTES=6]="UPDATE_LIST_ATTRIBUTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function L(e){switch(e){case 0:case"KIND_UNKNOWN":return R.KIND_UNKNOWN;case 2:case"ADD":return R.ADD;case 3:case"REM":return R.REM;case 4:case"MOV":return R.MOV;case 5:case"UPDATE_ITEM_ATTRIBUTES":return R.UPDATE_ITEM_ATTRIBUTES;case 6:case"UPDATE_LIST_ATTRIBUTES":return R.UPDATE_LIST_ATTRIBUTES;default:return R.UNRECOGNIZED}}let I=function(e){return e[e.CLIENT_UNKNOWN=0]="CLIENT_UNKNOWN",e[e.NATIVE_HERMES=1]="NATIVE_HERMES",e[e.CLIENT=2]="CLIENT",e[e.PYTHON=3]="PYTHON",e[e.JAVA=4]="JAVA",e[e.WEBPLAYER=5]="WEBPLAYER",e[e.LIBSPOTIFY=6]="LIBSPOTIFY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e}({});function N(e){switch(e){case 0:case"CLIENT_UNKNOWN":return I.CLIENT_UNKNOWN;case 1:case"NATIVE_HERMES":return I.NATIVE_HERMES;case 2:case"CLIENT":return I.CLIENT;case 3:case"PYTHON":return I.PYTHON;case 4:case"JAVA":return I.JAVA;case 5:case"WEBPLAYER":return I.WEBPLAYER;case 6:case"LIBSPOTIFY":return I.LIBSPOTIFY;default:return I.UNRECOGNIZED}}const w={encode:(e,t=r().Writer.create())=>(void 0!==e.uri&&""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.attributes&&j.encode(e.attributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={uri:"",attributes:void 0};for(;n.pos>>3){case 1:i.uri=n.string();break;case 2:i.attributes=j.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:ge(e.uri)?String(e.uri):"",attributes:ge(e.attributes)?j.fromJSON(e.attributes):void 0}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.attributes&&(t.attributes=e.attributes?j.toJSON(e.attributes):void 0),t},fromPartial(e){const t={uri:"",attributes:void 0};return t.uri=e.uri??"",t.attributes=void 0!==e.attributes&&null!==e.attributes?j.fromPartial(e.attributes):void 0,t}};function D(){return{revision:new Uint8Array,attributes:void 0,length:0,timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1,capabilities:void 0,geoblock:[]}}const M={encode(e,t=r().Writer.create()){if(void 0!==e.revision&&0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.attributes&&G.encode(e.attributes,t.uint32(18).fork()).ldelim(),void 0!==e.length&&0!==e.length&&t.uint32(24).int32(e.length),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(32).int64(e.timestamp),void 0!==e.ownerUsername&&""!==e.ownerUsername&&t.uint32(42).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(48).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&m.encode(e.capabilities,t.uint32(58).fork()).ldelim(),void 0!==e.geoblock&&0!==e.geoblock.length){t.uint32(66).fork();for(const n of e.geoblock)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=D();for(;n.pos>>3){case 1:i.revision=n.bytes();break;case 2:i.attributes=G.decode(n,n.uint32());break;case 3:i.length=n.int32();break;case 4:i.timestamp=me(n.int64());break;case 5:i.ownerUsername=n.string();break;case 6:i.abuseReportingEnabled=n.bool();break;case 7:i.capabilities=m.decode(n,n.uint32());break;case 8:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({revision:ge(e.revision)?fe(e.revision):new Uint8Array,attributes:ge(e.attributes)?G.fromJSON(e.attributes):void 0,length:ge(e.length)?Number(e.length):0,timestamp:ge(e.timestamp)?String(e.timestamp):"0",ownerUsername:ge(e.ownerUsername)?String(e.ownerUsername):"",abuseReportingEnabled:!!ge(e.abuseReportingEnabled)&&Boolean(e.abuseReportingEnabled),capabilities:ge(e.capabilities)?m.fromJSON(e.capabilities):void 0,geoblock:Array.isArray(e?.geoblock)?e.geoblock.map((e=>C(e))):[]}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=he(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.attributes&&(t.attributes=e.attributes?G.toJSON(e.attributes):void 0),void 0!==e.length&&(t.length=Math.round(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?m.toJSON(e.capabilities):void 0),e.geoblock?t.geoblock=e.geoblock.map((e=>k(e))):t.geoblock=[],t},fromPartial(e){const t=D();return t.revision=e.revision??new Uint8Array,t.attributes=void 0!==e.attributes&&null!==e.attributes?G.fromPartial(e.attributes):void 0,t.length=e.length??0,t.timestamp=e.timestamp??"0",t.ownerUsername=e.ownerUsername??"",t.abuseReportingEnabled=e.abuseReportingEnabled??!1,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?m.fromPartial(e.capabilities):void 0,t.geoblock=e.geoblock?.map((e=>e))||[],t}};const x={encode(e,t=r().Writer.create()){if(void 0!==e.pos&&0!==e.pos&&t.uint32(8).int32(e.pos),!0===e.truncated&&t.uint32(16).bool(e.truncated),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.encode(n,t.uint32(26).fork()).ldelim();if(void 0!==e.metaItems&&0!==e.metaItems.length)for(const n of e.metaItems)M.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={pos:0,truncated:!1,items:[],metaItems:[]};for(;n.pos>>3){case 1:i.pos=n.int32();break;case 2:i.truncated=n.bool();break;case 3:i.items.push(w.decode(n,n.uint32()));break;case 4:i.metaItems.push(M.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({pos:ge(e.pos)?Number(e.pos):0,truncated:!!ge(e.truncated)&&Boolean(e.truncated),items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],metaItems:Array.isArray(e?.metaItems)?e.metaItems.map((e=>M.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.pos&&(t.pos=Math.round(e.pos)),void 0!==e.truncated&&(t.truncated=e.truncated),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],e.metaItems?t.metaItems=e.metaItems.map((e=>e?M.toJSON(e):void 0)):t.metaItems=[],t},fromPartial(e){const t={pos:0,truncated:!1,items:[],metaItems:[]};return t.pos=e.pos??0,t.truncated=e.truncated??!1,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.metaItems=e.metaItems?.map((e=>M.fromPartial(e)))||[],t}};const F={encode:(e,t=r().Writer.create())=>(void 0!==e.key&&""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&""!==e.value&&t.uint32(18).string(e.value),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=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:ge(e.key)?String(e.key):"",value:ge(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){const t={key:"",value:""};return t.key=e.key??"",t.value=e.value??"",t}};const U={encode:(e,t=r().Writer.create())=>(void 0!==e.targetName&&""!==e.targetName&&t.uint32(10).string(e.targetName),void 0!==e.url&&""!==e.url&&t.uint32(18).string(e.url),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={targetName:"",url:""};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=>({targetName:ge(e.targetName)?String(e.targetName):"",url:ge(e.url)?String(e.url):""}),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={targetName:"",url:""};return t.targetName=e.targetName??"",t.url=e.url??"",t}};const B={encode:(e,t=r().Writer.create())=>(!0===e.isRecommendation&&t.uint32(8).bool(e.isRecommendation),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={isRecommendation:!1};for(;n.pos>>3==1)i.isRecommendation=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({isRecommendation:!!ge(e.isRecommendation)&&Boolean(e.isRecommendation)}),toJSON(e){const t={};return void 0!==e.isRecommendation&&(t.isRecommendation=e.isRecommendation),t},fromPartial(e){const t={isRecommendation:!1};return t.isRecommendation=e.isRecommendation??!1,t}};function V(){return{name:"",description:"",picture:new Uint8Array,collaborative:!1,pl3Version:"",deletedByOwner:!1,clientId:"",format:"",formatAttributes:[],pictureSize:[]}}const G={encode(e,t=r().Writer.create()){if(void 0!==e.name&&""!==e.name&&t.uint32(10).string(e.name),void 0!==e.description&&""!==e.description&&t.uint32(18).string(e.description),void 0!==e.picture&&0!==e.picture.length&&t.uint32(26).bytes(e.picture),!0===e.collaborative&&t.uint32(32).bool(e.collaborative),void 0!==e.pl3Version&&""!==e.pl3Version&&t.uint32(42).string(e.pl3Version),!0===e.deletedByOwner&&t.uint32(48).bool(e.deletedByOwner),void 0!==e.clientId&&""!==e.clientId&&t.uint32(82).string(e.clientId),void 0!==e.format&&""!==e.format&&t.uint32(90).string(e.format),void 0!==e.formatAttributes&&0!==e.formatAttributes.length)for(const n of e.formatAttributes)F.encode(n,t.uint32(98).fork()).ldelim();if(void 0!==e.pictureSize&&0!==e.pictureSize.length)for(const n of e.pictureSize)U.encode(n,t.uint32(106).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=V();for(;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(F.decode(n,n.uint32()));break;case 13:i.pictureSize.push(U.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({name:ge(e.name)?String(e.name):"",description:ge(e.description)?String(e.description):"",picture:ge(e.picture)?fe(e.picture):new Uint8Array,collaborative:!!ge(e.collaborative)&&Boolean(e.collaborative),pl3Version:ge(e.pl3Version)?String(e.pl3Version):"",deletedByOwner:!!ge(e.deletedByOwner)&&Boolean(e.deletedByOwner),clientId:ge(e.clientId)?String(e.clientId):"",format:ge(e.format)?String(e.format):"",formatAttributes:Array.isArray(e?.formatAttributes)?e.formatAttributes.map((e=>F.fromJSON(e))):[],pictureSize:Array.isArray(e?.pictureSize)?e.pictureSize.map((e=>U.fromJSON(e))):[]}),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=he(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?F.toJSON(e):void 0)):t.formatAttributes=[],e.pictureSize?t.pictureSize=e.pictureSize.map((e=>e?U.toJSON(e):void 0)):t.pictureSize=[],t},fromPartial(e){const t=V();return t.name=e.name??"",t.description=e.description??"",t.picture=e.picture??new Uint8Array,t.collaborative=e.collaborative??!1,t.pl3Version=e.pl3Version??"",t.deletedByOwner=e.deletedByOwner??!1,t.clientId=e.clientId??"",t.format=e.format??"",t.formatAttributes=e.formatAttributes?.map((e=>F.fromPartial(e)))||[],t.pictureSize=e.pictureSize?.map((e=>U.fromPartial(e)))||[],t}};function J(){return{addedBy:"",timestamp:"0",seenAt:"0",public:!1,formatAttributes:[],itemId:new Uint8Array,sourceLens:void 0,availableSignals:[],recommendationInfo:void 0}}const j={encode(e,t=r().Writer.create()){if(void 0!==e.addedBy&&""!==e.addedBy&&t.uint32(10).string(e.addedBy),void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(16).int64(e.timestamp),void 0!==e.seenAt&&"0"!==e.seenAt&&t.uint32(72).int64(e.seenAt),!0===e.public&&t.uint32(80).bool(e.public),void 0!==e.formatAttributes&&0!==e.formatAttributes.length)for(const n of e.formatAttributes)F.encode(n,t.uint32(90).fork()).ldelim();if(void 0!==e.itemId&&0!==e.itemId.length&&t.uint32(98).bytes(e.itemId),void 0!==e.sourceLens&&a.encode(e.sourceLens,t.uint32(106).fork()).ldelim(),void 0!==e.availableSignals&&0!==e.availableSignals.length)for(const n of e.availableSignals)_.encode(n,t.uint32(114).fork()).ldelim();return void 0!==e.recommendationInfo&&B.encode(e.recommendationInfo,t.uint32(122).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=J();for(;n.pos>>3){case 1:i.addedBy=n.string();break;case 2:i.timestamp=me(n.int64());break;case 9:i.seenAt=me(n.int64());break;case 10:i.public=n.bool();break;case 11:i.formatAttributes.push(F.decode(n,n.uint32()));break;case 12:i.itemId=n.bytes();break;case 13:i.sourceLens=a.decode(n,n.uint32());break;case 14:i.availableSignals.push(_.decode(n,n.uint32()));break;case 15:i.recommendationInfo=B.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({addedBy:ge(e.addedBy)?String(e.addedBy):"",timestamp:ge(e.timestamp)?String(e.timestamp):"0",seenAt:ge(e.seenAt)?String(e.seenAt):"0",public:!!ge(e.public)&&Boolean(e.public),formatAttributes:Array.isArray(e?.formatAttributes)?e.formatAttributes.map((e=>F.fromJSON(e))):[],itemId:ge(e.itemId)?fe(e.itemId):new Uint8Array,sourceLens:ge(e.sourceLens)?a.fromJSON(e.sourceLens):void 0,availableSignals:Array.isArray(e?.availableSignals)?e.availableSignals.map((e=>_.fromJSON(e))):[],recommendationInfo:ge(e.recommendationInfo)?B.fromJSON(e.recommendationInfo):void 0}),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?F.toJSON(e):void 0)):t.formatAttributes=[],void 0!==e.itemId&&(t.itemId=he(void 0!==e.itemId?e.itemId:new Uint8Array)),void 0!==e.sourceLens&&(t.sourceLens=e.sourceLens?a.toJSON(e.sourceLens):void 0),e.availableSignals?t.availableSignals=e.availableSignals.map((e=>e?_.toJSON(e):void 0)):t.availableSignals=[],void 0!==e.recommendationInfo&&(t.recommendationInfo=e.recommendationInfo?B.toJSON(e.recommendationInfo):void 0),t},fromPartial(e){const t=J();return t.addedBy=e.addedBy??"",t.timestamp=e.timestamp??"0",t.seenAt=e.seenAt??"0",t.public=e.public??!1,t.formatAttributes=e.formatAttributes?.map((e=>F.fromPartial(e)))||[],t.itemId=e.itemId??new Uint8Array,t.sourceLens=void 0!==e.sourceLens&&null!==e.sourceLens?a.fromPartial(e.sourceLens):void 0,t.availableSignals=e.availableSignals?.map((e=>_.fromPartial(e)))||[],t.recommendationInfo=void 0!==e.recommendationInfo&&null!==e.recommendationInfo?B.fromPartial(e.recommendationInfo):void 0,t}};const H={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.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),void 0!==e.addBeforeItem&&w.encode(e.addBeforeItem,t.uint32(50).fork()).ldelim(),void 0!==e.addAfterItem&&w.encode(e.addAfterItem,t.uint32(58).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};for(;n.pos>>3){case 1:i.fromIndex=n.int32();break;case 2:i.items.push(w.decode(n,n.uint32()));break;case 4:i.addLast=n.bool();break;case 5:i.addFirst=n.bool();break;case 6:i.addBeforeItem=w.decode(n,n.uint32());break;case 7:i.addAfterItem=w.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromIndex:ge(e.fromIndex)?Number(e.fromIndex):0,items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],addLast:!!ge(e.addLast)&&Boolean(e.addLast),addFirst:!!ge(e.addFirst)&&Boolean(e.addFirst),addBeforeItem:ge(e.addBeforeItem)?w.fromJSON(e.addBeforeItem):void 0,addAfterItem:ge(e.addAfterItem)?w.fromJSON(e.addAfterItem):void 0}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],void 0!==e.addLast&&(t.addLast=e.addLast),void 0!==e.addFirst&&(t.addFirst=e.addFirst),void 0!==e.addBeforeItem&&(t.addBeforeItem=e.addBeforeItem?w.toJSON(e.addBeforeItem):void 0),void 0!==e.addAfterItem&&(t.addAfterItem=e.addAfterItem?w.toJSON(e.addAfterItem):void 0),t},fromPartial(e){const t={fromIndex:0,items:[],addLast:!1,addFirst:!1,addBeforeItem:void 0,addAfterItem:void 0};return t.fromIndex=e.fromIndex??0,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.addLast=e.addLast??!1,t.addFirst=e.addFirst??!1,t.addBeforeItem=void 0!==e.addBeforeItem&&null!==e.addBeforeItem?w.fromPartial(e.addBeforeItem):void 0,t.addAfterItem=void 0!==e.addAfterItem&&null!==e.addAfterItem?w.fromPartial(e.addAfterItem):void 0,t}};const K={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.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 r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={fromIndex:0,length:0,items:[],itemsAsKey:!1};for(;n.pos>>3){case 1:i.fromIndex=n.int32();break;case 2:i.length=n.int32();break;case 3:i.items.push(w.decode(n,n.uint32()));break;case 7:i.itemsAsKey=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromIndex:ge(e.fromIndex)?Number(e.fromIndex):0,length:ge(e.length)?Number(e.length):0,items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],itemsAsKey:!!ge(e.itemsAsKey)&&Boolean(e.itemsAsKey)}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),void 0!==e.length&&(t.length=Math.round(e.length)),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],void 0!==e.itemsAsKey&&(t.itemsAsKey=e.itemsAsKey),t},fromPartial(e){const t={fromIndex:0,length:0,items:[],itemsAsKey:!1};return t.fromIndex=e.fromIndex??0,t.length=e.length??0,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.itemsAsKey=e.itemsAsKey??!1,t}};const Y={encode(e,t=r().Writer.create()){if(void 0!==e.fromIndex&&0!==e.fromIndex&&t.uint32(8).int32(e.fromIndex),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.toIndex&&0!==e.toIndex&&t.uint32(24).int32(e.toIndex),void 0!==e.items&&0!==e.items.length)for(const n of e.items)w.encode(n,t.uint32(34).fork()).ldelim();return void 0!==e.addBeforeItem&&w.encode(e.addBeforeItem,t.uint32(42).fork()).ldelim(),void 0!==e.addAfterItem&&w.encode(e.addAfterItem,t.uint32(50).fork()).ldelim(),!0===e.addFirst&&t.uint32(56).bool(e.addFirst),!0===e.addLast&&t.uint32(64).bool(e.addLast),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};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;case 4:i.items.push(w.decode(n,n.uint32()));break;case 5:i.addBeforeItem=w.decode(n,n.uint32());break;case 6:i.addAfterItem=w.decode(n,n.uint32());break;case 7:i.addFirst=n.bool();break;case 8:i.addLast=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromIndex:ge(e.fromIndex)?Number(e.fromIndex):0,length:ge(e.length)?Number(e.length):0,toIndex:ge(e.toIndex)?Number(e.toIndex):0,items:Array.isArray(e?.items)?e.items.map((e=>w.fromJSON(e))):[],addBeforeItem:ge(e.addBeforeItem)?w.fromJSON(e.addBeforeItem):void 0,addAfterItem:ge(e.addAfterItem)?w.fromJSON(e.addAfterItem):void 0,addFirst:!!ge(e.addFirst)&&Boolean(e.addFirst),addLast:!!ge(e.addLast)&&Boolean(e.addLast)}),toJSON(e){const t={};return void 0!==e.fromIndex&&(t.fromIndex=Math.round(e.fromIndex)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.toIndex&&(t.toIndex=Math.round(e.toIndex)),e.items?t.items=e.items.map((e=>e?w.toJSON(e):void 0)):t.items=[],void 0!==e.addBeforeItem&&(t.addBeforeItem=e.addBeforeItem?w.toJSON(e.addBeforeItem):void 0),void 0!==e.addAfterItem&&(t.addAfterItem=e.addAfterItem?w.toJSON(e.addAfterItem):void 0),void 0!==e.addFirst&&(t.addFirst=e.addFirst),void 0!==e.addLast&&(t.addLast=e.addLast),t},fromPartial(e){const t={fromIndex:0,length:0,toIndex:0,items:[],addBeforeItem:void 0,addAfterItem:void 0,addFirst:!1,addLast:!1};return t.fromIndex=e.fromIndex??0,t.length=e.length??0,t.toIndex=e.toIndex??0,t.items=e.items?.map((e=>w.fromPartial(e)))||[],t.addBeforeItem=void 0!==e.addBeforeItem&&null!==e.addBeforeItem?w.fromPartial(e.addBeforeItem):void 0,t.addAfterItem=void 0!==e.addAfterItem&&null!==e.addAfterItem?w.fromPartial(e.addAfterItem):void 0,t.addFirst=e.addFirst??!1,t.addLast=e.addLast??!1,t}};const W={encode(e,t=r().Writer.create()){if(void 0!==e.values&&j.encode(e.values,t.uint32(10).fork()).ldelim(),void 0!==e.noValue&&0!==e.noValue.length){t.uint32(18).fork();for(const n of e.noValue)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={values:void 0,noValue:[]};for(;n.pos>>3){case 1:i.values=j.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({values:ge(e.values)?j.fromJSON(e.values):void 0,noValue:Array.isArray(e?.noValue)?e.noValue.map((e=>function(e){switch(e){case 0:case"ITEM_UNKNOWN":return P.ITEM_UNKNOWN;case 1:case"ITEM_ADDED_BY":return P.ITEM_ADDED_BY;case 2:case"ITEM_TIMESTAMP":return P.ITEM_TIMESTAMP;case 9:case"ITEM_SEEN_AT":return P.ITEM_SEEN_AT;case 10:case"ITEM_PUBLIC":return P.ITEM_PUBLIC;case 11:case"ITEM_FORMAT_ATTRIBUTES":return P.ITEM_FORMAT_ATTRIBUTES;case 12:case"ITEM_ID":return P.ITEM_ID;case 13:case"ITEM_SOURCE_LENS":return P.ITEM_SOURCE_LENS;case 14:case"ITEM_AVAILABLE_SIGNALS":return P.ITEM_AVAILABLE_SIGNALS;case 15:case"ITEM_RECOMMENDATION_INFO":return P.ITEM_RECOMMENDATION_INFO;default:return P.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return void 0!==e.values&&(t.values=e.values?j.toJSON(e.values):void 0),e.noValue?t.noValue=e.noValue.map((e=>function(e){switch(e){case P.ITEM_UNKNOWN:return 0;case P.ITEM_ADDED_BY:return 1;case P.ITEM_TIMESTAMP:return 2;case P.ITEM_SEEN_AT:return 9;case P.ITEM_PUBLIC:return 10;case P.ITEM_FORMAT_ATTRIBUTES:return 11;case P.ITEM_ID:return 12;case P.ITEM_SOURCE_LENS:return 13;case P.ITEM_AVAILABLE_SIGNALS:return 14;case P.ITEM_RECOMMENDATION_INFO:return 15;case P.UNRECOGNIZED:default:return-1}}(e))):t.noValue=[],t},fromPartial(e){const t={values:void 0,noValue:[]};return t.values=void 0!==e.values&&null!==e.values?j.fromPartial(e.values):void 0,t.noValue=e.noValue?.map((e=>e))||[],t}};const z={encode(e,t=r().Writer.create()){if(void 0!==e.values&&G.encode(e.values,t.uint32(10).fork()).ldelim(),void 0!==e.noValue&&0!==e.noValue.length){t.uint32(18).fork();for(const n of e.noValue)t.int32(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={values:void 0,noValue:[]};for(;n.pos>>3){case 1:i.values=G.decode(n,n.uint32());break;case 2:if(2==(7&e)){const e=n.uint32()+n.pos;for(;n.pos({values:ge(e.values)?G.fromJSON(e.values):void 0,noValue:Array.isArray(e?.noValue)?e.noValue.map((e=>function(e){switch(e){case 0:case"LIST_UNKNOWN":return T.LIST_UNKNOWN;case 1:case"LIST_NAME":return T.LIST_NAME;case 2:case"LIST_DESCRIPTION":return T.LIST_DESCRIPTION;case 3:case"LIST_PICTURE":return T.LIST_PICTURE;case 4:case"LIST_COLLABORATIVE":return T.LIST_COLLABORATIVE;case 5:case"LIST_PL3_VERSION":return T.LIST_PL3_VERSION;case 6:case"LIST_DELETED_BY_OWNER":return T.LIST_DELETED_BY_OWNER;case 10:case"LIST_CLIENT_ID":return T.LIST_CLIENT_ID;case 11:case"LIST_FORMAT":return T.LIST_FORMAT;case 12:case"LIST_FORMAT_ATTRIBUTES":return T.LIST_FORMAT_ATTRIBUTES;case 13:case"LIST_PICTURE_SIZE":return T.LIST_PICTURE_SIZE;default:return T.UNRECOGNIZED}}(e))):[]}),toJSON(e){const t={};return void 0!==e.values&&(t.values=e.values?G.toJSON(e.values):void 0),e.noValue?t.noValue=e.noValue.map((e=>function(e){switch(e){case T.LIST_UNKNOWN:return 0;case T.LIST_NAME:return 1;case T.LIST_DESCRIPTION:return 2;case T.LIST_PICTURE:return 3;case T.LIST_COLLABORATIVE:return 4;case T.LIST_PL3_VERSION:return 5;case T.LIST_DELETED_BY_OWNER:return 6;case T.LIST_CLIENT_ID:return 10;case T.LIST_FORMAT:return 11;case T.LIST_FORMAT_ATTRIBUTES:return 12;case T.LIST_PICTURE_SIZE:return 13;case T.UNRECOGNIZED:default:return-1}}(e))):t.noValue=[],t},fromPartial(e){const t={values:void 0,noValue:[]};return t.values=void 0!==e.values&&null!==e.values?G.fromPartial(e.values):void 0,t.noValue=e.noValue?.map((e=>e))||[],t}};const q={encode:(e,t=r().Writer.create())=>(void 0!==e.index&&0!==e.index&&t.uint32(8).int32(e.index),void 0!==e.newAttributes&&W.encode(e.newAttributes,t.uint32(18).fork()).ldelim(),void 0!==e.oldAttributes&&W.encode(e.oldAttributes,t.uint32(26).fork()).ldelim(),void 0!==e.item&&w.encode(e.item,t.uint32(34).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};for(;n.pos>>3){case 1:i.index=n.int32();break;case 2:i.newAttributes=W.decode(n,n.uint32());break;case 3:i.oldAttributes=W.decode(n,n.uint32());break;case 4:i.item=w.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({index:ge(e.index)?Number(e.index):0,newAttributes:ge(e.newAttributes)?W.fromJSON(e.newAttributes):void 0,oldAttributes:ge(e.oldAttributes)?W.fromJSON(e.oldAttributes):void 0,item:ge(e.item)?w.fromJSON(e.item):void 0}),toJSON(e){const t={};return void 0!==e.index&&(t.index=Math.round(e.index)),void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?W.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?W.toJSON(e.oldAttributes):void 0),void 0!==e.item&&(t.item=e.item?w.toJSON(e.item):void 0),t},fromPartial(e){const t={index:0,newAttributes:void 0,oldAttributes:void 0,item:void 0};return t.index=e.index??0,t.newAttributes=void 0!==e.newAttributes&&null!==e.newAttributes?W.fromPartial(e.newAttributes):void 0,t.oldAttributes=void 0!==e.oldAttributes&&null!==e.oldAttributes?W.fromPartial(e.oldAttributes):void 0,t.item=void 0!==e.item&&null!==e.item?w.fromPartial(e.item):void 0,t}};const X={encode:(e,t=r().Writer.create())=>(void 0!==e.newAttributes&&z.encode(e.newAttributes,t.uint32(10).fork()).ldelim(),void 0!==e.oldAttributes&&z.encode(e.oldAttributes,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={newAttributes:void 0,oldAttributes:void 0};for(;n.pos>>3){case 1:i.newAttributes=z.decode(n,n.uint32());break;case 2:i.oldAttributes=z.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({newAttributes:ge(e.newAttributes)?z.fromJSON(e.newAttributes):void 0,oldAttributes:ge(e.oldAttributes)?z.fromJSON(e.oldAttributes):void 0}),toJSON(e){const t={};return void 0!==e.newAttributes&&(t.newAttributes=e.newAttributes?z.toJSON(e.newAttributes):void 0),void 0!==e.oldAttributes&&(t.oldAttributes=e.oldAttributes?z.toJSON(e.oldAttributes):void 0),t},fromPartial(e){const t={newAttributes:void 0,oldAttributes:void 0};return t.newAttributes=void 0!==e.newAttributes&&null!==e.newAttributes?z.fromPartial(e.newAttributes):void 0,t.oldAttributes=void 0!==e.oldAttributes&&null!==e.oldAttributes?z.fromPartial(e.oldAttributes):void 0,t}};const Z={encode:(e,t=r().Writer.create())=>(void 0!==e.kind&&0!==e.kind&&t.uint32(8).int32(e.kind),void 0!==e.add&&H.encode(e.add,t.uint32(18).fork()).ldelim(),void 0!==e.rem&&K.encode(e.rem,t.uint32(26).fork()).ldelim(),void 0!==e.mov&&Y.encode(e.mov,t.uint32(34).fork()).ldelim(),void 0!==e.updateItemAttributes&&q.encode(e.updateItemAttributes,t.uint32(42).fork()).ldelim(),void 0!==e.updateListAttributes&&X.encode(e.updateListAttributes,t.uint32(50).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0};for(;n.pos>>3){case 1:i.kind=n.int32();break;case 2:i.add=H.decode(n,n.uint32());break;case 3:i.rem=K.decode(n,n.uint32());break;case 4:i.mov=Y.decode(n,n.uint32());break;case 5:i.updateItemAttributes=q.decode(n,n.uint32());break;case 6:i.updateListAttributes=X.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({kind:ge(e.kind)?L(e.kind):0,add:ge(e.add)?H.fromJSON(e.add):void 0,rem:ge(e.rem)?K.fromJSON(e.rem):void 0,mov:ge(e.mov)?Y.fromJSON(e.mov):void 0,updateItemAttributes:ge(e.updateItemAttributes)?q.fromJSON(e.updateItemAttributes):void 0,updateListAttributes:ge(e.updateListAttributes)?X.fromJSON(e.updateListAttributes):void 0}),toJSON(e){const t={};return void 0!==e.kind&&(t.kind=function(e){switch(e){case R.KIND_UNKNOWN:return 0;case R.ADD:return 2;case R.REM:return 3;case R.MOV:return 4;case R.UPDATE_ITEM_ATTRIBUTES:return 5;case R.UPDATE_LIST_ATTRIBUTES:return 6;case R.UNRECOGNIZED:default:return-1}}(e.kind)),void 0!==e.add&&(t.add=e.add?H.toJSON(e.add):void 0),void 0!==e.rem&&(t.rem=e.rem?K.toJSON(e.rem):void 0),void 0!==e.mov&&(t.mov=e.mov?Y.toJSON(e.mov):void 0),void 0!==e.updateItemAttributes&&(t.updateItemAttributes=e.updateItemAttributes?q.toJSON(e.updateItemAttributes):void 0),void 0!==e.updateListAttributes&&(t.updateListAttributes=e.updateListAttributes?X.toJSON(e.updateListAttributes):void 0),t},fromPartial(e){const t={kind:0,add:void 0,rem:void 0,mov:void 0,updateItemAttributes:void 0,updateListAttributes:void 0};return t.kind=e.kind??0,t.add=void 0!==e.add&&null!==e.add?H.fromPartial(e.add):void 0,t.rem=void 0!==e.rem&&null!==e.rem?K.fromPartial(e.rem):void 0,t.mov=void 0!==e.mov&&null!==e.mov?Y.fromPartial(e.mov):void 0,t.updateItemAttributes=void 0!==e.updateItemAttributes&&null!==e.updateItemAttributes?q.fromPartial(e.updateItemAttributes):void 0,t.updateListAttributes=void 0!==e.updateListAttributes&&null!==e.updateListAttributes?X.fromPartial(e.updateListAttributes):void 0,t}};const Q={encode(e,t=r().Writer.create()){if(void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)Z.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={ops:[]};for(;n.pos>>3==1)i.ops.push(Z.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({ops:Array.isArray(e?.ops)?e.ops.map((e=>Z.fromJSON(e))):[]}),toJSON(e){const t={};return e.ops?t.ops=e.ops.map((e=>e?Z.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t={ops:[]};return t.ops=e.ops?.map((e=>Z.fromPartial(e)))||[],t}};const $={encode:(e,t=r().Writer.create())=>(void 0!==e.user&&""!==e.user&&t.uint32(10).string(e.user),void 0!==e.timestamp&&"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),void 0!==e.splitId&&0!==e.splitId&&t.uint32(72).int32(e.splitId),void 0!==e.source&&ee.encode(e.source,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0,source:void 0};for(;n.pos>>3){case 1:i.user=n.string();break;case 2:i.timestamp=me(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=ee.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({user:ge(e.user)?String(e.user):"",timestamp:ge(e.timestamp)?String(e.timestamp):"0",admin:!!ge(e.admin)&&Boolean(e.admin),undo:!!ge(e.undo)&&Boolean(e.undo),redo:!!ge(e.redo)&&Boolean(e.redo),merge:!!ge(e.merge)&&Boolean(e.merge),compressed:!!ge(e.compressed)&&Boolean(e.compressed),migration:!!ge(e.migration)&&Boolean(e.migration),splitId:ge(e.splitId)?Number(e.splitId):0,source:ge(e.source)?ee.fromJSON(e.source):void 0}),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=Math.round(e.splitId)),void 0!==e.source&&(t.source=e.source?ee.toJSON(e.source):void 0),t},fromPartial(e){const t={user:"",timestamp:"0",admin:!1,undo:!1,redo:!1,merge:!1,compressed:!1,migration:!1,splitId:0,source:void 0};return t.user=e.user??"",t.timestamp=e.timestamp??"0",t.admin=e.admin??!1,t.undo=e.undo??!1,t.redo=e.redo??!1,t.merge=e.merge??!1,t.compressed=e.compressed??!1,t.migration=e.migration??!1,t.splitId=e.splitId??0,t.source=void 0!==e.source&&null!==e.source?ee.fromPartial(e.source):void 0,t}};const ee={encode:(e,t=r().Writer.create())=>(void 0!==e.client&&0!==e.client&&t.uint32(8).int32(e.client),void 0!==e.app&&""!==e.app&&t.uint32(26).string(e.app),void 0!==e.source&&""!==e.source&&t.uint32(34).string(e.source),void 0!==e.version&&""!==e.version&&t.uint32(42).string(e.version),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={client:0,app:"",source:"",version:""};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=>({client:ge(e.client)?N(e.client):0,app:ge(e.app)?String(e.app):"",source:ge(e.source)?String(e.source):"",version:ge(e.version)?String(e.version):""}),toJSON(e){const t={};return void 0!==e.client&&(t.client=function(e){switch(e){case I.CLIENT_UNKNOWN:return 0;case I.NATIVE_HERMES:return 1;case I.CLIENT:return 2;case I.PYTHON:return 3;case I.JAVA:return 4;case I.WEBPLAYER:return 5;case I.LIBSPOTIFY:return 6;case I.UNRECOGNIZED:default:return-1}}(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={client:0,app:"",source:"",version:""};return t.client=e.client??0,t.app=e.app??"",t.source=e.source??"",t.version=e.version??"",t}};function te(){return{baseVersion:new Uint8Array,ops:[],info:void 0}}const ne={encode(e,t=r().Writer.create()){if(void 0!==e.baseVersion&&0!==e.baseVersion.length&&t.uint32(10).bytes(e.baseVersion),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)Z.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.info&&$.encode(e.info,t.uint32(34).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=te();for(;n.pos>>3){case 1:i.baseVersion=n.bytes();break;case 2:i.ops.push(Z.decode(n,n.uint32()));break;case 4:i.info=$.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({baseVersion:ge(e.baseVersion)?fe(e.baseVersion):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>Z.fromJSON(e))):[],info:ge(e.info)?$.fromJSON(e.info):void 0}),toJSON(e){const t={};return void 0!==e.baseVersion&&(t.baseVersion=he(void 0!==e.baseVersion?e.baseVersion:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?Z.toJSON(e):void 0)):t.ops=[],void 0!==e.info&&(t.info=e.info?$.toJSON(e.info):void 0),t},fromPartial(e){const t=te();return t.baseVersion=e.baseVersion??new Uint8Array,t.ops=e.ops?.map((e=>Z.fromPartial(e)))||[],t.info=void 0!==e.info&&null!==e.info?$.fromPartial(e.info):void 0,t}};function oe(){return{fromRevision:new Uint8Array,ops:[],toRevision:new Uint8Array}}const ie={encode(e,t=r().Writer.create()){if(void 0!==e.fromRevision&&0!==e.fromRevision.length&&t.uint32(10).bytes(e.fromRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)Z.encode(n,t.uint32(18).fork()).ldelim();return void 0!==e.toRevision&&0!==e.toRevision.length&&t.uint32(26).bytes(e.toRevision),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=oe();for(;n.pos>>3){case 1:i.fromRevision=n.bytes();break;case 2:i.ops.push(Z.decode(n,n.uint32()));break;case 3:i.toRevision=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({fromRevision:ge(e.fromRevision)?fe(e.fromRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>Z.fromJSON(e))):[],toRevision:ge(e.toRevision)?fe(e.toRevision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.fromRevision&&(t.fromRevision=he(void 0!==e.fromRevision?e.fromRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?Z.toJSON(e):void 0)):t.ops=[],void 0!==e.toRevision&&(t.toRevision=he(void 0!==e.toRevision?e.toRevision:new Uint8Array)),t},fromPartial(e){const t=oe();return t.fromRevision=e.fromRevision??new Uint8Array,t.ops=e.ops?.map((e=>Z.fromPartial(e)))||[],t.toRevision=e.toRevision??new Uint8Array,t}};function re(){return{baseRevision:new Uint8Array,deltas:[],wantResultingRevisions:!1,wantSyncResult:!1,nonces:[]}}const ae={encode(e,t=r().Writer.create()){if(void 0!==e.baseRevision&&0!==e.baseRevision.length&&t.uint32(10).bytes(e.baseRevision),void 0!==e.deltas&&0!==e.deltas.length)for(const n of e.deltas)ne.encode(n,t.uint32(18).fork()).ldelim();if(!0===e.wantResultingRevisions&&t.uint32(24).bool(e.wantResultingRevisions),!0===e.wantSyncResult&&t.uint32(32).bool(e.wantSyncResult),void 0!==e.nonces&&0!==e.nonces.length){t.uint32(50).fork();for(const n of e.nonces)t.int64(n);t.ldelim()}return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=re();for(;n.pos>>3){case 1:i.baseRevision=n.bytes();break;case 2:i.deltas.push(ne.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.pos({baseRevision:ge(e.baseRevision)?fe(e.baseRevision):new Uint8Array,deltas:Array.isArray(e?.deltas)?e.deltas.map((e=>ne.fromJSON(e))):[],wantResultingRevisions:!!ge(e.wantResultingRevisions)&&Boolean(e.wantResultingRevisions),wantSyncResult:!!ge(e.wantSyncResult)&&Boolean(e.wantSyncResult),nonces:Array.isArray(e?.nonces)?e.nonces.map((e=>String(e))):[]}),toJSON(e){const t={};return void 0!==e.baseRevision&&(t.baseRevision=he(void 0!==e.baseRevision?e.baseRevision:new Uint8Array)),e.deltas?t.deltas=e.deltas.map((e=>e?ne.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=re();return t.baseRevision=e.baseRevision??new Uint8Array,t.deltas=e.deltas?.map((e=>ne.fromPartial(e)))||[],t.wantResultingRevisions=e.wantResultingRevisions??!1,t.wantSyncResult=e.wantSyncResult??!1,t.nonces=e.nonces?.map((e=>e))||[],t}};function se(){return{revision:new Uint8Array,length:0,attributes:void 0,contents:void 0,diff:void 0,syncResult:void 0,resultingRevisions:[],multipleHeads:!1,upToDate:!1,nonces:[],timestamp:"0",ownerUsername:"",abuseReportingEnabled:!1,capabilities:void 0,geoblock:[],changesRequireResync:!1,createdAt:"0",appliedLenses:void 0}}const le={encode(e,t=r().Writer.create()){if(void 0!==e.revision&&0!==e.revision.length&&t.uint32(10).bytes(e.revision),void 0!==e.length&&0!==e.length&&t.uint32(16).int32(e.length),void 0!==e.attributes&&G.encode(e.attributes,t.uint32(26).fork()).ldelim(),void 0!==e.contents&&x.encode(e.contents,t.uint32(42).fork()).ldelim(),void 0!==e.diff&&ie.encode(e.diff,t.uint32(50).fork()).ldelim(),void 0!==e.syncResult&&ie.encode(e.syncResult,t.uint32(58).fork()).ldelim(),void 0!==e.resultingRevisions&&0!==e.resultingRevisions.length)for(const n of e.resultingRevisions)t.uint32(66).bytes(n);if(!0===e.multipleHeads&&t.uint32(72).bool(e.multipleHeads),!0===e.upToDate&&t.uint32(80).bool(e.upToDate),void 0!==e.nonces&&0!==e.nonces.length){t.uint32(114).fork();for(const n of e.nonces)t.int64(n);t.ldelim()}if(void 0!==e.timestamp&&"0"!==e.timestamp&&t.uint32(120).int64(e.timestamp),void 0!==e.ownerUsername&&""!==e.ownerUsername&&t.uint32(130).string(e.ownerUsername),!0===e.abuseReportingEnabled&&t.uint32(136).bool(e.abuseReportingEnabled),void 0!==e.capabilities&&m.encode(e.capabilities,t.uint32(146).fork()).ldelim(),void 0!==e.geoblock&&0!==e.geoblock.length){t.uint32(154).fork();for(const n of e.geoblock)t.int32(n);t.ldelim()}return!0===e.changesRequireResync&&t.uint32(160).bool(e.changesRequireResync),void 0!==e.createdAt&&"0"!==e.createdAt&&t.uint32(168).int64(e.createdAt),void 0!==e.appliedLenses&&ce.encode(e.appliedLenses,t.uint32(178).fork()).ldelim(),t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=se();for(;n.pos>>3){case 1:i.revision=n.bytes();break;case 2:i.length=n.int32();break;case 3:i.attributes=G.decode(n,n.uint32());break;case 5:i.contents=x.decode(n,n.uint32());break;case 6:i.diff=ie.decode(n,n.uint32());break;case 7:i.syncResult=ie.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({revision:ge(e.revision)?fe(e.revision):new Uint8Array,length:ge(e.length)?Number(e.length):0,attributes:ge(e.attributes)?G.fromJSON(e.attributes):void 0,contents:ge(e.contents)?x.fromJSON(e.contents):void 0,diff:ge(e.diff)?ie.fromJSON(e.diff):void 0,syncResult:ge(e.syncResult)?ie.fromJSON(e.syncResult):void 0,resultingRevisions:Array.isArray(e?.resultingRevisions)?e.resultingRevisions.map((e=>fe(e))):[],multipleHeads:!!ge(e.multipleHeads)&&Boolean(e.multipleHeads),upToDate:!!ge(e.upToDate)&&Boolean(e.upToDate),nonces:Array.isArray(e?.nonces)?e.nonces.map((e=>String(e))):[],timestamp:ge(e.timestamp)?String(e.timestamp):"0",ownerUsername:ge(e.ownerUsername)?String(e.ownerUsername):"",abuseReportingEnabled:!!ge(e.abuseReportingEnabled)&&Boolean(e.abuseReportingEnabled),capabilities:ge(e.capabilities)?m.fromJSON(e.capabilities):void 0,geoblock:Array.isArray(e?.geoblock)?e.geoblock.map((e=>C(e))):[],changesRequireResync:!!ge(e.changesRequireResync)&&Boolean(e.changesRequireResync),createdAt:ge(e.createdAt)?String(e.createdAt):"0",appliedLenses:ge(e.appliedLenses)?ce.fromJSON(e.appliedLenses):void 0}),toJSON(e){const t={};return void 0!==e.revision&&(t.revision=he(void 0!==e.revision?e.revision:new Uint8Array)),void 0!==e.length&&(t.length=Math.round(e.length)),void 0!==e.attributes&&(t.attributes=e.attributes?G.toJSON(e.attributes):void 0),void 0!==e.contents&&(t.contents=e.contents?x.toJSON(e.contents):void 0),void 0!==e.diff&&(t.diff=e.diff?ie.toJSON(e.diff):void 0),void 0!==e.syncResult&&(t.syncResult=e.syncResult?ie.toJSON(e.syncResult):void 0),e.resultingRevisions?t.resultingRevisions=e.resultingRevisions.map((e=>he(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?m.toJSON(e.capabilities):void 0),e.geoblock?t.geoblock=e.geoblock.map((e=>k(e))):t.geoblock=[],void 0!==e.changesRequireResync&&(t.changesRequireResync=e.changesRequireResync),void 0!==e.createdAt&&(t.createdAt=e.createdAt),void 0!==e.appliedLenses&&(t.appliedLenses=e.appliedLenses?ce.toJSON(e.appliedLenses):void 0),t},fromPartial(e){const t=se();return t.revision=e.revision??new Uint8Array,t.length=e.length??0,t.attributes=void 0!==e.attributes&&null!==e.attributes?G.fromPartial(e.attributes):void 0,t.contents=void 0!==e.contents&&null!==e.contents?x.fromPartial(e.contents):void 0,t.diff=void 0!==e.diff&&null!==e.diff?ie.fromPartial(e.diff):void 0,t.syncResult=void 0!==e.syncResult&&null!==e.syncResult?ie.fromPartial(e.syncResult):void 0,t.resultingRevisions=e.resultingRevisions?.map((e=>e))||[],t.multipleHeads=e.multipleHeads??!1,t.upToDate=e.upToDate??!1,t.nonces=e.nonces?.map((e=>e))||[],t.timestamp=e.timestamp??"0",t.ownerUsername=e.ownerUsername??"",t.abuseReportingEnabled=e.abuseReportingEnabled??!1,t.capabilities=void 0!==e.capabilities&&null!==e.capabilities?m.fromPartial(e.capabilities):void 0,t.geoblock=e.geoblock?.map((e=>e))||[],t.changesRequireResync=e.changesRequireResync??!1,t.createdAt=e.createdAt??"0",t.appliedLenses=void 0!==e.appliedLenses&&null!==e.appliedLenses?ce.fromPartial(e.appliedLenses):void 0,t}};const ce={encode(e,t=r().Writer.create()){if(void 0!==e.states&&0!==e.states.length)for(const n of e.states)l.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={states:[]};for(;n.pos>>3==1)i.states.push(l.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({states:Array.isArray(e?.states)?e.states.map((e=>l.fromJSON(e))):[]}),toJSON(e){const t={};return e.states?t.states=e.states.map((e=>e?l.toJSON(e):void 0)):t.states=[],t},fromPartial(e){const t={states:[]};return t.states=e.states?.map((e=>l.fromPartial(e)))||[],t}};function ue(){return{uri:"",revision:new Uint8Array}}const de={encode:(e,t=r().Writer.create())=>(void 0!==e.uri&&""!==e.uri&&t.uint32(10).string(e.uri),void 0!==e.revision&&0!==e.revision.length&&t.uint32(18).bytes(e.revision),t),decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=ue();for(;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=>({uri:ge(e.uri)?String(e.uri):"",revision:ge(e.revision)?fe(e.revision):new Uint8Array}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=e.uri),void 0!==e.revision&&(t.revision=he(void 0!==e.revision?e.revision:new Uint8Array)),t},fromPartial(e){const t=ue();return t.uri=e.uri??"",t.revision=e.revision??new Uint8Array,t}};var pe=(()=>{if(void 0!==pe)return pe;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 fe(e){if(pe.Buffer)return Uint8Array.from(pe.Buffer.from(e,"base64"));{const t=pe.atob(e),n=new Uint8Array(t.length);for(let e=0;e{t.push(String.fromCharCode(e))})),pe.btoa(t.join(""))}}function me(e){return e.toString()}function ge(e){return null!=e}r().util.Long!==o.Z&&(r().util.Long=o.Z,r().configure())},81595:(e,t,n)=>{"use strict";n.d(t,{bu:()=>u,mn:()=>l});var o=n(3959),i=n(33892),r=n.n(i),a=n(12101);function s(){return{uri:new Uint8Array,newRevision:new Uint8Array,parentRevision:new Uint8Array,ops:[]}}const l={encode(e,t=r().Writer.create()){if(void 0!==e.uri&&0!==e.uri.length&&t.uint32(10).bytes(e.uri),void 0!==e.newRevision&&0!==e.newRevision.length&&t.uint32(18).bytes(e.newRevision),void 0!==e.parentRevision&&0!==e.parentRevision.length&&t.uint32(26).bytes(e.parentRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)a.Op.encode(n,t.uint32(34).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=s();for(;n.pos>>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(a.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({uri:h(e.uri)?p(e.uri):new Uint8Array,newRevision:h(e.newRevision)?p(e.newRevision):new Uint8Array,parentRevision:h(e.parentRevision)?p(e.parentRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>a.Op.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.uri&&(t.uri=f(void 0!==e.uri?e.uri:new Uint8Array)),void 0!==e.newRevision&&(t.newRevision=f(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=f(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?a.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=s();return t.uri=e.uri??new Uint8Array,t.newRevision=e.newRevision??new Uint8Array,t.parentRevision=e.parentRevision??new Uint8Array,t.ops=e.ops?.map((e=>a.Op.fromPartial(e)))||[],t}};function c(){return{newRevision:new Uint8Array,parentRevision:new Uint8Array,ops:[]}}const u={encode(e,t=r().Writer.create()){if(void 0!==e.newRevision&&0!==e.newRevision.length&&t.uint32(10).bytes(e.newRevision),void 0!==e.parentRevision&&0!==e.parentRevision.length&&t.uint32(18).bytes(e.parentRevision),void 0!==e.ops&&0!==e.ops.length)for(const n of e.ops)a.Op.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof r().Reader?e:new(r().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i=c();for(;n.pos>>3){case 1:i.newRevision=n.bytes();break;case 2:i.parentRevision=n.bytes();break;case 3:i.ops.push(a.Op.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({newRevision:h(e.newRevision)?p(e.newRevision):new Uint8Array,parentRevision:h(e.parentRevision)?p(e.parentRevision):new Uint8Array,ops:Array.isArray(e?.ops)?e.ops.map((e=>a.Op.fromJSON(e))):[]}),toJSON(e){const t={};return void 0!==e.newRevision&&(t.newRevision=f(void 0!==e.newRevision?e.newRevision:new Uint8Array)),void 0!==e.parentRevision&&(t.parentRevision=f(void 0!==e.parentRevision?e.parentRevision:new Uint8Array)),e.ops?t.ops=e.ops.map((e=>e?a.Op.toJSON(e):void 0)):t.ops=[],t},fromPartial(e){const t=c();return t.newRevision=e.newRevision??new Uint8Array,t.parentRevision=e.parentRevision??new Uint8Array,t.ops=e.ops?.map((e=>a.Op.fromPartial(e)))||[],t}};var d=(()=>{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"})();function p(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}function h(e){return null!=e}r().util.Long!==o.Z&&(r().util.Long=o.Z,r().configure())},89865:(e,t,n)=>{"use strict";n.d(t,{lb:()=>ee,jl:()=>b,pB:()=>Q,kI:()=>r,y8:()=>c,nK:()=>l,uS:()=>o});var o={};n.r(o),n.d(o,{Zc:()=>I,tI:()=>M,yV:()=>x});var i=n(51479);function r(e){let t=!0;const n=(0,i.h64)();return a((e=>{n.update(e),t=!1}),e),t?void 0:n.digest().toString(16)}function a(e,t){switch(typeof t){case"boolean":return void function(e,t){e(`boolean:${t}`)}(e,t);case"number":return void function(e,t){e(`number:${t}`)}(e,t);case"string":return void function(e,t){e(`string:${t.length}:${t}`)}(e,t);case"object":return null===t?void s(e):Array.isArray(t)?void function(e,t){e(`array:${t.length}:`);for(const n of t)void 0===n?s(e):a(e,n)}(e,t):"toJSON"in t&&"function"==typeof t.toJSON?void a(e,t.toJSON()):void function(e,t){const n=Object.keys(t).filter((e=>void 0!==t[e]));n.sort(),e(`object:${n.length}:`);for(const o of n)e(`${o}:`),a(e,t[o])}(e,t);default:return}}function s(e){e("null")}function l(e,t,n=new Error("Timeout")){return t===Number.POSITIVE_INFINITY?e:t<=0?Promise.reject(n):new Promise(((o,i)=>{setTimeout((()=>{i(n)}),t),e.then(o,i)}))}function c(e){return function(e){return null!==e&&"object"==typeof e}(e)&&"function"==typeof e.then}const u=["error","warn","info","debug"];const d="",p="[3",f=["0","1","2","3","4","5","6","7","8"],h="m";let m=e=>{console[e.level](function(e){let t=0;for(let n=0;n{};function v(e,t){const n=u.indexOf(t);return u.reduce(((t,o,i)=>(t[o]=i<=n?function(e,t){return(...n)=>{if("object"==typeof n[0]){const[o,i,...r]=n;return m({name:t,level:e,timestamp:Date.now(),data:Object.create(null,o),msg:i,args:r})}const[o,...i]=n;return m({name:t,level:e,timestamp:Date.now(),data:Object.create(null),msg:o,args:i})}}(o,e):g,t)),{})}const y=function(){let e;return e="undefined"!=typeof localStorage?localStorage.getItem("rcLogLevel"):{}.RC_LOG_LEVEL,e?"string"==typeof(t=e)&&u.includes(t)?e:"error":"error";var t}(),_=new Map;function b(e){const t=_.get(e);if(t)return t;const n=v(e,y);return _.set(e,n),n}var S=n(29168),E=n.n(S),A=n(92228),T=n.n(A);var P;!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.APP_PLATFORM_DESKTOP=4]="APP_PLATFORM_DESKTOP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(P||(P={}));const O={encode:(e,t=T().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 T().Reader?e:new(T().Reader)(e);let o=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:L(e.scope)?String(e.scope):"",name:L(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 o={scope:"",name:""};return o.scope=null!==(t=e.scope)&&void 0!==t?t:"",o.name=null!==(n=e.name)&&void 0!==n?n:"",o}};const C={encode:(e,t=T().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),void 0!==e.staticContext&&k.encode(e.staticContext,t.uint32(26).fork()).ldelim(),void 0!==e.surfaceMetadata&&R.encode(e.surfaceMetadata,t.uint32(82).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};for(;n.pos>>3){case 1:i.system=n.string();break;case 2:i.serviceName=n.string();break;case 3:i.staticContext=k.decode(n,n.uint32());break;case 10:i.surfaceMetadata=R.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({system:L(e.system)?String(e.system):"",serviceName:L(e.serviceName)?String(e.serviceName):"",staticContext:L(e.staticContext)?k.fromJSON(e.staticContext):void 0,surfaceMetadata:L(e.surfaceMetadata)?R.fromJSON(e.surfaceMetadata):void 0}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),void 0!==e.staticContext&&(t.staticContext=e.staticContext?k.toJSON(e.staticContext):void 0),void 0!==e.surfaceMetadata&&(t.surfaceMetadata=e.surfaceMetadata?R.toJSON(e.surfaceMetadata):void 0),t},fromPartial(e){var t,n;const o={system:"",serviceName:"",staticContext:void 0,surfaceMetadata:void 0};return o.system=null!==(t=e.system)&&void 0!==t?t:"",o.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",o.staticContext=void 0!==e.staticContext&&null!==e.staticContext?k.fromPartial(e.staticContext):void 0,o.surfaceMetadata=void 0!==e.surfaceMetadata&&null!==e.surfaceMetadata?R.fromPartial(e.surfaceMetadata):void 0,o}};const k={encode:(e,t=T().Writer.create())=>(""!==e.system&&t.uint32(10).string(e.system),""!==e.serviceName&&t.uint32(18).string(e.serviceName),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={system:"",serviceName:""};for(;n.pos>>3){case 1:i.system=n.string();break;case 2:i.serviceName=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({system:L(e.system)?String(e.system):"",serviceName:L(e.serviceName)?String(e.serviceName):""}),toJSON(e){const t={};return void 0!==e.system&&(t.system=e.system),void 0!==e.serviceName&&(t.serviceName=e.serviceName),t},fromPartial(e){var t,n;const o={system:"",serviceName:""};return o.system=null!==(t=e.system)&&void 0!==t?t:"",o.serviceName=null!==(n=e.serviceName)&&void 0!==n?n:"",o}};const R={encode:(e,t=T().Writer.create())=>(""!==e.backendSdkVersion&&t.uint32(10).string(e.backendSdkVersion),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={backendSdkVersion:""};for(;n.pos>>3==1)i.backendSdkVersion=n.string();else n.skipType(7&e)}return i},fromJSON:e=>({backendSdkVersion:L(e.backendSdkVersion)?String(e.backendSdkVersion):""}),toJSON(e){const t={};return void 0!==e.backendSdkVersion&&(t.backendSdkVersion=e.backendSdkVersion),t},fromPartial(e){var t;const n={backendSdkVersion:""};return n.backendSdkVersion=null!==(t=e.backendSdkVersion)&&void 0!==t?t:"",n}};function L(e){return null!=e}var I,N;function w(e){switch(e){case 0:case"BLOCKING":return I.BLOCKING;case 1:case"BACKGROUND_SYNC":return I.BACKGROUND_SYNC;case 2:case"ASYNC":return I.ASYNC;case 3:case"PUSH_INITIATED":return I.PUSH_INITIATED;case 4:case"RECONNECT":return I.RECONNECT;default:return I.UNRECOGNIZED}}function D(e){switch(e){case 0:case"KNOWN_CONTEXT_INVALID":return N.KNOWN_CONTEXT_INVALID;case 1:case"KNOWN_CONTEXT_USER_ID":return N.KNOWN_CONTEXT_USER_ID;case 2:case"KNOWN_CONTEXT_INSTALLATION_ID":return N.KNOWN_CONTEXT_INSTALLATION_ID;case 3:case"KNOWN_CONTEXT_VERSION":return N.KNOWN_CONTEXT_VERSION;default:return N.UNRECOGNIZED}}!function(e){e[e.BLOCKING=0]="BLOCKING",e[e.BACKGROUND_SYNC=1]="BACKGROUND_SYNC",e[e.ASYNC=2]="ASYNC",e[e.PUSH_INITIATED=3]="PUSH_INITIATED",e[e.RECONNECT=4]="RECONNECT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(I||(I={})),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"}(N||(N={}));const M={encode:(e,t=T().Writer.create())=>(""!==e.propertySetId&&t.uint32(10).string(e.propertySetId),void 0!==e.fetchType&&j.encode(e.fetchType,t.uint32(18).fork()).ldelim(),void 0!==e.context&&H.encode(e.context,t.uint32(90).fork()).ldelim(),void 0!==e.backendContext&&C.encode(e.backendContext,t.uint32(98).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};for(;n.pos>>3){case 1:i.propertySetId=n.string();break;case 2:i.fetchType=j.decode(n,n.uint32());break;case 11:i.context=H.decode(n,n.uint32());break;case 12:i.backendContext=C.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertySetId:z(e.propertySetId)?String(e.propertySetId):"",fetchType:z(e.fetchType)?j.fromJSON(e.fetchType):void 0,context:z(e.context)?H.fromJSON(e.context):void 0,backendContext:z(e.backendContext)?C.fromJSON(e.backendContext):void 0}),toJSON(e){const t={};return void 0!==e.propertySetId&&(t.propertySetId=e.propertySetId),void 0!==e.fetchType&&(t.fetchType=e.fetchType?j.toJSON(e.fetchType):void 0),void 0!==e.context&&(t.context=e.context?H.toJSON(e.context):void 0),void 0!==e.backendContext&&(t.backendContext=e.backendContext?C.toJSON(e.backendContext):void 0),t},fromPartial(e){var t;const n={propertySetId:"",fetchType:void 0,context:void 0,backendContext:void 0};return n.propertySetId=null!==(t=e.propertySetId)&&void 0!==t?t:"",n.fetchType=void 0!==e.fetchType&&null!==e.fetchType?j.fromPartial(e.fetchType):void 0,n.context=void 0!==e.context&&null!==e.context?H.fromPartial(e.context):void 0,n.backendContext=void 0!==e.backendContext&&null!==e.backendContext?C.fromPartial(e.backendContext):void 0,n}};const x={encode:(e,t=T().Writer.create())=>(void 0!==e.configuration&&F.encode(e.configuration,t.uint32(10).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={configuration:void 0};for(;n.pos>>3==1)i.configuration=F.decode(n,n.uint32());else n.skipType(7&e)}return i},fromJSON:e=>({configuration:z(e.configuration)?F.fromJSON(e.configuration):void 0}),toJSON(e){const t={};return void 0!==e.configuration&&(t.configuration=e.configuration?F.toJSON(e.configuration):void 0),t},fromPartial(e){const t={configuration:void 0};return t.configuration=void 0!==e.configuration&&null!==e.configuration?F.fromPartial(e.configuration):void 0,t}};const F={encode(e,t=T().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)U.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=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=W(n.int64());break;case 3:i.assignedValues.push(U.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON:e=>({configurationAssignmentId:z(e.configurationAssignmentId)?String(e.configurationAssignmentId):"",fetchTimeMillis:z(e.fetchTimeMillis)?Number(e.fetchTimeMillis):0,assignedValues:Array.isArray(null==e?void 0:e.assignedValues)?e.assignedValues.map((e=>U.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?U.toJSON(e):void 0)):t.assignedValues=[],t},fromPartial(e){var t,n,o;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===(o=e.assignedValues)||void 0===o?void 0:o.map((e=>U.fromPartial(e))))||[],i}};const U={encode:(e,t=T().Writer.create())=>(void 0!==e.propertyId&&O.encode(e.propertyId,t.uint32(10).fork()).ldelim(),void 0!==e.metadata&&B.encode(e.metadata,t.uint32(18).fork()).ldelim(),void 0!==e.boolValue&&V.encode(e.boolValue,t.uint32(26).fork()).ldelim(),void 0!==e.intValue&&G.encode(e.intValue,t.uint32(34).fork()).ldelim(),void 0!==e.enumValue&&J.encode(e.enumValue,t.uint32(42).fork()).ldelim(),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=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=O.decode(n,n.uint32());break;case 2:i.metadata=B.decode(n,n.uint32());break;case 3:i.boolValue=V.decode(n,n.uint32());break;case 4:i.intValue=G.decode(n,n.uint32());break;case 5:i.enumValue=J.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({propertyId:z(e.propertyId)?O.fromJSON(e.propertyId):void 0,metadata:z(e.metadata)?B.fromJSON(e.metadata):void 0,boolValue:z(e.boolValue)?V.fromJSON(e.boolValue):void 0,intValue:z(e.intValue)?G.fromJSON(e.intValue):void 0,enumValue:z(e.enumValue)?J.fromJSON(e.enumValue):void 0}),toJSON(e){const t={};return void 0!==e.propertyId&&(t.propertyId=e.propertyId?O.toJSON(e.propertyId):void 0),void 0!==e.metadata&&(t.metadata=e.metadata?B.toJSON(e.metadata):void 0),void 0!==e.boolValue&&(t.boolValue=e.boolValue?V.toJSON(e.boolValue):void 0),void 0!==e.intValue&&(t.intValue=e.intValue?G.toJSON(e.intValue):void 0),void 0!==e.enumValue&&(t.enumValue=e.enumValue?J.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?O.fromPartial(e.propertyId):void 0,t.metadata=void 0!==e.metadata&&null!==e.metadata?B.fromPartial(e.metadata):void 0,t.boolValue=void 0!==e.boolValue&&null!==e.boolValue?V.fromPartial(e.boolValue):void 0,t.intValue=void 0!==e.intValue&&null!==e.intValue?G.fromPartial(e.intValue):void 0,t.enumValue=void 0!==e.enumValue&&null!==e.enumValue?J.fromPartial(e.enumValue):void 0,t}};const B={encode:(e,t=T().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 T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={policyId:0,externalRealm:"",externalRealmId:0};for(;n.pos>>3){case 1:i.policyId=W(n.int64());break;case 2:i.externalRealm=n.string();break;case 3:i.externalRealmId=W(n.int64());break;default:n.skipType(7&e)}}return i},fromJSON:e=>({policyId:z(e.policyId)?Number(e.policyId):0,externalRealm:z(e.externalRealm)?String(e.externalRealm):"",externalRealmId:z(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,o;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!==(o=e.externalRealmId)&&void 0!==o?o:0,i}};const V={encode:(e,t=T().Writer.create())=>(!0===e.value&&t.uint32(8).bool(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=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:!!z(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 G={encode:(e,t=T().Writer.create())=>(0!==e.value&&t.uint32(8).int32(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=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:z(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 J={encode:(e,t=T().Writer.create())=>(""!==e.value&&t.uint32(10).string(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=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:z(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}};const j={encode:(e,t=T().Writer.create())=>(0!==e.type&&t.uint32(8).int32(e.type),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={type:0};for(;n.pos>>3==1)i.type=n.int32();else n.skipType(7&e)}return i},fromJSON:e=>({type:z(e.type)?w(e.type):0}),toJSON(e){const t={};return void 0!==e.type&&(t.type=function(e){switch(e){case I.BLOCKING:return"BLOCKING";case I.BACKGROUND_SYNC:return"BACKGROUND_SYNC";case I.ASYNC:return"ASYNC";case I.PUSH_INITIATED:return"PUSH_INITIATED";case I.RECONNECT:return"RECONNECT";case I.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.type)),t},fromPartial(e){var t;const n={type:0};return n.type=null!==(t=e.type)&&void 0!==t?t:0,n}};const H={encode(e,t=T().Writer.create()){for(const n of e.context)K.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={context:[]};for(;n.pos>>3==1)i.context.push(K.decode(n,n.uint32()));else n.skipType(7&e)}return i},fromJSON:e=>({context:Array.isArray(null==e?void 0:e.context)?e.context.map((e=>K.fromJSON(e))):[]}),toJSON(e){const t={};return e.context?t.context=e.context.map((e=>e?K.toJSON(e):void 0)):t.context=[],t},fromPartial(e){var t;const n={context:[]};return n.context=(null===(t=e.context)||void 0===t?void 0:t.map((e=>K.fromPartial(e))))||[],n}};const K={encode:(e,t=T().Writer.create())=>(void 0!==e.knownContext&&t.uint32(8).int32(e.knownContext),void 0!==e.policyInputName&&t.uint32(18).string(e.policyInputName),""!==e.value&&t.uint32(82).string(e.value),t),decode(e,t){const n=e instanceof T().Reader?e:new(T().Reader)(e);let o=void 0===t?n.len:n.pos+t;const i={knownContext:void 0,policyInputName:void 0,value:""};for(;n.pos>>3){case 1:i.knownContext=n.int32();break;case 2:i.policyInputName=n.string();break;case 10:i.value=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({knownContext:z(e.knownContext)?D(e.knownContext):void 0,policyInputName:z(e.policyInputName)?String(e.policyInputName):void 0,value:z(e.value)?String(e.value):""}),toJSON(e){const t={};return void 0!==e.knownContext&&(t.knownContext=void 0!==e.knownContext?function(e){switch(e){case N.KNOWN_CONTEXT_INVALID:return"KNOWN_CONTEXT_INVALID";case N.KNOWN_CONTEXT_USER_ID:return"KNOWN_CONTEXT_USER_ID";case N.KNOWN_CONTEXT_INSTALLATION_ID:return"KNOWN_CONTEXT_INSTALLATION_ID";case N.KNOWN_CONTEXT_VERSION:return"KNOWN_CONTEXT_VERSION";case N.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.knownContext):void 0),void 0!==e.policyInputName&&(t.policyInputName=e.policyInputName),void 0!==e.value&&(t.value=e.value),t},fromPartial(e){var t,n,o;const i={knownContext:void 0,policyInputName:void 0,value:""};return i.knownContext=null!==(t=e.knownContext)&&void 0!==t?t:void 0,i.policyInputName=null!==(n=e.policyInputName)&&void 0!==n?n:void 0,i.value=null!==(o=e.value)&&void 0!==o?o:"",i}};var Y=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 W(e){if(e.gt(Number.MAX_SAFE_INTEGER))throw new Y.Error("Value is larger than Number.MAX_SAFE_INTEGER");return e.toNumber()}function z(e){return null!=e}T().util.Long!==E()&&(T().util.Long=E(),T().configure());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"})();q.atob;q.btoa;T().util.Long!==E()&&(T().util.Long=E(),T().configure());var X=n(37705);const Z=b("common");function Q(){try{return(0,X.Z)()}catch(e){return Z.debug("creating uuid failed, trying with custom rng",e),(0,X.Z)({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}})}}const $="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now();class ee{constructor(e){this.millisecondStart=e}duration(){return Math.round(1e6*($()-this.millisecondStart))}static start(){return new ee($())}}},74730:(e,t,n)=>{"use strict";n.d(t,{CK:()=>o,XH:()=>s,dM:()=>d,tI:()=>l,yV:()=>c,hh:()=>h});var o,i=n(89865),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);ie,isIdentifier:!0},user_catalogue:{policyInputName:"/spotify-user/catalogue",encode:e=>e,isIdentifier:!1},user_country:{policyInputName:"/spotify-user/country",encode:e=>e,isIdentifier:!1},geoip_country:{policyInputName:"/client/geo-ip-country",encode:e=>e,isIdentifier:!1},user_is_employee:{policyInputName:"/spotify-user/is-employee",encode:e=>e,isIdentifier:!1},installationId:{policyInputName:"/remote-config/installation-id",encode:e=>e,isIdentifier:!0},sp_t_cookie:{policyInputName:"/client/sp-t-cookie",encode:e=>e,isIdentifier:!0},version:{policyInputName:"/remote-config/rc-client-version",encode:e=>e,isIdentifier:!1},artist_id:{policyInputName:"/artist/artist-id",encode:e=>e,isIdentifier:!0},adstudio_advertiser_account_id:{policyInputName:"/adstudio-advertiser-account/account-id",encode:e=>e,isIdentifier:!0},oauth_client_id:{policyInputName:"/client/oauth-client-id",encode:e=>e,isIdentifier:!1}};var s,l;!function(e){function t(e){return Object.entries(e).filter((([e])=>e in a)).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n})),{})}function n(e,t){return Object.entries(e).filter((([e])=>e in a)).forEach((([e,n])=>t(e,n,a[e])))}e.definitions=a,e.defaultIdentifiers=Object.freeze(["user_id","installationId"]),e.declarableIdentifiers=Object.freeze(Object.entries(e.definitions).filter((([t,{isIdentifier:n}])=>n&&!e.defaultIdentifiers.includes(t))).map((([e])=>e))),e.extract=t,e.forEach=n,e.map=function(e,t){return Object.entries(e).filter((([e])=>e in a)).map((([e,n])=>t(e,n,a[e])))},e.extractIdentifiersMap=function(e){const t={};return n(e,((e,n,o)=>{if(o.isIdentifier){const e=o.encode(n);"string"==typeof e&&""!==e&&(t[o.policyInputName]=e)}})),a.installationId.policyInputName in t&&!(a.sp_t_cookie.policyInputName in t)&&(t[a.sp_t_cookie.policyInputName]=t[a.installationId.policyInputName]),t},e.extractDeclaredIdentifiers=function(t){return Object.keys(t).filter((t=>e.declarableIdentifiers.includes(t)))},e.hash=function(e){return e.username?(0,i.kI)(Object.assign(Object.assign({},t(e)),{username:e.username})):(0,i.kI)(t(e))}}(s||(s={})),function(e){function t(e){var{propertySetId:t,fetchType:i=o.BLOCKING}=e;return{propertySetId:t,context:n(r(e,["propertySetId","fetchType"])),fetchType:a(i)}}function n(e){const t=[];return s.forEach(e,((e,n,{policyInputName:o,encode:i})=>{const r=i(n);"string"==typeof r&&""!==r&&t.push({knownContext:void 0,policyInputName:o,value:r})})),{context:t}}function a(e){switch(e){case o.BACKGROUND_SYNC:return{type:i.uS.Zc.BACKGROUND_SYNC};case o.BLOCKING:return{type:i.uS.Zc.BLOCKING};case o.DELAYED:return{type:i.uS.Zc.ASYNC};default:throw new Error(`Unknown FetchType (${e})`)}}e.toPayload=t,e.encode=function(e){return i.uS.tI.encode(t(e)).finish()}}(l||(l={}));var c,u=n(16320);!function(e){e.configurationAssignmentId=(0,u.Vo)({name:"#configurationAssignmentId",description:"Unique ID for the specific resolver call this configuration originates from.",default:""}),e.fetchTimeMillis=(0,u.Vo)({name:"#fetchTimeMillis",description:"Server reported time when this configuration was fetched.",default:0}),e.groupIds=(0,u.Vo)({name:"#groupIds",description:"An object mapping property name to group-id.",default:void 0}),e.getGroupId=(t,n)=>{var o;return null===(o=n.getValue(e.groupIds))||void 0===o?void 0:o[t]},e.toConfiguration=function(t){t instanceof Uint8Array&&(t=i.uS.yV.decode(t));const{configuration:n}=i.uS.yV.fromJSON(t);if(!n)throw new Error("Bad response payload");const o=u.VK.builder(),r={};for(const{propertyId:e,metadata:t,boolValue:i,intValue:a,enumValue:s}of n.assignedValues){const n=e.name,l=(0,u.jf)(n);l&&(t&&(r[n]=t.externalRealmId),i?o.setValue(l,i.value):a?o.setValue(l,a.value):s&&o.setValue(l,s.value))}return o.setValue(e.configurationAssignmentId,n.configurationAssignmentId),o.setValue(e.groupIds,r),o.setValue(e.fetchTimeMillis,n.fetchTimeMillis),o}}(c||(c={}));var d,p=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};!function(e){e.fromContextProvider=function(e){return t=>n=>{const o=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 t=>e(t)}(e(n));return e=>p(this,void 0,void 0,(function*(){return t(yield o(e))}))}},e.requireContext=function(e){return e=>()=>e},e.apply=function(e,t){return n=>e(t(n))(n)},e.compose=function(e,t){return n=>o=>{const i=t(n)(o);return e(i)(o)}}}(d||(d={}));const f=(0,i.jl)("core");function h(e){return m(e)}function m(e){return class{constructor(t){this.onDestroyListeners=new Set,this.logger=(0,i.jl)("core");const n={onDestroy:e=>{this.onDestroyListeners.add(e)}};this.delegate=e(Object.assign(Object.assign({},t),n))}resolve(e){return Promise.resolve().then((()=>this.delegate(e))).then((e=>e.build())).catch((e=>(this.logger.warn("Uncaught error in resolve chain:",e),u.VK.empty())))}destroy(){this.delegate=()=>{throw new Error("Resolver instance has been destroyed")};for(const e of this.onDestroyListeners)try{e()}catch(e){f.warn("uncaught error in onDestroy listener",e)}this.onDestroyListeners.clear()}static addMiddleware(t){return m(d.apply(t,e))}static withIdentifier(e){return this}}}},36844:(e,t,n)=>{"use strict";n.d(t,{jj:()=>l,W6:()=>c});var o=n(59496),i=n(16320);const r=(0,o.createContext)(new i.VK.Delegate((()=>{throw new Error("Please wrap your component in RemoteConfig Provider")})));var a=n(89865);class s extends i.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 s&&e.isSuspended}}const l=({children:e,configuration:t})=>{const[n,i]=(0,o.useState)(new s);return function(e,t){const n=(0,o.useRef)(null);if(!e||n.current===e)return;if(n.current=e,!(0,a.y8)(e))return void t(e);e.then(t)}(t,(e=>{s.isSuspended(n)&&n.resolveSuspense(e),i(e)})),o.createElement(r.Provider,{value:n},e)};function c(e,t){const n=function(e={}){const{Context:t=r}=e,n=(0,o.useContext)(t);if(!n)throw new Error("RemoteConfigContext is undefined");return n}(t);try{return n.getValue(e)}catch(e){if(t&&"loadingValue"in t&&(0,a.y8)(e))return t.loadingValue;throw e}}},86271:(e,t,n)=>{"use strict";n.d(t,{Q:()=>T});var o=n(74730),i=n(57920),r=n(41302),a=n(64342);var s=n(89865),l=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const c=new WeakMap;const u={debounceTimeout:400,exposeOnGc:!0};function d(e,t){return(...n)=>(t(...n),e(...n))}function p(e,t){let n=(...o)=>(n=e,t(...o),e(...o));return(...e)=>n(...e)}function f(e){return"number"==typeof e}const h=function(e,t=u){return n=>i=>{const{clientId:r,semanticMetrics:a,exposureStrategy:u="resolve"}=i,h=e(i);if("resolve"===u)return function(e,t,n,i){return r=>l(this,void 0,void 0,(function*(){const a=yield e(r);n&&n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"resolve"},value:1});const s=(l=Object.values(a.getValue(o.yV.groupIds)||{}),Array.from(new Set(l))).filter(f);var l;return i({clientId:t,configuration:a,policyGroupIds:s,context:r}),a}))}(n,r,a,h);if("access"===u)return function(e,t,n,i,r){return a=>l(this,void 0,void 0,(function*(){const l=yield e(a),u=s.lb.start();return l.withAccessListener(function(e,t){const{debounceTimeout:n,exposeOnGc:i=!1}=t,r=new Set;let a=[],s=t=>{a.length&&(e(a,t),a=[])},l=(e,t)=>{const n=o.yV.getGroupId(e,t);n&&!r.has(n)&&(r.add(n),a.push(n))};if(l=p(l,((e,t)=>{c.set(t,(()=>{s("manual")}))})),n>=0&&n{clearTimeout(e),e=setTimeout((()=>{s("timeout")}),n)})),s=d(s,(()=>{clearTimeout(e)}))}const u=function(){if("function"==typeof FinalizationRegistry)return new FinalizationRegistry((e=>{e()}))}();i&&u&&(l=p(l,((e,t)=>{u.register(t,(()=>{s("gc")}))})));return l}(((e,o)=>{n&&(n.sendMetric({metric_type:"counter",what:"remote-config-exposure-counter",tags:{strategy:"access"},value:1}),n.sendMetric({metric_type:"timer",what:"remote-config-time-to-exposure",tags:{signal:o},value:u.duration()})),i({clientId:t,configuration:l,policyGroupIds:e,context:a})}),r)),l}))}(n,r,a,h,t);throw new Error("exposure strategy not defined")}}((e=>{const t=e.eventSender;return({context:e,clientId:n,configuration:i,policyGroupIds:s})=>{const l=Boolean(e.username),c=function(e,t,n,i){const r=n.getValue(o.yV.fetchTimeMillis),a=n.getValue(o.yV.configurationAssignmentId);return{platform:"WEB",rc_client_id:e,configuration_assignment_id:a,fetch_type:t.fetchType,installation_id:t.installationId,last_rcs_fetch_time:r,policy_group_ids:i,identifiers:o.XH.extractIdentifiersMap(t)}}(n,e,i,s);return l?t.send((0,r.F)(c)):t.send((0,a.k)(c))}}));var m=n(72611),g=n(24769);const v=({context:e,clientId:t,reason:n})=>{const i=Boolean(e.username),r={installation_id:e.installationId,rc_client_id:t,platform:"WEB",fetch_type:e.fetchType,reason:n,identifiers:o.XH.extractIdentifiersMap(e)};return i?(0,m.T)(r):(0,g.$)(r)};var y=n(43319),_=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};let b;try{b=n(45658)}catch(e){}let S;try{S=n(45658)}catch(e){}const E=o.dM.compose(h,(function(e){return({clientId:t,eventSender:n})=>o=>e(o).catch((e=>{const i=(a="message",("object"==typeof(r=e)&&null!==r||"function"==typeof r)&&a in r?String(e.message):void 0);var r,a;throw n.send(v({context:o,reason:i,clientId:t})),e}))})),A=o.dM.compose((e=>({eventSender:t,onDestroy:n})=>{let i;const r=e=>{if(!i||!e)return;const n={spt_cookie:i,consent_groups:Object.entries(e.groups).map((([e,t])=>`${e}:${t?"1":"0"}`)).join(","),datetime:e.date.getTime()};t.send((0,y.C)(n))};return b.addConsentListener(r,!0),n((()=>{b.removeConsentListener(r)})),t=>_(void 0,void 0,void 0,(function*(){const n=yield e(t),a=o.XH.extractIdentifiersMap(t)["/client/sp-t-cookie"];if(a&&i!==a){i=a;const e=b.getConsentInfo();e&&r(e)}return n}))}),E);function T(e){let t;t=S?A:E;const n=t(e);return e=>{const{eventSender:t=P(e.transport)}=e,o=n(Object.assign(Object.assign({},e),{eventSender:t}));return e=>o(e)}}function P(e){if(!e)throw new Error('Either "transport" or "eventSender" must be provided.');return(0,i.mi)({transport:e})}},70065:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var o=n(74730),i=n(16320),r=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.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=>r(this,void 0,void 0,(function*(){const r=o.XH.hash(n);if(t.initialConfiguration&&r===t.initialConfiguration.getValue(a))return i.VK.builder(t.initialConfiguration);const s=yield e(n);return s.setValue(a,r),s}))}},61208:(e,t,n)=>{"use strict";function o(e){for(var t=1;tf});var i=function e(t,n){function i(e,i,r){if("undefined"!=typeof document){"number"==typeof(r=o({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in r)r[s]&&(a+="; "+s,!0!==r[s]&&(a+="="+r[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i5}const d=316224e5;function p(e){const t=r.get(l);let n=t;if(void 0===n&&e){const t=e.getItem(c);u(t)&&(n=t)}if(u(n)||(n=(0,s.pB)()),t!==n){!!!r.set(l,n,{expires:Date.now()+d,path:"/"})&&e&&e.setItem(c,n)}return n}const f=a.dM.fromContextProvider((({installationId:e,storage:t})=>u(e)?{installationId:e}:{installationId:p(t||localStorage)}))},44058:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var o=n(89865),i=n(74730),r=n(16320);const a=i.dM.fromContextProvider((({clientId:e,properties:t})=>{const n=(0,o.jl)("middleware:properties");let a;return o=>(null!=a||(a=(n=>r.Z9.getPropertySetId({clientId:e},t?t.map(r.OT):(0,r.y6)(),i.XH.extractDeclaredIdentifiers(n)))(o)),n.info("Property Set ID",a),Object.assign(Object.assign({},o),{propertySetId:a}))}))},87786:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});const o=n(74730).dM.fromContextProvider((({version:e})=>({version:e})))},16320:(e,t,n)=>{"use strict";n.d(t,{VK:()=>y,Z9:()=>o,JP:()=>h,VL:()=>g,z8:()=>m,Vo:()=>v,jf:()=>f,OT:()=>p,y6:()=>d});var o,i=n(89865),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=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,o=r(t,["type"]);return e[n](o)}},e.assertValue=t,e.validateValue=function(e,n){try{return t(e,n),!0}catch(e){return!1}},e.getPropertySetId=function(e,t,n=[]){const o=(0,i.jl)("properties"),a=[e,Array.from(t).reduce(((e,t)=>{var{name:n}=t,o=r(t,["name"]);return Object.assign(Object.assign({},e),{[n]:o})}),{})],s=new Set(n);return s.size&&a.push(Array.from(s).sort()),o.debug("property-set-id sources",...a),(0,i.kI)(a)}}(o||(o={}));var a=n(3341),s=n.n(a),l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);ie.toBuilder())).reduce(((e,t)=>e.merge(t)),new o).build()},e.empty=function(){return new t};class o extends t{setValues(e){for(const[t,n]of e)this.setValue(t,n);return this}withAccessListener(e){return this.accessListeners.add(e),this}setValue(e,t){return p(e),this.values.set(e,t),this}merge(e){for(const[t,n]of e.values)this.values.set(t,n);for(const t of e.accessListeners)this.accessListeners.add(t);return this}getValue(e){const t=p(e);return this.values.has(e)?this.values.get(e):t.default}build(){return new t(this.values,this.accessListeners)}[Symbol.iterator](){return this.values.entries()}static fromJSON(e){return new o(n(e))}}e.Builder=o;e.Delegate=class{constructor(e){this.provider=e}getValue(e){return this.provider().getValue(e)}toJSON(e){return this.provider().toJSON(e)}toBuilder(){return this.provider().toBuilder()}}}(y||(y={}))},52408:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});var o=n(74730),i=n(89865),r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);in=>{var{timeout:a=t}=n,s=r(n,["timeout"]);const l=(0,i.jl)("provider:transport");0===a&&l.warn("Resolving with a timeout of zero, response will be discarded."),l.debug("resolve context",s);const c=o.tI.toPayload(s),u=Boolean(s.username);l.debug("User authentication state",u),l.debug("resolve request",c);const d=e.request(u?"@webgate/remote-config-resolver/v3/configuration":"@webgate/remote-config-resolver/v3/unauth/configuration",{method:"POST",headers:{"Content-Type":"application/json"},payload:JSON.stringify(c),responseType:"json",authorize:u,rejectNotOk:!0}).then((({body:e})=>(l.info("resolve response",e),o.yV.toConfiguration(e)))).catch((e=>{throw l.error("resolve error",e),e}));return(0,i.nK)(d,a)}},85845:(e,t,n)=>{"use strict";n.d(t,{L:()=>v});var o=n(74730),i=n(52408),r=n(44058),a=n(89865),s=n(16320),l=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))},c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i"getConfig"in e;class d{constructor(e,t){this.storageKey=e,this.storage=t}getConfig(e){return l(this,void 0,void 0,(function*(){const t=this.storage.getItem(this.storageKey);if("string"==typeof t){const n=JSON.parse(t);if(n.key===e)return s.VK.fromJSON(n.value)}return null}))}setConfig(e,t){return l(this,void 0,void 0,(function*(){this.storage.setItem(this.storageKey,JSON.stringify({key:e,value:t.toJSON()}))}))}}const p=6e5;let f;var h=n(86271),m=n(61208),g=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const v=(0,o.hh)(i.H).addMiddleware(r.a).addMiddleware((e=>({clientId:t,storage:n=localStorage,cacheFactory:i,timeout:r})=>{const p=(0,a.jl)("middleware:caching");if(!n)return e;const f=function(e,t,n){if(u(e)&&n)throw new Error("[Remote-Configuration] Both storage as a cache and a cacheFactory supplied to Caching middleware, only one or the other is supported.");if(u(e))return e;if(n)return n(e,t);return new d(`com.spotify.single.item.cache:${t}`,e)}(n,t,i);return t=>l(void 0,void 0,void 0,(function*(){var{timeout:n=r}=t,i=c(t,["timeout"]);const u=o.XH.hash(i);let d=Number.POSITIVE_INFINITY;"number"==typeof n&&(d=n,n=Number.POSITIVE_INFINITY);const h=e(Object.assign({timeout:n},i));try{const e=yield f.getConfig(u);if(p.info("cache %s for key %s",e?"hit":"miss",u),e)return s.VK.builder(e)}catch(e){p.warn("Error reading from cache.",e)}finally{h.then((e=>l(void 0,void 0,void 0,(function*(){try{yield f.setConfig(u,e)}catch(e){p.error("Error writing to cache.",e)}}))))}return(0,a.nK)(h,d)}))})).addMiddleware((e=>({backgroundFetchInterval:t=36e5})=>{const n=(0,a.jl)("middleware:background-fetch");if(t{return r=e(i),a=()=>{var r,a;r=()=>{e(Object.assign(Object.assign({},i),{fetchType:o.CK.BACKGROUND_SYNC})).catch((e=>{n.warn("Background fetch failed",e)}))},a=t,clearInterval(f),f=setInterval(r,a)},r.then((e=>(a(),e)),(e=>{throw a(),e}));var r,a}})).addMiddleware(h.Q).addMiddleware(m.Y).addMiddleware((function(e){return()=>{let t=null,n="";return i=>g(this,void 0,void 0,(function*(){const r=o.XH.hash(i);return n===r||(t=yield e(i),n=r),t}))}}))},59701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;const o=n(33892),i=n(49029);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="GetIncognitoMode",r=i.GetIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="PutIncognitoMode",r=i.PutIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subIncognitoMode(e,t){const n="spotify.scrobble.esperanto.proto.Scrobble",r="SubIncognitoMode",a=i.SubIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetIncognitoModeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.scrobble.esperanto.proto.Scrobble";static DECODERS={GetIncognitoMode:{request:i.GetIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},PutIncognitoMode:{request:i.PutIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},SubIncognitoMode:{request:i.SubIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode}}}t.ScrobbleClient=r},99810:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;var r=n(59701);Object.defineProperty(t,"ScrobbleClient",{enumerable:!0,get:function(){return r.ScrobbleClient}}),i(n(49029),t)},49029:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubIncognitoModeRequest=t.PutIncognitoModeRequest=t.GetIncognitoModeResponse=t.GetIncognitoModeRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));function a(e){return null!=e}t.protobufPackage="spotify.scrobble.esperanto.proto",t.GetIncognitoModeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetIncognitoModeResponse={encode:(e,t=r.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={incognitoMode:!1};for(;n.pos>>3==1)i.incognitoMode=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({incognitoMode:!!a(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.PutIncognitoModeRequest={encode:(e,t=r.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={incognitoMode:!1};for(;n.pos>>3==1)i.incognitoMode=n.bool();else n.skipType(7&e)}return i},fromJSON:e=>({incognitoMode:!!a(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.SubIncognitoModeRequest={encode:(e,t=r.default.Writer.create())=>t,decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},29023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;const o=n(33892),i=n(23774);class r{transport;options;constructor(e,t={}){this.transport=e,this.options=t}getIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="GetIncognitoMode",r=i.GetIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}putIncognitoMode(e){const t="spotify.scrobble.esperanto.proto.Scrobble",n="PutIncognitoMode",r=i.PutIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:r}).then((e=>{const r=i.GetIncognitoModeResponse.decode(o.Reader.create(e));return this.options.onResponse?.(r,t,n,"single"),r}))}subIncognitoMode(e,t){const n="spotify.scrobble.esperanto.proto.Scrobble",r="SubIncognitoMode",a=i.SubIncognitoModeRequest.encode(e).finish();return this.options.onRequest?.(e,n,r,"stream"),this.transport.callStream({service:n,method:r,payload:a},(e=>{const a=i.GetIncognitoModeResponse.decode(o.Reader.create(e));this.options.onResponse?.(a,n,r,"stream"),t(a)}))}static SERVICE_ID="spotify.scrobble.esperanto.proto.Scrobble";static DECODERS={GetIncognitoMode:{request:i.GetIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},PutIncognitoMode:{request:i.PutIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode},SubIncognitoMode:{request:i.SubIncognitoModeRequest.decode,response:i.GetIncognitoModeResponse.decode}}}t.ScrobbleClient=r},83112:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ScrobbleClient=void 0;var r=n(29023);Object.defineProperty(t,"ScrobbleClient",{enumerable:!0,get:function(){return r.ScrobbleClient}}),i(n(23774),t)},23774:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubIncognitoModeRequest=t.PutIncognitoModeRequest=t.GetIncognitoModeResponse=t.GetIncognitoModeRequest=t.protobufPackage=void 0;const i=o(n(33892));function r(e){return null!=e}t.protobufPackage="spotify.scrobble.esperanto.proto",t.GetIncognitoModeRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})},t.GetIncognitoModeResponse={encode:(e,t=i.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={incognitoMode:!1};for(;n.pos>>3==1)r.incognitoMode=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({incognitoMode:!!r(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.PutIncognitoModeRequest={encode:(e,t=i.default.Writer.create())=>(!0===e.incognitoMode&&t.uint32(8).bool(e.incognitoMode),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={incognitoMode:!1};for(;n.pos>>3==1)r.incognitoMode=n.bool();else n.skipType(7&e)}return r},fromJSON:e=>({incognitoMode:!!r(e.incognitoMode)&&Boolean(e.incognitoMode)}),toJSON(e){const t={};return void 0!==e.incognitoMode&&(t.incognitoMode=e.incognitoMode),t},fromPartial(e){const t={incognitoMode:!1};return t.incognitoMode=e.incognitoMode??!1,t}},t.SubIncognitoModeRequest={encode:(e,t=i.default.Writer.create())=>t,decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={};for(;n.pos({}),toJSON:e=>({}),fromPartial:e=>({})}},26514:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.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 r=i(n(65467)),a=n(45269);t.MetricTypes={COUNTER:"counter",GAUGE:"gauge",TIMER:"timer"},t.asNanoseconds=function(e){return e};const s=(e,t)=>o(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.NoopReporter);const t={queue:[],timeout:void 0,flush(){return o(this,void 0,void 0,(function*(){yield 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=>o(void 0,void 0,void 0,(function*(){var o,r;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!==(o=e.app)&&void 0!==o?o:a.key,application:null!==(r=e.app)&&void 0!==r?r: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,flush:()=>e.batching?t.flush():(r.default.warn("Manual flushing only supported in batch mode. Set config.batching: true"),Promise.resolve())}};t.createSemanticMetrics=l;class c{static init(e){c.config&&r.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"),r.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=>o(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)}))},46403:(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"},48821:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(59417),t),i(n(55982),t),i(n(98318),t);var a=n(26514);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r(a).default}})},59417:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Time=t.Timer=void 0,i(n(26514),t),i(n(85380),t),i(n(38833),t),i(n(93790),t);var r=n(87110);Object.defineProperty(t,"Timer",{enumerable:!0,get:function(){return r.Timer}});var a=n(65217);Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return a.Time}})},98318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMetrics=void 0;const o=n(26514),i=n(65217);function r(){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 o=performance.getEntriesByType("paint"),i=o.find((({name:t})=>t===e));return void 0!==o&&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},o){let r;return r="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()}`},r),{tags:Object.assign({name:e,label:t},o)})}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===r())return t("navigationTiming api is not supported in this browser");const{loadEventEnd:n}=r();return n>0?e(n):window.addEventListener("load",(()=>{setTimeout((()=>{const{loadEventEnd:t}=r();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 o.sendMetric(s(e,t))},getWebVitalsMetric:s};t.BrowserMetrics=l},93790:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.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 r=i(n(65467));t.ConsoleReporter=class{constructor(e=2,t="info"){this.spacingLevel=e,this.logLevel=t}send(e){return o(this,void 0,void 0,(function*(){r.default.log(this.logLevel,`[semantic-metrics] ${JSON.stringify(e,null,this.spacingLevel)}`)}))}}},38833:function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.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 r=n(52381),a=n(90093),s=n(69499),l=i(n(65467)),c=n(72755),u=n(46403);function d(e){return t=>e.isAuthenticated()?a.createSemanticMetricClient(t):s.createSemanticMetricClientNonAuth(t)}class p{constructor(e,t,n="browser",o){this.eventSender=e,this.createEvent=t,this.environment=n,this.transport=o}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=>o(this,void 0,void 0,(function*(){const o=yield t(n);return Object.assign(Object.assign({},o),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().catch((e=>{var t,n;l.default.debug("authentication fail.",null!==(n=null!==(t=null==e?void 0:e.message)&&void 0!==t?t:null==e?void 0:e.code)&&void 0!==n?n:"")}))})),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 isn't working.")}))),s.connect();const f=r.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=e.context?[...e.context]:void 0,o=r.createEventSender(Object.assign({transport:e.transport,context:n},t&&{ownerProvider:t})),i=d(e.transport);return new p(o,i,e.environment,e.transport)}send(e){return o(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},45269:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NoopReporter=void 0;t.NoopReporter=class{send(e){return n(this,void 0,void 0,(function*(){}))}}},85380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65217:(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)},87110:(e,t,n)=>{"use strict";var o=n(14224);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=t.getHighResolutionTime=t.getLowResolutionTime=t.getTime=t.getBrowserTime=t.supportsHighResolutionTime=void 0;const i=n(65217),r=n(26514);t.supportsHighResolutionTime=()=>"undefined"==typeof window&&"function"==typeof o.hrtime;t.getBrowserTime=()=>"undefined"!=typeof performance?performance.now():Date.now();t.getTime=()=>t.supportsHighResolutionTime()?o.hrtime():t.getBrowserTime();t.getLowResolutionTime=e=>{const n=t.getTime()-e,o=i.Time.fromMillis(n);return{nanoseconds:r.asNanoseconds(o.asNanos()),milliseconds:o.asMillis(),seconds:o.asSeconds()}};t.getHighResolutionTime=e=>{const[t,n]=o.hrtime(e),i=1e9*t+n,a=i/1e6,s=i/1e9;return{nanoseconds:r.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},55982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUniversalReporter=void 0;const o=n(38833),i=n(35267);t.createUniversalReporter=function(e={}){const t=e.context?[i.createUserAgentContext(),...e.context]:[i.createUserAgentContext()];return o.EventSenderReporter.create(Object.assign(Object.assign({environment:"browser"},e),{context:t}))}},86626:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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.AUDIO_ATTRIBUTES=61]="AUDIO_ATTRIBUTES",e[e.NAVIGABLE_TRAIT=62]="NAVIGABLE_TRAIT",e[e.NEXT_BEST_EPISODE=63]="NEXT_BEST_EPISODE",e[e.AUDIOBOOK_PRICE=64]="AUDIOBOOK_PRICE",e[e.EXPRESSIVE_PLAYLISTS=65]="EXPRESSIVE_PLAYLISTS",e[e.DYNAMIC_SHOW_EPISODE=66]="DYNAMIC_SHOW_EPISODE",e[e.LIVE=67]="LIVE",e[e.SKIP_PLAYED=68]="SKIP_PLAYED",e[e.AD_BREAK_FREE_PODCASTS=69]="AD_BREAK_FREE_PODCASTS",e[e.ASSOCIATIONS=70]="ASSOCIATIONS",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;case 61:case"AUDIO_ATTRIBUTES":return a.AUDIO_ATTRIBUTES;case 62:case"NAVIGABLE_TRAIT":return a.NAVIGABLE_TRAIT;case 63:case"NEXT_BEST_EPISODE":return a.NEXT_BEST_EPISODE;case 64:case"AUDIOBOOK_PRICE":return a.AUDIOBOOK_PRICE;case 65:case"EXPRESSIVE_PLAYLISTS":return a.EXPRESSIVE_PLAYLISTS;case 66:case"DYNAMIC_SHOW_EPISODE":return a.DYNAMIC_SHOW_EPISODE;case 67:case"LIVE":return a.LIVE;case 68:case"SKIP_PLAYED":return a.SKIP_PLAYED;case 69:case"AD_BREAK_FREE_PODCASTS":return a.AD_BREAK_FREE_PODCASTS;case 70:case"ASSOCIATIONS":return a.ASSOCIATIONS;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";case a.AUDIO_ATTRIBUTES:return"AUDIO_ATTRIBUTES";case a.NAVIGABLE_TRAIT:return"NAVIGABLE_TRAIT";case a.NEXT_BEST_EPISODE:return"NEXT_BEST_EPISODE";case a.AUDIOBOOK_PRICE:return"AUDIOBOOK_PRICE";case a.EXPRESSIVE_PLAYLISTS:return"EXPRESSIVE_PLAYLISTS";case a.DYNAMIC_SHOW_EPISODE:return"DYNAMIC_SHOW_EPISODE";case a.LIVE:return"LIVE";case a.SKIP_PLAYED:return"SKIP_PLAYED";case a.AD_BREAK_FREE_PODCASTS:return"AD_BREAK_FREE_PODCASTS";case a.ASSOCIATIONS:return"ASSOCIATIONS";default:return"UNKNOWN"}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},14681:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(35426),s=n(36181);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){const t={link:"",name:"",publisher:"",covers:void 0};return t.link=e.link??"",t.name=e.name??"",t.publisher=e.publisher??"",t.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,t}},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(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){const n={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 n.show=void 0!==e.show&&null!==e.show?t.EpisodeShowMetadata.fromPartial(e.show):void 0,n.link=e.link??"",n.name=e.name??"",n.length=e.length??0,n.covers=void 0!==e.covers&&null!==e.covers?a.ImageGroup.fromPartial(e.covers):void 0,n.manifestId=e.manifestId??"",n.description=e.description??"",n.publishDate=e.publishDate??"0",n.freezeFrames=void 0!==e.freezeFrames&&null!==e.freezeFrames?a.ImageGroup.fromPartial(e.freezeFrames):void 0,n.language=e.language??"",n.available=e.available??!1,n.mediaTypeEnum=e.mediaTypeEnum??0,n.number=e.number??0,n.backgroundable=e.backgroundable??!1,n.previewManifestId=e.previewManifestId??"",n.isExplicit=e.isExplicit??!1,n.previewId=e.previewId??"",n.episodeType=e.episodeType??0,n.isMusicAndTalk=e.isMusicAndTalk??!1,n.extension=e.extension?.map((e=>s.Extension.fromPartial(e)))||[],n.is19PlusOnly=e.is19PlusOnly??!1,n.isBookChapter=e.isBookChapter??!1,n.isPodcastShort=e.isPodcastShort??!1,n}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},36181:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892)),a=n(86626);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){const t={extensionKind:0,data:new Uint8Array};return t.extensionKind=e.extensionKind??0,t.data=e.data??new Uint8Array,t}};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}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},35426:function(e,t,n){"use strict";var o=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=o(n(38114)),r=o(n(33892));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){const t={standardLink:"",smallLink:"",largeLink:"",xlargeLink:""};return t.standardLink=e.standardLink??"",t.smallLink=e.smallLink??"",t.largeLink=e.largeLink??"",t.xlargeLink=e.xlargeLink??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},32162:(e,t,n)=>{"use strict";t.hb=t.wm=void 0;var o=n(29538);Object.defineProperty(t,"wm",{enumerable:!0,get:function(){return o.logPageActionForTestStep}}),Object.defineProperty(t,"hb",{enumerable:!0,get:function(){return o.setUpSpektrumLogging}})},29538:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testables=t.setUpSpektrumLogging=t.logPageActionForTestStep=void 0;const n=[];function o(){const e=globalThis.spektrumLoggingInternals;e&&(n.forEach((t=>{e.logPageActionForTestStep({title:t.title,timestamp:t.timestamp})})),n.length=0)}t.logPageActionForTestStep=function(e){const t={title:e,timestamp:Date.now()};n.push(t),o()},t.setUpSpektrumLogging=function(){globalThis.spektrumLoggingInternalsFromApp={reportPageActions(){o()}}},t.testables={resetForTesting(){n.length=0},getPageActionsToReport:()=>n}},85865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamReportingServiceClient=void 0;const o=n(33892),i=n(36012),r=n(3064),a=n(8557),s=n(25092),l=n(97278),c=n(23962);class u{transport;options;constructor(e,t={}){this.transport=e,this.options=t}streamStart(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamStart",a=i.StreamStartRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:a}).then((e=>{const i=r.StreamStartResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamProgress(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamProgress",i=a.StreamProgressRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.StatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamSeek(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamSeek",i=l.StreamSeekRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.StatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}streamEnd(e){const t="spotify.stream_reporting_esperanto.proto.StreamReportingService",n="StreamEnd",i=c.StreamEndRequest.encode(e).finish();return this.options.onRequest?.(e,t,n,"single"),this.transport.callSingle({service:t,method:n,payload:i}).then((e=>{const i=s.StatusResponse.decode(o.Reader.create(e));return this.options.onResponse?.(i,t,n,"single"),i}))}static SERVICE_ID="spotify.stream_reporting_esperanto.proto.StreamReportingService";static DECODERS={StreamStart:{request:i.StreamStartRequest.decode,response:r.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}}}t.StreamReportingServiceClient=u},85989:(e,t,n)=>{"use strict";t.lS=t.LI=t.Dx=t.Mk=t.Ce=t.OE=t.GL=t.dU=t.VL=t.DD=void 0;var o=n(87508);var i=n(34836);var r=n(32739);Object.defineProperty(t,"DD",{enumerable:!0,get:function(){return r.MediaType}});var a=n(85671);Object.defineProperty(t,"VL",{enumerable:!0,get:function(){return a.PlayReason}});var s=n(23433);Object.defineProperty(t,"dU",{enumerable:!0,get:function(){return s.PlaybackStack}});var l=n(89544);Object.defineProperty(t,"GL",{enumerable:!0,get:function(){return l.StatusCode}});var c=n(25092);var u=n(23962);Object.defineProperty(t,"OE",{enumerable:!0,get:function(){return u.StreamEndRequest}});var d=n(78307);var p=n(36012);Object.defineProperty(t,"Ce",{enumerable:!0,get:function(){return p.StreamStartRequest}});var f=n(3064);var h=n(8557);Object.defineProperty(t,"Mk",{enumerable:!0,get:function(){return h.StreamProgressRequest}});var m=n(85865);Object.defineProperty(t,"Dx",{enumerable:!0,get:function(){return m.StreamReportingServiceClient}});var g=n(97278);Object.defineProperty(t,"LI",{enumerable:!0,get:function(){return g.StreamSeekRequest}});var v=n(17498);Object.defineProperty(t,"lS",{enumerable:!0,get:function(){return v.StreamingRule}})},87508:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.audioFormatToJSON=t.audioFormatFromJSON=t.AudioFormat=t.protobufPackage=void 0,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"}(n=t.AudioFormat||(t.AudioFormat={})),t.audioFormatFromJSON=function(e){switch(e){case 0:case"FORMAT_UNKNOWN":return n.FORMAT_UNKNOWN;case 1:case"FORMAT_OGG_VORBIS_96":return n.FORMAT_OGG_VORBIS_96;case 2:case"FORMAT_OGG_VORBIS_160":return n.FORMAT_OGG_VORBIS_160;case 3:case"FORMAT_OGG_VORBIS_320":return n.FORMAT_OGG_VORBIS_320;case 4:case"FORMAT_MP3_256":return n.FORMAT_MP3_256;case 5:case"FORMAT_MP3_320":return n.FORMAT_MP3_320;case 6:case"FORMAT_MP3_160":return n.FORMAT_MP3_160;case 7:case"FORMAT_MP3_96":return n.FORMAT_MP3_96;case 8:case"FORMAT_MP3_160_ENCRYPTED":return n.FORMAT_MP3_160_ENCRYPTED;case 9:case"FORMAT_AAC_24":return n.FORMAT_AAC_24;case 10:case"FORMAT_AAC_48":return n.FORMAT_AAC_48;case 11:case"FORMAT_MP4_128":return n.FORMAT_MP4_128;case 12:case"FORMAT_MP4_128_DUAL":return n.FORMAT_MP4_128_DUAL;case 13:case"FORMAT_MP4_128_CBCS":return n.FORMAT_MP4_128_CBCS;case 14:case"FORMAT_MP4_256":return n.FORMAT_MP4_256;case 15:case"FORMAT_MP4_256_DUAL":return n.FORMAT_MP4_256_DUAL;case 16:case"FORMAT_MP4_256_CBCS":return n.FORMAT_MP4_256_CBCS;case 17:case"FORMAT_FLAC_FLAC":return n.FORMAT_FLAC_FLAC;case 18:case"FORMAT_MP4_FLAC":return n.FORMAT_MP4_FLAC;case 19:case"FORMAT_MP4_Unknown":return n.FORMAT_MP4_Unknown;case 20:case"FORMAT_MP3_Unknown":return n.FORMAT_MP3_Unknown;case 21:case"FORMAT_XHE_AAC_12":return n.FORMAT_XHE_AAC_12;case 22:case"FORMAT_XHE_AAC_16":return n.FORMAT_XHE_AAC_16;case 23:case"FORMAT_XHE_AAC_24":return n.FORMAT_XHE_AAC_24;default:return n.UNRECOGNIZED}},t.audioFormatToJSON=function(e){switch(e){case n.FORMAT_UNKNOWN:return"FORMAT_UNKNOWN";case n.FORMAT_OGG_VORBIS_96:return"FORMAT_OGG_VORBIS_96";case n.FORMAT_OGG_VORBIS_160:return"FORMAT_OGG_VORBIS_160";case n.FORMAT_OGG_VORBIS_320:return"FORMAT_OGG_VORBIS_320";case n.FORMAT_MP3_256:return"FORMAT_MP3_256";case n.FORMAT_MP3_320:return"FORMAT_MP3_320";case n.FORMAT_MP3_160:return"FORMAT_MP3_160";case n.FORMAT_MP3_96:return"FORMAT_MP3_96";case n.FORMAT_MP3_160_ENCRYPTED:return"FORMAT_MP3_160_ENCRYPTED";case n.FORMAT_AAC_24:return"FORMAT_AAC_24";case n.FORMAT_AAC_48:return"FORMAT_AAC_48";case n.FORMAT_MP4_128:return"FORMAT_MP4_128";case n.FORMAT_MP4_128_DUAL:return"FORMAT_MP4_128_DUAL";case n.FORMAT_MP4_128_CBCS:return"FORMAT_MP4_128_CBCS";case n.FORMAT_MP4_256:return"FORMAT_MP4_256";case n.FORMAT_MP4_256_DUAL:return"FORMAT_MP4_256_DUAL";case n.FORMAT_MP4_256_CBCS:return"FORMAT_MP4_256_CBCS";case n.FORMAT_FLAC_FLAC:return"FORMAT_FLAC_FLAC";case n.FORMAT_MP4_FLAC:return"FORMAT_MP4_FLAC";case n.FORMAT_MP4_Unknown:return"FORMAT_MP4_Unknown";case n.FORMAT_MP3_Unknown:return"FORMAT_MP3_Unknown";case n.FORMAT_XHE_AAC_12:return"FORMAT_XHE_AAC_12";case n.FORMAT_XHE_AAC_16:return"FORMAT_XHE_AAC_16";case n.FORMAT_XHE_AAC_24:return"FORMAT_XHE_AAC_24";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},34836:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.debugTracePointToJSON=t.debugTracePointFromJSON=t.DebugTracePoint=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START=0]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK=1]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE=2]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE=3]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES=4]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR=5]="DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_END=6]="DEBUG_TRACE_POINT_SESSION_IMPL_END",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_START=7]="DEBUG_TRACE_POINT_STREAM_REPORTING_START",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED=8]="DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_START_END=9]="DEBUG_TRACE_POINT_STREAM_REPORTING_START_END",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_START=10]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_START",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT=11]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT=12]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT",e[e.DEBUG_TRACE_POINT_STREAM_REPORTING_END_END=13]="DEBUG_TRACE_POINT_STREAM_REPORTING_END_END",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED=14]="DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED",e[e.DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND=15]="DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY=16]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START=17]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME=18]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY=19]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE=20]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START=21]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END=22]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED=23]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION=24]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG=25]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION=26]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE=27]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE",e[e.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE=28]="DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.DebugTracePoint||(t.DebugTracePoint={})),t.debugTracePointFromJSON=function(e){switch(e){case 0:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START;case 1:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK;case 2:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE;case 3:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE;case 4:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES;case 5:case"DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR":return n.DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR;case 6:case"DEBUG_TRACE_POINT_SESSION_IMPL_END":return n.DEBUG_TRACE_POINT_SESSION_IMPL_END;case 7:case"DEBUG_TRACE_POINT_STREAM_REPORTING_START":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_START;case 8:case"DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED;case 9:case"DEBUG_TRACE_POINT_STREAM_REPORTING_START_END":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_END;case 10:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_START":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_START;case 11:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT;case 12:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT;case 13:case"DEBUG_TRACE_POINT_STREAM_REPORTING_END_END":return n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_END;case 14:case"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED":return n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED;case 15:case"DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND":return n.DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND;case 16:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY;case 17:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START;case 18:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME;case 19:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY;case 20:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE;case 21:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START;case 22:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END;case 23:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED;case 24:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION;case 25:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG;case 26:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION;case 27:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE;case 28:case"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE":return n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE;default:return n.UNRECOGNIZED}},t.debugTracePointToJSON=function(e){switch(e){case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_START";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_BEFORE_SEEK";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_CREATE_HANDLE";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_ONCE";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_FAIL_MULTIPLE_TIMES";case n.DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR:return"DEBUG_TRACE_POINT_SESSION_IMPL_DESTRUCTOR";case n.DEBUG_TRACE_POINT_SESSION_IMPL_END:return"DEBUG_TRACE_POINT_SESSION_IMPL_END";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_START:return"DEBUG_TRACE_POINT_STREAM_REPORTING_START";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED:return"DEBUG_TRACE_POINT_STREAM_REPORTING_START_ADD_EVENT_FAILED";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_START_END:return"DEBUG_TRACE_POINT_STREAM_REPORTING_START_END";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_START:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_START";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_REPLACE_EVENT";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_COMMIT_EVENT";case n.DEBUG_TRACE_POINT_STREAM_REPORTING_END_END:return"DEBUG_TRACE_POINT_STREAM_REPORTING_END_END";case n.DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED:return"DEBUG_TRACE_POINT_SESSION_IMPL_START_OR_RESUME_RESUMED";case n.DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND:return"DEBUG_TRACE_POINT_SESSION_IMPL_SUSPEND";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PREPARE_AND_RUN_PENDING_OPEN_AND_PLAY";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_START";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_OPEN_TRACK_END_SONG_RESUME";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PLAY";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PAUSE";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_START";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_END";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_ALREADY_CLOSED";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_END_SONG_SESSION";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_SUSPEND_END_SONG";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_CLOSE_TRACK_HAS_STREAM_REPORTING_SESSION";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_AD_AT_CLOSE";case n.DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE:return"DEBUG_TRACE_POINT_SESSION_TRACK_PLAYER_IMPL_PROCESS_END_SONG_AT_CLOSE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},32739:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.mediaTypeToJSON=t.mediaTypeFromJSON=t.MediaType=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.AUDIO=0]="AUDIO",e[e.VIDEO=1]="VIDEO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.MediaType||(t.MediaType={})),t.mediaTypeFromJSON=function(e){switch(e){case 0:case"AUDIO":return n.AUDIO;case 1:case"VIDEO":return n.VIDEO;default:return n.UNRECOGNIZED}},t.mediaTypeToJSON=function(e){switch(e){case n.AUDIO:return"AUDIO";case n.VIDEO:return"VIDEO";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},85671:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playReasonToJSON=t.playReasonFromJSON=t.PlayReason=t.protobufPackage=void 0,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"}(n=t.PlayReason||(t.PlayReason={})),t.playReasonFromJSON=function(e){switch(e){case 0:case"PLAY_REASON_UNKNOWN":return n.PLAY_REASON_UNKNOWN;case 1:case"PLAY_REASON_APP_LOAD":return n.PLAY_REASON_APP_LOAD;case 2:case"PLAY_REASON_BACK_BTN":return n.PLAY_REASON_BACK_BTN;case 3:case"PLAY_REASON_CLICK_ROW":return n.PLAY_REASON_CLICK_ROW;case 4:case"PLAY_REASON_CLICK_SIDE":return n.PLAY_REASON_CLICK_SIDE;case 5:case"PLAY_REASON_END_PLAY":return n.PLAY_REASON_END_PLAY;case 6:case"PLAY_REASON_FWD_BTN":return n.PLAY_REASON_FWD_BTN;case 7:case"PLAY_REASON_INTERRUPTED":return n.PLAY_REASON_INTERRUPTED;case 8:case"PLAY_REASON_LOGOUT":return n.PLAY_REASON_LOGOUT;case 9:case"PLAY_REASON_PLAY_BTN":return n.PLAY_REASON_PLAY_BTN;case 10:case"PLAY_REASON_POPUP":return n.PLAY_REASON_POPUP;case 11:case"PLAY_REASON_REMOTE":return n.PLAY_REASON_REMOTE;case 12:case"PLAY_REASON_SONG_DONE":return n.PLAY_REASON_SONG_DONE;case 13:case"PLAY_REASON_TRACK_DONE":return n.PLAY_REASON_TRACK_DONE;case 14:case"PLAY_REASON_TRACK_ERROR":return n.PLAY_REASON_TRACK_ERROR;case 15:case"PLAY_REASON_PREVIEW":return n.PLAY_REASON_PREVIEW;case 16:case"PLAY_REASON_URI_OPEN":return n.PLAY_REASON_URI_OPEN;case 17:case"PLAY_REASON_BACKGROUNDED":return n.PLAY_REASON_BACKGROUNDED;case 18:case"PLAY_REASON_OFFLINE":return n.PLAY_REASON_OFFLINE;case 19:case"PLAY_REASON_UNEXPECTED_EXIT":return n.PLAY_REASON_UNEXPECTED_EXIT;case 20:case"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED":return n.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED;default:return n.UNRECOGNIZED}},t.playReasonToJSON=function(e){switch(e){case n.PLAY_REASON_UNKNOWN:return"PLAY_REASON_UNKNOWN";case n.PLAY_REASON_APP_LOAD:return"PLAY_REASON_APP_LOAD";case n.PLAY_REASON_BACK_BTN:return"PLAY_REASON_BACK_BTN";case n.PLAY_REASON_CLICK_ROW:return"PLAY_REASON_CLICK_ROW";case n.PLAY_REASON_CLICK_SIDE:return"PLAY_REASON_CLICK_SIDE";case n.PLAY_REASON_END_PLAY:return"PLAY_REASON_END_PLAY";case n.PLAY_REASON_FWD_BTN:return"PLAY_REASON_FWD_BTN";case n.PLAY_REASON_INTERRUPTED:return"PLAY_REASON_INTERRUPTED";case n.PLAY_REASON_LOGOUT:return"PLAY_REASON_LOGOUT";case n.PLAY_REASON_PLAY_BTN:return"PLAY_REASON_PLAY_BTN";case n.PLAY_REASON_POPUP:return"PLAY_REASON_POPUP";case n.PLAY_REASON_REMOTE:return"PLAY_REASON_REMOTE";case n.PLAY_REASON_SONG_DONE:return"PLAY_REASON_SONG_DONE";case n.PLAY_REASON_TRACK_DONE:return"PLAY_REASON_TRACK_DONE";case n.PLAY_REASON_TRACK_ERROR:return"PLAY_REASON_TRACK_ERROR";case n.PLAY_REASON_PREVIEW:return"PLAY_REASON_PREVIEW";case n.PLAY_REASON_URI_OPEN:return"PLAY_REASON_URI_OPEN";case n.PLAY_REASON_BACKGROUNDED:return"PLAY_REASON_BACKGROUNDED";case n.PLAY_REASON_OFFLINE:return"PLAY_REASON_OFFLINE";case n.PLAY_REASON_UNEXPECTED_EXIT:return"PLAY_REASON_UNEXPECTED_EXIT";case n.PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED:return"PLAY_REASON_UNEXPECTED_EXIT_WHILE_PAUSED";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},23433:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.playbackStackToJSON=t.playbackStackFromJSON=t.PlaybackStack=t.protobufPackage=void 0,t.protobufPackage="spotify.stream_reporting_esperanto.proto",function(e){e[e.BOOMBOX=0]="BOOMBOX",e[e.BETAMAX=1]="BETAMAX",e[e.UNKNOWN=2]="UNKNOWN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.PlaybackStack||(t.PlaybackStack={})),t.playbackStackFromJSON=function(e){switch(e){case 0:case"BOOMBOX":return n.BOOMBOX;case 1:case"BETAMAX":return n.BETAMAX;case 2:case"UNKNOWN":return n.UNKNOWN;default:return n.UNRECOGNIZED}},t.playbackStackToJSON=function(e){switch(e){case n.BOOMBOX:return"BOOMBOX";case n.BETAMAX:return"BETAMAX";case n.UNKNOWN:return"UNKNOWN";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},89544:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.statusCodeToJSON=t.statusCodeFromJSON=t.StatusCode=t.protobufPackage=void 0,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.INVALID_STREAM_HANDLE=3]="INVALID_STREAM_HANDLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=t.StatusCode||(t.StatusCode={})),t.statusCodeFromJSON=function(e){switch(e){case 0:case"SUCCESS":return n.SUCCESS;case 2:case"EVENT_SENDER_ERROR":return n.EVENT_SENDER_ERROR;case 3:case"INVALID_STREAM_HANDLE":return n.INVALID_STREAM_HANDLE;default:return n.UNRECOGNIZED}},t.statusCodeToJSON=function(e){switch(e){case n.SUCCESS:return"SUCCESS";case n.EVENT_SENDER_ERROR:return"EVENT_SENDER_ERROR";case n.INVALID_STREAM_HANDLE:return"INVALID_STREAM_HANDLE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},25092:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatusResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(89544);function a(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StatusResponse={encode:(e,t=i.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 i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={statusCode:0,reason:""};for(;n.pos>>3){case 1:r.statusCode=n.int32();break;case 2:r.reason=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({statusCode:a(e.statusCode)?(0,r.statusCodeFromJSON)(e.statusCode):0,reason:a(e.reason)?String(e.reason):""}),toJSON(e){const t={};return void 0!==e.statusCode&&(t.statusCode=(0,r.statusCodeToJSON)(e.statusCode)),void 0!==e.reason&&(t.reason=e.reason),t},fromPartial(e){const t={statusCode:0,reason:""};return t.statusCode=e.statusCode??0,t.reason=e.reason??"",t}}},23962:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamEndRequest=t.protobufPackage=void 0;const i=o(n(33892)),r=n(87508),a=n(85671),s=n(78307);function l(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamEndRequest={encode:(e,t=i.default.Writer.create())=>(void 0!==e.streamHandle&&s.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),""!==e.debugData&&t.uint32(42).string(e.debugData),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={streamHandle:void 0,sourceEnd:"",reasonEnd:0,format:void 0,debugData:""};for(;n.pos>>3){case 1:r.streamHandle=s.StreamHandle.decode(n,n.uint32());break;case 2:r.sourceEnd=n.string();break;case 3:r.reasonEnd=n.int32();break;case 4:r.format=n.int32();break;case 5:r.debugData=n.string();break;default:n.skipType(7&e)}}return r},fromJSON:e=>({streamHandle:l(e.streamHandle)?s.StreamHandle.fromJSON(e.streamHandle):void 0,sourceEnd:l(e.sourceEnd)?String(e.sourceEnd):"",reasonEnd:l(e.reasonEnd)?(0,a.playReasonFromJSON)(e.reasonEnd):0,format:l(e.format)?(0,r.audioFormatFromJSON)(e.format):void 0,debugData:l(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?s.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.sourceEnd&&(t.sourceEnd=e.sourceEnd),void 0!==e.reasonEnd&&(t.reasonEnd=(0,a.playReasonToJSON)(e.reasonEnd)),void 0!==e.format&&(t.format=void 0!==e.format?(0,r.audioFormatToJSON)(e.format):void 0),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t={streamHandle:void 0,sourceEnd:"",reasonEnd:0,format:void 0,debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?s.StreamHandle.fromPartial(e.streamHandle):void 0,t.sourceEnd=e.sourceEnd??"",t.reasonEnd=e.reasonEnd??0,t.format=e.format??void 0,t.debugData=e.debugData??"",t}}},78307:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamHandle=t.protobufPackage=void 0;const i=o(n(33892));t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamHandle={encode:(e,t=i.default.Writer.create())=>(0!==e.rawHandle&&t.uint32(16).uint32(e.rawHandle),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const r={rawHandle:0};for(;n.pos>>3==2)r.rawHandle=n.uint32();else n.skipType(7&e)}return r},fromJSON(e){return{rawHandle:(t=e.rawHandle,null!=t?Number(e.rawHandle):0)};var t},toJSON(e){const t={};return void 0!==e.rawHandle&&(t.rawHandle=Math.round(e.rawHandle)),t},fromPartial(e){const t={rawHandle:0};return t.rawHandle=e.rawHandle??0,t}}},8557:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamProgressRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(87508),s=n(78307);function l(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamProgressRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.streamHandle&&s.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),void 0!==e.mediaId&&t.uint32(82).string(e.mediaId),void 0!==e.contentIsDownloaded&&t.uint32(88).bool(e.contentIsDownloaded),void 0!==e.audioFormat&&t.uint32(96).int32(e.audioFormat),void 0!==e.contentUri&&t.uint32(106).string(e.contentUri),""!==e.debugData&&t.uint32(114).string(e.debugData),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={streamHandle:void 0,currentPosition:"0",isPaused:!1,isPlayingVideo:!1,isOverlapping:!1,isBackground:!1,isFullscreen:!1,isExternal:!1,playbackSpeed:0,mediaId:void 0,contentIsDownloaded:void 0,audioFormat:void 0,contentUri:void 0,debugData:""};for(;n.pos>>3){case 1:i.streamHandle=s.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;case 10:i.mediaId=n.string();break;case 11:i.contentIsDownloaded=n.bool();break;case 12:i.audioFormat=n.int32();break;case 13:i.contentUri=n.string();break;case 14:i.debugData=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({streamHandle:l(e.streamHandle)?s.StreamHandle.fromJSON(e.streamHandle):void 0,currentPosition:l(e.currentPosition)?String(e.currentPosition):"0",isPaused:!!l(e.isPaused)&&Boolean(e.isPaused),isPlayingVideo:!!l(e.isPlayingVideo)&&Boolean(e.isPlayingVideo),isOverlapping:!!l(e.isOverlapping)&&Boolean(e.isOverlapping),isBackground:!!l(e.isBackground)&&Boolean(e.isBackground),isFullscreen:!!l(e.isFullscreen)&&Boolean(e.isFullscreen),isExternal:!!l(e.isExternal)&&Boolean(e.isExternal),playbackSpeed:l(e.playbackSpeed)?Number(e.playbackSpeed):0,mediaId:l(e.mediaId)?String(e.mediaId):void 0,contentIsDownloaded:l(e.contentIsDownloaded)?Boolean(e.contentIsDownloaded):void 0,audioFormat:l(e.audioFormat)?(0,a.audioFormatFromJSON)(e.audioFormat):void 0,contentUri:l(e.contentUri)?String(e.contentUri):void 0,debugData:l(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?s.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),void 0!==e.mediaId&&(t.mediaId=e.mediaId),void 0!==e.contentIsDownloaded&&(t.contentIsDownloaded=e.contentIsDownloaded),void 0!==e.audioFormat&&(t.audioFormat=void 0!==e.audioFormat?(0,a.audioFormatToJSON)(e.audioFormat):void 0),void 0!==e.contentUri&&(t.contentUri=e.contentUri),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t={streamHandle:void 0,currentPosition:"0",isPaused:!1,isPlayingVideo:!1,isOverlapping:!1,isBackground:!1,isFullscreen:!1,isExternal:!1,playbackSpeed:0,mediaId:void 0,contentIsDownloaded:void 0,audioFormat:void 0,contentUri:void 0,debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?s.StreamHandle.fromPartial(e.streamHandle):void 0,t.currentPosition=e.currentPosition??"0",t.isPaused=e.isPaused??!1,t.isPlayingVideo=e.isPlayingVideo??!1,t.isOverlapping=e.isOverlapping??!1,t.isBackground=e.isBackground??!1,t.isFullscreen=e.isFullscreen??!1,t.isExternal=e.isExternal??!1,t.playbackSpeed=e.playbackSpeed??0,t.mediaId=e.mediaId??void 0,t.contentIsDownloaded=e.contentIsDownloaded??void 0,t.audioFormat=e.audioFormat??void 0,t.contentUri=e.contentUri??void 0,t.debugData=e.debugData??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},97278:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamSeekRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(78307);function s(e){return e.toString()}function l(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamSeekRequest={encode:(e,t=r.default.Writer.create())=>(void 0!==e.streamHandle&&a.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),""!==e.debugData&&t.uint32(42).string(e.debugData),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i={streamHandle:void 0,fromPosition:"0",toPosition:"0",debugData:""};for(;n.pos>>3){case 1:i.streamHandle=a.StreamHandle.decode(n,n.uint32());break;case 3:i.fromPosition=s(n.uint64());break;case 4:i.toPosition=s(n.uint64());break;case 5:i.debugData=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({streamHandle:l(e.streamHandle)?a.StreamHandle.fromJSON(e.streamHandle):void 0,fromPosition:l(e.fromPosition)?String(e.fromPosition):"0",toPosition:l(e.toPosition)?String(e.toPosition):"0",debugData:l(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?a.StreamHandle.toJSON(e.streamHandle):void 0),void 0!==e.fromPosition&&(t.fromPosition=e.fromPosition),void 0!==e.toPosition&&(t.toPosition=e.toPosition),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t={streamHandle:void 0,fromPosition:"0",toPosition:"0",debugData:""};return t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?a.StreamHandle.fromPartial(e.streamHandle):void 0,t.fromPosition=e.fromPosition??"0",t.toPosition=e.toPosition??"0",t.debugData=e.debugData??"",t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},36012:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamStartRequest=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892)),a=n(32739),s=n(85671),l=n(23433),c=n(17498);function u(){return{playbackId:new Uint8Array,parentPlaybackId:new Uint8Array,parentPlayTrack:"",videoSessionId:"",playContext:"",contentUri:"",displayedContentUri:"",playbackStack:0,provider:"",referrer:"",streamingRule:0,connectControllerDeviceId:"",pageInstanceId:"",interactionId:"",sourceStart:"",reasonStart:0,isShuffle:!1,isIncognito:!1,mediaId:"",mediaType:0,playbackStartTime:"0",startPosition:"0",isLive:!1,contentIsDownloaded:!1,clientOffline:!1,isSocialListeningActive:!1,debugData:""}}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamStartRequest={encode:(e,t=r.default.Writer.create())=>(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),0!==e.playbackStack&&t.uint32(64).int32(e.playbackStack),""!==e.provider&&t.uint32(90).string(e.provider),""!==e.referrer&&t.uint32(98).string(e.referrer),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),""!==e.debugData&&t.uint32(290).string(e.debugData),t),decode(e,t){const n=e instanceof r.default.Reader?e:new r.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const i=u();for(;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.playbackStack=n.int32();break;case 11:i.provider=n.string();break;case 12:i.referrer=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=h(n.uint64());break;case 31:i.startPosition=h(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;case 36:i.debugData=n.string();break;default:n.skipType(7&e)}}return i},fromJSON:e=>({playbackId:m(e.playbackId)?p(e.playbackId):new Uint8Array,parentPlaybackId:m(e.parentPlaybackId)?p(e.parentPlaybackId):new Uint8Array,parentPlayTrack:m(e.parentPlayTrack)?String(e.parentPlayTrack):"",videoSessionId:m(e.videoSessionId)?String(e.videoSessionId):"",playContext:m(e.playContext)?String(e.playContext):"",contentUri:m(e.contentUri)?String(e.contentUri):"",displayedContentUri:m(e.displayedContentUri)?String(e.displayedContentUri):"",playbackStack:m(e.playbackStack)?(0,l.playbackStackFromJSON)(e.playbackStack):0,provider:m(e.provider)?String(e.provider):"",referrer:m(e.referrer)?String(e.referrer):"",streamingRule:m(e.streamingRule)?(0,c.streamingRuleFromJSON)(e.streamingRule):0,connectControllerDeviceId:m(e.connectControllerDeviceId)?String(e.connectControllerDeviceId):"",pageInstanceId:m(e.pageInstanceId)?String(e.pageInstanceId):"",interactionId:m(e.interactionId)?String(e.interactionId):"",sourceStart:m(e.sourceStart)?String(e.sourceStart):"",reasonStart:m(e.reasonStart)?(0,s.playReasonFromJSON)(e.reasonStart):0,isShuffle:!!m(e.isShuffle)&&Boolean(e.isShuffle),isIncognito:!!m(e.isIncognito)&&Boolean(e.isIncognito),mediaId:m(e.mediaId)?String(e.mediaId):"",mediaType:m(e.mediaType)?(0,a.mediaTypeFromJSON)(e.mediaType):0,playbackStartTime:m(e.playbackStartTime)?String(e.playbackStartTime):"0",startPosition:m(e.startPosition)?String(e.startPosition):"0",isLive:!!m(e.isLive)&&Boolean(e.isLive),contentIsDownloaded:!!m(e.contentIsDownloaded)&&Boolean(e.contentIsDownloaded),clientOffline:!!m(e.clientOffline)&&Boolean(e.clientOffline),isSocialListeningActive:!!m(e.isSocialListeningActive)&&Boolean(e.isSocialListeningActive),debugData:m(e.debugData)?String(e.debugData):""}),toJSON(e){const t={};return void 0!==e.playbackId&&(t.playbackId=f(void 0!==e.playbackId?e.playbackId:new Uint8Array)),void 0!==e.parentPlaybackId&&(t.parentPlaybackId=f(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.playbackStack&&(t.playbackStack=(0,l.playbackStackToJSON)(e.playbackStack)),void 0!==e.provider&&(t.provider=e.provider),void 0!==e.referrer&&(t.referrer=e.referrer),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,s.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,a.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),void 0!==e.debugData&&(t.debugData=e.debugData),t},fromPartial(e){const t=u();return t.playbackId=e.playbackId??new Uint8Array,t.parentPlaybackId=e.parentPlaybackId??new Uint8Array,t.parentPlayTrack=e.parentPlayTrack??"",t.videoSessionId=e.videoSessionId??"",t.playContext=e.playContext??"",t.contentUri=e.contentUri??"",t.displayedContentUri=e.displayedContentUri??"",t.playbackStack=e.playbackStack??0,t.provider=e.provider??"",t.referrer=e.referrer??"",t.streamingRule=e.streamingRule??0,t.connectControllerDeviceId=e.connectControllerDeviceId??"",t.pageInstanceId=e.pageInstanceId??"",t.interactionId=e.interactionId??"",t.sourceStart=e.sourceStart??"",t.reasonStart=e.reasonStart??0,t.isShuffle=e.isShuffle??!1,t.isIncognito=e.isIncognito??!1,t.mediaId=e.mediaId??"",t.mediaType=e.mediaType??0,t.playbackStartTime=e.playbackStartTime??"0",t.startPosition=e.startPosition??"0",t.isLive=e.isLive??!1,t.contentIsDownloaded=e.contentIsDownloaded??!1,t.clientOffline=e.clientOffline??!1,t.isSocialListeningActive=e.isSocialListeningActive??!1,t.debugData=e.debugData??"",t}};var d=(()=>{if("undefined"!=typeof globalThis)return globalThis;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 p(e){if(d.Buffer)return Uint8Array.from(d.Buffer.from(e,"base64"));{const t=d.atob(e),n=new Uint8Array(t.length);for(let e=0;e{t.push(String.fromCharCode(e))})),d.btoa(t.join(""))}}function h(e){return e.toString()}function m(e){return null!=e}r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},3064:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StreamStartResponse=t.protobufPackage=void 0;const i=o(n(33892)),r=n(25092),a=n(78307);function s(e){return null!=e}t.protobufPackage="spotify.stream_reporting_esperanto.proto",t.StreamStartResponse={encode:(e,t=i.default.Writer.create())=>(void 0!==e.status&&r.StatusResponse.encode(e.status,t.uint32(10).fork()).ldelim(),void 0!==e.streamHandle&&a.StreamHandle.encode(e.streamHandle,t.uint32(18).fork()).ldelim(),t),decode(e,t){const n=e instanceof i.default.Reader?e:new i.default.Reader(e);let o=void 0===t?n.len:n.pos+t;const s={status:void 0,streamHandle:void 0};for(;n.pos>>3){case 1:s.status=r.StatusResponse.decode(n,n.uint32());break;case 2:s.streamHandle=a.StreamHandle.decode(n,n.uint32());break;default:n.skipType(7&e)}}return s},fromJSON:e=>({status:s(e.status)?r.StatusResponse.fromJSON(e.status):void 0,streamHandle:s(e.streamHandle)?a.StreamHandle.fromJSON(e.streamHandle):void 0}),toJSON(e){const t={};return void 0!==e.status&&(t.status=e.status?r.StatusResponse.toJSON(e.status):void 0),void 0!==e.streamHandle&&(t.streamHandle=e.streamHandle?a.StreamHandle.toJSON(e.streamHandle):void 0),t},fromPartial(e){const t={status:void 0,streamHandle:void 0};return t.status=void 0!==e.status&&null!==e.status?r.StatusResponse.fromPartial(e.status):void 0,t.streamHandle=void 0!==e.streamHandle&&null!==e.streamHandle?a.StreamHandle.fromPartial(e.streamHandle):void 0,t}}},17498:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.streamingRuleToJSON=t.streamingRuleFromJSON=t.StreamingRule=t.protobufPackage=void 0,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"}(n=t.StreamingRule||(t.StreamingRule={})),t.streamingRuleFromJSON=function(e){switch(e){case 0:case"STREAMING_RULE_NONE":return n.STREAMING_RULE_NONE;case 1:case"STREAMING_RULE_DMCA_RADIO":return n.STREAMING_RULE_DMCA_RADIO;case 2:case"STREAMING_RULE_PREVIEW":return n.STREAMING_RULE_PREVIEW;case 3:case"STREAMING_RULE_WIFI":return n.STREAMING_RULE_WIFI;case 4:case"STREAMING_RULE_SHUFFLE_MODE":return n.STREAMING_RULE_SHUFFLE_MODE;default:return n.UNRECOGNIZED}},t.streamingRuleToJSON=function(e){switch(e){case n.STREAMING_RULE_NONE:return"STREAMING_RULE_NONE";case n.STREAMING_RULE_DMCA_RADIO:return"STREAMING_RULE_DMCA_RADIO";case n.STREAMING_RULE_PREVIEW:return"STREAMING_RULE_PREVIEW";case n.STREAMING_RULE_WIFI:return"STREAMING_RULE_WIFI";case n.STREAMING_RULE_SHUFFLE_MODE:return"STREAMING_RULE_SHUFFLE_MODE";case n.UNRECOGNIZED:default:return"UNRECOGNIZED"}}},45658:(e,t,n)=>{"use strict";function o(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function i(){window.dataLayer=window.dataLayer||[],window.dataLayer.push(arguments)}function r({async:e,dataset:t,onError:n,onLoad:o,src:i,nonce:r}){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),o&&a.addEventListener("load",o),r&&a.setAttribute("nonce",r),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.r(t),n.d(t,{GTM_SHA_HASH:()=>s,OPTIMIZE_SHA_HASH:()=>T,addConsentListener:()=>S,getConsentInfo:()=>A,removeConsentListener:()=>E,track:()=>C});const s="'sha256-WfsTi7oVogdF9vq5d14s2birjvCglqWF842fyHhzoNw='";function l({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})}const c="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js";const u=e=>e.slice(e.indexOf("."));var d=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};const p="50da44be-0564-43df-b139-329aedcf267b",f=new Set,h=new Set;function m({timeout:e=5e3,oneTrustDomainScript:t}){return d(this,void 0,void 0,(function*(){let n;return window.OptanonWrapper=g,new Promise(((o,i)=>{r({dataset:{domainScript:t||p,documentLanguage:"true"},onError:i,onLoad:o,src:c}),n=setTimeout(i,e)})).then((()=>clearTimeout(n)))}))}function g(){var e,t;window.gtag||(window.gtag=i);const n=A();var r;n&&f.forEach((e=>{try{e(n)}catch(e){}})),null===(e=window.OneTrust)||void 0===e||e.OnConsentChanged(b),(window.__cmp||window.__tcfapi)&&window.OptanonActiveGroups&&(null===(t=n)||void 0===t?void 0:t.consentId)&&(r=n.consentId,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});_(),o({consentData:i})}}(r)):window.__cmp("getVendorConsents",{},function(e){return function(t){const n=JSON.stringify({id:e,iab:t.metadata,cate:window.OptanonActiveGroups});_(),o({consentData:n})}}(r)))}const v="sp_consent",y=-1e3;function _(){const e=u(window.location.hostname);document.cookie=[`${v}=`,`max-age=${y}`,`domain=${e}`,"path=/"].join("; ")}function b(){const e=A();e&&f.forEach((t=>{try{t(e)}catch(e){}}))}function S(e,t){t&&f.add(e),h.add(e)}function E(e){f.delete(e),h.delete(e)}function A(){const e=function(e){const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let e=0;e{const[n,o]=t.split("=");return n&&(e[n]=decodeURIComponent(o)),e}),{}))||{};var i;if(!n||!o||""===o)return;const r=function(e){if(!e)return{};return e.split(",").reduce(((e,t)=>{const[n,o]=t.split(":");return e[n]="1"===o,e}),{})}(t);return{groups:r,consentId:n,date:function(e){const t=e.replace(/\+/g," ");return new Date(t)}(o)}}const T="'sha256-KRzjHxCdT8icNaDOqPBdY0AlKiIh5F8r4bnbe1PQwss='";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 O=function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};function C(e){return O(this,void 0,void 0,(function*(){if(!e)return Promise.resolve();const t=function(e){const{dataLayerPushInitial:t,googleOptimizeId:n,googleTagManagerId:o,language:i,market:r,oneTrust:a}=e;return{loadGoogleOptimize:!!n,loadGoogleTagManager:!!o,loadOneTrust:a&&r,pushInitialData:t&&i&&r}}(e);return function({language:e,loggedIn:t=!1,pushInitialData:n,market:i,userCountry:r=""}){n&&o({language:e,loggedIn:t,market:i,userCountry:r})}(Object.assign(Object.assign({},t),e)),yield function({loadGoogleOptimize:e,loadGoogleTagManager:t,loadOneTrust:n,googleOptimizeId:o,googleOptimizeTimeout:i,googleTagManagerId:r,googleTagManagerAdditionalData:a,oneTrustDomainScript:s,nonce:c}){return O(this,void 0,void 0,(function*(){const u=[];return e&&u.push(P({id:o,timeout:i})),t&&n?u.push(m({oneTrustDomainScript:s}).then((()=>l({id:r,additionalData:a,nonce:c})))):n?u.push(m({oneTrustDomainScript:s})):t&&u.push(l({id:r,additionalData:a,nonce:c})),Promise.all(u)}))}(Object.assign(Object.assign({},t),e))}))}},72226:(e,t,n)=>{"use strict";var o;n.d(t,{J:()=>o}),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"}(o||(o={}))},42450:(e,t,n)=>{"use strict";var o;n.d(t,{j:()=>o}),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"}(o||(o={}))},6967:(e,t,n)=>{"use strict";var o;n.d(t,{r:()=>o}),function(e){e[e.CLOSE=4e3]="CLOSE",e[e.TIMEOUT=4001]="TIMEOUT"}(o||(o={}))},16221:(e,t,n)=>{"use strict";var o;n.d(t,{n:()=>o}),function(e){e.DELETE="DELETE",e.GET="GET",e.OPTIONS="OPTIONS",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.TRACE="TRACE"}(o||(o={}))},34934:(e,t,n)=>{"use strict";var o;n.d(t,{t:()=>o}),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"}(o||(o={}))},30212:(e,t,n)=>{"use strict";var o;n.d(t,{G:()=>o}),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"}(o||(o={}))},72755:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConnectionObserver:()=>d,DEALER_PLUGIN_NAME:()=>v.hI,DisconnectionReason:()=>r,Method:()=>l.n,PluginEvent:()=>c.t,TransportErrors:()=>a.J,TransportEvent:()=>s.j,createAbortControllerLike:()=>g,createBaseTransport:()=>de,createTransport:()=>pe,createXResolveProvider:()=>ue.Q});var o={};n.r(o),n.d(o,{isSupported:()=>C,request:()=>k});var i={};n.r(i),n.d(i,{request:()=>ce});var r,a=n(72226),s=n(42450),l=n(16221),c=n(34934);!function(e){e.RECONNECTION_FAILED="reconnection_failed",e.EXPLICIT="explicit",e.LOG_OUT="log_out",e.WINDOW_BEFORE_UNLOAD="window_before_unload"}(r||(r={}));var u=n(53016);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 m(){return"undefined"!=typeof window&&"function"==typeof window.AbortController}const g=m()?()=>new AbortController:()=>new h;var v=n(30500),y=n(77321);const _={POST:!0,PUT:!0,DELETE:!0};var b=n(30212);class S extends Error{constructor(e,t,n){super(e),this.name="RequestError",this.message=e,this.code=t,this.status=n||0}}class E extends S{constructor(){super("Request aborted by signal.",a.J.HTTP_REQUEST_ABORTED,0),this.name="RequestAbortedError",this.message="Request aborted by signal."}}class A{constructor(e){this.get=e.get.bind(e),this.has=e.has.bind(e)}get(e){return null}has(e){return!1}}class T{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 P=y.P.forTag("transport.http.fetch"),O={json:!0,text:!0,arraybuffer:!0,blob:!0};function C(){return"function"==typeof fetch}function k(e){if(!C())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 E);if(!e.url)return Promise.reject(new TypeError("Request URL cannot be blank."));const n=e.method||"GET";let o=e.url,i=null;if(n in _&&e.payload?i=e.payload:e.payload&&(o+=`?${e.payload}`),e.options.responseType&&!(e.options.responseType in O))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));const r={mode:e.options.mode||"cors",credentials:e.options.credentials||"same-origin",redirect:e.options.redirect||"follow",signal:t,method:n};e.headers.count()&&(r.headers=e.headers.toJSON()),i&&(r.body=i);const a=Date.now();return fetch(o,r).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 P.warn("Could not parse response as JSON:",e),null})):"arraybuffer"===e.options.responseType?t.arrayBuffer():"blob"===e.options.responseType?t.blob():t.text();const o=e.options.parseResponseHeaders||t.status>299?new A(t.headers):null;return Promise.all([t.url,t.status,o,n])})).then((function([t,n,o,i]){const r=new T(t,n);if(r.body=i,r.headers=o,e.options.timing){const e=Date.now()-a;r.timing={completed:e}}return r})).catch((function(t){if("AbortError"===(null==t?void 0:t.name))throw new E;const n=new T(o);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(96583),L=n(60220);const I=200,N=0,w="linear",D=!0;class M{constructor(e={}){this._curve=e.curve||w,this._baseTime=e.baseTime||I,this._ceiling=e.ceiling||N,this._jitter="jitter"in e?!!e.jitter:D}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}}const x={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class F{constructor(e,t){this._resolver=(0,L.$)(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;const n=Object.assign(Object.assign({},x),t),{backoffInitial:o,maxDuration:i,maxRetries:r,maxTime:a,retryPredicate:s}=n,l=(0,R.__rest)(n,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=o,this._maxDuration=i,this._maxRetries=r,this._maxTime=a,this._retryPredicate=s,this._backoffInitial=o,this._counter=new M(l),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new F(e,t).start()}_destroy(){this._isRunning=!1,this._isDestroyed=!0}_failure(e){if(!this._isDestroyed)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._isDestroyed||(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(){return this._isDestroyed?Promise.reject(new Error("Backoff already consumed")):(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._destroy()}getRetryCount(){return this._callCount}}var U,B,V=n(6967);!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"}(U||(U={}));class G extends Error{constructor(e,t,n=null){super(t),this.name="TransportError",this.message=t,this.code=e,this.origin=n}}class J{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 j{constructor(e,t){this.url=e,this.method=(null==t?void 0:t.method)||"GET",this.headers=new J(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 j(e,t)}clone(){const e=new j(this.url);return e.method=this.method,e.headers=new J(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"}(B||(B={}));class H extends u.vp{constructor(e,t){super(),this.EVENT_ACCESS_TOKEN=B.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=B.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=B.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=B.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=B.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=b.G,this.StatusFamily=U,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,o)=>n(e,o?Object.assign(Object.assign(Object.assign({},null==t?void 0:t.requestOptions),o),{metadata:Object.assign(Object.assign({},t.requestOptions.metadata),null==o?void 0:o.metadata),retry:Object.assign(Object.assign({},t.requestOptions.retry),null==o?void 0:o.retry)}):t.requestOptions):this.request=n,this.proxyEmit(e,s.j.ACCESS_TOKEN,B.EVENT_ACCESS_TOKEN),this.proxyEmit(e,s.j.CONNECTION_OFFLINE,B.EVENT_CONNECTION_OFFLINE),this.proxyEmit(e,s.j.CONNECTION_ONLINE,B.EVENT_CONNECTION_ONLINE),this.proxyEmit(e,s.j.ENDPOINTS_RESOLVED,B.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(B.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,e.on.bind(e))),this.onRemoveListener(B.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,e.removeListener.bind(e)))}_onAddConnectionIdListener(e,t){t.preventDefault();const n=t.data.listener,o=e=>{const t=this.createEvent(B.EVENT_CONNECTION_ID,e.data);n.call(this,t)};n.$proxy_wrapper=o,e(s.j.CONNECTION_ID,o,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 K{constructor(){this._startTime=null,this._endTime=null}static create(){return new K}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 Y=y.P.forTag("transport.transport"),W=/^(?:https?:\/\/)?@([^\/]+)\//,z=/^(ws|http)s?:\/\/.*[^\/]$/,q=/^([a-zA-Z]{3},\ \d{1,2}\ [a-zA-Z]{3}\ (\d{1,2}.){3})/,X={xhr:!0,fetch:!0},Z=1,Q=4;function $(e,t){const n=`access_token=${encodeURIComponent(t)}`,[o,i]=e.split("?");if(!i)return`${o}?${n}`;const r=i.replace(/access_token=[^&]*(&|$)/,`${n}$1`);return r!==i?`${o}?${r}`:`${o}?${n}&${i}`}class ee 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 M({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 X?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 ee(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()||(Y.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(r.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&Z?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise(((e,t)=>{Y.info("Waiting to go online before connecting"),this._connectionObserver.once(s.j.CONNECTION_ONLINE,(()=>{this._performConnect().then(e,t)}))}))}_performConnect(){return new Promise((e=>{Y.info("Resolving endpoints"),e(this._endpointsProvider(this.toPublic()))})).catch((e=>{const t=(null==e?void 0:e.code)?e:new G(a.J.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==e?void 0:e.message)||"Endpoints provider error",null!=e?e:null);return Y.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}),Y.error("Connection failed",t),Promise.reject(t)}))}_connectToEndpoints(e){const t={webgate:"",webapi:""};for(const n in e){if(!e.hasOwnProperty(n))continue;let o=e[n];o&&(z.test(o)&&(o+="/"),t[n]=o)}this._endpoints=t,this.emit(s.j.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},t)}),Y.info("Endpoints resolved");const n=[],o=e=>{n.push(e)};return Y.info("Waiting for plugins to connect"),new Promise(((e,i)=>{this._pluginMediator.emitAndWait(c.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},t),awaitPromise:o},(()=>{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=>{Y.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 G(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}),Y.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,Y.error("No token was provided"),new G(a.J.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${t}"`);if(this._lastToken===t){Y.error("TokenProvider returned same token twice.");const e=new G(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}),Y.info("Access token set"),t}_authenticateWithToken(e){if(!this._endpoints)return Promise.resolve(!0);const t=[],n=e=>{t.push(e)};return Y.info("Waiting for plugins to authenticate"),new Promise(((o,i)=>{this._pluginMediator.emitAndWait(c.t.TRANSPORT_AUTHENTICATE,{token:e,awaitPromise:n},(()=>{Promise.all(t).then((()=>o(!0)),i)}))}))}_authenticate(e){if(!(this._stateMask&Z))return Promise.reject(new G(a.J.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;const t=K.create();return t.start(),this._authenticationPromise=F.init((()=>(Y.info("Authenticating"),this._refreshToken(e).then(this._authenticateWithToken))),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:e=>(Y.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}),Y.info("Disconnected")),Y.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),Y.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),Y.info("Reconnected"),!0))))}_tryToReconnect(){this._isReconnecting?Y.warn("Reconnection triggered while already reconnecting"):(this._stateMask=0,F.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:e=>(Y.warn("Retrying reconnection due to failure",e),!0)}).catch((()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(s.j.DISCONNECTED,{reason:r.RECONNECTION_FAILED}),Y.info("Disconnected: reconnection failed")})))}_sendRequest(e,t={},n={}){const o=t.signal;return(null==o?void 0:o.aborted)?Promise.reject(new E):this._processRequestArgs(e,t).then((e=>(null==o?void 0:o.aborted)?Promise.reject(new E):e.options.forget?this._sendFireAndForgetRequest(e):this._sendRetriedRequest(e,n)))}_processRequestArgs(e,t={}){var n,o;if(null===(n=t.signal)||void 0===n?void 0:n.aborted)return Promise.reject(new E);let i=e,r=!1;const a=Object.assign(Object.assign({},t),{forcePolyfill:!(!t.responseType||!(t.responseType in this._forcePolyfillTypes)),requestMode:null!==(o=null==t?void 0:t.requestMode)&&void 0!==o?o:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==t?void 0:t.metadata)||null});if((null==t?void 0:t.signal)&&!m()&&("fetch"===t.requestMode?Y.warn("Request with `{requestMode: fetch}` but no native AbortController."):a.requestMode="xhr"),W.test(i)){r=!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 E)});return Promise.resolve(j.create(i,{method:t.method,headers:t.headers,payload:t.payload,options:a,urlExpanded:r,retryOptions:s}))}_tryExpandSpecialURL(e){const t=this._endpoints;return e.replace(W,((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:o,options:i}=e;if(null===(t=i.signal)||void 0===t?void 0:t.aborted)return Promise.reject(new E);if("GET"!==o&&"POST"!==o)return Promise.reject(new G(a.J.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${o} request.`));if(!i.autoAuthorized&&i.authorize)return Promise.reject(new G(a.J.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(i.requestMode="xhr",i.authorize=!1,i.ignoreResponseBody=!0,"GET"===o)if("function"==typeof fetch){const e={mode:"no-cors"};i.signal&&m()&&(e.signal=i.signal),fetch(n,e).catch((()=>{}))}else"function"==typeof Image?(new Image).src=n:this._sendRetriedRequest(e,{}).catch((()=>{}));else if("POST"===o)if("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)){const t=e.headers.get("content-type");navigator.sendBeacon(e.url,"string"==typeof e.payload&&t?new Blob([e.payload],{type:t}):e.payload)}else if("function"==typeof fetch){const t=e.headers.get("content-type"),o={method:"POST",body:e.payload,headers:t?{"content-type":t}:void 0};i.signal&&m()&&(o.signal=i.signal),fetch(n,o).catch((()=>{}))}else this._sendRetriedRequest(e,{}).catch((()=>{}));return Promise.resolve(new T(n,0))}_sendRetriedRequest(e,t){const n=e.retryOptions,o=e.options.signal;let i=!1;const r=()=>(null==o?void 0:o.aborted)?Promise.reject(new E):this._setAuthHeader(e,i),a=this._connectionObserver,l=new F((()=>{let l;return l=a.isOnline()||e.options.allowOffline?r():new Promise(((e,t)=>{a.once(s.j.CONNECTION_ONLINE,(()=>{r().then(e,t)}))})),l.then((()=>{if(null==o?void 0:o.aborted)return Promise.reject(new E);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==o?void 0:o.aborted)return Promise.reject(new E);let r=null;if(t.headers&&(r=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,U)||r)){if(null!==r)if(q.test(r))t.retryAfter=new Date(r).getTime()-Date.now();else{const e=parseInt(r,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==o?void 0:o.aborted)?Promise.reject(new E):(n.metadata=e.options.metadata,n.retries=n.retries||{count:0},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)=>{Y.info("Auth header setting awaiting authentication."),this.once(s.j.AUTHENTICATED,(()=>{Y.info("Auth header set after authentication."),n().then(e,t)}))}))}_handleRetriedRequestError(e){return e instanceof T?Promise.resolve(e):Promise.reject(e)}_onAddListener(e,t){const n=t.data.options;if(n.ignoreCurrentState)return;let o;switch(e){case"connected":if(!this.isConnected())return;o=Promise.resolve(this.createEvent(s.j.CONNECTED,null));break;case"authenticated":{if(!this.isAuthenticated())return;const e=this._stateAwareOperationMetrics.authenticated;o=Promise.resolve(this.createEvent(s.j.AUTHENTICATED,{timing:e}));break}case"connection_id":{const e=this.getPluginAPI("dealer");if(!e||!e.hasConnectionInfo())return;o=e.getConnectionInfo().then((e=>this.createEvent(s.j.CONNECTION_ID,e)));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;o=Promise.resolve(this._pluginMediator.createEvent(c.t.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:e=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;o=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 r=this._stateAwareRunners;r[e]||(r[e]=o.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 o=t.data.listener,i=this._stateAwareListeners[e].indexOf(o);-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===V.r.CLOSE)return Y.info(`Plugin "${e.data.plugin}" explicitly disconnected`),void(this._quickDisconnectCount=0);this._connectionObserver.isOnline()&&(Y.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),Y.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(s.j.CONNECTION_OFFLINE,null),Y.info("ConnectioObserver offline"),this._performDisconnect()}_onConnected(){return this._stateMask|=Z,this.emit(s.j.CONNECTED,null),Y.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,Y.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 o={error:n,timing:t.getMetrics()};return this.emit(s.j.AUTHENTICATION_FAILED,o),this._pluginMediator.emit(c.t.TRANSPORT_AUTHENTICATE_FAILED,o),Y.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(r.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&Z)}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(r.EXPLICIT)}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(r.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 H(this,e)}hasOwnerRef(e){return this._ownerRef===e}appendTokenQuery(e){return this._refreshToken().then((t=>$(e,t)))}appendLastTokenQuery(e){return this._lastToken?$(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 o=o=>{const i=o.data.message;!i.uri||!i.uri.match(e)||n&&n!==o.data.plugin||t(i)};o.__matchMessagesExp=e,o.__matchMessagesPlugin=n,t.__matchMessagesWrapper=o,this._pluginMediator.on(c.t.PLUGIN_MESSAGE,o)}unmatchMessages(e,t,n){if("function"!=typeof t)throw new TypeError("Message callback cannot be null.");const o=t.__matchMessagesWrapper;return!(!o||o.__matchMessagesExp!==e||o.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(c.t.PLUGIN_MESSAGE,o),!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 o=o=>{const i=o.data.request;!i.message_ident||!i.message_ident.match(e)||n&&n!==o.data.plugin||Promise.resolve(t(i)).then(o.data.reply)};o.__matchRequestExp=e,o.__matchRequestPlugin=n,t.__matchRequestWrapper=o,this._pluginMediator.on(c.t.PLUGIN_REQUEST,o)}unhandlePushRequests(e,t,n){if("function"!=typeof t)throw new TypeError("Push request callback cannot be null.");const o=t.__matchRequestWrapper;return!(!o||o.__matchRequestExp!==e||o.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(c.t.PLUGIN_REQUEST,o),!0)}request(e,t){var n;const o={uri:e,options:t,context:{}};this._pluginMediator.emitSync(c.t.TRANSPORT_BEFORE_PROCESS_REQUEST,o);const i=this._sendRequest.bind(this,o.uri,o.options,o.context);if(!this._endpoints&&W.test(o.uri))return Y.info("Request queued until endpoints resolved",o.uri),new Promise(((e,t)=>{this.once(s.j.ENDPOINTS_RESOLVED,(()=>{Y.info("Sending endpoints-queued request",o.uri),i().then(e,t)}))}));return!this._connectionObserver.isOnline()&&!(null===(n=o.options)||void 0===n?void 0:n.allowOffline)?(Y.info("Request queued until online",o.uri),new Promise(((e,t)=>{this.once(s.j.CONNECTION_ONLINE,(()=>{Y.info("Sending offline-queued request",o.uri),i().then(e,t)}))}))):i()}addPlugin(e,t){const n=e(this,t),o=n.name;if(this._plugins[o])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[o]=n,o}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 te{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(),o=e.substring(t+2);this._headers[n]=o}}}}get(e){return this._headers[e.toLowerCase()]||null}has(e){return this._headers.hasOwnProperty(e.toLowerCase())}}const ne=y.P.forTag("transport.http.xhr"),oe=function(){},ie={json:!0,text:!0,document:!0};function re(){this.onabort=oe,this.onerror=oe,this.onload=oe,this.onloadend=oe}function ae(e,t,n){var o,i;if(null===(o=e.options.signal)||void 0===o?void 0:o.aborted)return;const r=Date.now(),a=this.status,s=new T(this.responseURL||e.url,a);s.body=null;const l=e.options;if(l.timing&&(s.timing={completed:r-t}),(null===(i=l.connectionObserver)||void 0===i?void 0:i.isOnline)&&(s.offline=!l.connectionObserver.isOnline()),(l.parseResponseHeaders||a>299)&&(s.headers=new te(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){ne.warn("Could not parse response as JSON:",e),s.body=null}else"text"!==e&&""!==e||(s.body=this.responseText)}n(s)}function se(e,t,n){4===this.readyState?t(new T(this.responseURL||e,this.status)):n(new S(a.J.HTTP_REQUEST_FAILED,"Request cannot be completed.",this.status))}function le(e){const t=e.options.signal;return new Promise(((n,o)=>{if(null==t?void 0:t.aborted)return void o(new E);const i=new XMLHttpRequest;let r=e.url;if(!r)return void o(new TypeError("Request URL cannot be blank."));let a=null;const s=e.method||"GET",l=e.payload||"";s in _&&l?a=l:l&&(r+=`?${l}`),i.open(s,r,!0),i.onerror=se.bind(i,r,n,o),i.onabort=re,i.onloadend=re,i.onprogress=oe;const c=e.options;"include"===c.credentials&&(i.withCredentials=!0);const u=c.responseType;if(u)if(c.forcePolyfill){if(!(u in ie))return void o(new TypeError(`Cannot polyfill responseType "${u}"`))}else{if(!("responseType"in i)&&!(u in ie))return void o(new TypeError("Cannot set responseType: not supported in browser."));try{i.responseType=u}catch(e){return void o(new TypeError(`Unknown responseType "${u}".`))}if(i&&u!==i.responseType&&!(u in ie))return void o(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 o(e)}t&&t.addEventListener("abort",(function e(){t.removeEventListener("abort",e),i.abort(),o(new E)})),i.onload=ae.bind(i,e,Date.now(),n);try{i.send(a)}catch(e){return void o(e)}}))}function ce(e){return le(e)}var ue=n(61207);function de(e){const t=Object.assign({},e);return t.XHR||(t.XHR=i),t.Fetch=o,ee.create(t)}function pe(e){const t=de(e);return t.addPlugin(v.dv,{WebSocket}),t}},67349:(e,t,n)=>{"use strict";n.d(t,{Mb:()=>l});var o=n(77321),i=n(34934);const r=o.P.forTag("transport.client_token");function a(e,t){const n=e.getStatusFamily();return n===t.SERVER_ERROR||n===t.CONNECTION_ERROR}class s{constructor(e){this._inFlightPromise=null,this.name="client-token",this._clientInfo=e.clientInfo,this._onBeforeSendRequest=this._onBeforeSendRequest.bind(this),this._onAuthenticate=this._onAuthenticate.bind(this)}_fetchClientToken(e){if(null!==this._inFlightPromise)return this._inFlightPromise;const{clientVersion:t,clientID:n,deviceBrand:o,deviceModel:i,os:s,osVersion:l,containerVersion:c,deviceID:u,deviceType:d,platformIdentifier:p}=this._clientInfo,f={client_data:{client_version:t,client_id:n,js_sdk_data:{device_brand:o,device_model:i,os:s,os_version:l,container_version:c,device_id:u,device_type:d,platform_identifier:p}}};return this._inFlightPromise=e.request("https://clienttoken.spotify.com/v1/clienttoken",{method:"POST",responseType:"json",payload:JSON.stringify(f),headers:{"content-type":"application/json",accept:"application/json"},retry:{maxRetries:2,condition:a},authorize:!1,metadata:{skipClientToken:!0}}).then((e=>{var t;const n=(new Date).getTime()/1e3,o=null===(t=e.body)||void 0===t?void 0:t.granted_token;o&&(this._clientToken=o.token,this._refresh=n+o.refresh_after_seconds,this._domains=o.domains.map((e=>e.domain))),this._inFlightPromise=null})).catch((e=>{r.warn(`could not fetch client token for ${JSON.stringify(this._clientInfo)}`),r.warn(e),this._inFlightPromise=null})),this._inFlightPromise}_onAuthenticate(e){this._transport&&e.data.awaitPromise(this._fetchClientToken(this._transport))}_onBeforeSendRequest(e){var t,n;const o=e.data.request;if(null===(n=null===(t=o.options)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.skipClientToken)return;const i=(new Date).getTime()/1e3;(!this._refresh||this._refresh{return n=e,(t=r).length>=n.length&&t.lastIndexOf(n)===t.length-n.length;var t,n}))&&o.headers.set("client-token",this._clientToken)}getClientToken(){return this._clientToken}getTokenRefresh(){return this._refresh}getTokenDomains(){return this._domains}attach(e,t){t.on(i.t.TRANSPORT_AUTHENTICATE,this._onAuthenticate),t.on(i.t.TRANSPORT_BEFORE_SEND_REQUEST,this._onBeforeSendRequest),this._transport=e}detach(e,t){t.removeListener(i.t.TRANSPORT_AUTHENTICATE,this._onAuthenticate),t.removeListener(i.t.TRANSPORT_BEFORE_SEND_REQUEST,this._onBeforeSendRequest),this._clientToken=void 0,this._refresh=void 0,this._transport=void 0,this._domains=void 0}}function l(e,t){return new s(t)}},30500:(e,t,n)=>{"use strict";var o;n.d(t,{hI:()=>m,dv:()=>v}),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"}(o||(o={}));var i,r=n(34934);class a extends Error{constructor(e=o.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(53016),l=n(60220),c=n(6967),u=n(55872).lW;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 o;return o=e.headers&&e.headers["Spotify-Connection-Id"]?e.headers["Spotify-Connection-Id"]:decodeURIComponent(n),this._connectionId=o,this._connectionURI=e.uri,this.emit(i.CONNECTION_ID,{id:o,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 o={type:"reply",key:e,payload:t};n.send(JSON.stringify(o))}_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 m="dealer";class g{constructor(e){this.name=m,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(r.t.PLUGIN_CONNECTION_INFO,Object.assign({plugin:this.name},e.data))}_onDealerDisconnected(e){if(!this._mediator)return;const t=e.data;this._mediator.emit(r.t.PLUGIN_DISCONNECTED,{plugin:this.name,code:t.wsCode,reason:t.reason})}_onDealerMessage(e){this._mediator&&this._mediator.emit(r.t.PLUGIN_MESSAGE,Object.assign({plugin:this.name},e.data))}_onDealerRequest(e){this._mediator&&this._mediator.emit(r.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(o.INVALID_ENDPOINT,"Dealer endpoint needs to be wss://"))):n(Promise.reject(new a(o.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(r.t.PLUGIN_ERROR,{plugin:this.name,error:e.data.error})}attach(e,t){this._mediator=t,t.addListeners({[r.t.TRANSPORT_CONNECT]:this._onTransportConnect,[r.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[r.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({[r.t.TRANSPORT_CONNECT]:this._onTransportConnect,[r.t.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[r.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 v(e,t){return new g(t)}},33024:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});const o="https://spclient.wg.spotify.com/",i="https://api.spotify.com/",r="wss://dealer.spotify.com:443/";function a(e){return void 0===e||!!e}function s(e){const t={};return a(e.dealer)&&(t.dealer=r),a(e.webgate)&&(t.webgate=o),a(e.webapi)&&(t.webapi=i),function(){return Promise.resolve(t)}}},61207:(e,t,n)=>{"use strict";n.d(t,{Q:()=>u});var o=n(72226);class i extends Error{constructor(e,t,n=-1){super(t),this.name="XResolveError",this.message=t,this.code=e,this.status=n}}const r="https://apresolve.spotify.com/",a={DEALER:"dealer",WEBGATE:"spclient"},s="dealer.spotify.com",l="https://api.spotify.com/",c={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function u(e={}){const t=e.dealer||a.DEALER,n=e.webgate||a.WEBGATE,u=`${r}?type=${t}&type=${n}`;return function(e){return e.request(u,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(e,t){return e.getStatusFamily()!==t.SUCCESS}},metadata:{noRequestTransform:!0}}).then((e=>{var r,a,u,d,p;const f=e.body,h={dealer:null!==(a=null===(r=null==f?void 0:f[t])||void 0===r?void 0:r[0])&&void 0!==a?a:s,webgate:null!==(p=null!==(d=null===(u=null==f?void 0:f[n])||void 0===u?void 0:u[0])&&void 0!==d?d:c[n])&&void 0!==p?p:c.spclient,webapi:l};if(!h.dealer||!h.webgate)throw new i(o.J.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",e.status);return h})).then((e=>(e.dealer=`wss://${e.dealer.replace(/:443$/,"")}`,e.webgate=`https://${e.webgate.replace(/:443$/,"")}`,e)))}}},28336:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const o={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))}))}),o),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 o=e.element;return null===(t=this._observableEntities)||void 0===t||t.set(o,e),null===(n=this.observer)||void 0===n||n.observe(o),()=>{this.removeFromObservableEntities(o)}}}},83477:(e,t,n)=>{"use strict";n.d(t,{R:()=>w});var o=n(2584),i=n(87699);const r="",a="UBI|";function s(e){return e.reduce(((e,t)=>e.concat(t)),[])}function l(e){var t;const n={element_path_names:[],element_path_pos:[],element_path_ids:[],element_path_uris:[],element_path_reasons:[]};for(const o of e)n.element_path_names.push(o.name),n.element_path_pos.push((null===(t=o.position)||void 0===t?void 0:t.toString())||r),n.element_path_ids.push(o.identifier||r),n.element_path_uris.push(o.uri||r),n.element_path_reasons.push(o.reason||r);return n}function c(e){return e?s(e.locations.map((e=>e.pathNodes))):[]}function u(e){return e?s(e.locations.map((e=>e.specVersion))):[]}function d(e){return e?s(e.locations.map((e=>e.specMode))):[]}const p={createGabitoEvent:function(e,t,n,a){const s=l(e.location.pathNodes),p=l(c(e.parentAbsoluteLocation)),f=u(e.parentAbsoluteLocation),h=d(e.parentAbsoluteLocation),m={annotator_configuration_version:r,annotator_version:r,app:e.app,element_path_ids:s.element_path_ids,element_path_names:s.element_path_names,element_path_pos:s.element_path_pos,element_path_reasons:s.element_path_reasons,element_path_uris:s.element_path_uris,generator_version:e.generatorVersion,impression_id:t,parent_modes:h,parent_path_ids:p.element_path_ids,parent_path_names:p.element_path_names,parent_path_pos:p.element_path_pos,parent_path_reasons:p.element_path_reasons,parent_path_uris:p.element_path_uris,parent_specification_versions:f,specification_version:e.specificationVersion,specification_mode:e.specificationMode,page_instance_id:a.pageInstanceId,playback_id:a.playbackId};if(n){const e=Object.assign(Object.assign({},m),{play_context_uri:a.playContextUri,page_uri:a.pageUri});return(0,o.S)(e)}return(0,i.z)(m)}};var f=n(77393),h=n(69274);const m={createGabitoEvent:function(e,t,n,o){const i=l(e.location.pathNodes),a=l(c(e.parentAbsoluteLocation)),s=u(e.parentAbsoluteLocation),p=d(e.parentAbsoluteLocation),m={action_parameter_names:e.actionParameterNames,action_parameter_values:e.actionParameterValues,action_name:e.actionName,action_version:e.actionVersion,annotator_configuration_version:r,annotator_version:r,app:e.app,element_path_ids:i.element_path_ids,element_path_names:i.element_path_names,element_path_pos:i.element_path_pos,element_path_reasons:i.element_path_reasons,element_path_uris:i.element_path_uris,generator_version:e.generatorVersion,interaction_id:t,interaction_type:e.interactionType,parent_modes:p,parent_path_ids:a.element_path_ids,parent_path_names:a.element_path_names,parent_path_pos:a.element_path_pos,parent_path_reasons:a.element_path_reasons,parent_path_uris:a.element_path_uris,parent_specification_versions:s,specification_version:e.specificationVersion,specification_mode:e.specificationMode,page_instance_id:o.pageInstanceId,playback_id:o.playbackId};if(n){const e=Object.assign(Object.assign({},m),{play_context_uri:o.playContextUri,page_uri:o.pageUri});return(0,f.E)(e)}return(0,h.Y)(m)}};var g=n(92674);const v="CURRENT_PAGE_INSTANCE_ID";class y{constructor(e){this.storageManager=e.storageManager}getPageInstanceId(){return this.storageManager.getItem(v)}setPageInstanceId(e){this.storageManager.setItem(v,e)}}var _,b,S=n(4842),E=n(47792);!function(e){e.NAVIGATION_IDLE="navigation_idle",e.NAVIGATION_STARTED="navigation_started",e.NAVIGATION_COMPLETED="navigation_completed"}(_||(_={})),function(e){e.CURRENT_PAGE_ID="CURRENT_PAGE_ID",e.CURRENT_PAGE_INSTANCE_ID="CURRENT_PAGE_INSTANCE_ID",e.CURRENT_ENTITY_URI="CURRENT_ENTITY_URI",e.CURRENT_NAV_ROOT="CURRENT_NAV_ROOT",e.PENDING_NAV_ROOT="PENDING_NAV_ROOT",e.PENDING_INTERACTION_ID="PENDING_INTERACTION_ID",e.PENDING_NAV_REASON="PENDING_NAV_REASON",e.NAVIGATION_STATUS="NAV_STATUS"}(b||(b={}));class A{constructor(e){this.eventSender=e.eventSender,this.pageInstanceIdProvider=e.pageInstanceIdProvider,this.pageUriProvider=e.pageUriProvider,this.disableAutoBackgroundMonitoring=e.disableAutoBackgroundMonitoring,this.storageManager=e.storageManager,this.handleBackgroundStates=this.handleBackgroundStates.bind(this),this.setNavigationStatus(_.NAVIGATION_IDLE)}getCurrentPageId(){return this.storageManager.getItem(b.CURRENT_PAGE_ID)}setCurrentPageId(e){this.storageManager.setItem(b.CURRENT_PAGE_ID,e)}getCurrentPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}setCurrentPageInstanceId(e){this.pageInstanceIdProvider.setPageInstanceId(e)}getCurrentEntityUri(){return this.pageUriProvider.getPageUri()}setCurrentEntityUri(e){this.pageUriProvider.setPageUri(e)}getCurrentNavigationalRoot(){return this.storageManager.getItem(b.CURRENT_NAV_ROOT)}setCurrentNavigationalRoot(e){this.storageManager.setItem(b.CURRENT_NAV_ROOT,e)}getNavigationStatus(){return this.storageManager.getItem(b.NAVIGATION_STATUS)}setNavigationStatus(e){this.storageManager.setItem(b.NAVIGATION_STATUS,e)}getPendingNavigationalRoot(){return this.storageManager.getItem(b.PENDING_NAV_ROOT)}setPendingNavigationalRoot(e){this.storageManager.setItem(b.PENDING_NAV_ROOT,e)}getPendingInteractionId(){return this.storageManager.getItem(b.PENDING_INTERACTION_ID)}setPendingInteractionId(e){this.storageManager.setItem(b.PENDING_INTERACTION_ID,e)}getPendingNavigationReason(){return this.storageManager.getItem(b.PENDING_NAV_REASON)}setPendingNavigationReason(e){this.storageManager.setItem(b.PENDING_NAV_REASON,e)}resetNavStartInfo(){this.setPendingInteractionId(null),this.setPendingNavigationReason(null),this.setPendingNavigationalRoot(null)}populateNavigationReason(){const e=this.getPendingInteractionId();if(e){const t=`user_interaction(${e})`;return this.setPendingInteractionId(null),t}return this.getPendingNavigationReason()}generatePageInstanceId(){return(0,g.v4)()}setCurrent(e,t,n,o){this.setCurrentPageId(e),this.setCurrentPageInstanceId(t),this.setCurrentEntityUri(n),this.setCurrentNavigationalRoot(o)}handleBackgroundStates(){document.hidden?this.logClientLostFocus():this.logClientGainedFocus()}startNavigation(e){const{navigationalRoot:t}=e;if((0,E.Oq)(e)){const{interactionId:t}=e;this.setPendingInteractionId(t)}if((0,E.AG)(e)){const{navigationReason:t}=e;this.setPendingNavigationReason(t)}this.setPendingNavigationalRoot(t),this.setNavigationStatus(_.NAVIGATION_STARTED)}completeNavigation(e){const{pageId:t,entityUri:n}=e;if(this.getCurrentEntityUri()!==n&&this.getNavigationStatus()===_.NAVIGATION_STARTED){const e=this.generatePageInstanceId(),o={page_instance_id:e,page_id:t,entity_uri:n,navigational_root:this.getPendingNavigationalRoot(),from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:this.getCurrentPageId(),from_entity_uri:this.getCurrentEntityUri(),from_navigational_root:this.getCurrentNavigationalRoot(),navigation_reason:this.populateNavigationReason()},i=(0,S.U)(o);this.eventSender.send(i),this.setCurrent(t,e,n,this.getPendingNavigationalRoot())}else this.resetNavStartInfo();this.setNavigationStatus(_.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.getCurrentPageInstanceId(),from_page_id:this.getCurrentPageId(),from_entity_uri:this.getCurrentEntityUri(),from_navigational_root:this.getCurrentNavigationalRoot(),navigation_reason:E.hw.CLIENT_LOST_FOCUS},n=(0,S.U)(t);this.eventSender.send(n),this.setCurrent(this.getCurrentPageId(),e,this.getCurrentEntityUri(),this.getCurrentNavigationalRoot())}logClientGainedFocus(){const e=this.generatePageInstanceId(),t={page_instance_id:e,page_id:this.getCurrentPageId(),entity_uri:this.getCurrentEntityUri(),navigational_root:this.getCurrentNavigationalRoot(),from_page_instance_id:this.getCurrentPageInstanceId(),from_page_id:null,from_entity_uri:null,from_navigational_root:null,navigation_reason:E.hw.CLIENT_GAINED_FOCUS},n=(0,S.U)(t);this.eventSender.send(n),this.setCurrent(this.getCurrentPageId(),e,this.getCurrentEntityUri(),this.getCurrentNavigationalRoot())}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 T{constructor(){this.items=new Map([])}setItem(e,t){try{return this.items.set(e,t),!0}catch(e){return!1}}getItem(e){const t=this.items.get(e);return null!=t?t:null}removeItem(e){this.items.delete(e)}clear(){this.items.clear()}}class P{setItem(e,t){try{return window.sessionStorage.setItem(e,t),!0}catch(e){return!1}}getItem(e){return window.sessionStorage.getItem(e)}removeItem(e){window.sessionStorage.removeItem(e)}clear(){window.sessionStorage.clear()}}function O(e){let t=e.length,n=t;for(;n--;){const o=e.charCodeAt(n);o>127&&o<=2047?t++:o>2047&&o<=65535&&(t+=2),o>=56320&&o<=57343&&n--}return t}const C={requiresPersistingState:!1};var k;!function(e){e.IN_MEMORY="in-memory",e.SESSION_STORAGE="session-storage",e.CUSTOM_STORAGE="custom-storage"}(k||(k={}));class R{constructor(e=C){this.storageAdapter=new T,e.requiresPersistingState&&(e.storageAdapter?this.storageAdapter=e.storageAdapter:function(){const e={"UBI|CURRENT_PAGE_ID":"playlist","UBI|CURRENT_PAGE_INSTANCE_ID":"bc33087f-b95a-4b15-bd48-0277666f303c","UBI|CURRENT_ENTITY_URI":"spotify:playlist:37i9dQZF1DX5trt9i14X7j","UBI|CURRENT_NAV_ROOT":"playlists-sidebar","UBI|PENDING_NAV_ROOT":"playlists-sidebar","UBI|PENDING_INTERACTION_ID":"8dbc8e4d-b4f7-4870-ab9e-a3238307ea6d","UBI|PENDING_NAV_REASON":"user_interaction(8dbc8e4d-b4f7-4870-ab9e-a3238307ea6d)","UBI|NAVIGATION_STATUS":_.NAVIGATION_COMPLETED,"UBI|PROVIDER_CURRENT_PAGE_INSTANCE_ID":"bc33087f-b95a-4b15-bd48-0277666f303c"},t=4*Object.keys(e).map((t=>O(t)+O(e[t]))).reduce(((e,t)=>e+t));try{const e="__UBI_STORAGE_TEST__",n="x".repeat(t);return window.sessionStorage.setItem(e,n),window.sessionStorage.removeItem(e),!0}catch(e){return!1}}()&&(this.storageAdapter=new P))}getItem(e){return this.storageAdapter.getItem(`${a}${e}`)}setItem(e,t){const n=t||"";this.storageAdapter.setItem(`${a}${e}`,n)}removeItem(e){this.storageAdapter.removeItem(`${a}${e}`)}clear(){this.storageAdapter.clear()}getStorageType(){return this.storageAdapter instanceof T?k.IN_MEMORY:this.storageAdapter instanceof P?k.SESSION_STORAGE:k.CUSTOM_STORAGE}}const L="CURRENT_PAGE_URI";class I{constructor(e){this.storageManager=e.storageManager}getPageUri(){return this.storageManager.getItem(L)}setPageUri(e){this.storageManager.setItem(L,e)}}class N{constructor(e){var t,n,o;this.eventSender=e.eventSender,this.disableAutoBackgroundMonitoring=null===(t=e.disableAutoBackgroundMonitoring)||void 0===t||t,this.storageManager=new R({storageAdapter:e.storageAdapter,requiresPersistingState:e.requiresPersistingState}),this.pageInstanceIdProvider=new y({storageManager:this.storageManager}),this.pageUriProvider=new I({storageManager:this.storageManager}),this.playContextUriProvider=null!==(n=e.playContextUriProvider)&&void 0!==n?n:null,this.playbackIdProvider=null!==(o=e.playbackIdProvider)&&void 0!==o?o:null,this.pageViewLogger=new A({eventSender:e.eventSender,pageInstanceIdProvider:this.pageInstanceIdProvider,pageUriProvider:this.pageUriProvider,disableAutoBackgroundMonitoring:this.disableAutoBackgroundMonitoring,storageManager:this.storageManager})}registerEventListeners(){this.pageViewLogger.addEventListeners()}unregisterEventListeners(){this.pageViewLogger.removeEventListeners()}logInteraction(e){var t,n,o,i;const r=(0,g.v4)(),a=this.pageInstanceIdProvider.getPageInstanceId(),s=this.pageUriProvider.getPageUri(),l=m.createGabitoEvent(e,r,!0,{pageInstanceId:a,pageUri:s,playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(l),r}logNonAuthInteraction(e){var t,n,o,i;const r=(0,g.v4)(),a=m.createGabitoEvent(e,r,!1,{pageInstanceId:this.pageInstanceIdProvider.getPageInstanceId(),pageUri:this.pageUriProvider.getPageUri(),playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(a),r}logImpression(e){var t,n,o,i;const r=(0,g.v4)(),a=p.createGabitoEvent(e,r,!0,{pageInstanceId:this.pageInstanceIdProvider.getPageInstanceId(),pageUri:this.pageUriProvider.getPageUri(),playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(a),r}logNonAuthImpression(e){var t,n,o,i;const r=(0,g.v4)(),a=p.createGabitoEvent(e,r,!1,{pageInstanceId:this.pageInstanceIdProvider.getPageInstanceId(),pageUri:this.pageUriProvider.getPageUri(),playbackId:null!==(n=null===(t=this.playbackIdProvider)||void 0===t?void 0:t.getPlaybackId())&&void 0!==n?n:null,playContextUri:null!==(i=null===(o=this.playContextUriProvider)||void 0===o?void 0:o.getPlayContextUri())&&void 0!==i?i:null});return this.eventSender.send(a),r}logNavigationStart(e){this.pageViewLogger.startNavigation(e)}logNavigationEnd(e){this.pageViewLogger.completeNavigation(e)}logNavigation(e,t){this.logNavigationStart(e),this.logNavigationEnd(t)}logClientLostFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientLostFocus()}logClientGainedFocus(){this.disableAutoBackgroundMonitoring&&this.pageViewLogger.logClientGainedFocus()}getPageInstanceId(){return this.pageInstanceIdProvider.getPageInstanceId()}}const w=function(){let e;return{getUBILogger:function(t){return function(t){return e&&e.unregisterEventListeners(),e=new N(t),e.registerEventListeners(),e}(t)}}}()},80546:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n{"use strict";var o,i;function r(e){return"interactionId"in e}function a(e){return"navigationReason"in e}n.d(t,{hw:()=>o,Wg:()=>i,Oq:()=>r,AG:()=>a}),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"}(o||(o={})),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.AUDIOBOOK_DIRECTSALES_SUCCESS="audiobook/directsales/success",e.AUDIOBOOK_DIRECTSALES_INAPPWEBCHECKOUTOVERLAY="audiobook/directsales/inappwebcheckoutoverlay",e.AUDIOBOOK_CONSUMPTION="audiobook/consumption",e.AUDIOBOOK_CONSUMPTION_TOPUPS="audiobook/consumption/topups",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.ARTIST_STORE="artist/store",e.ARTIST_FAN_COMMUNITY="artist/fan-community",e.ARTIST_FAN_COMMUNITY_POST="artist/fan-community/post",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_EPISODES="assisted-curation/search/episodes",e.ASSISTED_CURATION_SEARCH_SHOWS="assisted-curation/search/shows",e.ASSISTED_CURATION_SEARCH_ALBUM_ENTITY="assisted-curation/search/album-entity",e.ASSISTED_CURATION_SEARCH_ARTIST_ENTITY="assisted-curation/search/artist-entity",e.ASSISTED_CURATION_SEARCH_SHOW_ENTITY="assisted-curation/search/show-entity",e.ADS="ads",e.ADSDISPLAY_CTAWIDGETNPV_SEEALL="adsdisplay/ctawidgetnpv/seeall",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.BLEND_DATA_STORY="blend/data-story",e.BLEND_PARTY="blend/party",e.JAM_STORIES="jam/stories",e.BOOTCAMP_CHORDS="bootcamp/chords",e.BOOTCAMP_EASTEREGGS="bootcamp/eastereggs",e.BOOTCAMP_MASHUP="bootcamp/mashup",e.BOOTCAMP_TOPTRACKS="bootcamp/toptracks",e.BOOTCAMP_TFB_TOPTRACKS="bootcamp/tfb/toptracks",e.BOOTCAMP_TOP50PLAYLIST="bootcamp/top50playlist",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.CACHED_FILES="cached-files",e.CACHED_FILES_SEARCH="cached-files/search",e.CALLING_CODE_PICKER="calling-code-picker",e.CALIFORNIA="california",e.CALIFORNIA_NOARGS="california/noargs",e.CANVAS_NOWPLAYING="canvas/nowplaying",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.CHALLENGE_DUMMY="challenge/dummy",e.CHALLENGE_TOTP="challenge/totp",e.CHALLENGE_EMAIL_VERIFICATION="challenge/email-verification",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.COLLECTION_YOUREPISODES_SETTINGS_AUTODOWNLOADLIMIT="collection/yourepisodes/settings/autodownloadlimit",e.COLLECTION_SAVEDEPISODES="collection/savedepisodes",e.COMMENTS="comments",e.COMMENTS_SECTION="comments/section",e.COMMENTS_SETTINGS="comments/settings",e.COMMUNITY_LISTENING_ACTIVITY="community/listening-activity",e.CONTENT_FEED="content-feed",e.CULTURALMOMENTSHUB="culturalmomentshub",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.YOURLIBRARY_TAG="yourlibrary/tag",e.YOURLIBRARYTAGS_YOURTAGSPAGE="yourlibrarytags/yourtagspage",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_EXPRESSIONVIDEO="contextMenu/expressionvideo",e.CONTEXTMENU_SHOWSCANNABLECODE="contextmenu/showscannablecode",e.CONTEXTMENU_VIEWARTISTS="contextmenu/viewartists",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_PAYWALL="dialog/paywall",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.FANDOM_TOPARTISTS="fandom/topartists",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.FRIENDRECOMMENDATIONS="friendrecommendations",e.KID_ACCOUNT_CREATION_LEGAL_CONSENT="kid-account-creation/legal-consent",e.KID_ACCOUNT_CREATION_PIN="kid-account-creation/pin",e.KID_ACCOUNT_CREATION_NAME="kid-account-creation/name",e.KID_ACCOUNT_CREATION_BIRTHDAY="kid-account-creation/birthday",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.IMAGERECS="imagerecs",e.LANGUAGEPICKER="languagepicker",e.LANGUAGEPICKER_NOSKIPDIALOG="languagepicker/noskipdialog",e.LINGO_HOME="lingo/home",e.LISTENINGHISTORY="listeninghistory",e.LISTENINGHISTORY_PLAYSFROMCONTEXT="listeninghistory/playsfromcontext",e.LISTENINGSTATS="listeningstats",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.MERCH_DETAILS="merch-details",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.NOWPLAYING_UPNEXT="nowplaying/upnext",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.OURDJ="ourdj",e.PAYMENTFAILURE_RESUBSCRIPTIONMODAL="paymentfailure/resubscriptionmodal",e.PERSONALISED_SET="personalised-set",e.PICTUREDETAIL="picturedetail",e.PLAN_MEMBER_INVITATION="plan-member-invitation",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_PERMISSIONS_INVITESTORY="playlist/permissions/invitestory",e.PLAYLIST_STORY="playlist/story",e.PLAYLIST_WRAPPEDLIVE="playlist/wrappedlive",e.PLAYLIST_WEBVIEW="playlist/webview",e.PLAYLIST_FILTER="playlist/filter",e.PLAYLISTPRO="playlistpro",e.PLAYLISTPRO_PREVIEW="playlistpro/preview",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_EPISODE_COMMENTS="podcast/episode/comments",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_COMMUNITY="podcast/show/community",e.PODCAST_SHOW_GATEDACCESSEDUCATION="podcast/show/gatedaccesseducation",e.PODCAST_SHOW_INTERACTIVEAUDIOBOOK="podcast/show/interactiveaudiobook",e.PODCAST_SHOW_RECOMMENDATIONS="podcast/show/recommendations",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_SPEED="podcast/speed",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.RATINGS_AND_REVIEWS_RATINGS_AUDIOBOOK="ratings-and-reviews/ratings/audiobook",e.PREMIUM="premium",e.PREMIUM_ACCOUNT_MANAGEMENT="premium-account-management",e.PREMIUM_ACCOUNT_MANAGEMENT_ALL_PLANS="premium-account-management/all-plans",e.PREMIUM_ACCOUNT_MANAGEMENT_BILLING="premium-account-management/billing",e.PREMIUM_ACCOUNT_MANAGEMENT_PLAN_DETAILS="premium-account-management/plan-details",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_MINI_REWARDS="premium-mini/rewards",e.PREMIUM_MESSAGING="premium-messaging",e.PREMIUM_SIGNUP="premium-signup",e.PRERELEASE="prerelease",e.PROACTIVE_PLATFORMS_RECOMMENDATIONS_WIDGET="proactive-platforms/recommendations-widget",e.PROACTIVE_PLATFORMS_NPV_WIDGET="proactive-platforms/npv-widget",e.PROFILE="profile",e.PROFILE_ACTIVITY="profile/activity",e.PROFILE_ACTIVITY_REPLAYS="profile/activity/replays",e.PROFILE_ARTISTS="profile/artists",e.PROFILE_BLOCKED_LIST="profile/blocked-list",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_FOLLOW_SUGGESTIONS="profile/follow-suggestions",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.REFRESHEDPROFILE_FOLLOW_SUGGESTIONS="refreshedprofile/follow-suggestions",e.PICKINSIGHTS="pickinsights",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.RECENTLYPLAYED="recentlyplayed",e.REMOTECONFIGURATION_DEBUG="remoteconfiguration/debug",e.REQUESTPERMISSIONS="requestpermissions",e.RESETPASSWORD="resetpassword",e.RESETPASSWORD_EMAILSENT="resetpassword/emailsent",e.RESETPASSWORD_EMAILLANDING="resetpassword/emaillanding",e.RESETPASSWORD_CHANGEPASSWORD="resetpassword/changepassword",e.RESETPASSWORD_SUCCESS="resetpassword/success",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.REINVENTFREE_TIME_CAP_UPSELL="reinventfree-time-cap-upsell",e.REINVENTFREE_SKIP_LIMIT_UPSELL="reinventfree-skip-limit-upsell",e.REINVENTFREE_UPNEXT="reinventfree-upnext",e.SKIP_LIMIT_PIVOT="skip-limit-pivot",e.SKIP_LIMIT_PIVOT_TRACKS="skip-limit-pivot-tracks",e.SPONSORED_RECOMMENDATION="sponsored-recommendation",e.SPOTIT="spotit",e.SPOTIT_STRONGRESULT="spotit/strongresult",e.SPOTIT_WEAKRESULT="spotit/weakresult",e.SPOTIT_ERROR="spotit/error",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.SUPPORT_SITE_CONTACT="support-site/contact",e.SUPPORT_SITE_OLD_HOME="support-site/old/home",e.SUPPORT_SITE_OLD_ARTICLE="support-site/old/article",e.SUPPORT_SITE_OLD_CHILDCATEGORY="support-site/old/childcategory",e.SUPPORT_SITE_OLD_CONTACT="support-site/old/contact",e.SHOWS_CATEGORY="shows/category",e.SHOWS_MIXED="shows/mixed",e.SHOWS_NETWORK="shows/network",e.SHOWS_VIDEO="shows/video",e.SIDEDRAWER="sidedrawer",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.WATCHFEED="watchfeed",e.YOURSPOTIFY="yourspotify",e.YOURSPOTIFY_PROFILE="yourspotify/profile",e.YOURSPOTIFY_FORYOU="yourspotify/foryou",e.DISCOVERYFEED="discoveryfeed",e.VTEC="vtec",e.EXPRESSIVE_PLAYLISTS="expressive-playlists",e.EXPRESSIVE_PLAYLISTS_EDIT="expressive-playlists-edit",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.LIVE_LEGALDISCLOSURE="live/legaldisclosure",e.LIVE_AUDIO_ENTITY="live-audio/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_WEB_VIEW="mrkt/artist/audience-web-view",e.MRKT_ARTIST_AUDIENCE_CITIES="mrkt/artist/audience/cities",e.MRKT_ARTIST_AUDIENCE_COUNTRIES="mrkt/artist/audience/countries",e.MRKT_ARTIST_AUDIENCE_ACTIVE_AUDIENCE="mrkt/artist/audience/active-audience",e.MRKT_ARTIST_AUDIENCE_ACTIVE_AUDIENCE_NO_ARTIST_REDIRECT="mrkt/artist/audience/active-audience/no-artist-redirect",e.MRKT_ARTIST_AUDIENCE_DEMOGRAPHIC="mrkt/artist/audience/demographic",e.MRKT_ARTIST_AUDIENCE_ENGAGEMENT="mrkt/artist/audience/engagement",e.MRKT_ARTIST_AUDIENCE_LOCATION="mrkt/artist/audience/location",e.MRKT_ARTIST_AUDIENCE_RELATED="mrkt/artist/audience/related",e.MRKT_ARTIST_AUDIENCE_RELEASE_ENGAGEMENT="mrkt/artist/audience/release-engagement",e.MRKT_ARTIST_AUDIENCE_SOURCE_OF_STREAMS="mrkt/artist/audience/source-of-streams",e.MRKT_ARTIST_HOME="mrkt/artist/home",e.MRKT_ARTIST_PROFILE_MERCH="mrkt/artist/profile/merch",e.MRKT_ARTIST_PROFILE_MERCH_DETAILS="mrkt/artist/profile/merch/details",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_LOCATION="mrkt/artist/song/location",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_BILLING="mrkt/artist/campaigns/billing",e.MRKT_ARTIST_CAMPAIGNS_BUDGET="mrkt/artist/campaigns/budget",e.MRKT_ARTIST_CAMPAIGNS_DRAFT="mrkt/artist/campaigns/draft",e.MRKT_ARTIST_CAMPAIGNS_REVIEW="mrkt/artist/campaigns/review",e.MRKT_ARTIST_CAMPAIGNS_SETUP="mrkt/artist/campaigns/setup",e.MRKT_ARTIST_CAMPAIGNS_SUCCESS="mrkt/artist/campaigns/success",e.MRKT_ARTIST_CAMPAIGNS_DETAIL="mrkt/artist/campaigns/detail",e.MRKT_ARTIST_CAMPAIGNS_DM="mrkt/artist/campaigns/dm",e.MRKT_ARTIST_CAMPAIGNS_DM_CREATION="mrkt/artist/campaigns/dm/creation",e.MRKT_ARTIST_CAMPAIGNS_DM_REPORT="mrkt/artist/campaigns/dm/report",e.MRKT_ARTIST_CAMPAIGNS_DM_REVIEW="mrkt/artist/campaigns/dm/review",e.MRKT_ARTIST_CAMPAIGNS_NO_ARTIST_REDIRECT="mrkt/artist/campaigns/no-artist-redirect",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_EXPRESSION_VIDEO_WRAPPED_DASHBOARD="mrkt/expression-video/wrapped-dashboard",e.MRKT_EXPRESSION_VIDEO_DASHBOARD="mrkt/expression-video/dashboard",e.MRKT_EXPRESSION_VIDEO_DETAIL="mrkt/expression-video/detail",e.MRKT_EXPRESSION_VIDEO_UPLOAD="mrkt/expression-video/upload",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_ACTIVITY="mrkt/team-management/activity",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.MRKT_VIDEO="mrkt/video",e.MRKT_VIDEO_CREATE="mrkt/video/create",e.MRKT_VIDEO_EDIT="mrkt/video/edit",e.MRKT_VIDEO_WRAPPED="mrkt/video/wrapped",e.MRKT_WRAPPED="mrkt/wrapped",e.MRKT_PRE_RELEASE_CREATE="mrkt/pre-release/create",e.MRKT_PRE_RELEASE_VIDEO_CREATE="mrkt/pre-release/video/create",e.MRKT_PRE_RELEASE_EDIT="mrkt/pre-release/edit",e.S4P_HOME="s4p/home",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.SPOTIFYBUTTON_ACTIVATION_WELCOME="spotifybutton/activation/welcome",e.SPOTIFYBUTTON_ACTIVATION_DEVICESCANNING="spotifybutton/activation/devicescanning",e.SPOTIFYBUTTON_ACTIVATION_SETUP="spotifybutton/activation/setup",e.SPOTIFYBUTTON_ACTIVATION_READY="spotifybutton/activation/ready",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",e.CAMPAIGNS_DATASTORIES="campaigns/datastories",e.PUFFIN_AUTODETECT="puffin/autodetect",e.PUFFIN_MANUAL_SELECT="puffin/manual-select",e.PUFFIN_MANUAL_SELECT_REDUCED="puffin/manual-select-reduced",e.PUFFIN_MANAGEMENT="puffin/management",e.PUFFIN_ONBOARDING="puffin/onboarding",e.PUFFIN_PIGEON_ONBOARDING="puffin/pigeon-onboarding",e.SHARECARD_PLAYLIST="sharecard/playlist",e.GUILTYPLEASURE_LIST="guiltypleasure/list",e.WEB3_NFTSHOWCASEGRID="web3/nftshowcasegrid",e.WEB3_NFTSHOWCASEPREVIEW="web3/nftshowcasepreview",e.WEB3_TOKENENABLED_PLAYLIST="web3/tokenenabled/playlist",e.MANAGE_TEAMS_PAGE="manage/teams-page",e.READALONG="readalong",e.READALONG_FULLSCREEN="readalong/fullscreen",e.ADSTUDIO_DASHBOARD_CAMPAIGNS="adstudio/dashboard/campaigns",e.ADSTUDIO_DASHBOARD_CAMPAIGN_DRAFTS="adstudio/dashboard/campaign-drafts",e.ADSTUDIO_DASHBOARD_AD_SETS="adstudio/dashboard/ad-sets",e.ADSTUDIO_DASHBOARD_AD_SET_DRAFTS="adstudio/dashboard/ad-set-drafts",e.ADSTUDIO_DASHBOARD_ADS="adstudio/dashboard/ads",e.ADSTUDIO_DASHBOARD_AD_DRAFTS="adstudio/dashboard/ad-drafts",e.ADSTUDIO_ASSET_LIBRARY="adstudio/asset-library",e.ADSTUDIO_USER_SETTINGS="adstudio/user-settings",e.ADSTUDIO_ACCOUNT_MANAGEMENT="adstudio/account-management",e.ADSTUDIO_ACCOUNT_DETAILS="adstudio/account-details",e.ADSTUDIO_BILLING_CENTER="adstudio/billing-center",e.ADSTUDIO_ACCOUNT_SETTINGS="adstudio/account-settings",e.ADSTUDIO_AD_SET_REPORT="adstudio/ad-set/report",e.ADSTUDIO_AD_SET_DETAILS="adstudio/ad-set/details",e.ADSTUDIO_AD_SET_ADS="adstudio/ad-set/ads",e.ADSTUDIO_AD_DETAILS="adstudio/ad/details",e.ADSTUDIO_AD_AD_SETS="adstudio/ad/ad-sets",e.YOUR_SOUND="your-sound",e.EPISODECHAPTERS_NPV="episodechapters/npv",e.EPISODECHAPTERS_NPV_FULLSCREEN="episodechapters/npv/fullscreen",e.HACKWEEK2023_SYNC_LIGHTS="hackweek2023/sync-lights",e.HACKWEEK2023_PRERELEASE_EVENT="hackweek2023/prerelease-event"}(i||(i={}))},50346:(e,t,n)=>{"use strict";n.d(t,{JM:()=>o,jy:()=>f,vU:()=>h,WN:()=>m,zJ:()=>v,g8:()=>y,wG:()=>g,g3:()=>_,YD:()=>b,ir:()=>S,KO:()=>oe,HB:()=>ne,QS:()=>te,mg:()=>ce,YF:()=>ue,Ue:()=>de,OB:()=>pe,yF:()=>he,aE:()=>me,zO:()=>fe,hn:()=>ge,L0:()=>ve,dB:()=>ye,nK:()=>be,WP:()=>_e,Kv:()=>Se,oi:()=>Ee,U4:()=>ee,RS:()=>Ae,ie:()=>Te,wj:()=>Pe,Jf:()=>A,ak:()=>T,EC:()=>le,_b:()=>se,FW:()=>P,vo:()=>O,QK:()=>C,ix:()=>k,xt:()=>R,AB:()=>L,tn:()=>N,qC:()=>w});const o=Spicetify.URI.Type={AD:"ad",ALBUM:"album",GENRE:"genre",QUEUE:"queue",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",ARTIST_CONCERTS:"artist-concerts",AUDIO_FILE:"audiofile",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_ARTIST:"collection-artist",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_TRACK_LIST:"collectiontracklist",CONCERT:"concert",CONTEXT_GROUP:"context-group",CULTURAL_MOMENT:"cultural-moment",DAILY_MIX:"dailymix",EMPTY:"empty",EPISODE:"episode",FACEBOOK:"facebook",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",LIBRARY:"library",LIVE:"live",ROOM:"room",EXPRESSION:"expression",LOCAL:"local",LOCAL_TRACK:"local",LOCAL_ALBUM:"local-album",LOCAL_ARTIST:"local-artist",MERCH:"merch",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",PRERELEASE:"prerelease",PROFILE:"profile",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",ROOTLIST:"rootlist",SEARCH:"search",SHOW:"show",SOCIAL_SESSION:"socialsession",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOPLIST:"toplist",TRACK:"track",TRACKSET:"trackset",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",UNKNOWN:"unknown",MEDIA:"media",QUESTION:"question",POLL:"poll"};var i,r=n(96583);!function(e){e[e.URI=0]="URI",e[e.URL=1]="URL"}(i||(i={}));const a="spotify:",s="http://play.spotify.com/",l="https://play.spotify.com/",c="http://open.spotify.com/",u="https://open.spotify.com/",d="/",p={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"};function f(e,t){return ae(o.ALBUM,{id:e,disc:t,hasBase62Id:!0})}function h(e,t){return ae(o.APPLICATION,{id:e,args:Array.isArray(t)?t:[]})}function m(e){return ae(o.ARTIST,{id:e,hasBase62Id:!0})}function g(e,t){return ae(o.COLLECTION,{username:e,category:t})}function v(e,t){return ae(o.COLLECTION_ALBUM,{id:t,username:e,hasBase62Id:!0})}function y(e,t){return ae(o.COLLECTION_ARTIST,{id:t,username:e,hasBase62Id:!0})}function _(e){return ae(o.CONCERT,{id:e,hasBase62Id:!0})}function b(e,t,n){return ae(o.EPISODE,{id:e,context:t?se(t):null,play:n,hasBase62Id:!0})}function S(e,t){return ae(o.FOLDER,{id:t,username:e,hasBase62Id:!0})}function E(e,t,n,i){return ae(o.LOCAL_TRACK,{artist:e,album:t,track:n,duration:i})}function A(e,t){return ae(o.LOCAL_ALBUM,{artist:e,album:t})}function T(e){return ae(o.LOCAL_ARTIST,{artist:e})}function P(e){return ae(o.PLAYLIST_V2,{id:e,hasBase62Id:!0})}function O(e){return ae(o.PRERELEASE,{id:e,hasBase62Id:!0})}function C(e,t){return ae(o.PROFILE,{username:e,args:null!=t?t:[]})}function k(e){return ae(o.SEARCH,{query:e})}function R(e){return ae(o.SHOW,{id:e,hasBase62Id:!0})}function L(e){return ae(o.STATION,{args:null!=e?e:[]})}function I(e,t,n){return ae(o.TOPLIST,{toplist:e,country:t,global:Boolean(n)})}function N(e,t,n,i){return ae(o.TRACK,{id:e,anchor:t,context:n?se(n):null,play:i,hasBase62Id:!0})}function w(e,t){return ae(o.USER_TOPLIST,{username:e,toplist:t})}function D(e,t){if(!e)return"";let n=encodeURIComponent(e);return t===i.URI&&(n=n.replace(/%20/g,"+")),n=n.replace(/[!'()]/g,escape),n=n.replace(/\*/g,"%2A"),n}function M(e,t,n=[]){for(let o=0,i=e.length;o1&&(t+="&");const o=e[n];void 0!==o&&(t+=`${n}=${encodeURIComponent(o)}`)}return t}const U=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;const B=()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]},[V,G]=B();V(o.PLAYLIST,((e,t,{username:n})=>function(e,t){return ae(o.PLAYLIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getBase62IdComponent()))),V(o.FOLDER,((e,t,{username:n})=>S(n,e.getIdComponent()))),V(o.COLLECTION_TRACK_LIST,((e,t,{username:n})=>function(e,t){return ae(o.COLLECTION_TRACK_LIST,{id:t,username:e,hasBase62Id:!0})}(n,e.getIdComponent()))),V(o.COLLECTION,((e,t,{username:n})=>{const i=e.getNextComponent();if(i===o.ALBUM){const t=e.getIdComponent();return"missing"===e.getNextComponent()?function(e,t){return ae(o.COLLECTION_MISSING_ALBUM,{id:t,username:e,hasBase62Id:!0})}(n,t):v(n,t)}return i===o.ARTIST?y(n,e.getIdComponent()):g(n,i)})),V(o.STARRED,((e,t,{username:n})=>function(e){return ae(o.STARRED,{username:e})}(n))),V(o.FOLLOWERS,((e,t,{username:n})=>function(e){return ae(o.FOLLOWERS,{username:e})}(n))),V(o.FOLLOWING,((e,t,{username:n})=>function(e){return ae(o.FOLLOWING,{username:e})}(n))),V(p.TOP,((e,t,{username:n})=>w(n,e.getNextRequiredComponent()))),V(o.INBOX,((e,t,{username:n})=>function(e){return ae(o.INBOX,{username:e})}(n))),V(o.ROOTLIST,((e,t,{username:n})=>function(e){return ae(o.ROOTLIST,{username:e})}(n))),V(o.PUBLISHED_ROOTLIST,((e,t,{username:n})=>function(e){return ae(o.PUBLISHED_ROOTLIST,{username:e})}(n))),V(o.TOPLIST,((e,t,{username:n})=>function(e){return ae(o.USER_TOP_TRACKS,{username:e})}(n))),V(o.LIBRARY,((e,t,{username:n})=>function(e,t){return ae(o.LIBRARY,{username:e,category:t})}(n,e.getNextComponent())));const[J,j]=B();function H(e){let t,n,o,r,p=e;const[f,h]=p.split("?");if(f&&h){p=f;const[e,t]=h.split("#");e&&(o=function(e){return e.split("&").reduce(((e,t)=>{const[n,o]=t.split("=");return n&&o&&(e[n]=decodeURIComponent(o)),e}),{})}(e),r=t)}const m=p.split("#");if(m.length>1&&(p=m.shift(),r=m.pop()),0===p.indexOf(a))t=p.slice(a.length).split(":"),n=i.URI;else{const[e]=p.split("?");if(0===(null==e?void 0:e.indexOf(s)))t=e.slice(s.length).split("/");else if(0===(null==e?void 0:e.indexOf(l)))t=e.slice(l.length).split("/");else if(0===(null==e?void 0:e.indexOf(c)))t=e.slice(c.length).split("/");else if(0===(null==e?void 0:e.indexOf(u)))t=e.slice(u.length).split("/");else{if(0!==(null==e?void 0:e.indexOf(d)))throw new TypeError("Invalid Spotify URI!");t=e.slice(d.length).split("/")}n=i.URL}return r&&t.push(r),{format:n,components:t,query:o}}function K(e,t,n,r){let a=0;const s=()=>{const t=e[a++];if(t&&/\s/.test(t))throw new TypeError("Invalid Spotify URI!");return t},l=()=>{const e=s();if(!e)throw new TypeError("Invalid Spotify URI!");return e},c={getAllComponents:()=>e,getQueryParams:()=>n,getNextComponent:s,getNextRequiredComponent:l,getIdComponent:()=>{const e=l();if(e.length>22)throw new TypeError("Invalid Spotify URI!");return e},getBase62IdComponent:()=>{const e=l();if(22!==e.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(e))throw new Error("Invalid ID");return e},getRemainingComponents:()=>e.slice(a),getRemainingString:()=>{const n=t===i.URI?":":"/";return e.slice(a).join(n)}};let u=l(),d=j[u];if(!d){const e=function(e){return U.test(e)}(u);e&&(u=l(),d=j[u])}if(d)return d(c,t,{});if(r)return j[o.UNKNOWN](c,t,{});throw new TypeError("Invalid or unknown Spotify URI!")}J(o.ALBUM,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return f(t,n?parseInt(n,10):void 0)})),J(p.APP,((e,t)=>{const n=e.getNextRequiredComponent();if(D(x(n,t),t)!==n)throw new TypeError("Invalid or unknown Spotify URI!");const o=e.getRemainingComponents();for(let e=0,n=o.length;e{return t=e.getNextRequiredComponent(),ae(o.AD,{id:t});var t})),J(o.ARTIST,(e=>{const t=e.getBase62IdComponent(),n=e.getNextComponent();return n===p.TOP?function(e,t){return ae(o.ARTIST_TOPLIST,{id:e,toplist:t,hasBase62Id:!0})}(t,e.getNextRequiredComponent()):n===p.CONCERTS?function(e){return ae(o.ARTIST_CONCERTS,{id:e,hasBase62Id:!0})}(t):m(t)})),J(o.AUDIO_FILE,(e=>{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),ae(o.AUDIO_FILE,{id:n,extension:t});var t,n})),J(o.DAILY_MIX,(e=>{return t=e.getIdComponent(),ae(o.DAILY_MIX,{id:t,hasBase62Id:!0});var t})),J(o.TEMP_PLAYLIST,(e=>{return t=e.getNextRequiredComponent(),n=e.getRemainingString(),ae(o.TEMP_PLAYLIST,{origin:t,data:n});var t,n})),J(o.PLAYLIST,(e=>P(e.getBase62IdComponent()))),J(o.SEARCH,((e,t)=>k(x(e.getRemainingString(),t)))),J(o.TRACK,(e=>{const t=e.getQueryParams();return N(e.getBase62IdComponent(),e.getNextComponent(),null==t?void 0:t.context,null==t?void 0:t.play)})),J(o.TRACKSET,(e=>{var t;const n=x(e.getNextComponent());let i=e.getNextRequiredComponent();const r=e.getNextComponent();let a=parseInt(null!==(t=e.getNextComponent())&&void 0!==t?t:"",10);("%23"!==r||isNaN(a))&&(a=null);const s=[];if(i){i=x(i).split(",");for(let e=0,t=i.length;e{return t=e.getNextRequiredComponent(),n=e.getNextRequiredComponent(),ae(o.CONTEXT_GROUP,{origin:t,name:n,hasBase62Id:!0});var t,n})),J(p.TOP,(e=>{const t=e.getNextRequiredComponent();return e.getNextComponent()===p.GLOBAL?I(t,void 0,!0):I(t,e.getNextComponent(),!1)})),J(o.LOCAL_TRACK,((e,t)=>{const n=x(e.getNextComponent(),t),o=e.getNextComponent(),i=x(o,t),r=e.getNextComponent(),a=x(r,t),s=e.getNextComponent(),l=s?parseInt(s,10):void 0;return void 0!==r?E(n,i,a,l):void 0!==o?A(n,i):T(n)})),J(o.IMAGE,(e=>{return t=e.getIdComponent(),ae(o.IMAGE,{id:t,hasBase62Id:!0});var t})),J(o.MOSAIC,(e=>{return t=e.getRemainingComponents(),ae(o.MOSAIC,{ids:t});var t})),J(o.RADIO,(e=>{return t=e.getRemainingString(),ae(o.RADIO,{args:null!=t?t:""});var t})),J(o.SPECIAL,((e,t)=>{const n=e.getRemainingComponents();for(let e=0,o=n.length;eL(e.getRemainingComponents()))),J(o.EPISODE,(e=>{const t=e.getQueryParams();return b(e.getBase62IdComponent(),null==t?void 0:t.context,null==t?void 0:t.play)})),J(o.SHOW,(e=>R(e.getBase62IdComponent()))),J(o.LIVE,(e=>{return t=e.getIdComponent(),ae(o.LIVE,{id:t,hasBase62Id:!0});var t})),J(o.ROOM,(e=>{return t=e.getIdComponent(),ae(o.ROOM,{id:t,hasBase62Id:!0});var t})),J(o.EXPRESSION,(e=>{return t=e.getIdComponent(),ae(o.EXPRESSION,{id:t,hasBase62Id:!0});var t})),J(o.CONCERT,(e=>_(e.getIdComponent()))),J(o.MERCH,(e=>{return t=e.getIdComponent(),ae(o.MERCH,{id:t,hasBase62Id:!0});var t})),J(o.PRERELEASE,(e=>O(e.getIdComponent()))),J(o.SOCIAL_SESSION,(e=>{return t=e.getNextRequiredComponent(),ae(o.SOCIAL_SESSION,{id:t,hasBase62Id:!0});var t})),J(o.INTERRUPTION,(e=>{return t=e.getNextRequiredComponent(),ae(o.INTERRUPTION,{id:t});var t})),J(o.COLLECTION,(e=>g(void 0,e.getNextComponent()))),J(o.GENRE,(e=>{return t=e.getNextRequiredComponent(),ae(o.GENRE,{genre:t});var t})),J(o.QUEUE,(()=>ae(o.QUEUE,{}))),J(p.USER,((e,t)=>{const n=x(e.getNextRequiredComponent(),t),i=e.getNextComponent();if(n===o.FACEBOOK&&i)return r=i,ae(o.FACEBOOK,{uid:r});if(i&&G[i]){const o=G[i];if(!o)throw new TypeError("Invalid Spotify URI!");return o(e,t,{username:n})}var r;const a=e.getRemainingComponents();return C(n,i?[i].concat(a):void 0)})),J(o.UNKNOWN,(e=>function(e){return ae(o.UNKNOWN,{args:null!=e?e:[]})}(e.getAllComponents()))),J(o.MEDIA,(e=>{return t=e.getIdComponent(),ae(o.MEDIA,{id:t,hasBase62Id:!0});var t})),J(o.POLL,(e=>{return t=e.getIdComponent(),ae(o.POLL,{id:t,hasBase62Id:!0});var t})),J(o.QUESTION,(e=>{return t=e.getIdComponent(),ae(o.QUESTION,{id:t,hasBase62Id:!0});var t})),J(o.CULTURAL_MOMENT,(e=>{if(e.getNextComponent()!==p.HUB)throw new TypeError("Invalid or unknown Spotify URI!");return t=e.getIdComponent(),ae(o.CULTURAL_MOMENT,{id:t});var t}));const[Y,W]=(()=>{const e={};return[(t,n)=>{e[t]||(e[t]=n)},e]})();function z(e,t){const n=W[e.type];if(!n)throw new TypeError("Invalid Spotify URI!");return n(e,t)}Y(o.ALBUM,(e=>{const t=[o.ALBUM,e.id];return e.disc&&t.push(e.disc),t})),Y(o.AD,(e=>[o.AD,e.id])),Y(o.ARTIST,(e=>[o.ARTIST,e.id])),Y(o.QUEUE,(()=>[o.QUEUE])),Y(o.GENRE,(e=>[o.GENRE,e.genre])),Y(o.ARTIST_TOPLIST,(e=>[o.ARTIST,e.id,p.TOP,e.toplist])),Y(o.ARTIST_CONCERTS,(e=>[o.ARTIST,e.id,p.CONCERTS])),Y(o.DAILY_MIX,(e=>[o.DAILY_MIX,e.id])),Y(o.SEARCH,((e,t)=>[o.SEARCH,D(e.query,t)])),Y(o.TRACK,(e=>{let t=e.id;return(e.context||e.play)&&(t+=F({context:e.context,play:e.play})),e.anchor&&(t+=`#${e.anchor}`),[o.TRACK,t]})),Y(o.TRACKSET,(e=>{let t=[];if(e.tracks)for(let n=0,o=e.tracks.length;n[p.USER,o.FACEBOOK,e.uid])),Y(o.AUDIO_FILE,(e=>[o.AUDIO_FILE,e.extension,e.id])),Y(o.FOLDER,((e,t)=>[p.USER,D(e.username,t),o.FOLDER,e.id])),Y(o.FOLLOWERS,((e,t)=>[p.USER,D(e.username,t),o.FOLLOWERS])),Y(o.FOLLOWING,((e,t)=>[p.USER,D(e.username,t),o.FOLLOWING])),Y(o.PLAYLIST,((e,t)=>[p.USER,D(e.username,t),o.PLAYLIST,e.id])),Y(o.PLAYLIST_V2,(e=>[o.PLAYLIST,e.id])),Y(o.STARRED,((e,t)=>[p.USER,D(e.username,t),o.STARRED])),Y(o.TEMP_PLAYLIST,(e=>[o.TEMP_PLAYLIST,e.origin,e.data])),Y(o.CONTEXT_GROUP,(e=>[o.CONTEXT_GROUP,e.origin,e.name])),Y(o.USER_TOPLIST,((e,t)=>[p.USER,D(e.username,t),p.TOP,e.toplist])),Y(o.USER_TOP_TRACKS,((e,t)=>[p.USER,D(e.username,t),o.TOPLIST])),Y(o.TOPLIST,(e=>[p.TOP,e.toplist].concat(e.global||!e.country?[p.GLOBAL]:["country",e.country]))),Y(o.INBOX,((e,t)=>[p.USER,D(e.username,t),o.INBOX])),Y(o.ROOTLIST,((e,t)=>[p.USER,D(e.username,t),o.ROOTLIST])),Y(o.PUBLISHED_ROOTLIST,((e,t)=>[p.USER,D(e.username,t),o.PUBLISHED_ROOTLIST])),Y(o.COLLECTION_TRACK_LIST,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION_TRACK_LIST,e.id])),Y(o.PROFILE,((e,t)=>e.args&&e.args.length>0?[p.USER,D(e.username,t)].concat(e.args):[p.USER,D(e.username,t)])),Y(o.LOCAL_ARTIST,((e,t)=>[o.LOCAL_TRACK,D(e.artist,t)])),Y(o.LOCAL_ALBUM,((e,t)=>[o.LOCAL_TRACK,D(e.artist,t),D(e.album,t)])),Y(o.LOCAL_TRACK,((e,t)=>[o.LOCAL_TRACK,D(e.artist,t),D(e.album,t),D(e.track,t),e.duration])),Y(o.LIBRARY,((e,t)=>[p.USER,D(e.username,t),o.LIBRARY].concat(e.category?[e.category]:[]))),Y(o.IMAGE,(e=>[o.IMAGE,e.id])),Y(o.MOSAIC,(e=>{let t=[];return e.ids&&(t=e.ids.slice(0)),t.unshift(o.MOSAIC),t})),Y(o.RADIO,((e,t)=>M(e.args,t,[o.RADIO]))),Y(o.SPECIAL,((e,t)=>M(e.args,t,[o.SPECIAL]))),Y(o.STATION,((e,t)=>M(e.args,t,[o.STATION]))),Y(o.APPLICATION,((e,t)=>M(e.args,t,[p.APP,e.id]))),Y(o.COLLECTION_ALBUM,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION,o.ALBUM,e.id])),Y(o.COLLECTION_MISSING_ALBUM,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION,o.ALBUM,e.id,"missing"])),Y(o.COLLECTION_ARTIST,((e,t)=>[p.USER,D(e.username,t),o.COLLECTION,o.ARTIST,e.id])),Y(o.COLLECTION,((e,t)=>{const n=[o.COLLECTION].concat(e.category?[e.category]:[]);return e.username?[p.USER,D(e.username,t)].concat(n):n})),Y(o.EPISODE,(e=>{let t=e.id;return(e.context||e.play)&&(t+=F({context:e.context,play:e.play})),[o.EPISODE,t]})),Y(o.SHOW,(e=>[o.SHOW,e.id])),Y(o.LIVE,(e=>[o.LIVE,e.id])),Y(o.ROOM,(e=>[o.ROOM,e.id])),Y(o.EXPRESSION,(e=>[o.EXPRESSION,e.id])),Y(o.CONCERT,(e=>[o.CONCERT,e.id])),Y(o.SOCIAL_SESSION,(e=>[o.SOCIAL_SESSION,e.id])),Y(o.INTERRUPTION,(e=>[o.INTERRUPTION,e.id])),Y(o.MERCH,(e=>[o.MERCH,e.id])),Y(o.PRERELEASE,(e=>[o.PRERELEASE,e.id])),Y(o.UNKNOWN,((e,t)=>M(e.args,t))),Y(o.MEDIA,(e=>[o.MEDIA,e.id])),Y(o.POLL,(e=>[o.POLL,e.id])),Y(o.QUESTION,(e=>[o.QUESTION,e.id])),Y(o.CULTURAL_MOMENT,(e=>[o.CULTURAL_MOMENT,p.HUB,e.id]));const q="0123456789abcdef",X="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Z=[];Z.length=256;for(let e=0;e<256;e++)Z[e]=q[e>>4]+q[15&e];const Q=[];Q.length=128;for(let e=0;e>>24]+Z[s>>>16&255]+Z[s>>>8&255]+Z[255&s]+Z[a>>>24]+Z[a>>>16&255]+Z[a>>>8&255]+Z[255&a]+Z[r>>>24]+Z[r>>>16&255]+Z[r>>>8&255]+Z[255&r]+Z[i>>>24]+Z[i>>>16&255]+Z[i>>>8&255]+Z[255&i]}(e):e}function ne(e){return 32===e.length?function(e){let t,n=0,o=0,i=0;for(t=0;t<10;t++)i=16*i+$[e.charCodeAt(t)];for(t=0;t<11;t++)o=16*o+$[e.charCodeAt(t+10)];for(t=0;t<11;t++)n=16*n+$[e.charCodeAt(t+21)];if(isNaN(n+o+i))return null;const r=17592186044416,a=1/62;let s,l="";for(t=0;t<7;++t)s=i,i=Math.floor(s*a),s=(s-62*i)*r+o,o=Math.floor(s*a),s=(s-62*o)*r+n,n=Math.floor(s*a),l=X[s-62*n]+l;for(o+=i*r;t<15;++t)s=o,o=Math.floor(s*a),s=(s-62*o)*r+n,n=Math.floor(s*a),l=X[s-62*n]+l;for(n+=o*r;t<21;++t)s=n,n=Math.floor(s*a),l=X[s-62*n]+l;return X[n]+l}(e):e}function oe(e){return x(e,i.URI)}const ie="function"==typeof Object.assign?(e,t)=>{Object.assign(e,t)}:(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};class re{constructor(e,t={}){this.type=e,this.hasBase62Id=!!t.hasBase62Id,ie(this,t)}toURI(){return`spotify:${z(this,i.URI).join(":")}`}toString(){return this.toURI()}toURLPath(e=!1){let t=z(this,i.URL);t[0]===p.APP&&t.shift();const n=t[0]===o.TRACKSET,r=t[0]===o.LOCAL_TRACK;if(!n&&!r){const e=[];for(let n=0,o=t.length;nre});function ae(e,t){return new re(e,t)}Spicetify.URI.fromString=se;function se(e,t){if("string"!=typeof e)throw new TypeError("Argument `uri` must be a string.");return function(e,t){const n=H(e);return K(n.components,n.format,n.query,t)}(e,null==t?void 0:t.parseUnknown)}Spicetify.URI.from=le;function le(e,t){var n,o,i;if(!e)return null;let a={};if(t&&(Array.isArray(t)?a.allowedTypes=t:a=t),e instanceof re)return-1===(null===(n=a.allowedTypes)||void 0===n?void 0:n.indexOf(e.type))?null:e.clone();if("string"==typeof e)try{const t=se(e,a);return-1===(null===(o=a.allowedTypes)||void 0===o?void 0:o.indexOf(t.type))?null:t}catch(e){return null}if(null==e?void 0:e.type){if(-1===(null===(i=a.allowedTypes)||void 0===i?void 0:i.indexOf(e.type)))return null;const{type:t}=e,n=(0,r.__rest)(e,["type"]);return new re(t,n)}return null}function ce(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.AD}function ue(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.ALBUM}function de(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.APPLICATION}function pe(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.ARTIST}function fe(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.COLLECTION}function he(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.COLLECTION_ALBUM}function me(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.COLLECTION_ARTIST}function ge(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.EPISODE}function ve(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.FOLDER}function ye(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.LOCAL_TRACK}function _e(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.PLAYLIST}function be(e){return _e(e)||function(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.PLAYLIST_V2}(e)}function Se(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.PROFILE}function Ee(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.RADIO}function Ae(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.SHOW}function Te(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.STATION}function Pe(e){var t;return(null===(t=le(e))||void 0===t?void 0:t.type)===o.TRACK}},93640:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(17150),t)},17150:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendWwwWebFraudLogsNonAuth=t.sendWwwWebFraudLogs=t.sendWwwExperimentsNonAuth=t.sendWwwExperimentsAgnostic=t.sendWwwExperiments=t.sendWwwAnalyticsAgnostic=t.sendWwwAnalyticsNonAuth=t.sendWwwAnalytics=void 0;const i=o(n(9751)),r=n(13911),a=n(62339);t.sendWwwAnalytics=i.default({endpoint:r.Endpoints.WwwAnalytics,request:a.request}),t.sendWwwAnalyticsNonAuth=i.default({endpoint:r.Endpoints.WwwAnalyticsNonAuth,request:a.request}),t.sendWwwAnalyticsAgnostic=i.default({endpoint:r.Endpoints.WwwAnalyticsAgnostic,request:a.request}),t.sendWwwExperiments=i.default({endpoint:r.Endpoints.WwwExperiments,request:a.request}),t.sendWwwExperimentsAgnostic=i.default({endpoint:r.Endpoints.WwwExperimentsAgnostic,request:a.request}),t.sendWwwExperimentsNonAuth=i.default({endpoint:r.Endpoints.WwwExperimentsNonAuth,request:a.request}),t.sendWwwWebFraudLogs=i.default({endpoint:"wwwwebfraudlogs",request:a.request}),t.sendWwwWebFraudLogsNonAuth=i.default({endpoint:"wwwwebfraudlogsnonauth",request:a.request})},62339:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.request=void 0,t.request=function(e,t){return n(this,void 0,void 0,(function*(){if(!("sendBeacon"in window.navigator))return;const n=`https://www.spotify.com/api/growth-events/${e}`;try{if(!navigator.sendBeacon(n,JSON.stringify(t)))throw new Error("Error sending beacon")}catch(e){throw new Error(e)}}))}},9751:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({endpoint:e,request:t}){return(o,i)=>n(this,void 0,void 0,(function*(){try{yield t(e,o,i)}catch(e){throw new Error(e)}}))}},13911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Endpoints=void 0,function(e){e.WwwAnalytics="wwwanalytics",e.WwwAnalyticsAgnostic="wwwanalyticsagnostic",e.WwwAnalyticsNonAuth="wwwanalyticsnonauth",e.WwwExperiments="wwwexperiments",e.WwwExperimentsAgnostic="wwwexperimentsagnostic",e.WwwExperimentsNonAuth="wwwexperimentsnonauth",e.WwwWebFraudLogs="wwwwebfraudlogs",e.WwwWebFraudLogsNonAuth="wwwwebfraudlogsnonauth"}(t.Endpoints||(t.Endpoints={}))},93963:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YourLibraryAvailableEntityTypes=t.YourLibraryDecoratedEntity=t.YourLibraryBookExtraInfo=t.YourLibraryLocalFilesExtraInfo=t.YourLibraryNewEpisodesExtraInfo=t.YourLibraryYourEpisodesExtraInfo=t.YourLibraryLikedSongsExtraInfo=t.YourLibraryFolderExtraInfo=t.YourLibraryShowExtraInfo=t.YourLibraryPlaylistExtraInfo=t.YourLibraryArtistExtraInfo=t.YourLibraryAlbumExtraInfo=t.Offline=t.YourLibraryEntityInfo=t.yourLibraryBookExtraInfo_AccessToJSON=t.yourLibraryBookExtraInfo_AccessFromJSON=t.YourLibraryBookExtraInfo_Access=t.offline_AvailabilityToJSON=t.offline_AvailabilityFromJSON=t.Offline_Availability=t.yourLibraryEntityInfo_PinnableToJSON=t.yourLibraryEntityInfo_PinnableFromJSON=t.YourLibraryEntityInfo_Pinnable=t.protobufPackage=void 0;const i=o(n(38114)),r=o(n(33892));var a,s,l;function c(e){switch(e){case 0:case"YES":return a.YES;case 1:case"NO_IN_FOLDER":return a.NO_IN_FOLDER;default:return a.UNRECOGNIZED}}function u(e){switch(e){case a.YES:return"YES";case a.NO_IN_FOLDER:return"NO_IN_FOLDER";default:return"UNKNOWN"}}function d(e){switch(e){case 0:case"UNKNOWN":return s.UNKNOWN;case 1:case"NO":return s.NO;case 2:case"YES":return s.YES;case 3:case"DOWNLOADING":return s.DOWNLOADING;case 4:case"WAITING":return s.WAITING;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.UNKNOWN:return"UNKNOWN";case s.NO:return"NO";case s.YES:return"YES";case s.DOWNLOADING:return"DOWNLOADING";case s.WAITING:return"WAITING";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"OPEN":return l.OPEN;case 1:case"LOCKED":return l.LOCKED;default:return l.UNRECOGNIZED}}function h(e){switch(e){case l.OPEN:return"OPEN";case l.LOCKED:return"LOCKED";default:return"UNKNOWN"}}function m(e){return null!=e}t.protobufPackage="spotify.your_library.proto",function(e){e[e.YES=0]="YES",e[e.NO_IN_FOLDER=1]="NO_IN_FOLDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=t.YourLibraryEntityInfo_Pinnable||(t.YourLibraryEntityInfo_Pinnable={})),t.yourLibraryEntityInfo_PinnableFromJSON=c,t.yourLibraryEntityInfo_PinnableToJSON=u,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NO=1]="NO",e[e.YES=2]="YES",e[e.DOWNLOADING=3]="DOWNLOADING",e[e.WAITING=4]="WAITING",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.Offline_Availability||(t.Offline_Availability={})),t.offline_AvailabilityFromJSON=d,t.offline_AvailabilityToJSON=p,function(e){e[e.OPEN=0]="OPEN",e[e.LOCKED=1]="LOCKED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=t.YourLibraryBookExtraInfo_Access||(t.YourLibraryBookExtraInfo_Access={})),t.yourLibraryBookExtraInfo_AccessFromJSON=f,t.yourLibraryBookExtraInfo_AccessToJSON=h,t.YourLibraryEntityInfo={fromJSON:e=>({key:m(e.key)?String(e.key):"",name:m(e.name)?String(e.name):"",uri:m(e.uri)?String(e.uri):"",groupLabel:m(e.groupLabel)?String(e.groupLabel):"",imageUri:m(e.imageUri)?String(e.imageUri):"",pinned:!!m(e.pinned)&&Boolean(e.pinned),pinnable:m(e.pinnable)?c(e.pinnable):0,offlineAvailability:m(e.offlineAvailability)?d(e.offlineAvailability):0}),toJSON(e){const t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.name&&(t.name=e.name),void 0!==e.uri&&(t.uri=e.uri),void 0!==e.groupLabel&&(t.groupLabel=e.groupLabel),void 0!==e.imageUri&&(t.imageUri=e.imageUri),void 0!==e.pinned&&(t.pinned=e.pinned),void 0!==e.pinnable&&(t.pinnable=u(e.pinnable)),void 0!==e.offlineAvailability&&(t.offlineAvailability=p(e.offlineAvailability)),t},fromPartial(e){const t={key:"",name:"",uri:"",groupLabel:"",imageUri:"",pinned:!1,pinnable:0,offlineAvailability:0};return t.key=e.key??"",t.name=e.name??"",t.uri=e.uri??"",t.groupLabel=e.groupLabel??"",t.imageUri=e.imageUri??"",t.pinned=e.pinned??!1,t.pinnable=e.pinnable??0,t.offlineAvailability=e.offlineAvailability??0,t}},t.Offline={fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({})},t.YourLibraryAlbumExtraInfo={fromJSON:e=>({artistName:m(e.artistName)?String(e.artistName):""}),toJSON(e){const t={};return void 0!==e.artistName&&(t.artistName=e.artistName),t},fromPartial(e){const t={artistName:""};return t.artistName=e.artistName??"",t}},t.YourLibraryArtistExtraInfo={fromJSON:e=>({hasLikedTracksOrAlbums:!!m(e.hasLikedTracksOrAlbums)&&Boolean(e.hasLikedTracksOrAlbums)}),toJSON(e){const t={};return void 0!==e.hasLikedTracksOrAlbums&&(t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums),t},fromPartial(e){const t={hasLikedTracksOrAlbums:!1};return t.hasLikedTracksOrAlbums=e.hasLikedTracksOrAlbums??!1,t}},t.YourLibraryPlaylistExtraInfo={fromJSON:e=>({creatorName:m(e.creatorName)?String(e.creatorName):"",isLoading:!!m(e.isLoading)&&Boolean(e.isLoading),canView:!!m(e.canView)&&Boolean(e.canView)}),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={creatorName:"",isLoading:!1,canView:!1};return t.creatorName=e.creatorName??"",t.isLoading=e.isLoading??!1,t.canView=e.canView??!1,t}},t.YourLibraryShowExtraInfo={fromJSON:e=>({creatorName:m(e.creatorName)?String(e.creatorName):"",publishDate:m(e.publishDate)?String(e.publishDate):"0",isMusicAndTalk:!!m(e.isMusicAndTalk)&&Boolean(e.isMusicAndTalk),numberOfDownloadedEpisodes:m(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),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=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={creatorName:"",publishDate:"0",isMusicAndTalk:!1,numberOfDownloadedEpisodes:0};return t.creatorName=e.creatorName??"",t.publishDate=e.publishDate??"0",t.isMusicAndTalk=e.isMusicAndTalk??!1,t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryFolderExtraInfo={fromJSON:e=>({numberOfPlaylists:m(e.numberOfPlaylists)?Number(e.numberOfPlaylists):0,numberOfFolders:m(e.numberOfFolders)?Number(e.numberOfFolders):0}),toJSON(e){const t={};return void 0!==e.numberOfPlaylists&&(t.numberOfPlaylists=Math.round(e.numberOfPlaylists)),void 0!==e.numberOfFolders&&(t.numberOfFolders=Math.round(e.numberOfFolders)),t},fromPartial(e){const t={numberOfPlaylists:0,numberOfFolders:0};return t.numberOfPlaylists=e.numberOfPlaylists??0,t.numberOfFolders=e.numberOfFolders??0,t}},t.YourLibraryLikedSongsExtraInfo={fromJSON:e=>({numberOfSongs:m(e.numberOfSongs)?Number(e.numberOfSongs):0}),toJSON(e){const t={};return void 0!==e.numberOfSongs&&(t.numberOfSongs=Math.round(e.numberOfSongs)),t},fromPartial(e){const t={numberOfSongs:0};return t.numberOfSongs=e.numberOfSongs??0,t}},t.YourLibraryYourEpisodesExtraInfo={fromJSON:e=>({numberOfDownloadedEpisodes:m(e.numberOfDownloadedEpisodes)?Number(e.numberOfDownloadedEpisodes):0}),toJSON(e){const t={};return void 0!==e.numberOfDownloadedEpisodes&&(t.numberOfDownloadedEpisodes=Math.round(e.numberOfDownloadedEpisodes)),t},fromPartial(e){const t={numberOfDownloadedEpisodes:0};return t.numberOfDownloadedEpisodes=e.numberOfDownloadedEpisodes??0,t}},t.YourLibraryNewEpisodesExtraInfo={fromJSON:e=>({publishDate:m(e.publishDate)?String(e.publishDate):"0"}),toJSON(e){const t={};return void 0!==e.publishDate&&(t.publishDate=e.publishDate),t},fromPartial(e){const t={publishDate:"0"};return t.publishDate=e.publishDate??"0",t}},t.YourLibraryLocalFilesExtraInfo={fromJSON:e=>({numberOfFiles:m(e.numberOfFiles)?Number(e.numberOfFiles):0}),toJSON(e){const t={};return void 0!==e.numberOfFiles&&(t.numberOfFiles=Math.round(e.numberOfFiles)),t},fromPartial(e){const t={numberOfFiles:0};return t.numberOfFiles=e.numberOfFiles??0,t}},t.YourLibraryBookExtraInfo={fromJSON:e=>({authorName:m(e.authorName)?String(e.authorName):"",access:m(e.access)?f(e.access):0}),toJSON(e){const t={};return void 0!==e.authorName&&(t.authorName=e.authorName),void 0!==e.access&&(t.access=h(e.access)),t},fromPartial(e){const t={authorName:"",access:0};return t.authorName=e.authorName??"",t.access=e.access??0,t}},t.YourLibraryDecoratedEntity={fromJSON:e=>({entityInfo:m(e.entityInfo)?t.YourLibraryEntityInfo.fromJSON(e.entityInfo):void 0,album:m(e.album)?t.YourLibraryAlbumExtraInfo.fromJSON(e.album):void 0,artist:m(e.artist)?t.YourLibraryArtistExtraInfo.fromJSON(e.artist):void 0,playlist:m(e.playlist)?t.YourLibraryPlaylistExtraInfo.fromJSON(e.playlist):void 0,show:m(e.show)?t.YourLibraryShowExtraInfo.fromJSON(e.show):void 0,folder:m(e.folder)?t.YourLibraryFolderExtraInfo.fromJSON(e.folder):void 0,likedSongs:m(e.likedSongs)?t.YourLibraryLikedSongsExtraInfo.fromJSON(e.likedSongs):void 0,yourEpisodes:m(e.yourEpisodes)?t.YourLibraryYourEpisodesExtraInfo.fromJSON(e.yourEpisodes):void 0,newEpisodes:m(e.newEpisodes)?t.YourLibraryNewEpisodesExtraInfo.fromJSON(e.newEpisodes):void 0,localFiles:m(e.localFiles)?t.YourLibraryLocalFilesExtraInfo.fromJSON(e.localFiles):void 0,book:m(e.book)?t.YourLibraryBookExtraInfo.fromJSON(e.book):void 0}),toJSON(e){const n={};return void 0!==e.entityInfo&&(n.entityInfo=e.entityInfo?t.YourLibraryEntityInfo.toJSON(e.entityInfo):void 0),void 0!==e.album&&(n.album=e.album?t.YourLibraryAlbumExtraInfo.toJSON(e.album):void 0),void 0!==e.artist&&(n.artist=e.artist?t.YourLibraryArtistExtraInfo.toJSON(e.artist):void 0),void 0!==e.playlist&&(n.playlist=e.playlist?t.YourLibraryPlaylistExtraInfo.toJSON(e.playlist):void 0),void 0!==e.show&&(n.show=e.show?t.YourLibraryShowExtraInfo.toJSON(e.show):void 0),void 0!==e.folder&&(n.folder=e.folder?t.YourLibraryFolderExtraInfo.toJSON(e.folder):void 0),void 0!==e.likedSongs&&(n.likedSongs=e.likedSongs?t.YourLibraryLikedSongsExtraInfo.toJSON(e.likedSongs):void 0),void 0!==e.yourEpisodes&&(n.yourEpisodes=e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.toJSON(e.yourEpisodes):void 0),void 0!==e.newEpisodes&&(n.newEpisodes=e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.toJSON(e.newEpisodes):void 0),void 0!==e.localFiles&&(n.localFiles=e.localFiles?t.YourLibraryLocalFilesExtraInfo.toJSON(e.localFiles):void 0),void 0!==e.book&&(n.book=e.book?t.YourLibraryBookExtraInfo.toJSON(e.book):void 0),n},fromPartial(e){const n={entityInfo:void 0,album:void 0,artist:void 0,playlist:void 0,show:void 0,folder:void 0,likedSongs:void 0,yourEpisodes:void 0,newEpisodes:void 0,localFiles:void 0,book:void 0};return n.entityInfo=void 0!==e.entityInfo&&null!==e.entityInfo?t.YourLibraryEntityInfo.fromPartial(e.entityInfo):void 0,n.album=void 0!==e.album&&null!==e.album?t.YourLibraryAlbumExtraInfo.fromPartial(e.album):void 0,n.artist=void 0!==e.artist&&null!==e.artist?t.YourLibraryArtistExtraInfo.fromPartial(e.artist):void 0,n.playlist=void 0!==e.playlist&&null!==e.playlist?t.YourLibraryPlaylistExtraInfo.fromPartial(e.playlist):void 0,n.show=void 0!==e.show&&null!==e.show?t.YourLibraryShowExtraInfo.fromPartial(e.show):void 0,n.folder=void 0!==e.folder&&null!==e.folder?t.YourLibraryFolderExtraInfo.fromPartial(e.folder):void 0,n.likedSongs=void 0!==e.likedSongs&&null!==e.likedSongs?t.YourLibraryLikedSongsExtraInfo.fromPartial(e.likedSongs):void 0,n.yourEpisodes=void 0!==e.yourEpisodes&&null!==e.yourEpisodes?t.YourLibraryYourEpisodesExtraInfo.fromPartial(e.yourEpisodes):void 0,n.newEpisodes=void 0!==e.newEpisodes&&null!==e.newEpisodes?t.YourLibraryNewEpisodesExtraInfo.fromPartial(e.newEpisodes):void 0,n.localFiles=void 0!==e.localFiles&&null!==e.localFiles?t.YourLibraryLocalFilesExtraInfo.fromPartial(e.localFiles):void 0,n.book=void 0!==e.book&&null!==e.book?t.YourLibraryBookExtraInfo.fromPartial(e.book):void 0,n}},t.YourLibraryAvailableEntityTypes={fromJSON:e=>({albums:!!m(e.albums)&&Boolean(e.albums),artists:!!m(e.artists)&&Boolean(e.artists),playlists:!!m(e.playlists)&&Boolean(e.playlists),shows:!!m(e.shows)&&Boolean(e.shows),books:!!m(e.books)&&Boolean(e.books),playlistByYou:!!m(e.playlistByYou)&&Boolean(e.playlistByYou),playlistBySpotify:!!m(e.playlistBySpotify)&&Boolean(e.playlistBySpotify)}),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),void 0!==e.playlistByYou&&(t.playlistByYou=e.playlistByYou),void 0!==e.playlistBySpotify&&(t.playlistBySpotify=e.playlistBySpotify),t},fromPartial(e){const t={albums:!1,artists:!1,playlists:!1,shows:!1,books:!1,playlistByYou:!1,playlistBySpotify:!1};return t.albums=e.albums??!1,t.artists=e.artists??!1,t.playlists=e.playlists??!1,t.shows=e.shows??!1,t.books=e.books??!1,t.playlistByYou=e.playlistByYou??!1,t.playlistBySpotify=e.playlistBySpotify??!1,t}},r.default.util.Long!==i.default&&(r.default.util.Long=i.default,r.default.configure())},6714:function(e,t,n){var o;e=n.nmd(e),function(i){var r=t,a=(e&&e.exports,"object"==typeof n.g&&n.g);a.global!==a&&a.window;var s=function(e){this.message=e};(s.prototype=new Error).name="InvalidCharacterError";var l=function(e){throw new s(e)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,o,i,r=e.length%3,a="",s=-1,u=e.length-r;++s>18&63)+c.charAt(i>>12&63)+c.charAt(i>>6&63)+c.charAt(63&i);return 2==r?(t=e.charCodeAt(s)<<8,n=e.charCodeAt(++s),a+=c.charAt((i=t+n)>>10)+c.charAt(i>>4&63)+c.charAt(i<<2&63)+"="):1==r&&(i=e.charCodeAt(s),a+=c.charAt(i>>2)+c.charAt(i<<4&63)+"=="),a},decode:function(e){var t=(e=String(e).replace(u,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var n,o,i=0,r="",a=-1;++a>(-2*i&6)));return r},version:"1.0.0"};void 0===(o=function(){return d}.call(t,n,t,e))||(e.exports=o)}()},65415:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[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=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,r=[],a=16383,s=0,l=o-i;sl?l:s+a));1===i?(t=e[o-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[o-2]<<8)+e[o-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return r.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=r.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,o){for(var i,r,a=[],s=t;s>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},19496:function(e){e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},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 o=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,o){void 0===o&&(o=!1);var i=e.getVersionPrecision(t),r=e.getVersionPrecision(n),a=Math.max(i,r),s=0,l=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),o=t+new Array(n+1).join(".0");return e.map(o.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(o&&(s=a-Math.min(i,r)),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(r>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(),o=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(o);return t&&i&&(o=i.toLowerCase()),o===n},t.compareVersion=function(e){var t=[0],n=e,o=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(o=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(o=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,o))>-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 o,i=(o=n(17))&&o.__esModule?o:{default:o},r=/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(r,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(r,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(r,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(r,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(r,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(r,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(r,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(r,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(r,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(r,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(r,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,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(r,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(r,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(r,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 o,i=(o=n(17))&&o.__esModule?o:{default:o},r=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:r.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:r.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:r.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:r.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),o={name:r.OS_MAP.MacOS,version:t};return n&&(o.versionName=n),o}},{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:r.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),o={name:r.OS_MAP.Android,version:t};return n&&(o.versionName=n),o}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:r.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:r.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:r.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:r.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:r.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:r.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 o,i=(o=n(17))&&o.__esModule?o:{default:o},r=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:r.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:r.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:r.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:r.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:r.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:r.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:r.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:r.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 o,i=(o=n(17))&&o.__esModule?o:{default:o},r=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:r.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:r.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:r.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:r.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:r.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:r.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:r.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}})},55872:(e,t,n)=>{"use strict";const o=n(65415),i=n(30551),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=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|m(e,t);let o=s(n);const i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(q(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(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(q(e,SharedArrayBuffer)||e&&q(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 o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,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||X(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 o=0;o=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(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,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(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 o?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let o=!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 L(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function v(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function y(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(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,o)),l.isBuffer(t))return 0===t.length?-1:_(e,t,n,o,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,o,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,o,i){let r,a=1,s=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){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 o=-1;for(r=n;rs&&(n=s-l),r=n;r>=0;r--){let n=!0;for(let o=0;oi&&(o=i):o=i;const r=t.length;let a;for(o>r/2&&(o=r/2),a=0;a>8,i=n%256,r.push(i),r.push(o);return r}(t,e.length-n),e,n,o)}function P(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);const o=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,o,s,l;switch(a){case 1:t<128&&(r=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(r=l));break;case 3:n=e[i+1],o=e[i+2],128==(192&n)&&128==(192&o)&&(l=(15&t)<<12|(63&n)<<6|63&o,l>2047&&(l<55296||l>57343)&&(r=l));break;case 4:n=e[i+1],o=e[i+2],s=e[i+3],128==(192&n)&&128==(192&o)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(r=l))}}null===r?(r=65533,a=1):r>65535&&(r-=65536,o.push(r>>>10&1023|55296),r=56320|1023&r),o.push(r),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",o=0;for(;oo.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(o,i)):Uint8Array.prototype.set.call(o,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(o,i)}i+=t.length}return o},l.byteLength=m,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+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(e,t,n,o,i){if(q(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===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let r=(i>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(r,a),c=this.slice(o,i),u=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=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");o||(o="utf8");let r=!1;for(;;)switch(o){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function k(e,t,n){let o="";n=Math.min(e.length,n);for(let i=t;io)&&(n=o);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function w(e,t,n,o,i,r){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,o,i){J(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r,r>>=8,e[n++]=r;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,o,i){J(t,o,i,e,n,7);let r=Number(t&BigInt(4294967295));e[n+7]=r,r>>=8,e[n+6]=r,r>>=8,e[n+5]=r,r>>=8,e[n+4]=r;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,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,o,r){return t=+t,n>>>=0,r||x(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function U(e,t,n,o,r){return t=+t,n>>>=0,r||x(e,0,n,8),i.write(e,t,n,o,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||N(e,t,this.length);let o=this[e],i=1,r=0;for(;++r>>=0,t>>>=0,n||N(e,t,this.length);let o=this[e+--t],i=1;for(;t>0&&(i*=256);)o+=this[e+--t]*i;return o},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(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||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=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(o)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=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(o)<>>=0,t>>>=0,n||N(e,t,this.length);let o=this[e],i=1,r=0;for(;++r=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);let o=t,i=1,r=this[e+--o];for(;o>0&&(i*=256);)r+=this[e+--o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(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||N(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||N(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||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(o)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const o=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(o)<>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,o){if(e=+e,t>>>=0,n>>>=0,!o){w(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,r=0;for(this[t]=255&e;++r>>=0,n>>>=0,!o){w(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&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,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);w(this,e,t,n,o-1,-o)}let i=0,r=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t>>>=0,!o){const o=Math.pow(2,8*n-1);w(this,e,t,n,o-1,-o)}let i=n-1,r=1,a=0;for(this[t+i]=255&e;--i>=0&&(r*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/r>>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 F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,o){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=o+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function J(e,t,n,o,i,r){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${o} and < 2${o} ** ${8*(r+1)}${o}`:`>= -(2${o} ** ${8*(r+1)-1}${o}) and < 2 ** ${8*(r+1)-1}${o}`:`>= ${t}${o} and <= ${n}${o}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(o,i,r)}function j(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw j(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,n){let o=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=G(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+="n"),o+=` It must be ${t}. Received ${i}`,o}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function Y(e,t){let n;t=t||1/0;const o=e.length;let i=null;const r=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.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;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function W(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,o){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const o=16*n;for(let i=0;i<16;++i)t[o+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},84875:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t{var o=n(13337),i={};for(var r in o)o.hasOwnProperty(r)&&(i[o[r]]=r);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,o=e[0]/255,i=e[1]/255,r=e[2]/255,a=Math.min(o,i,r),s=Math.max(o,i,r),l=s-a;return s===a?t=0:o===s?t=(i-r)/l:i===s?t=2+(r-o)/l:r===s&&(t=4+(o-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,o,i,r,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=r=0:(r=u/c,t=d(a),n=d(s),o=d(l),a===c?i=o-n:s===c?i=1/3+t-o:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*r,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],o=e[2];return[a.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,o))),100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,o=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-o,1-i)))/(1-t)||0),100*((1-o-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,r=1/0;for(var a in o)if(o.hasOwnProperty(a)){var s=u(e,o[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*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)),100*(.2126*t+.7152*n+.0722*o),100*(.0193*t+.1192*n+.9505*o)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],o=t[1],i=t[2];return o/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,o,i,r,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[r=255*l,r,r];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(o=a+1/3*-(c-1))<0&&o++,o>1&&o--,r=6*o<1?t+6*(n-t)*o:2*o<1?n:3*o<2?t+(n-t)*(2/3-o)*6:t,i[c]=255*r;return i},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,o=e[2]/100,i=n,r=Math.max(o,.01);return n*=(o*=2)<=1?o:2-o,i*=r<=1?r:2-r,[t,100*(0===o?2*i/(r+i):2*n/(o+n)),100*((o+n)/2)]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,o=e[2]/100,i=Math.floor(t)%6,r=t-Math.floor(t),a=255*o*(1-n),s=255*o*(1-n*r),l=255*o*(1-n*(1-r));switch(o*=255,i){case 0:return[o,l,a];case 1:return[s,o,a];case 2:return[a,o,l];case 3:return[a,s,o];case 4:return[l,a,o];case 5:return[o,a,s]}},a.hsv.hsl=function(e){var t,n,o,i=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return o=(2-r)*a,n=r*s,[i,100*(n=(n/=(t=(2-r)*s)<=1?t:2-t)||0),100*(o/=2)]},a.hwb.rgb=function(e){var t,n,o,i,r,a,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),o=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(o=1-o),i=c+o*((n=1-u)-c),t){default:case 6:case 0:r=n,a=i,s=c;break;case 1:r=i,a=n,s=c;break;case 2:r=c,a=n,s=i;break;case 3:r=c,a=i,s=n;break;case 4:r=i,a=c,s=n;break;case 5:r=n,a=c,s=i}return[255*r,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,o=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,o*(1-i)+i))]},a.xyz.rgb=function(e){var t,n,o,i=e[0]/100,r=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*r+.0415*a,o=.0557*i+-.204*r+1.057*a,t=(t=3.2406*i+-1.5372*r+-.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,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:12.92*o,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],o=e[2];return n/=100,o/=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-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.lab.xyz=function(e){var t,n,o,i=e[0];t=e[1]/500+(n=(i+16)/116),o=n-e[2]/200;var r=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(o,3);return n=r>.008856?r:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,o=s>.008856?s:(o-16/116)/7.787,[t*=95.047,n*=100,o*=108.883]},a.lab.lch=function(e){var t,n=e[0],o=e[1],i=e[2];return(t=360*Math.atan2(i,o)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(o*o+i*i),t]},a.lch.lab=function(e){var t,n=e[0],o=e[1];return t=e[2]/360*2*Math.PI,[n,o*Math.cos(t),o*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],o=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var r=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(r+=60),r},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],o=e[2];return t===n&&n===o?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(o/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 o=parseInt(n,16);return[o>>16&255,o>>8&255,255&o]},a.rgb.hcg=function(e){var t,n=e[0]/255,o=e[1]/255,i=e[2]/255,r=Math.max(Math.max(n,o),i),a=Math.min(Math.min(n,o),i),s=r-a;return t=s<=0?0:r===n?(o-i)/s%6:r===o?2+(i-n)/s:4+(n-o)/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,o=1,i=0;return(o=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*o)/(1-o)),[e[0],100*o,100*i]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,o=t*n,i=0;return o<1&&(i=(n-o)/(1-o)),[e[0],100*o,100*i]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,o=e[2]/100;if(0===n)return[255*o,255*o,255*o];var i,r=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return i=(1-n)*o,[255*(n*r[0]+i),255*(n*r[1]+i),255*(n*r[2]+i)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),o=0;return n>0&&(o=t/n),[e[0],100*o,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],100*o,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,o=n-t,i=0;return o<1&&(i=(n-o)/(1-o)),[e[0],100*o,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]}},18358:(e,t,n)=>{var o=n(44589),i=n(3314),r={};Object.keys(o).forEach((function(e){r[e]={},Object.defineProperty(r[e],"channels",{value:o[e].channels}),Object.defineProperty(r[e],"labels",{value:o[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var o=t[n];r[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 o=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(o)}))})),e.exports=r},3314:(e,t,n)=>{var o=n(44589);function i(e){var t=function(){for(var e={},t=Object.keys(o),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]}},99419:e=>{"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]}},2489:(e,t,n)=>{var o=n(99419),i=n(27933),r=Object.hasOwnProperty,a=Object.create(null);for(var s in o)r.call(o,s)&&(a[o[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]:r.call(o,t[1])?((a=o[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),o=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+o+"%)":"rgba("+t+"%, "+n+"%, "+o+"%, "+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)]}},74654:(e,t,n)=>{"use strict";var o=n(2489),i=n(18358),r=[].slice,a=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[r.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=o.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 f=r.call(e,0,u);this.color=p(f,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 m=h.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,v=[];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(),o=this.rgb(),i=void 0===t?.5:t,r=2*i-1,a=n.alpha()-o.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-s;return c.rgb(s*n.red()+l*o.red(),s*n.green()+l*o.green(),s*n.blue()+l*o.blue(),n.alpha()*i+o.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,o="number"==typeof arguments[t]?t:this.valpha;return new c((n=i[this.model][e].raw(this.color),Array.isArray(n)?n:[n]).concat(o),e)},c[e]=function(n){return"number"==typeof n&&(n=p(r.call(arguments),t)),new c(n,e)}}})),e.exports=c},22839:(e,t,n)=>{var o=n(17833),i=n(65222),r=TypeError;e.exports=function(e){if(o(e))return e;throw r(i(e)+" is not a function")}},24336:(e,t,n)=>{var o=n(17833),i=String,r=TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw r("Can't set "+i(e)+" as a prototype")}},20666:(e,t,n)=>{var o=n(9765),i=n(48892),r=n(5184).f,a=o("unscopables"),s=Array.prototype;null==s[a]&&r(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},62533:(e,t,n)=>{var o=n(86919),i=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw i("Incorrect invocation")}},70195:(e,t,n)=>{var o=n(14679),i=String,r=TypeError;e.exports=function(e){if(o(e))return e;throw r(i(e)+" is not an object")}},70793:(e,t,n)=>{var o=n(59631);e.exports=function(e,t){for(var n=0,i=o(t),r=new e(i);i>n;)r[n]=t[n++];return r}},79801:(e,t,n)=>{var o=n(91482),i=n(85581),r=n(90041),a=n(70928),s=n(58195),l=n(59631),c=n(48892),u=n(70793),d=Array,p=i([].push);e.exports=function(e,t,n,i){for(var f,h,m,g=a(e),v=r(g),y=o(t,n),_=c(null),b=l(v),S=0;b>S;S++)m=v[S],(h=s(y(m,S,g)))in _?p(_[h],m):_[h]=[m];if(i&&(f=i(g))!==d)for(h in _)_[h]=u(f,_[h]);return _}},79099:(e,t,n)=>{var o=n(243),i=n(47973),r=n(59631),a=function(e){return function(t,n,a){var s,l=o(t),c=r(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)}},87289:(e,t,n)=>{var o=n(85581);e.exports=o([].slice)},21919:(e,t,n)=>{var o=n(85581),i=o({}.toString),r=o("".slice);e.exports=function(e){return r(i(e),8,-1)}},2562:(e,t,n)=>{var o=n(22415),i=n(17833),r=n(21919),a=n(9765)("toStringTag"),s=Object,l="Arguments"==r(function(){return arguments}());e.exports=o?r:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?r(t):"Object"==(o=r(t))&&i(t.callee)?"Arguments":o}},33830:(e,t,n)=>{var o=n(76031),i=n(71250),r=n(29630),a=n(5184);e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=r.f,u=0;u{var o=n(97057),i=n(5184),r=n(24431);e.exports=o?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},24431:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3437:(e,t,n)=>{"use strict";var o=n(58195),i=n(5184),r=n(24431);e.exports=function(e,t,n){var a=o(t);a in e?i.f(e,a,r(0,n)):e[a]=n}},77309:(e,t,n)=>{var o=n(17833),i=n(5184),r=n(1262),a=n(99329);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&r(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},99329:(e,t,n)=>{var o=n(91642),i=Object.defineProperty;e.exports=function(e,t){try{i(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},97057:(e,t,n)=>{var o=n(24074);e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},68438:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},16603:(e,t,n)=>{var o=n(91642),i=n(14679),r=o.document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},88738:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},96911:(e,t,n)=>{var o=n(67321),i=n(78468);e.exports=!o&&!i&&"object"==typeof window&&"object"==typeof document},24192:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},67321:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},68860:(e,t,n)=>{var o=n(7009);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},78468:(e,t,n)=>{var o=n(14224),i=n(21919);e.exports=void 0!==o&&"process"==i(o)},7009:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},81552:(e,t,n)=>{var o,i,r=n(91642),a=n(7009),s=r.process,l=r.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(i=+o[1]),e.exports=i},37884:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},75863:(e,t,n)=>{var o=n(85581),i=Error,r=o("".replace),a=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=r(e,s,"");return e}},77154:(e,t,n)=>{var o=n(24074),i=n(24431);e.exports=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},41959:(e,t,n)=>{var o=n(91642),i=n(29630).f,r=n(90427),a=n(77309),s=n(99329),l=n(33830),c=n(68004);e.exports=function(e,t){var n,u,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?o:g?o[h]||s(h,{}):(o[h]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(f=i(n,u))&&f.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&r(p,"sham",!0),a(n,u,p,e)}}},24074:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},42109:(e,t,n)=>{var o=n(57821),i=Function.prototype,r=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(r):function(){return a.apply(r,arguments)})},91482:(e,t,n)=>{var o=n(97141),i=n(22839),r=n(57821),a=o(o.bind);e.exports=function(e,t){return i(e),void 0===t?e:r?a(e,t):function(){return e.apply(t,arguments)}}},57821:(e,t,n)=>{var o=n(24074);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},63248:(e,t,n)=>{var o=n(57821),i=Function.prototype.call;e.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},10928:(e,t,n)=>{var o=n(97057),i=n(76031),r=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=i(r,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(r,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},79616:(e,t,n)=>{var o=n(85581),i=n(22839);e.exports=function(e,t,n){try{return o(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},97141:(e,t,n)=>{var o=n(21919),i=n(85581);e.exports=function(e){if("Function"===o(e))return i(e)}},85581:(e,t,n)=>{var o=n(57821),i=Function.prototype,r=i.call,a=o&&i.bind.bind(r,r);e.exports=o?a:function(e){return function(){return r.apply(e,arguments)}}},16392:(e,t,n)=>{var o=n(91642),i=n(17833);e.exports=function(e,t){return arguments.length<2?(n=o[e],i(n)?n:void 0):o[e]&&o[e][t];var n}},22544:(e,t,n)=>{var o=n(2562),i=n(88384),r=n(3241),a=n(5251),s=n(9765)("iterator");e.exports=function(e){if(!r(e))return i(e,s)||i(e,"@@iterator")||a[o(e)]}},29408:(e,t,n)=>{var o=n(63248),i=n(22839),r=n(70195),a=n(65222),s=n(22544),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return r(o(n,e));throw l(a(e)+" is not iterable")}},88384:(e,t,n)=>{var o=n(22839),i=n(3241);e.exports=function(e,t){var n=e[t];return i(n)?void 0:o(n)}},91642:(e,t,n)=>{var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},76031:(e,t,n)=>{var o=n(85581),i=n(70928),r=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(i(e),t)}},741:e=>{e.exports={}},3004:(e,t,n)=>{var o=n(16392);e.exports=o("document","documentElement")},49472:(e,t,n)=>{var o=n(97057),i=n(24074),r=n(16603);e.exports=!o&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},90041:(e,t,n)=>{var o=n(85581),i=n(24074),r=n(21919),a=Object,s=o("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?s(e,""):a(e)}:a},95446:(e,t,n)=>{var o=n(17833),i=n(14679),r=n(96250);e.exports=function(e,t,n){var a,s;return r&&o(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&r(e,s),e}},62795:(e,t,n)=>{var o=n(85581),i=n(17833),r=n(52752),a=o(Function.toString);i(r.inspectSource)||(r.inspectSource=function(e){return a(e)}),e.exports=r.inspectSource},5744:(e,t,n)=>{var o,i,r,a=n(99928),s=n(91642),l=n(14679),c=n(90427),u=n(76031),d=n(52752),p=n(76714),f=n(741),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,o=function(e,t){if(v.has(e))throw m(h);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var y=p("state");f[y]=!0,o=function(e,t){if(u(e,y))throw m(h);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},r=function(e){return u(e,y)}}e.exports={set:o,get:i,has:r,enforce:function(e){return r(e)?i(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},215:(e,t,n)=>{var o=n(9765),i=n(5251),r=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},17833:(e,t,n)=>{var o=n(68438),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},9530:(e,t,n)=>{var o=n(85581),i=n(24074),r=n(17833),a=n(2562),s=n(16392),l=n(62795),c=function(){},u=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=o(p.exec),h=!p.exec(c),m=function(e){if(!r(e))return!1;try{return d(c,u,e),!0}catch(e){return!1}},g=function(e){if(!r(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},68004:(e,t,n)=>{var o=n(24074),i=n(17833),r=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(i(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},3241:e=>{e.exports=function(e){return null==e}},14679:(e,t,n)=>{var o=n(17833),i=n(68438),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:o(e)||e===r}:function(e){return"object"==typeof e?null!==e:o(e)}},70956:e=>{e.exports=!1},88032:(e,t,n)=>{var o=n(16392),i=n(17833),r=n(86919),a=n(6502),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&r(t.prototype,s(e))}},24424:(e,t,n)=>{var o=n(91482),i=n(63248),r=n(70195),a=n(65222),s=n(215),l=n(59631),c=n(86919),u=n(29408),d=n(22544),p=n(13373),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,v,y,_,b,S,E,A=n&&n.that,T=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),k=o(t,A),R=function(e){return g&&p(g,"normal",e),new h(!0,e)},L=function(e){return T?(r(e),C?k(e[0],e[1],R):k(e[0],e[1])):C?k(e,R):k(e)};if(P)g=e.iterator;else if(O)g=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(y=0,_=l(e);_>y;y++)if((b=L(e[y]))&&c(m,b))return b;return new h(!1)}g=u(e,v)}for(S=P?e.next:g.next;!(E=i(S,g)).done;){try{b=L(E.value)}catch(e){p(g,"throw",e)}if("object"==typeof b&&b&&c(m,b))return b}return new h(!1)}},13373:(e,t,n)=>{var o=n(63248),i=n(70195),r=n(88384);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=r(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},5251:e=>{e.exports={}},59631:(e,t,n)=>{var o=n(79397);e.exports=function(e){return o(e.length)}},1262:(e,t,n)=>{var o=n(85581),i=n(24074),r=n(17833),a=n(76031),s=n(97057),l=n(10928).CONFIGURABLE,c=n(62795),u=n(5744),d=u.enforce,p=u.get,f=String,h=Object.defineProperty,m=o("".slice),g=o("".replace),v=o([].join),y=s&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=d(e);return a(o,"source")||(o.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return r(this)&&p(this).source||c(this)}),"toString")},43105:(e,t,n)=>{var o=n(85581),i=Map.prototype;e.exports={Map,set:o(i.set),get:o(i.get),has:o(i.has),remove:o(i.delete),proto:i}},49749:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},26485:(e,t,n)=>{var o=n(18299);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:o(e)}},48892:(e,t,n)=>{var o,i=n(70195),r=n(325),a=n(37884),s=n(741),l=n(3004),c=n(16603),u=n(76714),d="prototype",p="script",f=u("IE_PROTO"),h=function(){},m=function(e){return"<"+p+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&o?g(o):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(o);for(var i=a.length;i--;)delete v[d][a[i]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=i(e),n=new h,h[d]=null,n[f]=e):n=v(),void 0===t?n:r.f(n,t)}},325:(e,t,n)=>{var o=n(97057),i=n(11338),r=n(5184),a=n(70195),s=n(243),l=n(83355);t.f=o&&!i?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),i=l(t),c=i.length,u=0;c>u;)r.f(e,n=i[u++],o[n]);return e}},5184:(e,t,n)=>{var o=n(97057),i=n(49472),r=n(11338),a=n(70195),s=n(58195),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=o?r?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var o=u(e,t);o&&o[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:o[p],enumerable:d in n?n[d]:o[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},29630:(e,t,n)=>{var o=n(97057),i=n(63248),r=n(50347),a=n(24431),s=n(243),l=n(58195),c=n(76031),u=n(49472),d=Object.getOwnPropertyDescriptor;t.f=o?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(r.f,e,t),e[t])}},18933:(e,t,n)=>{var o=n(1778),i=n(37884).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},1307:(e,t)=>{t.f=Object.getOwnPropertySymbols},86919:(e,t,n)=>{var o=n(85581);e.exports=o({}.isPrototypeOf)},1778:(e,t,n)=>{var o=n(85581),i=n(76031),r=n(243),a=n(79099).indexOf,s=n(741),l=o([].push);e.exports=function(e,t){var n,o=r(e),c=0,u=[];for(n in o)!i(s,n)&&i(o,n)&&l(u,n);for(;t.length>c;)i(o,n=t[c++])&&(~a(u,n)||l(u,n));return u}},83355:(e,t,n)=>{var o=n(1778),i=n(37884);e.exports=Object.keys||function(e){return o(e,i)}},50347:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},96250:(e,t,n)=>{var o=n(79616),i=n(70195),r=n(24336);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),r(o),t?e(n,o):n.__proto__=o,n}}():void 0)},36029:(e,t,n)=>{var o=n(63248),i=n(17833),r=n(14679),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!r(s=o(n,e)))return s;if(i(n=e.valueOf)&&!r(s=o(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!r(s=o(n,e)))return s;throw a("Can't convert object to primitive value")}},71250:(e,t,n)=>{var o=n(16392),i=n(85581),r=n(18933),a=n(1307),s=n(70195),l=i([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=a.f;return n?l(t,n(e)):t}},1509:(e,t,n)=>{"use strict";var o=n(70195);e.exports=function(){var e=o(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},82574:(e,t,n)=>{var o=n(63248),i=n(76031),r=n(86919),a=n(1509),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!r(s,e)?t:o(a,e)}},77871:(e,t,n)=>{var o=n(3241),i=TypeError;e.exports=function(e){if(o(e))throw i("Can't call method on "+e);return e}},91274:(e,t,n)=>{"use strict";var o,i=n(91642),r=n(42109),a=n(17833),s=n(24192),l=n(7009),c=n(87289),u=n(36278),d=i.Function,p=/MSIE .\./.test(l)||s&&((o=i.Bun.version.split(".")).length<3||0==o[0]&&(o[1]<3||3==o[1]&&0==o[2]));e.exports=function(e,t){var n=t?2:1;return p?function(o,i){var s=u(arguments.length,1)>n,l=a(o)?o:d(o),p=s?c(arguments,n):[],f=s?function(){r(l,this,p)}:l;return t?e(f,i):e(f)}:e}},14612:(e,t,n)=>{var o=n(85581),i=Set.prototype;e.exports={Set,add:o(i.add),has:o(i.has),remove:o(i.delete),proto:i}},76714:(e,t,n)=>{var o=n(61617),i=n(3582),r=o("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},52752:(e,t,n)=>{var o=n(91642),i=n(99329),r="__core-js_shared__",a=o[r]||i(r,{});e.exports=a},61617:(e,t,n)=>{var o=n(70956),i=n(52752);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:o?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},45799:(e,t,n)=>{var o=n(91642),i=n(24074),r=n(81552),a=n(96911),s=n(67321),l=n(78468),c=o.structuredClone;e.exports=!!c&&!i((function(){if(s&&r>92||l&&r>94||a&&r>97)return!1;var e=new ArrayBuffer(8),t=c(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength}))},97344:(e,t,n)=>{var o=n(81552),i=n(24074);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},70997:(e,t,n)=>{var o,i,r,a,s=n(91642),l=n(42109),c=n(91482),u=n(17833),d=n(76031),p=n(24074),f=n(3004),h=n(87289),m=n(16603),g=n(36278),v=n(68860),y=n(78468),_=s.setImmediate,b=s.clearImmediate,S=s.process,E=s.Dispatch,A=s.Function,T=s.MessageChannel,P=s.String,O=0,C={},k="onreadystatechange";p((function(){o=s.location}));var R=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},L=function(e){return function(){R(e)}},I=function(e){R(e.data)},N=function(e){s.postMessage(P(e),o.protocol+"//"+o.host)};_&&b||(_=function(e){g(arguments.length,1);var t=u(e)?e:A(e),n=h(arguments,1);return C[++O]=function(){l(t,void 0,n)},i(O),O},b=function(e){delete C[e]},y?i=function(e){S.nextTick(L(e))}:E&&E.now?i=function(e){E.now(L(e))}:T&&!v?(a=(r=new T).port2,r.port1.onmessage=I,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!p(N)?(i=N,s.addEventListener("message",I,!1)):i=k in m("script")?function(e){f.appendChild(m("script"))[k]=function(){f.removeChild(this),R(e)}}:function(e){setTimeout(L(e),0)}),e.exports={set:_,clear:b}},47973:(e,t,n)=>{var o=n(96814),i=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?i(n+t,0):r(n,t)}},243:(e,t,n)=>{var o=n(90041),i=n(77871);e.exports=function(e){return o(i(e))}},96814:(e,t,n)=>{var o=n(49749);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},79397:(e,t,n)=>{var o=n(96814),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},70928:(e,t,n)=>{var o=n(77871),i=Object;e.exports=function(e){return i(o(e))}},80423:(e,t,n)=>{var o=n(63248),i=n(14679),r=n(88032),a=n(88384),s=n(36029),l=n(9765),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||r(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!i(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},58195:(e,t,n)=>{var o=n(80423),i=n(88032);e.exports=function(e){var t=o(e,"string");return i(t)?t:t+""}},22415:(e,t,n)=>{var o={};o[n(9765)("toStringTag")]="z",e.exports="[object z]"===String(o)},18299:(e,t,n)=>{var o=n(2562),i=String;e.exports=function(e){if("Symbol"===o(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},65222:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},3582:(e,t,n)=>{var o=n(85581),i=0,r=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+r,36)}},6502:(e,t,n)=>{var o=n(97344);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},11338:(e,t,n)=>{var o=n(97057),i=n(24074);e.exports=o&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},36278:e=>{var t=TypeError;e.exports=function(e,n){if(e{var o=n(91642),i=n(17833),r=o.WeakMap;e.exports=i(r)&&/native code/.test(String(r))},9765:(e,t,n)=>{var o=n(91642),i=n(61617),r=n(76031),a=n(3582),s=n(97344),l=n(6502),c=o.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return r(u,e)||(u[e]=s&&r(c,e)?c[e]:d("Symbol."+e)),u[e]}},10612:(e,t,n)=>{"use strict";var o=n(41959),i=n(79801),r=n(20666);o({target:"Array",proto:!0},{group:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r("group")},80769:(e,t,n)=>{var o=n(41959),i=n(91642),r=n(70997).clear;o({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==r},{clearImmediate:r})},20464:(e,t,n)=>{"use strict";var o=n(41959),i=n(91642),r=n(16392),a=n(24431),s=n(5184).f,l=n(76031),c=n(62533),u=n(95446),d=n(26485),p=n(88738),f=n(75863),h=n(97057),m=n(70956),g="DOMException",v=r("Error"),y=r(g),_=function(){c(this,b);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),o=new y(t,n),i=v(t);return i.name=g,s(o,"stack",a(1,f(i.stack,1))),u(o,this,_),o},b=_.prototype=y.prototype,S="stack"in v(g),E="stack"in new y(1,2),A=y&&h&&Object.getOwnPropertyDescriptor(i,g),T=!(!A||A.writable&&A.configurable),P=S&&!T&&!E;o({global:!0,constructor:!0,forced:m||P},{DOMException:P?_:y});var O=r(g),C=O.prototype;if(C.constructor!==O)for(var k in m||s(C,"constructor",a(1,O)),p)if(l(p,k)){var R=p[k],L=R.s;l(O,L)||s(O,L,a(6,R.c))}},56708:(e,t,n)=>{n(80769),n(26235)},26235:(e,t,n)=>{var o=n(41959),i=n(91642),r=n(70997).set,a=n(91274),s=i.setImmediate?a(r,!1):r;o({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},86504:(e,t,n)=>{var o,i=n(70956),r=n(41959),a=n(91642),s=n(16392),l=n(85581),c=n(24074),u=n(3582),d=n(17833),p=n(9530),f=n(3241),h=n(14679),m=n(88032),g=n(24424),v=n(70195),y=n(2562),_=n(76031),b=n(3437),S=n(90427),E=n(59631),A=n(36278),T=n(82574),P=n(43105),O=n(14612),C=n(77154),k=n(45799),R=a.Object,L=a.Array,I=a.Date,N=a.Error,w=a.EvalError,D=a.RangeError,M=a.ReferenceError,x=a.SyntaxError,F=a.TypeError,U=a.URIError,B=a.PerformanceMark,V=a.WebAssembly,G=V&&V.CompileError||N,J=V&&V.LinkError||N,j=V&&V.RuntimeError||N,H=s("DOMException"),K=P.Map,Y=P.has,W=P.get,z=P.set,q=O.Set,X=O.add,Z=s("Object","keys"),Q=l([].push),$=l((!0).valueOf),ee=l(1..valueOf),te=l("".valueOf),ne=l(I.prototype.getTime),oe=u("structuredClone"),ie="DataCloneError",re="Transferring",ae=function(e){return!c((function(){var t=new a.Set([7]),n=e(t),o=e(R(7));return n==t||!n.has(7)||"object"!=typeof o||7!=o}))&&e},se=function(e,t){return!c((function(){var n=new t,o=e({a:n,b:n});return!(o&&o.a===o.b&&o.a instanceof t&&o.a.stack===n.stack)}))},le=a.structuredClone,ce=i||!se(le,N)||!se(le,H)||(o=le,!!c((function(){var e=o(new a.AggregateError([1],oe,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=oe||3!=e.cause}))),ue=!le&&ae((function(e){return new B(oe,{detail:e}).detail})),de=ae(le)||ue,pe=function(e){throw new H("Uncloneable type: "+e,ie)},fe=function(e,t){throw new H((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",ie)},he=function(e,t){if(m(e)&&pe("Symbol"),!h(e))return e;if(t){if(Y(t,e))return W(t,e)}else t=new K;var n,o,i,r,l,c,u,p,f,g,v,A=y(e),P=!1;switch(A){case"Array":i=L(E(e)),P=!0;break;case"Object":i={},P=!0;break;case"Map":i=new K,P=!0;break;case"Set":i=new q,P=!0;break;case"RegExp":i=new RegExp(e.source,T(e));break;case"Error":switch(o=e.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=w();break;case"RangeError":i=D();break;case"ReferenceError":i=M();break;case"SyntaxError":i=x();break;case"TypeError":i=F();break;case"URIError":i=U();break;case"CompileError":i=G();break;case"LinkError":i=J();break;case"RuntimeError":i=j();break;default:i=N()}P=!0;break;case"DOMException":i=new H(e.message,e.name),P=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=a[A],h(n)||fe(A),i=new n(he(e.buffer,t),e.byteOffset,"DataView"===A?e.byteLength:e.length);break;case"DOMQuad":try{i=new DOMQuad(he(e.p1,t),he(e.p2,t),he(e.p3,t),he(e.p4,t))}catch(t){de?i=de(e):fe(A)}break;case"FileList":if(r=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(l=0,c=E(e);l1&&!f(arguments[1])?v(arguments[1]):void 0,o=n?n.transfer:void 0;return void 0!==o&&function(e,t){if(!h(e))throw F("Transfer option cannot be converted to a sequence");var n=[];g(e,(function(e){Q(n,v(e))}));var o,i,r,s,l,c,u=0,f=E(n);if(k)for(s=le(n,{transfer:n});u-1};function r(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 a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?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 c(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=u(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(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.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(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?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,o=c(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=u(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o-1?o: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 g(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}})),t}function v(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 l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},f.call(m.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var y=[301,302,303,307,308];v.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new v(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 _(e,o){return new Promise((function(i,r){var a=new m(e,o);if(a.signal&&a.signal.aborted)return r(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();t.append(o,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;i(new v(o,n))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.onabort=function(){r(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&&n.blob&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=l,e.Request=m,e.Response=v),t.Headers=l,t.Request=m,t.Response=v,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(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},29215:(e,t,n)=>{t.UINT32=n(8397),t.UINT64=n(49364)},8397:function(e,t){var n;!function(o){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 r.call(this,e,t)):new i(e,t)}function r(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=r,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,o=this._high,i=this._low,r=e._high,a=e._low;return t=(n=i*a)>>>16,t+=o*a,t&=65535,t+=i*r,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)}()},49364:function(e,t){var n;!function(o){var i={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},r={16:a(16),10:a(10),2:a(2)};function a(e,t,n,o){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,o)}function s(e,t,n,o){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|o,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)),o=0,r=e.length;o=0&&(n.div(t),o[i]=n.remainder.toNumber().toString(e),n.gt(t));i--);return o[i-1]=n.toNumber().toString(e),o.join("")},a.prototype.add=function(e){var t=this._a00+e._a00,n=t>>>16,o=(n+=this._a16+e._a16)>>>16,i=(o+=this._a32+e._a32)>>>16;return i+=this._a48+e._a48,this._a00=65535&t,this._a16=65535&n,this._a32=65535&o,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,o=this._a32,i=this._a48,r=e._a00,a=e._a16,s=e._a32,l=t*r,c=l>>>16,u=(c+=t*a)>>>16;c&=65535,u+=(c+=n*r)>>>16;var d=(u+=t*s)>>>16;return u&=65535,d+=(u+=n*a)>>>16,u&=65535,d+=(u+=o*r)>>>16,d+=t*e._a48,d&=65535,d+=n*s,d&=65535,d+=o*a,d&=65535,d+=i*r,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,o=this._a16<<16|this._a00,i=n<>>32-e,r=o<>>32-e;return this._a00=65535&r,this._a16=r>>>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,o=this._a16<<16|this._a00,i=n>>>e|o<<32-e,r=o>>>e|n<<32-e;return this._a00=65535&r,this._a16=r>>>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)}()},35529:(e,t,n)=>{var o=n(14224);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 o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))})),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!==o&&"env"in o&&(e={}.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(52456)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},52456:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,r,a=null;function s(...e){if(!s.enabled)return;const o=s,i=Number(new Date),r=i-(n||i);o.diff=r,o.prev=n,o.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 r=t.formatters[i];if("function"==typeof r){const t=e[a];n=r.call(o,t),e.splice(a,1),a--}return n})),t.formatArgs.call(o,e);(o.log||t.log).apply(o,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=o,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,r=t.enabled(e)),r),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}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 o=("string"==typeof e?e:"").split(/[\s,]+/),i=o.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 o=Object.getOwnPropertyDescriptor(e,t);if(!o)throw new TypeError("must call property on owner object");if(!o.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function o(e){}return o._file=void 0,o._ignored=!0,o._namespace=e,o._traced=!1,o._warned=Object.create(null),o.function=t,o.property=n,o}},13706:(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},91612:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=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,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=n(13706),a=n(4409);i(n(4409),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new a.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4409:function(e,t,n){"use strict";var o,i=this&&this.__extends||(o=function(e,t){return o=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])},o(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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,o=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}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,o,i){void 0===o&&(o=[]),void 0===i&&(i="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var r=e.call(this,o)||this;return r.name=t,r.attribs=n,r.type=i,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),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,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(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 S(e){return e.type===a.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(_(e))n=new u(e.data);else if(g(e)){var o=t?A(e.children):[],i=new m(e.name,r({},e.attribs),o);o.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=r({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=r({},e["x-attribsPrefix"])),n=i}else if(v(e)){o=t?A(e.children):[];var a=new f(o);o.forEach((function(e){return e.parent=a})),n=a}else if(S(e)){o=t?A(e.children):[];var s=new h(o);o.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!b(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function A(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n{var o;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)}()},3341: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 o,i,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(i=o;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((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,r[i]))return!1;for(i=o;0!=i--;){var a=r[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},39689: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,o){if(o=o||{},"function"!=typeof n)throw new t("fetch must be a function");if("object"!=typeof o)throw new t("defaults must be an object");if(void 0!==o.retries&&!e(o.retries))throw new t("retries must be a positive integer");if(void 0!==o.retryDelay&&!e(o.retryDelay)&&"function"!=typeof o.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==o.retryOn&&!Array.isArray(o.retryOn)&&"function"!=typeof o.retryOn)throw new t("retryOn property expects an array or function");var i={retries:3,retryDelay:1e3,retryOn:[]};return o=Object.assign(i,o),function(i,r){var a=o.retries,s=o.retryDelay,l=o.retryOn;if(r&&void 0!==r.retries){if(!e(r.retries))throw new t("retries must be a positive integer");a=r.retries}if(r&&void 0!==r.retryDelay){if(!e(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");s=r.retryDelay}if(r&&r.retryOn){if(!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new t("retryOn property expects an array or function");l=r.retryOn}return new Promise((function(e,t){var o=function(o){var s="undefined"!=typeof Request&&i instanceof Request?i.clone():i;n(s,r).then((function(n){if(Array.isArray(l)&&-1===l.indexOf(n.status))e(n);else if("function"==typeof l)try{return Promise.resolve(l(o,null,n)).then((function(t){t?c(o,null,n):e(n)})).catch(t)}catch(e){t(e)}else o{"use strict";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},o(e)}function i(e,t){for(var n=0;n element.");return l.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(l.Component),f="undefined"==typeof Element?Function:Element;p.propTypes={active:u.bool,paused:u.bool,focusTrapOptions:u.shape({document:u.object,onActivate:u.func,onPostActivate:u.func,checkCanFocusTrap:u.func,onDeactivate:u.func,onPostDeactivate:u.func,checkCanReturnFocus:u.func,initialFocus:u.oneOfType([u.instanceOf(f),u.string,u.func,u.bool]),fallbackFocus:u.oneOfType([u.instanceOf(f),u.string,u.func]),escapeDeactivates:u.oneOfType([u.bool,u.func]),clickOutsideDeactivates:u.oneOfType([u.bool,u.func]),returnFocusOnDeactivate:u.bool,setReturnFocus:u.oneOfType([u.instanceOf(f),u.string,u.func]),allowOutsideClick:u.oneOfType([u.bool,u.func]),preventScroll:u.bool}),containerElements:u.arrayOf(u.instanceOf(f)),children:u.oneOfType([u.element,u.instanceOf(f)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},45523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>T});var o=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=o.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t,n){var o=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&r.call(e,i)&&o.unshift(e),o=o.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,o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(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(r.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var o=e.getBoundingClientRect(),i=o.width,a=o.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)},S=function(e,t){var n=-1;return e.every((function(e,o){return!t(e)||(n=o,!1)})),n},E=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?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=r.findIndex((function(t){return t===e}));return t?r.slice(n+1).find((function(e){return f(e)})):r.slice(0,n).reverse().find((function(e){return f(e)}))}}})).filter((function(e){return!!e})),r.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")},P=function e(t){!1!==t&&t!==o.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),r.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(y()))},O=function(e){var t=h("setReturnFocus",e);return t||!1!==t&&e},C=function(e){var t=A(e);u(t)||(E(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!m(t)}):E(i.allowOutsideClick,e)||e.preventDefault())},k=function(e){var t=A(e),n=u(t);n||t instanceof Document?n&&(r.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),P(r.mostRecentlyFocusedNode||y()))},R=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==E(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=A(e);T();var n=null;if(r.tabbableGroups.length>0){var o=S(r.tabbableGroups,(function(e){return e.container.contains(t)})),i=o>=0?r.tabbableGroups[o]:void 0;if(o<0)n=e.shiftKey?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var a=S(r.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(a<0&&(i.container===t||m(t)&&!f(t)&&!i.nextTabbableNode(t,!1))&&(a=o),a>=0){var s=0===a?r.tabbableGroups.length-1:a-1;n=r.tabbableGroups[s].lastTabbableNode}}else{var l=S(r.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&(i.container===t||m(t)&&!f(t)&&!i.nextTabbableNode(t))&&(l=o),l>=0){var c=l===r.tabbableGroups.length-1?0:l+1;n=r.tabbableGroups[c].firstTabbableNode}}}else n=h("fallbackFocus");n&&(e.preventDefault(),P(n))}(e)},L=function(e){if(!E(i.clickOutsideDeactivates,e)){var t=A(e);u(t)||E(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},I=function(){if(r.active)return _.activateTrap(n),r.delayInitialFocusTimer=i.delayInitialFocus?b((function(){P(y())})):P(y()),o.addEventListener("focusin",k,!0),o.addEventListener("mousedown",C,{capture:!0,passive:!1}),o.addEventListener("touchstart",C,{capture:!0,passive:!1}),o.addEventListener("click",L,{capture:!0,passive:!1}),o.addEventListener("keydown",R,{capture:!0,passive:!1}),n},N=function(){if(r.active)return o.removeEventListener("focusin",k,!0),o.removeEventListener("mousedown",C,!0),o.removeEventListener("touchstart",C,!0),o.removeEventListener("click",L,!0),o.removeEventListener("keydown",R,!0),n};return(n={activate:function(e){if(r.active)return this;var t=c(e,"onActivate"),n=c(e,"onPostActivate"),i=c(e,"checkCanFocusTrap");i||T(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=o.activeElement,t&&t();var a=function(){i&&T(),I(),n&&n()};return i?(i(r.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!r.active)return this;clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,N(),r.active=!1,r.paused=!1,_.deactivateTrap(n);var t=c(e,"onDeactivate"),o=c(e,"onPostDeactivate"),i=c(e,"checkCanReturnFocus");t&&t();var a=c(e,"returnFocus","returnFocusOnDeactivate"),s=function(){b((function(){a&&P(O(r.nodeFocusedBeforeActivation)),o&&o()}))};return a&&i?(i(O(r.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(){return r.paused||!r.active||(r.paused=!0,N()),this},unpause:function(){return r.paused&&r.active?(r.paused=!1,T(),I(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?o.querySelector(e):e})),r.active&&T(),this}}).updateContainerElements(e),n}},46731:(e,t,n)=>{const o=n(84842),i=n(23392).a,r=n(41966).a,a=n(9981),s=n(61329).Base64,l=new a(s.toUint8Array(i)),c=new a(s.toUint8Array(r));function u(e,t){return 0!=(e&t)}const d={Initial:0,ExtendOrZWJ:1,NotBoundary:2};function p(e,t){const n=e.length;let i=0,r=d.Initial;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}},38366:(e,t,n)=>{"use strict";n.d(t,{lX:()=>P,PP:()=>R});var o=n(56962),i=n.n(o),r=n(53670),a=n.n(r);function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,o=n+1,i=e.length;o1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&s(e),r=t&&s(t),a=i||r;if(e&&s(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var d=0,p=o.length;p>=0;p--){var f=o[p];"."===f?l(o,p):".."===f?(l(o,p),d++):d&&(l(o,p),d--)}if(!a)for(;d--;d)o.unshift("..");!a||""===o[0]||o[0]&&s(o[0])||o.unshift("");var h=o.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var u=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},p=function(e){var t=e.pathname,n=e.search,o=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(i+="#"===o.charAt(0)?o:"#"+o),i},f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(g,"Browser history needs a DOM");var t,n,o=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),l=e.forceRefresh,c=void 0!==l&&l,f=e.getUserConfirmation,P=void 0===f?_:f,O=e.keyLength,C=void 0===O?6:O,k=e.basename?"/"===(n=u(e.basename)).charAt(n.length-1)?n.slice(0,-1):n:"",R=function(e){var t=e||{},n=t.key,o=t.state,r=window.location,a=r.pathname+r.search+r.hash;return i()(!k||d(a,k),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+k+'".'),k&&(a=function(e,t){return d(e,t)?e.substr(t.length):e}(a,k)),h(a,o,n)},L=function(){return Math.random().toString(36).substr(2,C)},I=m(),N=function(e){S(K,e),K.length=o.length,I.notifyListeners(K.location,K.action)},w=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||x(R(e.state))},D=function(){x(R(T()))},M=!1,x=function(e){if(M)M=!1,N();else{I.confirmTransitionTo(e,"POP",P,(function(t){t?N({action:"POP",location:e}):F(e)}))}},F=function(e){var t=K.location,n=B.indexOf(t.key);-1===n&&(n=0);var o=B.indexOf(e.key);-1===o&&(o=0);var i=n-o;i&&(M=!0,G(i))},U=R(T()),B=[U.key],V=function(e){return k+p(e)},G=function(e){o.go(e)},J=0,j=function(e){1===(J+=e)?(v(window,E,w),s&&v(window,A,D)):0===J&&(y(window,E,w),s&&y(window,A,D))},H=!1,K={length:o.length,action:"POP",location:U,createHref:V,push:function(e,t){i()(!("object"===(void 0===e?"undefined":b(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var n="PUSH",a=h(e,t,L(),K.location);I.confirmTransitionTo(a,n,P,(function(e){if(e){var t=V(a),s=a.key,l=a.state;if(r)if(o.pushState({key:s,state:l},null,t),c)window.location.href=t;else{var u=B.indexOf(K.location.key),d=B.slice(0,-1===u?0:u+1);d.push(a.key),B=d,N({action:n,location:a})}else i()(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}}))},replace:function(e,t){i()(!("object"===(void 0===e?"undefined":b(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var n="REPLACE",a=h(e,t,L(),K.location);I.confirmTransitionTo(a,n,P,(function(e){if(e){var t=V(a),s=a.key,l=a.state;if(r)if(o.replaceState({key:s,state:l},null,t),c)window.location.replace(t);else{var u=B.indexOf(K.location.key);-1!==u&&(B[u]=a.key),N({action:n,location:a})}else i()(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}}))},go:G,goBack:function(){return G(-1)},goForward:function(){return G(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return H||(j(1),H=!0),function(){return H&&(H=!1,j(-1)),t()}},listen:function(e){var t=I.appendListener(e);return j(1),function(){j(-1),t()}}};return K};Object.assign;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},C=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,o=void 0===n?["/"]:n,r=e.initialIndex,a=void 0===r?0:r,s=e.keyLength,l=void 0===s?6:s,c=m(),u=function(e){C(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)},d=function(){return Math.random().toString(36).substr(2,l)},f=k(a,0,o.length-1),g=o.map((function(e){return h(e,void 0,"string"==typeof e?d():e.key||d())})),v=p,y=function(e){var n=k(_.index+e,0,_.entries.length-1),o=_.entries[n];c.confirmTransitionTo(o,"POP",t,(function(e){e?u({action:"POP",location:o,index:n}):u()}))},_={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:v,push:function(e,n){i()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",r=h(e,n,d(),_.location);c.confirmTransitionTo(r,o,t,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),u({action:o,location:r,index:t,entries:n})}}))},replace:function(e,n){i()(!("object"===(void 0===e?"undefined":O(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",r=h(e,n,d(),_.location);c.confirmTransitionTo(r,o,t,(function(e){e&&(_.entries[_.index]=r,u({action:o,location:r}))}))},go:y,goBack:function(){return y(-1)},goForward:function(){return y(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},72535:(e,t,n)=>{"use strict";var o=n(56237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={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 o.isMemo(e)?a:s[e.$$typeof]||i}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.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,o){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,o)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},83810:e=>{var t="html",n="head",o="body",i=/<([a-zA-Z]+[0-9]?)/,r=//i,a=//i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,f="object"==typeof document?document.createElement("template"):{};f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var c,u,d,f,h=e.match(i);switch(h&&h[1]&&(c=h[1].toLowerCase()),c){case t:return u=l(e),r.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),a.test(e)||(d=u.querySelector(o))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case o:return f=(u=s(e)).querySelectorAll(c),a.test(e)&&r.test(e)?f[0].parentNode.childNodes:f;default:return p?p(e):(d=s(e,o).querySelector(o)).childNodes}}},52009:(e,t,n)=>{var o=n(83810),i=n(73039).formatDOM,r=/<(![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(r);return n&&n[1]&&(t=n[1]),i(o(e),null,t)}},73039:(e,t,n)=>{for(var o,i=n(91612),r=n(1062).CASE_SENSITIVE_TAG_NAMES,a=i.Comment,s=i.Element,l=i.ProcessingInstruction,c=i.Text,u={},d=0,p=r.length;d{var o=n(91612),i=n(52009),r=n(29916),a=n(82025);i="function"==typeof i.default?i.default:i;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(i(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=a,l.htmlToDOM=i,l.attributesToProps=r,l.Comment=o.Comment,l.Element=o.Element,l.ProcessingInstruction=o.ProcessingInstruction,l.Text=o.Text,e.exports=l,l.default=l},29916:(e,t,n)=>{var o=n(26509),i=n(73746),r=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return o.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,f={},h=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],o.isCustomAttribute(n))f[n]=u;else if(d=l(c=n.toLowerCase()))switch(p=o.getPropertyInfo(d),-1===r.indexOf(d)||-1===a.indexOf(t)||h||(d=l("default"+c)),f[d]=u,p&&p.type){case o.BOOLEAN:f[d]=!0;break;case o.OVERLOADED_BOOLEAN:""===u&&(f[d]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(f[n]=u);return i.setStyleProp(e.style,f),f}},82025:(e,t,n)=>{var o=n(59496),i=n(29916),r=n(73746),a=r.setStyleProp,s=r.canTextBeChildOfNode;function l(e){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&r.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var r,c,u,d,p,f=(n=n||{}).library||o,h=f.cloneElement,m=f.createElement,g=f.isValidElement,v=[],y="function"==typeof n.replace,_=n.trim,b=0,S=t.length;b1&&(u=h(u,{key:u.key||b})),v.push(u);else if("text"!==r.type){switch(d=r.attribs,l(r)?a(d.style,d):d&&(d=i(d,r.name)),p=null,r.type){case"script":case"style":r.children[0]&&(d.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?d.defaultValue=r.children[0].data:r.children&&r.children.length&&(p=e(r.children,n));break;default:continue}S>1&&(d.key=b),v.push(m(r.name,d,p))}else{if((c=!r.data.trim().length)&&r.parent&&!s(r.parent))continue;if(_&&c)continue;v.push(r.data)}return 1===v.length?v[0]:v}},73746:(e,t,n)=>{var o=n(59496),i=n(75090).default;var r={reactCompat:!0};var a=o.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,o,i="function"==typeof t,r={},a={};for(n in e)o=e[n],i&&(r=t(n,o))&&2===r.length?a[r[0]]=r[1]:"string"==typeof o&&(a[o]=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,r)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},4417:function(e,t,n){e.exports=function(e){"use strict";function t(e,t,o,i){return void 0===t&&(t={}),Object.keys(t).reduce((function(r,a){if(/^on.*/.test(a))return r;var s=a;/^(data|aria)-/.test(a)||0===o.filter((function(e){return e instanceof RegExp?e.test(a):e===a})).length&&(s=n(a));var l,c,u=i(e,s);if("style"===u.name)r[u.name]=(l=t.style,c={},l.split(";").filter((function(e){return""!==e.trim()})).forEach((function(e){var t,o=e.split(":");if(o.length>1){var i=function(e){return/^-ms-/.test(e)&&(e=e.substr(1)),e.startsWith("--")?e:n(e)}(o[0].trim()),r=(t=o.slice(1).join(":").trim(),/^\d+$/.test(t)?Number(t):t.replace(/'/g,'"'));c[i]=r}})),c);else{var d=t[a],p=""===d||String(d).toLowerCase()===s.toLowerCase();r[u.name]=u.isBoolean?p:d}return r}),{})}function n(e){return e.replace(/(-|:)(.)/g,(function(e,t,n){return n.toUpperCase()}))}e=e&&e.hasOwnProperty("default")?e.default:e;var o=["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",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function r(e,t){var n=i[t],o=document.createElement(e);if(n)return{name:Array.isArray(n)?n[0]:n,isBoolean:a(o,Array.isArray(n)?n[1]||t:n)};for(var r in o)if(r.toLowerCase()===t.toLowerCase())return{name:r,isBoolean:a(o,r)};return{name:t,isBoolean:a(o,t)}}function a(e,t){return e.setAttribute(t,""),!0===e[t]||s.indexOf(t)>-1}var s=["itemScope"];function l(t,n,o,i){void 0===i&&(i=null);var r=o[t],a=o._;return r?e.createElement(r,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 s=a.transform||{},c=a.preserveAttributes||[],u=a.dangerouslySetChildren||["style"],d=s._;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,m=0;m-1&&3===t.nodeType&&(t.textContent=t.textContent.trim(),""===t.textContent)?null:e(t,i+"."+n,a)})).filter(Boolean);if(u.indexOf(g)>-1){var _=n.innerHTML;return _&&("style"!==g&&"script"!==g&&(_=_.replace(/"/g,""")),v.dangerouslySetInnerHTML={__html:_.trim()}),l(g,v,s)}var b=0===y.length?null:y;return l(g,v,s,b)}(e,String(i),n)})).filter(Boolean);return 1===a.length?a[0]:a}}(n(59496))},16556:(e,t,n)=>{"use strict";var o,i=n(74622)("http-errors"),r=n(75561),a=n(14435),s=n(2937),l=n(66730);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,o=500,r={},s=0;s=600)&&i("non-error status code; use only 4xx or 5xx status codes");("number"!=typeof o||!a.message[o]&&(o<400||o>=600))&&(o=500);var d=e[o]||e[c(o)];t||(t=d?new d(n):new Error(n||a.message[o]),Error.captureStackTrace(t,e));d&&t instanceof d&&t.status===o||(t.expose=o<500,t.status=t.statusCode=o);for(var p in r)"status"!==p&&"statusCode"!==p&&(t[p]=r[p]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(o=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof o||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,n){t.forEach((function(t){var o,i=l(a.message[t]);switch(c(t)){case 400:o=function(e,t,n){var o=d(t);function i(e){var t=null!=e?e:a.message[n],s=new Error(t);return Error.captureStackTrace(s,i),r(s,i.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:o,writable:!0}),s}return s(i,e),u(i,o),i.prototype.status=n,i.prototype.statusCode=n,i.prototype.expose=!0,i}(n,i,t);break;case 500:o=function(e,t,n){var o=d(t);function i(e){var t=null!=e?e:a.message[n],s=new Error(t);return Error.captureStackTrace(s,i),r(s,i.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:o,writable:!0}),s}return s(i,e),u(i,o),i.prototype.status=n,i.prototype.statusCode=n,i.prototype.expose=!1,i}(n,i,t)}o&&(e[t]=o,e[i]=o)}))}(e.exports,a.codes,e.exports.HttpError)},30551:(e,t)=>{t.read=function(e,t,n,o,i){var r,a,s=8*i-o-1,l=(1<>1,u=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),r-=c}return(f?-1:1)*a*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var a,s,l,c=8*r-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,h=o?1:-1,m=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*m}},2937: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}}},55309:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\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 o=e.lastIndexOf("\n");p=~o?e.length-o:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function v(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;g.push(n)}function y(t){var n=t.exec(e);if(n){var o=n[0];return f(o),e=e.slice(o.length),n}}function _(){y(o)}function b(e){var t;for(e=e||[];t=S();)!1!==t&&e.push(t);return e}function S(){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 v("End of comment missing");var o=e.slice(2,n-2);return p+=2,f(o),e=e.slice(n),p+=2,t({type:"comment",comment:o})}}function E(){var e=h(),n=y(i);if(n){if(S(),!y(r))return v("property missing ':'");var o=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:o?u(o[0].replace(t,c)):c});return y(s),l}}return _(),function(){var e,t=[];for(b(t);e=E();)!1!==e&&(t.push(e),b(t));return t}()}},53670:e=>{"use strict";e.exports=function(e,t,n,o,i,r,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,o,i,r,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},48254:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},61329:function(e,t,n){var o=n(55872).lW;"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,r="function"==typeof o,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?"-":"_"}))},m=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},g=function(e){for(var t,n,o,i,r="",a=e.length%3,s=0;s255||(o=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");r+=c[(t=n<<16|o<<8|i)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return a?r.slice(0,a-3)+"===".substring(a):r},v=i?function(e){return btoa(e)}:r?function(e){return o.from(e,"binary").toString("base64")}:g,y=r?function(e){return o.from(e).toString("base64")}:function(e){for(var t=4096,n=[],o=0,i=e.length;o>>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)},S=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=function(e){return e.replace(S,b)},A=r?function(e){return o.from(e,"utf8").toString("base64")}:s?function(e){return y(s.encode(e))}:function(e){return v(E(e))},T=function(e,t){return void 0===t&&(t=!1),t?h(A(e)):A(e)},P=function(e){return T(e,!0)},O=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=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))}},k=function(e){return e.replace(O,C)},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,o,i="",r=0;r>16&255):64===o?p(t>>16&255,t>>8&255):p(t>>16&255,t>>8&255,255&t);return i},L=n?function(e){return atob(m(e))}:r?function(e){return o.from(e,"base64").toString("binary")}:R,I=r?function(e){return f(o.from(e,"base64"))}:function(e){return f(L(e),(function(e){return e.charCodeAt(0)}))},N=function(e){return I(D(e))},w=r?function(e){return o.from(e,"base64").toString("utf8")}:a?function(e){return a.decode(I(e))}:function(e){return k(L(e))},D=function(e){return m(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}},F=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 T(this,e)})),e("toBase64URI",(function(){return T(this,!0)})),e("toBase64URL",(function(){return T(this,!0)})),e("toUint8Array",(function(){return N(this)}))},U=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)}))},B=function(){F(),U()},V={version:e,VERSION:t,atob:L,atobPolyfill:R,btoa:v,btoaPolyfill:g,fromBase64:M,toBase64:T,encode:T,encodeURI:P,encodeURL:P,utob:E,btou:k,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:N,extendString:F,extendUint8Array:U,extendBuiltins:B,Base64:{}};return Object.keys(V).forEach((function(e){return V.Base64[e]=V[e]})),V}()},68961:(module,exports,__webpack_require__)=>{var process=__webpack_require__(14224),__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[r]<>6,l[i++]=128|63&o):o<55296||o>=57344?(l[i++]=224|o>>12,l[i++]=128|o>>6&63,l[i++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),l[i++]=240|o>>18,l[i++]=128|o>>12&63,l[i++]=128|o>>6&63,l[i++]=128|63&o);else for(i=this.start;r>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(s[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=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,o,i,r,a=this.blocks;this.first?t=((t=((e=((e=a[0]-680876937)<<7|e>>>25)-271733879<<0)^(n=((n=(-271733879^(o=((o=(-1732584194^2004318071&e)+a[1]-117830708)<<12|o>>>20)+e<<0)&(-271733879^e))+a[2]-1126478375)<<17|n>>>15)+o<<0)&(o^e))+a[3]-1316259209)<<22|t>>>10)+n<<0:(e=this.h0,t=this.h1,n=this.h2,t=((t+=((e=((e+=((o=this.h3)^t&(n^o))+a[0]-680876936)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[1]-389564586)<<12|o>>>20)+e<<0)&(e^t))+a[2]+606105819)<<17|n>>>15)+o<<0)&(o^e))+a[3]-1044525330)<<22|t>>>10)+n<<0),t=((t+=((e=((e+=(o^t&(n^o))+a[4]-176418897)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[5]+1200080426)<<12|o>>>20)+e<<0)&(e^t))+a[6]-1473231341)<<17|n>>>15)+o<<0)&(o^e))+a[7]-45705983)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(o^t&(n^o))+a[8]+1770035416)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[9]-1958414417)<<12|o>>>20)+e<<0)&(e^t))+a[10]-42063)<<17|n>>>15)+o<<0)&(o^e))+a[11]-1990404162)<<22|t>>>10)+n<<0,t=((t+=((e=((e+=(o^t&(n^o))+a[12]+1804603682)<<7|e>>>25)+t<<0)^(n=((n+=(t^(o=((o+=(n^e&(t^n))+a[13]-40341101)<<12|o>>>20)+e<<0)&(e^t))+a[14]-1502002290)<<17|n>>>15)+o<<0)&(o^e))+a[15]+1236535329)<<22|t>>>10)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[1]-165796510)<<5|e>>>27)+t<<0)^t))+a[6]-1069501632)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[11]+643717713)<<14|n>>>18)+o<<0)^o))+a[0]-373897302)<<20|t>>>12)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[5]-701558691)<<5|e>>>27)+t<<0)^t))+a[10]+38016083)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[15]-660478335)<<14|n>>>18)+o<<0)^o))+a[4]-405537848)<<20|t>>>12)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[9]+568446438)<<5|e>>>27)+t<<0)^t))+a[14]-1019803690)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[3]-187363961)<<14|n>>>18)+o<<0)^o))+a[8]+1163531501)<<20|t>>>12)+n<<0,t=((t+=((o=((o+=(t^n&((e=((e+=(n^o&(t^n))+a[13]-1444681467)<<5|e>>>27)+t<<0)^t))+a[2]-51403784)<<9|o>>>23)+e<<0)^e&((n=((n+=(e^t&(o^e))+a[7]+1735328473)<<14|n>>>18)+o<<0)^o))+a[12]-1926607734)<<20|t>>>12)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[5]-378558)<<4|e>>>28)+t<<0))+a[8]-2022574463)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[11]+1839030562)<<16|n>>>16)+o<<0))+a[14]-35309556)<<23|t>>>9)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[1]-1530992060)<<4|e>>>28)+t<<0))+a[4]+1272893353)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[7]-155497632)<<16|n>>>16)+o<<0))+a[10]-1094730640)<<23|t>>>9)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[13]+681279174)<<4|e>>>28)+t<<0))+a[0]-358537222)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[3]-722521979)<<16|n>>>16)+o<<0))+a[6]+76029189)<<23|t>>>9)+n<<0,t=((t+=((r=(o=((o+=((i=t^n)^(e=((e+=(i^o)+a[9]-640364487)<<4|e>>>28)+t<<0))+a[12]-421815835)<<11|o>>>21)+e<<0)^e)^(n=((n+=(r^t)+a[15]+530742520)<<16|n>>>16)+o<<0))+a[2]-995338651)<<23|t>>>9)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[0]-198630844)<<6|e>>>26)+t<<0)|~n))+a[7]+1126891415)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[14]-1416354905)<<15|n>>>17)+o<<0)|~e))+a[5]-57434055)<<21|t>>>11)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[12]+1700485571)<<6|e>>>26)+t<<0)|~n))+a[3]-1894986606)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[10]-1051523)<<15|n>>>17)+o<<0)|~e))+a[1]-2054922799)<<21|t>>>11)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[8]+1873313359)<<6|e>>>26)+t<<0)|~n))+a[15]-30611744)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[6]-1560198380)<<15|n>>>17)+o<<0)|~e))+a[13]+1309151649)<<21|t>>>11)+n<<0,t=((t+=((o=((o+=(t^((e=((e+=(n^(t|~o))+a[4]-145523070)<<6|e>>>26)+t<<0)|~n))+a[11]-1120210379)<<10|o>>>22)+e<<0)^((n=((n+=(e^(o|~t))+a[2]+718787259)<<15|n>>>17)+o<<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=o+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+o<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,o=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[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,o=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&o,o>>8&255,o>>16&255,o>>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,o="",i=this.array(),r=0;r<15;)e=i[r++],t=i[r++],n=i[r++],o+=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[r],o+=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__)))})()},29168: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 o(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=o;var i={},r={};function a(e,t){var n,o,a;return t?(a=0<=(e>>>=0)&&e<256)&&(o=r[e])?o:(n=l(e,(0|e)<0?-1:0,!0),a&&(r[e]=n),n):(a=-128<=(e|=0)&&e<128)&&(o=i[e])?o:(n=l(e,e<0?-1:0,!1),a&&(i[e]=n),n)}function s(e,t){if(isNaN(e))return t?v:g;if(t){if(e<0)return v;if(e>=f)return E}else{if(e<=-h)return A;if(e+1>=h)return S}return e<0?s(-e,t).neg():l(e%p|0,e/p|0,t)}function l(e,t,o){return new n(e,t,o)}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 g;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===o)return u(e.substring(1),t,n).neg();for(var i=s(c(n,8)),r=g,a=0;a>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},T.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((r=l).isZero())return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.getNumBitsAbs=function(){if(this.isNegative())return this.eq(A)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},T.isOdd=function(){return 1==(1&this.low)},T.isEven=function(){return 0==(1&this.low)},T.equals=function(e){return o(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.compare=function(e){if(o(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},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(A)?A:this.not().add(y)},T.neg=T.negate,T.add=function(e){o(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,r=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+=r+(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)},T.subtract=function(e){return o(e)||(e=d(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){if(this.isZero())return g;if(o(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 g;if(this.eq(A))return e.isOdd()?A:g;if(e.eq(A))return this.isOdd()?A:g;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(m)&&e.lt(m))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=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,v=0,y=0,_=0;return y+=(_+=a*f)>>>16,v+=(y+=r*f)>>>16,y&=65535,v+=(y+=a*p)>>>16,h+=(v+=i*f)>>>16,v&=65535,h+=(v+=r*p)>>>16,v&=65535,h+=(v+=a*u)>>>16,h+=n*f+i*p+r*u+a*c,l((y&=65535)<<16|(_&=65535),(h&=65535)<<16|(v&=65535),this.unsigned)},T.mul=T.multiply,T.divide=function(e){if(o(e)||(e=d(e)),e.isZero())throw Error("division by zero");var n,i,r;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?v:g;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return v;if(e.gt(this.shru(1)))return _;r=v}else{if(this.eq(A))return e.eq(y)||e.eq(b)?A:e.eq(A)?y:(n=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?y:b:(i=this.sub(e.mul(n)),r=n.add(i.div(e)));if(e.eq(A))return this.unsigned?v:g;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=g}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),r=r.add(p),i=i.sub(f)}return r},T.div=T.divide,T.modulo=function(e){return o(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))},T.mod=T.modulo,T.rem=T.modulo,T.not=function(){return l(~this.low,~this.high,this.unsigned)},T.and=function(e){return o(e)||(e=d(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return o(e)||(e=d(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return o(e)||(e=d(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return o(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)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){if(o(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)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.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]},T.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,o){return o?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)}},8049:()=>{},62505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o={}},66685:(e,t,n)=>{var o;!function(i,r,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 o=this;return e=e instanceof Array?e:[e],o._bindMultiple.call(o,e,t,n),o},_.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(){return this._handleKey.apply(this,arguments)},_.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},_.init=function(){var e=_(r);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===(o=function(){return _}.call(t,n,t,e))||(e.exports=o)}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 m(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function g(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 v(e,t){var n,o,i,r=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i1?p(e,s,n,o):(a=v(e,o),t._callbacks[a.key]=t._callbacks[a.key]||[],c(a.key,a.modifiers,{type:a.action},i,e,r),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:r,combo:e}))}t._handleKey=function(e,t,n){var o,i=c(e,t,n),r={},d=0,p=!1;for(o=0;o{var t=1e3,n=60*t,o=60*n,i=24*o,r=7*i,a=365.25*i;function s(e,t,n,o){var i=t>=1.5*n;return Math.round(e/n)+" "+o+(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*r;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;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 r=Math.abs(e);if(r>=i)return s(e,r,i,"day");if(r>=o)return s(e,r,o,"hour");if(r>=n)return s(e,r,n,"minute");if(r>=t)return s(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=i)return Math.round(e/i)+"d";if(r>=o)return Math.round(e/o)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=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))}},22767:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;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 o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var r,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{"use strict";n.d(t,{E:()=>a});var o=n(59496),i=n(67446),r=n.n(i);class a extends o.Component{constructor(e){super(e),this._osInstance=null,this._osTargetRef=o.createRef()}osInstance(){return this._osInstance}osTarget(){return this._osTargetRef.current||null}componentDidMount(){this._osInstance=r()(this.osTarget(),this.props.options||{},this.props.extensions),s(this._osInstance,this.props.className)}componentWillUnmount(){r().valid(this._osInstance)&&(this._osInstance.destroy(),this._osInstance=null)}componentDidUpdate(e){r().valid(this._osInstance)&&(this._osInstance.options(this.props.options),e.className!==this.props.className&&s(this._osInstance,this.props.className))}render(){const e=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);ie.match(o))).join(" ");n.className=`${i} ${t||""}`}}},67446:function(e,t,n){var o;!function(i,r){o=function(){return function(e,t,n){"use strict";var o="OverlayScrollbars",i={o:"object",f:"function",a:"array",s:"string",b:"boolean",n:"number",u:"undefined",z:"null"},r={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 o={},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 o=i[e];if(i[r.hOP](e))return o;for(var a,l,u,d=c(e),p=t.createElement("div")[r.s],f=0;f0&&t-1 in e)}function A(e){return(e.match(o)||[]).join(a)}function T(e,n){for(var o=(e.parentNode||t).querySelectorAll(n)||[],i=o[r.l];i--;)if(o[i]==e)return!0;return!1}function P(e,t,n){if(s.isA(n))for(var o=0;o0?(o=e.q[0],L(e.el,o.props,o.duration,o.easing,o.complete,!0)):(n=v(e,f))>-1&&f.splice(n,1)}function R(e,t,n){t===d||t===p?e[t]=n:O(e,t,n)}function L(e,t,o,i,a,c){var h,m,g,S,E,A,T=b(o),P={},O={},C=0;for(T?(i=o.easing,o.start,g=o.progress,S=o.step,E=o.specialEasing,a=o.complete,A=o.duration):A=o,E=E||{},A=A||400,i=i||"swing",c=c||!1;C0)F=s.now(),U=function(){for(h in L=s.now(),B=L-F,I=G.stop||B>=A,N=1-(l.max(0,F+A-L)/A||0),O)D=parseFloat(P[h]),M=parseFloat(O[h]),x=(M-D)*u[E[h]||i](N,N*A,0,1,A)+D,R(e,h,x),y(S)&&S(x,{elem:e,prop:h,start:D,now:x,end:M,pos:N,options:{easing:i,speacialEasing:E,duration:A,complete:a,step:S},startTime:F});y(g)&&g({},N,l.max(0,A-B)),I?(k(m),y(a)&&a()):G.frame=s.rAF()(U)},G.frame=s.rAF()(U);else{for(h in O)R(e,h,O[h]);k(m)}}}function I(e,t,n){for(var o,i,a,l=0;l0){if((i=o.q[0]).stop=!0,s.cAF()(i.frame),o.q.splice(0,1),n)for(a in i.props)R(e,a,i.props[a]);t?o.q=[]:k(o,!1)}break}}function N(e){return!!(e[r.oW]||e[r.oH]||e.getClientRects()[r.l])}function w(n){if(0===arguments[r.l])return this;var o,a,s=new w,l=n,c=0;if(h(n)==i.s)for(l=[],"<"===n.charAt(0)?((a=t.createElement("div")).innerHTML=n,o=a.children):o=t.querySelectorAll(n);c0;)i=i.childNodes[0];for(t=0;n[r.l]-t;i.firstChild===n[0]&&t++)i.appendChild(n[t]);var l=s?s.nextSibling:a.firstChild;return a.insertBefore(o,l),this},wrapInner:function(e){return this.each((function(){var t=w(this),n=t.contents();n[r.l]?n.wrapAll(e):t.append(e)}))},wrap:function(e){return this.each((function(){w(this).wrapAll(e)}))},css:function(t,o){var a,s,l,c=e.getComputedStyle;return h(t)==i.s?o===n?(a=this[0],l=c?c(a,null):a.currentStyle[t],c?null!=l?l.getPropertyValue(t):a[r.s][t]:l):this.each((function(){O(this,t,o)})):this.each((function(){for(s in t)O(this,s,t[s])}))},hasClass:function(e){for(var t,n,o=0,i=a+e+a;t=this[o++];){if((n=t.classList)&&n.contains(e))return!0;if(1===t.nodeType&&(a+A(t.className+c)+a).indexOf(i)>-1)return!0}return!1},addClass:function(e){var t,i,r,s,l,u,d,p,f=0,h=0;if(e)for(t=e.match(o)||[];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,r=1===i.nodeType&&a+A(s)+a){for(;l=t[h++];)r.indexOf(a+l+a)<0&&(r+=l+a);s!==(u=A(r))&&(i.className=u)}return this},removeClass:function(e){var t,i,r,s,l,u,d,p,f=0,h=0;if(e)for(t=e.match(o)||[];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,r=1===i.nodeType&&a+A(s)+a){for(;l=t[h++];)for(;r.indexOf(a+l+a)>-1;)r=r.replace(a+l+a,a);s!==(u=A(r))&&(i.className=u)}return this},hide:function(){return this.each((function(){this[r.s].display="none"}))},show:function(){return this.each((function(){this[r.s].display="block"}))},attr:function(e,t){for(var o,i=0;o=this[i++];){if(t===n)return o.getAttribute(e);o.setAttribute(e,t)}return this},removeAttr:function(e){return this.each((function(){this.removeAttribute(e)}))},offset:function(){var n=this[0][r.bCR](),o=e.pageXOffset||t.documentElement[d],i=e.pageYOffset||t.documentElement[p];return{top:n.top+i,left:n.left+o}},position:function(){var e=this[0];return{top:e.offsetTop,left:e.offsetLeft}},scrollLeft:function(e){for(var t,o=0;t=this[o++];){if(e===n)return t[d];t[d]=e}return this},scrollTop:function(e){for(var t,o=0;t=this[o++];){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[r.l]+e])},find:function(e){var t,n=[];return this.each((function(){var o=this.querySelectorAll(e);for(t=0;t-1){if(!(n>1))return h[o][m];delete e[m],h.splice(o,1)}}}),f=function(){var u,f,h,m,g,v,y,_,b,S,E,A,T,P,O,C,k=[],R=(m=s.type,g=[i.b,i.n,i.s,i.a,i.o,i.f,i.z],v=" ",y=":",_=[i.z,i.s],b=i.n,S=[i.z,i.b],E=[!0,i.b],A=[!1,i.b],T=[null,[i.z,i.f]],P="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden",O={className:["os-theme-dark",_],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:E,clipAlways:E,normalizeRTL:E,paddingAbsolute:A,autoUpdate:[null,S],autoUpdateInterval:[33,b],updateOnLoad:[["img"],[i.s,i.a,i.z]],nativeScrollbarsOverlaid:{showNativeScrollbars:A,initialize:E},overflowBehavior:{x:["scroll",P],y:["scroll",P]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,b],dragScrolling:E,clickScrolling:A,touchSupport:E,snapHandle:A},textarea:{dynWidth:A,dynHeight:A,inheritedAttrs:[["style","class"],[i.s,i.a,i.z]]},callbacks:{onInitialized:T,onInitializationWithdrawn:T,onDestroyed:T,onScrollStart:T,onScroll:T,onScrollStop:T,onOverflowChanged:T,onOverflowAmountChanged:T,onDirectionChanged:T,onContentSizeChanged:T,onHostSizeChanged:T,onUpdated:T}},{_defaults:(C=function(e){var t=function(n){var o,a,s;for(o in n)n[r.hOP](o)&&(a=n[o],(s=m(a))==i.a?n[o]=a[e?1:0]:s==i.o&&(n[o]=t(a)));return n};return t(d.extend(!0,{},O))})(),_template:C(!0),_validate:function(t,o,a,l){var c={},u={},p=d.extend(!0,{},t),f=d.inArray,h=d.isEmptyObject,_=function(e,t,o,l,c,u){for(var p in t)if(t[r.hOP](p)&&e[r.hOP](p)){var b,S,E,A,T,P,O,C,k=!1,R=!1,L=t[p],I=m(L),N=I==i.o,w=s.isA(L)?L:[L],D=o[p],M=e[p],x=m(M),F=u?u+".":"",U='The option "'+F+p+"\" wasn't set, because",B=[],V=[];if(D=D===n?{}:D,N&&x==i.o)l[p]={},c[p]={},_(M,L,D,l[p],c[p],F+p),d.each([e,l,c],(function(e,t){h(t[p])&&delete t[p]}));else if(!N){for(P=0;P0?"\r\nValid strings are: [ "+V.join(", ").split(y).join(", ")+" ].":"")),delete e[p]}}};return _(p,o,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 L(){f||(f=new I(R._defaults)),h||(h=new N(f))}function I(t){var n=this,o="overflow",i="hidden",c="scroll",u=d("body"),f=d('
'),h=f[0],m=d(f.children("div").eq(0));u.append(f),f.hide().show();var g=_(h),v={x:0===g.x,y:0===g.y},y=function(){var t,n=e.navigator.userAgent,o="indexOf",i="substring",r=n[o]("MSIE "),a=n[o]("Trident/"),s=n[o]("Edge/"),l=n[o]("rv:"),c=parseInt;return r>0?t=c(n[i](r+5,n[o](".",r)),10):a>0?t=c(n[i](l+3,n[o](".",l)),10):s>0&&(t=c(n[i](s+5,n[o](".",s)),10)),t}();function _(e){return{x:e[r.oH]-e[r.cH],y:e[r.oW]-e[r.cW]}}d.extend(n,{defaultOptions:t,msie:y,autoUpdateLoop:!1,autoUpdateRecommended:!s.mO(),nativeScrollbarSize:g,nativeScrollbarIsOverlaid:v,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(o,i);var e={w:h[r.sW],h:h[r.sH]};f.css(o,"visible");var t={w:h[r.sW],h:h[r.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=m.offset();f.scrollLeft(-999);var n=m.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(r.s).remove(),function(){if(!v.x||!v.y){var t=l.abs,o=s.wW(),i=s.wH(),r=h(),a=function(){if(p().length>0){var e=s.wW(),a=s.wH(),m=e-o,g=a-i;if(0===m&&0===g)return;var v,y=l.round(e/(o/100)),b=l.round(a/(i/100)),S=t(m),E=t(g),A=t(y),T=t(b),P=h(),O=S>2&&E>2,C=!c(A,T),k=O&&C&&(P!==r&&r>0),R=n.nativeScrollbarSize;k&&(u.append(f),v=n.nativeScrollbarSize=_(f[0]),f.remove(),R.x===v.x&&R.y===v.y||d.each(p(),(function(){p(this)&&p(this).update("zoom")}))),o=e,i=a,r=P}};d(e).on("resize",a)}function c(e,n){var o=t(e),i=t(n);return!(o===i||o+1===i||o-1===i)}function h(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}}()}function N(e){var t,o=this,i=d.inArray,a=s.now,c="autoUpdate",u=c+"Interval",p=r.l,f=[],h=[],m=!1,g=33,v=g,y=a(),_=function(){if(f[p]>0&&m){t=s.rAF()((function(){_()}));var e,o,i,r,d,b,S=a(),E=S-y;if(E>v){y=S-E%v,e=g;for(var A=0;Ad&&(o.update("auto"),h[A]=new Date(b+=d)),e=l.max(1,l.min(e,d)));v=e}}else v=g};o.add=function(t){-1===i(t,f)&&(f.push(t),h.push(a()),f[p]>0&&!m&&(m=!0,e.autoUpdateLoop=m,_()))},o.remove=function(o){var r=i(o,f);r>-1&&(h.splice(r,1),f.splice(r,1),0===f[p]&&m&&(m=!1,e.autoUpdateLoop=m,t!==n&&(s.cAF()(t),t=-1)))}}function w(o,f,h,m,g){var v=s.type,y=d.inArray,_=d.each,b=new u,S=d[r.p];if(vi(o)){if(p(o)){var E=p(o);return E.options(f),E}var A,T,P,O,C,k,L,I,N,w,D,M,x,F,U,B,V,G,J,j,H,K,Y,W,z,q,X,Z,Q,$,ee,te,ne,oe,ie,re,ae,se,le,ce,ue,de,pe,fe,he,me,ge,ve,ye,_e,be,Se,Ee,Ae,Te,Pe,Oe,Ce,ke,Re,Le,Ie,Ne,we,De,Me,xe,Fe,Ue,Be,Ve,Ge,Je,je,He,Ke,Ye,We,ze,qe,Xe,Ze,Qe,$e,et,tt,nt,ot,it,rt,at,st,lt,ct,ut,dt,pt,ft,ht,mt,gt,vt,yt,_t,bt,St,Et,At,Tt,Pt,Ot,Ct,kt,Rt,Lt,It,Nt,wt,Dt,Mt,xt={},Ft={},Ut={},Bt={},Vt={},Gt="-hidden",Jt="margin-",jt="padding-",Ht="border-",Kt="top",Yt="right",Wt="bottom",zt="left",qt="min-",Xt="max-",Zt="width",Qt="height",$t="float",en="",tn="auto",nn="sync",on="scroll",rn="100%",an="x",sn="y",ln=".",cn=" ",un="scrollbar",dn="-horizontal",pn="-vertical",fn=on+"Left",hn=on+"Top",mn="mousedown touchstart",gn="mouseup touchend touchcancel",vn="mousemove touchmove",yn="mouseenter",_n="mouseleave",bn="keydown",Sn="keyup",En="selectstart",An="transitionend webkitTransitionEnd oTransitionEnd",Tn="__overlayScrollbarsRO__",Pn="os-",On=Pn+"html",Cn=Pn+"host",kn=Cn+"-foreign",Rn=Cn+"-textarea",Ln=Cn+"-"+un+dn+Gt,In=Cn+"-"+un+pn+Gt,Nn=Cn+"-transition",wn=Cn+"-rtl",Dn=Cn+"-resize-disabled",Mn=Cn+"-scrolling",xn=Cn+"-overflow",Fn=(xn=Cn+"-overflow")+"-x",Un=xn+"-y",Bn=Pn+"textarea",Vn=Bn+"-cover",Gn=Pn+"padding",Jn=Pn+"viewport",jn=Jn+"-native-scrollbars-invisible",Hn=Jn+"-native-scrollbars-overlaid",Kn=Pn+"content",Yn=Pn+"content-arrange",Wn=Pn+"content-glue",zn=Pn+"size-auto-observer",qn=Pn+"resize-observer",Xn=Pn+"resize-observer-item",Zn=Xn+"-final",Qn=Pn+"text-inherit",$n=Pn+un,eo=$n+"-track",to=eo+"-off",no=$n+"-handle",oo=no+"-off",io=$n+"-unusable",ro=$n+"-"+tn+Gt,ao=$n+"-corner",so=ao+"-resize",lo=so+"-both",co=so+dn,uo=so+pn,po=$n+dn,fo=$n+pn,ho=Pn+"dragging",mo=Pn+"theme-none",go=[jn,Hn,to,oo,io,ro,so,lo,co,uo,ho].join(cn),vo=[],yo=[r.ti],_o={},bo="added removed on contract",So={},Eo=42,Ao="load",To=[],Po={},Oo=["wrap","cols","rows"],Co=[r.i,r.c,r.s,"open"].concat(yo),ko=[];return b.sleep=function(){Q=!0},b.update=function(e){var t,o,r,a,s;if(!U)return v(e)==i.s?e===tn?(t=Yo(),o=Ko(),(r=t||o)&&Xo({_contentSizeChanged:o,_changedOptions:F?n:te})):e===nn?St?(a=_t(vt.takeRecords()),s=bt(yt.takeRecords())):a=b.update(tn):"zoom"===e&&Xo({_hostSizeChanged:!0,_contentSizeChanged:!0}):(e=Q||e,Q=!1,b.update(nn)&&!e||Xo({_force:e})),Zo(),r||a||s},b.options=function(e,t){var n,o={};if(d.isEmptyObject(e)||!d.isPlainObject(e)){if(v(e)!=i.s)return ee;if(!(arguments.length>1))return Pi(ee,e);Oi(o,e,t),n=Qo(o)}else n=Qo(e);d.isEmptyObject(n)||Xo({_changedOptions:n})},b.destroy=function(){if(!U){for(var e in g.remove(b),Do(),Io(de),Io(ue),_o)b.removeExt(e);for(;ko[r.l]>0;)ko.pop()();Go(!0),ge&&wi(ge),me&&wi(me),H&&wi(ue),ti(!0),ci(!0),$o(!0);for(var t=0;t2&&(s=t.substr(0,2),y(s,M)>-1&&(o=s)),t=(t=o?t.substr(2):t)[g](/min/g,0)[g](//g,(m?"-":en)+rn)[g](/px/g,en)[g](/%/g,f+p*(h&&P.n?-1:1)/100)[g](/vw/g,f+Bt.w)[g](/vh/g,f+Bt.h),r=_i(isNaN(t)?_i(_(t),!0).toFixed():t)):r=t,r!==n&&!isNaN(r)&&v(r)==i.n){var b=I&&h,S=d*(b&&P.n?-1:1),E=b&&P.i,A=b&&P.n;switch(S=E?p-S:S,o){case"+=":a=S+r;break;case"-=":a=S-r;break;case"*=":a=S*r;break;case"/=":a=S/r;break;default:a=r}a=E?p-a:a,a*=A?-1:1,a=h&&P.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,o){var r,a,s=[n,n],l=v(e);if(l==t)e=[e,e];else if(l==i.a){if((r=e[W])>2||r<1)e=s;else for(1===r&&(e[1]=n),S=0;S0){ue=ve==i.n||ve==i.b?le([ue,ue,ue,ue]):ve==i.a?2===(ce=ue[W])?le([ue[0],ue[1],ue[0],ue[1]]):ce>=4?le(ue):ge:ve==i.o?le([ue[Kt],ue[Yt],ue[Wt],ue[zt]]):ge,O=ie(de,z)?de:"xy",C=se(he,i.s,H,X),k=se(me,i.s,G,q),R=ue;var ye={l:Ft._currentScroll,t:Ut._currentScroll},_e=pe.offset(),be=L.offset(),Se={x:C.x==K||O==sn,y:C.y==K||O==an};be[Kt]-=R[0],be[zt]-=R[3];var Ee={x:l.round(be[zt]-_e[zt]+ye.l),y:l.round(be[Kt]-_e[Kt]+ye.t)};if(Z&&(P.n||P.i||(Ee.x=l.round(_e[zt]-be[zt]+ye.l)),P.n&&I&&(Ee.x*=-1),P.i&&I&&(Ee.x=l.round(_e[zt]-be[zt]+(Ft._maxScroll-ye.l)))),k.x!=G||k.y!=G||C.x==Y||C.y==Y||Z){var Ae=L[0],Te=w?Ae[r.bCR]():{width:Ae[r.oW],height:Ae[r.oH]},Pe={w:Te[Zt]+R[3]+R[1],h:Te[Qt]+R[0]+R[2]},Oe=function(e){var t=li(e),n=t._w_h,o=t._left_top,i=t._x_y,r=k[i]==(e&&Z?G:V),a=k[i]==J,s=k[i]==j,l=C[i]==K,c=C[i]==Y,u=Bt[n],d=_e[o],p=Pe[n],f=be[o],h=a?2:1,m=f+p/2,g=d+u/2,v=p<=u&&f>=d&&f+p<=d+u;l?Se[i]=!0:Se[i]||((s||c)&&(Se[i]=!!c&&v,r=pg:m0||x)?x?(t.complete=oe,fe.animate(U,t)):(T={duration:t,complete:oe},s.isA(o)||d.isPlainObject(o)?(B[fn]=o[0]||o.x,B[hn]=o[1]||o.y,T.specialEasing=B):T.easing=o,fe.animate(U,T)):(E&&fe[fn](U[fn]),A&&fe[hn](U[hn]),ne())},b.scrollStop=function(e,t,n){return fe.stop(e,t,n),b},b.getElements=function(e){var t={target:Ce,host:ke,padding:Ie,viewport:Ne,content:we,scrollbarHorizontal:{scrollbar:_e[0],track:be[0],handle:Se[0]},scrollbarVertical:{scrollbar:Ee[0],track:Ae[0],handle:Te[0]},scrollbarCorner:ye[0]};return v(e)==i.s?Pi(t,e):t},b.getState=function(e){function t(e){if(!d.isPlainObject(e))return e;var t=Ri({},e),n=function(e,n){t[r.hOP](e)&&(t[n]=t[e],delete t[e])};return n("w",Zt),n("h",Qt),delete t.c,t}var n={destroyed:!!t(U),sleeping:!!t(Q),autoUpdate:t(!St),widthAuto:t(Be),heightAuto:t(Ve),padding:t(Je),overflowAmount:t(Ze),hideOverflow:t(Ue),hasOverflow:t(Fe),contentScrollSize:t(Me),viewportSize:t(Bt),hostSize:t(De),documentMixed:t(G)};return v(e)==i.s?Pi(n,e):n},b.ext=function(e){var t,n=bo.split(" "),o=0;if(v(e)==i.s){if(_o[r.hOP](e))for(t=Ri({},_o[e]);o9||!O){e.prepend(Ai(qn,Ai({c:Xn,dir:"ltr"},Ai(Xn,Ai(Zn))+Ai(Xn,Ai({c:Zn,style:"width: 200%; height: 200%"})))));var p,f,h,g,v=e[0][l][0][l][0],y=d(v[l][1]),_=d(v[l][0]),b=d(_[0][l][0]),S=v[r.oW],E=v[r.oH],A=2,T=m.nativeScrollbarSize,k=function(){_[fn](c)[hn](c),y[fn](c)[hn](c)},R=function(){f=0,p&&(S=h,E=g,u())},L=function(e){return h=v[r.oW],g=v[r.oH],p=h!=S||g!=E,e&&p&&!f?(s.cAF()(f),f=s.rAF()(R)):e||R(),k(),e&&(s.prvD(e),s.stpP(e)),!1},I={},N={};pi(N,en,[-(T.y+1)*A,T.x*-A,T.y*-A,-(T.x+1)*A]),d(v).css(N),_.on(on,L),y.on(on,L),e.on(a,(function(){L(!1)})),I[Zt]=c,I[Qt]=c,b.css(I),k()}else{var w=Oe.attachEvent,D=C!==n;if(w)e.prepend(Ai(qn)),Di(e,ln+qn)[0].attachEvent("onresize",u);else{var x=Oe.createElement(i.o);x.setAttribute(r.ti,"-1"),x.setAttribute(r.c,qn),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]===Le){var F=function(){var e=ce.css("direction"),t={},n=0,o=!1;return e!==Ye&&("ltr"===e?(t[zt]=0,t[Yt]=tn,n=c):(t[zt]=tn,t[Yt]=0,n=P.n?-c:P.i?0:c),de.children().eq(0).css(t),de[fn](n)[hn](c),Ye=e,o=!0),o};F(),Lo(e,on,(function(e){return F()&&Xo(),s.prvD(e),s.stpP(e),!1}))}}else if(M){var U,B=(U=e.contents()[0])[Tn];B&&(B.disconnect(),delete U[Tn])}else wi(e.children(ln+qn).eq(0))}}function No(){if(x){var e,t,n,o,i,a,l,c,u,d,p=11,f=s.mO(),h=s.now();bt=function(e){var t=!1;return F&&!Q&&(_(e,(function(){return!(t=Ho(this))})),t&&(c=s.now(),u=Ve||Be,d=function(){U||(h=c,B&&qo(),u?Xo():b.update(tn))},clearTimeout(l),p<=0||c-h>p||!u?d():l=setTimeout(d,p))),t},vt=new f(_t=function(s){var l,c=!1,u=!1,d=[];return F&&!Q&&(_(s,(function(){e=(l=this).target,t=l.attributeName,n=t===r.c,o=l.oldValue,i=e.className,J&&n&&!u&&o.indexOf(kn)>-1&&i.indexOf(kn)<0&&(a=mi(!0),ke.className=i.split(cn).concat(o.split(cn).filter((function(e){return e.match(a)}))).join(cn),c=u=!0),c||(c=n?jo(o,i):t!==r.s||o!==e[r.s].cssText),d.push(t)})),zo(d),c&&b.update(u||tn)),c}),yt=new f(bt)}}function wo(){x&&!St&&(vt.observe(ke,{attributes:!0,attributeOldValue:!0,attributeFilter:Co}),yt.observe(B?Ce:we,{attributes:!0,attributeOldValue:!0,subtree:!B,childList:!B,characterData:!B,attributeFilter:B?Oo:Co}),St=!0)}function Do(){x&&St&&(vt.disconnect(),yt.disconnect(),St=!1)}function Mo(){if(!Q){var e,t={w:Le[r.sW],h:Le[r.sH]};e=ki(t,nt),nt=t,e&&Xo({_hostSizeChanged:!0})}}function xo(){Rt&&ii(!0)}function Fo(){Rt&&!se.hasClass(ho)&&ii(!1)}function Uo(){kt&&(ii(!0),clearTimeout(Tt),Tt=setTimeout((function(){kt&&!U&&ii(!1)}),100))}function Bo(e){return s.prvD(e),!1}function Vo(e){if(!U){var t=e.target,n=d(e.target),o=d.inArray(t,To);o>-1&&To.splice(o,1),Ci((function(e,t){n.is(t)&&Xo({_contentSizeChanged:!0})}))}}function Go(e){e||Go(!0),Ro(ce,vn.split(cn)[0],Uo,!kt||e,!0),Ro(ce,[yn,_n],[xo,Fo],!Rt||e,!0),F||e||ce.one("mouseover",xo)}function Jo(){var e={};return V&&me&&(e.w=_i(me.css(qt+Zt)),e.h=_i(me.css(qt+Qt)),e.c=ki(e,gt),e.f=!0),gt=e,!!e.c}function jo(e,t){var n,o,a=typeof t==i.s?t.split(cn):[],s=yi(typeof e==i.s?e.split(cn):[],a),l=y(mo,s);if(l>-1&&s.splice(l,1),s[r.l]>0)for(o=mi(!0,!0),n=0;n0}}function Wo(e){if(!F)return!0;var t="flex-grow",n="flex-shrink",o="flex-basis",i=[Zt,qt+Zt,Xt+Zt,Jt+zt,Jt+Yt,zt,Yt,"font-weight","word-spacing",t,n,o],a=[jt+zt,jt+Yt,Ht+zt+Zt,Ht+Yt+Zt],s=[Qt,qt+Qt,Xt+Qt,Jt+Kt,Jt+Wt,Kt,Wt,"line-height",t,n,o],l=[jt+Kt,jt+Wt,Ht+Kt+Zt,Ht+Wt+Zt],c="s",u="v-s",d=Xe.x===c||Xe.x===u,p=!1,f=function(e,t){for(var n=0;n-1){var n=le.attr(t);v(n)==i.s?fe.attr(t,n):fe.removeAttr(t)}}))}function qo(){if(!Q){var e,t,n,o,i=!dt,a=Bt.w,s=Bt.h,c={},u=Be||i;return c[qt+Zt]=en,c[qt+Qt]=en,c[Zt]=tn,le.css(c),e=Ce[r.oW],t=u?l.max(e,Ce[r.sW]-1):1,c[Zt]=Be?tn:rn,c[qt+Zt]=rn,c[Qt]=tn,le.css(c),n=Ce[r.oH],o=l.max(n,Ce[r.sH]-1),c[Zt]=t,c[Qt]=o,ve.css(c),c[qt+Zt]=a,c[qt+Qt]=s,le.css(c),{_originalWidth:e,_originalHeight:n,_dynamicWidth:t,_dynamicHeight:o}}}function Xo(e){clearTimeout(oe),e=e||{},So._hostSizeChanged|=e._hostSizeChanged,So._contentSizeChanged|=e._contentSizeChanged,So._force|=e._force;var t,o=s.now(),i=!!So._hostSizeChanged,c=!!So._contentSizeChanged,u=!!So._force,p=e._changedOptions,f=Eo>0&&F&&!U&&!u&&!p&&o-ne0?x:mo)),Ae&&(!0===Ee||null===Ee&&O?(Do(),g.add(b)):(g.remove(b),wo())),_e)if(se)if(ge?ge.show():(ge=d(Ai(Wn)),pe.before(ge)),H)ue.show();else{ue=d(Ai(zn)),Re=ue[0],ge.before(ue);var tt={w:-1,h:-1};Io(ue,(function(){var e={w:Re[r.oW],h:Re[r.oH]};ki(e,tt)&&(F&&Ve&&e.h>0||Be&&e.w>0||F&&!Ve&&0===e.h||!Be&&0===e.w)&&Xo(),tt=e})),H=!0,null!==L&&ue.css(Qt,L+"(100% + 1px)")}else H&&ue.hide(),ge&&ge.hide();u&&(de.find("*").trigger(on),H&&ue.find("*").trigger(on)),t=t===n?ce.is(":hidden"):t;var nt,vt=!!B&&"off"!==le.attr("wrap"),yt=h(vt,dt),_t=ce.css("direction"),bt=h(_t,Ke),At=ce.css("box-sizing"),Tt=h(At,Ge),Lt=fi(jt);try{nt=H?Re[r.bCR]():null}catch(e){return}j="border-box"===At;var It=(Z="rtl"===_t)?zt:Yt,Ft=Z?Yt:zt,Ut=!1,Gt=!(!H||"none"===ce.css($t))&&(0===l.round(nt.right-nt.left)&&(!!ee||ke[r.cW]-K>0));if(se&&!Gt){var nn=ke[r.oW],an=ge.css(Zt);ge.css(Zt,tn);var sn=ke[r.oW];ge.css(Zt,an),(Ut=nn!==sn)||(ge.css(Zt,nn+1),sn=ke[r.oW],ge.css(Zt,an),Ut=nn!==sn)}var ln=(Gt||Ut)&&se&&!t,un=h(ln,Be),dn=!ln&&Be,pn=!(!H||!se||t)&&0===l.round(nt.bottom-nt.top),mn=h(pn,Ve),gn=!pn&&Ve,vn=fi(Ht,"-"+Zt,!(ln&&j||!j),!(pn&&j||!j)),yn=fi(Jt),_n={},bn={},Sn=function(){return{w:ke[r.cW],h:ke[r.cH]}},En=function(){return{w:Ie[r.oW]+l.max(0,we[r.cW]-we[r.sW]),h:Ie[r.oH]+l.max(0,we[r.cH]-we[r.sH])}},An=K=Lt.l+Lt.r,Tn=Y=Lt.t+Lt.b;if(An*=ee?1:0,Tn*=ee?1:0,Lt.c=h(Lt,Je),W=vn.l+vn.r,z=vn.t+vn.b,vn.c=h(vn,je),q=yn.l+yn.r,X=yn.t+yn.b,yn.c=h(yn,He),dt=vt,Ke=_t,Ge=At,Be=ln,Ve=pn,Je=Lt,je=vn,He=yn,bt&&H&&ue.css($t,Ft),Lt.c||bt||ie||un||mn||Tt||_e){var Pn={},On={},Cn=[Lt.t,Lt.r,Lt.b,Lt.l];pi(bn,Jt,[-Lt.t,-Lt.r,-Lt.b,-Lt.l]),ee?(pi(Pn,en,Cn),pi(B?On:_n,jt)):(pi(Pn,en),pi(B?On:_n,jt,Cn)),pe.css(Pn),le.css(On)}Bt=En();var kn=!!B&&qo(),Rn=B&&h(kn,ft),Ln=B&&kn?{w:Oe?kn._dynamicWidth:kn._originalWidth,h:Le?kn._dynamicHeight:kn._originalHeight}:{};if(ft=kn,pn&&(mn||ie||Tt||Lt.c||vn.c)?_n[Qt]=tn:(mn||ie)&&(_n[Qt]=rn),ln&&(un||ie||Tt||Lt.c||vn.c||bt)?(_n[Zt]=tn,bn[Xt+Zt]=rn):(un||ie)&&(_n[Zt]=rn,_n[$t]=en,bn[Xt+Zt]=en),ln?(bn[Zt]=tn,_n[Zt]=a._cssPropertyValue(Zt,"max-content intrinsic")||tn,_n[$t]=Ft):bn[Zt]=en,bn[Qt]=pn?Ln.h||we[r.cH]:en,se&&ge.css(bn),he.css(_n),_n={},bn={},i||c||Rn||bt||Tt||ie||un||ln||mn||pn||Se||Pe||ae||$||E||R||M||w||Ce||Ye||yt){var In="overflow",Nn=In+"-x",Bn=In+"-y",Vn="hidden",Gn="visible";if(!k){var Jn={},Hn=Fe.y&&Ue.ys&&!be?A.y?fe.css(It):-I.y:0,Kn=Fe.x&&Ue.xs&&!be?A.x?fe.css(Wt):-I.x:0;pi(Jn,en),fe.css(Jn)}var qn=Ei(),Xn={w:Ln.w||qn[r.cW],h:Ln.h||qn[r.cH]},Zn={w:qn[r.sW],h:qn[r.sH]};k||(Jn[Wt]=gn?en:Kn,Jn[It]=dn?en:Hn,fe.css(Jn)),Bt=En();var Qn=Sn(),$n={w:Qn.w-q-W-(j?0:K),h:Qn.h-X-z-(j?0:Y)},eo={w:l.max((ln?Xn.w:Zn.w)+An,$n.w),h:l.max((pn?Xn.h:Zn.h)+Tn,$n.h)};if(eo.c=h(eo,qe),qe=eo,se){(eo.c||pn||ln)&&(bn[Zt]=eo.w,bn[Qt]=eo.h,B||(Xn={w:qn[r.cW],h:qn[r.cH]}));var to={},no=function(e){var t=li(e),n=t._w_h,o=t._width_height,i=e?ln:pn,r=e?W:z,a=e?K:Y,s=e?q:X,c=Bt[n]-r-s-(j?0:a);(!i||!i&&vn.c)&&(bn[o]=$n[n]-1),!(i&&Xn[n]0&&(bn[o]=l.max(1,bn[o]))};no(!0),no(!1),B&&ve.css(to),ge.css(bn)}ln&&(_n[Zt]=rn),!ln||j||St||(_n[$t]="none"),he.css(_n),_n={};var oo={w:qn[r.sW],h:qn[r.sH]};oo.c=c=h(oo,Me),Me=oo,Bt=En(),i=h(Qn=Sn(),De),De=Qn;var io=B&&(0===Bt.w||0===Bt.h),ro=Ze,ao={},po={},fo={},ho={},go={},vo={},yo={},_o=Ie[r.bCR](),bo=function(e){var t=li(e),n=li(!e)._x_y,o=t._x_y,i=t._w_h,r=t._width_height,a=on+t._Left_Top+"Max",s=_o[r]?l.abs(_o[r]-Bt[i]):0,c=ro&&ro[o]>0&&0===Ne[a];ao[o]="v-s"===Te[o],po[o]="v-h"===Te[o],fo[o]="s"===Te[o],ho[o]=l.max(0,l.round(100*(oo[i]-Bt[i]))/100),ho[o]*=io||c&&s>0&&s<1?0:1,go[o]=ho[o]>0,vo[o]=ao[o]||po[o]?go[n]&&!ao[n]&&!po[n]:go[o],vo[o+"s"]=!!vo[o]&&(fo[o]||ao[o]),yo[o]=go[o]&&vo[o+"s"]};if(bo(!0),bo(!1),ho.c=h(ho,Ze),Ze=ho,go.c=h(go,Fe),Fe=go,vo.c=h(vo,Ue),Ue=vo,A.x||A.y){var Ao,To="px solid transparent",Po={},Oo={},Co=u;(go.x||go.y)&&(Oo.w=A.y&&go.y?oo.w+T.y:en,Oo.h=A.x&&go.x?oo.h+T.x:en,Co=h(Oo,xe),xe=Oo),(go.c||vo.c||oo.c||bt||un||mn||ln||pn||Se)&&(_n[Jt+Ft]=_n[Ht+Ft]=en,Ao=function(e){var t=li(e),n=li(!e),o=t._x_y,i=e?Wt:It,r=e?pn:ln;A[o]&&go[o]&&vo[o+"s"]?(_n[Jt+i]=r?be?en:T[o]:en,_n[Ht+i]=e&&r||be?en:T[o]+To):(Oo[n._w_h]=_n[Jt+i]=_n[Ht+i]=en,Co=!0)},k?Ni(fe,jn,!be):(Ao(!0),Ao(!1))),be&&(Oo.w=Oo.h=en,Co=!0),Co&&!k&&(Po[Zt]=vo.y?Oo.w:en,Po[Qt]=vo.x?Oo.h:en,me||(me=d(Ai(Yn)),fe.prepend(me)),me.css(Po)),he.css(_n)}var ko,Ro={};Pn={};if((i||go.c||vo.c||oo.c||Pe||Tt||Se||bt||ae||mn)&&(Ro[Ft]=en,(ko=function(e){var t=li(e),n=li(!e),o=t._x_y,i=t._X_Y,r=e?Wt:It,a=function(){Ro[r]=en,xt[n._w_h]=0};go[o]&&vo[o+"s"]?(Ro[In+i]=on,be||k?a():(Ro[r]=-(A[o]?T[o]:I[o]),xt[n._w_h]=A[o]?T[n._x_y]:0)):(Ro[In+i]=en,a())})(!0),ko(!1),!k&&(Bt.h=xo._cursorMax&&Et,Yo={x:vt||Bo!==Ho||Uo!==Vo?-1:Ze.x,y:(vt?Ko||Fo&&ro&&v.y===ro.y:(Ko||Fo)&&Uo===jo)?Ze.y:-1};v.x=Yo.x>-1?Z&<&&P.i?0:Yo.x:v.x,v.y=Yo.y>-1?Yo.y:v.y}pt=xo}Z&&P.i&&A.y&&go.x&<&&(v.x+=xt.w||0),ln&&ce[fn](0),pn&&ce[hn](0),fe[fn](v.x)[hn](v.y);var Wo="v"===S,zo="h"===S,Qo="a"===S,$o=function(e,t){t=t===n?e:t,oi(!0,e,yo.x),oi(!1,t,yo.y)};Ni(ce,xn,vo.x||vo.y),Ni(ce,Fn,vo.x),Ni(ce,Un,vo.y),bt&&!V&&Ni(ce,wn,Z),V&&Li(ce,Dn),$&&(Ni(ce,Dn,Nt),Ni(ye,so,!Nt),Ni(ye,lo,wt),Ni(ye,co,Dt),Ni(ye,uo,Mt)),(E||Pe||vo.c||go.c||Se)&&(be?Se&&(Ii(ce,Mn),be&&$o(!1)):Qo?$o(yo.x,yo.y):Wo?$o(!0):zo&&$o(!1)),(R||Se)&&(Go(!Rt&&!kt),ii(Ot,!Ot)),(i||ho.c||mn||un||$||Tt||ie||Se||bt)&&(ri(!0),ai(!0),ri(!1),ai(!1)),w&&si(!0,N),M&&si(!1,D),di("onDirectionChanged",{isRTL:Z,dir:_t},bt),di("onHostSizeChanged",{width:De.w,height:De.h},i),di("onContentSizeChanged",{width:Me.w,height:Me.h},c),di("onOverflowChanged",{x:go.x,y:go.y,xScrollable:vo.xs,yScrollable:vo.ys,clipped:vo.x||vo.y},go.c||vo.c),di("onOverflowAmountChanged",{x:ho.x,y:ho.y},ho.c)}V&>&&(Fe.c||gt.c)&&(gt.f||Jo(),A.y&&Fe.x&&he.css(qt+Zt,gt.w+T.y),A.x&&Fe.y&&he.css(qt+Qt,gt.h+T.x),gt.c=!1),F&&p.updateOnLoad&&Zo(),di("onUpdated",{forced:u})}}function Zo(){B||Ci((function(e,t){he.find(t).each((function(e,t){s.inA(t,To)<0&&(To.push(t),d(t).off(Ao,Vo).on(Ao,Vo))}))}))}function Qo(e){var t=R._validate(e,R._template,!0,ee);return ee=Ri({},ee,t._default),te=Ri({},te,t._prepared),t._prepared}function $o(e){var t="parent",o="os-resize-observer-host",a=Bn+cn+Qn,l=B?cn+Qn:en,c=te.textarea.inheritedAttrs,u={},p=function(){var t=e?le:ce;_(u,(function(e,n){v(n)==i.s&&(e==r.c?t.addClass(n):t.attr(e,n))}))},f=[Cn,kn,Rn,Dn,wn,Ln,In,Nn,Mn,xn,Fn,Un,mo,Bn,Qn,ct].join(cn),h={};ce=ce||(B?J?le[t]()[t]()[t]()[t]():d(Ai(Rn)):le),he=he||Ti(Kn+l),fe=fe||Ti(Jn+l),pe=pe||Ti(Gn+l),de=de||Ti(o),ve=ve||(B?Ti(Vn):n),J&&Li(ce,kn),e&&Ii(ce,f),c=v(c)==i.s?c.split(cn):c,s.isA(c)&&B&&_(c,(function(t,n){v(n)==i.s&&(u[n]=e?ce.attr(n):le.attr(n))})),e?(J&&F?(de.children().remove(),_([pe,fe,he,ve],(function(e,t){t&&Ii(t.removeAttr(r.s),go)})),Li(ce,B?Rn:Cn)):(wi(de),he.contents().unwrap().unwrap().unwrap(),B&&(le.unwrap(),wi(ce),wi(ve),p())),B&&le.removeAttr(r.s),V&&Ii(ae,On)):(B&&(te.sizeAutoCapable||(h[Zt]=le.css(Zt),h[Qt]=le.css(Qt)),J||le.addClass(Qn).wrap(ce),ce=le[t]().css(h)),J||(Li(le,B?a:Cn),ce.wrapInner(he).wrapInner(fe).wrapInner(pe).prepend(de),he=Di(ce,ln+Kn),fe=Di(ce,ln+Jn),pe=Di(ce,ln+Gn),B&&(he.prepend(ve),p())),k&&Li(fe,jn),A.x&&A.y&&Li(fe,Hn),V&&Li(ae,On),Le=de[0],ke=ce[0],Ie=pe[0],Ne=fe[0],we=he[0],zo())}function ei(){var e,t,o=[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){qo(),b.update(tn),t&&O&&clearInterval(e)}function u(e){return le[fn](P.i&<?9999999:0),le[hn](0),s.prvD(e),s.stpP(e),!1}function d(e){setTimeout((function(){U||c()}),50)}function p(){Et=!0,Li(ce,l)}function f(){Et=!1,i=[],Ii(ce,l),c(!0)}function h(t){var n=t.keyCode;y(n,o)<0&&(i[r.l]||(c(),e=setInterval(c,1e3/60)),y(n,i)<0&&i.push(n))}function m(e){var t=e.keyCode,n=y(t,i);y(t,o)<0&&(n>-1&&i.splice(n,1),i[r.l]||c(!0))}function g(e){!0!==$e&&Wo((e=e.originalEvent||e).propertyName)&&b.update(tn)}function v(e){Q||(t!==n?clearTimeout(t):((Ct||kt)&&ii(!0),Si()||Li(ce,Mn),di("onScrollStart",e)),It||(ai(!0),ai(!1)),di("onScroll",e),t=setTimeout((function(){U||(clearTimeout(t),t=n,(Ct||kt)&&ii(!1),Si()||Ii(ce,Mn),di("onScrollStop",e))}),a))}B?(C>9||!O?Lo(le,"input",c):Lo(le,[bn,Sn],[h,m]),Lo(le,[on,"drop",l,l+"out"],[u,d,p,f])):Lo(he,An,g),Lo(fe,on,v,!0)}function ti(e){var t,n,o=function(t){var n=Ti($n+cn+(t?po:fo),!0),o=Ti(eo,n),i=Ti(no,n);return J||e||(n.append(o),o.append(i)),{_scrollbar:n,_track:o,_handle:i}};function i(e){var t=li(e),n=t._scrollbar,i=t._track,a=t._handle;J&&F?_([n,i,a],(function(e,t){Ii(t.removeAttr(r.s),go)})):wi(n||o(e)._scrollbar)}e?(i(!0),i()):(t=o(!0),n=o(),_e=t._scrollbar,be=t._track,Se=t._handle,Ee=n._scrollbar,Ae=n._track,Te=n._handle,J||(pe.after(Ee),pe.after(_e)))}function ni(e){var t,o,i,a,c=li(e),u=c._info,d=Pe.top!==Pe,p=c._x_y,f=c._X_Y,h=on+c._Left_Top,m="active",g="snapHandle",v="click",_=1,S=[16,17];function E(e){return C&&d?e["screen"+f]:s.page(e)[p]}function A(e){return te.scrollbars[e]}function T(){_=.5}function O(){_=1}function k(e){s.stpP(e)}function R(e){y(e.keyCode,S)>-1&&T()}function L(e){y(e.keyCode,S)>-1&&O()}function I(e){var t=(e.originalEvent||e).touches!==n;return!(Q||U||Si()||!at||t&&!A("touchSupport"))&&(1===s.mBtn(e)||t)}function w(t){if(I(t)){var n=u._trackLength,r=u._handleLength,c=u._maxScroll*((E(t)-i)*a/(n-r));c=isFinite(c)?c:0,Z&&e&&!P.i&&(c*=-1),fe[h](l.round(o+c)),It&&ai(e,o+c),D||s.prvD(t)}else M(t)}function M(l){if(l=l||l.originalEvent,Ro(re,[vn,gn,bn,Sn,En],[w,M,R,L,Bo],!0),s.rAF()((function(){Ro(re,v,k,!0,{_capture:!0})})),It&&ai(e,!0),It=!1,Ii(se,ho),Ii(c._handle,m),Ii(c._track,m),Ii(c._scrollbar,m),o=n,i=n,a=1,O(),t!==n&&(b.scrollStop(),clearTimeout(t),t=n),l){var u=ke[r.bCR]();l.clientX>=u.left&&l.clientX<=u.right&&l.clientY>=u.top&&l.clientY<=u.bottom||Fo(),(Ct||kt)&&ii(!1)}}function x(e){I(e)&&F(e)}function F(t){o=fe[h](),o=isNaN(o)?0:o,(Z&&e&&!P.n||!Z)&&(o=o<0?0:o),a=gi()[p],i=E(t),It=!A(g),Li(se,ho),Li(c._handle,m),Li(c._scrollbar,m),Ro(re,[vn,gn,En],[w,M,Bo]),s.rAF()((function(){Ro(re,v,k,!1,{_capture:!0})})),!C&&G||s.prvD(t),s.stpP(t)}function B(o){if(I(o)){var r,d=c._info._handleLength/Math.round(l.min(1,Bt[c._w_h]/Me[c._w_h])*c._info._trackLength),f=l.round(Bt[c._w_h]*d),v=270*d,y=400*d,S=c._track.offset()[c._left_top],E=o.ctrlKey,O=o.shiftKey,C=O&&E,k=!0,N="linear",w=function(t){It&&ai(e,t)},D=function(){w(),F(o)},x=function(){if(!U){var o=(i-S)*a,s=u._handleOffset,c=u._trackLength,d=u._handleLength,m=u._maxScroll,g=u._currentScroll,E=v*_,A=k?l.max(y,E):E,T=m*((o-d/2)/(c-d)),R=Z&&e&&(!P.i&&!P.n||lt),L=R?so,I={},M={easing:N,step:function(t){It&&(fe[h](t),ai(e,t))}};T=isFinite(T)?T:0,T=Z&&e&&!P.i?m-T:T,O?(fe[h](T),C?(T=fe[h](),fe[h](g),T=R&&P.i?m-T:T,T=R&&P.n?-T:T,I[p]=T,b.scroll(I,Ri(M,{duration:130,complete:D}))):D()):(r=k?L:r,(R?r?s+d>=o:s<=o:r?s<=o:s+d>=o)?(clearTimeout(t),b.scrollStop(),t=n,w(!0)):(t=setTimeout(x,A),I[p]=(r?"-=":"+=")+f,b.scroll(I,Ri(M,{duration:E}))),k=!1)}};E&&T(),a=gi()[p],i=s.page(o)[p],It=!A(g),Li(se,ho),Li(c._track,m),Li(c._scrollbar,m),Ro(re,[gn,bn,Sn,En],[M,R,L,Bo]),x(),s.prvD(o),s.stpP(o)}}function V(e){Lt=!0,(Ct||kt)&&ii(!0)}function J(e){Lt=!1,(Ct||kt)&&ii(!1)}function j(e){s.stpP(e)}Lo(c._handle,mn,x),Lo(c._track,[mn,yn,_n],[B,V,J]),Lo(c._scrollbar,mn,j),N&&Lo(c._scrollbar,An,(function(t){t.target===c._scrollbar[0]&&(ri(e),ai(e))}))}function oi(e,t,n){var o=e?_e:Ee;Ni(ce,e?Ln:In,!t),Ni(o,io,!n)}function ii(e,t){if(clearTimeout(At),e)Ii(_e,ro),Ii(Ee,ro);else{var n,o="active",i=function(){Lt||U||(!(n=Se.hasClass(o)||Te.hasClass(o))&&(Ct||kt||Rt)&&Li(_e,ro),!n&&(Ct||kt||Rt)&&Li(Ee,ro))};Pt>0&&!0!==t?At=setTimeout(i,Pt):i()}}function ri(e){var t={},n=li(e),o=n._info,i=1e6,r=l.min(1,Bt[n._w_h]/Me[n._w_h]);t[n._width_height]=l.floor(100*r*i)/i+"%",Si()||n._handle.css(t),o._handleLength=n._handle[0]["offset"+n._Width_Height],o._handleLengthRatio=r}function ai(e,t){var o,r,s=v(t)==i.b,c=250,u=Z&&e,d=li(e),p=d._info,f="translate(",h=a._cssProperty("transform"),m=a._cssProperty("transition"),g=e?fe[fn]():fe[hn](),y=t===n||s?g:t,_=p._handleLength,b=d._track[0]["offset"+d._Width_Height],S=b-_,E={},A=(Ne[on+d._Width_Height]-Ne["client"+d._Width_Height])*(P.n&&u?-1:1),T=function(e){return isNaN(e/A)?0:l.max(0,l.min(1,e/A))},O=function(e){var t=S*e;return t=isNaN(t)?0:t,t=u&&!P.i?b-_-t:t,t=l.max(0,t)},C=T(g),k=O(T(y)),R=O(C);p._maxScroll=A,p._currentScroll=g,p._currentScrollRatio=C,w?(o=u?-(b-_-k):k,r=e?f+o+"px, 0)":f+"0, "+o+"px)",E[h]=r,N&&(E[m]=s&&l.abs(k-p._handleOffset)>1?hi(d._handle)+", "+(h+cn+c)+"ms":en)):E[d._left_top]=k,Si()||(d._handle.css(E),w&&N&&s&&d._handle.one(An,(function(){U||d._handle.css(m,en)}))),p._handleOffset=k,p._snappedHandleOffset=R,p._trackLength=b}function si(e,t){var n=t?"removeClass":"addClass",o=e?Ae:Te,i=e?to:oo;(e?be:Se)[n](i),o[n](i)}function li(e){return{_width_height:e?Zt:Qt,_Width_Height:e?"Width":"Height",_left_top:e?zt:Kt,_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:Ae,_handle:e?Se:Te,_scrollbar:e?_e:Ee,_info:e?Ft:Ut}}function ci(e){ye=ye||Ti(ao,!0),e?J&&F?Ii(ye.removeAttr(r.s),go):wi(ye):J||ce.append(ye)}function ui(){var e,t=Pe.top!==Pe,o={},i={},a={};function l(e){if(u(e)){var t=d(e),n={};(Dt||wt)&&(n[Zt]=i.w+(t.x-o.x)*a.x),(Mt||wt)&&(n[Qt]=i.h+(t.y-o.y)*a.y),ce.css(n),s.stpP(e)}else c(e)}function c(t){var o=t!==n;Ro(re,[En,vn,gn],[Bo,l,c],!0),Ii(se,ho),ye.releaseCapture&&ye.releaseCapture(),o&&(e&&wo(),b.update(tn)),e=!1}function u(e){var t=(e.originalEvent||e).touches!==n;return!Q&&!U&&(1===s.mBtn(e)||t)}function d(e){return C&&t?{x:e.screenX,y:e.screenY}:s.page(e)}Lo(ye,mn,(function(t){u(t)&&!Nt&&(St&&(e=!0,Do()),o=d(t),i.w=ke[r.oW]-(j?0:K),i.h=ke[r.oH]-(j?0:Y),a=gi(),Ro(re,[En,vn,gn],[Bo,l,c]),Li(se,ho),ye.setCapture&&ye.setCapture(),s.prvD(t),s.stpP(t))}))}function di(e,t,n){if(!1!==n)if(F){var o,r=te.callbacks[e],a=e;"on"===a.substr(0,2)&&(a=a.substr(2,1).toLowerCase()+a.substr(3)),v(r)==i.f&&r.call(b,t),_(_o,(function(){v((o=this).on)==i.f&&o.on(a,t)}))}else U||vo.push({n:e,a:t})}function pi(e,t,n){n=n||[en,en,en,en],e[(t=t||en)+Kt]=n[0],e[t+Yt]=n[1],e[t+Wt]=n[2],e[t+zt]=n[3]}function fi(e,t,n,o){return t=t||en,e=e||en,{t:o?0:_i(ce.css(e+Kt+t)),r:n?0:_i(ce.css(e+Yt+t)),b:o?0:_i(ce.css(e+Wt+t)),l:n?0:_i(ce.css(e+zt+t))}}function hi(e){var t=a._cssProperty("transition"),n=e.css(t);if(n)return n;for(var o,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(o=[],!e.match(u))return e;for(;e.match(c);)o.push(RegExp.$1),e=e.replace(c,en);return o};fd&&(u=o+1,d=t);return{_cursorRow:p,_cursorColumn:f,_rows:l,_columns:d,_widestRow:u,_cursorPosition:e,_cursorMax:a}}}function Si(){return Qe&&A.x&&A.y}function Ei(){return B?ve[0]:we}function Ai(e,t){return"
"+(t||en)+"
"}function Ti(e,t){var n=v(t)==i.b,o=n?ce:t||ce;return J&&!o[r.l]?null:J?o[n?"children":"find"](ln+e.replace(/\s/g,ln)).eq(0):d(Ai(e))}function Pi(e,t){for(var n,o=t.split(ln),a=0;a0&&(m?d.each(e,(function(e,i){(a=i)!==n&&c.push(w(a,t,o,f,h))})):d.each(e,(function(e,o){a=p(o),("!"===t&&u.valid(a)||s.type(t)==i.f&&t(o,a)||t===n)&&c.push(a)})),l=1===c[r.l]?c[0]:c),l):m||!t?l:c},u.globals=function(){L();var e=d.extend(!0,{},f);return delete e.msie,e},u.defaultOptions=function(e){L();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 o=s.type(e)==i.s,a=arguments[r.l],l=0;if(a<1||!o)return d.extend(!0,{length:k[r.l]},k);if(o)if(s.type(t)==i.f)k.push({name:e,extensionFactory:t,defaultOptions:n});else for(;l1))return d.extend(!0,{},k[l]);k.splice(l,1)}},u}();var h,m;var g;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===o||(e.exports=o)}("undefined"!=typeof window?window:this)},14224:e=>{var t,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){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:r}catch(e){n=r}}();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 o=n(36257);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,a){if(a!==o){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:r,resetWarningCache:i};return n.PropTypes=n,n}},40507:(e,t,n)=>{e.exports=n(74049)()},36257:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},92228:(e,t,n)=>{"use strict";e.exports=n(81585)},81585:(e,t,n)=>{"use strict";var o=t;function i(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=n(77168),o.BufferWriter=n(14023),o.Reader=n(83124),o.BufferReader=n(8170),o.util=n(11986),o.rpc=n(20531),o.roots=n(16742),o.configure=i,i()},83124:(e,t,n)=>{"use strict";e.exports=l;var o,i=n(11986),r=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 o(e):u(e)})(e)}:u};function p(){var e=new r(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 r(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){o=e,l.create=d(),o._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)}})}},8170:(e,t,n)=>{"use strict";e.exports=r;var o=n(83124);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(11986);function r(e){o.call(this,e)}r._configure=function(){i.Buffer&&(r.prototype._slice=i.Buffer.prototype.slice)},r.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))},r._configure()},16742:e=>{"use strict";e.exports={}},20531:(e,t,n)=>{"use strict";t.Service=n(39180)},39180:(e,t,n)=>{"use strict";e.exports=i;var o=n(11986);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(o.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,r,a){if(!r)throw TypeError("request must be specified");var s=this;if(!a)return o.asPromise(e,s,t,n,i,r);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](r).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}},32969:(e,t,n)=>{"use strict";e.exports=i;var o=n(11986);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=i.zero=new i(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var n=e>>>0,o=(e-n)/4294967296>>>0;return t&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new i(n,o)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(o.isString(e)){if(!o.Long)return i.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):r},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 o.Long?new o.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?r: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}},11986:function(e,t,n){"use strict";var o=t;function i(e,t,n){for(var o=Object.keys(t),i=0;i0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r("ProtocolError"),o.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]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";e.exports=d;var o,i=n(11986),r=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 o})()}: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 m(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 g(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(m,10,r.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=r.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=r.from(e);return this._push(g,4,t.lo)._push(g,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 v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var o=0;o>>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(v,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){o=e,d.create=p(),o._configure()}},14023:(e,t,n)=>{"use strict";e.exports=r;var o=n(77168);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(11986);function r(){o.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)}r._configure=function(){r.alloc=i._Buffer_allocUnsafe,r.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 o=0;o>>0;return this.uint32(t),t&&this._push(r.writeBytesBuffer,t,e),this},r.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},r._configure()},33892:(e,t,n)=>{"use strict";e.exports=n(77515)},77515:(e,t,n)=>{"use strict";var o=t;function i(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=n(43142),o.BufferWriter=n(94139),o.Reader=n(13953),o.BufferReader=n(31426),o.util=n(12138),o.rpc=n(54032),o.roots=n(97957),o.configure=i,i()},13953:(e,t,n)=>{"use strict";e.exports=l;var o,i=n(12138),r=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 o(e):u(e)})(e)}:u};function p(){var e=new r(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 r(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){o=e,l.create=d(),o._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)}})}},31426:(e,t,n)=>{"use strict";e.exports=r;var o=n(13953);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(12138);function r(e){o.call(this,e)}r._configure=function(){i.Buffer&&(r.prototype._slice=i.Buffer.prototype.slice)},r.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))},r._configure()},97957:e=>{"use strict";e.exports={}},54032:(e,t,n)=>{"use strict";t.Service=n(61392)},61392:(e,t,n)=>{"use strict";e.exports=i;var o=n(12138);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");o.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(o.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,r,a){if(!r)throw TypeError("request must be specified");var s=this;if(!a)return o.asPromise(e,s,t,n,i,r);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](r).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}},99101:(e,t,n)=>{"use strict";e.exports=i;var o=n(12138);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=i.zero=new i(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return r;var t=e<0;t&&(e=-e);var n=e>>>0,o=(e-n)/4294967296>>>0;return t&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new i(n,o)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(o.isString(e)){if(!o.Long)return i.fromNumber(parseInt(e,10));e=o.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):r},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 o.Long?new o.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?r: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}},12138:function(e,t,n){"use strict";var o=t;function i(e,t,n){for(var o=Object.keys(t),i=0;i0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var n=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},o.merge=i,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=r,o.ProtocolError=r("ProtocolError"),o.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]}},o.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";e.exports=d;var o,i=n(12138),r=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 o})()}: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 m(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 g(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(m,10,r.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=r.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=r.from(e);return this._push(g,4,t.lo)._push(g,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 v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var o=0;o>>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(v,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){o=e,d.create=p(),o._configure()}},94139:(e,t,n)=>{"use strict";e.exports=r;var o=n(43142);(r.prototype=Object.create(o.prototype)).constructor=r;var i=n(12138);function r(){o.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)}r._configure=function(){r.alloc=i._Buffer_allocUnsafe,r.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 o=0;o>>0;return this.uint32(t),t&&this._push(r.writeBytesBuffer,t,e),this},r.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},r._configure()},57044:(e,t,n)=>{"use strict";t.ZP=void 0;var o,i=(o=n(81244))&&o.__esModule?o:{default:o};var r,a,s,l,c,u,d,p,f,h=(r={blacklistedNodeNames:["STYLE"]},a={strategy:"accented"},s=!1,l=null,c={characterData:!0,childList:!0,subtree:!0},u=function(e){return!!e&&"string"==typeof e},d=function(e){var t=function(e){for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,(function(e){return e.nodeValue&&!/[^\s]/.test(e.nodeValue)||e.parentElement&&r.blacklistedNodeNames.includes(e.parentElement.nodeName)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT})),o=[];t=n.nextNode();)o.push(t);return o}(e),n=!0,o=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(n=(l=c.next()).done);n=!0){var d=l.value,p=d.nodeValue;u(p)&&(d.nodeValue=(0,i.default)(p,a))}}catch(e){o=!0,s=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw s}}},p=function(e){if(l){var t=!0,n=!1,o=void 0;try{for(var s,p=e[Symbol.iterator]();!(t=(s=p.next()).done);t=!0){var f=s.value;if("childList"===f.type&&f.addedNodes.length>0)l.disconnect(),f.addedNodes.forEach(d),l.observe(document.body,c);else if("characterData"===f.type){var h=f.target.nodeValue,m=!!f.target.parentElement&&r.blacklistedNodeNames.includes(f.target.parentElement.nodeName);u(h)&&!m&&(l.disconnect(),f.target.nodeValue=(0,i.default)(h,a),l.observe(document.body,c))}}}catch(e){n=!0,o=e}finally{try{t||null==p.return||p.return()}finally{if(n)throw o}}}},{start:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.strategy,n=void 0===t?"accented":t,o=e.blacklistedNodeNames,i=void 0===o?r.blacklistedNodeNames:o;f()?console.error("pseudo-localization is already enabled"):(r.blacklistedNodeNames=i,a.strategy=n,d(document.body),(l=new MutationObserver(p)).observe(document.body,c),s=!0)},stop:function(){f()?(l&&l.disconnect(),s=!1):console.error("pseudo-localization is already disabled")},isEnabled:f=function(){return s},localize:i.default});t.ZP=h},81244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={accented:{prefix:"",postfix:"",map:{a:"ȧ",A:"Ȧ",b:"ƀ",B:"Ɓ",c:"ƈ",C:"Ƈ",d:"ḓ",D:"Ḓ",e:"ḗ",E:"Ḗ",f:"ƒ",F:"Ƒ",g:"ɠ",G:"Ɠ",h:"ħ",H:"Ħ",i:"ī",I:"Ī",j:"ĵ",J:"Ĵ",k:"ķ",K:"Ķ",l:"ŀ",L:"Ŀ",m:"ḿ",M:"Ḿ",n:"ƞ",N:"Ƞ",o:"ǿ",O:"Ǿ",p:"ƥ",P:"Ƥ",q:"ɋ",Q:"Ɋ",r:"ř",R:"Ř",s:"ş",S:"Ş",t:"ŧ",T:"Ŧ",v:"ṽ",V:"Ṽ",u:"ŭ",U:"Ŭ",w:"ẇ",W:"Ẇ",x:"ẋ",X:"Ẋ",y:"ẏ",Y:"Ẏ",z:"ẑ",Z:"Ẑ"},elongate:!0},bidi:{prefix:"‮",postfix:"‬",map:{a:"ɐ",A:"∀",b:"q",B:"Ԑ",c:"ɔ",C:"Ↄ",d:"p",D:"ᗡ",e:"ǝ",E:"Ǝ",f:"ɟ",F:"Ⅎ",g:"ƃ",G:"⅁",h:"ɥ",H:"H",i:"ı",I:"I",j:"ɾ",J:"ſ",k:"ʞ",K:"Ӽ",l:"ʅ",L:"⅂",m:"ɯ",M:"W",n:"u",N:"N",o:"o",O:"O",p:"d",P:"Ԁ",q:"b",Q:"Ò",r:"ɹ",R:"ᴚ",s:"s",S:"S",t:"ʇ",T:"⊥",u:"n",U:"∩",v:"ʌ",V:"Ʌ",w:"ʍ",W:"M",x:"x",X:"X",y:"ʎ",Y:"⅄",z:"z",Z:"Z"},elongate:!1}},o=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).strategy,o=n[void 0===t?"accented":t],i="",r=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(u in o.map){var d=u,p=d.toLowerCase();!o.elongate||"a"!==p&&"e"!==p&&"o"!==p&&"u"!==p?i+=o.map[d]:i+=o.map[d]+o.map[d]}else i+=u}}catch(e){a=!0,s=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw s}}return i.startsWith(o.prefix)&&i.endsWith(o.postfix)?i:o.prefix+i+o.postfix};t.default=o},85145:(e,t,n)=>{"use strict";var o=n(22767),i=n(59496);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nk;k++)C[k]=k+1;C[15]=0;var R=/^[: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]*$/,L=Object.prototype.hasOwnProperty,I={},N={};function w(e){return!!L.call(N,e)||!L.call(I,e)&&(R.test(e)?N[e]=!0:(I[e]=!0,!1))}function D(e,t,n,o,i,r,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=a}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){M[e]=new D(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];M[t]=new D(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){M[e]=new D(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){M[e]=new D(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){M[e]=new D(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){M[e]=new D(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){M[e]=new D(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){M[e]=new D(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){M[e]=new D(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function F(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(x,F);M[t]=new D(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,F);M[t]=new D(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,F);M[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!1,!1)})),M.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){M[e]=new D(e,1,!1,e.toLowerCase(),null,!0,!0)}));var U=/["'&<>]/;function B(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=U.exec(e);if(t){var n,o="",i=0;for(n=t.index;nt}return!1}(e,t,o,!1)?"":null!==o?(e=o.attributeName,3===(n=o.type)||4===n&&!0===t?e+'=""':(o.sanitizeURL&&(t=""+t),e+'="'+B(t)+'"')):w(e)?e+'="'+B(t)+'"':""}var G="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},J=null,j=null,H=null,K=!1,Y=!1,W=null,z=0;function q(){if(null===J)throw Error(r(321));return J}function X(){if(0z))throw Error(r(301));if(e===J)if(Y=!0,e={action:n,next:null},null===W&&(W=new Map),void 0===(n=W.get(t)))W.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ie(){}var re=null,ae={readContext:function(e){var t=re.threadID;return O(e,t),e[t]},useContext:function(e){q();var t=re.threadID;return O(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){J=q();var t=(H=Z()).memoizedState;return null===t?(e={current:e},H.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:ie,useEffect:ie,useDebugValue:ie,useDeferredValue:function(e){return q(),e},useTransition:function(){return q(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(re.identifierPrefix||"")+"R:"+(re.uniqueID++).toString(36)},useMutableSource:function(e,t){return q(),t(e._source)}},se="http://www.w3.org/1999/xhtml";function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ce={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ue=o({menuitem:!0},ce),de={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var fe=/([A-Z])/g,he=/^ms-/,me=i.Children.toArray,ge=T.ReactCurrentDispatcher,ve={listing:!0,pre:!0,textarea:!0},ye=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_e={},be={};var Se=Object.prototype.hasOwnProperty,Ee={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ae(e,t){if(void 0===e)throw Error(r(152,A(t)||"Component"))}function Te(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,o){if(o&&"object"==typeof(o=e.contextType)&&null!==o)return O(o,n),o[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=P;return t}(a,t,n,s),c=[],u=!1,d={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(i.props,l,d),"function"==typeof a.getDerivedStateFromProps){var p=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=p&&(s.state=o({},s.state,p))}}else if(J={},s=a(i.props,l,d),null==(s=Q(a,i.props,s,l))||null==s.render)return void Ae(e=s,a);if(s.props=i.props,s.context=l,s.updater=d,void 0===(d=s.state)&&(s.state=d=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){d=c;var f=u;if(c=null,u=!1,f&&1===d.length)s.state=d[0];else{p=f?d[0]:s.state;var h=!0;for(f=f?1:0;f=l))throw Error(r(304));var c=new Uint16Array(l);for(c.set(a),(C=c)[0]=o+1,a=o;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===u)this.popProvider(s.type);else if(s.type===f){this.suspenseDepth--;var c=o.pop();if(i){i=!1;var d=s.fallbackFrame;if(!d)throw Error(r(303));this.stack.push(d),o[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}o[this.suspenseDepth]+=c}o[this.suspenseDepth]+=l}else{var p=s.children[s.childIndex++],h="";try{h+=this.render(p,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(r(294));throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=h}}return o[0]}finally{ge.current=n,re=t,$()}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?B(n):this.previousWasTextNode?"\x3c!-- --\x3e"+B(n):(this.previousWasTextNode=!0,B(n));if(e=(t=Te(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)===a)throw Error(r(257));throw Error(r(258,n.toString()))}return e=me(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var v=e.type;if("string"==typeof v)return this.renderDOM(e,t,n);switch(v){case S:case b:case l:case c:case h:case s:return e=me(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:throw Error(r(294));case _:throw Error(r(343))}if("object"==typeof v&&null!==v)switch(v.$$typeof){case p:J={};var E=v.render(e.props,e.ref);return E=Q(v.render,e.props,E,e.ref),E=me(E),this.stack.push({type:null,domNamespace:n,children:E,childIndex:0,context:t,footer:""}),"";case m:return e=[i.createElement(v.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case u:return n={type:e,domNamespace:n,children:v=me(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:v=e.type,E=e.props;var A=this.threadID;return O(v,A),v=me(E.children(v[A])),this.stack.push({type:e,domNamespace:n,children:v,childIndex:0,context:t,footer:""}),"";case y:throw Error(r(338));case g:return v=(E=(v=e.type)._init)(v._payload),e=[i.createElement(v,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(r(130,null==v?v:typeof v,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===se&&le(a),!_e.hasOwnProperty(a)){if(!ye.test(a))throw Error(r(65,a));_e[a]=!0}var s=e.props;if("input"===a)s=o({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 Error(r(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(r(93));c=c[0]}l=""+c}null==l&&(l="")}s=o({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=o({},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":(S+=">",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=B(c);break e}c=null}return null!=c?(s=[],ve.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(S+="\n"),S+=c):s=me(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?le(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,S},e}();t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){e=new Pe(e,!0,t);try{return e.read(1/0)}finally{e.destroy()}},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){e=new Pe(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}},t.version="17.0.2"},17439:(e,t,n)=>{"use strict";var o=n(59496),i=n(22767),r=n(58051);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n