q78kgblog 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/.github/workflows/HexoSeoAutoPush.yml +36 -0
  2. package/404.html +933 -0
  3. package/BingSiteAuth.xml +4 -0
  4. package/CNAME +1 -0
  5. package/about/index.html +1096 -0
  6. package/archives/2022/06/index.html +942 -0
  7. package/archives/2022/index.html +942 -0
  8. package/archives/2023/02/index.html +942 -0
  9. package/archives/2023/04/index.html +942 -0
  10. package/archives/2023/05/index.html +942 -0
  11. package/archives/2023/08/index.html +942 -0
  12. package/archives/2023/09/index.html +942 -0
  13. package/archives/2023/index.html +942 -0
  14. package/archives/2024/01/index.html +942 -0
  15. package/archives/2024/02/index.html +942 -0
  16. package/archives/2024/index.html +942 -0
  17. package/archives/index.html +942 -0
  18. package/assets/css/APlayer.min.css +3 -0
  19. package/assets/douban-loading.gif +0 -0
  20. package/assets/js/APlayer.min.js +2 -0
  21. package/assets/js/Meting.min.js +1 -0
  22. package/atom.xml +311 -0
  23. package/baidusitemap.xml +43 -0
  24. package/bangumis/index.html +1247 -0
  25. package/bigpie/index.html +714 -0
  26. package/bing.json +1 -0
  27. package/categories/Hello-World/index.html +954 -0
  28. package/categories/Hexo/index.html +954 -0
  29. package/categories/index.html +710 -0
  30. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +954 -0
  31. package/categories//346/201/260/351/245/255/index.html +954 -0
  32. package/categories//347/264/240/346/235/220/index.html +954 -0
  33. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +954 -0
  34. package/content.json +1 -0
  35. package/css/404page.css +65 -0
  36. package/css/ariasakablog.css +5632 -0
  37. package/css/commentBarrage.css +111 -0
  38. package/css/danmaku.css +89 -0
  39. package/css/essay.css +306 -0
  40. package/css/iconfont.css +55 -0
  41. package/css/iconfont.ttf +0 -0
  42. package/css/iconfont.woff +0 -0
  43. package/css/iconfont.woff2 +0 -0
  44. package/css/index.css +7006 -0
  45. package/css/people.css +18 -0
  46. package/css/stylessimple.css +40 -0
  47. package/css/swiper.min.css +701 -0
  48. package/css/swiperstyle.css +567 -0
  49. package/css/var.css +0 -0
  50. package/essay/index.html +701 -0
  51. package/favicon.ico +0 -0
  52. package/fcircle/index.html +733 -0
  53. package/fontawesome/index.html +716 -0
  54. package/google.txt +10 -0
  55. package/googlebe706248808ee393.html +1 -0
  56. package/img/144.png +0 -0
  57. package/img/16.png +0 -0
  58. package/img/1666416625095-iPhone X.png +0 -0
  59. package/img/1666416702650-Macbook Pro 2016 (1).png +0 -0
  60. package/img/1666416764216-Nexus 9.png +0 -0
  61. package/img/180.png +0 -0
  62. package/img/192.png +0 -0
  63. package/img/20200904222157.png +0 -0
  64. package/img/20200924153652.png +0 -0
  65. package/img/256.png +0 -0
  66. package/img/36.png +0 -0
  67. package/img/48.png +0 -0
  68. package/img/512.png +0 -0
  69. package/img/72.png +0 -0
  70. package/img/72645310.jpg +0 -0
  71. package/img/8DSTSS20990281646044689944.PNG +0 -0
  72. package/img/96.png +0 -0
  73. package/img/O35HOG22090681654187900371.jpg +0 -0
  74. package/img/a.webp +0 -0
  75. package/img/ad.png +0 -0
  76. package/img/apple-touch-icon.png +0 -0
  77. package/img/avatar.jpg +0 -0
  78. package/img/buYgVO22990681624844309044.jpg +0 -0
  79. package/img/comment.png +0 -0
  80. package/img/favicon.ico +0 -0
  81. package/img/favicon.jpg +0 -0
  82. package/img/friend_404.gif +0 -0
  83. package/img/mqaizf23990681654186719414.jpeg +0 -0
  84. package/img/nyancat.gif +0 -0
  85. package/img/siteshot.png +0 -0
  86. package/img/uTools_1666416859497-iMac.png +0 -0
  87. package/img-col/index.html +802 -0
  88. package/index.html +1056 -0
  89. package/js/aplayersave.js +268 -0
  90. package/js/baiduhistory.js +76 -0
  91. package/js/bbtalk.js +11354 -0
  92. package/js/bbtalklunbo.js +78 -0
  93. package/js/browser.js +35 -0
  94. package/js/calendar.js +380 -0
  95. package/js/cate.js +22 -0
  96. package/js/commentBarrage.js +240 -0
  97. package/js/commentsCount.js +43 -0
  98. package/js/copy.js +23 -0
  99. package/js/countup.js +209 -0
  100. package/js/cursor.js +82 -0
  101. package/js/danmaku.js +106 -0
  102. package/js/day.js +199 -0
  103. package/js/dianzan.js +249 -0
  104. package/js/dis.js +255 -0
  105. package/js/dist/baiduhistory.dev.js +102 -0
  106. package/js/dist/bbtalk.dev.js +12876 -0
  107. package/js/dist/bbtalklunbo.dev.js +45 -0
  108. package/js/dist/calendar.dev.js +395 -0
  109. package/js/dist/fixbugpjax.dev.js +8 -0
  110. package/js/dist/gongnong.dev.js +565 -0
  111. package/js/dist/heimu.dev.js +19 -0
  112. package/js/dist/links.dev.js +13 -0
  113. package/js/dist/main.dev.js +845 -0
  114. package/js/dist/resizeTop.dev.js +50 -0
  115. package/js/dist/seo.dev.js +33 -0
  116. package/js/dist/twikoo.all.min.dev.js +1 -0
  117. package/js/fixbugpjax.js +7 -0
  118. package/js/fixed_card_widget.js +46 -0
  119. package/js/fps.js +58 -0
  120. package/js/gitalker.js +11 -0
  121. package/js/gsap.min.js +11 -0
  122. package/js/heimu.js +16 -0
  123. package/js/hide.show.js +17 -0
  124. package/js/jike.js +121 -0
  125. package/js/jikewater.js +60 -0
  126. package/js/languages.js +511 -0
  127. package/js/latest.js +49 -0
  128. package/js/local-search.js +476 -0
  129. package/js/lunar.js +1071 -0
  130. package/js/lyxTalk.js +12 -0
  131. package/js/main.js +783 -0
  132. package/js/nav.js +30 -0
  133. package/js/noie.js +3 -0
  134. package/js/owo.js +52 -0
  135. package/js/people.js +175 -0
  136. package/js/pikaday.js +109 -0
  137. package/js/random.js +1 -0
  138. package/js/randomFriend.js +95 -0
  139. package/js/resizeTop.js +43 -0
  140. package/js/rightmenu.js +335 -0
  141. package/js/sakura.js +164 -0
  142. package/js/search/algolia.js +155 -0
  143. package/js/search/local-search.js +188 -0
  144. package/js/settings.js +353 -0
  145. package/js/sitetime.js +25 -0
  146. package/js/smooth-scrolling.js +546 -0
  147. package/js/sw-toolbox.js +16 -0
  148. package/js/swiperinit.js +23 -0
  149. package/js/tw_cn.js +100 -0
  150. package/js/twikoo.all.min.js +2 -0
  151. package/js/utils.js +278 -0
  152. package/js/welcome.js +107 -0
  153. package/js/welcomeconsole.js +23 -0
  154. package/links/index.html +842 -0
  155. package/live2d-widget/LICENSE +674 -0
  156. package/live2d-widget/README.md +188 -0
  157. package/live2d-widget/assets/screenshot-1.png +0 -0
  158. package/live2d-widget/assets/screenshot-2.png +0 -0
  159. package/live2d-widget/assets/screenshot-3.png +0 -0
  160. package/live2d-widget/autoload.js +63 -0
  161. package/live2d-widget/demo/demo.html +34 -0
  162. package/live2d-widget/demo/login.html +271 -0
  163. package/live2d-widget/live2d.min.js +1 -0
  164. package/live2d-widget/package.json +31 -0
  165. package/live2d-widget/rollup.config.js +38 -0
  166. package/live2d-widget/src/index.js +178 -0
  167. package/live2d-widget/src/message.js +22 -0
  168. package/live2d-widget/src/model.js +75 -0
  169. package/live2d-widget/src/tools.js +78 -0
  170. package/live2d-widget/src/utils.js +5 -0
  171. package/live2d-widget/src/waifu-tips.js +3 -0
  172. package/live2d-widget/waifu-tips.js +5 -0
  173. package/live2d-widget/waifu-tips.json +255 -0
  174. package/live2d-widget/waifu.css +310 -0
  175. package/manifest.json +1 -0
  176. package/noie.html +69 -0
  177. package/othersite/index.html +779 -0
  178. package/owo.json +1 -0
  179. package/package.json +1 -0
  180. package/people.html +24 -0
  181. package/posts/164ef646/index.html +1027 -0
  182. package/posts/228c2ef8/index.html +1014 -0
  183. package/posts/4a17b156/index.html +1010 -0
  184. package/posts/6f3c565b/index.html +1013 -0
  185. package/posts/7da7c3f6/index.html +1070 -0
  186. package/posts/a9a6c1fb/index.html +1041 -0
  187. package/posts/c262e439/index.html +1002 -0
  188. package/posts/c81531cf/index.html +1080 -0
  189. package/posts/da2093a1/index.html +1022 -0
  190. package/posts/e54f7476/index.html +1052 -0
  191. package/projects.html +424 -0
  192. package/random.html +32 -0
  193. package/robots.txt +17 -0
  194. package/search.xml +309 -0
  195. package/sitemap.txt +62 -0
  196. package/sitemap.xml +488 -0
  197. package/sw.js +190 -0
  198. package/swReg.js +29 -0
  199. package/tags/AI/index.html +955 -0
  200. package/tags/Butterfly/index.html +955 -0
  201. package/tags/Cloudflare/index.html +955 -0
  202. package/tags/DiffSinger/index.html +955 -0
  203. package/tags/Hexo/index.html +955 -0
  204. package/tags/Next/index.html +955 -0
  205. package/tags/RAID/index.html +955 -0
  206. package/tags/VPS/index.html +955 -0
  207. package/tags/Vercel/index.html +955 -0
  208. package/tags/Workers/index.html +955 -0
  209. package/tags/hello-world/index.html +955 -0
  210. package/tags/index.html +710 -0
  211. package/tags//344/270/273/351/242/230/index.html +955 -0
  212. package/tags//344/272/221/346/234/215/345/212/241/345/231/250/index.html +955 -0
  213. package/tags//344/276/277/345/256/234/index.html +955 -0
  214. package/tags//345/206/231/344/275/234/index.html +955 -0
  215. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +955 -0
  216. package/tags//345/255/246/344/271/240/index.html +955 -0
  217. package/tags//345/256/266/351/207/214/344/272/221/index.html +955 -0
  218. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +955 -0
  219. package/tags//346/200/247/344/273/267/346/257/224/index.html +955 -0
  220. package/tags//346/212/230/350/205/276/index.html +955 -0
  221. package/tags//346/217/220/344/276/233/345/225/206/index.html +955 -0
  222. package/tags//346/227/245/345/270/270/index.html +955 -0
  223. package/tags//346/234/215/345/212/241/345/231/250/index.html +955 -0
  224. package/tags//346/265/252/346/275/256/index.html +955 -0
  225. package/tags//347/256/200/347/210/261/index.html +955 -0
  226. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +955 -0
  227. package/tags//350/256/272/346/226/207/index.html +955 -0
  228. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +955 -0
  229. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +955 -0
  230. package/tags//351/207/221/345/217/245/index.html +955 -0
  231. package/tags//351/255/224/346/224/271/index.html +955 -0
@@ -0,0 +1,476 @@
1
+ "use strict";
2
+
3
+ function _typeof(t) {
4
+ return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
5
+ return typeof t
6
+ } : function (t) {
7
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
8
+ })(t)
9
+ }
10
+
11
+ function _regeneratorRuntime() {
12
+ _regeneratorRuntime = function () {
13
+ return i
14
+ };
15
+ var i = {},
16
+ t = Object.prototype,
17
+ s = t.hasOwnProperty,
18
+ e = "function" == typeof Symbol ? Symbol : {},
19
+ n = e.iterator || "@@iterator",
20
+ r = e.asyncIterator || "@@asyncIterator",
21
+ o = e.toStringTag || "@@toStringTag";
22
+
23
+ function a(t, e, r) {
24
+ return Object.defineProperty(t, e, {
25
+ value: r,
26
+ enumerable: !0,
27
+ configurable: !0,
28
+ writable: !0
29
+ }), t[e]
30
+ }
31
+ try {
32
+ a({}, "")
33
+ } catch (t) {
34
+ a = function (t, e, r) {
35
+ return t[e] = r
36
+ }
37
+ }
38
+
39
+ function c(t, e, r, n) {
40
+ var o, a, i, c, e = e && e.prototype instanceof h ? e : h,
41
+ e = Object.create(e.prototype),
42
+ n = new b(n || []);
43
+ return e._invoke = (o = t, a = r, i = n, c = "suspendedStart", function (t, e) {
44
+ if ("executing" === c) throw new Error("Generator is already running");
45
+ if ("completed" === c) {
46
+ if ("throw" === t) throw e;
47
+ return x()
48
+ }
49
+ for (i.method = t, i.arg = e;;) {
50
+ var r = i.delegate;
51
+ if (r) {
52
+ r = function t(e, r) {
53
+ var n = e.iterator[r.method];
54
+ if (void 0 === n) {
55
+ if (r.delegate = null, "throw" === r.method) {
56
+ if (e.iterator.return && (r.method = "return", r.arg = void 0, t(e, r), "throw" === r.method)) return l;
57
+ r.method = "throw", r.arg = new TypeError("The iterator does not provide a 'throw' method")
58
+ }
59
+ return l
60
+ }
61
+ n = u(n, e.iterator, r.arg);
62
+ if ("throw" === n.type) return r.method = "throw", r.arg = n.arg, r.delegate = null, l;
63
+ n = n.arg;
64
+ return n ? n.done ? (r[e.resultName] = n.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = void 0), r.delegate = null, l) : n : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, l)
65
+ }(r, i);
66
+ if (r) {
67
+ if (r === l) continue;
68
+ return r
69
+ }
70
+ }
71
+ if ("next" === i.method) i.sent = i._sent = i.arg;
72
+ else if ("throw" === i.method) {
73
+ if ("suspendedStart" === c) throw c = "completed", i.arg;
74
+ i.dispatchException(i.arg)
75
+ } else "return" === i.method && i.abrupt("return", i.arg);
76
+ c = "executing";
77
+ r = u(o, a, i);
78
+ if ("normal" === r.type) {
79
+ if (c = i.done ? "completed" : "suspendedYield", r.arg === l) continue;
80
+ return {
81
+ value: r.arg,
82
+ done: i.done
83
+ }
84
+ }
85
+ "throw" === r.type && (c = "completed", i.method = "throw", i.arg = r.arg)
86
+ }
87
+ }), e
88
+ }
89
+
90
+ function u(t, e, r) {
91
+ try {
92
+ return {
93
+ type: "normal",
94
+ arg: t.call(e, r)
95
+ }
96
+ } catch (t) {
97
+ return {
98
+ type: "throw",
99
+ arg: t
100
+ }
101
+ }
102
+ }
103
+ i.wrap = c;
104
+ var l = {};
105
+
106
+ function h() {}
107
+
108
+ function f() {}
109
+
110
+ function d() {}
111
+ var e = {},
112
+ y = (a(e, n, function () {
113
+ return this
114
+ }), Object.getPrototypeOf),
115
+ y = y && y(y(L([]))),
116
+ p = (y && y !== t && s.call(y, n) && (e = y), d.prototype = h.prototype = Object.create(e));
117
+
118
+ function m(t) {
119
+ ["next", "throw", "return"].forEach(function (e) {
120
+ a(t, e, function (t) {
121
+ return this._invoke(e, t)
122
+ })
123
+ })
124
+ }
125
+
126
+ function v(i, c) {
127
+ var e;
128
+ this._invoke = function (r, n) {
129
+ function t() {
130
+ return new c(function (t, e) {
131
+ ! function e(t, r, n, o) {
132
+ var a, t = u(i[t], i, r);
133
+ if ("throw" !== t.type) return (r = (a = t.arg).value) && "object" == _typeof(r) && s.call(r, "__await") ? c.resolve(r.__await).then(function (t) {
134
+ e("next", t, n, o)
135
+ }, function (t) {
136
+ e("throw", t, n, o)
137
+ }) : c.resolve(r).then(function (t) {
138
+ a.value = t, n(a)
139
+ }, function (t) {
140
+ return e("throw", t, n, o)
141
+ });
142
+ o(t.arg)
143
+ }(r, n, t, e)
144
+ })
145
+ }
146
+ return e = e ? e.then(t, t) : t()
147
+ }
148
+ }
149
+
150
+ function g(t) {
151
+ var e = {
152
+ tryLoc: t[0]
153
+ };
154
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e)
155
+ }
156
+
157
+ function w(t) {
158
+ var e = t.completion || {};
159
+ e.type = "normal", delete e.arg, t.completion = e
160
+ }
161
+
162
+ function b(t) {
163
+ this.tryEntries = [{
164
+ tryLoc: "root"
165
+ }], t.forEach(g, this), this.reset(!0)
166
+ }
167
+
168
+ function L(e) {
169
+ if (e) {
170
+ var r, t = e[n];
171
+ if (t) return t.call(e);
172
+ if ("function" == typeof e.next) return e;
173
+ if (!isNaN(e.length)) return r = -1, (t = function t() {
174
+ for (; ++r < e.length;)
175
+ if (s.call(e, r)) return t.value = e[r], t.done = !1, t;
176
+ return t.value = void 0, t.done = !0, t
177
+ }).next = t
178
+ }
179
+ return {
180
+ next: x
181
+ }
182
+ }
183
+
184
+ function x() {
185
+ return {
186
+ value: void 0,
187
+ done: !0
188
+ }
189
+ }
190
+ return a(p, "constructor", f.prototype = d), a(d, "constructor", f), f.displayName = a(d, o, "GeneratorFunction"), i.isGeneratorFunction = function (t) {
191
+ t = "function" == typeof t && t.constructor;
192
+ return !!t && (t === f || "GeneratorFunction" === (t.displayName || t.name))
193
+ }, i.mark = function (t) {
194
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, d) : (t.__proto__ = d, a(t, o, "GeneratorFunction")), t.prototype = Object.create(p), t
195
+ }, i.awrap = function (t) {
196
+ return {
197
+ __await: t
198
+ }
199
+ }, m(v.prototype), a(v.prototype, r, function () {
200
+ return this
201
+ }), i.AsyncIterator = v, i.async = function (t, e, r, n, o) {
202
+ void 0 === o && (o = Promise);
203
+ var a = new v(c(t, e, r, n), o);
204
+ return i.isGeneratorFunction(e) ? a : a.next().then(function (t) {
205
+ return t.done ? t.value : a.next()
206
+ })
207
+ }, m(p), a(p, o, "Generator"), a(p, n, function () {
208
+ return this
209
+ }), a(p, "toString", function () {
210
+ return "[object Generator]"
211
+ }), i.keys = function (r) {
212
+ var t, n = [];
213
+ for (t in r) n.push(t);
214
+ return n.reverse(),
215
+ function t() {
216
+ for (; n.length;) {
217
+ var e = n.pop();
218
+ if (e in r) return t.value = e, t.done = !1, t
219
+ }
220
+ return t.done = !0, t
221
+ }
222
+ }, i.values = L, b.prototype = {
223
+ constructor: b,
224
+ reset: function (t) {
225
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(w), !t)
226
+ for (var e in this) "t" === e.charAt(0) && s.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0)
227
+ },
228
+ stop: function () {
229
+ this.done = !0;
230
+ var t = this.tryEntries[0].completion;
231
+ if ("throw" === t.type) throw t.arg;
232
+ return this.rval
233
+ },
234
+ dispatchException: function (r) {
235
+ if (this.done) throw r;
236
+ var n = this;
237
+
238
+ function t(t, e) {
239
+ return a.type = "throw", a.arg = r, n.next = t, e && (n.method = "next", n.arg = void 0), !!e
240
+ }
241
+ for (var e = this.tryEntries.length - 1; 0 <= e; --e) {
242
+ var o = this.tryEntries[e],
243
+ a = o.completion;
244
+ if ("root" === o.tryLoc) return t("end");
245
+ if (o.tryLoc <= this.prev) {
246
+ var i = s.call(o, "catchLoc"),
247
+ c = s.call(o, "finallyLoc");
248
+ if (i && c) {
249
+ if (this.prev < o.catchLoc) return t(o.catchLoc, !0);
250
+ if (this.prev < o.finallyLoc) return t(o.finallyLoc)
251
+ } else if (i) {
252
+ if (this.prev < o.catchLoc) return t(o.catchLoc, !0)
253
+ } else {
254
+ if (!c) throw new Error("try statement without catch or finally");
255
+ if (this.prev < o.finallyLoc) return t(o.finallyLoc)
256
+ }
257
+ }
258
+ }
259
+ },
260
+ abrupt: function (t, e) {
261
+ for (var r = this.tryEntries.length - 1; 0 <= r; --r) {
262
+ var n = this.tryEntries[r];
263
+ if (n.tryLoc <= this.prev && s.call(n, "finallyLoc") && this.prev < n.finallyLoc) {
264
+ var o = n;
265
+ break
266
+ }
267
+ }
268
+ var a = (o = o && ("break" === t || "continue" === t) && o.tryLoc <= e && e <= o.finallyLoc ? null : o) ? o.completion : {};
269
+ return a.type = t, a.arg = e, o ? (this.method = "next", this.next = o.finallyLoc, l) : this.complete(a)
270
+ },
271
+ complete: function (t, e) {
272
+ if ("throw" === t.type) throw t.arg;
273
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), l
274
+ },
275
+ finish: function (t) {
276
+ for (var e = this.tryEntries.length - 1; 0 <= e; --e) {
277
+ var r = this.tryEntries[e];
278
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), w(r), l
279
+ }
280
+ },
281
+ catch: function (t) {
282
+ for (var e = this.tryEntries.length - 1; 0 <= e; --e) {
283
+ var r, n, o = this.tryEntries[e];
284
+ if (o.tryLoc === t) return "throw" === (r = o.completion).type && (n = r.arg, w(o)), n
285
+ }
286
+ throw new Error("illegal catch attempt")
287
+ },
288
+ delegateYield: function (t, e, r) {
289
+ return this.delegate = {
290
+ iterator: L(t),
291
+ resultName: e,
292
+ nextLoc: r
293
+ }, "next" === this.method && (this.arg = void 0), l
294
+ }
295
+ }, i
296
+ }
297
+
298
+ function _toConsumableArray(t) {
299
+ return _arrayWithoutHoles(t) || _iterableToArray(t) || _unsupportedIterableToArray(t) || _nonIterableSpread()
300
+ }
301
+
302
+ function _nonIterableSpread() {
303
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
304
+ }
305
+
306
+ function _unsupportedIterableToArray(t, e) {
307
+ var r;
308
+ if (t) return "string" == typeof t ? _arrayLikeToArray(t, e) : "Map" === (r = "Object" === (r = Object.prototype.toString.call(t).slice(8, -1)) && t.constructor ? t.constructor.name : r) || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? _arrayLikeToArray(t, e) : void 0
309
+ }
310
+
311
+ function _iterableToArray(t) {
312
+ if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t)
313
+ }
314
+
315
+ function _arrayWithoutHoles(t) {
316
+ if (Array.isArray(t)) return _arrayLikeToArray(t)
317
+ }
318
+
319
+ function _arrayLikeToArray(t, e) {
320
+ (null == e || e > t.length) && (e = t.length);
321
+ for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];
322
+ return n
323
+ }
324
+
325
+ function asyncGeneratorStep(t, e, r, n, o, a, i) {
326
+ try {
327
+ var c = t[a](i),
328
+ s = c.value
329
+ } catch (t) {
330
+ return void r(t)
331
+ }
332
+ c.done ? e(s) : Promise.resolve(s).then(n, o)
333
+ }
334
+
335
+ function _asyncToGenerator(c) {
336
+ return function () {
337
+ var t = this,
338
+ i = arguments;
339
+ return new Promise(function (e, r) {
340
+ var n = c.apply(t, i);
341
+
342
+ function o(t) {
343
+ asyncGeneratorStep(n, e, r, o, a, "next", t)
344
+ }
345
+
346
+ function a(t) {
347
+ asyncGeneratorStep(n, e, r, o, a, "throw", t)
348
+ }
349
+ o(void 0)
350
+ })
351
+ }
352
+ }
353
+ window.addEventListener("load", function () {
354
+ function t() {
355
+ var t = document.body.style;
356
+ t.width = "100%", t.overflow = "hidden", btf.animateIn(n, "to_show 0.5s"), btf.animateIn(document.querySelector("#local-search .search-dialog"), "titleScale 0.5s"), setTimeout(function () {
357
+ document.querySelector("#local-search-input input").focus()
358
+ }, 100), r || (c(), r = !0), document.addEventListener("keydown", function t(e) {
359
+ "Escape" === e.code && (a(), document.removeEventListener("keydown", t))
360
+ })
361
+ }
362
+
363
+ function e() {
364
+ document.querySelector("#search-button > .search").addEventListener("click", t);
365
+ }
366
+ var r = !1,
367
+ o = [],
368
+ n = document.getElementById("search-mask"),
369
+ a = function () {
370
+ var t = document.body.style;
371
+ t.width = "", t.overflow = "", btf.animateOut(document.querySelector("#local-search .search-dialog"), "search_close .5s"), btf.animateOut(n, "to_hide 0.5s")
372
+ },
373
+ i = function () {
374
+ var e = _asyncToGenerator(_regeneratorRuntime().mark(function t(e) {
375
+ var r, n, o, a;
376
+ return _regeneratorRuntime().wrap(function (t) {
377
+ for (;;) switch (t.prev = t.next) {
378
+ case 0:
379
+ return r = [], t.next = 3, fetch(e);
380
+ case 3:
381
+ if (n = t.sent, /\.json$/.test(e)) return t.next = 7, n.json();
382
+ t.next = 10;
383
+ break;
384
+ case 7:
385
+ r = t.sent, t.next = 20;
386
+ break;
387
+ case 10:
388
+ return t.next = 12, n.text();
389
+ case 12:
390
+ return o = t.sent, t.next = 15, (new window.DOMParser).parseFromString(o, "text/xml");
391
+ case 15:
392
+ return o = t.sent, t.next = 18, o;
393
+ case 18:
394
+ a = t.sent, r = _toConsumableArray(a.querySelectorAll("entry")).map(function (t) {
395
+ var r = [],
396
+ e = (t.querySelector("tags") && t.querySelector("tags").getElementsByTagName("tag") && Array.prototype.forEach.call(t.querySelector("tags").getElementsByTagName("tag"), function (t, e) {
397
+ r.push(t.textContent)
398
+ }), t.querySelector("content") && t.querySelector("content").textContent),
399
+ n = /src=[\'\"]?([^\'\"]*)[\'\"]?/i,
400
+ o = e.match(/<img.*?(?:>|\/>)/gi),
401
+ a = [];
402
+ if (o)
403
+ for (var i = 0; i < o.length; i++) {
404
+ var c = o[i].match(n);
405
+ c[1].indexOf("http") || a.push(c[1])
406
+ }
407
+ return {
408
+ title: t.querySelector("title").textContent,
409
+ content: e,
410
+ url: t.querySelector("url").textContent,
411
+ tags: r,
412
+ oneImage: a && a[0]
413
+ }
414
+ });
415
+ case 20:
416
+ return n.ok && ((a = document.getElementById("loading-database")).nextElementSibling.style.display = "block", a.remove()), t.abrupt("return", r);
417
+ case 22:
418
+ case "end":
419
+ return t.stop()
420
+ }
421
+ }, t)
422
+ }));
423
+ return function (t) {
424
+ return e.apply(this, arguments)
425
+ }
426
+ }(),
427
+ c = function () {
428
+ GLOBAL_CONFIG.localSearch.preload || (o = i(GLOBAL_CONFIG.localSearch.path));
429
+ var t = document.querySelector("#local-search-input input"),
430
+ r = document.getElementById("local-search-results"),
431
+ n = document.getElementById("loading-status");
432
+ t.addEventListener("input", function () {
433
+ var m, e = this,
434
+ v = this.value.trim().toLowerCase().split(/[\s]+/),
435
+ g = ("" !== v[0] && (n.innerHTML = '<i class="fas fa-spinner fa-pulse"></i>'), r.innerHTML = "", '<div class="search-result-list">');
436
+ v.length <= 0 || (m = 0, o.then(function (t) {
437
+ t.forEach(function (t) {
438
+ var r, n = !0,
439
+ o = t.title ? t.title.trim().toLowerCase() : "",
440
+ e = t.tags,
441
+ a = null != (a = t.oneImage) ? a : "",
442
+ i = t.content ? t.content.trim().replace(/<[^>]+>/g, "").toLowerCase() : "",
443
+ t = t.url.startsWith("/") ? t.url : GLOBAL_CONFIG.root + t.url,
444
+ c = -1,
445
+ s = -1;
446
+ if ("" !== o || "" !== i ? v.forEach(function (t, e) {
447
+ r = o.indexOf(t), c = i.indexOf(t), r < 0 && c < 0 ? n = !1 : (c < 0 && (c = 0), 0 === e && (s = c))
448
+ }) : n = !1, n) {
449
+ if (0 <= s) {
450
+ var u = s - 30,
451
+ l = s + 100,
452
+ h = "",
453
+ f = "",
454
+ d = (0 === (u = u < 0 ? 0 : u) ? l = 100 : h = "...", l > i.length ? l = i.length : f = "...", i.substring(u, l));
455
+ if (v.forEach(function (t) {
456
+ var e = new RegExp(t, "gi");
457
+ d = d.replace(e, '<span class="search-keyword">' + t + "</span>"), o = o.replace(e, '<span class="search-keyword">' + t + "</span>")
458
+ }), g = (g = (g += '<div class="local-search__hit-item">') + (a ? '<div class="search-left"><img src='.concat(a, " alt=").concat(a, " data-fancybox='gallery'>") : '<div class="search-left" style="width:0">')) + "</div>" + (a ? '<div class="search-right"><a href="' + t + '" class="search-result-title">' + o + "</a>" : '<div class="search-right" style="width: 100%"><a href="' + t + '" class="search-result-title">' + o + "</a>"), m += 1, "" !== i && (g += '<p class="search-result" onclick="pjax.loadUrl(`' + t + '`)">' + h + d + f + "</p>"), e.length) {
459
+ g += '<div class="search-result-tags">';
460
+ for (var y = 0; y < e.length; y++) {
461
+ var p = e[y].trim();
462
+ g += '<a class="tag-list" href="/tags/' + p + '/" data-pjax-state="" one-link-mark="yes">#' + p + "</a>"
463
+ }
464
+ g += "</div>"
465
+ }
466
+ }
467
+ g += "</div></div>"
468
+ }
469
+ }), 0 === m && (g += '<div id="local-search__hits-empty">' + GLOBAL_CONFIG.localSearch.languages.hits_empty.replace(/\$\{query}/, e.value.trim()) + "</div>"), g += "</div>", r.innerHTML = g, "" !== v[0] && (n.innerHTML = ""), window.pjax && window.pjax.refresh(r)
470
+ }))
471
+ })
472
+ };
473
+ e(), document.querySelector("#local-search .search-close-button").addEventListener("click", a), n.addEventListener("click", a), GLOBAL_CONFIG.localSearch.preload && (o = i(GLOBAL_CONFIG.localSearch.path)), window.addEventListener("pjax:complete", function () {
474
+ btf.isHidden(n) || a(), e()
475
+ })
476
+ });