diff --git a/README.md b/README.md index e407f8e27..52603b85c 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ the DoIt theme may be more suitable for you. * **Commento** comment system supported by [Commento](https://commento.io/) * **Utterances** comment system supported by [Utterances](https://utteranc.es/) * **Twikoo** comment system supported by [Twikoo](https://twikoo.js.org/) +* **Vssue** comment system supported by [Vssue](https://vssue.js.org/) ### Extended Features @@ -207,6 +208,7 @@ Thanks to the authors of following resources included in the theme: * [Valine](https://valine.js.org/) * [Waline](https://waline.js.org/) * [Twikoo](https://twikoo.js.org/) +* [Vssue](https://vssue.js.org/) * [cookieconsent](https://github.com/osano/cookieconsent) * [Pjax](https://github.com/PaperStrike/Pjax) * [Topbar](https://github.com/buunguyen/topbar) diff --git a/README.zh-cn.md b/README.zh-cn.md index 498ae1c4e..e25b07a33 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -111,6 +111,7 @@ DoIt 主题增加了许多新的功能与配置项,查看[变更日志](https: * 支持 **[Commento](https://commento.io/)** 评论系统 * 支持 **[Utterances](https://utteranc.es/)** 评论系统 * 支持 **[Twikoo](https://twikoo.js.org/)** 评论系统 +* 支持 **[Vssue](https://vssue.js.org/)** 评论系统 ### 扩展功能 @@ -204,6 +205,7 @@ DoIt 主题中用到了以下项目,感谢它们的作者: * [Valine](https://valine.js.org/) * [Waline](https://waline.js.org/) * [Twikoo](https://twikoo.js.org/) +* [Vssue](https://vssue.js.org/) * [cookieconsent](https://github.com/osano/cookieconsent) * [Pjax](https://github.com/PaperStrike/Pjax) * [Topbar](https://github.com/buunguyen/topbar) diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index d765128cc..5eb860367 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -71,4 +71,13 @@ libFiles: # pjax@0.13.0 https://github.com/PaperStrike/Pjax pjaxJS: "@sliphua/pjax@0.13.0/dist/pjax.min.js" # topbar@1.0.1 https://github.com/buunguyen/topbar - topbarJS: topbar@1.0.1/topbar.min.js \ No newline at end of file + topbarJS: topbar@1.0.1/topbar.min.js + # vue@v2.6.14 https://vuejs.org + vueRuntimeJS: vue@2.6.14/dist/vue.runtime.min.js + # vssue@1.4.8 https://vssue.js.org + vssueBitbucketJS: vssue@1.4.8/dist/vssue.bitbucket.min.js + vssueGiteaJS: vssue@1.4.8/dist/vssue.gitea.min.js + vssueGiteeJS: vssue@1.4.8/dist/vssue.gitee.min.js + vssueGithubJS: vssue@1.4.8/dist/vssue.github.min.js + vssueGitlabJS: vssue@1.4.8/dist/vssue.gitlab.min.js + vssueCSS: vssue@1.4.8/dist/vssue.min.css diff --git a/assets/js/theme.min.js b/assets/js/theme.min.js index 9fb86cf07..ba66825ac 100644 --- a/assets/js/theme.min.js +++ b/assets/js/theme.min.js @@ -1,3 +1,3 @@ -"use strict";function _objectDestructuringEmpty(a){if(null==a)throw new TypeError("Cannot destructure undefined")}function _createForOfIteratorHelper(a,b){var c="undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray(a))||b&&a&&"number"==typeof a.length){c&&(a=c);var d=0,e=function(){};return{s:e,n:function n(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function e(a){throw a},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,g=!0,h=!1;return{s:function s(){c=c.call(a)},n:function n(){var a=c.next();return g=a.done,a},e:function e(a){h=!0,f=a},f:function f(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c$1")),j=j.replace(new RegExp("(".concat(a,")"),"gi"),"<".concat(e,">$1"))}),a[h]={uri:h,title:i,date:g.date,context:j}}}),Object.values(a).slice(0,c)};window._index?p(q()):fetch(a.lunrIndexURL).then(function(a){return a.json()}).then(function(b){var c={};window._index=lunr(function(){a.lunrLanguageCode&&window.use(lunr[a.lunrLanguageCode]),window.ref("objectID"),window.field("title",{boost:50}),window.field("tags",{boost:20}),window.field("categories",{boost:20}),window.field("content",{boost:10}),window.metadataWhitelist=["position"],b.forEach(function(a){c[a.objectID]=a,window.add(a)})}),window._indexData=c,p(q())}).catch(function(a){console.error(a),p([])})}else if("algolia"===a.type)window._algoliaIndex=window._algoliaIndex||algoliasearch(a.algoliaAppID,a.algoliaSearchKey).initIndex(a.algoliaIndex),window._algoliaIndex.search(b,{offset:0,length:8*c,attributesToHighlight:["title"],attributesToSnippet:["content:".concat(d)],highlightPreTag:"<".concat(e,">"),highlightPostTag:"")}).then(function(a){var b=a.hits,d={};b.forEach(function(a){var b=a.uri,c=a.date,e=a._highlightResult.title,f=a._snippetResult.content;d[b]&&d[b].context.length>f.value||(d[b]={uri:b,title:e.value,date:c,context:f.value})}),p(Object.values(d).slice(0,c))}).catch(function(a){console.error(a),p([])});else if("fuse"===a.type){var r=function(){var a={};return window._index.search(b).forEach(function(b){var c=b.item,d=b.refIndex,f=b.matches,g=c.title,h=c.content;f.forEach(function(a){var b=a.indices,c=a.value,d=a.key;if("content"===d)for(var f=0,j=0;j")+k+"");h=h.substring(0,b[j][0]+f)+l+h.substring(b[j][1]+1+f,h.length),f+=2*e.length+5}else if("title"===d)for(var m=0,n=0;n")+o+"");g=g.substring(0,b[n][0]+m)+p+g.substring(b[n][1]+1+m,h.length),m+=2*e.length+5}}),a[c.uri]={uri:c.uri,title:g,date:c.date,context:h}}),Object.values(a).slice(0,c)};window._index?p(r()):fetch(a.fuseIndexURL).then(function(a){return a.json()}).then(function(a){window._index=new Fuse(a,{isCaseSensitive:f,findAllMatches:h,minMatchCharLength:g,location:i,threshold:j,distance:k,ignoreLocation:l,useExtendedSearch:m,ignoreFieldNorm:n,includeScore:!1,shouldSort:!0,includeMatches:!0,keys:["content","title"]}),p(r())}).catch(function(a){console.error(a),p([])})}},templates:{suggestion:function suggestion(a){var b=a.title,c=a.date,d=a.context;return"
".concat(b,"").concat(c,"
").concat(d,"
")},empty:function empty(b){var c=b.query;return"
".concat(a.noResultsFound,": \"").concat(c,"\"
")},footer:function footer(b){_objectDestructuringEmpty(b);var c="algolia"===a.type?{searchType:"algolia",icon:"",href:"https://www.algolia.com/"}:"lunr"===a.type?{searchType:"Lunr.js",icon:"",href:"https://lunrjs.com/"}:{searchType:"Fuse.js",icon:"",href:"https://fusejs.io/"},d=c.searchType,e=c.icon,f=c.href;return"")}}});p.on("autocomplete:selected",function(a,b){window.location.assign(b.uri)}),b?window._searchMobile=p:window._searchDesktop=p};if(a.lunrSegmentitURL&&!document.getElementById("lunr-segmentit")){var v=document.createElement("script");v.id="lunr-segmentit",v.type="text/javascript",v.src=a.lunrSegmentitURL,v.async=!0,v.readyState?v.onreadystatechange=function(){("loaded"==v.readyState||"complete"==v.readyState)&&(v.onreadystatechange=null,u())}:v.onload=function(){u()},document.body.appendChild(v)}else u()}}function initDetails(){forEach(document.getElementsByClassName("details"),function(a){var b=a.getElementsByClassName("details-summary")[0];b.addEventListener("click",function(){a.classList.toggle("open")},!1)})}function initLightGallery(){if(window.config.lightGallery)lightGallery(document.getElementById("content"),window.config.lightGallery)}function initHighlight(){forEach(document.querySelectorAll(".highlight > pre.chroma"),function(a){var b=document.createElement("div");b.className=a.className;var c=document.createElement("table");b.appendChild(c);var d=document.createElement("tbody");c.appendChild(d);var e=document.createElement("tr");d.appendChild(e);var f=document.createElement("td");e.appendChild(f),a.parentElement.replaceChild(b,a),f.appendChild(a)}),forEach(document.querySelectorAll(".highlight > .chroma"),function(a){var b=a.querySelectorAll("pre.chroma > code");if(b.length){var c=b[b.length-1],d=document.createElement("div");d.className="code-header "+c.className.toLowerCase();var e=document.createElement("span");e.classList.add("code-title"),e.insertAdjacentHTML("afterbegin",""),e.addEventListener("click",function(){a.classList.toggle("open")},!1),d.appendChild(e);var f=document.createElement("span");f.insertAdjacentHTML("afterbegin",""),f.classList.add("ellipses"),f.addEventListener("click",function(){a.classList.add("open")},!1),d.appendChild(f);var g=document.createElement("span");g.insertAdjacentHTML("afterbegin",""),g.classList.add("copy");var h=c.innerText;if((0>window.config.code.maxShownLines||h.split("\n").length=a;a++)forEach(document.querySelectorAll(".single .content > h"+a),function(a){a.classList.add("headerLink"),a.insertAdjacentHTML("afterbegin",""))})}function initToc(){var a=document.getElementById("TableOfContents");if(null!==a)if(document.getElementById("toc-static").getAttribute("kept")||isTocStatic()){var n=document.getElementById("toc-content-static");a.parentElement!==n&&(a.parentElement.removeChild(a),n.appendChild(a)),window._tocOnScroll&&window.scrollEventSet.delete(window._tocOnScroll)}else{var o=document.getElementById("toc-content-auto");a.parentElement!==o&&(a.parentElement.removeChild(a),o.appendChild(a));var b=document.getElementById("toc-auto"),c=document.getElementsByClassName("page")[0],d=c.getBoundingClientRect();b.style.left="".concat(d.left+d.width+20,"px"),b.style.maxWidth="19%",b.style.visibility="visible";var e=a.querySelectorAll("a:first-child"),f=a.getElementsByTagName("li"),g=document.getElementsByClassName("headerLink"),h="normal"!==document.body.getAttribute("header-desktop"),j=document.getElementById("header-desktop").offsetHeight,k=20+(h?j:0),l=b.offsetTop,m=l-k+(h?0:j);window._tocOnScroll=function(){var c=document.getElementById("post-footer").offsetTop,d=c-b.getBoundingClientRect().height,n=d-k+(h?0:j);window.newScrollTopn?(b.style.position="absolute",b.style.top="".concat(d,"px")):(b.style.position="fixed",b.style.top="".concat(k,"px")),forEach(e,function(a){a.classList.remove("active")}),forEach(f,function(a){a.classList.remove("has-active")});for(var o=20+(h?j:0),p=g.length-1,q=0;qo||r<=o&&s>o){p=q;break}}if(0<=p&&p20?(b.classList.remove("animate__fadeInDown"),animateCSS(b,["animate__fadeOutUp","animate__faster"],!0)):(a<-20||20>=window.newScrollTop)&&(b.classList.remove("animate__fadeOutUp"),animateCSS(b,["animate__fadeInDown","animate__faster"],!0))}),window.newScrollTop>100?c&&a>20?(d.classList.remove("animate__fadeIn"),animateCSS(d,["animate__fadeOut","animate__faster"],!0)):(!c||a<-20)&&(d.style.display="block",d.classList.remove("animate__fadeOut"),animateCSS(d,["animate__fadeIn","animate__faster"],!0)):(!c&&(d.classList.remove("animate__fadeIn"),animateCSS(d,["animate__fadeOut","animate__faster"],!0)),d.style.display="none");var e,f=_createForOfIteratorHelper(window.scrollEventSet);try{for(f.s();!(e=f.n()).done;){var g=e.value;g()}}catch(a){f.e(a)}finally{f.f()}window.oldScrollTop=window.newScrollTop}var b=[],c=document.getElementById("view-comments");"auto"===document.body.getAttribute("header-desktop")&&b.push(document.getElementById("header-desktop")),"auto"===document.body.getAttribute("header-mobile")&&b.push(document.getElementById("header-mobile")),document.getElementById("comments")?(c.href="#comments",c.style.display="block"):c.style.display="null";var d=document.getElementById("fixed-buttons");window.addEventListener("scroll",a,!1),document.addEventListener("pjax:send",function(){window.removeEventListener("scroll",a)})}function onResize(){window.addEventListener("resize",function(){window._resizeTimeout||(window._resizeTimeout=window.setTimeout(function(){window._resizeTimeout=null;var a,b=_createForOfIteratorHelper(window.resizeEventSet);try{for(b.s();!(a=b.n()).done;){var c=a.value;c()}}catch(a){b.e(a)}finally{b.f()}window.initToc(),window.initMermaid(),window.initSearch()},100))},!1)}function onClickMask(){document.getElementById("mask").addEventListener("click",function(){var a,b=_createForOfIteratorHelper(window.clickMaskEventSet);try{for(b.s();!(a=b.n()).done;){var c=a.value;c()}}catch(a){b.e(a)}finally{b.f()}document.body.classList.remove("blur")},!1)}function init(){try{window.data=window.config.data,window.isDark="light"!==document.body.getAttribute("theme"),window.newScrollTop=getScrollTop(),window.oldScrollTop=window.newScrollTop,window.scrollEventSet=new Set,window.resizeEventSet=new Set,window.switchThemeEventSet=new Set,window.clickMaskEventSet=new Set,window.pjaxSendEventSet=new Set,window.objectFitImages&&objectFitImages(),initSVGIcon(),initTwemoji(),initMenuMobile(),initSwitchTheme(),initSelectTheme(),initMeta(),initSearch(),initDetails(),initLightGallery(),initHighlight(),initTable(),initHeaderLink(),initMath(),initMermaid(),initEcharts(),initTypeit(),initMapbox(),initCookieconsent(),initToc(),initComment(),onScroll(),onResize(),onClickMask()}catch(a){console.error(a)}}var themeInit=function(){init()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",themeInit,!1):themeInit();var pjax=new Pjax({selectors:["title .pjax-title","main",".menu-item",".pjax-assets","#fixed-buttons",".search-dropdown"]});document.addEventListener("pjax:success",function(){themeInit()}),document.addEventListener("pjax:send",function(){var a,b=_createForOfIteratorHelper(window.pjaxSendEventSet);try{for(b.s();!(a=b.n()).done;){var e=a.value;e()}}catch(a){b.e(a)}finally{b.f()}var c,d=_createForOfIteratorHelper(window.clickMaskEventSet);try{for(d.s();!(c=d.n()).done;){var f=c.value;f()}}catch(a){d.e(a)}finally{d.f()}document.body.classList.remove("blur")}),topbar.config({autoRun:!0,barThickness:3,barColors:{0:"#55bde2"},shadowBlur:0,shadowColor:"rgba(0, 0, 0, .5)",className:"topbar"}),document.addEventListener("pjax:send",topbar.show),document.addEventListener("pjax:complete",topbar.hide),document.addEventListener("pjax:error",topbar.hide); +"use strict";function _objectDestructuringEmpty(a){if(null==a)throw new TypeError("Cannot destructure undefined")}function _createForOfIteratorHelper(a,b){var c="undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray(a))||b&&a&&"number"==typeof a.length){c&&(a=c);var d=0,e=function(){};return{s:e,n:function n(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function e(a){throw a},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,g=!0,h=!1;return{s:function s(){c=c.call(a)},n:function n(){var a=c.next();return g=a.done,a},e:function e(a){h=!0,f=a},f:function f(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c$1")),j=j.replace(new RegExp("(".concat(a,")"),"gi"),"<".concat(e,">$1"))}),a[h]={uri:h,title:i,date:g.date,context:j}}}),Object.values(a).slice(0,c)};window._index?p(q()):fetch(a.lunrIndexURL).then(function(a){return a.json()}).then(function(b){var c={};window._index=lunr(function(){a.lunrLanguageCode&&window.use(lunr[a.lunrLanguageCode]),window.ref("objectID"),window.field("title",{boost:50}),window.field("tags",{boost:20}),window.field("categories",{boost:20}),window.field("content",{boost:10}),window.metadataWhitelist=["position"],b.forEach(function(a){c[a.objectID]=a,window.add(a)})}),window._indexData=c,p(q())}).catch(function(a){console.error(a),p([])})}else if("algolia"===a.type)window._algoliaIndex=window._algoliaIndex||algoliasearch(a.algoliaAppID,a.algoliaSearchKey).initIndex(a.algoliaIndex),window._algoliaIndex.search(b,{offset:0,length:8*c,attributesToHighlight:["title"],attributesToSnippet:["content:".concat(d)],highlightPreTag:"<".concat(e,">"),highlightPostTag:"")}).then(function(a){var b=a.hits,d={};b.forEach(function(a){var b=a.uri,c=a.date,e=a._highlightResult.title,f=a._snippetResult.content;d[b]&&d[b].context.length>f.value||(d[b]={uri:b,title:e.value,date:c,context:f.value})}),p(Object.values(d).slice(0,c))}).catch(function(a){console.error(a),p([])});else if("fuse"===a.type){var r=function(){var a={};return window._index.search(b).forEach(function(b){var c=b.item,d=b.refIndex,f=b.matches,g=c.title,h=c.content;f.forEach(function(a){var b=a.indices,c=a.value,d=a.key;if("content"===d)for(var f=0,j=0;j")+k+"");h=h.substring(0,b[j][0]+f)+l+h.substring(b[j][1]+1+f,h.length),f+=2*e.length+5}else if("title"===d)for(var m=0,n=0;n")+o+"");g=g.substring(0,b[n][0]+m)+p+g.substring(b[n][1]+1+m,h.length),m+=2*e.length+5}}),a[c.uri]={uri:c.uri,title:g,date:c.date,context:h}}),Object.values(a).slice(0,c)};window._index?p(r()):fetch(a.fuseIndexURL).then(function(a){return a.json()}).then(function(a){window._index=new Fuse(a,{isCaseSensitive:f,findAllMatches:h,minMatchCharLength:g,location:i,threshold:j,distance:k,ignoreLocation:l,useExtendedSearch:m,ignoreFieldNorm:n,includeScore:!1,shouldSort:!0,includeMatches:!0,keys:["content","title"]}),p(r())}).catch(function(a){console.error(a),p([])})}},templates:{suggestion:function suggestion(a){var b=a.title,c=a.date,d=a.context;return"
".concat(b,"").concat(c,"
").concat(d,"
")},empty:function empty(b){var c=b.query;return"
".concat(a.noResultsFound,": \"").concat(c,"\"
")},footer:function footer(b){_objectDestructuringEmpty(b);var c="algolia"===a.type?{searchType:"algolia",icon:"",href:"https://www.algolia.com/"}:"lunr"===a.type?{searchType:"Lunr.js",icon:"",href:"https://lunrjs.com/"}:{searchType:"Fuse.js",icon:"",href:"https://fusejs.io/"},d=c.searchType,e=c.icon,f=c.href;return"")}}});p.on("autocomplete:selected",function(a,b){window.location.assign(b.uri)}),b?window._searchMobile=p:window._searchDesktop=p};if(a.lunrSegmentitURL&&!document.getElementById("lunr-segmentit")){var v=document.createElement("script");v.id="lunr-segmentit",v.type="text/javascript",v.src=a.lunrSegmentitURL,v.async=!0,v.readyState?v.onreadystatechange=function(){("loaded"==v.readyState||"complete"==v.readyState)&&(v.onreadystatechange=null,u())}:v.onload=function(){u()},document.body.appendChild(v)}else u()}}function initDetails(){forEach(document.getElementsByClassName("details"),function(a){var b=a.getElementsByClassName("details-summary")[0];b.addEventListener("click",function(){a.classList.toggle("open")},!1)})}function initLightGallery(){if(window.config.lightGallery)lightGallery(document.getElementById("content"),window.config.lightGallery)}function initHighlight(){forEach(document.querySelectorAll(".highlight > pre.chroma"),function(a){var b=document.createElement("div");b.className=a.className;var c=document.createElement("table");b.appendChild(c);var d=document.createElement("tbody");c.appendChild(d);var e=document.createElement("tr");d.appendChild(e);var f=document.createElement("td");e.appendChild(f),a.parentElement.replaceChild(b,a),f.appendChild(a)}),forEach(document.querySelectorAll(".highlight > .chroma"),function(a){var b=a.querySelectorAll("pre.chroma > code");if(b.length){var c=b[b.length-1],d=document.createElement("div");d.className="code-header "+c.className.toLowerCase();var e=document.createElement("span");e.classList.add("code-title"),e.insertAdjacentHTML("afterbegin",""),e.addEventListener("click",function(){a.classList.toggle("open")},!1),d.appendChild(e);var f=document.createElement("span");f.insertAdjacentHTML("afterbegin",""),f.classList.add("ellipses"),f.addEventListener("click",function(){a.classList.add("open")},!1),d.appendChild(f);var g=document.createElement("span");g.insertAdjacentHTML("afterbegin",""),g.classList.add("copy");var h=c.innerText;if((0>window.config.code.maxShownLines||h.split("\n").length=a;a++)forEach(document.querySelectorAll(".single .content > h"+a),function(a){a.classList.add("headerLink"),a.insertAdjacentHTML("afterbegin",""))})}function initToc(){var a=document.getElementById("TableOfContents");if(null!==a)if(document.getElementById("toc-static").getAttribute("kept")||isTocStatic()){var n=document.getElementById("toc-content-static");a.parentElement!==n&&(a.parentElement.removeChild(a),n.appendChild(a)),window._tocOnScroll&&window.scrollEventSet.delete(window._tocOnScroll)}else{var o=document.getElementById("toc-content-auto");a.parentElement!==o&&(a.parentElement.removeChild(a),o.appendChild(a));var b=document.getElementById("toc-auto"),c=document.getElementsByClassName("page")[0],d=c.getBoundingClientRect();b.style.left="".concat(d.left+d.width+20,"px"),b.style.maxWidth="19%",b.style.visibility="visible";var e=a.querySelectorAll("a:first-child"),f=a.getElementsByTagName("li"),g=document.getElementsByClassName("headerLink"),h="normal"!==document.body.getAttribute("header-desktop"),j=document.getElementById("header-desktop").offsetHeight,k=20+(h?j:0),l=b.offsetTop,m=l-k+(h?0:j);window._tocOnScroll=function(){var c=document.getElementById("post-footer").offsetTop,d=c-b.getBoundingClientRect().height,n=d-k+(h?0:j);window.newScrollTopn?(b.style.position="absolute",b.style.top="".concat(d,"px")):(b.style.position="fixed",b.style.top="".concat(k,"px")),forEach(e,function(a){a.classList.remove("active")}),forEach(f,function(a){a.classList.remove("has-active")});for(var o=20+(h?j:0),p=g.length-1,q=0;qo||r<=o&&s>o){p=q;break}}if(0<=p&&p20?(b.classList.remove("animate__fadeInDown"),animateCSS(b,["animate__fadeOutUp","animate__faster"],!0)):(a<-20||20>=window.newScrollTop)&&(b.classList.remove("animate__fadeOutUp"),animateCSS(b,["animate__fadeInDown","animate__faster"],!0))}),window.newScrollTop>100?c&&a>20?(d.classList.remove("animate__fadeIn"),animateCSS(d,["animate__fadeOut","animate__faster"],!0)):(!c||a<-20)&&(d.style.display="block",d.classList.remove("animate__fadeOut"),animateCSS(d,["animate__fadeIn","animate__faster"],!0)):(!c&&(d.classList.remove("animate__fadeIn"),animateCSS(d,["animate__fadeOut","animate__faster"],!0)),d.style.display="none");var e,f=_createForOfIteratorHelper(window.scrollEventSet);try{for(f.s();!(e=f.n()).done;){var g=e.value;g()}}catch(a){f.e(a)}finally{f.f()}window.oldScrollTop=window.newScrollTop}var b=[],c=document.getElementById("view-comments");"auto"===document.body.getAttribute("header-desktop")&&b.push(document.getElementById("header-desktop")),"auto"===document.body.getAttribute("header-mobile")&&b.push(document.getElementById("header-mobile")),document.getElementById("comments")?(c.href="#comments",c.style.display="block"):c.style.display="null";var d=document.getElementById("fixed-buttons");window.addEventListener("scroll",a,!1),document.addEventListener("pjax:send",function(){window.removeEventListener("scroll",a)})}function onResize(){window.addEventListener("resize",function(){window._resizeTimeout||(window._resizeTimeout=window.setTimeout(function(){window._resizeTimeout=null;var a,b=_createForOfIteratorHelper(window.resizeEventSet);try{for(b.s();!(a=b.n()).done;){var c=a.value;c()}}catch(a){b.e(a)}finally{b.f()}window.initToc(),window.initMermaid(),window.initSearch()},100))},!1)}function onClickMask(){document.getElementById("mask").addEventListener("click",function(){var a,b=_createForOfIteratorHelper(window.clickMaskEventSet);try{for(b.s();!(a=b.n()).done;){var c=a.value;c()}}catch(a){b.e(a)}finally{b.f()}document.body.classList.remove("blur")},!1)}function init(){try{window.data=window.config.data,window.isDark="light"!==document.body.getAttribute("theme"),window.newScrollTop=getScrollTop(),window.oldScrollTop=window.newScrollTop,window.scrollEventSet=new Set,window.resizeEventSet=new Set,window.switchThemeEventSet=new Set,window.clickMaskEventSet=new Set,window.pjaxSendEventSet=new Set,window.objectFitImages&&objectFitImages(),initSVGIcon(),initTwemoji(),initMenuMobile(),initSwitchTheme(),initSelectTheme(),initMeta(),initSearch(),initDetails(),initLightGallery(),initHighlight(),initTable(),initHeaderLink(),initMath(),initMermaid(),initEcharts(),initTypeit(),initMapbox(),initCookieconsent(),initToc(),initComment(),onScroll(),onResize(),onClickMask()}catch(a){console.error(a)}}var themeInit=function(){init()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",themeInit,!1):themeInit();var pjax=new Pjax({selectors:["title .pjax-title","main",".menu-item",".pjax-assets","#fixed-buttons",".search-dropdown"]});document.addEventListener("pjax:success",function(){themeInit()}),document.addEventListener("pjax:send",function(){var a,b=_createForOfIteratorHelper(window.pjaxSendEventSet);try{for(b.s();!(a=b.n()).done;){var e=a.value;e()}}catch(a){b.e(a)}finally{b.f()}var c,d=_createForOfIteratorHelper(window.clickMaskEventSet);try{for(d.s();!(c=d.n()).done;){var f=c.value;f()}}catch(a){d.e(a)}finally{d.f()}document.body.classList.remove("blur")}),topbar.config({autoRun:!0,barThickness:3,barColors:{0:"#55bde2"},shadowBlur:0,shadowColor:"rgba(0, 0, 0, .5)",className:"topbar"}),document.addEventListener("pjax:send",topbar.show),document.addEventListener("pjax:complete",topbar.hide),document.addEventListener("pjax:error",topbar.hide); //# sourceMappingURL=theme.min.js.map \ No newline at end of file diff --git a/assets/js/theme.min.js.map b/assets/js/theme.min.js.map index 34681c54d..46bed1ccd 100644 --- a/assets/js/theme.min.js.map +++ b/assets/js/theme.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/js/theme.js"],"names":[],"mappings":"kxDAAA,QAAS,CAAA,OAAT,CAAiB,CAAjB,CAA2B,CAA3B,CAAoC,CAChC,CAAQ,CAAG,CAAQ,EAAI,EADS,CAEhC,IAAK,GAAI,CAAA,CAAC,CAAG,CAAb,CAAgB,CAAC,CAAG,CAAQ,CAAC,MAA7B,CAAqC,CAAC,EAAtC,CAA0C,CAAO,CAAC,CAAQ,CAAC,CAAD,CAAT,CACpD,CAED,QAAS,CAAA,YAAT,EAAwB,CACpB,MAAQ,CAAA,QAAQ,CAAC,eAAT,EAA4B,QAAQ,CAAC,eAAT,CAAyB,SAAtD,EAAoE,QAAQ,CAAC,IAAT,CAAc,SA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,CAA+B,MAA/B,CACH,CAJD,C,CAMA,MAAM,CAAC,MAAP,CAAc,CACV,OAAO,GADG,CAEV,YAAY,CAAE,CAFJ,CAGV,SAAS,CAAE,CACP,EAAK,SADE,CAHD,CAMV,UAAU,CAAE,CANF,CAOV,WAAW,CAAE,mBAPH,CAQV,SAAS,CAAE,QARD,CAAd,C,CAUA,QAAQ,CAAC,gBAAT,CAA0B,WAA1B,CAAuC,MAAM,CAAC,IAA9C,C,CACA,QAAQ,CAAC,gBAAT,CAA0B,eAA1B,CAA2C,MAAM,CAAC,IAAlD,C,CACA,QAAQ,CAAC,gBAAT,CAA0B,YAA1B,CAAwC,MAAM,CAAC,IAA/C,C","file":"theme.min.js","sourcesContent":["function forEach(elements, handler) {\n elements = elements || [];\n for (let i = 0; i < elements.length; i++) handler(elements[i]);\n}\n\nfunction getScrollTop() {\n return (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;\n}\n\nfunction isMobileWindow() {\n return window.matchMedia('only screen and (max-width: 680px)').matches;\n}\n\nfunction isTocStatic() {\n return window.matchMedia('only screen and (max-width: 1000px)').matches;\n}\n\nfunction animateCSS(element, animation, reserved, callback) {\n if (!Array.isArray(animation)) animation = [animation];\n element.classList.add('animate__animated', ...animation);\n const handler = () => {\n element.classList.remove('animate__animated', ...animation);\n element.removeEventListener('animationend', handler);\n if (typeof callback === 'function') callback();\n };\n if (!reserved) element.addEventListener('animationend', handler, false);\n}\n\n\nfunction initSVGIcon() {\n forEach(document.querySelectorAll('[data-svg-src]'), $icon => {\n fetch($icon.getAttribute('data-svg-src'))\n .then(response => response.text())\n .then(svg => {\n const $temp = document.createElement('div');\n $temp.insertAdjacentHTML('afterbegin', svg);\n const $svg = $temp.firstChild;\n $svg.setAttribute('data-svg-src', $icon.getAttribute('data-svg-src'));\n $svg.classList.add('icon');\n const $titleElements = $svg.getElementsByTagName('title');\n if ($titleElements.length) $svg.removeChild($titleElements[0]);\n $icon.parentElement.replaceChild($svg, $icon);\n })\n .catch(err => { console.error(err); });\n });\n}\n\nfunction initTwemoji() {\n if (window.config.twemoji) twemoji.parse(document.body);\n}\n\nfunction initMenuMobile() {\n const $menuToggleMobile = document.getElementById('menu-toggle-mobile');\n const $menuMobile = document.getElementById('menu-mobile');\n if (!window.menuToggleMobileEventListener) {\n $menuToggleMobile.addEventListener('click', () => {\n document.body.classList.toggle('blur');\n $menuToggleMobile.classList.toggle('active');\n $menuMobile.classList.toggle('active');\n }, false);\n window.menuToggleMobileEventListener = true;\n }\n window._menuMobileOnClickMask = (() => {\n $menuToggleMobile.classList.remove('active');\n $menuMobile.classList.remove('active');\n });\n window.clickMaskEventSet.add(window._menuMobileOnClickMask);\n}\n\nfunction initSwitchTheme() {\n forEach(document.getElementsByClassName('theme-switch'), $themeSwitch => {\n $themeSwitch.addEventListener('click', () => {\n let currentTheme = document.body.getAttribute('theme');\n if (currentTheme === 'dark') {\n document.body.setAttribute('theme', 'black');\n window.localStorage && localStorage.setItem('theme', 'black');\n window.isDark = true;\n } else if (currentTheme === 'black') {\n document.body.setAttribute('theme', 'light');\n window.localStorage && localStorage.setItem('theme', 'light');\n window.isDark = false;\n } else {\n document.body.setAttribute('theme', 'dark');\n window.localStorage && localStorage.setItem('theme', 'dark');\n window.isDark = true;\n }\n for (let event of window.switchThemeEventSet) event();\n }, false);\n });\n}\n\nfunction initSelectTheme() {\n forEach(document.getElementsByClassName('color-theme-select'), $themeSelect => {\n let currentTheme = document.body.getAttribute('theme');\n for (let i, j = 0; i = $themeSelect.options[j]; j++) {\n if (i.value == currentTheme) {\n $themeSelect.selectedIndex = j;\n break;\n }\n }\n $themeSelect.addEventListener('change', () => {\n let theme = $themeSelect.value;\n window.localStorage && localStorage.setItem('theme', theme);\n if (theme != 'auto') {\n document.body.setAttribute('theme', theme);\n if (theme == 'light') {\n window.isDark = false;\n } else {\n window.isDark = true;\n }\n } else {\n if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {\n document.body.setAttribute('theme', 'dark');\n window.isDark = true;\n } else {\n document.body.setAttribute('theme', 'white');\n window.isDark = false;\n }\n }\n for (let event of window.switchThemeEventSet) event();\n }, false);\n });\n}\n\nfunction initSearch() {\n const searchConfig = window.config.search;\n const isMobile = isMobileWindow();\n if (!searchConfig) return;\n\n const maxResultLength = searchConfig.maxResultLength ? searchConfig.maxResultLength : 10;\n const snippetLength = searchConfig.snippetLength ? searchConfig.snippetLength : 50;\n const highlightTag = searchConfig.highlightTag ? searchConfig.highlightTag : 'em';\n const isCaseSensitive = searchConfig.isCaseSensitive ? searchConfig.isCaseSensitive : false;\n const minMatchCharLength = searchConfig.minMatchCharLength ? searchConfig.minMatchCharLength : 1;\n const findAllMatches = searchConfig.findAllMatches ? searchConfig.findAllMatches : false;\n const location = searchConfig.location ? searchConfig.location : 0;\n const threshold = searchConfig.threshold ? searchConfig.threshold : 0.3;\n const distance = searchConfig.distance ? searchConfig.distance : 100;\n const ignoreLocation = searchConfig.ignoreLocation ? searchConfig.ignoreLocation : false;\n const useExtendedSearch = searchConfig.useExtendedSearch ? searchConfig.useExtendedSearch : false;\n const ignoreFieldNorm = searchConfig.ignoreFieldNorm ? searchConfig.ignoreFieldNorm : false;\n const suffix = isMobile ? 'mobile' : 'desktop';\n const $header = document.getElementById(`header-${suffix}`);\n const $searchInput = document.getElementById(`search-input-${suffix}`);\n const $searchToggle = document.getElementById(`search-toggle-${suffix}`);\n const $searchLoading = document.getElementById(`search-loading-${suffix}`);\n const $searchClear = document.getElementById(`search-clear-${suffix}`);\n if (isMobile) {\n $searchInput.addEventListener('focus', () => {\n document.body.classList.add('blur');\n $header.classList.add('open');\n }, false);\n document.getElementById('search-cancel-mobile').addEventListener('click', () => {\n $header.classList.remove('open');\n document.body.classList.remove('blur');\n document.getElementById('menu-toggle-mobile').classList.remove('active');\n document.getElementById('menu-mobile').classList.remove('active');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n window._searchMobile && window._searchMobile.autocomplete.setVal('');\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n window._searchMobile && window._searchMobile.autocomplete.setVal('');\n }, false);\n window._searchMobileOnClickMask = (() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n window._searchMobile && window._searchMobile.autocomplete.setVal('');\n });\n window.clickMaskEventSet.add(window._searchMobileOnClickMask);\n window.pjaxSendEventSet.add(window._searchMobileOnClickMask);\n } else {\n $searchToggle.addEventListener('click', () => {\n document.body.classList.add('blur');\n $header.classList.add('open');\n $searchInput.focus();\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n window._searchDesktop && window._searchDesktop.autocomplete.setVal('');\n }, false);\n window._searchDesktopOnClickMask = (() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n window._searchDesktop && window._searchDesktop.autocomplete.setVal('');\n });\n window.clickMaskEventSet.add(window._searchDesktopOnClickMask);\n window.pjaxSendEventSet.add(window._searchDesktopOnClickMask);\n }\n $searchInput.addEventListener('input', () => {\n if ($searchInput.value === '') $searchClear.style.display = 'none';\n else $searchClear.style.display = 'inline';\n }, false);\n\n const initAutosearch = () => {\n const autosearch = autocomplete(`#search-input-${suffix}`, {\n hint: false,\n autoselect: true,\n dropdownMenuContainer: `#search-dropdown-${suffix}`,\n clearOnSelected: true,\n cssClasses: { noPrefix: true },\n debug: true,\n }, {\n name: 'search',\n source: (query, callback) => {\n $searchLoading.style.display = 'inline';\n $searchClear.style.display = 'none';\n const finish = (results) => {\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'inline';\n callback(results);\n };\n if (searchConfig.type === 'lunr') {\n const search = () => {\n if (lunr.queryHandler) query = lunr.queryHandler(query);\n const results = {};\n window._index.search(query).forEach(({ ref, matchData: { metadata } }) => {\n const matchData = window._indexData[ref];\n let { uri, title, content: context } = matchData;\n if (results[uri]) return;\n let position = 0;\n Object.values(metadata).forEach(({ content }) => {\n if (content) {\n const matchPosition = content.position[0][0];\n if (matchPosition < position || position === 0) position = matchPosition;\n }\n });\n position -= snippetLength / 5;\n if (position > 0) {\n position += context.substr(position, 20).lastIndexOf(' ') + 1;\n context = '...' + context.substr(position, snippetLength);\n } else {\n context = context.substr(0, snippetLength);\n }\n Object.keys(metadata).forEach(key => {\n title = title.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n context = context.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n });\n results[uri] = {\n 'uri': uri,\n 'title': title,\n 'date': matchData.date,\n 'context': context,\n };\n });\n return Object.values(results).slice(0, maxResultLength);\n }\n if (!window._index) {\n fetch(searchConfig.lunrIndexURL)\n .then(response => response.json())\n .then(data => {\n const indexData = {};\n window._index = lunr(function () {\n if (searchConfig.lunrLanguageCode) window.use(lunr[searchConfig.lunrLanguageCode]);\n window.ref('objectID');\n window.field('title', { boost: 50 });\n window.field('tags', { boost: 20 });\n window.field('categories', { boost: 20 });\n window.field('content', { boost: 10 });\n window.metadataWhitelist = ['position'];\n data.forEach((record) => {\n indexData[record.objectID] = record;\n window.add(record);\n });\n });\n window._indexData = indexData;\n finish(search());\n }).catch(err => {\n console.error(err);\n finish([]);\n });\n } else finish(search());\n } else if (searchConfig.type === 'algolia') {\n window._algoliaIndex = window._algoliaIndex || algoliasearch(searchConfig.algoliaAppID, searchConfig.algoliaSearchKey).initIndex(searchConfig.algoliaIndex);\n window._algoliaIndex\n .search(query, {\n offset: 0,\n length: maxResultLength * 8,\n attributesToHighlight: ['title'],\n attributesToSnippet: [`content:${snippetLength}`],\n highlightPreTag: `<${highlightTag}>`,\n highlightPostTag: ``,\n })\n .then(({ hits }) => {\n const results = {};\n hits.forEach(({ uri, date, _highlightResult: { title }, _snippetResult: { content } }) => {\n if (results[uri] && results[uri].context.length > content.value) return;\n results[uri] = {\n uri: uri,\n title: title.value,\n date: date,\n context: content.value,\n };\n });\n finish(Object.values(results).slice(0, maxResultLength));\n })\n .catch(err => {\n console.error(err);\n finish([]);\n });\n } else if (searchConfig.type === 'fuse') {\n const search = () => {\n const results = {};\n window._index.search(query).forEach(({ item, refIndex, matches }) => {\n let title = item.title;\n let content = item.content;\n matches.forEach(({ indices, value, key }) => {\n if (key === 'content') {\n let offset = 0;\n for (let i = 0; i < indices.length; i++) {\n let substr = content.substring(indices[i][0] + offset, indices[i][1] + 1 + offset);\n let tag = `<${highlightTag}>` + substr + ``;\n content = content.substring(0, indices[i][0] + offset) + tag + content.substring(indices[i][1] + 1 + offset, content.length);\n offset += highlightTag.length * 2 + 5;\n }\n } else if (key === 'title') {\n let offset = 0;\n for (let i = 0; i < indices.length; i++) {\n let substr = title.substring(indices[i][0] + offset, indices[i][1] + 1 + offset);\n let tag = `<${highlightTag}>` + substr + ``;\n title = title.substring(0, indices[i][0] + offset) + tag + title.substring(indices[i][1] + 1 + offset, content.length);\n offset += highlightTag.length * 2 + 5;\n\n }\n }\n });\n results[item.uri] = {\n 'uri': item.uri,\n 'title': title,\n 'date': item.date,\n 'context': content\n };\n });\n return Object.values(results).slice(0, maxResultLength);\n }\n if (!window._index) {\n fetch(searchConfig.fuseIndexURL)\n .then(response => response.json())\n .then(data => {\n const options = {\n isCaseSensitive: isCaseSensitive,\n findAllMatches: findAllMatches,\n minMatchCharLength: minMatchCharLength,\n location: location,\n threshold: threshold,\n distance: distance,\n ignoreLocation: ignoreLocation,\n useExtendedSearch: useExtendedSearch,\n ignoreFieldNorm: ignoreFieldNorm,\n includeScore: false,\n shouldSort: true,\n includeMatches: true,\n keys: [\n \"content\",\n \"title\"\n ]\n };\n window._index = new Fuse(data, options);\n finish(search());\n }).catch(err => {\n console.error(err);\n finish([]);\n })\n } else finish(search());\n }\n },\n templates: {\n suggestion: ({ title, date, context }) => `
${title}${date}
${context}
`,\n empty: ({ query }) => `
${searchConfig.noResultsFound}: \"${query}\"
`,\n footer: ({ }) => {\n const { searchType, icon, href } = searchConfig.type === 'algolia' ? {\n searchType: 'algolia',\n icon: '',\n href: 'https://www.algolia.com/',\n } : (searchConfig.type === 'lunr' ? {\n searchType: 'Lunr.js',\n icon: '',\n href: 'https://lunrjs.com/',\n } : {\n searchType: 'Fuse.js',\n icon: '',\n href: 'https://fusejs.io/',\n });\n return ``;\n },\n },\n });\n autosearch.on('autocomplete:selected', (_event, suggestion, _dataset, _context) => {\n window.location.assign(suggestion.uri);\n });\n if (isMobile) window._searchMobile = autosearch;\n else window._searchDesktop = autosearch;\n };\n if (searchConfig.lunrSegmentitURL && !document.getElementById('lunr-segmentit')) {\n const script = document.createElement('script');\n script.id = 'lunr-segmentit';\n script.type = 'text/javascript';\n script.src = searchConfig.lunrSegmentitURL;\n script.async = true;\n if (script.readyState) {\n script.onreadystatechange = () => {\n if (script.readyState == 'loaded' || script.readyState == 'complete') {\n script.onreadystatechange = null;\n initAutosearch();\n }\n };\n } else {\n script.onload = () => {\n initAutosearch();\n };\n }\n document.body.appendChild(script);\n } else initAutosearch();\n}\n\nfunction initDetails() {\n forEach(document.getElementsByClassName('details'), $details => {\n const $summary = $details.getElementsByClassName('details-summary')[0];\n $summary.addEventListener('click', () => {\n $details.classList.toggle('open');\n }, false);\n });\n}\n\nfunction initLightGallery() {\n if (window.config.lightGallery) {\n const instance = lightGallery(document.getElementById('content'), window.config.lightGallery);\n }\n}\n\nfunction initHighlight() {\n forEach(document.querySelectorAll('.highlight > pre.chroma'), $preChroma => {\n const $chroma = document.createElement('div');\n $chroma.className = $preChroma.className;\n const $table = document.createElement('table');\n $chroma.appendChild($table);\n const $tbody = document.createElement('tbody');\n $table.appendChild($tbody);\n const $tr = document.createElement('tr');\n $tbody.appendChild($tr);\n const $td = document.createElement('td');\n $tr.appendChild($td);\n $preChroma.parentElement.replaceChild($chroma, $preChroma);\n $td.appendChild($preChroma);\n });\n forEach(document.querySelectorAll('.highlight > .chroma'), $chroma => {\n const $codeElements = $chroma.querySelectorAll('pre.chroma > code');\n if ($codeElements.length) {\n const $code = $codeElements[$codeElements.length - 1];\n const $header = document.createElement('div');\n $header.className = 'code-header ' + $code.className.toLowerCase();\n const $title = document.createElement('span');\n $title.classList.add('code-title');\n $title.insertAdjacentHTML('afterbegin', '');\n $title.addEventListener('click', () => {\n $chroma.classList.toggle('open');\n }, false);\n $header.appendChild($title);\n const $ellipses = document.createElement('span');\n $ellipses.insertAdjacentHTML('afterbegin', '');\n $ellipses.classList.add('ellipses');\n $ellipses.addEventListener('click', () => {\n $chroma.classList.add('open');\n }, false);\n $header.appendChild($ellipses);\n const $copy = document.createElement('span');\n $copy.insertAdjacentHTML('afterbegin', '');\n $copy.classList.add('copy');\n const code = $code.innerText;\n if (window.config.code.maxShownLines < 0 || code.split('\\n').length < window.config.code.maxShownLines + 2) $chroma.classList.add('open');\n if (window.config.code.copyTitle) {\n $copy.setAttribute('data-clipboard-text', code);\n $copy.title = window.config.code.copyTitle;\n const clipboard = new ClipboardJS($copy);\n clipboard.on('success', _e => {\n animateCSS($code, 'animate__flash');\n $copy.firstElementChild.className = \"fas fa-check fa-fw\";\n setTimeout(() => {\n $copy.firstElementChild.className = \"far fa-copy fa-fw\";\n }, 3000);\n });\n $header.appendChild($copy);\n }\n $chroma.insertBefore($header, $chroma.firstChild);\n }\n });\n}\n\nfunction initTable() {\n forEach(document.querySelectorAll('.content table'), $table => {\n const $wrapper = document.createElement('div');\n $wrapper.className = 'table-wrapper';\n $table.parentElement.replaceChild($wrapper, $table);\n $wrapper.appendChild($table);\n });\n}\n\nfunction initHeaderLink() {\n for (let num = 1; num <= 6; num++) {\n forEach(document.querySelectorAll('.single .content > h' + num), $header => {\n $header.classList.add('headerLink');\n $header.insertAdjacentHTML('afterbegin', ``);\n });\n }\n}\n\nfunction initToc() {\n const $tocCore = document.getElementById('TableOfContents');\n if ($tocCore === null) return;\n if (document.getElementById('toc-static').getAttribute('kept') || isTocStatic()) {\n const $tocContentStatic = document.getElementById('toc-content-static');\n if ($tocCore.parentElement !== $tocContentStatic) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentStatic.appendChild($tocCore);\n }\n if (window._tocOnScroll) window.scrollEventSet.delete(window._tocOnScroll);\n } else {\n const $tocContentAuto = document.getElementById('toc-content-auto');\n if ($tocCore.parentElement !== $tocContentAuto) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentAuto.appendChild($tocCore);\n }\n const $toc = document.getElementById('toc-auto');\n const $page = document.getElementsByClassName('page')[0];\n const rect = $page.getBoundingClientRect();\n $toc.style.left = `${rect.left + rect.width + 20}px`;\n $toc.style.maxWidth = `19%`;\n $toc.style.visibility = 'visible';\n const $tocLinkElements = $tocCore.querySelectorAll('a:first-child');\n const $tocLiElements = $tocCore.getElementsByTagName('li');\n const $headerLinkElements = document.getElementsByClassName('headerLink');\n const headerIsFixed = document.body.getAttribute('header-desktop') !== 'normal';\n const headerHeight = document.getElementById('header-desktop').offsetHeight;\n const TOP_SPACING = 20 + (headerIsFixed ? headerHeight : 0);\n const minTocTop = $toc.offsetTop;\n const minScrollTop = minTocTop - TOP_SPACING + (headerIsFixed ? 0 : headerHeight);\n window._tocOnScroll = (() => {\n const footerTop = document.getElementById('post-footer').offsetTop;\n const maxTocTop = footerTop - $toc.getBoundingClientRect().height;\n const maxScrollTop = maxTocTop - TOP_SPACING + (headerIsFixed ? 0 : headerHeight);\n if (window.newScrollTop < minScrollTop) {\n $toc.style.position = 'absolute';\n $toc.style.top = `${minTocTop}px`;\n } else if (window.newScrollTop > maxScrollTop) {\n $toc.style.position = 'absolute';\n $toc.style.top = `${maxTocTop}px`;\n } else {\n $toc.style.position = 'fixed';\n $toc.style.top = `${TOP_SPACING}px`;\n }\n\n forEach($tocLinkElements, $tocLink => { $tocLink.classList.remove('active'); });\n forEach($tocLiElements, $tocLi => { $tocLi.classList.remove('has-active'); });\n const INDEX_SPACING = 20 + (headerIsFixed ? headerHeight : 0);\n let activeTocIndex = $headerLinkElements.length - 1;\n for (let i = 0; i < $headerLinkElements.length - 1; i++) {\n const windowTop = $headerLinkElements[i].getBoundingClientRect().top;\n const nextTop = $headerLinkElements[i + 1].getBoundingClientRect().top;\n if ((i == 0 && windowTop > INDEX_SPACING)\n || (windowTop <= INDEX_SPACING && nextTop > INDEX_SPACING)) {\n activeTocIndex = i;\n break;\n }\n }\n if (activeTocIndex >= 0 && activeTocIndex < $tocLinkElements.length) {\n $tocLinkElements[activeTocIndex].classList.add('active');\n let $parent = $tocLinkElements[activeTocIndex].parentElement;\n while ($parent !== $tocCore) {\n $parent.classList.add('has-active');\n $parent = $parent.parentElement.parentElement;\n }\n }\n });\n window._tocOnScroll();\n window.scrollEventSet.add(window._tocOnScroll);\n }\n}\n\nfunction initMath() {\n if (window.config.math) renderMathInElement(document.body, window.config.math);\n}\n\nfunction initMermaid() {\n const $mermaidElements = document.getElementsByClassName('mermaid');\n if ($mermaidElements.length) {\n mermaid.initialize({ startOnLoad: false, theme: 'default' });\n forEach($mermaidElements, $mermaid => {\n mermaid.mermaidAPI.render('svg-' + $mermaid.id, window.data[$mermaid.id], svgCode => {\n $mermaid.insertAdjacentHTML('afterbegin', svgCode);\n document.getElementById('svg-' + $mermaid.id).children[0].remove();\n }, $mermaid);\n });\n }\n}\n\nfunction initEcharts() {\n window._echartsOnSwitchTheme = (() => {\n window._echartsArr = window._echartsArr || [];\n for (let i = 0; i < window._echartsArr.length; i++) {\n window._echartsArr[i].dispose();\n }\n window._echartsArr = [];\n forEach(document.getElementsByClassName('echarts'), $echarts => {\n const chart = echarts.init($echarts, window.isDark ? 'dark' : 'macarons', { renderer: 'svg' });\n chart.setOption(JSON.parse(window.data[$echarts.id]));\n window._echartsArr.push(chart);\n });\n });\n window.switchThemeEventSet.add(window._echartsOnSwitchTheme);\n window._echartsOnSwitchTheme();\n window._echartsOnResize = (() => {\n for (let i = 0; i < window._echartsArr.length; i++) {\n window._echartsArr[i].resize();\n }\n });\n window.resizeEventSet.add(window._echartsOnResize);\n}\n\nfunction initMapbox() {\n if (window.config.mapbox) {\n mapboxgl.accessToken = window.config.mapbox.accessToken;\n mapboxgl.setRTLTextPlugin(window.config.mapbox.RTLTextPlugin);\n window._mapboxArr = window._mapboxArr || [];\n forEach(document.getElementsByClassName('mapbox'), $mapbox => {\n const { lng, lat, zoom, lightStyle, darkStyle, marked, navigation, geolocate, scale, fullscreen } = window.data[$mapbox.id];\n const mapbox = new mapboxgl.Map({\n container: $mapbox,\n center: [lng, lat],\n zoom: zoom,\n minZoom: .2,\n style: window.isDark ? darkStyle : lightStyle,\n attributionControl: false,\n });\n if (marked) {\n new mapboxgl.Marker().setLngLat([lng, lat]).addTo(mapbox);\n }\n if (navigation) {\n mapbox.addControl(new mapboxgl.NavigationControl(), 'bottom-right');\n }\n if (geolocate) {\n mapbox.addControl(new mapboxgl.GeolocateControl({\n positionOptions: {\n enableHighAccuracy: true,\n },\n showUserLocation: true,\n trackUserLocation: true,\n }), 'bottom-right');\n }\n if (scale) {\n mapbox.addControl(new mapboxgl.ScaleControl());\n }\n if (fullscreen) {\n mapbox.addControl(new mapboxgl.FullscreenControl());\n }\n mapbox.addControl(new MapboxLanguage());\n window._mapboxArr.push(mapbox);\n });\n window._mapboxOnSwitchTheme = (() => {\n forEach(window._mapboxArr, mapbox => {\n const $mapbox = mapbox.getContainer();\n const { lightStyle, darkStyle } = window.data[$mapbox.id];\n mapbox.setStyle(window.isDark ? darkStyle : lightStyle);\n mapbox.addControl(new MapboxLanguage());\n });\n });\n window.switchThemeEventSet.add(window._mapboxOnSwitchTheme);\n }\n}\n\nfunction initTypeit() {\n if (window.config.typeit) {\n const typeitConfig = window.config.typeit;\n const speed = typeitConfig.speed ? typeitConfig.speed : 100;\n const cursorSpeed = typeitConfig.cursorSpeed ? typeitConfig.cursorSpeed : 1000;\n const cursorChar = typeitConfig.cursorChar ? typeitConfig.cursorChar : '|';\n Object.values(typeitConfig.data).forEach(group => {\n const typeone = (i) => {\n const id = group[i];\n const instance = new TypeIt(`#${id}`, {\n strings: window.data[id],\n speed: speed,\n lifeLike: true,\n cursorSpeed: cursorSpeed,\n cursorChar: cursorChar,\n waitUntilVisible: true,\n afterComplete: () => {\n if (i === group.length - 1) {\n if (typeitConfig.duration >= 0) window.setTimeout(() => {\n instance.destroy();\n }, typeitConfig.duration);\n return;\n }\n instance.destroy();\n typeone(i + 1);\n },\n }).go();\n };\n typeone(0);\n });\n }\n}\n\nfunction initComment() {\n if (window.config.comment) {\n if (window.config.comment.gitalk) {\n window.config.comment.gitalk.body = decodeURI(window.location.href);\n const gitalk = new Gitalk(window.config.comment.gitalk);\n gitalk.render('gitalk');\n }\n if (window.config.comment.valine) new Valine(window.config.comment.valine);\n if (window.config.comment.waline) new Waline(window.config.comment.waline);\n if (window.config.comment.twikoo) twikoo.init(window.config.comment.twikoo);\n if (window.config.comment.utterances) {\n const utterancesConfig = window.config.comment.utterances;\n const script = document.createElement('script');\n script.src = 'https://utteranc.es/client.js';\n script.type = 'text/javascript';\n script.setAttribute('repo', utterancesConfig.repo);\n script.setAttribute('issue-term', utterancesConfig.issueTerm);\n if (utterancesConfig.label) script.setAttribute('label', utterancesConfig.label);\n script.setAttribute('theme', window.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme);\n script.crossOrigin = 'anonymous';\n script.async = true;\n document.getElementById('utterances').appendChild(script);\n window._utterancesOnSwitchTheme = (() => {\n const message = {\n type: 'set-theme',\n theme: window.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme,\n };\n const iframe = document.querySelector('.utterances-frame');\n iframe.contentWindow.postMessage(message, 'https://utteranc.es');\n });\n window.switchThemeEventSet.add(window._utterancesOnSwitchTheme);\n }\n }\n}\n\nfunction initMeta() {\n function getMeta(metaName) {\n const metas = document.getElementsByTagName('meta');\n for (let i = 0; i < metas.length; i++) {\n if (metas[i].getAttribute('name') === metaName) {\n return metas[i];\n }\n }\n return '';\n }\n let themeColorMeta = getMeta('theme-color');\n if (window.isDark) {\n themeColorMeta.content = '#000000';\n } else {\n themeColorMeta.content = '#ffffff';\n }\n window._metaThemeColorOnSwitchTheme = (() => {\n if (window.isDark) {\n themeColorMeta.content = '#000000';\n } else {\n themeColorMeta.content = '#ffffff';\n }\n });\n window.switchThemeEventSet.add(window._metaThemeColorOnSwitchTheme);\n}\n\nfunction initCookieconsent() {\n if (window.config.cookieconsent) cookieconsent.initialise(window.config.cookieconsent);\n}\n\nfunction onScroll() {\n const $headers = [];\n const $viewComments = document.getElementById('view-comments');\n if (document.body.getAttribute('header-desktop') === 'auto') $headers.push(document.getElementById('header-desktop'));\n if (document.body.getAttribute('header-mobile') === 'auto') $headers.push(document.getElementById('header-mobile'));\n if (document.getElementById('comments')) {\n $viewComments.href = `#comments`;\n $viewComments.style.display = 'block';\n } else {\n $viewComments.style.display = 'null';\n }\n const $fixedButtons = document.getElementById('fixed-buttons');\n const ACCURACY = 20, MINIMUM = 100;\n function handleScrollEvent() {\n window.newScrollTop = getScrollTop();\n const scroll = window.newScrollTop - window.oldScrollTop;\n const isMobile = isMobileWindow();\n forEach($headers, $header => {\n if (scroll > ACCURACY) {\n $header.classList.remove('animate__fadeInDown');\n animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true);\n } else if (scroll < - ACCURACY || window.newScrollTop <= 20) {\n $header.classList.remove('animate__fadeOutUp');\n animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true);\n }\n });\n if (window.newScrollTop > MINIMUM) {\n if (isMobile && scroll > ACCURACY) {\n $fixedButtons.classList.remove('animate__fadeIn');\n animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n } else if (!isMobile || scroll < - ACCURACY) {\n $fixedButtons.style.display = 'block';\n $fixedButtons.classList.remove('animate__fadeOut');\n animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true);\n }\n } else {\n if (!isMobile) {\n $fixedButtons.classList.remove('animate__fadeIn');\n animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n }\n $fixedButtons.style.display = 'none';\n }\n for (let event of window.scrollEventSet) event();\n window.oldScrollTop = window.newScrollTop;\n }\n window.addEventListener('scroll', handleScrollEvent, false);\n document.addEventListener('pjax:send', function () {\n window.removeEventListener('scroll', handleScrollEvent);\n });\n}\n\nfunction onResize() {\n window.addEventListener('resize', () => {\n if (!window._resizeTimeout) {\n window._resizeTimeout = window.setTimeout(() => {\n window._resizeTimeout = null;\n for (let event of window.resizeEventSet) event();\n window.initToc();\n window.initMermaid();\n window.initSearch();\n }, 100);\n }\n }, false);\n}\n\nfunction onClickMask() {\n document.getElementById('mask').addEventListener('click', () => {\n for (let event of window.clickMaskEventSet) event();\n document.body.classList.remove('blur');\n }, false);\n}\n\nfunction init() {\n try {\n window.data = window.config.data;\n window.isDark = document.body.getAttribute('theme') !== 'light';\n window.newScrollTop = getScrollTop();\n window.oldScrollTop = window.newScrollTop;\n window.scrollEventSet = new Set();\n window.resizeEventSet = new Set();\n window.switchThemeEventSet = new Set();\n window.clickMaskEventSet = new Set();\n window.pjaxSendEventSet = new Set();\n if (window.objectFitImages) objectFitImages();\n initSVGIcon();\n initTwemoji();\n initMenuMobile();\n initSwitchTheme();\n initSelectTheme();\n initMeta();\n initSearch();\n initDetails();\n initLightGallery();\n initHighlight();\n initTable();\n initHeaderLink();\n initMath();\n initMermaid();\n initEcharts();\n initTypeit();\n initMapbox();\n initCookieconsent();\n initToc();\n initComment();\n onScroll();\n onResize();\n onClickMask();\n } catch (err) {\n console.error(err);\n }\n}\n\nconst themeInit = () => {\n init();\n};\n\nif (document.readyState !== 'loading') {\n themeInit();\n} else {\n document.addEventListener('DOMContentLoaded', themeInit, false);\n}\n\nlet pjax = new Pjax({\n selectors: [\n \"title .pjax-title\",\n \"main\",\n \".menu-item\",\n \".pjax-assets\",\n \"#fixed-buttons\",\n \".search-dropdown\"\n ]\n})\n\ndocument.addEventListener('pjax:success', function () {\n themeInit();\n});\n\ndocument.addEventListener('pjax:send', function () {\n for (let event of window.pjaxSendEventSet) event();\n for (let event of window.clickMaskEventSet) event();\n document.body.classList.remove('blur');\n});\n\ntopbar.config({\n autoRun: true,\n barThickness: 3,\n barColors: {\n '0': '#55bde2'\n },\n shadowBlur: 0,\n shadowColor: 'rgba(0, 0, 0, .5)',\n className: 'topbar',\n})\ndocument.addEventListener('pjax:send', topbar.show);\ndocument.addEventListener('pjax:complete', topbar.hide);\ndocument.addEventListener('pjax:error', topbar.hide);"]} \ No newline at end of file +{"version":3,"sources":["../../src/js/theme.js"],"names":[],"mappings":"kxDAAA,QAAS,CAAA,OAAT,CAAiB,CAAjB,CAA2B,CAA3B,CAAoC,CAChC,CAAQ,CAAG,CAAQ,EAAI,EADS,CAEhC,IAAK,GAAI,CAAA,CAAC,CAAG,CAAb,CAAgB,CAAC,CAAG,CAAQ,CAAC,MAA7B,CAAqC,CAAC,EAAtC,CAA0C,CAAO,CAAC,CAAQ,CAAC,CAAD,CAAT,CACpD,CAED,QAAS,CAAA,YAAT,EAAwB,CACpB,MAAQ,CAAA,QAAQ,CAAC,eAAT,EAA4B,QAAQ,CAAC,eAAT,CAAyB,SAAtD,EAAoE,QAAQ,CAAC,IAAT,CAAc,SAC5F,CAED,QAAS,CAAA,cAAT,EAA0B,CACtB,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAClE,CAED,QAAS,CAAA,WAAT,EAAuB,CACnB,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,qCAAlB,EAAyD,OACnE,CAED,QAAS,CAAA,UAAT,CAAoB,CAApB,CAA6B,CAA7B,CAAwC,CAAxC,CAAkD,CAAlD,CAA4D,OACnD,KAAK,CAAC,OAAN,CAAc,CAAd,CADmD,GACzB,CAAS,CAAG,CAAC,CAAD,CADa,EAExD,GAAA,CAAO,CAAC,SAAR,EAAkB,GAAlB,UAAsB,mBAAtB,4BAA8C,CAA9C,GAFwD,CAGxD,GAAM,CAAA,CAAO,CAAG,UAAM,OAClB,GAAA,CAAO,CAAC,SAAR,EAAkB,MAAlB,UAAyB,mBAAzB,4BAAiD,CAAjD,GADkB,CAElB,CAAO,CAAC,mBAAR,CAA4B,cAA5B,CAA4C,CAA5C,CAFkB,CAGM,UAApB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SAAS,CAAE,CACP,EAAK,SADE,CAHD,CAMV,UAAU,CAAE,CANF,CAOV,WAAW,CAAE,mBAPH,CAQV,SAAS,CAAE,QARD,CAAd,C,CAUA,QAAQ,CAAC,gBAAT,CAA0B,WAA1B,CAAuC,MAAM,CAAC,IAA9C,C,CACA,QAAQ,CAAC,gBAAT,CAA0B,eAA1B,CAA2C,MAAM,CAAC,IAAlD,C,CACA,QAAQ,CAAC,gBAAT,CAA0B,YAA1B,CAAwC,MAAM,CAAC,IAA/C,C","file":"theme.min.js","sourcesContent":["function forEach(elements, handler) {\n elements = elements || [];\n for (let i = 0; i < elements.length; i++) handler(elements[i]);\n}\n\nfunction getScrollTop() {\n return (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;\n}\n\nfunction isMobileWindow() {\n return window.matchMedia('only screen and (max-width: 680px)').matches;\n}\n\nfunction isTocStatic() {\n return window.matchMedia('only screen and (max-width: 1000px)').matches;\n}\n\nfunction animateCSS(element, animation, reserved, callback) {\n if (!Array.isArray(animation)) animation = [animation];\n element.classList.add('animate__animated', ...animation);\n const handler = () => {\n element.classList.remove('animate__animated', ...animation);\n element.removeEventListener('animationend', handler);\n if (typeof callback === 'function') callback();\n };\n if (!reserved) element.addEventListener('animationend', handler, false);\n}\n\n\nfunction initSVGIcon() {\n forEach(document.querySelectorAll('[data-svg-src]'), $icon => {\n fetch($icon.getAttribute('data-svg-src'))\n .then(response => response.text())\n .then(svg => {\n const $temp = document.createElement('div');\n $temp.insertAdjacentHTML('afterbegin', svg);\n const $svg = $temp.firstChild;\n $svg.setAttribute('data-svg-src', $icon.getAttribute('data-svg-src'));\n $svg.classList.add('icon');\n const $titleElements = $svg.getElementsByTagName('title');\n if ($titleElements.length) $svg.removeChild($titleElements[0]);\n $icon.parentElement.replaceChild($svg, $icon);\n })\n .catch(err => { console.error(err); });\n });\n}\n\nfunction initTwemoji() {\n if (window.config.twemoji) twemoji.parse(document.body);\n}\n\nfunction initMenuMobile() {\n const $menuToggleMobile = document.getElementById('menu-toggle-mobile');\n const $menuMobile = document.getElementById('menu-mobile');\n if (!window.menuToggleMobileEventListener) {\n $menuToggleMobile.addEventListener('click', () => {\n document.body.classList.toggle('blur');\n $menuToggleMobile.classList.toggle('active');\n $menuMobile.classList.toggle('active');\n }, false);\n window.menuToggleMobileEventListener = true;\n }\n window._menuMobileOnClickMask = (() => {\n $menuToggleMobile.classList.remove('active');\n $menuMobile.classList.remove('active');\n });\n window.clickMaskEventSet.add(window._menuMobileOnClickMask);\n}\n\nfunction initSwitchTheme() {\n forEach(document.getElementsByClassName('theme-switch'), $themeSwitch => {\n $themeSwitch.addEventListener('click', () => {\n let currentTheme = document.body.getAttribute('theme');\n if (currentTheme === 'dark') {\n document.body.setAttribute('theme', 'black');\n window.localStorage && localStorage.setItem('theme', 'black');\n window.isDark = true;\n } else if (currentTheme === 'black') {\n document.body.setAttribute('theme', 'light');\n window.localStorage && localStorage.setItem('theme', 'light');\n window.isDark = false;\n } else {\n document.body.setAttribute('theme', 'dark');\n window.localStorage && localStorage.setItem('theme', 'dark');\n window.isDark = true;\n }\n for (let event of window.switchThemeEventSet) event();\n }, false);\n });\n}\n\nfunction initSelectTheme() {\n forEach(document.getElementsByClassName('color-theme-select'), $themeSelect => {\n let currentTheme = document.body.getAttribute('theme');\n for (let i, j = 0; i = $themeSelect.options[j]; j++) {\n if (i.value == currentTheme) {\n $themeSelect.selectedIndex = j;\n break;\n }\n }\n $themeSelect.addEventListener('change', () => {\n let theme = $themeSelect.value;\n window.localStorage && localStorage.setItem('theme', theme);\n if (theme != 'auto') {\n document.body.setAttribute('theme', theme);\n if (theme == 'light') {\n window.isDark = false;\n } else {\n window.isDark = true;\n }\n } else {\n if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {\n document.body.setAttribute('theme', 'dark');\n window.isDark = true;\n } else {\n document.body.setAttribute('theme', 'white');\n window.isDark = false;\n }\n }\n for (let event of window.switchThemeEventSet) event();\n }, false);\n });\n}\n\nfunction initSearch() {\n const searchConfig = window.config.search;\n const isMobile = isMobileWindow();\n if (!searchConfig) return;\n\n const maxResultLength = searchConfig.maxResultLength ? searchConfig.maxResultLength : 10;\n const snippetLength = searchConfig.snippetLength ? searchConfig.snippetLength : 50;\n const highlightTag = searchConfig.highlightTag ? searchConfig.highlightTag : 'em';\n const isCaseSensitive = searchConfig.isCaseSensitive ? searchConfig.isCaseSensitive : false;\n const minMatchCharLength = searchConfig.minMatchCharLength ? searchConfig.minMatchCharLength : 1;\n const findAllMatches = searchConfig.findAllMatches ? searchConfig.findAllMatches : false;\n const location = searchConfig.location ? searchConfig.location : 0;\n const threshold = searchConfig.threshold ? searchConfig.threshold : 0.3;\n const distance = searchConfig.distance ? searchConfig.distance : 100;\n const ignoreLocation = searchConfig.ignoreLocation ? searchConfig.ignoreLocation : false;\n const useExtendedSearch = searchConfig.useExtendedSearch ? searchConfig.useExtendedSearch : false;\n const ignoreFieldNorm = searchConfig.ignoreFieldNorm ? searchConfig.ignoreFieldNorm : false;\n const suffix = isMobile ? 'mobile' : 'desktop';\n const $header = document.getElementById(`header-${suffix}`);\n const $searchInput = document.getElementById(`search-input-${suffix}`);\n const $searchToggle = document.getElementById(`search-toggle-${suffix}`);\n const $searchLoading = document.getElementById(`search-loading-${suffix}`);\n const $searchClear = document.getElementById(`search-clear-${suffix}`);\n if (isMobile) {\n $searchInput.addEventListener('focus', () => {\n document.body.classList.add('blur');\n $header.classList.add('open');\n }, false);\n document.getElementById('search-cancel-mobile').addEventListener('click', () => {\n $header.classList.remove('open');\n document.body.classList.remove('blur');\n document.getElementById('menu-toggle-mobile').classList.remove('active');\n document.getElementById('menu-mobile').classList.remove('active');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n window._searchMobile && window._searchMobile.autocomplete.setVal('');\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n window._searchMobile && window._searchMobile.autocomplete.setVal('');\n }, false);\n window._searchMobileOnClickMask = (() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n window._searchMobile && window._searchMobile.autocomplete.setVal('');\n });\n window.clickMaskEventSet.add(window._searchMobileOnClickMask);\n window.pjaxSendEventSet.add(window._searchMobileOnClickMask);\n } else {\n $searchToggle.addEventListener('click', () => {\n document.body.classList.add('blur');\n $header.classList.add('open');\n $searchInput.focus();\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n window._searchDesktop && window._searchDesktop.autocomplete.setVal('');\n }, false);\n window._searchDesktopOnClickMask = (() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n window._searchDesktop && window._searchDesktop.autocomplete.setVal('');\n });\n window.clickMaskEventSet.add(window._searchDesktopOnClickMask);\n window.pjaxSendEventSet.add(window._searchDesktopOnClickMask);\n }\n $searchInput.addEventListener('input', () => {\n if ($searchInput.value === '') $searchClear.style.display = 'none';\n else $searchClear.style.display = 'inline';\n }, false);\n\n const initAutosearch = () => {\n const autosearch = autocomplete(`#search-input-${suffix}`, {\n hint: false,\n autoselect: true,\n dropdownMenuContainer: `#search-dropdown-${suffix}`,\n clearOnSelected: true,\n cssClasses: { noPrefix: true },\n debug: true,\n }, {\n name: 'search',\n source: (query, callback) => {\n $searchLoading.style.display = 'inline';\n $searchClear.style.display = 'none';\n const finish = (results) => {\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'inline';\n callback(results);\n };\n if (searchConfig.type === 'lunr') {\n const search = () => {\n if (lunr.queryHandler) query = lunr.queryHandler(query);\n const results = {};\n window._index.search(query).forEach(({ ref, matchData: { metadata } }) => {\n const matchData = window._indexData[ref];\n let { uri, title, content: context } = matchData;\n if (results[uri]) return;\n let position = 0;\n Object.values(metadata).forEach(({ content }) => {\n if (content) {\n const matchPosition = content.position[0][0];\n if (matchPosition < position || position === 0) position = matchPosition;\n }\n });\n position -= snippetLength / 5;\n if (position > 0) {\n position += context.substr(position, 20).lastIndexOf(' ') + 1;\n context = '...' + context.substr(position, snippetLength);\n } else {\n context = context.substr(0, snippetLength);\n }\n Object.keys(metadata).forEach(key => {\n title = title.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n context = context.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n });\n results[uri] = {\n 'uri': uri,\n 'title': title,\n 'date': matchData.date,\n 'context': context,\n };\n });\n return Object.values(results).slice(0, maxResultLength);\n }\n if (!window._index) {\n fetch(searchConfig.lunrIndexURL)\n .then(response => response.json())\n .then(data => {\n const indexData = {};\n window._index = lunr(function () {\n if (searchConfig.lunrLanguageCode) window.use(lunr[searchConfig.lunrLanguageCode]);\n window.ref('objectID');\n window.field('title', { boost: 50 });\n window.field('tags', { boost: 20 });\n window.field('categories', { boost: 20 });\n window.field('content', { boost: 10 });\n window.metadataWhitelist = ['position'];\n data.forEach((record) => {\n indexData[record.objectID] = record;\n window.add(record);\n });\n });\n window._indexData = indexData;\n finish(search());\n }).catch(err => {\n console.error(err);\n finish([]);\n });\n } else finish(search());\n } else if (searchConfig.type === 'algolia') {\n window._algoliaIndex = window._algoliaIndex || algoliasearch(searchConfig.algoliaAppID, searchConfig.algoliaSearchKey).initIndex(searchConfig.algoliaIndex);\n window._algoliaIndex\n .search(query, {\n offset: 0,\n length: maxResultLength * 8,\n attributesToHighlight: ['title'],\n attributesToSnippet: [`content:${snippetLength}`],\n highlightPreTag: `<${highlightTag}>`,\n highlightPostTag: ``,\n })\n .then(({ hits }) => {\n const results = {};\n hits.forEach(({ uri, date, _highlightResult: { title }, _snippetResult: { content } }) => {\n if (results[uri] && results[uri].context.length > content.value) return;\n results[uri] = {\n uri: uri,\n title: title.value,\n date: date,\n context: content.value,\n };\n });\n finish(Object.values(results).slice(0, maxResultLength));\n })\n .catch(err => {\n console.error(err);\n finish([]);\n });\n } else if (searchConfig.type === 'fuse') {\n const search = () => {\n const results = {};\n window._index.search(query).forEach(({ item, refIndex, matches }) => {\n let title = item.title;\n let content = item.content;\n matches.forEach(({ indices, value, key }) => {\n if (key === 'content') {\n let offset = 0;\n for (let i = 0; i < indices.length; i++) {\n let substr = content.substring(indices[i][0] + offset, indices[i][1] + 1 + offset);\n let tag = `<${highlightTag}>` + substr + ``;\n content = content.substring(0, indices[i][0] + offset) + tag + content.substring(indices[i][1] + 1 + offset, content.length);\n offset += highlightTag.length * 2 + 5;\n }\n } else if (key === 'title') {\n let offset = 0;\n for (let i = 0; i < indices.length; i++) {\n let substr = title.substring(indices[i][0] + offset, indices[i][1] + 1 + offset);\n let tag = `<${highlightTag}>` + substr + ``;\n title = title.substring(0, indices[i][0] + offset) + tag + title.substring(indices[i][1] + 1 + offset, content.length);\n offset += highlightTag.length * 2 + 5;\n\n }\n }\n });\n results[item.uri] = {\n 'uri': item.uri,\n 'title': title,\n 'date': item.date,\n 'context': content\n };\n });\n return Object.values(results).slice(0, maxResultLength);\n }\n if (!window._index) {\n fetch(searchConfig.fuseIndexURL)\n .then(response => response.json())\n .then(data => {\n const options = {\n isCaseSensitive: isCaseSensitive,\n findAllMatches: findAllMatches,\n minMatchCharLength: minMatchCharLength,\n location: location,\n threshold: threshold,\n distance: distance,\n ignoreLocation: ignoreLocation,\n useExtendedSearch: useExtendedSearch,\n ignoreFieldNorm: ignoreFieldNorm,\n includeScore: false,\n shouldSort: true,\n includeMatches: true,\n keys: [\n \"content\",\n \"title\"\n ]\n };\n window._index = new Fuse(data, options);\n finish(search());\n }).catch(err => {\n console.error(err);\n finish([]);\n })\n } else finish(search());\n }\n },\n templates: {\n suggestion: ({ title, date, context }) => `
${title}${date}
${context}
`,\n empty: ({ query }) => `
${searchConfig.noResultsFound}: \"${query}\"
`,\n footer: ({ }) => {\n const { searchType, icon, href } = searchConfig.type === 'algolia' ? {\n searchType: 'algolia',\n icon: '',\n href: 'https://www.algolia.com/',\n } : (searchConfig.type === 'lunr' ? {\n searchType: 'Lunr.js',\n icon: '',\n href: 'https://lunrjs.com/',\n } : {\n searchType: 'Fuse.js',\n icon: '',\n href: 'https://fusejs.io/',\n });\n return ``;\n },\n },\n });\n autosearch.on('autocomplete:selected', (_event, suggestion, _dataset, _context) => {\n window.location.assign(suggestion.uri);\n });\n if (isMobile) window._searchMobile = autosearch;\n else window._searchDesktop = autosearch;\n };\n if (searchConfig.lunrSegmentitURL && !document.getElementById('lunr-segmentit')) {\n const script = document.createElement('script');\n script.id = 'lunr-segmentit';\n script.type = 'text/javascript';\n script.src = searchConfig.lunrSegmentitURL;\n script.async = true;\n if (script.readyState) {\n script.onreadystatechange = () => {\n if (script.readyState == 'loaded' || script.readyState == 'complete') {\n script.onreadystatechange = null;\n initAutosearch();\n }\n };\n } else {\n script.onload = () => {\n initAutosearch();\n };\n }\n document.body.appendChild(script);\n } else initAutosearch();\n}\n\nfunction initDetails() {\n forEach(document.getElementsByClassName('details'), $details => {\n const $summary = $details.getElementsByClassName('details-summary')[0];\n $summary.addEventListener('click', () => {\n $details.classList.toggle('open');\n }, false);\n });\n}\n\nfunction initLightGallery() {\n if (window.config.lightGallery) {\n const instance = lightGallery(document.getElementById('content'), window.config.lightGallery);\n }\n}\n\nfunction initHighlight() {\n forEach(document.querySelectorAll('.highlight > pre.chroma'), $preChroma => {\n const $chroma = document.createElement('div');\n $chroma.className = $preChroma.className;\n const $table = document.createElement('table');\n $chroma.appendChild($table);\n const $tbody = document.createElement('tbody');\n $table.appendChild($tbody);\n const $tr = document.createElement('tr');\n $tbody.appendChild($tr);\n const $td = document.createElement('td');\n $tr.appendChild($td);\n $preChroma.parentElement.replaceChild($chroma, $preChroma);\n $td.appendChild($preChroma);\n });\n forEach(document.querySelectorAll('.highlight > .chroma'), $chroma => {\n const $codeElements = $chroma.querySelectorAll('pre.chroma > code');\n if ($codeElements.length) {\n const $code = $codeElements[$codeElements.length - 1];\n const $header = document.createElement('div');\n $header.className = 'code-header ' + $code.className.toLowerCase();\n const $title = document.createElement('span');\n $title.classList.add('code-title');\n $title.insertAdjacentHTML('afterbegin', '');\n $title.addEventListener('click', () => {\n $chroma.classList.toggle('open');\n }, false);\n $header.appendChild($title);\n const $ellipses = document.createElement('span');\n $ellipses.insertAdjacentHTML('afterbegin', '');\n $ellipses.classList.add('ellipses');\n $ellipses.addEventListener('click', () => {\n $chroma.classList.add('open');\n }, false);\n $header.appendChild($ellipses);\n const $copy = document.createElement('span');\n $copy.insertAdjacentHTML('afterbegin', '');\n $copy.classList.add('copy');\n const code = $code.innerText;\n if (window.config.code.maxShownLines < 0 || code.split('\\n').length < window.config.code.maxShownLines + 2) $chroma.classList.add('open');\n if (window.config.code.copyTitle) {\n $copy.setAttribute('data-clipboard-text', code);\n $copy.title = window.config.code.copyTitle;\n const clipboard = new ClipboardJS($copy);\n clipboard.on('success', _e => {\n animateCSS($code, 'animate__flash');\n $copy.firstElementChild.className = \"fas fa-check fa-fw\";\n setTimeout(() => {\n $copy.firstElementChild.className = \"far fa-copy fa-fw\";\n }, 3000);\n });\n $header.appendChild($copy);\n }\n $chroma.insertBefore($header, $chroma.firstChild);\n }\n });\n}\n\nfunction initTable() {\n forEach(document.querySelectorAll('.content table'), $table => {\n const $wrapper = document.createElement('div');\n $wrapper.className = 'table-wrapper';\n $table.parentElement.replaceChild($wrapper, $table);\n $wrapper.appendChild($table);\n });\n}\n\nfunction initHeaderLink() {\n for (let num = 1; num <= 6; num++) {\n forEach(document.querySelectorAll('.single .content > h' + num), $header => {\n $header.classList.add('headerLink');\n $header.insertAdjacentHTML('afterbegin', ``);\n });\n }\n}\n\nfunction initToc() {\n const $tocCore = document.getElementById('TableOfContents');\n if ($tocCore === null) return;\n if (document.getElementById('toc-static').getAttribute('kept') || isTocStatic()) {\n const $tocContentStatic = document.getElementById('toc-content-static');\n if ($tocCore.parentElement !== $tocContentStatic) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentStatic.appendChild($tocCore);\n }\n if (window._tocOnScroll) window.scrollEventSet.delete(window._tocOnScroll);\n } else {\n const $tocContentAuto = document.getElementById('toc-content-auto');\n if ($tocCore.parentElement !== $tocContentAuto) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentAuto.appendChild($tocCore);\n }\n const $toc = document.getElementById('toc-auto');\n const $page = document.getElementsByClassName('page')[0];\n const rect = $page.getBoundingClientRect();\n $toc.style.left = `${rect.left + rect.width + 20}px`;\n $toc.style.maxWidth = `19%`;\n $toc.style.visibility = 'visible';\n const $tocLinkElements = $tocCore.querySelectorAll('a:first-child');\n const $tocLiElements = $tocCore.getElementsByTagName('li');\n const $headerLinkElements = document.getElementsByClassName('headerLink');\n const headerIsFixed = document.body.getAttribute('header-desktop') !== 'normal';\n const headerHeight = document.getElementById('header-desktop').offsetHeight;\n const TOP_SPACING = 20 + (headerIsFixed ? headerHeight : 0);\n const minTocTop = $toc.offsetTop;\n const minScrollTop = minTocTop - TOP_SPACING + (headerIsFixed ? 0 : headerHeight);\n window._tocOnScroll = (() => {\n const footerTop = document.getElementById('post-footer').offsetTop;\n const maxTocTop = footerTop - $toc.getBoundingClientRect().height;\n const maxScrollTop = maxTocTop - TOP_SPACING + (headerIsFixed ? 0 : headerHeight);\n if (window.newScrollTop < minScrollTop) {\n $toc.style.position = 'absolute';\n $toc.style.top = `${minTocTop}px`;\n } else if (window.newScrollTop > maxScrollTop) {\n $toc.style.position = 'absolute';\n $toc.style.top = `${maxTocTop}px`;\n } else {\n $toc.style.position = 'fixed';\n $toc.style.top = `${TOP_SPACING}px`;\n }\n\n forEach($tocLinkElements, $tocLink => { $tocLink.classList.remove('active'); });\n forEach($tocLiElements, $tocLi => { $tocLi.classList.remove('has-active'); });\n const INDEX_SPACING = 20 + (headerIsFixed ? headerHeight : 0);\n let activeTocIndex = $headerLinkElements.length - 1;\n for (let i = 0; i < $headerLinkElements.length - 1; i++) {\n const windowTop = $headerLinkElements[i].getBoundingClientRect().top;\n const nextTop = $headerLinkElements[i + 1].getBoundingClientRect().top;\n if ((i == 0 && windowTop > INDEX_SPACING)\n || (windowTop <= INDEX_SPACING && nextTop > INDEX_SPACING)) {\n activeTocIndex = i;\n break;\n }\n }\n if (activeTocIndex >= 0 && activeTocIndex < $tocLinkElements.length) {\n $tocLinkElements[activeTocIndex].classList.add('active');\n let $parent = $tocLinkElements[activeTocIndex].parentElement;\n while ($parent !== $tocCore) {\n $parent.classList.add('has-active');\n $parent = $parent.parentElement.parentElement;\n }\n }\n });\n window._tocOnScroll();\n window.scrollEventSet.add(window._tocOnScroll);\n }\n}\n\nfunction initMath() {\n if (window.config.math) renderMathInElement(document.body, window.config.math);\n}\n\nfunction initMermaid() {\n const $mermaidElements = document.getElementsByClassName('mermaid');\n if ($mermaidElements.length) {\n mermaid.initialize({ startOnLoad: false, theme: 'default' });\n forEach($mermaidElements, $mermaid => {\n mermaid.mermaidAPI.render('svg-' + $mermaid.id, window.data[$mermaid.id], svgCode => {\n $mermaid.insertAdjacentHTML('afterbegin', svgCode);\n document.getElementById('svg-' + $mermaid.id).children[0].remove();\n }, $mermaid);\n });\n }\n}\n\nfunction initEcharts() {\n window._echartsOnSwitchTheme = (() => {\n window._echartsArr = window._echartsArr || [];\n for (let i = 0; i < window._echartsArr.length; i++) {\n window._echartsArr[i].dispose();\n }\n window._echartsArr = [];\n forEach(document.getElementsByClassName('echarts'), $echarts => {\n const chart = echarts.init($echarts, window.isDark ? 'dark' : 'macarons', { renderer: 'svg' });\n chart.setOption(JSON.parse(window.data[$echarts.id]));\n window._echartsArr.push(chart);\n });\n });\n window.switchThemeEventSet.add(window._echartsOnSwitchTheme);\n window._echartsOnSwitchTheme();\n window._echartsOnResize = (() => {\n for (let i = 0; i < window._echartsArr.length; i++) {\n window._echartsArr[i].resize();\n }\n });\n window.resizeEventSet.add(window._echartsOnResize);\n}\n\nfunction initMapbox() {\n if (window.config.mapbox) {\n mapboxgl.accessToken = window.config.mapbox.accessToken;\n mapboxgl.setRTLTextPlugin(window.config.mapbox.RTLTextPlugin);\n window._mapboxArr = window._mapboxArr || [];\n forEach(document.getElementsByClassName('mapbox'), $mapbox => {\n const { lng, lat, zoom, lightStyle, darkStyle, marked, navigation, geolocate, scale, fullscreen } = window.data[$mapbox.id];\n const mapbox = new mapboxgl.Map({\n container: $mapbox,\n center: [lng, lat],\n zoom: zoom,\n minZoom: .2,\n style: window.isDark ? darkStyle : lightStyle,\n attributionControl: false,\n });\n if (marked) {\n new mapboxgl.Marker().setLngLat([lng, lat]).addTo(mapbox);\n }\n if (navigation) {\n mapbox.addControl(new mapboxgl.NavigationControl(), 'bottom-right');\n }\n if (geolocate) {\n mapbox.addControl(new mapboxgl.GeolocateControl({\n positionOptions: {\n enableHighAccuracy: true,\n },\n showUserLocation: true,\n trackUserLocation: true,\n }), 'bottom-right');\n }\n if (scale) {\n mapbox.addControl(new mapboxgl.ScaleControl());\n }\n if (fullscreen) {\n mapbox.addControl(new mapboxgl.FullscreenControl());\n }\n mapbox.addControl(new MapboxLanguage());\n window._mapboxArr.push(mapbox);\n });\n window._mapboxOnSwitchTheme = (() => {\n forEach(window._mapboxArr, mapbox => {\n const $mapbox = mapbox.getContainer();\n const { lightStyle, darkStyle } = window.data[$mapbox.id];\n mapbox.setStyle(window.isDark ? darkStyle : lightStyle);\n mapbox.addControl(new MapboxLanguage());\n });\n });\n window.switchThemeEventSet.add(window._mapboxOnSwitchTheme);\n }\n}\n\nfunction initTypeit() {\n if (window.config.typeit) {\n const typeitConfig = window.config.typeit;\n const speed = typeitConfig.speed ? typeitConfig.speed : 100;\n const cursorSpeed = typeitConfig.cursorSpeed ? typeitConfig.cursorSpeed : 1000;\n const cursorChar = typeitConfig.cursorChar ? typeitConfig.cursorChar : '|';\n Object.values(typeitConfig.data).forEach(group => {\n const typeone = (i) => {\n const id = group[i];\n const instance = new TypeIt(`#${id}`, {\n strings: window.data[id],\n speed: speed,\n lifeLike: true,\n cursorSpeed: cursorSpeed,\n cursorChar: cursorChar,\n waitUntilVisible: true,\n afterComplete: () => {\n if (i === group.length - 1) {\n if (typeitConfig.duration >= 0) window.setTimeout(() => {\n instance.destroy();\n }, typeitConfig.duration);\n return;\n }\n instance.destroy();\n typeone(i + 1);\n },\n }).go();\n };\n typeone(0);\n });\n }\n}\n\nfunction initComment() {\n if (window.config.comment) {\n if (window.config.comment.gitalk) {\n window.config.comment.gitalk.body = decodeURI(window.location.href);\n const gitalk = new Gitalk(window.config.comment.gitalk);\n gitalk.render('gitalk');\n }\n if (window.config.comment.valine) new Valine(window.config.comment.valine);\n if (window.config.comment.waline) new Waline(window.config.comment.waline);\n if (window.config.comment.twikoo) twikoo.init(window.config.comment.twikoo);\n if (window.config.comment.utterances) {\n const utterancesConfig = window.config.comment.utterances;\n const script = document.createElement('script');\n script.src = 'https://utteranc.es/client.js';\n script.type = 'text/javascript';\n script.setAttribute('repo', utterancesConfig.repo);\n script.setAttribute('issue-term', utterancesConfig.issueTerm);\n if (utterancesConfig.label) script.setAttribute('label', utterancesConfig.label);\n script.setAttribute('theme', window.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme);\n script.crossOrigin = 'anonymous';\n script.async = true;\n document.getElementById('utterances').appendChild(script);\n window._utterancesOnSwitchTheme = (() => {\n const message = {\n type: 'set-theme',\n theme: window.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme,\n };\n const iframe = document.querySelector('.utterances-frame');\n iframe.contentWindow.postMessage(message, 'https://utteranc.es');\n });\n window.switchThemeEventSet.add(window._utterancesOnSwitchTheme);\n }\n if (window.config.comment.vssue) {\n let vssue = window.config.comment.vssue;\n new Vue({\n el: vssue.el,\n render: h => h('Vssue', {\n props: {\n title: vssue.title,\n options: {\n owner: vssue.owner,\n repo: vssue.repo,\n clientId: vssue.clientId,\n clientSecret: vssue.clientSecret,\n },\n }\n })\n })\n }\n }\n}\n\nfunction initMeta() {\n function getMeta(metaName) {\n const metas = document.getElementsByTagName('meta');\n for (let i = 0; i < metas.length; i++) {\n if (metas[i].getAttribute('name') === metaName) {\n return metas[i];\n }\n }\n return '';\n }\n let themeColorMeta = getMeta('theme-color');\n if (window.isDark) {\n themeColorMeta.content = '#000000';\n } else {\n themeColorMeta.content = '#ffffff';\n }\n window._metaThemeColorOnSwitchTheme = (() => {\n if (window.isDark) {\n themeColorMeta.content = '#000000';\n } else {\n themeColorMeta.content = '#ffffff';\n }\n });\n window.switchThemeEventSet.add(window._metaThemeColorOnSwitchTheme);\n}\n\nfunction initCookieconsent() {\n if (window.config.cookieconsent) cookieconsent.initialise(window.config.cookieconsent);\n}\n\nfunction onScroll() {\n const $headers = [];\n const $viewComments = document.getElementById('view-comments');\n if (document.body.getAttribute('header-desktop') === 'auto') $headers.push(document.getElementById('header-desktop'));\n if (document.body.getAttribute('header-mobile') === 'auto') $headers.push(document.getElementById('header-mobile'));\n if (document.getElementById('comments')) {\n $viewComments.href = `#comments`;\n $viewComments.style.display = 'block';\n } else {\n $viewComments.style.display = 'null';\n }\n const $fixedButtons = document.getElementById('fixed-buttons');\n const ACCURACY = 20, MINIMUM = 100;\n function handleScrollEvent() {\n window.newScrollTop = getScrollTop();\n const scroll = window.newScrollTop - window.oldScrollTop;\n const isMobile = isMobileWindow();\n forEach($headers, $header => {\n if (scroll > ACCURACY) {\n $header.classList.remove('animate__fadeInDown');\n animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true);\n } else if (scroll < - ACCURACY || window.newScrollTop <= 20) {\n $header.classList.remove('animate__fadeOutUp');\n animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true);\n }\n });\n if (window.newScrollTop > MINIMUM) {\n if (isMobile && scroll > ACCURACY) {\n $fixedButtons.classList.remove('animate__fadeIn');\n animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n } else if (!isMobile || scroll < - ACCURACY) {\n $fixedButtons.style.display = 'block';\n $fixedButtons.classList.remove('animate__fadeOut');\n animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true);\n }\n } else {\n if (!isMobile) {\n $fixedButtons.classList.remove('animate__fadeIn');\n animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n }\n $fixedButtons.style.display = 'none';\n }\n for (let event of window.scrollEventSet) event();\n window.oldScrollTop = window.newScrollTop;\n }\n window.addEventListener('scroll', handleScrollEvent, false);\n document.addEventListener('pjax:send', function () {\n window.removeEventListener('scroll', handleScrollEvent);\n });\n}\n\nfunction onResize() {\n window.addEventListener('resize', () => {\n if (!window._resizeTimeout) {\n window._resizeTimeout = window.setTimeout(() => {\n window._resizeTimeout = null;\n for (let event of window.resizeEventSet) event();\n window.initToc();\n window.initMermaid();\n window.initSearch();\n }, 100);\n }\n }, false);\n}\n\nfunction onClickMask() {\n document.getElementById('mask').addEventListener('click', () => {\n for (let event of window.clickMaskEventSet) event();\n document.body.classList.remove('blur');\n }, false);\n}\n\nfunction init() {\n try {\n window.data = window.config.data;\n window.isDark = document.body.getAttribute('theme') !== 'light';\n window.newScrollTop = getScrollTop();\n window.oldScrollTop = window.newScrollTop;\n window.scrollEventSet = new Set();\n window.resizeEventSet = new Set();\n window.switchThemeEventSet = new Set();\n window.clickMaskEventSet = new Set();\n window.pjaxSendEventSet = new Set();\n if (window.objectFitImages) objectFitImages();\n initSVGIcon();\n initTwemoji();\n initMenuMobile();\n initSwitchTheme();\n initSelectTheme();\n initMeta();\n initSearch();\n initDetails();\n initLightGallery();\n initHighlight();\n initTable();\n initHeaderLink();\n initMath();\n initMermaid();\n initEcharts();\n initTypeit();\n initMapbox();\n initCookieconsent();\n initToc();\n initComment();\n onScroll();\n onResize();\n onClickMask();\n } catch (err) {\n console.error(err);\n }\n}\n\nconst themeInit = () => {\n init();\n};\n\nif (document.readyState !== 'loading') {\n themeInit();\n} else {\n document.addEventListener('DOMContentLoaded', themeInit, false);\n}\n\nlet pjax = new Pjax({\n selectors: [\n \"title .pjax-title\",\n \"main\",\n \".menu-item\",\n \".pjax-assets\",\n \"#fixed-buttons\",\n \".search-dropdown\"\n ]\n})\n\ndocument.addEventListener('pjax:success', function () {\n themeInit();\n});\n\ndocument.addEventListener('pjax:send', function () {\n for (let event of window.pjaxSendEventSet) event();\n for (let event of window.clickMaskEventSet) event();\n document.body.classList.remove('blur');\n});\n\ntopbar.config({\n autoRun: true,\n barThickness: 3,\n barColors: {\n '0': '#55bde2'\n },\n shadowBlur: 0,\n shadowColor: 'rgba(0, 0, 0, .5)',\n className: 'topbar',\n})\ndocument.addEventListener('pjax:send', topbar.show);\ndocument.addEventListener('pjax:complete', topbar.hide);\ndocument.addEventListener('pjax:error', topbar.hide);"]} \ No newline at end of file diff --git a/assets/lib/VERSION b/assets/lib/VERSION index 983d60825..2c4fa83f5 100644 --- a/assets/lib/VERSION +++ b/assets/lib/VERSION @@ -27,4 +27,6 @@ twemoji@13.1.0 https://github.com/twitter/twemoji twikoo@1.4.1 https://twikoo.js.org typeit@7.0.4 https://github.com/alexmacarthur/typeit valine@1.4.14 https://valine.js.org +vssue@1.4.8 https://vssue.js.org +vue@v2.6.14 https://vuejs.org waline@1.3.3 https://waline.js.org \ No newline at end of file diff --git a/assets/lib/vssue/vssue.bitbucket.min.js b/assets/lib/vssue/vssue.bitbucket.min.js new file mode 100644 index 000000000..2da557428 --- /dev/null +++ b/assets/lib/vssue/vssue.bitbucket.min.js @@ -0,0 +1,30 @@ +/*! + * vssue - A vue-powered issue-based comment plugin + * + * @version v1.4.8 + * @link https://vssue.js.org + * @license MIT + * @copyright 2018-2021 meteorlxy + */ +!function(e){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ +function t(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}e=e&&e.hasOwnProperty("default")?e.default:e;var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(s){var r=n?Reflect.getOwnMetadata(s,t,n):Reflect.getOwnMetadata(s,t);n?Reflect.defineMetadata(s,r,e,n):Reflect.defineMetadata(s,r,e)}))}var r={__proto__:[]}instanceof Array;function i(e){return function(t,n,s){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof s&&(s=void 0),r.__decorators__.push((function(t){return e(t,n,s)}))}}var o=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function a(t,i){void 0===i&&(i={}),i.name=i.name||t._componentTag||t.name;var a=t.prototype;Object.getOwnPropertyNames(a).forEach((function(e){if("constructor"!==e)if(o.indexOf(e)>-1)i[e]=a[e];else{var t=Object.getOwnPropertyDescriptor(a,e);void 0!==t.value?"function"==typeof t.value?(i.methods||(i.methods={}))[e]=t.value:(i.mixins||(i.mixins=[])).push({data:function(){var n;return(n={})[e]=t.value,n}}):(t.get||t.set)&&((i.computed||(i.computed={}))[e]={get:t.get,set:t.set})}})),(i.mixins||(i.mixins=[])).push({data:function(){return function(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var s in e.$options.props)e.hasOwnProperty(s)||n.push(s);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var s=new t;t.prototype._init=n;var r={};return Object.keys(s).forEach((function(e){void 0!==s[e]&&(r[e]=s[e])})),r}(this,t)}});var u=t.__decorators__;u&&(u.forEach((function(e){return e(i)})),delete t.__decorators__);var l,d,p=Object.getPrototypeOf(t.prototype),h=p instanceof e?p.constructor:e,m=h.extend(i);return function(e,t,n){Object.getOwnPropertyNames(t).forEach((function(s){if(!c[s]){var i=Object.getOwnPropertyDescriptor(e,s);if(!i||i.configurable){var o,a,u=Object.getOwnPropertyDescriptor(t,s);if(!r){if("cid"===s)return;var l=Object.getOwnPropertyDescriptor(n,s);if(o=u.value,a=typeof o,null!=o&&("object"===a||"function"===a)&&l&&l.value===u.value)return}Object.defineProperty(e,s,u)}}}))}(m,t,h),n&&(s(l=m,d=t),Object.getOwnPropertyNames(d.prototype).forEach((function(e){s(l.prototype,d.prototype,e)})),Object.getOwnPropertyNames(d).forEach((function(e){s(l,d,e)}))),m}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function u(e){return"function"==typeof e?a(e):function(t){return a(t,e)}}function l(e){return i((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}u.registerHooks=function(e){o.push.apply(o,e)};var d="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function p(e){return void 0===e&&(e={}),function(t,n){!function(e,t,n){d&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,n)))}(e,t,n),i((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function h(e,t){void 0===t&&(t={});var n=t.deep,s=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return i((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:s,immediate:o})}))}var m=e.extend({name:"Iconfont"});function f(e,t,n,s,r,i,o,a,c,u){"boolean"!=typeof o&&(c=a,a=o,o=!1);const l="function"==typeof n?n.options:n;let d;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),s&&(l._scopeId=s),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):t&&(d=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(l.functional){const e=l.render;l.render=function(t,n){return d.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const v=f({render:function(e,t){var n=t._c;return n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("symbol",{attrs:{id:"vssue-icon-bitbucket",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M579.5522464 489.45249493q4.8371808 38.38537173-30.81752427 61.55702827t-67.95459093 3.66689493q-23.79580907-10.37653333-32.6119616-35.34262826t-0.31207573-50.01020907 31.67573333-35.34262827q21.92335253-11.00068587 44.1587808-7.33379093t39.00952427 21.61127573 16.77409493 41.1160384zM647.19476053 476.65737173q-8.50407573-65.22392427-68.8908192-99.9424t-120.07131413-7.9579424q-38.38537173 17.08617173-61.24495253 53.9111616t-21.0651424 78.95527574q2.41859093 55.4715424 47.20152426 94.48106666t100.87862827 34.1723424q55.4715424-4.8371808 92.60860907-51.18049493t30.50544746-102.43900907zM792.93434133 146.32472427q-12.17097173-16.4620192-34.1723424-27.15062827t-35.34262826-13.41927573-43.30057174-7.64586667q-177.33729493-28.63299093-345.00022826 1.24830507-26.2144 4.29104747-40.25782827 7.33379093t-33.54819093 13.41927573-30.50544747 26.2144q18.2564576 17.08617173 46.34331413 27.6967616t44.78293334 13.41927574 53.36502826 7.02171413q138.95192427 17.71032427 273.06666667 0.62415253 38.38537173-4.8371808 54.53531413-7.33379093t44.1587808-13.1072 45.7191616-28.32091413zM827.65281813 777.10872427q-4.8371808 15.83786667-9.44030506 46.65539093t-8.50407574 51.18049493-17.39824746 42.6764192-35.34262827 34.4064q-52.4288 29.2571424-115.46819093 43.61264747t-123.1140576 13.41927573-122.8019808-11.3127616q-28.0088384-4.8371808-49.69813334-11.00068586t-46.65539093-16.4620192-44.4708576-26.52647574-31.67573333-37.4491424q-15.21371413-58.51428587-34.71847574-177.96144746l3.66689494-9.7523808 11.00068586-5.46133334q135.9091808 90.1900192 308.72137174 90.1900192t309.34552426-90.1900192q12.79512427 3.66689493 14.5895616 14.04342827t-3.0427424 27.46270507-4.8371808 22.54750506zM937.97175147 191.41973333q-15.83786667 101.8148576-67.64251414 399.22346667-3.0427424 18.2564576-16.4620192 34.1723424t-26.52647573 24.3419424-33.23611413 18.88060907q-153.61950507 76.7707424-371.8387808 53.67710506-151.12289493-16.4620192-240.14262827-84.72868586-9.12822827-7.33379093-15.52579093-16.1499424t-10.37653334-21.2992-5.46133333-20.75306667-3.66689493-24.10788587-3.3548192-21.2992q-5.46133333-30.50544747-16.1499424-91.43832426t-17.08617174-98.4600384-14.35550506-89.8779424-13.41927574-96.27550507q1.7944384-15.83786667 10.68860907-29.5692192t19.19268587-22.8595808 27.46270506-18.2564576 28.0088384-13.73135253 29.2571424-11.3127616q76.22460907-28.0088384 190.75657174-39.00952427 231.0144-22.54750507 412.01859093 30.50544747 94.48106667 28.0088384 131.072 74.35215253 9.7523808 12.17097173 10.0644576 31.0515808t-3.3548192 32.9240384z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitea",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M184.31868985 236.10860742C106.94832667 235.94086648 3.32655508 285.13080468 9.02973665 408.46209936c8.93218827 192.65010787 206.32096845 210.5144844 285.20099725 212.06608453 8.63864186 36.14810496 101.48307766 160.77938883 170.21479898 167.32127321h301.09442177c180.57278288-11.99345499 315.77172611-546.07960359 215.54670217-548.09249109-165.7696721 7.79993906-264.02374305 11.74184405-348.27147151 12.41280591v166.69224585l-26.25140843-11.61603761-0.16773997-154.99233728c-96.70246985-0.04193548-181.83083757-4.52899687-343.4069947-12.49667687-20.21274496-0.12580547-48.39316992-3.5644886-78.67035236-3.64835859z m10.94507577 68.14462849h9.22573371c10.98701124 98.75729283 28.85138778 156.50200291 64.99949274 244.73357185-92.25734394-10.90314029-170.75995634-37.69970509-185.18564974-137.75698809-7.46445813-51.78991757 17.69663558-105.84433456 110.96042329-107.01851827z m358.83913087 97.07988723c6.29027343 0.08386999 12.70635233 1.25805468 18.74501482 4.02577499l31.40943263 13.54505513-22.51917887 41.05451824a28.18042496 25.03528825 0 0 0-10.10637297 1.59353561 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 4.69673781 7.29671718l-38.83195528 70.70267333a28.18042496 25.03528825 0 0 0-9.30960467 1.59353659 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 36.06423497 15.09665623 28.18042496 25.03528825 0 0 0 16.94180276-32.08039449 28.18042496 25.03528825 0 0 0-6.62575434-9.22573468l37.82551056-68.85752581a28.18042496 25.03528825 0 0 0 12.28700044-1.25805469 28.18042496 25.03528825 0 0 0 8.93218826-4.69673783c14.59343435 6.12253248 26.54495386 11.11281671 35.14166122 15.34826717 12.91602778 6.37414341 17.48696012 10.60959485 18.87082027 15.30633169 1.38386015 4.61286685-0.12580547 13.50312062-7.42252263 29.10299872-5.45157063 11.61603859-14.46762889 28.09655497-25.11915823 47.51253164a28.18042496 25.03528825 0 0 0-10.52572486 1.59353659 28.18042496 25.03528825 0 0 0-16.98373826 32.038459 28.18042496 25.03528825 0 0 0 36.06423498 15.09665623 28.18042496 25.03528825 0 0 0 16.94180278-32.03845901 28.18042496 25.03528825 0 0 0-5.74511608-8.47090188c10.52572388-19.20630122 19.58371762-35.72875308 25.41270465-48.14155897 7.88380904-16.85793279 11.99345499-29.39654416 8.38703091-41.51580463-3.60642311-12.11926046-14.67730434-20.0030695-29.35460966-27.25785217-9.6450856-4.73867233-21.68047607-9.77089106-36.06423399-15.80955357a28.18042496 25.03528825 0 0 0-1.59353562-10.022502 28.18042496 25.03528825 0 0 0-6.08059796-8.7644483l22.14176246-40.38355541 122.61839638 52.96410227c22.14176247 9.6031511 31.2836262 33.12877372 20.54822685 52.8382968l-84.28966393 154.32137544c-10.77733482 19.66758857-37.23841869 27.80300855-59.38018118 18.24179293l-173.48574115-74.98005927c-22.14176247-9.5612156-31.32556167-33.12877372-20.54822687-52.83829679l84.28966395-154.27943995c7.38058716-13.54505513 22.22563246-21.59660511 37.951317-22.22563246h2.68384935z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitee",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M978.404275 409.561604H455.061338c-25.117645 0-45.499734 20.382089-45.499734 45.499734l-0.031997 113.781333c0 25.117645 20.350092 45.499734 45.499734 45.531731h318.594132c25.117645 0 45.499734 20.382089 45.499734 45.499735v22.749867a136.5312 136.5312 0 0 1-136.5312 136.5312H250.248539a45.499734 45.499734 0 0 1-45.499734-45.499734V341.343999a136.5312 136.5312 0 0 1 136.5312-136.5312L978.308284 204.780802c25.117645 0 45.499734-20.350092 45.499734-45.467738L1023.904009 45.531731h0.031997A45.499734 45.499734 0 0 0 978.468269 0h-0.031997L341.343999 0.031997C152.84967 0.031997 0.031997 152.84967 0.031997 341.343999v637.092273c0 25.117645 20.382089 45.499734 45.499734 45.499734h671.233072a307.171203 307.171203 0 0 0 307.171203-307.171203v-261.671468c0-25.117645-20.382089-45.499734-45.499734-45.499734z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-github",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 20.4425c-278.334 0-504 225.6345-504 504 0 222.6735 144.4275 411.6105 344.673 478.233 25.2 4.662 34.461-10.9305 34.461-24.255 0-12.0015-0.4725-51.723-0.693-93.8385-140.238 30.492-169.8165-59.472-169.8165-59.472-22.932-58.2435-55.944-73.7415-55.944-73.7415-45.738-31.2795 3.465-30.6495 3.465-30.6495 50.589 3.5595 77.238 51.9435 77.238 51.9435 44.9505 77.049 117.9045 54.7785 146.664 41.895 4.5045-32.571 17.577-54.81 32.004-67.41-111.951-12.726-229.635-55.9755-229.635-249.0705 0-55.0305 19.6875-99.981 51.9435-135.2925-5.229-12.6945-22.491-63.945 4.8825-133.371 0 0 42.336-13.545 138.6315 51.66 40.194-11.1825 83.3175-16.758 126.1575-16.9785 42.8085 0.189 85.9635 5.796 126.252 16.9785 96.201-65.205 138.4425-51.66 138.4425-51.66 27.4365 69.426 10.1745 120.6765 4.9455 133.371 32.319 35.28 51.8805 80.262 51.8805 135.2925 0 193.5675-117.9045 236.187-230.139 248.6925 18.081 15.6555 34.1775 46.305 34.1775 93.3345 0 67.4415-0.5985 121.716-0.5985 138.3165 0 13.419 9.072 29.1375 34.6185 24.192 200.151-66.717 344.3895-255.5595 344.3895-478.17 0-278.3655-225.666-504-504-504z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitlab",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M66.61375986 405.11600042L512.11376028 976.03999972 23.84576 621.65599958a39.312 39.312 0 0 1-14.07600042-43.30799944l56.8080007-173.26800028z m259.88400014 0h371.26800014L512.14975986 976.03999972zM215.11376 60.88400042l111.384 344.232H66.61375986l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z m742.49999972 344.232l56.8080007 173.2679993a39.23999986 39.23999986 0 0 1-14.07600042 43.30800042l-488.26800028 354.38400014 445.50000042-570.92400028z m0 0h-259.88400014l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-loading",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M843.307 742.24c0 3.217 2.607 5.824 5.824 5.824s5.824-2.607 5.824-5.824a5.823 5.823 0 0 0-5.824-5.824 5.823 5.823 0 0 0-5.824 5.824zM714.731 874.912c0 6.398 5.186 11.584 11.584 11.584s11.584-5.186 11.584-11.584-5.186-11.584-11.584-11.584-11.584 5.186-11.584 11.584zM541.419 943.2c0 9.614 7.794 17.408 17.408 17.408s17.408-7.794 17.408-17.408-7.794-17.408-17.408-17.408-17.408 7.794-17.408 17.408z m-186.56-9.152c0 12.795 10.373 23.168 23.168 23.168s23.168-10.373 23.168-23.168-10.373-23.168-23.168-23.168-23.168 10.373-23.168 23.168zM189.355 849.12c0 16.012 12.98 28.992 28.992 28.992s28.992-12.98 28.992-28.992-12.98-28.992-28.992-28.992-28.992 12.98-28.992 28.992zM74.731 704.736c0 19.228 15.588 34.816 34.816 34.816s34.816-15.588 34.816-34.816-15.588-34.816-34.816-34.816-34.816 15.588-34.816 34.816z m-43.008-177.28c0 22.41 18.166 40.576 40.576 40.576s40.576-18.166 40.576-40.576-18.166-40.576-40.576-40.576-40.576 18.166-40.576 40.576z m35.392-176.128c0 25.626 20.774 46.4 46.4 46.4s46.4-20.774 46.4-46.4c0-25.626-20.774-46.4-46.4-46.4-25.626 0-46.4 20.774-46.4 46.4z m106.176-142.016c0 28.843 23.381 52.224 52.224 52.224s52.224-23.381 52.224-52.224c0-28.843-23.381-52.224-52.224-52.224-28.843 0-52.224 23.381-52.224 52.224z m155.904-81.344c0 32.024 25.96 57.984 57.984 57.984s57.984-25.96 57.984-57.984-25.96-57.984-57.984-57.984-57.984 25.96-57.984 57.984z m175.104-5.056c0 35.24 28.568 63.808 63.808 63.808s63.808-28.568 63.808-63.808c0-35.24-28.568-63.808-63.808-63.808-35.24 0-63.808 28.568-63.808 63.808z m160.32 72.128c0 38.421 31.147 69.568 69.568 69.568s69.568-31.147 69.568-69.568-31.147-69.568-69.568-69.568-69.568 31.147-69.568 69.568z m113.92 135.488c0 41.638 33.754 75.392 75.392 75.392s75.392-33.754 75.392-75.392-33.754-75.392-75.392-75.392-75.392 33.754-75.392 75.392z m45.312 175.488c0 44.854 36.362 81.216 81.216 81.216s81.216-36.362 81.216-81.216c0-44.854-36.362-81.216-81.216-81.216-44.854 0-81.216 36.362-81.216 81.216z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-like",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4-20.5-21.5-48.1-33.4-77.9-33.4-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-0.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81z m636.4-353l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5c5.2-18.9 22.5-32.2 42.2-32.3 7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-unlike",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4-8.3-3.6-17.2-5.4-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81z m627.2 160.4H496.8l9.6 198.4c0.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7-19.6-0.1-36.9-13.4-42.2-32.3L329 459.2V172h415.4c20.4 9.2 33.6 29.4 33.6 51.8 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 19.1-11 37.5-28.8 48.4z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-heart",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-edit",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M723.2 917.76H286.72c-65.28 0-118.4-51.2-118.4-113.92V261.76C168.32 198.4 221.44 147.2 286.72 147.2h375.04c17.92 0 32 14.08 32 32s-14.08 32-32 32H286.72c-30.08 0-54.4 22.4-54.4 49.92v542.08c0 27.52 24.32 49.92 54.4 49.92H723.2c30.08 0 54.4-22.4 54.4-49.92V440.32c0-17.92 14.08-32 32-32s32 14.08 32 32v363.52c0 62.72-53.12 113.92-118.4 113.92z"}}),t._v(" "),n("path",{attrs:{d:"M499.84 602.24c-7.68 0-14.72-2.56-21.12-7.68-13.44-11.52-14.72-32-3.2-45.44L780.16 198.4c11.52-13.44 32-14.72 45.44-3.2s14.72 32 3.2 45.44L524.16 591.36c-6.4 7.04-15.36 10.88-24.32 10.88z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-delete",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M677.647059 256l0-90.352941c0-37.436235-23.461647-60.235294-61.771294-60.235294L408.094118 105.411765c-38.249412 0-61.741176 22.799059-61.741176 60.235294l0 90.352941-180.705882 0 0 60.235294 60.235294 0 0 512c0 54.272 33.972706 90.352941 90.352941 90.352941l391.529412 0c55.085176 0 90.352941-33.490824 90.352941-90.352941l0-512 60.235294 0 0-60.235294L677.647059 256zM406.588235 165.647059l210.823529 0-1.264941 90.352941L406.588235 256 406.588235 165.647059zM737.882353 858.352941l-451.764706 0 0-542.117647 451.764706 0L737.882353 858.352941zM466.823529 376.470588l-58.729412 0-1.505882 391.529412 60.235294 0L466.823529 376.470588zM617.411765 376.470588l-60.235294 0 0 391.529412 60.235294 0L617.411765 376.470588z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-reply",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M426.666667 384 426.666667 213.333333 128 512 426.666667 810.666667 426.666667 635.733333C640 635.733333 789.333333 704 896 853.333333 853.333333 640 725.333333 426.666667 426.666667 384Z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-error",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 720m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z"}}),t._v(" "),n("path",{attrs:{d:"M480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"}}),t._v(" "),n("path",{attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48z m-783.5-27.9L512 239.9l339.8 588.2H172.2z"}})])])},staticRenderFns:[]},void 0,m,void 0,!0,void 0,!1,void 0,void 0,void 0);const g=f({},void 0,e.extend({name:"TransitionFade",functional:!0,props:{group:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}},render:(e,{props:t,children:n})=>e(t.group?"TransitionGroup":"Transition",{props:{name:"fade",mode:"out-in",appear:!0,tag:t.tag}},n)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);const y=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{name:{type:String,required:!0},title:{type:String,required:!1,default:null}},render:(e,{props:t,data:n})=>e("svg",Object.assign(Object.assign({},n),{class:["vssue-icon",`vssue-icon-${t.name}`],attrs:{"aria-hidden":"true"}}),[e("title",t.title),e("use",{attrs:{"xlink:href":`#vssue-icon-${t.name}`}})])}),void 0,void 0,void 0,!1,void 0,void 0,void 0);var b=Object.prototype.hasOwnProperty,_=Array.isArray,w=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),C=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},s=0;s1;){var t=e.pop(),n=t.obj[t.prop];if(_(n)){for(var s=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=s.charAt(i):o<128?r+=w[o]:o<2048?r+=w[192|o>>6]+w[128|63&o]:o<55296||o>=57344?r+=w[224|o>>12]+w[128|o>>6&63]+w[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&s.charCodeAt(i)),r+=w[240|o>>18]+w[128|o>>12&63]+w[128|o>>6&63]+w[128|63&o])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n){if(_(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!b.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return _(t)&&!_(n)&&(r=C(t,s)),_(t)&&_(n)?(n.forEach((function(n,r){if(b.call(t,r)){var i=t[r];i&&"object"==typeof i&&n&&"object"==typeof n?t[r]=e(i,n,s):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var i=n[r];return b.call(t,r)?t[r]=e(t[r],i,s):t[r]=i,t}),r)}},$=String.prototype.replace,x=/%20/g,I={RFC1738:"RFC1738",RFC3986:"RFC3986"},M=k.assign({default:I.RFC3986,formatters:{RFC1738:function(e){return $.call(e,x,"+")},RFC3986:function(e){return String(e)}}},I),T=Object.prototype.hasOwnProperty,P={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},O=Array.isArray,D=Array.prototype.push,A=function(e,t){D.apply(e,O(t)?t:[t])},F=Date.prototype.toISOString,S=M.default,R={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:k.encode,encodeValuesOnly:!1,format:S,formatter:M.formatters[S],indices:!1,serializeDate:function(e){return F.call(e)},skipNulls:!1,strictNullHandling:!1},j=function e(t,n,s,r,i,o,a,c,u,l,d,p,h){var m,f=t;if("function"==typeof a?f=a(n,f):f instanceof Date?f=l(f):"comma"===s&&O(f)&&(f=f.join(",")),null===f){if(r)return o&&!p?o(n,R.encoder,h,"key"):n;f=""}if("string"==typeof(m=f)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||k.isBuffer(f))return o?[d(p?n:o(n,R.encoder,h,"key"))+"="+d(o(f,R.encoder,h,"value"))]:[d(n)+"="+d(String(f))];var v,g=[];if(void 0===f)return g;if(O(a))v=a;else{var y=Object.keys(f);v=c?y.sort(c):y}for(var b=0;b0&&/(\[[^[\]]*])/.exec(s),o=i?s.slice(0,i.index):s,a=[];if(o){if(!n.plainObjects&&L.call(Object.prototype,o)&&!n.allowPrototypes)return;a.push(o)}for(var c=0;n.depth>0&&null!==(i=r.exec(s))&&c=0;--r){var i,o=e[r];if("[]"===o&&n.parseArrays)i=[].concat(s);else{i=n.plainObjects?Object.create(null):{};var a="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&o!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=s:i[a]=s:i={0:s}}s=i}return s}(a,t,n)}},H=function(e,t){var n=function(e){if(!e)return N;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?N.charset:e.charset;return{allowDots:void 0===e.allowDots?N.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:N.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:N.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:N.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:N.comma,decoder:"function"==typeof e.decoder?e.decoder:N.decoder,delimiter:"string"==typeof e.delimiter||k.isRegExp(e.delimiter)?e.delimiter:N.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:N.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:N.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:N.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:N.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:N.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,s={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(l=l.split(",")),d.indexOf("[]=")>-1&&(l=E(l)?[l]:l),L.call(s,u)?s[u]=k.combine(s[u],l):s[u]=l}return s}(e,n):e,r=n.plainObjects?Object.create(null):{},i=Object.keys(s),o=0;o0?d+l:""};const U=e=>V(e),B=(e,t)=>{return`${e}${V(t,{addQueryPrefix:!0})}`},W=(e,t)=>{return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`};var Y=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4};var G=function(e){return e instanceof Date},Q=36e5,J=6e4,X=2,K=/[T ]/,Z=/:/,ee=/^(\d{2})$/,te=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],ne=/^(\d{4})/,se=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],re=/^-(\d{2})$/,ie=/^-?(\d{3})$/,oe=/^-?(\d{2})-?(\d{2})$/,ae=/^-?W(\d{2})$/,ce=/^-?W(\d{2})-?(\d{1})$/,ue=/^(\d{2}([.,]\d*)?)$/,le=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,de=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,pe=/([Z+-].*)$/,he=/^(Z)$/,me=/^([+-])(\d{2})$/,fe=/^([+-])(\d{2}):?(\d{2})$/;function ve(e,t,n){t=t||0,n=n||0;var s=new Date(0);s.setUTCFullYear(e,0,4);var r=7*t+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+r),s}var ge=function(e,t){if(G(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?X:Number(n);var s=function(e){var t,n={},s=e.split(K);Z.test(s[0])?(n.date=null,t=s[0]):(n.date=s[0],t=s[1]);if(t){var r=pe.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e),r=function(e,t){var n,s=te[t],r=se[t];if(n=ne.exec(e)||r.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=ee.exec(e)||s.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(s.date,n),i=r.year,o=function(e,t){if(null===t)return null;var n,s,r,i;if(0===e.length)return(s=new Date(0)).setUTCFullYear(t),s;if(n=re.exec(e))return s=new Date(0),r=parseInt(n[1],10)-1,s.setUTCFullYear(t,r),s;if(n=ie.exec(e)){s=new Date(0);var o=parseInt(n[1],10);return s.setUTCFullYear(t,0,o),s}if(n=oe.exec(e)){s=new Date(0),r=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return s.setUTCFullYear(t,r,a),s}if(n=ae.exec(e))return i=parseInt(n[1],10)-1,ve(t,i);if(n=ce.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return ve(t,i,c)}return null}(r.restDateString,i);if(o){var a,c=o.getTime(),u=0;if(s.time&&(u=function(e){var t,n,s;if(t=ue.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*Q;if(t=le.exec(e))return n=parseInt(t[1],10),s=parseFloat(t[2].replace(",",".")),n%24*Q+s*J;if(t=de.exec(e)){n=parseInt(t[1],10),s=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return n%24*Q+s*J+1e3*r}return null}(s.time)),s.timezone)a=function(e){var t,n;if(t=he.exec(e))return 0;if(t=me.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=fe.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(s.timezone)*J;else{var l=c+u,d=new Date(l);a=Y(d);var p=new Date(l);p.setDate(d.getDate()+1);var h=Y(p)-Y(d);h>0&&(a+=h)}return new Date(c+u+a)}return new Date(e)};var ye=function(e){var t=ge(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var be=function(e){var t=ge(e);return t.setHours(0,0,0,0),t},_e=6e4,we=864e5;var Ce=function(e,t){var n=be(e),s=be(t),r=n.getTime()-n.getTimezoneOffset()*_e,i=s.getTime()-s.getTimezoneOffset()*_e;return Math.round((r-i)/we)};var ke=function(e){var t=ge(e);return Ce(t,ye(t))+1};var $e=function(e,t){var n=t&&Number(t.weekStartsOn)||0,s=ge(e),r=s.getDay(),i=(r=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1};var Me=function(e){var t=Ie(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),xe(n)},Te=6048e5;var Pe=function(e){var t=ge(e),n=xe(t).getTime()-Me(t).getTime();return Math.round(n/Te)+1};var Oe=function(e){if(G(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")};var De=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];var Ae=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var s=De.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+s.join("|")+"|.)","g")};var Fe=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["AM","PM"],o=["am","pm"],a=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return s[e.getDay()]},dddd:function(e){return r[e.getDay()]},A:function(e){return e.getHours()/12>=1?i[1]:i[0]},a:function(e){return e.getHours()/12>=1?o[1]:o[0]},aa:function(e){return e.getHours()/12>=1?a[1]:a[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){c[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:c,formattingTokensRegExp:Ae(c)}},Se={distanceInWords:function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,s){var r;return s=s||{},r="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),s.addSuffix?s.comparison>0?"in "+r:r+" ago":r}}}(),format:Fe()};var Re={M:function(e){return e.getMonth()+1},MM:function(e){return Ee(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return Ee(e.getDate(),2)},DDD:function(e){return ke(e)},DDDD:function(e){return Ee(ke(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Pe(e)},WW:function(e){return Ee(Pe(e),2)},YY:function(e){return Ee(e.getFullYear(),4).substr(2)},YYYY:function(e){return Ee(e.getFullYear(),4)},GG:function(e){return String(Ie(e)).substr(2)},GGGG:function(e){return Ie(e)},H:function(e){return e.getHours()},HH:function(e){return Ee(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return Ee(Re.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return Ee(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Ee(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Ee(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Ee(e.getMilliseconds(),3)},Z:function(e){return Le(e.getTimezoneOffset(),":")},ZZ:function(e){return Le(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function je(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function Le(e,t){t=t||"";var n=e>0?"-":"+",s=Math.abs(e),r=s%60;return n+Ee(Math.floor(s/60),2)+t+Ee(r,2)}function Ee(e,t){for(var n=Math.abs(e).toString();n.length{return Ne(e,"YYYY-MM-DD HH:mm:ss")},qe=e=>{return(e.split("#")[0]||"").split("?")[0]||""},He=e=>H(e,{ignoreQueryPrefix:!0});let Ve=class extends e{constructor(){super(...arguments),this.editMode=!1,this.editContent=this.comment.contentRaw,this.creatingReactions=[],this.isPutingComment=!1,this.isDeletingComment=!1}get currentUser(){return this.vssue.user?this.vssue.user.username:null}get content(){return this.comment.content}get author(){return this.comment.author}get createdAt(){return ze(this.comment.createdAt)}get updatedAt(){return ze(this.comment.updatedAt)}get showReactions(){return Boolean(this.vssue.API&&this.vssue.API.platform.meta.reactable&&this.comment.reactions&&!this.editMode)}get reactionKeys(){return["heart","like","unlike"]}get editContentRows(){return this.editContent.split("\n").length-1}get editInputRows(){return this.editContentRows<3?5:this.editContentRows+2}async postReaction({reaction:e}){try{if(this.creatingReactions.includes(e))return;this.creatingReactions.push(e),await this.vssue.postCommentReaction({commentId:this.comment.id,reaction:e})||this.vssue.$emit("error",new Error(this.vssue.$t("reactionGiven",{reaction:this.vssue.$t(e)})));const t=await this.vssue.getCommentReactions({commentId:this.comment.id});t&&(this.comment.reactions=t)}finally{this.creatingReactions.splice(this.creatingReactions.findIndex(t=>t===e),1)}}enterEdit(){this.editMode=!0,this.$nextTick(()=>{this.$refs.input.focus()})}resetEdit(){this.editMode=!1,this.editContent=this.comment.contentRaw}async putComment(){try{if(this.vssue.isPending)return;if(this.editContent!==this.comment.contentRaw){this.isPutingComment=!0,this.vssue.isUpdatingComment=!0;const e=await this.vssue.putComment({commentId:this.comment.id,content:this.editContent});e&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1,e)}this.editMode=!1}finally{this.isPutingComment=!1,this.vssue.isUpdatingComment=!1}}async deleteComment(){try{if(this.vssue.isPending)return;if(!window.confirm(this.vssue.$t("deleteConfirm")))return;this.isDeletingComment=!0,this.vssue.isUpdatingComment=!0,await this.vssue.deleteComment({commentId:this.comment.id})?(this.vssue.comments.count-=1,this.vssue.comments.data.length>1&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1),this.vssue.query.page>1&&this.vssue.query.page>Math.ceil(this.vssue.comments.count/this.vssue.query.perPage)?this.vssue.query.page-=1:await this.vssue.getComments()):this.vssue.$emit("error",new Error(this.vssue.$t("deleteFailed")))}finally{this.isDeletingComment=!1,this.vssue.isUpdatingComment=!1}}};t([p({type:Object,required:!0})],Ve.prototype,"comment",void 0),t([l()],Ve.prototype,"vssue",void 0),Ve=t([u({components:{VssueIcon:y}})],Ve);const Ue=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-comment",class:{"vssue-comment-edit-mode":e.editMode,"vssue-comment-disabled":e.isDeletingComment||e.isPutingComment}},[n("div",{staticClass:"vssue-comment-avatar"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.author.avatar,alt:e.author.username}})])]),e._v(" "),n("div",{staticClass:"vssue-comment-body"},[e._t("body",[n("div",{staticClass:"vssue-comment-header"},[n("span",{staticClass:"vssue-comment-author"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.author.username)+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-comment-created-at"},[e._v("\n "+e._s(e.createdAt)+"\n ")])]),e._v(" "),n("div",{staticClass:"vssue-comment-main"},[e.editMode?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editContent,expression:"editContent"}],ref:"input",staticClass:"vssue-edit-comment-input",attrs:{rows:e.editInputRows},domProps:{value:e.editContent},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.putComment():null},input:function(t){t.target.composing||(e.editContent=t.target.value)}}}):n("article",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.content)}})]),e._v(" "),n("div",{staticClass:"vssue-comment-footer"},[e.editMode?n("span",{staticClass:"vssue-comment-hint"},[e._v("\n "+e._s(e.vssue.$t("editMode"))+"\n ")]):e._e(),e._v(" "),e.showReactions?n("span",{staticClass:"vssue-comment-reactions"},e._l(e.reactionKeys,(function(t){return n("span",{key:t,staticClass:"vssue-comment-reaction",attrs:{title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)},on:{click:function(n){return e.postReaction({reaction:t})}}},[n("VssueIcon",{attrs:{name:e.creatingReactions.includes(t)?"loading":t,title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)}}),e._v(" "),n("span",{staticClass:"vssue-comment-reaction-number"},[e._v("\n "+e._s(e.comment.reactions[t])+"\n ")])],1)})),0):e._e(),e._v(" "),n("span",{staticClass:"vssue-comment-operations"},[e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation",class:{"vssue-comment-operation-muted":e.isPutingComment},attrs:{title:e.vssue.$t(e.isPutingComment?"loading":"submit")},on:{click:function(t){return e.putComment()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.isPutingComment,expression:"isPutingComment"}],attrs:{name:"loading",title:e.vssue.$t("loading")}}),e._v("\n\n "+e._s(e.vssue.$t("submit"))+"\n ")],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation vssue-comment-operation-muted",attrs:{title:e.vssue.$t("cancel")},on:{click:function(t){return e.resetEdit()}}},[e._v("\n "+e._s(e.vssue.$t("cancel"))+"\n ")]):e._e(),e._v(" "),e.comment.author.username===e.currentUser?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.enterEdit()}}},[n("VssueIcon",{attrs:{name:"edit",title:e.vssue.$t("edit")}})],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser||e.vssue.isAdmin?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.deleteComment()}}},[n("VssueIcon",{attrs:{name:e.isDeletingComment?"loading":"delete",title:e.vssue.$t(e.isDeletingComment?"loading":"delete")}})],1):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.vssue.$emit("reply-comment",e.comment)}}},[n("VssueIcon",{attrs:{name:"reply",title:e.vssue.$t("reply")}})],1)])])])],2)])},staticRenderFns:[]},void 0,Ve,void 0,!1,void 0,!1,void 0,void 0,void 0);let Be=class extends e{get disabled(){return this.vssue.isPending}get pageCount(){const e=Math.ceil(this.vssue.comments.count/this.vssue.comments.perPage);return e>1?e:1}get perPageOptions(){const e=[5,10,20,50];return!e.includes(this.vssue.options.perPage)&&this.vssue.options.perPage<100&&e.push(this.vssue.options.perPage),e.sort((e,t)=>e-t)}get page(){return this.vssue.query.page>this.pageCount?this.pageCount:this.vssue.query.page}set page(e){e>0&&e<=this.pageCount&&(this.vssue.query.page=e)}get perPage(){return this.vssue.query.perPage}set perPage(e){this.perPageOptions.includes(e)&&(this.vssue.query.perPage=e)}};t([l()],Be.prototype,"vssue",void 0),Be=t([u({components:{VssueIcon:y}})],Be);const We=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-pagination"},[n("div",{staticClass:"vssue-pagination-per-page"},[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.perPage,expression:"perPage"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.perPage=t.target.multiple?n:n[0]}}},e._l(e.perPageOptions,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",[e._v("\n "+e._s(e.vssue.$t("perPage"))+"\n ")])]),e._v(" "),e.vssue.API.platform.meta.sortable?n("span",{class:{"vssue-pagination-link":!0,disabled:e.disabled},attrs:{title:e.vssue.$t("sort")},on:{click:function(t){e.vssue.query.sort="asc"===e.vssue.query.sort?"desc":"asc"}}},[e._v("\n "+e._s("asc"===e.vssue.query.sort?"↑":"↓")+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"vssue-pagination-page"},[n("span",{class:{"vssue-pagination-link":!0,disabled:1===e.page||e.disabled},attrs:{title:e.vssue.$t("prev")},domProps:{textContent:e._s("<")},on:{click:function(t){e.page-=1}}}),e._v(" "),n("label",[n("span",[e._v("\n "+e._s(e.vssue.$t("page"))+"\n ")]),e._v(" "),n("select",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"},{name:"model",rawName:"v-model",value:e.page,expression:"page"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.page=t.target.multiple?n:n[0]}}},e._l(e.pageCount,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.pageCount<2,expression:"pageCount < 2"}],domProps:{textContent:e._s(e.page)}}),e._v(" "),n("span",{domProps:{textContent:e._s(" / "+e.pageCount+" ")}})]),e._v(" "),n("span",{class:{"vssue-pagination-link":!0,disabled:e.page===e.pageCount||e.disabled},attrs:{title:e.vssue.$t("next")},domProps:{textContent:e._s(">")},on:{click:function(t){e.page+=1}}})])])},staticRenderFns:[]},void 0,Be,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ye=class extends e{};t([l()],Ye.prototype,"vssue",void 0),Ye=t([u({components:{TransitionFade:g,VssueComment:Ue,VssuePagination:We}})],Ye);const Ge=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue-comments"},[t("VssuePagination"),this._v(" "),t("TransitionFade",{attrs:{group:""}},this._l(this.vssue.comments.data,(function(e){return t("VssueComment",{key:e.id,attrs:{comment:e}})})),1),this._v(" "),t("VssuePagination",{directives:[{name:"show",rawName:"v-show",value:this.vssue.comments.data.length>5,expression:"vssue.comments.data.length > 5"}]})],1)},staticRenderFns:[]},void 0,Ye,void 0,!1,void 0,!1,void 0,void 0,void 0);const Qe=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{type:{type:String,required:!1,default:"default"}},render:(e,{props:t,data:n,children:s})=>e("button",Object.assign(Object.assign({},n),{class:["vssue-button",`vssue-button-${t.type}`]}),s)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);let Je=class extends e{constructor(){super(...arguments),this.content=""}get user(){return this.vssue.user}get platform(){return this.vssue.API&&this.vssue.API.platform.name}get isInputDisabled(){return this.loading||null===this.user||null===this.vssue.issue}get isSubmitDisabled(){return""===this.content||this.vssue.isPending||null===this.vssue.issue}get loading(){return this.vssue.isCreatingComment}get contentRows(){return this.content.split("\n").length-1}get inputRows(){return this.contentRows<3?5:this.contentRows+2}created(){this.vssue.$on("reply-comment",e=>{const t=e.contentRaw.replace(/\n/g,"\n> "),n=`@${e.author.username}\n\n> ${t}\n\n`;this.content=this.content.concat(n),this.focus()})}beforeDestroy(){this.vssue.$off("reply-comment")}focus(){this.$refs.input.focus()}async submit(){this.isSubmitDisabled||(await this.vssue.postComment({content:this.content}),this.content="",await this.vssue.getComments())}};t([l()],Je.prototype,"vssue",void 0),Je=t([u({components:{VssueButton:Qe,VssueIcon:y}})],Je);const Xe=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-new-comment"},[n("div",{staticClass:"vssue-comment-avatar"},[e.user?n("a",{attrs:{href:e.user.homepage,title:e.user.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.user.avatar,alt:e.user.username}})]):n("VssueIcon",{attrs:{name:e.platform.toLowerCase(),title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}})],1),e._v(" "),n("div",{staticClass:"vssue-new-comment-body"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"input",staticClass:"vssue-new-comment-input",attrs:{rows:e.inputRows,disabled:e.isInputDisabled,placeholder:e.vssue.$t(e.user?"placeholder":"noLoginPlaceHolder"),spellcheck:!1,"aria-label":"leave a comment"},domProps:{value:e.content},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.submit():null},input:function(t){t.target.composing||(e.content=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"vssue-new-comment-footer"},[e.user?n("span",{staticClass:"vssue-current-user"},[n("span",[e._v(e._s(e.vssue.$t("currentUser"))+" - "+e._s(e.user.username)+" - ")]),e._v(" "),n("a",{staticClass:"vssue-logout",on:{click:function(t){return e.vssue.logout()}}},[e._v("\n "+e._s(e.vssue.$t("logout"))+"\n ")])]):n("span",{staticClass:"vssue-current-user"},[e._v("\n "+e._s(e.vssue.$t("loginToComment",{platform:e.platform}))+"\n ")]),e._v(" "),n("div",{staticClass:"vssue-new-comment-operations"},[e.user?n("VssueButton",{staticClass:"vssue-button-submit-comment",attrs:{type:"primary",disabled:e.isSubmitDisabled},on:{click:function(t){return e.submit()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],attrs:{name:"loading"}}),e._v("\n\n "+e._s(e.vssue.$t(e.loading?"submitting":"submitComment"))+"\n ")],1):n("VssueButton",{staticClass:"vssue-button-login",attrs:{type:"primary",title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}},[e._v("\n "+e._s(e.vssue.$t("login",{platform:e.platform}))+"\n ")])],1)])])},staticRenderFns:[]},void 0,Je,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ke=class extends e{constructor(){super(...arguments),this.progress={show:!1,percent:0,timer:null,speed:200},this.alert={show:!1,message:null,timer:null}}onLoadingCommentsChange(e){this.vssue.comments&&(e?this.progressStart():this.progressDone())}created(){this.vssue.$on("error",e=>this.alertShow(e.message))}beforeDestroy(){this.vssue.$off("error"),null!==this.progress.timer&&window.clearTimeout(this.progress.timer),null!==this.alert.timer&&window.clearTimeout(this.alert.timer)}progressStart(){this.progress.show=!0,this.progress.percent=0,this.progress.timer=window.setInterval(()=>{this.progress.percent+=5,this.progress.percent>94&&null!==this.progress.timer&&window.clearInterval(this.progress.timer)},this.progress.speed)}progressDone(){this.progress.percent=100,null!==this.progress.timer&&window.clearTimeout(this.progress.timer),this.progress.timer=null,window.setTimeout(()=>{this.progress.show=!1},this.progress.speed)}alertShow(e){this.alert.show=!0,this.alert.message=e,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=window.setTimeout(()=>{this.alertHide()},3e3)}alertHide(){this.alert.show=!1,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=null}};t([l()],Ke.prototype,"vssue",void 0),t([h("vssue.isLoadingComments")],Ke.prototype,"onLoadingCommentsChange",null),Ke=t([u({components:{TransitionFade:g}})],Ke);const Ze=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-notice"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.progress.show,expression:"progress.show"}],staticClass:"vssue-progress",style:{width:e.progress.percent+"%",transition:"all "+e.progress.speed+"ms linear"}}),e._v(" "),n("TransitionFade",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.alert.show,expression:"alert.show"}],staticClass:"vssue-alert",domProps:{textContent:e._s(e.alert.message)},on:{click:function(t){return e.alertHide()}}})])],1)},staticRenderFns:[]},void 0,Ke,void 0,!1,void 0,!1,void 0,void 0,void 0);let et=class extends e{get status(){return this.vssue.isFailed?"failed":this.vssue.isInitializing?"initializing":this.vssue.isIssueNotCreated&&!this.vssue.isCreatingIssue?this.vssue.isAdmin||!this.vssue.isLogined?"issueNotCreated":"failed":this.vssue.isLoginRequired?"loginRequired":!this.vssue.comments||this.vssue.isCreatingIssue?"loadingComments":0===this.vssue.comments.data.length?"noComments":null}handleClick(){"issueNotCreated"===this.status?this.vssue.postIssue():"loginRequired"===this.status&&this.vssue.login()}};t([l()],et.prototype,"vssue",void 0),et=t([u({components:{TransitionFade:g,VssueIcon:y}})],et);const tt=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TransitionFade",[e.status?n("div",{key:e.status,staticClass:"vssue-status"},[["failed","loadingComments","initializing"].includes(e.status)?n("VssueIcon",{attrs:{name:"failed"===e.status?"error":"loading"}}):e._e(),e._v(" "),n("p",{staticClass:"vssue-status-info"},[n(["issueNotCreated","loginRequired"].includes(e.status)?"a":"span",{tag:"Component",on:{click:e.handleClick}},[e._v("\n "+e._s(e.vssue.$t(e.status))+"\n ")])],1)],1):e._e()])},staticRenderFns:[]},void 0,et,void 0,!1,void 0,!1,void 0,void 0,void 0);let nt=class extends e{};t([l()],nt.prototype,"vssue",void 0),nt=t([u({components:{TransitionFade:g,VssueIcon:y,VssueComments:Ge,VssueNewComment:Xe,VssueNotice:Ze,VssueStatus:tt}})],nt);const st=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("TransitionFade",[this.vssue.isInitializing?t("VssueStatus"):t("div",{staticClass:"vssue-body"},[this.vssue.API?t("VssueNewComment"):this._e(),this._v(" "),t("VssueNotice"),this._v(" "),t("TransitionFade",[this.vssue.comments&&this.vssue.comments.data.length>0?t("VssueComments"):t("VssueStatus")],1)],1)],1)},staticRenderFns:[]},void 0,nt,void 0,!1,void 0,!1,void 0,void 0,void 0);let rt=class extends e{};t([l()],rt.prototype,"vssue",void 0),rt=t([u],rt);const it=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-header"},[n("a",{staticClass:"vssue-header-comments-count",attrs:{href:e.vssue.issue?e.vssue.issue.link:null,target:"_blank",rel:"noopener noreferrer"}},[n("span",[e._v("\n "+e._s(e.vssue.comments?e.vssue.$tc("comments",e.vssue.comments.count,{count:e.vssue.comments.count}):e.vssue.$tc("comments",0))+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-header-powered-by"},[n("span",[e._v("Powered by")]),e._v(" "),e.vssue.API?n("span",[n("a",{attrs:{href:e.vssue.API.platform.link,title:e.vssue.API.platform.name+" API "+e.vssue.API.platform.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.vssue.API.platform.name)+"\n ")]),e._v(" "),n("span",[e._v("&")])]):e._e(),e._v(" "),n("a",{attrs:{href:"https://github.com/meteorlxy/vssue",title:"Vssue v"+e.vssue.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n Vssue\n ")])])])},staticRenderFns:[]},void 0,rt,void 0,!1,void 0,!1,void 0,void 0,void 0); +/*! + * vue-i18n v8.15.3 + * (c) 2019 kazuya kawaguchi + * Released under the MIT License. + */ +var ot=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function at(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function ct(e){return null!==e&&"object"==typeof e}var ut=Object.prototype.toString,lt="[object Object]";function dt(e){return ut.call(e)===lt}function pt(e){return null==e}function ht(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,s=null;return 1===e.length?ct(e[0])||Array.isArray(e[0])?s=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(ct(e[1])||Array.isArray(e[1]))&&(s=e[1])),{locale:n,params:s}}function mt(e){return JSON.parse(JSON.stringify(e))}var ft=Object.prototype.hasOwnProperty;function vt(e,t){return ft.call(e,t)}function gt(e){for(var t=arguments,n=Object(e),s=1;s0;)t[n]=arguments[n+1];var s=this.$i18n;return s._t.apply(s,[e,s.locale,s._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],s=arguments.length-2;s-- >0;)n[s]=arguments[s+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}($t),$t.mixin(bt),$t.directive("t",{bind:It,update:Mt,unbind:Tt}),$t.component(_t.name,_t),$t.component(xt.name,xt),$t.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Ft=function(){this._caches=Object.create(null)};Ft.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,s="";for(;n0)d--,l=qt,p[jt]();else{if(d=0,void 0===n)return!1;if(!1===(n=Qt(n)))return!1;p[Lt]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!h()){if(r=Gt(t),(i=(a=Wt[l])[r]||a.else||Bt)===Bt)return;if(l=i[0],(o=p[i[1]])&&(s=void 0===(s=i[2])?t:s,!1===o()))return;if(l===Ut)return c}}(e))&&(this._cache[e]=t),t||[]},Jt.prototype.getPathValue=function(e,t){if(!ct(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var s=n.length,r=e,i=0;i/,Zt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,en=/^@(?:\.([a-z]+))?:/,tn=/[()]/g,nn={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()}},sn=new Ft,rn=function(e){var t=this;void 0===e&&(e={}),!$t&&"undefined"!=typeof window&&window.Vue&&At(window.Vue);var n=e.locale||"en-US",s=e.fallbackLocale||"en-US",r=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||sn,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Jt,this._dataListeners=[],this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._exist=function(e,n){return!(!e||!n)&&(!pt(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:s,messages:r,dateTimeFormats:i,numberFormats:o})},on={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0}};rn.prototype._checkLocaleMessage=function(e,t,n){var s=function(e,t,n,r){if(dt(n))Object.keys(n).forEach((function(i){var o=n[i];dt(o)?(r.push(i),r.push("."),s(e,t,o,r),r.pop(),r.pop()):(r.push(i),s(e,t,o,r),r.pop())}));else if(Array.isArray(n))n.forEach((function(n,i){dt(n)?(r.push("["+i+"]"),r.push("."),s(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(e,t,n,r),r.pop())}));else if("string"==typeof n){if(Kt.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?at(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};s(t,e,n,[])},rn.prototype._initVM=function(e){var t=$t.config.silent;$t.config.silent=!0,this._vm=new $t({data:e}),$t.config.silent=t},rn.prototype.destroyVM=function(){this._vm.$destroy()},rn.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},rn.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},rn.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)$t.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},rn.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},on.vm.get=function(){return this._vm},on.messages.get=function(){return mt(this._getMessages())},on.dateTimeFormats.get=function(){return mt(this._getDateTimeFormats())},on.numberFormats.get=function(){return mt(this._getNumberFormats())},on.availableLocales.get=function(){return Object.keys(this.messages).sort()},on.locale.get=function(){return this._vm.locale},on.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},on.fallbackLocale.get=function(){return this._vm.fallbackLocale},on.fallbackLocale.set=function(e){this._vm.$set(this._vm,"fallbackLocale",e)},on.formatFallbackMessages.get=function(){return this._formatFallbackMessages},on.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},on.missing.get=function(){return this._missing},on.missing.set=function(e){this._missing=e},on.formatter.get=function(){return this._formatter},on.formatter.set=function(e){this._formatter=e},on.silentTranslationWarn.get=function(){return this._silentTranslationWarn},on.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},on.silentFallbackWarn.get=function(){return this._silentFallbackWarn},on.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},on.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},on.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},on.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},on.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var s=this._getMessages();Object.keys(s).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,s[e])}))}},rn.prototype._getMessages=function(){return this._vm.messages},rn.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},rn.prototype._getNumberFormats=function(){return this._vm.numberFormats},rn.prototype._warnDefault=function(e,t,n,s,r){if(!pt(n))return n;if(this._missing){var i=this._missing.apply(null,[e,t,s,r]);if("string"==typeof i)return i}if(this._formatFallbackMessages){var o=ht.apply(void 0,r);return this._render(t,"string",o.params,t)}return t},rn.prototype._isFallbackRoot=function(e){return!e&&!pt(this._root)&&this._fallbackRoot},rn.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},rn.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},rn.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},rn.prototype._interpolate=function(e,t,n,s,r,i,o){if(!t)return null;var a,c=this._path.getPathValue(t,n);if(Array.isArray(c)||dt(c))return c;if(pt(c)){if(!dt(t))return null;if("string"!=typeof(a=t[n]))return null}else{if("string"!=typeof c)return null;a=c}return(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,s,"raw",i,o)),this._render(a,r,i,n)},rn.prototype._link=function(e,t,n,s,r,i,o){var a=n,c=a.match(Zt);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],d=l.match(en),p=d[0],h=d[1],m=l.replace(p,"").replace(tn,"");if(o.includes(m))return a;o.push(m);var f=this._interpolate(e,t,m,s,"raw"===r?"string":r,"raw"===r?void 0:i,o);if(this._isFallbackRoot(f)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;f=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,s,r,i)}f=this._warnDefault(e,m,f,s,Array.isArray(i)?i:[i]),this._modifiers.hasOwnProperty(h)?f=this._modifiers[h](f):nn.hasOwnProperty(h)&&(f=nn[h](f)),o.pop(),a=f?a.replace(l,f):a}return a},rn.prototype._render=function(e,t,n,s){var r=this._formatter.interpolate(e,n,s);return r||(r=sn.interpolate(e,n,s)),"string"===t?r.join(""):r},rn.prototype._translate=function(e,t,n,s,r,i,o){var a=this._interpolate(t,e[t],s,r,i,o,[s]);return pt(a)&&pt(a=this._interpolate(n,e[n],s,r,i,o,[s]))?null:a},rn.prototype._t=function(e,t,n,s){for(var r,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var a=ht.apply(void 0,i),c=a.locale||t,u=this._translate(n,c,this.fallbackLocale,e,s,"string",a.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return this._warnDefault(c,e,u,s,i)},rn.prototype.t=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},rn.prototype._i=function(e,t,n,s,r){var i=this._translate(n,t,this.fallbackLocale,e,s,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,s,[r])},rn.prototype.i=function(e,t,n){return e?("string"!=typeof t&&(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},rn.prototype._tc=function(e,t,n,s,r){for(var i,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===r&&(r=1);var c={count:r,n:r},u=ht.apply(void 0,o);return u.params=Object.assign(c,u.params),o=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,s].concat(o)),r)},rn.prototype.fetchChoice=function(e,t){if(!e&&"string"!=typeof e)return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},rn.prototype.getChoiceIndex=function(e,t){var n,s;return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[e,t]):(n=e,s=t,n=Math.abs(n),2===s?n?n>1?1:0:1:n?Math.min(n,2):0)},rn.prototype.tc=function(e,t){for(var n,s=[],r=arguments.length-2;r-- >0;)s[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(s))},rn.prototype._te=function(e,t,n){for(var s=[],r=arguments.length-3;r-- >0;)s[r]=arguments[r+3];var i=ht.apply(void 0,s).locale||t;return this._exist(n[i],e)},rn.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},rn.prototype.getLocaleMessage=function(e){return mt(this._vm.messages[e]||{})},rn.prototype.setLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,t)},rn.prototype.mergeLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,gt({},this._vm.messages[e]||{},t))},rn.prototype.getDateTimeFormat=function(e){return mt(this._vm.dateTimeFormats[e]||{})},rn.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t)},rn.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,gt(this._vm.dateTimeFormats[e]||{},t))},rn.prototype._localizeDateTime=function(e,t,n,s,r){var i=t,o=s[i];if((pt(o)||pt(o[r]))&&(o=s[i=n]),pt(o)||pt(o[r]))return null;var a=o[r],c=i+"__"+r,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(i,a)),u.format(e)},rn.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var s=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return s||""},rn.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:ct(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._d(e,s,r)},rn.prototype.getNumberFormat=function(e){return mt(this._vm.numberFormats[e]||{})},rn.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t)},rn.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,gt(this._vm.numberFormats[e]||{},t))},rn.prototype._getNumberFormatter=function(e,t,n,s,r,i){var o=t,a=s[o];if((pt(a)||pt(a[r]))&&(a=s[o=n]),pt(a)||pt(a[r]))return null;var c,u=a[r];if(i)c=new Intl.NumberFormat(o,Object.assign({},u,i));else{var l=o+"__"+r;(c=this._numberFormatters[l])||(c=this._numberFormatters[l]=new Intl.NumberFormat(o,u))}return c},rn.prototype._n=function(e,t,n,s){if(!rn.availabilities.numberFormat)return"";if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},s))}return i||""},rn.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null,i=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:ct(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var s;return ot.includes(n)?Object.assign({},e,((s={})[n]=t[0][n],s)):e}),null)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._n(e,s,r,i)},rn.prototype._ntp=function(e,t,n,s){if(!rn.availabilities.numberFormat)return[];if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,s)}return i||[]},Object.defineProperties(rn.prototype,on),Object.defineProperty(rn,"availabilities",{get:function(){if(!Xt){var e="undefined"!=typeof Intl;Xt={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Xt}}),rn.install=At,rn.version="8.15.3";const an={login:"Login with {platform}",logout:"Logout",currentUser:"Current User",loading:"Loading",submit:"Submit",submitting:"Submitting",submitComment:"Submit Comment",cancel:"Cancel",edit:"Edit",editMode:"Edit Mode",delete:"Delete",reply:"Reply",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comments per page",sort:"Click to change the sort direction",page:"Page",prev:"Previous Page",next:"Next Page",comments:"Comments | {count} Comment | {count} Comments",loginToComment:"Login with {platform} account to leave a comment",placeholder:"Leave a comment. Styling with Markdown is supported. Ctrl + Enter to submit.",noLoginPlaceHolder:"Login to leave a comment. Styling with Markdown is supported. ",failed:"Failed to load comments",initializing:"Initializing...",issueNotCreated:"Click to create issue",loadingComments:"Loading comments...",loginRequired:"Login to view comments",noComments:"No comments yet. Leave the first comment !",reactionGiven:"Already given '{reaction}' reaction",deleteConfirm:"Confirm to delete this comment ?",deleteFailed:"Failed to delete comment"},cn={login:"使用 {platform} 登录",logout:"退出登录",currentUser:"当前用户",loading:"加载中",submit:"提交",submitting:"发表中",submitComment:"发表评论",cancel:"取消",edit:"编辑",editMode:"编辑模式",delete:"删除",reply:"回复",heart:"喜欢",like:"赞",unlike:"踩",perPage:"每页评论数",sort:"点击改变排序方式",page:"页数",prev:"上一页",next:"下一页",comments:"评论 | {count} 条评论 | {count} 条评论",loginToComment:"使用 {platform} 帐号登录后发表评论",placeholder:"留下你的评论丨支持 Markdown 语法丨Ctrl + Enter 发表评论",noLoginPlaceHolder:"登录后才能发表评论丨支持 Markdown 语法",failed:"评论加载失败",initializing:"正在初始化...",issueNotCreated:"点击创建 Issue",loadingComments:"正在加载评论...",loginRequired:"登录后查看评论",noComments:"还没有评论,来发表第一条评论吧!",reactionGiven:"已经添加过 '{reaction}' 了",deleteConfirm:"确认要删除该评论吗?",deleteFailed:"评论删除失败"},un={login:"Entrar com {platform}",logout:"Sair",currentUser:"Usuário Atual",loading:"Carregando",submit:"Enviar",submitting:"Enviando",submitComment:"Enviar Comentário",cancel:"Cancelar",edit:"Editar",editMode:"Modo de Edição",delete:"Apagar",reply:"Responder",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comentários por página",sort:"Clique para alterar a ordenação",page:"Página",prev:"Página Anterior",next:"Próxima Página",comments:"Comentários | {count} Comentário | {count} Comentários",loginToComment:"Entre com uma conta {platform} para deixar um comentário",placeholder:"Deixe um comentário. Estilos com Markdown suportados. Ctrl + Enter para enviar.",noLoginPlaceHolder:"Entre para deixar um comentário. Estilos com Markdown suportados. ",failed:"Falha ao carregar comentários",initializing:"Inicializando...",issueNotCreated:"Click to create issue",loadingComments:"Carregando comentários...",loginRequired:"Entrar para visualizar comentários",noComments:"Nenhum comentário. Deixe o primeiro comentário!",reactionGiven:"Já reagiu com '{reaction}'",deleteConfirm:"Apagar este comentário?",deleteFailed:"Falha ao apagar comentário"},ln={login:"{platform} でログイン",logout:"ログアウト",currentUser:"現在のユーザー",loading:"読み込み中",submit:"送信",submitting:"送信中",submitComment:"コメントを送信",cancel:"キャンセル",edit:"編集",editMode:"編集モード",delete:"削除",reply:"返信",heart:"ハート",like:"高評価",unlike:"低評価",perPage:"コメント/ページ",sort:"並び順を変更するにはクリックしてください",page:"ページ",prev:"前のページ",next:"次のページ",comments:"コメント | {count} コメント | {count} コメント",loginToComment:"コメントを残すには {platform} アカウントでログインしてください。",placeholder:"コメントを残してください。Markdown 記法をサポートしています。 Ctrl + Enter で送信できます。",noLoginPlaceHolder:"コメントを残すにはログインしてください。マークダウン記法をサポートしています。",failed:"コメントの読み込みに失敗しました",initializing:"初期化中...",issueNotCreated:"Click to create issue",loadingComments:"コメントの読み込み中...",loginRequired:"コメントを見るにはログインしてください",noComments:"まだコメントがありません。最初のコメントを残しましょう!",reactionGiven:"既に '{reaction}' のリアクションをしています",deleteConfirm:"本当にコメントを削除してもいいですか?",deleteFailed:"コメントの削除に失敗しました"},dn={login:"התחברו עם {platform}",logout:"התנתקו",currentUser:"משתמש/ת נוכחי/ת",loading:"טוען",submit:"שליחה",submitting:"שולח",submitComment:"שליחת תגובה",cancel:"ביטל",edit:"עריכה",editMode:"מצב עריכה",delete:"מחיקה",reply:"תשובה",heart:"לב",like:"לייק",unlike:"אנלייק",perPage:"תגובות לדף",sort:"לחצו כדי לשנות את כיוון המיון",page:"דף",prev:"הדף הקודם",next:"הדף הבא",comments:"תגובות | {count} תגובה | {count} תגובות",loginToComment:"התחברו עם חשבון {platform} כדי להשאיר תגובה",placeholder:"השאירו תגובה. יש תמיכה בעיצוב בעזרת Markdown. Ctrl + Enter כדי לשלוח.",noLoginPlaceHolder:"התחברו כדי להשאיר תגובה. יש תמיכה בעיצוב בעזרת Markdown. ",failed:"כשלון בטעינת התגובות",initializing:"מאתחל...",issueNotCreated:"לחצו ליצירת issue",loadingComments:"טוען תגובות...",loginRequired:"התחברו כדי לצפות בתגובות",noComments:"עדיין אין תגובות. השאירו תגובה ראשונה !",reactionGiven:"כבר ניתן חיווי '{reaction}'",deleteConfirm:"בטוחים במחיקת התגובה ?",deleteFailed:"כשלון במחיקת התגובה"};Object.prototype.hasOwnProperty.call(e,"$i18n")||e.use(rn);const pn=new rn({locale:"en",fallbackLocale:"en",messages:{en:an,"en-US":an,zh:cn,"zh-CN":cn,pt:un,"pt-BR":un,ja:ln,"ja-JP":ln,he:dn,"he-IL":dn}});let hn=class extends e{constructor(){super(...arguments),this.title=e=>`${e.prefix}${document.title}`,this.issueId=null,this.options=null,this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:10,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1}get version(){return"1.4.8"}get issueTitle(){return null===this.options?"":"function"==typeof this.title?this.title(this.options):`${this.options.prefix}${this.title}`}get isPending(){return this.isLoadingComments||this.isCreatingComment||this.isUpdatingComment}get isLogined(){return null!==this.accessToken&&null!==this.user}get isAdmin(){return null!==this.options&&null!==this.accessToken&&null!==this.user&&(this.user.username===this.options.owner||this.options.admins.includes(this.user.username))}get accessTokenKey(){return this.API?`Vssue.${this.API.platform.name.toLowerCase()}.access_token`:""}onQueryPerPageChange(){this.query.page=1,this.getComments()}onQueryChange(){this.getComments()}setOptions(e){this.options=Object.assign({labels:["Vssue"],state:"Vssue",prefix:"[Vssue]",admins:[],perPage:10,proxy:e=>`https://cors-anywhere.azm.workers.dev/${e}`,issueContent:({url:e})=>e,autoCreateIssue:!1},e);const t=["api","owner","repo","clientId"];for(const e of t)this.options[e]||console.warn(`[Vssue] the option '${e}' is required`);if(this.options.locale)this.$i18n.locale=this.options.locale;else{const e=Object.keys(this.$i18n.messages),t=window.navigator.languages;this.$i18n.locale=t.filter(t=>e.includes(t)).shift()||"en"}}async init(){try{await this.initStore(),await this.initComments()}catch(e){e.response&&[401,403].includes(e.response.status)?this.isLoginRequired=!0:this.isFailed=!0,console.error(e)}}async initStore(){try{if(!this.options)throw new Error("Options are required to initialize Vssue");this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:this.options.perPage,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1;const e=this.options.api;this.API=new e({baseURL:this.options.baseURL,labels:this.options.labels,state:this.options.state,owner:this.options.owner,repo:this.options.repo,clientId:this.options.clientId,clientSecret:this.options.clientSecret,proxy:this.options.proxy}),await this.handleAuth()}finally{this.isInitializing=!1}}async initComments(){if(this.API&&this.options)if(this.issueId){const[e,t]=await Promise.all([this.API.getIssue({accessToken:this.accessToken,issueId:this.issueId}),this.API.getComments({accessToken:this.accessToken,issueId:this.issueId,query:this.query})]);this.issue=e,this.comments=t}else this.issue=await this.API.getIssue({accessToken:this.accessToken,issueTitle:this.issueTitle}),null===this.issue?(this.isIssueNotCreated=!0,this.options.autoCreateIssue&&await this.postIssue()):await this.getComments()}async postIssue(){if(this.API&&this.options&&!this.issue&&!this.issueId&&(this.isLogined||this.login(),this.isAdmin))try{this.isCreatingIssue=!0;const e=await this.API.postIssue({title:this.issueTitle,content:await this.options.issueContent({options:this.options,url:qe(window.location.href)}),accessToken:this.accessToken});this.issue=e,this.isIssueNotCreated=!1,await this.getComments()}catch(e){this.isFailed=!0}finally{this.isCreatingIssue=!1}}async getComments(){try{if(!this.API||!this.issue||this.isLoadingComments)return;this.isLoadingComments=!0;const e=await this.API.getComments({accessToken:this.accessToken,issueId:this.issue.id,query:this.query});return this.comments=e,this.query.page!==e.page&&(this.query.page=e.page),this.query.perPage!==e.perPage&&(this.query.perPage=e.perPage),e}catch(e){if(!e.response||![401,403].includes(e.response.status)||this.isLogined)throw this.$emit("error",e),e;this.isLoginRequired=!0}finally{this.isLoadingComments=!1}}async postComment({content:e}){try{if(!this.API||!this.issue||this.isCreatingComment)return;return this.isCreatingComment=!0,await this.API.postComment({accessToken:this.accessToken,content:e,issueId:this.issue.id})}catch(e){throw this.$emit("error",e),e}finally{this.isCreatingComment=!1}}async putComment({commentId:e,content:t}){try{if(!this.API||!this.issue)return;return await this.API.putComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,content:t})}catch(e){throw this.$emit("error",e),e}}async deleteComment({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.deleteComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async getCommentReactions({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.getCommentReactions({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async postCommentReaction({commentId:e,reaction:t}){try{if(!this.API||!this.issue)return!1;return await this.API.postCommentReaction({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,reaction:t})}catch(e){throw this.$emit("error",e),e}}login(){this.API&&this.API.redirectAuth()}logout(){this.setAccessToken(null),this.user=null}async handleAuth(){if(!this.API)return;const e=await this.API.handleAuth();e?(this.setAccessToken(e),this.user=await this.API.getUser({accessToken:e})):this.getAccessToken()?this.user=await this.API.getUser({accessToken:this.accessToken}):(this.setAccessToken(null),this.user=null)}getAccessToken(){return this.accessToken=window.localStorage.getItem(this.accessTokenKey),this.accessToken}setAccessToken(e){null===e?window.localStorage.removeItem(this.accessTokenKey):window.localStorage.setItem(this.accessTokenKey,e),this.accessToken=e}};t([h("query.perPage")],hn.prototype,"onQueryPerPageChange",null),t([h("query.page"),h("query.sort")],hn.prototype,"onQueryChange",null),hn=t([u({i18n:pn})],hn);var mn=hn;let fn=class extends e{constructor(){super(...arguments),this.vssue=new mn}onOptionsChange(e){this.vssue.setOptions(e)}mounted(){null!==this.title&&(this.vssue.title=this.title),null!==this.issueId&&(this.vssue.issueId=this.issueId),this.vssue.setOptions(this.options),this.vssue.init()}};var vn;t([p({type:[String,Function],required:!1,default:null})],fn.prototype,"title",void 0),t([p({type:[String,Number],required:!1,default:null})],fn.prototype,"issueId",void 0),t([p({type:Object,required:!1,default:()=>({})})],fn.prototype,"options",void 0),t([(vn="vssue",i((function(e,t){var n=e.provide;if("function"!=typeof n||!n.managed){var s=e.provide;(n=e.provide=function(){var e=Object.create(("function"==typeof s?s.call(this):s)||null);for(var t in n.managed)e[n.managed[t]]=this[t];return e}).managed={}}n.managed[t]=vn||t})))],fn.prototype,"vssue",void 0),t([h("options",{deep:!0})],fn.prototype,"onOptionsChange",null),fn=t([u({components:{Iconfont:v,VssueBody:st,VssueHeader:it}})],fn);const gn=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue"},[t("Iconfont"),this._v(" "),t("VssueHeader"),this._v(" "),t("VssueBody")],1)},staticRenderFns:[]},void 0,fn,void 0,!1,void 0,!1,void 0,void 0,void 0),yn={get version(){return"1.4.8"},installed:!1,install(e,t){if(this.installed)return!1;this.installed=!0,e.component("Vssue",{functional:!0,props:{title:{type:String,required:!1,default:void 0},issueId:{type:[Number,String],required:!1,default:void 0},options:{type:Object,required:!1,default:void 0}},render:(e,{data:n,props:s})=>e(gn,Object.assign(Object.assign({},n),{props:{title:s.title,issueId:s.issueId,options:Object.assign({},t,s.options)}}))})},VssueComponent:gn};var bn=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([n]):r[t]?r[t]+", "+n:n}})),r):r}(i.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};!function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(Rn("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,r),i=null}},i.onabort=function(){i&&(n(Rn("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Rn("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Rn(t,e,"ECONNABORTED",i)),i=null},Mn.isStandardBrowserEnv()){var d=(e.withCredentials||En(l))&&e.xsrfCookieName?jn.read(e.xsrfCookieName):void 0;d&&(r[e.xsrfHeaderName]=d)}if("setRequestHeader"in i&&Mn.forEach(r,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete r[t]:i.setRequestHeader(t,e)})),Mn.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),s||(s=null),i.send(s)}))},zn={"Content-Type":"application/x-www-form-urlencoded"};function qn(e,t){!Mn.isUndefined(e)&&Mn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Hn,Vn={adapter:("undefined"!=typeof XMLHttpRequest?Hn=Nn:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Hn=Nn),Hn),transformRequest:[function(e,t){return Sn(t,"Accept"),Sn(t,"Content-Type"),Mn.isFormData(e)||Mn.isArrayBuffer(e)||Mn.isBuffer(e)||Mn.isStream(e)||Mn.isFile(e)||Mn.isBlob(e)?e:Mn.isArrayBufferView(e)?e.buffer:Mn.isURLSearchParams(e)?(qn(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Mn.isObject(e)?(qn(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Vn.headers={common:{Accept:"application/json, text/plain, */*"}},Mn.forEach(["delete","get","head"],(function(e){Vn.headers[e]={}})),Mn.forEach(["post","put","patch"],(function(e){Vn.headers[e]=Mn.merge(zn)}));var Un=Vn;function Bn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Wn=function(e){return Bn(e),e.headers=e.headers||{},e.data=An(e.data,e.headers,e.transformRequest),e.headers=Mn.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Mn.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Un.adapter)(e).then((function(t){return Bn(e),t.data=An(t.data,t.headers,e.transformResponse),t}),(function(t){return Fn(t)||(Bn(e),t&&t.response&&(t.response.data=An(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Yn=function(e,t){t=t||{};var n={},s=["url","method","data"],r=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function a(e,t){return Mn.isPlainObject(e)&&Mn.isPlainObject(t)?Mn.merge(e,t):Mn.isPlainObject(t)?Mn.merge({},t):Mn.isArray(t)?t.slice():t}function c(s){Mn.isUndefined(t[s])?Mn.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(e[s],t[s])}Mn.forEach(s,(function(e){Mn.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),Mn.forEach(r,c),Mn.forEach(i,(function(s){Mn.isUndefined(t[s])?Mn.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(void 0,t[s])})),Mn.forEach(o,(function(s){s in t?n[s]=a(e[s],t[s]):s in e&&(n[s]=a(void 0,e[s]))}));var u=s.concat(r).concat(i).concat(o),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return Mn.forEach(l,c),n};function Gn(e){this.defaults=e,this.interceptors={request:new Dn,response:new Dn}}Gn.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Yn(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Wn,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Gn.prototype.getUri=function(e){return e=Yn(this.defaults,e),Pn(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Mn.forEach(["delete","get","head","options"],(function(e){Gn.prototype[e]=function(t,n){return this.request(Yn(n||{},{method:e,url:t,data:(n||{}).data}))}})),Mn.forEach(["post","put","patch"],(function(e){Gn.prototype[e]=function(t,n,s){return this.request(Yn(s||{},{method:e,url:t,data:n}))}}));var Qn=Gn;function Jn(e){this.message=e}Jn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Jn.prototype.__CANCEL__=!0;var Xn=Jn;function Kn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Xn(e),t(n.reason))}))}Kn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Kn.source=function(){var e;return{token:new Kn((function(t){e=t})),cancel:e}};var Zn=Kn;function es(e){var t=new Qn(e),n=bn(Qn.prototype.request,t);return Mn.extend(n,Qn.prototype,t),Mn.extend(n,t),n}var ts=es(Un);ts.Axios=Qn,ts.create=function(e){return es(Yn(ts.defaults,e))},ts.Cancel=Xn,ts.CancelToken=Zn,ts.isCancel=Fn,ts.all=function(e){return Promise.all(e)},ts.spread=function(e){return function(t){return e.apply(null,t)}},ts.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var ns=ts,ss=ts;ns.default=ss;var rs=ns;function is(e){return{username:e.nickname,avatar:e.links.avatar.href,homepage:e.links.html.href}}function os(e){return{id:e.id,title:e.title,content:e.content.raw,link:e.links.html.href}}function as(e){return{id:e.id,content:e.content.html,contentRaw:e.content.raw,author:is(e.user),createdAt:e.created_on,updatedAt:e.updated_on,reactions:null}}class cs{constructor({baseURL:e="https://bitbucket.org",owner:t,repo:n,clientId:s,state:r}){this.baseURL=e,this.owner=t,this.repo=n,this.clientId=s,this.state=r,this.$http=rs.create({baseURL:"https://api.bitbucket.org/2.0",headers:{Accept:"application/json"}})}get platform(){return{name:"Bitbucket",link:this.baseURL,version:"v2",meta:{reactable:!1,sortable:!0}}}redirectAuth(){window.location.href=B(W(this.baseURL,"site/oauth2/authorize"),{client_id:this.clientId,redirect_uri:window.location.href,response_type:"token",state:this.state})}async handleAuth(){const e=He(window.location.hash.slice(1));if(!e.access_token||e.state!==this.state)return null;const t=e.access_token;delete e.access_token,delete e.token_type,delete e.expires_in,delete e.state,delete e.scopes;const n=U(e),s=n?`#${n}`:"",r=`${qe(window.location.href)}${window.location.search}${s}`;return window.history.replaceState(null,"",r),t}async getUser({accessToken:e}){const{data:t}=await this.$http.get("user",{headers:{Authorization:`Bearer ${e}`}});return is(t)}async getIssue({accessToken:e,issueId:t,issueTitle:n}){const s={};if(e&&(s.headers={Authorization:`Bearer ${e}`}),!t){s.params={sort:"created_on",q:`title="${n}"`,timestamp:Date.now()};const{data:e}=await this.$http.get(`repositories/${this.owner}/${this.repo}/issues`,s);return e.size>0?os(e.values[0]):null}try{s.params={timestamp:Date.now()};const{data:e}=await this.$http.get(`repositories/${this.owner}/${this.repo}/issues/${t}`,s);return os(e)}catch(e){if(e.response&&404===e.response.status)return null;throw e}}async postIssue({accessToken:e,title:t,content:n}){const{data:s}=await this.$http.post(`repositories/${this.owner}/${this.repo}/issues`,{title:t,content:{raw:n},priority:"trivial",kind:"task"},{headers:{Authorization:`Bearer ${e}`}});return s.links.html={href:W(this.baseURL,`${this.owner}/${this.repo}/issues/${s.id}`)},os(s)}async getComments({accessToken:e,issueId:t,query:{page:n=1,perPage:s=10,sort:r="desc"}={}}){const i={params:{page:n,pagelen:s,sort:"desc"===r?"-created_on":"created_on",timestamp:Date.now()}};e&&(i.headers={Authorization:`Bearer ${e}`});const{data:o}=await this.$http.get(`repositories/${this.owner}/${this.repo}/issues/${t}/comments`,i);return{count:o.size,page:o.page,perPage:o.pagelen,data:o.values.filter(e=>null!==e.content.raw).map(as)}}async postComment({accessToken:e,issueId:t,content:n}){const{data:s}=await this.$http.post(`repositories/${this.owner}/${this.repo}/issues/${t}/comments`,{content:{raw:n}},{headers:{Authorization:`Bearer ${e}`}});return as(s)}async putComment({accessToken:e,issueId:t,commentId:n,content:s}){const{data:r}=await this.$http.put(`repositories/${this.owner}/${this.repo}/issues/${t}/comments/${n}`,{content:{raw:s}},{headers:{Authorization:`Bearer ${e}`}});return as(r)}async deleteComment({accessToken:e,issueId:t,commentId:n}){const{status:s}=await this.$http.delete(`repositories/${this.owner}/${this.repo}/issues/${t}/comments/${n}`,{headers:{Authorization:`Bearer ${e}`}});return 204===s}async getCommentReactions(e){throw new Error("501 Not Implemented")}async postCommentReaction(e){throw new Error("501 Not Implemented")}}"undefined"!=typeof window&&window.Vue&&window.Vue.use(yn,{api:cs})}(Vue); \ No newline at end of file diff --git a/assets/lib/vssue/vssue.gitea.min.js b/assets/lib/vssue/vssue.gitea.min.js new file mode 100644 index 000000000..d3dd1e787 --- /dev/null +++ b/assets/lib/vssue/vssue.gitea.min.js @@ -0,0 +1,30 @@ +/*! + * vssue - A vue-powered issue-based comment plugin + * + * @version v1.4.8 + * @link https://vssue.js.org + * @license MIT + * @copyright 2018-2021 meteorlxy + */ +!function(e){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ +function t(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}e=e&&e.hasOwnProperty("default")?e.default:e;var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(s){var r=n?Reflect.getOwnMetadata(s,t,n):Reflect.getOwnMetadata(s,t);n?Reflect.defineMetadata(s,r,e,n):Reflect.defineMetadata(s,r,e)}))}var r={__proto__:[]}instanceof Array;function i(e){return function(t,n,s){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof s&&(s=void 0),r.__decorators__.push((function(t){return e(t,n,s)}))}}var o=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function a(t,i){void 0===i&&(i={}),i.name=i.name||t._componentTag||t.name;var a=t.prototype;Object.getOwnPropertyNames(a).forEach((function(e){if("constructor"!==e)if(o.indexOf(e)>-1)i[e]=a[e];else{var t=Object.getOwnPropertyDescriptor(a,e);void 0!==t.value?"function"==typeof t.value?(i.methods||(i.methods={}))[e]=t.value:(i.mixins||(i.mixins=[])).push({data:function(){var n;return(n={})[e]=t.value,n}}):(t.get||t.set)&&((i.computed||(i.computed={}))[e]={get:t.get,set:t.set})}})),(i.mixins||(i.mixins=[])).push({data:function(){return function(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var s in e.$options.props)e.hasOwnProperty(s)||n.push(s);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var s=new t;t.prototype._init=n;var r={};return Object.keys(s).forEach((function(e){void 0!==s[e]&&(r[e]=s[e])})),r}(this,t)}});var u=t.__decorators__;u&&(u.forEach((function(e){return e(i)})),delete t.__decorators__);var l,d,h=Object.getPrototypeOf(t.prototype),p=h instanceof e?h.constructor:e,m=p.extend(i);return function(e,t,n){Object.getOwnPropertyNames(t).forEach((function(s){if(!c[s]){var i=Object.getOwnPropertyDescriptor(e,s);if(!i||i.configurable){var o,a,u=Object.getOwnPropertyDescriptor(t,s);if(!r){if("cid"===s)return;var l=Object.getOwnPropertyDescriptor(n,s);if(o=u.value,a=typeof o,null!=o&&("object"===a||"function"===a)&&l&&l.value===u.value)return}Object.defineProperty(e,s,u)}}}))}(m,t,p),n&&(s(l=m,d=t),Object.getOwnPropertyNames(d.prototype).forEach((function(e){s(l.prototype,d.prototype,e)})),Object.getOwnPropertyNames(d).forEach((function(e){s(l,d,e)}))),m}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function u(e){return"function"==typeof e?a(e):function(t){return a(t,e)}}function l(e){return i((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}u.registerHooks=function(e){o.push.apply(o,e)};var d="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function h(e){return void 0===e&&(e={}),function(t,n){!function(e,t,n){d&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,n)))}(e,t,n),i((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function p(e,t){void 0===t&&(t={});var n=t.deep,s=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return i((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:s,immediate:o})}))}var m=e.extend({name:"Iconfont"});function f(e,t,n,s,r,i,o,a,c,u){"boolean"!=typeof o&&(c=a,a=o,o=!1);const l="function"==typeof n?n.options:n;let d;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),s&&(l._scopeId=s),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):t&&(d=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(l.functional){const e=l.render;l.render=function(t,n){return d.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const v=f({render:function(e,t){var n=t._c;return n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("symbol",{attrs:{id:"vssue-icon-bitbucket",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M579.5522464 489.45249493q4.8371808 38.38537173-30.81752427 61.55702827t-67.95459093 3.66689493q-23.79580907-10.37653333-32.6119616-35.34262826t-0.31207573-50.01020907 31.67573333-35.34262827q21.92335253-11.00068587 44.1587808-7.33379093t39.00952427 21.61127573 16.77409493 41.1160384zM647.19476053 476.65737173q-8.50407573-65.22392427-68.8908192-99.9424t-120.07131413-7.9579424q-38.38537173 17.08617173-61.24495253 53.9111616t-21.0651424 78.95527574q2.41859093 55.4715424 47.20152426 94.48106666t100.87862827 34.1723424q55.4715424-4.8371808 92.60860907-51.18049493t30.50544746-102.43900907zM792.93434133 146.32472427q-12.17097173-16.4620192-34.1723424-27.15062827t-35.34262826-13.41927573-43.30057174-7.64586667q-177.33729493-28.63299093-345.00022826 1.24830507-26.2144 4.29104747-40.25782827 7.33379093t-33.54819093 13.41927573-30.50544747 26.2144q18.2564576 17.08617173 46.34331413 27.6967616t44.78293334 13.41927574 53.36502826 7.02171413q138.95192427 17.71032427 273.06666667 0.62415253 38.38537173-4.8371808 54.53531413-7.33379093t44.1587808-13.1072 45.7191616-28.32091413zM827.65281813 777.10872427q-4.8371808 15.83786667-9.44030506 46.65539093t-8.50407574 51.18049493-17.39824746 42.6764192-35.34262827 34.4064q-52.4288 29.2571424-115.46819093 43.61264747t-123.1140576 13.41927573-122.8019808-11.3127616q-28.0088384-4.8371808-49.69813334-11.00068586t-46.65539093-16.4620192-44.4708576-26.52647574-31.67573333-37.4491424q-15.21371413-58.51428587-34.71847574-177.96144746l3.66689494-9.7523808 11.00068586-5.46133334q135.9091808 90.1900192 308.72137174 90.1900192t309.34552426-90.1900192q12.79512427 3.66689493 14.5895616 14.04342827t-3.0427424 27.46270507-4.8371808 22.54750506zM937.97175147 191.41973333q-15.83786667 101.8148576-67.64251414 399.22346667-3.0427424 18.2564576-16.4620192 34.1723424t-26.52647573 24.3419424-33.23611413 18.88060907q-153.61950507 76.7707424-371.8387808 53.67710506-151.12289493-16.4620192-240.14262827-84.72868586-9.12822827-7.33379093-15.52579093-16.1499424t-10.37653334-21.2992-5.46133333-20.75306667-3.66689493-24.10788587-3.3548192-21.2992q-5.46133333-30.50544747-16.1499424-91.43832426t-17.08617174-98.4600384-14.35550506-89.8779424-13.41927574-96.27550507q1.7944384-15.83786667 10.68860907-29.5692192t19.19268587-22.8595808 27.46270506-18.2564576 28.0088384-13.73135253 29.2571424-11.3127616q76.22460907-28.0088384 190.75657174-39.00952427 231.0144-22.54750507 412.01859093 30.50544747 94.48106667 28.0088384 131.072 74.35215253 9.7523808 12.17097173 10.0644576 31.0515808t-3.3548192 32.9240384z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitea",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M184.31868985 236.10860742C106.94832667 235.94086648 3.32655508 285.13080468 9.02973665 408.46209936c8.93218827 192.65010787 206.32096845 210.5144844 285.20099725 212.06608453 8.63864186 36.14810496 101.48307766 160.77938883 170.21479898 167.32127321h301.09442177c180.57278288-11.99345499 315.77172611-546.07960359 215.54670217-548.09249109-165.7696721 7.79993906-264.02374305 11.74184405-348.27147151 12.41280591v166.69224585l-26.25140843-11.61603761-0.16773997-154.99233728c-96.70246985-0.04193548-181.83083757-4.52899687-343.4069947-12.49667687-20.21274496-0.12580547-48.39316992-3.5644886-78.67035236-3.64835859z m10.94507577 68.14462849h9.22573371c10.98701124 98.75729283 28.85138778 156.50200291 64.99949274 244.73357185-92.25734394-10.90314029-170.75995634-37.69970509-185.18564974-137.75698809-7.46445813-51.78991757 17.69663558-105.84433456 110.96042329-107.01851827z m358.83913087 97.07988723c6.29027343 0.08386999 12.70635233 1.25805468 18.74501482 4.02577499l31.40943263 13.54505513-22.51917887 41.05451824a28.18042496 25.03528825 0 0 0-10.10637297 1.59353561 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 4.69673781 7.29671718l-38.83195528 70.70267333a28.18042496 25.03528825 0 0 0-9.30960467 1.59353659 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 36.06423497 15.09665623 28.18042496 25.03528825 0 0 0 16.94180276-32.08039449 28.18042496 25.03528825 0 0 0-6.62575434-9.22573468l37.82551056-68.85752581a28.18042496 25.03528825 0 0 0 12.28700044-1.25805469 28.18042496 25.03528825 0 0 0 8.93218826-4.69673783c14.59343435 6.12253248 26.54495386 11.11281671 35.14166122 15.34826717 12.91602778 6.37414341 17.48696012 10.60959485 18.87082027 15.30633169 1.38386015 4.61286685-0.12580547 13.50312062-7.42252263 29.10299872-5.45157063 11.61603859-14.46762889 28.09655497-25.11915823 47.51253164a28.18042496 25.03528825 0 0 0-10.52572486 1.59353659 28.18042496 25.03528825 0 0 0-16.98373826 32.038459 28.18042496 25.03528825 0 0 0 36.06423498 15.09665623 28.18042496 25.03528825 0 0 0 16.94180278-32.03845901 28.18042496 25.03528825 0 0 0-5.74511608-8.47090188c10.52572388-19.20630122 19.58371762-35.72875308 25.41270465-48.14155897 7.88380904-16.85793279 11.99345499-29.39654416 8.38703091-41.51580463-3.60642311-12.11926046-14.67730434-20.0030695-29.35460966-27.25785217-9.6450856-4.73867233-21.68047607-9.77089106-36.06423399-15.80955357a28.18042496 25.03528825 0 0 0-1.59353562-10.022502 28.18042496 25.03528825 0 0 0-6.08059796-8.7644483l22.14176246-40.38355541 122.61839638 52.96410227c22.14176247 9.6031511 31.2836262 33.12877372 20.54822685 52.8382968l-84.28966393 154.32137544c-10.77733482 19.66758857-37.23841869 27.80300855-59.38018118 18.24179293l-173.48574115-74.98005927c-22.14176247-9.5612156-31.32556167-33.12877372-20.54822687-52.83829679l84.28966395-154.27943995c7.38058716-13.54505513 22.22563246-21.59660511 37.951317-22.22563246h2.68384935z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitee",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M978.404275 409.561604H455.061338c-25.117645 0-45.499734 20.382089-45.499734 45.499734l-0.031997 113.781333c0 25.117645 20.350092 45.499734 45.499734 45.531731h318.594132c25.117645 0 45.499734 20.382089 45.499734 45.499735v22.749867a136.5312 136.5312 0 0 1-136.5312 136.5312H250.248539a45.499734 45.499734 0 0 1-45.499734-45.499734V341.343999a136.5312 136.5312 0 0 1 136.5312-136.5312L978.308284 204.780802c25.117645 0 45.499734-20.350092 45.499734-45.467738L1023.904009 45.531731h0.031997A45.499734 45.499734 0 0 0 978.468269 0h-0.031997L341.343999 0.031997C152.84967 0.031997 0.031997 152.84967 0.031997 341.343999v637.092273c0 25.117645 20.382089 45.499734 45.499734 45.499734h671.233072a307.171203 307.171203 0 0 0 307.171203-307.171203v-261.671468c0-25.117645-20.382089-45.499734-45.499734-45.499734z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-github",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 20.4425c-278.334 0-504 225.6345-504 504 0 222.6735 144.4275 411.6105 344.673 478.233 25.2 4.662 34.461-10.9305 34.461-24.255 0-12.0015-0.4725-51.723-0.693-93.8385-140.238 30.492-169.8165-59.472-169.8165-59.472-22.932-58.2435-55.944-73.7415-55.944-73.7415-45.738-31.2795 3.465-30.6495 3.465-30.6495 50.589 3.5595 77.238 51.9435 77.238 51.9435 44.9505 77.049 117.9045 54.7785 146.664 41.895 4.5045-32.571 17.577-54.81 32.004-67.41-111.951-12.726-229.635-55.9755-229.635-249.0705 0-55.0305 19.6875-99.981 51.9435-135.2925-5.229-12.6945-22.491-63.945 4.8825-133.371 0 0 42.336-13.545 138.6315 51.66 40.194-11.1825 83.3175-16.758 126.1575-16.9785 42.8085 0.189 85.9635 5.796 126.252 16.9785 96.201-65.205 138.4425-51.66 138.4425-51.66 27.4365 69.426 10.1745 120.6765 4.9455 133.371 32.319 35.28 51.8805 80.262 51.8805 135.2925 0 193.5675-117.9045 236.187-230.139 248.6925 18.081 15.6555 34.1775 46.305 34.1775 93.3345 0 67.4415-0.5985 121.716-0.5985 138.3165 0 13.419 9.072 29.1375 34.6185 24.192 200.151-66.717 344.3895-255.5595 344.3895-478.17 0-278.3655-225.666-504-504-504z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitlab",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M66.61375986 405.11600042L512.11376028 976.03999972 23.84576 621.65599958a39.312 39.312 0 0 1-14.07600042-43.30799944l56.8080007-173.26800028z m259.88400014 0h371.26800014L512.14975986 976.03999972zM215.11376 60.88400042l111.384 344.232H66.61375986l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z m742.49999972 344.232l56.8080007 173.2679993a39.23999986 39.23999986 0 0 1-14.07600042 43.30800042l-488.26800028 354.38400014 445.50000042-570.92400028z m0 0h-259.88400014l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-loading",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M843.307 742.24c0 3.217 2.607 5.824 5.824 5.824s5.824-2.607 5.824-5.824a5.823 5.823 0 0 0-5.824-5.824 5.823 5.823 0 0 0-5.824 5.824zM714.731 874.912c0 6.398 5.186 11.584 11.584 11.584s11.584-5.186 11.584-11.584-5.186-11.584-11.584-11.584-11.584 5.186-11.584 11.584zM541.419 943.2c0 9.614 7.794 17.408 17.408 17.408s17.408-7.794 17.408-17.408-7.794-17.408-17.408-17.408-17.408 7.794-17.408 17.408z m-186.56-9.152c0 12.795 10.373 23.168 23.168 23.168s23.168-10.373 23.168-23.168-10.373-23.168-23.168-23.168-23.168 10.373-23.168 23.168zM189.355 849.12c0 16.012 12.98 28.992 28.992 28.992s28.992-12.98 28.992-28.992-12.98-28.992-28.992-28.992-28.992 12.98-28.992 28.992zM74.731 704.736c0 19.228 15.588 34.816 34.816 34.816s34.816-15.588 34.816-34.816-15.588-34.816-34.816-34.816-34.816 15.588-34.816 34.816z m-43.008-177.28c0 22.41 18.166 40.576 40.576 40.576s40.576-18.166 40.576-40.576-18.166-40.576-40.576-40.576-40.576 18.166-40.576 40.576z m35.392-176.128c0 25.626 20.774 46.4 46.4 46.4s46.4-20.774 46.4-46.4c0-25.626-20.774-46.4-46.4-46.4-25.626 0-46.4 20.774-46.4 46.4z m106.176-142.016c0 28.843 23.381 52.224 52.224 52.224s52.224-23.381 52.224-52.224c0-28.843-23.381-52.224-52.224-52.224-28.843 0-52.224 23.381-52.224 52.224z m155.904-81.344c0 32.024 25.96 57.984 57.984 57.984s57.984-25.96 57.984-57.984-25.96-57.984-57.984-57.984-57.984 25.96-57.984 57.984z m175.104-5.056c0 35.24 28.568 63.808 63.808 63.808s63.808-28.568 63.808-63.808c0-35.24-28.568-63.808-63.808-63.808-35.24 0-63.808 28.568-63.808 63.808z m160.32 72.128c0 38.421 31.147 69.568 69.568 69.568s69.568-31.147 69.568-69.568-31.147-69.568-69.568-69.568-69.568 31.147-69.568 69.568z m113.92 135.488c0 41.638 33.754 75.392 75.392 75.392s75.392-33.754 75.392-75.392-33.754-75.392-75.392-75.392-75.392 33.754-75.392 75.392z m45.312 175.488c0 44.854 36.362 81.216 81.216 81.216s81.216-36.362 81.216-81.216c0-44.854-36.362-81.216-81.216-81.216-44.854 0-81.216 36.362-81.216 81.216z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-like",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4-20.5-21.5-48.1-33.4-77.9-33.4-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-0.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81z m636.4-353l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5c5.2-18.9 22.5-32.2 42.2-32.3 7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-unlike",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4-8.3-3.6-17.2-5.4-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81z m627.2 160.4H496.8l9.6 198.4c0.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7-19.6-0.1-36.9-13.4-42.2-32.3L329 459.2V172h415.4c20.4 9.2 33.6 29.4 33.6 51.8 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 19.1-11 37.5-28.8 48.4z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-heart",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-edit",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M723.2 917.76H286.72c-65.28 0-118.4-51.2-118.4-113.92V261.76C168.32 198.4 221.44 147.2 286.72 147.2h375.04c17.92 0 32 14.08 32 32s-14.08 32-32 32H286.72c-30.08 0-54.4 22.4-54.4 49.92v542.08c0 27.52 24.32 49.92 54.4 49.92H723.2c30.08 0 54.4-22.4 54.4-49.92V440.32c0-17.92 14.08-32 32-32s32 14.08 32 32v363.52c0 62.72-53.12 113.92-118.4 113.92z"}}),t._v(" "),n("path",{attrs:{d:"M499.84 602.24c-7.68 0-14.72-2.56-21.12-7.68-13.44-11.52-14.72-32-3.2-45.44L780.16 198.4c11.52-13.44 32-14.72 45.44-3.2s14.72 32 3.2 45.44L524.16 591.36c-6.4 7.04-15.36 10.88-24.32 10.88z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-delete",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M677.647059 256l0-90.352941c0-37.436235-23.461647-60.235294-61.771294-60.235294L408.094118 105.411765c-38.249412 0-61.741176 22.799059-61.741176 60.235294l0 90.352941-180.705882 0 0 60.235294 60.235294 0 0 512c0 54.272 33.972706 90.352941 90.352941 90.352941l391.529412 0c55.085176 0 90.352941-33.490824 90.352941-90.352941l0-512 60.235294 0 0-60.235294L677.647059 256zM406.588235 165.647059l210.823529 0-1.264941 90.352941L406.588235 256 406.588235 165.647059zM737.882353 858.352941l-451.764706 0 0-542.117647 451.764706 0L737.882353 858.352941zM466.823529 376.470588l-58.729412 0-1.505882 391.529412 60.235294 0L466.823529 376.470588zM617.411765 376.470588l-60.235294 0 0 391.529412 60.235294 0L617.411765 376.470588z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-reply",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M426.666667 384 426.666667 213.333333 128 512 426.666667 810.666667 426.666667 635.733333C640 635.733333 789.333333 704 896 853.333333 853.333333 640 725.333333 426.666667 426.666667 384Z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-error",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 720m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z"}}),t._v(" "),n("path",{attrs:{d:"M480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"}}),t._v(" "),n("path",{attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48z m-783.5-27.9L512 239.9l339.8 588.2H172.2z"}})])])},staticRenderFns:[]},void 0,m,void 0,!0,void 0,!1,void 0,void 0,void 0);const g=f({},void 0,e.extend({name:"TransitionFade",functional:!0,props:{group:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}},render:(e,{props:t,children:n})=>e(t.group?"TransitionGroup":"Transition",{props:{name:"fade",mode:"out-in",appear:!0,tag:t.tag}},n)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);const y=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{name:{type:String,required:!0},title:{type:String,required:!1,default:null}},render:(e,{props:t,data:n})=>e("svg",Object.assign(Object.assign({},n),{class:["vssue-icon",`vssue-icon-${t.name}`],attrs:{"aria-hidden":"true"}}),[e("title",t.title),e("use",{attrs:{"xlink:href":`#vssue-icon-${t.name}`}})])}),void 0,void 0,void 0,!1,void 0,void 0,void 0);var b=Object.prototype.hasOwnProperty,w=Array.isArray,_=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),C=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},s=0;s1;){var t=e.pop(),n=t.obj[t.prop];if(w(n)){for(var s=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=s.charAt(i):o<128?r+=_[o]:o<2048?r+=_[192|o>>6]+_[128|63&o]:o<55296||o>=57344?r+=_[224|o>>12]+_[128|o>>6&63]+_[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&s.charCodeAt(i)),r+=_[240|o>>18]+_[128|o>>12&63]+_[128|o>>6&63]+_[128|63&o])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n){if(w(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!b.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return w(t)&&!w(n)&&(r=C(t,s)),w(t)&&w(n)?(n.forEach((function(n,r){if(b.call(t,r)){var i=t[r];i&&"object"==typeof i&&n&&"object"==typeof n?t[r]=e(i,n,s):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var i=n[r];return b.call(t,r)?t[r]=e(t[r],i,s):t[r]=i,t}),r)}},$=String.prototype.replace,x=/%20/g,I={RFC1738:"RFC1738",RFC3986:"RFC3986"},T=k.assign({default:I.RFC3986,formatters:{RFC1738:function(e){return $.call(e,x,"+")},RFC3986:function(e){return String(e)}}},I),M=Object.prototype.hasOwnProperty,P={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},O=Array.isArray,A=Array.prototype.push,D=function(e,t){A.apply(e,O(t)?t:[t])},R=Date.prototype.toISOString,F=T.default,S={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:k.encode,encodeValuesOnly:!1,format:F,formatter:T.formatters[F],indices:!1,serializeDate:function(e){return R.call(e)},skipNulls:!1,strictNullHandling:!1},j=function e(t,n,s,r,i,o,a,c,u,l,d,h,p){var m,f=t;if("function"==typeof a?f=a(n,f):f instanceof Date?f=l(f):"comma"===s&&O(f)&&(f=f.join(",")),null===f){if(r)return o&&!h?o(n,S.encoder,p,"key"):n;f=""}if("string"==typeof(m=f)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||k.isBuffer(f))return o?[d(h?n:o(n,S.encoder,p,"key"))+"="+d(o(f,S.encoder,p,"value"))]:[d(n)+"="+d(String(f))];var v,g=[];if(void 0===f)return g;if(O(a))v=a;else{var y=Object.keys(f);v=c?y.sort(c):y}for(var b=0;b0&&/(\[[^[\]]*])/.exec(s),o=i?s.slice(0,i.index):s,a=[];if(o){if(!n.plainObjects&&L.call(Object.prototype,o)&&!n.allowPrototypes)return;a.push(o)}for(var c=0;n.depth>0&&null!==(i=r.exec(s))&&c=0;--r){var i,o=e[r];if("[]"===o&&n.parseArrays)i=[].concat(s);else{i=n.plainObjects?Object.create(null):{};var a="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&o!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=s:i[a]=s:i={0:s}}s=i}return s}(a,t,n)}},H=function(e,t){var n=function(e){if(!e)return N;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?N.charset:e.charset;return{allowDots:void 0===e.allowDots?N.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:N.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:N.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:N.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:N.comma,decoder:"function"==typeof e.decoder?e.decoder:N.decoder,delimiter:"string"==typeof e.delimiter||k.isRegExp(e.delimiter)?e.delimiter:N.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:N.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:N.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:N.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:N.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:N.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,s={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(l=l.split(",")),d.indexOf("[]=")>-1&&(l=E(l)?[l]:l),L.call(s,u)?s[u]=k.combine(s[u],l):s[u]=l}return s}(e,n):e,r=n.plainObjects?Object.create(null):{},i=Object.keys(s),o=0;o0?d+l:""};const V=(e,t)=>{return`${e}${U(t,{addQueryPrefix:!0})}`},B=(e,t)=>{return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`};var W=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4};var Y=function(e){return e instanceof Date},G=36e5,Q=6e4,J=2,X=/[T ]/,K=/:/,Z=/^(\d{2})$/,ee=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],te=/^(\d{4})/,ne=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],se=/^-(\d{2})$/,re=/^-?(\d{3})$/,ie=/^-?(\d{2})-?(\d{2})$/,oe=/^-?W(\d{2})$/,ae=/^-?W(\d{2})-?(\d{1})$/,ce=/^(\d{2}([.,]\d*)?)$/,ue=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,le=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,de=/([Z+-].*)$/,he=/^(Z)$/,pe=/^([+-])(\d{2})$/,me=/^([+-])(\d{2}):?(\d{2})$/;function fe(e,t,n){t=t||0,n=n||0;var s=new Date(0);s.setUTCFullYear(e,0,4);var r=7*t+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+r),s}var ve=function(e,t){if(Y(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?J:Number(n);var s=function(e){var t,n={},s=e.split(X);K.test(s[0])?(n.date=null,t=s[0]):(n.date=s[0],t=s[1]);if(t){var r=de.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e),r=function(e,t){var n,s=ee[t],r=ne[t];if(n=te.exec(e)||r.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=Z.exec(e)||s.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(s.date,n),i=r.year,o=function(e,t){if(null===t)return null;var n,s,r,i;if(0===e.length)return(s=new Date(0)).setUTCFullYear(t),s;if(n=se.exec(e))return s=new Date(0),r=parseInt(n[1],10)-1,s.setUTCFullYear(t,r),s;if(n=re.exec(e)){s=new Date(0);var o=parseInt(n[1],10);return s.setUTCFullYear(t,0,o),s}if(n=ie.exec(e)){s=new Date(0),r=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return s.setUTCFullYear(t,r,a),s}if(n=oe.exec(e))return i=parseInt(n[1],10)-1,fe(t,i);if(n=ae.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return fe(t,i,c)}return null}(r.restDateString,i);if(o){var a,c=o.getTime(),u=0;if(s.time&&(u=function(e){var t,n,s;if(t=ce.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*G;if(t=ue.exec(e))return n=parseInt(t[1],10),s=parseFloat(t[2].replace(",",".")),n%24*G+s*Q;if(t=le.exec(e)){n=parseInt(t[1],10),s=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return n%24*G+s*Q+1e3*r}return null}(s.time)),s.timezone)a=function(e){var t,n;if(t=he.exec(e))return 0;if(t=pe.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=me.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(s.timezone)*Q;else{var l=c+u,d=new Date(l);a=W(d);var h=new Date(l);h.setDate(d.getDate()+1);var p=W(h)-W(d);p>0&&(a+=p)}return new Date(c+u+a)}return new Date(e)};var ge=function(e){var t=ve(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var ye=function(e){var t=ve(e);return t.setHours(0,0,0,0),t},be=6e4,we=864e5;var _e=function(e,t){var n=ye(e),s=ye(t),r=n.getTime()-n.getTimezoneOffset()*be,i=s.getTime()-s.getTimezoneOffset()*be;return Math.round((r-i)/we)};var Ce=function(e){var t=ve(e);return _e(t,ge(t))+1};var ke=function(e,t){var n=t&&Number(t.weekStartsOn)||0,s=ve(e),r=s.getDay(),i=(r=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1};var Ie=function(e){var t=xe(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),$e(n)},Te=6048e5;var Me=function(e){var t=ve(e),n=$e(t).getTime()-Ie(t).getTime();return Math.round(n/Te)+1};var Pe=function(e){if(Y(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")};var Oe=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];var Ae=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var s=Oe.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+s.join("|")+"|.)","g")};var De=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["AM","PM"],o=["am","pm"],a=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return s[e.getDay()]},dddd:function(e){return r[e.getDay()]},A:function(e){return e.getHours()/12>=1?i[1]:i[0]},a:function(e){return e.getHours()/12>=1?o[1]:o[0]},aa:function(e){return e.getHours()/12>=1?a[1]:a[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){c[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:c,formattingTokensRegExp:Ae(c)}},Re={distanceInWords:function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,s){var r;return s=s||{},r="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),s.addSuffix?s.comparison>0?"in "+r:r+" ago":r}}}(),format:De()};var Fe={M:function(e){return e.getMonth()+1},MM:function(e){return Le(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return Le(e.getDate(),2)},DDD:function(e){return Ce(e)},DDDD:function(e){return Le(Ce(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Me(e)},WW:function(e){return Le(Me(e),2)},YY:function(e){return Le(e.getFullYear(),4).substr(2)},YYYY:function(e){return Le(e.getFullYear(),4)},GG:function(e){return String(xe(e)).substr(2)},GGGG:function(e){return xe(e)},H:function(e){return e.getHours()},HH:function(e){return Le(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return Le(Fe.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return Le(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Le(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Le(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Le(e.getMilliseconds(),3)},Z:function(e){return je(e.getTimezoneOffset(),":")},ZZ:function(e){return je(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function Se(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function je(e,t){t=t||"";var n=e>0?"-":"+",s=Math.abs(e),r=s%60;return n+Le(Math.floor(s/60),2)+t+Le(r,2)}function Le(e,t){for(var n=Math.abs(e).toString();n.length{return Ee(e,"YYYY-MM-DD HH:mm:ss")},ze=e=>{return(e.split("#")[0]||"").split("?")[0]||""},qe=e=>H(e,{ignoreQueryPrefix:!0});let He=class extends e{constructor(){super(...arguments),this.editMode=!1,this.editContent=this.comment.contentRaw,this.creatingReactions=[],this.isPutingComment=!1,this.isDeletingComment=!1}get currentUser(){return this.vssue.user?this.vssue.user.username:null}get content(){return this.comment.content}get author(){return this.comment.author}get createdAt(){return Ne(this.comment.createdAt)}get updatedAt(){return Ne(this.comment.updatedAt)}get showReactions(){return Boolean(this.vssue.API&&this.vssue.API.platform.meta.reactable&&this.comment.reactions&&!this.editMode)}get reactionKeys(){return["heart","like","unlike"]}get editContentRows(){return this.editContent.split("\n").length-1}get editInputRows(){return this.editContentRows<3?5:this.editContentRows+2}async postReaction({reaction:e}){try{if(this.creatingReactions.includes(e))return;this.creatingReactions.push(e),await this.vssue.postCommentReaction({commentId:this.comment.id,reaction:e})||this.vssue.$emit("error",new Error(this.vssue.$t("reactionGiven",{reaction:this.vssue.$t(e)})));const t=await this.vssue.getCommentReactions({commentId:this.comment.id});t&&(this.comment.reactions=t)}finally{this.creatingReactions.splice(this.creatingReactions.findIndex(t=>t===e),1)}}enterEdit(){this.editMode=!0,this.$nextTick(()=>{this.$refs.input.focus()})}resetEdit(){this.editMode=!1,this.editContent=this.comment.contentRaw}async putComment(){try{if(this.vssue.isPending)return;if(this.editContent!==this.comment.contentRaw){this.isPutingComment=!0,this.vssue.isUpdatingComment=!0;const e=await this.vssue.putComment({commentId:this.comment.id,content:this.editContent});e&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1,e)}this.editMode=!1}finally{this.isPutingComment=!1,this.vssue.isUpdatingComment=!1}}async deleteComment(){try{if(this.vssue.isPending)return;if(!window.confirm(this.vssue.$t("deleteConfirm")))return;this.isDeletingComment=!0,this.vssue.isUpdatingComment=!0,await this.vssue.deleteComment({commentId:this.comment.id})?(this.vssue.comments.count-=1,this.vssue.comments.data.length>1&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1),this.vssue.query.page>1&&this.vssue.query.page>Math.ceil(this.vssue.comments.count/this.vssue.query.perPage)?this.vssue.query.page-=1:await this.vssue.getComments()):this.vssue.$emit("error",new Error(this.vssue.$t("deleteFailed")))}finally{this.isDeletingComment=!1,this.vssue.isUpdatingComment=!1}}};t([h({type:Object,required:!0})],He.prototype,"comment",void 0),t([l()],He.prototype,"vssue",void 0),He=t([u({components:{VssueIcon:y}})],He);const Ue=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-comment",class:{"vssue-comment-edit-mode":e.editMode,"vssue-comment-disabled":e.isDeletingComment||e.isPutingComment}},[n("div",{staticClass:"vssue-comment-avatar"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.author.avatar,alt:e.author.username}})])]),e._v(" "),n("div",{staticClass:"vssue-comment-body"},[e._t("body",[n("div",{staticClass:"vssue-comment-header"},[n("span",{staticClass:"vssue-comment-author"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.author.username)+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-comment-created-at"},[e._v("\n "+e._s(e.createdAt)+"\n ")])]),e._v(" "),n("div",{staticClass:"vssue-comment-main"},[e.editMode?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editContent,expression:"editContent"}],ref:"input",staticClass:"vssue-edit-comment-input",attrs:{rows:e.editInputRows},domProps:{value:e.editContent},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.putComment():null},input:function(t){t.target.composing||(e.editContent=t.target.value)}}}):n("article",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.content)}})]),e._v(" "),n("div",{staticClass:"vssue-comment-footer"},[e.editMode?n("span",{staticClass:"vssue-comment-hint"},[e._v("\n "+e._s(e.vssue.$t("editMode"))+"\n ")]):e._e(),e._v(" "),e.showReactions?n("span",{staticClass:"vssue-comment-reactions"},e._l(e.reactionKeys,(function(t){return n("span",{key:t,staticClass:"vssue-comment-reaction",attrs:{title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)},on:{click:function(n){return e.postReaction({reaction:t})}}},[n("VssueIcon",{attrs:{name:e.creatingReactions.includes(t)?"loading":t,title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)}}),e._v(" "),n("span",{staticClass:"vssue-comment-reaction-number"},[e._v("\n "+e._s(e.comment.reactions[t])+"\n ")])],1)})),0):e._e(),e._v(" "),n("span",{staticClass:"vssue-comment-operations"},[e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation",class:{"vssue-comment-operation-muted":e.isPutingComment},attrs:{title:e.vssue.$t(e.isPutingComment?"loading":"submit")},on:{click:function(t){return e.putComment()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.isPutingComment,expression:"isPutingComment"}],attrs:{name:"loading",title:e.vssue.$t("loading")}}),e._v("\n\n "+e._s(e.vssue.$t("submit"))+"\n ")],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation vssue-comment-operation-muted",attrs:{title:e.vssue.$t("cancel")},on:{click:function(t){return e.resetEdit()}}},[e._v("\n "+e._s(e.vssue.$t("cancel"))+"\n ")]):e._e(),e._v(" "),e.comment.author.username===e.currentUser?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.enterEdit()}}},[n("VssueIcon",{attrs:{name:"edit",title:e.vssue.$t("edit")}})],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser||e.vssue.isAdmin?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.deleteComment()}}},[n("VssueIcon",{attrs:{name:e.isDeletingComment?"loading":"delete",title:e.vssue.$t(e.isDeletingComment?"loading":"delete")}})],1):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.vssue.$emit("reply-comment",e.comment)}}},[n("VssueIcon",{attrs:{name:"reply",title:e.vssue.$t("reply")}})],1)])])])],2)])},staticRenderFns:[]},void 0,He,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ve=class extends e{get disabled(){return this.vssue.isPending}get pageCount(){const e=Math.ceil(this.vssue.comments.count/this.vssue.comments.perPage);return e>1?e:1}get perPageOptions(){const e=[5,10,20,50];return!e.includes(this.vssue.options.perPage)&&this.vssue.options.perPage<100&&e.push(this.vssue.options.perPage),e.sort((e,t)=>e-t)}get page(){return this.vssue.query.page>this.pageCount?this.pageCount:this.vssue.query.page}set page(e){e>0&&e<=this.pageCount&&(this.vssue.query.page=e)}get perPage(){return this.vssue.query.perPage}set perPage(e){this.perPageOptions.includes(e)&&(this.vssue.query.perPage=e)}};t([l()],Ve.prototype,"vssue",void 0),Ve=t([u({components:{VssueIcon:y}})],Ve);const Be=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-pagination"},[n("div",{staticClass:"vssue-pagination-per-page"},[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.perPage,expression:"perPage"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.perPage=t.target.multiple?n:n[0]}}},e._l(e.perPageOptions,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",[e._v("\n "+e._s(e.vssue.$t("perPage"))+"\n ")])]),e._v(" "),e.vssue.API.platform.meta.sortable?n("span",{class:{"vssue-pagination-link":!0,disabled:e.disabled},attrs:{title:e.vssue.$t("sort")},on:{click:function(t){e.vssue.query.sort="asc"===e.vssue.query.sort?"desc":"asc"}}},[e._v("\n "+e._s("asc"===e.vssue.query.sort?"↑":"↓")+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"vssue-pagination-page"},[n("span",{class:{"vssue-pagination-link":!0,disabled:1===e.page||e.disabled},attrs:{title:e.vssue.$t("prev")},domProps:{textContent:e._s("<")},on:{click:function(t){e.page-=1}}}),e._v(" "),n("label",[n("span",[e._v("\n "+e._s(e.vssue.$t("page"))+"\n ")]),e._v(" "),n("select",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"},{name:"model",rawName:"v-model",value:e.page,expression:"page"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.page=t.target.multiple?n:n[0]}}},e._l(e.pageCount,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.pageCount<2,expression:"pageCount < 2"}],domProps:{textContent:e._s(e.page)}}),e._v(" "),n("span",{domProps:{textContent:e._s(" / "+e.pageCount+" ")}})]),e._v(" "),n("span",{class:{"vssue-pagination-link":!0,disabled:e.page===e.pageCount||e.disabled},attrs:{title:e.vssue.$t("next")},domProps:{textContent:e._s(">")},on:{click:function(t){e.page+=1}}})])])},staticRenderFns:[]},void 0,Ve,void 0,!1,void 0,!1,void 0,void 0,void 0);let We=class extends e{};t([l()],We.prototype,"vssue",void 0),We=t([u({components:{TransitionFade:g,VssueComment:Ue,VssuePagination:Be}})],We);const Ye=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue-comments"},[t("VssuePagination"),this._v(" "),t("TransitionFade",{attrs:{group:""}},this._l(this.vssue.comments.data,(function(e){return t("VssueComment",{key:e.id,attrs:{comment:e}})})),1),this._v(" "),t("VssuePagination",{directives:[{name:"show",rawName:"v-show",value:this.vssue.comments.data.length>5,expression:"vssue.comments.data.length > 5"}]})],1)},staticRenderFns:[]},void 0,We,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ge=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{type:{type:String,required:!1,default:"default"}},render:(e,{props:t,data:n,children:s})=>e("button",Object.assign(Object.assign({},n),{class:["vssue-button",`vssue-button-${t.type}`]}),s)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);let Qe=class extends e{constructor(){super(...arguments),this.content=""}get user(){return this.vssue.user}get platform(){return this.vssue.API&&this.vssue.API.platform.name}get isInputDisabled(){return this.loading||null===this.user||null===this.vssue.issue}get isSubmitDisabled(){return""===this.content||this.vssue.isPending||null===this.vssue.issue}get loading(){return this.vssue.isCreatingComment}get contentRows(){return this.content.split("\n").length-1}get inputRows(){return this.contentRows<3?5:this.contentRows+2}created(){this.vssue.$on("reply-comment",e=>{const t=e.contentRaw.replace(/\n/g,"\n> "),n=`@${e.author.username}\n\n> ${t}\n\n`;this.content=this.content.concat(n),this.focus()})}beforeDestroy(){this.vssue.$off("reply-comment")}focus(){this.$refs.input.focus()}async submit(){this.isSubmitDisabled||(await this.vssue.postComment({content:this.content}),this.content="",await this.vssue.getComments())}};t([l()],Qe.prototype,"vssue",void 0),Qe=t([u({components:{VssueButton:Ge,VssueIcon:y}})],Qe);const Je=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-new-comment"},[n("div",{staticClass:"vssue-comment-avatar"},[e.user?n("a",{attrs:{href:e.user.homepage,title:e.user.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.user.avatar,alt:e.user.username}})]):n("VssueIcon",{attrs:{name:e.platform.toLowerCase(),title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}})],1),e._v(" "),n("div",{staticClass:"vssue-new-comment-body"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"input",staticClass:"vssue-new-comment-input",attrs:{rows:e.inputRows,disabled:e.isInputDisabled,placeholder:e.vssue.$t(e.user?"placeholder":"noLoginPlaceHolder"),spellcheck:!1,"aria-label":"leave a comment"},domProps:{value:e.content},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.submit():null},input:function(t){t.target.composing||(e.content=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"vssue-new-comment-footer"},[e.user?n("span",{staticClass:"vssue-current-user"},[n("span",[e._v(e._s(e.vssue.$t("currentUser"))+" - "+e._s(e.user.username)+" - ")]),e._v(" "),n("a",{staticClass:"vssue-logout",on:{click:function(t){return e.vssue.logout()}}},[e._v("\n "+e._s(e.vssue.$t("logout"))+"\n ")])]):n("span",{staticClass:"vssue-current-user"},[e._v("\n "+e._s(e.vssue.$t("loginToComment",{platform:e.platform}))+"\n ")]),e._v(" "),n("div",{staticClass:"vssue-new-comment-operations"},[e.user?n("VssueButton",{staticClass:"vssue-button-submit-comment",attrs:{type:"primary",disabled:e.isSubmitDisabled},on:{click:function(t){return e.submit()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],attrs:{name:"loading"}}),e._v("\n\n "+e._s(e.vssue.$t(e.loading?"submitting":"submitComment"))+"\n ")],1):n("VssueButton",{staticClass:"vssue-button-login",attrs:{type:"primary",title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}},[e._v("\n "+e._s(e.vssue.$t("login",{platform:e.platform}))+"\n ")])],1)])])},staticRenderFns:[]},void 0,Qe,void 0,!1,void 0,!1,void 0,void 0,void 0);let Xe=class extends e{constructor(){super(...arguments),this.progress={show:!1,percent:0,timer:null,speed:200},this.alert={show:!1,message:null,timer:null}}onLoadingCommentsChange(e){this.vssue.comments&&(e?this.progressStart():this.progressDone())}created(){this.vssue.$on("error",e=>this.alertShow(e.message))}beforeDestroy(){this.vssue.$off("error"),null!==this.progress.timer&&window.clearTimeout(this.progress.timer),null!==this.alert.timer&&window.clearTimeout(this.alert.timer)}progressStart(){this.progress.show=!0,this.progress.percent=0,this.progress.timer=window.setInterval(()=>{this.progress.percent+=5,this.progress.percent>94&&null!==this.progress.timer&&window.clearInterval(this.progress.timer)},this.progress.speed)}progressDone(){this.progress.percent=100,null!==this.progress.timer&&window.clearTimeout(this.progress.timer),this.progress.timer=null,window.setTimeout(()=>{this.progress.show=!1},this.progress.speed)}alertShow(e){this.alert.show=!0,this.alert.message=e,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=window.setTimeout(()=>{this.alertHide()},3e3)}alertHide(){this.alert.show=!1,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=null}};t([l()],Xe.prototype,"vssue",void 0),t([p("vssue.isLoadingComments")],Xe.prototype,"onLoadingCommentsChange",null),Xe=t([u({components:{TransitionFade:g}})],Xe);const Ke=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-notice"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.progress.show,expression:"progress.show"}],staticClass:"vssue-progress",style:{width:e.progress.percent+"%",transition:"all "+e.progress.speed+"ms linear"}}),e._v(" "),n("TransitionFade",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.alert.show,expression:"alert.show"}],staticClass:"vssue-alert",domProps:{textContent:e._s(e.alert.message)},on:{click:function(t){return e.alertHide()}}})])],1)},staticRenderFns:[]},void 0,Xe,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ze=class extends e{get status(){return this.vssue.isFailed?"failed":this.vssue.isInitializing?"initializing":this.vssue.isIssueNotCreated&&!this.vssue.isCreatingIssue?this.vssue.isAdmin||!this.vssue.isLogined?"issueNotCreated":"failed":this.vssue.isLoginRequired?"loginRequired":!this.vssue.comments||this.vssue.isCreatingIssue?"loadingComments":0===this.vssue.comments.data.length?"noComments":null}handleClick(){"issueNotCreated"===this.status?this.vssue.postIssue():"loginRequired"===this.status&&this.vssue.login()}};t([l()],Ze.prototype,"vssue",void 0),Ze=t([u({components:{TransitionFade:g,VssueIcon:y}})],Ze);const et=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TransitionFade",[e.status?n("div",{key:e.status,staticClass:"vssue-status"},[["failed","loadingComments","initializing"].includes(e.status)?n("VssueIcon",{attrs:{name:"failed"===e.status?"error":"loading"}}):e._e(),e._v(" "),n("p",{staticClass:"vssue-status-info"},[n(["issueNotCreated","loginRequired"].includes(e.status)?"a":"span",{tag:"Component",on:{click:e.handleClick}},[e._v("\n "+e._s(e.vssue.$t(e.status))+"\n ")])],1)],1):e._e()])},staticRenderFns:[]},void 0,Ze,void 0,!1,void 0,!1,void 0,void 0,void 0);let tt=class extends e{};t([l()],tt.prototype,"vssue",void 0),tt=t([u({components:{TransitionFade:g,VssueIcon:y,VssueComments:Ye,VssueNewComment:Je,VssueNotice:Ke,VssueStatus:et}})],tt);const nt=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("TransitionFade",[this.vssue.isInitializing?t("VssueStatus"):t("div",{staticClass:"vssue-body"},[this.vssue.API?t("VssueNewComment"):this._e(),this._v(" "),t("VssueNotice"),this._v(" "),t("TransitionFade",[this.vssue.comments&&this.vssue.comments.data.length>0?t("VssueComments"):t("VssueStatus")],1)],1)],1)},staticRenderFns:[]},void 0,tt,void 0,!1,void 0,!1,void 0,void 0,void 0);let st=class extends e{};t([l()],st.prototype,"vssue",void 0),st=t([u],st);const rt=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-header"},[n("a",{staticClass:"vssue-header-comments-count",attrs:{href:e.vssue.issue?e.vssue.issue.link:null,target:"_blank",rel:"noopener noreferrer"}},[n("span",[e._v("\n "+e._s(e.vssue.comments?e.vssue.$tc("comments",e.vssue.comments.count,{count:e.vssue.comments.count}):e.vssue.$tc("comments",0))+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-header-powered-by"},[n("span",[e._v("Powered by")]),e._v(" "),e.vssue.API?n("span",[n("a",{attrs:{href:e.vssue.API.platform.link,title:e.vssue.API.platform.name+" API "+e.vssue.API.platform.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.vssue.API.platform.name)+"\n ")]),e._v(" "),n("span",[e._v("&")])]):e._e(),e._v(" "),n("a",{attrs:{href:"https://github.com/meteorlxy/vssue",title:"Vssue v"+e.vssue.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n Vssue\n ")])])])},staticRenderFns:[]},void 0,st,void 0,!1,void 0,!1,void 0,void 0,void 0); +/*! + * vue-i18n v8.15.3 + * (c) 2019 kazuya kawaguchi + * Released under the MIT License. + */ +var it=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function ot(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function at(e){return null!==e&&"object"==typeof e}var ct=Object.prototype.toString,ut="[object Object]";function lt(e){return ct.call(e)===ut}function dt(e){return null==e}function ht(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,s=null;return 1===e.length?at(e[0])||Array.isArray(e[0])?s=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(at(e[1])||Array.isArray(e[1]))&&(s=e[1])),{locale:n,params:s}}function pt(e){return JSON.parse(JSON.stringify(e))}var mt=Object.prototype.hasOwnProperty;function ft(e,t){return mt.call(e,t)}function vt(e){for(var t=arguments,n=Object(e),s=1;s0;)t[n]=arguments[n+1];var s=this.$i18n;return s._t.apply(s,[e,s.locale,s._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],s=arguments.length-2;s-- >0;)n[s]=arguments[s+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}(kt),kt.mixin(yt),kt.directive("t",{bind:xt,update:It,unbind:Tt}),kt.component(bt.name,bt),kt.component($t.name,$t),kt.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Dt=function(){this._caches=Object.create(null)};Dt.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,s="";for(;n0)d--,l=zt,h[St]();else{if(d=0,void 0===n)return!1;if(!1===(n=Gt(n)))return!1;h[jt]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!p()){if(r=Yt(t),(i=(a=Bt[l])[r]||a.else||Vt)===Vt)return;if(l=i[0],(o=h[i[1]])&&(s=void 0===(s=i[2])?t:s,!1===o()))return;if(l===Ut)return c}}(e))&&(this._cache[e]=t),t||[]},Qt.prototype.getPathValue=function(e,t){if(!at(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var s=n.length,r=e,i=0;i/,Kt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Zt=/^@(?:\.([a-z]+))?:/,en=/[()]/g,tn={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()}},nn=new Dt,sn=function(e){var t=this;void 0===e&&(e={}),!kt&&"undefined"!=typeof window&&window.Vue&&At(window.Vue);var n=e.locale||"en-US",s=e.fallbackLocale||"en-US",r=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||nn,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Qt,this._dataListeners=[],this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._exist=function(e,n){return!(!e||!n)&&(!dt(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:s,messages:r,dateTimeFormats:i,numberFormats:o})},rn={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0}};sn.prototype._checkLocaleMessage=function(e,t,n){var s=function(e,t,n,r){if(lt(n))Object.keys(n).forEach((function(i){var o=n[i];lt(o)?(r.push(i),r.push("."),s(e,t,o,r),r.pop(),r.pop()):(r.push(i),s(e,t,o,r),r.pop())}));else if(Array.isArray(n))n.forEach((function(n,i){lt(n)?(r.push("["+i+"]"),r.push("."),s(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(e,t,n,r),r.pop())}));else if("string"==typeof n){if(Xt.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?ot(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};s(t,e,n,[])},sn.prototype._initVM=function(e){var t=kt.config.silent;kt.config.silent=!0,this._vm=new kt({data:e}),kt.config.silent=t},sn.prototype.destroyVM=function(){this._vm.$destroy()},sn.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},sn.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},sn.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)kt.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},sn.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},rn.vm.get=function(){return this._vm},rn.messages.get=function(){return pt(this._getMessages())},rn.dateTimeFormats.get=function(){return pt(this._getDateTimeFormats())},rn.numberFormats.get=function(){return pt(this._getNumberFormats())},rn.availableLocales.get=function(){return Object.keys(this.messages).sort()},rn.locale.get=function(){return this._vm.locale},rn.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},rn.fallbackLocale.get=function(){return this._vm.fallbackLocale},rn.fallbackLocale.set=function(e){this._vm.$set(this._vm,"fallbackLocale",e)},rn.formatFallbackMessages.get=function(){return this._formatFallbackMessages},rn.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},rn.missing.get=function(){return this._missing},rn.missing.set=function(e){this._missing=e},rn.formatter.get=function(){return this._formatter},rn.formatter.set=function(e){this._formatter=e},rn.silentTranslationWarn.get=function(){return this._silentTranslationWarn},rn.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},rn.silentFallbackWarn.get=function(){return this._silentFallbackWarn},rn.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},rn.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},rn.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},rn.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},rn.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var s=this._getMessages();Object.keys(s).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,s[e])}))}},sn.prototype._getMessages=function(){return this._vm.messages},sn.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},sn.prototype._getNumberFormats=function(){return this._vm.numberFormats},sn.prototype._warnDefault=function(e,t,n,s,r){if(!dt(n))return n;if(this._missing){var i=this._missing.apply(null,[e,t,s,r]);if("string"==typeof i)return i}if(this._formatFallbackMessages){var o=ht.apply(void 0,r);return this._render(t,"string",o.params,t)}return t},sn.prototype._isFallbackRoot=function(e){return!e&&!dt(this._root)&&this._fallbackRoot},sn.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},sn.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},sn.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},sn.prototype._interpolate=function(e,t,n,s,r,i,o){if(!t)return null;var a,c=this._path.getPathValue(t,n);if(Array.isArray(c)||lt(c))return c;if(dt(c)){if(!lt(t))return null;if("string"!=typeof(a=t[n]))return null}else{if("string"!=typeof c)return null;a=c}return(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,s,"raw",i,o)),this._render(a,r,i,n)},sn.prototype._link=function(e,t,n,s,r,i,o){var a=n,c=a.match(Kt);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],d=l.match(Zt),h=d[0],p=d[1],m=l.replace(h,"").replace(en,"");if(o.includes(m))return a;o.push(m);var f=this._interpolate(e,t,m,s,"raw"===r?"string":r,"raw"===r?void 0:i,o);if(this._isFallbackRoot(f)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;f=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,s,r,i)}f=this._warnDefault(e,m,f,s,Array.isArray(i)?i:[i]),this._modifiers.hasOwnProperty(p)?f=this._modifiers[p](f):tn.hasOwnProperty(p)&&(f=tn[p](f)),o.pop(),a=f?a.replace(l,f):a}return a},sn.prototype._render=function(e,t,n,s){var r=this._formatter.interpolate(e,n,s);return r||(r=nn.interpolate(e,n,s)),"string"===t?r.join(""):r},sn.prototype._translate=function(e,t,n,s,r,i,o){var a=this._interpolate(t,e[t],s,r,i,o,[s]);return dt(a)&&dt(a=this._interpolate(n,e[n],s,r,i,o,[s]))?null:a},sn.prototype._t=function(e,t,n,s){for(var r,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var a=ht.apply(void 0,i),c=a.locale||t,u=this._translate(n,c,this.fallbackLocale,e,s,"string",a.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return this._warnDefault(c,e,u,s,i)},sn.prototype.t=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},sn.prototype._i=function(e,t,n,s,r){var i=this._translate(n,t,this.fallbackLocale,e,s,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,s,[r])},sn.prototype.i=function(e,t,n){return e?("string"!=typeof t&&(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},sn.prototype._tc=function(e,t,n,s,r){for(var i,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===r&&(r=1);var c={count:r,n:r},u=ht.apply(void 0,o);return u.params=Object.assign(c,u.params),o=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,s].concat(o)),r)},sn.prototype.fetchChoice=function(e,t){if(!e&&"string"!=typeof e)return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},sn.prototype.getChoiceIndex=function(e,t){var n,s;return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[e,t]):(n=e,s=t,n=Math.abs(n),2===s?n?n>1?1:0:1:n?Math.min(n,2):0)},sn.prototype.tc=function(e,t){for(var n,s=[],r=arguments.length-2;r-- >0;)s[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(s))},sn.prototype._te=function(e,t,n){for(var s=[],r=arguments.length-3;r-- >0;)s[r]=arguments[r+3];var i=ht.apply(void 0,s).locale||t;return this._exist(n[i],e)},sn.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},sn.prototype.getLocaleMessage=function(e){return pt(this._vm.messages[e]||{})},sn.prototype.setLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,t)},sn.prototype.mergeLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,vt({},this._vm.messages[e]||{},t))},sn.prototype.getDateTimeFormat=function(e){return pt(this._vm.dateTimeFormats[e]||{})},sn.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t)},sn.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,vt(this._vm.dateTimeFormats[e]||{},t))},sn.prototype._localizeDateTime=function(e,t,n,s,r){var i=t,o=s[i];if((dt(o)||dt(o[r]))&&(o=s[i=n]),dt(o)||dt(o[r]))return null;var a=o[r],c=i+"__"+r,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(i,a)),u.format(e)},sn.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var s=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return s||""},sn.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:at(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._d(e,s,r)},sn.prototype.getNumberFormat=function(e){return pt(this._vm.numberFormats[e]||{})},sn.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t)},sn.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,vt(this._vm.numberFormats[e]||{},t))},sn.prototype._getNumberFormatter=function(e,t,n,s,r,i){var o=t,a=s[o];if((dt(a)||dt(a[r]))&&(a=s[o=n]),dt(a)||dt(a[r]))return null;var c,u=a[r];if(i)c=new Intl.NumberFormat(o,Object.assign({},u,i));else{var l=o+"__"+r;(c=this._numberFormatters[l])||(c=this._numberFormatters[l]=new Intl.NumberFormat(o,u))}return c},sn.prototype._n=function(e,t,n,s){if(!sn.availabilities.numberFormat)return"";if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},s))}return i||""},sn.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null,i=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:at(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var s;return it.includes(n)?Object.assign({},e,((s={})[n]=t[0][n],s)):e}),null)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._n(e,s,r,i)},sn.prototype._ntp=function(e,t,n,s){if(!sn.availabilities.numberFormat)return[];if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,s)}return i||[]},Object.defineProperties(sn.prototype,rn),Object.defineProperty(sn,"availabilities",{get:function(){if(!Jt){var e="undefined"!=typeof Intl;Jt={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Jt}}),sn.install=At,sn.version="8.15.3";const on={login:"Login with {platform}",logout:"Logout",currentUser:"Current User",loading:"Loading",submit:"Submit",submitting:"Submitting",submitComment:"Submit Comment",cancel:"Cancel",edit:"Edit",editMode:"Edit Mode",delete:"Delete",reply:"Reply",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comments per page",sort:"Click to change the sort direction",page:"Page",prev:"Previous Page",next:"Next Page",comments:"Comments | {count} Comment | {count} Comments",loginToComment:"Login with {platform} account to leave a comment",placeholder:"Leave a comment. Styling with Markdown is supported. Ctrl + Enter to submit.",noLoginPlaceHolder:"Login to leave a comment. Styling with Markdown is supported. ",failed:"Failed to load comments",initializing:"Initializing...",issueNotCreated:"Click to create issue",loadingComments:"Loading comments...",loginRequired:"Login to view comments",noComments:"No comments yet. Leave the first comment !",reactionGiven:"Already given '{reaction}' reaction",deleteConfirm:"Confirm to delete this comment ?",deleteFailed:"Failed to delete comment"},an={login:"使用 {platform} 登录",logout:"退出登录",currentUser:"当前用户",loading:"加载中",submit:"提交",submitting:"发表中",submitComment:"发表评论",cancel:"取消",edit:"编辑",editMode:"编辑模式",delete:"删除",reply:"回复",heart:"喜欢",like:"赞",unlike:"踩",perPage:"每页评论数",sort:"点击改变排序方式",page:"页数",prev:"上一页",next:"下一页",comments:"评论 | {count} 条评论 | {count} 条评论",loginToComment:"使用 {platform} 帐号登录后发表评论",placeholder:"留下你的评论丨支持 Markdown 语法丨Ctrl + Enter 发表评论",noLoginPlaceHolder:"登录后才能发表评论丨支持 Markdown 语法",failed:"评论加载失败",initializing:"正在初始化...",issueNotCreated:"点击创建 Issue",loadingComments:"正在加载评论...",loginRequired:"登录后查看评论",noComments:"还没有评论,来发表第一条评论吧!",reactionGiven:"已经添加过 '{reaction}' 了",deleteConfirm:"确认要删除该评论吗?",deleteFailed:"评论删除失败"},cn={login:"Entrar com {platform}",logout:"Sair",currentUser:"Usuário Atual",loading:"Carregando",submit:"Enviar",submitting:"Enviando",submitComment:"Enviar Comentário",cancel:"Cancelar",edit:"Editar",editMode:"Modo de Edição",delete:"Apagar",reply:"Responder",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comentários por página",sort:"Clique para alterar a ordenação",page:"Página",prev:"Página Anterior",next:"Próxima Página",comments:"Comentários | {count} Comentário | {count} Comentários",loginToComment:"Entre com uma conta {platform} para deixar um comentário",placeholder:"Deixe um comentário. Estilos com Markdown suportados. Ctrl + Enter para enviar.",noLoginPlaceHolder:"Entre para deixar um comentário. Estilos com Markdown suportados. ",failed:"Falha ao carregar comentários",initializing:"Inicializando...",issueNotCreated:"Click to create issue",loadingComments:"Carregando comentários...",loginRequired:"Entrar para visualizar comentários",noComments:"Nenhum comentário. Deixe o primeiro comentário!",reactionGiven:"Já reagiu com '{reaction}'",deleteConfirm:"Apagar este comentário?",deleteFailed:"Falha ao apagar comentário"},un={login:"{platform} でログイン",logout:"ログアウト",currentUser:"現在のユーザー",loading:"読み込み中",submit:"送信",submitting:"送信中",submitComment:"コメントを送信",cancel:"キャンセル",edit:"編集",editMode:"編集モード",delete:"削除",reply:"返信",heart:"ハート",like:"高評価",unlike:"低評価",perPage:"コメント/ページ",sort:"並び順を変更するにはクリックしてください",page:"ページ",prev:"前のページ",next:"次のページ",comments:"コメント | {count} コメント | {count} コメント",loginToComment:"コメントを残すには {platform} アカウントでログインしてください。",placeholder:"コメントを残してください。Markdown 記法をサポートしています。 Ctrl + Enter で送信できます。",noLoginPlaceHolder:"コメントを残すにはログインしてください。マークダウン記法をサポートしています。",failed:"コメントの読み込みに失敗しました",initializing:"初期化中...",issueNotCreated:"Click to create issue",loadingComments:"コメントの読み込み中...",loginRequired:"コメントを見るにはログインしてください",noComments:"まだコメントがありません。最初のコメントを残しましょう!",reactionGiven:"既に '{reaction}' のリアクションをしています",deleteConfirm:"本当にコメントを削除してもいいですか?",deleteFailed:"コメントの削除に失敗しました"},ln={login:"התחברו עם {platform}",logout:"התנתקו",currentUser:"משתמש/ת נוכחי/ת",loading:"טוען",submit:"שליחה",submitting:"שולח",submitComment:"שליחת תגובה",cancel:"ביטל",edit:"עריכה",editMode:"מצב עריכה",delete:"מחיקה",reply:"תשובה",heart:"לב",like:"לייק",unlike:"אנלייק",perPage:"תגובות לדף",sort:"לחצו כדי לשנות את כיוון המיון",page:"דף",prev:"הדף הקודם",next:"הדף הבא",comments:"תגובות | {count} תגובה | {count} תגובות",loginToComment:"התחברו עם חשבון {platform} כדי להשאיר תגובה",placeholder:"השאירו תגובה. יש תמיכה בעיצוב בעזרת Markdown. Ctrl + Enter כדי לשלוח.",noLoginPlaceHolder:"התחברו כדי להשאיר תגובה. יש תמיכה בעיצוב בעזרת Markdown. ",failed:"כשלון בטעינת התגובות",initializing:"מאתחל...",issueNotCreated:"לחצו ליצירת issue",loadingComments:"טוען תגובות...",loginRequired:"התחברו כדי לצפות בתגובות",noComments:"עדיין אין תגובות. השאירו תגובה ראשונה !",reactionGiven:"כבר ניתן חיווי '{reaction}'",deleteConfirm:"בטוחים במחיקת התגובה ?",deleteFailed:"כשלון במחיקת התגובה"};Object.prototype.hasOwnProperty.call(e,"$i18n")||e.use(sn);const dn=new sn({locale:"en",fallbackLocale:"en",messages:{en:on,"en-US":on,zh:an,"zh-CN":an,pt:cn,"pt-BR":cn,ja:un,"ja-JP":un,he:ln,"he-IL":ln}});let hn=class extends e{constructor(){super(...arguments),this.title=e=>`${e.prefix}${document.title}`,this.issueId=null,this.options=null,this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:10,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1}get version(){return"1.4.8"}get issueTitle(){return null===this.options?"":"function"==typeof this.title?this.title(this.options):`${this.options.prefix}${this.title}`}get isPending(){return this.isLoadingComments||this.isCreatingComment||this.isUpdatingComment}get isLogined(){return null!==this.accessToken&&null!==this.user}get isAdmin(){return null!==this.options&&null!==this.accessToken&&null!==this.user&&(this.user.username===this.options.owner||this.options.admins.includes(this.user.username))}get accessTokenKey(){return this.API?`Vssue.${this.API.platform.name.toLowerCase()}.access_token`:""}onQueryPerPageChange(){this.query.page=1,this.getComments()}onQueryChange(){this.getComments()}setOptions(e){this.options=Object.assign({labels:["Vssue"],state:"Vssue",prefix:"[Vssue]",admins:[],perPage:10,proxy:e=>`https://cors-anywhere.azm.workers.dev/${e}`,issueContent:({url:e})=>e,autoCreateIssue:!1},e);const t=["api","owner","repo","clientId"];for(const e of t)this.options[e]||console.warn(`[Vssue] the option '${e}' is required`);if(this.options.locale)this.$i18n.locale=this.options.locale;else{const e=Object.keys(this.$i18n.messages),t=window.navigator.languages;this.$i18n.locale=t.filter(t=>e.includes(t)).shift()||"en"}}async init(){try{await this.initStore(),await this.initComments()}catch(e){e.response&&[401,403].includes(e.response.status)?this.isLoginRequired=!0:this.isFailed=!0,console.error(e)}}async initStore(){try{if(!this.options)throw new Error("Options are required to initialize Vssue");this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:this.options.perPage,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1;const e=this.options.api;this.API=new e({baseURL:this.options.baseURL,labels:this.options.labels,state:this.options.state,owner:this.options.owner,repo:this.options.repo,clientId:this.options.clientId,clientSecret:this.options.clientSecret,proxy:this.options.proxy}),await this.handleAuth()}finally{this.isInitializing=!1}}async initComments(){if(this.API&&this.options)if(this.issueId){const[e,t]=await Promise.all([this.API.getIssue({accessToken:this.accessToken,issueId:this.issueId}),this.API.getComments({accessToken:this.accessToken,issueId:this.issueId,query:this.query})]);this.issue=e,this.comments=t}else this.issue=await this.API.getIssue({accessToken:this.accessToken,issueTitle:this.issueTitle}),null===this.issue?(this.isIssueNotCreated=!0,this.options.autoCreateIssue&&await this.postIssue()):await this.getComments()}async postIssue(){if(this.API&&this.options&&!this.issue&&!this.issueId&&(this.isLogined||this.login(),this.isAdmin))try{this.isCreatingIssue=!0;const e=await this.API.postIssue({title:this.issueTitle,content:await this.options.issueContent({options:this.options,url:ze(window.location.href)}),accessToken:this.accessToken});this.issue=e,this.isIssueNotCreated=!1,await this.getComments()}catch(e){this.isFailed=!0}finally{this.isCreatingIssue=!1}}async getComments(){try{if(!this.API||!this.issue||this.isLoadingComments)return;this.isLoadingComments=!0;const e=await this.API.getComments({accessToken:this.accessToken,issueId:this.issue.id,query:this.query});return this.comments=e,this.query.page!==e.page&&(this.query.page=e.page),this.query.perPage!==e.perPage&&(this.query.perPage=e.perPage),e}catch(e){if(!e.response||![401,403].includes(e.response.status)||this.isLogined)throw this.$emit("error",e),e;this.isLoginRequired=!0}finally{this.isLoadingComments=!1}}async postComment({content:e}){try{if(!this.API||!this.issue||this.isCreatingComment)return;return this.isCreatingComment=!0,await this.API.postComment({accessToken:this.accessToken,content:e,issueId:this.issue.id})}catch(e){throw this.$emit("error",e),e}finally{this.isCreatingComment=!1}}async putComment({commentId:e,content:t}){try{if(!this.API||!this.issue)return;return await this.API.putComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,content:t})}catch(e){throw this.$emit("error",e),e}}async deleteComment({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.deleteComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async getCommentReactions({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.getCommentReactions({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async postCommentReaction({commentId:e,reaction:t}){try{if(!this.API||!this.issue)return!1;return await this.API.postCommentReaction({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,reaction:t})}catch(e){throw this.$emit("error",e),e}}login(){this.API&&this.API.redirectAuth()}logout(){this.setAccessToken(null),this.user=null}async handleAuth(){if(!this.API)return;const e=await this.API.handleAuth();e?(this.setAccessToken(e),this.user=await this.API.getUser({accessToken:e})):this.getAccessToken()?this.user=await this.API.getUser({accessToken:this.accessToken}):(this.setAccessToken(null),this.user=null)}getAccessToken(){return this.accessToken=window.localStorage.getItem(this.accessTokenKey),this.accessToken}setAccessToken(e){null===e?window.localStorage.removeItem(this.accessTokenKey):window.localStorage.setItem(this.accessTokenKey,e),this.accessToken=e}};t([p("query.perPage")],hn.prototype,"onQueryPerPageChange",null),t([p("query.page"),p("query.sort")],hn.prototype,"onQueryChange",null),hn=t([u({i18n:dn})],hn);var pn=hn;let mn=class extends e{constructor(){super(...arguments),this.vssue=new pn}onOptionsChange(e){this.vssue.setOptions(e)}mounted(){null!==this.title&&(this.vssue.title=this.title),null!==this.issueId&&(this.vssue.issueId=this.issueId),this.vssue.setOptions(this.options),this.vssue.init()}};var fn;t([h({type:[String,Function],required:!1,default:null})],mn.prototype,"title",void 0),t([h({type:[String,Number],required:!1,default:null})],mn.prototype,"issueId",void 0),t([h({type:Object,required:!1,default:()=>({})})],mn.prototype,"options",void 0),t([(fn="vssue",i((function(e,t){var n=e.provide;if("function"!=typeof n||!n.managed){var s=e.provide;(n=e.provide=function(){var e=Object.create(("function"==typeof s?s.call(this):s)||null);for(var t in n.managed)e[n.managed[t]]=this[t];return e}).managed={}}n.managed[t]=fn||t})))],mn.prototype,"vssue",void 0),t([p("options",{deep:!0})],mn.prototype,"onOptionsChange",null),mn=t([u({components:{Iconfont:v,VssueBody:nt,VssueHeader:rt}})],mn);const vn=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue"},[t("Iconfont"),this._v(" "),t("VssueHeader"),this._v(" "),t("VssueBody")],1)},staticRenderFns:[]},void 0,mn,void 0,!1,void 0,!1,void 0,void 0,void 0),gn={get version(){return"1.4.8"},installed:!1,install(e,t){if(this.installed)return!1;this.installed=!0,e.component("Vssue",{functional:!0,props:{title:{type:String,required:!1,default:void 0},issueId:{type:[Number,String],required:!1,default:void 0},options:{type:Object,required:!1,default:void 0}},render:(e,{data:n,props:s})=>e(vn,Object.assign(Object.assign({},n),{props:{title:s.title,issueId:s.issueId,options:Object.assign({},t,s.options)}}))})},VssueComponent:vn};var yn=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([n]):r[t]?r[t]+", "+n:n}})),r):r}(i.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};!function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(Fn("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,r),i=null}},i.onabort=function(){i&&(n(Fn("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Fn("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Fn(t,e,"ECONNABORTED",i)),i=null},In.isStandardBrowserEnv()){var d=(e.withCredentials||Ln(l))&&e.xsrfCookieName?Sn.read(e.xsrfCookieName):void 0;d&&(r[e.xsrfHeaderName]=d)}if("setRequestHeader"in i&&In.forEach(r,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete r[t]:i.setRequestHeader(t,e)})),In.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),s||(s=null),i.send(s)}))},Nn={"Content-Type":"application/x-www-form-urlencoded"};function zn(e,t){!In.isUndefined(e)&&In.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var qn,Hn={adapter:("undefined"!=typeof XMLHttpRequest?qn=En:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(qn=En),qn),transformRequest:[function(e,t){return Rn(t,"Accept"),Rn(t,"Content-Type"),In.isFormData(e)||In.isArrayBuffer(e)||In.isBuffer(e)||In.isStream(e)||In.isFile(e)||In.isBlob(e)?e:In.isArrayBufferView(e)?e.buffer:In.isURLSearchParams(e)?(zn(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):In.isObject(e)?(zn(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Hn.headers={common:{Accept:"application/json, text/plain, */*"}},In.forEach(["delete","get","head"],(function(e){Hn.headers[e]={}})),In.forEach(["post","put","patch"],(function(e){Hn.headers[e]=In.merge(Nn)}));var Un=Hn;function Vn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Bn=function(e){return Vn(e),e.headers=e.headers||{},e.data=An(e.data,e.headers,e.transformRequest),e.headers=In.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),In.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Un.adapter)(e).then((function(t){return Vn(e),t.data=An(t.data,t.headers,e.transformResponse),t}),(function(t){return Dn(t)||(Vn(e),t&&t.response&&(t.response.data=An(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Wn=function(e,t){t=t||{};var n={},s=["url","method","data"],r=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function a(e,t){return In.isPlainObject(e)&&In.isPlainObject(t)?In.merge(e,t):In.isPlainObject(t)?In.merge({},t):In.isArray(t)?t.slice():t}function c(s){In.isUndefined(t[s])?In.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(e[s],t[s])}In.forEach(s,(function(e){In.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),In.forEach(r,c),In.forEach(i,(function(s){In.isUndefined(t[s])?In.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(void 0,t[s])})),In.forEach(o,(function(s){s in t?n[s]=a(e[s],t[s]):s in e&&(n[s]=a(void 0,e[s]))}));var u=s.concat(r).concat(i).concat(o),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return In.forEach(l,c),n};function Yn(e){this.defaults=e,this.interceptors={request:new On,response:new On}}Yn.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Wn(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Bn,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Yn.prototype.getUri=function(e){return e=Wn(this.defaults,e),Mn(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},In.forEach(["delete","get","head","options"],(function(e){Yn.prototype[e]=function(t,n){return this.request(Wn(n||{},{method:e,url:t,data:(n||{}).data}))}})),In.forEach(["post","put","patch"],(function(e){Yn.prototype[e]=function(t,n,s){return this.request(Wn(s||{},{method:e,url:t,data:n}))}}));var Gn=Yn;function Qn(e){this.message=e}Qn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Qn.prototype.__CANCEL__=!0;var Jn=Qn;function Xn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Jn(e),t(n.reason))}))}Xn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Xn.source=function(){var e;return{token:new Xn((function(t){e=t})),cancel:e}};var Kn=Xn;function Zn(e){var t=new Gn(e),n=yn(Gn.prototype.request,t);return In.extend(n,Gn.prototype,t),In.extend(n,t),n}var es=Zn(Un);es.Axios=Gn,es.create=function(e){return Zn(Wn(es.defaults,e))},es.Cancel=Jn,es.CancelToken=Kn,es.isCancel=Dn,es.all=function(e){return Promise.all(e)},es.spread=function(e){return function(t){return e.apply(null,t)}},es.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var ts=es,ns=es;ts.default=ns;var ss=ts;function rs(e,t){return{username:e.login,avatar:e.avatar_url,homepage:B(t,e.login)}}function is(e,t,n,s){return{id:e.number,title:e.title,content:e.body,link:B(t,`${n}/${s}/issues/${e.number}`)}}function os(e,t){return{id:e.id,content:e.body_html||"",contentRaw:e.body,author:rs(e.user,t),createdAt:e.created_at,updatedAt:e.updated_at,reactions:e.reactions}}function as(e){return"like"===e?"+1":"unlike"===e?"-1":e}class cs{constructor({baseURL:e="https://gitea.com",owner:t,repo:n,labels:s,clientId:r,clientSecret:i,state:o,proxy:a}){if(void 0===i||void 0===a)throw new Error("clientSecret and proxy is required for Gitea V1");this.baseURL=e,this.owner=t,this.repo=n,this.labels=s,this.clientId=r,this.clientSecret=i,this.state=o,this.proxy=a,this.$http=ss.create({baseURL:B(e,"api/v1"),headers:{Accept:"application/json"}})}get platform(){return{name:"Gitea",link:this.baseURL,version:"v1",meta:{reactable:!0,sortable:!1}}}redirectAuth(){window.location.href=V(B(this.baseURL,"login/oauth/authorize"),{client_id:this.clientId,redirect_uri:window.location.href,response_type:"code",state:this.state})}async handleAuth(){const e=qe(window.location.search);if(e.code){if(e.state!==this.state)return null;const t=decodeURIComponent(e.code);delete e.code,delete e.state;const n=V(ze(window.location.href),e)+window.location.hash;return window.history.replaceState(null,"",n),await this.getAccessToken({code:t})}return null}async getAccessToken({code:e}){const t=B(this.baseURL,"login/oauth/access_token"),n="function"==typeof this.proxy?this.proxy(t):this.proxy,{data:s}=await this.$http.post(n,{client_id:this.clientId,client_secret:this.clientSecret,code:e,grant_type:"authorization_code",redirect_uri:window.location.href});return s.access_token}async getUser({accessToken:e}){const{data:t}=await this.$http.get("user",{headers:{Authorization:`bearer ${e}`}});return rs(t,this.baseURL)}async getIssue({accessToken:e,issueId:t,issueTitle:n}){const s={};if(e&&(s.headers={Authorization:`bearer ${e}`}),!t){const t=await this.getLabels({accessToken:e}),r=this.labels.filter(e=>t.find(t=>t.name===e)).map(e=>t.find(t=>t.name===e).id);s.params={labels:r,q:n,timestamp:Date.now()};const{data:i}=await this.$http.get(`repos/${this.owner}/${this.repo}/issues`,s);return i.map(e=>is(e,this.baseURL,this.owner,this.repo)).find(e=>e.title===n)||null}try{s.params={timestamp:Date.now()};const{data:e}=await this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}`,s);return is(e,this.baseURL,this.owner,this.repo)}catch(e){if(e.response&&404===e.response.status)return null;throw e}}async postIssue({accessToken:e,title:t,content:n}){const s=await Promise.all(this.labels.map(t=>this.postLabel({accessToken:e,label:t}))),{data:r}=await this.$http.post(`repos/${this.owner}/${this.repo}/issues`,{title:t,body:n,labels:s},{headers:{Authorization:`bearer ${e}`}});return is(r,this.baseURL,this.owner,this.repo)}async getComments({accessToken:e,issueId:t,query:{page:n=1,perPage:s=10,sort:r="desc"}={}}){const i={params:{timestamp:Date.now()}};e&&(i.headers={Authorization:`bearer ${e}`});const o=(await this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}/comments`,i)).data,a=[];for(const n of o)a.push((async()=>{n.body_html=await this.getMarkdownContent({accessToken:e,contentRaw:n.body})})()),a.push((async()=>{n.reactions=await this.getCommentReactions({accessToken:e,issueId:t,commentId:n.id})})());return await Promise.all(a),{count:o.length,page:1,perPage:50,data:o.map(e=>os(e,this.baseURL))}}async postComment({accessToken:e,issueId:t,content:n}){const{data:s}=await this.$http.post(`repos/${this.owner}/${this.repo}/issues/${t}/comments`,{body:n},{headers:{Authorization:`bearer ${e}`}});return os(s,this.baseURL)}async putComment({accessToken:e,issueId:t,commentId:n,content:s}){const{data:r}=await this.$http.patch(`repos/${this.owner}/${this.repo}/issues/comments/${n}`,{body:s},{headers:{Authorization:`bearer ${e}`}}),[i,o]=await Promise.all([this.getMarkdownContent({accessToken:e,contentRaw:r.body}),this.getCommentReactions({accessToken:e,issueId:t,commentId:r.id})]);return r.body_html=i,r.reactions=o,os(r,this.baseURL)}async deleteComment({accessToken:e,commentId:t}){const{status:n}=await this.$http.delete(`repos/${this.owner}/${this.repo}/issues/comments/${t}`,{headers:{Authorization:`bearer ${e}`}});return 204===n}async getCommentReactions({accessToken:e,commentId:t}){const n={params:{timestamp:Date.now()}};e&&(n.headers={Authorization:`bearer ${e}`});const{data:s}=await this.$http.get(`repos/${this.owner}/${this.repo}/issues/comments/${t}/reactions`,n);return{like:(r=s||[]).filter(e=>"+1"===e.content).length,unlike:r.filter(e=>"-1"===e.content).length,heart:r.filter(e=>"heart"===e.content).length};var r}async postCommentReaction({commentId:e,reaction:t,accessToken:n}){const s=await this.$http.post(`repos/${this.owner}/${this.repo}/issues/comments/${e}/reactions`,{content:as(t)},{headers:{Authorization:`bearer ${n}`}});return 200===s.status?this.deleteCommentReaction({accessToken:n,commentId:e,reaction:t}):201===s.status}async deleteCommentReaction({commentId:e,reaction:t,accessToken:n}){return 200===(await this.$http.request({url:`repos/${this.owner}/${this.repo}/issues/comments/${e}/reactions`,method:"delete",data:{content:as(t)},headers:{Authorization:`bearer ${n}`}})).status}async getLabels({accessToken:e}){const t={params:{timestamp:Date.now()}};e&&(t.headers={Authorization:`bearer ${e}`});const{data:n}=await this.$http.get(`repos/${this.owner}/${this.repo}/labels`,t);return n||[]}async postLabel({accessToken:e,label:t,color:n="#3eaf7c",description:s}){const{data:r}=await this.$http.post(`repos/${this.owner}/${this.repo}/labels`,{name:t,color:n,description:s},{headers:{Authorization:`bearer ${e}`}});return r.id}async getMarkdownContent({accessToken:e,contentRaw:t}){const n={};e&&(n.headers={Authorization:`bearer ${e}`});const{data:s}=await this.$http.post("markdown",{Context:`${this.owner}/${this.repo}`,Mode:"gfm",Text:t,Wiki:!1},n);return s}}"undefined"!=typeof window&&window.Vue&&window.Vue.use(gn,{api:cs})}(Vue); \ No newline at end of file diff --git a/assets/lib/vssue/vssue.gitee.min.js b/assets/lib/vssue/vssue.gitee.min.js new file mode 100644 index 000000000..71694bc90 --- /dev/null +++ b/assets/lib/vssue/vssue.gitee.min.js @@ -0,0 +1,30 @@ +/*! + * vssue - A vue-powered issue-based comment plugin + * + * @version v1.4.8 + * @link https://vssue.js.org + * @license MIT + * @copyright 2018-2021 meteorlxy + */ +!function(e){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ +function t(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}e=e&&e.hasOwnProperty("default")?e.default:e;var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(s){var r=n?Reflect.getOwnMetadata(s,t,n):Reflect.getOwnMetadata(s,t);n?Reflect.defineMetadata(s,r,e,n):Reflect.defineMetadata(s,r,e)}))}var r={__proto__:[]}instanceof Array;function i(e){return function(t,n,s){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof s&&(s=void 0),r.__decorators__.push((function(t){return e(t,n,s)}))}}var o=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function a(t,i){void 0===i&&(i={}),i.name=i.name||t._componentTag||t.name;var a=t.prototype;Object.getOwnPropertyNames(a).forEach((function(e){if("constructor"!==e)if(o.indexOf(e)>-1)i[e]=a[e];else{var t=Object.getOwnPropertyDescriptor(a,e);void 0!==t.value?"function"==typeof t.value?(i.methods||(i.methods={}))[e]=t.value:(i.mixins||(i.mixins=[])).push({data:function(){var n;return(n={})[e]=t.value,n}}):(t.get||t.set)&&((i.computed||(i.computed={}))[e]={get:t.get,set:t.set})}})),(i.mixins||(i.mixins=[])).push({data:function(){return function(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var s in e.$options.props)e.hasOwnProperty(s)||n.push(s);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var s=new t;t.prototype._init=n;var r={};return Object.keys(s).forEach((function(e){void 0!==s[e]&&(r[e]=s[e])})),r}(this,t)}});var u=t.__decorators__;u&&(u.forEach((function(e){return e(i)})),delete t.__decorators__);var l,p,d=Object.getPrototypeOf(t.prototype),h=d instanceof e?d.constructor:e,m=h.extend(i);return function(e,t,n){Object.getOwnPropertyNames(t).forEach((function(s){if(!c[s]){var i=Object.getOwnPropertyDescriptor(e,s);if(!i||i.configurable){var o,a,u=Object.getOwnPropertyDescriptor(t,s);if(!r){if("cid"===s)return;var l=Object.getOwnPropertyDescriptor(n,s);if(o=u.value,a=typeof o,null!=o&&("object"===a||"function"===a)&&l&&l.value===u.value)return}Object.defineProperty(e,s,u)}}}))}(m,t,h),n&&(s(l=m,p=t),Object.getOwnPropertyNames(p.prototype).forEach((function(e){s(l.prototype,p.prototype,e)})),Object.getOwnPropertyNames(p).forEach((function(e){s(l,p,e)}))),m}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function u(e){return"function"==typeof e?a(e):function(t){return a(t,e)}}function l(e){return i((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}u.registerHooks=function(e){o.push.apply(o,e)};var p="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function d(e){return void 0===e&&(e={}),function(t,n){!function(e,t,n){p&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,n)))}(e,t,n),i((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function h(e,t){void 0===t&&(t={});var n=t.deep,s=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return i((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:s,immediate:o})}))}var m=e.extend({name:"Iconfont"});function f(e,t,n,s,r,i,o,a,c,u){"boolean"!=typeof o&&(c=a,a=o,o=!1);const l="function"==typeof n?n.options:n;let p;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),s&&(l._scopeId=s),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=p):t&&(p=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p)if(l.functional){const e=l.render;l.render=function(t,n){return p.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,p):[p]}return n}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const v=f({render:function(e,t){var n=t._c;return n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("symbol",{attrs:{id:"vssue-icon-bitbucket",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M579.5522464 489.45249493q4.8371808 38.38537173-30.81752427 61.55702827t-67.95459093 3.66689493q-23.79580907-10.37653333-32.6119616-35.34262826t-0.31207573-50.01020907 31.67573333-35.34262827q21.92335253-11.00068587 44.1587808-7.33379093t39.00952427 21.61127573 16.77409493 41.1160384zM647.19476053 476.65737173q-8.50407573-65.22392427-68.8908192-99.9424t-120.07131413-7.9579424q-38.38537173 17.08617173-61.24495253 53.9111616t-21.0651424 78.95527574q2.41859093 55.4715424 47.20152426 94.48106666t100.87862827 34.1723424q55.4715424-4.8371808 92.60860907-51.18049493t30.50544746-102.43900907zM792.93434133 146.32472427q-12.17097173-16.4620192-34.1723424-27.15062827t-35.34262826-13.41927573-43.30057174-7.64586667q-177.33729493-28.63299093-345.00022826 1.24830507-26.2144 4.29104747-40.25782827 7.33379093t-33.54819093 13.41927573-30.50544747 26.2144q18.2564576 17.08617173 46.34331413 27.6967616t44.78293334 13.41927574 53.36502826 7.02171413q138.95192427 17.71032427 273.06666667 0.62415253 38.38537173-4.8371808 54.53531413-7.33379093t44.1587808-13.1072 45.7191616-28.32091413zM827.65281813 777.10872427q-4.8371808 15.83786667-9.44030506 46.65539093t-8.50407574 51.18049493-17.39824746 42.6764192-35.34262827 34.4064q-52.4288 29.2571424-115.46819093 43.61264747t-123.1140576 13.41927573-122.8019808-11.3127616q-28.0088384-4.8371808-49.69813334-11.00068586t-46.65539093-16.4620192-44.4708576-26.52647574-31.67573333-37.4491424q-15.21371413-58.51428587-34.71847574-177.96144746l3.66689494-9.7523808 11.00068586-5.46133334q135.9091808 90.1900192 308.72137174 90.1900192t309.34552426-90.1900192q12.79512427 3.66689493 14.5895616 14.04342827t-3.0427424 27.46270507-4.8371808 22.54750506zM937.97175147 191.41973333q-15.83786667 101.8148576-67.64251414 399.22346667-3.0427424 18.2564576-16.4620192 34.1723424t-26.52647573 24.3419424-33.23611413 18.88060907q-153.61950507 76.7707424-371.8387808 53.67710506-151.12289493-16.4620192-240.14262827-84.72868586-9.12822827-7.33379093-15.52579093-16.1499424t-10.37653334-21.2992-5.46133333-20.75306667-3.66689493-24.10788587-3.3548192-21.2992q-5.46133333-30.50544747-16.1499424-91.43832426t-17.08617174-98.4600384-14.35550506-89.8779424-13.41927574-96.27550507q1.7944384-15.83786667 10.68860907-29.5692192t19.19268587-22.8595808 27.46270506-18.2564576 28.0088384-13.73135253 29.2571424-11.3127616q76.22460907-28.0088384 190.75657174-39.00952427 231.0144-22.54750507 412.01859093 30.50544747 94.48106667 28.0088384 131.072 74.35215253 9.7523808 12.17097173 10.0644576 31.0515808t-3.3548192 32.9240384z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitea",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M184.31868985 236.10860742C106.94832667 235.94086648 3.32655508 285.13080468 9.02973665 408.46209936c8.93218827 192.65010787 206.32096845 210.5144844 285.20099725 212.06608453 8.63864186 36.14810496 101.48307766 160.77938883 170.21479898 167.32127321h301.09442177c180.57278288-11.99345499 315.77172611-546.07960359 215.54670217-548.09249109-165.7696721 7.79993906-264.02374305 11.74184405-348.27147151 12.41280591v166.69224585l-26.25140843-11.61603761-0.16773997-154.99233728c-96.70246985-0.04193548-181.83083757-4.52899687-343.4069947-12.49667687-20.21274496-0.12580547-48.39316992-3.5644886-78.67035236-3.64835859z m10.94507577 68.14462849h9.22573371c10.98701124 98.75729283 28.85138778 156.50200291 64.99949274 244.73357185-92.25734394-10.90314029-170.75995634-37.69970509-185.18564974-137.75698809-7.46445813-51.78991757 17.69663558-105.84433456 110.96042329-107.01851827z m358.83913087 97.07988723c6.29027343 0.08386999 12.70635233 1.25805468 18.74501482 4.02577499l31.40943263 13.54505513-22.51917887 41.05451824a28.18042496 25.03528825 0 0 0-10.10637297 1.59353561 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 4.69673781 7.29671718l-38.83195528 70.70267333a28.18042496 25.03528825 0 0 0-9.30960467 1.59353659 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 36.06423497 15.09665623 28.18042496 25.03528825 0 0 0 16.94180276-32.08039449 28.18042496 25.03528825 0 0 0-6.62575434-9.22573468l37.82551056-68.85752581a28.18042496 25.03528825 0 0 0 12.28700044-1.25805469 28.18042496 25.03528825 0 0 0 8.93218826-4.69673783c14.59343435 6.12253248 26.54495386 11.11281671 35.14166122 15.34826717 12.91602778 6.37414341 17.48696012 10.60959485 18.87082027 15.30633169 1.38386015 4.61286685-0.12580547 13.50312062-7.42252263 29.10299872-5.45157063 11.61603859-14.46762889 28.09655497-25.11915823 47.51253164a28.18042496 25.03528825 0 0 0-10.52572486 1.59353659 28.18042496 25.03528825 0 0 0-16.98373826 32.038459 28.18042496 25.03528825 0 0 0 36.06423498 15.09665623 28.18042496 25.03528825 0 0 0 16.94180278-32.03845901 28.18042496 25.03528825 0 0 0-5.74511608-8.47090188c10.52572388-19.20630122 19.58371762-35.72875308 25.41270465-48.14155897 7.88380904-16.85793279 11.99345499-29.39654416 8.38703091-41.51580463-3.60642311-12.11926046-14.67730434-20.0030695-29.35460966-27.25785217-9.6450856-4.73867233-21.68047607-9.77089106-36.06423399-15.80955357a28.18042496 25.03528825 0 0 0-1.59353562-10.022502 28.18042496 25.03528825 0 0 0-6.08059796-8.7644483l22.14176246-40.38355541 122.61839638 52.96410227c22.14176247 9.6031511 31.2836262 33.12877372 20.54822685 52.8382968l-84.28966393 154.32137544c-10.77733482 19.66758857-37.23841869 27.80300855-59.38018118 18.24179293l-173.48574115-74.98005927c-22.14176247-9.5612156-31.32556167-33.12877372-20.54822687-52.83829679l84.28966395-154.27943995c7.38058716-13.54505513 22.22563246-21.59660511 37.951317-22.22563246h2.68384935z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitee",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M978.404275 409.561604H455.061338c-25.117645 0-45.499734 20.382089-45.499734 45.499734l-0.031997 113.781333c0 25.117645 20.350092 45.499734 45.499734 45.531731h318.594132c25.117645 0 45.499734 20.382089 45.499734 45.499735v22.749867a136.5312 136.5312 0 0 1-136.5312 136.5312H250.248539a45.499734 45.499734 0 0 1-45.499734-45.499734V341.343999a136.5312 136.5312 0 0 1 136.5312-136.5312L978.308284 204.780802c25.117645 0 45.499734-20.350092 45.499734-45.467738L1023.904009 45.531731h0.031997A45.499734 45.499734 0 0 0 978.468269 0h-0.031997L341.343999 0.031997C152.84967 0.031997 0.031997 152.84967 0.031997 341.343999v637.092273c0 25.117645 20.382089 45.499734 45.499734 45.499734h671.233072a307.171203 307.171203 0 0 0 307.171203-307.171203v-261.671468c0-25.117645-20.382089-45.499734-45.499734-45.499734z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-github",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 20.4425c-278.334 0-504 225.6345-504 504 0 222.6735 144.4275 411.6105 344.673 478.233 25.2 4.662 34.461-10.9305 34.461-24.255 0-12.0015-0.4725-51.723-0.693-93.8385-140.238 30.492-169.8165-59.472-169.8165-59.472-22.932-58.2435-55.944-73.7415-55.944-73.7415-45.738-31.2795 3.465-30.6495 3.465-30.6495 50.589 3.5595 77.238 51.9435 77.238 51.9435 44.9505 77.049 117.9045 54.7785 146.664 41.895 4.5045-32.571 17.577-54.81 32.004-67.41-111.951-12.726-229.635-55.9755-229.635-249.0705 0-55.0305 19.6875-99.981 51.9435-135.2925-5.229-12.6945-22.491-63.945 4.8825-133.371 0 0 42.336-13.545 138.6315 51.66 40.194-11.1825 83.3175-16.758 126.1575-16.9785 42.8085 0.189 85.9635 5.796 126.252 16.9785 96.201-65.205 138.4425-51.66 138.4425-51.66 27.4365 69.426 10.1745 120.6765 4.9455 133.371 32.319 35.28 51.8805 80.262 51.8805 135.2925 0 193.5675-117.9045 236.187-230.139 248.6925 18.081 15.6555 34.1775 46.305 34.1775 93.3345 0 67.4415-0.5985 121.716-0.5985 138.3165 0 13.419 9.072 29.1375 34.6185 24.192 200.151-66.717 344.3895-255.5595 344.3895-478.17 0-278.3655-225.666-504-504-504z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitlab",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M66.61375986 405.11600042L512.11376028 976.03999972 23.84576 621.65599958a39.312 39.312 0 0 1-14.07600042-43.30799944l56.8080007-173.26800028z m259.88400014 0h371.26800014L512.14975986 976.03999972zM215.11376 60.88400042l111.384 344.232H66.61375986l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z m742.49999972 344.232l56.8080007 173.2679993a39.23999986 39.23999986 0 0 1-14.07600042 43.30800042l-488.26800028 354.38400014 445.50000042-570.92400028z m0 0h-259.88400014l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-loading",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M843.307 742.24c0 3.217 2.607 5.824 5.824 5.824s5.824-2.607 5.824-5.824a5.823 5.823 0 0 0-5.824-5.824 5.823 5.823 0 0 0-5.824 5.824zM714.731 874.912c0 6.398 5.186 11.584 11.584 11.584s11.584-5.186 11.584-11.584-5.186-11.584-11.584-11.584-11.584 5.186-11.584 11.584zM541.419 943.2c0 9.614 7.794 17.408 17.408 17.408s17.408-7.794 17.408-17.408-7.794-17.408-17.408-17.408-17.408 7.794-17.408 17.408z m-186.56-9.152c0 12.795 10.373 23.168 23.168 23.168s23.168-10.373 23.168-23.168-10.373-23.168-23.168-23.168-23.168 10.373-23.168 23.168zM189.355 849.12c0 16.012 12.98 28.992 28.992 28.992s28.992-12.98 28.992-28.992-12.98-28.992-28.992-28.992-28.992 12.98-28.992 28.992zM74.731 704.736c0 19.228 15.588 34.816 34.816 34.816s34.816-15.588 34.816-34.816-15.588-34.816-34.816-34.816-34.816 15.588-34.816 34.816z m-43.008-177.28c0 22.41 18.166 40.576 40.576 40.576s40.576-18.166 40.576-40.576-18.166-40.576-40.576-40.576-40.576 18.166-40.576 40.576z m35.392-176.128c0 25.626 20.774 46.4 46.4 46.4s46.4-20.774 46.4-46.4c0-25.626-20.774-46.4-46.4-46.4-25.626 0-46.4 20.774-46.4 46.4z m106.176-142.016c0 28.843 23.381 52.224 52.224 52.224s52.224-23.381 52.224-52.224c0-28.843-23.381-52.224-52.224-52.224-28.843 0-52.224 23.381-52.224 52.224z m155.904-81.344c0 32.024 25.96 57.984 57.984 57.984s57.984-25.96 57.984-57.984-25.96-57.984-57.984-57.984-57.984 25.96-57.984 57.984z m175.104-5.056c0 35.24 28.568 63.808 63.808 63.808s63.808-28.568 63.808-63.808c0-35.24-28.568-63.808-63.808-63.808-35.24 0-63.808 28.568-63.808 63.808z m160.32 72.128c0 38.421 31.147 69.568 69.568 69.568s69.568-31.147 69.568-69.568-31.147-69.568-69.568-69.568-69.568 31.147-69.568 69.568z m113.92 135.488c0 41.638 33.754 75.392 75.392 75.392s75.392-33.754 75.392-75.392-33.754-75.392-75.392-75.392-75.392 33.754-75.392 75.392z m45.312 175.488c0 44.854 36.362 81.216 81.216 81.216s81.216-36.362 81.216-81.216c0-44.854-36.362-81.216-81.216-81.216-44.854 0-81.216 36.362-81.216 81.216z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-like",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4-20.5-21.5-48.1-33.4-77.9-33.4-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-0.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81z m636.4-353l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5c5.2-18.9 22.5-32.2 42.2-32.3 7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-unlike",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4-8.3-3.6-17.2-5.4-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81z m627.2 160.4H496.8l9.6 198.4c0.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7-19.6-0.1-36.9-13.4-42.2-32.3L329 459.2V172h415.4c20.4 9.2 33.6 29.4 33.6 51.8 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 19.1-11 37.5-28.8 48.4z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-heart",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-edit",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M723.2 917.76H286.72c-65.28 0-118.4-51.2-118.4-113.92V261.76C168.32 198.4 221.44 147.2 286.72 147.2h375.04c17.92 0 32 14.08 32 32s-14.08 32-32 32H286.72c-30.08 0-54.4 22.4-54.4 49.92v542.08c0 27.52 24.32 49.92 54.4 49.92H723.2c30.08 0 54.4-22.4 54.4-49.92V440.32c0-17.92 14.08-32 32-32s32 14.08 32 32v363.52c0 62.72-53.12 113.92-118.4 113.92z"}}),t._v(" "),n("path",{attrs:{d:"M499.84 602.24c-7.68 0-14.72-2.56-21.12-7.68-13.44-11.52-14.72-32-3.2-45.44L780.16 198.4c11.52-13.44 32-14.72 45.44-3.2s14.72 32 3.2 45.44L524.16 591.36c-6.4 7.04-15.36 10.88-24.32 10.88z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-delete",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M677.647059 256l0-90.352941c0-37.436235-23.461647-60.235294-61.771294-60.235294L408.094118 105.411765c-38.249412 0-61.741176 22.799059-61.741176 60.235294l0 90.352941-180.705882 0 0 60.235294 60.235294 0 0 512c0 54.272 33.972706 90.352941 90.352941 90.352941l391.529412 0c55.085176 0 90.352941-33.490824 90.352941-90.352941l0-512 60.235294 0 0-60.235294L677.647059 256zM406.588235 165.647059l210.823529 0-1.264941 90.352941L406.588235 256 406.588235 165.647059zM737.882353 858.352941l-451.764706 0 0-542.117647 451.764706 0L737.882353 858.352941zM466.823529 376.470588l-58.729412 0-1.505882 391.529412 60.235294 0L466.823529 376.470588zM617.411765 376.470588l-60.235294 0 0 391.529412 60.235294 0L617.411765 376.470588z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-reply",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M426.666667 384 426.666667 213.333333 128 512 426.666667 810.666667 426.666667 635.733333C640 635.733333 789.333333 704 896 853.333333 853.333333 640 725.333333 426.666667 426.666667 384Z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-error",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 720m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z"}}),t._v(" "),n("path",{attrs:{d:"M480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"}}),t._v(" "),n("path",{attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48z m-783.5-27.9L512 239.9l339.8 588.2H172.2z"}})])])},staticRenderFns:[]},void 0,m,void 0,!0,void 0,!1,void 0,void 0,void 0);const g=f({},void 0,e.extend({name:"TransitionFade",functional:!0,props:{group:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}},render:(e,{props:t,children:n})=>e(t.group?"TransitionGroup":"Transition",{props:{name:"fade",mode:"out-in",appear:!0,tag:t.tag}},n)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);const y=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{name:{type:String,required:!0},title:{type:String,required:!1,default:null}},render:(e,{props:t,data:n})=>e("svg",Object.assign(Object.assign({},n),{class:["vssue-icon",`vssue-icon-${t.name}`],attrs:{"aria-hidden":"true"}}),[e("title",t.title),e("use",{attrs:{"xlink:href":`#vssue-icon-${t.name}`}})])}),void 0,void 0,void 0,!1,void 0,void 0,void 0);var _=Object.prototype.hasOwnProperty,b=Array.isArray,w=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),C=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},s=0;s1;){var t=e.pop(),n=t.obj[t.prop];if(b(n)){for(var s=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=s.charAt(i):o<128?r+=w[o]:o<2048?r+=w[192|o>>6]+w[128|63&o]:o<55296||o>=57344?r+=w[224|o>>12]+w[128|o>>6&63]+w[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&s.charCodeAt(i)),r+=w[240|o>>18]+w[128|o>>12&63]+w[128|o>>6&63]+w[128|63&o])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n){if(b(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!_.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return b(t)&&!b(n)&&(r=C(t,s)),b(t)&&b(n)?(n.forEach((function(n,r){if(_.call(t,r)){var i=t[r];i&&"object"==typeof i&&n&&"object"==typeof n?t[r]=e(i,n,s):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var i=n[r];return _.call(t,r)?t[r]=e(t[r],i,s):t[r]=i,t}),r)}},$=String.prototype.replace,x=/%20/g,I={RFC1738:"RFC1738",RFC3986:"RFC3986"},T=k.assign({default:I.RFC3986,formatters:{RFC1738:function(e){return $.call(e,x,"+")},RFC3986:function(e){return String(e)}}},I),M=Object.prototype.hasOwnProperty,P={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},O=Array.isArray,D=Array.prototype.push,F=function(e,t){D.apply(e,O(t)?t:[t])},A=Date.prototype.toISOString,S=T.default,R={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:k.encode,encodeValuesOnly:!1,format:S,formatter:T.formatters[S],indices:!1,serializeDate:function(e){return A.call(e)},skipNulls:!1,strictNullHandling:!1},j=function e(t,n,s,r,i,o,a,c,u,l,p,d,h){var m,f=t;if("function"==typeof a?f=a(n,f):f instanceof Date?f=l(f):"comma"===s&&O(f)&&(f=f.join(",")),null===f){if(r)return o&&!d?o(n,R.encoder,h,"key"):n;f=""}if("string"==typeof(m=f)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||k.isBuffer(f))return o?[p(d?n:o(n,R.encoder,h,"key"))+"="+p(o(f,R.encoder,h,"value"))]:[p(n)+"="+p(String(f))];var v,g=[];if(void 0===f)return g;if(O(a))v=a;else{var y=Object.keys(f);v=c?y.sort(c):y}for(var _=0;_0&&/(\[[^[\]]*])/.exec(s),o=i?s.slice(0,i.index):s,a=[];if(o){if(!n.plainObjects&&L.call(Object.prototype,o)&&!n.allowPrototypes)return;a.push(o)}for(var c=0;n.depth>0&&null!==(i=r.exec(s))&&c=0;--r){var i,o=e[r];if("[]"===o&&n.parseArrays)i=[].concat(s);else{i=n.plainObjects?Object.create(null):{};var a="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&o!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=s:i[a]=s:i={0:s}}s=i}return s}(a,t,n)}},H=function(e,t){var n=function(e){if(!e)return N;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?N.charset:e.charset;return{allowDots:void 0===e.allowDots?N.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:N.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:N.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:N.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:N.comma,decoder:"function"==typeof e.decoder?e.decoder:N.decoder,delimiter:"string"==typeof e.delimiter||k.isRegExp(e.delimiter)?e.delimiter:N.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:N.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:N.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:N.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:N.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:N.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,s={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(l=l.split(",")),p.indexOf("[]=")>-1&&(l=E(l)?[l]:l),L.call(s,u)?s[u]=k.combine(s[u],l):s[u]=l}return s}(e,n):e,r=n.plainObjects?Object.create(null):{},i=Object.keys(s),o=0;o0?p+l:""};const U=(e,t)=>{return`${e}${V(t,{addQueryPrefix:!0})}`},B=(e,t)=>{return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`};var W=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4};var Y=function(e){return e instanceof Date},G=36e5,Q=6e4,J=2,X=/[T ]/,K=/:/,Z=/^(\d{2})$/,ee=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],te=/^(\d{4})/,ne=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],se=/^-(\d{2})$/,re=/^-?(\d{3})$/,ie=/^-?(\d{2})-?(\d{2})$/,oe=/^-?W(\d{2})$/,ae=/^-?W(\d{2})-?(\d{1})$/,ce=/^(\d{2}([.,]\d*)?)$/,ue=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,le=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,pe=/([Z+-].*)$/,de=/^(Z)$/,he=/^([+-])(\d{2})$/,me=/^([+-])(\d{2}):?(\d{2})$/;function fe(e,t,n){t=t||0,n=n||0;var s=new Date(0);s.setUTCFullYear(e,0,4);var r=7*t+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+r),s}var ve=function(e,t){if(Y(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?J:Number(n);var s=function(e){var t,n={},s=e.split(X);K.test(s[0])?(n.date=null,t=s[0]):(n.date=s[0],t=s[1]);if(t){var r=pe.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e),r=function(e,t){var n,s=ee[t],r=ne[t];if(n=te.exec(e)||r.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=Z.exec(e)||s.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(s.date,n),i=r.year,o=function(e,t){if(null===t)return null;var n,s,r,i;if(0===e.length)return(s=new Date(0)).setUTCFullYear(t),s;if(n=se.exec(e))return s=new Date(0),r=parseInt(n[1],10)-1,s.setUTCFullYear(t,r),s;if(n=re.exec(e)){s=new Date(0);var o=parseInt(n[1],10);return s.setUTCFullYear(t,0,o),s}if(n=ie.exec(e)){s=new Date(0),r=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return s.setUTCFullYear(t,r,a),s}if(n=oe.exec(e))return i=parseInt(n[1],10)-1,fe(t,i);if(n=ae.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return fe(t,i,c)}return null}(r.restDateString,i);if(o){var a,c=o.getTime(),u=0;if(s.time&&(u=function(e){var t,n,s;if(t=ce.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*G;if(t=ue.exec(e))return n=parseInt(t[1],10),s=parseFloat(t[2].replace(",",".")),n%24*G+s*Q;if(t=le.exec(e)){n=parseInt(t[1],10),s=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return n%24*G+s*Q+1e3*r}return null}(s.time)),s.timezone)a=function(e){var t,n;if(t=de.exec(e))return 0;if(t=he.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=me.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(s.timezone)*Q;else{var l=c+u,p=new Date(l);a=W(p);var d=new Date(l);d.setDate(p.getDate()+1);var h=W(d)-W(p);h>0&&(a+=h)}return new Date(c+u+a)}return new Date(e)};var ge=function(e){var t=ve(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var ye=function(e){var t=ve(e);return t.setHours(0,0,0,0),t},_e=6e4,be=864e5;var we=function(e,t){var n=ye(e),s=ye(t),r=n.getTime()-n.getTimezoneOffset()*_e,i=s.getTime()-s.getTimezoneOffset()*_e;return Math.round((r-i)/be)};var Ce=function(e){var t=ve(e);return we(t,ge(t))+1};var ke=function(e,t){var n=t&&Number(t.weekStartsOn)||0,s=ve(e),r=s.getDay(),i=(r=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1};var Ie=function(e){var t=xe(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),$e(n)},Te=6048e5;var Me=function(e){var t=ve(e),n=$e(t).getTime()-Ie(t).getTime();return Math.round(n/Te)+1};var Pe=function(e){if(Y(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")};var Oe=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];var De=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var s=Oe.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+s.join("|")+"|.)","g")};var Fe=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["AM","PM"],o=["am","pm"],a=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return s[e.getDay()]},dddd:function(e){return r[e.getDay()]},A:function(e){return e.getHours()/12>=1?i[1]:i[0]},a:function(e){return e.getHours()/12>=1?o[1]:o[0]},aa:function(e){return e.getHours()/12>=1?a[1]:a[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){c[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:c,formattingTokensRegExp:De(c)}},Ae={distanceInWords:function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,s){var r;return s=s||{},r="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),s.addSuffix?s.comparison>0?"in "+r:r+" ago":r}}}(),format:Fe()};var Se={M:function(e){return e.getMonth()+1},MM:function(e){return Le(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return Le(e.getDate(),2)},DDD:function(e){return Ce(e)},DDDD:function(e){return Le(Ce(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Me(e)},WW:function(e){return Le(Me(e),2)},YY:function(e){return Le(e.getFullYear(),4).substr(2)},YYYY:function(e){return Le(e.getFullYear(),4)},GG:function(e){return String(xe(e)).substr(2)},GGGG:function(e){return xe(e)},H:function(e){return e.getHours()},HH:function(e){return Le(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return Le(Se.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return Le(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Le(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Le(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Le(e.getMilliseconds(),3)},Z:function(e){return je(e.getTimezoneOffset(),":")},ZZ:function(e){return je(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function Re(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function je(e,t){t=t||"";var n=e>0?"-":"+",s=Math.abs(e),r=s%60;return n+Le(Math.floor(s/60),2)+t+Le(r,2)}function Le(e,t){for(var n=Math.abs(e).toString();n.length{return Ee(e,"YYYY-MM-DD HH:mm:ss")},qe=e=>{return(e.split("#")[0]||"").split("?")[0]||""},ze=e=>H(e,{ignoreQueryPrefix:!0});let He=class extends e{constructor(){super(...arguments),this.editMode=!1,this.editContent=this.comment.contentRaw,this.creatingReactions=[],this.isPutingComment=!1,this.isDeletingComment=!1}get currentUser(){return this.vssue.user?this.vssue.user.username:null}get content(){return this.comment.content}get author(){return this.comment.author}get createdAt(){return Ne(this.comment.createdAt)}get updatedAt(){return Ne(this.comment.updatedAt)}get showReactions(){return Boolean(this.vssue.API&&this.vssue.API.platform.meta.reactable&&this.comment.reactions&&!this.editMode)}get reactionKeys(){return["heart","like","unlike"]}get editContentRows(){return this.editContent.split("\n").length-1}get editInputRows(){return this.editContentRows<3?5:this.editContentRows+2}async postReaction({reaction:e}){try{if(this.creatingReactions.includes(e))return;this.creatingReactions.push(e),await this.vssue.postCommentReaction({commentId:this.comment.id,reaction:e})||this.vssue.$emit("error",new Error(this.vssue.$t("reactionGiven",{reaction:this.vssue.$t(e)})));const t=await this.vssue.getCommentReactions({commentId:this.comment.id});t&&(this.comment.reactions=t)}finally{this.creatingReactions.splice(this.creatingReactions.findIndex(t=>t===e),1)}}enterEdit(){this.editMode=!0,this.$nextTick(()=>{this.$refs.input.focus()})}resetEdit(){this.editMode=!1,this.editContent=this.comment.contentRaw}async putComment(){try{if(this.vssue.isPending)return;if(this.editContent!==this.comment.contentRaw){this.isPutingComment=!0,this.vssue.isUpdatingComment=!0;const e=await this.vssue.putComment({commentId:this.comment.id,content:this.editContent});e&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1,e)}this.editMode=!1}finally{this.isPutingComment=!1,this.vssue.isUpdatingComment=!1}}async deleteComment(){try{if(this.vssue.isPending)return;if(!window.confirm(this.vssue.$t("deleteConfirm")))return;this.isDeletingComment=!0,this.vssue.isUpdatingComment=!0,await this.vssue.deleteComment({commentId:this.comment.id})?(this.vssue.comments.count-=1,this.vssue.comments.data.length>1&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1),this.vssue.query.page>1&&this.vssue.query.page>Math.ceil(this.vssue.comments.count/this.vssue.query.perPage)?this.vssue.query.page-=1:await this.vssue.getComments()):this.vssue.$emit("error",new Error(this.vssue.$t("deleteFailed")))}finally{this.isDeletingComment=!1,this.vssue.isUpdatingComment=!1}}};t([d({type:Object,required:!0})],He.prototype,"comment",void 0),t([l()],He.prototype,"vssue",void 0),He=t([u({components:{VssueIcon:y}})],He);const Ve=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-comment",class:{"vssue-comment-edit-mode":e.editMode,"vssue-comment-disabled":e.isDeletingComment||e.isPutingComment}},[n("div",{staticClass:"vssue-comment-avatar"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.author.avatar,alt:e.author.username}})])]),e._v(" "),n("div",{staticClass:"vssue-comment-body"},[e._t("body",[n("div",{staticClass:"vssue-comment-header"},[n("span",{staticClass:"vssue-comment-author"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.author.username)+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-comment-created-at"},[e._v("\n "+e._s(e.createdAt)+"\n ")])]),e._v(" "),n("div",{staticClass:"vssue-comment-main"},[e.editMode?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editContent,expression:"editContent"}],ref:"input",staticClass:"vssue-edit-comment-input",attrs:{rows:e.editInputRows},domProps:{value:e.editContent},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.putComment():null},input:function(t){t.target.composing||(e.editContent=t.target.value)}}}):n("article",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.content)}})]),e._v(" "),n("div",{staticClass:"vssue-comment-footer"},[e.editMode?n("span",{staticClass:"vssue-comment-hint"},[e._v("\n "+e._s(e.vssue.$t("editMode"))+"\n ")]):e._e(),e._v(" "),e.showReactions?n("span",{staticClass:"vssue-comment-reactions"},e._l(e.reactionKeys,(function(t){return n("span",{key:t,staticClass:"vssue-comment-reaction",attrs:{title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)},on:{click:function(n){return e.postReaction({reaction:t})}}},[n("VssueIcon",{attrs:{name:e.creatingReactions.includes(t)?"loading":t,title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)}}),e._v(" "),n("span",{staticClass:"vssue-comment-reaction-number"},[e._v("\n "+e._s(e.comment.reactions[t])+"\n ")])],1)})),0):e._e(),e._v(" "),n("span",{staticClass:"vssue-comment-operations"},[e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation",class:{"vssue-comment-operation-muted":e.isPutingComment},attrs:{title:e.vssue.$t(e.isPutingComment?"loading":"submit")},on:{click:function(t){return e.putComment()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.isPutingComment,expression:"isPutingComment"}],attrs:{name:"loading",title:e.vssue.$t("loading")}}),e._v("\n\n "+e._s(e.vssue.$t("submit"))+"\n ")],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation vssue-comment-operation-muted",attrs:{title:e.vssue.$t("cancel")},on:{click:function(t){return e.resetEdit()}}},[e._v("\n "+e._s(e.vssue.$t("cancel"))+"\n ")]):e._e(),e._v(" "),e.comment.author.username===e.currentUser?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.enterEdit()}}},[n("VssueIcon",{attrs:{name:"edit",title:e.vssue.$t("edit")}})],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser||e.vssue.isAdmin?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.deleteComment()}}},[n("VssueIcon",{attrs:{name:e.isDeletingComment?"loading":"delete",title:e.vssue.$t(e.isDeletingComment?"loading":"delete")}})],1):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.vssue.$emit("reply-comment",e.comment)}}},[n("VssueIcon",{attrs:{name:"reply",title:e.vssue.$t("reply")}})],1)])])])],2)])},staticRenderFns:[]},void 0,He,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ue=class extends e{get disabled(){return this.vssue.isPending}get pageCount(){const e=Math.ceil(this.vssue.comments.count/this.vssue.comments.perPage);return e>1?e:1}get perPageOptions(){const e=[5,10,20,50];return!e.includes(this.vssue.options.perPage)&&this.vssue.options.perPage<100&&e.push(this.vssue.options.perPage),e.sort((e,t)=>e-t)}get page(){return this.vssue.query.page>this.pageCount?this.pageCount:this.vssue.query.page}set page(e){e>0&&e<=this.pageCount&&(this.vssue.query.page=e)}get perPage(){return this.vssue.query.perPage}set perPage(e){this.perPageOptions.includes(e)&&(this.vssue.query.perPage=e)}};t([l()],Ue.prototype,"vssue",void 0),Ue=t([u({components:{VssueIcon:y}})],Ue);const Be=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-pagination"},[n("div",{staticClass:"vssue-pagination-per-page"},[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.perPage,expression:"perPage"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.perPage=t.target.multiple?n:n[0]}}},e._l(e.perPageOptions,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",[e._v("\n "+e._s(e.vssue.$t("perPage"))+"\n ")])]),e._v(" "),e.vssue.API.platform.meta.sortable?n("span",{class:{"vssue-pagination-link":!0,disabled:e.disabled},attrs:{title:e.vssue.$t("sort")},on:{click:function(t){e.vssue.query.sort="asc"===e.vssue.query.sort?"desc":"asc"}}},[e._v("\n "+e._s("asc"===e.vssue.query.sort?"↑":"↓")+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"vssue-pagination-page"},[n("span",{class:{"vssue-pagination-link":!0,disabled:1===e.page||e.disabled},attrs:{title:e.vssue.$t("prev")},domProps:{textContent:e._s("<")},on:{click:function(t){e.page-=1}}}),e._v(" "),n("label",[n("span",[e._v("\n "+e._s(e.vssue.$t("page"))+"\n ")]),e._v(" "),n("select",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"},{name:"model",rawName:"v-model",value:e.page,expression:"page"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.page=t.target.multiple?n:n[0]}}},e._l(e.pageCount,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.pageCount<2,expression:"pageCount < 2"}],domProps:{textContent:e._s(e.page)}}),e._v(" "),n("span",{domProps:{textContent:e._s(" / "+e.pageCount+" ")}})]),e._v(" "),n("span",{class:{"vssue-pagination-link":!0,disabled:e.page===e.pageCount||e.disabled},attrs:{title:e.vssue.$t("next")},domProps:{textContent:e._s(">")},on:{click:function(t){e.page+=1}}})])])},staticRenderFns:[]},void 0,Ue,void 0,!1,void 0,!1,void 0,void 0,void 0);let We=class extends e{};t([l()],We.prototype,"vssue",void 0),We=t([u({components:{TransitionFade:g,VssueComment:Ve,VssuePagination:Be}})],We);const Ye=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue-comments"},[t("VssuePagination"),this._v(" "),t("TransitionFade",{attrs:{group:""}},this._l(this.vssue.comments.data,(function(e){return t("VssueComment",{key:e.id,attrs:{comment:e}})})),1),this._v(" "),t("VssuePagination",{directives:[{name:"show",rawName:"v-show",value:this.vssue.comments.data.length>5,expression:"vssue.comments.data.length > 5"}]})],1)},staticRenderFns:[]},void 0,We,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ge=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{type:{type:String,required:!1,default:"default"}},render:(e,{props:t,data:n,children:s})=>e("button",Object.assign(Object.assign({},n),{class:["vssue-button",`vssue-button-${t.type}`]}),s)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);let Qe=class extends e{constructor(){super(...arguments),this.content=""}get user(){return this.vssue.user}get platform(){return this.vssue.API&&this.vssue.API.platform.name}get isInputDisabled(){return this.loading||null===this.user||null===this.vssue.issue}get isSubmitDisabled(){return""===this.content||this.vssue.isPending||null===this.vssue.issue}get loading(){return this.vssue.isCreatingComment}get contentRows(){return this.content.split("\n").length-1}get inputRows(){return this.contentRows<3?5:this.contentRows+2}created(){this.vssue.$on("reply-comment",e=>{const t=e.contentRaw.replace(/\n/g,"\n> "),n=`@${e.author.username}\n\n> ${t}\n\n`;this.content=this.content.concat(n),this.focus()})}beforeDestroy(){this.vssue.$off("reply-comment")}focus(){this.$refs.input.focus()}async submit(){this.isSubmitDisabled||(await this.vssue.postComment({content:this.content}),this.content="",await this.vssue.getComments())}};t([l()],Qe.prototype,"vssue",void 0),Qe=t([u({components:{VssueButton:Ge,VssueIcon:y}})],Qe);const Je=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-new-comment"},[n("div",{staticClass:"vssue-comment-avatar"},[e.user?n("a",{attrs:{href:e.user.homepage,title:e.user.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.user.avatar,alt:e.user.username}})]):n("VssueIcon",{attrs:{name:e.platform.toLowerCase(),title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}})],1),e._v(" "),n("div",{staticClass:"vssue-new-comment-body"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"input",staticClass:"vssue-new-comment-input",attrs:{rows:e.inputRows,disabled:e.isInputDisabled,placeholder:e.vssue.$t(e.user?"placeholder":"noLoginPlaceHolder"),spellcheck:!1,"aria-label":"leave a comment"},domProps:{value:e.content},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.submit():null},input:function(t){t.target.composing||(e.content=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"vssue-new-comment-footer"},[e.user?n("span",{staticClass:"vssue-current-user"},[n("span",[e._v(e._s(e.vssue.$t("currentUser"))+" - "+e._s(e.user.username)+" - ")]),e._v(" "),n("a",{staticClass:"vssue-logout",on:{click:function(t){return e.vssue.logout()}}},[e._v("\n "+e._s(e.vssue.$t("logout"))+"\n ")])]):n("span",{staticClass:"vssue-current-user"},[e._v("\n "+e._s(e.vssue.$t("loginToComment",{platform:e.platform}))+"\n ")]),e._v(" "),n("div",{staticClass:"vssue-new-comment-operations"},[e.user?n("VssueButton",{staticClass:"vssue-button-submit-comment",attrs:{type:"primary",disabled:e.isSubmitDisabled},on:{click:function(t){return e.submit()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],attrs:{name:"loading"}}),e._v("\n\n "+e._s(e.vssue.$t(e.loading?"submitting":"submitComment"))+"\n ")],1):n("VssueButton",{staticClass:"vssue-button-login",attrs:{type:"primary",title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}},[e._v("\n "+e._s(e.vssue.$t("login",{platform:e.platform}))+"\n ")])],1)])])},staticRenderFns:[]},void 0,Qe,void 0,!1,void 0,!1,void 0,void 0,void 0);let Xe=class extends e{constructor(){super(...arguments),this.progress={show:!1,percent:0,timer:null,speed:200},this.alert={show:!1,message:null,timer:null}}onLoadingCommentsChange(e){this.vssue.comments&&(e?this.progressStart():this.progressDone())}created(){this.vssue.$on("error",e=>this.alertShow(e.message))}beforeDestroy(){this.vssue.$off("error"),null!==this.progress.timer&&window.clearTimeout(this.progress.timer),null!==this.alert.timer&&window.clearTimeout(this.alert.timer)}progressStart(){this.progress.show=!0,this.progress.percent=0,this.progress.timer=window.setInterval(()=>{this.progress.percent+=5,this.progress.percent>94&&null!==this.progress.timer&&window.clearInterval(this.progress.timer)},this.progress.speed)}progressDone(){this.progress.percent=100,null!==this.progress.timer&&window.clearTimeout(this.progress.timer),this.progress.timer=null,window.setTimeout(()=>{this.progress.show=!1},this.progress.speed)}alertShow(e){this.alert.show=!0,this.alert.message=e,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=window.setTimeout(()=>{this.alertHide()},3e3)}alertHide(){this.alert.show=!1,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=null}};t([l()],Xe.prototype,"vssue",void 0),t([h("vssue.isLoadingComments")],Xe.prototype,"onLoadingCommentsChange",null),Xe=t([u({components:{TransitionFade:g}})],Xe);const Ke=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-notice"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.progress.show,expression:"progress.show"}],staticClass:"vssue-progress",style:{width:e.progress.percent+"%",transition:"all "+e.progress.speed+"ms linear"}}),e._v(" "),n("TransitionFade",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.alert.show,expression:"alert.show"}],staticClass:"vssue-alert",domProps:{textContent:e._s(e.alert.message)},on:{click:function(t){return e.alertHide()}}})])],1)},staticRenderFns:[]},void 0,Xe,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ze=class extends e{get status(){return this.vssue.isFailed?"failed":this.vssue.isInitializing?"initializing":this.vssue.isIssueNotCreated&&!this.vssue.isCreatingIssue?this.vssue.isAdmin||!this.vssue.isLogined?"issueNotCreated":"failed":this.vssue.isLoginRequired?"loginRequired":!this.vssue.comments||this.vssue.isCreatingIssue?"loadingComments":0===this.vssue.comments.data.length?"noComments":null}handleClick(){"issueNotCreated"===this.status?this.vssue.postIssue():"loginRequired"===this.status&&this.vssue.login()}};t([l()],Ze.prototype,"vssue",void 0),Ze=t([u({components:{TransitionFade:g,VssueIcon:y}})],Ze);const et=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TransitionFade",[e.status?n("div",{key:e.status,staticClass:"vssue-status"},[["failed","loadingComments","initializing"].includes(e.status)?n("VssueIcon",{attrs:{name:"failed"===e.status?"error":"loading"}}):e._e(),e._v(" "),n("p",{staticClass:"vssue-status-info"},[n(["issueNotCreated","loginRequired"].includes(e.status)?"a":"span",{tag:"Component",on:{click:e.handleClick}},[e._v("\n "+e._s(e.vssue.$t(e.status))+"\n ")])],1)],1):e._e()])},staticRenderFns:[]},void 0,Ze,void 0,!1,void 0,!1,void 0,void 0,void 0);let tt=class extends e{};t([l()],tt.prototype,"vssue",void 0),tt=t([u({components:{TransitionFade:g,VssueIcon:y,VssueComments:Ye,VssueNewComment:Je,VssueNotice:Ke,VssueStatus:et}})],tt);const nt=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("TransitionFade",[this.vssue.isInitializing?t("VssueStatus"):t("div",{staticClass:"vssue-body"},[this.vssue.API?t("VssueNewComment"):this._e(),this._v(" "),t("VssueNotice"),this._v(" "),t("TransitionFade",[this.vssue.comments&&this.vssue.comments.data.length>0?t("VssueComments"):t("VssueStatus")],1)],1)],1)},staticRenderFns:[]},void 0,tt,void 0,!1,void 0,!1,void 0,void 0,void 0);let st=class extends e{};t([l()],st.prototype,"vssue",void 0),st=t([u],st);const rt=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-header"},[n("a",{staticClass:"vssue-header-comments-count",attrs:{href:e.vssue.issue?e.vssue.issue.link:null,target:"_blank",rel:"noopener noreferrer"}},[n("span",[e._v("\n "+e._s(e.vssue.comments?e.vssue.$tc("comments",e.vssue.comments.count,{count:e.vssue.comments.count}):e.vssue.$tc("comments",0))+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-header-powered-by"},[n("span",[e._v("Powered by")]),e._v(" "),e.vssue.API?n("span",[n("a",{attrs:{href:e.vssue.API.platform.link,title:e.vssue.API.platform.name+" API "+e.vssue.API.platform.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.vssue.API.platform.name)+"\n ")]),e._v(" "),n("span",[e._v("&")])]):e._e(),e._v(" "),n("a",{attrs:{href:"https://github.com/meteorlxy/vssue",title:"Vssue v"+e.vssue.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n Vssue\n ")])])])},staticRenderFns:[]},void 0,st,void 0,!1,void 0,!1,void 0,void 0,void 0); +/*! + * vue-i18n v8.15.3 + * (c) 2019 kazuya kawaguchi + * Released under the MIT License. + */ +var it=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function ot(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function at(e){return null!==e&&"object"==typeof e}var ct=Object.prototype.toString,ut="[object Object]";function lt(e){return ct.call(e)===ut}function pt(e){return null==e}function dt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,s=null;return 1===e.length?at(e[0])||Array.isArray(e[0])?s=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(at(e[1])||Array.isArray(e[1]))&&(s=e[1])),{locale:n,params:s}}function ht(e){return JSON.parse(JSON.stringify(e))}var mt=Object.prototype.hasOwnProperty;function ft(e,t){return mt.call(e,t)}function vt(e){for(var t=arguments,n=Object(e),s=1;s0;)t[n]=arguments[n+1];var s=this.$i18n;return s._t.apply(s,[e,s.locale,s._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],s=arguments.length-2;s-- >0;)n[s]=arguments[s+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}(kt),kt.mixin(yt),kt.directive("t",{bind:xt,update:It,unbind:Tt}),kt.component(_t.name,_t),kt.component($t.name,$t),kt.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Ft=function(){this._caches=Object.create(null)};Ft.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,s="";for(;n0)p--,l=qt,d[Rt]();else{if(p=0,void 0===n)return!1;if(!1===(n=Gt(n)))return!1;d[jt]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!h()){if(r=Yt(t),(i=(a=Bt[l])[r]||a.else||Ut)===Ut)return;if(l=i[0],(o=d[i[1]])&&(s=void 0===(s=i[2])?t:s,!1===o()))return;if(l===Vt)return c}}(e))&&(this._cache[e]=t),t||[]},Qt.prototype.getPathValue=function(e,t){if(!at(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var s=n.length,r=e,i=0;i/,Kt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Zt=/^@(?:\.([a-z]+))?:/,en=/[()]/g,tn={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()}},nn=new Ft,sn=function(e){var t=this;void 0===e&&(e={}),!kt&&"undefined"!=typeof window&&window.Vue&&Dt(window.Vue);var n=e.locale||"en-US",s=e.fallbackLocale||"en-US",r=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||nn,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Qt,this._dataListeners=[],this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._exist=function(e,n){return!(!e||!n)&&(!pt(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:s,messages:r,dateTimeFormats:i,numberFormats:o})},rn={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0}};sn.prototype._checkLocaleMessage=function(e,t,n){var s=function(e,t,n,r){if(lt(n))Object.keys(n).forEach((function(i){var o=n[i];lt(o)?(r.push(i),r.push("."),s(e,t,o,r),r.pop(),r.pop()):(r.push(i),s(e,t,o,r),r.pop())}));else if(Array.isArray(n))n.forEach((function(n,i){lt(n)?(r.push("["+i+"]"),r.push("."),s(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(e,t,n,r),r.pop())}));else if("string"==typeof n){if(Xt.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?ot(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};s(t,e,n,[])},sn.prototype._initVM=function(e){var t=kt.config.silent;kt.config.silent=!0,this._vm=new kt({data:e}),kt.config.silent=t},sn.prototype.destroyVM=function(){this._vm.$destroy()},sn.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},sn.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},sn.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)kt.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},sn.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},rn.vm.get=function(){return this._vm},rn.messages.get=function(){return ht(this._getMessages())},rn.dateTimeFormats.get=function(){return ht(this._getDateTimeFormats())},rn.numberFormats.get=function(){return ht(this._getNumberFormats())},rn.availableLocales.get=function(){return Object.keys(this.messages).sort()},rn.locale.get=function(){return this._vm.locale},rn.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},rn.fallbackLocale.get=function(){return this._vm.fallbackLocale},rn.fallbackLocale.set=function(e){this._vm.$set(this._vm,"fallbackLocale",e)},rn.formatFallbackMessages.get=function(){return this._formatFallbackMessages},rn.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},rn.missing.get=function(){return this._missing},rn.missing.set=function(e){this._missing=e},rn.formatter.get=function(){return this._formatter},rn.formatter.set=function(e){this._formatter=e},rn.silentTranslationWarn.get=function(){return this._silentTranslationWarn},rn.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},rn.silentFallbackWarn.get=function(){return this._silentFallbackWarn},rn.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},rn.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},rn.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},rn.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},rn.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var s=this._getMessages();Object.keys(s).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,s[e])}))}},sn.prototype._getMessages=function(){return this._vm.messages},sn.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},sn.prototype._getNumberFormats=function(){return this._vm.numberFormats},sn.prototype._warnDefault=function(e,t,n,s,r){if(!pt(n))return n;if(this._missing){var i=this._missing.apply(null,[e,t,s,r]);if("string"==typeof i)return i}if(this._formatFallbackMessages){var o=dt.apply(void 0,r);return this._render(t,"string",o.params,t)}return t},sn.prototype._isFallbackRoot=function(e){return!e&&!pt(this._root)&&this._fallbackRoot},sn.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},sn.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},sn.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},sn.prototype._interpolate=function(e,t,n,s,r,i,o){if(!t)return null;var a,c=this._path.getPathValue(t,n);if(Array.isArray(c)||lt(c))return c;if(pt(c)){if(!lt(t))return null;if("string"!=typeof(a=t[n]))return null}else{if("string"!=typeof c)return null;a=c}return(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,s,"raw",i,o)),this._render(a,r,i,n)},sn.prototype._link=function(e,t,n,s,r,i,o){var a=n,c=a.match(Kt);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],p=l.match(Zt),d=p[0],h=p[1],m=l.replace(d,"").replace(en,"");if(o.includes(m))return a;o.push(m);var f=this._interpolate(e,t,m,s,"raw"===r?"string":r,"raw"===r?void 0:i,o);if(this._isFallbackRoot(f)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;f=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,s,r,i)}f=this._warnDefault(e,m,f,s,Array.isArray(i)?i:[i]),this._modifiers.hasOwnProperty(h)?f=this._modifiers[h](f):tn.hasOwnProperty(h)&&(f=tn[h](f)),o.pop(),a=f?a.replace(l,f):a}return a},sn.prototype._render=function(e,t,n,s){var r=this._formatter.interpolate(e,n,s);return r||(r=nn.interpolate(e,n,s)),"string"===t?r.join(""):r},sn.prototype._translate=function(e,t,n,s,r,i,o){var a=this._interpolate(t,e[t],s,r,i,o,[s]);return pt(a)&&pt(a=this._interpolate(n,e[n],s,r,i,o,[s]))?null:a},sn.prototype._t=function(e,t,n,s){for(var r,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var a=dt.apply(void 0,i),c=a.locale||t,u=this._translate(n,c,this.fallbackLocale,e,s,"string",a.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return this._warnDefault(c,e,u,s,i)},sn.prototype.t=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},sn.prototype._i=function(e,t,n,s,r){var i=this._translate(n,t,this.fallbackLocale,e,s,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,s,[r])},sn.prototype.i=function(e,t,n){return e?("string"!=typeof t&&(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},sn.prototype._tc=function(e,t,n,s,r){for(var i,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===r&&(r=1);var c={count:r,n:r},u=dt.apply(void 0,o);return u.params=Object.assign(c,u.params),o=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,s].concat(o)),r)},sn.prototype.fetchChoice=function(e,t){if(!e&&"string"!=typeof e)return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},sn.prototype.getChoiceIndex=function(e,t){var n,s;return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[e,t]):(n=e,s=t,n=Math.abs(n),2===s?n?n>1?1:0:1:n?Math.min(n,2):0)},sn.prototype.tc=function(e,t){for(var n,s=[],r=arguments.length-2;r-- >0;)s[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(s))},sn.prototype._te=function(e,t,n){for(var s=[],r=arguments.length-3;r-- >0;)s[r]=arguments[r+3];var i=dt.apply(void 0,s).locale||t;return this._exist(n[i],e)},sn.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},sn.prototype.getLocaleMessage=function(e){return ht(this._vm.messages[e]||{})},sn.prototype.setLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,t)},sn.prototype.mergeLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,vt({},this._vm.messages[e]||{},t))},sn.prototype.getDateTimeFormat=function(e){return ht(this._vm.dateTimeFormats[e]||{})},sn.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t)},sn.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,vt(this._vm.dateTimeFormats[e]||{},t))},sn.prototype._localizeDateTime=function(e,t,n,s,r){var i=t,o=s[i];if((pt(o)||pt(o[r]))&&(o=s[i=n]),pt(o)||pt(o[r]))return null;var a=o[r],c=i+"__"+r,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(i,a)),u.format(e)},sn.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var s=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return s||""},sn.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:at(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._d(e,s,r)},sn.prototype.getNumberFormat=function(e){return ht(this._vm.numberFormats[e]||{})},sn.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t)},sn.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,vt(this._vm.numberFormats[e]||{},t))},sn.prototype._getNumberFormatter=function(e,t,n,s,r,i){var o=t,a=s[o];if((pt(a)||pt(a[r]))&&(a=s[o=n]),pt(a)||pt(a[r]))return null;var c,u=a[r];if(i)c=new Intl.NumberFormat(o,Object.assign({},u,i));else{var l=o+"__"+r;(c=this._numberFormatters[l])||(c=this._numberFormatters[l]=new Intl.NumberFormat(o,u))}return c},sn.prototype._n=function(e,t,n,s){if(!sn.availabilities.numberFormat)return"";if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},s))}return i||""},sn.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null,i=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:at(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var s;return it.includes(n)?Object.assign({},e,((s={})[n]=t[0][n],s)):e}),null)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._n(e,s,r,i)},sn.prototype._ntp=function(e,t,n,s){if(!sn.availabilities.numberFormat)return[];if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,s)}return i||[]},Object.defineProperties(sn.prototype,rn),Object.defineProperty(sn,"availabilities",{get:function(){if(!Jt){var e="undefined"!=typeof Intl;Jt={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Jt}}),sn.install=Dt,sn.version="8.15.3";const on={login:"Login with {platform}",logout:"Logout",currentUser:"Current User",loading:"Loading",submit:"Submit",submitting:"Submitting",submitComment:"Submit Comment",cancel:"Cancel",edit:"Edit",editMode:"Edit Mode",delete:"Delete",reply:"Reply",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comments per page",sort:"Click to change the sort direction",page:"Page",prev:"Previous Page",next:"Next Page",comments:"Comments | {count} Comment | {count} Comments",loginToComment:"Login with {platform} account to leave a comment",placeholder:"Leave a comment. Styling with Markdown is supported. Ctrl + Enter to submit.",noLoginPlaceHolder:"Login to leave a comment. Styling with Markdown is supported. ",failed:"Failed to load comments",initializing:"Initializing...",issueNotCreated:"Click to create issue",loadingComments:"Loading comments...",loginRequired:"Login to view comments",noComments:"No comments yet. Leave the first comment !",reactionGiven:"Already given '{reaction}' reaction",deleteConfirm:"Confirm to delete this comment ?",deleteFailed:"Failed to delete comment"},an={login:"使用 {platform} 登录",logout:"退出登录",currentUser:"当前用户",loading:"加载中",submit:"提交",submitting:"发表中",submitComment:"发表评论",cancel:"取消",edit:"编辑",editMode:"编辑模式",delete:"删除",reply:"回复",heart:"喜欢",like:"赞",unlike:"踩",perPage:"每页评论数",sort:"点击改变排序方式",page:"页数",prev:"上一页",next:"下一页",comments:"评论 | {count} 条评论 | {count} 条评论",loginToComment:"使用 {platform} 帐号登录后发表评论",placeholder:"留下你的评论丨支持 Markdown 语法丨Ctrl + Enter 发表评论",noLoginPlaceHolder:"登录后才能发表评论丨支持 Markdown 语法",failed:"评论加载失败",initializing:"正在初始化...",issueNotCreated:"点击创建 Issue",loadingComments:"正在加载评论...",loginRequired:"登录后查看评论",noComments:"还没有评论,来发表第一条评论吧!",reactionGiven:"已经添加过 '{reaction}' 了",deleteConfirm:"确认要删除该评论吗?",deleteFailed:"评论删除失败"},cn={login:"Entrar com {platform}",logout:"Sair",currentUser:"Usuário Atual",loading:"Carregando",submit:"Enviar",submitting:"Enviando",submitComment:"Enviar Comentário",cancel:"Cancelar",edit:"Editar",editMode:"Modo de Edição",delete:"Apagar",reply:"Responder",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comentários por página",sort:"Clique para alterar a ordenação",page:"Página",prev:"Página Anterior",next:"Próxima Página",comments:"Comentários | {count} Comentário | {count} Comentários",loginToComment:"Entre com uma conta {platform} para deixar um comentário",placeholder:"Deixe um comentário. Estilos com Markdown suportados. Ctrl + Enter para enviar.",noLoginPlaceHolder:"Entre para deixar um comentário. Estilos com Markdown suportados. ",failed:"Falha ao carregar comentários",initializing:"Inicializando...",issueNotCreated:"Click to create issue",loadingComments:"Carregando comentários...",loginRequired:"Entrar para visualizar comentários",noComments:"Nenhum comentário. Deixe o primeiro comentário!",reactionGiven:"Já reagiu com '{reaction}'",deleteConfirm:"Apagar este comentário?",deleteFailed:"Falha ao apagar comentário"},un={login:"{platform} でログイン",logout:"ログアウト",currentUser:"現在のユーザー",loading:"読み込み中",submit:"送信",submitting:"送信中",submitComment:"コメントを送信",cancel:"キャンセル",edit:"編集",editMode:"編集モード",delete:"削除",reply:"返信",heart:"ハート",like:"高評価",unlike:"低評価",perPage:"コメント/ページ",sort:"並び順を変更するにはクリックしてください",page:"ページ",prev:"前のページ",next:"次のページ",comments:"コメント | {count} コメント | {count} コメント",loginToComment:"コメントを残すには {platform} アカウントでログインしてください。",placeholder:"コメントを残してください。Markdown 記法をサポートしています。 Ctrl + Enter で送信できます。",noLoginPlaceHolder:"コメントを残すにはログインしてください。マークダウン記法をサポートしています。",failed:"コメントの読み込みに失敗しました",initializing:"初期化中...",issueNotCreated:"Click to create issue",loadingComments:"コメントの読み込み中...",loginRequired:"コメントを見るにはログインしてください",noComments:"まだコメントがありません。最初のコメントを残しましょう!",reactionGiven:"既に '{reaction}' のリアクションをしています",deleteConfirm:"本当にコメントを削除してもいいですか?",deleteFailed:"コメントの削除に失敗しました"},ln={login:"התחברו עם {platform}",logout:"התנתקו",currentUser:"משתמש/ת נוכחי/ת",loading:"טוען",submit:"שליחה",submitting:"שולח",submitComment:"שליחת תגובה",cancel:"ביטל",edit:"עריכה",editMode:"מצב עריכה",delete:"מחיקה",reply:"תשובה",heart:"לב",like:"לייק",unlike:"אנלייק",perPage:"תגובות לדף",sort:"לחצו כדי לשנות את כיוון המיון",page:"דף",prev:"הדף הקודם",next:"הדף הבא",comments:"תגובות | {count} תגובה | {count} תגובות",loginToComment:"התחברו עם חשבון {platform} כדי להשאיר תגובה",placeholder:"השאירו תגובה. יש תמיכה בעיצוב בעזרת Markdown. Ctrl + Enter כדי לשלוח.",noLoginPlaceHolder:"התחברו כדי להשאיר תגובה. יש תמיכה בעיצוב בעזרת Markdown. ",failed:"כשלון בטעינת התגובות",initializing:"מאתחל...",issueNotCreated:"לחצו ליצירת issue",loadingComments:"טוען תגובות...",loginRequired:"התחברו כדי לצפות בתגובות",noComments:"עדיין אין תגובות. השאירו תגובה ראשונה !",reactionGiven:"כבר ניתן חיווי '{reaction}'",deleteConfirm:"בטוחים במחיקת התגובה ?",deleteFailed:"כשלון במחיקת התגובה"};Object.prototype.hasOwnProperty.call(e,"$i18n")||e.use(sn);const pn=new sn({locale:"en",fallbackLocale:"en",messages:{en:on,"en-US":on,zh:an,"zh-CN":an,pt:cn,"pt-BR":cn,ja:un,"ja-JP":un,he:ln,"he-IL":ln}});let dn=class extends e{constructor(){super(...arguments),this.title=e=>`${e.prefix}${document.title}`,this.issueId=null,this.options=null,this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:10,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1}get version(){return"1.4.8"}get issueTitle(){return null===this.options?"":"function"==typeof this.title?this.title(this.options):`${this.options.prefix}${this.title}`}get isPending(){return this.isLoadingComments||this.isCreatingComment||this.isUpdatingComment}get isLogined(){return null!==this.accessToken&&null!==this.user}get isAdmin(){return null!==this.options&&null!==this.accessToken&&null!==this.user&&(this.user.username===this.options.owner||this.options.admins.includes(this.user.username))}get accessTokenKey(){return this.API?`Vssue.${this.API.platform.name.toLowerCase()}.access_token`:""}onQueryPerPageChange(){this.query.page=1,this.getComments()}onQueryChange(){this.getComments()}setOptions(e){this.options=Object.assign({labels:["Vssue"],state:"Vssue",prefix:"[Vssue]",admins:[],perPage:10,proxy:e=>`https://cors-anywhere.azm.workers.dev/${e}`,issueContent:({url:e})=>e,autoCreateIssue:!1},e);const t=["api","owner","repo","clientId"];for(const e of t)this.options[e]||console.warn(`[Vssue] the option '${e}' is required`);if(this.options.locale)this.$i18n.locale=this.options.locale;else{const e=Object.keys(this.$i18n.messages),t=window.navigator.languages;this.$i18n.locale=t.filter(t=>e.includes(t)).shift()||"en"}}async init(){try{await this.initStore(),await this.initComments()}catch(e){e.response&&[401,403].includes(e.response.status)?this.isLoginRequired=!0:this.isFailed=!0,console.error(e)}}async initStore(){try{if(!this.options)throw new Error("Options are required to initialize Vssue");this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:this.options.perPage,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1;const e=this.options.api;this.API=new e({baseURL:this.options.baseURL,labels:this.options.labels,state:this.options.state,owner:this.options.owner,repo:this.options.repo,clientId:this.options.clientId,clientSecret:this.options.clientSecret,proxy:this.options.proxy}),await this.handleAuth()}finally{this.isInitializing=!1}}async initComments(){if(this.API&&this.options)if(this.issueId){const[e,t]=await Promise.all([this.API.getIssue({accessToken:this.accessToken,issueId:this.issueId}),this.API.getComments({accessToken:this.accessToken,issueId:this.issueId,query:this.query})]);this.issue=e,this.comments=t}else this.issue=await this.API.getIssue({accessToken:this.accessToken,issueTitle:this.issueTitle}),null===this.issue?(this.isIssueNotCreated=!0,this.options.autoCreateIssue&&await this.postIssue()):await this.getComments()}async postIssue(){if(this.API&&this.options&&!this.issue&&!this.issueId&&(this.isLogined||this.login(),this.isAdmin))try{this.isCreatingIssue=!0;const e=await this.API.postIssue({title:this.issueTitle,content:await this.options.issueContent({options:this.options,url:qe(window.location.href)}),accessToken:this.accessToken});this.issue=e,this.isIssueNotCreated=!1,await this.getComments()}catch(e){this.isFailed=!0}finally{this.isCreatingIssue=!1}}async getComments(){try{if(!this.API||!this.issue||this.isLoadingComments)return;this.isLoadingComments=!0;const e=await this.API.getComments({accessToken:this.accessToken,issueId:this.issue.id,query:this.query});return this.comments=e,this.query.page!==e.page&&(this.query.page=e.page),this.query.perPage!==e.perPage&&(this.query.perPage=e.perPage),e}catch(e){if(!e.response||![401,403].includes(e.response.status)||this.isLogined)throw this.$emit("error",e),e;this.isLoginRequired=!0}finally{this.isLoadingComments=!1}}async postComment({content:e}){try{if(!this.API||!this.issue||this.isCreatingComment)return;return this.isCreatingComment=!0,await this.API.postComment({accessToken:this.accessToken,content:e,issueId:this.issue.id})}catch(e){throw this.$emit("error",e),e}finally{this.isCreatingComment=!1}}async putComment({commentId:e,content:t}){try{if(!this.API||!this.issue)return;return await this.API.putComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,content:t})}catch(e){throw this.$emit("error",e),e}}async deleteComment({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.deleteComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async getCommentReactions({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.getCommentReactions({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async postCommentReaction({commentId:e,reaction:t}){try{if(!this.API||!this.issue)return!1;return await this.API.postCommentReaction({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,reaction:t})}catch(e){throw this.$emit("error",e),e}}login(){this.API&&this.API.redirectAuth()}logout(){this.setAccessToken(null),this.user=null}async handleAuth(){if(!this.API)return;const e=await this.API.handleAuth();e?(this.setAccessToken(e),this.user=await this.API.getUser({accessToken:e})):this.getAccessToken()?this.user=await this.API.getUser({accessToken:this.accessToken}):(this.setAccessToken(null),this.user=null)}getAccessToken(){return this.accessToken=window.localStorage.getItem(this.accessTokenKey),this.accessToken}setAccessToken(e){null===e?window.localStorage.removeItem(this.accessTokenKey):window.localStorage.setItem(this.accessTokenKey,e),this.accessToken=e}};t([h("query.perPage")],dn.prototype,"onQueryPerPageChange",null),t([h("query.page"),h("query.sort")],dn.prototype,"onQueryChange",null),dn=t([u({i18n:pn})],dn);var hn=dn;let mn=class extends e{constructor(){super(...arguments),this.vssue=new hn}onOptionsChange(e){this.vssue.setOptions(e)}mounted(){null!==this.title&&(this.vssue.title=this.title),null!==this.issueId&&(this.vssue.issueId=this.issueId),this.vssue.setOptions(this.options),this.vssue.init()}};var fn;t([d({type:[String,Function],required:!1,default:null})],mn.prototype,"title",void 0),t([d({type:[String,Number],required:!1,default:null})],mn.prototype,"issueId",void 0),t([d({type:Object,required:!1,default:()=>({})})],mn.prototype,"options",void 0),t([(fn="vssue",i((function(e,t){var n=e.provide;if("function"!=typeof n||!n.managed){var s=e.provide;(n=e.provide=function(){var e=Object.create(("function"==typeof s?s.call(this):s)||null);for(var t in n.managed)e[n.managed[t]]=this[t];return e}).managed={}}n.managed[t]=fn||t})))],mn.prototype,"vssue",void 0),t([h("options",{deep:!0})],mn.prototype,"onOptionsChange",null),mn=t([u({components:{Iconfont:v,VssueBody:nt,VssueHeader:rt}})],mn);const vn=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue"},[t("Iconfont"),this._v(" "),t("VssueHeader"),this._v(" "),t("VssueBody")],1)},staticRenderFns:[]},void 0,mn,void 0,!1,void 0,!1,void 0,void 0,void 0),gn={get version(){return"1.4.8"},installed:!1,install(e,t){if(this.installed)return!1;this.installed=!0,e.component("Vssue",{functional:!0,props:{title:{type:String,required:!1,default:void 0},issueId:{type:[Number,String],required:!1,default:void 0},options:{type:Object,required:!1,default:void 0}},render:(e,{data:n,props:s})=>e(vn,Object.assign(Object.assign({},n),{props:{title:s.title,issueId:s.issueId,options:Object.assign({},t,s.options)}}))})},VssueComponent:vn};var yn=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([n]):r[t]?r[t]+", "+n:n}})),r):r}(i.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};!function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(Sn("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,r),i=null}},i.onabort=function(){i&&(n(Sn("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Sn("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Sn(t,e,"ECONNABORTED",i)),i=null},In.isStandardBrowserEnv()){var p=(e.withCredentials||Ln(l))&&e.xsrfCookieName?Rn.read(e.xsrfCookieName):void 0;p&&(r[e.xsrfHeaderName]=p)}if("setRequestHeader"in i&&In.forEach(r,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete r[t]:i.setRequestHeader(t,e)})),In.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),s||(s=null),i.send(s)}))},Nn={"Content-Type":"application/x-www-form-urlencoded"};function qn(e,t){!In.isUndefined(e)&&In.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var zn,Hn={adapter:("undefined"!=typeof XMLHttpRequest?zn=En:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(zn=En),zn),transformRequest:[function(e,t){return An(t,"Accept"),An(t,"Content-Type"),In.isFormData(e)||In.isArrayBuffer(e)||In.isBuffer(e)||In.isStream(e)||In.isFile(e)||In.isBlob(e)?e:In.isArrayBufferView(e)?e.buffer:In.isURLSearchParams(e)?(qn(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):In.isObject(e)?(qn(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Hn.headers={common:{Accept:"application/json, text/plain, */*"}},In.forEach(["delete","get","head"],(function(e){Hn.headers[e]={}})),In.forEach(["post","put","patch"],(function(e){Hn.headers[e]=In.merge(Nn)}));var Vn=Hn;function Un(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Bn=function(e){return Un(e),e.headers=e.headers||{},e.data=Dn(e.data,e.headers,e.transformRequest),e.headers=In.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),In.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Vn.adapter)(e).then((function(t){return Un(e),t.data=Dn(t.data,t.headers,e.transformResponse),t}),(function(t){return Fn(t)||(Un(e),t&&t.response&&(t.response.data=Dn(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Wn=function(e,t){t=t||{};var n={},s=["url","method","data"],r=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function a(e,t){return In.isPlainObject(e)&&In.isPlainObject(t)?In.merge(e,t):In.isPlainObject(t)?In.merge({},t):In.isArray(t)?t.slice():t}function c(s){In.isUndefined(t[s])?In.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(e[s],t[s])}In.forEach(s,(function(e){In.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),In.forEach(r,c),In.forEach(i,(function(s){In.isUndefined(t[s])?In.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(void 0,t[s])})),In.forEach(o,(function(s){s in t?n[s]=a(e[s],t[s]):s in e&&(n[s]=a(void 0,e[s]))}));var u=s.concat(r).concat(i).concat(o),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return In.forEach(l,c),n};function Yn(e){this.defaults=e,this.interceptors={request:new On,response:new On}}Yn.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Wn(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Bn,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Yn.prototype.getUri=function(e){return e=Wn(this.defaults,e),Mn(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},In.forEach(["delete","get","head","options"],(function(e){Yn.prototype[e]=function(t,n){return this.request(Wn(n||{},{method:e,url:t,data:(n||{}).data}))}})),In.forEach(["post","put","patch"],(function(e){Yn.prototype[e]=function(t,n,s){return this.request(Wn(s||{},{method:e,url:t,data:n}))}}));var Gn=Yn;function Qn(e){this.message=e}Qn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Qn.prototype.__CANCEL__=!0;var Jn=Qn;function Xn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Jn(e),t(n.reason))}))}Xn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Xn.source=function(){var e;return{token:new Xn((function(t){e=t})),cancel:e}};var Kn=Xn;function Zn(e){var t=new Gn(e),n=yn(Gn.prototype.request,t);return In.extend(n,Gn.prototype,t),In.extend(n,t),n}var es=Zn(Vn);es.Axios=Gn,es.create=function(e){return Zn(Wn(es.defaults,e))},es.Cancel=Jn,es.CancelToken=Kn,es.isCancel=Fn,es.all=function(e){return Promise.all(e)},es.spread=function(e){return function(t){return e.apply(null,t)}},es.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var ts=es,ns=es;ts.default=ns;var ss=ts;function rs(e){return{username:e.login,avatar:e.avatar_url,homepage:e.html_url}}function is(e){return{id:e.number,title:e.title,content:e.body,link:e.html_url}}function os(e){return{id:e.id,content:e.body_html||"",contentRaw:e.body,author:rs(e.user),createdAt:e.created_at,updatedAt:e.updated_at||"",reactions:null}}class as{constructor({baseURL:e="https://gitee.com",owner:t,repo:n,labels:s,clientId:r,clientSecret:i,state:o,proxy:a}){if(void 0===i||void 0===a)throw new Error("clientSecret and proxy is required for Gitee V5");this.baseURL=e,this.owner=t,this.repo=n,this.labels=s,this.clientId=r,this.clientSecret=i,this.state=o,this.proxy=a,this.$http=ss.create({baseURL:B(e,"api/v5")}),this.$http.interceptors.response.use(e=>e,e=>(e.response.data&&e.response.data.message&&(e.message=e.response.data.message),Promise.reject(e)))}get platform(){return{name:"Gitee",link:this.baseURL,version:"v5",meta:{reactable:!1,sortable:!1}}}redirectAuth(){window.location.href=U(B(this.baseURL,"oauth/authorize"),{client_id:this.clientId,redirect_uri:window.location.href,scope:"user_info issues notes",response_type:"code",state:this.state})}async handleAuth(){const e=ze(window.location.search);if(e.code){if(e.state!==this.state)return null;const t=e.code;delete e.code,delete e.state;const n=U(qe(window.location.href),e)+window.location.hash;return window.history.replaceState(null,"",n),await this.getAccessToken({code:t})}return null}async getAccessToken({code:e}){const t=B(this.baseURL,"oauth/token"),n="function"==typeof this.proxy?this.proxy(t):this.proxy,{data:s}=await this.$http.post(n,{client_id:this.clientId,client_secret:this.clientSecret,code:e,grant_type:"authorization_code",redirect_uri:window.location.href});return s.access_token}async getUser({accessToken:e}){const{data:t}=await this.$http.get("user",{params:{access_token:e}});return rs(t)}async getIssue({accessToken:e,issueId:t,issueTitle:n}){const s={params:{timestamp:Date.now()}};if(e&&(s.params.access_token=e),!t){Object.assign(s.params,{q:n,repo:`${this.owner}/${this.repo}`,per_page:1});const{data:e}=await this.$http.get("search/issues",s);return e.map(is).find(e=>e.title===n)||null}try{const{data:e}=await this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}`,s);return is(e)}catch(e){if(e.response&&404===e.response.status)return null;throw e}}async postIssue({accessToken:e,title:t,content:n}){const{data:s}=await this.$http.post(`repos/${this.owner}/issues`,{access_token:e,repo:this.repo,title:t,body:n,labels:this.labels.join(",")});return is(s)}async getComments({accessToken:e,issueId:t,query:{page:n=1,perPage:s=10}={}}){const r={params:{page:n,per_page:s,timestamp:Date.now()},headers:{Accept:["application/vnd.gitee.html+json"]}};e&&(r.params.access_token=e);const i=await this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}/comments`,r);return{count:Number(i.headers.total_count),page:n,perPage:s,data:i.data.map(os)}}async postComment({accessToken:e,issueId:t,content:n}){const{data:s}=await this.$http.post(`repos/${this.owner}/${this.repo}/issues/${t}/comments`,{body:n,access_token:e},{headers:{Accept:["application/vnd.gitee.html+json"]}});return os(s)}async putComment({accessToken:e,commentId:t,content:n}){const{data:s}=await this.$http.patch(`repos/${this.owner}/${this.repo}/issues/comments/${t}`,{body:n,access_token:e},{headers:{Accept:["application/vnd.gitee.html+json"]}});return os(s)}async deleteComment({accessToken:e,commentId:t}){const{status:n}=await this.$http.delete(`repos/${this.owner}/${this.repo}/issues/comments/${t}`,{params:{access_token:e}});return 204===n}async getCommentReactions(e){throw new Error("501 Not Implemented")}async postCommentReaction(e){throw new Error("501 Not Implemented")}}"undefined"!=typeof window&&window.Vue&&window.Vue.use(gn,{api:as})}(Vue); \ No newline at end of file diff --git a/assets/lib/vssue/vssue.github.min.js b/assets/lib/vssue/vssue.github.min.js new file mode 100644 index 000000000..6a3a445ef --- /dev/null +++ b/assets/lib/vssue/vssue.github.min.js @@ -0,0 +1,30 @@ +/*! + * vssue - A vue-powered issue-based comment plugin + * + * @version v1.4.8 + * @link https://vssue.js.org + * @license MIT + * @copyright 2018-2021 meteorlxy + */ +!function(e){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ +function t(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}e=e&&e.hasOwnProperty("default")?e.default:e;var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(s){var r=n?Reflect.getOwnMetadata(s,t,n):Reflect.getOwnMetadata(s,t);n?Reflect.defineMetadata(s,r,e,n):Reflect.defineMetadata(s,r,e)}))}var r={__proto__:[]}instanceof Array;function i(e){return function(t,n,s){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof s&&(s=void 0),r.__decorators__.push((function(t){return e(t,n,s)}))}}var o=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function a(t,i){void 0===i&&(i={}),i.name=i.name||t._componentTag||t.name;var a=t.prototype;Object.getOwnPropertyNames(a).forEach((function(e){if("constructor"!==e)if(o.indexOf(e)>-1)i[e]=a[e];else{var t=Object.getOwnPropertyDescriptor(a,e);void 0!==t.value?"function"==typeof t.value?(i.methods||(i.methods={}))[e]=t.value:(i.mixins||(i.mixins=[])).push({data:function(){var n;return(n={})[e]=t.value,n}}):(t.get||t.set)&&((i.computed||(i.computed={}))[e]={get:t.get,set:t.set})}})),(i.mixins||(i.mixins=[])).push({data:function(){return function(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var s in e.$options.props)e.hasOwnProperty(s)||n.push(s);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var s=new t;t.prototype._init=n;var r={};return Object.keys(s).forEach((function(e){void 0!==s[e]&&(r[e]=s[e])})),r}(this,t)}});var u=t.__decorators__;u&&(u.forEach((function(e){return e(i)})),delete t.__decorators__);var l,p,d=Object.getPrototypeOf(t.prototype),h=d instanceof e?d.constructor:e,m=h.extend(i);return function(e,t,n){Object.getOwnPropertyNames(t).forEach((function(s){if(!c[s]){var i=Object.getOwnPropertyDescriptor(e,s);if(!i||i.configurable){var o,a,u=Object.getOwnPropertyDescriptor(t,s);if(!r){if("cid"===s)return;var l=Object.getOwnPropertyDescriptor(n,s);if(o=u.value,a=typeof o,null!=o&&("object"===a||"function"===a)&&l&&l.value===u.value)return}Object.defineProperty(e,s,u)}}}))}(m,t,h),n&&(s(l=m,p=t),Object.getOwnPropertyNames(p.prototype).forEach((function(e){s(l.prototype,p.prototype,e)})),Object.getOwnPropertyNames(p).forEach((function(e){s(l,p,e)}))),m}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function u(e){return"function"==typeof e?a(e):function(t){return a(t,e)}}function l(e){return i((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}u.registerHooks=function(e){o.push.apply(o,e)};var p="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function d(e){return void 0===e&&(e={}),function(t,n){!function(e,t,n){p&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,n)))}(e,t,n),i((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function h(e,t){void 0===t&&(t={});var n=t.deep,s=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return i((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:s,immediate:o})}))}var m=e.extend({name:"Iconfont"});function f(e,t,n,s,r,i,o,a,c,u){"boolean"!=typeof o&&(c=a,a=o,o=!1);const l="function"==typeof n?n.options:n;let p;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),s&&(l._scopeId=s),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=p):t&&(p=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p)if(l.functional){const e=l.render;l.render=function(t,n){return p.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,p):[p]}return n}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const v=f({render:function(e,t){var n=t._c;return n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("symbol",{attrs:{id:"vssue-icon-bitbucket",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M579.5522464 489.45249493q4.8371808 38.38537173-30.81752427 61.55702827t-67.95459093 3.66689493q-23.79580907-10.37653333-32.6119616-35.34262826t-0.31207573-50.01020907 31.67573333-35.34262827q21.92335253-11.00068587 44.1587808-7.33379093t39.00952427 21.61127573 16.77409493 41.1160384zM647.19476053 476.65737173q-8.50407573-65.22392427-68.8908192-99.9424t-120.07131413-7.9579424q-38.38537173 17.08617173-61.24495253 53.9111616t-21.0651424 78.95527574q2.41859093 55.4715424 47.20152426 94.48106666t100.87862827 34.1723424q55.4715424-4.8371808 92.60860907-51.18049493t30.50544746-102.43900907zM792.93434133 146.32472427q-12.17097173-16.4620192-34.1723424-27.15062827t-35.34262826-13.41927573-43.30057174-7.64586667q-177.33729493-28.63299093-345.00022826 1.24830507-26.2144 4.29104747-40.25782827 7.33379093t-33.54819093 13.41927573-30.50544747 26.2144q18.2564576 17.08617173 46.34331413 27.6967616t44.78293334 13.41927574 53.36502826 7.02171413q138.95192427 17.71032427 273.06666667 0.62415253 38.38537173-4.8371808 54.53531413-7.33379093t44.1587808-13.1072 45.7191616-28.32091413zM827.65281813 777.10872427q-4.8371808 15.83786667-9.44030506 46.65539093t-8.50407574 51.18049493-17.39824746 42.6764192-35.34262827 34.4064q-52.4288 29.2571424-115.46819093 43.61264747t-123.1140576 13.41927573-122.8019808-11.3127616q-28.0088384-4.8371808-49.69813334-11.00068586t-46.65539093-16.4620192-44.4708576-26.52647574-31.67573333-37.4491424q-15.21371413-58.51428587-34.71847574-177.96144746l3.66689494-9.7523808 11.00068586-5.46133334q135.9091808 90.1900192 308.72137174 90.1900192t309.34552426-90.1900192q12.79512427 3.66689493 14.5895616 14.04342827t-3.0427424 27.46270507-4.8371808 22.54750506zM937.97175147 191.41973333q-15.83786667 101.8148576-67.64251414 399.22346667-3.0427424 18.2564576-16.4620192 34.1723424t-26.52647573 24.3419424-33.23611413 18.88060907q-153.61950507 76.7707424-371.8387808 53.67710506-151.12289493-16.4620192-240.14262827-84.72868586-9.12822827-7.33379093-15.52579093-16.1499424t-10.37653334-21.2992-5.46133333-20.75306667-3.66689493-24.10788587-3.3548192-21.2992q-5.46133333-30.50544747-16.1499424-91.43832426t-17.08617174-98.4600384-14.35550506-89.8779424-13.41927574-96.27550507q1.7944384-15.83786667 10.68860907-29.5692192t19.19268587-22.8595808 27.46270506-18.2564576 28.0088384-13.73135253 29.2571424-11.3127616q76.22460907-28.0088384 190.75657174-39.00952427 231.0144-22.54750507 412.01859093 30.50544747 94.48106667 28.0088384 131.072 74.35215253 9.7523808 12.17097173 10.0644576 31.0515808t-3.3548192 32.9240384z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitea",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M184.31868985 236.10860742C106.94832667 235.94086648 3.32655508 285.13080468 9.02973665 408.46209936c8.93218827 192.65010787 206.32096845 210.5144844 285.20099725 212.06608453 8.63864186 36.14810496 101.48307766 160.77938883 170.21479898 167.32127321h301.09442177c180.57278288-11.99345499 315.77172611-546.07960359 215.54670217-548.09249109-165.7696721 7.79993906-264.02374305 11.74184405-348.27147151 12.41280591v166.69224585l-26.25140843-11.61603761-0.16773997-154.99233728c-96.70246985-0.04193548-181.83083757-4.52899687-343.4069947-12.49667687-20.21274496-0.12580547-48.39316992-3.5644886-78.67035236-3.64835859z m10.94507577 68.14462849h9.22573371c10.98701124 98.75729283 28.85138778 156.50200291 64.99949274 244.73357185-92.25734394-10.90314029-170.75995634-37.69970509-185.18564974-137.75698809-7.46445813-51.78991757 17.69663558-105.84433456 110.96042329-107.01851827z m358.83913087 97.07988723c6.29027343 0.08386999 12.70635233 1.25805468 18.74501482 4.02577499l31.40943263 13.54505513-22.51917887 41.05451824a28.18042496 25.03528825 0 0 0-10.10637297 1.59353561 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 4.69673781 7.29671718l-38.83195528 70.70267333a28.18042496 25.03528825 0 0 0-9.30960467 1.59353659 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 36.06423497 15.09665623 28.18042496 25.03528825 0 0 0 16.94180276-32.08039449 28.18042496 25.03528825 0 0 0-6.62575434-9.22573468l37.82551056-68.85752581a28.18042496 25.03528825 0 0 0 12.28700044-1.25805469 28.18042496 25.03528825 0 0 0 8.93218826-4.69673783c14.59343435 6.12253248 26.54495386 11.11281671 35.14166122 15.34826717 12.91602778 6.37414341 17.48696012 10.60959485 18.87082027 15.30633169 1.38386015 4.61286685-0.12580547 13.50312062-7.42252263 29.10299872-5.45157063 11.61603859-14.46762889 28.09655497-25.11915823 47.51253164a28.18042496 25.03528825 0 0 0-10.52572486 1.59353659 28.18042496 25.03528825 0 0 0-16.98373826 32.038459 28.18042496 25.03528825 0 0 0 36.06423498 15.09665623 28.18042496 25.03528825 0 0 0 16.94180278-32.03845901 28.18042496 25.03528825 0 0 0-5.74511608-8.47090188c10.52572388-19.20630122 19.58371762-35.72875308 25.41270465-48.14155897 7.88380904-16.85793279 11.99345499-29.39654416 8.38703091-41.51580463-3.60642311-12.11926046-14.67730434-20.0030695-29.35460966-27.25785217-9.6450856-4.73867233-21.68047607-9.77089106-36.06423399-15.80955357a28.18042496 25.03528825 0 0 0-1.59353562-10.022502 28.18042496 25.03528825 0 0 0-6.08059796-8.7644483l22.14176246-40.38355541 122.61839638 52.96410227c22.14176247 9.6031511 31.2836262 33.12877372 20.54822685 52.8382968l-84.28966393 154.32137544c-10.77733482 19.66758857-37.23841869 27.80300855-59.38018118 18.24179293l-173.48574115-74.98005927c-22.14176247-9.5612156-31.32556167-33.12877372-20.54822687-52.83829679l84.28966395-154.27943995c7.38058716-13.54505513 22.22563246-21.59660511 37.951317-22.22563246h2.68384935z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitee",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M978.404275 409.561604H455.061338c-25.117645 0-45.499734 20.382089-45.499734 45.499734l-0.031997 113.781333c0 25.117645 20.350092 45.499734 45.499734 45.531731h318.594132c25.117645 0 45.499734 20.382089 45.499734 45.499735v22.749867a136.5312 136.5312 0 0 1-136.5312 136.5312H250.248539a45.499734 45.499734 0 0 1-45.499734-45.499734V341.343999a136.5312 136.5312 0 0 1 136.5312-136.5312L978.308284 204.780802c25.117645 0 45.499734-20.350092 45.499734-45.467738L1023.904009 45.531731h0.031997A45.499734 45.499734 0 0 0 978.468269 0h-0.031997L341.343999 0.031997C152.84967 0.031997 0.031997 152.84967 0.031997 341.343999v637.092273c0 25.117645 20.382089 45.499734 45.499734 45.499734h671.233072a307.171203 307.171203 0 0 0 307.171203-307.171203v-261.671468c0-25.117645-20.382089-45.499734-45.499734-45.499734z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-github",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 20.4425c-278.334 0-504 225.6345-504 504 0 222.6735 144.4275 411.6105 344.673 478.233 25.2 4.662 34.461-10.9305 34.461-24.255 0-12.0015-0.4725-51.723-0.693-93.8385-140.238 30.492-169.8165-59.472-169.8165-59.472-22.932-58.2435-55.944-73.7415-55.944-73.7415-45.738-31.2795 3.465-30.6495 3.465-30.6495 50.589 3.5595 77.238 51.9435 77.238 51.9435 44.9505 77.049 117.9045 54.7785 146.664 41.895 4.5045-32.571 17.577-54.81 32.004-67.41-111.951-12.726-229.635-55.9755-229.635-249.0705 0-55.0305 19.6875-99.981 51.9435-135.2925-5.229-12.6945-22.491-63.945 4.8825-133.371 0 0 42.336-13.545 138.6315 51.66 40.194-11.1825 83.3175-16.758 126.1575-16.9785 42.8085 0.189 85.9635 5.796 126.252 16.9785 96.201-65.205 138.4425-51.66 138.4425-51.66 27.4365 69.426 10.1745 120.6765 4.9455 133.371 32.319 35.28 51.8805 80.262 51.8805 135.2925 0 193.5675-117.9045 236.187-230.139 248.6925 18.081 15.6555 34.1775 46.305 34.1775 93.3345 0 67.4415-0.5985 121.716-0.5985 138.3165 0 13.419 9.072 29.1375 34.6185 24.192 200.151-66.717 344.3895-255.5595 344.3895-478.17 0-278.3655-225.666-504-504-504z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitlab",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M66.61375986 405.11600042L512.11376028 976.03999972 23.84576 621.65599958a39.312 39.312 0 0 1-14.07600042-43.30799944l56.8080007-173.26800028z m259.88400014 0h371.26800014L512.14975986 976.03999972zM215.11376 60.88400042l111.384 344.232H66.61375986l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z m742.49999972 344.232l56.8080007 173.2679993a39.23999986 39.23999986 0 0 1-14.07600042 43.30800042l-488.26800028 354.38400014 445.50000042-570.92400028z m0 0h-259.88400014l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-loading",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M843.307 742.24c0 3.217 2.607 5.824 5.824 5.824s5.824-2.607 5.824-5.824a5.823 5.823 0 0 0-5.824-5.824 5.823 5.823 0 0 0-5.824 5.824zM714.731 874.912c0 6.398 5.186 11.584 11.584 11.584s11.584-5.186 11.584-11.584-5.186-11.584-11.584-11.584-11.584 5.186-11.584 11.584zM541.419 943.2c0 9.614 7.794 17.408 17.408 17.408s17.408-7.794 17.408-17.408-7.794-17.408-17.408-17.408-17.408 7.794-17.408 17.408z m-186.56-9.152c0 12.795 10.373 23.168 23.168 23.168s23.168-10.373 23.168-23.168-10.373-23.168-23.168-23.168-23.168 10.373-23.168 23.168zM189.355 849.12c0 16.012 12.98 28.992 28.992 28.992s28.992-12.98 28.992-28.992-12.98-28.992-28.992-28.992-28.992 12.98-28.992 28.992zM74.731 704.736c0 19.228 15.588 34.816 34.816 34.816s34.816-15.588 34.816-34.816-15.588-34.816-34.816-34.816-34.816 15.588-34.816 34.816z m-43.008-177.28c0 22.41 18.166 40.576 40.576 40.576s40.576-18.166 40.576-40.576-18.166-40.576-40.576-40.576-40.576 18.166-40.576 40.576z m35.392-176.128c0 25.626 20.774 46.4 46.4 46.4s46.4-20.774 46.4-46.4c0-25.626-20.774-46.4-46.4-46.4-25.626 0-46.4 20.774-46.4 46.4z m106.176-142.016c0 28.843 23.381 52.224 52.224 52.224s52.224-23.381 52.224-52.224c0-28.843-23.381-52.224-52.224-52.224-28.843 0-52.224 23.381-52.224 52.224z m155.904-81.344c0 32.024 25.96 57.984 57.984 57.984s57.984-25.96 57.984-57.984-25.96-57.984-57.984-57.984-57.984 25.96-57.984 57.984z m175.104-5.056c0 35.24 28.568 63.808 63.808 63.808s63.808-28.568 63.808-63.808c0-35.24-28.568-63.808-63.808-63.808-35.24 0-63.808 28.568-63.808 63.808z m160.32 72.128c0 38.421 31.147 69.568 69.568 69.568s69.568-31.147 69.568-69.568-31.147-69.568-69.568-69.568-69.568 31.147-69.568 69.568z m113.92 135.488c0 41.638 33.754 75.392 75.392 75.392s75.392-33.754 75.392-75.392-33.754-75.392-75.392-75.392-75.392 33.754-75.392 75.392z m45.312 175.488c0 44.854 36.362 81.216 81.216 81.216s81.216-36.362 81.216-81.216c0-44.854-36.362-81.216-81.216-81.216-44.854 0-81.216 36.362-81.216 81.216z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-like",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4-20.5-21.5-48.1-33.4-77.9-33.4-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-0.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81z m636.4-353l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5c5.2-18.9 22.5-32.2 42.2-32.3 7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-unlike",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4-8.3-3.6-17.2-5.4-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81z m627.2 160.4H496.8l9.6 198.4c0.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7-19.6-0.1-36.9-13.4-42.2-32.3L329 459.2V172h415.4c20.4 9.2 33.6 29.4 33.6 51.8 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 19.1-11 37.5-28.8 48.4z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-heart",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-edit",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M723.2 917.76H286.72c-65.28 0-118.4-51.2-118.4-113.92V261.76C168.32 198.4 221.44 147.2 286.72 147.2h375.04c17.92 0 32 14.08 32 32s-14.08 32-32 32H286.72c-30.08 0-54.4 22.4-54.4 49.92v542.08c0 27.52 24.32 49.92 54.4 49.92H723.2c30.08 0 54.4-22.4 54.4-49.92V440.32c0-17.92 14.08-32 32-32s32 14.08 32 32v363.52c0 62.72-53.12 113.92-118.4 113.92z"}}),t._v(" "),n("path",{attrs:{d:"M499.84 602.24c-7.68 0-14.72-2.56-21.12-7.68-13.44-11.52-14.72-32-3.2-45.44L780.16 198.4c11.52-13.44 32-14.72 45.44-3.2s14.72 32 3.2 45.44L524.16 591.36c-6.4 7.04-15.36 10.88-24.32 10.88z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-delete",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M677.647059 256l0-90.352941c0-37.436235-23.461647-60.235294-61.771294-60.235294L408.094118 105.411765c-38.249412 0-61.741176 22.799059-61.741176 60.235294l0 90.352941-180.705882 0 0 60.235294 60.235294 0 0 512c0 54.272 33.972706 90.352941 90.352941 90.352941l391.529412 0c55.085176 0 90.352941-33.490824 90.352941-90.352941l0-512 60.235294 0 0-60.235294L677.647059 256zM406.588235 165.647059l210.823529 0-1.264941 90.352941L406.588235 256 406.588235 165.647059zM737.882353 858.352941l-451.764706 0 0-542.117647 451.764706 0L737.882353 858.352941zM466.823529 376.470588l-58.729412 0-1.505882 391.529412 60.235294 0L466.823529 376.470588zM617.411765 376.470588l-60.235294 0 0 391.529412 60.235294 0L617.411765 376.470588z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-reply",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M426.666667 384 426.666667 213.333333 128 512 426.666667 810.666667 426.666667 635.733333C640 635.733333 789.333333 704 896 853.333333 853.333333 640 725.333333 426.666667 426.666667 384Z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-error",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 720m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z"}}),t._v(" "),n("path",{attrs:{d:"M480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"}}),t._v(" "),n("path",{attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48z m-783.5-27.9L512 239.9l339.8 588.2H172.2z"}})])])},staticRenderFns:[]},void 0,m,void 0,!0,void 0,!1,void 0,void 0,void 0);const g=f({},void 0,e.extend({name:"TransitionFade",functional:!0,props:{group:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}},render:(e,{props:t,children:n})=>e(t.group?"TransitionGroup":"Transition",{props:{name:"fade",mode:"out-in",appear:!0,tag:t.tag}},n)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);const y=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{name:{type:String,required:!0},title:{type:String,required:!1,default:null}},render:(e,{props:t,data:n})=>e("svg",Object.assign(Object.assign({},n),{class:["vssue-icon",`vssue-icon-${t.name}`],attrs:{"aria-hidden":"true"}}),[e("title",t.title),e("use",{attrs:{"xlink:href":`#vssue-icon-${t.name}`}})])}),void 0,void 0,void 0,!1,void 0,void 0,void 0);var b=Object.prototype.hasOwnProperty,_=Array.isArray,w=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),C=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},s=0;s1;){var t=e.pop(),n=t.obj[t.prop];if(_(n)){for(var s=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=s.charAt(i):o<128?r+=w[o]:o<2048?r+=w[192|o>>6]+w[128|63&o]:o<55296||o>=57344?r+=w[224|o>>12]+w[128|o>>6&63]+w[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&s.charCodeAt(i)),r+=w[240|o>>18]+w[128|o>>12&63]+w[128|o>>6&63]+w[128|63&o])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n){if(_(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!b.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return _(t)&&!_(n)&&(r=C(t,s)),_(t)&&_(n)?(n.forEach((function(n,r){if(b.call(t,r)){var i=t[r];i&&"object"==typeof i&&n&&"object"==typeof n?t[r]=e(i,n,s):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var i=n[r];return b.call(t,r)?t[r]=e(t[r],i,s):t[r]=i,t}),r)}},$=String.prototype.replace,x=/%20/g,I={RFC1738:"RFC1738",RFC3986:"RFC3986"},T=k.assign({default:I.RFC3986,formatters:{RFC1738:function(e){return $.call(e,x,"+")},RFC3986:function(e){return String(e)}}},I),M=Object.prototype.hasOwnProperty,P={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},O=Array.isArray,A=Array.prototype.push,D=function(e,t){A.apply(e,O(t)?t:[t])},F=Date.prototype.toISOString,S=T.default,R={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:k.encode,encodeValuesOnly:!1,format:S,formatter:T.formatters[S],indices:!1,serializeDate:function(e){return F.call(e)},skipNulls:!1,strictNullHandling:!1},j=function e(t,n,s,r,i,o,a,c,u,l,p,d,h){var m,f=t;if("function"==typeof a?f=a(n,f):f instanceof Date?f=l(f):"comma"===s&&O(f)&&(f=f.join(",")),null===f){if(r)return o&&!d?o(n,R.encoder,h,"key"):n;f=""}if("string"==typeof(m=f)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||k.isBuffer(f))return o?[p(d?n:o(n,R.encoder,h,"key"))+"="+p(o(f,R.encoder,h,"value"))]:[p(n)+"="+p(String(f))];var v,g=[];if(void 0===f)return g;if(O(a))v=a;else{var y=Object.keys(f);v=c?y.sort(c):y}for(var b=0;b0&&/(\[[^[\]]*])/.exec(s),o=i?s.slice(0,i.index):s,a=[];if(o){if(!n.plainObjects&&L.call(Object.prototype,o)&&!n.allowPrototypes)return;a.push(o)}for(var c=0;n.depth>0&&null!==(i=r.exec(s))&&c=0;--r){var i,o=e[r];if("[]"===o&&n.parseArrays)i=[].concat(s);else{i=n.plainObjects?Object.create(null):{};var a="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&o!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=s:i[a]=s:i={0:s}}s=i}return s}(a,t,n)}},H=function(e,t){var n=function(e){if(!e)return E;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?E.charset:e.charset;return{allowDots:void 0===e.allowDots?E.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:E.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:E.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:E.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:E.comma,decoder:"function"==typeof e.decoder?e.decoder:E.decoder,delimiter:"string"==typeof e.delimiter||k.isRegExp(e.delimiter)?e.delimiter:E.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:E.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:E.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:E.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:E.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:E.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,s={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(l=l.split(",")),p.indexOf("[]=")>-1&&(l=N(l)?[l]:l),L.call(s,u)?s[u]=k.combine(s[u],l):s[u]=l}return s}(e,n):e,r=n.plainObjects?Object.create(null):{},i=Object.keys(s),o=0;o0?p+l:""};const U=(e,t)=>{return`${e}${V(t,{addQueryPrefix:!0})}`},B=(e,t)=>{return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`};var W=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4};var Y=function(e){return e instanceof Date},G=36e5,Q=6e4,J=2,X=/[T ]/,K=/:/,Z=/^(\d{2})$/,ee=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],te=/^(\d{4})/,ne=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],se=/^-(\d{2})$/,re=/^-?(\d{3})$/,ie=/^-?(\d{2})-?(\d{2})$/,oe=/^-?W(\d{2})$/,ae=/^-?W(\d{2})-?(\d{1})$/,ce=/^(\d{2}([.,]\d*)?)$/,ue=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,le=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,pe=/([Z+-].*)$/,de=/^(Z)$/,he=/^([+-])(\d{2})$/,me=/^([+-])(\d{2}):?(\d{2})$/;function fe(e,t,n){t=t||0,n=n||0;var s=new Date(0);s.setUTCFullYear(e,0,4);var r=7*t+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+r),s}var ve=function(e,t){if(Y(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?J:Number(n);var s=function(e){var t,n={},s=e.split(X);K.test(s[0])?(n.date=null,t=s[0]):(n.date=s[0],t=s[1]);if(t){var r=pe.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e),r=function(e,t){var n,s=ee[t],r=ne[t];if(n=te.exec(e)||r.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=Z.exec(e)||s.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(s.date,n),i=r.year,o=function(e,t){if(null===t)return null;var n,s,r,i;if(0===e.length)return(s=new Date(0)).setUTCFullYear(t),s;if(n=se.exec(e))return s=new Date(0),r=parseInt(n[1],10)-1,s.setUTCFullYear(t,r),s;if(n=re.exec(e)){s=new Date(0);var o=parseInt(n[1],10);return s.setUTCFullYear(t,0,o),s}if(n=ie.exec(e)){s=new Date(0),r=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return s.setUTCFullYear(t,r,a),s}if(n=oe.exec(e))return i=parseInt(n[1],10)-1,fe(t,i);if(n=ae.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return fe(t,i,c)}return null}(r.restDateString,i);if(o){var a,c=o.getTime(),u=0;if(s.time&&(u=function(e){var t,n,s;if(t=ce.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*G;if(t=ue.exec(e))return n=parseInt(t[1],10),s=parseFloat(t[2].replace(",",".")),n%24*G+s*Q;if(t=le.exec(e)){n=parseInt(t[1],10),s=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return n%24*G+s*Q+1e3*r}return null}(s.time)),s.timezone)a=function(e){var t,n;if(t=de.exec(e))return 0;if(t=he.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=me.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(s.timezone)*Q;else{var l=c+u,p=new Date(l);a=W(p);var d=new Date(l);d.setDate(p.getDate()+1);var h=W(d)-W(p);h>0&&(a+=h)}return new Date(c+u+a)}return new Date(e)};var ge=function(e){var t=ve(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var ye=function(e){var t=ve(e);return t.setHours(0,0,0,0),t},be=6e4,_e=864e5;var we=function(e,t){var n=ye(e),s=ye(t),r=n.getTime()-n.getTimezoneOffset()*be,i=s.getTime()-s.getTimezoneOffset()*be;return Math.round((r-i)/_e)};var Ce=function(e){var t=ve(e);return we(t,ge(t))+1};var ke=function(e,t){var n=t&&Number(t.weekStartsOn)||0,s=ve(e),r=s.getDay(),i=(r=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1};var Ie=function(e){var t=xe(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),$e(n)},Te=6048e5;var Me=function(e){var t=ve(e),n=$e(t).getTime()-Ie(t).getTime();return Math.round(n/Te)+1};var Pe=function(e){if(Y(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")};var Oe=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];var Ae=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var s=Oe.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+s.join("|")+"|.)","g")};var De=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["AM","PM"],o=["am","pm"],a=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return s[e.getDay()]},dddd:function(e){return r[e.getDay()]},A:function(e){return e.getHours()/12>=1?i[1]:i[0]},a:function(e){return e.getHours()/12>=1?o[1]:o[0]},aa:function(e){return e.getHours()/12>=1?a[1]:a[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){c[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:c,formattingTokensRegExp:Ae(c)}},Fe={distanceInWords:function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,s){var r;return s=s||{},r="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),s.addSuffix?s.comparison>0?"in "+r:r+" ago":r}}}(),format:De()};var Se={M:function(e){return e.getMonth()+1},MM:function(e){return Le(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return Le(e.getDate(),2)},DDD:function(e){return Ce(e)},DDDD:function(e){return Le(Ce(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Me(e)},WW:function(e){return Le(Me(e),2)},YY:function(e){return Le(e.getFullYear(),4).substr(2)},YYYY:function(e){return Le(e.getFullYear(),4)},GG:function(e){return String(xe(e)).substr(2)},GGGG:function(e){return xe(e)},H:function(e){return e.getHours()},HH:function(e){return Le(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return Le(Se.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return Le(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Le(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Le(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Le(e.getMilliseconds(),3)},Z:function(e){return je(e.getTimezoneOffset(),":")},ZZ:function(e){return je(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function Re(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function je(e,t){t=t||"";var n=e>0?"-":"+",s=Math.abs(e),r=s%60;return n+Le(Math.floor(s/60),2)+t+Le(r,2)}function Le(e,t){for(var n=Math.abs(e).toString();n.length{return Ne(e,"YYYY-MM-DD HH:mm:ss")},ze=e=>{return(e.split("#")[0]||"").split("?")[0]||""},qe=e=>H(e,{ignoreQueryPrefix:!0});let He=class extends e{constructor(){super(...arguments),this.editMode=!1,this.editContent=this.comment.contentRaw,this.creatingReactions=[],this.isPutingComment=!1,this.isDeletingComment=!1}get currentUser(){return this.vssue.user?this.vssue.user.username:null}get content(){return this.comment.content}get author(){return this.comment.author}get createdAt(){return Ee(this.comment.createdAt)}get updatedAt(){return Ee(this.comment.updatedAt)}get showReactions(){return Boolean(this.vssue.API&&this.vssue.API.platform.meta.reactable&&this.comment.reactions&&!this.editMode)}get reactionKeys(){return["heart","like","unlike"]}get editContentRows(){return this.editContent.split("\n").length-1}get editInputRows(){return this.editContentRows<3?5:this.editContentRows+2}async postReaction({reaction:e}){try{if(this.creatingReactions.includes(e))return;this.creatingReactions.push(e),await this.vssue.postCommentReaction({commentId:this.comment.id,reaction:e})||this.vssue.$emit("error",new Error(this.vssue.$t("reactionGiven",{reaction:this.vssue.$t(e)})));const t=await this.vssue.getCommentReactions({commentId:this.comment.id});t&&(this.comment.reactions=t)}finally{this.creatingReactions.splice(this.creatingReactions.findIndex(t=>t===e),1)}}enterEdit(){this.editMode=!0,this.$nextTick(()=>{this.$refs.input.focus()})}resetEdit(){this.editMode=!1,this.editContent=this.comment.contentRaw}async putComment(){try{if(this.vssue.isPending)return;if(this.editContent!==this.comment.contentRaw){this.isPutingComment=!0,this.vssue.isUpdatingComment=!0;const e=await this.vssue.putComment({commentId:this.comment.id,content:this.editContent});e&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1,e)}this.editMode=!1}finally{this.isPutingComment=!1,this.vssue.isUpdatingComment=!1}}async deleteComment(){try{if(this.vssue.isPending)return;if(!window.confirm(this.vssue.$t("deleteConfirm")))return;this.isDeletingComment=!0,this.vssue.isUpdatingComment=!0,await this.vssue.deleteComment({commentId:this.comment.id})?(this.vssue.comments.count-=1,this.vssue.comments.data.length>1&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1),this.vssue.query.page>1&&this.vssue.query.page>Math.ceil(this.vssue.comments.count/this.vssue.query.perPage)?this.vssue.query.page-=1:await this.vssue.getComments()):this.vssue.$emit("error",new Error(this.vssue.$t("deleteFailed")))}finally{this.isDeletingComment=!1,this.vssue.isUpdatingComment=!1}}};t([d({type:Object,required:!0})],He.prototype,"comment",void 0),t([l()],He.prototype,"vssue",void 0),He=t([u({components:{VssueIcon:y}})],He);const Ve=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-comment",class:{"vssue-comment-edit-mode":e.editMode,"vssue-comment-disabled":e.isDeletingComment||e.isPutingComment}},[n("div",{staticClass:"vssue-comment-avatar"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.author.avatar,alt:e.author.username}})])]),e._v(" "),n("div",{staticClass:"vssue-comment-body"},[e._t("body",[n("div",{staticClass:"vssue-comment-header"},[n("span",{staticClass:"vssue-comment-author"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.author.username)+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-comment-created-at"},[e._v("\n "+e._s(e.createdAt)+"\n ")])]),e._v(" "),n("div",{staticClass:"vssue-comment-main"},[e.editMode?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editContent,expression:"editContent"}],ref:"input",staticClass:"vssue-edit-comment-input",attrs:{rows:e.editInputRows},domProps:{value:e.editContent},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.putComment():null},input:function(t){t.target.composing||(e.editContent=t.target.value)}}}):n("article",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.content)}})]),e._v(" "),n("div",{staticClass:"vssue-comment-footer"},[e.editMode?n("span",{staticClass:"vssue-comment-hint"},[e._v("\n "+e._s(e.vssue.$t("editMode"))+"\n ")]):e._e(),e._v(" "),e.showReactions?n("span",{staticClass:"vssue-comment-reactions"},e._l(e.reactionKeys,(function(t){return n("span",{key:t,staticClass:"vssue-comment-reaction",attrs:{title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)},on:{click:function(n){return e.postReaction({reaction:t})}}},[n("VssueIcon",{attrs:{name:e.creatingReactions.includes(t)?"loading":t,title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)}}),e._v(" "),n("span",{staticClass:"vssue-comment-reaction-number"},[e._v("\n "+e._s(e.comment.reactions[t])+"\n ")])],1)})),0):e._e(),e._v(" "),n("span",{staticClass:"vssue-comment-operations"},[e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation",class:{"vssue-comment-operation-muted":e.isPutingComment},attrs:{title:e.vssue.$t(e.isPutingComment?"loading":"submit")},on:{click:function(t){return e.putComment()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.isPutingComment,expression:"isPutingComment"}],attrs:{name:"loading",title:e.vssue.$t("loading")}}),e._v("\n\n "+e._s(e.vssue.$t("submit"))+"\n ")],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation vssue-comment-operation-muted",attrs:{title:e.vssue.$t("cancel")},on:{click:function(t){return e.resetEdit()}}},[e._v("\n "+e._s(e.vssue.$t("cancel"))+"\n ")]):e._e(),e._v(" "),e.comment.author.username===e.currentUser?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.enterEdit()}}},[n("VssueIcon",{attrs:{name:"edit",title:e.vssue.$t("edit")}})],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser||e.vssue.isAdmin?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.deleteComment()}}},[n("VssueIcon",{attrs:{name:e.isDeletingComment?"loading":"delete",title:e.vssue.$t(e.isDeletingComment?"loading":"delete")}})],1):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.vssue.$emit("reply-comment",e.comment)}}},[n("VssueIcon",{attrs:{name:"reply",title:e.vssue.$t("reply")}})],1)])])])],2)])},staticRenderFns:[]},void 0,He,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ue=class extends e{get disabled(){return this.vssue.isPending}get pageCount(){const e=Math.ceil(this.vssue.comments.count/this.vssue.comments.perPage);return e>1?e:1}get perPageOptions(){const e=[5,10,20,50];return!e.includes(this.vssue.options.perPage)&&this.vssue.options.perPage<100&&e.push(this.vssue.options.perPage),e.sort((e,t)=>e-t)}get page(){return this.vssue.query.page>this.pageCount?this.pageCount:this.vssue.query.page}set page(e){e>0&&e<=this.pageCount&&(this.vssue.query.page=e)}get perPage(){return this.vssue.query.perPage}set perPage(e){this.perPageOptions.includes(e)&&(this.vssue.query.perPage=e)}};t([l()],Ue.prototype,"vssue",void 0),Ue=t([u({components:{VssueIcon:y}})],Ue);const Be=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-pagination"},[n("div",{staticClass:"vssue-pagination-per-page"},[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.perPage,expression:"perPage"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.perPage=t.target.multiple?n:n[0]}}},e._l(e.perPageOptions,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",[e._v("\n "+e._s(e.vssue.$t("perPage"))+"\n ")])]),e._v(" "),e.vssue.API.platform.meta.sortable?n("span",{class:{"vssue-pagination-link":!0,disabled:e.disabled},attrs:{title:e.vssue.$t("sort")},on:{click:function(t){e.vssue.query.sort="asc"===e.vssue.query.sort?"desc":"asc"}}},[e._v("\n "+e._s("asc"===e.vssue.query.sort?"↑":"↓")+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"vssue-pagination-page"},[n("span",{class:{"vssue-pagination-link":!0,disabled:1===e.page||e.disabled},attrs:{title:e.vssue.$t("prev")},domProps:{textContent:e._s("<")},on:{click:function(t){e.page-=1}}}),e._v(" "),n("label",[n("span",[e._v("\n "+e._s(e.vssue.$t("page"))+"\n ")]),e._v(" "),n("select",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"},{name:"model",rawName:"v-model",value:e.page,expression:"page"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.page=t.target.multiple?n:n[0]}}},e._l(e.pageCount,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.pageCount<2,expression:"pageCount < 2"}],domProps:{textContent:e._s(e.page)}}),e._v(" "),n("span",{domProps:{textContent:e._s(" / "+e.pageCount+" ")}})]),e._v(" "),n("span",{class:{"vssue-pagination-link":!0,disabled:e.page===e.pageCount||e.disabled},attrs:{title:e.vssue.$t("next")},domProps:{textContent:e._s(">")},on:{click:function(t){e.page+=1}}})])])},staticRenderFns:[]},void 0,Ue,void 0,!1,void 0,!1,void 0,void 0,void 0);let We=class extends e{};t([l()],We.prototype,"vssue",void 0),We=t([u({components:{TransitionFade:g,VssueComment:Ve,VssuePagination:Be}})],We);const Ye=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue-comments"},[t("VssuePagination"),this._v(" "),t("TransitionFade",{attrs:{group:""}},this._l(this.vssue.comments.data,(function(e){return t("VssueComment",{key:e.id,attrs:{comment:e}})})),1),this._v(" "),t("VssuePagination",{directives:[{name:"show",rawName:"v-show",value:this.vssue.comments.data.length>5,expression:"vssue.comments.data.length > 5"}]})],1)},staticRenderFns:[]},void 0,We,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ge=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{type:{type:String,required:!1,default:"default"}},render:(e,{props:t,data:n,children:s})=>e("button",Object.assign(Object.assign({},n),{class:["vssue-button",`vssue-button-${t.type}`]}),s)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);let Qe=class extends e{constructor(){super(...arguments),this.content=""}get user(){return this.vssue.user}get platform(){return this.vssue.API&&this.vssue.API.platform.name}get isInputDisabled(){return this.loading||null===this.user||null===this.vssue.issue}get isSubmitDisabled(){return""===this.content||this.vssue.isPending||null===this.vssue.issue}get loading(){return this.vssue.isCreatingComment}get contentRows(){return this.content.split("\n").length-1}get inputRows(){return this.contentRows<3?5:this.contentRows+2}created(){this.vssue.$on("reply-comment",e=>{const t=e.contentRaw.replace(/\n/g,"\n> "),n=`@${e.author.username}\n\n> ${t}\n\n`;this.content=this.content.concat(n),this.focus()})}beforeDestroy(){this.vssue.$off("reply-comment")}focus(){this.$refs.input.focus()}async submit(){this.isSubmitDisabled||(await this.vssue.postComment({content:this.content}),this.content="",await this.vssue.getComments())}};t([l()],Qe.prototype,"vssue",void 0),Qe=t([u({components:{VssueButton:Ge,VssueIcon:y}})],Qe);const Je=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-new-comment"},[n("div",{staticClass:"vssue-comment-avatar"},[e.user?n("a",{attrs:{href:e.user.homepage,title:e.user.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.user.avatar,alt:e.user.username}})]):n("VssueIcon",{attrs:{name:e.platform.toLowerCase(),title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}})],1),e._v(" "),n("div",{staticClass:"vssue-new-comment-body"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"input",staticClass:"vssue-new-comment-input",attrs:{rows:e.inputRows,disabled:e.isInputDisabled,placeholder:e.vssue.$t(e.user?"placeholder":"noLoginPlaceHolder"),spellcheck:!1,"aria-label":"leave a comment"},domProps:{value:e.content},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.submit():null},input:function(t){t.target.composing||(e.content=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"vssue-new-comment-footer"},[e.user?n("span",{staticClass:"vssue-current-user"},[n("span",[e._v(e._s(e.vssue.$t("currentUser"))+" - "+e._s(e.user.username)+" - ")]),e._v(" "),n("a",{staticClass:"vssue-logout",on:{click:function(t){return e.vssue.logout()}}},[e._v("\n "+e._s(e.vssue.$t("logout"))+"\n ")])]):n("span",{staticClass:"vssue-current-user"},[e._v("\n "+e._s(e.vssue.$t("loginToComment",{platform:e.platform}))+"\n ")]),e._v(" "),n("div",{staticClass:"vssue-new-comment-operations"},[e.user?n("VssueButton",{staticClass:"vssue-button-submit-comment",attrs:{type:"primary",disabled:e.isSubmitDisabled},on:{click:function(t){return e.submit()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],attrs:{name:"loading"}}),e._v("\n\n "+e._s(e.vssue.$t(e.loading?"submitting":"submitComment"))+"\n ")],1):n("VssueButton",{staticClass:"vssue-button-login",attrs:{type:"primary",title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}},[e._v("\n "+e._s(e.vssue.$t("login",{platform:e.platform}))+"\n ")])],1)])])},staticRenderFns:[]},void 0,Qe,void 0,!1,void 0,!1,void 0,void 0,void 0);let Xe=class extends e{constructor(){super(...arguments),this.progress={show:!1,percent:0,timer:null,speed:200},this.alert={show:!1,message:null,timer:null}}onLoadingCommentsChange(e){this.vssue.comments&&(e?this.progressStart():this.progressDone())}created(){this.vssue.$on("error",e=>this.alertShow(e.message))}beforeDestroy(){this.vssue.$off("error"),null!==this.progress.timer&&window.clearTimeout(this.progress.timer),null!==this.alert.timer&&window.clearTimeout(this.alert.timer)}progressStart(){this.progress.show=!0,this.progress.percent=0,this.progress.timer=window.setInterval(()=>{this.progress.percent+=5,this.progress.percent>94&&null!==this.progress.timer&&window.clearInterval(this.progress.timer)},this.progress.speed)}progressDone(){this.progress.percent=100,null!==this.progress.timer&&window.clearTimeout(this.progress.timer),this.progress.timer=null,window.setTimeout(()=>{this.progress.show=!1},this.progress.speed)}alertShow(e){this.alert.show=!0,this.alert.message=e,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=window.setTimeout(()=>{this.alertHide()},3e3)}alertHide(){this.alert.show=!1,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=null}};t([l()],Xe.prototype,"vssue",void 0),t([h("vssue.isLoadingComments")],Xe.prototype,"onLoadingCommentsChange",null),Xe=t([u({components:{TransitionFade:g}})],Xe);const Ke=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-notice"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.progress.show,expression:"progress.show"}],staticClass:"vssue-progress",style:{width:e.progress.percent+"%",transition:"all "+e.progress.speed+"ms linear"}}),e._v(" "),n("TransitionFade",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.alert.show,expression:"alert.show"}],staticClass:"vssue-alert",domProps:{textContent:e._s(e.alert.message)},on:{click:function(t){return e.alertHide()}}})])],1)},staticRenderFns:[]},void 0,Xe,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ze=class extends e{get status(){return this.vssue.isFailed?"failed":this.vssue.isInitializing?"initializing":this.vssue.isIssueNotCreated&&!this.vssue.isCreatingIssue?this.vssue.isAdmin||!this.vssue.isLogined?"issueNotCreated":"failed":this.vssue.isLoginRequired?"loginRequired":!this.vssue.comments||this.vssue.isCreatingIssue?"loadingComments":0===this.vssue.comments.data.length?"noComments":null}handleClick(){"issueNotCreated"===this.status?this.vssue.postIssue():"loginRequired"===this.status&&this.vssue.login()}};t([l()],Ze.prototype,"vssue",void 0),Ze=t([u({components:{TransitionFade:g,VssueIcon:y}})],Ze);const et=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TransitionFade",[e.status?n("div",{key:e.status,staticClass:"vssue-status"},[["failed","loadingComments","initializing"].includes(e.status)?n("VssueIcon",{attrs:{name:"failed"===e.status?"error":"loading"}}):e._e(),e._v(" "),n("p",{staticClass:"vssue-status-info"},[n(["issueNotCreated","loginRequired"].includes(e.status)?"a":"span",{tag:"Component",on:{click:e.handleClick}},[e._v("\n "+e._s(e.vssue.$t(e.status))+"\n ")])],1)],1):e._e()])},staticRenderFns:[]},void 0,Ze,void 0,!1,void 0,!1,void 0,void 0,void 0);let tt=class extends e{};t([l()],tt.prototype,"vssue",void 0),tt=t([u({components:{TransitionFade:g,VssueIcon:y,VssueComments:Ye,VssueNewComment:Je,VssueNotice:Ke,VssueStatus:et}})],tt);const nt=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("TransitionFade",[this.vssue.isInitializing?t("VssueStatus"):t("div",{staticClass:"vssue-body"},[this.vssue.API?t("VssueNewComment"):this._e(),this._v(" "),t("VssueNotice"),this._v(" "),t("TransitionFade",[this.vssue.comments&&this.vssue.comments.data.length>0?t("VssueComments"):t("VssueStatus")],1)],1)],1)},staticRenderFns:[]},void 0,tt,void 0,!1,void 0,!1,void 0,void 0,void 0);let st=class extends e{};t([l()],st.prototype,"vssue",void 0),st=t([u],st);const rt=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-header"},[n("a",{staticClass:"vssue-header-comments-count",attrs:{href:e.vssue.issue?e.vssue.issue.link:null,target:"_blank",rel:"noopener noreferrer"}},[n("span",[e._v("\n "+e._s(e.vssue.comments?e.vssue.$tc("comments",e.vssue.comments.count,{count:e.vssue.comments.count}):e.vssue.$tc("comments",0))+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-header-powered-by"},[n("span",[e._v("Powered by")]),e._v(" "),e.vssue.API?n("span",[n("a",{attrs:{href:e.vssue.API.platform.link,title:e.vssue.API.platform.name+" API "+e.vssue.API.platform.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.vssue.API.platform.name)+"\n ")]),e._v(" "),n("span",[e._v("&")])]):e._e(),e._v(" "),n("a",{attrs:{href:"https://github.com/meteorlxy/vssue",title:"Vssue v"+e.vssue.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n Vssue\n ")])])])},staticRenderFns:[]},void 0,st,void 0,!1,void 0,!1,void 0,void 0,void 0); +/*! + * vue-i18n v8.15.3 + * (c) 2019 kazuya kawaguchi + * Released under the MIT License. + */ +var it=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function ot(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function at(e){return null!==e&&"object"==typeof e}var ct=Object.prototype.toString,ut="[object Object]";function lt(e){return ct.call(e)===ut}function pt(e){return null==e}function dt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,s=null;return 1===e.length?at(e[0])||Array.isArray(e[0])?s=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(at(e[1])||Array.isArray(e[1]))&&(s=e[1])),{locale:n,params:s}}function ht(e){return JSON.parse(JSON.stringify(e))}var mt=Object.prototype.hasOwnProperty;function ft(e,t){return mt.call(e,t)}function vt(e){for(var t=arguments,n=Object(e),s=1;s0;)t[n]=arguments[n+1];var s=this.$i18n;return s._t.apply(s,[e,s.locale,s._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],s=arguments.length-2;s-- >0;)n[s]=arguments[s+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}(kt),kt.mixin(yt),kt.directive("t",{bind:xt,update:It,unbind:Tt}),kt.component(bt.name,bt),kt.component($t.name,$t),kt.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Dt=function(){this._caches=Object.create(null)};Dt.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,s="";for(;n0)p--,l=zt,d[Rt]();else{if(p=0,void 0===n)return!1;if(!1===(n=Gt(n)))return!1;d[jt]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!h()){if(r=Yt(t),(i=(a=Bt[l])[r]||a.else||Ut)===Ut)return;if(l=i[0],(o=d[i[1]])&&(s=void 0===(s=i[2])?t:s,!1===o()))return;if(l===Vt)return c}}(e))&&(this._cache[e]=t),t||[]},Qt.prototype.getPathValue=function(e,t){if(!at(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var s=n.length,r=e,i=0;i/,Kt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Zt=/^@(?:\.([a-z]+))?:/,en=/[()]/g,tn={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()}},nn=new Dt,sn=function(e){var t=this;void 0===e&&(e={}),!kt&&"undefined"!=typeof window&&window.Vue&&At(window.Vue);var n=e.locale||"en-US",s=e.fallbackLocale||"en-US",r=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||nn,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Qt,this._dataListeners=[],this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._exist=function(e,n){return!(!e||!n)&&(!pt(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:s,messages:r,dateTimeFormats:i,numberFormats:o})},rn={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0}};sn.prototype._checkLocaleMessage=function(e,t,n){var s=function(e,t,n,r){if(lt(n))Object.keys(n).forEach((function(i){var o=n[i];lt(o)?(r.push(i),r.push("."),s(e,t,o,r),r.pop(),r.pop()):(r.push(i),s(e,t,o,r),r.pop())}));else if(Array.isArray(n))n.forEach((function(n,i){lt(n)?(r.push("["+i+"]"),r.push("."),s(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(e,t,n,r),r.pop())}));else if("string"==typeof n){if(Xt.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?ot(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};s(t,e,n,[])},sn.prototype._initVM=function(e){var t=kt.config.silent;kt.config.silent=!0,this._vm=new kt({data:e}),kt.config.silent=t},sn.prototype.destroyVM=function(){this._vm.$destroy()},sn.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},sn.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},sn.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)kt.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},sn.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},rn.vm.get=function(){return this._vm},rn.messages.get=function(){return ht(this._getMessages())},rn.dateTimeFormats.get=function(){return ht(this._getDateTimeFormats())},rn.numberFormats.get=function(){return ht(this._getNumberFormats())},rn.availableLocales.get=function(){return Object.keys(this.messages).sort()},rn.locale.get=function(){return this._vm.locale},rn.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},rn.fallbackLocale.get=function(){return this._vm.fallbackLocale},rn.fallbackLocale.set=function(e){this._vm.$set(this._vm,"fallbackLocale",e)},rn.formatFallbackMessages.get=function(){return this._formatFallbackMessages},rn.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},rn.missing.get=function(){return this._missing},rn.missing.set=function(e){this._missing=e},rn.formatter.get=function(){return this._formatter},rn.formatter.set=function(e){this._formatter=e},rn.silentTranslationWarn.get=function(){return this._silentTranslationWarn},rn.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},rn.silentFallbackWarn.get=function(){return this._silentFallbackWarn},rn.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},rn.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},rn.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},rn.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},rn.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var s=this._getMessages();Object.keys(s).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,s[e])}))}},sn.prototype._getMessages=function(){return this._vm.messages},sn.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},sn.prototype._getNumberFormats=function(){return this._vm.numberFormats},sn.prototype._warnDefault=function(e,t,n,s,r){if(!pt(n))return n;if(this._missing){var i=this._missing.apply(null,[e,t,s,r]);if("string"==typeof i)return i}if(this._formatFallbackMessages){var o=dt.apply(void 0,r);return this._render(t,"string",o.params,t)}return t},sn.prototype._isFallbackRoot=function(e){return!e&&!pt(this._root)&&this._fallbackRoot},sn.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},sn.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},sn.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},sn.prototype._interpolate=function(e,t,n,s,r,i,o){if(!t)return null;var a,c=this._path.getPathValue(t,n);if(Array.isArray(c)||lt(c))return c;if(pt(c)){if(!lt(t))return null;if("string"!=typeof(a=t[n]))return null}else{if("string"!=typeof c)return null;a=c}return(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,s,"raw",i,o)),this._render(a,r,i,n)},sn.prototype._link=function(e,t,n,s,r,i,o){var a=n,c=a.match(Kt);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],p=l.match(Zt),d=p[0],h=p[1],m=l.replace(d,"").replace(en,"");if(o.includes(m))return a;o.push(m);var f=this._interpolate(e,t,m,s,"raw"===r?"string":r,"raw"===r?void 0:i,o);if(this._isFallbackRoot(f)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;f=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,s,r,i)}f=this._warnDefault(e,m,f,s,Array.isArray(i)?i:[i]),this._modifiers.hasOwnProperty(h)?f=this._modifiers[h](f):tn.hasOwnProperty(h)&&(f=tn[h](f)),o.pop(),a=f?a.replace(l,f):a}return a},sn.prototype._render=function(e,t,n,s){var r=this._formatter.interpolate(e,n,s);return r||(r=nn.interpolate(e,n,s)),"string"===t?r.join(""):r},sn.prototype._translate=function(e,t,n,s,r,i,o){var a=this._interpolate(t,e[t],s,r,i,o,[s]);return pt(a)&&pt(a=this._interpolate(n,e[n],s,r,i,o,[s]))?null:a},sn.prototype._t=function(e,t,n,s){for(var r,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var a=dt.apply(void 0,i),c=a.locale||t,u=this._translate(n,c,this.fallbackLocale,e,s,"string",a.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return this._warnDefault(c,e,u,s,i)},sn.prototype.t=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},sn.prototype._i=function(e,t,n,s,r){var i=this._translate(n,t,this.fallbackLocale,e,s,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,s,[r])},sn.prototype.i=function(e,t,n){return e?("string"!=typeof t&&(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},sn.prototype._tc=function(e,t,n,s,r){for(var i,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===r&&(r=1);var c={count:r,n:r},u=dt.apply(void 0,o);return u.params=Object.assign(c,u.params),o=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,s].concat(o)),r)},sn.prototype.fetchChoice=function(e,t){if(!e&&"string"!=typeof e)return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},sn.prototype.getChoiceIndex=function(e,t){var n,s;return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[e,t]):(n=e,s=t,n=Math.abs(n),2===s?n?n>1?1:0:1:n?Math.min(n,2):0)},sn.prototype.tc=function(e,t){for(var n,s=[],r=arguments.length-2;r-- >0;)s[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(s))},sn.prototype._te=function(e,t,n){for(var s=[],r=arguments.length-3;r-- >0;)s[r]=arguments[r+3];var i=dt.apply(void 0,s).locale||t;return this._exist(n[i],e)},sn.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},sn.prototype.getLocaleMessage=function(e){return ht(this._vm.messages[e]||{})},sn.prototype.setLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,t)},sn.prototype.mergeLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,vt({},this._vm.messages[e]||{},t))},sn.prototype.getDateTimeFormat=function(e){return ht(this._vm.dateTimeFormats[e]||{})},sn.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t)},sn.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,vt(this._vm.dateTimeFormats[e]||{},t))},sn.prototype._localizeDateTime=function(e,t,n,s,r){var i=t,o=s[i];if((pt(o)||pt(o[r]))&&(o=s[i=n]),pt(o)||pt(o[r]))return null;var a=o[r],c=i+"__"+r,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(i,a)),u.format(e)},sn.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var s=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return s||""},sn.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:at(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._d(e,s,r)},sn.prototype.getNumberFormat=function(e){return ht(this._vm.numberFormats[e]||{})},sn.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t)},sn.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,vt(this._vm.numberFormats[e]||{},t))},sn.prototype._getNumberFormatter=function(e,t,n,s,r,i){var o=t,a=s[o];if((pt(a)||pt(a[r]))&&(a=s[o=n]),pt(a)||pt(a[r]))return null;var c,u=a[r];if(i)c=new Intl.NumberFormat(o,Object.assign({},u,i));else{var l=o+"__"+r;(c=this._numberFormatters[l])||(c=this._numberFormatters[l]=new Intl.NumberFormat(o,u))}return c},sn.prototype._n=function(e,t,n,s){if(!sn.availabilities.numberFormat)return"";if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},s))}return i||""},sn.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null,i=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:at(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var s;return it.includes(n)?Object.assign({},e,((s={})[n]=t[0][n],s)):e}),null)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._n(e,s,r,i)},sn.prototype._ntp=function(e,t,n,s){if(!sn.availabilities.numberFormat)return[];if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,s)}return i||[]},Object.defineProperties(sn.prototype,rn),Object.defineProperty(sn,"availabilities",{get:function(){if(!Jt){var e="undefined"!=typeof Intl;Jt={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Jt}}),sn.install=At,sn.version="8.15.3";const on={login:"Login with {platform}",logout:"Logout",currentUser:"Current User",loading:"Loading",submit:"Submit",submitting:"Submitting",submitComment:"Submit Comment",cancel:"Cancel",edit:"Edit",editMode:"Edit Mode",delete:"Delete",reply:"Reply",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comments per page",sort:"Click to change the sort direction",page:"Page",prev:"Previous Page",next:"Next Page",comments:"Comments | {count} Comment | {count} Comments",loginToComment:"Login with {platform} account to leave a comment",placeholder:"Leave a comment. Styling with Markdown is supported. Ctrl + Enter to submit.",noLoginPlaceHolder:"Login to leave a comment. Styling with Markdown is supported. ",failed:"Failed to load comments",initializing:"Initializing...",issueNotCreated:"Click to create issue",loadingComments:"Loading comments...",loginRequired:"Login to view comments",noComments:"No comments yet. Leave the first comment !",reactionGiven:"Already given '{reaction}' reaction",deleteConfirm:"Confirm to delete this comment ?",deleteFailed:"Failed to delete comment"},an={login:"使用 {platform} 登录",logout:"退出登录",currentUser:"当前用户",loading:"加载中",submit:"提交",submitting:"发表中",submitComment:"发表评论",cancel:"取消",edit:"编辑",editMode:"编辑模式",delete:"删除",reply:"回复",heart:"喜欢",like:"赞",unlike:"踩",perPage:"每页评论数",sort:"点击改变排序方式",page:"页数",prev:"上一页",next:"下一页",comments:"评论 | {count} 条评论 | {count} 条评论",loginToComment:"使用 {platform} 帐号登录后发表评论",placeholder:"留下你的评论丨支持 Markdown 语法丨Ctrl + Enter 发表评论",noLoginPlaceHolder:"登录后才能发表评论丨支持 Markdown 语法",failed:"评论加载失败",initializing:"正在初始化...",issueNotCreated:"点击创建 Issue",loadingComments:"正在加载评论...",loginRequired:"登录后查看评论",noComments:"还没有评论,来发表第一条评论吧!",reactionGiven:"已经添加过 '{reaction}' 了",deleteConfirm:"确认要删除该评论吗?",deleteFailed:"评论删除失败"},cn={login:"Entrar com {platform}",logout:"Sair",currentUser:"Usuário Atual",loading:"Carregando",submit:"Enviar",submitting:"Enviando",submitComment:"Enviar Comentário",cancel:"Cancelar",edit:"Editar",editMode:"Modo de Edição",delete:"Apagar",reply:"Responder",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comentários por página",sort:"Clique para alterar a ordenação",page:"Página",prev:"Página Anterior",next:"Próxima Página",comments:"Comentários | {count} Comentário | {count} Comentários",loginToComment:"Entre com uma conta {platform} para deixar um comentário",placeholder:"Deixe um comentário. Estilos com Markdown suportados. Ctrl + Enter para enviar.",noLoginPlaceHolder:"Entre para deixar um comentário. Estilos com Markdown suportados. ",failed:"Falha ao carregar comentários",initializing:"Inicializando...",issueNotCreated:"Click to create issue",loadingComments:"Carregando comentários...",loginRequired:"Entrar para visualizar comentários",noComments:"Nenhum comentário. Deixe o primeiro comentário!",reactionGiven:"Já reagiu com '{reaction}'",deleteConfirm:"Apagar este comentário?",deleteFailed:"Falha ao apagar comentário"},un={login:"{platform} でログイン",logout:"ログアウト",currentUser:"現在のユーザー",loading:"読み込み中",submit:"送信",submitting:"送信中",submitComment:"コメントを送信",cancel:"キャンセル",edit:"編集",editMode:"編集モード",delete:"削除",reply:"返信",heart:"ハート",like:"高評価",unlike:"低評価",perPage:"コメント/ページ",sort:"並び順を変更するにはクリックしてください",page:"ページ",prev:"前のページ",next:"次のページ",comments:"コメント | {count} コメント | {count} コメント",loginToComment:"コメントを残すには {platform} アカウントでログインしてください。",placeholder:"コメントを残してください。Markdown 記法をサポートしています。 Ctrl + Enter で送信できます。",noLoginPlaceHolder:"コメントを残すにはログインしてください。マークダウン記法をサポートしています。",failed:"コメントの読み込みに失敗しました",initializing:"初期化中...",issueNotCreated:"Click to create issue",loadingComments:"コメントの読み込み中...",loginRequired:"コメントを見るにはログインしてください",noComments:"まだコメントがありません。最初のコメントを残しましょう!",reactionGiven:"既に '{reaction}' のリアクションをしています",deleteConfirm:"本当にコメントを削除してもいいですか?",deleteFailed:"コメントの削除に失敗しました"},ln={login:"התחברו עם {platform}",logout:"התנתקו",currentUser:"משתמש/ת נוכחי/ת",loading:"טוען",submit:"שליחה",submitting:"שולח",submitComment:"שליחת תגובה",cancel:"ביטל",edit:"עריכה",editMode:"מצב עריכה",delete:"מחיקה",reply:"תשובה",heart:"לב",like:"לייק",unlike:"אנלייק",perPage:"תגובות לדף",sort:"לחצו כדי לשנות את כיוון המיון",page:"דף",prev:"הדף הקודם",next:"הדף הבא",comments:"תגובות | {count} תגובה | {count} תגובות",loginToComment:"התחברו עם חשבון {platform} כדי להשאיר תגובה",placeholder:"השאירו תגובה. יש תמיכה בעיצוב בעזרת Markdown. Ctrl + Enter כדי לשלוח.",noLoginPlaceHolder:"התחברו כדי להשאיר תגובה. יש תמיכה בעיצוב בעזרת Markdown. ",failed:"כשלון בטעינת התגובות",initializing:"מאתחל...",issueNotCreated:"לחצו ליצירת issue",loadingComments:"טוען תגובות...",loginRequired:"התחברו כדי לצפות בתגובות",noComments:"עדיין אין תגובות. השאירו תגובה ראשונה !",reactionGiven:"כבר ניתן חיווי '{reaction}'",deleteConfirm:"בטוחים במחיקת התגובה ?",deleteFailed:"כשלון במחיקת התגובה"};Object.prototype.hasOwnProperty.call(e,"$i18n")||e.use(sn);const pn=new sn({locale:"en",fallbackLocale:"en",messages:{en:on,"en-US":on,zh:an,"zh-CN":an,pt:cn,"pt-BR":cn,ja:un,"ja-JP":un,he:ln,"he-IL":ln}});let dn=class extends e{constructor(){super(...arguments),this.title=e=>`${e.prefix}${document.title}`,this.issueId=null,this.options=null,this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:10,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1}get version(){return"1.4.8"}get issueTitle(){return null===this.options?"":"function"==typeof this.title?this.title(this.options):`${this.options.prefix}${this.title}`}get isPending(){return this.isLoadingComments||this.isCreatingComment||this.isUpdatingComment}get isLogined(){return null!==this.accessToken&&null!==this.user}get isAdmin(){return null!==this.options&&null!==this.accessToken&&null!==this.user&&(this.user.username===this.options.owner||this.options.admins.includes(this.user.username))}get accessTokenKey(){return this.API?`Vssue.${this.API.platform.name.toLowerCase()}.access_token`:""}onQueryPerPageChange(){this.query.page=1,this.getComments()}onQueryChange(){this.getComments()}setOptions(e){this.options=Object.assign({labels:["Vssue"],state:"Vssue",prefix:"[Vssue]",admins:[],perPage:10,proxy:e=>`https://cors-anywhere.azm.workers.dev/${e}`,issueContent:({url:e})=>e,autoCreateIssue:!1},e);const t=["api","owner","repo","clientId"];for(const e of t)this.options[e]||console.warn(`[Vssue] the option '${e}' is required`);if(this.options.locale)this.$i18n.locale=this.options.locale;else{const e=Object.keys(this.$i18n.messages),t=window.navigator.languages;this.$i18n.locale=t.filter(t=>e.includes(t)).shift()||"en"}}async init(){try{await this.initStore(),await this.initComments()}catch(e){e.response&&[401,403].includes(e.response.status)?this.isLoginRequired=!0:this.isFailed=!0,console.error(e)}}async initStore(){try{if(!this.options)throw new Error("Options are required to initialize Vssue");this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:this.options.perPage,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1;const e=this.options.api;this.API=new e({baseURL:this.options.baseURL,labels:this.options.labels,state:this.options.state,owner:this.options.owner,repo:this.options.repo,clientId:this.options.clientId,clientSecret:this.options.clientSecret,proxy:this.options.proxy}),await this.handleAuth()}finally{this.isInitializing=!1}}async initComments(){if(this.API&&this.options)if(this.issueId){const[e,t]=await Promise.all([this.API.getIssue({accessToken:this.accessToken,issueId:this.issueId}),this.API.getComments({accessToken:this.accessToken,issueId:this.issueId,query:this.query})]);this.issue=e,this.comments=t}else this.issue=await this.API.getIssue({accessToken:this.accessToken,issueTitle:this.issueTitle}),null===this.issue?(this.isIssueNotCreated=!0,this.options.autoCreateIssue&&await this.postIssue()):await this.getComments()}async postIssue(){if(this.API&&this.options&&!this.issue&&!this.issueId&&(this.isLogined||this.login(),this.isAdmin))try{this.isCreatingIssue=!0;const e=await this.API.postIssue({title:this.issueTitle,content:await this.options.issueContent({options:this.options,url:ze(window.location.href)}),accessToken:this.accessToken});this.issue=e,this.isIssueNotCreated=!1,await this.getComments()}catch(e){this.isFailed=!0}finally{this.isCreatingIssue=!1}}async getComments(){try{if(!this.API||!this.issue||this.isLoadingComments)return;this.isLoadingComments=!0;const e=await this.API.getComments({accessToken:this.accessToken,issueId:this.issue.id,query:this.query});return this.comments=e,this.query.page!==e.page&&(this.query.page=e.page),this.query.perPage!==e.perPage&&(this.query.perPage=e.perPage),e}catch(e){if(!e.response||![401,403].includes(e.response.status)||this.isLogined)throw this.$emit("error",e),e;this.isLoginRequired=!0}finally{this.isLoadingComments=!1}}async postComment({content:e}){try{if(!this.API||!this.issue||this.isCreatingComment)return;return this.isCreatingComment=!0,await this.API.postComment({accessToken:this.accessToken,content:e,issueId:this.issue.id})}catch(e){throw this.$emit("error",e),e}finally{this.isCreatingComment=!1}}async putComment({commentId:e,content:t}){try{if(!this.API||!this.issue)return;return await this.API.putComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,content:t})}catch(e){throw this.$emit("error",e),e}}async deleteComment({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.deleteComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async getCommentReactions({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.getCommentReactions({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async postCommentReaction({commentId:e,reaction:t}){try{if(!this.API||!this.issue)return!1;return await this.API.postCommentReaction({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,reaction:t})}catch(e){throw this.$emit("error",e),e}}login(){this.API&&this.API.redirectAuth()}logout(){this.setAccessToken(null),this.user=null}async handleAuth(){if(!this.API)return;const e=await this.API.handleAuth();e?(this.setAccessToken(e),this.user=await this.API.getUser({accessToken:e})):this.getAccessToken()?this.user=await this.API.getUser({accessToken:this.accessToken}):(this.setAccessToken(null),this.user=null)}getAccessToken(){return this.accessToken=window.localStorage.getItem(this.accessTokenKey),this.accessToken}setAccessToken(e){null===e?window.localStorage.removeItem(this.accessTokenKey):window.localStorage.setItem(this.accessTokenKey,e),this.accessToken=e}};t([h("query.perPage")],dn.prototype,"onQueryPerPageChange",null),t([h("query.page"),h("query.sort")],dn.prototype,"onQueryChange",null),dn=t([u({i18n:pn})],dn);var hn=dn;let mn=class extends e{constructor(){super(...arguments),this.vssue=new hn}onOptionsChange(e){this.vssue.setOptions(e)}mounted(){null!==this.title&&(this.vssue.title=this.title),null!==this.issueId&&(this.vssue.issueId=this.issueId),this.vssue.setOptions(this.options),this.vssue.init()}};var fn;t([d({type:[String,Function],required:!1,default:null})],mn.prototype,"title",void 0),t([d({type:[String,Number],required:!1,default:null})],mn.prototype,"issueId",void 0),t([d({type:Object,required:!1,default:()=>({})})],mn.prototype,"options",void 0),t([(fn="vssue",i((function(e,t){var n=e.provide;if("function"!=typeof n||!n.managed){var s=e.provide;(n=e.provide=function(){var e=Object.create(("function"==typeof s?s.call(this):s)||null);for(var t in n.managed)e[n.managed[t]]=this[t];return e}).managed={}}n.managed[t]=fn||t})))],mn.prototype,"vssue",void 0),t([h("options",{deep:!0})],mn.prototype,"onOptionsChange",null),mn=t([u({components:{Iconfont:v,VssueBody:nt,VssueHeader:rt}})],mn);const vn=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue"},[t("Iconfont"),this._v(" "),t("VssueHeader"),this._v(" "),t("VssueBody")],1)},staticRenderFns:[]},void 0,mn,void 0,!1,void 0,!1,void 0,void 0,void 0),gn={get version(){return"1.4.8"},installed:!1,install(e,t){if(this.installed)return!1;this.installed=!0,e.component("Vssue",{functional:!0,props:{title:{type:String,required:!1,default:void 0},issueId:{type:[Number,String],required:!1,default:void 0},options:{type:Object,required:!1,default:void 0}},render:(e,{data:n,props:s})=>e(vn,Object.assign(Object.assign({},n),{props:{title:s.title,issueId:s.issueId,options:Object.assign({},t,s.options)}}))})},VssueComponent:vn};var yn=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([n]):r[t]?r[t]+", "+n:n}})),r):r}(i.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};!function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(Sn("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,r),i=null}},i.onabort=function(){i&&(n(Sn("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Sn("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Sn(t,e,"ECONNABORTED",i)),i=null},In.isStandardBrowserEnv()){var p=(e.withCredentials||Ln(l))&&e.xsrfCookieName?Rn.read(e.xsrfCookieName):void 0;p&&(r[e.xsrfHeaderName]=p)}if("setRequestHeader"in i&&In.forEach(r,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete r[t]:i.setRequestHeader(t,e)})),In.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),s||(s=null),i.send(s)}))},En={"Content-Type":"application/x-www-form-urlencoded"};function zn(e,t){!In.isUndefined(e)&&In.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var qn,Hn={adapter:("undefined"!=typeof XMLHttpRequest?qn=Nn:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(qn=Nn),qn),transformRequest:[function(e,t){return Fn(t,"Accept"),Fn(t,"Content-Type"),In.isFormData(e)||In.isArrayBuffer(e)||In.isBuffer(e)||In.isStream(e)||In.isFile(e)||In.isBlob(e)?e:In.isArrayBufferView(e)?e.buffer:In.isURLSearchParams(e)?(zn(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):In.isObject(e)?(zn(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Hn.headers={common:{Accept:"application/json, text/plain, */*"}},In.forEach(["delete","get","head"],(function(e){Hn.headers[e]={}})),In.forEach(["post","put","patch"],(function(e){Hn.headers[e]=In.merge(En)}));var Vn=Hn;function Un(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Bn=function(e){return Un(e),e.headers=e.headers||{},e.data=An(e.data,e.headers,e.transformRequest),e.headers=In.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),In.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Vn.adapter)(e).then((function(t){return Un(e),t.data=An(t.data,t.headers,e.transformResponse),t}),(function(t){return Dn(t)||(Un(e),t&&t.response&&(t.response.data=An(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Wn=function(e,t){t=t||{};var n={},s=["url","method","data"],r=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function a(e,t){return In.isPlainObject(e)&&In.isPlainObject(t)?In.merge(e,t):In.isPlainObject(t)?In.merge({},t):In.isArray(t)?t.slice():t}function c(s){In.isUndefined(t[s])?In.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(e[s],t[s])}In.forEach(s,(function(e){In.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),In.forEach(r,c),In.forEach(i,(function(s){In.isUndefined(t[s])?In.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(void 0,t[s])})),In.forEach(o,(function(s){s in t?n[s]=a(e[s],t[s]):s in e&&(n[s]=a(void 0,e[s]))}));var u=s.concat(r).concat(i).concat(o),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return In.forEach(l,c),n};function Yn(e){this.defaults=e,this.interceptors={request:new On,response:new On}}Yn.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Wn(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Bn,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Yn.prototype.getUri=function(e){return e=Wn(this.defaults,e),Mn(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},In.forEach(["delete","get","head","options"],(function(e){Yn.prototype[e]=function(t,n){return this.request(Wn(n||{},{method:e,url:t,data:(n||{}).data}))}})),In.forEach(["post","put","patch"],(function(e){Yn.prototype[e]=function(t,n,s){return this.request(Wn(s||{},{method:e,url:t,data:n}))}}));var Gn=Yn;function Qn(e){this.message=e}Qn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Qn.prototype.__CANCEL__=!0;var Jn=Qn;function Xn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Jn(e),t(n.reason))}))}Xn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Xn.source=function(){var e;return{token:new Xn((function(t){e=t})),cancel:e}};var Kn=Xn;function Zn(e){var t=new Gn(e),n=yn(Gn.prototype.request,t);return In.extend(n,Gn.prototype,t),In.extend(n,t),n}var es=Zn(Vn);es.Axios=Gn,es.create=function(e){return Zn(Wn(es.defaults,e))},es.Cancel=Jn,es.CancelToken=Kn,es.isCancel=Dn,es.all=function(e){return Promise.all(e)},es.spread=function(e){return function(t){return e.apply(null,t)}},es.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var ts=es,ns=es;ts.default=ns;var ss=ts;function rs(e){return{username:e.login,avatar:e.avatar_url,homepage:e.html_url}}function is(e){return{id:e.number,title:e.title,content:e.body,link:e.html_url}}function os(e){return{like:e["+1"],unlike:e[-1],heart:e.heart}}function as(e){return{id:e.id,content:e.body_html,contentRaw:e.body,author:rs(e.user),createdAt:e.created_at,updatedAt:e.updated_at,reactions:os(e.reactions)}}function cs(e){return"like"===e?"+1":"unlike"===e?"-1":e}class us{constructor({baseURL:e="https://github.com",owner:t,repo:n,labels:s,clientId:r,clientSecret:i,state:o,proxy:a}){if(void 0===i||void 0===a)throw new Error("clientSecret and proxy is required for GitHub V3");this.baseURL=e,this.owner=t,this.repo=n,this.labels=s,this.clientId=r,this.clientSecret=i,this.state=o,this.proxy=a,this.$http=ss.create({baseURL:"https://github.com"===e?"https://api.github.com":B(e,"api/v3"),headers:{Accept:"application/vnd.github.v3+json"}}),this.$http.interceptors.response.use(e=>e.data&&e.data.error?Promise.reject(new Error(e.data.error_description)):e,e=>(void 0===e.response&&"Network Error"===e.message&&(e.response={status:403}),Promise.reject(e)))}get platform(){return{name:"GitHub",link:this.baseURL,version:"v3",meta:{reactable:!0,sortable:!1}}}redirectAuth(){window.location.href=U(B(this.baseURL,"login/oauth/authorize"),{client_id:this.clientId,redirect_uri:window.location.href,scope:"public_repo",state:this.state})}async handleAuth(){const e=qe(window.location.search);if(e.code){if(e.state!==this.state)return null;const t=e.code;delete e.code,delete e.state;const n=U(ze(window.location.href),e)+window.location.hash;return window.history.replaceState(null,"",n),await this.getAccessToken({code:t})}return null}async getAccessToken({code:e}){const t=B(this.baseURL,"login/oauth/access_token"),n="function"==typeof this.proxy?this.proxy(t):this.proxy,{data:s}=await this.$http.post(n,{client_id:this.clientId,client_secret:this.clientSecret,code:e},{headers:{Accept:"application/json"}});return s.access_token}async getUser({accessToken:e}){const{data:t}=await this.$http.get("user",{headers:{Authorization:`token ${e}`}});return rs(t)}async getIssue({accessToken:e,issueId:t,issueTitle:n}){const s={};if(e&&(s.headers={Authorization:`token ${e}`}),!t){s.params={q:[`"${n}"`,"is:issue","in:title",`repo:${this.owner}/${this.repo}`,"is:public",...this.labels.map(e=>`label:${e}`)].join(" "),timestamp:Date.now()};const{data:e}=await this.$http.get("search/issues",s);return e.items.map(is).find(e=>e.title===n)||null}try{s.params={timestamp:Date.now()};const{data:e}=await this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}`,s);return is(e)}catch(e){if(e.response&&404===e.response.status)return null;throw e}}async postIssue({accessToken:e,title:t,content:n}){const{data:s}=await this.$http.post(`repos/${this.owner}/${this.repo}/issues`,{title:t,body:n,labels:this.labels},{headers:{Authorization:`token ${e}`}});return is(s)}async getComments({accessToken:e,issueId:t,query:{page:n=1,perPage:s=10}={}}){const r={params:{timestamp:Date.now()}},i={params:{page:n,per_page:s,timestamp:Date.now()},headers:{Accept:["application/vnd.github.v3.raw+json","application/vnd.github.v3.html+json","application/vnd.github.squirrel-girl-preview"]}};e&&(r.headers={Authorization:`token ${e}`},i.headers.Authorization=`token ${e}`);const[o,a]=await Promise.all([this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}`,r),this.$http.get(`repos/${this.owner}/${this.repo}/issues/${t}/comments`,i)]),c=a.headers.link||null,u=/rel="next"/.test(c)?Number(c.replace(/^.*[^_]page=(\d*).*rel="next".*$/,"$1"))-1:/rel="prev"/.test(c)?Number(c.replace(/^.*[^_]page=(\d*).*rel="prev".*$/,"$1"))+1:1,l=c?Number(c.replace(/^.*per_page=(\d*).*$/,"$1")):s;return{count:Number(o.data.comments),page:u,perPage:l,data:a.data.map(as)}}async postComment({accessToken:e,issueId:t,content:n}){const{data:s}=await this.$http.post(`repos/${this.owner}/${this.repo}/issues/${t}/comments`,{body:n},{headers:{Authorization:`token ${e}`,Accept:["application/vnd.github.v3.raw+json","application/vnd.github.v3.html+json","application/vnd.github.squirrel-girl-preview"]}});return as(s)}async putComment({accessToken:e,commentId:t,content:n}){const{data:s}=await this.$http.patch(`repos/${this.owner}/${this.repo}/issues/comments/${t}`,{body:n},{headers:{Authorization:`token ${e}`,Accept:["application/vnd.github.v3.raw+json","application/vnd.github.v3.html+json","application/vnd.github.squirrel-girl-preview"]}});return as(s)}async deleteComment({accessToken:e,commentId:t}){const{status:n}=await this.$http.delete(`repos/${this.owner}/${this.repo}/issues/comments/${t}`,{headers:{Authorization:`token ${e}`}});return 204===n}async getCommentReactions({accessToken:e,commentId:t}){const{data:n}=await this.$http.get(`repos/${this.owner}/${this.repo}/issues/comments/${t}`,{params:{timestamp:Date.now()},headers:{Authorization:`token ${e}`,Accept:"application/vnd.github.squirrel-girl-preview"}});return os(n.reactions)}async postCommentReaction({accessToken:e,commentId:t,reaction:n}){const s=await this.$http.post(`repos/${this.owner}/${this.repo}/issues/comments/${t}/reactions`,{content:cs(n)},{headers:{Authorization:`token ${e}`,Accept:"application/vnd.github.squirrel-girl-preview"}});return 200===s.status?this.deleteCommentReaction({accessToken:e,commentId:t,reactionId:s.data.id}):201===s.status}async deleteCommentReaction({accessToken:e,commentId:t,reactionId:n}){return 204===(await this.$http.delete(`repos/${this.owner}/${this.repo}/issues/comments/${t}/reactions/${n}`,{headers:{Authorization:`token ${e}`,Accept:"application/vnd.github.squirrel-girl-preview"}})).status}}"undefined"!=typeof window&&window.Vue&&window.Vue.use(gn,{api:us})}(Vue); \ No newline at end of file diff --git a/assets/lib/vssue/vssue.gitlab.min.js b/assets/lib/vssue/vssue.gitlab.min.js new file mode 100644 index 000000000..73cf330ea --- /dev/null +++ b/assets/lib/vssue/vssue.gitlab.min.js @@ -0,0 +1,30 @@ +/*! + * vssue - A vue-powered issue-based comment plugin + * + * @version v1.4.8 + * @link https://vssue.js.org + * @license MIT + * @copyright 2018-2021 meteorlxy + */ +!function(e){"use strict"; +/*! ***************************************************************************** + Copyright (c) Microsoft Corporation. All rights reserved. + Licensed under the Apache License, Version 2.0 (the "License"); you may not use + this file except in compliance with the License. You may obtain a copy of the + License at http://www.apache.org/licenses/LICENSE-2.0 + + THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, + MERCHANTABLITY OR NON-INFRINGEMENT. + + See the Apache Version 2.0 License for specific language governing permissions + and limitations under the License. + ***************************************************************************** */ +function t(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}e=e&&e.hasOwnProperty("default")?e.default:e;var n="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function s(e,t,n){(n?Reflect.getOwnMetadataKeys(t,n):Reflect.getOwnMetadataKeys(t)).forEach((function(s){var r=n?Reflect.getOwnMetadata(s,t,n):Reflect.getOwnMetadata(s,t);n?Reflect.defineMetadata(s,r,e,n):Reflect.defineMetadata(s,r,e)}))}var r={__proto__:[]}instanceof Array;function i(e){return function(t,n,s){var r="function"==typeof t?t:t.constructor;r.__decorators__||(r.__decorators__=[]),"number"!=typeof s&&(s=void 0),r.__decorators__.push((function(t){return e(t,n,s)}))}}var o=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function a(t,i){void 0===i&&(i={}),i.name=i.name||t._componentTag||t.name;var a=t.prototype;Object.getOwnPropertyNames(a).forEach((function(e){if("constructor"!==e)if(o.indexOf(e)>-1)i[e]=a[e];else{var t=Object.getOwnPropertyDescriptor(a,e);void 0!==t.value?"function"==typeof t.value?(i.methods||(i.methods={}))[e]=t.value:(i.mixins||(i.mixins=[])).push({data:function(){var n;return(n={})[e]=t.value,n}}):(t.get||t.set)&&((i.computed||(i.computed={}))[e]={get:t.get,set:t.set})}})),(i.mixins||(i.mixins=[])).push({data:function(){return function(e,t){var n=t.prototype._init;t.prototype._init=function(){var t=this,n=Object.getOwnPropertyNames(e);if(e.$options.props)for(var s in e.$options.props)e.hasOwnProperty(s)||n.push(s);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){e[n]=t},configurable:!0})}))};var s=new t;t.prototype._init=n;var r={};return Object.keys(s).forEach((function(e){void 0!==s[e]&&(r[e]=s[e])})),r}(this,t)}});var u=t.__decorators__;u&&(u.forEach((function(e){return e(i)})),delete t.__decorators__);var l,d,p=Object.getPrototypeOf(t.prototype),h=p instanceof e?p.constructor:e,m=h.extend(i);return function(e,t,n){Object.getOwnPropertyNames(t).forEach((function(s){if(!c[s]){var i=Object.getOwnPropertyDescriptor(e,s);if(!i||i.configurable){var o,a,u=Object.getOwnPropertyDescriptor(t,s);if(!r){if("cid"===s)return;var l=Object.getOwnPropertyDescriptor(n,s);if(o=u.value,a=typeof o,null!=o&&("object"===a||"function"===a)&&l&&l.value===u.value)return}Object.defineProperty(e,s,u)}}}))}(m,t,h),n&&(s(l=m,d=t),Object.getOwnPropertyNames(d.prototype).forEach((function(e){s(l.prototype,d.prototype,e)})),Object.getOwnPropertyNames(d).forEach((function(e){s(l,d,e)}))),m}var c={prototype:!0,arguments:!0,callee:!0,caller:!0};function u(e){return"function"==typeof e?a(e):function(t){return a(t,e)}}function l(e){return i((function(t,n){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[n]=e||n)}))}u.registerHooks=function(e){o.push.apply(o,e)};var d="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function p(e){return void 0===e&&(e={}),function(t,n){!function(e,t,n){d&&(Array.isArray(e)||"function"==typeof e||void 0!==e.type||(e.type=Reflect.getMetadata("design:type",t,n)))}(e,t,n),i((function(t,n){(t.props||(t.props={}))[n]=e}))(t,n)}}function h(e,t){void 0===t&&(t={});var n=t.deep,s=void 0!==n&&n,r=t.immediate,o=void 0!==r&&r;return i((function(t,n){"object"!=typeof t.watch&&(t.watch=Object.create(null));var r=t.watch;"object"!=typeof r[e]||Array.isArray(r[e])?void 0===r[e]&&(r[e]=[]):r[e]=[r[e]],r[e].push({handler:n,deep:s,immediate:o})}))}var m=e.extend({name:"Iconfont"});function f(e,t,n,s,r,i,o,a,c,u){"boolean"!=typeof o&&(c=a,a=o,o=!1);const l="function"==typeof n?n.options:n;let d;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),s&&(l._scopeId=s),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):t&&(d=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(l.functional){const e=l.render;l.render=function(t,n){return d.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());const v=f({render:function(e,t){var n=t._c;return n("svg",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("symbol",{attrs:{id:"vssue-icon-bitbucket",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M579.5522464 489.45249493q4.8371808 38.38537173-30.81752427 61.55702827t-67.95459093 3.66689493q-23.79580907-10.37653333-32.6119616-35.34262826t-0.31207573-50.01020907 31.67573333-35.34262827q21.92335253-11.00068587 44.1587808-7.33379093t39.00952427 21.61127573 16.77409493 41.1160384zM647.19476053 476.65737173q-8.50407573-65.22392427-68.8908192-99.9424t-120.07131413-7.9579424q-38.38537173 17.08617173-61.24495253 53.9111616t-21.0651424 78.95527574q2.41859093 55.4715424 47.20152426 94.48106666t100.87862827 34.1723424q55.4715424-4.8371808 92.60860907-51.18049493t30.50544746-102.43900907zM792.93434133 146.32472427q-12.17097173-16.4620192-34.1723424-27.15062827t-35.34262826-13.41927573-43.30057174-7.64586667q-177.33729493-28.63299093-345.00022826 1.24830507-26.2144 4.29104747-40.25782827 7.33379093t-33.54819093 13.41927573-30.50544747 26.2144q18.2564576 17.08617173 46.34331413 27.6967616t44.78293334 13.41927574 53.36502826 7.02171413q138.95192427 17.71032427 273.06666667 0.62415253 38.38537173-4.8371808 54.53531413-7.33379093t44.1587808-13.1072 45.7191616-28.32091413zM827.65281813 777.10872427q-4.8371808 15.83786667-9.44030506 46.65539093t-8.50407574 51.18049493-17.39824746 42.6764192-35.34262827 34.4064q-52.4288 29.2571424-115.46819093 43.61264747t-123.1140576 13.41927573-122.8019808-11.3127616q-28.0088384-4.8371808-49.69813334-11.00068586t-46.65539093-16.4620192-44.4708576-26.52647574-31.67573333-37.4491424q-15.21371413-58.51428587-34.71847574-177.96144746l3.66689494-9.7523808 11.00068586-5.46133334q135.9091808 90.1900192 308.72137174 90.1900192t309.34552426-90.1900192q12.79512427 3.66689493 14.5895616 14.04342827t-3.0427424 27.46270507-4.8371808 22.54750506zM937.97175147 191.41973333q-15.83786667 101.8148576-67.64251414 399.22346667-3.0427424 18.2564576-16.4620192 34.1723424t-26.52647573 24.3419424-33.23611413 18.88060907q-153.61950507 76.7707424-371.8387808 53.67710506-151.12289493-16.4620192-240.14262827-84.72868586-9.12822827-7.33379093-15.52579093-16.1499424t-10.37653334-21.2992-5.46133333-20.75306667-3.66689493-24.10788587-3.3548192-21.2992q-5.46133333-30.50544747-16.1499424-91.43832426t-17.08617174-98.4600384-14.35550506-89.8779424-13.41927574-96.27550507q1.7944384-15.83786667 10.68860907-29.5692192t19.19268587-22.8595808 27.46270506-18.2564576 28.0088384-13.73135253 29.2571424-11.3127616q76.22460907-28.0088384 190.75657174-39.00952427 231.0144-22.54750507 412.01859093 30.50544747 94.48106667 28.0088384 131.072 74.35215253 9.7523808 12.17097173 10.0644576 31.0515808t-3.3548192 32.9240384z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitea",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M184.31868985 236.10860742C106.94832667 235.94086648 3.32655508 285.13080468 9.02973665 408.46209936c8.93218827 192.65010787 206.32096845 210.5144844 285.20099725 212.06608453 8.63864186 36.14810496 101.48307766 160.77938883 170.21479898 167.32127321h301.09442177c180.57278288-11.99345499 315.77172611-546.07960359 215.54670217-548.09249109-165.7696721 7.79993906-264.02374305 11.74184405-348.27147151 12.41280591v166.69224585l-26.25140843-11.61603761-0.16773997-154.99233728c-96.70246985-0.04193548-181.83083757-4.52899687-343.4069947-12.49667687-20.21274496-0.12580547-48.39316992-3.5644886-78.67035236-3.64835859z m10.94507577 68.14462849h9.22573371c10.98701124 98.75729283 28.85138778 156.50200291 64.99949274 244.73357185-92.25734394-10.90314029-170.75995634-37.69970509-185.18564974-137.75698809-7.46445813-51.78991757 17.69663558-105.84433456 110.96042329-107.01851827z m358.83913087 97.07988723c6.29027343 0.08386999 12.70635233 1.25805468 18.74501482 4.02577499l31.40943263 13.54505513-22.51917887 41.05451824a28.18042496 25.03528825 0 0 0-10.10637297 1.59353561 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 4.69673781 7.29671718l-38.83195528 70.70267333a28.18042496 25.03528825 0 0 0-9.30960467 1.59353659 28.18042496 25.03528825 0 0 0-16.98373825 32.038459 28.18042496 25.03528825 0 0 0 36.06423497 15.09665623 28.18042496 25.03528825 0 0 0 16.94180276-32.08039449 28.18042496 25.03528825 0 0 0-6.62575434-9.22573468l37.82551056-68.85752581a28.18042496 25.03528825 0 0 0 12.28700044-1.25805469 28.18042496 25.03528825 0 0 0 8.93218826-4.69673783c14.59343435 6.12253248 26.54495386 11.11281671 35.14166122 15.34826717 12.91602778 6.37414341 17.48696012 10.60959485 18.87082027 15.30633169 1.38386015 4.61286685-0.12580547 13.50312062-7.42252263 29.10299872-5.45157063 11.61603859-14.46762889 28.09655497-25.11915823 47.51253164a28.18042496 25.03528825 0 0 0-10.52572486 1.59353659 28.18042496 25.03528825 0 0 0-16.98373826 32.038459 28.18042496 25.03528825 0 0 0 36.06423498 15.09665623 28.18042496 25.03528825 0 0 0 16.94180278-32.03845901 28.18042496 25.03528825 0 0 0-5.74511608-8.47090188c10.52572388-19.20630122 19.58371762-35.72875308 25.41270465-48.14155897 7.88380904-16.85793279 11.99345499-29.39654416 8.38703091-41.51580463-3.60642311-12.11926046-14.67730434-20.0030695-29.35460966-27.25785217-9.6450856-4.73867233-21.68047607-9.77089106-36.06423399-15.80955357a28.18042496 25.03528825 0 0 0-1.59353562-10.022502 28.18042496 25.03528825 0 0 0-6.08059796-8.7644483l22.14176246-40.38355541 122.61839638 52.96410227c22.14176247 9.6031511 31.2836262 33.12877372 20.54822685 52.8382968l-84.28966393 154.32137544c-10.77733482 19.66758857-37.23841869 27.80300855-59.38018118 18.24179293l-173.48574115-74.98005927c-22.14176247-9.5612156-31.32556167-33.12877372-20.54822687-52.83829679l84.28966395-154.27943995c7.38058716-13.54505513 22.22563246-21.59660511 37.951317-22.22563246h2.68384935z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitee",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M978.404275 409.561604H455.061338c-25.117645 0-45.499734 20.382089-45.499734 45.499734l-0.031997 113.781333c0 25.117645 20.350092 45.499734 45.499734 45.531731h318.594132c25.117645 0 45.499734 20.382089 45.499734 45.499735v22.749867a136.5312 136.5312 0 0 1-136.5312 136.5312H250.248539a45.499734 45.499734 0 0 1-45.499734-45.499734V341.343999a136.5312 136.5312 0 0 1 136.5312-136.5312L978.308284 204.780802c25.117645 0 45.499734-20.350092 45.499734-45.467738L1023.904009 45.531731h0.031997A45.499734 45.499734 0 0 0 978.468269 0h-0.031997L341.343999 0.031997C152.84967 0.031997 0.031997 152.84967 0.031997 341.343999v637.092273c0 25.117645 20.382089 45.499734 45.499734 45.499734h671.233072a307.171203 307.171203 0 0 0 307.171203-307.171203v-261.671468c0-25.117645-20.382089-45.499734-45.499734-45.499734z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-github",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 20.4425c-278.334 0-504 225.6345-504 504 0 222.6735 144.4275 411.6105 344.673 478.233 25.2 4.662 34.461-10.9305 34.461-24.255 0-12.0015-0.4725-51.723-0.693-93.8385-140.238 30.492-169.8165-59.472-169.8165-59.472-22.932-58.2435-55.944-73.7415-55.944-73.7415-45.738-31.2795 3.465-30.6495 3.465-30.6495 50.589 3.5595 77.238 51.9435 77.238 51.9435 44.9505 77.049 117.9045 54.7785 146.664 41.895 4.5045-32.571 17.577-54.81 32.004-67.41-111.951-12.726-229.635-55.9755-229.635-249.0705 0-55.0305 19.6875-99.981 51.9435-135.2925-5.229-12.6945-22.491-63.945 4.8825-133.371 0 0 42.336-13.545 138.6315 51.66 40.194-11.1825 83.3175-16.758 126.1575-16.9785 42.8085 0.189 85.9635 5.796 126.252 16.9785 96.201-65.205 138.4425-51.66 138.4425-51.66 27.4365 69.426 10.1745 120.6765 4.9455 133.371 32.319 35.28 51.8805 80.262 51.8805 135.2925 0 193.5675-117.9045 236.187-230.139 248.6925 18.081 15.6555 34.1775 46.305 34.1775 93.3345 0 67.4415-0.5985 121.716-0.5985 138.3165 0 13.419 9.072 29.1375 34.6185 24.192 200.151-66.717 344.3895-255.5595 344.3895-478.17 0-278.3655-225.666-504-504-504z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-gitlab",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M66.61375986 405.11600042L512.11376028 976.03999972 23.84576 621.65599958a39.312 39.312 0 0 1-14.07600042-43.30799944l56.8080007-173.26800028z m259.88400014 0h371.26800014L512.14975986 976.03999972zM215.11376 60.88400042l111.384 344.232H66.61375986l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z m742.49999972 344.232l56.8080007 173.2679993a39.23999986 39.23999986 0 0 1-14.07600042 43.30800042l-488.26800028 354.38400014 445.50000042-570.92400028z m0 0h-259.88400014l111.384-344.232a19.72800014 19.72800014 0 0 1 37.11600014 0z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-loading",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M843.307 742.24c0 3.217 2.607 5.824 5.824 5.824s5.824-2.607 5.824-5.824a5.823 5.823 0 0 0-5.824-5.824 5.823 5.823 0 0 0-5.824 5.824zM714.731 874.912c0 6.398 5.186 11.584 11.584 11.584s11.584-5.186 11.584-11.584-5.186-11.584-11.584-11.584-11.584 5.186-11.584 11.584zM541.419 943.2c0 9.614 7.794 17.408 17.408 17.408s17.408-7.794 17.408-17.408-7.794-17.408-17.408-17.408-17.408 7.794-17.408 17.408z m-186.56-9.152c0 12.795 10.373 23.168 23.168 23.168s23.168-10.373 23.168-23.168-10.373-23.168-23.168-23.168-23.168 10.373-23.168 23.168zM189.355 849.12c0 16.012 12.98 28.992 28.992 28.992s28.992-12.98 28.992-28.992-12.98-28.992-28.992-28.992-28.992 12.98-28.992 28.992zM74.731 704.736c0 19.228 15.588 34.816 34.816 34.816s34.816-15.588 34.816-34.816-15.588-34.816-34.816-34.816-34.816 15.588-34.816 34.816z m-43.008-177.28c0 22.41 18.166 40.576 40.576 40.576s40.576-18.166 40.576-40.576-18.166-40.576-40.576-40.576-40.576 18.166-40.576 40.576z m35.392-176.128c0 25.626 20.774 46.4 46.4 46.4s46.4-20.774 46.4-46.4c0-25.626-20.774-46.4-46.4-46.4-25.626 0-46.4 20.774-46.4 46.4z m106.176-142.016c0 28.843 23.381 52.224 52.224 52.224s52.224-23.381 52.224-52.224c0-28.843-23.381-52.224-52.224-52.224-28.843 0-52.224 23.381-52.224 52.224z m155.904-81.344c0 32.024 25.96 57.984 57.984 57.984s57.984-25.96 57.984-57.984-25.96-57.984-57.984-57.984-57.984 25.96-57.984 57.984z m175.104-5.056c0 35.24 28.568 63.808 63.808 63.808s63.808-28.568 63.808-63.808c0-35.24-28.568-63.808-63.808-63.808-35.24 0-63.808 28.568-63.808 63.808z m160.32 72.128c0 38.421 31.147 69.568 69.568 69.568s69.568-31.147 69.568-69.568-31.147-69.568-69.568-69.568-69.568 31.147-69.568 69.568z m113.92 135.488c0 41.638 33.754 75.392 75.392 75.392s75.392-33.754 75.392-75.392-33.754-75.392-75.392-75.392-75.392 33.754-75.392 75.392z m45.312 175.488c0 44.854 36.362 81.216 81.216 81.216s81.216-36.362 81.216-81.216c0-44.854-36.362-81.216-81.216-81.216-44.854 0-81.216 36.362-81.216 81.216z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-like",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4-20.5-21.5-48.1-33.4-77.9-33.4-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-0.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81z m636.4-353l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4c4.6 8.4 6.9 17.6 6.9 27.3 0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5c5.2-18.9 22.5-32.2 42.2-32.3 7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-unlike",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4-8.3-3.6-17.2-5.4-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81z m627.2 160.4H496.8l9.6 198.4c0.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7-19.6-0.1-36.9-13.4-42.2-32.3L329 459.2V172h415.4c20.4 9.2 33.6 29.4 33.6 51.8 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19c12.5 10.8 19.6 26.5 19.6 43 0 19.1-11 37.5-28.8 48.4z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-heart",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-edit",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M723.2 917.76H286.72c-65.28 0-118.4-51.2-118.4-113.92V261.76C168.32 198.4 221.44 147.2 286.72 147.2h375.04c17.92 0 32 14.08 32 32s-14.08 32-32 32H286.72c-30.08 0-54.4 22.4-54.4 49.92v542.08c0 27.52 24.32 49.92 54.4 49.92H723.2c30.08 0 54.4-22.4 54.4-49.92V440.32c0-17.92 14.08-32 32-32s32 14.08 32 32v363.52c0 62.72-53.12 113.92-118.4 113.92z"}}),t._v(" "),n("path",{attrs:{d:"M499.84 602.24c-7.68 0-14.72-2.56-21.12-7.68-13.44-11.52-14.72-32-3.2-45.44L780.16 198.4c11.52-13.44 32-14.72 45.44-3.2s14.72 32 3.2 45.44L524.16 591.36c-6.4 7.04-15.36 10.88-24.32 10.88z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-delete",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M677.647059 256l0-90.352941c0-37.436235-23.461647-60.235294-61.771294-60.235294L408.094118 105.411765c-38.249412 0-61.741176 22.799059-61.741176 60.235294l0 90.352941-180.705882 0 0 60.235294 60.235294 0 0 512c0 54.272 33.972706 90.352941 90.352941 90.352941l391.529412 0c55.085176 0 90.352941-33.490824 90.352941-90.352941l0-512 60.235294 0 0-60.235294L677.647059 256zM406.588235 165.647059l210.823529 0-1.264941 90.352941L406.588235 256 406.588235 165.647059zM737.882353 858.352941l-451.764706 0 0-542.117647 451.764706 0L737.882353 858.352941zM466.823529 376.470588l-58.729412 0-1.505882 391.529412 60.235294 0L466.823529 376.470588zM617.411765 376.470588l-60.235294 0 0 391.529412 60.235294 0L617.411765 376.470588z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-reply",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M426.666667 384 426.666667 213.333333 128 512 426.666667 810.666667 426.666667 635.733333C640 635.733333 789.333333 704 896 853.333333 853.333333 640 725.333333 426.666667 426.666667 384Z"}})]),t._v(" "),n("symbol",{attrs:{id:"vssue-icon-error",viewBox:"0 0 1024 1024"}},[n("path",{attrs:{d:"M512 720m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z"}}),t._v(" "),n("path",{attrs:{d:"M480 416v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z"}}),t._v(" "),n("path",{attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48z m-783.5-27.9L512 239.9l339.8 588.2H172.2z"}})])])},staticRenderFns:[]},void 0,m,void 0,!0,void 0,!1,void 0,void 0,void 0);const g=f({},void 0,e.extend({name:"TransitionFade",functional:!0,props:{group:{type:Boolean,required:!1,default:!1},tag:{type:String,required:!1,default:"div"}},render:(e,{props:t,children:n})=>e(t.group?"TransitionGroup":"Transition",{props:{name:"fade",mode:"out-in",appear:!0,tag:t.tag}},n)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);const y=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{name:{type:String,required:!0},title:{type:String,required:!1,default:null}},render:(e,{props:t,data:n})=>e("svg",Object.assign(Object.assign({},n),{class:["vssue-icon",`vssue-icon-${t.name}`],attrs:{"aria-hidden":"true"}}),[e("title",t.title),e("use",{attrs:{"xlink:href":`#vssue-icon-${t.name}`}})])}),void 0,void 0,void 0,!1,void 0,void 0,void 0);var b=Object.prototype.hasOwnProperty,_=Array.isArray,w=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),C=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},s=0;s1;){var t=e.pop(),n=t.obj[t.prop];if(_(n)){for(var s=[],r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=s.charAt(i):o<128?r+=w[o]:o<2048?r+=w[192|o>>6]+w[128|63&o]:o<55296||o>=57344?r+=w[224|o>>12]+w[128|o>>6&63]+w[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&s.charCodeAt(i)),r+=w[240|o>>18]+w[128|o>>12&63]+w[128|o>>6&63]+w[128|63&o])}return r},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n){if(_(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!b.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return _(t)&&!_(n)&&(r=C(t,s)),_(t)&&_(n)?(n.forEach((function(n,r){if(b.call(t,r)){var i=t[r];i&&"object"==typeof i&&n&&"object"==typeof n?t[r]=e(i,n,s):t.push(n)}else t[r]=n})),t):Object.keys(n).reduce((function(t,r){var i=n[r];return b.call(t,r)?t[r]=e(t[r],i,s):t[r]=i,t}),r)}},$=String.prototype.replace,I=/%20/g,x={RFC1738:"RFC1738",RFC3986:"RFC3986"},T=k.assign({default:x.RFC3986,formatters:{RFC1738:function(e){return $.call(e,I,"+")},RFC3986:function(e){return String(e)}}},x),M=Object.prototype.hasOwnProperty,P={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},O=Array.isArray,R=Array.prototype.push,A=function(e,t){R.apply(e,O(t)?t:[t])},D=Date.prototype.toISOString,F=T.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:k.encode,encodeValuesOnly:!1,format:F,formatter:T.formatters[F],indices:!1,serializeDate:function(e){return D.call(e)},skipNulls:!1,strictNullHandling:!1},S=function e(t,n,s,r,i,o,a,c,u,l,d,p,h){var m,f=t;if("function"==typeof a?f=a(n,f):f instanceof Date?f=l(f):"comma"===s&&O(f)&&(f=f.join(",")),null===f){if(r)return o&&!p?o(n,j.encoder,h,"key"):n;f=""}if("string"==typeof(m=f)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||k.isBuffer(f))return o?[d(p?n:o(n,j.encoder,h,"key"))+"="+d(o(f,j.encoder,h,"value"))]:[d(n)+"="+d(String(f))];var v,g=[];if(void 0===f)return g;if(O(a))v=a;else{var y=Object.keys(f);v=c?y.sort(c):y}for(var b=0;b0&&/(\[[^[\]]*])/.exec(s),o=i?s.slice(0,i.index):s,a=[];if(o){if(!n.plainObjects&&L.call(Object.prototype,o)&&!n.allowPrototypes)return;a.push(o)}for(var c=0;n.depth>0&&null!==(i=r.exec(s))&&c=0;--r){var i,o=e[r];if("[]"===o&&n.parseArrays)i=[].concat(s);else{i=n.plainObjects?Object.create(null):{};var a="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&o!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=s:i[a]=s:i={0:s}}s=i}return s}(a,t,n)}},H=function(e,t){var n=function(e){if(!e)return E;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?E.charset:e.charset;return{allowDots:void 0===e.allowDots?E.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:E.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:E.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:E.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:E.comma,decoder:"function"==typeof e.decoder?e.decoder:E.decoder,delimiter:"string"==typeof e.delimiter||k.isRegExp(e.delimiter)?e.delimiter:E.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:E.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:E.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:E.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:E.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:E.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){var n,s={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,i),a=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(l=l.split(",")),d.indexOf("[]=")>-1&&(l=N(l)?[l]:l),L.call(s,u)?s[u]=k.combine(s[u],l):s[u]=l}return s}(e,n):e,r=n.plainObjects?Object.create(null):{},i=Object.keys(s),o=0;o0?d+l:""};const U=e=>V(e),B=(e,t)=>{return`${e}${V(t,{addQueryPrefix:!0})}`},W=(e,t)=>{return`${e.replace(/\/$/,"")}/${t.replace(/^\//,"")}`};var Y=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4};var G=function(e){return e instanceof Date},Q=36e5,J=6e4,X=2,K=/[T ]/,Z=/:/,ee=/^(\d{2})$/,te=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],ne=/^(\d{4})/,se=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],re=/^-(\d{2})$/,ie=/^-?(\d{3})$/,oe=/^-?(\d{2})-?(\d{2})$/,ae=/^-?W(\d{2})$/,ce=/^-?W(\d{2})-?(\d{1})$/,ue=/^(\d{2}([.,]\d*)?)$/,le=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,de=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,pe=/([Z+-].*)$/,he=/^(Z)$/,me=/^([+-])(\d{2})$/,fe=/^([+-])(\d{2}):?(\d{2})$/;function ve(e,t,n){t=t||0,n=n||0;var s=new Date(0);s.setUTCFullYear(e,0,4);var r=7*t+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+r),s}var ge=function(e,t){if(G(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?X:Number(n);var s=function(e){var t,n={},s=e.split(K);Z.test(s[0])?(n.date=null,t=s[0]):(n.date=s[0],t=s[1]);if(t){var r=pe.exec(t);r?(n.time=t.replace(r[1],""),n.timezone=r[1]):n.time=t}return n}(e),r=function(e,t){var n,s=te[t],r=se[t];if(n=ne.exec(e)||r.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=ee.exec(e)||s.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(s.date,n),i=r.year,o=function(e,t){if(null===t)return null;var n,s,r,i;if(0===e.length)return(s=new Date(0)).setUTCFullYear(t),s;if(n=re.exec(e))return s=new Date(0),r=parseInt(n[1],10)-1,s.setUTCFullYear(t,r),s;if(n=ie.exec(e)){s=new Date(0);var o=parseInt(n[1],10);return s.setUTCFullYear(t,0,o),s}if(n=oe.exec(e)){s=new Date(0),r=parseInt(n[1],10)-1;var a=parseInt(n[2],10);return s.setUTCFullYear(t,r,a),s}if(n=ae.exec(e))return i=parseInt(n[1],10)-1,ve(t,i);if(n=ce.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return ve(t,i,c)}return null}(r.restDateString,i);if(o){var a,c=o.getTime(),u=0;if(s.time&&(u=function(e){var t,n,s;if(t=ue.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*Q;if(t=le.exec(e))return n=parseInt(t[1],10),s=parseFloat(t[2].replace(",",".")),n%24*Q+s*J;if(t=de.exec(e)){n=parseInt(t[1],10),s=parseInt(t[2],10);var r=parseFloat(t[3].replace(",","."));return n%24*Q+s*J+1e3*r}return null}(s.time)),s.timezone)a=function(e){var t,n;if(t=he.exec(e))return 0;if(t=me.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=fe.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(s.timezone)*J;else{var l=c+u,d=new Date(l);a=Y(d);var p=new Date(l);p.setDate(d.getDate()+1);var h=Y(p)-Y(d);h>0&&(a+=h)}return new Date(c+u+a)}return new Date(e)};var ye=function(e){var t=ge(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var be=function(e){var t=ge(e);return t.setHours(0,0,0,0),t},_e=6e4,we=864e5;var Ce=function(e,t){var n=be(e),s=be(t),r=n.getTime()-n.getTimezoneOffset()*_e,i=s.getTime()-s.getTimezoneOffset()*_e;return Math.round((r-i)/we)};var ke=function(e){var t=ge(e);return Ce(t,ye(t))+1};var $e=function(e,t){var n=t&&Number(t.weekStartsOn)||0,s=ge(e),r=s.getDay(),i=(r=r.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1};var Te=function(e){var t=xe(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ie(n)},Me=6048e5;var Pe=function(e){var t=ge(e),n=Ie(t).getTime()-Te(t).getTime();return Math.round(n/Me)+1};var Oe=function(e){if(G(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")};var Re=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];var Ae=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var s=Re.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+s.join("|")+"|.)","g")};var De=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],s=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["AM","PM"],o=["am","pm"],a=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return s[e.getDay()]},dddd:function(e){return r[e.getDay()]},A:function(e){return e.getHours()/12>=1?i[1]:i[0]},a:function(e){return e.getHours()/12>=1?o[1]:o[0]},aa:function(e){return e.getHours()/12>=1?a[1]:a[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){c[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:c,formattingTokensRegExp:Ae(c)}},Fe={distanceInWords:function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,s){var r;return s=s||{},r="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),s.addSuffix?s.comparison>0?"in "+r:r+" ago":r}}}(),format:De()};var je={M:function(e){return e.getMonth()+1},MM:function(e){return Ne(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return Ne(e.getDate(),2)},DDD:function(e){return ke(e)},DDDD:function(e){return Ne(ke(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return Pe(e)},WW:function(e){return Ne(Pe(e),2)},YY:function(e){return Ne(e.getFullYear(),4).substr(2)},YYYY:function(e){return Ne(e.getFullYear(),4)},GG:function(e){return String(xe(e)).substr(2)},GGGG:function(e){return xe(e)},H:function(e){return e.getHours()},HH:function(e){return Ne(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return Ne(je.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return Ne(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Ne(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Ne(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Ne(e.getMilliseconds(),3)},Z:function(e){return Le(e.getTimezoneOffset(),":")},ZZ:function(e){return Le(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function Se(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function Le(e,t){t=t||"";var n=e>0?"-":"+",s=Math.abs(e),r=s%60;return n+Ne(Math.floor(s/60),2)+t+Ne(r,2)}function Ne(e,t){for(var n=Math.abs(e).toString();n.length{return Ee(e,"YYYY-MM-DD HH:mm:ss")},qe=e=>{return(e.split("#")[0]||"").split("?")[0]||""},He=e=>H(e,{ignoreQueryPrefix:!0});let Ve=class extends e{constructor(){super(...arguments),this.editMode=!1,this.editContent=this.comment.contentRaw,this.creatingReactions=[],this.isPutingComment=!1,this.isDeletingComment=!1}get currentUser(){return this.vssue.user?this.vssue.user.username:null}get content(){return this.comment.content}get author(){return this.comment.author}get createdAt(){return ze(this.comment.createdAt)}get updatedAt(){return ze(this.comment.updatedAt)}get showReactions(){return Boolean(this.vssue.API&&this.vssue.API.platform.meta.reactable&&this.comment.reactions&&!this.editMode)}get reactionKeys(){return["heart","like","unlike"]}get editContentRows(){return this.editContent.split("\n").length-1}get editInputRows(){return this.editContentRows<3?5:this.editContentRows+2}async postReaction({reaction:e}){try{if(this.creatingReactions.includes(e))return;this.creatingReactions.push(e),await this.vssue.postCommentReaction({commentId:this.comment.id,reaction:e})||this.vssue.$emit("error",new Error(this.vssue.$t("reactionGiven",{reaction:this.vssue.$t(e)})));const t=await this.vssue.getCommentReactions({commentId:this.comment.id});t&&(this.comment.reactions=t)}finally{this.creatingReactions.splice(this.creatingReactions.findIndex(t=>t===e),1)}}enterEdit(){this.editMode=!0,this.$nextTick(()=>{this.$refs.input.focus()})}resetEdit(){this.editMode=!1,this.editContent=this.comment.contentRaw}async putComment(){try{if(this.vssue.isPending)return;if(this.editContent!==this.comment.contentRaw){this.isPutingComment=!0,this.vssue.isUpdatingComment=!0;const e=await this.vssue.putComment({commentId:this.comment.id,content:this.editContent});e&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1,e)}this.editMode=!1}finally{this.isPutingComment=!1,this.vssue.isUpdatingComment=!1}}async deleteComment(){try{if(this.vssue.isPending)return;if(!window.confirm(this.vssue.$t("deleteConfirm")))return;this.isDeletingComment=!0,this.vssue.isUpdatingComment=!0,await this.vssue.deleteComment({commentId:this.comment.id})?(this.vssue.comments.count-=1,this.vssue.comments.data.length>1&&this.vssue.comments.data.splice(this.vssue.comments.data.findIndex(e=>e.id===this.comment.id),1),this.vssue.query.page>1&&this.vssue.query.page>Math.ceil(this.vssue.comments.count/this.vssue.query.perPage)?this.vssue.query.page-=1:await this.vssue.getComments()):this.vssue.$emit("error",new Error(this.vssue.$t("deleteFailed")))}finally{this.isDeletingComment=!1,this.vssue.isUpdatingComment=!1}}};t([p({type:Object,required:!0})],Ve.prototype,"comment",void 0),t([l()],Ve.prototype,"vssue",void 0),Ve=t([u({components:{VssueIcon:y}})],Ve);const Ue=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-comment",class:{"vssue-comment-edit-mode":e.editMode,"vssue-comment-disabled":e.isDeletingComment||e.isPutingComment}},[n("div",{staticClass:"vssue-comment-avatar"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.author.avatar,alt:e.author.username}})])]),e._v(" "),n("div",{staticClass:"vssue-comment-body"},[e._t("body",[n("div",{staticClass:"vssue-comment-header"},[n("span",{staticClass:"vssue-comment-author"},[n("a",{attrs:{href:e.author.homepage,title:e.author.username,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.author.username)+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-comment-created-at"},[e._v("\n "+e._s(e.createdAt)+"\n ")])]),e._v(" "),n("div",{staticClass:"vssue-comment-main"},[e.editMode?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.editContent,expression:"editContent"}],ref:"input",staticClass:"vssue-edit-comment-input",attrs:{rows:e.editInputRows},domProps:{value:e.editContent},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.putComment():null},input:function(t){t.target.composing||(e.editContent=t.target.value)}}}):n("article",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.content)}})]),e._v(" "),n("div",{staticClass:"vssue-comment-footer"},[e.editMode?n("span",{staticClass:"vssue-comment-hint"},[e._v("\n "+e._s(e.vssue.$t("editMode"))+"\n ")]):e._e(),e._v(" "),e.showReactions?n("span",{staticClass:"vssue-comment-reactions"},e._l(e.reactionKeys,(function(t){return n("span",{key:t,staticClass:"vssue-comment-reaction",attrs:{title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)},on:{click:function(n){return e.postReaction({reaction:t})}}},[n("VssueIcon",{attrs:{name:e.creatingReactions.includes(t)?"loading":t,title:e.vssue.$t(e.creatingReactions.includes(t)?"loading":t)}}),e._v(" "),n("span",{staticClass:"vssue-comment-reaction-number"},[e._v("\n "+e._s(e.comment.reactions[t])+"\n ")])],1)})),0):e._e(),e._v(" "),n("span",{staticClass:"vssue-comment-operations"},[e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation",class:{"vssue-comment-operation-muted":e.isPutingComment},attrs:{title:e.vssue.$t(e.isPutingComment?"loading":"submit")},on:{click:function(t){return e.putComment()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.isPutingComment,expression:"isPutingComment"}],attrs:{name:"loading",title:e.vssue.$t("loading")}}),e._v("\n\n "+e._s(e.vssue.$t("submit"))+"\n ")],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser&&e.editMode?n("span",{staticClass:"vssue-comment-operation vssue-comment-operation-muted",attrs:{title:e.vssue.$t("cancel")},on:{click:function(t){return e.resetEdit()}}},[e._v("\n "+e._s(e.vssue.$t("cancel"))+"\n ")]):e._e(),e._v(" "),e.comment.author.username===e.currentUser?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.enterEdit()}}},[n("VssueIcon",{attrs:{name:"edit",title:e.vssue.$t("edit")}})],1):e._e(),e._v(" "),e.comment.author.username===e.currentUser||e.vssue.isAdmin?n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.deleteComment()}}},[n("VssueIcon",{attrs:{name:e.isDeletingComment?"loading":"delete",title:e.vssue.$t(e.isDeletingComment?"loading":"delete")}})],1):e._e(),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.editMode,expression:"!editMode"}],staticClass:"vssue-comment-operation",on:{click:function(t){return e.vssue.$emit("reply-comment",e.comment)}}},[n("VssueIcon",{attrs:{name:"reply",title:e.vssue.$t("reply")}})],1)])])])],2)])},staticRenderFns:[]},void 0,Ve,void 0,!1,void 0,!1,void 0,void 0,void 0);let Be=class extends e{get disabled(){return this.vssue.isPending}get pageCount(){const e=Math.ceil(this.vssue.comments.count/this.vssue.comments.perPage);return e>1?e:1}get perPageOptions(){const e=[5,10,20,50];return!e.includes(this.vssue.options.perPage)&&this.vssue.options.perPage<100&&e.push(this.vssue.options.perPage),e.sort((e,t)=>e-t)}get page(){return this.vssue.query.page>this.pageCount?this.pageCount:this.vssue.query.page}set page(e){e>0&&e<=this.pageCount&&(this.vssue.query.page=e)}get perPage(){return this.vssue.query.perPage}set perPage(e){this.perPageOptions.includes(e)&&(this.vssue.query.perPage=e)}};t([l()],Be.prototype,"vssue",void 0),Be=t([u({components:{VssueIcon:y}})],Be);const We=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-pagination"},[n("div",{staticClass:"vssue-pagination-per-page"},[n("label",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.perPage,expression:"perPage"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.perPage=t.target.multiple?n:n[0]}}},e._l(e.perPageOptions,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",[e._v("\n "+e._s(e.vssue.$t("perPage"))+"\n ")])]),e._v(" "),e.vssue.API.platform.meta.sortable?n("span",{class:{"vssue-pagination-link":!0,disabled:e.disabled},attrs:{title:e.vssue.$t("sort")},on:{click:function(t){e.vssue.query.sort="asc"===e.vssue.query.sort?"desc":"asc"}}},[e._v("\n "+e._s("asc"===e.vssue.query.sort?"↑":"↓")+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"vssue-pagination-page"},[n("span",{class:{"vssue-pagination-link":!0,disabled:1===e.page||e.disabled},attrs:{title:e.vssue.$t("prev")},domProps:{textContent:e._s("<")},on:{click:function(t){e.page-=1}}}),e._v(" "),n("label",[n("span",[e._v("\n "+e._s(e.vssue.$t("page"))+"\n ")]),e._v(" "),n("select",{directives:[{name:"show",rawName:"v-show",value:e.pageCount>1,expression:"pageCount > 1"},{name:"model",rawName:"v-model",value:e.page,expression:"page"}],staticClass:"vssue-pagination-select",attrs:{disabled:e.disabled},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.page=t.target.multiple?n:n[0]}}},e._l(e.pageCount,(function(t){return n("option",{key:t,domProps:{value:t}},[e._v("\n "+e._s(t)+"\n ")])})),0),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.pageCount<2,expression:"pageCount < 2"}],domProps:{textContent:e._s(e.page)}}),e._v(" "),n("span",{domProps:{textContent:e._s(" / "+e.pageCount+" ")}})]),e._v(" "),n("span",{class:{"vssue-pagination-link":!0,disabled:e.page===e.pageCount||e.disabled},attrs:{title:e.vssue.$t("next")},domProps:{textContent:e._s(">")},on:{click:function(t){e.page+=1}}})])])},staticRenderFns:[]},void 0,Be,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ye=class extends e{};t([l()],Ye.prototype,"vssue",void 0),Ye=t([u({components:{TransitionFade:g,VssueComment:Ue,VssuePagination:We}})],Ye);const Ge=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue-comments"},[t("VssuePagination"),this._v(" "),t("TransitionFade",{attrs:{group:""}},this._l(this.vssue.comments.data,(function(e){return t("VssueComment",{key:e.id,attrs:{comment:e}})})),1),this._v(" "),t("VssuePagination",{directives:[{name:"show",rawName:"v-show",value:this.vssue.comments.data.length>5,expression:"vssue.comments.data.length > 5"}]})],1)},staticRenderFns:[]},void 0,Ye,void 0,!1,void 0,!1,void 0,void 0,void 0);const Qe=f({},void 0,e.extend({name:"VssueIcon",functional:!0,props:{type:{type:String,required:!1,default:"default"}},render:(e,{props:t,data:n,children:s})=>e("button",Object.assign(Object.assign({},n),{class:["vssue-button",`vssue-button-${t.type}`]}),s)}),void 0,void 0,void 0,!1,void 0,void 0,void 0);let Je=class extends e{constructor(){super(...arguments),this.content=""}get user(){return this.vssue.user}get platform(){return this.vssue.API&&this.vssue.API.platform.name}get isInputDisabled(){return this.loading||null===this.user||null===this.vssue.issue}get isSubmitDisabled(){return""===this.content||this.vssue.isPending||null===this.vssue.issue}get loading(){return this.vssue.isCreatingComment}get contentRows(){return this.content.split("\n").length-1}get inputRows(){return this.contentRows<3?5:this.contentRows+2}created(){this.vssue.$on("reply-comment",e=>{const t=e.contentRaw.replace(/\n/g,"\n> "),n=`@${e.author.username}\n\n> ${t}\n\n`;this.content=this.content.concat(n),this.focus()})}beforeDestroy(){this.vssue.$off("reply-comment")}focus(){this.$refs.input.focus()}async submit(){this.isSubmitDisabled||(await this.vssue.postComment({content:this.content}),this.content="",await this.vssue.getComments())}};t([l()],Je.prototype,"vssue",void 0),Je=t([u({components:{VssueButton:Qe,VssueIcon:y}})],Je);const Xe=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-new-comment"},[n("div",{staticClass:"vssue-comment-avatar"},[e.user?n("a",{attrs:{href:e.user.homepage,title:e.user.username,target:"_blank",rel:"noopener noreferrer"}},[n("img",{attrs:{src:e.user.avatar,alt:e.user.username}})]):n("VssueIcon",{attrs:{name:e.platform.toLowerCase(),title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}})],1),e._v(" "),n("div",{staticClass:"vssue-new-comment-body"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"input",staticClass:"vssue-new-comment-input",attrs:{rows:e.inputRows,disabled:e.isInputDisabled,placeholder:e.vssue.$t(e.user?"placeholder":"noLoginPlaceHolder"),spellcheck:!1,"aria-label":"leave a comment"},domProps:{value:e.content},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.ctrlKey?e.submit():null},input:function(t){t.target.composing||(e.content=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"vssue-new-comment-footer"},[e.user?n("span",{staticClass:"vssue-current-user"},[n("span",[e._v(e._s(e.vssue.$t("currentUser"))+" - "+e._s(e.user.username)+" - ")]),e._v(" "),n("a",{staticClass:"vssue-logout",on:{click:function(t){return e.vssue.logout()}}},[e._v("\n "+e._s(e.vssue.$t("logout"))+"\n ")])]):n("span",{staticClass:"vssue-current-user"},[e._v("\n "+e._s(e.vssue.$t("loginToComment",{platform:e.platform}))+"\n ")]),e._v(" "),n("div",{staticClass:"vssue-new-comment-operations"},[e.user?n("VssueButton",{staticClass:"vssue-button-submit-comment",attrs:{type:"primary",disabled:e.isSubmitDisabled},on:{click:function(t){return e.submit()}}},[n("VssueIcon",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],attrs:{name:"loading"}}),e._v("\n\n "+e._s(e.vssue.$t(e.loading?"submitting":"submitComment"))+"\n ")],1):n("VssueButton",{staticClass:"vssue-button-login",attrs:{type:"primary",title:e.vssue.$t("loginToComment",{platform:e.platform})},on:{click:function(t){return e.vssue.login()}}},[e._v("\n "+e._s(e.vssue.$t("login",{platform:e.platform}))+"\n ")])],1)])])},staticRenderFns:[]},void 0,Je,void 0,!1,void 0,!1,void 0,void 0,void 0);let Ke=class extends e{constructor(){super(...arguments),this.progress={show:!1,percent:0,timer:null,speed:200},this.alert={show:!1,message:null,timer:null}}onLoadingCommentsChange(e){this.vssue.comments&&(e?this.progressStart():this.progressDone())}created(){this.vssue.$on("error",e=>this.alertShow(e.message))}beforeDestroy(){this.vssue.$off("error"),null!==this.progress.timer&&window.clearTimeout(this.progress.timer),null!==this.alert.timer&&window.clearTimeout(this.alert.timer)}progressStart(){this.progress.show=!0,this.progress.percent=0,this.progress.timer=window.setInterval(()=>{this.progress.percent+=5,this.progress.percent>94&&null!==this.progress.timer&&window.clearInterval(this.progress.timer)},this.progress.speed)}progressDone(){this.progress.percent=100,null!==this.progress.timer&&window.clearTimeout(this.progress.timer),this.progress.timer=null,window.setTimeout(()=>{this.progress.show=!1},this.progress.speed)}alertShow(e){this.alert.show=!0,this.alert.message=e,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=window.setTimeout(()=>{this.alertHide()},3e3)}alertHide(){this.alert.show=!1,null!==this.alert.timer&&window.clearTimeout(this.alert.timer),this.alert.timer=null}};t([l()],Ke.prototype,"vssue",void 0),t([h("vssue.isLoadingComments")],Ke.prototype,"onLoadingCommentsChange",null),Ke=t([u({components:{TransitionFade:g}})],Ke);const Ze=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-notice"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.progress.show,expression:"progress.show"}],staticClass:"vssue-progress",style:{width:e.progress.percent+"%",transition:"all "+e.progress.speed+"ms linear"}}),e._v(" "),n("TransitionFade",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.alert.show,expression:"alert.show"}],staticClass:"vssue-alert",domProps:{textContent:e._s(e.alert.message)},on:{click:function(t){return e.alertHide()}}})])],1)},staticRenderFns:[]},void 0,Ke,void 0,!1,void 0,!1,void 0,void 0,void 0);let et=class extends e{get status(){return this.vssue.isFailed?"failed":this.vssue.isInitializing?"initializing":this.vssue.isIssueNotCreated&&!this.vssue.isCreatingIssue?this.vssue.isAdmin||!this.vssue.isLogined?"issueNotCreated":"failed":this.vssue.isLoginRequired?"loginRequired":!this.vssue.comments||this.vssue.isCreatingIssue?"loadingComments":0===this.vssue.comments.data.length?"noComments":null}handleClick(){"issueNotCreated"===this.status?this.vssue.postIssue():"loginRequired"===this.status&&this.vssue.login()}};t([l()],et.prototype,"vssue",void 0),et=t([u({components:{TransitionFade:g,VssueIcon:y}})],et);const tt=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TransitionFade",[e.status?n("div",{key:e.status,staticClass:"vssue-status"},[["failed","loadingComments","initializing"].includes(e.status)?n("VssueIcon",{attrs:{name:"failed"===e.status?"error":"loading"}}):e._e(),e._v(" "),n("p",{staticClass:"vssue-status-info"},[n(["issueNotCreated","loginRequired"].includes(e.status)?"a":"span",{tag:"Component",on:{click:e.handleClick}},[e._v("\n "+e._s(e.vssue.$t(e.status))+"\n ")])],1)],1):e._e()])},staticRenderFns:[]},void 0,et,void 0,!1,void 0,!1,void 0,void 0,void 0);let nt=class extends e{};t([l()],nt.prototype,"vssue",void 0),nt=t([u({components:{TransitionFade:g,VssueIcon:y,VssueComments:Ge,VssueNewComment:Xe,VssueNotice:Ze,VssueStatus:tt}})],nt);const st=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("TransitionFade",[this.vssue.isInitializing?t("VssueStatus"):t("div",{staticClass:"vssue-body"},[this.vssue.API?t("VssueNewComment"):this._e(),this._v(" "),t("VssueNotice"),this._v(" "),t("TransitionFade",[this.vssue.comments&&this.vssue.comments.data.length>0?t("VssueComments"):t("VssueStatus")],1)],1)],1)},staticRenderFns:[]},void 0,nt,void 0,!1,void 0,!1,void 0,void 0,void 0);let rt=class extends e{};t([l()],rt.prototype,"vssue",void 0),rt=t([u],rt);const it=f({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vssue-header"},[n("a",{staticClass:"vssue-header-comments-count",attrs:{href:e.vssue.issue?e.vssue.issue.link:null,target:"_blank",rel:"noopener noreferrer"}},[n("span",[e._v("\n "+e._s(e.vssue.comments?e.vssue.$tc("comments",e.vssue.comments.count,{count:e.vssue.comments.count}):e.vssue.$tc("comments",0))+"\n ")])]),e._v(" "),n("span",{staticClass:"vssue-header-powered-by"},[n("span",[e._v("Powered by")]),e._v(" "),e.vssue.API?n("span",[n("a",{attrs:{href:e.vssue.API.platform.link,title:e.vssue.API.platform.name+" API "+e.vssue.API.platform.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n "+e._s(e.vssue.API.platform.name)+"\n ")]),e._v(" "),n("span",[e._v("&")])]):e._e(),e._v(" "),n("a",{attrs:{href:"https://github.com/meteorlxy/vssue",title:"Vssue v"+e.vssue.version,target:"_blank",rel:"noopener noreferrer"}},[e._v("\n Vssue\n ")])])])},staticRenderFns:[]},void 0,rt,void 0,!1,void 0,!1,void 0,void 0,void 0); +/*! + * vue-i18n v8.15.3 + * (c) 2019 kazuya kawaguchi + * Released under the MIT License. + */ +var ot=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher","unit"];function at(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function ct(e){return null!==e&&"object"==typeof e}var ut=Object.prototype.toString,lt="[object Object]";function dt(e){return ut.call(e)===lt}function pt(e){return null==e}function ht(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,s=null;return 1===e.length?ct(e[0])||Array.isArray(e[0])?s=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(ct(e[1])||Array.isArray(e[1]))&&(s=e[1])),{locale:n,params:s}}function mt(e){return JSON.parse(JSON.stringify(e))}var ft=Object.prototype.hasOwnProperty;function vt(e,t){return ft.call(e,t)}function gt(e){for(var t=arguments,n=Object(e),s=1;s0;)t[n]=arguments[n+1];var s=this.$i18n;return s._t.apply(s,[e,s.locale,s._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],s=arguments.length-2;s-- >0;)n[s]=arguments[s+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}($t),$t.mixin(bt),$t.directive("t",{bind:xt,update:Tt,unbind:Mt}),$t.component(_t.name,_t),$t.component(It.name,It),$t.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var Dt=function(){this._caches=Object.create(null)};Dt.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,s="";for(;n0)d--,l=qt,p[St]();else{if(d=0,void 0===n)return!1;if(!1===(n=Qt(n)))return!1;p[Lt]()}};null!==l;)if(u++,"\\"!==(t=e[u])||!h()){if(r=Gt(t),(i=(a=Wt[l])[r]||a.else||Bt)===Bt)return;if(l=i[0],(o=p[i[1]])&&(s=void 0===(s=i[2])?t:s,!1===o()))return;if(l===Ut)return c}}(e))&&(this._cache[e]=t),t||[]},Jt.prototype.getPathValue=function(e,t){if(!ct(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var s=n.length,r=e,i=0;i/,Zt=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,en=/^@(?:\.([a-z]+))?:/,tn=/[()]/g,nn={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()}},sn=new Dt,rn=function(e){var t=this;void 0===e&&(e={}),!$t&&"undefined"!=typeof window&&window.Vue&&At(window.Vue);var n=e.locale||"en-US",s=e.fallbackLocale||"en-US",r=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||sn,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Jt,this._dataListeners=[],this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._exist=function(e,n){return!(!e||!n)&&(!pt(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:s,messages:r,dateTimeFormats:i,numberFormats:o})},on={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0}};rn.prototype._checkLocaleMessage=function(e,t,n){var s=function(e,t,n,r){if(dt(n))Object.keys(n).forEach((function(i){var o=n[i];dt(o)?(r.push(i),r.push("."),s(e,t,o,r),r.pop(),r.pop()):(r.push(i),s(e,t,o,r),r.pop())}));else if(Array.isArray(n))n.forEach((function(n,i){dt(n)?(r.push("["+i+"]"),r.push("."),s(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),s(e,t,n,r),r.pop())}));else if("string"==typeof n){if(Kt.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?at(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};s(t,e,n,[])},rn.prototype._initVM=function(e){var t=$t.config.silent;$t.config.silent=!0,this._vm=new $t({data:e}),$t.config.silent=t},rn.prototype.destroyVM=function(){this._vm.$destroy()},rn.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},rn.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},rn.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)$t.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},rn.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},on.vm.get=function(){return this._vm},on.messages.get=function(){return mt(this._getMessages())},on.dateTimeFormats.get=function(){return mt(this._getDateTimeFormats())},on.numberFormats.get=function(){return mt(this._getNumberFormats())},on.availableLocales.get=function(){return Object.keys(this.messages).sort()},on.locale.get=function(){return this._vm.locale},on.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},on.fallbackLocale.get=function(){return this._vm.fallbackLocale},on.fallbackLocale.set=function(e){this._vm.$set(this._vm,"fallbackLocale",e)},on.formatFallbackMessages.get=function(){return this._formatFallbackMessages},on.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},on.missing.get=function(){return this._missing},on.missing.set=function(e){this._missing=e},on.formatter.get=function(){return this._formatter},on.formatter.set=function(e){this._formatter=e},on.silentTranslationWarn.get=function(){return this._silentTranslationWarn},on.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},on.silentFallbackWarn.get=function(){return this._silentFallbackWarn},on.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},on.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},on.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},on.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},on.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var s=this._getMessages();Object.keys(s).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,s[e])}))}},rn.prototype._getMessages=function(){return this._vm.messages},rn.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},rn.prototype._getNumberFormats=function(){return this._vm.numberFormats},rn.prototype._warnDefault=function(e,t,n,s,r){if(!pt(n))return n;if(this._missing){var i=this._missing.apply(null,[e,t,s,r]);if("string"==typeof i)return i}if(this._formatFallbackMessages){var o=ht.apply(void 0,r);return this._render(t,"string",o.params,t)}return t},rn.prototype._isFallbackRoot=function(e){return!e&&!pt(this._root)&&this._fallbackRoot},rn.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},rn.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},rn.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},rn.prototype._interpolate=function(e,t,n,s,r,i,o){if(!t)return null;var a,c=this._path.getPathValue(t,n);if(Array.isArray(c)||dt(c))return c;if(pt(c)){if(!dt(t))return null;if("string"!=typeof(a=t[n]))return null}else{if("string"!=typeof c)return null;a=c}return(a.indexOf("@:")>=0||a.indexOf("@.")>=0)&&(a=this._link(e,t,a,s,"raw",i,o)),this._render(a,r,i,n)},rn.prototype._link=function(e,t,n,s,r,i,o){var a=n,c=a.match(Zt);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],d=l.match(en),p=d[0],h=d[1],m=l.replace(p,"").replace(tn,"");if(o.includes(m))return a;o.push(m);var f=this._interpolate(e,t,m,s,"raw"===r?"string":r,"raw"===r?void 0:i,o);if(this._isFallbackRoot(f)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;f=v._translate(v._getMessages(),v.locale,v.fallbackLocale,m,s,r,i)}f=this._warnDefault(e,m,f,s,Array.isArray(i)?i:[i]),this._modifiers.hasOwnProperty(h)?f=this._modifiers[h](f):nn.hasOwnProperty(h)&&(f=nn[h](f)),o.pop(),a=f?a.replace(l,f):a}return a},rn.prototype._render=function(e,t,n,s){var r=this._formatter.interpolate(e,n,s);return r||(r=sn.interpolate(e,n,s)),"string"===t?r.join(""):r},rn.prototype._translate=function(e,t,n,s,r,i,o){var a=this._interpolate(t,e[t],s,r,i,o,[s]);return pt(a)&&pt(a=this._interpolate(n,e[n],s,r,i,o,[s]))?null:a},rn.prototype._t=function(e,t,n,s){for(var r,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var a=ht.apply(void 0,i),c=a.locale||t,u=this._translate(n,c,this.fallbackLocale,e,s,"string",a.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return this._warnDefault(c,e,u,s,i)},rn.prototype.t=function(e){for(var t,n=[],s=arguments.length-1;s-- >0;)n[s]=arguments[s+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},rn.prototype._i=function(e,t,n,s,r){var i=this._translate(n,t,this.fallbackLocale,e,s,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,s,[r])},rn.prototype.i=function(e,t,n){return e?("string"!=typeof t&&(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},rn.prototype._tc=function(e,t,n,s,r){for(var i,o=[],a=arguments.length-5;a-- >0;)o[a]=arguments[a+5];if(!e)return"";void 0===r&&(r=1);var c={count:r,n:r},u=ht.apply(void 0,o);return u.params=Object.assign(c,u.params),o=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,s].concat(o)),r)},rn.prototype.fetchChoice=function(e,t){if(!e&&"string"!=typeof e)return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},rn.prototype.getChoiceIndex=function(e,t){var n,s;return this.locale in this.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[e,t]):(n=e,s=t,n=Math.abs(n),2===s?n?n>1?1:0:1:n?Math.min(n,2):0)},rn.prototype.tc=function(e,t){for(var n,s=[],r=arguments.length-2;r-- >0;)s[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(s))},rn.prototype._te=function(e,t,n){for(var s=[],r=arguments.length-3;r-- >0;)s[r]=arguments[r+3];var i=ht.apply(void 0,s).locale||t;return this._exist(n[i],e)},rn.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},rn.prototype.getLocaleMessage=function(e){return mt(this._vm.messages[e]||{})},rn.prototype.setLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,t)},rn.prototype.mergeLocaleMessage=function(e,t){("warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||(this._checkLocaleMessage(e,this._warnHtmlInMessage,t),"error"!==this._warnHtmlInMessage))&&this._vm.$set(this._vm.messages,e,gt({},this._vm.messages[e]||{},t))},rn.prototype.getDateTimeFormat=function(e){return mt(this._vm.dateTimeFormats[e]||{})},rn.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t)},rn.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,gt(this._vm.dateTimeFormats[e]||{},t))},rn.prototype._localizeDateTime=function(e,t,n,s,r){var i=t,o=s[i];if((pt(o)||pt(o[r]))&&(o=s[i=n]),pt(o)||pt(o[r]))return null;var a=o[r],c=i+"__"+r,u=this._dateTimeFormatters[c];return u||(u=this._dateTimeFormatters[c]=new Intl.DateTimeFormat(i,a)),u.format(e)},rn.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var s=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return s||""},rn.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:ct(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._d(e,s,r)},rn.prototype.getNumberFormat=function(e){return mt(this._vm.numberFormats[e]||{})},rn.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t)},rn.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,gt(this._vm.numberFormats[e]||{},t))},rn.prototype._getNumberFormatter=function(e,t,n,s,r,i){var o=t,a=s[o];if((pt(a)||pt(a[r]))&&(a=s[o=n]),pt(a)||pt(a[r]))return null;var c,u=a[r];if(i)c=new Intl.NumberFormat(o,Object.assign({},u,i));else{var l=o+"__"+r;(c=this._numberFormatters[l])||(c=this._numberFormatters[l]=new Intl.NumberFormat(o,u))}return c},rn.prototype._n=function(e,t,n,s){if(!rn.availabilities.numberFormat)return"";if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},s))}return i||""},rn.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var s=this.locale,r=null,i=null;return 1===t.length?"string"==typeof t[0]?r=t[0]:ct(t[0])&&(t[0].locale&&(s=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var s;return ot.includes(n)?Object.assign({},e,((s={})[n]=t[0][n],s)):e}),null)):2===t.length&&("string"==typeof t[0]&&(r=t[0]),"string"==typeof t[1]&&(s=t[1])),this._n(e,s,r,i)},rn.prototype._ntp=function(e,t,n,s){if(!rn.availabilities.numberFormat)return[];if(!n)return(s?new Intl.NumberFormat(t,s):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,s),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,s)}return i||[]},Object.defineProperties(rn.prototype,on),Object.defineProperty(rn,"availabilities",{get:function(){if(!Xt){var e="undefined"!=typeof Intl;Xt={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Xt}}),rn.install=At,rn.version="8.15.3";const an={login:"Login with {platform}",logout:"Logout",currentUser:"Current User",loading:"Loading",submit:"Submit",submitting:"Submitting",submitComment:"Submit Comment",cancel:"Cancel",edit:"Edit",editMode:"Edit Mode",delete:"Delete",reply:"Reply",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comments per page",sort:"Click to change the sort direction",page:"Page",prev:"Previous Page",next:"Next Page",comments:"Comments | {count} Comment | {count} Comments",loginToComment:"Login with {platform} account to leave a comment",placeholder:"Leave a comment. Styling with Markdown is supported. Ctrl + Enter to submit.",noLoginPlaceHolder:"Login to leave a comment. Styling with Markdown is supported. ",failed:"Failed to load comments",initializing:"Initializing...",issueNotCreated:"Click to create issue",loadingComments:"Loading comments...",loginRequired:"Login to view comments",noComments:"No comments yet. Leave the first comment !",reactionGiven:"Already given '{reaction}' reaction",deleteConfirm:"Confirm to delete this comment ?",deleteFailed:"Failed to delete comment"},cn={login:"使用 {platform} 登录",logout:"退出登录",currentUser:"当前用户",loading:"加载中",submit:"提交",submitting:"发表中",submitComment:"发表评论",cancel:"取消",edit:"编辑",editMode:"编辑模式",delete:"删除",reply:"回复",heart:"喜欢",like:"赞",unlike:"踩",perPage:"每页评论数",sort:"点击改变排序方式",page:"页数",prev:"上一页",next:"下一页",comments:"评论 | {count} 条评论 | {count} 条评论",loginToComment:"使用 {platform} 帐号登录后发表评论",placeholder:"留下你的评论丨支持 Markdown 语法丨Ctrl + Enter 发表评论",noLoginPlaceHolder:"登录后才能发表评论丨支持 Markdown 语法",failed:"评论加载失败",initializing:"正在初始化...",issueNotCreated:"点击创建 Issue",loadingComments:"正在加载评论...",loginRequired:"登录后查看评论",noComments:"还没有评论,来发表第一条评论吧!",reactionGiven:"已经添加过 '{reaction}' 了",deleteConfirm:"确认要删除该评论吗?",deleteFailed:"评论删除失败"},un={login:"Entrar com {platform}",logout:"Sair",currentUser:"Usuário Atual",loading:"Carregando",submit:"Enviar",submitting:"Enviando",submitComment:"Enviar Comentário",cancel:"Cancelar",edit:"Editar",editMode:"Modo de Edição",delete:"Apagar",reply:"Responder",heart:"Heart",like:"Like",unlike:"Unlike",perPage:"Comentários por página",sort:"Clique para alterar a ordenação",page:"Página",prev:"Página Anterior",next:"Próxima Página",comments:"Comentários | {count} Comentário | {count} Comentários",loginToComment:"Entre com uma conta {platform} para deixar um comentário",placeholder:"Deixe um comentário. Estilos com Markdown suportados. Ctrl + Enter para enviar.",noLoginPlaceHolder:"Entre para deixar um comentário. Estilos com Markdown suportados. ",failed:"Falha ao carregar comentários",initializing:"Inicializando...",issueNotCreated:"Click to create issue",loadingComments:"Carregando comentários...",loginRequired:"Entrar para visualizar comentários",noComments:"Nenhum comentário. Deixe o primeiro comentário!",reactionGiven:"Já reagiu com '{reaction}'",deleteConfirm:"Apagar este comentário?",deleteFailed:"Falha ao apagar comentário"},ln={login:"{platform} でログイン",logout:"ログアウト",currentUser:"現在のユーザー",loading:"読み込み中",submit:"送信",submitting:"送信中",submitComment:"コメントを送信",cancel:"キャンセル",edit:"編集",editMode:"編集モード",delete:"削除",reply:"返信",heart:"ハート",like:"高評価",unlike:"低評価",perPage:"コメント/ページ",sort:"並び順を変更するにはクリックしてください",page:"ページ",prev:"前のページ",next:"次のページ",comments:"コメント | {count} コメント | {count} コメント",loginToComment:"コメントを残すには {platform} アカウントでログインしてください。",placeholder:"コメントを残してください。Markdown 記法をサポートしています。 Ctrl + Enter で送信できます。",noLoginPlaceHolder:"コメントを残すにはログインしてください。マークダウン記法をサポートしています。",failed:"コメントの読み込みに失敗しました",initializing:"初期化中...",issueNotCreated:"Click to create issue",loadingComments:"コメントの読み込み中...",loginRequired:"コメントを見るにはログインしてください",noComments:"まだコメントがありません。最初のコメントを残しましょう!",reactionGiven:"既に '{reaction}' のリアクションをしています",deleteConfirm:"本当にコメントを削除してもいいですか?",deleteFailed:"コメントの削除に失敗しました"},dn={login:"התחברו עם {platform}",logout:"התנתקו",currentUser:"משתמש/ת נוכחי/ת",loading:"טוען",submit:"שליחה",submitting:"שולח",submitComment:"שליחת תגובה",cancel:"ביטל",edit:"עריכה",editMode:"מצב עריכה",delete:"מחיקה",reply:"תשובה",heart:"לב",like:"לייק",unlike:"אנלייק",perPage:"תגובות לדף",sort:"לחצו כדי לשנות את כיוון המיון",page:"דף",prev:"הדף הקודם",next:"הדף הבא",comments:"תגובות | {count} תגובה | {count} תגובות",loginToComment:"התחברו עם חשבון {platform} כדי להשאיר תגובה",placeholder:"השאירו תגובה. יש תמיכה בעיצוב בעזרת Markdown. Ctrl + Enter כדי לשלוח.",noLoginPlaceHolder:"התחברו כדי להשאיר תגובה. יש תמיכה בעיצוב בעזרת Markdown. ",failed:"כשלון בטעינת התגובות",initializing:"מאתחל...",issueNotCreated:"לחצו ליצירת issue",loadingComments:"טוען תגובות...",loginRequired:"התחברו כדי לצפות בתגובות",noComments:"עדיין אין תגובות. השאירו תגובה ראשונה !",reactionGiven:"כבר ניתן חיווי '{reaction}'",deleteConfirm:"בטוחים במחיקת התגובה ?",deleteFailed:"כשלון במחיקת התגובה"};Object.prototype.hasOwnProperty.call(e,"$i18n")||e.use(rn);const pn=new rn({locale:"en",fallbackLocale:"en",messages:{en:an,"en-US":an,zh:cn,"zh-CN":cn,pt:un,"pt-BR":un,ja:ln,"ja-JP":ln,he:dn,"he-IL":dn}});let hn=class extends e{constructor(){super(...arguments),this.title=e=>`${e.prefix}${document.title}`,this.issueId=null,this.options=null,this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:10,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1}get version(){return"1.4.8"}get issueTitle(){return null===this.options?"":"function"==typeof this.title?this.title(this.options):`${this.options.prefix}${this.title}`}get isPending(){return this.isLoadingComments||this.isCreatingComment||this.isUpdatingComment}get isLogined(){return null!==this.accessToken&&null!==this.user}get isAdmin(){return null!==this.options&&null!==this.accessToken&&null!==this.user&&(this.user.username===this.options.owner||this.options.admins.includes(this.user.username))}get accessTokenKey(){return this.API?`Vssue.${this.API.platform.name.toLowerCase()}.access_token`:""}onQueryPerPageChange(){this.query.page=1,this.getComments()}onQueryChange(){this.getComments()}setOptions(e){this.options=Object.assign({labels:["Vssue"],state:"Vssue",prefix:"[Vssue]",admins:[],perPage:10,proxy:e=>`https://cors-anywhere.azm.workers.dev/${e}`,issueContent:({url:e})=>e,autoCreateIssue:!1},e);const t=["api","owner","repo","clientId"];for(const e of t)this.options[e]||console.warn(`[Vssue] the option '${e}' is required`);if(this.options.locale)this.$i18n.locale=this.options.locale;else{const e=Object.keys(this.$i18n.messages),t=window.navigator.languages;this.$i18n.locale=t.filter(t=>e.includes(t)).shift()||"en"}}async init(){try{await this.initStore(),await this.initComments()}catch(e){e.response&&[401,403].includes(e.response.status)?this.isLoginRequired=!0:this.isFailed=!0,console.error(e)}}async initStore(){try{if(!this.options)throw new Error("Options are required to initialize Vssue");this.API=null,this.accessToken=null,this.user=null,this.issue=null,this.comments=null,this.query={page:1,perPage:this.options.perPage,sort:"desc"},this.isInitializing=!0,this.isIssueNotCreated=!1,this.isLoginRequired=!1,this.isFailed=!1,this.isCreatingIssue=!1,this.isLoadingComments=!1,this.isCreatingComment=!1,this.isUpdatingComment=!1;const e=this.options.api;this.API=new e({baseURL:this.options.baseURL,labels:this.options.labels,state:this.options.state,owner:this.options.owner,repo:this.options.repo,clientId:this.options.clientId,clientSecret:this.options.clientSecret,proxy:this.options.proxy}),await this.handleAuth()}finally{this.isInitializing=!1}}async initComments(){if(this.API&&this.options)if(this.issueId){const[e,t]=await Promise.all([this.API.getIssue({accessToken:this.accessToken,issueId:this.issueId}),this.API.getComments({accessToken:this.accessToken,issueId:this.issueId,query:this.query})]);this.issue=e,this.comments=t}else this.issue=await this.API.getIssue({accessToken:this.accessToken,issueTitle:this.issueTitle}),null===this.issue?(this.isIssueNotCreated=!0,this.options.autoCreateIssue&&await this.postIssue()):await this.getComments()}async postIssue(){if(this.API&&this.options&&!this.issue&&!this.issueId&&(this.isLogined||this.login(),this.isAdmin))try{this.isCreatingIssue=!0;const e=await this.API.postIssue({title:this.issueTitle,content:await this.options.issueContent({options:this.options,url:qe(window.location.href)}),accessToken:this.accessToken});this.issue=e,this.isIssueNotCreated=!1,await this.getComments()}catch(e){this.isFailed=!0}finally{this.isCreatingIssue=!1}}async getComments(){try{if(!this.API||!this.issue||this.isLoadingComments)return;this.isLoadingComments=!0;const e=await this.API.getComments({accessToken:this.accessToken,issueId:this.issue.id,query:this.query});return this.comments=e,this.query.page!==e.page&&(this.query.page=e.page),this.query.perPage!==e.perPage&&(this.query.perPage=e.perPage),e}catch(e){if(!e.response||![401,403].includes(e.response.status)||this.isLogined)throw this.$emit("error",e),e;this.isLoginRequired=!0}finally{this.isLoadingComments=!1}}async postComment({content:e}){try{if(!this.API||!this.issue||this.isCreatingComment)return;return this.isCreatingComment=!0,await this.API.postComment({accessToken:this.accessToken,content:e,issueId:this.issue.id})}catch(e){throw this.$emit("error",e),e}finally{this.isCreatingComment=!1}}async putComment({commentId:e,content:t}){try{if(!this.API||!this.issue)return;return await this.API.putComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,content:t})}catch(e){throw this.$emit("error",e),e}}async deleteComment({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.deleteComment({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async getCommentReactions({commentId:e}){try{if(!this.API||!this.issue)return;return await this.API.getCommentReactions({accessToken:this.accessToken,issueId:this.issue.id,commentId:e})}catch(e){throw this.$emit("error",e),e}}async postCommentReaction({commentId:e,reaction:t}){try{if(!this.API||!this.issue)return!1;return await this.API.postCommentReaction({accessToken:this.accessToken,issueId:this.issue.id,commentId:e,reaction:t})}catch(e){throw this.$emit("error",e),e}}login(){this.API&&this.API.redirectAuth()}logout(){this.setAccessToken(null),this.user=null}async handleAuth(){if(!this.API)return;const e=await this.API.handleAuth();e?(this.setAccessToken(e),this.user=await this.API.getUser({accessToken:e})):this.getAccessToken()?this.user=await this.API.getUser({accessToken:this.accessToken}):(this.setAccessToken(null),this.user=null)}getAccessToken(){return this.accessToken=window.localStorage.getItem(this.accessTokenKey),this.accessToken}setAccessToken(e){null===e?window.localStorage.removeItem(this.accessTokenKey):window.localStorage.setItem(this.accessTokenKey,e),this.accessToken=e}};t([h("query.perPage")],hn.prototype,"onQueryPerPageChange",null),t([h("query.page"),h("query.sort")],hn.prototype,"onQueryChange",null),hn=t([u({i18n:pn})],hn);var mn=hn;let fn=class extends e{constructor(){super(...arguments),this.vssue=new mn}onOptionsChange(e){this.vssue.setOptions(e)}mounted(){null!==this.title&&(this.vssue.title=this.title),null!==this.issueId&&(this.vssue.issueId=this.issueId),this.vssue.setOptions(this.options),this.vssue.init()}};var vn;t([p({type:[String,Function],required:!1,default:null})],fn.prototype,"title",void 0),t([p({type:[String,Number],required:!1,default:null})],fn.prototype,"issueId",void 0),t([p({type:Object,required:!1,default:()=>({})})],fn.prototype,"options",void 0),t([(vn="vssue",i((function(e,t){var n=e.provide;if("function"!=typeof n||!n.managed){var s=e.provide;(n=e.provide=function(){var e=Object.create(("function"==typeof s?s.call(this):s)||null);for(var t in n.managed)e[n.managed[t]]=this[t];return e}).managed={}}n.managed[t]=vn||t})))],fn.prototype,"vssue",void 0),t([h("options",{deep:!0})],fn.prototype,"onOptionsChange",null),fn=t([u({components:{Iconfont:v,VssueBody:st,VssueHeader:it}})],fn);const gn=f({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vssue"},[t("Iconfont"),this._v(" "),t("VssueHeader"),this._v(" "),t("VssueBody")],1)},staticRenderFns:[]},void 0,fn,void 0,!1,void 0,!1,void 0,void 0,void 0),yn={get version(){return"1.4.8"},installed:!1,install(e,t){if(this.installed)return!1;this.installed=!0,e.component("Vssue",{functional:!0,props:{title:{type:String,required:!1,default:void 0},issueId:{type:[Number,String],required:!1,default:void 0},options:{type:Object,required:!1,default:void 0}},render:(e,{data:n,props:s})=>e(gn,Object.assign(Object.assign({},n),{props:{title:s.title,issueId:s.issueId,options:Object.assign({},t,s.options)}}))})},VssueComponent:gn};var bn=function(e,t){return function(){for(var n=new Array(arguments.length),s=0;s=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([n]):r[t]?r[t]+", "+n:n}})),r):r}(i.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:s,config:e,request:i};!function(e,t,n){var s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(jn("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,r),i=null}},i.onabort=function(){i&&(n(jn("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(jn("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(jn(t,e,"ECONNABORTED",i)),i=null},Tn.isStandardBrowserEnv()){var d=(e.withCredentials||Nn(l))&&e.xsrfCookieName?Sn.read(e.xsrfCookieName):void 0;d&&(r[e.xsrfHeaderName]=d)}if("setRequestHeader"in i&&Tn.forEach(r,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete r[t]:i.setRequestHeader(t,e)})),Tn.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),s||(s=null),i.send(s)}))},zn={"Content-Type":"application/x-www-form-urlencoded"};function qn(e,t){!Tn.isUndefined(e)&&Tn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Hn,Vn={adapter:("undefined"!=typeof XMLHttpRequest?Hn=En:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(Hn=En),Hn),transformRequest:[function(e,t){return Fn(t,"Accept"),Fn(t,"Content-Type"),Tn.isFormData(e)||Tn.isArrayBuffer(e)||Tn.isBuffer(e)||Tn.isStream(e)||Tn.isFile(e)||Tn.isBlob(e)?e:Tn.isArrayBufferView(e)?e.buffer:Tn.isURLSearchParams(e)?(qn(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Tn.isObject(e)?(qn(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Vn.headers={common:{Accept:"application/json, text/plain, */*"}},Tn.forEach(["delete","get","head"],(function(e){Vn.headers[e]={}})),Tn.forEach(["post","put","patch"],(function(e){Vn.headers[e]=Tn.merge(zn)}));var Un=Vn;function Bn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Wn=function(e){return Bn(e),e.headers=e.headers||{},e.data=An(e.data,e.headers,e.transformRequest),e.headers=Tn.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Tn.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Un.adapter)(e).then((function(t){return Bn(e),t.data=An(t.data,t.headers,e.transformResponse),t}),(function(t){return Dn(t)||(Bn(e),t&&t.response&&(t.response.data=An(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Yn=function(e,t){t=t||{};var n={},s=["url","method","data"],r=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function a(e,t){return Tn.isPlainObject(e)&&Tn.isPlainObject(t)?Tn.merge(e,t):Tn.isPlainObject(t)?Tn.merge({},t):Tn.isArray(t)?t.slice():t}function c(s){Tn.isUndefined(t[s])?Tn.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(e[s],t[s])}Tn.forEach(s,(function(e){Tn.isUndefined(t[e])||(n[e]=a(void 0,t[e]))})),Tn.forEach(r,c),Tn.forEach(i,(function(s){Tn.isUndefined(t[s])?Tn.isUndefined(e[s])||(n[s]=a(void 0,e[s])):n[s]=a(void 0,t[s])})),Tn.forEach(o,(function(s){s in t?n[s]=a(e[s],t[s]):s in e&&(n[s]=a(void 0,e[s]))}));var u=s.concat(r).concat(i).concat(o),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return Tn.forEach(l,c),n};function Gn(e){this.defaults=e,this.interceptors={request:new Rn,response:new Rn}}Gn.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Yn(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Wn,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Gn.prototype.getUri=function(e){return e=Yn(this.defaults,e),Pn(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Tn.forEach(["delete","get","head","options"],(function(e){Gn.prototype[e]=function(t,n){return this.request(Yn(n||{},{method:e,url:t,data:(n||{}).data}))}})),Tn.forEach(["post","put","patch"],(function(e){Gn.prototype[e]=function(t,n,s){return this.request(Yn(s||{},{method:e,url:t,data:n}))}}));var Qn=Gn;function Jn(e){this.message=e}Jn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Jn.prototype.__CANCEL__=!0;var Xn=Jn;function Kn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Xn(e),t(n.reason))}))}Kn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Kn.source=function(){var e;return{token:new Kn((function(t){e=t})),cancel:e}};var Zn=Kn;function es(e){var t=new Qn(e),n=bn(Qn.prototype.request,t);return Tn.extend(n,Qn.prototype,t),Tn.extend(n,t),n}var ts=es(Un);ts.Axios=Qn,ts.create=function(e){return es(Yn(ts.defaults,e))},ts.Cancel=Xn,ts.CancelToken=Zn,ts.isCancel=Dn,ts.all=function(e){return Promise.all(e)},ts.spread=function(e){return function(t){return e.apply(null,t)}},ts.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var ns=ts,ss=ts;ns.default=ss;var rs=ns;function is(e){return{username:e.username,avatar:e.avatar_url,homepage:e.web_url}}function os(e){return{id:e.iid,title:e.title,content:e.description,link:e.web_url}}function as(e){return{id:e.id,content:e.body_html||"",contentRaw:e.body,author:is(e.author),createdAt:e.created_at,updatedAt:e.updated_at,reactions:e.reactions}}function cs(e){return"like"===e?"thumbsup":"unlike"===e?"thumbsdown":e}class us{constructor({baseURL:e="https://gitlab.com",owner:t,repo:n,labels:s,clientId:r,state:i}){this.baseURL=e,this.owner=t,this.repo=n,this.labels=s,this.clientId=r,this.state=i,this._encodedRepo=encodeURIComponent(`${this.owner}/${this.repo}`),this.$http=rs.create({baseURL:W(e,"api/v4"),headers:{Accept:"application/json"}})}get platform(){return{name:"GitLab",link:this.baseURL,version:"v4",meta:{reactable:!0,sortable:!0}}}redirectAuth(){window.location.href=B(W(this.baseURL,"oauth/authorize"),{client_id:this.clientId,redirect_uri:window.location.href,response_type:"token",state:this.state})}async handleAuth(){const e=He(window.location.hash.slice(1));if(!e.access_token||e.state!==this.state)return null;const t=e.access_token;delete e.access_token,delete e.token_type,delete e.expires_in,delete e.state;const n=U(e),s=n?`#${n}`:"",r=`${qe(window.location.href)}${window.location.search}${s}`;return window.history.replaceState(null,"",r),t}async getUser({accessToken:e}){const{data:t}=await this.$http.get("user",{headers:{Authorization:`Bearer ${e}`}});return is(t)}async getIssue({accessToken:e,issueId:t,issueTitle:n}){const s={};if(e&&(s.headers={Authorization:`Bearer ${e}`}),!t){s.params={labels:this.labels.join(","),order_by:"created_at",sort:"asc",search:n};const{data:e}=await this.$http.get(`projects/${this._encodedRepo}/issues`,s);return e.map(os).find(e=>e.title===n)||null}try{const{data:e}=await this.$http.get(`projects/${this._encodedRepo}/issues/${t}`,s);return os(e)}catch(e){if(e.response&&404===e.response.status)return null;throw e}}async postIssue({accessToken:e,title:t,content:n}){const{data:s}=await this.$http.post(`projects/${this._encodedRepo}/issues`,{title:t,description:n,labels:this.labels.join(",")},{headers:{Authorization:`Bearer ${e}`}});return os(s)}async getComments({accessToken:e,issueId:t,query:{page:n=1,perPage:s=10,sort:r="desc"}={}}){const i={params:{page:n,per_page:s,order_by:"created_at",sort:r}};e&&(i.headers={Authorization:`Bearer ${e}`});const o=await this.$http.get(`projects/${this._encodedRepo}/issues/${t}/notes`,i),a=o.data,c=[];for(const n of a)c.push((async()=>{n.body_html=await this.getMarkdownContent({accessToken:e,contentRaw:n.body})})()),c.push((async()=>{n.reactions=await this.getCommentReactions({accessToken:e,issueId:t,commentId:n.id})})());return await Promise.all(c),{count:Number(o.headers["x-total"]),page:Number(o.headers["x-page"]),perPage:Number(o.headers["x-per-page"]),data:a.map(as)}}async postComment({accessToken:e,issueId:t,content:n}){const{data:s}=await this.$http.post(`projects/${this._encodedRepo}/issues/${t}/notes`,{body:n},{headers:{Authorization:`Bearer ${e}`}});return as(s)}async putComment({accessToken:e,issueId:t,commentId:n,content:s}){const{data:r}=await this.$http.put(`projects/${this._encodedRepo}/issues/${t}/notes/${n}`,{body:s},{headers:{Authorization:`Bearer ${e}`}}),[i,o]=await Promise.all([this.getMarkdownContent({accessToken:e,contentRaw:r.body}),this.getCommentReactions({accessToken:e,issueId:t,commentId:r.id})]);return r.body_html=i,r.reactions=o,as(r)}async deleteComment({accessToken:e,issueId:t,commentId:n}){const{status:s}=await this.$http.delete(`projects/${this._encodedRepo}/issues/${t}/notes/${n}`,{headers:{Authorization:`Bearer ${e}`}});return 204===s}async getCommentReactions({accessToken:e,issueId:t,commentId:n}){const{data:s}=await this.$http.get(`projects/${this._encodedRepo}/issues/${t}/notes/${n}/award_emoji`,{headers:{Authorization:`Bearer ${e}`}});return{like:(r=s).filter(e=>"thumbsup"===e.name).length,unlike:r.filter(e=>"thumbsdown"===e.name).length,heart:r.filter(e=>"heart"===e.name).length};var r}async postCommentReaction({issueId:e,commentId:t,reaction:n,accessToken:s}){try{return 201===(await this.$http.post(`projects/${this._encodedRepo}/issues/${e}/notes/${t}/award_emoji`,{name:cs(n)},{headers:{Authorization:`Bearer ${s}`}})).status}catch(e){if(e.response&&404===e.response.status)return!1;throw e}}async getMarkdownContent({accessToken:e,contentRaw:t}){const n={};e&&(n.headers={Authorization:`Bearer ${e}`});const{data:s}=await this.$http.post("markdown",{text:t,gfm:!0},n);return s.html}}"undefined"!=typeof window&&window.Vue&&window.Vue.use(yn,{api:us})}(Vue); \ No newline at end of file diff --git a/assets/lib/vssue/vssue.min.css b/assets/lib/vssue/vssue.min.css new file mode 100644 index 000000000..5d3f93ab7 --- /dev/null +++ b/assets/lib/vssue/vssue.min.css @@ -0,0 +1,8 @@ +/*! + * vssue - A vue-powered issue-based comment plugin + * + * @version v1.4.8 + * @link https://vssue.js.org + * @license MIT + * @copyright 2018-2021 meteorlxy + */.clearfix:after,.vssue .vssue-new-comment .vssue-new-comment-footer:after{display:block;clear:both;content:""}.vssue{width:100%;color:#2c3e50;font-size:16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;padding:10px}.vssue .vssue-button{outline:none;cursor:pointer;padding:10px 20px;font-size:1.05;font-weight:700;color:#3eaf7c;background-color:transparent;border:2px solid #3eaf7c;border-radius:10px}.vssue .vssue-button:disabled{cursor:not-allowed;color:#eaecef;border-color:#eaecef}.vssue .vssue-button:disabled .vssue-icon{fill:#eaecef}.vssue .vssue-button:not(:disabled).vssue-button-default{color:#a3aab1;border-color:#a3aab1}.vssue .vssue-button:not(:disabled).vssue-button-primary{color:#3eaf7c;border-color:#3eaf7c}.vssue .vssue-icon{width:1em;height:1em;vertical-align:-.15em;fill:#3eaf7c;overflow:hidden}.vssue .vssue-icon-loading{-webkit-animation:vssue-keyframe-rotation 1s linear infinite;animation:vssue-keyframe-rotation 1s linear infinite}@-webkit-keyframes vssue-keyframe-rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes vssue-keyframe-rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.vssue .fade-appear-active,.vssue .fade-enter-active{-webkit-transition:all .3s ease;transition:all .3s ease}.vssue .fade-leave-active{-webkit-transition:all .3s cubic-bezier(1,.5,.8,1);transition:all .3s cubic-bezier(1,.5,.8,1)}.vssue .fade-appear,.vssue .fade-enter,.vssue .fade-leave-to{opacity:0}.vssue .vssue-notice{position:relative;z-index:100;-webkit-transform:translateY(-11px);transform:translateY(-11px)}.vssue .vssue-notice .vssue-alert{position:absolute;z-index:101;cursor:pointer;top:0;padding:10px 20px;width:100%;color:#3eaf7c;border:2px solid #c3ead8;border-radius:5px;background-color:#f5fbf8}.vssue .vssue-notice .vssue-progress{position:absolute;top:0;left:0;height:2px;background-color:#3eaf7c}.vssue .vssue-status{text-align:center;padding-top:20px;padding-bottom:10px;color:#3eaf7c}.vssue .vssue-status .vssue-icon{font-size:1.4em}.vssue .vssue-status .vssue-status-info{margin-top:10px;margin-bottom:10px}.vssue .vssue-header{padding-bottom:10px;border-bottom:1px solid #eaecef;margin-bottom:10px;overflow:hidden}.vssue .vssue-header .vssue-header-powered-by{float:right}.vssue .vssue-new-comment{border-bottom:1px solid #eaecef;margin-top:10px;margin-bottom:10px}.vssue .vssue-new-comment .vssue-comment-avatar{float:left;width:50px;height:50px}.vssue .vssue-new-comment .vssue-comment-avatar img{width:50px;height:50px}.vssue .vssue-new-comment .vssue-comment-avatar .vssue-icon{cursor:pointer;padding:5px;font-size:50px;fill:#757f8a}.vssue .vssue-new-comment .vssue-new-comment-body{position:relative}@media screen and (max-width:576px){.vssue .vssue-new-comment .vssue-new-comment-body{margin-left:60px}}@media screen and (min-width:577px){.vssue .vssue-new-comment .vssue-new-comment-body{margin-left:70px}}.vssue .vssue-new-comment .vssue-new-comment-body .vssue-new-comment-loading{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vssue .vssue-new-comment .vssue-new-comment-footer{margin-top:10px;margin-bottom:10px}.vssue .vssue-new-comment .vssue-new-comment-footer .vssue-current-user{color:#a3aab1}.vssue .vssue-new-comment .vssue-new-comment-footer .vssue-current-user .vssue-logout{cursor:pointer;text-decoration:underline;color:#a3aab1;font-weight:400}@media screen and (max-width:576px){.vssue .vssue-new-comment .vssue-new-comment-footer{text-align:center}.vssue .vssue-new-comment .vssue-new-comment-footer .vssue-new-comment-operations{margin-top:10px}}@media screen and (min-width:577px){.vssue .vssue-new-comment .vssue-new-comment-footer{margin-left:70px;text-align:right}.vssue .vssue-new-comment .vssue-new-comment-footer .vssue-current-user{float:left}}.vssue .vssue-new-comment .vssue-new-comment-input{resize:none;outline:none;width:100%;padding:15px;font-size:16px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;background-color:#f5fbf8;border:1px solid #eaecef;border-radius:5px}.vssue .vssue-new-comment .vssue-new-comment-input:disabled{cursor:not-allowed;background-color:#f0f2f4}.vssue .vssue-new-comment .vssue-new-comment-input:focus{background-color:#fff;border-color:#9adbbe;-webkit-box-shadow:0 0 1px 1px #9adbbe;box-shadow:0 0 1px 1px #9adbbe}.vssue .vssue-new-comment .vssue-new-comment-input::-webkit-input-placeholder{color:#a3aab1}.vssue .vssue-new-comment .vssue-new-comment-input::-moz-placeholder{color:#a3aab1}.vssue .vssue-new-comment .vssue-new-comment-input:-ms-input-placeholder{color:#a3aab1}.vssue .vssue-new-comment .vssue-new-comment-input::-ms-input-placeholder{color:#a3aab1}.vssue .vssue-new-comment .vssue-new-comment-input::placeholder{color:#a3aab1}.vssue .vssue-comments .vssue-comment{margin:15px 0}.vssue .vssue-comments .vssue-comment.vssue-comment-edit-mode .vssue-comment-main{border-color:#9adbbe;-webkit-box-shadow:0 0 1px 1px #9adbbe;box-shadow:0 0 1px 1px #9adbbe}.vssue .vssue-comments .vssue-comment.vssue-comment-disabled{pointer-events:none}.vssue .vssue-comments .vssue-comment.vssue-comment-disabled .vssue-comment-body{background-color:#f9f9fa}.vssue .vssue-comments .vssue-comment .vssue-comment-avatar{float:left;width:50px;height:50px}.vssue .vssue-comments .vssue-comment .vssue-comment-avatar img{width:50px;height:50px}@media screen and (max-width:576px){.vssue .vssue-comments .vssue-comment .vssue-comment-body{margin-left:60px}}@media screen and (min-width:577px){.vssue .vssue-comments .vssue-comment .vssue-comment-body{margin-left:70px}}.vssue .vssue-comments .vssue-comment .vssue-comment-header{padding:10px 15px;overflow:hidden;border-top-left-radius:5px;border-top-right-radius:5px;border:1px solid #eaecef;border-bottom:none}.vssue .vssue-comments .vssue-comment .vssue-comment-header .vssue-comment-created-at{float:right;cursor:default;color:#a3aab1}.vssue .vssue-comments .vssue-comment .vssue-comment-main{padding:15px;border:1px solid #eaecef}.vssue .vssue-comments .vssue-comment .vssue-comment-main .vssue-edit-comment-input{resize:none;outline:none;border:none;width:100%;background:transparent}.vssue .vssue-comments .vssue-comment .vssue-comment-footer{padding:10px 15px;overflow:hidden;border-bottom-left-radius:5px;border-bottom-right-radius:5px;border:1px solid #eaecef;border-top:none}.vssue .vssue-comments .vssue-comment .vssue-comment-footer .vssue-comment-hint{cursor:default;color:#a3aab1}.vssue .vssue-comments .vssue-comment .vssue-comment-footer .vssue-comment-reactions .vssue-comment-reaction{cursor:pointer;display:inline-block;margin-right:8px;color:#3eaf7c}.vssue .vssue-comments .vssue-comment .vssue-comment-footer .vssue-comment-operations{float:right;color:#3eaf7c}.vssue .vssue-comments .vssue-comment .vssue-comment-footer .vssue-comment-operations .vssue-comment-operation{cursor:pointer;margin-left:8px}.vssue .vssue-comments .vssue-comment .vssue-comment-footer .vssue-comment-operations .vssue-comment-operation.vssue-comment-operation-muted{color:#a3aab1}.vssue .vssue-comments .vssue-comment .vssue-comment-footer .vssue-comment-operations .vssue-comment-operation.vssue-comment-operation-muted .vssue-icon{fill:#a3aab1}.vssue .vssue-pagination{cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;padding:5px;color:#a3aab1}@media screen and (max-width:576px){.vssue .vssue-pagination{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}}.vssue .vssue-pagination .vssue-pagination-loading,.vssue .vssue-pagination .vssue-pagination-page,.vssue .vssue-pagination .vssue-pagination-per-page{-webkit-box-flex:1;-ms-flex:1;flex:1}@media screen and (max-width:576px){.vssue .vssue-pagination .vssue-pagination-page{margin-top:10px}}@media screen and (min-width:577px){.vssue .vssue-pagination .vssue-pagination-page{text-align:right}}.vssue .vssue-pagination .vssue-pagination-select{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #9adbbe;padding-left:.2rem;padding-right:1rem;background-color:transparent;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle/%3E%3C/defs%3E%3Cpath d='M676.395 432.896a21.333 21.333 0 0 0-30.166 0L511.061 568.021 377.728 434.645a21.333 21.333 0 0 0-30.165 30.166l148.394 148.48a21.419 21.419 0 0 0 30.208 0l150.23-150.187a21.333 21.333 0 0 0 0-30.208'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:100%}.vssue .vssue-pagination .vssue-pagination-select:disabled{cursor:not-allowed}.vssue .vssue-pagination .vssue-pagination-select:focus{background-color:#fff;-webkit-box-shadow:0 0 .2px .2px #9adbbe;box-shadow:0 0 .2px .2px #9adbbe}.vssue .vssue-pagination .vssue-pagination-link{display:inline-block;min-width:1em;text-align:center}.vssue .vssue-pagination .vssue-pagination-link.disabled{pointer-events:none}.vssue .vssue-pagination .vssue-pagination-link:not(.disabled){color:#3eaf7c;font-weight:500;cursor:pointer}.vssue,.vssue *{-webkit-box-sizing:border-box;box-sizing:border-box}.vssue :not(.vssue-comment-content) a{cursor:pointer;font-weight:500;color:#3eaf7c;text-decoration:none}.vssue :not(.vssue-comment-content) hr{display:block;height:1px;border:0;border-top:1px solid #eaecef;margin:1.2rem 0;padding:0}@font-face{font-family:octicons-link;src:url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQy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jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format("woff")}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body .anchor{float:left;line-height:1;margin-left:-20px;padding-right:4px}.markdown-body .anchor:focus{outline:none}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:#1b1f23;vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#24292e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .pl-c{color:#6a737d}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:#005cc5}.markdown-body .pl-e,.markdown-body .pl-en{color:#6f42c1}.markdown-body .pl-s .pl-s1,.markdown-body .pl-smi{color:#24292e}.markdown-body .pl-ent{color:#22863a}.markdown-body .pl-k{color:#d73a49}.markdown-body .pl-pds,.markdown-body .pl-s,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sra,.markdown-body .pl-sr .pl-sre{color:#032f62}.markdown-body .pl-smw,.markdown-body .pl-v{color:#e36209}.markdown-body .pl-bu{color:#b31d28}.markdown-body .pl-ii{background-color:#b31d28;color:#fafbfc}.markdown-body .pl-c2{background-color:#d73a49;color:#fafbfc}.markdown-body .pl-c2:before{content:"^M"}.markdown-body .pl-sr .pl-cce{color:#22863a;font-weight:700}.markdown-body .pl-ml{color:#735c0f}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{color:#005cc5;font-weight:700}.markdown-body .pl-mi{color:#24292e;font-style:italic}.markdown-body .pl-mb{color:#24292e;font-weight:700}.markdown-body .pl-md{background-color:#ffeef0;color:#b31d28}.markdown-body .pl-mi1{background-color:#f0fff4;color:#22863a}.markdown-body .pl-mc{background-color:#ffebda;color:#e36209}.markdown-body .pl-mi2{background-color:#005cc5;color:#f6f8fa}.markdown-body .pl-mdr{color:#6f42c1;font-weight:700}.markdown-body .pl-ba{color:#586069}.markdown-body .pl-sg{color:#959da5}.markdown-body .pl-corl{color:#032f62;text-decoration:underline}.markdown-body details{display:block}.markdown-body summary{display:list-item}.markdown-body a{background-color:transparent}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body strong{font-weight:inherit;font-weight:bolder}.markdown-body h1{margin:.67em 0}.markdown-body img{border-style:none}.markdown-body code,.markdown-body kbd,.markdown-body pre{font-family:monospace,monospace;font-size:1em}.markdown-body hr{box-sizing:content-box;overflow:visible}.markdown-body input{font:inherit;margin:0;overflow:visible}.markdown-body [type=checkbox]{box-sizing:border-box;padding:0}.markdown-body *{box-sizing:border-box}.markdown-body input{font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body a{color:#0366d6;text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body strong{font-weight:600}.markdown-body hr{background:transparent;border-bottom:1px solid #dfe2e5;height:0;margin:15px 0;overflow:hidden}.markdown-body hr:after,.markdown-body hr:before{content:"";display:table}.markdown-body hr:after{clear:both}.markdown-body table{border-collapse:collapse;border-spacing:0}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-bottom:0;margin-top:0}.markdown-body h1{font-size:32px}.markdown-body h1,.markdown-body h2{font-weight:600}.markdown-body h2{font-size:24px}.markdown-body h3{font-size:20px}.markdown-body h3,.markdown-body h4{font-weight:600}.markdown-body h4{font-size:16px}.markdown-body h5{font-size:14px}.markdown-body h5,.markdown-body h6{font-weight:600}.markdown-body h6{font-size:12px}.markdown-body p{margin-bottom:10px;margin-top:0}.markdown-body blockquote{margin:0}.markdown-body ol,.markdown-body ul{margin-bottom:0;margin-top:0;padding-left:0}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body code,.markdown-body pre{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:12px}.markdown-body pre{margin-bottom:0;margin-top:0}.markdown-body input::-webkit-inner-spin-button,.markdown-body input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.markdown-body .border{border:1px solid #e1e4e8!important}.markdown-body .border-0{border:0!important}.markdown-body .border-bottom{border-bottom:1px solid #e1e4e8!important}.markdown-body .rounded-1{border-radius:3px!important}.markdown-body .bg-white{background-color:#fff!important}.markdown-body .bg-gray-light{background-color:#fafbfc!important}.markdown-body .text-gray-light{color:#6a737d!important}.markdown-body .mb-0{margin-bottom:0!important}.markdown-body .my-2{margin-bottom:8px!important;margin-top:8px!important}.markdown-body .py-0{padding-bottom:0!important;padding-top:0!important}.markdown-body .py-2{padding-bottom:8px!important;padding-top:8px!important}.markdown-body .pl-3,.markdown-body .px-3{padding-left:16px!important}.markdown-body .px-3{padding-right:16px!important}.markdown-body .f6{font-size:12px!important}.markdown-body .lh-condensed{line-height:1.25!important}.markdown-body .text-bold{font-weight:600!important}.markdown-body:after,.markdown-body:before{content:"";display:table}.markdown-body:after{clear:both}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body blockquote,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-bottom:16px;margin-top:0}.markdown-body hr{background-color:#e1e4e8;border:0;height:.25em;margin:24px 0;padding:0}.markdown-body blockquote{border-left:.25em solid #dfe2e5;color:#6a737d;padding:0 1em}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body kbd{border:1px solid #c6cbd1;border-bottom-color:#959da5;box-shadow:inset 0 -1px 0 #959da5;font-size:11px}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{font-weight:600;line-height:1.25;margin-bottom:16px;margin-top:24px}.markdown-body h1{font-size:2em}.markdown-body h1,.markdown-body h2{border-bottom:1px solid #eaecef;padding-bottom:.3em}.markdown-body h2{font-size:1.5em}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:.875em}.markdown-body h6{color:#6a737d;font-size:.85em}.markdown-body ol,.markdown-body ul{padding-left:2em}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-bottom:0;margin-top:0}.markdown-body li{word-wrap:break-all}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:16px;padding:0}.markdown-body dl dd{margin-bottom:16px;padding:0 16px}.markdown-body table{display:block;overflow:auto;width:100%}.markdown-body table th{font-weight:600}.markdown-body table td,.markdown-body table th{border:1px solid #dfe2e5;padding:6px 13px}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{background-color:#fff;box-sizing:content-box;max-width:100%}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body code{background-color:rgba(27,31,35,.05);border-radius:3px;font-size:85%;margin:0;padding:.2em .4em}.markdown-body pre{word-wrap:normal}.markdown-body pre>code{background:transparent;border:0;font-size:100%;margin:0;padding:0;white-space:pre;word-break:normal}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{background-color:#f6f8fa;border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:16px}.markdown-body pre code{background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0;word-wrap:normal}.markdown-body .commit-tease-sha{color:#444d56;display:inline-block;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:90%}.markdown-body .blob-wrapper{border-bottom-left-radius:3px;border-bottom-right-radius:3px;overflow-x:auto;overflow-y:hidden}.markdown-body .blob-wrapper-embedded{max-height:240px;overflow-y:auto}.markdown-body .blob-num{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;color:rgba(27,31,35,.3);cursor:pointer;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:12px;line-height:20px;min-width:50px;padding-left:10px;padding-right:10px;text-align:right;user-select:none;vertical-align:top;white-space:nowrap;width:1%}.markdown-body .blob-num:hover{color:rgba(27,31,35,.6)}.markdown-body .blob-num:before{content:attr(data-line-number)}.markdown-body .blob-code{line-height:20px;padding-left:10px;padding-right:10px;position:relative;vertical-align:top}.markdown-body .blob-code-inner{color:#24292e;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:12px;overflow:visible;white-space:pre;word-wrap:normal}.markdown-body .pl-token.active,.markdown-body .pl-token:hover{background:#ffea7f;cursor:pointer}.markdown-body kbd{background-color:#fafbfc;border:1px solid #d1d5da;border-bottom-color:#c6cbd1;border-radius:3px;box-shadow:inset 0 -1px 0 #c6cbd1;color:#444d56;display:inline-block;font:11px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;line-height:10px;padding:3px 5px;vertical-align:middle}.markdown-body :checked+.radio-label{border-color:#0366d6;position:relative;z-index:1}.markdown-body .tab-size[data-tab-size="1"]{-moz-tab-size:1;-o-tab-size:1;tab-size:1}.markdown-body .tab-size[data-tab-size="2"]{-moz-tab-size:2;-o-tab-size:2;tab-size:2}.markdown-body .tab-size[data-tab-size="3"]{-moz-tab-size:3;-o-tab-size:3;tab-size:3}.markdown-body .tab-size[data-tab-size="4"]{-moz-tab-size:4;-o-tab-size:4;tab-size:4}.markdown-body .tab-size[data-tab-size="5"]{-moz-tab-size:5;-o-tab-size:5;tab-size:5}.markdown-body .tab-size[data-tab-size="6"]{-moz-tab-size:6;-o-tab-size:6;tab-size:6}.markdown-body .tab-size[data-tab-size="7"]{-moz-tab-size:7;-o-tab-size:7;tab-size:7}.markdown-body .tab-size[data-tab-size="8"]{-moz-tab-size:8;-o-tab-size:8;tab-size:8}.markdown-body .tab-size[data-tab-size="9"]{-moz-tab-size:9;-o-tab-size:9;tab-size:9}.markdown-body .tab-size[data-tab-size="10"]{-moz-tab-size:10;-o-tab-size:10;tab-size:10}.markdown-body .tab-size[data-tab-size="11"]{-moz-tab-size:11;-o-tab-size:11;tab-size:11}.markdown-body .tab-size[data-tab-size="12"]{-moz-tab-size:12;-o-tab-size:12;tab-size:12}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item+.task-list-item{margin-top:3px}.markdown-body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}.markdown-body hr{border-bottom-color:#eee}.markdown-body .pl-0{padding-left:0!important}.markdown-body .pl-1{padding-left:4px!important}.markdown-body .pl-2{padding-left:8px!important}.markdown-body .pl-3{padding-left:16px!important}.markdown-body .pl-4{padding-left:24px!important}.markdown-body .pl-5{padding-left:32px!important}.markdown-body .pl-6{padding-left:40px!important}.markdown-body .pl-7{padding-left:48px!important}.markdown-body .pl-8{padding-left:64px!important}.markdown-body .pl-9{padding-left:80px!important}.markdown-body .pl-10{padding-left:96px!important}.markdown-body .pl-11{padding-left:112px!important}.markdown-body .pl-12{padding-left:128px!important} \ No newline at end of file diff --git a/assets/lib/vue/vue.runtime.min.js b/assets/lib/vue/vue.runtime.min.js new file mode 100644 index 000000000..2da39d5a0 --- /dev/null +++ b/assets/lib/vue/vue.runtime.min.js @@ -0,0 +1,6 @@ +/*! + * Vue.js v2.6.14 + * (c) 2014-2021 Evan You + * Released under the MIT License. + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Vue=e()}(this,function(){"use strict";var t=Object.freeze({});function e(t){return null==t}function n(t){return null!=t}function r(t){return!0===t}function o(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function i(t){return null!==t&&"object"==typeof t}var a=Object.prototype.toString;function s(t){return"[object Object]"===a.call(t)}function c(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function u(t){return n(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function l(t){return null==t?"":Array.isArray(t)||s(t)&&t.toString===a?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function d(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var h=Object.prototype.hasOwnProperty;function m(t,e){return h.call(t,e)}function y(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var g=/-(\w)/g,_=y(function(t){return t.replace(g,function(t,e){return e?e.toUpperCase():""})}),b=y(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),C=/\B([A-Z])/g,$=y(function(t){return t.replace(C,"-$1").toLowerCase()});var w=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function x(t,e){for(var n in e)t[n]=e[n];return t}function k(t){for(var e={},n=0;n0,K=z&&z.indexOf("edge/")>0,X=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===B),G=(z&&/chrome\/\d+/.test(z),z&&/phantomjs/.test(z),z&&z.match(/firefox\/(\d+)/)),Z={}.watch,J=!1;if(U)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){J=!0}}),window.addEventListener("test-passive",null,Q)}catch(t){}var Y=function(){return void 0===R&&(R=!U&&!H&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),R},tt=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function et(t){return"function"==typeof t&&/native code/.test(t.toString())}var nt,rt="undefined"!=typeof Symbol&&et(Symbol)&&"undefined"!=typeof Reflect&&et(Reflect.ownKeys);nt="undefined"!=typeof Set&&et(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ot=O,it=0,at=function(){this.id=it++,this.subs=[]};at.prototype.addSub=function(t){this.subs.push(t)},at.prototype.removeSub=function(t){v(this.subs,t)},at.prototype.depend=function(){at.target&&at.target.addDep(this)},at.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e-1)if(i&&!m(o,"default"))a=!1;else if(""===a||a===$(t)){var c=Mt(String,o.type);(c<0||s0&&(ae((u=t(u,(a||"")+"_"+c))[0])&&ae(f)&&(s[l]=pt(f.text+u[0].text),u.shift()),s.push.apply(s,u)):o(u)?ae(f)?s[l]=pt(f.text+u):""!==u&&s.push(pt(u)):ae(u)&&ae(f)?s[l]=pt(f.text+u.text):(r(i._isVList)&&n(u.tag)&&e(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(t):void 0}function ae(t){return n(t)&&n(t.text)&&!1===t.isComment}function se(t,e){if(t){for(var n=Object.create(null),r=rt?Reflect.ownKeys(t):Object.keys(t),o=0;o0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==t&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=de(n,c,e[c]))}else o={};for(var u in n)u in o||(o[u]=pe(n,u));return e&&Object.isExtensible(e)&&(e._normalized=o),M(o,"$stable",a),M(o,"$key",s),M(o,"$hasNormal",i),o}function de(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ie(t))&&t[0];return t&&(!e||1===t.length&&e.isComment&&!le(e))?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function pe(t,e){return function(){return t[e]}}function ve(t,e){var r,o,a,s,c;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),o=0,a=t.length;odocument.createEvent("Event").timeStamp&&(an=function(){return sn.now()})}function cn(){var t,e;for(on=an(),nn=!0,Qe.sort(function(t,e){return t.id-e.id}),rn=0;rnrn&&Qe[n].id>t.id;)n--;Qe.splice(n+1,0,t)}else Qe.push(t);en||(en=!0,Jt(cn))}}(this)},ln.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||i(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'+this.expression+'"';Rt(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},ln.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ln.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},ln.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var fn={enumerable:!0,configurable:!0,get:O,set:O};function dn(t,e,n){fn.get=function(){return this[e][n]},fn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,fn)}function pn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&_t(!1);var i=function(i){o.push(i);var a=Dt(i,e,n,t);$t(r,i,a),i in t||dn(t,"_props",i)};for(var a in e)i(a);_t(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?O:w(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;s(e=t._data="function"==typeof e?function(t,e){ct();try{return t.call(e,e)}catch(t){return Ft(t,e,"data()"),{}}finally{ut()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);for(;o--;){var i=n[o];r&&m(r,i)||(a=void 0,36!==(a=(i+"").charCodeAt(0))&&95!==a&&dn(t,"_data",i))}var a;Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=Y();for(var o in e){var i=e[o],a="function"==typeof i?i:i.get;r||(n[o]=new ln(t,a||O,O,vn)),o in t||hn(t,o,i)}}(t,e.computed),e.watch&&e.watch!==Z&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===a.call(n)&&t.test(e));var n}function xn(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!e(s)&&kn(n,i,r,o)}}}function kn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,v(n,e)}!function(e){e.prototype._init=function(e){var n=this;n._uid=_n++,n._isVue=!0,e&&e._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(n,e):n.$options=jt(bn(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(n),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&qe(t,e)}(n),function(e){e._vnode=null,e._staticTrees=null;var n=e.$options,r=e.$vnode=n._parentVnode,o=r&&r.context;e.$slots=ce(n._renderChildren,o),e.$scopedSlots=t,e._c=function(t,n,r,o){return Fe(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Fe(e,t,n,r,o,!0)};var i=r&&r.data;$t(e,"$attrs",i&&i.attrs||t,null,!0),$t(e,"$listeners",n._parentListeners||t,null,!0)}(n),Je(n,"beforeCreate"),function(t){var e=se(t.$options.inject,t);e&&(_t(!1),Object.keys(e).forEach(function(n){$t(t,n,e[n])}),_t(!0))}(n),pn(n),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(n),Je(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(Cn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=wt,t.prototype.$delete=At,t.prototype.$watch=function(t,e,n){if(s(e))return gn(this,t,e,n);(n=n||{}).user=!0;var r=new ln(this,t,e,n);if(n.immediate){var o='callback for immediate watcher "'+r.expression+'"';ct(),Rt(e,this,[r.value],this,o),ut()}return function(){r.teardown()}}}(Cn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var o=0,i=t.length;o1?A(e):e;for(var n=A(arguments,1),r='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&kn(t,e[0],e,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)kn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){xn(t,function(t){return An(e,t)})}),this.$watch("exclude",function(e){xn(t,function(t){return!An(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=He(t),n=e&&e.componentOptions;if(n){var r=wn(n),o=this.include,i=this.exclude;if(o&&(!r||!An(o,r))||i&&r&&An(i,r))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,v(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return L}};Object.defineProperty(t,"config",e),t.util={warn:ot,extend:x,mergeOptions:jt,defineReactive:$t},t.set=wt,t.delete=At,t.nextTick=Jt,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),N.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,x(t.options.components,Sn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=jt(this.options,t),this}}(t),$n(t),function(t){N.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&s(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(Cn),Object.defineProperty(Cn.prototype,"$isServer",{get:Y}),Object.defineProperty(Cn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Cn,"FunctionalRenderContext",{value:Ee}),Cn.version="2.6.14";var En=d("style,class"),Tn=d("input,textarea,option,select,progress"),jn=d("contenteditable,draggable,spellcheck"),In=d("events,caret,typing,plaintext-only"),Dn=function(t,e){return Fn(e)||"false"===e?"false":"contenteditable"===t&&In(e)?e:"true"},Nn=d("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Pn="http://www.w3.org/1999/xlink",Ln=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Mn=function(t){return Ln(t)?t.slice(6,t.length):""},Fn=function(t){return null==t||!1===t};function Rn(t){for(var e=t.data,r=t,o=t;n(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=Vn(o.data,e));for(;n(r=r.parent);)r&&r.data&&(e=Vn(e,r.data));return function(t,e){if(n(t)||n(e))return Un(t,Hn(e));return""}(e.staticClass,e.class)}function Vn(t,e){return{staticClass:Un(t.staticClass,e.staticClass),class:n(t.class)?[t.class,e.class]:e.class}}function Un(t,e){return t?e?t+" "+e:t:e||""}function Hn(t){return Array.isArray(t)?function(t){for(var e,r="",o=0,i=t.length;o-1?fr(t,e,n):Nn(e)?Fn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):jn(e)?t.setAttribute(e,Dn(e,n)):Ln(e)?Fn(n)?t.removeAttributeNS(Pn,Mn(e)):t.setAttributeNS(Pn,e,n):fr(t,e,n)}function fr(t,e,n){if(Fn(n))t.removeAttribute(e);else{if(W&&!q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var dr={create:ur,update:ur};function pr(t,r){var o=r.elm,i=r.data,a=t.data;if(!(e(i.staticClass)&&e(i.class)&&(e(a)||e(a.staticClass)&&e(a.class)))){var s=Rn(r),c=o._transitionClasses;n(c)&&(s=Un(s,Hn(c))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}var vr,hr={create:pr,update:pr},mr="__r",yr="__c";function gr(t,e,n){var r=vr;return function o(){null!==e.apply(null,arguments)&&Cr(t,o,n,r)}}var _r=Bt&&!(G&&Number(G[1])<=53);function br(t,e,n,r){if(_r){var o=on,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}vr.addEventListener(t,e,J?{capture:n,passive:r}:n)}function Cr(t,e,n,r){(r||vr).removeEventListener(t,e._wrapper||e,n)}function $r(t,r){if(!e(t.data.on)||!e(r.data.on)){var o=r.data.on||{},i=t.data.on||{};vr=r.elm,function(t){if(n(t[mr])){var e=W?"change":"input";t[e]=[].concat(t[mr],t[e]||[]),delete t[mr]}n(t[yr])&&(t.change=[].concat(t[yr],t.change||[]),delete t[yr])}(o),ne(o,i,br,Cr,gr,r.context),vr=void 0}}var wr,Ar={create:$r,update:$r};function xr(t,r){if(!e(t.data.domProps)||!e(r.data.domProps)){var o,i,a=r.elm,s=t.data.domProps||{},c=r.data.domProps||{};for(o in n(c.__ob__)&&(c=r.data.domProps=x({},c)),s)o in c||(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(r.children&&(r.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o&&"PROGRESS"!==a.tagName){a._value=i;var u=e(i)?"":String(i);kr(a,u)&&(a.value=u)}else if("innerHTML"===o&&Wn(a.tagName)&&e(a.innerHTML)){(wr=wr||document.createElement("div")).innerHTML=""+i+"";for(var l=wr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(i!==s[o])try{a[o]=i}catch(t){}}}}function kr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var r=t.value,o=t._vModifiers;if(n(o)){if(o.number)return f(r)!==f(e);if(o.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var Or={create:xr,update:xr},Sr=y(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function Er(t){var e=Tr(t.style);return t.staticStyle?x(t.staticStyle,e):e}function Tr(t){return Array.isArray(t)?k(t):"string"==typeof t?Sr(t):t}var jr,Ir=/^--/,Dr=/\s*!important$/,Nr=function(t,e,n){if(Ir.test(e))t.style.setProperty(e,n);else if(Dr.test(n))t.style.setProperty($(e),n.replace(Dr,""),"important");else{var r=Lr(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(Rr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ur(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Rr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Hr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&x(e,Br(t.name||"v")),x(e,t),e}return"string"==typeof t?Br(t):void 0}}var Br=y(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),zr=U&&!q,Wr="transition",qr="animation",Kr="transition",Xr="transitionend",Gr="animation",Zr="animationend";zr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Kr="WebkitTransition",Xr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Gr="WebkitAnimation",Zr="webkitAnimationEnd"));var Jr=U?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Qr(t){Jr(function(){Jr(t)})}function Yr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Vr(t,e))}function to(t,e){t._transitionClasses&&v(t._transitionClasses,e),Ur(t,e)}function eo(t,e,n){var r=ro(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Wr?Xr:Zr,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=Wr,l=a,f=i.length):e===qr?u>0&&(n=qr,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Wr:qr:null)?n===Wr?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Wr&&no.test(r[Kr+"Property"])}}function oo(t,e){for(;t.length1}function lo(t,e){!0!==e.data.show&&ao(e)}var fo=function(t){var i,a,s={},c=t.modules,u=t.nodeOps;for(i=0;iv?_(t,e(o[y+1])?null:o[y+1].elm,o,p,y,i):p>y&&C(r,d,v)}(d,h,y,i,l):n(y)?(n(t.text)&&u.setTextContent(d,""),_(d,null,y,0,y.length-1,i)):n(h)?C(h,0,h.length-1):n(t.text)&&u.setTextContent(d,""):t.text!==o.text&&u.setTextContent(d,o.text),n(v)&&n(p=v.hook)&&n(p=p.postpatch)&&p(t,o)}}}function x(t,e,o){if(r(o)&&n(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,a.selected!==i&&(a.selected=i);else if(T(yo(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function mo(t,e){return e.every(function(e){return!T(e,t)})}function yo(t){return"_value"in t?t._value:t.value}function go(t){t.target.composing=!0}function _o(t){t.target.composing&&(t.target.composing=!1,bo(t.target,"input"))}function bo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Co(t){return!t.componentInstance||t.data&&t.data.transition?t:Co(t.componentInstance._vnode)}var $o={model:po,show:{bind:function(t,e,n){var r=e.value,o=(n=Co(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,ao(n,function(){t.style.display=i})):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Co(n)).data&&n.data.transition?(n.data.show=!0,r?ao(n,function(){t.style.display=t.__vOriginalDisplay}):so(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},wo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ao(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ao(He(e.children)):t}function xo(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[_(i)]=o[i];return e}function ko(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Oo=function(t){return t.tag||le(t)},So=function(t){return"show"===t.name},Eo={name:"transition",props:wo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Oo)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var a=Ao(i);if(!a)return i;if(this._leaving)return ko(t,i);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:o(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=xo(this),u=this._vnode,l=Ao(u);if(a.data.directives&&a.data.directives.some(So)&&(a.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(a,l)&&!le(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=x({},c);if("out-in"===r)return this._leaving=!0,re(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),ko(t,i);if("in-out"===r){if(le(a))return u;var d,p=function(){d()};re(c,"afterEnter",p),re(c,"enterCancelled",p),re(f,"delayLeave",function(t){d=t})}}return i}}},To=x({tag:String,moveClass:String},wo);function jo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Io(t){t.data.newPos=t.elm.getBoundingClientRect()}function Do(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete To.mode;var No={Transition:Eo,TransitionGroup:{props:To,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=xo(this),s=0;s-1?Kn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Kn[t]=/HTMLUnknownElement/.test(e.toString())},x(Cn.options.directives,$o),x(Cn.options.components,No),Cn.prototype.__patch__=U?fo:O,Cn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=dt),Je(t,"beforeMount"),r=function(){t._update(t._render(),n)},new ln(t,r,O,{before:function(){t._isMounted&&!t._isDestroyed&&Je(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Je(t,"mounted")),t}(this,t=t&&U?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},U&&setTimeout(function(){L.devtools&&tt&&tt.emit("init",Cn)},0),Cn}); \ No newline at end of file diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 09207432e..564102320 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -818,6 +818,15 @@ enableEmoji = true region = "" path = "" visitor = true + # Vssue comment config (https://vssue.js.org//) + # Vssue comment 评论系统设置 (https://vssue.js.org//) + [params.page.comment.vssue] + enable = false + platform = "" # ("bitbucket", "gitea", "gitee", "github", "gitlab") + owner = "" + repo = "" + clientId = "" + clientSecret = "" # Third-party library config # 第三方库配置 [params.page.library] diff --git a/exampleSite/content/about/index.en.md b/exampleSite/content/about/index.en.md index 5da63883c..cf97ce796 100644 --- a/exampleSite/content/about/index.en.md +++ b/exampleSite/content/about/index.en.md @@ -51,6 +51,7 @@ math: * :(fas fa-comment-dots fa-fw): **Commento** comment system supported by [Commento](https://commento.io/) * :(fas fa-comment-alt fa-fw): **Utterances** comment system supported by [Utterances](https://utteranc.es/) * :(fas fa-comment-alt fa-fw): **Twikoo** comment system supported by [Twikoo](https://twikoo.js.org/) +* :(fas fa-comment-alt fa-fw): **Vssue** comment system supported by [Vssue](https://vssue.js.org/) #### Extended Features @@ -108,6 +109,7 @@ Thanks to the authors of following resources included in the theme: * [Valine](https://valine.js.org/) * [Waline](https://waline.js.org/) * [Twikoo](https://twikoo.js.org/) +* [Vssue](https://vssue.js.org/) * [cookieconsent](https://github.com/osano/cookieconsent) * [Pjax](https://github.com/PaperStrike/Pjax) * [Topbar](https://github.com/buunguyen/topbar) diff --git a/exampleSite/content/about/index.zh-cn.md b/exampleSite/content/about/index.zh-cn.md index bde3d692e..9851c3cd2 100644 --- a/exampleSite/content/about/index.zh-cn.md +++ b/exampleSite/content/about/index.zh-cn.md @@ -51,6 +51,7 @@ math: * :(fas fa-comment-dots fa-fw): 支持 **[Commento](https://commento.io/)** 评论系统 * :(far fa-comment-alt fa-fw): 支持 **[Utterances](https://utteranc.es/)** 评论系统 * :(far fa-comment-alt fa-fw): 支持 **[Twikoo](https://twikoo.js.org/)** 评论系统 +* :(far fa-comment-alt fa-fw): 支持 **[Vssue](https://vssue.js.org/)** 评论系统 #### 扩展功能 @@ -108,6 +109,7 @@ DoIt 主题中用到了以下项目,感谢它们的作者: * [Valine](https://valine.js.org/) * [Waline](https://waline.js.org/) * [Twikoo](https://twikoo.js.org/) +* [Vssue](https://vssue.js.org/) * [cookieconsent](https://github.com/osano/cookieconsent) * [Pjax](https://github.com/PaperStrike/Pjax) * [Topbar](https://github.com/buunguyen/topbar) diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index e4c1aa84f..e508632ff 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -604,6 +604,14 @@ Please open the code block below to view the complete sample configuration :(far region = "" path = "" visitor = true + # {{< version 0.2.12 >}} {{< link "https://vssue.js.org/" "Vssue" >}} comment config + [params.page.comment.vssue] + enable = false + platform = "" # ("bitbucket", "gitea", "gitee", "github", "gitlab") + owner = "" + repo = "" + clientId = "" + clientSecret = "" # {{< version 0.2.7 >}} Third-party library config [params.page.library] [params.page.library.css] diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index c1909501a..1ef638e8b 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -608,6 +608,14 @@ hugo region = "" path = "" visitor = true + # {{< version 0.2.12 >}} {{< link "https://vssue.js.org/" "Vssue" >}} 评论系统设置 + [params.page.comment.vssue] + enable = false + platform = "" # ("bitbucket", "gitea", "gitee", "github", "gitlab") + owner = "" + repo = "" + clientId = "" + clientSecret = "" # {{< version 0.2.7 >}} 第三方库配置 [params.page.library] [params.page.library.css] diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html index 42254b806..0116cc76b 100644 --- a/layouts/partials/comment.html +++ b/layouts/partials/comment.html @@ -202,6 +202,48 @@ Please enable JavaScript to view the comments powered by Twikoo. {{- end -}} + + {{- /* Vssue Comment System */ -}} + {{- $vssue := $comment.vssue | default dict -}} + {{- if $vssue.enable -}} +
+ {{- $source := $cdn.vssueCSS | default "lib/vssue/vssue.min.css" -}} + {{- dict "Source" $source "Minify" true "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxStyle.html" -}} + {{- $source := $cdn.vueRuntimeJS | default "lib/vue/vue.runtime.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + {{- if eq $vssue.platform "bitbucket" -}} + {{- $source := $cdn.vssueBitbucketJS | default "lib/vssue/vssue.bitbucket.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + {{- else if eq $vssue.platform "gitea" -}} + {{- $source := $cdn.vssueGiteaJS | default "lib/vssue/vssue.gitea.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + {{- else if eq $vssue.platform "gitee" -}} + {{- $source := $cdn.vssueGiteeJS | default "lib/vssue/vssue.gitee.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + {{- else if eq $vssue.platform "github" -}} + {{- $source := $cdn.vssueGithubJS | default "lib/vssue/vssue.github.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + {{- else if eq $vssue.platform "gitlab" -}} + {{- $source := $cdn.vssueGitlabJS | default "lib/vssue/vssue.gitlab.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/pjaxScript.html" -}} + {{- end -}} + {{- $commentConfig = dict "el" "#vssue" "title" .Title | dict "vssue" | merge $commentConfig -}} + {{- with $vssue.owner -}} + {{- $commentConfig = dict "owner" . | dict "vssue" | merge $commentConfig -}} + {{- end -}} + {{- with $vssue.repo -}} + {{- $commentConfig = dict "repo" . | dict "vssue" | merge $commentConfig -}} + {{- end -}} + {{- with $vssue.clientId -}} + {{- $commentConfig = dict "clientId" . | dict "vssue" | merge $commentConfig -}} + {{- end -}} + {{- with $vssue.clientSecret -}} + {{- $commentConfig = dict "clientSecret" . | dict "vssue" | merge $commentConfig -}} + {{- end -}} + + {{- end -}} {{- end -}} diff --git a/src/js/theme.js b/src/js/theme.js index 2bb106d8a..59715bfb5 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -735,6 +735,23 @@ function initComment() { }); window.switchThemeEventSet.add(window._utterancesOnSwitchTheme); } + if (window.config.comment.vssue) { + let vssue = window.config.comment.vssue; + new Vue({ + el: vssue.el, + render: h => h('Vssue', { + props: { + title: vssue.title, + options: { + owner: vssue.owner, + repo: vssue.repo, + clientId: vssue.clientId, + clientSecret: vssue.clientSecret, + }, + } + }) + }) + } } }