Spotify.NET/assets/js/55.6d1cbbe9.js

2 lines
25 KiB
JavaScript
Raw Normal View History

/*! For license information please see 55.6d1cbbe9.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{133:function(e,t,r){"use strict";r.d(t,"a",(function(){return N}));var o=r(3),n=r(0),a=r.n(n),i=r(127),l={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","at-rule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},c={Prism:r(22).a,theme:l};function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}var u=/\r\n|\r|\n/,p=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},h=function(e,t){var r=e.length;return r>0&&e[r-1]===t?e:e.concat(t)},f=function(e,t){var r=e.plain,o=Object.create(null),n=e.styles.reduce((function(e,r){var o=r.languages,n=r.style;return o&&!o.includes(t)||r.types.forEach((function(t){var r=d({},e[t],n);e[t]=r})),e}),o);return n.root=r,n.plain=d({},r,{backgroundColor:null}),n};function g(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(r[o]=e[o]);return r}var m=function(e){function t(){for(var t=this,r=[],o=arguments.length;o--;)r[o]=arguments[o];e.apply(this,r),s(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var r=e.theme?f(e.theme,e.language):void 0;return t.themeDict=r})),s(this,"getLineProps",(function(e){var r=e.key,o=e.className,n=e.style,a=d({},g(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),i=t.getThemeDict(t.props);return void 0!==i&&(a.style=i.plain),void 0!==n&&(a.style=void 0!==a.style?d({},a.style,n):n),void 0!==r&&(a.key=r),o&&(a.className+=" "+o),a})),s(this,"getStyleForToken",(function(e){var r=e.types,o=e.empty,n=r.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===n&&"plain"===r[0])return o?{display:"inline-block"}:void 0;if(1===n&&!o)return a[r[0]];var i=o?{display:"inline-block"}:{},l=r.map((function(e){return a[e]}));return Object.assign.apply(Object,[i].concat(l))}})),s(this,"getTokenProps",(function(e){var r=e.key,o=e.className,n=e.style,a=e.token,i=d({},g(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==n&&(i.style=void 0!==i.style?d({},i.style,n):n),void 0!==r&&(i.key=r),o&&(i.className+=" "+o),i})),s(this,"tokenize",(function(e,t,r,o){var n={code:t,grammar:r,language:o,tokens:[]};e.hooks.run("before-tokenize",n);var a=n.tokens=e.tokenize(n.code,n.grammar,n.language);return e.hooks.run("after-tokenize",n),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,r=e.language,o=e.code,n=e.children,a=this.getThemeDict(this.props),i=t.languages[r];return n({tokens:function(e){for(var t=[[]],r=[e],o=[0],n=[e.length],a=0,i=0,l=[],c=[l];i>-1;){for(;(a=o[i]++)<n[i];){var s=void 0,d=t[i],f=r[i][a];if("string"==typeof f?(d=i>0?d:["plain"],s=f):(d=h(d,f.type),f.alias&&(d=h(d,f.alias)),s=f.content),"string"==typeof s){var g=s.split(u),m