From be22153fab749d98094cdffeb1d9d140f5d67143 Mon Sep 17 00:00:00 2001 From: LIlGG <1103069291@qq.com> Date: Tue, 5 Apr 2022 00:35:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(cdn):=20=E5=B0=86=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=BE=E5=88=B0=E6=9C=AC=E5=9C=B0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E3=80=82=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=88=B0?= =?UTF-8?q?=20CDN=20=E4=B8=AD=E3=80=82=20=E5=8D=87=E7=BA=A7=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=BA=201.3.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- footer.ftl | 4 ++-- settings.yaml | 7 +++---- source/js/comment/sakura-comment.min.js | 17 +++++++++++++++++ theme.yaml | 2 +- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 source/js/comment/sakura-comment.min.js diff --git a/footer.ftl b/footer.ftl index c7c7ddd..88fb7f6 100644 --- a/footer.ftl +++ b/footer.ftl @@ -268,7 +268,7 @@ <#if settings.post_toc!true> - + <#if settings.tag_cloud!true> - + <#nested /> <#if settings.live2d_switch!true> diff --git a/settings.yaml b/settings.yaml index 04b92a8..e01c758 100644 --- a/settings.yaml +++ b/settings.yaml @@ -635,8 +635,7 @@ comment: name: comment_mode label: 评论模块js type: text - default: "https://cdn.jsdelivr.net/gh/LIlGG/halo-comment-sakura/dist/halo-comment.min.js" - description: "评论 js 模块,如果当前设置为空,则使用评论设置中的模块 js" + description: "评论 js 模块,如果当前设置为空,则使用本地服务器中的评论 js" comment_auto_load: name: comment_custom_style label: 是否自动加载评论列表 @@ -1998,12 +1997,12 @@ others: name: 回到顶部图片 label: 回到顶部图片 type: attachment - default: "https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.8/img/Sakura/images/scroll.png" + default: "https://takagi-api.com/directlink/1/cdn/1.0.8/img/Sakura/images/scroll.png" footer_logo: name: footer_logo label: 页脚 Logo type: attachment - default: "https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.8/img/Sakura/images/sakura.svg" + default: "https://takagi-api.com/directlink/1/cdn/1.0.8/img/Sakura/images/sakura.svg" footer_case_number: name: footer_case_number label: ICP 备案信息 diff --git a/source/js/comment/sakura-comment.min.js b/source/js/comment/sakura-comment.min.js new file mode 100644 index 0000000..c05c802 --- /dev/null +++ b/source/js/comment/sakura-comment.min.js @@ -0,0 +1,17 @@ +(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="5a74")})({"00d8":function(e,t){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r>>6-2*o);return n}};e.exports=n})()},"00ee":function(e,t,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"044b":function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))} +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ +e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},"057f":function(e,t,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},"063c":function(e,t,n){"use strict";var r=n("9efd");const o="/api/content",i={createComment:(e,t)=>Object(r["a"])({url:`${o}/${e}/comments`,method:"post",data:t}),listComments:(e,t,n="tree_view",i)=>Object(r["a"])({url:`${o}/${e}/${t}/comments/${n}`,params:i,method:"get"})};t["a"]=i},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),s=n("c04e"),c=n("5135"),l=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},"09bd":function(e,t,n){"use strict";var r=n("0f7c"),o=n("f367"),i=n("7b13"),a=n("8926"),s=n("522d"),c=r.call(Function.call,a());o(c,{getPolyfill:a,implementation:i,shim:s}),e.exports=c},"0a06":function(e,t,n){"use strict";var r=n("c532"),o=n("30b5"),i=n("f6b4"),a=n("5270"),s=n("4a7b");function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e27":function(e,t,n){n("5319"),function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=null!=window.mozInnerScreenX;function r(e,r,o){var i=o&&o.debug||!1;if(i){var a=document.querySelector("#input-textarea-caret-position-mirror-div");a&&a.parentNode.removeChild(a)}var s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);var c=s.style,l=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",i||(c.visibility="hidden"),t.forEach((function(e){c[e]=l[e]})),n?e.scrollHeight>parseInt(l.height)&&(c.overflowY="scroll"):c.overflow="hidden",s.textContent=e.value.substring(0,r),"INPUT"===e.nodeName&&(s.textContent=s.textContent.replace(/\s/g," "));var u=document.createElement("span");u.textContent=e.value.substring(r)||".",s.appendChild(u);var p={top:u.offsetTop+parseInt(l["borderTopWidth"]),left:u.offsetLeft+parseInt(l["borderLeftWidth"])};return i?u.style.backgroundColor="#aaa":document.body.removeChild(s),p}"undefined"!=typeof e.exports?e.exports=r:window.getCaretCoordinates=r}()},"0e4d":function(e,t,n){"use strict";var r={replyId:0};t["a"]=r},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},1276:function(e,t,n){"use strict";var r=n("d784"),o=n("44e7"),i=n("825a"),a=n("1d80"),s=n("4840"),c=n("8aa5"),l=n("50c4"),u=n("14c3"),p=n("9263"),d=n("d039"),m=[].push,f=Math.min,h=4294967295,g=!d((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?h:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);var s,c,l,u=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,g=new RegExp(e.source,d+"g");while(s=p.call(g,r)){if(c=g.lastIndex,c>f&&(u.push(r.slice(f,s.index)),s.length>1&&s.index=i))break;g.lastIndex===s.index&&g.lastIndex++}return f===r.length?!l&&g.test("")||u.push(""):u.push(r.slice(f)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var p=i(e),d=String(this),m=s(p,RegExp),b=p.unicode,y=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(g?"y":"g"),v=new m(g?p:"^(?:"+p.source+")",y),w=void 0===o?h:o>>>0;if(0===w)return[];if(0===d.length)return null===u(v,d)?[d]:[];var x=0,k=0,S=[];while(k1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"21d0":function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},a=function(e){try{return!i(e)&&(r.call(e),!0)}catch(t){return!1}},s=Object.prototype.toString,c="[object Function]",l="[object GeneratorFunction]",u="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if("function"===typeof e&&!e.prototype)return!0;if(u)return a(e);if(i(e))return!1;var t=s.call(e);return t===c||t===l}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,p,d,m,f,h=e.target,g=e.global,b=e.stat;if(u=g?r:b?r[h]||s(h,{}):(r[h]||{}).prototype,u)for(p in t){if(m=t[p],e.noTargetGet?(f=o(u,p),d=f&&f.value):d=u[p],n=l(g?p:h+(b?".":"#")+p,e.forced),!n&&void 0!==d){if(typeof m===typeof d)continue;c(m,d)}(e.sham||d&&d.sham)&&i(m,"sham",!0),a(u,p,m,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),o=n("c8af"),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var c={adapter:s(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c}).call(this,n("4362"))},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=o(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"===typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i0},firstPage(){return 0===this.pages?null:0},hasMorePrev(){return!(null===this.firstPage||this.pages<=this.middleSize+2)&&this.page>=2+this.middleSize/2},hasMoreNext(){return!(null===this.lastPage||this.pages<=this.middleSize+2)&&this.page=this.lastPage-e-1&&(n=this.lastPage-1,t=n-this.middleSize+1),this.range(t,n+1)},lastPage(){return 0===this.pages||1===this.pages?0:this.pages-1}},methods:{handleNextClick(){this.hasNext&&this.$emit("change",this.page+1)},handlePrevClick(){this.hasPrev&&this.$emit("change",this.page-1)},handlePageItemClick(e){this.$emit("change",e)},range(e,t){if(e>=t)return[];const n=[];for(let r=e;r{x[e]=o.a.component(e,w[e])})},"2b80":function(e,t,n){var r; +/*! + * UAParser.js v0.7.24 + * Lightweight JavaScript-based User-Agent string parser + * https://github.com/faisalman/ua-parser-js + * + * Copyright © 2012-2021 Faisal Salman + * Licensed under MIT License + */(function(o,i){"use strict";var a="0.7.24",s="",c="?",l="function",u="undefined",p="object",d="string",m="major",f="model",h="name",g="type",b="vendor",y="version",v="architecture",w="console",x="mobile",k="tablet",S="smarttv",j="wearable",_="embedded",E={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"===typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===d?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={rgx:function(e,t){var n,r,o,a,s,c,u=0;while(u0?2==a.length?typeof a[1]==l?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3==a.length?typeof a[1]!==l||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):i:this[a[0]]=c?a[1].call(this,c,a[2]):i:4==a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):i):this[a]=c||i;u+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===p&&t[n].length>0){for(var r=0;r=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),e.exports=o&&+o},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35d6":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;oc)o.f(e,n=r[c++],t[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3d27":function(e,t,n){"use strict";var r=n("5183");e.exports=function(e){return"symbol"===typeof e?"Symbol":r(e)}},"3f17":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isCurrReply?n("section",{ref:"editor",staticClass:"comment-editor",attrs:{id:e.respondId,role:"form"}},[e.isReply?n("h3",{staticClass:"comment-reply-title",attrs:{id:"reply-title"}},[n("small",[n("a",{staticClass:"cancel-comment-reply-link",attrs:{rel:"nofollow",href:"javascript:void(0);",onclick:"return false;"},on:{click:e.cancelReply}},[e._v("Cancel Reply")])])]):e._e(),n("form",{staticClass:"comment-form"},[e.previewMode?n("div",{staticClass:"comment-preview markdown-body",domProps:{innerHTML:e._s(e.renderedContent)}}):n("div",{staticClass:"comment-textarea"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.comment.content,expression:"comment.content"}],staticClass:"commentbody",attrs:{required:"required","aria-required":"true",tabindex:"4",placeholder:e.configs.aWord||"你是我一生只会遇见一次的惊喜 ..."},domProps:{value:e.comment.content},on:{input:function(t){t.target.composing||e.$set(e.comment,"content",t.target.value)}}}),n("label",{staticClass:"input-label"},[e._v(e._s(e.configs.aWord||"你是我一生只会遇见一次的惊喜 ..."))])]),n("div",{attrs:{id:"upload-img-show"}}),n("p",{staticClass:"no-select",attrs:{id:"emotion-toggle"}},[n("span",{on:{click:e.handleToogleDialogEmoji}},[e._v(e._s(e.emojiDialogVisible?"嘿嘿嘿 ヾ(≧∇≦*)ゝ":"戳我试试 OωO"))])]),n("transition",{attrs:{name:"emoji-fade"}},[n("VEmojiPicker",{directives:[{name:"show",rawName:"v-show",value:e.emojiDialogVisible,expression:"emojiDialogVisible"}],attrs:{pack:e.emojiPack},on:{select:e.handleSelectEmoji}})],1),n("div",{staticClass:"author-info"},[n("div",{staticClass:"commentator"},[n("img",{staticClass:"avatar",attrs:{src:e.avatar}}),n("div",{staticClass:"socila-check",class:[e.checkType.back]},[n("i",{class:[e.checkType.icon],attrs:{"aria-hidden":"true"}})])]),n("PopupInput",{staticClass:"cmt-popup cmt-author",attrs:{popupStyle:"margin-left: -115px",popupText:e.configs.authorPopup||"输入QQ号将自动拉取昵称和头像",inputType:"text",placeholder:"* 昵称",id:"author"},on:{blurInput:e.pullInfo},model:{value:e.comment.author,callback:function(t){e.$set(e.comment,"author",t)},expression:"comment.author"}}),n("PopupInput",{staticClass:"cmt-popup",attrs:{popupStyle:"margin-left: -65px;",popupText:e.configs.emailPopup||"你将收到回复通知",inputType:"text",placeholder:"* 电子邮件",id:"email"},on:{blurInput:e.pullInfo},model:{value:e.comment.email,callback:function(t){e.$set(e.comment,"email",t)},expression:"comment.email"}}),n("PopupInput",{staticClass:"cmt-popup",attrs:{popupStyle:"margin-left: -55px;",popupText:e.configs.urlPopup||"禁止小广告😀",inputType:"text",placeholder:"个人站点",id:"url"},model:{value:e.comment.authorUrl,callback:function(t){e.$set(e.comment,"authorUrl",t)},expression:"comment.authorUrl"}})],1),n("ul",{staticClass:"comment-buttons"},[e.comment.content?n("li",{staticClass:"middle",staticStyle:{"margin-right":"5px"}},[n("a",{staticClass:"button-preview-edit",attrs:{href:"javascript:void(0)",rel:"nofollow noopener"},on:{click:e.handlePreviewContent}},[e._v(e._s(e.previewMode?"编辑":"预览"))])]):e._e(),n("li",{staticClass:"middle"},[n("a",{staticClass:"button-submit",attrs:{href:"javascript:void(0)",tabindex:"5",rel:"nofollow noopener"},on:{click:e.handleSubmitClick}},[e._v("提交")])])])],1)]):e._e()},o=[];n("4160"),n("c975"),n("b0c0"),n("a9e3"),n("b64b"),n("d3b7"),n("ac1f"),n("1276"),n("159b"),n("a4d3"),n("4de4"),n("e439"),n("dbb4");function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t({categories:[{name:"bilibili",title:"bilibili~"},{name:"menhera",title:"(✪ω✪)"},{name:"tieba",title:"Tieba"}],active:0}),methods:{onSelect(e){this.active=e;const t=this.categories[e];this.$emit("select",t)}}},w=v,x=n("2877"),k=Object(x["a"])(w,b,y,!1,null,null,null,!0),S=k.exports,j=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"motion-container",class:e.categoryClass,attrs:{id:"container-emoji"}},e._l(e.data[e.category],(function(t,r){return n(e.categoryEmoji,{key:r,tag:"component",attrs:{data:t},nativeOn:{click:function(n){return e.onSelect(t,e.type)}}})})),1)},_=[],E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"emotion-secter emotion-item emotion-select-parent",style:e.biliSpanStyle},[n("div",{staticClass:"img emotion-select-child",style:e.biliImgStyle})])},A=[],C={name:"BilibiliEmoji",props:{data:{type:Object},url:{type:String,required:!1,default:"https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.0/img/bili/"}},computed:{biliSpanStyle(){return"background-image: url("+this.url+"hd/ic_emoji_"+this.data.name+".png);"},biliImgStyle(){let e=this.url+this.data.name+".png",t=this.data,n="";return Object.keys(t.style).forEach((function(e){n+=e+":"+t.style[e]+";"})),"background-image: url("+e+");"+n}}},O=C,T=Object(x["a"])(O,E,A,!1,null,null,null,!0),P=T.exports,z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{staticClass:"emoji-item"},[e._v(" "+e._s(e.data.name)+" ")])},I=[],R={name:"MenheraEmoji",props:{data:{type:Object}}},$=R,L=Object(x["a"])($,z,I,!1,null,null,null,!0),N=L.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{attrs:{title:e.data.description}},[n("img",{attrs:{src:e.tiebaSrc}})])},B=[],U={name:"TiebaEmoji",props:{data:{type:Object},url:{type:String,required:!1,default:"https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.0/img/Sakura/images/smilies/"}},computed:{tiebaSrc(){return this.url+"icon_"+this.data.name+".gif"}}},D=U,Y=Object(x["a"])(D,M,B,!1,null,null,null,!0),q=Y.exports,F={name:"EmojiList",components:{BilibiliEmoji:P,MenheraEmoji:N,TiebaEmoji:q},data:()=>({categories:[{name:"bilibili",title:"bilibili~"},{name:"menhera",title:"(✪ω✪)"},{name:"tieba",title:"Tieba"}]}),props:{data:{type:Object},category:{type:String}},methods:{onSelect(e,t){this.$emit("select",e,t)}},computed:{categoryClass(){return this.category+"-container"},categoryEmoji(){return this.category+"Emoji"},type(){return"bilibili"===this.category?"Math":"tieba"===this.category?"BBCode":""}},watch:{data(){this.$refs["container-emoji"].scrollTop=0}}},G=F,H=Object(x["a"])(G,j,_,!1,null,null,null,!0),V=H.exports,W={name:"VEmojiPicker",props:{pack:{type:Array,required:!0},showCategory:{type:Boolean,default:!0}},components:{Categories:S,EmojiList:V},data:()=>({mapEmojis:{},category:"bilibili"}),created(){this.mapperData(this.pack)},methods:{onChangeCategory(e){this.category=e.name,this.$emit("changeCategory",this.category)},onSelectEmoji(e){this.$emit("select",e)},mapperData(e){e.forEach(e=>{const t=e["category"];this.mapEmojis[t]?this.mapEmojis[t].push(e):this.$set(this.mapEmojis,t,[e])})}},beforeDestroy(){delete this.mapEmojis},computed:{emojis(){return this.mapEmojis}}},Q=W,X=Object(x["a"])(Q,h,g,!1,null,null,null,!0),Z=X.exports,J=n("fb89"),K=n("f058"),ee=n("ca00"),te=n("063c"),ne=n("bc3a"),re=n.n(ne),oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"popup"},[n("transition",{attrs:{name:"fade"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.isPopup,expression:"isPopup"}],staticClass:"popuptext",style:e.popupStyle},[e._v(" "+e._s(e.popupText)+" ")])]),n("input",{attrs:{type:e.inputType,required:"required","aria-required":"true",placeholder:e.placeholder},domProps:{value:e.value},on:{focus:function(t){e.isPopup=!0},blur:e.inputBlur,input:function(t){return e.$emit("input",t.target.value)}}})],1)},ie=[],ae={props:{popupStyle:String,popupText:{type:String,required:!0},inputType:{type:String,default:"text"},value:String,placeholder:String},methods:{inputBlur:function(e){this.isPopup=!1,this.$emit("blurInput",e.target.value)}},data:function(){return{isPopup:!1}}},se=ae,ce=Object(x["a"])(se,oe,ie,!1,null,null,null),le=ce.exports,ue=n("0e4d"),pe=n("0e27"),de=n.n(pe),me=document.createElement("canvas");me.id="activate-canvas",me.width=window.innerWidth,me.height=window.innerHeight,me.style.cssText="position:fixed;top:0;left:0;pointer-events:none;z-index:999999",window.addEventListener("resize",(function(){me.width=window.innerWidth,me.height=window.innerHeight}));var fe=[],he=0,ge=!1;function be(e,t){return Math.random()*(t-e)+e}function ye(e){if(xe.colorful){var t=be(0,360);return"hsla("+be(t-10,t+10)+", 100%, "+be(50,80)+"%, 1)"}return window.getComputedStyle(e).color}function ve(){var e,t=null!=document.activeElement.shadowRoot?document.activeElement.shadowRoot.activeElement:document.activeElement;if("TEXTAREA"===t.tagName||"INPUT"===t.tagName&&"text"===t.getAttribute("type")){var n=de()(t,t.selectionEnd);return e=t.getBoundingClientRect(),{x:n.left+e.left,y:n.top+e.top,color:ye(t)}}var r=window.getSelection();if(r.rangeCount){var o=r.getRangeAt(0),i=o.startContainer;return i.nodeType===document.TEXT_NODE&&(i=i.parentNode),e=o.getBoundingClientRect(),{x:e.left,y:e.top,color:ye(i)}}return{x:0,y:0,color:"transparent"}}function we(e,t,n){return{x:e,y:t,alpha:1,color:n,velocity:{x:2*Math.random()-1,y:2*Math.random()-3.5}}}function xe(){var e=null!=document.activeElement.shadowRoot?document.activeElement.shadowRoot.ownerDocument:document;null==e.getElementById("activate-canvas")&&(e.body.appendChild(me),c=me.getContext("2d"));var t=ve(),n=5+Math.round(10*Math.random());while(n--)fe[he]=we(t.x,t.y,t.color),he=(he+1)%500;if(xe.shake){var r=1+2*Math.random(),o=r*(Math.random()>.5?-1:1),i=r*(Math.random()>.5?-1:1);e.body.style.marginLeft=o+"px",e.body.style.marginTop=i+"px",setTimeout((function(){e.body.style.marginLeft="",e.body.style.marginTop=""}),75)}ge||requestAnimationFrame(ke)}function ke(){ge=!0,c.clearRect(0,0,me.width,me.height);for(var e=!1,t=me.getBoundingClientRect(),n=0;n0)o=t.getElementsByClassName("commentwrap")[0];else{o=document.createElement("ul"),o.setAttribute("class","commentwrap");var c=t.getElementsByClassName("comment-empty")[0];c.parentNode.replaceChild(o,c)}else{var l=t.getElementsByClassName("comment-"+this.replyComment.id)[0],p=l.getElementsByTagName("ul");p.length>0?o=p[0]:(o=document.createElement("ul"),o.setAttribute("class","children"),l.appendChild(o))}var d=document.createElement("div");o.children[0]?o.insertBefore(d,o.children[0]):o.appendChild(d),a.$mount(d)},handleFailedToCreateComment:function(e){var t=this;if(400===e.status&&(this.$tips(e.data.message),e.data)){var n=e.data.data;Object(ee["d"])(n)&&Object.keys(n).forEach((function(e){t.$tips(n[e])}))}},handleToogleDialogEmoji:function(){this.emojiDialogVisible=!this.emojiDialogVisible},handleSelectEmoji:function(e){var t,n,r;0!=e.length&&(e.length>0&&(t=e[0]),e.length>1&&(n=e[1]),n?"Math"===n?r="f(x)=∫("+t.name+")sec²xdx":"BBCode"===n&&(r=":"+t.name+":"):r=t.name,this.comment.content+=" "+r+" ")},handleGithubLogin:function(){var e="http://github.com/login/oauth/authorize",t={client_id:"a1aacd842bc158abd65b",redirect_uri:window.location.href,scope:"public_repo"};window.location.href="".concat(e,"?").concat(Object(ee["f"])(t))},handleGetGithubUser:function(){var e=this,t=this.handleGetGithubAccessToken();re.a.get("https://cors-anywhere.herokuapp.com/https://api.github.com/user",{params:{access_token:t}}).then((function(e){this.$tips(e)})).catch((function(t){e.$tips(t)}))},handleGetGithubAccessToken:function(){var e=this,t=Object(ee["a"])("code");t&&re.a.get("https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token",{params:{client_id:"a1aacd842bc158abd65b",client_secret:"0daedb3923a4cdeb72620df511bdb11685dfe282",code:t}}).then((function(e){var t=e.split("&"),n=t[0].split("="),r=n[1];return this.$tips(r),r})).catch((function(t){e.$tips(t)}))},cancelReply:function(){this.globalData.replyId=0,this.globalData.isReplyData=!1;var e=this.$el.previousSibling,t=e.offsetTop+this.$root.$el.offsetTop;window.scrollTo(document.body.scrollWidth,t)},pullInfo:function(){var e=this,t=this.comment.author;0!=t.length&&Object(ee["e"])(t)?this.pullQQInfo((function(){e.$tips("拉取QQ信息失败!尝试拉取Gravatar",2e3,e),e.pullGravatarInfo()})):this.lockPullAvatar?this.lockPullAvatar=!1:this.pullGravatarInfo()},pullQQInfo:function(e){var t=this;re.a.get("https://api.lixingyong.com/api/qq",{params:{id:t.comment.author}}).then((function(n){var r=n.data;r.code&&500==r.code&&e(),t.$tips("拉取QQ头像成功!",2e3,t),t.comment.author=r.nickname,t.comment.email=r.email,t.avatar=r.avatar,t.lockPullAvatar=!0})).catch((function(){e()}))},pullGravatarInfo:function(){var e=f()(this.comment.email),t=this.options.gravatar_source||this.configs.gravatarSource;this.avatar=t+"/".concat(e,"?s=256&d=")+this.options.comment_gravatar_default},viewJump:function(e,t){var n=this;this.$nextTick((function(){var r=t||n.$el;Object(ee["c"])(r,n.$root.$el,"bottom")||e(r)}))}}},je=Se,_e=Object(x["a"])(je,r,o,!1,null,null,null);t["a"]=_e.exports},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),a=i("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4840:function(e,t,n){var r=n("825a"),o=n("1c0b"),i=n("b622"),a=i("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[a])?t:o(n)}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,l),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=o.concat(i).concat(a).concat(s),p=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(p,l),n}},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(e){return function(t,n,a){var s,c=r(t),l=o(c.length),u=i(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),s=i("filter"),c=a("filter");r({target:"Array",proto:!0,forced:!s||!c},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5156:function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}}).call(this,n("c8ba"))},5183:function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},"522d":function(e,t,n){"use strict";var r=n("be77"),o=n("8926"),i=n("f367");e.exports=function(){r();var e=o();return i(Promise.prototype,{finally:e},{finally:function(){return Promise.prototype["finally"]!==e}}),e}},5270:function(e,t,n){"use strict";var r=n("c532"),o=n("c401"),i=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),i=n("7b0b"),a=n("50c4"),s=n("a691"),c=n("1d80"),l=n("8aa5"),u=n("14c3"),p=Math.max,d=Math.min,m=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var b=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,v=b?"$":"$0";return[function(n,r){var o=c(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!b&&y||"string"===typeof r&&-1===r.indexOf(v)){var i=n(t,e,this,r);if(i.done)return i.value}var c=o(e),m=String(this),f="function"===typeof r;f||(r=String(r));var h=c.global;if(h){var x=c.unicode;c.lastIndex=0}var k=[];while(1){var S=u(c,m);if(null===S)break;if(k.push(S),!h)break;var j=String(S[0]);""===j&&(c.lastIndex=l(m,a(c.lastIndex),x))}for(var _="",E=0,A=0;A=E&&(_+=m.slice(E,O)+R,E=O+C.length)}return _+m.slice(E)}];function w(e,n,r,o,a,s){var c=r+e.length,l=o.length,u=h;return void 0!==a&&(a=i(a),u=f),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>l){var p=m(u/10);return 0===p?t:p<=l?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):t}s=o[u-1]}return void 0===s?"":s}))}}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",a=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),c=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"5a74":function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript;if(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL){var o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var a=n("8bbf"),s=n.n(a);const c=/-(\w)/g,l=e=>e.replace(c,(e,t)=>t?t.toUpperCase():""),u=/\B([A-Z])/g,p=e=>e.replace(u,"-$1").toLowerCase();function d(e){const t={};return e.forEach(e=>{t[e]=void 0}),t}function m(e,t,n){e[t]=[].concat(e[t]||[]),e[t].unshift(n)}function f(e,t){if(e){const n=e.$options[t]||[];n.forEach(t=>{t.call(e)})}}function h(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}const g=e=>/function Boolean/.test(String(e)),b=e=>/function Number/.test(String(e));function y(e,t,{type:n}={}){if(g(n))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if(b(n)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function v(e,t){const n=[];for(let r=0,o=t.length;r(e[t]=s[n[r]],e),{}),m(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...n)=>(this.$root.$options.customElement.dispatchEvent(h(t,n)),e.call(this,t,...n))})),m(t,"created",(function(){o.forEach(e=>{this.$root.props[e]=this[e]})})),o.forEach(e=>{Object.defineProperty(u.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})}),a=!0}function c(e,t){const n=l(t),r=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[n]=y(r,t,i[n])}class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new e({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data(){return{props:{},slotChildren:[]}},render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}}),r=new MutationObserver(e=>{let t=!1;for(let n=0;n{e.props=d(o),r.forEach(e=>{c(this,e)})};a?n():t().then(e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e),n()}),e.slotChildren=Object.freeze(v(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){f(this.vueComponent,"deactivated")}}return n||s(t),u}var S=k,j=(n("24fb"),n("35d6"),n("2877")),_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"halo-comment serif",attrs:{id:"halo-comment"}},[e.isReply?n("comment-editor",{staticClass:"bottom-comment",attrs:{targetId:e.id,target:e.target,options:e.options,configs:e.mergedConfigs}}):e._e(),e.mergedConfigs.autoLoad||e.loaded?e._e():n("div",{staticClass:"comment-load-button"},[n("a",{staticClass:"button-load",attrs:{href:"javascript:void(0)",rel:"nofollow noopener"},on:{click:e.loadComments}},[e._v("加载评论")])]),n("comment-loading",{directives:[{name:"show",rawName:"v-show",value:e.commentLoading,expression:"commentLoading"}],attrs:{configs:e.mergedConfigs}}),e.comments.length>=1?n("ul",{staticClass:"commentwrap"},[e._l(e.comments,(function(t,r){return[n("CommentNode",{key:r,attrs:{targetId:e.id,target:e.target,comment:t,options:e.options,configs:e.mergedConfigs,depth:1}})]}))],2):e._e(),e.loaded&&!e.commentLoading&&e.comments.length<=0?n("div",{staticClass:"comment-empty"},[e._v(e._s(e.mergedConfigs.notComment||"暂无评论"))]):e._e(),e.pagination.pages>1?n("div",{staticClass:"comment-page"},[n("pagination",{attrs:{page:e.pagination.page,size:e.pagination.size,total:e.pagination.total},on:{change:e.handlePaginationChange}})],1):e._e()],1)},E=[],A=(n("2af9"),{autoLoad:!0,showUserAgent:!0,gravatarSource:"//cn.gravatar.com/avatar",loadingStyle:"default",aWord:"你是我一生只会遇见一次的惊喜 ...",authorPopup:"输入QQ号将自动拉取昵称和头像",emailPopup:"你将收到回复通知",urlPopup:"禁止小广告😀",notComment:"暂无评论"}),C=n("063c"),O=n("9efd");const T="/api/content/options",P={list:()=>Object(O["a"])({url:T+"/comment",method:"get"})};var z=P,I=n("0e4d"),R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},L=function(){function e(e,t){for(var n=0;n0}}),!0)}var X={event:"event",observer:"observer"},Z=function(){if(V)return"function"===typeof window.CustomEvent?window.CustomEvent:(e.prototype=window.Event.prototype,e);function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}();function J(e,t){if(e.length){var n=e.indexOf(t);return n>-1?e.splice(n,1):void 0}}function K(e,t){for(var n=!1,r=0,o=e.length;rt[0])return-1;if(e[0]===t[0]){if(-1!==t[1].indexOf(".webp",t[1].length-5))return 1;if(-1!==e[1].indexOf(".webp",e[1].length-5))return-1}return 0}));for(var l="",u=void 0,p=0;p0&&void 0!==arguments[0]?arguments[0]:1;return V&&window.devicePixelRatio||e};function re(){if(!V)return!1;var e=!0,t=document;try{var n=t.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",t.body.appendChild(n),e=!n.offsetWidth,t.body.removeChild(n)}catch(r){e=!1}return e}function oe(e,t){var n=null,r=0;return function(){if(!n){var o=Date.now()-r,i=this,a=arguments,s=function(){r=Date.now(),n=!1,e.apply(i,a)};o>=t?s():n=setTimeout(s,t)}}}function ie(){if(V){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(n){}return e}}var ae=ie(),se={on:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];ae?e.addEventListener(t,n,{capture:r,passive:!0}):e.addEventListener(t,n,r)},off:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}},ce=function(e,t,n){var r=new Image;if(!e||!e.src){var o=new Error("image src is required");return n(o)}r.src=e.src,r.onload=function(){t({naturalHeight:r.naturalHeight,naturalWidth:r.naturalWidth,src:r.src})},r.onerror=function(e){n(e)}},le=function(e,t){return"undefined"!==typeof getComputedStyle?getComputedStyle(e,null).getPropertyValue(t):e.style[t]},ue=function(e){return le(e,"overflow")+le(e,"overflow-y")+le(e,"overflow-x")},pe=function(e){if(V){if(!(e instanceof HTMLElement))return window;var t=e;while(t){if(t===document.body||t===document.documentElement)break;if(!t.parentNode)break;if(/(scroll|auto)/.test(ue(t)))return t;t=t.parentNode}return window}};function de(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":R(e))}function me(e){if(!(e instanceof Object))return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function fe(e){for(var t=e.length,n=[],r=0;r-1}},{key:"add",value:function(e){this.has(e)||(this._caches.push(e),this._caches.length>this.options.max&&this.free())}},{key:"free",value:function(){this._caches.shift()}}]),e}(),be=function(){function e(t){var n=t.el,r=t.src,o=t.error,i=t.loading,a=t.bindType,s=t.$parent,c=t.options,l=t.elRenderer,u=t.imageCache;$(this,e),this.el=n,this.src=r,this.error=o,this.loading=i,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=s,this.elRenderer=l,this._imageCache=u,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return L(e,[{key:"initState",value:function(){"dataset"in this.el?this.el.dataset.src=this.src:this.el.setAttribute("data-src",this.src),this.state={loading:!1,error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(e){this.performanceData[e]=Date.now()}},{key:"update",value:function(e){var t=e.src,n=e.loading,r=e.error,o=this.src;this.src=t,this.loading=n,this.error=r,this.filter(),o!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.topthis.options.preLoadTop&&this.rect.left0}},{key:"filter",value:function(){var e=this;me(this.options.filter).map((function(t){e.options.filter[t](e,e.options)}))}},{key:"renderLoading",value:function(e){var t=this;this.state.loading=!0,ce({src:this.loading},(function(n){t.render("loading",!1),t.state.loading=!1,e()}),(function(){e(),t.state.loading=!1,t.options.silent||console.warn("VueLazyload log: load failed with loading image("+t.loading+")")}))}},{key:"load",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void t()):this.state.rendered&&this.state.loaded?void 0:this._imageCache.has(this.src)?(this.state.loaded=!0,this.render("loaded",!0),this.state.rendered=!0,t()):void this.renderLoading((function(){e.attempt++,e.options.adapter["beforeLoad"]&&e.options.adapter["beforeLoad"](e,e.options),e.record("loadStart"),ce({src:e.src},(function(n){e.naturalHeight=n.naturalHeight,e.naturalWidth=n.naturalWidth,e.state.loaded=!0,e.state.error=!1,e.record("loadEnd"),e.render("loaded",!1),e.state.rendered=!0,e._imageCache.add(e.src),t()}),(function(t){!e.options.silent&&console.error(t),e.state.error=!0,e.state.loaded=!1,e.render("error",!1)}))}))}},{key:"render",value:function(e,t){this.elRenderer(this,e,t)}},{key:"performance",value:function(){var e="loading",t=0;return this.state.loaded&&(e="loaded",t=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(e="error"),{src:this.src,state:e,time:t}}},{key:"$destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),e}(),ye="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ve=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],we={rootMargin:"0px",threshold:0},xe=function(e){return function(){function t(e){var n=e.preLoad,r=e.error,o=e.throttleWait,i=e.preLoadTop,a=e.dispatchEvent,s=e.loading,c=e.attempt,l=e.silent,u=void 0===l||l,p=e.scale,d=e.listenEvents,m=(e.hasbind,e.filter),f=e.adapter,h=e.observer,g=e.observerOptions;$(this,t),this.version="1.3.3",this.mode=X.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:u,dispatchEvent:!!a,throttleWait:o||200,preLoad:n||1.3,preLoadTop:i||0,error:r||ye,loading:s||ye,attempt:c||3,scale:p||ne(p),ListenEvents:d||ve,hasbind:!1,supportWebp:re(),filter:m||{},adapter:f||{},observer:!!h,observerOptions:g||we},this._initEvent(),this._imageCache=new ge({max:200}),this.lazyLoadHandler=oe(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?X.observer:X.event)}return L(t,[{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};H(this.options,e)}},{key:"performance",value:function(){var e=[];return this.ListenerQueue.map((function(t){e.push(t.performance())})),e}},{key:"addLazyBox",value:function(e){this.ListenerQueue.push(e),V&&(this._addListenerTarget(window),this._observer&&this._observer.observe(e.el),e.$el&&e.$el.parentNode&&this._addListenerTarget(e.$el.parentNode))}},{key:"add",value:function(t,n,r){var o=this;if(K(this.ListenerQueue,(function(e){return e.el===t})))return this.update(t,n),e.nextTick(this.lazyLoadHandler);var i=this._valueFormatter(n.value),a=i.src,s=i.loading,c=i.error;e.nextTick((function(){a=ee(t,o.options.scale)||a,o._observer&&o._observer.observe(t);var i=Object.keys(n.modifiers)[0],l=void 0;i&&(l=r.context.$refs[i],l=l?l.$el||l:document.getElementById(i)),l||(l=pe(t));var u=new be({bindType:n.arg,$parent:l,el:t,loading:s,error:c,src:a,elRenderer:o._elRenderer.bind(o),options:o.options,imageCache:o._imageCache});o.ListenerQueue.push(u),V&&(o._addListenerTarget(window),o._addListenerTarget(l)),o.lazyLoadHandler(),e.nextTick((function(){return o.lazyLoadHandler()}))}))}},{key:"update",value:function(t,n,r){var o=this,i=this._valueFormatter(n.value),a=i.src,s=i.loading,c=i.error;a=ee(t,this.options.scale)||a;var l=te(this.ListenerQueue,(function(e){return e.el===t}));l?l.update({src:a,loading:s,error:c}):this.add(t,n,r),this._observer&&(this._observer.unobserve(t),this._observer.observe(t)),this.lazyLoadHandler(),e.nextTick((function(){return o.lazyLoadHandler()}))}},{key:"remove",value:function(e){if(e){this._observer&&this._observer.unobserve(e);var t=te(this.ListenerQueue,(function(t){return t.el===e}));t&&(this._removeListenerTarget(t.$parent),this._removeListenerTarget(window),J(this.ListenerQueue,t),t.$destroy())}}},{key:"removeComponent",value:function(e){e&&(J(this.ListenerQueue,e),this._observer&&this._observer.unobserve(e.el),e.$parent&&e.$el.parentNode&&this._removeListenerTarget(e.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(e){var t=this;W||e!==X.observer||(e=X.event),this.mode=e,e===X.event?(this._observer&&(this.ListenerQueue.forEach((function(e){t._observer.unobserve(e.el)})),this._observer=null),this.TargetQueue.forEach((function(e){t._initListen(e.el,!0)}))):(this.TargetQueue.forEach((function(e){t._initListen(e.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(e){if(e){var t=te(this.TargetQueue,(function(t){return t.el===e}));return t?t.childrenCount++:(t={el:e,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===X.event&&this._initListen(t.el,!0),this.TargetQueue.push(t)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(e){var t=this;this.TargetQueue.forEach((function(n,r){n.el===e&&(n.childrenCount--,n.childrenCount||(t._initListen(n.el,!1),t.TargetQueue.splice(r,1),n=null))}))}},{key:"_initListen",value:function(e,t){var n=this;this.options.ListenEvents.forEach((function(r){return se[t?"on":"off"](e,r,n.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var e=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(t,n){e.Event.listeners[t]||(e.Event.listeners[t]=[]),e.Event.listeners[t].push(n)},this.$once=function(t,n){var r=e;function o(){r.$off(t,o),n.apply(r,arguments)}e.$on(t,o)},this.$off=function(t,n){if(n)J(e.Event.listeners[t],n);else{if(!e.Event.listeners[t])return;e.Event.listeners[t].length=0}},this.$emit=function(t,n,r){e.Event.listeners[t]&&e.Event.listeners[t].forEach((function(e){return e(n,r)}))}}},{key:"_lazyLoadHandler",value:function(){var e=this,t=[];this.ListenerQueue.forEach((function(e,n){e.el&&e.el.parentNode||t.push(e);var r=e.checkInView();r&&e.load()})),t.forEach((function(t){J(e.ListenerQueue,t),t.$destroy()}))}},{key:"_initIntersectionObserver",value:function(){var e=this;W&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(t){e._observer.observe(t.el)})))}},{key:"_observerHandler",value:function(e,t){var n=this;e.forEach((function(e){e.isIntersecting&&n.ListenerQueue.forEach((function(t){if(t.el===e.target){if(t.state.loaded)return n._observer.unobserve(t.el);t.load()}}))}))}},{key:"_elRenderer",value:function(e,t,n){if(e.el){var r=e.el,o=e.bindType,i=void 0;switch(t){case"loading":i=e.loading;break;case"error":i=e.error;break;default:i=e.src;break}if(o?r.style[o]='url("'+i+'")':r.getAttribute("src")!==i&&r.setAttribute("src",i),r.setAttribute("lazy",t),this.$emit(t,e,n),this.options.adapter[t]&&this.options.adapter[t](e,this.options),this.options.dispatchEvent){var a=new Z(t,{detail:e});r.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(e){var t=e,n=this.options.loading,r=this.options.error;return de(e)&&(e.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+e),t=e.src,n=e.loading||this.options.loading,r=e.error||this.options.error),{src:t,loading:n,error:r}}}]),t}()},ke=function(e){return{props:{tag:{type:String,default:"div"}},render:function(e){return!1===this.show?e(this.tag):e(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),V&&this.rect.top0&&this.rect.left0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)},destroy:function(){return this.$destroy}}}},Se=function(){function e(t){var n=t.lazy;$(this,e),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return L(e,[{key:"bind",value:function(e,t,n){var r=new _e({el:e,binding:t,vnode:n,lazy:this.lazy});this._queue.push(r)}},{key:"update",value:function(e,t,n){var r=te(this._queue,(function(t){return t.el===e}));r&&r.update({el:e,binding:t,vnode:n})}},{key:"unbind",value:function(e,t,n){var r=te(this._queue,(function(t){return t.el===e}));r&&(r.clear(),J(this._queue,r))}}]),e}(),je={selector:"img"},_e=function(){function e(t){var n=t.el,r=t.binding,o=t.vnode,i=t.lazy;$(this,e),this.el=null,this.vnode=o,this.binding=r,this.options={},this.lazy=i,this._queue=[],this.update({el:n,binding:r})}return L(e,[{key:"update",value:function(e){var t=this,n=e.el,r=e.binding;this.el=n,this.options=H({},je,r.value);var o=this.getImgs();o.forEach((function(e){t.lazy.add(e,H({},t.binding,{value:{src:"dataset"in e?e.dataset.src:e.getAttribute("data-src"),error:("dataset"in e?e.dataset.error:e.getAttribute("data-error"))||t.options.error,loading:("dataset"in e?e.dataset.loading:e.getAttribute("data-loading"))||t.options.loading}}),t.vnode)}))}},{key:"getImgs",value:function(){return fe(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var e=this,t=this.getImgs();t.forEach((function(t){return e.lazy.remove(t)})),this.vnode=null,this.binding=null,this.lazy=null}}]),e}(),Ee=function(e){return{props:{src:[String,Object],tag:{type:String,default:"img"}},render:function(e){return e(this.tag,{attrs:{src:this.renderSrc}},this.$slots.default)},data:function(){return{el:null,options:{src:"",error:"",loading:"",attempt:e.options.attempt},state:{loaded:!1,error:!1,attempt:0},rect:{},renderSrc:""}},watch:{src:function(){this.init(),e.addLazyBox(this),e.lazyLoadHandler()}},created:function(){this.init(),this.renderSrc=this.options.loading},mounted:function(){this.el=this.$el,e.addLazyBox(this),e.lazyLoadHandler()},beforeDestroy:function(){e.removeComponent(this)},methods:{init:function(){var t=e._valueFormatter(this.src),n=t.src,r=t.loading,o=t.error;this.state.loaded=!1,this.options.src=n,this.options.error=o,this.options.loading=r,this.renderSrc=this.options.loading},getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),V&&this.rect.top0&&this.rect.left0},load:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:he;if(this.state.attempt>this.options.attempt-1&&this.state.error)return e.options.silent||console.log("VueLazyload log: "+this.options.src+" tried too more than "+this.options.attempt+" times"),void n();var r=this.options.src;ce({src:r},(function(e){var n=e.src;t.renderSrc=n,t.state.loaded=!0}),(function(e){t.state.attempt++,t.renderSrc=t.options.error,t.state.error=!0}))}}}},Ae={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xe(e),r=new n(t),o=new Se({lazy:r}),i="2"===e.version.split(".")[0];e.prototype.$Lazyload=r,t.lazyComponent&&e.component("lazy-component",ke(r)),t.lazyImage&&e.component("lazy-image",Ee(r)),i?(e.directive("lazy",{bind:r.add.bind(r),update:r.update.bind(r),componentUpdated:r.lazyLoadHandler.bind(r),unbind:r.remove.bind(r)}),e.directive("lazy-container",{bind:o.bind.bind(o),componentUpdated:o.update.bind(o),unbind:o.unbind.bind(o)})):(e.directive("lazy",{bind:r.lazyLoadHandler.bind(r),update:function(e,t){H(this.vm.$refs,this.vm.$els),r.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){r.remove(this.el)}}),e.directive("lazy-container",{update:function(e,t){o.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:e,oldValue:t},{context:this.vm})},unbind:function(){o.unbind(this.el)}}))}},Ce=Ae,Oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"butterBar butterBar-center"},[n("p",{staticClass:"butterBar-message",domProps:{innerHTML:e._s(e.message)}})])},Te=[],Pe={name:"tips",props:{message:{type:String,default:""}},data(){return{show:!1}}},ze=Pe,Ie=Object(j["a"])(ze,Oe,Te,!1,null,null,null,!0),Re=Ie.exports;let $e,Le=s.a.extend(Re),Ne=null,Me=(e,t=6e3,n)=>{if(!$e){$e=new Le,$e.vm=$e.$mount();var r=n.$root.$el;r.appendChild($e.vm.$el)}Ne&&(clearTimeout(Ne),Ne=null,$e.show=!1,$e.message=""),$e.time=3e3,"string"===typeof e&&($e.message=e,"number"===typeof t&&($e.time=t),$e.show=!0,Ne=setTimeout(()=>{$e.show=!1,clearTimeout(Ne),Ne=null,$e.message=""},$e.time))};Me.install=e=>{e.prototype.$tips=Me};var Be=Me,Ue=n("ca00");s.a.use(Ce,{error:"https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.1/img/Sakura/images/Transparent_Akkarin.th.jpg",loading:"https://cdn.jsdelivr.net/gh/LIlGG/cdn@1.0.0/img/svg/loader/trans.ajax-spinner-preloader.svg",attempt:1}),s.a.use(Be);var De={name:"Comment",props:{id:{type:Number,required:!1,default:0},type:{type:String,required:!1,default:"post",validator:function(e){return-1!==["post","sheet","journal"].indexOf(e)}},configs:{type:Object,required:!1,default:()=>A}},data(){return{comments:[],pagination:{pages:0,page:0,sort:"",size:5,total:0},commentLoading:!1,loaded:!1,repliedSuccess:null,replyingComment:null,options:{comment_gravatar_default:"mm"},globalData:I["a"]}},computed:{target(){return this.type+"s"},mergedConfigs(){var e;if("string"===typeof this.configs)e=JSON.parse(this.configs);else{if("object"!==typeof this.configs)throw new TypeError("参数类型错误");e=this.configs}return Object(Ue["g"])(e),Object.assign(A,e)},isReply(){return 0==this.globalData.replyId}},created(){this.mergedConfigs.autoLoad&&this.loadComments(),this.loadOptions()},methods:{loadComments(){this.comments=[],this.commentLoading=!0,C["a"].listComments(this.target,this.id,"tree_view",this.pagination).then(e=>{this.comments=e.data.data.content,this.pagination.size=e.data.data.rpp,this.pagination.total=e.data.data.total,this.pagination.pages=e.data.data.pages}).finally(()=>{this.commentLoading=!1,this.loaded=!0})},loadOptions(){z.list().then(e=>{this.options=e.data.data})},handlePaginationChange(e){this.pagination.page=e,this.loadComments()}}},Ye=De;function qe(e){var t=n("a85a");t.__inject__&&t.__inject__(e)}var Fe=Object(j["a"])(Ye,_,E,!1,qe,null,null,!0),Ge=Fe.exports;window.customElements.define("halo-comment",S(s.a,Ge))},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},6821:function(e,t,n){(function(){var t=n("00d8"),r=n("9a63").utf8,o=n("044b"),i=n("9a63").bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?i.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,p=-1732584194,d=271733878,m=0;m>>24)|4278255360&(s[m]<<24|s[m]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var f=a._ff,h=a._gg,g=a._hh,b=a._ii;for(m=0;m>>0,u=u+v>>>0,p=p+w>>>0,d=d+x>>>0}return t.endian([l,u,p,d])};a._ff=function(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+(o>>>0)+a;return(s<>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+(o>>>0)+a;return(s<>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var s=e+(t^n^r)+(o>>>0)+a;return(s<>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+(o>>>0)+a;return(s<>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}})()},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||i.call(t)!==a)throw new TypeError(r+t);for(var n,s=o.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,s.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(o.call(arguments)))},l=Math.max(0,t.length-s.length),u=[],p=0;p",d="<",m="prototype",f="script",h=u("IE_PROTO"),g=function(){},b=function(e){return d+f+p+e+d+"/"+f+p},y=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=l("iframe"),n="java"+f+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(b("document.F=Object")),e.close(),e.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=r?y(r):v();var e=a.length;while(e--)delete w[m][a[e]];return w()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[m]=o(e),n=new g,g[m]=null,n[h]=e):n=w(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),p=n("c430"),d=n("3f8c"),m=n("ae93"),f=m.IteratorPrototype,h=m.BUGGY_SAFARI_ITERATORS,g=u("iterator"),b="keys",y="values",v="entries",w=function(){return this};e.exports=function(e,t,n,u,m,x,k){o(n,t,u);var S,j,_,E=function(e){if(e===m&&P)return P;if(!h&&e in O)return O[e];switch(e){case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",C=!1,O=e.prototype,T=O[g]||O["@@iterator"]||m&&O[m],P=!h&&T||E(m),z="Array"==t&&O.entries||T;if(z&&(S=i(z.call(new e)),f!==Object.prototype&&S.next&&(p||i(S)===f||(a?a(S,f):"function"!=typeof S[g]&&c(S,g,w)),s(S,A,!0,!0),p&&(d[A]=w))),m==y&&T&&T.name!==y&&(C=!0,P=function(){return T.call(this)}),p&&!k||O[g]===P||c(O,g,P),d[t]=P,m)if(j={values:E(y),keys:x?P:E(b),entries:E(v)},k)for(_ in j)(h||C||!(_ in O))&&l(O,_,j[_]);else r({target:t,proto:!0,forced:h||C},j);return j}},"7f73":function(e,t,n){"use strict";e.exports=n("21d0")},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},8253:function(e,t,n){"use strict";var r=n("e9ac"),o=r("%Symbol.species%",!0),i=r("%TypeError%"),a=n("2c92"),s=n("3d27");e.exports=function(e,t){if("Object"!==s(e))throw new i("Assertion failed: Type(O) is not Object");var n=e.constructor;if("undefined"===typeof n)return t;if("Object"!==s(n))throw new i("O.constructor is not an Object");var r=o?n[o]:void 0;if(null==r)return t;if(a(r))return r;throw new i("no constructor found")}},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),o=n("e683");e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},8418:function(e,t,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var r,o,i;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(t,o):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(m){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(m.stack)||a.exec(m.stack),c=s&&s[1]||!1,l=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*