root 2 years ago
parent
commit
6673a9930e
100 changed files with 2141 additions and 0 deletions
  1. 1 0
      blog/404.html
  2. 1 0
      blog/404/404.css
  3. 34 0
      blog/404/404.js
  4. 1 0
      blog/404/main.css
  5. 1 0
      blog/404/reset.css
  6. 0 0
      blog/archives/2020/03/index.html
  7. 0 0
      blog/archives/2020/06/index.html
  8. 0 0
      blog/archives/2020/07/index.html
  9. 0 0
      blog/archives/2020/11/index.html
  10. 0 0
      blog/archives/2020/12/index.html
  11. 0 0
      blog/archives/2020/index.html
  12. 0 0
      blog/archives/2021/01/index.html
  13. 0 0
      blog/archives/2021/02/index.html
  14. 0 0
      blog/archives/2021/04/index.html
  15. 0 0
      blog/archives/2021/05/index.html
  16. 0 0
      blog/archives/2021/12/index.html
  17. 0 0
      blog/archives/2021/index.html
  18. 0 0
      blog/archives/2022/01/index.html
  19. 0 0
      blog/archives/2022/02/index.html
  20. 0 0
      blog/archives/2022/07/index.html
  21. 0 0
      blog/archives/2022/09/index.html
  22. 0 0
      blog/archives/2022/10/index.html
  23. 0 0
      blog/archives/2022/index.html
  24. 0 0
      blog/archives/index.html
  25. 0 0
      blog/css/main.css
  26. 1 0
      blog/css/spoiler.css
  27. BIN
      blog/data/3749t1li44aBVT5hu7WQ4IM7Et/dbYTq6tuknPEbbN-6_NA.kdbx
  28. 1 0
      blog/data/3749t1li44aBVT5hu7WQ4IM7Et/z8pfnQb44HJ50B88qK4s7pk8Zm32b.html
  29. BIN
      blog/data/katyusha.mp3
  30. BIN
      blog/flash/ballclock.swf
  31. BIN
      blog/flash/dog.swf
  32. BIN
      blog/flash/hamster.swf
  33. BIN
      blog/flash/treefrog.swf
  34. 0 0
      blog/games/index.html
  35. BIN
      blog/images/KMP-1.png
  36. BIN
      blog/images/ac-auto/1.png
  37. BIN
      blog/images/ac-auto/10.png
  38. BIN
      blog/images/ac-auto/11.png
  39. BIN
      blog/images/ac-auto/12.png
  40. BIN
      blog/images/ac-auto/13.png
  41. BIN
      blog/images/ac-auto/2.png
  42. BIN
      blog/images/ac-auto/2/1.png
  43. BIN
      blog/images/ac-auto/2/10.png
  44. BIN
      blog/images/ac-auto/2/11.png
  45. BIN
      blog/images/ac-auto/2/2.png
  46. BIN
      blog/images/ac-auto/2/3.png
  47. BIN
      blog/images/ac-auto/2/4.png
  48. BIN
      blog/images/ac-auto/2/5.png
  49. BIN
      blog/images/ac-auto/2/6.png
  50. BIN
      blog/images/ac-auto/2/7.png
  51. BIN
      blog/images/ac-auto/2/8.png
  52. BIN
      blog/images/ac-auto/2/9.png
  53. BIN
      blog/images/ac-auto/3.png
  54. BIN
      blog/images/ac-auto/4.png
  55. BIN
      blog/images/ac-auto/5.png
  56. BIN
      blog/images/ac-auto/6.png
  57. BIN
      blog/images/ac-auto/7.png
  58. BIN
      blog/images/ac-auto/8.png
  59. BIN
      blog/images/ac-auto/9.png
  60. 7 0
      blog/images/algolia_logo.svg
  61. BIN
      blog/images/apple-touch-icon-next.png
  62. BIN
      blog/images/avatar.gif
  63. BIN
      blog/images/bird.png
  64. 109 0
      blog/images/cc-by-nc-nd.svg
  65. 111 0
      blog/images/cc-by-nc-sa.svg
  66. 109 0
      blog/images/cc-by-nc.svg
  67. 106 0
      blog/images/cc-by-nd.svg
  68. 109 0
      blog/images/cc-by-sa.svg
  69. 111 0
      blog/images/cc-by.svg
  70. 72 0
      blog/images/cc-zero.svg
  71. BIN
      blog/images/domino-1.png
  72. BIN
      blog/images/ex-KMP-1.png
  73. BIN
      blog/images/ex-KMP-2.png
  74. BIN
      blog/images/favicon-16x16-next.png
  75. BIN
      blog/images/favicon-32x32-next.png
  76. BIN
      blog/images/favicon-frog.png
  77. 23 0
      blog/images/logo.svg
  78. BIN
      blog/images/note-1.png
  79. BIN
      blog/images/pipe.png
  80. 13 0
      blog/images/quote-l.svg
  81. 12 0
      blog/images/quote-r.svg
  82. BIN
      blog/images/rmdbdh.png
  83. BIN
      blog/images/segment-1.png
  84. BIN
      blog/images/tarjan-1.png
  85. BIN
      blog/images/tarjan-2.png
  86. BIN
      blog/images/trie-1.png
  87. BIN
      blog/images/tumor_fixed.png
  88. 0 0
      blog/index.html
  89. 35 0
      blog/js/bird.js
  90. 27 0
      blog/js/md5.js
  91. 103 0
      blog/js/motion.js
  92. 57 0
      blog/js/next-boot.js
  93. 1 0
      blog/js/phaser.min.js
  94. 113 0
      blog/js/schemes/muse.js
  95. 8 0
      blog/js/spoiler.js
  96. 52 0
      blog/js/trail.js
  97. 235 0
      blog/js/utils.js
  98. 7 0
      blog/lib/anime.min.js
  99. 674 0
      blog/lib/fancybox/LICENSE
  100. 7 0
      blog/lib/fancybox/README.html

+ 1 - 0
blog/404.html

@@ -0,0 +1 @@
+<!doctype html><html lang="en"><head><meta charset="utf-8"><title>404</title><link rel="stylesheet" href="/blog/404/404.css"><link rel="stylesheet" href="/blog/404/reset.css"><link rel="stylesheet" href="/blog/404/main.css"><body><div id="fof"><div></div><canvas></canvas></div><p style="color:#000;font-size:40px;text-align:center;transform:translate(0,-100px)">404</p><script src="/blog/404/404.js"></script></body></head></html>

+ 1 - 0
blog/404/404.css

@@ -0,0 +1 @@
+#fof{margin:20px 0 120px;text-align:center}#fof div{position:fixed;width:100%;height:100%;top:0;left:0;background:#000}#fof canvas,#fof img{position:relative;width:960px;height:480px;margin-bottom:20px;z-index:1;background:#000}

File diff suppressed because it is too large
+ 34 - 0
blog/404/404.js


+ 1 - 0
blog/404/main.css

@@ -0,0 +1 @@
+body,html{width:100%;height:100%;overflow:hidden;background:#eee;color:#eee;font-family:Molengo,Arial,Helvetica,sans-serif}a{color:#dcc896}header{padding:10px 0;z-index:999;height:20px;width:100%;background:rgba(0,0,0,.7)}header>div{float:right;margin-right:10px}header div.facebook-button{top:1px}header a{float:left;font-size:14px;color:#eee;margin-left:10px}#fof{margin-top:40px;text-align:center}

+ 1 - 0
blog/404/reset.css

@@ -0,0 +1 @@
+a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}::-moz-selection{background:#FF5E99;color:#fff;text-shadow:none}::selection{background:#FF5E99;color:#fff;text-shadow:none}

File diff suppressed because it is too large
+ 0 - 0
blog/archives/2020/03/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2020/06/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2020/07/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2020/11/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2020/12/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2020/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2021/01/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2021/02/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2021/04/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2021/05/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2021/12/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2021/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2022/01/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2022/02/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2022/07/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2022/09/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2022/10/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/2022/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/archives/index.html


File diff suppressed because it is too large
+ 0 - 0
blog/css/main.css


+ 1 - 0
blog/css/spoiler.css

@@ -0,0 +1 @@
+.spoiler{margin:5px 0;padding:0 15px;border:1px solid #E5E5E5;position:relative;clear:both;border-radius:3px}.spoiler .spoiler-title{background:#E5E5E5;margin:0 -15px;padding:5px 15px;color:#353535;font-weight:700;font-size:13px;display:block;cursor:pointer}.spoiler .spoiler-title:before{font-weight:700}.spoiler.collapsed .spoiler-title:before{content:"显示"}.spoiler.expanded .spoiler-title:before{content:"隐藏"}.spoiler .spoiler-content{padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;-moz-transition-duration:1s;-webkit-transition-duration:1s;-o-transition-duration:1s;transition-duration:1s;-moz-transition-timing-function:ease-in-out;-webkit-transition-timing-function:ease-in-out;-o-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.spoiler.collapsed .spoiler-content{overflow:hidden;max-height:0}.spoiler.expanded .spoiler-content{max-height:30000px;overflow:hidden}.spoiler .spoiler-content p:first-child{margin-top:0!important}

BIN
blog/data/3749t1li44aBVT5hu7WQ4IM7Et/dbYTq6tuknPEbbN-6_NA.kdbx


+ 1 - 0
blog/data/3749t1li44aBVT5hu7WQ4IM7Et/z8pfnQb44HJ50B88qK4s7pk8Zm32b.html

@@ -0,0 +1 @@
+<script type="text/javascript" src="/blog/js/md5.js"></script><script src="https://cdn.jsdelivr.net/npm/js-base64@3.6.0/base64.min.js"></script><script>var k=prompt("p","p");null==k?history.back():"dfe33bfee27d2fda2cd5475240e2d3b7"!==hex_md5(k)?(alert("f"),history.back()):document.write(Base64.decode("PGEgaHJlZj0iLlxkYllUcTZ0dWtuUEViYk4tNl9OQS5rZGJ4Ij5oZWxsbzwvYT4KPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgogICAgY29uc29sZS5sb2coIm11c2ljMTYzIE5FdEVhMkU0ODMtZCIpOwogICAgY29uc29sZS5sb2coImFsaXl1bi5jb20gQWw0eUQ4My1TQzcwMGQiKTsKICAgIGNvbnNvbGUubG9nKCJiaWxpYmlsaSBCNkRqZS1oeTQ4LTNoIik7CiAgICBjb25zb2xlLmxvZygibWFpbCB3aC0yOERTSDBzZC1zYWVmIik7CiAgICBjb25zb2xlLmxvZygieG1pbmQgWE1jMzgtZHNlZjZrIik7CiAgICBjb25zb2xlLmxvZygiaGh3ZGQgMTU5Mzc1LW5vaSIpOwogICAgY29uc29sZS5sb2coIkNsYXNzSW4gaWNvZGU0bjRmIik7CiAgICBjb25zb2xlLmxvZygiZ29vZ2xlIEdlbHNuLTM5ZEVvTEUiKTsKICAgIGNvbnNvbGUubG9nKCJnaXRlZSBHLWRmc2gtNTRJMzk4LXRFZSIpOwo8L3NjcmlwdD4KPHA+CjxEYXRhIEhhc2g9IkQ1REZGMEFBIj4KCQkJMkVCQkMxQTYgRDhERTVFNzIgRkFGQzU0OEMgNjM1RkYwMzgKCQkJMTNFQjE5MjMgRjM1REREMTggRDI3ODFFMzIgMUQ5MzI2MkIKPC9EYXRhPgo8L3A+"))</script>

BIN
blog/data/katyusha.mp3


BIN
blog/flash/ballclock.swf


BIN
blog/flash/dog.swf


BIN
blog/flash/hamster.swf


BIN
blog/flash/treefrog.swf


File diff suppressed because it is too large
+ 0 - 0
blog/games/index.html


BIN
blog/images/KMP-1.png


BIN
blog/images/ac-auto/1.png


BIN
blog/images/ac-auto/10.png


BIN
blog/images/ac-auto/11.png


BIN
blog/images/ac-auto/12.png


BIN
blog/images/ac-auto/13.png


BIN
blog/images/ac-auto/2.png


BIN
blog/images/ac-auto/2/1.png


BIN
blog/images/ac-auto/2/10.png


BIN
blog/images/ac-auto/2/11.png


BIN
blog/images/ac-auto/2/2.png


BIN
blog/images/ac-auto/2/3.png


BIN
blog/images/ac-auto/2/4.png


BIN
blog/images/ac-auto/2/5.png


BIN
blog/images/ac-auto/2/6.png


BIN
blog/images/ac-auto/2/7.png


BIN
blog/images/ac-auto/2/8.png


BIN
blog/images/ac-auto/2/9.png


BIN
blog/images/ac-auto/3.png


BIN
blog/images/ac-auto/4.png


BIN
blog/images/ac-auto/5.png


BIN
blog/images/ac-auto/6.png


BIN
blog/images/ac-auto/7.png


BIN
blog/images/ac-auto/8.png


BIN
blog/images/ac-auto/9.png


File diff suppressed because it is too large
+ 7 - 0
blog/images/algolia_logo.svg


BIN
blog/images/apple-touch-icon-next.png


BIN
blog/images/avatar.gif


BIN
blog/images/bird.png


File diff suppressed because it is too large
+ 109 - 0
blog/images/cc-by-nc-nd.svg


File diff suppressed because it is too large
+ 111 - 0
blog/images/cc-by-nc-sa.svg


File diff suppressed because it is too large
+ 109 - 0
blog/images/cc-by-nc.svg


File diff suppressed because it is too large
+ 106 - 0
blog/images/cc-by-nd.svg


File diff suppressed because it is too large
+ 109 - 0
blog/images/cc-by-sa.svg


File diff suppressed because it is too large
+ 111 - 0
blog/images/cc-by.svg


+ 72 - 0
blog/images/cc-zero.svg

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 13.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 14948)  -->
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 width="80px" height="15px" viewBox="0 0 80 15" enable-background="new 0 0 80 15" xml:space="preserve">
+<g>
+	<g>
+		<rect fill="#FFFFFF" width="80" height="15"/>
+	</g>
+	<path d="M22.797,2C23.8,3.595,24.39,5.477,24.39,7.501c0,2.023-0.589,3.904-1.592,5.499H80V2H22.797z"/>
+	<g>
+		<path id="text2809_5_" d="M12.42,2.031c-3.137,0-3.926,2.959-3.926,5.469s0.787,5.469,3.926,5.469
+			c3.137,0,3.924-2.959,3.924-5.469S15.557,2.031,12.42,2.031z M12.42,4.094c0.127,0,0.242,0.02,0.352,0.047
+			c0.227,0.193,0.336,0.463,0.121,0.838l-2.09,3.838C10.738,8.33,10.729,7.855,10.729,7.5C10.729,6.395,10.807,4.094,12.42,4.094z
+			 M13.982,5.863c0.111,0.588,0.127,1.203,0.127,1.637c0,1.105-0.076,3.406-1.689,3.406c-0.127,0-0.244-0.012-0.354-0.039
+			c-0.02-0.006-0.039-0.014-0.061-0.021c-0.031-0.01-0.066-0.02-0.098-0.031c-0.359-0.154-0.586-0.43-0.26-0.92L13.982,5.863z"/>
+		<path d="M21.229,3.848c-0.465-1.152-1.143-2.172-2.035-3.066C18.907,0.496,18.607,0.241,18.302,0h-3.708
+			c1.248,0.348,2.367,1.009,3.354,1.998c0.736,0.736,1.299,1.576,1.684,2.516s0.578,1.936,0.578,2.986
+			c0,2.184-0.746,3.994-2.227,5.441c-0.771,0.746-1.635,1.32-2.596,1.717c-0.344,0.143-0.694,0.251-1.046,0.342h3.892
+			c0.336-0.257,0.664-0.529,0.972-0.834c0.895-0.871,1.57-1.871,2.021-3c0.465-1.143,0.693-2.363,0.693-3.666
+			C21.92,6.211,21.691,4.99,21.229,3.848z M6.957,12.975c-0.746-0.746-1.322-1.59-1.729-2.527c-0.396-0.951-0.6-1.93-0.6-2.947
+			c0-1.029,0.203-2.016,0.6-2.955c0.406-0.949,0.982-1.803,1.729-2.561C7.916,1.004,9.021,0.346,10.268,0H6.58
+			C6.289,0.235,6.004,0.484,5.732,0.762C4.816,1.676,4.117,2.721,3.631,3.887C3.156,5.041,2.92,6.244,2.92,7.5
+			c0,1.268,0.236,2.471,0.711,3.613s1.164,2.17,2.068,3.086C5.994,14.49,6.305,14.752,6.623,15h3.88
+			c-0.345-0.088-0.686-0.191-1.019-0.328C8.547,14.277,7.705,13.711,6.957,12.975z"/>
+	</g>
+	<g>
+		<path d="M80,0v15H0V0H80 M79.25,0.75H0.75v13.5h78.5V0.75L79.25,0.75z"/>
+	</g>
+	<g>
+		<path fill="#FFFFFF" d="M30.514,8.106c-0.279,0.233-0.678,0.35-1.197,0.35h-0.993v1.717h-0.991V5.398h2.05
+			c0.473,0,0.849,0.123,1.13,0.369s0.422,0.628,0.422,1.144C30.934,7.475,30.794,7.873,30.514,8.106z M29.753,6.387
+			c-0.127-0.106-0.304-0.159-0.531-0.159h-0.898v1.406h0.898c0.228,0,0.404-0.058,0.531-0.172c0.126-0.114,0.189-0.296,0.189-0.544
+			C29.942,6.669,29.879,6.492,29.753,6.387z"/>
+		<path fill="#FFFFFF" d="M31.733,5.398h1.015v2.933c0,0.328,0.038,0.567,0.116,0.718c0.12,0.268,0.383,0.401,0.787,0.401
+			c0.402,0,0.664-0.134,0.784-0.401c0.077-0.15,0.116-0.39,0.116-0.718V5.398h1.014v2.935c0,0.508-0.079,0.902-0.236,1.186
+			c-0.293,0.519-0.853,0.777-1.678,0.777c-0.826,0-1.387-0.259-1.682-0.777c-0.157-0.283-0.236-0.678-0.236-1.186V5.398z"/>
+		<path fill="#FFFFFF" d="M40.085,5.907c0.146,0.203,0.219,0.446,0.219,0.729c0,0.292-0.074,0.526-0.221,0.703
+			c-0.083,0.1-0.204,0.19-0.364,0.272c0.243,0.088,0.427,0.229,0.551,0.421s0.187,0.425,0.187,0.699
+			c0,0.283-0.071,0.537-0.213,0.761c-0.09,0.149-0.203,0.274-0.338,0.376c-0.152,0.117-0.332,0.196-0.539,0.24
+			c-0.208,0.043-0.433,0.064-0.675,0.064H36.54V5.398h2.308C39.43,5.407,39.842,5.577,40.085,5.907z M37.492,6.228V7.28h1.16
+			c0.208,0,0.376-0.039,0.505-0.118c0.13-0.079,0.194-0.219,0.194-0.419c0-0.223-0.086-0.369-0.257-0.44
+			c-0.147-0.05-0.335-0.075-0.563-0.075H37.492z M37.492,8.07v1.273h1.159c0.207,0,0.368-0.028,0.483-0.084
+			c0.209-0.104,0.313-0.303,0.313-0.597c0-0.248-0.101-0.419-0.304-0.512C39.031,8.1,38.872,8.073,38.667,8.07H37.492z"/>
+		<path fill="#FFFFFF" d="M41.313,5.398h0.998v3.916h2.384v0.858h-3.382V5.398z"/>
+		<path fill="#FFFFFF" d="M46.275,10.173h-0.991V5.398h0.991V10.173z"/>
+		<path fill="#FFFFFF" d="M47.665,5.897c0.385-0.393,0.874-0.59,1.468-0.59c0.795,0,1.376,0.264,1.743,0.791
+			c0.203,0.296,0.312,0.593,0.327,0.891h-0.998c-0.063-0.229-0.145-0.402-0.244-0.519c-0.178-0.207-0.441-0.311-0.79-0.311
+			c-0.355,0-0.636,0.146-0.841,0.438s-0.308,0.707-0.308,1.242s0.108,0.937,0.324,1.203c0.217,0.267,0.492,0.4,0.826,0.4
+			c0.342,0,0.603-0.114,0.782-0.344c0.1-0.123,0.182-0.308,0.247-0.554h0.991c-0.086,0.521-0.304,0.943-0.655,1.27
+			s-0.802,0.489-1.351,0.489c-0.68,0-1.214-0.221-1.603-0.661c-0.389-0.442-0.583-1.049-0.583-1.82
+			C47.002,6.991,47.224,6.349,47.665,5.897z"/>
+		<path fill="#FFFFFF" d="M54.797,5.502c0.335,0.11,0.606,0.312,0.813,0.606c0.167,0.237,0.28,0.494,0.341,0.771
+			s0.091,0.54,0.091,0.79c0,0.635-0.128,1.173-0.383,1.613c-0.346,0.594-0.88,0.891-1.602,0.891h-2.059V5.398h2.059
+			C54.354,5.403,54.601,5.438,54.797,5.502z M52.968,6.228v3.116h0.922c0.471,0,0.8-0.232,0.985-0.696
+			c0.102-0.255,0.152-0.559,0.152-0.91c0-0.486-0.076-0.859-0.229-1.119s-0.455-0.391-0.909-0.391H52.968z"/>
+		<path fill="#FFFFFF" d="M60.466,9.749c-0.36,0.371-0.882,0.557-1.564,0.557s-1.204-0.186-1.564-0.557
+			c-0.483-0.456-0.726-1.112-0.726-1.97c0-0.875,0.242-1.531,0.726-1.97c0.36-0.371,0.882-0.557,1.564-0.557
+			s1.204,0.186,1.564,0.557c0.481,0.438,0.722,1.095,0.722,1.97C61.188,8.637,60.947,9.293,60.466,9.749z M59.842,9.023
+			c0.232-0.292,0.349-0.706,0.349-1.244c0-0.535-0.116-0.949-0.349-1.242c-0.231-0.293-0.545-0.438-0.94-0.438
+			s-0.711,0.146-0.946,0.437c-0.235,0.292-0.353,0.706-0.353,1.244s0.117,0.952,0.353,1.244c0.235,0.291,0.551,0.437,0.946,0.437
+			S59.61,9.314,59.842,9.023z"/>
+		<path fill="#FFFFFF" d="M65.116,5.398h1.436v4.774h-0.929V6.943c0-0.093,0.001-0.223,0.003-0.39
+			c0.002-0.168,0.003-0.297,0.003-0.388l-0.904,4.007h-0.97l-0.898-4.007c0,0.091,0.001,0.22,0.003,0.388
+			c0.003,0.167,0.004,0.297,0.004,0.39v3.229h-0.93V5.398h1.451l0.869,3.754L65.116,5.398z"/>
+		<path fill="#FFFFFF" d="M68.84,5.398h1.129l1.689,4.774h-1.082l-0.314-0.981h-1.759l-0.323,0.981h-1.044L68.84,5.398z
+			 M68.774,8.369h1.223L69.395,6.49L68.774,8.369z"/>
+		<path fill="#FFFFFF" d="M73.175,10.173h-0.991V5.398h0.991V10.173z"/>
+		<path fill="#FFFFFF" d="M74.093,5.398h1.046l1.895,3.329V5.398h0.93v4.774h-0.997l-1.943-3.388v3.388h-0.93V5.398z"/>
+	</g>
+</g>
+</svg>

BIN
blog/images/domino-1.png


BIN
blog/images/ex-KMP-1.png


BIN
blog/images/ex-KMP-2.png


BIN
blog/images/favicon-16x16-next.png


BIN
blog/images/favicon-32x32-next.png


BIN
blog/images/favicon-frog.png


+ 23 - 0
blog/images/logo.svg

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xml:space="preserve"
+   enable-background="new 0 0 512 512"
+   viewBox="0 0 512 512"
+   height="512px"
+   width="512px"
+   y="0px"
+   x="0px"
+   id="NexT"
+   version="1.1"><metadata
+     id="metadata3390"><rdf:RDF><cc:Work
+         rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
+     id="defs3388" /><path
+     style="fill:#222222;fill-opacity:1"
+     id="path3384"
+     d="M 256.4,25.8 56.4,141.3 56,371.5 255.6,486.2 455.6,370.7 456,140.5 Z m 92.6,328.8 -18.4,10.7 -18.6,-11 0,0 -112,-142.3 0,142.6 -18.4,10.7 -18.6,-11 0,-197 18.5,-10.6 18.5,10.8 0,0 112,144.5 0,-144.6 18.5,-10.6 18.5,10.8 z" /></svg>

BIN
blog/images/note-1.png


BIN
blog/images/pipe.png


+ 13 - 0
blog/images/quote-l.svg

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- License Agreement at http://iconmonstr.com/license/ -->
+
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
+<path id="quote-5-icon" d="M55.178,332.895c-22.22-79.435,26.876-198.974,151.004-223.472l16.886,36.498
+	c-38.022,14.331-63.218,47.064-66.943,81.466c42.757,6.73,75.459,43.737,75.459,88.385
+	C231.583,415.014,85.181,440.162,55.178,332.895z M285.595,332.895c-22.22-79.435,26.876-198.974,151.004-223.472l16.886,36.498
+	c-38.022,14.331-63.218,47.064-66.943,81.466c42.757,6.73,75.459,43.737,75.459,88.385C462,415.014,315.598,440.162,285.595,332.895
+	z"/>
+</svg>

+ 12 - 0
blog/images/quote-r.svg

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- License Agreement at http://iconmonstr.com/license/ -->
+
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
+<path id="quote-6-icon" d="M456.822,179.107c22.219,79.434-26.877,198.973-151.004,223.471l-16.887-36.498
+	c38.023-14.33,63.219-47.064,66.943-81.465c-42.756-6.73-75.459-43.739-75.459-88.385
+	C280.416,96.986,426.818,71.837,456.822,179.107z M226.405,179.107c22.22,79.434-26.876,198.973-151.004,223.471L58.515,366.08
+	c38.022-14.33,63.218-47.064,66.943-81.465C82.702,277.885,50,240.876,50,196.23C50,96.986,196.402,71.837,226.405,179.107z"/>
+</svg>

BIN
blog/images/rmdbdh.png


BIN
blog/images/segment-1.png


BIN
blog/images/tarjan-1.png


BIN
blog/images/tarjan-2.png


BIN
blog/images/trie-1.png


BIN
blog/images/tumor_fixed.png


File diff suppressed because it is too large
+ 0 - 0
blog/index.html


+ 35 - 0
blog/js/bird.js

@@ -0,0 +1,35 @@
+'use strict';
+var game = new Phaser.Game(400, 490, Phaser.AUTO, 'game_div'), game_state = {
+        main: function () {
+        }
+    };
+game_state.main.prototype = {
+    preload: function () {
+        this.game.stage.backgroundColor = '#71c5cf', this.game.load.image('bird', '../images/bird.png'), this.game.load.image('pipe', '../images/pipe.png');
+    },
+    create: function () {
+        this.bird = this.game.add.sprite(100, 245, 'bird'), this.bird.body.gravity.y = 600, this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR).onDown.add(this.jump, this), this.pipes = game.add.group(), this.pipes.createMultiple(20, 'pipe'), this.timer = this.game.time.events.loop(1500, this.add_row_of_pipes, this), this.score = 0;
+        this.label_score = this.game.add.text(20, 20, '0', {
+            font: '30px Comic Sans MS',
+            fill: '#ffffff'
+        });
+    },
+    update: function () {
+        0 == this.bird.inWorld && this.restart_game(), this.bird.body.gravity.y = 0.8 * this.bird.body.y + 600, this.game.physics.overlap(this.bird, this.pipes, this.restart_game, null, this);
+    },
+    jump: function () {
+        this.bird.body.velocity.y = Math.max(this.bird.body.velocity.y / 3 + 250 - this.bird.body.gravity.y / 1.5, -450);
+    },
+    restart_game: function () {
+        this.game.time.events.remove(this.timer), this.game.state.start('main');
+    },
+    add_one_pipe: function (t, i) {
+        var e = this.pipes.getFirstDead();
+        e.reset(t, i), e.body.velocity.x = -200, e.outOfBoundsKill = !0;
+    },
+    add_row_of_pipes: function () {
+        for (var t = Math.floor(5 * Math.random()) + 1, i = 0; i < 8; i++)
+            i != t && i != t + 1 && (i != t - 1 || i == t - 1 && Math.random() < 0.6) && this.add_one_pipe(400, 60 * i + 10);
+        this.score += 1, this.label_score.content = this.score;
+    }
+}, game.state.add('main', game_state.main), game.state.start('main');

File diff suppressed because it is too large
+ 27 - 0
blog/js/md5.js


+ 103 - 0
blog/js/motion.js

@@ -0,0 +1,103 @@
+'use strict';
+window.$ && window.$.Velocity && (window.Velocity = window.$.Velocity), NexT.motion = {}, NexT.motion.integrator = {
+    queue: [],
+    cursor: -1,
+    init: function () {
+        return this.queue = [], this.cursor = -1, this;
+    },
+    add: function (t) {
+        return this.queue.push(t), this;
+    },
+    next: function () {
+        this.cursor++;
+        var t = this.queue[this.cursor];
+        'function' == typeof t && t(NexT.motion.integrator);
+    },
+    bootstrap: function () {
+        this.next();
+    }
+}, NexT.motion.middleWares = {
+    logo: function (t) {
+        var e = [], o = document.querySelector('.brand'), n = document.querySelector('.custom-logo-image'), i = document.querySelector('.site-title'), r = document.querySelector('.site-subtitle'), c = document.querySelector('.logo-line-before i'), u = document.querySelector('.logo-line-after i');
+        function s(t, e) {
+            return {
+                e: t,
+                p: { translateX: e },
+                o: {
+                    duration: 500,
+                    sequenceQueue: !1
+                }
+            };
+        }
+        function l() {
+            e.push({
+                e: n,
+                p: {
+                    opacity: 1,
+                    top: 0
+                },
+                o: { duration: 200 }
+            });
+        }
+        o && e.push({
+            e: o,
+            p: { opacity: 1 },
+            o: { duration: 200 }
+        }), 'Mist' === CONFIG.scheme && c && u && e.push(s(c, '100%'), s(u, '-100%')), 'Muse' === CONFIG.scheme && n && l(), i && e.push({
+            e: i,
+            p: {
+                opacity: 1,
+                top: 0
+            },
+            o: { duration: 200 }
+        }), r && e.push({
+            e: r,
+            p: {
+                opacity: 1,
+                top: 0
+            },
+            o: { duration: 200 }
+        }), 'Pisces' !== CONFIG.scheme && 'Gemini' !== CONFIG.scheme || !n || l(), 0 < e.length ? (e[e.length - 1].o.complete = function () {
+            t.next();
+        }, Velocity.RunSequence(e)) : t.next(), CONFIG.motion.async && t.next();
+    },
+    menu: function (t) {
+        Velocity(document.querySelectorAll('.menu-item'), 'transition.slideDownIn', {
+            display: null,
+            duration: 200,
+            complete: function () {
+                t.next();
+            }
+        }), CONFIG.motion.async && t.next();
+    },
+    subMenu: function (t) {
+        var e = document.querySelectorAll('.sub-menu .menu-item');
+        0 < e.length && e.forEach(function (t) {
+            t.style.opacity = 1;
+        }), t.next();
+    },
+    postList: function (t) {
+        var e = document.querySelectorAll('.post-block, .pagination, .comments'), o = CONFIG.motion.transition.post_block, n = document.querySelectorAll('.post-header'), i = CONFIG.motion.transition.post_header, r = document.querySelectorAll('.post-body'), c = CONFIG.motion.transition.post_body, u = document.querySelectorAll('.collection-header'), s = CONFIG.motion.transition.coll_header;
+        if (0 < e.length) {
+            var l = window.postMotionOptions || {
+                stagger: 100,
+                drag: !0,
+                complete: function () {
+                    t.next();
+                }
+            };
+            CONFIG.motion.transition.post_block && Velocity(e, 'transition.' + o, l), CONFIG.motion.transition.post_header && Velocity(n, 'transition.' + i, l), CONFIG.motion.transition.post_body && Velocity(r, 'transition.' + c, l), CONFIG.motion.transition.coll_header && Velocity(u, 'transition.' + s, l);
+        }
+        'Pisces' !== CONFIG.scheme && 'Gemini' !== CONFIG.scheme || t.next();
+    },
+    sidebar: function (t) {
+        var e = document.querySelector('.sidebar-inner'), o = CONFIG.motion.transition.sidebar;
+        !o || 'Pisces' !== CONFIG.scheme && 'Gemini' !== CONFIG.scheme || Velocity(e, 'transition.' + o, {
+            display: null,
+            duration: 200,
+            complete: function () {
+                e.style.transform = 'initial';
+            }
+        }), t.next();
+    }
+};

+ 57 - 0
blog/js/next-boot.js

@@ -0,0 +1,57 @@
+'use strict';
+function _toConsumableArray(e) {
+    if (Array.isArray(e)) {
+        for (var t = 0, i = Array(e.length); t < e.length; t++)
+            i[t] = e[t];
+        return i;
+    }
+    return Array.from(e);
+}
+NexT.boot = {}, NexT.boot.registerEvents = function () {
+    NexT.utils.registerScrollPercent(), NexT.utils.registerCanIUseTag(), document.querySelector('.site-nav-toggle .toggle').addEventListener('click', function () {
+        event.currentTarget.classList.toggle('toggle-close');
+        var e = document.querySelector('.site-nav'), t = e.classList.contains('site-nav-on') ? 'slideUp' : 'slideDown';
+        'function' == typeof Velocity ? Velocity(e, t, {
+            duration: 200,
+            complete: function () {
+                e.classList.toggle('site-nav-on');
+            }
+        }) : e.classList.toggle('site-nav-on');
+    });
+    document.querySelectorAll('.sidebar-nav li').forEach(function (e, s) {
+        e.addEventListener('click', function (e) {
+            var t = e.currentTarget, i = 'sidebar-nav-active', o = 'sidebar-panel-active';
+            if (!t.classList.contains(i)) {
+                var n = document.querySelectorAll('.sidebar-panel'), a = n[s], r = n[1 - s];
+                window.anime({
+                    targets: r,
+                    duration: 200,
+                    easing: 'linear',
+                    opacity: 0,
+                    complete: function () {
+                        r.classList.remove(o), a.style.opacity = 0, a.classList.add(o), window.anime({
+                            targets: a,
+                            duration: 200,
+                            easing: 'linear',
+                            opacity: 1
+                        });
+                    }
+                }), [].concat(_toConsumableArray(t.parentNode.children)).forEach(function (e) {
+                    e.classList.remove(i);
+                }), t.classList.add(i);
+            }
+        });
+    }), window.addEventListener('resize', NexT.utils.initSidebarDimension), window.addEventListener('hashchange', function () {
+        var e = location.hash;
+        if ('' !== e && !e.match(/%\S{2}/)) {
+            var t = document.querySelector('.tabs ul.nav-tabs li a[href="' + e + '"]');
+            t && t.click();
+        }
+    });
+}, NexT.boot.refresh = function () {
+    CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(), CONFIG.mediumzoom && window.mediumZoom('.post-body :not(a) > img, .post-body > img'), CONFIG.lazyload && window.lozad('.post-body img').observe(), CONFIG.pangu && window.pangu.spacingPage(), CONFIG.exturl && NexT.utils.registerExtURL(), CONFIG.copycode.enable && NexT.utils.registerCopyCode(), NexT.utils.registerTabsTag(), NexT.utils.registerActiveMenuItem(), NexT.utils.registerLangSelect(), NexT.utils.registerSidebarTOC(), NexT.utils.wrapTableWithBox(), NexT.utils.registerVideoIframe();
+}, NexT.boot.motion = function () {
+    CONFIG.motion.enable && NexT.motion.integrator.add(NexT.motion.middleWares.logo).add(NexT.motion.middleWares.menu).add(NexT.motion.middleWares.postList).add(NexT.motion.middleWares.sidebar).bootstrap(), NexT.utils.updateSidebarPosition();
+}, window.addEventListener('DOMContentLoaded', function () {
+    NexT.boot.registerEvents(), NexT.boot.refresh(), NexT.boot.motion();
+});

File diff suppressed because it is too large
+ 1 - 0
blog/js/phaser.min.js


+ 113 - 0
blog/js/schemes/muse.js

@@ -0,0 +1,113 @@
+/* global NexT, CONFIG, Velocity */
+
+window.addEventListener('DOMContentLoaded', () => {
+
+  var isRight = CONFIG.sidebar.position === 'right';
+  var SIDEBAR_WIDTH = CONFIG.sidebar.width || 320;
+  var SIDEBAR_DISPLAY_DURATION = 200;
+  var mousePos = {};
+
+  var sidebarToggleLines = {
+    lines: document.querySelector('.sidebar-toggle'),
+    init : function() {
+      this.lines.classList.remove('toggle-arrow', 'toggle-close');
+    },
+    arrow: function() {
+      this.lines.classList.remove('toggle-close');
+      this.lines.classList.add('toggle-arrow');
+    },
+    close: function() {
+      this.lines.classList.remove('toggle-arrow');
+      this.lines.classList.add('toggle-close');
+    }
+  };
+
+  var sidebarToggleMotion = {
+    sidebarEl       : document.querySelector('.sidebar'),
+    isSidebarVisible: false,
+    init            : function() {
+      sidebarToggleLines.init();
+
+      window.addEventListener('mousedown', this.mousedownHandler.bind(this));
+      window.addEventListener('mouseup', this.mouseupHandler.bind(this));
+      document.querySelector('#sidebar-dimmer').addEventListener('click', this.clickHandler.bind(this));
+      document.querySelector('.sidebar-toggle').addEventListener('click', this.clickHandler.bind(this));
+      document.querySelector('.sidebar-toggle').addEventListener('mouseenter', this.mouseEnterHandler.bind(this));
+      document.querySelector('.sidebar-toggle').addEventListener('mouseleave', this.mouseLeaveHandler.bind(this));
+      window.addEventListener('sidebar:show', this.showSidebar.bind(this));
+      window.addEventListener('sidebar:hide', this.hideSidebar.bind(this));
+    },
+    mousedownHandler: function(event) {
+      mousePos.X = event.pageX;
+      mousePos.Y = event.pageY;
+    },
+    mouseupHandler: function(event) {
+      var deltaX = event.pageX - mousePos.X;
+      var deltaY = event.pageY - mousePos.Y;
+      var clickingBlankPart = Math.sqrt((deltaX * deltaX) + (deltaY * deltaY)) < 20 && event.target.matches('.main');
+      if (this.isSidebarVisible && (clickingBlankPart || event.target.matches('img.medium-zoom-image, .fancybox img'))) {
+        this.hideSidebar();
+      }
+    },
+    clickHandler: function() {
+      this.isSidebarVisible ? this.hideSidebar() : this.showSidebar();
+    },
+    mouseEnterHandler: function() {
+      if (!this.isSidebarVisible) {
+        sidebarToggleLines.arrow();
+      }
+    },
+    mouseLeaveHandler: function() {
+      if (!this.isSidebarVisible) {
+        sidebarToggleLines.init();
+      }
+    },
+    showSidebar: function() {
+      this.isSidebarVisible = true;
+      this.sidebarEl.classList.add('sidebar-active');
+      if (typeof Velocity === 'function') {
+        Velocity(document.querySelectorAll('.sidebar .motion-element'), isRight ? 'transition.slideRightIn' : 'transition.slideLeftIn', {
+          stagger: 50,
+          drag   : true
+        });
+      }
+
+      sidebarToggleLines.close();
+      NexT.utils.isDesktop() && window.anime(Object.assign({
+        targets : document.body,
+        duration: SIDEBAR_DISPLAY_DURATION,
+        easing  : 'linear'
+      }, isRight ? {
+        'padding-right': SIDEBAR_WIDTH
+      } : {
+        'padding-left': SIDEBAR_WIDTH
+      }));
+    },
+    hideSidebar: function() {
+      this.isSidebarVisible = false;
+      this.sidebarEl.classList.remove('sidebar-active');
+
+      sidebarToggleLines.init();
+      NexT.utils.isDesktop() && window.anime(Object.assign({
+        targets : document.body,
+        duration: SIDEBAR_DISPLAY_DURATION,
+        easing  : 'linear'
+      }, isRight ? {
+        'padding-right': 0
+      } : {
+        'padding-left': 0
+      }));
+    }
+  };
+  sidebarToggleMotion.init();
+
+  function updateFooterPosition() {
+    var footer = document.querySelector('.footer');
+    var containerHeight = document.querySelector('.header').offsetHeight + document.querySelector('.main').offsetHeight + footer.offsetHeight;
+    footer.classList.toggle('footer-fixed', containerHeight <= window.innerHeight);
+  }
+
+  updateFooterPosition();
+  window.addEventListener('resize', updateFooterPosition);
+  window.addEventListener('scroll', updateFooterPosition);
+});

+ 8 - 0
blog/js/spoiler.js

@@ -0,0 +1,8 @@
+'use strict';
+!function (e) {
+    [].forEach.call(e.getElementsByClassName('spoiler'), function (e) {
+        e.getElementsByClassName('spoiler-title')[0].onclick = function () {
+            e.classList.toggle('collapsed'), e.classList.toggle('expanded');
+        };
+    });
+}(document);

+ 52 - 0
blog/js/trail.js

@@ -0,0 +1,52 @@
+'use strict';
+var canvas, context, particles, SCREEN_WIDTH = window.innerWidth, SCREEN_HEIGHT = window.innerHeight, RADIUS = 60, RADIUS_SCALE = 1, RADIUS_SCALE_MIN = 1, RADIUS_SCALE_MAX = 1.5, QUANTITY = 25, mouseX = 0.5 * SCREEN_WIDTH, mouseY = 0.5 * SCREEN_HEIGHT, mouseIsDown = !1;
+function init() {
+    (canvas = document.getElementById('world')) && canvas.getContext && (context = canvas.getContext('2d'), document.addEventListener('mousemove', documentMouseMoveHandler, !1), document.addEventListener('mousedown', documentMouseDownHandler, !1), document.addEventListener('mouseup', documentMouseUpHandler, !1), document.addEventListener('touchstart', documentTouchStartHandler, !1), document.addEventListener('touchmove', documentTouchMoveHandler, !1), window.addEventListener('resize', windowResizeHandler, !1), createParticles(), windowResizeHandler(), setInterval(loop, 1000 / 60));
+}
+function createParticles() {
+    particles = [];
+    for (var e = 0; e < QUANTITY; e++) {
+        var t = {
+            position: {
+                x: mouseX,
+                y: mouseY
+            },
+            shift: {
+                x: mouseX,
+                y: mouseY
+            },
+            size: 1,
+            angle: 0,
+            speed: 0.01 + 0.04 * Math.random(),
+            targetSize: 1,
+            fillColor: '#' + (4210752 * Math.random() + 11184810 | 0).toString(16),
+            orbit: 0.5 * RADIUS + 0.5 * RADIUS * Math.random()
+        };
+        particles.push(t);
+    }
+}
+function documentMouseMoveHandler(e) {
+    mouseX = e.clientX, mouseY = e.clientY;
+}
+function documentMouseDownHandler(e) {
+    mouseIsDown = !0;
+}
+function documentMouseUpHandler(e) {
+    mouseIsDown = !1;
+}
+function documentTouchStartHandler(e) {
+    1 == e.touches.length && (e.preventDefault(), mouseX = e.touches[0].pageX - 0.5 * (window.innerWidth - SCREEN_WIDTH), mouseY = e.touches[0].pageY - 0.5 * (window.innerHeight - SCREEN_HEIGHT));
+}
+function documentTouchMoveHandler(e) {
+    1 == e.touches.length && (e.preventDefault(), mouseX = e.touches[0].pageX - 0.5 * (window.innerWidth - SCREEN_WIDTH), mouseY = e.touches[0].pageY - 0.5 * (window.innerHeight - SCREEN_HEIGHT));
+}
+function windowResizeHandler() {
+    SCREEN_WIDTH = window.innerWidth, SCREEN_HEIGHT = window.innerHeight, canvas.width = SCREEN_WIDTH, canvas.height = SCREEN_HEIGHT;
+}
+function loop() {
+    for (context.shadowBlur = 3, mouseIsDown ? RADIUS_SCALE += 0.02 * (RADIUS_SCALE_MAX - RADIUS_SCALE) : RADIUS_SCALE -= 0.02 * (RADIUS_SCALE - RADIUS_SCALE_MIN), RADIUS_SCALE = Math.min(RADIUS_SCALE, RADIUS_SCALE_MAX), i = 0, len = particles.length; i < len; i++) {
+        var e = particles[i];
+        e.angle += e.speed, e.shift.x += (mouseX - e.shift.x) * e.speed, e.shift.y += (mouseY - e.shift.y) * e.speed, e.position.x = e.shift.x + Math.cos(i + e.angle) * (e.orbit * RADIUS_SCALE), e.position.y = e.shift.y + Math.sin(i + e.angle) * (e.orbit * RADIUS_SCALE), e.position.x = Math.max(Math.min(e.position.x, SCREEN_WIDTH), 0), e.position.y = Math.max(Math.min(e.position.y, SCREEN_HEIGHT), 0), e.size += 0.05 * (e.targetSize - e.size), Math.round(e.size) == Math.round(e.targetSize) && (e.targetSize = 1 + 7 * Math.random()), context.beginPath(), context.fillStyle = e.fillColor, context.moveTo(e.position.x, e.position.y), context.arc(e.position.x, e.position.y, e.size, 0, 2 * Math.PI, !0), context.fill();
+    }
+}
+init();

+ 235 - 0
blog/js/utils.js

@@ -0,0 +1,235 @@
+'use strict';
+function _toConsumableArray(e) {
+    if (Array.isArray(e)) {
+        for (var t = 0, n = Array(e.length); t < e.length; t++)
+            n[t] = e[t];
+        return n;
+    }
+    return Array.from(e);
+}
+HTMLElement.prototype.wrap = function (e) {
+    this.parentNode.insertBefore(e, this), this.parentNode.removeChild(this), e.appendChild(this);
+}, NexT.utils = {
+    wrapImageWithFancyBox: function () {
+        document.querySelectorAll('.post-body :not(a) > img, .post-body > img').forEach(function (e) {
+            var t = $(e), n = t.attr('data-src') || t.attr('src'), a = t.wrap('<a class="fancybox fancybox.image" href="' + n + '" itemscope itemtype="http://schema.org/ImageObject" itemprop="url"></a>').parent('a');
+            t.is('.post-gallery img') ? a.attr('data-fancybox', 'gallery').attr('rel', 'gallery') : t.is('.group-picture img') ? a.attr('data-fancybox', 'group').attr('rel', 'group') : a.attr('data-fancybox', 'default').attr('rel', 'default');
+            var r = t.attr('title') || t.attr('alt');
+            r && (a.append('<p class="image-caption">' + r + '</p>'), a.attr('title', r).attr('data-caption', r));
+        }), $.fancybox.defaults.hash = !1, $('.fancybox').fancybox({
+            loop: !0,
+            helpers: { overlay: { locked: !1 } }
+        });
+    },
+    registerExtURL: function () {
+        document.querySelectorAll('span.exturl').forEach(function (e) {
+            var t = document.createElement('a');
+            t.href = decodeURIComponent(atob(e.dataset.url).split('').map(function (e) {
+                return '%' + ('00' + e.charCodeAt(0).toString(16)).slice(-2);
+            }).join('')), t.rel = 'noopener external nofollow noreferrer', t.target = '_blank', t.className = e.className, t.innerHTML = e.innerHTML, e.parentNode.replaceChild(t, e);
+        });
+    },
+    registerCopyCode: function () {
+        document.querySelectorAll('figure.highlight').forEach(function (e) {
+            var t = document.createElement('div');
+            e.wrap(t), t.classList.add('highlight-container'), t.insertAdjacentHTML('beforeend', '<div class="copy-btn"><i class="fa fa-clipboard"></i></div>');
+            var n = e.parentNode.querySelector('.copy-btn');
+            n.addEventListener('click', function (e) {
+                var t = e.currentTarget, n = [].concat(_toConsumableArray(t.parentNode.querySelectorAll('.code .line'))).map(function (e) {
+                        return e.innerText;
+                    }).join('\n'), a = document.createElement('textarea');
+                a.style.top = window.scrollY + 'px', a.style.position = 'absolute', a.style.opacity = '0', a.readOnly = !0, a.value = n, document.body.append(a);
+                var r = document.getSelection(), o = 0 < r.rangeCount && r.getRangeAt(0);
+                a.select(), a.setSelectionRange(0, n.length), a.readOnly = !1;
+                var i = document.execCommand('copy');
+                CONFIG.copycode.show_result && (t.querySelector('i').className = i ? 'fa fa-check' : 'fa fa-times'), a.blur(), t.blur(), o && (r.removeAllRanges(), r.addRange(o)), document.body.removeChild(a);
+            }), n.addEventListener('mouseleave', function (e) {
+                setTimeout(function () {
+                    e.target.querySelector('i').className = 'fa fa-clipboard';
+                }, 300);
+            });
+        });
+    },
+    wrapTableWithBox: function () {
+        document.querySelectorAll('table').forEach(function (e) {
+            var t = document.createElement('div');
+            t.className = 'table-container', e.wrap(t);
+        });
+    },
+    registerVideoIframe: function () {
+        document.querySelectorAll('iframe').forEach(function (t) {
+            if (["www.youtube.com","player.vimeo.com","player.youku.com","player.bilibili.com","www.tudou.com"].some(function (e) {
+                    return t.src.includes(e);
+                }) && !t.parentNode.matches('.video-container')) {
+                var e = document.createElement('div');
+                e.className = 'video-container', t.wrap(e);
+                var n = Number(t.width), a = Number(t.height);
+                n && a && (t.parentNode.style.paddingTop = a / n * 100 + '%');
+            }
+        });
+    },
+    registerScrollPercent: function () {
+        var r = document.querySelector('.back-to-top'), o = document.querySelector('.reading-progress-bar');
+        window.addEventListener('scroll', function () {
+            if (r || o) {
+                var e = document.querySelector('.container').offsetHeight, t = window.innerHeight, n = t < e ? e - t : document.body.scrollHeight - t, a = Math.min(100 * window.scrollY / n, 100);
+                r && (r.classList.toggle('back-to-top-on', 50 < window.scrollY), r.querySelector('span').innerText = Math.round(a) + '%'), o && (o.style.width = a.toFixed(2) + '%');
+            }
+        }), r && r.addEventListener('click', function () {
+            window.anime({
+                targets: document.scrollingElement,
+                duration: 500,
+                easing: 'linear',
+                scrollTop: 0
+            });
+        });
+    },
+    registerTabsTag: function () {
+        document.querySelectorAll('.tabs ul.nav-tabs .tab').forEach(function (e) {
+            e.addEventListener('click', function (e) {
+                e.preventDefault();
+                var t = e.currentTarget;
+                if (!t.classList.contains('active')) {
+                    [].concat(_toConsumableArray(t.parentNode.children)).forEach(function (e) {
+                        e.classList.remove('active');
+                    }), t.classList.add('active');
+                    var n = document.getElementById(t.querySelector('a').getAttribute('href').replace('#', ''));
+                    [].concat(_toConsumableArray(n.parentNode.children)).forEach(function (e) {
+                        e.classList.remove('active');
+                    }), n.classList.add('active'), n.dispatchEvent(new Event('tabs:click', { bubbles: !0 }));
+                }
+            });
+        }), window.dispatchEvent(new Event('tabs:register'));
+    },
+    registerCanIUseTag: function () {
+        window.addEventListener('message', function (e) {
+            var t = e.data;
+            if ('string' == typeof t && t.includes('ciu_embed')) {
+                var n = t.split(':')[1], a = t.split(':')[2];
+                document.querySelector('iframe[data-feature=' + n + ']').style.height = parseInt(a, 10) + 5 + 'px';
+            }
+        }, !1);
+    },
+    registerActiveMenuItem: function () {
+        document.querySelectorAll('.menu-item').forEach(function (e) {
+            var t = e.querySelector('a[href]');
+            if (t) {
+                var n = t.pathname === location.pathname || t.pathname === location.pathname.replace('index.html', ''), a = !CONFIG.root.startsWith(t.pathname) && location.pathname.startsWith(t.pathname);
+                e.classList.toggle('menu-item-active', t.hostname === location.hostname && (n || a));
+            }
+        });
+    },
+    registerLangSelect: function () {
+        var n = document.querySelector('.lang-select');
+        n && (n.value = CONFIG.page.lang, n.addEventListener('change', function () {
+            var e = n.options[n.selectedIndex];
+            document.querySelector('.lang-select-label span').innerText = e.text;
+            var t = e.dataset.href;
+            window.pjax ? window.pjax.loadUrl(t) : window.location.href = t;
+        }));
+    },
+    registerSidebarTOC: function () {
+        var i = document.querySelectorAll('.post-toc li'), c = [].concat(_toConsumableArray(i)).map(function (e) {
+                var t = e.querySelector('a.nav-link');
+                return t.addEventListener('click', function (e) {
+                    e.preventDefault();
+                    var t = document.getElementById(e.currentTarget.getAttribute('href').replace('#', '')).getBoundingClientRect().top + window.scrollY;
+                    window.anime({
+                        targets: document.scrollingElement,
+                        duration: 500,
+                        easing: 'linear',
+                        scrollTop: t + 10
+                    });
+                }), document.getElementById(t.getAttribute('href').replace('#', ''));
+            }), l = document.querySelector('.post-toc-wrap');
+        !function r(o) {
+            o = Math.floor(o + 10000);
+            var t = new IntersectionObserver(function (e, t) {
+                var n = document.documentElement.scrollHeight + 100;
+                if (o < n)
+                    return t.disconnect(), void r(n);
+                var a = function (e) {
+                    var t = 0, n = e[t];
+                    if (0 < n.boundingClientRect.top)
+                        return 0 === (t = c.indexOf(n.target)) ? 0 : t - 1;
+                    for (; t < e.length; t++) {
+                        if (!(e[t].boundingClientRect.top <= 0))
+                            return c.indexOf(n.target);
+                        n = e[t];
+                    }
+                    return c.indexOf(n.target);
+                }(e);
+                !function (e) {
+                    if (!e.classList.contains('active-current')) {
+                        document.querySelectorAll('.post-toc .active').forEach(function (e) {
+                            e.classList.remove('active', 'active-current');
+                        }), e.classList.add('active', 'active-current');
+                        for (var t = e.parentNode; !t.matches('.post-toc');)
+                            t.matches('li') && t.classList.add('active'), t = t.parentNode;
+                        window.anime({
+                            targets: l,
+                            duration: 200,
+                            easing: 'linear',
+                            scrollTop: l.scrollTop - l.offsetHeight / 2 + e.getBoundingClientRect().top - l.getBoundingClientRect().top
+                        });
+                    }
+                }(i[a]);
+            }, {
+                rootMargin: o + 'px 0px -100% 0px',
+                threshold: 0
+            });
+            c.forEach(function (e) {
+                e && t.observe(e);
+            });
+        }(document.documentElement.scrollHeight);
+    },
+    hasMobileUA: function () {
+        var e = navigator.userAgent;
+        return /iPad|iPhone|Android|Opera Mini|BlackBerry|webOS|UCWEB|Blazer|PSP|IEMobile|Symbian/g.test(e);
+    },
+    isTablet: function () {
+        return window.screen.width < 992 && 767 < window.screen.width && this.hasMobileUA();
+    },
+    isMobile: function () {
+        return window.screen.width < 767 && this.hasMobileUA();
+    },
+    isDesktop: function () {
+        return !this.isTablet() && !this.isMobile();
+    },
+    supportsPDFs: function () {
+        var e = navigator.userAgent, t = e.includes('irefox') && 18 < parseInt(e.split('rv:')[1].split('.')[0], 10), n = void 0 !== navigator.mimeTypes['application/pdf'], a = /iphone|ipad|ipod/i.test(e.toLowerCase());
+        return t || n && !a;
+    },
+    initSidebarDimension: function () {
+        var e = document.querySelector('.sidebar-nav'), t = 'none' !== e.style.display ? e.offsetHeight : 0, n = CONFIG.sidebar.offset || 12, a = CONFIG.back2top.enable && CONFIG.back2top.sidebar ? document.querySelector('.back-to-top').offsetHeight : 0, r = 2 * CONFIG.sidebar.padding + t + a;
+        'Pisces' !== CONFIG.scheme && 'Gemini' !== CONFIG.scheme || (r += 2 * n - 22);
+        var o = document.body.offsetHeight - r + 'px';
+        document.querySelector('.site-overview-wrap').style.maxHeight = o, document.querySelector('.post-toc-wrap').style.maxHeight = o;
+    },
+    updateSidebarPosition: function () {
+        var e = document.querySelector('.sidebar-nav'), t = document.querySelector('.post-toc');
+        if (t ? (e.style.display = '', e.classList.add('motion-element'), document.querySelector('.sidebar-nav-toc').click()) : (e.style.display = 'none', e.classList.remove('motion-element'), document.querySelector('.sidebar-nav-overview').click()), NexT.utils.initSidebarDimension(), this.isDesktop() && 'Pisces' !== CONFIG.scheme && 'Gemini' !== CONFIG.scheme) {
+            var n = CONFIG.page.sidebar;
+            'boolean' != typeof n && (n = 'always' === CONFIG.sidebar.display || 'post' === CONFIG.sidebar.display && t), n && window.dispatchEvent(new Event('sidebar:show'));
+        }
+    },
+    getScript: function (e, n, t) {
+        if (t)
+            n();
+        else {
+            var a = document.createElement('script');
+            a.onload = a.onreadystatechange = function (e, t) {
+                !t && a.readyState && !/loaded|complete/.test(a.readyState) || (a.onload = a.onreadystatechange = null, a = void 0, !t && n && setTimeout(n, 0));
+            }, a.src = e, document.head.appendChild(a);
+        }
+    },
+    loadComments: function (e, n) {
+        if (CONFIG.comments.lazyload && e) {
+            var t = new IntersectionObserver(function (e, t) {
+                e[0].isIntersecting && (n(), t.disconnect());
+            });
+            return t.observe(e), t;
+        }
+        n();
+    }
+};

File diff suppressed because it is too large
+ 7 - 0
blog/lib/anime.min.js


+ 674 - 0
blog/lib/fancybox/LICENSE

@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.

+ 7 - 0
blog/lib/fancybox/README.html

@@ -0,0 +1,7 @@
+<h1 align="center"> <a href="https://github.com/fancyapps/fancybox" target="_blank" rel="noopener">fancyBox 3</a> for <a href="https://github.com/theme-next" target="_blank" rel="noopener">NexT</a></h1><h2 align="center"> If you want fancybox v2, please go to <a href="https://github.com/theme-next/theme-next-fancybox" target="_blank" rel="noopener">theme-next-fancybox</a></h2><h1 align="center"> Installation</h1><h2 align="center"> Step 0 → Delete fancybox 2 (if you want to upgrade from v2)</h2><pre class="sourceCode bash" id="cb1"><code class="sourceCode bash"><div class="sourceLine" id="cb1-1" data-line-number="1">$ <span class="fu">rm</span> -rf themes/next/source/lib/fancybox</div></code></pre><h2> If you want to use the CDN instead of clone this repo, please jump to the Step 3.</h2><h2 align="center"> Step 1 → Go to NexT dir</h2><p>Change dir to <strong>NexT</strong> directory. There must be <code>layout</code>, <code>source</code>, <code>languages</code> and other directories:</p><pre class="sourceCode sh" id="cb2"><code class="sourceCode bash"><div class="sourceLine" id="cb2-1" data-line-number="1">$ <span class="bu">cd</span> themes/next</div>
+<div class="sourceLine" id="cb2-2" data-line-number="2">$ <span class="fu">ls</span></div>
+<div class="sourceLine" id="cb2-3" data-line-number="3"><span class="ex">bower.json</span>  _config.yml  docs  gulpfile.coffee  languages  layout  LICENSE.md  package.json  README.md  scripts  source  test</div></code></pre><h2 align="center"> Step 2 → Get module</h2><p>Install module to <code>source/lib</code> directory:</p><pre class="sourceCode sh" id="cb3"><code class="sourceCode bash"><div class="sourceLine" id="cb3-1" data-line-number="1">$ <span class="fu">git</span> clone https://github.com/theme-next/theme-next-fancybox3 source/lib/fancybox</div></code></pre><h2 align="center"> Step 3 → Set it up</h2><p>Enable module in <strong>NexT</strong> <code>_config.yml</code> file:</p><pre class="sourceCode yml" id="cb4"><code class="sourceCode yaml"><div class="sourceLine" id="cb4-1" data-line-number="1"><span class="fu">fancybox:</span><span class="at"> true</span></div></code></pre><p><strong>And, if you wants to use the CDN, then need to set:</strong></p><pre class="sourceCode yml" id="cb5"><code class="sourceCode yaml"><div class="sourceLine" id="cb5-1" data-line-number="1"><span class="fu">vendors:</span></div>
+<div class="sourceLine" id="cb5-2" data-line-number="2">  ...</div>
+<div class="sourceLine" id="cb5-3" data-line-number="3">  <span class="fu">fancybox:</span><span class="at"> //cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js</span></div>
+<div class="sourceLine" id="cb5-4" data-line-number="4">  <span class="fu">fancybox_css:</span><span class="at"> //cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css</span></div></code></pre><h1 align="center"> Update</h1><pre class="sourceCode sh" id="cb6"><code class="sourceCode bash"><div class="sourceLine" id="cb6-1" data-line-number="1">$ <span class="bu">cd</span> themes/next/source/lib/fancybox</div>
+<div class="sourceLine" id="cb6-2" data-line-number="2">$ <span class="fu">git</span> pull</div></code></pre>

Some files were not shown because too many files changed in this diff