From 4117c3b7ff43b6ef20914a543b2d2ee562d79abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Sun, 5 May 2019 22:56:10 +0800 Subject: [PATCH] =?UTF-8?q?webpack=E5=88=86=E5=9D=97=E6=89=93=E5=8C=85?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yilia/source-src/css/article-inner.scss | 1 + themes/yilia/source-src/css/core/_mixin.scss | 4 - .../yilia/source-src/css/core/_variables.scss | 13 -- themes/yilia/source-src/css/mobile.scss | 3 - themes/yilia/source-src/css/night.scss | 118 ++++++++++-------- themes/yilia/source-src/css/waifu.scss | 13 +- themes/yilia/source-src/js/comment.js | 16 +-- themes/yilia/source-src/js/main.js | 5 + themes/yilia/source-src/lib/Valine.min.js.bak | 6 - themes/yilia/webpack.config.js | 3 +- 10 files changed, 82 insertions(+), 100 deletions(-) delete mode 100644 themes/yilia/source-src/lib/Valine.min.js.bak diff --git a/themes/yilia/source-src/css/article-inner.scss b/themes/yilia/source-src/css/article-inner.scss index 86a9b61..7b874da 100644 --- a/themes/yilia/source-src/css/article-inner.scss +++ b/themes/yilia/source-src/css/article-inner.scss @@ -79,6 +79,7 @@ font-family: Menlo,Monaco,"Andale Mono","lucida console","Courier New","Microsoft YaHei"; word-wrap: break-word; font-size: 14px; + border-radius: $radiusSmall; } blockquote { padding: 15px 20px; diff --git a/themes/yilia/source-src/css/core/_mixin.scss b/themes/yilia/source-src/css/core/_mixin.scss index 288ec23..4d19523 100644 --- a/themes/yilia/source-src/css/core/_mixin.scss +++ b/themes/yilia/source-src/css/core/_mixin.scss @@ -694,10 +694,6 @@ -ms-transition: all 0.8s ease-in; } -%line-bg { - background: linear-gradient(200deg, #a0cfe4, #e8c37e); -} - %paper-bg { background: url('./img/checkered-pattern.png') repeat #5d5d5d; } diff --git a/themes/yilia/source-src/css/core/_variables.scss b/themes/yilia/source-src/css/core/_variables.scss index f5d4e73..cd4b57d 100644 --- a/themes/yilia/source-src/css/core/_variables.scss +++ b/themes/yilia/source-src/css/core/_variables.scss @@ -41,12 +41,6 @@ $colorA: #aaa; $colorC: #ccc; $colorF: #f5f5f5; -$blue: #007aff !default; -$orange: #ff9500 !default; -$red: #ff3b30 !default; -$green: #4cd964 !default; -$primary: #007aff !default; - // 元素上下间距 //----------------------------------------------------- @@ -74,11 +68,4 @@ $timingFunction: cubic-bezier(0.42, 0, 0.58, 1); $activeStateSwitch: true !default; -// z-index -//----------------------------------------------------- -$zIndexHeader: 1000 !default; -$zIndexFooter: 2000 !default; -$zIndexPopup: 3000 !default; -$zIndexOverlay: 4000 !default; // 默认高于header和footer部分 - $articlePadding: 7.6923%; \ No newline at end of file diff --git a/themes/yilia/source-src/css/mobile.scss b/themes/yilia/source-src/css/mobile.scss index dec3677..4fec143 100644 --- a/themes/yilia/source-src/css/mobile.scss +++ b/themes/yilia/source-src/css/mobile.scss @@ -257,9 +257,6 @@ html, body, #container { .archives-wrap{ margin: 10px 10px 0px; padding: 10px; - .archive-article-title{ - font-size: 16px; - } .archive-year-wrap{ position: relative; padding: 0 0 0 0; diff --git a/themes/yilia/source-src/css/night.scss b/themes/yilia/source-src/css/night.scss index 52edf1b..cdb07a5 100644 --- a/themes/yilia/source-src/css/night.scss +++ b/themes/yilia/source-src/css/night.scss @@ -1,54 +1,66 @@ -/* -* 夜间模式配色 -*/ -$mainBg_night: #1f2e3c; // 主背景色 -$articleBg_night: #15202b; // 文章背景色 -$textColor_night: #d5d5d5; // 文字颜色 - -body.night { - background: $mainBg_night; - // 展开菜单之后的背景 - #container.show { - background: none; - } - // 主背景 - .mid-col { - background: $mainBg_night; - } - // 文章区域 - .article{ - background: $articleBg_night; - border-color: rgb(56, 68, 77); - color: $textColor_night; - .article-title { // 主标题 - color: $colorF; - } - .article-entry blockquote{ // 引用 - background: #2c2c2c; - } - h1,h2,h3,h4,h5,h6 { // 章节标题 - color: #b8a7a7; - } - } - // 左侧栏 - .left-col { - background: $articleBg_night; - .overlay { - background: none; - } - .profilepic { // 头像 - filter: brightness(30%); - } - } - // 看板娘 - .waifu { - filter: brightness(30%); - } - // 评论 - #comments { - background: none; - } - #footer { - color: $textColor_night; - } +/* +* 夜间模式配色 +*/ +$mainBg_night: #1f2e3c; // 主背景色 +$articleBg_night: #15202b; // 文章背景色 +$borderColor_night: #38444d; // 边框颜色 +$textColor_night: #d5d5d5; // 文字颜色 + +body.night { + background: $mainBg_night; + // 展开菜单之后的背景 + #container.show { + background: none; + } + // 主背景 + .mid-col { + background: $mainBg_night; + } + // 文章区域 + .article{ + background: $articleBg_night; + border-color: $borderColor_night; + color: $textColor_night; + .article-title { // 主标题 + color: $colorF; + } + .article-entry blockquote{ // 引用 + background: #2c2c2c; + } + h1,h2,h3,h4,h5,h6 { // 章节标题 + color: #b8a7a7; + } + } + // 归档列表 + .archives-wrap { + background: $articleBg_night; + border-bottom-color: $borderColor_night; + .archive-article { + border-color: $borderColor_night; + } + a.archive-article-title { + color: $textColor_night; + } + } + // 左侧栏 + .left-col { + background: $articleBg_night; + .overlay { + background: none; + } + .profilepic { // 头像 + filter: brightness(30%); + } + } + // 看板娘 + .waifu { + filter: brightness(30%); + } + // 评论 + #comments { + background: none; + } + #footer { + color: $textColor_night; + } } \ No newline at end of file diff --git a/themes/yilia/source-src/css/waifu.scss b/themes/yilia/source-src/css/waifu.scss index e5a6510..a28157f 100644 --- a/themes/yilia/source-src/css/waifu.scss +++ b/themes/yilia/source-src/css/waifu.scss @@ -55,7 +55,7 @@ } } .waifu-tool { - color: #aaa; + color: $colorA; top: 100px; right: 10px; font-size: 14px; @@ -90,17 +90,6 @@ } } } -/* -body.night .waifu { - color: #34495e; - filter: brightness(30%); -} -*/ -@media (max-width: 768px) { - .waifu { - display: none; - } -} @keyframes shake { 2% { diff --git a/themes/yilia/source-src/js/comment.js b/themes/yilia/source-src/js/comment.js index 42703ff..92223ca 100644 --- a/themes/yilia/source-src/js/comment.js +++ b/themes/yilia/source-src/js/comment.js @@ -1,16 +1,16 @@ // const AV = require('leancloud-storage'); window.AV = require('leancloud-storage'); -const Valine = require('../lib/Valine.min'); +// const Valine = require('../lib/Valine.min'); /** - * Valine.min.js.bak文件, 是根据Valine项目源代码重新打包的 + * 使用根据Valine项目源代码重新打包 * 可以支持对于AV对象的传参输入, 而不需要暴露全局变量 * 但是缺少一些新功能 */ // 评论配置 -const commentConfig = require("../config/comment.json"); +const commentConfig = require("../config/comment.json") -if(window.yiliaConfig.isPost && commentConfig.valine.enable) { - commentConfig.valine.config.path = window.location.pathname; - // commentConfig.valine.config.av = AV; - new Valine(commentConfig.valine.config); -} +import(/* webpackChunkName: "valine" */ '../lib/Valine.min').then(({ default: Valine }) => { + commentConfig.valine.config.path = window.location.pathname + // commentConfig.valine.config.av = AV; + new Valine(commentConfig.valine.config) +}) diff --git a/themes/yilia/source-src/js/main.js b/themes/yilia/source-src/js/main.js index 2d90141..a6612d1 100644 --- a/themes/yilia/source-src/js/main.js +++ b/themes/yilia/source-src/js/main.js @@ -14,3 +14,8 @@ Util.addLoadEvent(function() { // Viewer.init() Aside.init() }) +const commentConfig = require("../config/comment.json") +if(window.yiliaConfig.isPost && commentConfig.valine.enable) { + // 如果是文章详情页面, 并且启用了评论, 则加载评论相关代码 + import(/* webpackChunkName: "comment" */ './comment') +} \ No newline at end of file diff --git a/themes/yilia/source-src/lib/Valine.min.js.bak b/themes/yilia/source-src/lib/Valine.min.js.bak deleted file mode 100644 index 496a42a..0000000 --- a/themes/yilia/source-src/lib/Valine.min.js.bak +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * Valine v1.1.9 - * (c) 2017-2018 xCss - * Released under the GPL-2.0 License. - */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Valine=t():e.Valine=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(1),a=r(o),s=n(2),l=r(s),c={cdn:"https://gravatar.cat.net/avatar/",ds:["mm","identicon","monsterid","wavatar","retro",""],params:"?s=40",hide:!1},u={comment:"",rid:"",nick:"Guest",mail:"",link:"",ua:navigator.userAgent,url:"",pin:0,like:0},p=["nick","mail","link"],h=localStorage,d=function(){function e(t){i(this,e);var n=this;n.version="1.1.8-beta",n.md5=a.default,!!t&&n.init(t)}return e.prototype.init=function(e){var t=this;try{var n="[object HTMLDivElement]"==={}.toString.call(e.el)?e.el:document.querySelectorAll(e.el)[0];if("[object HTMLDivElement]"!={}.toString.call(n))throw"The target element was not found.";t.el=n,t.el.classList.add("valine");var r=e.guest_info||p,i=r.map(function(e){switch(e){case"nick":return'';case"mail":return'';case"link":return'';default:return""}}),o=e.placeholder||"",a='
'+i.join("")+'
MarkDown is Support
";t.el.innerHTML=a;var s=t.el.querySelector(".vempty");t.nodata={show:function(e){s.innerHTML=e||"还没有评论哦,快来抢沙发吧!",s.setAttribute("style","display:block;")},hide:function(){s.setAttribute("style","display:none;")}};var l=t.el.querySelector(".vloading");l.innerHTML='
',t.loading={show:function(){l.setAttribute("style","display:block;"),t.nodata.hide()},hide:function(){l.setAttribute("style","display:none;"),0===t.el.querySelectorAll(".vcard").length&&t.nodata.show()}},t.notify=e.notify||!1,t.verify=e.verify||!1,c.params="?d="+(c.ds.indexOf(e.avatar)>-1?e.avatar:"mm"),c.hide="hide"===e.avatar;var h=e.av||AV,d=e.app_id||e.appId,v=e.app_key||e.appKey;if(!d||!v)throw t.loading.hide(),"初始化失败,请检查你的appid或者appkey.";h.applicationId=null,h.init({appId:d,appKey:v}),t.v=h,u.url=(e.path||location.pathname).replace(/index\.(html|htm)/,"")}catch(e){var g="https://github.com/xCss/Valine/issues";return void(t.el?t.nodata.show('
'+e+"
Valine:"+t.version+"
反馈:"+g+"
"):console)}var m=t.el.querySelector(".vmark");t.alert={show:function(e){m.innerHTML='
'+e.text+'
';var n=m.querySelector(".vbtns"),r='",i='";if(n.innerHTML=""+r+(e.type&&i),m.querySelector(".vcancel").addEventListener("click",function(e){t.alert.hide()}),m.setAttribute("style","display:block;"),e&&e.type){var o=m.querySelector(".vsure");f.on("click",o,function(n){t.alert.hide(),e.cb&&e.cb()})}},hide:function(){m.setAttribute("style","display:none;")}},t.bind(e)},e.prototype.bind=function(e){var t=this,n=(e.guest_info||p).filter(function(e){return p.indexOf(e)>-1}),r=function(e){e.offsetHeight>180&&(e.classList.add("expand"),f.on("click",e,function(t){e.setAttribute("class","vcontent")}))},i=function(e){var n=new t.v.Query("Comment");return n.equalTo("url",u.url),n.descending("createdAt"),n};!function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.loading.show();var e=i();e.limit("1000"),e.find().then(function(e){var n=e.length;if(n){t.el.querySelector(".vlist").innerHTML="";for(var r=0;r'+n+")"}t.loading.hide()}).catch(function(e){t.loading.hide()})}();for(var o=function(e,n){var i=document.createElement("li");i.setAttribute("class","vcard"),i.setAttribute("id",e.id);var o=c.hide?"":'";i.innerHTML=o+'
'+e.get("comment")+'
'+k(e.get("createdAt"))+"回复
';for(var s=t.el.querySelector(".vlist"),l=s.querySelectorAll("li"),u=i.querySelector(".vat"),p=i.querySelectorAll("a"),h=0,d=p.length;h-1&&""!=_.at){var r='"+_.at+"";u.comment=u.comment.replace(_.at,r)}var i=g.mail(u.mail),o=g.link(u.link);u.mail=i.k?i.v:"",u.link=o.k?o.v:"",!i.k&&!o.k&&n.indexOf("mail")>-1&&n.indexOf("link")>-1?t.alert.show({type:1,text:"您的网址和邮箱格式不正确, 是否继续提交?",cb:function(){t.notify||t.verify?$(C):C()}}):!i.k&&n.indexOf("mail")>-1?t.alert.show({type:1,text:"您的邮箱格式不正确, 是否继续提交?",cb:function(){t.notify||t.verify?$(C):C()}}):!o.k&&n.indexOf("link")>-1?t.alert.show({type:1,text:"您的网址格式不正确, 是否继续提交?",cb:function(){t.notify||t.verify?$(C):C()}}):t.notify||t.verify?$(C):C()},z=function(){var e=new t.v.ACL;return e.setPublicReadAccess(!0),e.setPublicWriteAccess(!1),e},C=function(){A.setAttribute("disabled",!0),t.loading.show();var e=t.v.Object.extend("Comment"),n=new e;for(var r in u)if(u.hasOwnProperty(r)){var i=u[r];n.set(r,i)}n.setACL(z()),n.save().then(function(e){"Guest"!=u.nick&&h&&h.setItem("ValineCache",JSON.stringify({nick:u.nick,link:u.link,mail:u.mail}));var n=t.el.querySelector(".num"),r=1;try{n?(r=Number(n.innerText)+1,n.innerText=r):t.el.querySelector(".count").innerHTML='评论(1)',o(e),u.mail&&q({username:u.nick,mail:u.mail}),_.at&&_.rmail&&t.notify&&M({username:_.at.replace("@",""),mail:_.rmail}),A.removeAttribute("disabled"),t.loading.hide(),S()}catch(e){}}).catch(function(e){t.loading.hide()})},$=function e(n){var r=Math.floor(10*Math.random()+1),i=Math.floor(10*Math.random()+1),o=Math.floor(10*Math.random()+1),a=["+","-","x"],s=a[Math.floor(3*Math.random())],l=a[Math.floor(3*Math.random())],c=""+r+s+i+l+o,u=c+" = ";t.alert.show({type:1,text:u,ctxt:"取消",otxt:"确认",cb:function(){var r=+t.el.querySelector(".vcode").value;new Function("return "+c.replace(/x/g,"*"))()===r?n&&n():t.alert.show({type:1,text:"(T_T)这么简单都算错,也是没谁了",ctxt:"伤心了,不回了",otxt:"再试试?",cb:function(){e(n)}})}})},q=function(e){var n=new t.v.User;return n.setUsername(e.username),n.setPassword(e.mail),n.setEmail(e.mail),n.setACL(z()),n.signUp()},M=function e(n){t.v.User.requestPasswordReset(n.mail).then(function(e){}).catch(function(r){1==r.code?t.alert.show({type:0,text:"ヾ(o・ω・)ノ At太频繁啦,提醒功能暂时宕机。
"+r.error,ctxt:"好的"}):q(n).then(function(t){e(n)}).catch(function(e){})})},R=function(e){f.on("click",e,function(t){var n=e.getAttribute("at"),r=e.getAttribute("rid"),i=e.getAttribute("mail");_.at=n,_.rmail=i,u.rid=r,x.comment.value=n+" ,",x.comment.focus()})};f.off("click",A,L),f.on("click",A,L)},e}(),f={on:function(e,t,n,r){t.addEventListener?t.addEventListener(e,n,r||!1):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},off:function(e,t,n,r){t.removeEventListener?t.removeEventListener(e,n,r||!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null}},v=function(e){return e.link||e.mail&&"mailto:"+e.mail||"javascript:void(0);"},g={mail:function(e){return{k:/[\w-\.]+@([\w-]+\.)+[a-z]{2,3}/.test(e),v:e}},link:function(e){return e=e.length>0&&(/^(http|https)/.test(e)?e:"http://"+e),{k:/(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?/.test(e),v:e}}},m={encode:function(e){return e?e.replace(/&/g,"&").replace(//g,">").replace(/ /g," ").replace(/\'/g,"'").replace(/\"/g,"""):""},decode:function(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/'/g,"'").replace(/"/g,'"'):""}},b=function(e){var t=x(e.getDate(),2),n=x(e.getMonth()+1,2);return x(e.getFullYear(),2)+"-"+n+"-"+t},k=function(e){try{var t=e.getTime(),n=(new Date).getTime(),r=n-t,i=Math.floor(r/864e5);if(0===i){var o=r%864e5,a=Math.floor(o/36e5);if(0===a){var s=o%36e5,l=Math.floor(s/6e4);if(0===l){var c=s%6e4;return Math.round(c/1e3)+" 秒前"}return l+" 分钟前"}return a+" 小时前"}return i<0?"刚刚":i<8?i+" 天前":b(e)}catch(e){}},x=function(e,t){for(var n=e.toString();n.length>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t){return e<>>32-t}function s(e,t,n,r,i,s){return o(a(o(o(t,e),o(r,s)),i),n)}function l(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function u(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function p(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function h(e,t){e[t>>5]|=128<>>9<<4)]=t;var n,r,i,a,s,h=1732584193,d=-271733879,f=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return n}function f(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<16&&(i=h(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=h(o.concat(f(t)),512+8*t.length),d(h(a.concat(r),640))}function m(e){var t,n,r="0123456789abcdef",i="";for(n=0;n>>4&15)+r.charAt(15&t);return i}function b(e){return unescape(encodeURIComponent(e))}function k(e){return v(b(e))}function x(e){return m(k(e))}function y(e,t){return g(b(e),b(t))}function w(e,t){return m(y(e,t))}function _(e,t,n){return t?n?y(t,e):w(t,e):n?k(e):x(e)}void 0!==(r=function(){return _}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){(function(t){!function(t){"use strict";function n(e){this.tokens=[],this.tokens.links={},this.options=e||d.defaults,this.rules=f.normal,this.options.gfm&&(this.options.tables?this.rules=f.tables:this.rules=f.gfm)}function r(e,t){if(this.options=t||d.defaults,this.links=e,this.rules=v.normal,this.renderer=this.options.renderer||new i,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=v.breaks:this.rules=v.gfm:this.options.pedantic&&(this.rules=v.pedantic)}function i(e){this.options=e||{}}function o(){}function a(e){this.tokens=[],this.token=null,this.options=e||d.defaults,this.options.renderer=this.options.renderer||new i,this.renderer=this.options.renderer,this.renderer.options=this.options}function s(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function c(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=n.source||n,n=n.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function u(e,t){return g[" "+e]||(/^[^:]+:\/*[^\/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=e.replace(/[^\/]*$/,"")),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^\/]*)[\s\S]*/,"$1")+t:e+t}function p(){}function h(e){for(var t,n,r=1;rAn error occurred:

"+s(e.message+"",!0)+"
";throw e}}var f={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:p,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:p,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:p,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};f._label=/(?:\\[\[\]]|[^\[\]])+/,f._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,f.def=c(f.def).replace("label",f._label).replace("title",f._title).getRegex(),f.bullet=/(?:[*+-]|\d+\.)/,f.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,f.item=c(f.item,"gm").replace(/bull/g,f.bullet).getRegex(),f.list=c(f.list).replace(/bull/g,f.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+f.def.source+")").getRegex(),f._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",f.html=c(f.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/\s]*)*?\/?>/).replace(/tag/g,f._tag).getRegex(),f.paragraph=c(f.paragraph).replace("hr",f.hr).replace("heading",f.heading).replace("lheading",f.lheading).replace("tag","<"+f._tag).getRegex(),f.blockquote=c(f.blockquote).replace("paragraph",f.paragraph).getRegex(),f.normal=h({},f),f.gfm=h({},f.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),f.gfm.paragraph=c(f.paragraph).replace("(?!","(?!"+f.gfm.fences.source.replace("\\1","\\2")+"|"+f.list.source.replace("\\1","\\3")+"|").getRegex(),f.tables=h({},f.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),n.rules=f,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,t){e=e.replace(/^ +$/gm,"");for(var n,r,i,o,a,s,l,c,u,p,h;e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(t&&(i=this.rules.nptable.exec(e))){for(e=e.substring(i[0].length),s={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),o=i[2],h=o.length>1,this.tokens.push({type:"list_start",ordered:h,start:h?+o:""}),i=i[0].match(this.rules.item),n=!1,p=i.length,c=0;c1&&a.length>1||(e=i.slice(c+1).join("\n")+e,c=p-1)),r=n||/\n\n(?!\s*$)/.test(s),c!==p-1&&(n="\n"===s.charAt(s.length-1),r||(r=n)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(s,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]});else if(t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),u=i[1].toLowerCase(),this.tokens.links[u]||(this.tokens.links[u]={href:i[2],title:i[3]});else if(t&&(i=this.rules.table.exec(e))){for(e=e.substring(i[0].length),s={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:p,tag:/^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:p,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,v.link=c(v.link).replace("inside",v._inside).replace("href",v._href).getRegex(),v.reflink=c(v.reflink).replace("inside",v._inside).getRegex(),v.normal=h({},v),v.pedantic=h({},v.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),v.gfm=h({},v.normal,{escape:c(v.escape).replace("])","~|])").getRegex(),url:c(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",v._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:c(v.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),v.breaks=h({},v.gfm,{br:c(v.br).replace("{2,}","*").getRegex(),text:c(v.gfm.text).replace("{2,}","*").getRegex()}),r.rules=v,r.output=function(e,t,n){return new r(t,n).output(e)},r.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=s(this.mangle(i[1])),r="mailto:"+n):(n=s(i[1]),r=n),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):s(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(s(i[2].trim(),!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(s(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else i[0]=this.rules._backpedal.exec(i[0])[0],e=e.substring(i[0].length),"@"===i[2]?(n=s(i[0]),r="mailto:"+n):(n=s(i[0]),r="www."===i[1]?"http://"+n:n),o+=this.renderer.link(r,null,n);return o},r.prototype.outputLink=function(e,t){var n=s(t.href),r=t.title?s(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,s(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},i.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'
'+(n?e:s(e,!0))+"\n
\n":"
"+(n?e:s(e,!0))+"\n
"},i.prototype.blockquote=function(e){return"
\n"+e+"
\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,n){return"'+e+"\n"},i.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},i.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},i.prototype.paragraph=function(e){return"

    "+e+"

    \n"},i.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},i.prototype.tablerow=function(e){return"\n"+e+"\n"},i.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},i.prototype.strong=function(e){return""+e+""},i.prototype.em=function(e){return""+e+""},i.prototype.codespan=function(e){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},i.prototype.del=function(e){return""+e+""},i.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!m.test(e)&&(e=u(this.options.baseUrl,e));var i='
    "},i.prototype.image=function(e,t,n){this.options.baseUrl&&!m.test(e)&&(e=u(this.options.baseUrl,e));var r=''+n+'":">"},i.prototype.text=function(e){return e},o.prototype.strong=o.prototype.em=o.prototype.codespan=o.prototype.del=o.prototype.text=function(e){return e},o.prototype.link=o.prototype.image=function(e,t,n){return""+n},o.prototype.br=function(){return""},a.parse=function(e,t){return new a(t).parse(e)},a.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,h({},this.options,{renderer:new o})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,l(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;ediv{background-color:#9c9c9c;height:100%;width:.375rem;margin-right:.19rem;display:inline-block;-webkit-animation:sk-stretchdelay 1.2s infinite ease-in-out;animation:sk-stretchdelay 1.2s infinite ease-in-out}.valine .spinner .r2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.valine .spinner .r3{-webkit-animation-delay:-1s;animation-delay:-1s}.valine .spinner .r4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.valine .spinner .r5{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes sk-stretchdelay{0%,40%,to{-webkit-transform:scaleY(.4)}20%{-webkit-transform:scaleY(1)}}@keyframes sk-stretchdelay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}',""])},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&k.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),o(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),o(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function u(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var c=b++;n=m||(m=s(t)),r=p.bind(null,n,c,!1),i=p.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=d.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=h.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function p(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=x(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var f={},v=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),m=null,b=0,k=[],x=n(8);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=v()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a