jekyll-theme-chirpy 5.6.0 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 247d98893e58247ff3760691e9b0e3c31dd28e341676bd30b7ac8515c29b5684
4
- data.tar.gz: a317d1089b0de4d1c84e4a1c558a5346bb6daad193c5ee268f9c3cdf178d3b11
3
+ metadata.gz: 06cbbb41ae434248a6d663f3d8b0efae84ac325096bfff78f7618b740d60417b
4
+ data.tar.gz: e8c884f72f80d12c29b57880832319b34eab2bcc1290015fd7369877def5bc70
5
5
  SHA512:
6
- metadata.gz: fa9b230ac7d86b887318c9358e005d7cd4f528965948ffc7eef719061ea8a19b0d30496204f69eabfa27ad3f66984d3b4f0042ea250da8de8704255d9c27f9a7
7
- data.tar.gz: 77bb213daa14b8937b7365f78eea257cb7371f15efa8d0cd78ca7edead1611301fa6dbd05b2d98e0d0e031b1a2cb92563779f6ae987d4f3db5e5b2bb72f0c9eb
6
+ metadata.gz: b96e3878cbc0c97f0ccce27a3255fe39441dd8db80fe9650456ddac4287b3c57eb2bf938b3515b96e973a6923047a657a852adb24a9dfc79243ff2d806a3c138
7
+ data.tar.gz: ea69695db5064f7c44f29655cde844b8155dd3a38713870d347017e77a08c4b87920acd8738548f32ce46500715047487c73900b2752f49c0d28dbc3581999fd
@@ -1,41 +1,39 @@
1
- <!--
2
- The Disqus lazy loading.
3
- -->
1
+ <!-- The Disqus lazy loading. -->
4
2
  <div id="disqus_thread" class="pt-2 pb-2">
5
- <p class="text-center text-muted small">
6
- Comments powered by <a href="https://disqus.com/">Disqus</a>.
7
- </p>
3
+ <p class="text-center text-muted small">Comments powered by <a href="https://disqus.com/">Disqus</a>.</p>
8
4
  </div>
9
5
 
10
6
  <script type="text/javascript">
11
-
12
7
  var disqus_config = function () {
13
8
  this.page.url = '{{ page.url | absolute_url }}';
14
9
  this.page.identifier = '{{ page.url }}';
15
10
  };
16
11
 
17
12
  /* Lazy loading */
18
- var disqus_observer = new IntersectionObserver(function (entries) {
19
- if(entries[0].isIntersecting) {
13
+ var disqus_observer = new IntersectionObserver(
14
+ function (entries) {
15
+ if (entries[0].isIntersecting) {
20
16
  (function () {
21
- var d = document, s = d.createElement('script');
22
- s.src = 'https://{{ site.comments.disqus.shortname }}.disqus.com/embed.js';
23
- s.setAttribute('data-timestamp', +new Date());
24
- (d.head || d.body).appendChild(s);
17
+ var d = document,
18
+ s = d.createElement('script');
19
+ s.src = 'https://{{ site.comments.disqus.shortname }}.disqus.com/embed.js';
20
+ s.setAttribute('data-timestamp', +new Date());
21
+ (d.head || d.body).appendChild(s);
25
22
  })();
26
23
 
27
24
  disqus_observer.disconnect();
28
- }
29
- }, { threshold: [0] });
25
+ }
26
+ },
27
+ { threshold: [0] }
28
+ );
30
29
 
31
30
  disqus_observer.observe(document.querySelector('#disqus_thread'));
32
31
 
33
32
  /* Auto switch theme */
34
33
  function reloadDisqus() {
35
- if (event.source === window && event.data &&
36
- event.data.direction === ModeToggle.ID) {
34
+ if (event.source === window && event.data && event.data.direction === ModeToggle.ID) {
37
35
  /* Disqus hasn't been loaded */
38
- if (typeof DISQUS === "undefined") {
36
+ if (typeof DISQUS === 'undefined') {
39
37
  return;
40
38
  }
41
39
 
@@ -45,10 +43,7 @@
45
43
  }
46
44
  }
47
45
 
48
- const modeToggle = document.querySelector(".mode-toggle");
49
-
50
- if (typeof modeToggle !== "undefined") {
51
- window.addEventListener("message", reloadDisqus);
46
+ if (document.querySelector('.mode-toggle')) {
47
+ window.addEventListener('message', reloadDisqus);
52
48
  }
53
-
54
49
  </script>
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * The styles for Jekyll theme Chirpy
3
3
  *
4
- * Chirpy v5.6.0 (https://github.com/cotes2020/jekyll-theme-chirpy)
4
+ * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy)
5
5
  * © 2019 Cotes Chung
6
6
  * MIT Licensed
7
7
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Chirpy v5.6.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
6
- !function(){"use strict";var o=$(".mode-toggle");function t(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function e(o,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,a(n.key),n)}}function n(o,t,n){return t&&e(o.prototype,t),n&&e(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,t,e){return(t=a(t))in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function a(o){var t=function(o,t){if("object"!=typeof o||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(o)}(o,"string");return"symbol"==typeof t?t:String(t)}var i=$("body"),l="sidebar-display",s=function(){function o(){t(this,o)}return n(o,null,[{key:"toggle",value:function(){!1===o.isExpanded?i.attr(l,""):i.removeAttr(l),o.isExpanded=!o.isExpanded}}]),o}();r(s,"isExpanded",!1);var c="div.post>h1:first-of-type",u=$(c),f=$("#topbar-title"),d=f.text().trim();var p=$("#sidebar-trigger"),b=$("#search-trigger"),v=$("#search-cancel"),h=$("#main"),g=$("#topbar-title"),k=$("#search-wrapper"),y=$("#search-result-wrapper"),m=$("#search-results"),w=$("#search-input"),C=$("#search-hints"),T=$("html,body"),L="loaded",x="unloaded",I="input-focus",O="d-flex",U=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){o.offset=window.scrollY,T.scrollTop(0)}},{key:"off",value:function(){T.scrollTop(o.offset)}}]),o}();r(U,"offset",0),r(U,"resultVisible",!1);var S=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){p.addClass(x),g.addClass(x),b.addClass(x),k.addClass(O),v.addClass(L)}},{key:"off",value:function(){v.removeClass(L),k.removeClass(O),p.removeClass(x),g.removeClass(x),b.removeClass(x)}}]),o}(),E=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){U.resultVisible||(U.on(),y.removeClass(x),h.addClass(x),U.resultVisible=!0)}},{key:"off",value:function(){U.resultVisible&&(m.empty(),C.hasClass(x)&&C.removeClass(x),y.addClass(x),h.removeClass(x),U.off(),w.val(""),U.resultVisible=!1)}}]),o}();function j(){return v.hasClass(L)}var P="data-topbar-visible",V=$("body"),H=$("#topbar-wrapper"),M=function(){function o(){t(this,o)}return n(o,null,[{key:"hideTopbar",value:function(){V.attr(P,"false")}},{key:"showTopbar",value:function(){V.attr(P,"true")}},{key:"addScrollUpTask",value:function(){o.scrollUpCount+=1,o.topbarIsLocked||(o.topbarIsLocked=!0)}},{key:"popScrollUpTask",value:function(){o.scrollUpCount-=1}},{key:"hasScrollUpTask",value:function(){return o.scrollUpCount>0}},{key:"topbarLocked",value:function(){return!0===o.topbarIsLocked}},{key:"unlockTopbar",value:function(){o.topbarIsLocked=!1}},{key:"getTopbarHeight",value:function(){return H.outerHeight()}},{key:"orientationLocked",value:function(){return!0===o.orientationIsLocked}},{key:"lockOrientation",value:function(){o.orientationIsLocked=!0}},{key:"unLockOrientation",value:function(){o.orientationIsLocked=!1}}]),o}();r(M,"scrollUpCount",0),r(M,"topbarIsLocked",!1),r(M,"orientationIsLocked",!1);var N,R=$("#search-input"),_=M.getTopbarHeight(),q=0;function A(){0!==$(window).scrollTop()&&(M.lockOrientation(),M.hideTopbar())}function Y(){var o=screen.orientation;o?o.onchange=function(){var t=o.type;"landscape-primary"!==t&&"landscape-secondary"!==t||A()}:$(window).on("orientationchange",(function(){$(window).width()<$(window).height()&&A()})),$(window).on("scroll",(function(){N||(N=!0)})),setInterval((function(){N&&(!function(){var o=$(window).scrollTop();if(!(Math.abs(q-o)<=_)){if(o>q)M.hideTopbar(),R.is(":focus")&&R.trigger("blur");else if(o+$(window).height()<$(document).height()){if(M.hasScrollUpTask())return;M.topbarLocked()?M.unlockTopbar():M.orientationLocked()?M.unLockOrientation():M.showTopbar()}q=o}}(),N=!1)}),250)}var z="l_",B="h_",D=$(".collapse");$(".code-header>button").children().attr("class"),$(window).on("scroll",(function(){$(window).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()})),$("#back-to-top").on("click",(function(){return $("body,html").animate({scrollTop:0},800),!1})),$('[data-toggle="tooltip"]').tooltip(),0!==o.length&&o.off().on("click",(function(o){var t=$(o.target),e=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),e.trigger("blur")})),$("#sidebar-trigger").on("click",s.toggle),$("#mask").on("click",s.toggle),function(){if(0!==u.length&&!u.hasClass("dynamic-title")&&!f.is(":hidden")){var o=u.text().trim(),t=!1,e=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(o)&&(o=o.replace(/[0-9]/g,"").trim()),u.offset().top<$(window).scrollTop()&&f.text(o),new IntersectionObserver((function(n){if(t){var r=$(window).scrollTop(),a=e<r;e=r;var i=n[0];a?0===i.intersectionRatio&&f.text(o):1===i.intersectionRatio&&f.text(d)}else t=!0}),{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(c)),f.on("click",(function(){$("body,html").animate({scrollTop:0},800)}))}}(),b.on("click",(function(){S.on(),E.on(),w.trigger("focus")})),v.on("click",(function(){S.off(),E.off()})),w.on("focus",(function(){k.addClass(I)})),w.on("focusout",(function(){k.removeClass(I)})),w.on("input",(function(){""===w.val()?j()?C.removeClass(x):E.off():(E.on(),j()&&C.addClass(x))})),Y(),D.on("hide.bs.collapse",(function(){var o=B+$(this).attr("id").substring(z.length);o&&($("#".concat(o," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(o," i.fas")).addClass("rotate"),$("#".concat(o)).removeClass("hide-border-bottom"))})),D.on("show.bs.collapse",(function(){var o=B+$(this).attr("id").substring(z.length);o&&($("#".concat(o," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(o," i.fas")).removeClass("rotate"),$("#".concat(o)).addClass("hide-border-bottom"))}))}();
6
+ !function(){"use strict";var o=$(".mode-toggle");function t(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function e(o,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,a(n.key),n)}}function n(o,t,n){return t&&e(o.prototype,t),n&&e(o,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,t,e){return(t=a(t))in o?Object.defineProperty(o,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):o[t]=e,o}function a(o){var t=function(o,t){if("object"!=typeof o||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(o)}(o,"string");return"symbol"==typeof t?t:String(t)}var i=$("body"),l="sidebar-display",s=function(){function o(){t(this,o)}return n(o,null,[{key:"toggle",value:function(){!1===o.isExpanded?i.attr(l,""):i.removeAttr(l),o.isExpanded=!o.isExpanded}}]),o}();r(s,"isExpanded",!1);var c="div.post>h1:first-of-type",u=$(c),f=$("#topbar-title"),d=f.text().trim();var p=$("#sidebar-trigger"),b=$("#search-trigger"),v=$("#search-cancel"),h=$("#main"),g=$("#topbar-title"),k=$("#search-wrapper"),y=$("#search-result-wrapper"),m=$("#search-results"),w=$("#search-input"),C=$("#search-hints"),T=$("html,body"),L="loaded",x="unloaded",I="input-focus",O="d-flex",U=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){o.offset=window.scrollY,T.scrollTop(0)}},{key:"off",value:function(){T.scrollTop(o.offset)}}]),o}();r(U,"offset",0),r(U,"resultVisible",!1);var S=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){p.addClass(x),g.addClass(x),b.addClass(x),k.addClass(O),v.addClass(L)}},{key:"off",value:function(){v.removeClass(L),k.removeClass(O),p.removeClass(x),g.removeClass(x),b.removeClass(x)}}]),o}(),E=function(){function o(){t(this,o)}return n(o,null,[{key:"on",value:function(){U.resultVisible||(U.on(),y.removeClass(x),h.addClass(x),U.resultVisible=!0)}},{key:"off",value:function(){U.resultVisible&&(m.empty(),C.hasClass(x)&&C.removeClass(x),y.addClass(x),h.removeClass(x),U.off(),w.val(""),U.resultVisible=!1)}}]),o}();function j(){return v.hasClass(L)}var P="data-topbar-visible",V=$("body"),_=$("#topbar-wrapper"),H=function(){function o(){t(this,o)}return n(o,null,[{key:"hideTopbar",value:function(){V.attr(P,"false")}},{key:"showTopbar",value:function(){V.attr(P,"true")}},{key:"addScrollUpTask",value:function(){o.scrollUpCount+=1,o.topbarIsLocked||(o.topbarIsLocked=!0)}},{key:"popScrollUpTask",value:function(){o.scrollUpCount-=1}},{key:"hasScrollUpTask",value:function(){return o.scrollUpCount>0}},{key:"topbarLocked",value:function(){return!0===o.topbarIsLocked}},{key:"unlockTopbar",value:function(){o.topbarIsLocked=!1}},{key:"getTopbarHeight",value:function(){return _.outerHeight()}},{key:"orientationLocked",value:function(){return!0===o.orientationIsLocked}},{key:"lockOrientation",value:function(){o.orientationIsLocked=!0}},{key:"unLockOrientation",value:function(){o.orientationIsLocked=!1}}]),o}();r(H,"scrollUpCount",0),r(H,"topbarIsLocked",!1),r(H,"orientationIsLocked",!1);var M,N=$("#search-input"),R=H.getTopbarHeight(),q=0;function A(){0!==$(window).scrollTop()&&(H.lockOrientation(),H.hideTopbar())}function Y(){var o=screen.orientation;o?o.onchange=function(){var t=o.type;"landscape-primary"!==t&&"landscape-secondary"!==t||A()}:$(window).on("orientationchange",(function(){$(window).width()<$(window).height()&&A()})),$(window).on("scroll",(function(){M||(M=!0)})),setInterval((function(){M&&(!function(){var o=$(window).scrollTop();if(!(Math.abs(q-o)<=R)){if(o>q)H.hideTopbar(),N.is(":focus")&&N.trigger("blur");else if(o+$(window).height()<$(document).height()){if(H.hasScrollUpTask())return;H.topbarLocked()?H.unlockTopbar():H.orientationLocked()?H.unLockOrientation():H.showTopbar()}q=o}}(),M=!1)}),250)}var z=$(".collapse");$(".code-header>button").children().attr("class"),$(window).on("scroll",(function(){$(window).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()})),$("#back-to-top").on("click",(function(){return $("body,html").animate({scrollTop:0},800),!1})),$('[data-toggle="tooltip"]').tooltip(),0!==o.length&&o.off().on("click",(function(o){var t=$(o.target),e=t.prop("tagName")==="button".toUpperCase()?t:t.parent();modeToggle.flipMode(),e.trigger("blur")})),$("#sidebar-trigger").on("click",s.toggle),$("#mask").on("click",s.toggle),function(){if(0!==u.length&&!u.hasClass("dynamic-title")&&!f.is(":hidden")){var o=u.text().trim(),t=!1,e=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(o)&&(o=o.replace(/[0-9]/g,"").trim()),u.offset().top<$(window).scrollTop()&&f.text(o),new IntersectionObserver((function(n){if(t){var r=$(window).scrollTop(),a=e<r;e=r;var i=n[0];a?0===i.intersectionRatio&&f.text(o):1===i.intersectionRatio&&f.text(d)}else t=!0}),{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(c)),f.on("click",(function(){$("body,html").animate({scrollTop:0},800)}))}}(),b.on("click",(function(){S.on(),E.on(),w.trigger("focus")})),v.on("click",(function(){S.off(),E.off()})),w.on("focus",(function(){k.addClass(I)})),w.on("focusout",(function(){k.removeClass(I)})),w.on("input",(function(){""===w.val()?j()?C.removeClass(x):E.off():(E.on(),j()&&C.addClass(x))})),Y(),z.on("hide.bs.collapse",(function(){var o="h_"+$(this).attr("id").substring("l_".length);o&&($("#".concat(o," .far.fa-folder-open")).attr("class","far fa-folder fa-fw"),$("#".concat(o," i.fas")).addClass("rotate"),$("#".concat(o)).removeClass("hide-border-bottom"))})),z.on("show.bs.collapse",(function(){var o="h_"+$(this).attr("id").substring("l_".length);o&&($("#".concat(o," .far.fa-folder")).attr("class","far fa-folder-open fa-fw"),$("#".concat(o," i.fas")).removeClass("rotate"),$("#".concat(o)).addClass("hide-border-bottom"))}))}();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v5.6.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v5.6.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Chirpy v5.6.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Chirpy v5.6.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
2
+ * Chirpy v5.6.1 (https://github.com/cotes2020/jekyll-theme-chirpy/)
3
3
  * © 2019 Cotes Chung
4
4
  * MIT Licensed
5
5
  */
6
- !function(){"use strict";var t=$(".mode-toggle");function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function n(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t,e,o){return(e=a(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function a(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var i=$("body"),c="sidebar-display",l=function(){function t(){e(this,t)}return n(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?i.attr(c,""):i.removeAttr(c),t.isExpanded=!t.isExpanded}}]),t}();r(l,"isExpanded",!1);var s="div.post>h1:first-of-type",u=$(s),f=$("#topbar-title"),p=f.text().trim();var d=$("#sidebar-trigger"),h=$("#search-trigger"),g=$("#search-cancel"),v=$("#main"),m=$("#topbar-title"),y=$("#search-wrapper"),b=$("#search-result-wrapper"),w=$("#search-results"),k=$("#search-input"),C=$("#search-hints"),T=$("html,body"),S="loaded",x="unloaded",E="input-focus",I="d-flex",L=function(){function t(){e(this,t)}return n(t,null,[{key:"on",value:function(){t.offset=window.scrollY,T.scrollTop(0)}},{key:"off",value:function(){T.scrollTop(t.offset)}}]),t}();r(L,"offset",0),r(L,"resultVisible",!1);var P=function(){function t(){e(this,t)}return n(t,null,[{key:"on",value:function(){d.addClass(x),m.addClass(x),h.addClass(x),y.addClass(I),g.addClass(S)}},{key:"off",value:function(){g.removeClass(S),y.removeClass(I),d.removeClass(x),m.removeClass(x),h.removeClass(x)}}]),t}(),_=function(){function t(){e(this,t)}return n(t,null,[{key:"on",value:function(){L.resultVisible||(L.on(),b.removeClass(x),v.addClass(x),L.resultVisible=!0)}},{key:"off",value:function(){L.resultVisible&&(w.empty(),C.hasClass(x)&&C.removeClass(x),b.addClass(x),v.removeClass(x),L.off(),k.val(""),L.resultVisible=!1)}}]),t}();function O(){return g.hasClass(S)}var K="data-topbar-visible",R=$("body"),V=$("#topbar-wrapper"),Y=function(){function t(){e(this,t)}return n(t,null,[{key:"hideTopbar",value:function(){R.attr(K,"false")}},{key:"showTopbar",value:function(){R.attr(K,"true")}},{key:"addScrollUpTask",value:function(){t.scrollUpCount+=1,t.topbarIsLocked||(t.topbarIsLocked=!0)}},{key:"popScrollUpTask",value:function(){t.scrollUpCount-=1}},{key:"hasScrollUpTask",value:function(){return t.scrollUpCount>0}},{key:"topbarLocked",value:function(){return!0===t.topbarIsLocked}},{key:"unlockTopbar",value:function(){t.topbarIsLocked=!1}},{key:"getTopbarHeight",value:function(){return V.outerHeight()}},{key:"orientationLocked",value:function(){return!0===t.orientationIsLocked}},{key:"lockOrientation",value:function(){t.orientationIsLocked=!0}},{key:"unLockOrientation",value:function(){t.orientationIsLocked=!1}}]),t}();r(Y,"scrollUpCount",0),r(Y,"topbarIsLocked",!1),r(Y,"orientationIsLocked",!1);var j,F=$("#search-input"),N=Y.getTopbarHeight(),U=0;function A(){0!==$(window).scrollTop()&&(Y.lockOrientation(),Y.hideTopbar())}function M(){var t=screen.orientation;t?t.onchange=function(){var e=t.type;"landscape-primary"!==e&&"landscape-secondary"!==e||A()}:$(window).on("orientationchange",(function(){$(window).width()<$(window).height()&&A()})),$(window).on("scroll",(function(){j||(j=!0)})),setInterval((function(){j&&(!function(){var t=$(window).scrollTop();if(!(Math.abs(U-t)<=N)){if(t>U)Y.hideTopbar(),F.is(":focus")&&F.trigger("blur");else if(t+$(window).height()<$(document).height()){if(Y.hasScrollUpTask())return;Y.topbarLocked()?Y.unlockTopbar():Y.orientationLocked()?Y.unLockOrientation():Y.showTopbar()}U=t}}(),j=!1)}),250)}$(".collapse");var D=".code-header>button",H="fas fa-check",J="timeout",z="data-title-succeed",q="data-original-title",B=2e3;function G(t){if($(t)[0].hasAttribute(J)){var e=$(t).attr(J);if(Number(e)>Date.now())return!0}return!1}function Q(t){$(t).attr(J,Date.now()+B)}function W(t){$(t).removeAttr(J)}var X=$(D).children().attr("class");var Z=function(){function t(){e(this,t)}return n(t,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(e){return Number(e.attr(t.attrTimestamp))}},{key:"getDateFormat",value:function(e){return e.attr(t.attrDateFormat)}}]),t}();var tt,et,ot=(tt=!1,function(){var t=tt;return tt||(tt=!0),t}),nt=function(){function t(t){return $(t).attr("content")}function e(e){var o=t(e);return void 0!==o&&!1!==o}return{getProxyMeta:function(){return t("meta[name=pv-proxy-endpoint]")},getLocalMeta:function(){return t("meta[name=pv-cache-path]")},hasProxyMeta:function(){return e("meta[name=pv-proxy-endpoint]")},hasLocalMeta:function(){return e("meta[name=pv-cache-path]")}}}(),rt=function(){var t={KEY_PV:"pv",KEY_PV_SRC:"pv_src",KEY_CREATION:"pv_created_date"},e="same-origin",o="cors";function n(t){return localStorage.getItem(t)}function r(t,e){localStorage.setItem(t,e)}function a(e,o){r(t.KEY_PV,e),r(t.KEY_PV_SRC,o),r(t.KEY_CREATION,(new Date).toJSON())}return{keysCount:function(){return Object.keys(t).length},hasCache:function(){return null!==localStorage.getItem(t.KEY_PV)},getCache:function(){return JSON.parse(localStorage.getItem(t.KEY_PV))},saveLocalCache:function(t){a(t,e)},saveProxyCache:function(t){a(t,o)},isExpired:function(){var e=new Date(n(t.KEY_CREATION));return e.setHours(e.getHours()+1),Date.now()>=e.getTime()},isFromLocal:function(){return n(t.KEY_PV_SRC)===e},isFromProxy:function(){return n(t.KEY_PV_SRC)===o},newerThan:function(t){return rt.getCache().totalsForAllResults["ga:pageviews"]>t.totalsForAllResults["ga:pageviews"]},inspectKeys:function(){if(localStorage.length===rt.keysCount())for(var e=0;e<localStorage.length;e++){switch(localStorage.key(e)){case t.KEY_PV:case t.KEY_PV_SRC:case t.KEY_CREATION:break;default:return void localStorage.clear()}}else localStorage.clear()}}}();function at(t,e,o,n){var r=function(t,e){var o=0;if(void 0!==e)for(var n=0;n<e.length;++n)if(e[parseInt(n,10)][0]===t){o+=parseInt(e[parseInt(n,10)][1],10);break}return o}(e,t);if(r=0===r?1:r,n){var a=parseInt(o.text().replace(/,/g,""),10);r>a&&function(t,e,o){if(t<e){var n=new CountUp(o,t,e);n.error?console.error(n.error):n.start()}}(a,r,o.attr("id"))}else o.text((new Intl.NumberFormat).format(r))}function it(t){if(void 0!==t){var e=ot(),o=t.rows;if($("#post-list").length>0)$(".post-preview").each((function(){var t=$(this).find("a").attr("href");at(o,t,$(this).find(".pageviews"),e)}));else if($(".post").length>0){var n=window.location.pathname;at(o,n,$("#pv"),e)}}}function ct(){nt.hasProxyMeta()&&$.ajax({type:"GET",url:nt.getProxyMeta(),dataType:"jsonp",jsonpCallback:"displayPageviews",success:function(t){rt.saveProxyCache(JSON.stringify(t))},error:function(t,e,o){console.log("Failed to load pageviews from proxy server: "+o)}})}function lt(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return fetch(nt.getLocalMeta()).then((function(t){return t.json()})).then((function(e){t&&rt.isFromProxy()&&rt.newerThan(e)||(it(e),rt.saveLocalCache(JSON.stringify(e)))}))}$(window).on("scroll",(function(){$(window).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()})),$("#back-to-top").on("click",(function(){return $("body,html").animate({scrollTop:0},800),!1})),$('[data-toggle="tooltip"]').tooltip(),0!==t.length&&t.off().on("click",(function(t){var e=$(t.target),o=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",l.toggle),$("#mask").on("click",l.toggle),function(){if(0!==u.length&&!u.hasClass("dynamic-title")&&!f.is(":hidden")){var t=u.text().trim(),e=!1,o=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(t)&&(t=t.replace(/[0-9]/g,"").trim()),u.offset().top<$(window).scrollTop()&&f.text(t),new IntersectionObserver((function(n){if(e){var r=$(window).scrollTop(),a=o<r;o=r;var i=n[0];a?0===i.intersectionRatio&&f.text(t):1===i.intersectionRatio&&f.text(p)}else e=!0}),{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(s)),f.on("click",(function(){$("body,html").animate({scrollTop:0},800)}))}}(),h.on("click",(function(){P.on(),_.on(),k.trigger("focus")})),g.on("click",(function(){P.off(),_.off()})),k.on("focus",(function(){y.addClass(E)})),k.on("focusout",(function(){y.removeClass(E)})),k.on("input",(function(){""===k.val()?O()?C.removeClass(x):_.off():(_.on(),O()&&C.addClass(x))})),M(),$("#core-wrapper img[data-src]")<=0||($(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),document.addEventListener("lazyloaded",(function(t){$(t.target).parent().removeClass("shimmer")}))),dayjs.locale(Z.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(Z.attrTimestamp,"]")).each((function(){var t=dayjs.unix(Z.getTimestamp($(this))),e=t.format(Z.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(Z.attrTimestamp),$(this).removeAttr(Z.attrDateFormat);var o=$(this).attr("data-toggle");if(void 0!==o&&"tooltip"===o){var n=t.format("llll");$(this).attr("data-original-title",n)}})),et=new ClipboardJS(D,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}}),$(D).tooltip({trigger:"hover",placement:"left"}),et.on("success",(function(t){t.clearSelection();var e=t.trigger;G(e)||(function(t){$(t).children().attr("class",H)}(e),function(t){var e=$(t).attr(z);$(t).attr(q,e).tooltip("show")}(e),Q(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(q)}(e),function(t){$(t).children().attr("class",X)}(e),W(e)}),B))})),$("#copy-link").on("click",(function(t){var e=$(t.target);G(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(q),o=e.attr(z);e.attr(q,o).tooltip("show"),Q(e),setTimeout((function(){e.attr(q,t),W(e)}),B)}))})),tocbot.init({tocSelector:"#toc",contentSelector:".post-content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3",orderedList:!1,scrollSmooth:!1}),function(){var t=$("#topbar-title"),e="scroll-focus";$("a[href*='#']:not([href='#']):not([href='#0'])").on("click",(function(o){if(this.pathname.replace(/^\//,"")===location.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var n=decodeURI(this.hash),r=RegExp(/^#fnref:/).test(n),a=!r&&RegExp(/^#fn:/).test(n),i="#"+$.escapeSelector(n.substring(1)),c=$(i),l=t.is(":visible"),s=$(window).width()<$(window).height();if(void 0!==c){o.preventDefault(),history.pushState&&history.pushState(null,null,n);var u=$(window).scrollTop(),f=c.offset().top-=8;f<u?(Y.hideTopbar(),Y.addScrollUpTask(),l&&s&&(f-=Y.getTopbarHeight())):l&&s&&(f-=Y.getTopbarHeight()),$("html").animate({scrollTop:f},500,(function(){c.trigger("focus");var t=$("[".concat(e,"=true]"));t.length&&t.attr(e,"false");var o=$(":target");if(o.length&&o.attr(e,"false"),(a||r)&&c.attr(e,"true"),c.is(":focus"))return!1;c.attr("tabindex","-1"),c.trigger("focus"),Y.hasScrollUpTask()&&Y.popScrollUpTask()}))}}}))}(),$(".pageviews").length<=0||(rt.inspectKeys(),rt.hasCache()?(it(rt.getCache()),rt.isExpired()?nt.hasLocalMeta()?lt(!0).then(ct):ct():rt.isFromLocal()&&ct()):nt.hasLocalMeta()?lt().then(ct):ct())}();
6
+ !function(){"use strict";var t=$(".mode-toggle");function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function n(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r(t,e,o){return(e=a(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function a(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var i=$("body"),c="sidebar-display",l=function(){function t(){e(this,t)}return n(t,null,[{key:"toggle",value:function(){!1===t.isExpanded?i.attr(c,""):i.removeAttr(c),t.isExpanded=!t.isExpanded}}]),t}();r(l,"isExpanded",!1);var s="div.post>h1:first-of-type",u=$(s),f=$("#topbar-title"),p=f.text().trim();var d=$("#sidebar-trigger"),h=$("#search-trigger"),g=$("#search-cancel"),v=$("#main"),m=$("#topbar-title"),y=$("#search-wrapper"),b=$("#search-result-wrapper"),w=$("#search-results"),k=$("#search-input"),C=$("#search-hints"),T=$("html,body"),S="loaded",x="unloaded",E="input-focus",I="d-flex",L=function(){function t(){e(this,t)}return n(t,null,[{key:"on",value:function(){t.offset=window.scrollY,T.scrollTop(0)}},{key:"off",value:function(){T.scrollTop(t.offset)}}]),t}();r(L,"offset",0),r(L,"resultVisible",!1);var P=function(){function t(){e(this,t)}return n(t,null,[{key:"on",value:function(){d.addClass(x),m.addClass(x),h.addClass(x),y.addClass(I),g.addClass(S)}},{key:"off",value:function(){g.removeClass(S),y.removeClass(I),d.removeClass(x),m.removeClass(x),h.removeClass(x)}}]),t}(),_=function(){function t(){e(this,t)}return n(t,null,[{key:"on",value:function(){L.resultVisible||(L.on(),b.removeClass(x),v.addClass(x),L.resultVisible=!0)}},{key:"off",value:function(){L.resultVisible&&(w.empty(),C.hasClass(x)&&C.removeClass(x),b.addClass(x),v.removeClass(x),L.off(),k.val(""),L.resultVisible=!1)}}]),t}();function O(){return g.hasClass(S)}var K="data-topbar-visible",R=$("body"),V=$("#topbar-wrapper"),Y=function(){function t(){e(this,t)}return n(t,null,[{key:"hideTopbar",value:function(){R.attr(K,"false")}},{key:"showTopbar",value:function(){R.attr(K,"true")}},{key:"addScrollUpTask",value:function(){t.scrollUpCount+=1,t.topbarIsLocked||(t.topbarIsLocked=!0)}},{key:"popScrollUpTask",value:function(){t.scrollUpCount-=1}},{key:"hasScrollUpTask",value:function(){return t.scrollUpCount>0}},{key:"topbarLocked",value:function(){return!0===t.topbarIsLocked}},{key:"unlockTopbar",value:function(){t.topbarIsLocked=!1}},{key:"getTopbarHeight",value:function(){return V.outerHeight()}},{key:"orientationLocked",value:function(){return!0===t.orientationIsLocked}},{key:"lockOrientation",value:function(){t.orientationIsLocked=!0}},{key:"unLockOrientation",value:function(){t.orientationIsLocked=!1}}]),t}();r(Y,"scrollUpCount",0),r(Y,"topbarIsLocked",!1),r(Y,"orientationIsLocked",!1);var F,N=$("#search-input"),U=Y.getTopbarHeight(),j=0;function A(){0!==$(window).scrollTop()&&(Y.lockOrientation(),Y.hideTopbar())}function M(){var t=screen.orientation;t?t.onchange=function(){var e=t.type;"landscape-primary"!==e&&"landscape-secondary"!==e||A()}:$(window).on("orientationchange",(function(){$(window).width()<$(window).height()&&A()})),$(window).on("scroll",(function(){F||(F=!0)})),setInterval((function(){F&&(!function(){var t=$(window).scrollTop();if(!(Math.abs(j-t)<=U)){if(t>j)Y.hideTopbar(),N.is(":focus")&&N.trigger("blur");else if(t+$(window).height()<$(document).height()){if(Y.hasScrollUpTask())return;Y.topbarLocked()?Y.unlockTopbar():Y.orientationLocked()?Y.unLockOrientation():Y.showTopbar()}j=t}}(),F=!1)}),250)}$(".collapse");var D=".code-header>button",H="fas fa-check",J="timeout",q="data-title-succeed",z="data-original-title",B=2e3;function G(t){if($(t)[0].hasAttribute(J)){var e=$(t).attr(J);if(Number(e)>Date.now())return!0}return!1}function Q(t){$(t).attr(J,Date.now()+B)}function W(t){$(t).removeAttr(J)}var X=$(D).children().attr("class");var Z=function(){function t(){e(this,t)}return n(t,null,[{key:"attrTimestamp",get:function(){return"data-ts"}},{key:"attrDateFormat",get:function(){return"data-df"}},{key:"locale",get:function(){return $("html").attr("lang").substring(0,2)}},{key:"getTimestamp",value:function(e){return Number(e.attr(t.attrTimestamp))}},{key:"getDateFormat",value:function(e){return e.attr(t.attrDateFormat)}}]),t}();var tt,et,ot=(tt=!1,function(){var t=tt;return tt||(tt=!0),t}),nt=function(){function t(t){return $(t).attr("content")}function e(e){var o=t(e);return void 0!==o&&!1!==o}return{getProxyMeta:function(){return t("meta[name=pv-proxy-endpoint]")},getLocalMeta:function(){return t("meta[name=pv-cache-path]")},hasProxyMeta:function(){return e("meta[name=pv-proxy-endpoint]")},hasLocalMeta:function(){return e("meta[name=pv-cache-path]")}}}(),rt=function(){var t={KEY_PV:"pv",KEY_PV_SRC:"pv_src",KEY_CREATION:"pv_created_date"},e="same-origin",o="cors";function n(t){return localStorage.getItem(t)}function r(t,e){localStorage.setItem(t,e)}function a(e,o){r(t.KEY_PV,e),r(t.KEY_PV_SRC,o),r(t.KEY_CREATION,(new Date).toJSON())}return{keysCount:function(){return Object.keys(t).length},hasCache:function(){return null!==localStorage.getItem(t.KEY_PV)},getCache:function(){return JSON.parse(localStorage.getItem(t.KEY_PV))},saveLocalCache:function(t){a(t,e)},saveProxyCache:function(t){a(t,o)},isExpired:function(){var e=new Date(n(t.KEY_CREATION));return e.setHours(e.getHours()+1),Date.now()>=e.getTime()},isFromLocal:function(){return n(t.KEY_PV_SRC)===e},isFromProxy:function(){return n(t.KEY_PV_SRC)===o},newerThan:function(t){return rt.getCache().totalsForAllResults["ga:pageviews"]>t.totalsForAllResults["ga:pageviews"]},inspectKeys:function(){if(localStorage.length===rt.keysCount())for(var e=0;e<localStorage.length;e++){switch(localStorage.key(e)){case t.KEY_PV:case t.KEY_PV_SRC:case t.KEY_CREATION:break;default:return void localStorage.clear()}}else localStorage.clear()}}}();function at(t,e,o,n){var r=function(t,e){var o=0;if(void 0!==e)for(var n=0;n<e.length;++n)if(e[parseInt(n,10)][0]===t){o+=parseInt(e[parseInt(n,10)][1],10);break}return o}(e,t);if(r=0===r?1:r,n){var a=parseInt(o.text().replace(/,/g,""),10);r>a&&function(t,e,o){if(t<e){var n=new CountUp(o,t,e);n.error?console.error(n.error):n.start()}}(a,r,o.attr("id"))}else o.text((new Intl.NumberFormat).format(r))}function it(t){if(void 0!==t){var e=ot(),o=t.rows;if($("#post-list").length>0)$(".post-preview").each((function(){var t=$(this).find("a").attr("href");at(o,t,$(this).find(".pageviews"),e)}));else if($(".post").length>0){var n=window.location.pathname;at(o,n,$("#pv"),e)}}}function ct(){nt.hasProxyMeta()&&$.ajax({type:"GET",url:nt.getProxyMeta(),dataType:"jsonp",success:function(t){it(t),rt.saveProxyCache(JSON.stringify(t))},error:function(t,e,o){console.log("Failed to load pageviews from proxy server: "+o)}})}function lt(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return fetch(nt.getLocalMeta()).then((function(t){return t.json()})).then((function(e){t&&rt.isFromProxy()&&rt.newerThan(e)||(it(e),rt.saveLocalCache(JSON.stringify(e)))}))}$(window).on("scroll",(function(){$(window).scrollTop()>50&&"none"===$("#sidebar-trigger").css("display")?$("#back-to-top").fadeIn():$("#back-to-top").fadeOut()})),$("#back-to-top").on("click",(function(){return $("body,html").animate({scrollTop:0},800),!1})),$('[data-toggle="tooltip"]').tooltip(),0!==t.length&&t.off().on("click",(function(t){var e=$(t.target),o=e.prop("tagName")==="button".toUpperCase()?e:e.parent();modeToggle.flipMode(),o.trigger("blur")})),$("#sidebar-trigger").on("click",l.toggle),$("#mask").on("click",l.toggle),function(){if(0!==u.length&&!u.hasClass("dynamic-title")&&!f.is(":hidden")){var t=u.text().trim(),e=!1,o=0;($("#page-category").length||$("#page-tag").length)&&/\s/.test(t)&&(t=t.replace(/[0-9]/g,"").trim()),u.offset().top<$(window).scrollTop()&&f.text(t),new IntersectionObserver((function(n){if(e){var r=$(window).scrollTop(),a=o<r;o=r;var i=n[0];a?0===i.intersectionRatio&&f.text(t):1===i.intersectionRatio&&f.text(p)}else e=!0}),{rootMargin:"-48px 0px 0px 0px",threshold:[0,1]}).observe(document.querySelector(s)),f.on("click",(function(){$("body,html").animate({scrollTop:0},800)}))}}(),h.on("click",(function(){P.on(),_.on(),k.trigger("focus")})),g.on("click",(function(){P.off(),_.off()})),k.on("focus",(function(){y.addClass(E)})),k.on("focusout",(function(){y.removeClass(E)})),k.on("input",(function(){""===k.val()?O()?C.removeClass(x):_.off():(_.on(),O()&&C.addClass(x))})),M(),$("#core-wrapper img[data-src]")<=0||($(".popup").magnificPopup({type:"image",closeOnContentClick:!0,showCloseBtn:!1,zoom:{enabled:!0,duration:300,easing:"ease-in-out"}}),document.addEventListener("lazyloaded",(function(t){$(t.target).parent().removeClass("shimmer")}))),dayjs.locale(Z.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),$("[".concat(Z.attrTimestamp,"]")).each((function(){var t=dayjs.unix(Z.getTimestamp($(this))),e=t.format(Z.getDateFormat($(this)));$(this).text(e),$(this).removeAttr(Z.attrTimestamp),$(this).removeAttr(Z.attrDateFormat);var o=$(this).attr("data-toggle");if(void 0!==o&&"tooltip"===o){var n=t.format("llll");$(this).attr("data-original-title",n)}})),et=new ClipboardJS(D,{target:function(t){return t.parentNode.nextElementSibling.querySelector("code .rouge-code")}}),$(D).tooltip({trigger:"hover",placement:"left"}),et.on("success",(function(t){t.clearSelection();var e=t.trigger;G(e)||(function(t){$(t).children().attr("class",H)}(e),function(t){var e=$(t).attr(q);$(t).attr(z,e).tooltip("show")}(e),Q(e),setTimeout((function(){!function(t){$(t).tooltip("hide").removeAttr(z)}(e),function(t){$(t).children().attr("class",X)}(e),W(e)}),B))})),$("#copy-link").on("click",(function(t){var e=$(t.target);G(e)||navigator.clipboard.writeText(window.location.href).then((function(){var t=e.attr(z),o=e.attr(q);e.attr(z,o).tooltip("show"),Q(e),setTimeout((function(){e.attr(z,t),W(e)}),B)}))})),document.querySelector("#core-wrapper h2,#core-wrapper h3")&&tocbot.init({tocSelector:"#toc",contentSelector:".post-content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3",orderedList:!1,scrollSmooth:!1}),function(){var t=$("#topbar-title"),e="scroll-focus";$("a[href*='#']:not([href='#']):not([href='#0'])").on("click",(function(o){if(this.pathname.replace(/^\//,"")===location.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var n=decodeURI(this.hash),r=RegExp(/^#fnref:/).test(n),a=!r&&RegExp(/^#fn:/).test(n),i="#"+$.escapeSelector(n.substring(1)),c=$(i),l=t.is(":visible"),s=$(window).width()<$(window).height();if(void 0!==c){o.preventDefault(),history.pushState&&history.pushState(null,null,n);var u=$(window).scrollTop(),f=c.offset().top-=8;f<u?(Y.hideTopbar(),Y.addScrollUpTask(),l&&s&&(f-=Y.getTopbarHeight())):l&&s&&(f-=Y.getTopbarHeight()),$("html").animate({scrollTop:f},500,(function(){c.trigger("focus");var t=$("[".concat(e,"=true]"));t.length&&t.attr(e,"false");var o=$(":target");if(o.length&&o.attr(e,"false"),(a||r)&&c.attr(e,"true"),c.is(":focus"))return!1;c.attr("tabindex","-1"),c.trigger("focus"),Y.hasScrollUpTask()&&Y.popScrollUpTask()}))}}}))}(),$(".pageviews").length<=0||(rt.inspectKeys(),rt.hasCache()?(it(rt.getCache()),rt.isExpired()?nt.hasLocalMeta()?lt(!0).then(ct):ct():rt.isFromLocal()&&ct()):nt.hasLocalMeta()?lt().then(ct):ct())}();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-chirpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0
4
+ version: 5.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cotes Chung
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-17 00:00:00.000000000 Z
11
+ date: 2023-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll