/*!
* github-buttons v2.29.0
* (c) 2024 なつき
* @license BSD-2-Clause
*/
!function() {
"use strict";
var e = window.document
, o = e.location
, t = window.Math
, r = window.HTMLElement
, a = window.XMLHttpRequest
, n = "github-button"
, i = "https://buttons.github.io/buttons.html"
, c = "github.com"
, l = "https://api." + c
, d = a && "prototype"in a && "withCredentials"in a.prototype
, s = d && r && "attachShadow"in r.prototype && !("prototype"in r.prototype.attachShadow)
, u = function(e, o) {
for (var t = 0, r = e.length; t < r; t++)
o(e[t])
}
, f = function(e) {
return function(o, t, r) {
var a = e.createElement(o);
if (null != t)
for (var n in t) {
var i = t[n];
null != i && (null != a[n] ? a[n] = i : a.setAttribute(n, i))
}
return null != r && u(r, (function(o) {
a.appendChild("string" == typeof o ? e.createTextNode(o) : o)
}
)),
a
}
}
, h = f(e)
, g = function(e) {
var o;
return function() {
o || (o = 1,
e.apply(this, arguments))
}
}
, p = function(e, o) {
return {}.hasOwnProperty.call(e, o)
}
, b = function(e) {
return ("" + e).toLowerCase()
}
, v = function(e, o, t, r) {
null == o && (o = "&"),
null == t && (t = "="),
null == r && (r = window.decodeURIComponent);
var a = {};
return u(e.split(o), (function(e) {
if ("" !== e) {
var o = e.split(t);
a[r(o[0])] = null != o[1] ? r(o.slice(1).join(t)) : void 0
}
}
)),
a
}
, m = function(e, o, t) {
e.addEventListener ? e.addEventListener(o, t, !1) : e.attachEvent("on" + o, t)
}
, w = function(e, o, t) {
e.removeEventListener ? e.removeEventListener(o, t, !1) : e.detachEvent("on" + o, t)
}
, k = function(e, o, t) {
var r = function() {
return w(e, o, r),
t.apply(this, arguments)
};
m(e, o, r)
}
, x = function(e, o, t) {
if (null != e.readyState) {
var r = "readystatechange"
, a = function() {
if (o.test(e.readyState))
return w(e, r, a),
t.apply(this, arguments)
};
m(e, r, a)
}
}
, y = {
light: ".btn:focus-visible,.social-count:focus-visible{outline:2px solid #0969da;outline-offset:-2px}.btn{color:#25292e;background-color:#ebf0f4;border-color:#d1d9e0;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='%23f6f8fa'/%3e%3cstop offset='90%25' stop-color='%23ebf0f4'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #f6f8fa, #ebf0f4 90%);background-image:linear-gradient(180deg, #f6f8fa, #ebf0f4 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF6F8FA', endColorstr='#FFEAEFF3')}:root .btn{filter:none}.btn:hover,.btn:focus{background-color:#e5eaee;background-position:0 -0.5em;border-color:#d1d9e0;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='%23eff2f5'/%3e%3cstop offset='90%25' stop-color='%23e5eaee'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #eff2f5, #e5eaee 90%);background-image:linear-gradient(180deg, #eff2f5, #e5eaee 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFEFF2F5', endColorstr='#FFE4E9ED')}:root .btn:hover,:root .btn:focus{filter:none}.btn:active{background-color:#e6eaef;border-color:#d1d9e0;background-image:none;filter:none}.social-count{color:#25292e;background-color:#fff;border-color:#d1d9e0}.social-count:hover,.social-count:focus{color:#0969da}.octicon-heart{color:#bf3989}",
light_high_contrast: ".btn:focus-visible,.social-count:focus-visible{outline:2px solid #0349b4;outline-offset:-2px}.btn{color:#25292e;background-color:#e0e6eb;border-color:#454c54;background-image:none;filter:none}.btn:hover,.btn:focus{background-color:#d0d7e0;background-position:0 -0.5em;border-color:#454c54;background-image:none;filter:none}.btn:active{background-color:#d1d9e0;border-color:#454c54}.social-count{color:#25292e;background-color:#fff;border-color:#454c54}.social-count:hover,.social-count:focus{color:#023b95}.octicon-heart{color:#7d0c57}",
dark: ".btn:focus-visible,.social-count:focus-visible{outline:2px solid #1f6feb;outline-offset:-2px}.btn{color:#f0f6fc;background-color:#1a2026;border-color:#3d444d;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='%23212830'/%3e%3cstop offset='90%25' stop-color='%231a2026'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #212830, #1a2026 90%);background-image:linear-gradient(180deg, #212830, #1a2026 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF212830', endColorstr='#FF191F25')}:root .btn{filter:none}.btn:hover,.btn:focus{background-color:#1f242c;background-position:0 -0.5em;border-color:#3d444d;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='%23262c36'/%3e%3cstop offset='90%25' stop-color='%231f242c'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #262c36, #1f242c 90%);background-image:linear-gradient(180deg, #262c36, #1f242c 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF262C36', endColorstr='#FF1E232B')}:root .btn:hover,:root .btn:focus{filter:none}.btn:active{background-color:#2a313c;border-color:#3d444d;background-image:none;filter:none}.social-count{color:#f0f6fc;background-color:#0d1117;border-color:#3d444d}.social-count:hover,.social-count:focus{color:#388bfd}.octicon-heart{color:#db61a2}",
dark_dimmed: ".btn:focus-visible,.social-count:focus-visible{outline:2px solid #316dca;outline-offset:-2px}.btn{color:#d1d7e0;background-color:#232932;border-color:#3d444d;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='%232a313c'/%3e%3cstop offset='90%25' stop-color='%23232932'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #2a313c, #232932 90%);background-image:linear-gradient(180deg, #2a313c, #232932 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF2A313C', endColorstr='#FF222831')}:root .btn{filter:none}.btn:hover,.btn:focus{background-color:#282f38;background-position:0 -0.5em;border-color:#3d444d;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='%232f3742'/%3e%3cstop offset='90%25' stop-color='%23282f38'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #2f3742, #282f38 90%);background-image:linear-gradient(180deg, #2f3742, #282f38 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF2F3742', endColorstr='#FF272E37')}:root .btn:hover,:root .btn:focus{filter:none}.btn:active{background-color:#3d444d;border-color:#3d444d;background-image:none;filter:none}.social-count{color:#d1d7e0;background-color:#212830;border-color:#3d444d}.social-count:hover,.social-count:focus{color:#4184e4}.octicon-heart{color:#c96198}",
dark_high_contrast: ".btn:focus-visible,.social-count:focus-visible{outline:2px solid #409eff;outline-offset:-2px}.btn{color:#fff;background-color:#262c36;border-color:#b7bdc8;background-image:none;filter:none}.btn:hover,.btn:focus{background-color:#232932;background-position:0 -0.5em;border-color:#b7bdc8;background-image:none;filter:none}.btn:active{background-color:#2f3742;border-color:#b7bdc8}.social-count{color:#fff;background-color:#010409;border-color:#b7bdc8}.social-count:hover,.social-count:focus{color:#5cacff}.octicon-heart{color:#ff90c8}"
}
, C = function(e, o) {
return "@media(prefers-color-scheme:" + e + "){" + y[p(y, o) ? o : e] + "}"
}
, M = {
"comment-discussion": {
heights: {
16: {
width: 16,
path: ''
}
}
},
download: {
heights: {
16: {
width: 16,
path: ''
}
}
},
eye: {
heights: {
16: {
width: 16,
path: ''
}
}
},
heart: {
heights: {
16: {
width: 16,
path: ''
}
}
},
"issue-opened": {
heights: {
16: {
width: 16,
path: ''
}
}
},
"mark-github": {
heights: {
16: {
width: 16,
path: ''
}
}
},
package: {
heights: {
16: {
width: 16,
path: ''
}
}
},
play: {
heights: {
16: {
width: 16,
path: ''
}
}
},
"repo-forked": {
heights: {
16: {
width: 16,
path: ''
}
}
},
"repo-template": {
heights: {
16: {
width: 16,
path: ''
}
}
},
star: {
heights: {
16: {
width: 16,
path: ''
}
}
}
}
, Z = function(e, o) {
e = b(e).replace(/^octicon-/, ""),
p(M, e) || (e = "mark-github");
var t = o >= 24 && 24 in M[e].heights ? 24 : 16
, r = M[e].heights[t];
return '"
}
, A = {}
, F = function(e, o) {
var t = A[e] || (A[e] = []);
if (!(t.push(o) > 1)) {
var r = g((function() {
for (delete A[e]; o = t.shift(); )
o.apply(null, arguments)
}
));
if (d) {
var n = new a;
m(n, "abort", r),
m(n, "error", r),
m(n, "load", (function() {
var e;
try {
e = JSON.parse(this.responseText)
} catch (e) {
return void r(e)
}
r(200 !== this.status, e)
}
)),
n.open("GET", e),
n.send()
} else {
var i = this || window;
i._ = function(e) {
i._ = null,
r(200 !== e.meta.status, e.data)
}
;
var c = f(i.document)("script", {
async: !0,
src: e + (-1 !== e.indexOf("?") ? "&" : "?") + "callback=_"
})
, l = function() {
i._ && i._({
meta: {}
})
};
m(c, "load", l),
m(c, "error", l),
x(c, /de|m/, l),
i.document.getElementsByTagName("head")[0].appendChild(c)
}
}
}
, E = function(e, o, t) {
var r = f(e.ownerDocument)
, a = e.appendChild(r("style", {
type: "text/css"
}))
, n = "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;line-height:0;white-space:nowrap}.btn,.social-count{position:relative;display:inline-block;display:inline-flex;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:16px;padding:5px 10px;font-size:12px;line-height:16px}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor;overflow:visible}" + function(e) {
if (null == e)
return y.light;
if (p(y, e))
return y[e];
var o = v(e, ";", ":", (function(e) {
return e.replace(/^[ \t\n\f\r]+|[ \t\n\f\r]+$/g, "")
}
));
return y[p(y, o["no-preference"]) ? o["no-preference"] : "light"] + C("light", o.light) + C("dark", o.dark)
}(o["data-color-scheme"]);
a.styleSheet ? a.styleSheet.cssText = n : a.appendChild(e.ownerDocument.createTextNode(n));
var i = "large" === b(o["data-size"])
, d = r("a", {
className: "btn",
href: o.href,
rel: "noopener",
target: "_blank",
title: o.title || void 0,
"aria-label": o["aria-label"] || void 0,
innerHTML: Z(o["data-icon"], i ? 16 : 14) + " "
}, [r("span", {}, [o["data-text"] || ""])])
, s = e.appendChild(r("div", {
className: "widget" + (i ? " widget-lg" : "")
}, [d]))
, u = d.hostname.replace(/\.$/, "");
if (("." + u).substring(u.length - 10) !== "." + c)
return d.removeAttribute("href"),
void t(s);
var h = (" /" + d.pathname).split(/\/+/);
if (((u === c || u === "gist." + c) && "archive" === h[3] || u === c && "releases" === h[3] && ("download" === h[4] || "latest" === h[4] && "download" === h[5]) || u === "codeload." + c) && (d.target = "_top"),
"true" === b(o["data-show-count"]) && u === c && "marketplace" !== h[1] && "sponsors" !== h[1] && "orgs" !== h[1] && "users" !== h[1] && "-" !== h[1]) {
var g, m;
if (!h[2] && h[1])
m = "followers",
g = "?tab=followers";
else if (!h[3] && h[2])
m = "stargazers_count",
g = "/stargazers";
else if (h[4] || "subscription" !== h[3])
if (h[4] || "fork" !== h[3]) {
if ("issues" !== h[3])
return void t(s);
m = "open_issues_count",
g = "/issues"
} else
m = "forks_count",
g = "/forks";
else
m = "subscribers_count",
g = "/watchers";
var w = h[2] ? "/repos/" + h[1] + "/" + h[2] : "/users/" + h[1];
F.call(this, l + w, (function(e, o) {
if (!e) {
var a = o[m];
s.appendChild(r("a", {
className: "social-count",
href: o.html_url + g,
rel: "noopener",
target: "_blank",
"aria-label": a + " " + m.replace(/_count$/, "").replace("_", " ").slice(0, a < 2 ? -1 : void 0) + " on GitHub"
}, [("" + a).replace(/\B(?=(\d{3})+(?!\d))/g, ",")]))
}
t(s)
}
))
} else
t(s)
}
, L = window.devicePixelRatio || 1
, _ = function(e) {
return (L > 1 ? t.ceil(t.round(e * L) / L * 2) / 2 : t.ceil(e)) || 0
}
, G = function(e, o) {
e.style.width = o[0] + "px",
e.style.height = o[1] + "px"
}
, T = function(o, r) {
if (null != o && null != r)
if (o.getAttribute && (o = function(e) {
var o = {
href: e.href,
title: e.title,
"aria-label": e.getAttribute("aria-label")
};
return u(["icon", "color-scheme", "text", "size", "show-count"], (function(t) {
var r = "data-" + t;
o[r] = e.getAttribute(r)
}
)),
null == o["data-text"] && (o["data-text"] = e.textContent || e.innerText),
o
}(o)),
s) {
var a = h("span");
E(a.attachShadow({
mode: "closed"
}), o, (function() {
r(a)
}
))
} else {
var n = h("iframe", {
src: "javascript:0",
title: o.title || void 0,
allowtransparency: !0,
scrolling: "no",
frameBorder: 0
});
G(n, [0, 0]),
n.style.border = "none";
var c = function() {
var a, l = n.contentWindow;
try {
a = l.document.body
} catch (o) {
return void e.body.appendChild(n.parentNode.removeChild(n))
}
w(n, "load", c),
E.call(l, a, o, (function(e) {
var a = function(e) {
var o = e.offsetWidth
, r = e.offsetHeight;
if (e.getBoundingClientRect) {
var a = e.getBoundingClientRect();
o = t.max(o, _(a.width)),
r = t.max(r, _(a.height))
}
return [o, r]
}(e);
n.parentNode.removeChild(n),
k(n, "load", (function() {
G(n, a)
}
)),
n.src = i + "#" + (n.name = function(e, o, t, r) {
null == o && (o = "&"),
null == t && (t = "="),
null == r && (r = window.encodeURIComponent);
var a = [];
for (var n in e) {
var i = e[n];
null != i && a.push(r(n) + t + r(i))
}
return a.join(o)
}(o)),
r(n)
}
))
};
m(n, "load", c),
e.body.appendChild(n)
}
};
o.protocol + "//" + o.host + o.pathname === i ? E(e.body, v(window.name || o.hash.replace(/^#/, "")), (function() {}
)) : function(o) {
if ("complete" === e.readyState || "loading" !== e.readyState && !e.documentElement.doScroll)
setTimeout(o);
else if (e.addEventListener) {
var t = g(o);
k(e, "DOMContentLoaded", t),
k(window, "load", t)
} else
x(e, /m/, o)
}((function() {
var o, t = e.querySelectorAll ? e.querySelectorAll("a." + n) : (o = [],
u(e.getElementsByTagName("a"), (function(e) {
-1 !== (" " + e.className + " ").replace(/[ \t\n\f\r]+/g, " ").indexOf(" " + n + " ") && o.push(e)
}
)),
o);
u(t, (function(e) {
T(e, (function(o) {
e.parentNode.replaceChild(o, e)
}
))
}
))
}
))
}();