Spotify.NET/assets/js/55.6d1cbbe9.js
2021-04-08 19:45:56 +00:00

2 lines
25 KiB
JavaScript

/*! 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=g.length;l.push({types:d,content:g[0]});for(var b=1;b<m;b++)p(l),c.push(l=[]),l.push({types:d,content:g[b]})}else i++,t.push(d),r.push(s),o.push(0),n.push(s.length)}i--,t.pop(),r.pop(),o.pop(),n.pop()}return p(l),c}(void 0!==i?this.tokenize(t,o,i,r):[o]),className:"prism-code language-"+r,style:void 0!==a?a.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(n.Component);var b=r(136),v=r.n(b),y={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},k=r(132),w=r(125),x=function(){var e=Object(w.useThemeConfig)().prism,t=Object(k.a)().isDarkTheme,r=e.theme||y,o=e.darkTheme||r;return t?o:r},C=r(129),j=r(54),z=r.n(j),E=/{([\d,-]+)}/,O=function(e){void 0===e&&(e=["js","jsBlock","jsx","python","html"]);var t={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},python:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},r=["highlight-next-line","highlight-start","highlight-end"].join("|"),o=e.map((function(e){return"(?:"+t[e].start+"\\s*("+r+")\\s*"+t[e].end+")"})).join("|");return new RegExp("^\\s*(?:"+o+")\\s*$")},T=/(?:title=")(.*)(?:")/;function N(e){var t=e.children,r=e.className,l=e.metastring,s=Object(w.useThemeConfig)().prism,d=Object(n.useState)(!1),u=d[0],p=d[1],h=Object(n.useState)(!1),f=h[0],g=h[1];Object(n.useEffect)((function(){g(!0)}),[]);var b=Object(n.useRef)(null),y=[],k="",j=x(),N=Array.isArray(t)?t.join(""):t;if(l&&E.test(l)){var F=l.match(E)[1];y=v()(F).filter((function(e){return e>0}))}l&&T.test(l)&&(k=l.match(T)[1]);var _=r&&r.replace(/language-/,"");!_&&s.defaultLanguage&&(_=s.defaultLanguage);var S=N.replace(/\n$/,"");if(0===y.length&&void 0!==_){for(var B,L="",A=function(e){switch(e){case"js":case"javascript":case"ts":case"typescript":return O(["js","jsBlock"]);case"jsx":case"tsx":return O(["js","jsBlock","jsx"]);case"html":return O(["js","jsBlock","html"]);case"python":case"py":return O(["python"]);default:return O()}}(_),M=N.replace(/\n$/,"").split("\n"),D=0;D<M.length;){var H=D+1,I=M[D].match(A);if(null!==I){switch(I.slice(1).reduce((function(e,t){return e||t}),void 0)){case"highlight-next-line":L+=H+",";break;case"highlight-start":B=H;break;case"highlight-end":L+=B+"-"+(H-1)+","}M.splice(D,1)}else D+=1}y=v()(L),S=M.join("\n")}var P=function(){!function(e,{target:t=document.body}={}){const r=document.createElement("textarea"),o=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const n=document.getSelection();let a=!1;n.rangeCount>0&&(a=n.getRangeAt(0)),t.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let i=!1;try{i=document.execCommand("copy")}catch{}r.remove(),a&&(n.removeAllRanges(),n.addRange(a)),o&&o.focus()}(S),p(!0),setTimeout((function(){return p(!1)}),2e3)};return a.a.createElement(m,Object(o.a)({},c,{key:String(f),theme:j,code:S,language:_}),(function(e){var t,r=e.className,n=e.style,l=e.tokens,c=e.getLineProps,s=e.getTokenProps;return a.a.createElement("div",{className:z.a.codeBlockContainer},k&&a.a.createElement("div",{style:n,className:z.a.codeBlockTitle},k),a.a.createElement("div",{className:Object(i.a)(z.a.codeBlockContent,_)},a.a.createElement("div",{tabIndex:0,className:Object(i.a)(r,z.a.codeBlock,"thin-scrollbar",(t={},t[z.a.codeBlockWithTitle]=k,t))},a.a.createElement("div",{className:z.a.codeBlockLines,style:n},l.map((function(e,t){1===e.length&&""===e[0].content&&(e[0].content="\n");var r=c({line:e,key:t});return y.includes(t+1)&&(r.className=r.className+" docusaurus-highlight-code-line"),a.a.createElement("div",Object(o.a)({key:t},r),e.map((function(e,t){return a.a.createElement("span",Object(o.a)({key:t},s({token:e,key:t})))})))})))),a.a.createElement("button",{ref:b,type:"button","aria-label":Object(C.b)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),className:Object(i.a)(z.a.copyButton),onClick:P},u?a.a.createElement(C.a,{id:"theme.CodeBlock.copied",description:"The copied button label on code blocks"},"Copied"):a.a.createElement(C.a,{id:"theme.CodeBlock.copy",description:"The copy button label on code blocks"},"Copy"))))}))}},136:function(e,t){function r(e){let t,r=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))r.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,n,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o<a?1:-1;"-"!==n&&".."!==n&&"\u2025"!==n||(a+=e);for(let t=o;t!==a;t+=e)r.push(t)}}return r}t.default=r,e.exports=r},139:function(e,t,r){"use strict";var o=r(0),n=r.n(o);t.a=function(e){var t=e.children,r=e.hidden,o=e.className;return n.a.createElement("div",{role:"tabpanel",hidden:r,className:o},t)}},140:function(e,t,r){"use strict";var o=r(0),n=r.n(o),a=r(134),i=r(127),l=r(55),c=r.n(l);var s=37,d=39;t.a=function(e){var t=e.lazy,r=e.block,l=e.defaultValue,u=e.values,p=e.groupId,h=e.className,f=Object(a.a)(),g=f.tabGroupChoices,m=f.setTabGroupChoices,b=Object(o.useState)(l),v=b[0],y=b[1],k=o.Children.toArray(e.children),w=[];if(null!=p){var x=g[p];null!=x&&x!==v&&u.some((function(e){return e.value===x}))&&y(x)}var C=function(e){var t=e.target,r=w.indexOf(t),o=k[r].props.value;y(o),null!=p&&(m(p,o),setTimeout((function(){var e,r,o,n,a,i,l,s;(e=t.getBoundingClientRect(),r=e.top,o=e.left,n=e.bottom,a=e.right,i=window,l=i.innerHeight,s=i.innerWidth,r>=0&&a<=s&&n<=l&&o>=0)||(t.scrollIntoView({block:"center",behavior:"smooth"}),t.classList.add(c.a.tabItemActive),setTimeout((function(){return t.classList.remove(c.a.tabItemActive)}),2e3))}),150))},j=function(e){var t,r;switch(e.keyCode){case d:var o=w.indexOf(e.target)+1;r=w[o]||w[0];break;case s:var n=w.indexOf(e.target)-1;r=w[n]||w[w.length-1]}null===(t=r)||void 0===t||t.focus()};return n.a.createElement("div",{className:"tabs-container"},n.a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:Object(i.a)("tabs",{"tabs--block":r},h)},u.map((function(e){var t=e.value,r=e.label;return n.a.createElement("li",{role:"tab",tabIndex:v===t?0:-1,"aria-selected":v===t,className:Object(i.a)("tabs__item",c.a.tabItem,{"tabs__item--active":v===t}),key:t,ref:function(e){return w.push(e)},onKeyDown:j,onFocus:C,onClick:C},r)}))),t?Object(o.cloneElement)(k.filter((function(e){return e.props.value===v}))[0],{className:"margin-vert--md"}):n.a.createElement("div",{className:"margin-vert--md"},k.map((function(e,t){return Object(o.cloneElement)(e,{key:t,hidden:e.props.value!==v})}))))}},173:function(e,t,r){var o;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&e.push(i)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var l in o)r.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},174:function(e,t,r){"use strict";var o=r(0),n=r.n(o);class a extends o.PureComponent{constructor(e){super(e),this.$=n.a.createRef(),this._=n.a.createRef()}render(){return n.a.createElement("span",{ref:this.$},n.a.createElement("a",{...this.props,ref:this._},this.props.children))}componentDidMount(){this.paint()}getSnapshotBeforeUpdate(){return this.reset(),null}componentDidUpdate(){this.paint()}componentWillUnmount(){this.reset()}paint(){const e=this.$.current.appendChild(document.createElement("span"));Promise.resolve().then(r.bind(null,175)).then((({render:t})=>{t(e.appendChild(this._.current),(function(t){try{e.parentNode.replaceChild(t,e)}catch(e){}}))}))}reset(){this.$.current.replaceChild(this._.current,this.$.current.lastChild)}}t.a=a},175:function(e,t,r){"use strict";r.r(t),r.d(t,"render",(function(){return j}));var o=window.document,n=window.Math,a=window.HTMLElement,i=window.XMLHttpRequest,l=function(e){return function(t,r,o){var n=e.createElement(t);if(null!=r)for(var a in r){var i=r[a];null!=i&&(null!=n[a]?n[a]=i:n.setAttribute(a,i))}if(null!=o)for(var l=0,c=o.length;l<c;l++){var s=o[l];n.appendChild("string"==typeof s?e.createTextNode(s):s)}return n}},c=l(o),s=function(e,t){return{}.hasOwnProperty.call(e,t)},d=i&&i.prototype&&"withCredentials"in i.prototype,u=d&&a&&a.prototype.attachShadow&&!a.prototype.attachShadow.prototype,p=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},h=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},f={light:".btn{color:#24292e;background-color:#eff3f6;border-color:#c5c9cc;border-color:rgba(27,31,35,.2);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23fafbfc'/%3e%3cstop offset='90%25' stop-color='%23eff3f6'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #fafbfc, #eff3f6 90%);background-image:linear-gradient(180deg, #fafbfc, #eff3f6 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFFAFBFC', endColorstr='#FFEEF2F5')}:root .btn{filter:none}.btn:focus,.btn:hover{background-color:#e6ebf1;background-position:-0.5em;border-color:#9fa4a9;border-color:rgba(27,31,35,.35);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f0f3f6'/%3e%3cstop offset='90%25' stop-color='%23e6ebf1'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #f0f3f6, #e6ebf1 90%);background-image:linear-gradient(180deg, #f0f3f6, #e6ebf1 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF0F3F6', endColorstr='#FFE5EAF0')}:root .btn:focus,:root .btn:hover{filter:none}.btn:active{background-color:#e9ecef;border-color:#a1a4a8;border-color:rgba(27,31,35,.35);box-shadow:inset 0 .15em .3em rgba(27,31,35,.15);background-image:none;filter:none}.social-count{color:#24292e;background-color:#fff;border-color:#d1d2d3;border-color:rgba(27,31,35,.2)}.social-count:focus,.social-count:hover{color:#0366d6}.octicon-heart{color:#ea4aaa}",dark:".btn{color:#fafbfc;background-color:#202428;border-color:#1f2327;border-color:rgba(27,31,35,.2);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%232f363d'/%3e%3cstop offset='90%25' stop-color='%23202428'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #2f363d, #202428 90%);background-image:linear-gradient(180deg, #2f363d, #202428 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF2F363D', endColorstr='#FF1E2226')}:root .btn{filter:none}.btn:focus,.btn:hover{background-color:#1b1f23;background-position:-0.5em;border-color:#1b1f23;border-color:rgba(27,31,35,.5);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%232b3137'/%3e%3cstop offset='90%25' stop-color='%231b1f23'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #2b3137, #1b1f23 90%);background-image:linear-gradient(180deg, #2b3137, #1b1f23 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF2B3137', endColorstr='#FF191D21')}:root .btn:focus,:root .btn:hover{filter:none}.btn:active{background-color:#181b1f;border-color:#1a1d21;border-color:rgba(27,31,35,.5);box-shadow:inset 0 .15em .3em rgba(27,31,35,.15);background-image:none;filter:none}.social-count{color:#fafbfc;background-color:#1b1f23;border-color:#1b1f23;border-color:rgba(27,31,35,.2)}.social-count:focus,.social-count:hover{color:#2188ff}.octicon-heart{color:#ec6cb9}"},g=function(e,t){return"@media(prefers-color-scheme:"+e+"){"+f[s(f,t)?t:e]+"}"},m=function(e){if(null==e)return f.light;var t=function(e,t,r,o){null==t&&(t="&"),null==r&&(r="="),null==o&&(o=window.decodeURIComponent);for(var n={},a=e.split(t),i=0,l=a.length;i<l;++i){var c=a[i];if(""!==c){var s=c.split(r);n[o(s[0])]=null!=s[1]?o(s.slice(1).join(r)):void 0}}return n}(e,";",":",(function(e){return e.replace(/^[ \t\n\f\r]+|[ \t\n\f\r]+$/g,"")}));return f[s(f,t["no-preference"])?t["no-preference"]:"light"]+g("light",t.light)+g("dark",t.dark)},b={"mark-github":{width:16,height:16,path:'<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path>'},heart:{width:12,height:16,path:'<path fill-rule="evenodd" d="M8.727 3C7.091 3 6.001 4.65 6.001 4.65S4.909 3 3.273 3C1.636 3 0 4.1 0 6.3 0 9.6 6 14 6 14s6-4.4 6-7.7C12 4.1 10.364 3 8.727 3z"></path>'},eye:{width:16,height:16,path:'<path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"></path>'},star:{width:14,height:16,path:'<path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"></path>'},"repo-forked":{width:10,height:16,path:'<path fill-rule="evenodd" d="M8 1a1.993 1.993 0 00-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 002 1a1.993 1.993 0 00-1 3.72V6.5l3 3v1.78A1.993 1.993 0 005 15a1.993 1.993 0 001-3.72V9.5l3-3V4.72A1.993 1.993 0 008 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path>'},"repo-template":{width:14,height:16,path:'<path fill-rule="evenodd" d="M12 8V1c0-.55-.45-1-1-1H1C.45 0 0 .45 0 1v12c0 .55.45 1 1 1h2v2l1.5-1.5L6 16v-4H3v1H1v-2h7v-1H2V1h9v7h1zM4 2H3v1h1V2zM3 4h1v1H3V4zm1 2H3v1h1V6zm0 3H3V8h1v1zm6 3H8v2h2v2h2v-2h2v-2h-2v-2h-2v2z"></path>'},"issue-opened":{width:14,height:16,path:'<path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 011.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path>'},"cloud-download":{width:16,height:16,path:'<path fill-rule="evenodd" d="M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z"></path>'}},v={},y=function(e,t){var r=v[e]||(v[e]=[]);if(!(r.push(t)>1)){var o=function(e){var t;return function(){t||(t=1,e.apply(this,arguments))}}((function(){for(delete v[e];t=r.shift();)t.apply(null,arguments)}));if(d){var n=new i;p(n,"abort",o),p(n,"error",o),p(n,"load",(function(){var e;try{e=JSON.parse(n.responseText)}catch(t){return void o(t)}o(200!==n.status,e)})),n.open("GET",e),n.send()}else{var a=this||window;a._=function(e){a._=null,o(200!==e.meta.status,e.data)};var c=l(a.document)("script",{async:!0,src:e+(/\?/.test(e)?"&":"?")+"callback=_"}),s=function(){a._&&a._({meta:{}})};p(c,"load",s),p(c,"error",s),c.readyState&&function(e,t,r){var o="readystatechange",n=function(a){if(t.test(e.readyState))return h(e,o,n),r(a)};p(e,o,n)}(c,/de|m/,s),a.document.getElementsByTagName("head")[0].appendChild(c)}}},k=function(e,t,r){var o=l(e.ownerDocument),n=e.appendChild(o("style",{type:"text/css"})),a="body{margin:0}a{text-decoration:none;outline:0}.widget{display:inline-block;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:0;white-space:nowrap}.btn,.social-count{position:relative;display:inline-block;height:14px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;vertical-align:bottom;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:repeat-x;background-position:-1px -1px;background-size:110% 110%;border:1px solid}.btn{border-radius:.25em}.btn:not(:last-child){border-radius:.25em 0 0 .25em}.social-count{border-left:0;border-radius:0 .25em .25em 0}.widget-lg .btn,.widget-lg .social-count{height:20px;padding:3px 10px;font-size:12px;line-height:20px}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor}"+m(t["data-color-scheme"]);n.styleSheet?n.styleSheet.cssText=a:n.appendChild(e.ownerDocument.createTextNode(a));var i,c,d=o("a",{className:"btn",href:t.href,rel:"noopener",target:"_blank",title:t.title||void 0,"aria-label":t["aria-label"]||void 0,innerHTML:(i=t["data-icon"],c=/^large$/i.test(t["data-size"])?16:14,i=(""+i).toLowerCase().replace(/^octicon-/,""),s(b,i)||(i="mark-github"),'<svg viewBox="0 0 '+b[i].width+" "+b[i].height+'" class="octicon octicon-'+i+'" style="width: '+c*b[i].width/b[i].height+"px; height: "+c+'px;" aria-hidden="true">'+b[i].path+"</svg>")},[" ",o("span",{},[t["data-text"]||""])]),u=e.appendChild(o("div",{className:"widget"+(/^large$/i.test(t["data-size"])?" widget-lg":"")},[d])),p=d.hostname.split(".").reverse();if(""===p[0]&&p.shift(),"com"!==p[0]||"github"!==p[1])return d.href="#",d.target="_self",void r(u);var h=p.length,f=(" /"+d.pathname).split(/\/+/);if(((2===h||3===h&&"gist"===p[2])&&"archive"===f[3]||2===h&&"releases"===f[3]&&"download"===f[4]||3===h&&"codeload"===p[2])&&(d.target="_top"),/^true$/i.test(t["data-show-count"])&&2===h){var g,v;if(!f[2]&&f[1])g=v="followers";else if(!f[3]&&f[2])v="stargazers_count",g="stargazers";else if(f[4]||"subscription"!==f[3])if(f[4]||"fork"!==f[3]){if("issues"!==f[3])return void r(u);v="open_issues_count",g="issues"}else v="forks_count",g="network/members";else v="subscribers_count",g="watchers";var k=f[2]?"/repos/"+f[1]+"/"+f[2]:"/users/"+f[1];y.call(this,"https://api.github.com"+k,(function(e,t){if(!e){var n=t[v];u.appendChild(o("a",{className:"social-count",href:t.html_url+"/"+g,rel:"noopener",target:"_blank","aria-label":n+" "+v.replace(/_count$/,"").replace("_"," ").slice(0,n<2?-1:void 0)+" on GitHub"},[(""+n).replace(/\B(?=(\d{3})+(?!\d))/g,",")]))}r(u)}))}else r(u)},w=window.devicePixelRatio||1,x=function(e){return(w>1?n.ceil(n.round(e*w)/w*2)/2:n.ceil(e))||0},C=function(e,t){e.style.width=t[0]+"px",e.style.height=t[1]+"px"},j=function(e,t){if(null!=e&&null!=t)if(e.getAttribute&&(e=function(e){for(var t={href:e.href,title:e.title,"aria-label":e.getAttribute("aria-label")},r=["icon","color-scheme","text","size","show-count"],o=0,n=r.length;o<n;o++){var a="data-"+r[o];t[a]=e.getAttribute(a)}return null==t["data-text"]&&(t["data-text"]=e.textContent||e.innerText),t}(e)),u){var r=c("span");k(r.attachShadow({mode:"closed"}),e,(function(){t(r)}))}else{var a=c("iframe",{src:"javascript:0",title:e.title||void 0,allowtransparency:!0,scrolling:"no",frameBorder:0});C(a,[0,0]),a.style.border="none";var i=function(){var r,l=a.contentWindow;try{r=l.document.body}catch(c){return void o.body.appendChild(a.parentNode.removeChild(a))}h(a,"load",i),k.call(l,r,e,(function(r){var o=function(e){var t=e.offsetWidth,r=e.offsetHeight;if(e.getBoundingClientRect){var o=e.getBoundingClientRect();t=n.max(t,x(o.width)),r=n.max(r,x(o.height))}return[t,r]}(r);a.parentNode.removeChild(a),function(e,t,r){var o=function(n){return h(e,t,o),r(n)};p(e,t,o)}(a,"load",(function(){C(a,o)})),a.src="https://unpkg.com/github-buttons@2.8.0/dist/buttons.html#"+(a.name=function(e,t,r,o){null==t&&(t="&"),null==r&&(r="="),null==o&&(o=window.encodeURIComponent);var n=[];for(var a in e){var i=e[a];null!=i&&n.push(o(a)+r+o(i))}return n.join(t)}(e)),t(a)}))};p(a,"load",i),o.body.appendChild(a)}}}}]);