dotfiles/.config/spicetify/Extracted/Themed/licenses/licenses.bundle.js

38 lines
261 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(()=>{var t={9548:t=>{"use strict";t.exports=JSON.parse('{"album":"album","artist":"artist","artistAbout":"artist/about","artistAlbums":"artist/albums","artistBio":"artist/bio","artistConcerts":"artist/concerts","artistGallery":"artist/gallery","artistPlaylists":"artist/playlists","artistRelated":"artist/related","artistWorks":"artist/works","browse":"browse","browseCharts":"browse/charts","browseDiscover":"browse/discover","browseGenres":"browse/genres","browseNewReleases":"browse/newreleases","browsePodcasts":"browse/podcasts","browseVideos":"browse/videos","charts":"charts","chartsChart":"charts/chart","chartsRegional":"charts/regional","chartsSocial":"charts/social","chartsViral":"charts/viral","collection":"collection","collectionAlbums":"collection/albums","collectionAlbumsAlbum":"collection/albums/album","collectionArtists":"collection/artists","collectionArtistsArtist":"collection/artists/artist","collectionPlaylists":"collection/playlists","collectionRadio":"collection/radio","collectionRecentlyPlayed":"collection/recently-played","collectionShows":"collection/shows","collectionSongs":"collection/songs","concert":"concert","concerts":"concerts","concertsCitysearch":"concerts/citysearch","concertsConcert":"concerts/concert","debug":"debug","experimentalFeatures":"experiments","lyrics":"lyrics","legacyLyrics":"legacyLyrics","home":"home","madeForYou":"made-for-you","moments":"moments","momentsCategory":"moments/category","music":"music","musicCategory":"music/category","now":"now","nowplaying":"nowplaying","nowplayingDevicepicker":"connect/devicepicker","nowplayingHistory":"nowplaying/history","nowplayingQueue":"nowplaying/queue","party":"party","partyAddFriends":"party/add-friends","partyEnableBluetooth":"party/enable-bluetooth","partyEnableNearby":"party/enable-nearby","partyPreset":"party/preset","partyQueue":"party/queue","playlist":"playlist","playlistFolder":"playlist/folder","profile":"profile","profileActivity":"profile/activity","profileArtists":"profile/artists","profileFollowers":"profile/followers","profileFollowing":"profile/following","profilePlaylists":"profile/playlists","radio":"radio","radioDailyMixes":"radio/daily-mixes","radioStation":"radio/station","running":"running","runningCategory":"running/category","runningSetup":"running/setup","search":"search","searchAlbums":"search/albums","searchArtists":"search/artists","searchGenres":"search/genres","searchPlaylists":"search/playlists","searchProfiles":"search/profiles","searchRadio":"search/radio","searchShows":"search/shows","searchSongs":"search/songs","searchVideos":"search/videos","settings":"settings","show":"show","shows":"shows","showsAudio":"shows/audio","showsCategory":"shows/category","showsNetwork":"shows/network","showsVideo":"shows/video","song":"song","unknown":"unknown","unknownUncovered":"unknown/uncovered","work":"work"}')},11227:(t,e,n)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(r++,"%c"===t&&(o=r))})),e.splice(o,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&"undefined"!=typeof process&&"env"in process&&(t="{}".DEBUG);return t},e.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+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})(),e.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"],e.log=console.debug||console.log||(()=>{}),t.exports=n(82447)(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},82447:(t,e,n)=>{t.exports=function(t){function e(t){let n,o=null;function i(...t){if(!i.enabled)return;const r=i,o=Number(new Date),s=o-(n||o);r.diff=s,r.prev=n,r.curr=o,n=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let a=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((n,o)=>{if("%%"===n)return"%";a++;const i=e.formatters[o];if("function"==typeof i){const e=t[a];n=i.call(r,e),t.splice(a,1),a--}return n})),e.formatArgs.call(r,t);(r.log||e.log).apply(r,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=r,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?e.enabled(t):o,set:t=>{o=t}}),"function"==typeof e.init&&e.init(i),i}function r(t,n){const r=e(this.namespace+(void 0===n?":":n)+t);return r.log=this.log,r}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let n;e.save(t),e.names=[],e.skips=[];const r=("string"==typeof t?t:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(t=r[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(11378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((n=>{e[n]=t[n]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return e.colors[Math.abs(n)%e.colors.length]},e.enable(e.load()),e}},61202:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});const r=200,o=0,i="linear",s=!0;class a{constructor(t={}){this._curve=t.curve||i,this._baseTime=t.baseTime||r,this._ceiling=t.ceiling||o,this._jitter="jitter"in t?!!t.jitter:s}getTime(t){let e;switch(this._curve){case"static":e=1;break;case"logarithmic":e=Math.log(t);break;case"exponential":e=Math.pow(Math.E,t);break;case"linear":default:e=t+1}let n=Math.min(4294967296,Math.floor(e*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(t){const e=t/5;return Math.floor(t-e/2+Math.random()*e)}(n):n}}},6759:(t,e,n)=>{"use strict";n.d(e,{V:()=>a});var r=n(61202);function o(){let t=()=>{},e=()=>{};return{promise:new Promise(((n,r)=>{t=n,e=r})),resolve:t,reject:e}}function i(){return Promise.reject(new Error("Backoff already consumed"))}const s={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class a{constructor(t,e){this._resolver=o(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1;const n=e||{};this._fn=t,this._maxDuration=n.maxDuration||s.maxDuration,this._maxRetries="maxRetries"in n?n.maxRetries:s.maxRetries,this._maxTime=n.maxTime||s.maxTime,this._retryPredicate=n.retryPredicate||s.retryPredicate,this._backoffInitial=!!n.backoffInitial,this._counter=new r.A({curve:n.curve,baseTime:n.baseTime,ceiling:n.ceiling}),this._backoffInitial&&(this._maxRetries+=1)}static init(t,e={}){return new a(t,e).start()}_destroy(){this._fn=i,this._resolver=o()}_failure(t){if(t&&"retryAfter"in t)this._retryAfter(t);else{const e=this._counter.getTime(this._callCount);this._shouldRetry(e,t)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e)):(this._resolver.reject(t),this._destroy())}}_retryAfter(t){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t.retryAfter)}_success(...t){this._resolver.resolve(...t),this._destroy()}_shouldRetry(t,e){const n=Date.now()-this._ts+t;return this._callCount<this._maxRetries&&t<this._maxTime&&n<this._maxDuration&&this._retryPredicate(e)}_tick(){this._fn().then(((...t)=>this._success(...t))).catch((t=>this._failure(t)))}getResolver(){return this._resolver.promise}start(t){return!this._fn&&t&&(this._fn=t),this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise}stop(){clearTimeout(this._tickInterval),this._isRunning=!1,this._destroy()}}},60392:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var r,o={};n.r(o),n.d(o,{disable:()=>y,disableAll:()=>v,enable:()=>_,enableAll:()=>m,forTag:()=>E,intercept:()=>p,list:()=>d,remove:()=>T,setLevel:()=>g,unintercept:()=>f}),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.DEBUG=2]="DEBUG",t[t.INFO=4]="INFO",t[t.WARN=8]="WARN",t[t.ERROR=16]="ERROR"}(r||(r={}));const i="true"==="{}".DEBUG?class{constructor(t,e="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=r.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=t,this.description=e,this._predicate=n,this._tagParts=t.split("."),this._tagText=`[${t}]`}_print(t,e,n){if(!(this._enabled||this._level&e))return;const r={args:n,type:t,tag:this.tag};this._predicate(r)||console[t](this._tagText,...n)}matchesTag(t){const e=Array.isArray(t)?t:t.split("."),n=this._tagParts;if(e.length>n.length)return!1;for(let t=0,r=e.length;t<r;t++)if(("*"!==e[t]||!n[t])&&e[t]!==n[t])return!1;return!0}setLevel(t){let e=0;switch(t){case"error":e=r.ERROR;break;case"warn":e=r.WARN|r.ERROR;break;case"info":e=r.INFO|r.WARN|r.ERROR;break;case"debug":e=r.DEBUG|r.INFO|r.WARN|r.ERROR;break;case"log":default:e=r.LOG|r.DEBUG|r.INFO|r.WARN|r.ERROR}this._level=e}enable(){this._enabled=!0}disable(){this._enabled=!1}log(...t){this._print("log",r.LOG,t)}debug(...t){this._print("debug",r.DEBUG,t)}info(...t){this._print("info",r.INFO,t)}warn(...t){this._print("warn",r.WARN,t)}error(...t){this._print("error",r.ERROR,t)}}:class{constructor(){this.tag="",this.description=""}matchesTag(){return!1}setLevel(){}enable(){}disable(){}log(){}debug(){}info(){}warn(){}error(){}},s="__dbgLoggerRegistry";let a=n.g.__dbgLoggerRegistry;a||(a={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,s,{value:a}):n.g.__dbgLoggerRegistry=a);const c=a.map,u=a.list;function l(t){return!(!a.loggingPredicate||!a.loggingPredicate(t))}let h="log";function p(t){if("function"!=typeof t)throw new TypeError("Logging.intercept requires a function predicate.");a.loggingPredicate=t}function f(){a.loggingPredicate=()=>{}}function d(t){const e=Object.keys(c).filter((t=>c[t])).sort();return t?e.map((t=>({tag:t,description:c[t].description||"No description."}))):e.reduce(((t,e)=>(t[e]=c[e].description||"No description",t)),{})}function _(t){const e=Array.isArray(t)?t:[t];let n=e.length;for(;n--;){const t=e[n].toLowerCase();let r=u.length;for(;r--;){const e=u[r];e.matchesTag(t)&&e.enable()}}}function y(t){const e=Array.isArray(t)?t:[t];let n=e.length;for(;n--;){const t=e[n].toLowerCase();let r=u.length;for(;r--;){const e=u[r];e.matchesTag(t)&&e.disable()}}}function g(t){h=t;let e=u.length;for(;e--;){const n=u[e];n&&n.setLevel(t)}}function m(){let t=u.length;for(;t--;)u[t]&&u[t].enable()}function v(){let t=u.length;for(;t--;)u[t]&&u[t].disable()}function E(t,e){let n,r;if("string"==typeof t?(n=t.toLowerCase(),r=e):(n=t.tag,r=t.description),c.hasOwnProperty(n)&&c[n])return c[n];const o=new i(n,r,l);return o.setLevel(h),c[n]=o,u.push(o),o}function T(t){const e=t.toLowerCase();if(!c.hasOwnProperty(e)||!c[e])return;const n=c[e];c[e]=null;const r=u.indexOf(n);-1!==r&&u.splice(r,1)}},7084:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BrowserClient:()=>Ve,Hub:()=>ht,Integrations:()=>dn,SDK_NAME:()=>Ge,SDK_VERSION:()=>We,Scope:()=>L,Severity:()=>c,Status:()=>u,Transports:()=>i,addBreadcrumb:()=>Ot,addGlobalEventProcessor:()=>x,captureEvent:()=>Tt,captureException:()=>vt,captureMessage:()=>Et,close:()=>ln,configureScope:()=>bt,defaultIntegrations:()=>nn,eventFromException:()=>ce,eventFromMessage:()=>ue,flush:()=>un,forceLoad:()=>an,getCurrentHub:()=>dt,getHubFromCarrier:()=>yt,init:()=>rn,injectReportDialog:()=>Re,lastEventId:()=>sn,makeMain:()=>ft,onLoad:()=>cn,setContext:()=>wt,setExtra:()=>St,setExtras:()=>Rt,setTag:()=>Nt,setTags:()=>It,setUser:()=>At,showReportDialog:()=>on,startTransaction:()=>Lt,withScope:()=>Ct,wrap:()=>hn});var r={};n.r(r),n.d(r,{FunctionToString:()=>Xe,InboundFilters:()=>Ke});var o={};n.r(o),n.d(o,{Breadcrumbs:()=>He,GlobalHandlers:()=>$e,LinkedErrors:()=>Ze,TryCatch:()=>ze,UserAgent:()=>en});var i={};n.r(i),n.d(i,{BaseTransport:()=>ye,FetchTransport:()=>me,XHRTransport:()=>ve});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function a(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c,u,l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function h(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(c||(c={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(c||(c={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(u||(u={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(u||(u={}));var d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function _(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_(arguments[e]));return t}function g(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return I(t,Error)}}function m(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function v(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function E(t){return"[object String]"===Object.prototype.toString.call(t)}function T(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function O(t){return"undefined"!=typeof Event&&I(t,Event)}function w(t){return"undefined"!=typeof Element&&I(t,Element)}function R(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function I(t,e){try{return t instanceof e}catch(t){return!1}}var S,N=n(7790);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));var A=function(){function t(t){var e=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){e._setResult(S.RESOLVED,t)},this._reject=function(t){e._setResult(S.REJECTED,t)},this._setResult=function(t,n){e._state===S.PENDING&&(R(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._attachHandler=function(t){e._handlers=e._handlers.concat(t),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==S.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t.done||(e._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(e._value),e._state===S.REJECTED&&t.onrejected&&t.onrejected(e._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.resolve=function(e){return new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.all=function(e){return new t((function(n,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach((function(e,s){t.resolve(e).then((function(t){i[s]=t,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(e,n){var r=this;return new t((function(t,o){r._attachHandler({done:!1,onfulfilled:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else t(n)},onrejected:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else o(e)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var o,i;return n.then((function(t){i=!1,o=t,e&&e()}),(function(t){i=!0,o=t,e&&e()})).then((function(){i?r(o):t(o)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),C=n(63699),L=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=y(e._breadcrumbs),n._tags=d({},e._tags),n._extra=d({},e._extra),n._contexts=d({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=y(e._eventProcessors)),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.setTags=function(t){return this._tags=d(d({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=d(d({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=d(d({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=d(d({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=d(d({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,o=this.getSpan();return(null===(t=o)||void 0===t?void 0:t.transaction)?null===(e=o)||void 0===e?void 0:e.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=d(d({},this._tags),e._tags),this._extra=d(d({},this._extra),e._extra),this._contexts=d(d({},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)):b(e)&&(e=e,this._tags=d(d({},this._tags),e.tags),this._extra=d(d({},this._extra),e.extra),this._contexts=d(d({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=d({timestamp:(0,N.yW)()},t);return this._breadcrumbs=void 0!==e&&e>=0?y(this._breadcrumbs,[n]).slice(-e):y(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=d(d({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=d(d({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=d(d({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=d(d({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=d({trace:this._span.getTraceContext()},t.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(t.tags=d({transaction:r},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=y(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(y(P(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,r){var o=this;return void 0===r&&(r=0),new A((function(i,s){var a=t[r];if(null===e||"function"!=typeof a)i(e);else{var c=a(d({},e),n);R(c)?c.then((function(e){return o._notifyEventProcessors(t,e,n,r+1).then(i)})).then(null,s):o._notifyEventProcessors(t,c,n,r+1).then(i).then(null,s)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function P(){var t=(0,C.Rf)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function x(t){P().push(t)}var D=function(){return(D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function U(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function k(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(U(arguments[e]));return t}var M=(0,C.Rf)(),F="Sentry Logger ",j=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&(0,C.Cf)((function(){M.console.log(F+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&(0,C.Cf)((function(){M.console.warn(F+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&(0,C.Cf)((function(){M.console.error(F+"[Error]: "+t.join(" "))}))},t}();M.__SENTRY__=M.__SENTRY__||{};var B,q=M.__SENTRY__.logger||(M.__SENTRY__.logger=new j),H=n(37392);!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(B||(B={}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var G=function(t,e){return(G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var W=function(){return(W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function V(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function Y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Q(t){try{for(var e=t,n=[],r=0,o=0,i=" > ".length,s=void 0;e&&r++<5&&!("html"===(s=K(e))||r>1&&o+n.length*i+s.length>=80);)n.push(s),o+=s.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function K(t){var e,n,r,o,i,s=t,a=[];if(!s||!s.tagName)return"";if(a.push(s.tagName.toLowerCase()),s.id&&a.push("#"+s.id),(e=s.className)&&E(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)a.push("."+n[i]);var c=["type","name","title","alt"];for(i=0;i<c.length;i++)r=c[i],(o=s.getAttribute(r))&&a.push("["+r+'="'+o+'"]');return a.join("")}var X=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}(),J="<anonymous>";function z(t){try{return t&&"function"==typeof t&&t.name||J}catch(t){return J}}function $(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function Z(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function tt(t,e){return!!E(t)&&(function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function et(t,e,n){if(e in t){var r=t[e],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(t){}t[e]=o}}function nt(t){if(g(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if(O(t)){var o=t,i={};i.type=o.type;try{i.target=w(o.target)?Q(o.target):Object.prototype.toString.call(o.target)}catch(t){i.target="<unknown>"}try{i.currentTarget=w(o.currentTarget)?Q(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&I(t,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}return t}function rt(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function ot(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=at(t,e);return rt(r)>n?ot(t,e-1,n):r}function it(t,e){return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(t){return b(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+z(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function st(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new X),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=it(t);return T(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var o=it(e,t);if(T(o))return o;var i=nt(e),s=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=st(a,i[a],n-1,r));return r.unmemoize(e),s}function at(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return st(t,n,e)})))}catch(t){return"**non-serializable**"}}function ct(t,e){void 0===e&&(e=40);var n=Object.keys(nt(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return $(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:$(o,e)}return""}function ut(t){var e,n;if(b(t)){var r=t,o={};try{for(var i=V(Object.keys(r)),s=i.next();!s.done;s=i.next()){var a=s.value;void 0!==r[a]&&(o[a]=ut(r[a]))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o}return Array.isArray(t)?t.map(ut):t}var lt=function(){function t(t){this.errors=0,this.sid=(0,C.DM)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=B.Ok,t&&this.update(t)}return t.prototype.update=function(t){void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Date.now(),t.sid&&(this.sid=32===t.sid.length?t.sid:(0,C.DM)()),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),"number"==typeof t.duration?this.duration=t.duration:this.duration=this.timestamp-this.started,t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===B.Ok?this.update({status:B.Exited}):this.update()},t.prototype.toJSON=function(){return ut({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:ut({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),ht=function(){function t(t,e,n){void 0===e&&(e=new L),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=L.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=(0,C.DM)(),r=e;if(!e){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(t){o=t}r={originalException:t,syntheticException:o}}return this._invokeClient("captureException",t,d(d({},r),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var r=this._lastEventId=(0,C.DM)(),o=n;if(!n){var i=void 0;try{throw new Error(t)}catch(t){i=t}o={originalException:t,syntheticException:i}}return this._invokeClient("captureMessage",t,e,d(d({},o),{event_id:r})),r},t.prototype.captureEvent=function(t,e){var n=this._lastEventId=(0,C.DM)();return this._invokeClient("captureEvent",t,d(d({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},s=i.beforeBreadcrumb,a=void 0===s?null:s,c=i.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var l=(0,N.yW)(),h=d({timestamp:l},t),p=a?(0,C.Cf)((function(){return a(h,e)})):h;null!==p&&r.addBreadcrumb(p,Math.min(u,100))}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope,r=e.client;n&&r&&t(n)},t.prototype.run=function(t){var e=ft(this);try{t(this)}finally{ft(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return q.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.startSession=function(t){this.endSession();var e=this.getStackTop(),n=e.scope,r=e.client,o=r&&r.getOptions()||{},i=o.release,s=o.environment,a=new lt(d(d({release:i,environment:s},n&&{user:n.getUser()}),t));return n&&n.setSession(a),a},t.prototype.endSession=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),e.setSession())}},t.prototype._invokeClient=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,s=o.client;s&&s[t]&&(e=s)[t].apply(e,y(n,[i]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=pt(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[t])return o.extensions[t].apply(this,e);q.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function pt(){var t=(0,C.Rf)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function ft(t){var e=pt(),n=yt(e);return gt(e,t),n}function dt(){var t=pt();return _t(t)&&!yt(t).isOlderThan(3)||gt(t,new ht),(0,H.KV)()?function(t){try{var e=function(){var t=pt().__SENTRY__;return t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active}();if(!e)return yt(t);if(!_t(e)||yt(e).isOlderThan(3)){var n=yt(t).getStackTop();gt(e,new ht(n.client,L.clone(n.scope)))}return yt(e)}catch(e){return yt(t)}}(t):yt(t)}function _t(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function yt(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new ht),t.__SENTRY__.hub}function gt(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function mt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=dt();if(r&&r[t])return r[t].apply(r,k(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function vt(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return mt("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Et(t,e){var n;try{throw new Error(t)}catch(t){n=t}return mt("captureMessage",t,"string"==typeof e?e:void 0,D({originalException:t,syntheticException:n},"string"!=typeof e?{captureContext:e}:void 0))}function Tt(t){return mt("captureEvent",t)}function bt(t){mt("configureScope",t)}function Ot(t){mt("addBreadcrumb",t)}function wt(t,e){mt("setContext",t,e)}function Rt(t){mt("setExtras",t)}function It(t){mt("setTags",t)}function St(t,e){mt("setExtra",t,e)}function Nt(t,e){mt("setTag",t,e)}function At(t){mt("setUser",t)}function Ct(t){mt("withScope",t)}function Lt(t,e){return mt("startTransaction",D({},t),e)}var Pt=function(){return(Pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function xt(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function Dt(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function Ut(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Dt(arguments[e]));return t}var kt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});var Mt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,kt(r,n.prototype),r}return function(t,e){function n(){this.constructor=t}G(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e}(Error),Ft=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,jt="Invalid Dsn",Bt=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,n=e.host,r=e.path,o=e.pass,i=e.port,s=e.projectId;return e.protocol+"://"+e.user+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+s},t.prototype._fromString=function(t){var e=Ft.exec(t);if(!e)throw new Mt(jt);var n=Y(e.slice(1),6),r=n[0],o=n[1],i=n[2],s=void 0===i?"":i,a=n[3],c=n[4],u=void 0===c?"":c,l="",h=n[5],p=h.split("/");if(p.length>1&&(l=p.slice(0,-1).join("/"),h=p.pop()),h){var f=h.match(/^\d+/);f&&(h=f[0])}this._fromComponents({host:a,pass:s,path:l,projectId:h,port:u,protocol:r,user:o})},t.prototype._fromComponents=function(t){this.protocol=t.protocol,this.user=t.user,this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","user","host","projectId"].forEach((function(e){if(!t[e])throw new Mt("Invalid Dsn: "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new Mt("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Mt("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Mt("Invalid Dsn: Invalid port "+this.port)},t}(),qt=[];function Ht(t){var e={};return function(t){var e=t.defaultIntegrations&&Ut(t.defaultIntegrations)||[],n=t.integrations,r=[];if(Array.isArray(n)){var o=n.map((function(t){return t.name})),i=[];e.forEach((function(t){-1===o.indexOf(t.name)&&-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))})),n.forEach((function(t){-1===i.indexOf(t.name)&&(r.push(t),i.push(t.name))}))}else"function"==typeof n?(r=n(e),r=Array.isArray(r)?r:[r]):r=Ut(e);var s=r.map((function(t){return t.name})),a="Debug";return-1!==s.indexOf(a)&&r.push.apply(r,Ut(r.splice(s.indexOf(a),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===qt.indexOf(t.name)&&(t.setupOnce(x,dt),qt.push(t.name),q.log("Integration installed: "+t.name))}(t)})),e}var Gt=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new Bt(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this,o=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){o=t}))),o},t.prototype.captureMessage=function(t,e,n,r){var o=this,i=n&&n.event_id,s=T(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(s.then((function(t){return o._captureEvent(t,n,r)})).then((function(t){i=t}))),i},t.prototype.captureEvent=function(t,e,n){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r},t.prototype.captureSession=function(t){t.release?this._sendSession(t):q.warn("Discarded session because of missing release")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(n){return e._getBackend().getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Ht(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return q.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,o,i=!1,s=!1,a=e.exception&&e.exception.values;if(a){s=!0;try{for(var c=xt(a),u=c.next();!u.done;u=c.next()){var l=u.value.mechanism;if(l&&!1===l.handled){i=!0;break}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var h=e.user;if(!t.userAgent){var p=e.request?e.request.headers:{};for(var f in p)if("user-agent"===f.toLowerCase()){o=p[f];break}}t.update(Pt(Pt({},i&&{status:B.Crashed}),{user:h,userAgent:o,errors:t.errors+Number(s||i)}))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new A((function(n){var r=0,o=setInterval((function(){0==e._processing?(clearInterval(o),n(!0)):(r+=1,t&&r>=t&&(clearInterval(o),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,s=Pt(Pt({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:(0,C.DM)()),timestamp:t.timestamp||(0,N.yW)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var a=e;n&&n.captureContext&&(a=L.clone(a).update(n.captureContext));var c=A.resolve(s);return a&&(c=a.applyToEvent(s,n)),c.then((function(t){return"number"==typeof i&&i>0?r._normalizeEvent(t,i):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=Pt(Pt(Pt(Pt(Pt({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Pt(Pt({},t),t.data&&{data:at(t.data,e)})}))}),t.user&&{user:at(t.user,e)}),t.contexts&&{contexts:at(t.contexts,e)}),t.extra&&{extra:at(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,s=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=$(t.message,s));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=$(a.value,s));var c=t.request;c&&c.url&&(c.url=$(c.url,s))},t.prototype._applyIntegrationsMetadata=function(t){var e=t.sdk,n=Object.keys(this._integrations);e&&n.length>0&&(e.integrations=n)},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){q.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),i=o.beforeSend,s=o.sampleRate;if(!this._isEnabled())return A.reject(new Mt("SDK not enabled, will not send event."));var a="transaction"===t.type;return!a&&"number"==typeof s&&Math.random()>s?A.reject(new Mt("Discarding event because it's not included in the random sample (sampling rate = "+s+")")):this._prepareEvent(t,n,e).then((function(t){if(null===t)throw new Mt("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||a||!i)return t;var n=i(t,e);if(void 0===n)throw new Mt("`beforeSend` method has to return `null` or a valid event.");return R(n)?n.then((function(t){return t}),(function(t){throw new Mt("beforeSend rejected with "+t)})):n})).then((function(t){if(null===t)throw new Mt("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!a&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t})).then(null,(function(t){if(t instanceof Mt)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new Mt("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t}(),Wt=function(){function t(){}return t.prototype.sendEvent=function(t){return A.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},t.prototype.close=function(t){return A.resolve(!0)},t}(),Vt=function(){function t(t){this._options=t,this._options.dsn||q.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new Mt("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new Mt("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){q.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){q.error("Error while sending session: "+t)})):q.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Wt},t}();function Yt(){if(!("fetch"in(0,C.Rf)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Qt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Kt(){if(!Yt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var Xt="?",Jt=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,zt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Zt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,te=/\((\S*)(?::(\d+))(?::(\d+))\)/,ee=/Minified React error #\d+;/i;function ne(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:ee.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,o=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],a=0;a<i.length;a+=2){var c=null;(e=r.exec(i[a]))?c={url:e[2],func:e[3],args:[],line:+e[1],column:null}:(e=o.exec(i[a]))&&(c={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),c&&(!c.func&&c.line&&(c.func=Xt),s.push(c))}if(!s.length)return null;return{message:oe(t),name:t.name,stack:s}}(t))return re(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,o=[],i=t.stack.split("\n"),s=0;s<i.length;++s){if(n=Jt.exec(i[s])){var a=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=te.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||Xt,args:a?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=$t.exec(i[s]))r={url:n[2],func:n[1]||Xt,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=zt.exec(i[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=Zt.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==s||n[5]||void 0===t.columnNumber||(o[0].column=t.columnNumber+1),r={url:n[3],func:n[1]||Xt,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=Xt),o.push(r)}if(!o.length)return null;return{message:oe(t),name:t.name,stack:o}}(t))return re(e,n)}catch(t){}return{message:oe(t),name:t&&t.name,stack:[],failed:!0}}function re(t,e){try{return l(l({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function oe(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function ie(t){var e=ae(t.stack),n={type:t.name,value:t.message};return e&&e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function se(t){return{exception:{values:[ie(t)]}}}function ae(t){if(!t||!t.length)return[];var e=t,n=e[0].func||"",r=e[e.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function ce(t,e,n){var r=le(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return(0,C.EG)(r,{handled:!0,type:"generic"}),r.level=c.Error,n&&n.event_id&&(r.event_id=n.event_id),A.resolve(r)}function ue(t,e,n,r){void 0===n&&(n=c.Info);var o=he(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),A.resolve(o)}function le(t,e,n){var r;if(void 0===n&&(n={}),m(t)&&t.error)return r=se(ne(t=t.error));if(v(t)||function(t){return"[object DOMException]"===Object.prototype.toString.call(t)}(t)){var o=t,i=o.name||(v(o)?"DOMError":"DOMException"),s=o.message?i+": "+o.message:i;return r=he(s,e,n),(0,C.Db)(r,s),"code"in o&&(r.tags=l(l({},r.tags),{"DOMException.code":""+o.code})),r}return g(t)?r=se(ne(t)):b(t)||O(t)?(r=function(t,e,n){var r={exception:{values:[{type:O(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+ct(t)}]},extra:{__serialized__:ot(t)}};if(e){var o=ae(ne(e).stack);r.stacktrace={frames:o}}return r}(t,e,n.rejection),(0,C.EG)(r,{synthetic:!0}),r):(r=he(t,e,n),(0,C.Db)(r,""+t,void 0),(0,C.EG)(r,{synthetic:!0}),r)}function he(t,e,n){void 0===n&&(n={});var r={message:t};if(n.attachStacktrace&&e){var o=ae(ne(e).stack);r.stacktrace={frames:o}}return r}function pe(t,e){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(t),type:"session",url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function fe(t,e){var n=t.tags||{},r=n.__sentry_samplingMethod,o=n.__sentry_sampleRate,i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]])}return n}(n,["__sentry_samplingMethod","__sentry_sampleRate"]);t.tags=i;var s="transaction"===t.type,a={body:JSON.stringify(t),type:t.type||"event",url:s?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(s){var c=JSON.stringify({event_id:t.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:r,rate:o}]})+"\n"+a.body;a.body=c}return a}var de=function(){function t(t){this.dsn=t,this._dsnObject=new Bt(t)}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+t+"/"+e),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var o in r.push("dsn="+e.toString()),t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&r.push("name="+encodeURIComponent(t.user.name)),t.user.email&&r.push("email="+encodeURIComponent(t.user.email))}else r.push(encodeURIComponent(o)+"="+encodeURIComponent(t[o]));return r.length?n+"?"+r.join("&"):n},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){return function(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}({sentry_key:this._dsnObject.user,sentry_version:"7"})},t}(),_e=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var e=this;return this.isReady()?(-1===this._buffer.indexOf(t)&&this._buffer.push(t),t.then((function(){return e.remove(t)})).then(null,(function(){return e.remove(t).then(null,(function(){}))})),t):A.reject(new Mt("Not adding Promise due to buffer limit reached."))},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var e=this;return new A((function(n){var r=setTimeout((function(){t&&t>0&&n(!1)}),t);A.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),ye=function(){function t(t){this.options=t,this._buffer=new _e(30),this._rateLimits={},this._api=new de(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new Mt("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,s=u.fromHttpCode(n.status);this._handleRateLimit(r)&&q.warn("Too many requests, backing off until: "+this._disabledUntil(e)),s!==u.Success?i(n):o({status:s})},t.prototype._disabledUntil=function(t){return this._rateLimits[t]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,r,o,i=Date.now(),s=t["x-sentry-rate-limits"],a=t["retry-after"];if(s){try{for(var c=h(s.trim().split(",")),u=c.next();!u.done;u=c.next()){var l=u.value.split(":",2),p=parseInt(l[0],10),f=1e3*(isNaN(p)?60:p);try{for(var d=(r=void 0,h(l[1].split(";"))),_=d.next();!_.done;_=d.next()){var y=_.value;this._rateLimits[y||"all"]=new Date(i+f)}}catch(t){r={error:t}}finally{try{_&&!_.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return!0}return!!a&&(this._rateLimits.all=new Date(i+(0,C.JY)(i,a)),!0)},t}(),ge=(0,C.Rf)(),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(fe(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(pe(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:Kt()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new A((function(e,o){ge.fetch(t.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:i,resolve:e,reject:o})})).catch(o)})))},e}(ye),ve=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(fe(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(pe(t,this._api),t)},e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add(new A((function(e,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:o,headers:i,resolve:e,reject:r})}},o.open("POST",t.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(t.body)})))},e}(ye),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.eventFromException=function(t,e){return ce(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=c.Info),ue(this._options,t,e,n)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=l(l({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(e):Yt()?new me(e):new ve(e)},e}(Vt),Te=0;function be(){return Te>0}function Oe(){Te+=1,setTimeout((function(){Te-=1}))}function we(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(t){return we(t,e)}));return t.handleEvent?t.handleEvent.apply(this,o):t.apply(this,o)}catch(t){throw Oe(),Ct((function(n){n.addEventProcessor((function(t){var n=l({},t);return e.mechanism&&((0,C.Db)(n,void 0,void 0),(0,C.EG)(n,e.mechanism)),n.extra=l(l({},n.extra),{arguments:r}),n})),vt(t)})),t}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}catch(t){}t.prototype=t.prototype||{},r.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return t.name}})}catch(t){}return r}function Re(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new de(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else q.error("Missing dsn option in showReportDialog call");else q.error("Missing eventId option in showReportDialog call")}var Ie,Se=(0,C.Rf)(),Ne={},Ae={};function Ce(t){if(!Ae[t])switch(Ae[t]=!0,t){case"console":!function(){if(!("console"in Se))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in Se.console&&et(Se.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Pe("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,Se.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Se))return;Se.document.addEventListener("click",Fe("click",Pe.bind(null,"dom")),!1),Se.document.addEventListener("keypress",je(Pe.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(t){var e=Se[t]&&Se[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(et(e,"addEventListener",(function(t){return function(e,n,r){return n&&n.handleEvent?("click"===e&&et(n,"handleEvent",(function(t){return function(e){return Fe("click",Pe.bind(null,"dom"))(e),t.call(this,e)}})),"keypress"===e&&et(n,"handleEvent",(function(t){return function(e){return je(Pe.bind(null,"dom"))(e),t.call(this,e)}}))):("click"===e&&Fe("click",Pe.bind(null,"dom"),!0)(this),"keypress"===e&&je(Pe.bind(null,"dom"))(this)),t.call(this,e,n,r)}})),et(e,"removeEventListener",(function(t){return function(e,n,r){try{t.call(this,e,n.__sentry_wrapped__,r)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Se))return;var t=[],e=[],n=XMLHttpRequest.prototype;et(n,"open",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=this,s=r[1];i.__sentry_xhr__={method:E(r[0])?r[0].toUpperCase():r[0],url:r[1]},E(s)&&"POST"===i.__sentry_xhr__.method&&s.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var a=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(t){}try{var n=t.indexOf(i);if(-1!==n){t.splice(n);var o=e.splice(n)[0];i.__sentry_xhr__&&void 0!==o[0]&&(i.__sentry_xhr__.body=o[0])}}catch(t){}Pe("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?et(i,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a(),t.apply(i,e)}})):i.addEventListener("readystatechange",a),n.apply(i,r)}})),et(n,"send",(function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.push(this),e.push(r),Pe("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!function(){if(!Yt())return!1;var t=(0,C.Rf)();if(Qt(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=Qt(r.contentWindow.fetch)),n.head.removeChild(r)}catch(t){q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}())return;et(Se,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:xe(e),url:De(e)},startTimestamp:Date.now()};return Pe("fetch",W({},r)),t.apply(Se,e).then((function(t){return Pe("fetch",W(W({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw Pe("fetch",W(W({},r),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!function(){var t=(0,C.Rf)(),e=t.chrome,n=e&&e.app&&e.app.runtime,r="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&r}())return;var t=Se.onpopstate;function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length>2?e[2]:void 0;if(r){var o=Ie,i=String(r);Ie=i,Pe("history",{from:o,to:i})}return t.apply(this,e)}}Se.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Se.location.href,o=Ie;if(Ie=r,Pe("history",{from:o,to:r}),t)return t.apply(this,e)},et(Se.history,"pushState",e),et(Se.history,"replaceState",e)}();break;case"error":!function(){Be=Se.onerror,Se.onerror=function(t,e,n,r,o){return Pe("error",{column:r,error:o,line:n,msg:t,url:e}),!!Be&&Be.apply(this,arguments)}}();break;case"unhandledrejection":!function(){qe=Se.onunhandledrejection,Se.onunhandledrejection=function(t){return Pe("unhandledrejection",t),!qe||qe.apply(this,arguments)}}();break;default:q.warn("unknown instrumentation type:",t)}}function Le(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(Ne[t.type]=Ne[t.type]||[],Ne[t.type].push(t.callback),Ce(t.type))}function Pe(t,e){var n,r;if(t&&Ne[t])try{for(var o=V(Ne[t]||[]),i=o.next();!i.done;i=o.next()){var s=i.value;try{s(e)}catch(e){q.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+z(s)+"\nError: "+e)}}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function xe(t){return void 0===t&&(t=[]),"Request"in Se&&I(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function De(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in Se&&I(t[0],Request)?t[0].url:String(t[0])}var Ue,ke,Me=0;function Fe(t,e,n){return void 0===n&&(n=!1),function(r){Ue=void 0,r&&ke!==r&&(ke=r,Me&&clearTimeout(Me),n?Me=setTimeout((function(){e({event:r,name:t})})):e({event:r,name:t}))}}function je(t){return function(e){var n;try{n=e.target}catch(t){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Ue||Fe("input",t)(e),clearTimeout(Ue),Ue=setTimeout((function(){Ue=void 0}),1e3))}}var Be=null;var qe=null;var He=function(){function t(e){this.name=t.id,this._options=l({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&dt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,C.jH)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&Le({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._consoleBreadcrumb.apply(t,f(e))},type:"console"}),this._options.dom&&Le({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._domBreadcrumb.apply(t,f(e))},type:"dom"}),this._options.xhr&&Le({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._xhrBreadcrumb.apply(t,f(e))},type:"xhr"}),this._options.fetch&&Le({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._fetchBreadcrumb.apply(t,f(e))},type:"fetch"}),this._options.history&&Le({callback:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t._historyBreadcrumb.apply(t,f(e))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:c.fromString(t.level),message:Z(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(Z(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}dt().addBreadcrumb(e,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var e;try{e=t.event.target?Q(t.event.target):Q(t.event)}catch(t){e="<unknown>"}0!==e.length&&dt().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,i=e.body;dt().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:i})}else;},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?dt().addBreadcrumb({category:"fetch",data:t.fetchData,level:c.Error,type:"http"},{data:t.error,input:t.args}):dt().addBreadcrumb({category:"fetch",data:l(l({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=(0,C.Rf)(),n=t.from,r=t.to,o=(0,C.en)(e.location.href),i=(0,C.en)(n),s=(0,C.en)(r);i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),dt().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}(),Ge="sentry.javascript.browser",We="5.30.0",Ve=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ee,e)||this}return a(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),(0,C.Rf)().document&&(this._isEnabled()?Re(l(l({},t),{dsn:t.dsn||this.getDsn()})):q.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",e.sdk=l(l({},e.sdk),{name:Ge,packages:f(e.sdk&&e.sdk.packages||[],[{name:"npm:@sentry/browser",version:We}]),version:We}),t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(He);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(Gt);var Ye,Qe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ke=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(){x((function(e){var n=dt();if(!n)return e;var r=n.getIntegration(t);if(r){var o=n.getClient(),i=o?o.getOptions():{},s=r._mergeOptions(i);if(r._shouldDropEvent(e,s))return null}return e}))},t.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(q.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,C.jH)(t)),!0):this._isIgnoredError(t,e)?(q.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,C.jH)(t)),!0):this._isDeniedUrl(t,e)?(q.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,C.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(q.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,C.jH)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return tt(t,e)}))}))},t.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(t){return tt(n,t)}))},t.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(t){return tt(n,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:Ut(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:Ut(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:Ut(this._options.ignoreErrors||[],t.ignoreErrors||[],Qe),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,o=e.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(e){return q.error("Cannot extract message for event "+(0,C.jH)(t)),[]}return[]},t.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var e=t.stacktrace.frames;return e&&e[e.length-1].filename||null}if(t.exception){var n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(e){return q.error("Cannot extract url for event "+(0,C.jH)(t)),null}},t.id="InboundFilters",t}(),Xe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Ye=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.__sentry_original__||this;return Ye.apply(n,t)}},t.id="FunctionToString",t}(),Je=["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"],ze=function(){function t(e){this.name=t.id,this._options=l({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=(0,C.Rf)();(this._options.setTimeout&&et(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&et(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&et(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&et(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Je).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=we(r,{mechanism:{data:{function:z(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}},t.prototype._wrapRAF=function(t){return function(e){return t.call(this,we(e,{mechanism:{data:{function:"requestAnimationFrame",handler:z(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var e=(0,C.Rf)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(et(n,"addEventListener",(function(e){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=we(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:z(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,we(r,{mechanism:{data:{function:"addEventListener",handler:z(r),target:t},handled:!0,type:"instrument"}}),o)}})),et(n,"removeEventListener",(function(t){return function(e,n,r){var o,i=n;try{var s=null===(o=i)||void 0===o?void 0:o.__sentry_wrapped__;s&&t.call(this,e,s,r)}catch(t){}return t.call(this,e,i,r)}})))},t.prototype._wrapXHR=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(t){t in r&&"function"==typeof r[t]&&et(r,t,(function(e){var n={mechanism:{data:{function:t,handler:z(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(n.mechanism.data.handler=z(e.__sentry_original__)),we(e,n)}))})),t.apply(this,e)}},t.id="TryCatch",t}(),$e=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=l({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(q.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(q.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(Le({callback:function(n){var r=n.error,o=dt(),i=o.getIntegration(t),s=r&&!0===r.__sentry_own_request__;if(i&&!be()&&!s){var a=o.getClient(),c=T(r)?e._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):e._enhanceEventWithInitialFrame(le(r,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,C.EG)(c,{handled:!1,type:"onerror"}),o.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(Le({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(t){}var o=dt(),i=o.getIntegration(t),s=r&&!0===r.__sentry_own_request__;if(!i||be()||s)return!0;var a=o.getClient(),u=T(r)?e._eventFromRejectionWithPrimitive(r):le(r,void 0,{attachStacktrace:a&&a.getOptions().attachStacktrace,rejection:!0});u.level=c.Error,(0,C.EG)(u,{handled:!1,type:"onunhandledrejection"}),o.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,n,r){var o,i=m(t)?t.message:t;if(E(i)){var s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(o=s[1],i=s[2])}var a={exception:{values:[{type:o||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(a,e,n,r)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var o=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,s=E(e)&&e.length>0?e:(0,C.l4)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:o,filename:s,function:"?",in_app:!0,lineno:i}),t},t.id="GlobalHandlers",t}(),Ze=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){x((function(e,n){var r=dt().getIntegration(t);return r?r._handler(e,n):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&I(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=f(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!I(t[e],Error)||n.length+1>=this._limit)return n;var r=ie(ne(t[e]));return this._walkErrorTree(t[e],e,f([r],n))},t.id="LinkedErrors",t}(),tn=(0,C.Rf)(),en=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){x((function(e){var n,r,o;if(dt().getIntegration(t)){if(!tn.navigator&&!tn.location&&!tn.document)return e;var i=(null===(n=e.request)||void 0===n?void 0:n.url)||(null===(r=tn.location)||void 0===r?void 0:r.href),s=(tn.document||{}).referrer,a=(tn.navigator||{}).userAgent,c=l(l(l({},null===(o=e.request)||void 0===o?void 0:o.headers),s&&{Referer:s}),a&&{"User-Agent":a}),u=l(l({},i&&{url:i}),{headers:c});return l(l({},e),{request:u})}return e}))},t.id="UserAgent",t}(),nn=[new Ke,new Xe,new ze,new He,new $e,new Ze,new en];function rn(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=nn),void 0===t.release){var e=(0,C.Rf)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!1),function(t,e){!0===e.debug&&q.enable();var n=dt(),r=new t(e);n.bindClient(r)}(Ve,t),t.autoSessionTracking&&function(){var t=(0,C.Rf)(),e=dt(),n="complete"===document.readyState,r=!1,o=function(){r&&n&&e.endSession()},i=function(){n=!0,o(),t.removeEventListener("load",i)};e.startSession(),n||t.addEventListener("load",i);try{var s=new PerformanceObserver((function(t,e){t.getEntries().forEach((function(t){"first-contentful-paint"===t.name&&t.startTime<a&&(e.disconnect(),r=!0,o())}))})),a="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",(function(t){a=Math.min(a,t.timeStamp)}),{once:!0}),s.observe({type:"paint",buffered:!0})}catch(t){r=!0,o()}}()}function on(t){void 0===t&&(t={}),t.eventId||(t.eventId=dt().lastEventId());var e=dt().getClient();e&&e.showReportDialog(t)}function sn(){return dt().lastEventId()}function an(){}function cn(t){t()}function un(t){var e=dt().getClient();return e?e.flush(t):A.reject(!1)}function ln(t){var e=dt().getClient();return e?e.close(t):A.reject(!1)}function hn(t){return we(t)()}var pn={},fn=(0,C.Rf)();fn.Sentry&&fn.Sentry.Integrations&&(pn=fn.Sentry.Integrations);var dn=l(l(l({},pn),r),o)},63699:(t,e,n)=>{"use strict";n.d(e,{Rf:()=>i,DM:()=>s,en:()=>a,jH:()=>c,Cf:()=>u,Db:()=>l,EG:()=>h,l4:()=>p,JY:()=>f});var r=n(37392),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function s(){var t=i(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function a(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function c(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function u(t){var e=i();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),o}function l(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function h(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(t){}}function p(){try{return document.location.href}catch(t){return""}}function f(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}},37392:(t,e,n)=>{"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}n.d(e,{KV:()=>r,l$:()=>o}),t=n.hmd(t)},7790:(t,e,n)=>{"use strict";n.d(e,{yW:()=>c});var r=n(63699),o=n(37392);t=n.hmd(t);var i={nowSeconds:function(){return Date.now()/1e3}};var s=(0,o.KV)()?function(){try{return(0,o.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){var t=(0,r.Rf)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),a=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},c=i.nowSeconds.bind(i);a.nowSeconds.bind(a),function(){var t=(0,r.Rf)().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}()},36269:(t,e,n)=>{"use strict";n.d(e,{vp:()=>p});class r{constructor(t,e){this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=t,this.data=e}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.stopped=!0}stopImmediatePropagation(){this.immediateStopped=!0}}const o="undefined"!=typeof window,i=[];function s(){const t=i.splice(0);if(t.length)for(let e=0,n=t.length;e<n;e++)try{t[e]()}finally{}}let a;!function(){o&&"function"==typeof window.postMessage?function(){const t=window.location.origin||`${window.location.protocol}//${window.location.hostname}`;if(a=window.postMessage.bind(window,"@execute_deferreds",t),!window.__hasDeferredHandler){"function"==typeof Object.defineProperty?Object.defineProperty(window,"__hasDeferredHandler",{value:!0}):window.__hasDeferredHandler=!0;const e=function(e){e.origin!==t&&"@execute_deferreds"!==e.data||s()};window.addEventListener?window.addEventListener("message",e):window.attachEvent&&window.attachEvent("onmessage",e)}}():"function"!=typeof setImmediate?function(){a=setImmediate.bind(null,s)}():function(){a=setTimeout.bind(null,s,10)}()}();let c=t=>{const e=!i.length;i.push(t),e&&a()};function u(t,e,n){for(let r=0,o=t.length;r<o;r++){const o=t[r];if(o.listener===e&&o.options.once===n.once)return r}return-1}function l(t,e,n,r={}){if(!n)return!1;const o=t[e];return!o||!o.length||-1===u(o,n,r)}function h(t,e,n,r={}){if(!e||!n)return;const o=t[e],i={listener:n,options:r};o?o.push(i):t[e]=[i]}o&&("function"==typeof window.__modDefFn?c=window.__modDefFn:"function"==typeof Object.defineProperty?Object.defineProperty(window,"__modDefFn",{value:c}):window.__modDefFn=c);class p{constructor(){this._listeners={},this._metaListeners={add:{},remove:{}}}_dispatchFromStore(t,e){const n=e.type;let r=t[n];if(r){r=r.slice(0);for(const t of r)if(t.listener.call(this,e),t.options.once&&this.removeListener(n,t.listener,t.options),e.immediateStopped)break}}createEvent(t,e){return new r(t,e)}on(t,e,n={}){if(!t)throw new TypeError("Argument `eventType` is required.");if(!e)return this;const o=this._listeners;if(l(o,t,e,n)){const i=this._metaListeners.add,s=i[t];if(s&&s.length){const o=new r(t,{listener:e,options:n});if(this._dispatchFromStore(i,o),o.defaultPrevented)return this}h(o,t,e,n)}return this}addListener(t,e,n={}){return this.on(t,e,n)}addListeners(t){for(const e in t)t.hasOwnProperty(e)&&this.on(e,t[e]);return this}once(t,e){return this.on(t,e,{once:!0})}removeListener(t,e,n={}){if(!t)throw new TypeError("Argument `eventType` is required.");if(!e)return this;const o=this._listeners[t];if(!o)return this;const i=u(o,e,n);if(-1===i)return this;const s=this._metaListeners.remove[t];if(s&&s.length){const o=new r(t,{listener:e,options:n});if(this._dispatchFromStore(this._metaListeners.remove,o),o.defaultPrevented)return this}return o.splice(i,1),this}removeListeners(t){for(const e in t)t.hasOwnProperty(e)&&this.removeListener(e,t[e]);return this}removeAllListeners(t){return t?this._listeners[t]=[]:this._listeners={},this}emit(t,e){if(!t)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(t,e);return c((()=>this._dispatchFromStore(this._listeners,n))),n}emitSync(t,e){if(!t)throw new TypeError("Argument `eventType` is required.");const n=this.createEvent(t,e);return this._dispatchFromStore(this._listeners,n),n}emitEvent(t){return c((()=>this._dispatchFromStore(this._listeners,t))),t}emitEventSync(t){return this._dispatchFromStore(this._listeners,t),t}emitAndWait(t,e,n){if(!t)throw new TypeError("Argument `eventType` is required.");const r=this.createEvent(t,e);return c((()=>{this._dispatchFromStore(this._listeners,r),n.call(this,r)})),r}emitEventAndWait(t,e){return c((()=>{this._dispatchFromStore(this._listeners,t),e.call(this,t)})),t}proxyEmit(t,e,n){if(!t||"function"!=typeof t.on)throw new TypeError("Proxy source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create recursive proxy.");if(!e||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=t=>{t.stopped||this.emitAndWait(n,t.data,(e=>{e.defaultPrevented&&t.preventDefault()}))};return t.on(e,r),r}proxyEmitSync(t,e,n){if(!t||"function"!=typeof t.on)throw new TypeError("Proxy source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create recursive proxy.");if(!e||!n)throw new TypeError("Parameter sourceType and targetType are required.");const r=t=>{if(t.stopped)return;const e=this.createEvent(n,t.data);this.emitEventSync(e),e.defaultPrevented&&t.preventDefault()};return t.on(e,r),r}proxyEmitAll(t,e){for(const n in e)e.hasOwnProperty(n)&&this.proxyEmit(t,n,e[n])}proxyEmitAllSync(t,e){for(const n in e)e.hasOwnProperty(n)&&this.proxyEmitSync(t,n,e[n])}onAddListener(t,e,n={}){const r=this._metaListeners.add;return l(r,t,e,n)&&h(r,t,e,n),this}onRemoveListener(t,e,n={}){const r=this._metaListeners.remove;return l(r,t,e,n)&&h(r,t,e,n),this}}},66407:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DEALER_PLUGIN_NAME:()=>E,Method:()=>s,PluginEvent:()=>a,TransportErrors:()=>o,TransportEvent:()=>i,createBaseTransport:()=>lt,createTransport:()=>ht,createXResolveProvider:()=>ut});var r={};n.r(r),n.d(r,{isSupported:()=>N,request:()=>A});var o,i,s,a,c,u,l={};n.r(l),n.d(l,{request:()=>it}),function(t){t.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",t.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",t.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",t.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",t.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",t.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",t.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",t.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",t.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",t.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",t.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",t.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(o||(o={})),function(t){t.CONNECTION_ONLINE="online",t.CONNECTION_OFFLINE="offline",t.PRODUCT_STATE_CHANGED="product_state_changed",t.ACCESS_TOKEN="access_token",t.AUTHENTICATED="authenticated",t.AUTHENTICATION_FAILED="authentication_failed",t.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",t.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",t.CONNECTED="connected",t.CONNECTION_FAILED="connection_failed",t.CONNECTION_ID="connection_id",t.DISCONNECTED="disconnected",t.ENDPOINTS_RESOLVED="endpoints_resolved",t.LOGGED_OUT="logged_out",t.SHORT_SESSION_DISCONNECTED="short_session_disconnected",t.TOKEN_PROVIDER_ERROR="token_provider_error",t.RECONNECTED="reconnected",t.RECONNECTING="reconnecting",t.WINDOW_BEFORE_UNLOAD="beforeunload"}(i||(i={})),function(t){t.DELETE="DELETE",t.GET="GET",t.OPTIONS="OPTIONS",t.PATCH="PATCH",t.POST="POST",t.PUT="PUT",t.TRACE="TRACE"}(s||(s={})),function(t){t.TRANSPORT_AUTHENTICATE="transport_authenticate",t.TRANSPORT_CONNECT="transport_connect",t.TRANSPORT_DISCONNECT="transport_disconnect",t.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",t.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",t.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",t.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",t.TRANSPORT_REQUEST="transport_request",t.PLUGIN_CONNECTION_INFO="plugin_connection_info",t.PLUGIN_DISCONNECTED="plugin_disconnected",t.PLUGIN_MESSAGE="plugin_message",t.PLUGIN_REQUEST="plugin_request"}(a||(a={})),function(t){t.DEALER_CONNECTION_ERROR="DEALER_CONNECTION_ERROR",t.DEALER_AUTHENTICATION_FAILED="DEALER_AUTHENTICATION_FAILED",t.DEALER_ERROR="DEALER_ERROR",t.ENDPOINT_NOT_DEFINED="ENDPOINT_NOT_DEFINED",t.INVALID_ENDPOINT="INVALID_ENDPOINT"}(c||(c={}));class h extends Error{constructor(t=c.DEALER_ERROR,e,n={}){super(e),this.name="DealerError",this.message=e,this.code=t,this.raw=n,this.wsCode=n.code||null,this.wsReason=n.reason||null}}!function(t){t.AUTHENTICATED="authenticated",t.AUTHENTICATION_FAILED="authentication_failed",t.CONNECTED="connected",t.CONNECTION_ID="connection_id",t.ERROR="error",t.DISCONNECTED="disconnected",t.MESSAGE="message",t.REQUEST="request"}(u||(u={}));var p,f=n(36269);function d(){let t=()=>{},e=()=>{};return{promise:new Promise(((n,r)=>{t=n,e=r})),resolve:t,reject:e}}!function(t){t[t.CLOSE=4e3]="CLOSE",t[t.TIMEOUT=4001]="TIMEOUT"}(p||(p={}));var _=n(48834).Buffer;const y=function(){},g=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,m="undefined"!=typeof window;class v extends f.vp{constructor(t){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=t.WebSocket||WebSocket,this._heartbeatTimeout=t.heartbeatTimeout||1e4}static create(t){return new v(t)}_startHeartbeat(t){const e=()=>{this.ping().then((()=>this._onHeartbeatSuccess()),(()=>this._onHeartbeatError())),this._heartbeatTimeoutToken=setTimeout((()=>this._onHeartbeatError()),this._heartbeatTimeout)};t?e():this._heartbeatToken=setTimeout((()=>e()),3e4)}_onHeartbeatError(){this._stopHeartbeat(),this._socket&&this._socket.close(p.TIMEOUT,"internal-timeout")}_onHeartbeatSuccess(){this._stopHeartbeat(),this._startHeartbeat()}_stopHeartbeat(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)}_prepareConnectionId(t){if(!t.uri)return!1;const e=t.uri.match(g);if(!e)return!1;let n;return n=t.headers&&t.headers["Spotify-Connection-Id"]?t.headers["Spotify-Connection-Id"]:decodeURIComponent(e[1]),this._connectionId=n,this._connectionURI=t.uri,this.emit(u.CONNECTION_ID,{id:n,uri:t.uri}),!0}_reply(t,e){if(!t)throw new TypeError("Invalid key.");const n=this._socket;if(!n||1!==n.readyState)return;const r={type:"reply",key:t,payload:e};n.send(JSON.stringify(r))}_parseMessage(t){let e;try{e=JSON.parse(t)}catch(t){return}if("message"===e.type)this._waitingForConnectionId&&this._prepareConnectionId(e)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit(u.MESSAGE,{message:e});else if("pong"===e.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===e.type){const t=e.key;t&&this.emit(u.REQUEST,{request:e,reply:this._reply.bind(this,t)})}}_handleOpen(t){t.resolve(!0),this._connected=!0,this.emit(u.AUTHENTICATED,null)}_handleMessage(t){const e=this,n=t.data;if(m&&window.Blob&&n instanceof window.Blob){const t=new FileReader;t.onloadend=function(){if(!this.result)return;let t;if(this.result instanceof ArrayBuffer){t="";const e=new Uint8Array(this.result);for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n])}else t=this.result;e._parseMessage(t)},t.readAsText(n)}else void 0!==_&&"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?this._parseMessage(new _(n).toString("ascii")):this._parseMessage(n)}_handleClose(t){const e=this._connected;if(this._connected=!1,e)this.emitSync(u.DISCONNECTED,{wsCode:t.code,reason:t.reason});else{const e=new h(c.DEALER_AUTHENTICATION_FAILED,"Dealer connection error",t);this.emit(u.AUTHENTICATION_FAILED,{error:e})}}_handleError(t){const e=new h(c.DEALER_CONNECTION_ERROR,"Cannot connect to dealer");t.reject(e),this._connected=!1,this.emit(u.ERROR,{error:e})}connect(t){return this._endpoint=t,this._waitingForConnectionId=!0,this.emit(u.CONNECTED,null),Promise.resolve(!0)}authenticate(t){const e=d(),n=`${this._endpoint}?access_token=${t}`,r=this._socket=new this._WebSocket(n);return r.onopen=this._handleOpen.bind(this,e),r.onclose=this._handleClose.bind(this),r.onerror=this._handleError.bind(this,e),r.onmessage=this._handleMessage.bind(this),e.promise}disconnect(){this._socket&&(this._stopHeartbeat(),this._waitingForConnectionId=!0,this._connected=!1,this._socket.close(p.CLOSE,"internal-close"),this._socket.onopen=y,this._socket.onerror=y,this._socket.onmessage=y,this._socket.onclose=y,this._socket=null,this.emitSync(u.DISCONNECTED,{wsCode:p.CLOSE,reason:"internal-close"}))}ping(){return this._socket&&1===this._socket.readyState?(this._lastPingDeferred=d(),this._socket.send('{"type":"ping"}'),this._lastPingDeferred.promise):Promise.reject(new h(c.DEALER_CONNECTION_ERROR,"Dealer connection error"))}getConnectionId(){return this._waitingForConnectionId?new Promise((t=>{this.once(u.CONNECTION_ID,(e=>{t(e.data.id)}))})):Promise.resolve(this._connectionId)}getConnectionInfo(){return this._waitingForConnectionId?new Promise((t=>{this.once(u.CONNECTION_ID,(e=>{t({id:e.data.id,uri:e.data.uri})}))})):Promise.resolve({id:this._connectionId,uri:this._connectionURI})}hasConnectionId(){return!this._waitingForConnectionId&&!!this._connectionId}}const E="dealer";class T{constructor(t){this.name=E,this._dealer=new v(t),this.api={hasConnectionInfo:()=>this._dealer.hasConnectionId(),getConnectionInfo:()=>this._dealer.getConnectionInfo().then((t=>Object.assign({plugin:this.name},t)))},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(t){this._mediator&&this._mediator.emit(a.PLUGIN_CONNECTION_INFO,Object.assign({plugin:this.name},t.data))}_onDealerDisconnected(t){if(!this._mediator)return;const e=t.data;this._mediator.emit(a.PLUGIN_DISCONNECTED,{plugin:this.name,code:e.wsCode,reason:e.reason})}_onDealerMessage(t){this._mediator&&this._mediator.emit(a.PLUGIN_MESSAGE,Object.assign({plugin:this.name},t.data))}_onDealerRequest(t){this._mediator&&this._mediator.emit(a.PLUGIN_REQUEST,Object.assign({plugin:this.name},t.data))}_onTransportConnect(t){const e=t.data.endpoints,n=t.data.awaitPromise;e.dealer?/^wss:/.test(e.dealer)?n(this._dealer.connect(e.dealer)):n(Promise.reject(new h(c.INVALID_ENDPOINT,"Dealer endpoint needs to be wss://"))):n(Promise.reject(new h(c.ENDPOINT_NOT_DEFINED,'No "dealer" endpoint defined.')))}_onTransportAuthenticate(t){const e=t.data;e.awaitPromise(this._dealer.authenticate(e.token))}_onTransportDisconnect(){this._dealer.disconnect()}attach(t,e){this._mediator=e,e.addListeners({[a.TRANSPORT_CONNECT]:this._onTransportConnect,[a.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[a.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.addListeners({[u.DISCONNECTED]:this._onDealerDisconnected,[u.CONNECTION_ID]:this._onDealerConnectionId,[u.MESSAGE]:this._onDealerMessage,[u.REQUEST]:this._onDealerRequest})}detach(t,e){this._mediator=void 0,e.removeListeners({[a.TRANSPORT_CONNECT]:this._onTransportConnect,[a.TRANSPORT_AUTHENTICATE]:this._onTransportAuthenticate,[a.TRANSPORT_DISCONNECT]:this._onTransportDisconnect}),this._dealer.removeListeners({[u.DISCONNECTED]:this._onDealerDisconnected,[u.CONNECTION_ID]:this._onDealerConnectionId,[u.MESSAGE]:this._onDealerMessage,[u.REQUEST]:this._onDealerRequest})}}function b(t,e){return new T(e)}const O={POST:!0,PUT:!0,DELETE:!0};var w;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.TIMED_OUT=408]="TIMED_OUT",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.REQUEST_ENTITY_TOO_LARGE=413]="REQUEST_ENTITY_TOO_LARGE",t[t.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(w||(w={}));class R{constructor(t){this.get=t.get.bind(t),this.has=t.has.bind(t)}get(t){return null}has(t){return!1}}class I{constructor(t,e=0){this.url="",this.status=0,this.headers=null,this.body=null,this.offline=!1,this.timing=null,this.metadata=null,this.url=t,this.status=e,this.ok=e>=200&&e<=299}getStatusFamily(){return 0|this.status/100}}const S={json:!0,text:!0,arraybuffer:!0,blob:!0};function N(){return"function"==typeof fetch}function A(t){if(!N())return Promise.reject(new TypeError("Fetch is not supported"));if(!t.url)return Promise.reject(new TypeError("Request URL cannot be blank."));const e=t.method||"GET";let n=t.url,r=null;if(e in O&&t.payload?r=t.payload:t.payload&&(n+=`?${t.payload}`),t.options.responseType&&!(t.options.responseType in S))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));const o={mode:t.options.mode||"cors",credentials:t.options.credentials||"same-origin",redirect:t.options.redirect||"follow",method:e};t.headers.count()&&(o.headers=t.headers.toJSON()),r&&(o.body=r);const i=Date.now();return fetch(n,o).then((function(e){let n;n=t.options.ignoreResponseBody||e.status===w.NO_CONTENT?null:"json"===t.options.responseType?e.json().catch((function(){return null})):"arraybuffer"===t.options.responseType?e.arrayBuffer():"blob"===t.options.responseType?e.blob():e.text();const r=t.options.parseResponseHeaders||e.status>299?new R(e.headers):null;return Promise.all([e.url,e.status,r,n])})).then((function([e,n,r,o]){const s=new I(e,n);if(s.body=o,s.headers=r,t.options.timing){const t=Date.now()-i;s.timing={completed:t}}return s})).catch((function(){const e=new I(n);if(t.options.timing){const t=Date.now()-i;e.timing={completed:t}}return e})).then((function(e){return t.options.connectionObserver&&(e.offline=!t.options.connectionObserver.isOnline()),e}))}var C,L,P=n(6759),x=n(61202),D=n(60392);!function(t){t[t.CONNECTION_ERROR=0]="CONNECTION_ERROR",t[t.INFORMATIONAL=1]="INFORMATIONAL",t[t.SUCCESS=2]="SUCCESS",t[t.REDIRECTION=3]="REDIRECTION",t[t.CLIENT_ERROR=4]="CLIENT_ERROR",t[t.SERVER_ERROR=5]="SERVER_ERROR"}(C||(C={}));class U extends Error{constructor(t,e,n=null){super(e),this.name="TransportError",this.message=e,this.code=t,this.origin=n}}class k extends f.vp{constructor(t){super();const e="undefined"!=typeof window,n=t&&t.notifyBeforeUnload;this._navigator=e&&window.navigator||null,e&&"function"==typeof window.addEventListener&&(window.addEventListener("online",this.emitSync.bind(this,i.CONNECTION_ONLINE,null)),window.addEventListener("offline",this.emitSync.bind(this,i.CONNECTION_OFFLINE,null)),n&&window.addEventListener(i.WINDOW_BEFORE_UNLOAD,this.emitSync.bind(this,i.WINDOW_BEFORE_UNLOAD,null)))}static create(t){return new k(t)}isOnline(){const t=this._navigator;return!t||!("onLine"in t)||t.onLine}}class M{constructor(t){this._headers={},this._count=0,this._setAll(t)}_setAll(t){let e=0;for(const n in t)t.hasOwnProperty(n)&&(this._headers[n.toLowerCase()]=t[n],e++);this._count=e}get(t){return this._headers[t.toLowerCase()]||null}has(t){return!!this._headers[t.toLowerCase()]}set(t,e){this._headers[t.toLowerCase()]=e,this._count++}delete(t){const e=t.toLowerCase();this._headers[e]&&this._count--,delete this._headers[t.toLowerCase()]}count(){return this._count}toJSON(){return Object.assign({},this._headers)}}class F{constructor(t,e){this.url=t,this.method=(null==e?void 0:e.method)||"GET",this.headers=new M(null==e?void 0:e.headers),this.options=(null==e?void 0:e.options)||{},this.payload=null==e?void 0:e.payload,this.urlExpanded=(null==e?void 0:e.urlExpanded)||!1,this.retryOptions=(null==e?void 0:e.retryOptions)||{}}static create(t,e){return new F(t,e)}}!function(t){t.EVENT_ACCESS_TOKEN="access_token",t.EVENT_CONNECTION_ID="connection_id",t.EVENT_CONNECTION_OFFLINE="connection_offline",t.EVENT_CONNECTION_ONLINE="connection_online",t.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(L||(L={}));class j extends f.vp{constructor(t,e){super(),this.EVENT_ACCESS_TOKEN=L.EVENT_ACCESS_TOKEN,this.EVENT_CONNECTION_ID=L.EVENT_CONNECTION_ID,this.EVENT_CONNECTION_OFFLINE=L.EVENT_CONNECTION_OFFLINE,this.EVENT_CONNECTION_ONLINE=L.EVENT_CONNECTION_ONLINE,this.EVENT_ENDPOINTS_RESOLVED=L.EVENT_ENDPOINTS_RESOLVED,this.StatusCode=w,this.StatusFamily=C,this.getConnectionId=t.getConnectionId.bind(t),this.getEndpoints=t.getEndpoints.bind(t),this.getInitTime=t.getInitTime.bind(t),this.getLastToken=t.getLastToken.bind(t),this.matchMessages=t.matchMessages.bind(t),this.unmatchMessages=t.unmatchMessages.bind(t),this.handlePushRequests=t.handlePushRequests.bind(t),this.unhandlePushRequests=t.unhandlePushRequests.bind(t),this.hasPlugin=t.hasPlugin.bind(t),this.getPluginAPI=t.getPluginAPI.bind(t);const n=t.request.bind(t);(null==e?void 0:e.requestOptions)?this.request=(t,r)=>n(t,r?Object.assign(Object.assign(Object.assign({},null==e?void 0:e.requestOptions),r),{metadata:Object.assign(Object.assign({},e.requestOptions.metadata),null==r?void 0:r.metadata),retry:Object.assign(Object.assign({},e.requestOptions.retry),null==r?void 0:r.retry)}):e.requestOptions):this.request=n,this.proxyEmit(t,i.ACCESS_TOKEN,L.EVENT_ACCESS_TOKEN),this.proxyEmit(t,i.CONNECTION_OFFLINE,L.EVENT_CONNECTION_OFFLINE),this.proxyEmit(t,i.CONNECTION_ONLINE,L.EVENT_CONNECTION_ONLINE),this.proxyEmit(t,i.ENDPOINTS_RESOLVED,L.EVENT_ENDPOINTS_RESOLVED),this.onAddListener(L.EVENT_CONNECTION_ID,this._onAddConnectionIdListener.bind(this,t.on.bind(t))),this.onRemoveListener(L.EVENT_CONNECTION_ID,this._onRemoveConnectionIdListener.bind(this,t.removeListener.bind(t)))}_onAddConnectionIdListener(t,e){e.preventDefault();const n=e.data.listener,r=t=>{const e=this.createEvent(L.EVENT_CONNECTION_ID,t.data);n.call(this,e)};n.$proxy_wrapper=r,t(i.CONNECTION_ID,r,e.data.options)}_onRemoveConnectionIdListener(t,e){e.preventDefault();const n=e.data.listener;n.$proxy_wrapper&&t(i.CONNECTION_ID,n.$proxy_wrapper,e.data.options)}removeAllListeners(){return this}}const B=D.P.forTag("transport.transport"),q=/^(?:https?:\/\/)?@([^\/]+)\//,H=/^(ws|http)s?:\/\/.*[^\/]$/,G=/^([a-zA-Z]{3},\ \d{1,2}\ [a-zA-Z]{3}\ (\d{1,2}.){3})/,W={xhr:!0,fetch:!0},V=1,Y=4;function Q(t,e){const n=`access_token=${encodeURIComponent(e)}`,[r,o]=t.split("?");if(!o)return`${r}?${n}`;const i=o.replace(/access_token=[^&]*(&|$)/,`${n}$1`);return i!==o?`${r}?${i}`:`${r}?${n}&${o}`}class K extends f.vp{constructor(t){if(super(),this._plugins={},this._pluginMediator=new f.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 x.A({curve:"exponential",baseTime:5e3,ceiling:15e3}),this._stateAwareListeners={connected:[],authenticated:[],connection_id:[],transport_connect:[],transport_authenticate:[]},this._stateAwareRunners={connected:null,authenticated:null,connection_id:null,transport_connect:null,transport_authenticate:null},!t)throw new TypeError("Argument `options` for Transport cannot be null.");if(!t.providers)throw new TypeError("Argument `options.providers` for Transport cannot be null.");this._ownerRef="ownerRef"in t?Object(t.ownerRef):{},this._tokenProvider=t.providers.token,this._endpointsProvider=t.providers.endpoints,this._XHR=t.XHR,this._Fetch=t.Fetch,this._reconnectionRetries=t.reconnectionRetries>=0?t.reconnectionRetries:3,this._requestMode=t.requestMode in W?t.requestMode:"xhr",this._forcePolyfillTypes=t.forcePolyfillTypes||{},this._disableAutoLogout="disableAutoLogout"in t&&!!t.disableAutoLogout,this._disconnectBeforeUnload=t.disconnectBeforeUnload||!1,this._connectionObserver=new k({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(t){return new K(t)}_init(){this.onAddListener(i.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(i.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(i.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(i.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(i.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(i.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(a.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(a.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(a.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(a.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(B.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");const t=this._pluginMediator;t.addListeners({[a.PLUGIN_DISCONNECTED]:this._onPluginDisconnected.bind(this)}),this.proxyEmit(t,a.PLUGIN_CONNECTION_INFO,i.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",(()=>this._onLogout())),this._connectionObserver.on(i.CONNECTION_ONLINE,(()=>this._onOnline())),this._connectionObserver.on(i.CONNECTION_OFFLINE,(()=>this._onOffline())),this._connectionObserver.on(i.WINDOW_BEFORE_UNLOAD,(()=>this.disconnect()))}_runStateAwareQueues(t,e){const n=this._stateAwareListeners[t].splice(0);for(const t of n)t.call(this,e);this._stateAwareRunners[t]=null}_connect(){return this._stateMask&V?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise(((t,e)=>{this._connectionObserver.once(i.CONNECTION_ONLINE,(()=>{this._performConnect().then(t,e)}))}))}_performConnect(){return new Promise((t=>{t(this._endpointsProvider(this.toPublic()))})).catch((t=>!t||t.code?Promise.reject(t):Promise.reject(new U(o.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,t.message||"Endpoints provider error",t)))).then(this._connectToEndpoints).then(this._onConnected).catch((t=>{const e=t&&t.error?t.error:t;return this.emit(i.CONNECTION_FAILED,{error:e}),Promise.reject(e)}))}_connectToEndpoints(t){const e={webgate:"",webapi:""};for(const n in t){if(!t.hasOwnProperty(n)||!t[n])continue;let r=t[n];H.test(r)&&(r+="/"),e[n]=r}this._endpoints=e,this.emit(i.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},e)});const n=[],r=t=>{n.push(t)};return new Promise(((t,o)=>{this._pluginMediator.emitAndWait(a.TRANSPORT_CONNECT,{endpoints:Object.assign({},e),awaitPromise:r},(()=>{Promise.all(n).then((()=>t(!0)),o)}))}))}_refreshToken(t=!1){if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!t&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise((t=>{t(this._tokenProvider())})).then(this._parseProvidedToken);const e=()=>{this._refreshTokenPromise=null};return this._refreshTokenPromise.then(e,e),this._refreshTokenPromise.catch((t=>{const e=(null==t?void 0:t.code)?t:new U(o.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==t?void 0:t.message)||"Token provider error",t);return this.emit(i.TOKEN_PROVIDER_ERROR,{error:e}),Promise.reject(e)}))}_parseProvidedToken(t){let e,n;if(Array.isArray(t)?(e=t[0],n=parseInt(t[1],10),isNaN(n)&&(n=3540)):(e=t,n=3540),!e)throw this._lastToken=null,this._lastTokenExpiry=0,B.error("No token was provided"),new U(o.TRANSPORT_INVALID_TOKEN,`Token provider returned an invalid token, "${e}"`);if(this._lastToken===e){B.error("TokenProvider returned same token twice.");const t=new U(o.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,t}return this._lastToken=e,this._lastTokenExpiry=Date.now()+1e3*n,this.emit(i.ACCESS_TOKEN,{token:e}),e}_authenticateWithToken(t){if(!this._endpoints)return Promise.resolve(!0);const e=[],n=t=>{e.push(t)};return new Promise(((r,o)=>{this._pluginMediator.emitAndWait(a.TRANSPORT_AUTHENTICATE,{token:t,awaitPromise:n},(()=>{Promise.all(e).then((()=>r(!0)),o)}))}))}_authenticate(t){return this._stateMask&V?(this._authenticationPromise||(this._authenticationPromise=P.V.init((()=>this._refreshToken(t).then(this._authenticateWithToken)),{curve:"exponential",maxRetries:2,baseTime:500}).then(this._onAuthenticated).catch(this._onAuthenticationFailed)),this._authenticationPromise):Promise.reject(new U(o.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."))}_disconnect(t=!1){return this._stateMask=0,t||this.emit(i.DISCONNECTED,null),this._pluginMediator.emitSync(a.TRANSPORT_DISCONNECT,{supressed:t}),!0}_createReconnector(){let t=!1;return()=>(this._isReconnecting=!0,this.emit(i.RECONNECTING,null),this._disconnect(!0),this._connect().then((()=>!!this._authenticateCalled&&this._authenticate(t).then((e=>(t=!1,e)),(e=>(t=!0,Promise.reject(e)))))).then((()=>(this._isReconnecting=!1,this.emit(i.RECONNECTED,null),!0))))}_tryToReconnect(){this._isReconnecting||(this._stateMask=0,P.V.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries}).catch((()=>{this._stateMask=0,this._isReconnecting=!1,this.emit(i.DISCONNECTED,null)})))}_sendRequest(t,e={},n={}){return this._processRequestArgs(t,e).then((t=>t.options.forget?this._sendFireAndForgetRequest(t):this._sendRetriedRequest(t,n)))}_processRequestArgs(t,e={}){var n;let r=t,o=!1;const i=Object.assign(Object.assign({},e),{forcePolyfill:!(!e.responseType||!(e.responseType in this._forcePolyfillTypes)),requestMode:null!==(n=null==e?void 0:e.requestMode)&&void 0!==n?n:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==e?void 0:e.metadata)||null});if(q.test(r)){o=!0;try{r=this._tryExpandSpecialURL(r)}catch(t){return Promise.reject(t)}"authorize"in i||(i.authorize=!0,i.autoAuthorized=!0)}const s=Object.assign({maxRetries:2,curve:"exponential"},e.retry);return Promise.resolve(F.create(r,{method:e.method,headers:e.headers,payload:e.payload,options:i,urlExpanded:o,retryOptions:s}))}_tryExpandSpecialURL(t){const e=this._endpoints;return t.replace(q,((t,n)=>{if(!e.hasOwnProperty(n))throw new TypeError(`Cannot replace endpoint @${n}: endpoint not defined.`);return e[n]}))}_sendFireAndForgetRequest(t){const{url:e,method:n,options:r}=t;return"GET"!==n&&"POST"!==n?Promise.reject(new U(o.TRANSPORT_UNSUPPORTED_OPTION,`Option 'forget' cannot be used for ${n} request.`)):!r.autoAuthorized&&r.authorize?Promise.reject(new U(o.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request.")):(r.requestMode="xhr",r.authorize=!1,r.ignoreResponseBody=!0,"GET"===n?"function"==typeof fetch?fetch(e,{mode:"no-cors"}).catch((()=>{})):"function"==typeof Image?(new Image).src=e:this._sendRetriedRequest(t,{}).catch((()=>{})):"POST"===n&&("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)?navigator.sendBeacon(t.url,t.payload):"function"==typeof fetch?fetch(e,{method:"POST",mode:"no-cors",body:t.payload}).catch((()=>{})):this._sendRetriedRequest(t,{}).catch((()=>{}))),Promise.resolve(new I(e,0)))}_sendRetriedRequest(t,e){const n=t.retryOptions;let r=!1;const o=()=>this._setAuthHeader(t,r),s=this._connectionObserver;return P.V.init((()=>{let c;return c=s.isOnline()?o():new Promise(((e,n)=>{t.options.allowOffline?o().then(e,n):s.once(i.CONNECTION_ONLINE,(()=>{o().then(e,n)}))})),c.then((()=>{let n;if(this._pluginMediator.emitSync(a.TRANSPORT_BEFORE_SEND_REQUEST,{request:t,context:e}),"fetch"===t.options.requestMode&&this._Fetch&&this._Fetch.isSupported())n=this._Fetch.request(t);else{if(!this._XHR)throw new Error("No available request mechanisms.");n=this._XHR.request(t)}return n})).then((e=>{let o=null;if(e.headers&&(o=e.headers.get("Retry-After")),e.status===w.UNAUTHORIZED&&!t.options.ignoreUnauthorized)return r=!0,Promise.reject(e);if("function"==typeof(null==n?void 0:n.condition)&&(n.condition(e,C)||o)){if(null!==o){const t=parseInt(o,10);G.test(o)?e.retryAfter=new Date(o).getTime()-Date.now():t>0&&(e.retryAfter=1e3*t)}return Promise.reject(e)}return Promise.resolve(e)}))}),n).catch(this._handleRetriedRequestError).then((n=>(n.metadata=t.options.metadata,this._pluginMediator.emitSync(a.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:e,response:n}),t.options.rejectNotOk&&!n.ok?Promise.reject(n):n)))}_setAuthHeader(t,e){if(!t.options.authorize)return Promise.resolve(t);const n=()=>this._refreshToken(e).then((e=>(t.headers.set("Authorization",`Bearer ${e}`),t)));return this._stateMask&Y?n():new Promise(((t,e)=>{B.info("Auth header setting awaiting authentication."),this.once(i.AUTHENTICATED,(()=>{B.info("Auth header set after authentication."),n().then(t,e)}))}))}_handleRetriedRequestError(t){return t instanceof I?Promise.resolve(t):Promise.reject(t)}_onAddListener(t,e){const n=e.data.options;if(n.ignoreCurrentState)return;let r;switch(t){case"connected":if(!this.isConnected())return;r=Promise.resolve(this.createEvent(i.CONNECTED,null));break;case"authenticated":if(!this.isAuthenticated())return;r=Promise.resolve(this.createEvent(i.AUTHENTICATED,null));break;case"connection_id":{const t=this.getPluginAPI("dealer");if(!t||!t.hasConnectionInfo())return;r=t.getConnectionInfo().then((t=>this.createEvent(i.CONNECTION_ID,t)));break}case"transport_connect":if(!this.isConnected()||!this._endpoints)return;r=Promise.resolve(this._pluginMediator.createEvent(a.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:t=>{}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;r=this._refreshToken().then((t=>this._pluginMediator.createEvent(a.TRANSPORT_AUTHENTICATE,{token:t,awaitPromise:t=>{}})));break;default:return}const o=e.data.listener;this._stateAwareListeners[t].push(o);const s=this._stateAwareRunners;s[t]||(s[t]=r.then(this._runStateAwareQueues.bind(this,t)),n.once&&e.preventDefault())}_onRemoveListener(t,e){const n=e.data.options;if(n.ignoreCurrentState||n.once)return;const r=e.data.listener,o=this._stateAwareListeners[t].indexOf(r);-1!==o&&this._stateAwareListeners[t].splice(o,1)}_getQuickDisconnectTimeout(){return this._counter.getTime(this._quickDisconnectCount)}_onPluginDisconnected(t){const e=Date.now(),n=e-this._lastDisconnect;this._disconnect(!0),t.data.code!==p.CLOSE?this._connectionObserver.isOnline()&&(n<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(i.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:n}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=e,this._tryToReconnect())):this._quickDisconnectCount=0}_onOnline(){this.emit(i.CONNECTION_ONLINE,null),this._connectCalled&&this._tryToReconnect()}_onOffline(){this.emit(i.CONNECTION_OFFLINE,null),this._disconnect(!0)}_onConnected(){return this._stateMask|=V,this.emit(i.CONNECTED,null),Promise.resolve(!0)}_onAuthenticated(){return clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=Y,this._initTime=Date.now(),this.emit(i.AUTHENTICATED,null),Promise.resolve(!0)}_onAuthenticationFailed(t){const e=t&&t.error?t.error:t;return this._authenticationPromise=null,this._stateMask&=~Y,this.emit(i.AUTHENTICATION_FAILED,{error:e}),Promise.reject(e)}_onLogout(){const t=()=>{this._lastToken=null,this._lastTokenExpiry=0,this.emit(i.LOGGED_OUT,null)};this.disconnect().then(t,t)}isConnected(){return!!(this._stateMask&V)}isAuthenticated(){return!!(this._stateMask&Y)}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(){if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;const t=this.isConnected()?i.BEFORE_ONLINE_DISCONNECT:i.BEFORE_OFFLINE_DISCONNECT,e=[];return this.emitSync(t,{awaitPromise:t=>{e.push(t.catch((()=>{})))}}),Promise.all(e).then((()=>this._disconnect(!1)))}forceDisconnect(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._disconnect(),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(t){return new j(this,t)}hasOwnerRef(t){return this._ownerRef===t}appendTokenQuery(t){return this._refreshToken().then((e=>Q(t,e)))}appendLastTokenQuery(t){return this._lastToken?Q(t,this._lastToken):t}matchMessages(t,e,n){if(!t)throw new TypeError('Message "matcher" cannot be null.');if("function"!=typeof e)throw new TypeError("Message callback cannot be null.");const r=r=>{const o=r.data.message;!o.uri||!o.uri.match(t)||n&&n!==r.data.plugin||e(o)};r.__matchMessagesExp=t,r.__matchMessagesPlugin=n,e.__matchMessagesWrapper=r,this._pluginMediator.on(a.PLUGIN_MESSAGE,r)}unmatchMessages(t,e,n){if("function"!=typeof e)throw new TypeError("Message callback cannot be null.");const r=e.__matchMessagesWrapper;return!(!r||r.__matchMessagesExp!==t||r.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(a.PLUGIN_MESSAGE,r),!0)}handlePushRequests(t,e,n){if(!t)throw new TypeError('Push request "matcher" cannot be null.');if("function"!=typeof e)throw new TypeError("Push request callback cannot be null.");const r=r=>{const o=r.data.request;!o.message_ident||!o.message_ident.match(t)||n&&n!==r.data.plugin||Promise.resolve(e(o)).then(r.data.reply)};r.__matchRequestExp=t,r.__matchRequestPlugin=n,e.__matchRequestWrapper=r,this._pluginMediator.on(a.PLUGIN_REQUEST,r)}unhandlePushRequests(t,e,n){if("function"!=typeof e)throw new TypeError("Push request callback cannot be null.");const r=e.__matchRequestWrapper;return!(!r||r.__matchRequestExp!==t||r.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(a.PLUGIN_REQUEST,r),!0)}request(t,e){var n;const r={uri:t,options:e,context:{}};this._pluginMediator.emitSync(a.TRANSPORT_BEFORE_PROCESS_REQUEST,r);const o=this._sendRequest.bind(this,r.uri,r.options,r.context);return!(null===(n=r.options)||void 0===n?void 0:n.allowOffline)&&!this._connectionObserver.isOnline()||q.test(r.uri)&&!(this._stateMask&V)?new Promise(((t,e)=>{this.once(i.CONNECTED,(()=>{o().then(t,e)}))})):o()}addPlugin(t,e){const n=t(this,e),r=n.name;if(this._plugins[r])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[r]=n,r}removePlugin(t){const e=this._plugins[t];return!!e&&(e.detach(this,this._pluginMediator),this._plugins[t]=void 0,!0)}hasPlugin(t){return!!this._plugins[t]}getPluginAPI(t){const e=this._plugins[t];return e&&e.api?e.api:null}getConnectionId(t="dealer"){const e=this._plugins[t];return e?e.api&&function(t){return"getConnectionInfo"in t.api}(e)?e.api.getConnectionInfo().then((t=>t.id)):Promise.reject(new TypeError(`Plugin ${e} is not a socket plugin.`)):Promise.reject(new TypeError(`Cannot retrieve connection id for plugin ${e}.`))}removeAllListeners(){return this}}class X extends Error{constructor(t,e,n){super(t),this.name="RequestError",this.message=t,this.code=e,this.status=n||0}}class J{constructor(t){this._headers={},this._init(t)}_init(t){if(t){const e=t.split("\r\n");for(let t=0;t<e.length;t++){const n=e[t],r=n.indexOf(": ");if(r>0){const t=n.substring(0,r).toLowerCase(),e=n.substring(r+2);this._headers[t]=e}}}}get(t){return this._headers[t.toLowerCase()]||null}has(t){return this._headers.hasOwnProperty(t.toLowerCase())}}const z=function(){},$={json:!0,text:!0,document:!0},Z={},tt=Promise.resolve(Z);function et(){this.onabort=z,this.onerror=z,this.onload=z,this.onloadend=z}function nt(t,e,n){var r;const o=Date.now(),i=this.status,s=new I(this.responseURL||t.url,i);s.body=null;const a=t.options;if(a.timing&&(s.timing={completed:o-e}),(null===(r=a.connectionObserver)||void 0===r?void 0:r.isOnline)&&(s.offline=!a.connectionObserver.isOnline()),(a.parseResponseHeaders||i>299)&&(s.headers=new J(this.getAllResponseHeaders())),!a.ignoreResponseBody&&i!==w.NO_CONTENT&&2===s.getStatusFamily()){const t=a.responseType||"";if(!a.forcePolyfill&&"response"in this&&t===this.responseType)s.body=this.response;else if("document"===t)s.body=this.responseXML;else if("json"===t)try{s.body=JSON.parse(this.responseText)}catch(t){s.body=null}else"text"!==t&&""!==t||(s.body=this.responseText)}n(s)}function rt(t,e,n){4===this.readyState?e(new I(this.responseURL||t,this.status)):n(new X(o.HTTP_REQUEST_FAILED,"Request cannot be completed.",this.status))}function ot(t){return new Promise(((e,n)=>{var r;const o=new XMLHttpRequest;let i=t.url;if(!i)return void n(new TypeError("Request URL cannot be blank."));let s=null;const a=t.method||"GET",c=t.payload||"";a in O&&c?s=c:c&&(i+=`?${c}`),o.open(a,i,!0),o.onerror=rt.bind(o,i,e,n),o.onabort=et,o.onloadend=et,o.onprogress=z;const u=t.options;"include"===u.credentials&&(o.withCredentials=!0);const l=u.responseType;if(l)if(u.forcePolyfill){if(!(l in $))return void n(new TypeError(`Cannot polyfill responseType "${l}"`))}else{if(!("responseType"in o)&&!(l in $))return void n(new TypeError("Cannot set responseType: not supported in browser."));try{o.responseType=l}catch(t){return void n(new TypeError(`Unknown responseType "${l}".`))}if(o&&l!==o.responseType&&!(l in $))return void n(new TypeError(`Unknown responseType "${l}".`))}const h=t.headers.count()?t.headers.toJSON():null;if(h)for(const t in h)if(h.hasOwnProperty(t))try{o.setRequestHeader(t,h[t])}catch(t){return void n(t)}o.onload=nt.bind(o,t,Date.now(),e);try{o.send(s)}catch(t){return void n(t)}null===(r=u.canceller)||void 0===r||r.then((()=>o.abort()),(()=>o.abort()))}))}function it(t){const e=t.options.canceller;return(e?Promise.race([e,tt]):tt).then((e=>e!==Z?new Promise((()=>{})):ot(t)))}class st extends Error{constructor(t,e,n=-1){super(e),this.name="XResolveError",this.message=e,this.code=t,this.status=n}}const at="dealer",ct="spclient";function ut(t={}){const e=t.dealer||at,n=t.webgate||ct,r=`https://apresolve.spotify.com/?type=${e}&type=${n}`;return function(t){return t.request(r,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:5,condition:function(t,e){return t.getStatusFamily()!==e.SUCCESS}},metadata:{noRequestTransform:!0}}).then((t=>{if(200!==t.status)throw new st(o.XRESOLVE_REQUEST_FAILED_WITH_STATUS,`X-Resolve responded with status${t.status}`,t.status);const r=t.body;if(!r)throw new st(o.XRESOLVE_INVALID_RESPONSE,"X-Resolve responded with empty/invalid body.",t.status);const i={dealer:r[e]&&r[e][0],webgate:r[n]&&r[n][0],webapi:"https://api.spotify.com/"};if(!i.dealer||!i.webgate)throw new st(o.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",t.status);return i})).then((t=>(t.dealer=`wss://${t.dealer.replace(/:443$/,"")}`,t.webgate=`https://${t.webgate.replace(/:443$/,"")}`,t)))}}function lt(t){const e=Object.assign({},t);return e.XHR||(e.XHR=l),e.Fetch=r,K.create(e)}function ht(t){const e=lt(t);return e.addPlugin(b,{WebSocket}),e}},95766:(t,e)=>{"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){for(var e,n=c(t),i=n[0],s=n[1],a=new o(function(t,e,n){return 3*(e+n)/4-n}(0,i,s)),u=0,l=s>0?i-4:i,h=0;h<l;h+=4)e=r[t.charCodeAt(h)]<<18|r[t.charCodeAt(h+1)]<<12|r[t.charCodeAt(h+2)]<<6|r[t.charCodeAt(h+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;2===s&&(e=r[t.charCodeAt(h)]<<2|r[t.charCodeAt(h+1)]>>4,a[u++]=255&e);1===s&&(e=r[t.charCodeAt(h)]<<10|r[t.charCodeAt(h+1)]<<4|r[t.charCodeAt(h+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e);return a},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,c=r-o;a<c;a+=s)i.push(l(t,a,a+s>c?c:a+s));1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function l(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(u(r));return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:(t,e,n)=>{"use strict";
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var r=n(95766),o=n(62333),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;var s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|d(t,e),r=a(n),o=r.write(t,e);o!==n&&(r=r.slice(0,o));return r}(t,e);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return function(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n);return Object.setPrototypeOf(r,c.prototype),r}(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);var o=function(t){if(c.isBuffer(t)){var e=0|f(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||H(t.length)?a(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|f(t))}function p(t){for(var e=t.length<0?0:0|f(t.length),n=a(e),r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function d(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(o)return r?-1:F(t).length;e=(""+e).toLowerCase(),o=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return R(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,o){var i,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var l=-1;for(i=n;i<a;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){for(var h=!0,p=0;p<c;p++)if(u(t,i+p)!==u(e,p)){h=!1;break}if(h)return i}return-1}function v(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(H(a))return s;t[n+s]=a}return s}function E(t,e,n,r){return B(F(e,t.length-n),t,n,r)}function T(t,e,n,r){return B(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function b(t,e,n,r){return T(t,e,n,r)}function O(t,e,n,r){return B(j(e),t,n,r)}function w(t,e,n,r){return B(function(t,e){for(var n,r,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function R(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,s,a,c,u=t[o],l=null,h=u>239?4:u>223?3:u>191?2:1;if(o+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(i=t[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=S));return n}(r)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var i=t[n];if(q(i,Uint8Array)&&(i=c.from(i)),!c.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},c.byteLength=d,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},c.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(q(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(i,s),u=this.slice(r,o),l=t.slice(e,n),h=0;h<a;++h)if(u[h]!==l[h]){i=u[h],s=l[h];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return b(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function N(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function A(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function C(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=G[t[i]];return o}function L(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function D(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function k(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,8),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||x(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||x(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,t,e,n,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<n&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,t,e,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return k(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return k(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o=r-n;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,r);else if(this===t&&n<e&&e<r)for(var i=o-1;i>=0;--i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var o=t.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var s=c.isBuffer(t)?t:c.from(t,r),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=s[i%a]}return this};var M=/[^+/0-9A-Za-z-_]/g;function F(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function B(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function H(t){return t!=t}var G=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)e[r+o]=t[n]+t[o];return e}()},62333:(t,e)=>{e.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,l=-7,h=n?o-1:0,p=n?-1:1,f=t[e+h];for(h+=p,i=f&(1<<-l)-1,f>>=-l,l+=a;l>0;i=256*i+t[e+h],h+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),i-=u}return(f?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-1,h=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,d=r?1:-1,_=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*c-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[n+f]=255&a,f+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[n+f]=255&s,f+=d,s/=256,u-=8);t[n+f-d]|=128*_}},31762:(t,e,n)=>{var r=n(99819);t.exports=function(t,e,n){e=r(e,n);var o=!0;if(null==t)return o;for(var i=-1,s=t.length;++i<s;)if(!e(t[i],i,t)){o=!1;break}return o}},44441:(t,e,n)=>{var r=n(99819);t.exports=function(t,e,n){e=r(e,n);var o=[];if(null==t)return o;for(var i,s=-1,a=t.length;++s<a;)e(i=t[s],s,t)&&o.push(i);return o}},51372:t=>{t.exports=function(t,e,n){if(null!=t)for(var r=-1,o=t.length;++r<o&&!1!==e.call(n,t[r],r,t););}},5363:t=>{t.exports=function(t,e,n){if(n=n||0,null==t)return-1;for(var r=t.length,o=n<0?r+n:n;o<r;){if(t[o]===e)return o;o++}return-1}},15628:(t,e,n)=>{var r=n(99819);t.exports=function(t,e,n){e=r(e,n);var o=[];if(null==t)return o;for(var i=-1,s=t.length;++i<s;)o[i]=e(t[i],i,t);return o}},12323:(t,e,n)=>{var r=n(99819);t.exports=function(t,e,n){e=r(e,n);var o=!1;if(null==t)return o;for(var i=-1,s=t.length;++i<s;)if(e(t[i],i,t)){o=!0;break}return o}},25986:t=>{t.exports=function(t){return t}},99819:(t,e,n)=>{var r=n(25986),o=n(83753),i=n(48129);t.exports=function(t,e){if(null==t)return r;switch(typeof t){case"function":return void 0!==e?function(n,r,o){return t.call(e,n,r,o)}:t;case"object":return function(e){return i(e,t)};case"string":case"number":return o(t)}}},83753:t=>{t.exports=function(t){return function(e){return e[t]}}},81284:(t,e,n)=>{var r=n(9389);t.exports=function(t,e){function n(){}return n.prototype=t,r(new n,e)}},86434:(t,e,n)=>{var r=n(97081),o=Array.isArray||function(t){return r(t,"Array")};t.exports=o},97081:(t,e,n)=>{var r=n(5330);t.exports=function(t,e){return r(t)===e}},5330:t=>{t.exports=function(t){return Object.prototype.toString.call(t).slice(8,-1)}},4957:t=>{t.exports=function(t){return null==t?"":t.toString()}},48129:(t,e,n)=>{var r=n(37444),o=n(86434);function i(t,e){for(var n=-1,r=t.length;++n<r;)if(s(t[n],e))return!0;return!1}function s(t,e){return t&&"object"==typeof t&&e&&"object"==typeof e?o(t)&&o(e)?function(t,e){for(var n=-1,r=e.length;++n<r;)if(!i(t,e[n]))return!1;return!0}(t,e):function(t,e){var n=!0;return r(e,(function(e,r){if(!s(t[r],e))return n=!1})),n}(t,e):t===e}t.exports=s},91230:(t,e,n)=>{var r,o,i=n(7748);function s(t,e,n,r){return t.call(r,e[n],n,e)}t.exports=function(t,e,n){var a,c=0;for(a in null==r&&function(){for(var t in o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=!0,{toString:null})r=!1}(),t)if(!1===s(e,t,a,n))break;if(r)for(var u=t.constructor,l=!!u&&t===u.prototype;(a=o[c++])&&("constructor"===a&&(l||!i(t,a))||t[a]===Object.prototype[a]||!1!==s(e,t,a,n)););}},37444:(t,e,n)=>{var r=n(7748),o=n(91230);t.exports=function(t,e,n){o(t,(function(o,i){if(r(t,i))return e.call(n,t[i],i,t)}))}},7748:t=>{t.exports=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},9389:(t,e,n)=>{var r=n(37444);function o(t,e){this[e]=t}t.exports=function(t,e){for(var n,i=0,s=arguments.length;++i<s;)null!=(n=arguments[i])&&r(n,o,t);return t}},40990:t=>{t.exports=[" ","\n","\r","\t","\f","\v"," ","",""," ","","","","","","","","","","","\u2028","\u2029","",""," "]},81207:(t,e,n)=>{var r=n(4957),o=n(40990);t.exports=function(t,e){t=r(t),e=e||o;for(var n,i,s=0,a=t.length,c=e.length,u=!0;u&&s<a;)for(u=!1,n=-1,i=t.charAt(s);++n<c;)if(i===e[n]){u=!0,s++;break}return s>=a?"":t.substr(s,a)}},26247:(t,e,n)=>{var r=n(4957),o=n(40990);t.exports=function(t,e){t=r(t),e=e||o;for(var n,i,s=t.length-1,a=e.length,c=!0;c&&s>=0;)for(c=!1,n=-1,i=t.charAt(s);++n<a;)if(i===e[n]){c=!0,s--;break}return s>=0?t.substring(0,s+1):""}},9678:(t,e,n)=>{var r=n(4957),o=n(40990),i=n(81207),s=n(26247);t.exports=function(t,e){return t=r(t),i(s(t,e=e||o),e)}},30649:t=>{function e(){return e.get()}e.get="function"==typeof Date.now?Date.now:function(){return+new Date},t.exports=e},11378:t=>{var e=1e3,n=60*e,r=60*n,o=24*r,i=7*o,s=365.25*o;function a(t,e,n,r){var o=e>=1.5*n;return Math.round(t/n)+" "+r+(o?"s":"")}t.exports=function(t,c){c=c||{};var u=typeof t;if("string"===u&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*o;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(t);if("number"===u&&isFinite(t))return c.long?function(t){var i=Math.abs(t);if(i>=o)return a(t,i,o,"day");if(i>=r)return a(t,i,r,"hour");if(i>=n)return a(t,i,n,"minute");if(i>=e)return a(t,i,e,"second");return t+" ms"}(t):function(t){var i=Math.abs(t);if(i>=o)return Math.round(t/o)+"d";if(i>=r)return Math.round(t/r)+"h";if(i>=n)return Math.round(t/n)+"m";if(i>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},32030:(t,e,n)=>{"use strict";var r=n(57806),o=0,i="uid:"+(document.__counter=(parseInt(document.__counter||-1,36)+1).toString(36)),s=function(t,e){if(t===window)return"window";if(t===document)return"document";if(t===document.documentElement)return"html";if(e){var n=t.getAttribute(i);return n||(n=(o++).toString(36),t.setAttribute(i,n)),n}return t[i]||(t[i]=(o++).toString(36))},a=function(t){return s(t,!0)},c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},u=0,l={GET_ELEMENT_BY_ID:function(t,e){return e="slick_"+u++,t.innerHTML='<a id="'+e+'"></a>',!!this.getElementById(e)},QUERY_SELECTOR:function(t){return t.innerHTML="_<style>:nth-child(2){}</style>",t.innerHTML='<a class="MiX"></a>',1===t.querySelectorAll(".MiX").length},EXPANDOS:function(t,e){return e="slick_"+u++,t._custom_property_=e,t._custom_property_===e},MATCHES_SELECTOR:function(t){t.className="MiX";var e=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector;if(e)try{e.call(t,":slick")}catch(n){return!!e.call(t,".MiX")&&e}return!1},GET_ELEMENTS_BY_CLASS_NAME:function(t){return t.innerHTML='<a class="f"></a><a class="b"></a>',1===t.getElementsByClassName("b").length&&(t.firstChild.className="b",2===t.getElementsByClassName("b").length&&(t.innerHTML='<a class="a"></a><a class="f b a"></a>',2===t.getElementsByClassName("a").length))},GET_ATTRIBUTE:function(t){var e="fus ro dah";return t.innerHTML='<a class="'+e+'"></a>',t.firstChild.getAttribute("class")===e}},h=function(t){this.document=t;var e=this.root=t.documentElement;this.tested={},this.uniqueID=this.has("EXPANDOS")?s:a,this.getAttribute=this.has("GET_ATTRIBUTE")?function(t,e){return t.getAttribute(e)}:function(t,e){return(t=t.getAttributeNode(e))&&t.specified?t.value:null},this.hasAttribute=e.hasAttribute?function(t,e){return t.hasAttribute(e)}:function(t,e){return!(!(t=t.getAttributeNode(e))||!t.specified)},this.contains=t.contains&&e.contains?function(t,e){return t.contains(e)}:e.compareDocumentPosition?function(t,e){return t===e||!!(16&t.compareDocumentPosition(e))}:function(t,e){do{if(e===t)return!0}while(e=e.parentNode);return!1},this.sorter=e.compareDocumentPosition?function(t,e){return t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:t===e?0:1:0}:"sourceIndex"in e?function(t,e){return t.sourceIndex&&e.sourceIndex?t.sourceIndex-e.sourceIndex:0}:t.createRange?function(t,e){if(!t.ownerDocument||!e.ownerDocument)return 0;var n=t.ownerDocument.createRange(),r=e.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,0),r.setStart(e,0),r.setEnd(e,0),n.compareBoundaryPoints(Range.START_TO_END,r)}:null,this.failed={};var n=this.has("MATCHES_SELECTOR");n&&(this.matchesSelector=function(t,e){if(this.failed[e])return null;try{return n.call(t,e)}catch(t){return y.debug&&console.warn("matchesSelector failed on "+e),this.failed[e]=!0,null}}),this.has("QUERY_SELECTOR")&&(this.querySelectorAll=function(t,e){if(this.failed[e])return!0;var n,r,o,i,s;if(t!==this.document&&(i=e[0].combinator,o=e,(r=t.getAttribute("id"))||(r="__slick__",(s=t).setAttribute("id",r)),e="#"+r+" "+o,(i.indexOf("~")>-1||i.indexOf("+")>-1)&&((t=t.parentNode)||(n=!0))),!n)try{n=t.querySelectorAll(e.toString())}catch(t){y.debug&&console.warn("querySelectorAll failed on "+(o||e)),n=this.failed[o||e]=!0}return s&&s.removeAttribute("id"),n})};h.prototype.has=function(t){var e=this.tested,n=e[t];if(null!=n)return n;var r=this.root,o=this.document,i=o.createElement("div");i.setAttribute("style","display: none;"),r.appendChild(i);var s=l[t],a=!1;if(s)try{a=s.call(o,i)}catch(t){}return y.debug&&!a&&console.warn("document has no "+t),r.removeChild(i),e[t]=a};var p={" ":function(t,e,n){var r,o,i=!e.id,s=!e.tag,a=!e.classes;if(e.id&&t.getElementById&&this.has("GET_ELEMENT_BY_ID")&&(r=t.getElementById(e.id))&&r.getAttribute("id")===e.id&&(o=[r],i=!0,"*"===e.tag&&(s=!0)),!o&&(e.classes&&t.getElementsByClassName&&this.has("GET_ELEMENTS_BY_CLASS_NAME")?(o=t.getElementsByClassName(e.classList),a=!0,"*"===e.tag&&(s=!0)):(o=t.getElementsByTagName(e.tag),"*"!==e.tag&&(s=!0)),!o||!o.length))return!1;for(var c=0;r=o[c++];)(s&&i&&a&&!e.attributes&&!e.pseudos||this.match(r,e,s,i,a))&&n(r);return!0},">":function(t,e,n){if(t=t.firstChild)do{1==t.nodeType&&this.match(t,e)&&n(t)}while(t=t.nextSibling)},"+":function(t,e,n){for(;t=t.nextSibling;)if(1==t.nodeType){this.match(t,e)&&n(t);break}},"^":function(t,e,n){(t=t.firstChild)&&(1===t.nodeType?this.match(t,e)&&n(t):p["+"].call(this,t,e,n))},"~":function(t,e,n){for(;t=t.nextSibling;)1===t.nodeType&&this.match(t,e)&&n(t)},"++":function(t,e,n){p["+"].call(this,t,e,n),p["!+"].call(this,t,e,n)},"~~":function(t,e,n){p["~"].call(this,t,e,n),p["!~"].call(this,t,e,n)},"!":function(t,e,n){for(;t=t.parentNode;)t!==this.document&&this.match(t,e)&&n(t)},"!>":function(t,e,n){(t=t.parentNode)!==this.document&&this.match(t,e)&&n(t)},"!+":function(t,e,n){for(;t=t.previousSibling;)if(1==t.nodeType){this.match(t,e)&&n(t);break}},"!^":function(t,e,n){(t=t.lastChild)&&(1==t.nodeType?this.match(t,e)&&n(t):p["!+"].call(this,t,e,n))},"!~":function(t,e,n){for(;t=t.previousSibling;)1===t.nodeType&&this.match(t,e)&&n(t)}};h.prototype.search=function(t,e,n){t?!t.nodeType&&t.document&&(t=t.document):t=this.document;var o=r(e);if(!o||!o.length)throw new Error("invalid expression");n||(n=[]);var i,a,u,l,h=c(n)?function(t){n[n.length]=t}:function(t){n[n.length++]=t};if(o.length>1){i={};var f=h;h=function(t){var e=s(t);i[e]||(i[e]=!0,f(t))}}t:for(var d=0;e=o[d++];)if(y.noQSA||!this.querySelectorAll||!0===(u=this.querySelectorAll(t,e)))if(1===e.length)l=e[0],p[l.combinator].call(this,t,l,h);else{var _,g,m,v=[t],E=function(t){var e=s(t);m[e]||(m[e]=!0,g[g.length]=t)};for(O=0;l=e[O++];){g=[],m={};for(var T=0;_=v[T++];)p[l.combinator].call(this,_,l,E);if(!g.length)continue t;v=g}if(0===d)n=g;else for(var b=0;b<g.length;b++)h(g[b])}else if(u&&u.length)for(var O=0;a=u[O++];)a.nodeName>"@"&&h(a);return i&&n&&n.length>1&&this.sort(n),n},h.prototype.sort=function(t){return this.sorter?Array.prototype.sort.call(t,this.sorter):t};var f={empty:function(){return!(this&&1===this.nodeType||(this.innerText||this.textContent||"").length)},not:function(t){return!y.matches(this,t)},contains:function(t){return(this.innerText||this.textContent||"").indexOf(t)>-1},"first-child":function(){for(var t=this;t=t.previousSibling;)if(1==t.nodeType)return!1;return!0},"last-child":function(){for(var t=this;t=t.nextSibling;)if(1==t.nodeType)return!1;return!0},"only-child":function(){for(var t=this;t=t.previousSibling;)if(1==t.nodeType)return!1;for(var e=this;e=e.nextSibling;)if(1==e.nodeType)return!1;return!0},"first-of-type":function(){for(var t=this,e=t.nodeName;t=t.previousSibling;)if(t.nodeName==e)return!1;return!0},"last-of-type":function(){for(var t=this,e=t.nodeName;t=t.nextSibling;)if(t.nodeName==e)return!1;return!0},"only-of-type":function(){for(var t=this,e=this.nodeName;t=t.previousSibling;)if(t.nodeName==e)return!1;for(var n=this;n=n.nextSibling;)if(n.nodeName==e)return!1;return!0},enabled:function(){return!this.disabled},disabled:function(){return this.disabled},checked:function(){return this.checked||this.selected},selected:function(){return this.selected},focus:function(){return this.ownerDocument.activeElement===this&&(this.href||this.type||y.hasAttribute(this,"tabindex"))},root:function(){return this===this.ownerDocument.documentElement}};h.prototype.match=function(t,e,n,r,o){if(!y.noQSA&&this.matchesSelector){var i=this.matchesSelector(t,e);if(null!==i)return i}if(!n&&e.tag){var s=t.nodeName.toLowerCase();if("*"===e.tag){if(s<"@")return!1}else if(s!=e.tag)return!1}if(!r&&e.id&&t.getAttribute("id")!==e.id)return!1;var a,c,u,l;if(!o&&e.classes){var h=this.getAttribute(t,"class");if(!h)return!1;for(c in e.classes)if(!RegExp("(^|\\s)"+e.classes[c]+"(\\s|$)").test(h))return!1}if(e.attributes)for(a=0;c=e.attributes[a++];){var p=c.operator,d=c.escapedValue;if(u=c.name,l=c.value,p){var _=this.getAttribute(t,u);if(null==_)return!1;switch(p){case"^=":if(!RegExp("^"+d).test(_))return!1;break;case"$=":if(!RegExp(d+"$").test(_))return!1;break;case"~=":if(!RegExp("(^|\\s)"+d+"(\\s|$)").test(_))return!1;break;case"|=":if(!RegExp("^"+d+"(-|$)").test(_))return!1;break;case"=":if(_!==l)return!1;break;case"*=":if(-1===_.indexOf(l))return!1;break;default:return!1}}else if(!this.hasAttribute(t,u))return!1}if(e.pseudos)for(a=0;c=e.pseudos[a++];){if(u=c.name,l=c.value,f[u])return f[u].call(t,l);if(null!=l){if(this.getAttribute(t,u)!==l)return!1}else if(!this.hasAttribute(t,u))return!1}return!0},h.prototype.matches=function(t,e){var n=r(e);if(1===n.length&&1===n[0].length)return this.match(t,n[0][0]);if(!y.noQSA&&this.matchesSelector){var o=this.matchesSelector(t,n);if(null!==o)return o}for(var i,s=this.search(this.document,e,{length:0}),a=0;i=s[a++];)if(t===i)return!0;return!1};var d={},_=function(t){var e=t||document;if(e.ownerDocument?e=e.ownerDocument:e.document&&(e=e.document),9!==e.nodeType)throw new TypeError("invalid document");var n=s(e);return d[n]||(d[n]=new h(e))},y=function(t,e){return y.search(t,e)};y.search=function(t,e,n){return _(e).search(e,t,n)},y.find=function(t,e){return _(e).search(e,t)[0]||null},y.getAttribute=function(t,e){return _(t).getAttribute(t,e)},y.hasAttribute=function(t,e){return _(t).hasAttribute(t,e)},y.contains=function(t,e){return _(t).contains(t,e)},y.matches=function(t,e){return _(t).matches(t,e)},y.sort=function(t){return t&&t.length>1&&_(t[0]).sort(t),t},y.parse=r,t.exports=y},10282:(t,e,n)=>{"use strict";t.exports="document"in n.g?n(32030):{parse:n(57806)}},57806:t=>{"use strict";var e=/([-.*+?^${}()|[\]\/\\])/g,n=/\\/g,r=function(t){return(t+"").replace(e,"\\$1")},o=function(t){return(t+"").replace(n,"")},i=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,"["+r(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),s=function(t){this.combinator=t||" ",this.tag="*"};s.prototype.toString=function(){if(!this.raw){var t,e,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(t=0;e=this.attributes[t++];)n+="["+e.name+(e.operator?e.operator+'"'+e.value+'"':"")+"]";if(this.pseudos)for(t=0;e=this.pseudos[t++];)n+=":"+e.name,e.value&&(n+="("+e.value+")");this.raw=n}return this.raw};var a=function(){this.length=0};a.prototype.toString=function(){if(!this.raw){for(var t,e="",n=0;t=this[n++];)1!==n&&(e+=" ")," "!==t.combinator&&(e+=t.combinator+" "),e+=t;this.raw=e}return this.raw};var c=function(t,e,n,i,c,u,l,h,p,f,d,_,y,g,m,v){var E,T;if((e||!this.length)&&(E=this[this.length++]=new a,e))return"";if(E||(E=this[this.length-1]),(n||i||!E.length)&&(T=E[E.length++]=new s(n)),T||(T=E[E.length-1]),c)T.tag=o(c);else if(u)T.id=o(u);else if(l){var b=o(l),O=T.classes||(T.classes={});if(!O[b]){O[b]=r(l);var w=T.classList||(T.classList=[]);w.push(b),w.sort()}}else y?(v=v||m,(T.pseudos||(T.pseudos=[])).push({type:1==_.length?"class":"element",name:o(y),escapedName:r(y),value:v?o(v):null,escapedValue:v?r(v):null})):h&&(d=d?r(d):null,(T.attributes||(T.attributes=[])).push({operator:p,name:o(h),escapedName:r(h),value:d?o(d):null,escapedValue:d?r(d):null}));return""},u=function(t){this.length=0;for(var e,n=this,r=t;t;){if((e=t.replace(i,(function(){return c.apply(n,arguments)})))===t)throw new Error(r+" is an invalid expression");t=e}};u.prototype.toString=function(){if(!this.raw){for(var t,e=[],n=0;t=this[n++];)e.push(t);this.raw=e.join(", ")}return this.raw};var l={};t.exports=function(t){return null==t?null:(t=(""+t).replace(/^\s+|\s+$/g,""),l[t]||(l[t]=new u(t)))}},34327:t=>{"use strict";var e=function(){var t,e=[];for(t=0;t<256;++t)e[t]=255;for(t=0;t<this.BASE64_DIGITS.length;++t)e[this.BASE64_DIGITS.charCodeAt(t)]=t;this._inverseData=String.fromCharCode.apply(String,e)};e.prototype.BASE64_DIGITS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.prototype.STRING_CHUNK_SIZE=4096,e.prototype._stringFromCharCode=function(t){if(t.length<this.STRING_CHUNK_SIZE)return String.fromCharCode.apply(String,t);var e=0,n=[];do{n.push(String.fromCharCode.apply(String,t.slice(e,e+this.STRING_CHUNK_SIZE))),e+=this.STRING_CHUNK_SIZE}while(e<t.length);return n.join("")},e.prototype.encode=function(t){if("string"!=typeof t)return"";if("undefined"!=typeof window&&void 0!==window.btoa)return window.btoa(t);var e,n,r,o,i,s;for(r=t.length,n=0,e="";n<r;){if(o=255&t.charCodeAt(n++),n===r){e+=this.BASE64_DIGITS.charAt(o>>2),e+=this.BASE64_DIGITS.charAt((3&o)<<4),e+="==";break}if(i=t.charCodeAt(n++),n===r){e+=this.BASE64_DIGITS.charAt(o>>2),e+=this.BASE64_DIGITS.charAt((3&o)<<4|(240&i)>>4),e+=this.BASE64_DIGITS.charAt((15&i)<<2),e+="=";break}s=t.charCodeAt(n++),e+=this.BASE64_DIGITS.charAt(o>>2),e+=this.BASE64_DIGITS.charAt((3&o)<<4|(240&i)>>4),e+=this.BASE64_DIGITS.charAt((15&i)<<2|(192&s)>>6),e+=this.BASE64_DIGITS.charAt(63&s)}return e},e.prototype.decode=function(t){if("undefined"!=typeof window&&void 0!==window.atob)return window.atob(t);for(var e,n,r=[],o=t.length,i=0;;){do{e=this._inverseData.charCodeAt(255&t.charCodeAt(i++))}while(255===e&&i<o);do{n=this._inverseData.charCodeAt(255&t.charCodeAt(i++))}while(255===n&&i<o);if(255===n)break;r.push(255&(e<<2|n>>4));do{e=this._inverseData.charCodeAt(255&t.charCodeAt(i++))}while(255===e&&i<o);if(255===e)break;r.push(255&(n<<4|e>>2));do{n=this._inverseData.charCodeAt(255&t.charCodeAt(i++))}while(255===n&&i<o);if(255===n)break;r.push(255&(e<<6|n))}return this._stringFromCharCode(r)};var n=new e;t.exports={encode:n.encode.bind(n),decode:n.decode.bind(n)}},2305:t=>{"use strict";function e(t){var e=typeof t;return"object"===e?t?Object.prototype.toString.call(t).slice(8,-1):null:e}function n(t,n){for(var r=0,o=t.length;r<o;r++){var i=e(t[r]);if(n.indexOf(i)<0)throw new ReferenceError("Wrong subtype in data array.")}}function r(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=e(t[r]);if(n.indexOf(o)<0)throw new ReferenceError("Wrong subtype in map.")}}t.exports=function(t,o){for(var i in t)if(t.hasOwnProperty(i)){if(!o.hasOwnProperty(i))throw new ReferenceError("Bad key, mismatching schema in logging data.");if(!o[i].nullable||t[i]){if(!t[i])throw new ReferenceError("Missing non-nullable value.");var s=e(t[i]),a=o[i].type.split("|"),c=o[i].complex_type;if("Array"===c)n(t[i],a);else{if("Object"!==c){if(a.indexOf(s)>=0)continue;throw new ReferenceError("Type mismatch in logging data.")}r(t[i],a)}}}return t}},52502:t=>{"use strict";var e=1,n=2,r=4,o=8,i=16,s=Array.prototype.slice;function a(t,e,n){this.tag=t,this.description=e,this._predicate=n,this._tagParts=t.split("."),this._tagText="["+t+"]",this._enabled="true"==="{}".DEBUG,this._level=0,this.log=this.log.bind(this),this.debug=this.debug.bind(this),this.warn=this.warn.bind(this),this.error=this.error.bind(this)}a.prototype.matchesTag=function(t){var e=Array.isArray(t)?t:t.split("."),n=this._tagParts;if(e.length>n.length)return!1;for(var r=0,o=e.length;r<o;r++)if(("*"!==e[r]||!n[r])&&e[r]!==n[r])return!1;return!0},a.prototype.setLevel=function(t){var s=0;switch(t){case"error":s=i;break;case"warn":s=o|i;break;case"info":s=r|o|i;break;case"debug":s=n|r|o|i;break;case"log":default:s=e|n|r|o|i}this._level=s},a.prototype.enable=function(){"true"==="{}".DEBUG&&(this._enabled=!0)},a.prototype.disable=function(){"true"==="{}".DEBUG&&(this._enabled=!1)},a.prototype.log=function(){if("true"==="{}".DEBUG){if(!(this._enabled||this._level&e))return;var t=s.call(arguments),n=[this._tagText].concat(t),r={type:"log",tag:this.tag,args:t};if(this._predicate(r))return;console.log.apply(console,n)}},a.prototype.debug=function(){if("true"==="{}".DEBUG){if(!(this._enabled||this._level&n))return;var t=s.call(arguments),e=[this._tagText].concat(t),r={type:"debug",tag:this.tag,args:t};if(this._predicate(r))return;console.debug.apply(console,e)}},a.prototype.info=function(){if("true"==="{}".DEBUG){if(!(this._enabled||this._level&r))return;var t=s.call(arguments),e=[this._tagText].concat(t),n={type:"info",tag:this.tag,args:t};if(this._predicate(n))return;console.info.apply(console,e)}},a.prototype.warn=function(){if("true"==="{}".DEBUG){if(!(this._enabled||this._level&o))return;var t=s.call(arguments),e=[this._tagText].concat(t),n={type:"warn",tag:this.tag,args:t};if(this._predicate(n))return;console.warn.apply(console,e)}},a.prototype.error=function(){if("true"==="{}".DEBUG){if(!(this._enabled||this._level&i))return;var t=s.call(arguments),e=[this._tagText].concat(t),n={type:"error",tag:this.tag,args:t};if(this._predicate(n))return;console.error.apply(console,e)}},t.exports=a},25972:(t,e,n)=>{"use strict";var r=n(52502),o="__dbgLoggerRegistry",i=n.g.__dbgLoggerRegistry;i||(i={map:{},list:[],loggingPredicate:null},Object.defineProperty?Object.defineProperty(n.g,o,{value:i}):n.g.__dbgLoggerRegistry=i);var s=i.map,a=i.list;function c(t){return!(!i.loggingPredicate||!i.loggingPredicate(t))}var u="log";t.exports={intercept:function(t){if("function"!=typeof t)throw new TypeError("Logging.intercept requires a function predicate.");i.loggingPredicate=t},unintercept:function(){i.loggingPredicate=null},list:function(t){var e,n,r,o=Object.keys(s);if(o.sort(),t){var i=[];for(e=0,n=o.length;e<n;e++)r=o[e],s[r]&&i.push({tag:r,description:s[r].description||"No description."});return i}var a={};for(e=0,n=o.length;e<n;e++)r=o[e],s[r]&&(a[r]=s[r].description||"No description");return a},enable:function(t){for(var e=Array.isArray(t)?t:[t],n=e.length;n--;)for(var r=e[n].toLowerCase(),o=a.length;o--;){var i=a[o];i.matchesTag(r)&&i.enable()}},disable:function(t){for(var e=Array.isArray(t)?t:[t],n=e.length;n--;)for(var r=e[n].toLowerCase(),o=a.length;o--;){var i=a[o];i.matchesTag(r)&&i.disable()}},setLevel:function(t){u=t;for(var e=a.length;e--;){var n=a[e];n&&n.setLevel(t)}},enableAll:function(){for(var t=a.length;t--;)a[t]&&a[t].enable()},disableAll:function(){for(var t=a.length;t--;)a[t]&&a[t].disable()},forTag:function(t,e){var n,o;if("string"==typeof t?(n=t.toLowerCase(),o=e):(n=t.tag,o=t.description),s.hasOwnProperty(n)&&s[n])return s[n];var i=new r(n,o,c);return i.setLevel(u),s[n]=i,a.push(i),i},remove:function(t){var e=t.toLowerCase();if(s.hasOwnProperty(e)&&s[e]){var n=s[e];s[e]=null;var r=a.indexOf(n);-1!==r&&a.splice(r,1)}}}},49282:t=>{!function(){"use strict";var e="undefined"!=typeof window,n="function"==typeof Object.defineProperty;if(e&&window.__modDefFn)t.exports=window.__modDefFn;else{var r,o,i=[];l();var s=function(t){var e=!i.length;i.push(t),e&&r()};e&&!window.__modDefFn&&(n?Object.defineProperty(window,"__modDefFn",{value:s}):window.__modDefFn=s),s.use={auto:l,dom:a,immediate:c,timeout:u},t.exports=s}function a(){if(o=window.location.origin||window.location.protocol+"//"+window.location.hostname,r=window.postMessage.bind(window,"@execute_deferreds",o),!window.__hasDeferredHandler){n?Object.defineProperty(window,"__hasDeferredHandler",{value:1}):window.__hasDeferredHandler=1;var t=function(t){t.origin!=o&&"@execute_deferreds"!=t.data||h()};window.addEventListener?window.addEventListener("message",t):window.attachEvent("onmessage",t)}}function c(){r=setImmediate.bind(null,h)}function u(){r=setTimeout.bind(null,h,10)}function l(){e&&window.postMessage?a():"undefined"!=typeof setImmediate?c():u()}function h(){var t=i.splice(0);if(t.length)for(var e=0,n=t.length;e<n;e++)try{t[e]()}finally{}}}()},42050:(t,e,n)=>{"use strict";t.exports=function(t){var e=t;return"true"==="{}".DEBUG&&(e=n(2305)(t,{version:{type:"string",nullable:!0}})),{name:"context_application",data:e}}},84165:(t,e,n)=>{"use strict";t.exports=function(t){var e=t;return"true"==="{}".DEBUG&&(e=n(2305)(t,{value:{type:"string",nullable:!0}})),{name:"context_installation_id",data:e}}},30612:(t,e,n)=>{"use strict";t.exports=function(t){var e=t;return"true"==="{}".DEBUG&&(e=n(2305)(t,{name:{type:"string",nullable:!0},version:{type:"string",nullable:!0}})),{name:"context_os",data:e}}},60658:(t,e,n)=>{"use strict";var r=n(34327);t.exports=function(t){if(!t||t.length%2!=0)throw new TypeError("Invalid clientId value.");var e=t.match(/[0-9a-f]{2}?/g);if(!e||!e.length)throw new TypeError("Invalid clientId value.");var n=String.fromCharCode.apply(null,e.map((function(t){return parseInt(t,16)}))),o=r.encode(n);return function(){return{name:"context_client_id",data:{value:o}}}}},27470:(t,e,n)=>{"use strict";var r=n(51797);t.exports=function(){return{name:"context_sdk",data:{version_name:r.version}}}},53598:t=>{"use strict";t.exports=function(){return{name:"context_time",data:{timestamp:Date.now()}}}},9604:(t,e,n)=>{"use strict";var r=n(31293),o=n(44685),i=n(72922),s=n(44375).Event,a=n(27470),c=n(53598),u=n(60658),l=n(25972),h=n(38001),p=l.forTag("EventSender");function f(t){var e=t||{};this._transport=e.transport,this._upload=this._upload.bind(this),this._shouldRetry=this._shouldRetry.bind(this),this._uploadWaiting=!1,this._sequenceIdGenerator=r.create(),this._uploader=o.create({enableDebugInfo:e.enableDebugInfo,suppressPersist:e.suppressPersist,transport:this._transport}),this._contextCreators=e.context||[];for(var n=0,i=this._contextCreators.length;n<i;n++)if("function"!=typeof this._contextCreators[n])throw new Error("The context creator at index "+n+" is not a function");this._contextCreators.push(a),this._contextCreators.push(c),e.clientId&&this._contextCreators.push(u(e.clientId)),this._refreshing=!1,this._events=[],this._backoffBaseTime=e.baseTime||200,this._backoffCeiling=e.ceiling||3e5,this._backoffMaxDuration=e.maxDuration||18e5,this._transport.on(s.TRANSPORT_BEFORE_ONLINE_DISCONNECT,this._onBeforeDisconnect.bind(this))}f.create=function(t){return new f(t)},f.prototype._onBeforeDisconnect=function(t){var e=this._uploader.lastUpload(this._events.splice(0));t.data&&t.data.awaitPromise?t.data.awaitPromise(e):t.awaitPromise(e)},f.prototype._shouldRetry=function(){return this._transport.isOnline()&&!this._refreshing},f.prototype._initFlush=function(){var t=this._backoffBaseTime,e=!1;return this._uploader.shouldBackoff()&&(t=this._backoffCeiling,e=!0),i.init(this._upload,{algo:"exp",baseTime:t,ceiling:this._backoffCeiling,maxDuration:this._backoffMaxDuration,backoffInitial:e,retryPredicate:this._shouldRetry})},f.prototype._waitForConnection=function(){return new h(function(t){this._transport.once(s.TRANSPORT_CONNECTION_ONLINE,t)}.bind(this))},f.prototype.flush=function(){return this._transport.isOnline()||this._ongoingUpload||(this._ongoingUpload=this._waitForConnection()),this._ongoingUpload?(this._uploadWaiting||(this._uploadWaiting=!0,this._ongoingUpload=this._ongoingUpload.then(function(){return this._ongoingUpload=!1,this._uploadWaiting=!1,this.flush()}.bind(this))),this._ongoingUpload):this._events.length?(this._ongoingUpload=this._initFlush().then(function(t){return this._ongoingUpload=void 0,t}.bind(this)).catch(function(){return this._ongoingUpload=void 0,this._transport.isOnline()?(this._refreshing||(p.warn("The events in the queue could not be uploaded. Throwing away "+this._events.length+" events."),this._events=[]),{nack:this._events,backoff:this._uploader.shouldBackoff()}):this.flush()}.bind(this)),this._ongoingUpload):h.resolve({nack:this._events,backoff:this._uploader.shouldBackoff()})},f.prototype._upload=function(){return this._uploader.upload(this._events.splice(0)).then(function(t){if(t.nack.length)throw this._events=t.nack.concat(this._events),new Error("Backoff requested");return t}.bind(this))},f.prototype.log=function(t,e){var n={sequence_id:this._sequenceIdGenerator.getSequenceId(),sequence_number:this._sequenceIdGenerator.nextSequenceNumber(t.name),event_name:t.name};n.fragments={message:t.data};for(var r=0,o=this._contextCreators.length;r<o;r++){var i=this._contextCreators[r].call(this);n.fragments[i.name]=i.data}this._events.push(n),!1!==e&&this.flush()},f.prototype.refresh=function(){return this._sequenceIdGenerator.reset(),this._refreshing=!0,this.flush().then(function(){return this._transport.forceTokenRefresh().then(function(t){return this._refreshing=!1,t}.bind(this))}.bind(this)).catch(function(t){return p.warn("Could not flush using cached token",t),this._refreshing=!1,!0}.bind(this))},t.exports=f},72922:(t,e,n)=>{"use strict";var r=n(39805).z,o=n(38001),i=n(28654),s=Array.prototype.slice;function a(t,e){var n=e||{};this._fn=t,this._resolver=o.defer(),this._maxDuration=n.maxDuration||r.maxDuration,this._maxRetries="maxRetries"in n?n.maxRetries:r.maxRetries,this._maxTime=n.maxTime||r.maxTime,this._retryPredicate=n.retryPredicate||r.retryPredicate,this._ts=0,this._callCount=0,this._backoffInitial=n.backoffInitial,this._tickInterval=null,this._isRunning=!1,this._counter=new i({curve:n.curve||n.algo,baseTime:n.baseTime,ceiling:n.ceiling}),this._backoffInitial&&(this._maxRetries+=1),this._tick=this._tick.bind(this)}a.init=function(t,e){return new a(t,e).start()},a.prototype.getResolver=function(){return this._resolver.promise},a.prototype.start=function(t){return!this._fn&&t&&(this._fn=t),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},a.prototype.stop=function(){clearTimeout(this._tickInterval),this._isRunning=!1,this._destroy()},a.prototype._destroy=function(){this._fn=null,this._resolver=null},a.prototype._failure=function(t){if(t&&"retryAfter"in t)this._retryAfter(t);else{var e=this._counter.getTime(this._callCount);this._shouldRetry(e,t)?(this._callCount++,this._tickInterval=setTimeout(this._tick,e)):(this._resolver.reject(t),this._destroy())}},a.prototype._retryAfter=function(t){this._callCount++,this._tickInterval=setTimeout(this._tick,t.retryAfter)},a.prototype._success=function(){this._resolver.resolve.apply(null,s.call(arguments)),this._destroy()},a.prototype._shouldRetry=function(t,e){var n=Date.now()-this._ts+t;return this._callCount<this._maxRetries&&t<this._maxTime&&n<this._maxDuration&&this._retryPredicate(e)},a.prototype._tick=function(){this._fn().then(this._success.bind(this)).catch(this._failure.bind(this))},t.exports=a},28654:(t,e,n)=>{"use strict";var r=n(39805).t;function o(t){var e=t||{};this._curve=e.curve||e.algo||r.curve,this._baseTime=e.baseTime||r.baseTime,this._ceiling=e.ceiling||r.ceiling,this._jitter=!(!1===e.jitter)}o.prototype.getTime=function(t){var e;switch(this._curve){case"static":e=1;break;case"logarithmic":case"log":e=Math.log(t);break;case"exponential":case"exp":e=Math.pow(Math.E,t);break;case"linear":case"lin":default:e=t+1}var n=e*this._baseTime|0;return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(t){var e=t/5;return 0|t-e/2+Math.random()*e}(n):n},t.exports=o},39805:(t,e)=>{"use strict";e.t={algo:"lin",baseTime:200,ceiling:0,curve:"linear"},e.z={algo:"lin",backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:function(){return!0}}},3700:(t,e,n)=>{"use strict";var r=n(34327),o={generate:function(t){for(var e="",n=0;n<t;n++)e+=String.fromCharCode(256*Math.random()|0);return e},generateBase64:function(t){return r.encode(o.generate(t))}};t.exports=o},31293:(t,e,n)=>{"use strict";var r=n(3700);function o(){this.reset()}o.create=function(){return new o},o.prototype.reset=function(){this._sequenceId=r.generateBase64(16),this._sequenceNumbers={}},o.prototype.getSequenceId=function(){return this._sequenceId},o.prototype.nextSequenceNumber=function(t){return this._sequenceNumbers[t]||(this._sequenceNumbers[t]=0),++this._sequenceNumbers[t]},t.exports=o},44685:(t,e,n)=>{"use strict";var r=n(18754),o=n(38001),i=n(25972).forTag("Logh.Uploader");function s(t){var e=t||{};this._transport=e.transport,this._enableDebugInfo=e.enableDebugInfo||!1,this._suppressPersist=e.suppressPersist||!1,this._backoff=!1}s.create=function(t){return new s(t)},s.prototype.upload=function(t,e){var n=e||[];if(!t.length)return o.resolve({nack:n,backoff:this._backoff});var r=t.slice(0);return this._uploadBatch(r.splice(0,20)).then(function(t){if(n=n.concat(t),this._backoff)n=n.concat(r);else if(r.length)return this.upload(r,n);return{nack:n,backoff:this._backoff}}.bind(this))},s.prototype.lastUpload=function(t){return t.length?this._uploadBatch(t.splice(0,100)).then((function(){return!0})):o.resolve(!0)},s.prototype._uploadBatch=function(t){var e=this._transport.isAuthenticated(),n=e?"@webgate/gabo-receiver-service/v3/events":"@webgate/gabo-receiver-service/public/v3/events";return this._transport.request(n,{method:r.POST,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:t}),headers:{"content-type":"application/json"},responseType:"json",authorize:e,withResponseHeaders:!0}).then(function(e){if(200!==e.status)return i.warn("Received error status",e),this._backoff=!0,t;var n=e.body,r=e.headers,o=[];if(n.error&&n.error.length){this._enableDebugInfo&&i.info("response errors",t,n.error);for(var s=0,a=n.error.length;s<a;s++)n.error[s].transient&&o.push(t[n.error[s].index])}return this._backoff=!(!r||"true"!==r.get("backoff")),o}.bind(this))},s.prototype.shouldBackoff=function(){return this._backoff},t.exports=s},51797:t=>{"use strict";t.exports=JSON.parse('{"tagged":"1.7.6-fd191eb","version":"1.7.6","revision":"fd191eb"}')},74156:t=>{"use strict";var e="function"==typeof Object.defineProperty,n={value:!1,writable:!0};function r(t,r){if(this.type=t,r)for(var o in r)r.hasOwnProperty(o)&&"type"!==o&&(this[o]=r[o]);e?(Object.defineProperty(this,"_prevented",n),Object.defineProperty(this,"_stopped",n),Object.defineProperty(this,"_immediateStopped",n),Object.defineProperty(this,"defaultPrevented",{get:function(){return this._prevented}.bind(this),set:function(t){return t}})):(this.defaultPrevented=!1,this._prevented=!1,this._stopped=!1,this._immediateStopped=!1)}r.wasPropagationStopped=function(t){return!!t._stopped},r.wasImmediatePropagationStopped=function(t){return!!t._immediateStopped},r.prototype.preventDefault=function(){this._prevented=!0,e||(this.defaultPrevented=!0)},r.prototype.stopPropagation=function(){this._stopped=!0},r.prototype.stopImmediatePropagation=function(){this._immediateStopped=!0},t.exports=r},35841:(t,e,n)=>{"use strict";var r=n(49282),o=n(74156),i="add:",s="remove:";function a(t,e,n){for(var r=t.length;r--;){var o=t[r];if(o.listener===e&&!!o.options.once==!!n.once)return r}return-1}function c(){this._listenerMap={}}c.createEvent=function(t,e){if(!t)throw new TypeError("Cannot create event with empty type.");return new o(t,e)},c.prototype.on=function(t,e,n){if(!t)throw new TypeError("Cannot add event listener with empty type.");if(!e)return this;var r=n||{once:!1},o=this._listenerMap||(this._listenerMap={}),s=o[t]||(o[t]=[]);if(-1!==a(s,e,r))return this;var c=i+t;if(o[c]&&o[c].length&&this.emitSync(c,{listener:e,options:r}).defaultPrevented)return this;return s.push({listener:e,options:r}),this},c.prototype.once=function(t,e){if(!t)throw new TypeError("Cannot add once listener with empty type.");return e.$added_once=!0,this.on(t,e,{once:!0}),e},c.prototype.addListeners=function(t,e){for(var n in t)t.hasOwnProperty(n)&&this.on(n,t[n],e);return this},c.prototype.removeListener=function(t,e,n){if(!t)throw new TypeError("Cannot remove event listener with empty type.");if(!e)return this;var r=this._listenerMap,o=r&&r[t];if(!o)return this;var i=n||{once:e.$added_once||!1},c=a(o,e,i);if(-1===c)return this;var u=s+t;if(r[u]&&r[u].length&&this.emitSync(u,{listener:e,options:i,remainingLength:o.length-1}).defaultPrevented)return this;return o.splice(c,1),o.length||(r[t]=null),this},c.prototype.removeAllListeners=function(t){var e=this._listenerMap;return e?void 0===t?(this._listenerMap={},this):(e[t]=null,this):this},c.prototype.removeListeners=function(t,e){for(var n in t)t.hasOwnProperty(n)&&this.removeListener(n,t[n],e);return this},c.prototype.addListener=function(t,e,n){return this.on(t,e,n)},c.prototype.addOnceListener=function(t,e){return this.on(t,e,{once:!0})},c.prototype.emit=function(t,e){if(!t)throw new TypeError("Cannot emit empty type event.");var n=new o(t,e);return r(function(){this.emitEventSync(n)}.bind(this)),n},c.prototype.emitAndWait=function(t,e,n){if(!t)throw new TypeError("Cannot emit empty type event.");var i=new o(t,e);return r(function(){this.emitEventSync(i),"function"==typeof n&&n(i)}.bind(this)),i},c.prototype.emitEvent=function(t){return r(function(){this.emitEventSync(t)}.bind(this)),t},c.prototype.emitEventAndWait=function(t,e){return r(function(){this.emitEventSync(t),"function"==typeof e&&e(t)}.bind(this)),t},c.prototype.emitSync=function(t,e){var n=new o(t,e);return this.emitEventSync(n),n},c.prototype.emitEventSync=function(t){var e=t.type,n=this._listenerMap,r=n&&n[e];if(!r||!r.length)return t;for(var i=0,s=(r=r.slice(0)).length;i<s;i++){var a=r[i];if(a.options.once&&this.removeListener(e,a.listener,a.options),a.listener.call(this,t),o.wasImmediatePropagationStopped(t))break}return t},c.prototype.proxyEmit=function(t,e,n){if(!t||"function"!=typeof t.on)throw new TypeError("Source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create a recursive proxy.");if(!e||!n)throw new TypeError("Parameters sourceType and proxyType are required.");var r=this.emit.bind(this,n);return t.on(e,r),r},c.prototype.proxyEmitSync=function(t,e,n){if(!t||"function"!=typeof t.on)throw new TypeError("Source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create a recursive proxy.");if(!e||!n)throw new TypeError("Parameters sourceType and proxyType are required.");var r=this.emitSync.bind(this,n);return t.on(e,r),r},c.prototype.onAddListener=function(t,e){return this.on(i+t,e),this},c.prototype.onRemoveListener=function(t,e){return this.on(s+t,e),this},t.exports=c},28787:t=>{"use strict";t.exports=function(t,e){var n=e.prototype;function r(){}r.prototype=t._super=n,t.prototype=new r,t.prototype.constructor=t}},88606:t=>{!function(){var e="0123456789abcdef",n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=[];r.length=256;for(var o=0;o<256;o++)r[o]=e[o>>4]+e[15&o];var i=[];i.length=128;for(o=0;o<n.length;++o)i[n.charCodeAt(o)]=o;var s=[];for(o=0;o<16;o++)s[e.charCodeAt(o)]=o;for(o=0;o<6;o++)s["ABCDEF".charCodeAt(o)]=10+o;var a={toHex:function(t){if(22!==t.length)return null;var e,n,o,s,a,c=2.3283064365386963e-10,u=4294967296,l=238328;return e=56800235584*i[t.charCodeAt(0)]+916132832*i[t.charCodeAt(1)]+14776336*i[t.charCodeAt(2)]+238328*i[t.charCodeAt(3)]+3844*i[t.charCodeAt(4)]+62*i[t.charCodeAt(5)]+i[t.charCodeAt(6)],e=(e-=(n=e*c|0)*u)*l+(a=3844*i[t.charCodeAt(7)]+62*i[t.charCodeAt(8)]+i[t.charCodeAt(9)]),e-=(a=e*c|0)*u,n=n*l+a,e=e*l+(a=3844*i[t.charCodeAt(10)]+62*i[t.charCodeAt(11)]+i[t.charCodeAt(12)]),e-=(a=e*c|0)*u,n=n*l+a,n-=(a=n*c|0)*u,o=a,e=e*l+(a=3844*i[t.charCodeAt(13)]+62*i[t.charCodeAt(14)]+i[t.charCodeAt(15)]),e-=(a=e*c|0)*u,n=n*l+a,n-=(a=n*c|0)*u,o=o*l+a,e=e*l+(a=3844*i[t.charCodeAt(16)]+62*i[t.charCodeAt(17)]+i[t.charCodeAt(18)]),e-=(a=e*c|0)*u,n=n*l+a,n-=(a=n*c|0)*u,o=o*l+a,o-=(a=o*c|0)*u,s=a,e=e*l+(a=3844*i[t.charCodeAt(19)]+62*i[t.charCodeAt(20)]+i[t.charCodeAt(21)]),e-=(a=e*c|0)*u,n=n*l+a,n-=(a=n*c|0)*u,o=o*l+a,o-=(a=o*c|0)*u,s=s*l+a,s-=(a=s*c|0)*u,a?null:r[s>>>24]+r[s>>>16&255]+r[s>>>8&255]+r[255&s]+r[o>>>24]+r[o>>>16&255]+r[o>>>8&255]+r[255&o]+r[n>>>24]+r[n>>>16&255]+r[n>>>8&255]+r[255&n]+r[e>>>24]+r[e>>>16&255]+r[e>>>8&255]+r[255&e]},fromHex:function(t){var e,r=0,o=0,i=0;for(e=0;e<10;e++)i=16*i+s[t.charCodeAt(e)];for(e=0;e<11;e++)o=16*o+s[t.charCodeAt(e+10)];for(e=0;e<11;e++)r=16*r+s[t.charCodeAt(e+21)];if(isNaN(r+o+i))return null;var a,c=17592186044416,u=1/62,l="";for(e=0;e<7;++e)a=((a=((a=i)-62*(i=Math.floor(a*u)))*c+o)-62*(o=Math.floor(a*u)))*c+r,r=Math.floor(a*u),l=n[a-62*r]+l;for(o+=i*c;e<15;++e)a=((a=o)-62*(o=Math.floor(a*u)))*c+r,r=Math.floor(a*u),l=n[a-62*r]+l;for(r+=o*c;e<21;++e)a=r,r=Math.floor(a*u),l=n[a-62*r]+l;return n[r]+l},HEX256:r,ID16:s,ID62:i};void 0!==t.exports?t.exports=a:window.Base62=a}()},66829:(t,e,n)=>{"use strict";var r=n(88606),o="spotify:",i="http://play.spotify.com/",s="https://play.spotify.com/",a="http://open.spotify.com/",c="https://open.spotify.com/",u=new TypeError("Invalid Spotify URI!"),l=(new TypeError("Not implemented!"),0),h=1,p=function(t,e){return t=encodeURIComponent(t),e===l&&(t=t.replace(/%20/g,"+")),t=(t=t.replace(/[!'()]/g,escape)).replace(/\*/g,"%2A")},f=function(t,e){var n=e==l?t.replace(/\+/g,"%20"):t;return decodeURIComponent(n)},d=function(t,e){var n,r,o,i;switch(t.id&&(n=t._base62Id),t.type){case m.Type.ALBUM:return r=[m.Type.ALBUM,n],t.disc&&r.push(t.disc),r;case m.Type.AD:return[m.Type.AD,t._base62Id];case m.Type.ARTIST:return[m.Type.ARTIST,n];case m.Type.ARTIST_TOPLIST:return[m.Type.ARTIST,n,m.Type.TOP,t.toplist];case m.Type.DAILY_MIX:return[m.Type.DAILY_MIX,n];case m.Type.SEARCH:return[m.Type.SEARCH,p(t.query,e)];case m.Type.TRACK:return(t.context||t.play)&&(n+=_({context:t.context,play:t.play})),t.anchor&&(n+="#"+t.anchor),[m.Type.TRACK,n];case m.Type.TRACKSET:var s=[];for(o=0,i=t.tracks.length;o<i;o++)s.push(t.tracks[o]._base62Id);return s=[s.join(",")],null!==t.index&&s.push("#",t.index),[m.Type.TRACKSET,p(t.name)].concat(s);case m.Type.FACEBOOK:return[m.Type.USER,m.Type.FACEBOOK,t.uid];case m.Type.AUDIO_FILE:return[m.Type.AUDIO_FILE,t.extension,t._base62Id];case m.Type.FOLDER:return[m.Type.USER,p(t.username,e),m.Type.FOLDER,t._base62Id];case m.Type.FOLLOWERS:return[m.Type.USER,p(t.username,e),m.Type.FOLLOWERS];case m.Type.FOLLOWING:return[m.Type.USER,p(t.username,e),m.Type.FOLLOWING];case m.Type.PLAYLIST:return[m.Type.USER,p(t.username,e),m.Type.PLAYLIST,n];case m.Type.PLAYLIST_V2:return[m.Type.PLAYLIST,n];case m.Type.STARRED:return[m.Type.USER,p(t.username,e),m.Type.STARRED];case m.Type.TEMP_PLAYLIST:return[m.Type.TEMP_PLAYLIST,t.origin,t.data];case m.Type.CONTEXT_GROUP:return[m.Type.CONTEXT_GROUP,t.origin,t.name];case m.Type.USER_TOPLIST:return[m.Type.USER,p(t.username,e),m.Type.TOP,t.toplist];case m.Type.USER_TOP_TRACKS:return[m.Type.USER,p(t.username,e),m.Type.TOPLIST];case m.Type.TOPLIST:return[m.Type.TOP,t.toplist].concat(t.global?[m.Type.GLOBAL]:["country",t.country]);case m.Type.INBOX:return[m.Type.USER,p(t.username,e),m.Type.INBOX];case m.Type.ROOTLIST:return[m.Type.USER,p(t.username,e),m.Type.ROOTLIST];case m.Type.PUBLISHED_ROOTLIST:return[m.Type.USER,p(t.username,e),m.Type.PUBLISHED_ROOTLIST];case m.Type.COLLECTION_TRACK_LIST:return[m.Type.USER,p(t.username,e),m.Type.COLLECTION_TRACK_LIST,n];case m.Type.PROFILE:return t.args&&t.args.length>0?[m.Type.USER,p(t.username,e)].concat(t.args):[m.Type.USER,p(t.username,e)];case m.Type.LOCAL_ARTIST:return[m.Type.LOCAL,p(t.artist,e)];case m.Type.LOCAL_ALBUM:return[m.Type.LOCAL,p(t.artist,e),p(t.album,e)];case m.Type.LOCAL:return[m.Type.LOCAL,p(t.artist,e),p(t.album,e),p(t.track,e),t.duration];case m.Type.LIBRARY:return[m.Type.USER,p(t.username,e),m.Type.LIBRARY].concat(t.category?[t.category]:[]);case m.Type.IMAGE:return[m.Type.IMAGE,t._base62Id];case m.Type.MOSAIC:return(r=t.ids.slice(0)).unshift(m.Type.MOSAIC),r;case m.Type.RADIO:return[m.Type.RADIO,t.args];case m.Type.SPECIAL:for(r=[m.Type.SPECIAL],o=0,i=(a=t.args||[]).length;o<i;++o)r.push(p(a[o],e));return r;case m.Type.STATION:for(r=[m.Type.STATION],o=0,i=(a=t.args||[]).length;o<i;o++)r.push(p(a[o],e));return r;case m.Type.APPLICATION:var a;for(r=[m.Type.APP,t._base62Id],o=0,i=(a=t.args||[]).length;o<i;++o)r.push(p(a[o],e));return r;case m.Type.COLLECTION_ALBUM:return[m.Type.USER,p(t.username,e),m.Type.COLLECTION,m.Type.ALBUM,n];case m.Type.COLLECTION_MISSING_ALBUM:return[m.Type.USER,p(t.username,e),m.Type.COLLECTION,m.Type.ALBUM,n,"missing"];case m.Type.COLLECTION_ARTIST:return[m.Type.USER,p(t.username,e),m.Type.COLLECTION,m.Type.ARTIST,n];case m.Type.COLLECTION:return[m.Type.USER,p(t.username,e),m.Type.COLLECTION].concat(t.category?[t.category]:[]);case m.Type.EPISODE:return(t.context||t.play)&&(n+=_({context:t.context,play:t.play})),[m.Type.EPISODE,n];case m.Type.SHOW:return[m.Type.SHOW,n];case m.Type.LIVE:return[m.Type.LIVE,n];case m.Type.CONCERT:return[m.Type.CONCERT,n];case m.Type.SOCIAL_SESSION:return[m.Type.SOCIAL_SESSION,n];case m.Type.INTERRUPTION:return[m.Type.INTERRUPTION,t.id];default:throw u}},_=function(t){var e="?";for(var n in t)t.hasOwnProperty(n)&&void 0!==t[n]&&(e.length>1&&(e+="&"),e+=n+"="+encodeURIComponent(t[n]));return e},y=function(t){return t.split("&").reduce((function(t,e){return t[(e=e.split("="))[0]]=decodeURIComponent(e[1]),t}),{})},g=function(t,e,n){var r=0;n=n||{};var o,i,s,a=function(){return t[r++]},c=function(){var t=a();if(t.length>22)throw new Error("Invalid ID");return t},h=function(){return t.slice(r)},d=function(){var n=e==l?":":"/";return t.slice(r).join(n)},_=a();switch(_){case m.Type.ALBUM:return m.albumURI(c(),parseInt(a(),10));case m.Type.AD:return m.adURI(a());case m.Type.ARTIST:return o=c(),a()==m.Type.TOP?m.artistToplistURI(o,a()):m.artistURI(o);case m.Type.AUDIO_FILE:return m.audioFileURI(a(),a());case m.Type.DAILY_MIX:return m.dailyMixURI(c());case m.Type.TEMP_PLAYLIST:return m.temporaryPlaylistURI(a(),d());case m.Type.PLAYLIST:return m.playlistV2URI(c());case m.Type.SEARCH:return m.searchURI(f(d(),e));case m.Type.TRACK:return m.trackURI(c(),a(),n.context,n.play);case m.Type.TRACKSET:var y=f(a()),g=a(),v=a(),E=parseInt(a(),10);("%23"!==v||isNaN(E))&&(E=null);var T=[];if(g)for(i=0,s=(g=f(g).split(",")).length;i<s;i++){var b=g[i];T.push(m.trackURI(b))}return m.tracksetURI(T,y,E);case m.Type.CONTEXT_GROUP:return m.contextGroupURI(a(),a());case m.Type.TOP:var O=a();return a()==m.Type.GLOBAL?m.toplistURI(O,null,!0):m.toplistURI(O,a(),!1);case m.Type.USER:var w=f(a(),e),R=a();if(w==m.Type.FACEBOOK&&null!=R)return m.facebookURI(parseInt(R,10));if(null!=R)switch(R){case m.Type.PLAYLIST:return m.playlistURI(w,c());case m.Type.FOLDER:return m.folderURI(w,c());case m.Type.COLLECTION_TRACK_LIST:return m.collectionTrackList(w,c());case m.Type.COLLECTION:var I=a();switch(I){case m.Type.ALBUM:return o=c(),"missing"===a()?m.collectionMissingAlbumURI(w,o):m.collectionAlbumURI(w,o);case m.Type.ARTIST:return m.collectionArtistURI(w,c());default:return m.collectionURI(w,I)}case m.Type.STARRED:return m.starredURI(w);case m.Type.FOLLOWERS:return m.followersURI(w);case m.Type.FOLLOWING:return m.followingURI(w);case m.Type.TOP:return m.userToplistURI(w,a());case m.Type.INBOX:return m.inboxURI(w);case m.Type.ROOTLIST:return m.rootlistURI(w);case m.Type.PUBLISHED_ROOTLIST:return m.publishedRootlistURI(w);case m.Type.TOPLIST:return m.userTopTracksURI(w);case m.Type.LIBRARY:return m.libraryURI(w,a())}var S=h();return null!=R&&S.length>0?m.profileURI(w,[R].concat(S)):null!=R?m.profileURI(w,[R]):m.profileURI(w);case m.Type.LOCAL:var N=a(),A=N&&f(N,e),C=a(),L=C&&f(C,e),P=a(),x=P&&f(P,e),D=a(),U=parseInt(D,10);return void 0!==P?m.localURI(A,L,x,U):void 0!==C?m.localAlbumURI(A,L):m.localArtistURI(A);case m.Type.IMAGE:return m.imageURI(c());case m.Type.MOSAIC:return m.mosaicURI(t.slice(r));case m.Type.RADIO:return m.radioURI(d());case m.Type.SPECIAL:for(i=0,s=(k=h()).length;i<s;++i)k[i]=f(k[i],e);return m.specialURI(k);case m.Type.STATION:return m.stationURI(h());case m.Type.EPISODE:return m.episodeURI(c(),n.context,n.play);case m.Type.SHOW:return m.showURI(c());case m.Type.LIVE:return m.liveURI(c());case m.Type.CONCERT:return m.concertURI(c());case"":break;case m.Type.SOCIAL_SESSION:return m.socialSessionURI(a());case m.Type.INTERRUPTION:return m.interruptionURI(a());default:o=_===m.Type.APP?a():_;var k,M=f(o,e);if(p(M,e)!==o)break;for(i=0,s=(k=h()).length;i<s;++i)k[i]=f(k[i],e);return m.applicationURI(M,k)}throw u};function m(t,e){for(var n in this.type=t,e)"function"!=typeof e[n]&&(this[n]=e[n])}Object.defineProperty(m.prototype,"id",{get:function(){return this._hexId||(this._hexId=this._base62Id?m.idToHex(this._base62Id):void 0),this._hexId},set:function(t){this._base62Id=t?m.hexToId(t):void 0,this._hexId=void 0},enumerable:!0,configurable:!0}),m.prototype.toAppType=function(){if(this.type==m.Type.APPLICATION)return m.applicationURI(this.id,this.args);var t=d(this,h),e=t.shift(),n=t.length;if(n)for(;n--;)t[n]=f(t[n],h);return this.type==m.Type.RADIO&&(t=t.shift().split(":")),m.applicationURI(e,t)},m.prototype.toRealType=function(){return this.type==m.Type.APPLICATION?g([this.id].concat(this.args),l):new m(null,this)},m.prototype.toURI=function(){return o+d(this,l).join(":")},m.prototype.toString=function(){return this.toURI()},m.prototype.toURLPath=function(t){var e=d(this,h);e[0]===m.Type.APP&&e.shift();var n=e[0]===m.Type.TRACKSET,r=e[0]===m.Type.LOCAL;if(!n&&!r){for(var o=[],i=0,s=e.length;i<s;i++){var a=e[i];a&&o.push(a)}e=o}var c=e.join("/");return t?"/"+c:c},m.prototype.toPlayURL=function(){return s+this.toURLPath()},m.prototype.toURL=function(){return this.toPlayURL()},m.prototype.toOpenURL=function(){return c+this.toURLPath()},m.prototype.toSecurePlayURL=function(){return this.toPlayURL()},m.prototype.toSecureURL=function(){return this.toPlayURL()},m.prototype.toSecureOpenURL=function(){return this.toOpenURL()},m.prototype.idToByteString=function(){var t=r.toHex(this._base62Id);if(!t){for(var e="",n=0;n<16;n++)e+=String.fromCharCode(0);return e}var o="";for(n=0;n<32;n+=2){var i=(r.ID16[t.charCodeAt(n)]<<4)+r.ID16[t.charCodeAt(n+1)];o+=String.fromCharCode(i)}return o},m.prototype.getPath=function(){return this.toString().replace(/[#?].*/,"")},m.prototype.getBase62Id=function(){return this._base62Id},m.prototype.isSameIdentity=function(t){var e=m.from(t);if(!e)return!1;if(this.toString()===t.toString())return!0;if(this.type!==m.Type.PLAYLIST&&this.type!==m.Type.PLAYLIST_V2||e.type!==m.Type.PLAYLIST&&e.type!==m.Type.PLAYLIST_V2){if(this.type===m.Type.STATION&&e.type===m.Type.STATION){var n=g(this.args,l);return!!n&&n.isSameIdentity(g(e.args,l))}return!1}return this.id===e.id},m.Type={EMPTY:"empty",ALBUM:"album",AD:"ad",APP:"app",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",AUDIO_FILE:"audiofile",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_ARTIST:"collection-artist",CONTEXT_GROUP:"context-group",DAILY_MIX:"dailymix",EPISODE:"episode",FACEBOOK:"facebook",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",GLOBAL:"global",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",LOCAL_ARTIST:"local-artist",LOCAL_ALBUM:"local-album",LOCAL:"local",LIBRARY:"library",LIVE:"live",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",PROFILE:"profile",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",ROOTLIST:"rootlist",COLLECTION_TRACK_LIST:"collectiontracklist",SEARCH:"search",SHOW:"show",SOCIAL_SESSION:"socialsession",CONCERT:"concert",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOP:"top",TOPLIST:"toplist",TRACK:"track",TRACKSET:"trackset",USER:"user",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",USET_TOP_TRACKS:"user-top-tracks"},m.fromString=function(t){var e=function(t){var e,n,r,p,f=t.split("?");if(f.length>1){t=f.shift();var d=(r=f.pop()).split("#");d.length>1&&(r=d.shift(),p=d.pop()),r=y(r)}var _=t.split("#");if(_.length>1&&(t=_.shift(),p=_.pop()),0===t.indexOf(o))e=t.slice(o.length).split(":"),n=l;else{if(0===(t=t.split("?")[0]).indexOf(i))e=t.slice(i.length).split("/");else if(0===t.indexOf(s))e=t.slice(s.length).split("/");else if(0===t.indexOf(a))e=t.slice(a.length).split("/");else if(0===t.indexOf(c))e=t.slice(c.length).split("/");else{if(0!==t.indexOf("/"))throw u;e=t.slice("/".length).split("/")}n=h}return p&&e.push(p),{format:n,components:e,query:r}}(t);return g(e.components,e.format,e.query)},m.from=function(t){try{return t instanceof m?t:"object"==typeof t&&t.type?new m(null,t):m.fromString(t.toString())}catch(t){return null}},m.fromByteString=function(t,e,n){for(;16!=e.length;)e=String.fromCharCode(0)+e;for(var o="",i=0;i<e.length;i++){var s=e.charCodeAt(i);o+=r.HEX256[s]}var a=r.fromHex(o),c=n||{};return c.id=a,new m(t,c)},m.clone=function(t){return t instanceof m?new m(null,t):null},m.getCanonical=function(t){return this.getCanonical(t)},m.getCanonicalUsername=function(t){return p(t,l)},m.getDisplayUsername=function(t){return f(t,l)},m.idToHex=function(t){return 22==t.length?r.toHex(t):t},m.hexToId=function(t){return 32==t.length?r.fromHex(t):t},m.emptyURI=function(){return new m(m.Type.EMPTY,{})},m.albumURI=function(t,e){return new m(m.Type.ALBUM,{id:t,disc:e})},m.adURI=function(t){return new m(m.Type.AD,{id:t})},m.audioFileURI=function(t,e){return new m(m.Type.AUDIO_FILE,{id:e,extension:t})},m.artistURI=function(t){return new m(m.Type.ARTIST,{id:t})},m.artistToplistURI=function(t,e){return new m(m.Type.ARTIST_TOPLIST,{id:t,toplist:e})},m.dailyMixURI=function(t){return new m(m.Type.DAILY_MIX,{id:t})},m.searchURI=function(t){return new m(m.Type.SEARCH,{query:t})},m.trackURI=function(t,e,n,r){return new m(m.Type.TRACK,{id:t,anchor:e,context:n?m.fromString(n):n,play:r})},m.tracksetURI=function(t,e,n){return new m(m.Type.TRACKSET,{tracks:t,name:e||"",index:isNaN(n)?null:n})},m.facebookURI=function(t){return new m(m.Type.FACEBOOK,{uid:t})},m.followersURI=function(t){return new m(m.Type.FOLLOWERS,{username:t})},m.followingURI=function(t){return new m(m.Type.FOLLOWING,{username:t})},m.playlistURI=function(t,e){return new m(m.Type.PLAYLIST,{username:t,id:e})},m.playlistV2URI=function(t){return new m(m.Type.PLAYLIST_V2,{id:t})},m.folderURI=function(t,e){return new m(m.Type.FOLDER,{username:t,id:e})},m.collectionTrackList=function(t,e){return new m(m.Type.COLLECTION_TRACK_LIST,{username:t,id:e})},m.starredURI=function(t){return new m(m.Type.STARRED,{username:t})},m.userToplistURI=function(t,e){return new m(m.Type.USER_TOPLIST,{username:t,toplist:e})},m.userTopTracksURI=function(t){return new m(m.Type.USER_TOP_TRACKS,{username:t})},m.toplistURI=function(t,e,n){return new m(m.Type.TOPLIST,{toplist:t,country:e,global:!!n})},m.inboxURI=function(t){return new m(m.Type.INBOX,{username:t})},m.rootlistURI=function(t){return new m(m.Type.ROOTLIST,{username:t})},m.publishedRootlistURI=function(t){return new m(m.Type.PUBLISHED_ROOTLIST,{username:t})},m.localArtistURI=function(t){return new m(m.Type.LOCAL_ARTIST,{artist:t})},m.localAlbumURI=function(t,e){return new m(m.Type.LOCAL_ALBUM,{artist:t,album:e})},m.localURI=function(t,e,n,r){return new m(m.Type.LOCAL,{artist:t,album:e,track:n,duration:r})},m.libraryURI=function(t,e){return new m(m.Type.LIBRARY,{username:t,category:e})},m.collectionURI=function(t,e){return new m(m.Type.COLLECTION,{username:t,category:e})},m.temporaryPlaylistURI=function(t,e){return new m(m.Type.TEMP_PLAYLIST,{origin:t,data:e})},m.contextGroupURI=function(t,e){return new m(m.Type.CONTEXT_GROUP,{origin:t,name:e})},m.profileURI=function(t,e){return new m(m.Type.PROFILE,{username:t,args:e})},m.imageURI=function(t){return new m(m.Type.IMAGE,{id:t})},m.mosaicURI=function(t){return new m(m.Type.MOSAIC,{ids:t})},m.radioURI=function(t){return t=void 0===t?"":t,new m(m.Type.RADIO,{args:t})},m.specialURI=function(t){return t=void 0===t?[]:t,new m(m.Type.SPECIAL,{args:t})},m.stationURI=function(t){return t=void 0===t?[]:t,new m(m.Type.STATION,{args:t})},m.applicationURI=function(t,e){return e=void 0===e?[]:e,new m(m.Type.APPLICATION,{id:t,args:e})},m.collectionAlbumURI=function(t,e){return new m(m.Type.COLLECTION_ALBUM,{username:t,id:e})},m.collectionMissingAlbumURI=function(t,e){return new m(m.Type.COLLECTION_MISSING_ALBUM,{username:t,id:e})},m.collectionArtistURI=function(t,e){return new m(m.Type.COLLECTION_ARTIST,{username:t,id:e})},m.episodeURI=function(t,e,n){return new m(m.Type.EPISODE,{id:t,context:e?m.fromString(e):e,play:n})},m.showURI=function(t){return new m(m.Type.SHOW,{id:t})},m.liveURI=function(t){return new m(m.Type.LIVE,{id:t})},m.concertURI=function(t){return new m(m.Type.CONCERT,{id:t})},m.socialSessionURI=function(t){return new m(m.Type.SOCIAL_SESSION,{id:t})},m.interruptionURI=function(t){return new m(m.Type.INTERRUPTION,{id:t})},m.isAlbum=function(t){return(m.from(t)||{}).type===m.Type.ALBUM},m.isAd=function(t){return(m.from(t)||{}).type===m.Type.AD},m.isApplication=function(t){return(m.from(t)||{}).type===m.Type.APPLICATION},m.isArtist=function(t){return(m.from(t)||{}).type===m.Type.ARTIST},m.isCollection=function(t){return(m.from(t)||{}).type===m.Type.COLLECTION},m.isCollectionAlbum=function(t){return(m.from(t)||{}).type===m.Type.COLLECTION_ALBUM},m.isCollectionArtist=function(t){return(m.from(t)||{}).type===m.Type.COLLECTION_ARTIST},m.isDailyMix=function(t){return(m.from(t)||{}).type===m.Type.DAILY_MIX},m.isEpisode=function(t){return(m.from(t)||{}).type===m.Type.EPISODE},m.isFacebook=function(t){return(m.from(t)||{}).type===m.Type.FACEBOOK},m.isFolder=function(t){return(m.from(t)||{}).type===m.Type.FOLDER},m.isLocalArtist=function(t){return(m.from(t)||{}).type===m.Type.LOCAL_ARTIST},m.isLocalAlbum=function(t){return(m.from(t)||{}).type===m.Type.LOCAL_ALBUM},m.isLocalTrack=function(t){return(m.from(t)||{}).type===m.Type.LOCAL},m.isMosaic=function(t){return(m.from(t)||{}).type===m.Type.MOSAIC},m.isPlaylistV1=function(t){return(m.from(t)||{}).type===m.Type.PLAYLIST},m.isPlaylistV2=function(t){return(m.from(t)||{}).type===m.Type.PLAYLIST_V2},m.isRadio=function(t){return(m.from(t)||{}).type===m.Type.RADIO},m.isRootlist=function(t){return(m.from(t)||{}).type===m.Type.ROOTLIST},m.isSearch=function(t){return(m.from(t)||{}).type===m.Type.SEARCH},m.isShow=function(t){return(m.from(t)||{}).type===m.Type.SHOW},m.isLive=function(t){return(m.from(t)||{}).type===m.Type.LIVE},m.isConcert=function(t){return(m.from(t)||{}).type===m.Type.CONCERT},m.isStation=function(t){return(m.from(t)||{}).type===m.Type.STATION},m.isTrack=function(t){return(m.from(t)||{}).type===m.Type.TRACK},m.isProfile=function(t){return(m.from(t)||{}).type===m.Type.PROFILE},m.isPlaylistV1OrV2=function(t){var e=m.from(t);return!!e&&(e.type===m.Type.PLAYLIST||e.type===m.Type.PLAYLIST_V2)},m.isSocialSession=function(t){return(m.from(t)||{}).type===m.Type.SOCIAL_SESSION},m.isInterruption=function(t){return(m.from(t)||{}).type===m.Type.INTERRUPTION},t.exports=m},38001:(t,e,n)=>{"use strict";var r,o=n.g.Promise;if(!o)throw new Error("Fatal: no Promise implementation available.");(r=Object.defineProperty?function(t,e,n){return t[e]||Object.defineProperty(t,e,{value:n,configurable:!0,writable:!0}),t}:function(t,e,n){return t[e]||(t[e]=n),t})(o,"defer",(function(){var t={};return t.promise=new o((function(e,n){t.resolve=e,t.reject=n})),t})),r(o.prototype,"spread",(function(t,e){return this.then((function(t){return o.all(t)})).then((function(e){return 1===e.length?t(e[0]):t.apply(this,e)}),e)})),t.exports=o},53813:(t,e,n)=>{"use strict";var r,o=function(){};r="true"==="{}".DEBUG?function(t){return n.g.Proxy&&"function"!=typeof n.g.Proxy.create&&"function"==typeof n.g.Proxy?new n.g.Proxy(t,{get:function(t,e){if(!t.hasOwnProperty(e))throw new ReferenceError("Unknown enum value "+e);return t[e]},set:o,delete:o}):t}:function(t){return t},t.exports=r},19862:(t,e,n)=>{"use strict";var r=n(53813);t.exports=r({CONNECTION_ONLINE:"online",CONNECTION_OFFLINE:"offline",DEALER_AUTHENTICATED:"authenticated",DEALER_AUTHENTICATION_FAILED:"authentication_failed",DEALER_CONNECTED:"connected",DEALER_CONNECTION_ID:"connection_id",DEALER_ERROR:"error",DEALER_DISCONNECTED:"disconnected",DEALER_MESSAGE:"message",DEALER_REQUEST:"request",INTERNAL_DEALER_MESSAGE:"__dealer_message",INTERNAL_DEALER_REQUEST:"__dealer_request",PRODUCT_STATE_CHANGED:"product_state_changed",TRANSPORT_ACCESS_TOKEN:"access_token",TRANSPORT_AUTHENTICATED:"authenticated",TRANSPORT_AUTHENTICATION_FAILED:"authentication_failed",TRANSPORT_BEFORE_OFFLINE_DISCONNECT:"before_offline_disconnect",TRANSPORT_BEFORE_ONLINE_DISCONNECT:"before_online_disconnect",TRANSPORT_CONNECTED:"connected",TRANSPORT_CONNECTION_ERROR:"connection_error",TRANSPORT_CONNECTION_FAILED:"connection_failed",TRANSPORT_CONNECTION_ID:"connection_id",TRANSPORT_CONNECTION_OFFLINE:"connection_offline",TRANSPORT_CONNECTION_ONLINE:"connection_online",TRANSPORT_DEALER_MESSAGE:"dealer_message",TRANSPORT_DISCONNECTED:"disconnected",TRANSPORT_ENDPOINTS_RESOLVED:"endpoints_resolved",TRANSPORT_LOGGED_OUT:"logged_out",TRANSPORT_SHORT_SESSION_DISCONNECTED:"short_session_disconnected",TRANSPORT_RECONNECTED:"reconnected",TRANSPORT_RECONNECTING:"reconnecting",WINDOW_BEFORE_UNLOAD:"beforeunload"})},44375:(t,e,n)=>{"use strict";e.Event=n(19862),n(18754),n(72640),n(84482),n(40980).CLOSE,e.Endpoints,e.EndpointsProvider,e.TokenProvider,e.SessionProviders,e.SessionConfig,e.HTTPURI,e.HTTPArgs,e.HTTPResponse,e.DealerMessage,e.ClientEventData},40980:t=>{"use strict";t.exports={CLOSE:4e3,TIMEOUT:4001}},18754:(t,e,n)=>{"use strict";var r=n(53813);t.exports=r({GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE",OPTIONS:"OPTIONS"})},72640:(t,e,n)=>{"use strict";var r=n(53813);t.exports=r({UNKNOWN:0,OK:200,CREATED:201,ACCEPTED:202,NO_CONTENT:204,PARTIAL_CONTENT:206,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,TIMED_OUT:408,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,REQUEST_ENTITY_TOO_LARGE:413,REQUEST_URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,REQUESTED_RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505})},84482:(t,e,n)=>{"use strict";var r=n(53813);t.exports=r({BROWSER_ERROR:0,CONNECTION_ERROR:0,INFORMATIONAL:1,SUCCESS:2,REDIRECTION:3,CLIENT_ERROR:4,SERVER_ERROR:5})},6793:t=>{"use strict";function e(){return"undefined"!=typeof __spotify&&__spotify.product_state&&"1"===__spotify.product_state.employee}t.exports={get:o,subscribe:function(t,e){return o(t,e),{cancel:()=>{}}},fetch:function t(e){if("string"==typeof e)return t([e]).then((t=>t[e]));const n={};return new Promise(((t,o)=>{r(((r,i)=>{r?o(r):(i.forEach((t=>{n[t.featureName]=t.cell})),e.forEach((t=>{n.hasOwnProperty(t)||(n[t]=null)})),t(n))}))}))}},"undefined"!=typeof window&&(window.abba={get:o});const n=[{featureName:"ab_force_open_playlist_v2_uri",cell:"Control"},{featureName:"ab_no_recently_played_desktop",cell:"Control"},{featureName:"ab-autoplay-desktop",cell:"Enabled"},{featureName:"ab-video-subtitles",cell:"Control"},{featureName:"ads_leaderboard_focus_timer",cell:"Enabled"},{featureName:"ads_leaderboard_navigate_timer",cell:"Enabled"},{featureName:"artist-concerts-tab",cell:"Rollout"},{featureName:"concerts-artist-rollout-inactive",cell:"Rollout"},{featureName:"creator-concerts-entity-share",cell:"Enabled"},{featureName:"creator-concerts-entity",cell:"Enabled"},{featureName:"credits_suggest_edits",cell:"Control"},{featureName:"desktop_assisted_playlisting",cell:"Control"},{featureName:"desktop_enable_ui_switch",cell:e()?"Enabled":"Control"},{featureName:"desktop_generate_share_id",cell:"Enabled"},{featureName:"desktop_song_page",cell:"Control"},{featureName:"desktop-home-1.6",cell:"Enabled"},{featureName:"desktop-scannable",cell:"Enabled"},{featureName:"desktop-use-playlist-image-upload4-endpoint",cell:"Enabled"},{featureName:"desktop-video-full-screen-button",cell:"Control"},{featureName:"desktop-voice-control",cell:"Enabled"},{featureName:"experimental-features-page",cell:"Control"},{featureName:"fast-user-switching",cell:"Control"},{featureName:"km-context-features",cell:'{"album:(0BKHSHGWLchmDxXuTL4888|06EONjbfq9vtinuIqq29HX|4qQ4LfGCK6JVk1o5iEA6yx|4GaZVlUxOltAnlfWjLTWeL|4GkQDn7zKJEVxY36XZGolk|4YPhcfpn5W1gN0j6PqedDB|2nIz676rG9zKK83PMjqXZL|2AHd4AGFVtOJJyDu6gYatQ|5Y77WLguyDBi61TJlE5wlI|6yr5NAUqFmpl4IF6WBlYAZ|5SDFfsVMQWahtw38G2WXhR|669tU9gpisLy8EM6qlKrdL|0wfrSdBE09iQstk8CSZTvW|5IgkM7zJtdy172sR0x4c6Q|4BqkLt1jQo5YUv5CzktZVD|5fHjGEoC1XngivflVr1dkO|2m8Z6MSvrDvGuO0raLuzDr|2nwEeEaKNyJ6imipHGMxz0|2w7YR9hhnpaHHHNiySM2sX|3gPWApZV6UT7Bp1jnLSds3|0YxzYokesPPhXBgRFYYfAg|3EW2zrudY3QaxEbzEIV7th|3fUKGTsiYL1kSroBWBLmmR|6loxQSvjZkNvZGSWtVmxVa|2NwtdC7DjQ3orAmmDrg1Pk|2TlqrIfIPzIRG8hVvsDacq|3d6IqdVf87ExWUk3og7agV|0DuQvYutGgDa2uxP51ExL7|7gbuuXibrC1KoULn6nfxaH|0YLVdzrn2dzxMfws5X1pdk|2CuLDkAqM6lDihvXcwR5hV|7K5WNxlPTGNFSgqZMphJ1w|2nm0ehEbV8rnKKZppxhawc|24H53a5BLzrYVEeLBqoNuQ|4llNDT3yAe9u2eXDxPovYt|42LE1c4vUHesYE0vaLk4Fu|36WftHpjfdOmqcuyXELOnE|39m8v9LMchJtLEAgwhCt0M|2PLyWNCz8llOJbl1sUl97w|0vUivlBPRsnnRXLZJdHHjO|6zxGPCZyHO6oHaAxh3NZwK|0OxS0CuhiYOPJBdtcvegPt|7wcNyPw4GJm7eyYLjL0ykE|7AqkOcl3ag2cWpCXFvvxWD|2QHd6eVLhczZzH8BV61YSQ|2O9tP76D6MKkkrSauwTZAr|73R1k3rH0gTDOMJC6cUbvP|54m0VdVh3yN9SrjSLPGVrP|1nGxxKHy3ry8PZF11AsTP7|3StM2ZWXLszYCM9mxbslOQ|1gl3f3otffNsIxosRAvKSz|1OvA1vWrKejAlsuFKgyeUk|44TnXcUjTIHPBBROepl99a|4jTxsUIN5TfssMOQQJvtuJ|3XAXlhNj7OmDdaA5BUgetA|3p2KbR9A4t5ebdNSgVQtI0|3x7ZMPFy6qnz0zLEeF8z8s|7knoeUJDdVvPCB2MMYX2Qq|7KTTlp0jJmiLcKSxl5t2UR|5VtytgrMNO6GHy3o57A4DS|0LhcWlgnpCVHqOVFZFuoPX|1gt4PAxdMmq5DUV7tyuNxx|4F9lslD7rhfJGwvPWrPaqR|1b9gvkSxNd45LxC8ogk7yN|50sxd5RESS3S74gUAFrpwf|4h8UyDTW0801NfDJbkAnEi|3XmKRDdTCl2tz629Bvofly|2fhLKLPamiUnpNn8nsxsWX|5W9TCjMimFxyvTVRLxQV3o|6fHuRvVn1xsRrkIR2FInb8|5RxJo7aCCc2SKFEuPb9bUM|2o9SGZGfNZfPqvIcSBwWF4|5uGQao26qgbj6DUqVCehoz|5dbVApKV5xebsSjsSnYnTW|7fHQZGxQKo2pnIhvBvAbzP|7rkFebrMrkF7x52oftKYQj|6zhlos3HFJrWni7rjqxacg|3rQ8eAByz38rPLR9JflmB8|5cDCmsVaFmBaNJQfdtx6cA|5zJGhF5BJFKbdRVHNAHdgP|5BFXjhGmJq8sOOTZKS980f|52ctUYMKSWt71M0vqFNI3Y|16pNPm55mqtL8uo0DDktFM|19UroqpzEZcvNfoSu1xxHe|1mtdjfjYU4lL6CMDk6T5Vf|77Tb4vfXhnM6oxntdpcOLw|5fUjvIaSnH3g0m9J85jzYm|1wYMCwJR4fx2Wz2e7gWcIi|06el3LAE0d6JqMxf3tH4al|0gmJOZgmYyLIyqi13ISVnU|1eiEA1oe1qO0gOfGgCitFV|39vpWS7vrC4Pz33bNafjva|7aO32KTv9CiMPgjO9ei1dU|7qVdi2mQArK6QEZ7t78nK5|7lAsp1TaW2CQhIbgaYKJWS|7pqoJouwiz6tZQQtfxt9m1|626ypG44IFKATIMW6Mjm8B|5QGiyqURbxYSm0svnEGDUl|69YzvRcwhpusDLxorifBl1|3eIUyv6Y7Mli5IeiDvRXLk|2EsMjkE5FTOs5JEbJiRf6P|2Prw5LWIyiLomo8AAcboXY|4AlRaJ5J8qK3c1mIshvZHz|5et7Wcw4VvpLjZgBRjt0Jx|4zmROzWp6hr8nb1FEUUb3D|3uvQbJgRjzhLqj2cxKUAqt|1kIfMCINt7GdjwUNEiyiuT|5zCWpZhj13KDMBqPMtaNoO|5C8lJ8uT9Mxy8TR5HYnAn0|5Pxlc9bhZjK7igCdffneyW|4XNfp4FRJZzLXn4Nf7r4JJ|4fWFHrccdQu1Pqp8Hb0zXq|4nV0OJ45xmF7qwv16tegbV|27UjNLbWBXc32wCZtuXMg5|2cPAfymbuKYHt5ejX9LIxL|1C8UDA6mNiFCbLJg9ZCCZQ|0NPxttIbpVyhUd8ix72HBm|4RWNDoS4rz5g7TGoskFGxU|4XGpIdKP5oyr1pWliTbBZ5|3diVIcNOjBrHtymSHRenUF|3esGgSVR3bOtWlUywimkjn|5GQmhgSmzqosknUdkaHCNi|0cpPtqYWYQgjkr4Hch5KM0|4rg2hMUcq7vkyxBHDqdVQH|3StCRtDpJHryQYN1DhKB4P|3BJVgd55a24kCaa5GW0TVs|5X9LHNOKnTeVoOG0fN7BAS|0AsEfHIOWyBMnlyVXn6TxP|0wVbsjHYOH6r22QLNVmQ2i|0BClgKzpi6YhuXeTIAoeDm|04LQeGYOu4nPmpflb1QbtQ|3eAw9FRlRjNL62PY4lpyCY|2d0rjT2V4AZ52933s1K42J|27gowWVhW2kV9iM7xhhUx6|2M40jYMMhGfEgQaHONZhSm|2QI2wrvoV6r4nwzDS0n8xm|3ioua4okBJp7PRjuX0xSOA|5HUFQxSBLKFxz6ZpyECxB9|5NauoBG9tTROrcyJanENTJ|5rVBMgZfVsZWSRJlr38kck|1LfYgZWkVlnsZOBv8TUbAm|67phxk2GdQ66dtrSNgnG3f|6h5p1LLfhcyYHnSVdlghJT|58bX4mraeNOz0dX03xYWni|4RSVY5851aNeCttrDpdj7A|55gMu4AvAKCbCaGv3GIXgy|4QXpwwms4Q7SybgYEVuLEu|7mFmHxfoq5hBaUvSorr0dT|79nNJMR3J3tLs1ZTgIflHU|6NJZf9aYVMRmagLkryELH2|45EFycwtfRhnDPWbc2mClK|3UEDm9lUkX5au0pC1kw8RQ|0t7hPqStisN5UjMa1sntBZ|0pB7vgkTzhaI2cLVE411Ww|3XP9EAUjazVhTbyU3wXlH6|0UuWI4ipGgXZQlkEmXzZjt|5RM7xRza7tKy74AeRi3vYb|5ZViRbQsxWyHV5fZUFfeLf|6n5ihlwggYlki5otlvctuW|5cLSeAQ4qFYsz5wZgp3rtl|1HD2YLgCkCFOSeQRKWXifG|1MdrJFRFPqnIKD3gctEznF|6BkSFNMcmtwqnOMtg3TjVm|2nMu32qdaqLM5SzE4PUxIA|01JqRwFerbWdoLDVkgT29x|09aEtgWYEpJQ0OWH0x8V2u|4RndEmppoOEWuTGSFQOqJs|5bUdyKzIrQN2Bw66VlnJ8K|0zx6MVT02roT5ppfiH03FW|0a5t6HeElUsxiFrdocSlBM|34AhkOQJkXNlawE6tPRiRg|6vG5jsTyPQcrw9THofSore|6EMcZ9DTgOYYZGgwjPAP7Q|6H6IhDPW8aWFb7JMklO4vB|7DrJ1uE8UhGvGdO06plxx1|49MhWDjgffcmGGjb5s8pDg|4iyOv0nbbw16E7bRwzvA6A|5xIAyWflhXuby2C1w7gkoz|62ZoRy0hXSKi7a4WyLwhSv|66ROkj07UALRy76v4jj1hL|4tIdC8wrvkRix3nq15ypXs|6DzwePKO0UcAnEoSJKTllV|6TLYScThaARphotQOm0oeS|42WIo9cIrBbYaJJ3OSX2ek|4vDvOQQkFa0rnyq5W6rKnp|6UeZ7KRBMK2ivy0G5y5SoP|6Qt98234tX25FS5wEBpKI0|3lDAsyYjj1BDIugNCUdjjO|3Lgao8gK9STmyOAGdhU4R8|3Dy0MqykHq1W6BOaVVizM4|3vu0GkXClMd53T2mSlQ6kN|5maA08M4drt6ropWv71QRe|2wwfBWZipueCdLJb8qROVG|5O1W2woL1qOXh2bX5tnj8V|0InGiWEfdNJP4YP4Axrvna)|playlist:(37i9dQZF1DXaUaRhCgtpCo)|user:(official_star_wars|hansencc|kirbysayshi)":{"sw-saber-progress":true},},'},{featureName:"km-share-editorial-context",cell:"Control"},{featureName:"live-video-internal",cell:e()?"Enabled":"Control"},{featureName:"pride_webplatform_2019",cell:"Control"},{featureName:"pzn-desktop-radio-context-menu-playlist-radio",cell:"Enabled"},{featureName:"rollout-artist-playlistv2-desktop",cell:"Control"},{featureName:"rollout-churn-lock-state",cell:"Enabled"},{featureName:"sentry-desktop-sample-rate-v2",cell:"0"},{featureName:"show-client-update-messages",cell:"No"},{featureName:"ue-dw-feedback-v2",cell:"Enabled"},{featureName:"ue-radio-desktop-related-artists-radio",cell:"Control"},{featureName:"ue-radio-gdpr-km",cell:"Control"},{featureName:"ue-stations-nofollow",cell:"Enabled"},{featureName:"windowed-playlist-show-tracklist",cell:"Control"}];function r(t){setTimeout((()=>{t(null,n)}),0)}function o(t,e){r(((n,r)=>{if(n)e(n);else{for(const n of r)if(n.featureName===t)return void e(null,n.cell);e(null,null)}}))}},54617:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasValue=e.hasFlag=void 0;const r=t=>!!(n.g.__spotify&&n.g.__spotify.product_state&&n.g.__spotify.product_state.hasOwnProperty(t));e.hasFlag=r;e.hasValue=(t,e)=>r(t)&&n.g.__spotify.product_state[t]===e},93835:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.logInfo=function(...t){n((()=>{console.info(...t)}))},e.logError=function(...t){n((()=>{console.error(...t)}))},e.logWarn=function(...t){n((()=>{console.warn(...t)}))},e.groupCollapsed=function(...t){n((()=>{console.groupCollapsed(...t)}))},e.groupEnd=function(){n((()=>{console.groupEnd()}))};function n(t){false}},72749:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r.Action}}),Object.defineProperty(e,"Request",{enumerable:!0,get:function(){return r.Request}}),Object.defineProperty(e,"Response",{enumerable:!0,get:function(){return o.Response}}),Object.defineProperty(e,"Resolver",{enumerable:!0,get:function(){return i.Resolver}}),e.resolver=e.default=void 0;var r=n(90970),o=n(38145),i=n(43847);const s=n.g.window||{},a=s._getSpotifyModule&&"function"==typeof s._getSpotifyModule&&s._getSpotifyModule("bridge"),c=a?new i.Resolver(a):new i.NullResolver;e.resolver=c;var u={Action:r.Action,Request:r.Request,Response:o.Response,Resolver:i.Resolver,resolver:c};e.default=u},51502:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Message=void 0;class n{constructor(t,e,n){if("string"!=typeof t)throw new TypeError("Invalid `uri` argument for Message.");this._uri=t,this._headers=this._headersToLowerCase(e),this._body=function(t){return"string"!=typeof t?JSON.stringify(t):t}(n||"")}static fromObject(t){return t&&t.uri?new n(t.uri,t.headers,t.body):null}getURI(){return this._uri}getMimeType(){return this._headers.accept}getHeader(t){return this._headers[t.toLowerCase()]||null}getHeaders(){return this._copyHeaders(null)}getBody(){return this._body}getJSONBody(){try{const t=window.top&&window.top.initialState&&window.top.initialState.isPlaylistV2UriEnabled,e=this.getBody();if(t){const t=e.replace(/\:user\:([^:]+)\:playlist\:/g,":playlist:").replace(/\/user\/([^:]+)\/playlist\//g,"/playlist/");return JSON.parse(t)}return JSON.parse(e)}catch(t){return null}}copy(t,e){return new n(this._uri,this._copyHeaders(t),void 0!==e?e:this._body)}serialize(){return this.toJSON()}toJSON(){return{uri:this._uri,headers:this._headers,body:this._body}}_headersToLowerCase(t){return null===t||"object"!=typeof t?{}:Object.keys(t).reduce(((e,n)=>(e[n.toLowerCase()]=t[n],e)),{})}_copyHeaders(t){return Object.assign({},this._headers,this._headersToLowerCase(t))}}e.Message=n},90970:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Request=e.Action=void 0;var r=n(51502);e.Action={DELETE:"DELETE",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",SUB:"SUB",PATCH:"PATCH"};class o extends r.Message{constructor(t,e,n,r){if("string"!=typeof t)throw new TypeError("Invalid `action` argument for Request.");super(e,n,r),this._action=t}static fromObject(t){return t&&t.action&&t.uri?new o(t.action,t.uri,t.headers,t.body):null}getAction(){return this._action}copy(t,e){return new o(this._action,this._uri,this._copyHeaders(t),void 0!==e?e:this._body)}toJSON(){return{action:this._action,uri:this._uri,headers:this._headers,body:this._body}}}e.Request=o},43847:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullResolver=e.Resolver=void 0;var r=n(90970),o=n(38145);e.Resolver=class{constructor(t){if(!t||"function"!=typeof t.executeRequest)throw new TypeError("Missing or invalid `bridge` parameter");this._bridge=t,this._requestId=1e6}resolve(t,e){return this._resolve(t,e)}get(t,e){return this._resolveFromParams(r.Action.GET,t,e)}post(t,e){return this._resolveFromParams(r.Action.POST,t,e)}subscribe(t,e){return this._resolveFromParams(r.Action.SUB,t,e)}put(t,e){return this._resolveFromParams(r.Action.PUT,t,e)}patch(t,e){return this._resolveFromParams(r.Action.PATCH,t,e)}delete(t,e){return this._resolveFromParams(r.Action.DELETE,t,e)}_sendRequest(t,e,n){return new Promise(((r,o)=>{const i=JSON.stringify({name:t,args:[e,n]});this._bridge.executeRequest(i,{onSuccess:t=>{r(JSON.parse(t))},onFailure:t=>{o(JSON.parse(t))}})}))}_parseResponse(t,e){const n=o.Response.fromObject(e);if(null===n)throw new Error(`Failed to parse response: ${e}`);const r=n.getStatusCode();if(!function(t){return t>=200&&t<=299}(r)){const e=new Error(`${t.getAction()} request to ${t.getURI()} failed with status code ${r}`);throw e.response=n,e}return n}async _createRequestAsync(t,e){const n=e.toJSON(),r=await this._sendRequest("cosmos_request_create",t,n);return this._parseResponse(e,r)}async _pullRequestAsync(t,e){const n=await this._sendRequest("cosmos_request_pull",t,{uri:e.getURI()});return this._parseResponse(e,n)}async _cancelRequestAsync(t){await this._sendRequest("cosmos_request_cancel",t)}_doResolve(t,e){const n=++this._requestId,r={isCancelled:!1},o=()=>{r.isCancelled=!0,this._cancelRequestAsync(n)};return this._createRequestAsync(n,t).then((t=>{r.isCancelled||(o(),e(null,t))}),(t=>{r.isCancelled||(o(),e(t,t.response||null))})),{cancel:o}}_doSubscribe(t,e){const n=++this._requestId,r={isCancelled:!1},o=()=>r.isCancelled?Promise.resolve():this._pullRequestAsync(n,t).then((t=>{r.isCancelled||e(null,t)})).then(o);return this._createRequestAsync(n,t).then((t=>(r.isCancelled||e(null,t),o())),(t=>{r.isCancelled||e(t,t.response||null)})),{cancel:()=>{r.isCancelled=!0,this._cancelRequestAsync(n)}}}_resolve(t,e){const n="function"==typeof e?e:()=>{};return t.getAction()===r.Action.SUB?this._doSubscribe(t,n):this._doResolve(t,n)}_resolveFromParams(t,e,n){const o=e||{},i="string"==typeof o?o:o.url,s=o.headers,a=o.body,c=new r.Request(t,i,s,a);return this._resolve(c,n)}};e.NullResolver=class{resolve(){return{cancel:()=>{}}}get(){return{cancel:()=>{}}}post(){return{cancel:()=>{}}}subscribe(){return{cancel:()=>{}}}put(){return{cancel:()=>{}}}patch(){return{cancel:()=>{}}}delete(){return{cancel:()=>{}}}}},38145:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Response=e.StatusCode=void 0;var r=n(51502);e.StatusCode={OK:200,CREATED:201,ACCEPTED:202,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,TIMED_OUT:408,CONFLICT:409,GONE:410,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,ERROR_UNKNOWN:-100,ERROR_ALLOCATION_FAILED:-101,ERROR_INVALID_ENCODING:-102,ERROR_INFINITE_LOOP:-103,ERROR_RESOLVER_NOT_FOUND:-104};class o extends r.Message{constructor(t,e,n,r){if("number"!=typeof e)throw new TypeError("Invalid `status` argument for Response.");super(t,n,r),this._status=e}static fromObject(t){return t&&t.uri&&t.status?new o(t.uri,t.status,t.headers,t.body):null}getMimeType(){return this._headers["content-type"]}getStatusCode(){return this._status}copy(t,e){return new o(this._uri,this._status,this._copyHeaders(t),void 0!==e?e:this._body)}toJSON(){return{uri:this._uri,status:this._status,headers:this._headers,body:this._body}}}e.Response=o},26400:(t,e,n)=>{"use strict";var r=n(93835);let o,i=!1;t.exports=function t(e){if(!i){if(o=n(11227),t.enable=o.enable.bind(o),t.disable=o.disable.bind(o),"undefined"!=typeof window&&window.frameElement){const t=window.frameElement.getAttribute("data-debug");t&&o.enable(t)}const e="undefined"!=typeof __spotify&&__spotify.product_state?__spotify.product_state:{},s=e.debugEnable||e.debugenable;s&&o.enable(s),"undefined"!=typeof __spotify&&__spotify.product_state&&"1"===__spotify.product_state["ta-environment"]&&(o.useColors=()=>!1,o.formatters.o=t=>{try{return JSON.stringify(t)}catch(t){return(0,r.logError)("Unable to stringify object",t),""}}),i=!0}return o(e)}},61694:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createEventSenderInstance=function(){void 0==="{}".CASSETTE_MODE&&((0,o.eventSenderIsSetup)()||(0,r.createAuthenticatedTransport)().then((t=>{(0,r.setTransportInstance)(t);const e=(0,o.createEventSender)(t);(0,o.setEventSenderInstance)(e)})))};var r=n(91869),o=n(75758)},75758:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.eventSenderIsSetup=function(){return null!==u},e.setEventSenderInstance=function(t){u=t},e.getEventSenderInstance=h,e.getEventSenderQueue=function(){return l},e.emptyEventSenderQueue=function(){l.forEach((t=>{h().log(t)})),l=[]},e.createEventSender=function(t){const e="undefined"!=typeof __spotify&&null!==__spotify&&(__spotify.is_running_on_teamcity||__spotify.developer_mode),n=function(t){if(!t||t.length%2!=0)throw new TypeError("Invalid hexString value.");const e=t.match(/[0-9a-f]{2}?/g);if(!e||!e.length)throw new TypeError("Invalid hexString value.");const n=String.fromCharCode.apply(null,e.map((function(t){return parseInt(t,16)})));return a.default.encode(n)}(__spotify.event_sender_installation_id_hex);return r.default.create({clientId:"65b708073fc0480ea92a077233ca87bd",transport:t,context:[()=>(0,o.default)({version:__spotify.event_sender_client_version}),()=>(0,s.default)({value:n}),()=>(0,i.default)({name:__spotify.event_sender_os_name,version:__spotify.event_sender_os_version})],enableDebugInfo:e,suppressPersist:e})};var r=c(n(9604)),o=c(n(42050)),i=c(n(30612)),s=c(n(84165)),a=c(n(34327));function c(t){return t&&t.__esModule?t:{default:t}}let u=null,l=[];function h(){if(null===u)throw new Error("Missing `instance`. Have you called `setEventSenderInstance` yet?");return u}},5658:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getToken=function(){return new Promise(((t,e)=>{r.default.resolver.get("sp://webgate/v1/token",((n,r)=>{if(n)return i("Error retrieving token from keymaster:",n),void e(n);const o=r.getJSONBody();if(o&&o.accessToken&&o.tokenType)return i("Retrieved access token, valid until: %s",new Date(o.expiresAtTime)),void t({accessToken:o.accessToken,tokenType:o.tokenType});const s="Error: missing accessToken or tokenType";i(s,o),e(new Error(s))}))}))};var r=o(n(72749));function o(t){return t&&t.__esModule?t:{default:t}}const i=(0,o(n(26400)).default)("http-requests:get-token")},1630:(t,e,n)=>{"use strict";var r=n(95659),o=function(t){return t&&t.__esModule?t:{default:t}}(n(9548));const i=n(13543);function s(t){this._uri=void 0,void 0!==t&&this.setURI(t),this._uuid=i.create().toString(),this._isInitialState=!1}s.unserialize=function(t){const e=JSON.parse(t),n=new s;return n.setURI(e.uri),n},s.prototype.equals=function(t){return"string"==typeof this._uri&&t instanceof s&&this._uri===t._uri},s.prototype.equalsApp=function(t){const e=this.getAppId();return t&&e&&t.getAppId()===e||!1},s.prototype.getAppId=function(){const t=this.getURI().split(":");if(!(t.length<3)&&"app"===t[1]&&""!==t[2])return t[2]},s.prototype.getAppURI=function(){return this.getURI().split(":").slice(0,3).join(":")},s.prototype.getArgs=function(){return this.getURI().split(":").slice(3).map((function(t){return decodeURIComponent(t)}))},s.prototype.getURI=function(){if(void 0===this._uri)throw new Error("URI not set");return this._uri},s.prototype.serialize=function(){return JSON.stringify({uri:this.getURI()})},s.prototype.setArgs=function(t){if(!Array.isArray(t))throw new TypeError("Args must be array");this._uri=this.getAppURI().split(":").concat(t.map((function(t){return encodeURIComponent(t)}))).join(":")},s.prototype.setURI=function(t){if("string"!=typeof t)throw new TypeError("URI must be string");this._uri=t},s.prototype.setIsInitialState=function(t){this._isInitialState=t},s.prototype.getIsInitialState=function(){return this._isInitialState},s.prototype.getUUID=function(){return this._uuid},s.prototype.getPageID=function(){return(0,r.getPageIdFromUri)(this.getAppId(),this.getURI())},s.prototype.isPageCovered=function(){return this.getPageID()!==o.default.unknownUncovered},t.exports=s},34165:(t,e,n)=>{"use strict";const r=n(28787),o=n(35841),i=n(1630);function s(){this._global=n.g.top||n.g,o.call(this),this._messageHandler=this._messageHandler.bind(this)}r(s,o),s.prototype.EVENTS=s.EVENTS={REQUEST_STATE:"navigation_request_state"},s.prototype.METHOD=s.METHOD={OPEN:"open",TOGGLE:"toggle"},s.prototype._messageHandler=function(t){if(!t.data.type)return;const e=t.data.type;if(e===s.EVENTS.REQUEST_STATE){const n={state:i.unserialize(t.data.state),method:t.data.method};t.data.extra&&(n.extra=JSON.parse(t.data.extra)),this.emitSync(e,n)}},s.prototype.attachListener=function(){this._global.addEventListener("message",this._messageHandler)},s.prototype.detachListener=function(){this._global.removeEventListener("message",this._messageHandler)},s.prototype.openURI=function(t,e={}){this.requestOpenState(new i(t),e)},s.prototype.toggleURI=function(t){this.requestToggleState(new i(t))},s.prototype.requestOpenState=function(t,e={}){this.requestState(t,this.METHOD.OPEN,e)},s.prototype.requestToggleState=function(t){this.requestState(t,this.METHOD.TOGGLE)},s.prototype.requestState=function(t,e,n=null){if(!t)throw new TypeError("AppState not set");if(!e)throw new TypeError("Method not set");const r={type:this.EVENTS.REQUEST_STATE,method:e,state:t.serialize()};n&&(r.extra=JSON.stringify(n)),this._global.postMessage(r,"*")},t.exports=s},95659:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPageIdFromUri=function(t,e){if(t in c){const n=o.default.from(e),r=c[t](n.args);return u(t,r)}return u(t)},e.getPageIdFromAppArguments=function(t,e){if(t in c){const n=c[t](e);return u(t,n)}return u(t)};var r=i(n(9548)),o=i(n(66829));function i(t){return t&&t.__esModule?t:{default:t}}const s=t=>e=>e.length>t&&e[t]||null,a={album:"album","app-manager":"debug",artist:"artist","artist-concerts":"artistConcerts","artist-creator-about":"artistAbout","artist-overview":"artist","artist-related":"artistRelated","artist-works":"artistWorks",browse:"browse","browse-charts":"charts","browse-discover":"browseDiscover","browse-genres":"browseGenres","browse-home":"browse","browse-podcasts":"browsePodcasts","browse-releases":"browseNewReleases","browse-videos":"browseVideos",chart:"chartsChart",charts:"charts",collection:"collection","collection-album":"collectionAlbumsAlbum","collection-albums":"collectionAlbums","collection-artist":"collectionArtistsArtist","collection-artists":"collectionArtists","collection-podcasts":"collectionShows","collection-songs":"collectionSongs","collection-videos":"collectionShows",concert:"concert",concerts:"concerts","daily-mix-hub":"radioDailyMixes",diag:"debug",discover:"browseDiscover",experiments:"experimentalFeatures","friends-mix":"friendsMix",genre:"browseGenres","glue-grid-demo":"debug","glue-header-demo":"debug","developer-reference":"debug",home:"home","hub-charts-regional":"chartsRegional","hub-charts-viral":"chartsViral","hub-genre":"browseGenres",lyrics:"lyrics","legacy-lyrics":"legacyLyrics","made-for-you":"madeForYou",playlist:"playlist","playlist-folder":"playlistFolder","profile-followers":"profileFollowers","profile-following":"profileFollowing","profile-overview":"profile","profile-public-playlists":"profilePlaylists","profile-recently-played-artists":"profileArtists",profile:"profile",queue:"nowplayingQueue","queue-history":"nowplayingHistory","queue-queue":"nowplayingQueue",radio:"radio","radio-hub":"radio","recently-played":"collectionRecentlyPlayed","search-albums":"searchAlbums","search-artists":"searchArtists","search-genres":"searchGenres","search-playlists":"searchPlaylists","search-profiles":"searchProfiles","search-tracks":"searchSongs","search-shows":"searchShows",search:"search",settings:"settings",show:"show",song:"song",station:"radioStation",stations:"collectionRadio","video-debug":"debug",work:"work"},c={browse:s(0),artist:s(1),profile:s(1),queue:s(0),search:s(1),hub:t=>"charts"===s(0)(t)?`charts-${s(1)(t)}`:"genre",collection:s(0)};function u(t,e){let n=t;e&&(n=`${n}-${e}`);const o=a[n];return r.default[o]||r.default.unknownUncovered}},40594:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._setGetTopLevelWindowFunction=function(t){c=t},e._resetGetTopLevelWindowFunction=function(){c=u},e.isMac=f,e.isWindows=d,e.getPlatform=_,e.subscribeToPlatform=function(t){l.push(t);const e=_();t(e,e),c()===window&&p(e);!function(){if(h)return;let t=_();h=r.default.resolver.subscribe("sp://messages/v1/container/control",((e,n)=>{if(e)return void(0,o.logError)(e);const r=n.getJSONBody();if(r){let e;switch(r.type){case"set_platform_emulation_auto":e=_();break;case"set_platform_emulation_macos":e=s;break;case"set_platform_emulation_windows":e=a;break;case"set_platform_emulation_linux":e=i;break;default:return}l.forEach((n=>{n(e,t)})),t=e,c()===window&&p(t)}}))}()},e.removeAllSubscriptions=function(){l.length=0,h&&(h.cancel(),h=null)},e.PLATFORM_WINDOWS=e.PLATFORM_MAC=e.PLATFORM_UNKNOWN=void 0;var r=function(t){return t&&t.__esModule?t:{default:t}}(n(72749)),o=n(93835);const i=Symbol("PLATFORM_UNKNOWN");e.PLATFORM_UNKNOWN=i;const s=Symbol("PLATFORM_MAC");e.PLATFORM_MAC=s;const a=Symbol("PLATFORM_WINDOWS");e.PLATFORM_WINDOWS=a;let c=()=>window.top;const u=c;const l=[];let h=null;function p(t){switch(t){case s:window.osLibCurrentPlatformId="mac";break;case a:window.osLibCurrentPlatformId="win";break;default:window.osLibCurrentPlatformId="unknown"}}function f(){return window.navigator.platform.startsWith("Mac")}function d(){return window.navigator.platform.startsWith("Win")}function _(){return c()!==window?function(){switch(c().osLibCurrentPlatformId){case"mac":return s;case"win":return a;default:return i}}():f()?s:d()?a:i}},8625:(t,e,n)=>{"use strict";const r=n(30649),o=n(51372),i=n(5363),s={timeout:{},frame:[],immediate:[]},a=function(t){const e=r();o(t.splice(0),(function(t){t.callback.call(t.context,e)}))},c=function(t,e,n,r){t.length||r((function(){a(t)}));const o={callback:e,context:n};return t.push(o),function(){const e=i(t,o);e>-1&&t.splice(e,1)}},u={};let l;n.g.process&&process.nextTick?u.immediate=function(t,e){return c(s.immediate,t,e,process.nextTick)}:n.g.setImmediate?u.immediate=function(t,e){return c(s.immediate,t,e,setImmediate)}:n.g.postMessage&&n.g.addEventListener?(addEventListener("message",(function(t){t.source===n.g&&"@deferred"===t.data&&(t.stopPropagation(),a(s.immediate))}),!0),u.immediate=function(t,e){return c(s.immediate,t,e,(function(){postMessage("@deferred","*")}))}):u.immediate=function(t,e){return c(s.immediate,t,e,(function(t){setTimeout(t,0)}))},u.timeout=function(t,e,n){const r=s.timeout;return l||(l=u.immediate((function(){l=null,s.timeout={}}))),c(r[e]||(r[e]=[]),t,n,(function(t){setTimeout(t,e)}))},t.exports=u},31941:(t,e,n)=>{"use strict";const r=n(5363),o=n(51372),i=n(86721),s=n(8625),a=Array.prototype.slice;let c=0;const u=i({constructor:function(t){this._stoppable=t},on:function(t,e){const n=this._listeners||(this._listeners={}),o=n[t]||(n[t]=[]);return-1===r(o,e)&&o.push(e),this},off:function(t,e){const n=this._listeners;if(n){const o=n[t];if(o){const i=r(o,e);i>-1&&o.splice(i,1),o.length||delete n[t];for(const t in n)if(n.hasOwnProperty(t))return this;delete this._listeners}}return this},emit:function(t){const e=a.call(arguments,1),n=()=>{const n=this._listeners;if(n){const r=n[t];r&&o(r.slice(0),(t=>{const n=t.apply(this,e);if(this._stoppable)return n}))}if(this._promiseWaiters&&this._promiseWaiters[t]){const n=this._promiseWaiters[t].slice();this._promiseWaiters[t]=[],n.forEach((t=>t(...e)))}};if(e[e.length-1]===u.EMIT_SYNC)e.pop(),n();else{const t=c;s.immediate((()=>{t===c&&n()}))}return this},reset:function(){c++,this._listeners={}},whenNextEvent:function(t){return new Promise((e=>{this._promiseWaiters=this._promiseWaiters||{},this._promiseWaiters[t]=[...this._promiseWaiters[t]||[],e]}))}});u.EMIT_SYNC={},t.exports=u},86721:(t,e,n)=>{"use strict";const r=n(7748),o=n(9389),i=n(81284),s=n(5330);let a=!0;try{Object.defineProperty({},"~",{}),Object.getOwnPropertyDescriptor({},"~")}catch(t){a=!1}const c=!{valueOf:0}.propertyIsEnumerable("valueOf"),u=["toString","valueOf"],l=/^constructor|inherits|mixin$/,h=function(t){const e=this.prototype;for(const n in t)if(!n.match(l)){if(a){const r=Object.getOwnPropertyDescriptor(t,n);if(r){Object.defineProperty(e,n,r);continue}}e[n]=t[n]}return c&&u.forEach((n=>{const r=t[n];r!==Object.prototype[n]&&(e[n]=r)})),this};t.exports=function(t){let e=t;"Function"===s(e)&&(e={constructor:t});const n=e.inherits;let a;if(a=r(e,"constructor")?e.constructor:n?function(){return n.apply(this,arguments)}:function(){},n){o(a,n);const t=n.prototype,e=a.prototype=i(t);a.parent=t,e.constructor=a}a.implement||(a.implement=h);let c=e.mixin;if(c){"Array"!==s(c)&&(c=[c]);for(let t=0;t<c.length;t++)a.implement(i(c[t].prototype))}return a.implement(e)}},68697:(t,e,n)=>{"use strict";const r=n(5363),o=n(86721)({constructor:function(){this.length=0,this._values=[],this._keys=[]},set:function(t,e){const n=r(this._keys,t);return-1===n?(this._keys.push(t),this._values.push(e),this.length++):this._values[n]=e,this},get:function(t){const e=r(this._keys,t);return-1===e?null:this._values[e]},count:function(){return this.length},forEach:function(t,e){for(let n=0,r=this.length;n<r&&!1!==t.call(e,this._values[n],this._keys[n],this);n++);return this},map:function(t,e){const n=new o;return this.forEach((function(r,o){n.set(o,t.call(e,r,o,this))}),this),n},filter:function(t,e){const n=new o;return this.forEach((function(r,o){t.call(e,r,o,this)&&n.set(o,r)}),this),n},every:function(t,e){let n=!0;return this.forEach((function(r,o){t.call(e,r,o,this)||(n=!1)}),this),n},some:function(t,e){let n=!1;return this.forEach((function(r,o){t.call(e,r,o,this)&&(n=!0)}),this),n},indexOf:function(t){const e=r(this._values,t);return e>-1?this._keys[e]:null},remove:function(t){const e=r(this._values,t);return-1!==e?(this._values.splice(e,1),this.length--,this._keys.splice(e,1)[0]):null},unset:function(t){const e=r(this._keys,t);return-1!==e?(this._keys.splice(e,1),this.length--,this._values.splice(e,1)[0]):null},keys:function(){return this._keys.slice()},values:function(){return this._values.slice()}}),i=function(){return new o};i.prototype=o.prototype,t.exports=i},7284:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.install=function(){function t(t){return h.push(t.error),!1}return window.addEventListener("error",t),function(){return o.default.fetch([u]).then((t=>t[u]||0)).catch((()=>"spotify:app:login"===p("app_uri")?.5:0))}().then((e=>{let o=.1*parseFloat(e);(0,i.hasFlag)(l)&&(o=n.g.__spotify.product_state[l]);let s="production";(0,i.hasValue)("ta-environment",1)?s="ta":n.g.__spotify&&n.g.__spotify.developer_mode&&(s="development");const a={dsn:"https://null@127.0.0.1/0",sampleRate:o,environment:s,release:p("client_version","0.0.0")};c("config",a),r.init(a),h.forEach((t=>{c("reporting queued error",t),r.captureException(t)})),window.removeEventListener("error",t),window.addEventListener("unhandledrejection",(t=>{r.captureException(t.reason)}))}))};var r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=a();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var i=r?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=t[o]}n.default=t,e&&e.set(t,n);return n}(n(7084)),o=s(n(6793)),i=n(54617);function s(t){return t&&t.__esModule?t:{default:t}}function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}const c=(0,s(n(26400)).default)("sentry"),u="sentry-desktop-sample-rate-v2",l="sentry-sample-rate",h=[];function p(t,e){return n.g.__spotify&&n.g.__spotify.hasOwnProperty(t)?n.g.__spotify[t]:e}},63018:(t,e,n)=>{"use strict";const r=n(8382),o=n(9678),i=n(51372),s=n(44441),a=n(5363);r.implement({setAttribute:function(t,e){return this.forEach((function(n){n.setAttribute(t,e)}))},getAttribute:function(t){const e=this[0].getAttributeNode(t);return e&&e.specified?e.value:null},hasAttribute:function(t){const e=this[0];if(e.hasAttribute)return e.hasAttribute(t);const n=e.getAttributeNode(t);return!(!n||!n.specified)},removeAttribute:function(t){return this.forEach((function(e){const n=e.getAttributeNode(t);n&&e.removeAttributeNode(n)}))}});const c={};i(["type","value","name","href","title","id"],(function(t){c[t]=function(e){return void 0!==e?this.forEach((function(n){n[t]=e})):this[0][t]}})),i(["checked","disabled","selected"],(function(t){c[t]=function(e){return void 0!==e?this.forEach((function(n){n[t]=!!e})):!!this[0][t]}}));const u=function(t){const e=o(t).replace(/\s+/g," ").split(" "),n={};return s(e,(function(t){return""!==t&&!n[t]&&(n[t]=t)})).sort()};c.className=function(t){return void 0!==t?this.forEach((function(e){e.className=u(t).join(" ")})):u(this[0].className).join(" ")},r.implement({attribute:function(t,e){const n=c[t];let r;return n&&(r=n.call(this,e)),e&&(r=this.setAttribute(t,e)),null===e&&(r=this.removeAttribute(t)),void 0===e&&(r=this.getAttribute(t)),r}}),r.implement(c),r.implement({check:function(){return this.checked(!0)},uncheck:function(){return this.checked(!1)},disable:function(){return this.disabled(!0)},enable:function(){return this.disabled(!1)},select:function(){return this.selected(!0)},deselect:function(){return this.selected(!1)}}),r.implement({classNames:function(){return u(this[0].className)},hasClass:function(t){return a(this.classNames(),t)>-1},addClass:function(t){return this.forEach((function(e){const n=e.className,r=u(`${n} ${t}`).join(" ");n!==r&&(e.className=r)}))},removeClass:function(t){return this.forEach((function(e){const n=u(e.className);i(u(t),(function(t){const e=a(n,t);e>-1&&n.splice(e,1)})),e.className=n.join(" ")}))},toggleClass:function(t,e){const n=void 0!==e?e:!this.hasClass(t);return n?this.addClass(t):this.removeClass(t),!!n}}),r.prototype.toString=function(){const t=this.tag(),e=this.id(),n=this.classNames();let r=t;return e&&(r+=`#${e}`),n.length&&(r+=`.${n.join(".")}`),r};const l=null===document.createElement("div").textContent?"innerText":"textContent";r.implement({tag:function(){return this[0].tagName.toLowerCase()},html:function(t){return void 0!==t?this.forEach((function(e){e.innerHTML=t})):this[0].innerHTML},text:function(t){return void 0!==t?this.forEach((function(e){e[l]=t})):this[0][l]},data:function(t,e){switch(e){case void 0:return this.getAttribute(`data-${t}`);case null:return this.removeAttribute(`data-${t}`);default:return this.setAttribute(`data-${t}`,e)}}}),t.exports=r},8382:(t,e,n)=>{"use strict";const r=n(86721),o=n(51372),i=n(15628),s=n(44441),a=n(31762),c=n(12323),u=n.g.document||{};let l=0;const h=u.__counter,p=`uid:${u.__counter=(h?parseInt(h,36)+1:0).toString(36)}`,f=function(t){return t===window?"window":t===document?"document":t===document.documentElement?"html":t[p]||(t[p]=(l++).toString(36))},d=new WeakMap,_=r({constructor:function t(e,n){if(!e)return this&&this.constructor===t?new y:null;let r,o;if(e.constructor!==y){if(r=new y,"string"==typeof e)return r.search?(r[r.length++]=n||document,r.search(e)):null;if(e.nodeType||e===window)r[r.length++]=e;else if(e.length){const i={};for(let s=0,a=e.length;s<a;s++){const a=t(e[s],n);if(a&&a.length)for(let t=0,e=a.length;t<e;t++){const e=a[t];o=f(e),i[o]||(r[r.length++]=e,i[o]=!0)}}}}else r=e;if(!r.length)return null;if(1===r.length){const t=d.get(r[0]);if(t)return t;d.set(r[0],r)}return r}}),y=r({inherits:_,constructor:function(){this.length=0},unlink:function(){return this.map((function(t){return d.delete(t),t}))},forEach:function(t,e){return o(this,t,e),this},map:function(t,e){return i(this,t,e)},filter:function(t,e){return s(this,t,e)},every:function(t,e){return a(this,t,e)},some:function(t,e){return c(this,t,e)}});t.exports=_},70615:(t,e,n)=>{"use strict";const r=n(68697),o=n(94998);n(40844),o.implement({delegate:function(t,e,n){return this.forEach((function(i){const s=o(i),a=s._delegation||(s._delegation={}),c=a[t]||(a[t]={}),u=c[e]||(c[e]=new r);if(u.get(n))return;const l=function(t){const r=o(t.target||t.srcElement),i=r.matches(e)?r:r.parent(e);let a;return i&&(a=n.call(s,t,i)),a};u.set(n,l),s.on(t,l)}))},undelegate:function(t,e,n){return this.forEach((function(r){const i=o(r),s=i._delegation;if(!s)return;const a=s[t];if(!a)return;const c=a[e];if(!c)return;const u=c.get(n);if(u){i.off(t,u),c.remove(u),c.count()||delete a[e];let n=!0,r=!0;for(const t in a)if(a.hasOwnProperty(t)){n=!1;break}n&&delete s[t];for(const t in s)if(s.hasOwnProperty(t)){r=!1;break}r&&delete i._delegation}}))}}),t.exports=o},47979:(t,e,n)=>{"use strict";const r=n(94998),o=n(93835).logError,i="onreadystatechange"in document,s=[],a=[],c=document.createElement("div"),u=r(document),l=r(window);let h=!1,p=!1,f=null;const d=function(t){for(let e=a.length;e--;)if(a[e]())return t();return!1},_=function(){return f&&(f=clearTimeout(f)),p||(i&&u.off("readystatechange",d(_)),u.off("DOMContentLoaded",_),l.off("load",_),p=!0,s.forEach((t=>t()))),p},y=function(){clearTimeout(f),d()||(f=setTimeout(y,1e3/60))};if(document.readyState){const t=function(){return!!/loaded|complete/.test(document.readyState)};a.push(t),t()?_():i?u.on("readystatechange",d):h=!0}if(c.doScroll){const t=function(){try{return c.doScroll(),!0}catch(t){o(t)}return!1};t()||(a.push(t),h=!0)}h&&y(),u.on("DOMContentLoaded",_),l.on("load",_),t.exports=function(t){return p?t():s.push(t),null}},94998:(t,e,n)=>{"use strict";const r=n(31941),o=n(8382);o.implement({on:function(t,e,n){return this.forEach((function(i){const s=o(i),a=t+(n?":capture":"");r.prototype.on.call(s,a,e);const c=s._domListeners||(s._domListeners={});if(!c[a]){const e=function(t){r.prototype.emit.call(s,a,t||window.event,r.EMIT_SYNC)};i.addEventListener(t,e,n||!1),c[a]=e}}))},off:function(t,e,n){return this.forEach((function(i){const s=o(i),a=t+(n?":capture":""),c=s._domListeners,u=s._listeners;if(c&&u){const n=c[a];if(n&&(r.prototype.off.call(s,a,e),!s._listeners||!s._listeners[t])){i.removeEventListener(t,n,!1),delete c[t];for(const t in c)if(c.hasOwnProperty(t))return;delete s._domListeners}}}))},emit:function(){const t=arguments;return this.forEach((function(e){r.prototype.emit.apply(o(e),t)}))}}),t.exports=o},82715:(t,e,n)=>{"use strict";const r=n(8382);n(63018),n(94998),n(74052),n(40844),n(70615),t.exports=r},74052:(t,e,n)=>{"use strict";const r=n(8382);r.implement({appendChild:function(t){return this[0].appendChild(r(t)[0]),this},insertBefore:function(t,e){return this[0].insertBefore(r(t)[0],r(e)[0]),this},removeChild:function(t){return this[0].removeChild(r(t)[0]),this},replaceChild:function(t,e){return this[0].replaceChild(r(t)[0],r(e)[0]),this}}),r.implement({before:function(t){const e=r(t)[0],n=e.parentNode;return n&&this.forEach((function(t){n.insertBefore(t,e)})),this},after:function(t){const e=r(t)[0],n=e.parentNode;return n&&this.forEach((function(t){n.insertBefore(t,e.nextSibling)})),this},bottom:function(t){const e=r(t)[0];return this.forEach((function(t){e.appendChild(t)}))},top:function(t){const e=r(t)[0];return this.forEach((function(t){e.insertBefore(t,e.firstChild)}))}}),r.implement({insert:r.prototype.bottom,remove:function(){return this.forEach((function(t){const e=t.parentNode;e&&e.removeChild(t)}))},replace:function(t){const e=r(t)[0];return e.parentNode.replaceChild(this[0],e),this}}),t.exports=r},40844:(t,e,n)=>{"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(10282));const o=n(15628),i=n(8382),s=function(t,e){return o(r.default.parse(e||"*"),(function(e){return`${t} ${e}`})).join(", ")},a=Array.prototype.push;i.implement({search:function(t){if(1===this.length)return i(r.default.search(t,this[0],new i));let e=[];for(let n=0;n<this.length;n++){const o=this[n];a.apply(e,r.default.search(t,o))}return e=i(e),e&&e.sort()},find:function(t){if(1===this.length)return i(r.default.find(t,this[0]));for(let e=0;e<this.length;e++){const n=this[e],o=r.default.find(t,n);if(o)return i(o)}return null},sort:function(){return r.default.sort(this)},matches:function(t){return r.default.matches(this[0],t)},contains:function(t){return r.default.contains(this[0],t)},nextSiblings:function(t){return this.search(s("~",t))},nextSibling:function(t){return this.find(s("+",t))},previousSiblings:function(t){return this.search(s("!~",t))},previousSibling:function(t){return this.find(s("!+",t))},children:function(t){return this.search(s(">",t))},firstChild:function(t){return this.find(s("^",t))},lastChild:function(t){return this.find(s("!^",t))},parent:function(t){const e=[];for(let n=0;n<this.length;n++){let o=this[n].parentNode;for(;o&&o!==document;){if(!t||r.default.matches(o,t)){e.push(o);break}o=o.parentNode}}return i(e)},parents:function(t){const e=[];for(let n=0;n<this.length;n++){let o=this[n];for(;o&&o!==document;)t&&!r.default.matches(o,t)||e.push(o),o=o.parentNode}return i(e)}}),t.exports=i},83597:(t,e,n)=>{"use strict";const r=n(82715),o=n(34165),i="a, button",s=new o,a=function(t,e){const n=e[0],r=n.getAttribute("href")||n.getAttribute("data-button-link");r&&"#"!==r[0]&&!n.hasAttribute("data-no-anchor-handling")&&(t.preventDefault(),s.openURI(r))};let c=!1;e.attach=function(){c||(c=!0,r(document).delegate("click",i,a))},e.detach=function(){c&&(c=!1,r(document).undelegate("click",i,a))},e.update=function(){}},88395:(t,e,n)=>{"use strict";var r=function(t){return t&&t.__esModule?t:{default:t}}(n(72749)),o=n(40594);let i,s=!1,a="always-visible",c=0;const u={[o.PLATFORM_UNKNOWN]:"linux",[o.PLATFORM_MAC]:"mac",[o.PLATFORM_WINDOWS]:"windows"};let l=u[o.PLATFORM_UNKNOWN],h=u[o.PLATFORM_UNKNOWN];function p(){"always-visible"===a||"mac"!==h?(document.body.classList.remove(`scrollbar-style-visible-${l}`),document.body.classList.remove("scrollbar-style-when-scrolling-mac"),document.body.classList.add(`scrollbar-style-visible-${h}`)):(document.body.classList.remove(`scrollbar-style-visible-${h}`),document.body.classList.remove(`scrollbar-style-visible-${l}`),document.body.classList.add("scrollbar-style-when-scrolling-mac"))}function f(){const t=[...document.querySelectorAll("*")],e=[],n=["scroll","auto","overlay"];t.forEach((t=>{const r=window.getComputedStyle(t),o=r.overflowX,i=r.overflowY;n.includes(o)&&e.push({node:t,property:"overflow-x"}),n.includes(i)&&e.push({node:t,property:"overflow-y"})}));const r=document.createElement("style");r.innerHTML="\n html::-webkit-scrollbar,\n body::-webkit-scrollbar {\n background-color: rgba(1, 2, 3, 0) !important;\n }\n ".trimRight();const o=`data-scrollbar-fix-${++c}-id`;let i=0;e.forEach((({node:t,property:e})=>{if(t!==document.body){const n=++i;t.setAttribute(o,n),r.innerHTML+=`\n [${o}="${n}"] { ${e}: hidden !important; }`}})),document.head.appendChild(r),setTimeout((()=>{document.head.removeChild(r),e.forEach((({node:t})=>{t.removeAttribute(o)}))}),0)}e.performScrollBarFix=f,e.update=function(){},e.attach=function(){if(s)return;s=!0;const t=window.__spotify&&window.__spotify.scroller_style;a="overlay"===t?"overlay":"always-visible",(0,o.subscribeToPlatform)(((t,e)=>{h=u[t],l=u[e],p()})),window.addEventListener("message",(t=>{"set_active"===t.data.name&&t.data.active&&f()})),i=r.default.resolver.subscribe({url:"sp://messages/v1/container/control"},((t,e)=>{if(t)i.cancel();else{const t=e.getJSONBody();if(t){let e=!1;switch(t.type){case"set_scroller_style_always_visible":a="always-visible",e=!0;break;case"set_scroller_style_overlay":a="overlay",e=!0}e&&p(),e&&(f(),setTimeout(f,1e3))}}}))},e.detach=function(){s&&(s=!1,c=0,i&&(i.cancel(),i=null))}},91869:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setTransportInstance=function(t){i=t},e.getTransportInstance=function(){if(null===i)throw new Error("Missing `instance`. Have you called `setTransportInstance` yet?");return i},e.createAuthenticatedTransport=async function(){const t=(0,r.createBaseTransport)({providers:{endpoints:(0,r.createXResolveProvider)(),token:s}});await t.connect();if(await t.authenticate())return t;throw new Error("Could not authenticate Transport")},e.createUnauthenticatedTransport=function(){const t=(0,r.createBaseTransport)({providers:{endpoints:(0,r.createXResolveProvider)(),token:()=>null}});return t.connect(),t};var r=n(66407),o=n(5658);let i=null;const s=async()=>(await(0,o.getToken)()).accessToken},13543:t=>{function e(){}function n(t,e){return Math.floor(Math.random()*(e-t+1))+t}e.maxFromBits=function(t){return Math.pow(2,t)},e.limitUI04=e.maxFromBits(4),e.limitUI06=e.maxFromBits(6),e.limitUI08=e.maxFromBits(8),e.limitUI12=e.maxFromBits(12),e.limitUI14=e.maxFromBits(14),e.limitUI16=e.maxFromBits(16),e.limitUI32=e.maxFromBits(32),e.limitUI40=e.maxFromBits(40),e.limitUI48=e.maxFromBits(48),e.randomUI04=function(){return n(0,e.limitUI04-1)},e.randomUI06=function(){return n(0,e.limitUI06-1)},e.randomUI08=function(){return n(0,e.limitUI08-1)},e.randomUI12=function(){return n(0,e.limitUI12-1)},e.randomUI14=function(){return n(0,e.limitUI14-1)},e.randomUI16=function(){return n(0,e.limitUI16-1)},e.randomUI32=function(){return n(0,e.limitUI32-1)},e.randomUI40=function(){return(0|Math.random()*(1<<30))+(0|1024*Math.random())*(1<<30)},e.randomUI48=function(){return(0|Math.random()*(1<<30))+(0|Math.random()*(1<<18))*(1<<30)},e.paddedString=function(t,e,n){n=n||"0";for(var r=e-(t=String(t)).length;r>0;r>>>=1,n+=n)1&r&&(t=n+t);return t},e.prototype.fromParts=function(t,n,r,o,i,s){return this.version=r>>12&15,this.hex=e.paddedString(t.toString(16),8)+"-"+e.paddedString(n.toString(16),4)+"-"+e.paddedString(r.toString(16),4)+"-"+e.paddedString(o.toString(16),2)+e.paddedString(i.toString(16),2)+"-"+e.paddedString(s.toString(16),12),this},e.prototype.toString=function(){return this.hex},e.prototype.toURN=function(){return"urn:uuid:"+this.hex},e.prototype.toBytes=function(){for(var t=this.hex.split("-"),e=[],n=0,r=0;r<t.length;r++)for(var o=0;o<t[r].length;o+=2)e[n++]=parseInt(t[r].substr(o,2),16);return e},e.prototype.equals=function(t){return t instanceof UUID&&this.hex===t.hex},e.getTimeFieldValues=function(t){var e=t-Date.UTC(1582,9,15),n=e/4294967296*1e4&268435455;return{low:1e4*(268435455&e)%4294967296,mid:65535&n,hi:n>>>16,timestamp:e}},e._create4=function(){return(new e).fromParts(e.randomUI32(),e.randomUI16(),16384|e.randomUI12(),128|e.randomUI06(),e.randomUI08(),e.randomUI48())},e._create1=function(){var t=(new Date).getTime(),n=e.randomUI14(),r=1099511627776*(1|e.randomUI08())+e.randomUI40(),o=e.randomUI04(),i=0;t!=i?(t<i&&n++,i=t,o=e.randomUI04()):Math.random()<1/4&&o<9984?o+=1+e.randomUI04():n++;var s=e.getTimeFieldValues(i),a=s.low+o,c=4095&s.hi|4096,u=(n&=16383)>>>8|128,l=255&n;return(new e).fromParts(a,s.mid,c,u,l,r)},e.create=function(t){return this["_create"+(t=t||4)]()},e.fromTime=function(t,n){n=n||!1;var r=e.getTimeFieldValues(t),o=r.low,i=4095&r.hi|4096;return!1===n?(new e).fromParts(o,r.mid,i,0,0,0):(new e).fromParts(o,r.mid,i,128|e.limitUI06,e.limitUI08-1,e.limitUI48-1)},e.firstFromTime=function(t){return e.fromTime(t,!1)},e.lastFromTime=function(t){return e.fromTime(t,!0)},e.fromURN=function(t){var n;return(n=/^(?:urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(?:\})?$/i.exec(t))?(new e).fromParts(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),parseInt(n[4],16),parseInt(n[5],16),parseInt(n[6],16)):null},e.fromBytes=function(t){if(t.length<5)return null;for(var n="",r=0,o=[4,2,2,2,6],i=0;i<o.length;i++){for(var s=0;s<o[i];s++){var a=t[r++].toString(16);1==a.length&&(a="0"+a),n+=a}6!==o[i]&&(n+="-")}return e.fromURN(n)},e.fromBinary=function(t){for(var n=[],r=0;r<t.length;r++)if(n[r]=t.charCodeAt(r),n[r]>255||n[r]<0)throw new Error("Unexpected byte in binary data.");return e.fromBytes(n)},e.new=function(){return this.create(4)},e.newTS=function(){return this.create(1)},t.exports=e}},e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r](o,o.exports,n),o.loaded=!0,o.exports}(()=>{n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}})(),(()=>{n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}()})(),(()=>{n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t)})(),(()=>{n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{"use strict";var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=r();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var s=o?Object.getOwnPropertyDescriptor(t,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=t[i]}n.default=t,e&&e.set(t,n);return n}(n(7284)),e=n(61694);function r(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return r=function(){return t},t}t.install(),(0,e.createEventSenderInstance)();const o=n(47979),i=n(83597),s=n(88395);o((function(){s.attach(),s.update(),i.attach(),i.update()}))})()})();
//# sourceMappingURL=licenses.bundle.js.map