diff --git a/Volantis/js/search/hexo.js b/Volantis/js/search/hexo.js
new file mode 100644
index 0000000..d0ffb20
--- /dev/null
+++ b/Volantis/js/search/hexo.js
@@ -0,0 +1,189 @@
+let SearchService = (() => {
+ fn = {};
+ fn.queryText = null;
+ fn.data = null;
+ fn.template = `
+`;
+ fn.init = () => {
+ let div = document.createElement("div");
+ div.innerHTML += fn.template;
+ document.body.append(div);
+ document.querySelectorAll(".u-search-form").forEach((e) => {
+ e.addEventListener("submit", fn.onSubmit, false);
+ });
+ let uSearchModalInput = document.querySelector("#u-search-modal-input");
+ uSearchModalInput.addEventListener("input", fn.onSubmit);
+ document
+ .querySelector("#u-search-btn-close")
+ .addEventListener("click", fn.close, false);
+ document
+ .querySelector("#modal-overlay")
+ .addEventListener("click", fn.close, false);
+ };
+ fn.onSubmit = (event) => {
+ event.preventDefault();
+ let input = event.target.querySelector(".u-search-input");
+ if (input) {
+ fn.queryText = input.value;
+ } else {
+ fn.queryText = event.target.value;
+ }
+
+ if (fn.queryText) {
+ fn.search();
+ }
+ };
+ fn.search = async () => {
+ document.querySelectorAll(".u-search-input").forEach((e) => {
+ e.value = fn.queryText;
+ });
+ document.querySelector("#u-search").style.display = "block";
+ if (!fn.data) {
+ fn.data = await fn.fetchData();
+ }
+ let results = "";
+ results += fn.buildResultList(data.pages);
+ results += fn.buildResultList(data.posts);
+ document.querySelector("#u-search .modal-results").innerHTML = results;
+ window.pjax && pjax.refresh(document.querySelector("#u-search"));
+ document.addEventListener("keydown", function f(event) {
+ if (event.code === "Escape") {
+ fn.close();
+ document.removeEventListener("keydown", f);
+ }
+ });
+ };
+ fn.close = () => {
+ document.querySelector("#u-search").style.display = "none";
+ };
+ fn.fetchData = () => {
+ return fetch(SearchServiceDataPath)
+ .then((response) => response.text())
+ .then((res) => {
+ data = JSON.parse(res);
+ // console.log(data);
+ return data;
+ });
+ };
+ fn.buildResultList = (data) => {
+ let html = "";
+ data.forEach((post) => {
+ if (post.text) {
+ post.text = post.text.replace(/12345\d*/g, "") // 简易移除代码行号
+ }
+ if (fn.contentSearch(post)) {
+ html += fn.buildResult(post.permalink, post.title, post.digest);
+ }
+ });
+ return html;
+ };
+ fn.contentSearch = (post) => {
+ let post_title = post.title.trim().toLowerCase();
+ let post_content = post.text.trim().toLowerCase();
+ let keywords = fn.queryText
+ .trim()
+ .toLowerCase()
+ .split(/[-\s]+/);
+ let foundMatch = false;
+ let index_title = -1;
+ let index_content = -1;
+ let first_occur = -1;
+ if (post_title && post_content) {
+ keywords.forEach((word, index) => {
+ index_title = post_title.indexOf(word);
+ index_content = post_content.indexOf(word);
+ if (index_title < 0 && index_content < 0) {
+ foundMatch = false;
+ } else {
+ foundMatch = true;
+ if (index_content < 0) {
+ index_content = 0;
+ }
+ if (index === 0) {
+ first_occur = index_content;
+ }
+ }
+ if (foundMatch) {
+ post_content = post.text.trim();
+ let start = 0;
+ let end = 0;
+ if (first_occur >= 0) {
+ start = Math.max(first_occur - 40, 0);
+ end =
+ start === 0
+ ? Math.min(200, post_content.length)
+ : Math.min(first_occur + 120, post_content.length);
+ let match_content = post_content.substring(start, end);
+ keywords.forEach(function (keyword) {
+ let regS = new RegExp(keyword, "gi");
+ match_content = match_content.replace(
+ regS,
+ "" + keyword + " "
+ );
+ });
+ post.digest = match_content + "......";
+ } else {
+ end = Math.min(200, post_content.length);
+ post.digest = post_content.trim().substring(0, end);
+ }
+ }
+ });
+ }
+ return foundMatch;
+ };
+ fn.buildResult = (url, title, digest) => {
+ let result = fn.getUrlRelativePath(url);
+ let html = "";
+ html += "";
+ html +=
+ "";
+ html += "" + title + " ";
+ if (digest !== "") html += "" + digest + " ";
+ html += " ";
+ html += " ";
+ return html;
+ };
+ fn.getUrlRelativePath = function (url) {
+ let arrUrl = url.split("//");
+ let start = arrUrl[1].indexOf("/");
+ let relUrl = arrUrl[1].substring(start);
+ if (relUrl.indexOf("?") != -1) {
+ relUrl = relUrl.split("?")[0];
+ }
+ return relUrl;
+ };
+ return {
+ init: () => {
+ fn.init();
+ },
+ setQueryText: (queryText) => {
+ fn.queryText = queryText;
+ },
+ search: () => {
+ fn.search();
+ },
+ };
+})();
+Object.freeze(SearchService);
+
+SearchService.init();
+document.addEventListener("pjax:success", SearchService.init);
+document.addEventListener("pjax:send", function () {
+ document.querySelector("#u-search").style.display = "none";
+});
diff --git a/Volantis/js/thirdparty/message.js b/Volantis/js/thirdparty/message.js
new file mode 100644
index 0000000..2d788dc
--- /dev/null
+++ b/Volantis/js/thirdparty/message.js
@@ -0,0 +1,6 @@
+/*
+* iziToast | v1.4.0
+* http://izitoast.marcelodolce.com
+* by Marcelo Dolce.
+*/
+!function(t,e){"function"==typeof define&&define.amd?define([],e(t)):"object"==typeof exports?module.exports=e(t):t.iziToast=e(t)}("undefined"!=typeof global?global:window||this.window||this.global,function(t){"use strict";var e={},n="iziToast",o=(document.querySelector("body"),!!/Mobi/.test(navigator.userAgent)),i=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),s="undefined"!=typeof InstallTrigger,a="ontouchstart"in document.documentElement,r=["bottomRight","bottomLeft","bottomCenter","topRight","topLeft","topCenter","center"],l={info:{color:"blue",icon:"ico-info"},success:{color:"green",icon:"ico-success"},warning:{color:"orange",icon:"ico-warning"},error:{color:"red",icon:"ico-error"},question:{color:"yellow",icon:"ico-question"}},d=568,c={};e.children={};var u={id:null,"class":"",title:"",titleColor:"",titleSize:"",titleLineHeight:"",message:"",messageColor:"",messageSize:"",messageLineHeight:"",backgroundColor:"",theme:"light",color:"",icon:"",iconText:"",iconColor:"",iconUrl:null,image:"",imageWidth:50,maxWidth:null,zindex:null,layout:1,balloon:!1,close:!0,closeOnEscape:!1,closeOnClick:!1,displayMode:0,position:"bottomRight",target:"",targetFirst:!0,timeout:5e3,rtl:!1,animateInside:!0,drag:!0,pauseOnHover:!0,resetOnHover:!1,progressBar:!0,progressBarColor:"",progressBarEasing:"linear",overlay:!1,overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)",transitionIn:"fadeInUp",transitionOut:"fadeOut",transitionInMobile:"fadeInUp",transitionOutMobile:"fadeOutDown",buttons:{},inputs:{},onOpening:function(){},onOpened:function(){},onClosing:function(){},onClosed:function(){}};if("remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"function"!=typeof window.CustomEvent){var p=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};p.prototype=window.Event.prototype,window.CustomEvent=p}var m=function(t,e,n){if("[object Object]"===Object.prototype.toString.call(t))for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(n,t[o],o,t);else if(t)for(var i=0,s=t.length;s>i;i++)e.call(n,t[i],i,t)},g=function(t,e){var n={};return m(t,function(e,o){n[o]=t[o]}),m(e,function(t,o){n[o]=e[o]}),n},f=function(t){var e=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=t;n.firstChild;)e.appendChild(n.firstChild);return e},v=function(t){var e=btoa(encodeURIComponent(t));return e.replace(/=/g,"")},y=function(t){return"#"==t.substring(0,1)||"rgb"==t.substring(0,3)||"hsl"==t.substring(0,3)},h=function(t){try{return btoa(atob(t))==t}catch(e){return!1}},b=function(){return{move:function(t,e,o,a){var r,l=.3,d=180;0!==a&&(t.classList.add(n+"-dragged"),t.style.transform="translateX("+a+"px)",a>0?(r=(d-a)/d,l>r&&e.hide(g(o,{transitionOut:"fadeOutRight",transitionOutMobile:"fadeOutRight"}),t,"drag")):(r=(d+a)/d,l>r&&e.hide(g(o,{transitionOut:"fadeOutLeft",transitionOutMobile:"fadeOutLeft"}),t,"drag")),t.style.opacity=r,l>r&&((i||s)&&(t.style.left=a+"px"),t.parentNode.style.opacity=l,this.stopMoving(t,null)))},startMoving:function(t,e,n,o){o=o||window.event;var i=a?o.touches[0].clientX:o.clientX,s=t.style.transform.replace("px)","");s=s.replace("translateX(","");var r=i-s;n.transitionIn&&t.classList.remove(n.transitionIn),n.transitionInMobile&&t.classList.remove(n.transitionInMobile),t.style.transition="",a?document.ontouchmove=function(o){o.preventDefault(),o=o||window.event;var i=o.touches[0].clientX,s=i-r;b.move(t,e,n,s)}:document.onmousemove=function(o){o.preventDefault(),o=o||window.event;var i=o.clientX,s=i-r;b.move(t,e,n,s)}},stopMoving:function(t,e){a?document.ontouchmove=function(){}:document.onmousemove=function(){},t.style.opacity="",t.style.transform="",t.classList.contains(n+"-dragged")&&(t.classList.remove(n+"-dragged"),t.style.transition="transform 0.4s ease, opacity 0.4s ease",setTimeout(function(){t.style.transition=""},400))}}}();return e.setSetting=function(t,n,o){e.children[t][n]=o},e.getSetting=function(t,n){return e.children[t][n]},e.destroy=function(){m(document.querySelectorAll("."+n+"-overlay"),function(t,e){t.remove()}),m(document.querySelectorAll("."+n+"-wrapper"),function(t,e){t.remove()}),m(document.querySelectorAll("."+n),function(t,e){t.remove()}),this.children={},document.removeEventListener(n+"-opened",{},!1),document.removeEventListener(n+"-opening",{},!1),document.removeEventListener(n+"-closing",{},!1),document.removeEventListener(n+"-closed",{},!1),document.removeEventListener("keyup",{},!1),c={}},e.settings=function(t){e.destroy(),c=t,u=g(u,t||{})},m(l,function(t,n){e[n]=function(e){var n=g(c,e||{});n=g(t,n||{}),this.show(n)}}),e.progress=function(t,e,o){var i=this,s=e.getAttribute("data-iziToast-ref"),a=g(this.children[s],t||{}),r=e.querySelector("."+n+"-progressbar div");return{start:function(){"undefined"==typeof a.time.REMAINING&&(e.classList.remove(n+"-reseted"),null!==r&&(r.style.transition="width "+a.timeout+"ms "+a.progressBarEasing,r.style.width="0%"),a.time.START=(new Date).getTime(),a.time.END=a.time.START+a.timeout,a.time.TIMER=setTimeout(function(){clearTimeout(a.time.TIMER),e.classList.contains(n+"-closing")||(i.hide(a,e,"timeout"),"function"==typeof o&&o.apply(i))},a.timeout),i.setSetting(s,"time",a.time))},pause:function(){if("undefined"!=typeof a.time.START&&!e.classList.contains(n+"-paused")&&!e.classList.contains(n+"-reseted")){if(e.classList.add(n+"-paused"),a.time.REMAINING=a.time.END-(new Date).getTime(),clearTimeout(a.time.TIMER),i.setSetting(s,"time",a.time),null!==r){var t=window.getComputedStyle(r),l=t.getPropertyValue("width");r.style.transition="none",r.style.width=l}"function"==typeof o&&setTimeout(function(){o.apply(i)},10)}},resume:function(){"undefined"!=typeof a.time.REMAINING?(e.classList.remove(n+"-paused"),null!==r&&(r.style.transition="width "+a.time.REMAINING+"ms "+a.progressBarEasing,r.style.width="0%"),a.time.END=(new Date).getTime()+a.time.REMAINING,a.time.TIMER=setTimeout(function(){clearTimeout(a.time.TIMER),e.classList.contains(n+"-closing")||(i.hide(a,e,"timeout"),"function"==typeof o&&o.apply(i))},a.time.REMAINING),i.setSetting(s,"time",a.time)):this.start()},reset:function(){clearTimeout(a.time.TIMER),delete a.time.REMAINING,i.setSetting(s,"time",a.time),e.classList.add(n+"-reseted"),e.classList.remove(n+"-paused"),null!==r&&(r.style.transition="none",r.style.width="100%"),"function"==typeof o&&setTimeout(function(){o.apply(i)},10)}}},e.hide=function(t,e,i){"object"!=typeof e&&(e=document.querySelector(e));var s=this,a=g(this.children[e.getAttribute("data-iziToast-ref")],t||{});a.closedBy=i||null,delete a.time.REMAINING,e.classList.add(n+"-closing"),function(){var t=document.querySelector("."+n+"-overlay");if(null!==t){var e=t.getAttribute("data-iziToast-ref");e=e.split(",");var o=e.indexOf(String(a.ref));-1!==o&&e.splice(o,1),t.setAttribute("data-iziToast-ref",e.join()),0===e.length&&(t.classList.remove("fadeIn"),t.classList.add("fadeOut"),setTimeout(function(){t.remove()},700))}}(),a.transitionIn&&e.classList.remove(a.transitionIn),a.transitionInMobile&&e.classList.remove(a.transitionInMobile),o||window.innerWidth<=d?a.transitionOutMobile&&e.classList.add(a.transitionOutMobile):a.transitionOut&&e.classList.add(a.transitionOut);var r=e.parentNode.offsetHeight;e.parentNode.style.height=r+"px",e.style.pointerEvents="none",(!o||window.innerWidth>d)&&(e.parentNode.style.transitionDelay="0.2s");try{var l=new CustomEvent(n+"-closing",{detail:a,bubbles:!0,cancelable:!0});document.dispatchEvent(l)}catch(c){console.warn(c)}setTimeout(function(){e.parentNode.style.height="0px",e.parentNode.style.overflow="",setTimeout(function(){delete s.children[a.ref],e.parentNode.remove();try{var t=new CustomEvent(n+"-closed",{detail:a,bubbles:!0,cancelable:!0});document.dispatchEvent(t)}catch(o){console.warn(o)}"undefined"!=typeof a.onClosed&&a.onClosed.apply(null,[a,e,i])},1e3)},200),"undefined"!=typeof a.onClosing&&a.onClosing.apply(null,[a,e,i])},e.show=function(t){var i=this,s=g(c,t||{});if(s=g(u,s),s.time={},null===s.id&&(s.id=v(s.title+s.message+s.color)),1===s.displayMode||"once"==s.displayMode)try{if(document.querySelectorAll("."+n+"#"+s.id).length>0)return!1}catch(l){console.warn("["+n+"] Could not find an element with this selector: #"+s.id+". Try to set an valid id.")}if(2===s.displayMode||"replace"==s.displayMode)try{m(document.querySelectorAll("."+n+"#"+s.id),function(t,e){i.hide(s,t,"replaced")})}catch(l){console.warn("["+n+"] Could not find an element with this selector: #"+s.id+". Try to set an valid id.")}s.ref=(new Date).getTime()+Math.floor(1e7*Math.random()+1),e.children[s.ref]=s;var p={body:document.querySelector("body"),overlay:document.createElement("div"),toast:document.createElement("div"),toastBody:document.createElement("div"),toastTexts:document.createElement("div"),toastCapsule:document.createElement("div"),cover:document.createElement("div"),buttons:document.createElement("div"),inputs:document.createElement("div"),icon:s.iconUrl?document.createElement("img"):document.createElement("i"),wrapper:null};p.toast.setAttribute("data-iziToast-ref",s.ref),p.toast.appendChild(p.toastBody),p.toastCapsule.appendChild(p.toast),function(){if(p.toast.classList.add(n),p.toast.classList.add(n+"-opening"),p.toastCapsule.classList.add(n+"-capsule"),p.toastBody.classList.add(n+"-body"),p.toastTexts.classList.add(n+"-texts"),o||window.innerWidth<=d?s.transitionInMobile&&p.toast.classList.add(s.transitionInMobile):s.transitionIn&&p.toast.classList.add(s.transitionIn),s["class"]){var t=s["class"].split(" ");m(t,function(t,e){p.toast.classList.add(t)})}s.id&&(p.toast.id=s.id),s.rtl&&(p.toast.classList.add(n+"-rtl"),p.toast.setAttribute("dir","rtl")),s.layout>1&&p.toast.classList.add(n+"-layout"+s.layout),s.balloon&&p.toast.classList.add(n+"-balloon"),s.maxWidth&&(isNaN(s.maxWidth)?p.toast.style.maxWidth=s.maxWidth:p.toast.style.maxWidth=s.maxWidth+"px"),""===s.theme&&"light"===s.theme||p.toast.classList.add(n+"-theme-"+s.theme),s.color&&(y(s.color)?p.toast.style.background=s.color:p.toast.classList.add(n+"-color-"+s.color)),s.backgroundColor&&(p.toast.style.background=s.backgroundColor,s.balloon&&(p.toast.style.borderColor=s.backgroundColor))}(),function(){s.image&&(p.cover.classList.add(n+"-cover"),p.cover.style.width=s.imageWidth+"px",h(s.image.replace(/ /g,""))?p.cover.style.backgroundImage="url(data:image/png;base64,"+s.image.replace(/ /g,"")+")":p.cover.style.backgroundImage="url("+s.image+")",s.rtl?p.toastBody.style.marginRight=s.imageWidth+10+"px":p.toastBody.style.marginLeft=s.imageWidth+10+"px",p.toast.appendChild(p.cover))}(),function(){s.close?(p.buttonClose=document.createElement("button"),p.buttonClose.type="button",p.buttonClose.classList.add(n+"-close"),p.buttonClose.addEventListener("click",function(t){t.target;i.hide(s,p.toast,"button")}),p.toast.appendChild(p.buttonClose)):s.rtl?p.toast.style.paddingLeft="18px":p.toast.style.paddingRight="18px"}(),function(){s.progressBar&&(p.progressBar=document.createElement("div"),p.progressBarDiv=document.createElement("div"),p.progressBar.classList.add(n+"-progressbar"),p.progressBarDiv.style.background=s.progressBarColor,p.progressBar.appendChild(p.progressBarDiv),p.toast.appendChild(p.progressBar)),s.timeout&&(s.pauseOnHover&&!s.resetOnHover&&(p.toast.addEventListener("mouseenter",function(t){i.progress(s,p.toast).pause()}),p.toast.addEventListener("mouseleave",function(t){i.progress(s,p.toast).resume()})),s.resetOnHover&&(p.toast.addEventListener("mouseenter",function(t){i.progress(s,p.toast).reset()}),p.toast.addEventListener("mouseleave",function(t){i.progress(s,p.toast).start()})))}(),function(){s.iconUrl?(p.icon.setAttribute("class",n+"-icon"),p.icon.setAttribute("src",s.iconUrl)):s.icon&&(p.icon.setAttribute("class",n+"-icon "+s.icon),s.iconText&&p.icon.appendChild(document.createTextNode(s.iconText)),s.iconColor&&(p.icon.style.color=s.iconColor)),(s.icon||s.iconUrl)&&(s.rtl?p.toastBody.style.paddingRight="33px":p.toastBody.style.paddingLeft="33px",p.toastBody.appendChild(p.icon))}(),function(){s.title.length>0&&(p.strong=document.createElement("strong"),p.strong.classList.add(n+"-title"),p.strong.appendChild(f(s.title)),p.toastTexts.appendChild(p.strong),s.titleColor&&(p.strong.style.color=s.titleColor),s.titleSize&&(isNaN(s.titleSize)?p.strong.style.fontSize=s.titleSize:p.strong.style.fontSize=s.titleSize+"px"),s.titleLineHeight&&(isNaN(s.titleSize)?p.strong.style.lineHeight=s.titleLineHeight:p.strong.style.lineHeight=s.titleLineHeight+"px")),s.message.length>0&&(p.p=document.createElement("p"),p.p.classList.add(n+"-message"),p.p.appendChild(f(s.message)),p.toastTexts.appendChild(p.p),s.messageColor&&(p.p.style.color=s.messageColor),s.messageSize&&(isNaN(s.titleSize)?p.p.style.fontSize=s.messageSize:p.p.style.fontSize=s.messageSize+"px"),s.messageLineHeight&&(isNaN(s.titleSize)?p.p.style.lineHeight=s.messageLineHeight:p.p.style.lineHeight=s.messageLineHeight+"px")),s.title.length>0&&s.message.length>0&&(s.rtl?p.strong.style.marginLeft="10px":2===s.layout||s.rtl||(p.strong.style.marginRight="10px"))}(),p.toastBody.appendChild(p.toastTexts);var L;!function(){s.inputs.length>0&&(p.inputs.classList.add(n+"-inputs"),m(s.inputs,function(t,e){p.inputs.appendChild(f(t[0])),L=p.inputs.childNodes,L[e].classList.add(n+"-inputs-child"),t[3]&&setTimeout(function(){L[e].focus()},300),L[e].addEventListener(t[1],function(e){var n=t[2];return n(i,p.toast,this,e)})}),p.toastBody.appendChild(p.inputs))}(),function(){s.buttons.length>0&&(p.buttons.classList.add(n+"-buttons"),m(s.buttons,function(t,e){p.buttons.appendChild(f(t[0]));var o=p.buttons.childNodes;o[e].classList.add(n+"-buttons-child"),t[2]&&setTimeout(function(){o[e].focus()},300),o[e].addEventListener("click",function(e){e.preventDefault();var n=t[1];return n(i,p.toast,this,e,L)})})),p.toastBody.appendChild(p.buttons)}(),s.message.length>0&&(s.inputs.length>0||s.buttons.length>0)&&(p.p.style.marginBottom="0"),(s.inputs.length>0||s.buttons.length>0)&&(s.rtl?p.toastTexts.style.marginLeft="10px":p.toastTexts.style.marginRight="10px",s.inputs.length>0&&s.buttons.length>0&&(s.rtl?p.inputs.style.marginLeft="8px":p.inputs.style.marginRight="8px")),function(){p.toastCapsule.style.visibility="hidden",setTimeout(function(){var t=p.toast.offsetHeight,e=p.toast.currentStyle||window.getComputedStyle(p.toast),n=e.marginTop;n=n.split("px"),n=parseInt(n[0]);var o=e.marginBottom;o=o.split("px"),o=parseInt(o[0]),p.toastCapsule.style.visibility="",p.toastCapsule.style.height=t+o+n+"px",setTimeout(function(){p.toastCapsule.style.height="auto",s.target&&(p.toastCapsule.style.overflow="visible")},500),s.timeout&&i.progress(s,p.toast).start()},100)}(),function(){var t=s.position;if(s.target)p.wrapper=document.querySelector(s.target),p.wrapper.classList.add(n+"-target"),s.targetFirst?p.wrapper.insertBefore(p.toastCapsule,p.wrapper.firstChild):p.wrapper.appendChild(p.toastCapsule);else{if(-1==r.indexOf(s.position))return void console.warn("["+n+"] Incorrect position.\nIt can be › "+r);t=o||window.innerWidth<=d?"bottomLeft"==s.position||"bottomRight"==s.position||"bottomCenter"==s.position?n+"-wrapper-bottomCenter":"topLeft"==s.position||"topRight"==s.position||"topCenter"==s.position?n+"-wrapper-topCenter":n+"-wrapper-center":n+"-wrapper-"+t,p.wrapper=document.querySelector("."+n+"-wrapper."+t),p.wrapper||(p.wrapper=document.createElement("div"),p.wrapper.classList.add(n+"-wrapper"),p.wrapper.classList.add(t),document.body.appendChild(p.wrapper)),"topLeft"==s.position||"topCenter"==s.position||"topRight"==s.position?p.wrapper.insertBefore(p.toastCapsule,p.wrapper.firstChild):p.wrapper.appendChild(p.toastCapsule)}isNaN(s.zindex)?console.warn("["+n+"] Invalid zIndex."):p.wrapper.style.zIndex=s.zindex}(),function(){s.overlay&&(null!==document.querySelector("."+n+"-overlay.fadeIn")?(p.overlay=document.querySelector("."+n+"-overlay"),p.overlay.setAttribute("data-iziToast-ref",p.overlay.getAttribute("data-iziToast-ref")+","+s.ref),isNaN(s.zindex)||null===s.zindex||(p.overlay.style.zIndex=s.zindex-1)):(p.overlay.classList.add(n+"-overlay"),p.overlay.classList.add("fadeIn"),p.overlay.style.background=s.overlayColor,p.overlay.setAttribute("data-iziToast-ref",s.ref),isNaN(s.zindex)||null===s.zindex||(p.overlay.style.zIndex=s.zindex-1),document.querySelector("body").appendChild(p.overlay)),s.overlayClose?(p.overlay.removeEventListener("click",{}),p.overlay.addEventListener("click",function(t){i.hide(s,p.toast,"overlay")})):p.overlay.removeEventListener("click",{}))}(),function(){if(s.animateInside){p.toast.classList.add(n+"-animateInside");var t=[200,100,300];"bounceInLeft"!=s.transitionIn&&"bounceInRight"!=s.transitionIn||(t=[400,200,400]),s.title.length>0&&setTimeout(function(){p.strong.classList.add("slideIn")},t[0]),s.message.length>0&&setTimeout(function(){p.p.classList.add("slideIn")},t[1]),(s.icon||s.iconUrl)&&setTimeout(function(){p.icon.classList.add("revealIn")},t[2]);var e=150;s.buttons.length>0&&p.buttons&&setTimeout(function(){m(p.buttons.childNodes,function(t,n){setTimeout(function(){t.classList.add("revealIn")},e),e+=150})},s.inputs.length>0?150:0),s.inputs.length>0&&p.inputs&&(e=150,m(p.inputs.childNodes,function(t,n){setTimeout(function(){t.classList.add("revealIn")},e),e+=150}))}}(),s.onOpening.apply(null,[s,p.toast]);try{var C=new CustomEvent(n+"-opening",{detail:s,bubbles:!0,cancelable:!0});document.dispatchEvent(C)}catch(w){console.warn(w)}setTimeout(function(){p.toast.classList.remove(n+"-opening"),p.toast.classList.add(n+"-opened");try{var t=new CustomEvent(n+"-opened",{detail:s,bubbles:!0,cancelable:!0});document.dispatchEvent(t)}catch(e){console.warn(e)}s.onOpened.apply(null,[s,p.toast])},1e3),s.drag&&(a?(p.toast.addEventListener("touchstart",function(t){b.startMoving(this,i,s,t)},!1),p.toast.addEventListener("touchend",function(t){b.stopMoving(this,t)},!1)):(p.toast.addEventListener("mousedown",function(t){t.preventDefault(),b.startMoving(this,i,s,t)},!1),p.toast.addEventListener("mouseup",function(t){t.preventDefault(),b.stopMoving(this,t)},!1))),s.closeOnEscape&&document.addEventListener("keyup",function(t){t=t||window.event,27==t.keyCode&&i.hide(s,p.toast,"esc")}),s.closeOnClick&&p.toast.addEventListener("click",function(t){i.hide(s,p.toast,"toast")}),i.toast=p.toast},e});
\ No newline at end of file
diff --git a/Volantis/js/thirdparty/valine.js b/Volantis/js/thirdparty/valine.js
new file mode 100644
index 0000000..841c790
--- /dev/null
+++ b/Volantis/js/thirdparty/valine.js
@@ -0,0 +1,5137 @@
+/*!
+ * Valine v1.4.14
+ * (c) 2017-2020 xCss
+ * Released under the GPL-2.0 License.
+ * Last Update: 2020/4/26 下午8:39:08
+ */
+!(function(e, t) {
+ typeof exports == 'object' && typeof module == 'object' ? module.exports = t() : typeof define == 'function' && define.amd ? define([], t) : typeof exports == 'object' ? exports.Valine = t() : e.Valine = t();
+})(this, function() {
+ return (function(e) {
+ function t(r) {
+ if (n[r]) { return n[r].exports; }
+ var o = n[r] = {
+ i : r,
+ l : !1,
+ exports: {}
+ };
+ return e[r].call(o.exports, o, o.exports, t),
+ o.l = !0,
+ o.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 = 63);
+ })([function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ }
+ t.__esModule = !0;
+ var o = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function(e) {
+ return typeof e;
+ }
+ : function(e) {
+ return e && typeof Symbol == 'function' && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e;
+ }
+ ; var i = n(38)
+ ; var a = r(i)
+ ; var s = n(28)
+ ; var l = r(s)
+ ; var c = n(27)
+ ; var u = r(c)
+ ; var d = n(42)
+ ; var p = r(d)
+ ; var f = document
+ ; var h = navigator
+ ; var v = /[&<>"'`\\]/g
+ ; var g = RegExp(v.source)
+ ; var m = /&(?:amp|lt|gt|quot|#39|#x60|#x5c);/g
+ ; var y = RegExp(m.source)
+ ; var b = {
+ '&' : '&',
+ '<' : '<',
+ '>' : '>',
+ '"' : '"',
+ '\'': ''',
+ '`' : '`',
+ '\\': '\'
+ }
+ ; var w = {};
+ for (var x in b) { w[b[x]] = x; }
+ var k = null;
+ Array.prototype.forEach || (Array.prototype.forEach = function(e, t) {
+ var n, r;
+ if (this == null) { throw new TypeError(' this is null or not defined'); }
+ var o = Object(this)
+ ; var i = o.length >>> 0;
+ if (typeof e != 'function') { throw new TypeError(e + ' is not a function'); }
+ for (arguments.length > 1 && (n = t),
+ r = 0; r < i;) {
+ var a;
+ r in o && (a = o[r],
+ e.call(n, a, r, o)),
+ r++;
+ }
+ }
+ ),
+ window.NodeList && !NodeList.prototype.forEach && (NodeList.prototype.forEach = Array.prototype.forEach),
+ String.prototype.trim || (String.prototype.trim = function() {
+ return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
+ }
+ ),
+ (0,
+ a.default)(l.default.fn, {
+ prepend: function(e) {
+ return e instanceof HTMLElement || (e = e[0]),
+ this.forEach(function(t) {
+ t.insertAdjacentElement('afterBegin', e);
+ }),
+ this;
+ },
+ append: function(e) {
+ return e instanceof HTMLElement || (e = e[0]),
+ this.forEach(function(t) {
+ t.insertAdjacentElement('beforeEnd', e);
+ }),
+ this;
+ },
+ remove: function() {
+ return this.forEach(function(e) {
+ try {
+ e.parentNode.removeChild(e);
+ } catch (e) {}
+ }),
+ this;
+ },
+ find: function(e) {
+ return (0,
+ l.default)(e, this);
+ },
+ show: function() {
+ return this.forEach(function(e) {
+ e.style.display = 'block';
+ }),
+ this;
+ },
+ hide: function() {
+ return this.forEach(function(e) {
+ e.style.display = 'none';
+ }),
+ this;
+ },
+ on: function(e, t, n) {
+ return l.default.fn.off(e, t, n),
+ this.forEach(function(r) {
+ e.split(' ').forEach(function(e) {
+ r.addEventListener ? r.addEventListener(e, t, n || !1) : r.attachEvent ? r.attachEvent('on' + e, t) : r['on' + e] = t;
+ });
+ }),
+ this;
+ },
+ off: function(e, t, n) {
+ return this.forEach(function(r) {
+ e.split(' ').forEach(function(e) {
+ r.removeEventListener ? r.removeEventListener(e, t, n || !1) : r.detachEvent ? r.detachEvent('on' + e, t) : r['on' + e] = null;
+ });
+ }),
+ this;
+ },
+ html: function(e) {
+ return void 0 !== e ? (this.forEach(function(t) {
+ t.innerHTML = e;
+ }),
+ this) : this[0].innerHTML;
+ },
+ text: function(e) {
+ return void 0 !== e ? (this.forEach(function(t) {
+ t.innerText = e;
+ }),
+ this) : this[0].innerText;
+ },
+ empty: function(e) {
+ return e = e || 0,
+ this.forEach(function(t) {
+ setTimeout(function(e) {
+ t.innerText = '';
+ }, e);
+ }),
+ this;
+ },
+ val: function(e) {
+ return void 0 !== e ? (this.forEach(function(t) {
+ t.value = e;
+ }),
+ this) : this[0].value || '';
+ },
+ attr: function() {
+ var e = arguments;
+ if (o(arguments[0]) == 'object') {
+ var t = arguments[0]
+ ; var n = this;
+ return Object.keys(t).forEach(function(e) {
+ n.forEach(function(n) {
+ n.setAttribute(e, t[e]);
+ });
+ }),
+ this;
+ }
+ return typeof arguments[0] == 'string' && arguments.length < 2 ? this[0].getAttribute(arguments[0]) || '' : (this.forEach(function(t) {
+ t.setAttribute(e[0], e[1]);
+ }),
+ this);
+ },
+ removeAttr: function(e) {
+ return this.forEach(function(t) {
+ var n; var r = 0; var o = e && e.match(/[^\x20\t\r\n\f\*\/\\]+/g);
+ if (o && t.nodeType === 1) {
+ for (; n = o[r++];) { t.removeAttribute(n); }
+ }
+ }),
+ this;
+ },
+ hasClass: function(e) {
+ return !!this[0] && new RegExp('(\\s|^)' + e + '(\\s|$)').test(this[0].getAttribute('class'));
+ },
+ addClass: function(e) {
+ return this.forEach(function(t) {
+ var n = (0,
+ l.default)(t)
+ ; var r = n.attr('class');
+ n.hasClass(e) || n.attr('class', r += ' ' + e);
+ }),
+ this;
+ },
+ removeClass: function(e) {
+ return this.forEach(function(t) {
+ var n = (0,
+ l.default)(t)
+ ; var r = n.attr('class');
+ if (n.hasClass(e)) {
+ var o = new RegExp('(\\s|^)' + e + '(\\s|$)');
+ n.attr('class', r.replace(o, ''));
+ }
+ }),
+ this;
+ }
+ }),
+ (0,
+ a.default)(l.default, {
+ extend: a.default,
+ noop : function() {},
+ navi : h,
+ ua : h.userAgent,
+ lang : h.language || h.languages[0],
+ detect: u.default,
+ store : p.default,
+ escape: function(e) {
+ return e && g.test(e) ? e.replace(v, function(e) {
+ return b[e];
+ }) : e;
+ },
+ unescape: function(e) {
+ return e && y.test(e) ? e.replace(m, function(e) {
+ return w[e];
+ }) : e;
+ },
+ dynamicLoadSource: function(e, t) {
+ if ((0,
+ l.default)('script[src="' + e + '"]').length) { t && t(); } else {
+ var n = f.createElement('script');
+ n.onload = n.onreadystatechange = function() {
+ var e = this;
+ e.onload = e.onreadystatechange = null,
+ t && t(),
+ (0,
+ l.default)(n).remove();
+ }
+ ,
+ n.async = !0,
+ n.setAttribute('referrerPolicy', 'no-referrer');
+ (0,
+ l.default)('head')[0].appendChild(n),
+ n.src = e;
+ }
+ },
+ sdkLoader: function(e, t, n) {
+ t in window && window[t] ? (k && clearTimeout(k),
+ n && n()) : l.default.dynamicLoadSource(e, function() {
+ k = setTimeout(l.default.sdkLoader(e, t, n), 100);
+ });
+ },
+ deleteInWin: function(e, t) {
+ var n = function(t) {
+ if (e in window) {
+ try {
+ delete window[e];
+ } catch (t) {
+ window[e] = null;
+ }
+ }
+ };
+ t === 0 ? n() : setTimeout(n, t || 500);
+ },
+ ajax: function(e) {
+ e = e || {},
+ e.type = (e.type || 'GET').toUpperCase(),
+ e.dataType = e.dataType || 'json',
+ e.async = e.async || !0,
+ e.timeout = e.timeout || 8e3;
+ var t = {}.toString.call(e.data) == '[object FormData]' ? e.data : (function(e) {
+ var t = [];
+ for (var n in e) { t.push(encodeURIComponent(n) + '=' + encodeURIComponent(e[n])); }
+ return t.push('t=' + Date.now()),
+ t.join('&');
+ })(e.data)
+ ; var n = null
+ ; var r = 'XMLHttpRequest' in window ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
+ r.onreadystatechange = function(t) {
+ if (r.readyState == 4) {
+ clearTimeout(n);
+ var o = r.status;
+ o >= 200 && o < 300 ? e.success && e.success(JSON.parse(r.responseText)) : e.fail && e.fail(o);
+ }
+ }
+ ,
+ e.type == 'GET' ? (r.open('GET', e.url + '?' + t, e.async),
+ r.send(null)) : e.type == 'POST' && (r.open('POST', e.url, e.async),
+ void 0 == e.contentType || e.contentType == null ? r.send(t) : (r.setRequestHeader('Content-Type', e.contentType),
+ r.send(JSON.stringify(e.data)))),
+ n = setTimeout(function(e) {
+ clearTimeout(n),
+ r.abort();
+ }, e.timeout);
+ }
+ }),
+ t.default = l.default;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = TypeError
+ ; var o = Object.getOwnPropertyDescriptor;
+ if (o) {
+ try {
+ o({}, '');
+ } catch (e) {
+ o = null;
+ }
+ }
+ var i, a; var s = function() {
+ throw new r();
+ }; var l = o ? (function() {
+ try {
+ return arguments.callee,
+ s;
+ } catch (e) {
+ try {
+ return o(arguments, 'callee').get;
+ } catch (e) {
+ return s;
+ }
+ }
+ })() : s; var c = n(47)(); var u = Object.getPrototypeOf || function(e) {
+ return e.__proto__;
+ }
+ ; var d = i ? u(i) : void 0; var p = a ? u(a) : void 0; var f = a ? a() : void 0; var h = typeof Uint8Array == 'undefined' ? void 0 : u(Uint8Array); var v = {
+ '%Array%' : Array,
+ '%ArrayBuffer%' : typeof ArrayBuffer == 'undefined' ? void 0 : ArrayBuffer,
+ '%ArrayBufferPrototype%' : typeof ArrayBuffer == 'undefined' ? void 0 : ArrayBuffer.prototype,
+ '%ArrayIteratorPrototype%' : c ? u([][Symbol.iterator]()) : void 0,
+ '%ArrayPrototype%' : Array.prototype,
+ '%ArrayProto_entries%' : Array.prototype.entries,
+ '%ArrayProto_forEach%' : Array.prototype.forEach,
+ '%ArrayProto_keys%' : Array.prototype.keys,
+ '%ArrayProto_values%' : Array.prototype.values,
+ '%AsyncFromSyncIteratorPrototype%': void 0,
+ '%AsyncFunction%' : void 0,
+ '%AsyncFunctionPrototype%' : void 0,
+ '%AsyncGenerator%' : a ? u(f) : void 0,
+ '%AsyncGeneratorFunction%' : p,
+ '%AsyncGeneratorPrototype%' : p ? p.prototype : void 0,
+ '%AsyncIteratorPrototype%' : f && c && Symbol.asyncIterator ? f[Symbol.asyncIterator]() : void 0,
+ '%Atomics%' : typeof Atomics == 'undefined' ? void 0 : Atomics,
+ '%Boolean%' : Boolean,
+ '%BooleanPrototype%' : Boolean.prototype,
+ '%DataView%' : typeof DataView == 'undefined' ? void 0 : DataView,
+ '%DataViewPrototype%' : typeof DataView == 'undefined' ? void 0 : DataView.prototype,
+ '%Date%' : Date,
+ '%DatePrototype%' : Date.prototype,
+ '%decodeURI%' : decodeURI,
+ '%decodeURIComponent%' : decodeURIComponent,
+ '%encodeURI%' : encodeURI,
+ '%encodeURIComponent%' : encodeURIComponent,
+ '%Error%' : Error,
+ '%ErrorPrototype%' : Error.prototype,
+ '%eval%' : eval,
+ '%EvalError%' : EvalError,
+ '%EvalErrorPrototype%' : EvalError.prototype,
+ '%Float32Array%' : typeof Float32Array == 'undefined' ? void 0 : Float32Array,
+ '%Float32ArrayPrototype%' : typeof Float32Array == 'undefined' ? void 0 : Float32Array.prototype,
+ '%Float64Array%' : typeof Float64Array == 'undefined' ? void 0 : Float64Array,
+ '%Float64ArrayPrototype%' : typeof Float64Array == 'undefined' ? void 0 : Float64Array.prototype,
+ '%Function%' : Function,
+ '%FunctionPrototype%' : Function.prototype,
+ '%Generator%' : i ? u(i()) : void 0,
+ '%GeneratorFunction%' : d,
+ '%GeneratorPrototype%' : d ? d.prototype : void 0,
+ '%Int8Array%' : typeof Int8Array == 'undefined' ? void 0 : Int8Array,
+ '%Int8ArrayPrototype%' : typeof Int8Array == 'undefined' ? void 0 : Int8Array.prototype,
+ '%Int16Array%' : typeof Int16Array == 'undefined' ? void 0 : Int16Array,
+ '%Int16ArrayPrototype%' : typeof Int16Array == 'undefined' ? void 0 : Int8Array.prototype,
+ '%Int32Array%' : typeof Int32Array == 'undefined' ? void 0 : Int32Array,
+ '%Int32ArrayPrototype%' : typeof Int32Array == 'undefined' ? void 0 : Int32Array.prototype,
+ '%isFinite%' : isFinite,
+ '%isNaN%' : isNaN,
+ '%IteratorPrototype%' : c ? u(u([][Symbol.iterator]())) : void 0,
+ '%JSON%' : typeof JSON == 'object' ? JSON : void 0,
+ '%JSONParse%' : typeof JSON == 'object' ? JSON.parse : void 0,
+ '%Map%' : typeof Map == 'undefined' ? void 0 : Map,
+ '%MapIteratorPrototype%' : typeof Map != 'undefined' && c ? u(new Map()[Symbol.iterator]()) : void 0,
+ '%MapPrototype%' : typeof Map == 'undefined' ? void 0 : Map.prototype,
+ '%Math%' : Math,
+ '%Number%' : Number,
+ '%NumberPrototype%' : Number.prototype,
+ '%Object%' : Object,
+ '%ObjectPrototype%' : Object.prototype,
+ '%ObjProto_toString%' : Object.prototype.toString,
+ '%ObjProto_valueOf%' : Object.prototype.valueOf,
+ '%parseFloat%' : parseFloat,
+ '%parseInt%' : parseInt,
+ '%Promise%' : typeof Promise == 'undefined' ? void 0 : Promise,
+ '%PromisePrototype%' : typeof Promise == 'undefined' ? void 0 : Promise.prototype,
+ '%PromiseProto_then%' : typeof Promise == 'undefined' ? void 0 : Promise.prototype.then,
+ '%Promise_all%' : typeof Promise == 'undefined' ? void 0 : Promise.all,
+ '%Promise_reject%' : typeof Promise == 'undefined' ? void 0 : Promise.reject,
+ '%Promise_resolve%' : typeof Promise == 'undefined' ? void 0 : Promise.resolve,
+ '%Proxy%' : typeof Proxy == 'undefined' ? void 0 : Proxy,
+ '%RangeError%' : RangeError,
+ '%RangeErrorPrototype%' : RangeError.prototype,
+ '%ReferenceError%' : ReferenceError,
+ '%ReferenceErrorPrototype%' : ReferenceError.prototype,
+ '%Reflect%' : typeof Reflect == 'undefined' ? void 0 : Reflect,
+ '%RegExp%' : RegExp,
+ '%RegExpPrototype%' : RegExp.prototype,
+ '%Set%' : typeof Set == 'undefined' ? void 0 : Set,
+ '%SetIteratorPrototype%' : typeof Set != 'undefined' && c ? u(new Set()[Symbol.iterator]()) : void 0,
+ '%SetPrototype%' : typeof Set == 'undefined' ? void 0 : Set.prototype,
+ '%SharedArrayBuffer%' : typeof SharedArrayBuffer == 'undefined' ? void 0 : SharedArrayBuffer,
+ '%SharedArrayBufferPrototype%' : typeof SharedArrayBuffer == 'undefined' ? void 0 : SharedArrayBuffer.prototype,
+ '%String%' : String,
+ '%StringIteratorPrototype%' : c ? u(''[Symbol.iterator]()) : void 0,
+ '%StringPrototype%' : String.prototype,
+ '%Symbol%' : c ? Symbol : void 0,
+ '%SymbolPrototype%' : c ? Symbol.prototype : void 0,
+ '%SyntaxError%' : SyntaxError,
+ '%SyntaxErrorPrototype%' : SyntaxError.prototype,
+ '%ThrowTypeError%' : l,
+ '%TypedArray%' : h,
+ '%TypedArrayPrototype%' : h ? h.prototype : void 0,
+ '%TypeError%' : r,
+ '%TypeErrorPrototype%' : r.prototype,
+ '%Uint8Array%' : typeof Uint8Array == 'undefined' ? void 0 : Uint8Array,
+ '%Uint8ArrayPrototype%' : typeof Uint8Array == 'undefined' ? void 0 : Uint8Array.prototype,
+ '%Uint8ClampedArray%' : typeof Uint8ClampedArray == 'undefined' ? void 0 : Uint8ClampedArray,
+ '%Uint8ClampedArrayPrototype%' : typeof Uint8ClampedArray == 'undefined' ? void 0 : Uint8ClampedArray.prototype,
+ '%Uint16Array%' : typeof Uint16Array == 'undefined' ? void 0 : Uint16Array,
+ '%Uint16ArrayPrototype%' : typeof Uint16Array == 'undefined' ? void 0 : Uint16Array.prototype,
+ '%Uint32Array%' : typeof Uint32Array == 'undefined' ? void 0 : Uint32Array,
+ '%Uint32ArrayPrototype%' : typeof Uint32Array == 'undefined' ? void 0 : Uint32Array.prototype,
+ '%URIError%' : URIError,
+ '%URIErrorPrototype%' : URIError.prototype,
+ '%WeakMap%' : typeof WeakMap == 'undefined' ? void 0 : WeakMap,
+ '%WeakMapPrototype%' : typeof WeakMap == 'undefined' ? void 0 : WeakMap.prototype,
+ '%WeakSet%' : typeof WeakSet == 'undefined' ? void 0 : WeakSet,
+ '%WeakSetPrototype%' : typeof WeakSet == 'undefined' ? void 0 : WeakSet.prototype
+ }; var g = n(4); var m = g.call(Function.call, String.prototype.replace); var y = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; var b = /\\(\\)?/g; var w = function(e) {
+ var t = [];
+ return m(e, y, function(e, n, r, o) {
+ t[t.length] = r ? m(o, b, '$1') : n || e;
+ }),
+ t;
+ }; var x = function(e, t) {
+ if (!(e in v)) { throw new SyntaxError('intrinsic ' + e + ' does not exist!'); }
+ if (void 0 === v[e] && !t) { throw new r('intrinsic ' + e + ' exists, but is not available. Please file an issue!'); }
+ return v[e];
+ };
+ e.exports = function(e, t) {
+ if (typeof e != 'string' || e.length === 0) { throw new TypeError('intrinsic name must be a non-empty string'); }
+ if (arguments.length > 1 && typeof t != 'boolean') { throw new TypeError('"allowMissing" argument must be a boolean'); }
+ for (var n = w(e), i = x('%' + (n.length > 0 ? n[0] : '') + '%', t), a = 1; a < n.length; a += 1) {
+ if (i != null) {
+ if (o && a + 1 >= n.length) {
+ var s = o(i, n[a]);
+ if (!(t || n[a] in i)) { throw new r('base intrinsic for ' + e + ' exists, but the property is not available.'); }
+ i = s ? s.get || s.value : i[n[a]];
+ } else { i = i[n[a]]; }
+ }
+ }
+ return i;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0;
+ t.DEFAULT_EMOJI_CDN = '//img.t.sinajs.cn/t4/appstyle/expression/ext/normal/',
+ t.DB_NAME = 'Comment',
+ t.defaultConfig = {
+ lang : 'zh-CN',
+ langMode : null,
+ appId : '',
+ appKey : '',
+ clazzName : 'Comment',
+ meta : ['nick', 'mail', 'link'],
+ path : location.pathname,
+ placeholder : 'Just Go Go',
+ pageSize : 10,
+ recordIP : !0,
+ serverURLs : '',
+ visitor : !1,
+ emojiCDN : '',
+ emojiMaps : void 0,
+ enableQQ : !1,
+ requiredFields: []
+ },
+ t.defaultMeta = ['nick', 'mail', 'link'],
+ t.QQCacheKey = '_v_Cache_Q',
+ t.MetaCacheKey = '_v_Cache_Meta',
+ t.RandomStr = (Date.now() + Math.round(1e3 * Math.random())).toString(32),
+ t.VERSION = '1.4.14';
+ },
+ function(e, t, n) {
+ function r(e, t) {
+ return new i(t).process(e);
+ }
+ var o = n(7)
+ ; var i = n(29);
+ t = e.exports = r,
+ t.FilterCSS = i;
+ for (var a in o) { t[a] = o[a]; }
+ typeof window != 'undefined' && (window.filterCSS = e.exports);
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(32);
+ e.exports = Function.prototype.bind || r;
+ },
+ function(e, t) {
+ e.exports = {
+ indexOf: function(e, t) {
+ var n, r;
+ if (Array.prototype.indexOf) { return e.indexOf(t); }
+ for (n = 0,
+ r = e.length; n < r; n++) {
+ if (e[n] === t) { return n; }
+ }
+ return -1;
+ },
+ forEach: function(e, t, n) {
+ var r, o;
+ if (Array.prototype.forEach) { return e.forEach(t, n); }
+ for (r = 0,
+ o = e.length; r < o; r++) { t.call(n, e[r], r, e); }
+ },
+ trim: function(e) {
+ return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, '');
+ },
+ spaceIndex: function(e) {
+ var t = /\s|\n|\t/
+ ; var n = t.exec(e);
+ return n ? n.index : -1;
+ }
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0;
+ var r = n(2)
+ ; var o = {
+ cdn : r.DEFAULT_EMOJI_CDN,
+ maps : n(53),
+ parse: function(e) {
+ return String(e).replace(new RegExp(':(' + Object.keys(o.maps).join('|') + '):', 'ig'), function(e, t) {
+ return o.maps[t] ? o.build(t) : e;
+ });
+ },
+ build: function(e) {
+ var t = /^(https?:)?\/\//i
+ ; var n = o.maps[e]
+ ; var r = t.test(n) ? n : o.cdn + n;
+ return t.test(r) ? ' ' : '';
+ }
+ };
+ t.default = o;
+ },
+ function(e, t) {
+ function n() {
+ var e = {};
+ return e['align-content'] = !1,
+ e['align-items'] = !1,
+ e['align-self'] = !1,
+ e['alignment-adjust'] = !1,
+ e['alignment-baseline'] = !1,
+ e.all = !1,
+ e['anchor-point'] = !1,
+ e.animation = !1,
+ e['animation-delay'] = !1,
+ e['animation-direction'] = !1,
+ e['animation-duration'] = !1,
+ e['animation-fill-mode'] = !1,
+ e['animation-iteration-count'] = !1,
+ e['animation-name'] = !1,
+ e['animation-play-state'] = !1,
+ e['animation-timing-function'] = !1,
+ e.azimuth = !1,
+ e['backface-visibility'] = !1,
+ e.background = !0,
+ e['background-attachment'] = !0,
+ e['background-clip'] = !0,
+ e['background-color'] = !0,
+ e['background-image'] = !0,
+ e['background-origin'] = !0,
+ e['background-position'] = !0,
+ e['background-repeat'] = !0,
+ e['background-size'] = !0,
+ e['baseline-shift'] = !1,
+ e.binding = !1,
+ e.bleed = !1,
+ e['bookmark-label'] = !1,
+ e['bookmark-level'] = !1,
+ e['bookmark-state'] = !1,
+ e.border = !0,
+ e['border-bottom'] = !0,
+ e['border-bottom-color'] = !0,
+ e['border-bottom-left-radius'] = !0,
+ e['border-bottom-right-radius'] = !0,
+ e['border-bottom-style'] = !0,
+ e['border-bottom-width'] = !0,
+ e['border-collapse'] = !0,
+ e['border-color'] = !0,
+ e['border-image'] = !0,
+ e['border-image-outset'] = !0,
+ e['border-image-repeat'] = !0,
+ e['border-image-slice'] = !0,
+ e['border-image-source'] = !0,
+ e['border-image-width'] = !0,
+ e['border-left'] = !0,
+ e['border-left-color'] = !0,
+ e['border-left-style'] = !0,
+ e['border-left-width'] = !0,
+ e['border-radius'] = !0,
+ e['border-right'] = !0,
+ e['border-right-color'] = !0,
+ e['border-right-style'] = !0,
+ e['border-right-width'] = !0,
+ e['border-spacing'] = !0,
+ e['border-style'] = !0,
+ e['border-top'] = !0,
+ e['border-top-color'] = !0,
+ e['border-top-left-radius'] = !0,
+ e['border-top-right-radius'] = !0,
+ e['border-top-style'] = !0,
+ e['border-top-width'] = !0,
+ e['border-width'] = !0,
+ e.bottom = !1,
+ e['box-decoration-break'] = !0,
+ e['box-shadow'] = !0,
+ e['box-sizing'] = !0,
+ e['box-snap'] = !0,
+ e['box-suppress'] = !0,
+ e['break-after'] = !0,
+ e['break-before'] = !0,
+ e['break-inside'] = !0,
+ e['caption-side'] = !1,
+ e.chains = !1,
+ e.clear = !0,
+ e.clip = !1,
+ e['clip-path'] = !1,
+ e['clip-rule'] = !1,
+ e.color = !0,
+ e['color-interpolation-filters'] = !0,
+ e['column-count'] = !1,
+ e['column-fill'] = !1,
+ e['column-gap'] = !1,
+ e['column-rule'] = !1,
+ e['column-rule-color'] = !1,
+ e['column-rule-style'] = !1,
+ e['column-rule-width'] = !1,
+ e['column-span'] = !1,
+ e['column-width'] = !1,
+ e.columns = !1,
+ e.contain = !1,
+ e.content = !1,
+ e['counter-increment'] = !1,
+ e['counter-reset'] = !1,
+ e['counter-set'] = !1,
+ e.crop = !1,
+ e.cue = !1,
+ e['cue-after'] = !1,
+ e['cue-before'] = !1,
+ e.cursor = !1,
+ e.direction = !1,
+ e.display = !0,
+ e['display-inside'] = !0,
+ e['display-list'] = !0,
+ e['display-outside'] = !0,
+ e['dominant-baseline'] = !1,
+ e.elevation = !1,
+ e['empty-cells'] = !1,
+ e.filter = !1,
+ e.flex = !1,
+ e['flex-basis'] = !1,
+ e['flex-direction'] = !1,
+ e['flex-flow'] = !1,
+ e['flex-grow'] = !1,
+ e['flex-shrink'] = !1,
+ e['flex-wrap'] = !1,
+ e.float = !1,
+ e['float-offset'] = !1,
+ e['flood-color'] = !1,
+ e['flood-opacity'] = !1,
+ e['flow-from'] = !1,
+ e['flow-into'] = !1,
+ e.font = !0,
+ e['font-family'] = !0,
+ e['font-feature-settings'] = !0,
+ e['font-kerning'] = !0,
+ e['font-language-override'] = !0,
+ e['font-size'] = !0,
+ e['font-size-adjust'] = !0,
+ e['font-stretch'] = !0,
+ e['font-style'] = !0,
+ e['font-synthesis'] = !0,
+ e['font-variant'] = !0,
+ e['font-variant-alternates'] = !0,
+ e['font-variant-caps'] = !0,
+ e['font-variant-east-asian'] = !0,
+ e['font-variant-ligatures'] = !0,
+ e['font-variant-numeric'] = !0,
+ e['font-variant-position'] = !0,
+ e['font-weight'] = !0,
+ e.grid = !1,
+ e['grid-area'] = !1,
+ e['grid-auto-columns'] = !1,
+ e['grid-auto-flow'] = !1,
+ e['grid-auto-rows'] = !1,
+ e['grid-column'] = !1,
+ e['grid-column-end'] = !1,
+ e['grid-column-start'] = !1,
+ e['grid-row'] = !1,
+ e['grid-row-end'] = !1,
+ e['grid-row-start'] = !1,
+ e['grid-template'] = !1,
+ e['grid-template-areas'] = !1,
+ e['grid-template-columns'] = !1,
+ e['grid-template-rows'] = !1,
+ e['hanging-punctuation'] = !1,
+ e.height = !0,
+ e.hyphens = !1,
+ e.icon = !1,
+ e['image-orientation'] = !1,
+ e['image-resolution'] = !1,
+ e['ime-mode'] = !1,
+ e['initial-letters'] = !1,
+ e['inline-box-align'] = !1,
+ e['justify-content'] = !1,
+ e['justify-items'] = !1,
+ e['justify-self'] = !1,
+ e.left = !1,
+ e['letter-spacing'] = !0,
+ e['lighting-color'] = !0,
+ e['line-box-contain'] = !1,
+ e['line-break'] = !1,
+ e['line-grid'] = !1,
+ e['line-height'] = !1,
+ e['line-snap'] = !1,
+ e['line-stacking'] = !1,
+ e['line-stacking-ruby'] = !1,
+ e['line-stacking-shift'] = !1,
+ e['line-stacking-strategy'] = !1,
+ e['list-style'] = !0,
+ e['list-style-image'] = !0,
+ e['list-style-position'] = !0,
+ e['list-style-type'] = !0,
+ e.margin = !0,
+ e['margin-bottom'] = !0,
+ e['margin-left'] = !0,
+ e['margin-right'] = !0,
+ e['margin-top'] = !0,
+ e['marker-offset'] = !1,
+ e['marker-side'] = !1,
+ e.marks = !1,
+ e.mask = !1,
+ e['mask-box'] = !1,
+ e['mask-box-outset'] = !1,
+ e['mask-box-repeat'] = !1,
+ e['mask-box-slice'] = !1,
+ e['mask-box-source'] = !1,
+ e['mask-box-width'] = !1,
+ e['mask-clip'] = !1,
+ e['mask-image'] = !1,
+ e['mask-origin'] = !1,
+ e['mask-position'] = !1,
+ e['mask-repeat'] = !1,
+ e['mask-size'] = !1,
+ e['mask-source-type'] = !1,
+ e['mask-type'] = !1,
+ e['max-height'] = !0,
+ e['max-lines'] = !1,
+ e['max-width'] = !0,
+ e['min-height'] = !0,
+ e['min-width'] = !0,
+ e['move-to'] = !1,
+ e['nav-down'] = !1,
+ e['nav-index'] = !1,
+ e['nav-left'] = !1,
+ e['nav-right'] = !1,
+ e['nav-up'] = !1,
+ e['object-fit'] = !1,
+ e['object-position'] = !1,
+ e.opacity = !1,
+ e.order = !1,
+ e.orphans = !1,
+ e.outline = !1,
+ e['outline-color'] = !1,
+ e['outline-offset'] = !1,
+ e['outline-style'] = !1,
+ e['outline-width'] = !1,
+ e.overflow = !1,
+ e['overflow-wrap'] = !1,
+ e['overflow-x'] = !1,
+ e['overflow-y'] = !1,
+ e.padding = !0,
+ e['padding-bottom'] = !0,
+ e['padding-left'] = !0,
+ e['padding-right'] = !0,
+ e['padding-top'] = !0,
+ e.page = !1,
+ e['page-break-after'] = !1,
+ e['page-break-before'] = !1,
+ e['page-break-inside'] = !1,
+ e['page-policy'] = !1,
+ e.pause = !1,
+ e['pause-after'] = !1,
+ e['pause-before'] = !1,
+ e.perspective = !1,
+ e['perspective-origin'] = !1,
+ e.pitch = !1,
+ e['pitch-range'] = !1,
+ e['play-during'] = !1,
+ e.position = !1,
+ e['presentation-level'] = !1,
+ e.quotes = !1,
+ e['region-fragment'] = !1,
+ e.resize = !1,
+ e.rest = !1,
+ e['rest-after'] = !1,
+ e['rest-before'] = !1,
+ e.richness = !1,
+ e.right = !1,
+ e.rotation = !1,
+ e['rotation-point'] = !1,
+ e['ruby-align'] = !1,
+ e['ruby-merge'] = !1,
+ e['ruby-position'] = !1,
+ e['shape-image-threshold'] = !1,
+ e['shape-outside'] = !1,
+ e['shape-margin'] = !1,
+ e.size = !1,
+ e.speak = !1,
+ e['speak-as'] = !1,
+ e['speak-header'] = !1,
+ e['speak-numeral'] = !1,
+ e['speak-punctuation'] = !1,
+ e['speech-rate'] = !1,
+ e.stress = !1,
+ e['string-set'] = !1,
+ e['tab-size'] = !1,
+ e['table-layout'] = !1,
+ e['text-align'] = !0,
+ e['text-align-last'] = !0,
+ e['text-combine-upright'] = !0,
+ e['text-decoration'] = !0,
+ e['text-decoration-color'] = !0,
+ e['text-decoration-line'] = !0,
+ e['text-decoration-skip'] = !0,
+ e['text-decoration-style'] = !0,
+ e['text-emphasis'] = !0,
+ e['text-emphasis-color'] = !0,
+ e['text-emphasis-position'] = !0,
+ e['text-emphasis-style'] = !0,
+ e['text-height'] = !0,
+ e['text-indent'] = !0,
+ e['text-justify'] = !0,
+ e['text-orientation'] = !0,
+ e['text-overflow'] = !0,
+ e['text-shadow'] = !0,
+ e['text-space-collapse'] = !0,
+ e['text-transform'] = !0,
+ e['text-underline-position'] = !0,
+ e['text-wrap'] = !0,
+ e.top = !1,
+ e.transform = !1,
+ e['transform-origin'] = !1,
+ e['transform-style'] = !1,
+ e.transition = !1,
+ e['transition-delay'] = !1,
+ e['transition-duration'] = !1,
+ e['transition-property'] = !1,
+ e['transition-timing-function'] = !1,
+ e['unicode-bidi'] = !1,
+ e['vertical-align'] = !1,
+ e.visibility = !1,
+ e['voice-balance'] = !1,
+ e['voice-duration'] = !1,
+ e['voice-family'] = !1,
+ e['voice-pitch'] = !1,
+ e['voice-range'] = !1,
+ e['voice-rate'] = !1,
+ e['voice-stress'] = !1,
+ e['voice-volume'] = !1,
+ e.volume = !1,
+ e['white-space'] = !1,
+ e.widows = !1,
+ e.width = !0,
+ e['will-change'] = !1,
+ e['word-break'] = !0,
+ e['word-spacing'] = !0,
+ e['word-wrap'] = !0,
+ e['wrap-flow'] = !1,
+ e['wrap-through'] = !1,
+ e['writing-mode'] = !1,
+ e['z-index'] = !1,
+ e;
+ }
+ function r(e, t, n) {}
+ function o(e, t, n) {}
+ function i(e, t) {
+ return a.test(t) ? '' : t;
+ }
+ var a = /javascript\s*\:/gim;
+ t.whiteList = n(),
+ t.getDefaultWhiteList = n,
+ t.onAttr = r,
+ t.onIgnoreAttr = o,
+ t.safeAttrValue = i;
+ },
+ function(e, t) {
+ e.exports = {
+ indexOf: function(e, t) {
+ var n, r;
+ if (Array.prototype.indexOf) { return e.indexOf(t); }
+ for (n = 0,
+ r = e.length; n < r; n++) {
+ if (e[n] === t) { return n; }
+ }
+ return -1;
+ },
+ forEach: function(e, t, n) {
+ var r, o;
+ if (Array.prototype.forEach) { return e.forEach(t, n); }
+ for (r = 0,
+ o = e.length; r < o; r++) { t.call(n, e[r], r, e); }
+ },
+ trim: function(e) {
+ return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, '');
+ },
+ trimRight: function(e) {
+ return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, '');
+ }
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(40)
+ ; var o = typeof Symbol == 'function' && typeof Symbol('foo') == 'symbol'
+ ; var i = Object.prototype.toString
+ ; var a = Array.prototype.concat
+ ; var s = Object.defineProperty
+ ; var l = function(e) {
+ return typeof e == 'function' && i.call(e) === '[object Function]';
+ }
+ ; var c = s && (function() {
+ var e = {};
+ try {
+ s(e, 'x', {
+ enumerable: !1,
+ value : e
+ });
+ for (var t in e) { return !1; }
+ return e.x === e;
+ } catch (e) {
+ return !1;
+ }
+ })()
+ ; var u = function(e, t, n, r) {
+ (!(t in e) || l(r) && r()) && (c ? s(e, t, {
+ configurable: !0,
+ enumerable : !1,
+ value : n,
+ writable : !0
+ }) : e[t] = n);
+ }
+ ; var d = function(e, t) {
+ var n = arguments.length > 2 ? arguments[2] : {}
+ ; var i = r(t);
+ o && (i = a.call(i, Object.getOwnPropertySymbols(t)));
+ for (var s = 0; s < i.length; s += 1) { u(e, i[s], t[i[s]], n[i[s]]); }
+ };
+ d.supportsDescriptors = !!c,
+ e.exports = d;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = Object.prototype.toString;
+ e.exports = function(e) {
+ var t = r.call(e)
+ ; var n = t === '[object Arguments]';
+ return n || (n = t !== '[object Array]' && e !== null && typeof e == 'object' && typeof e.length == 'number' && e.length >= 0 && r.call(e.callee) === '[object Function]'),
+ n;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(45)
+ ; var o = n(44)
+ ; var i = n(46)
+ ; var a = i('String.prototype.replace')
+ ; var s = /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/
+ ; var l = /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
+ e.exports = function() {
+ var e = o(r(this));
+ return a(a(e, s, ''), l, '');
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(4)
+ ; var o = n(1)
+ ; var i = o('%Function%')
+ ; var a = i.apply
+ ; var s = i.call;
+ e.exports = function() {
+ return r.apply(s, arguments);
+ }
+ ,
+ e.exports.apply = function() {
+ return r.apply(a, arguments);
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(11)
+ ; var o = '';
+ e.exports = function() {
+ return String.prototype.trim && o.trim() === o ? String.prototype.trim : r;
+ };
+ },
+ function(e, t) {
+ var n;
+ n = (function() {
+ return this;
+ })();
+ try {
+ n = n || Function('return this')() || (0,
+ eval)('this');
+ } catch (e) {
+ typeof window == 'object' && (n = window);
+ }
+ e.exports = n;
+ },
+ function(e, t, n) {
+ function r() {
+ return {
+ a : ['target', 'href', 'title'],
+ abbr : ['title'],
+ address : [],
+ area : ['shape', 'coords', 'href', 'alt'],
+ article : [],
+ aside : [],
+ audio : ['autoplay', 'controls', 'loop', 'preload', 'src'],
+ b : [],
+ bdi : ['dir'],
+ bdo : ['dir'],
+ big : [],
+ blockquote: ['cite'],
+ br : [],
+ caption : [],
+ center : [],
+ cite : [],
+ code : [],
+ col : ['align', 'valign', 'span', 'width'],
+ colgroup : ['align', 'valign', 'span', 'width'],
+ dd : [],
+ del : ['datetime'],
+ details : ['open'],
+ div : [],
+ dl : [],
+ dt : [],
+ em : [],
+ font : ['color', 'size', 'face'],
+ footer : [],
+ h1 : [],
+ h2 : [],
+ h3 : [],
+ h4 : [],
+ h5 : [],
+ h6 : [],
+ header : [],
+ hr : [],
+ i : [],
+ img : ['src', 'alt', 'title', 'width', 'height'],
+ ins : ['datetime'],
+ li : [],
+ mark : [],
+ nav : [],
+ ol : [],
+ p : [],
+ pre : [],
+ s : [],
+ section : [],
+ small : [],
+ span : [],
+ sub : [],
+ sup : [],
+ strong : [],
+ table : ['width', 'border', 'align', 'valign'],
+ tbody : ['align', 'valign'],
+ td : ['width', 'rowspan', 'colspan', 'align', 'valign'],
+ tfoot : ['align', 'valign'],
+ th : ['width', 'rowspan', 'colspan', 'align', 'valign'],
+ thead : ['align', 'valign'],
+ tr : ['rowspan', 'align', 'valign'],
+ tt : [],
+ u : [],
+ ul : [],
+ video : ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width']
+ };
+ }
+ function o(e, t, n) {}
+ function i(e, t, n) {}
+ function a(e, t, n) {}
+ function s(e, t, n) {}
+ function l(e) {
+ return e.replace(S, '<').replace(O, '>');
+ }
+ function c(e, t, n, r) {
+ if (n = v(n),
+ t === 'href' || t === 'src') {
+ if ((n = _.trim(n)) === '#') { return '#'; }
+ if (n.substr(0, 7) !== 'http://' && n.substr(0, 8) !== 'https://' && n.substr(0, 7) !== 'mailto:' && n.substr(0, 4) !== 'tel:' && n[0] !== '#' && n[0] !== '/') { return ''; }
+ } else if (t === 'background') {
+ if (I.lastIndex = 0,
+ I.test(n)) { return ''; }
+ } else if (t === 'style') {
+ if (P.lastIndex = 0,
+ P.test(n)) { return ''; }
+ if (M.lastIndex = 0,
+ M.test(n) && (I.lastIndex = 0,
+ I.test(n))) { return ''; }
+ !1 !== r && (r = r || A,
+ n = r.process(n));
+ }
+ return n = g(n);
+ }
+ function u(e) {
+ return e.replace($, '"');
+ }
+ function d(e) {
+ return e.replace(E, '"');
+ }
+ function p(e) {
+ return e.replace(j, function(e, t) {
+ return t[0] === 'x' || t[0] === 'X' ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10));
+ });
+ }
+ function f(e) {
+ return e.replace(T, ':').replace(C, ' ');
+ }
+ function h(e) {
+ for (var t = '', n = 0, r = e.length; n < r; n++) { t += e.charCodeAt(n) < 32 ? ' ' : e.charAt(n); }
+ return _.trim(t);
+ }
+ function v(e) {
+ return e = d(e),
+ e = p(e),
+ e = f(e),
+ e = h(e);
+ }
+ function g(e) {
+ return e = u(e),
+ e = l(e);
+ }
+ function m() {
+ return '';
+ }
+ function y(e, t) {
+ function n(t) {
+ return !!r || _.indexOf(e, t) !== -1;
+ }
+ typeof t != 'function' && (t = function() {}
+ );
+ var r = !Array.isArray(e)
+ ; var o = []
+ ; var i = !1;
+ return {
+ onIgnoreTag: function(e, r, a) {
+ if (n(e)) {
+ if (a.isClosing) {
+ var s = '[/removed]'
+ ; var l = a.position + s.length;
+ return o.push([!1 !== i ? i : a.position, l]),
+ i = !1,
+ s;
+ }
+ return i || (i = a.position),
+ '[removed]';
+ }
+ return t(e, r, a);
+ },
+ remove: function(e) {
+ var t = ''
+ ; var n = 0;
+ return _.forEach(o, function(r) {
+ t += e.slice(n, r[0]),
+ n = r[1];
+ }),
+ t += e.slice(n);
+ }
+ };
+ }
+ function b(e) {
+ return e.replace(R, '');
+ }
+ function w(e) {
+ var t = e.split('');
+ return t = t.filter(function(e) {
+ var t = e.charCodeAt(0);
+ return t !== 127 && (!(t <= 31) || (t === 10 || t === 13));
+ }),
+ t.join('');
+ }
+ var x = n(3).FilterCSS
+ ; var k = n(3).getDefaultWhiteList
+ ; var _ = n(5)
+ ; var A = new x()
+ ; var S = //g
+ ; var $ = /"/g
+ ; var E = /"/g
+ ; var j = /([a-zA-Z0-9]*);?/gim
+ ; var T = /:?/gim
+ ; var C = /&newline;?/gim
+ ; var I = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi
+ ; var P = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi
+ ; var M = /u\s*r\s*l\s*\(.*/gi
+ ; var R = //g;
+ t.whiteList = r(),
+ t.getDefaultWhiteList = r,
+ t.onTag = o,
+ t.onIgnoreTag = i,
+ t.onTagAttr = a,
+ t.onIgnoreTagAttr = s,
+ t.safeAttrValue = c,
+ t.escapeHtml = l,
+ t.escapeQuote = u,
+ t.unescapeQuote = d,
+ t.escapeHtmlEntities = p,
+ t.escapeDangerHtml5Entities = f,
+ t.clearNonPrintableCharacter = h,
+ t.friendlyAttrValue = v,
+ t.escapeAttrValue = g,
+ t.onIgnoreTagStripAll = m,
+ t.StripTagBody = y,
+ t.stripCommentTag = b,
+ t.stripBlankChar = w,
+ t.cssFilter = A,
+ t.getDefaultCSSWhiteList = k;
+ },
+ function(e, t, n) {
+ function r(e) {
+ var t = d.spaceIndex(e);
+ if (t === -1) { var n = e.slice(1, -1); } else { var n = e.slice(1, t + 1); }
+ return n = d.trim(n).toLowerCase(),
+ n.slice(0, 1) === '/' && (n = n.slice(1)),
+ n.slice(-1) === '/' && (n = n.slice(0, -1)),
+ n;
+ }
+ function o(e) {
+ return e.slice(0, 2) === '';
+ }
+ function i(e, t, n) {
+ 'user strict';
+ var i = ''
+ ; var a = 0
+ ; var s = !1
+ ; var l = !1
+ ; var c = 0
+ ; var u = e.length
+ ; var d = ''
+ ; var p = '';
+ for (c = 0; c < u; c++) {
+ var f = e.charAt(c);
+ if (!1 === s) {
+ if (f === '<') {
+ s = c;
+ continue;
+ }
+ } else if (!1 === l) {
+ if (f === '<') {
+ i += n(e.slice(a, c)),
+ s = c,
+ a = c;
+ continue;
+ }
+ if (f === '>') {
+ i += n(e.slice(a, s)),
+ p = e.slice(s, c + 1),
+ d = r(p),
+ i += t(s, i.length, d, p, o(p)),
+ a = c + 1,
+ s = !1;
+ continue;
+ }
+ if ((f === '"' || f === '\'') && e.charAt(c - 1) === '=') {
+ l = f;
+ continue;
+ }
+ } else if (f === l) {
+ l = !1;
+ continue;
+ }
+ }
+ return a < e.length && (i += n(e.substr(a))),
+ i;
+ }
+ function a(e, t) {
+ 'user strict';
+ function n(e, n) {
+ if (e = d.trim(e),
+ e = e.replace(p, '').toLowerCase(),
+ !(e.length < 1)) {
+ var r = t(e, n || '');
+ r && o.push(r);
+ }
+ }
+ for (var r = 0, o = [], i = !1, a = e.length, c = 0; c < a; c++) {
+ var f, h; var v = e.charAt(c);
+ if (!1 !== i || v !== '=') {
+ if (!1 === i || c !== r || v !== '"' && v !== '\'' || e.charAt(c - 1) !== '=') {
+ if (/\s|\n|\t/.test(v)) {
+ if (e = e.replace(/\s|\n|\t/g, ' '),
+ !1 === i) {
+ if ((h = s(e, c)) === -1) {
+ f = d.trim(e.slice(r, c)),
+ n(f),
+ i = !1,
+ r = c + 1;
+ continue;
+ }
+ c = h - 1;
+ continue;
+ }
+ if ((h = l(e, c - 1)) === -1) {
+ f = d.trim(e.slice(r, c)),
+ f = u(f),
+ n(i, f),
+ i = !1,
+ r = c + 1;
+ continue;
+ }
+ } else
+ ;
+ } else {
+ if ((h = e.indexOf(v, c + 1)) === -1) { break; }
+ f = d.trim(e.slice(r + 1, h)),
+ n(i, f),
+ i = !1,
+ c = h,
+ r = c + 1;
+ }
+ } else {
+ i = e.slice(r, c),
+ r = c + 1;
+ }
+ }
+ return r < e.length && (!1 === i ? n(e.slice(r)) : n(i, u(d.trim(e.slice(r))))),
+ d.trim(o.join(' '));
+ }
+ function s(e, t) {
+ for (; t < e.length; t++) {
+ var n = e[t];
+ if (n !== ' ') { return n === '=' ? t : -1; }
+ }
+ }
+ function l(e, t) {
+ for (; t > 0; t--) {
+ var n = e[t];
+ if (n !== ' ') { return n === '=' ? t : -1; }
+ }
+ }
+ function c(e) {
+ return e[0] === '"' && e[e.length - 1] === '"' || e[0] === '\'' && e[e.length - 1] === '\'';
+ }
+ function u(e) {
+ return c(e) ? e.substr(1, e.length - 2) : e;
+ }
+ var d = n(5)
+ ; var p = /[^a-zA-Z0-9_:\.\-]/gim;
+ t.parseTag = i,
+ t.parseAttr = a;
+ },
+ function(e, t, n) {
+ var r, o, i;
+
+ /*!
+ autosize 4.0.2
+ license: MIT
+ http://www.jacklmoore.com/autosize
+*/
+ !(function(n, a) {
+ o = [e, t],
+ r = a,
+ void 0 !== (i = typeof r == 'function' ? r.apply(t, o) : r) && (e.exports = i);
+ })(0, function(e, t) {
+ 'use strict';
+ function n(e) {
+ function t(t) {
+ var n = e.style.width;
+ e.style.width = '0px',
+ e.offsetWidth,
+ e.style.width = n,
+ e.style.overflowY = t;
+ }
+ function n(e) {
+ for (var t = []; e && e.parentNode && e.parentNode instanceof Element;) {
+ e.parentNode.scrollTop && t.push({
+ node : e.parentNode,
+ scrollTop: e.parentNode.scrollTop
+ }),
+ e = e.parentNode;
+ }
+ return t;
+ }
+ function r() {
+ if (e.scrollHeight !== 0) {
+ var t = n(e)
+ ; var r = document.documentElement && document.documentElement.scrollTop;
+ e.style.height = '',
+ e.style.height = e.scrollHeight + s + 'px',
+ l = e.clientWidth,
+ t.forEach(function(e) {
+ e.node.scrollTop = e.scrollTop;
+ }),
+ r && (document.documentElement.scrollTop = r);
+ }
+ }
+ function o() {
+ r();
+ var n = Math.round(parseFloat(e.style.height))
+ ; var o = window.getComputedStyle(e, null)
+ ; var i = o.boxSizing === 'content-box' ? Math.round(parseFloat(o.height)) : e.offsetHeight;
+ if (i < n ? o.overflowY === 'hidden' && (t('scroll'),
+ r(),
+ i = o.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(e, null).height)) : e.offsetHeight) : o.overflowY !== 'hidden' && (t('hidden'),
+ r(),
+ i = o.boxSizing === 'content-box' ? Math.round(parseFloat(window.getComputedStyle(e, null).height)) : e.offsetHeight),
+ c !== i) {
+ c = i;
+ var s = a('autosize:resized');
+ try {
+ e.dispatchEvent(s);
+ } catch (e) {}
+ }
+ }
+ if (e && e.nodeName && e.nodeName === 'TEXTAREA' && !i.has(e)) {
+ var s = null
+ ; var l = null
+ ; var c = null
+ ; var u = function() {
+ e.clientWidth !== l && o();
+ }
+ ; var d = function(t) {
+ window.removeEventListener('resize', u, !1),
+ e.removeEventListener('input', o, !1),
+ e.removeEventListener('keyup', o, !1),
+ e.removeEventListener('autosize:destroy', d, !1),
+ e.removeEventListener('autosize:update', o, !1),
+ Object.keys(t).forEach(function(n) {
+ e.style[n] = t[n];
+ }),
+ i.delete(e);
+ }
+ .bind(e, {
+ height : e.style.height,
+ resize : e.style.resize,
+ overflowY: e.style.overflowY,
+ overflowX: e.style.overflowX,
+ wordWrap : e.style.wordWrap
+ });
+ e.addEventListener('autosize:destroy', d, !1),
+ 'onpropertychange' in e && 'oninput' in e && e.addEventListener('keyup', o, !1),
+ window.addEventListener('resize', u, !1),
+ e.addEventListener('input', o, !1),
+ e.addEventListener('autosize:update', o, !1),
+ e.style.overflowX = 'hidden',
+ e.style.wordWrap = 'break-word',
+ i.set(e, {
+ destroy: d,
+ update : o
+ }),
+ (function() {
+ var t = window.getComputedStyle(e, null);
+ t.resize === 'vertical' ? e.style.resize = 'none' : t.resize === 'both' && (e.style.resize = 'horizontal'),
+ s = t.boxSizing === 'content-box' ? -(parseFloat(t.paddingTop) + parseFloat(t.paddingBottom)) : parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth),
+ isNaN(s) && (s = 0),
+ o();
+ })();
+ }
+ }
+ function r(e) {
+ var t = i.get(e);
+ t && t.destroy();
+ }
+ function o(e) {
+ var t = i.get(e);
+ t && t.update();
+ }
+ var i = typeof Map == 'function' ? new Map() : (function() {
+ var e = []
+ ; var t = [];
+ return {
+ has: function(t) {
+ return e.indexOf(t) > -1;
+ },
+ get: function(n) {
+ return t[e.indexOf(n)];
+ },
+ set: function(n, r) {
+ e.indexOf(n) === -1 && (e.push(n),
+ t.push(r));
+ },
+ delete: function(n) {
+ var r = e.indexOf(n);
+ r > -1 && (e.splice(r, 1),
+ t.splice(r, 1));
+ }
+ };
+ })()
+ ; var a = function(e) {
+ return new Event(e, {
+ bubbles: !0
+ });
+ };
+ try {
+ new Event('test');
+ } catch (e) {
+ a = function(e) {
+ var t = document.createEvent('Event');
+ return t.initEvent(e, !0, !1),
+ t;
+ };
+ }
+ var s = null;
+ typeof window == 'undefined' || typeof window.getComputedStyle != 'function' ? (s = function(e) {
+ return e;
+ }
+ ,
+ s.destroy = function(e) {
+ return e;
+ }
+ ,
+ s.update = function(e) {
+ return e;
+ }
+ ) : (s = function(e, t) {
+ return e && Array.prototype.forEach.call(e.length ? e : [e], function(e) {
+ return n(e);
+ }),
+ e;
+ }
+ ,
+ s.destroy = function(e) {
+ return e && Array.prototype.forEach.call(e.length ? e : [e], r),
+ e;
+ }
+ ,
+ s.update = function(e) {
+ return e && Array.prototype.forEach.call(e.length ? e : [e], o),
+ e;
+ }
+ ),
+ t.default = s,
+ e.exports = t.default;
+ });
+ },
+ function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ }
+ function o(e) {
+ return !!e && this.init(e),
+ this;
+ }
+ function i(e) {
+ return new o(e);
+ }
+ var a = n(26)
+ ; var s = r(a)
+ ; var l = n(17)
+ ; var c = r(l)
+ ; var u = n(20)
+ ; var d = r(u)
+ ; var p = n(6)
+ ; var f = r(p)
+ ; var h = n(2)
+ ; var v = n(24)
+ ; var g = r(v)
+ ; var m = n(0)
+ ; var y = r(m)
+ ; var b = n(22)
+ ; var w = r(b)
+ ; var x = n(19)
+ ; var k = r(x)
+ ; var _ = n(23)
+ ; var A = n(25)
+ ; var S = r(A)
+ ; var O = n(21)
+ ; var $ = r(O)
+ ; var E = {
+ comment : '',
+ nick : '',
+ mail : '',
+ link : '',
+ ua : y.default.ua,
+ url : '',
+ QQAvatar: ''
+ }
+ ; var j = ''
+ ; var T = {
+ cdn : 'https://gravatar.loli.net/avatar/',
+ ds : ['mp', 'identicon', 'monsterid', 'wavatar', 'robohash', 'retro', ''],
+ params: '',
+ hide : !1
+ };
+ o.prototype.init = function(e) {
+ if (typeof document == 'undefined') { throw new Error('Sorry, Valine does not support Server-side rendering.'); }
+ var t = this;
+ return e && (e = y.default.extend(h.defaultConfig, e),
+ t.i18n = (0,
+ d.default)(e.lang || y.default.lang, e.langMode),
+ t.config = e,
+ f.default.maps = !!e.emojiMaps && e.emojiMaps || f.default.maps,
+ f.default.cdn = !!e.emojiCDN && e.emojiCDN || f.default.cdn,
+ t._init()),
+ t;
+ }
+ ,
+ o.prototype._init = function() {
+ var e = this;
+ try {
+ var t = e.config
+ ; var n = t.avatar
+ ; var r = t.avatarForce
+ ; var o = t.avatar_cdn
+ ; var i = t.visitor
+ ; var a = t.path
+ ; var s = void 0 === a ? location.pathname : a
+ ; var l = t.pageSize
+ ; var c = t.recordIP;
+ e.config.path = s.replace(/index\.html?$/, '');
+ var u = T.ds
+ ; var d = r ? '&q=' + h.RandomStr : '';
+ T.params = '?d=' + (u.indexOf(n) > -1 ? n : 'mp') + '&v=' + h.VERSION + d,
+ T.hide = n === 'hide',
+ T.cdn = /^https?\:\/\//.test(o) ? o : T.cdn,
+ e.config.pageSize = isNaN(l) ? 10 : l < 1 ? 10 : l,
+ c && (0,
+ _.recordIPFn)(function(e) {
+ return E.ip = e;
+ });
+ var p = e.config.el || null
+ ; var f = (0,
+ y.default)(p);
+ if (p = p instanceof HTMLElement ? p : f[f.length - 1] || null) {
+ e.$el = (0,
+ y.default)(p),
+ e.$el.addClass('v').attr('data-class', 'v'),
+ T.hide && e.$el.addClass('hide-avatar'),
+ e.config.meta = (e.config.guest_info || e.config.meta || h.defaultMeta).filter(function(e) {
+ return h.defaultMeta.indexOf(e) > -1;
+ }),
+ e.config.requiredFields = e.config.requiredFields.filter(function(e) {
+ return h.defaultMeta.indexOf(e) > -1;
+ });
+ var v = (e.config.meta.length == 0 ? h.defaultMeta : e.config.meta).map(function(t) {
+ var n = t == 'mail' ? 'email' : 'text';
+ return h.defaultMeta.indexOf(t) > -1 ? ' ' : '';
+ })
+ ; var g = '
' + e.i18n.t('submit') + '
0 ' + e.i18n.t('comments') + '
' + e.i18n.t('more') + '
Powered By
Valine v' + h.VERSION + '
';
+ e.$el.html(g),
+ e.$el.find('.cancel-reply').on('click', function(t) {
+ e.reset();
+ });
+ var m = e.$el.find('.vempty');
+ e.$nodata = {
+ show: function(t) {
+ return m.html(t || e.i18n.t('sofa')).show(),
+ e;
+ },
+ hide: function() {
+ return m.hide(),
+ e;
+ }
+ };
+ var b = e.$el.find('.vload-bottom')
+ ; var w = e.$el.find('.vload-top');
+ e.$loading = {
+ show: function(t) {
+ return t && w.show() || b.show(),
+ e.$nodata.hide(),
+ e;
+ },
+ hide: function() {
+ return w.hide(),
+ b.hide(),
+ e.$el.find('.vcard').length === 0 && e.$nodata.show(),
+ e;
+ }
+ };
+ }
+ (0,
+ k.default)(e.config, function(t) {
+ var n = (0,
+ y.default)('.valine-comment-count')
+ ; var r = 0;
+ !(function t(n) {
+ var o = n[r++];
+ if (o) {
+ var i = (0,
+ y.default)(o).attr('data-xid');
+ !!i && e.Q(i).count().then(function(e) {
+ o.innerText = e,
+ t(n);
+ }).catch(function(e) {
+ o.innerText = 0;
+ });
+ }
+ })(n),
+ i && I.add(AV.Object.extend('Counter'), e.config.path),
+ e.$el && e.bind();
+ });
+ } catch (t) {
+ (0,
+ $.default)(e, t, 'init');
+ }
+ }
+ ;
+ var C = function(e, t) {
+ var n = new e()
+ ; var r = new AV.ACL();
+ r.setPublicReadAccess(!0),
+ r.setPublicWriteAccess(!0),
+ n.setACL(r),
+ n.set('url', t.url),
+ n.set('xid', t.xid),
+ n.set('title', t.title),
+ n.set('time', 1),
+ n.save().then(function(e) {
+ (0,
+ y.default)(t.el).find('.leancloud-visitors-count').text(1);
+ }).catch(function(e) {});
+ }
+ ; var I = {
+ add: function(e, t) {
+ var n = this
+ ; var r = (0,
+ y.default)('.leancloud_visitors,.leancloud-visitors');
+ if (r.length === 1) {
+ var o = r[0]
+ ; var i = decodeURI((0,
+ y.default)(o).attr('id'))
+ ; var a = (0,
+ y.default)(o).attr('data-flag-title')
+ ; var s = encodeURI(i)
+ ; var l = {
+ el : o,
+ url : i,
+ xid : s,
+ title: a
+ };
+ if (decodeURI(i) === decodeURI(t)) {
+ var c = new AV.Query(e);
+ c.equalTo('url', i),
+ c.find().then(function(t) {
+ if (t.length > 0) {
+ var n = t[0];
+ n.increment('time'),
+ n.save().then(function(e) {
+ (0,
+ y.default)(o).find('.leancloud-visitors-count').text(e.get('time'));
+ }).catch(function(e) {});
+ } else { C(e, l); }
+ }).catch(function(t) {
+ t.code == 101 ? C(e, l) : (0,
+ $.default)(n, t);
+ });
+ } else { I.show(e, r); }
+ } else { I.show(e, r); }
+ },
+ show: function(e, t) {
+ var n = [];
+ if (t.forEach(function(e) {
+ var t = (0,
+ y.default)(e).find('.leancloud-visitors-count');
+ t && t.text('0'),
+ n.push(/\%/.test((0,
+ y.default)(e).attr('id')) ? decodeURI((0,
+ y.default)(e).attr('id')) : (0,
+ y.default)(e).attr('id'));
+ }),
+ n.length) {
+ var r = new AV.Query(e);
+ r.containedIn('url', n),
+ r.find().then(function(e) {
+ e.length > 0 && t.forEach(function(t) {
+ e.forEach(function(e) {
+ var n = e.get('xid') || encodeURI(e.get('url'))
+ ; var r = e.get('time')
+ ; var o = (0,
+ y.default)(t)
+ ; var i = o.attr('id');
+ if ((/\%/.test(i) ? i : encodeURI(i)) == n) {
+ var a = o.find('.leancloud-visitors-count');
+ a && a.text(r);
+ }
+ });
+ });
+ }).catch(function(e) {});
+ }
+ }
+ };
+ o.prototype.Q = function(e) {
+ var t = this
+ ; var n = arguments.length
+ ; var r = t.config.clazzName;
+ if (n == 1) {
+ var o = new AV.Query(r);
+ o.doesNotExist('rid');
+ var i = new AV.Query(r);
+ i.equalTo('rid', '');
+ var a = AV.Query.or(o, i);
+ return e === '*' ? a.exists('url') : a.equalTo('url', decodeURI(e)),
+ a.addDescending('createdAt'),
+ a.addDescending('insertedAt'),
+ a;
+ }
+ var s = JSON.stringify(arguments[1]).replace(/(\[|\])/g, '')
+ ; var l = 'select * from ' + r + ' where rid in (' + s + ') order by -createdAt,-createdAt';
+ return AV.Query.doCloudQuery(l);
+ }
+ ,
+ o.prototype.installLocale = function(e, t) {
+ var n = this;
+ return n.i18n(e, t),
+ n;
+ }
+ ,
+ o.prototype.setPath = function(e) {
+ return this.config.path = e,
+ this;
+ }
+ ,
+ o.prototype.bind = function() {
+ var e = this
+ ; var t = e.$el.find('.vemojis')
+ ; var n = e.$el.find('.vpreview')
+ ; var r = e.$el.find('.vemoji-btn')
+ ; var o = e.$el.find('.vpreview-btn')
+ ; var i = e.$el.find('.veditor')
+ ; var a = f.default.maps
+ ; var l = !1
+ ; var u = function(e) {
+ var n = [];
+ for (var r in a) { a.hasOwnProperty(r) && !!f.default.build(r) && n.push('' + f.default.build(r) + ' '); }
+ t.html(n.join('')),
+ l = !0,
+ t.find('i').on('click', function(e) {
+ e.preventDefault(),
+ x(i[0], ' :' + (0,
+ y.default)(this).attr('title') + ':');
+ });
+ };
+ e.$emoji = {
+ show: function() {
+ return !l && u(),
+ e.$preview.hide(),
+ t.show(),
+ r.addClass('actived'),
+ e.$emoji;
+ },
+ hide: function() {
+ return r.removeClass('actived'),
+ t.hide(),
+ e.$emoji;
+ }
+ },
+ e.$preview = {
+ show: function() {
+ return j ? (e.$emoji.hide(),
+ o.addClass('actived'),
+ n.html(j).show(),
+ M()) : e.$preview.hide(),
+ e.$preview;
+ },
+ hide: function() {
+ return o.removeClass('actived'),
+ n.hide().html(''),
+ e.$preview;
+ }
+ };
+ var d = function(t) {
+ var r = (0,
+ w.default)(t.val() || '');
+ r || e.$preview.hide(),
+ j != r && (j = r,
+ o.hasClass('actived') > -1 && j != n.html() && n.html(j),
+ (0,
+ c.default)(t[0]),
+ M());
+ };
+ r.on('click', function(t) {
+ r.hasClass('actived') ? e.$emoji.hide() : e.$emoji.show();
+ }),
+ o.on('click', function(t) {
+ o.hasClass('actived') ? e.$preview.hide() : e.$preview.show();
+ });
+ var p = e.config.meta
+ ; var v = {}
+ ; var m = {
+ veditor: 'comment'
+ };
+ p.forEach(function(e) {
+ m['v' + e] = e;
+ });
+ for (var b in m) {
+ m.hasOwnProperty(b) && (function() {
+ var t = m[b]
+ ; var n = e.$el.find('.' + b);
+ v[t] = n,
+ n.on('input change blur propertychange', function(r) {
+ e.config.enableQQ && r.type === 'blur' && t === 'nick' && (isNaN(n.val()) ? y.default.store.get(h.QQCacheKey) && y.default.store.get(h.QQCacheKey).nick != n.val() && (y.default.store.remove(h.QQCacheKey),
+ E.nick = n.val(),
+ E.mail = '',
+ E.QQAvatar = '') : (0,
+ _.fetchQQFn)(n.val(), function(e) {
+ var t = e.nick || n.val()
+ ; var r = e.qq + '@qq.com';
+ (0,
+ y.default)('.vnick').val(t),
+ (0,
+ y.default)('.vmail').val(r),
+ E.nick = t,
+ E.mail = r,
+ E.QQAvatar = e.pic;
+ })),
+ t === 'comment' ? d(n) : E[t] = y.default.escape(n.val().replace(/(^\s*)|(\s*$)/g, '')).substring(0, 40);
+ });
+ })();
+ }
+ var x = function(e, t) {
+ if (document.selection) {
+ e.focus();
+ document.selection.createRange().text = t,
+ e.focus();
+ } else if (e.selectionStart || e.selectionStart == '0') {
+ var n = e.selectionStart
+ ; var r = e.selectionEnd
+ ; var o = e.scrollTop;
+ e.value = e.value.substring(0, n) + t + e.value.substring(r, e.value.length),
+ e.focus(),
+ e.selectionStart = n + t.length,
+ e.selectionEnd = n + t.length,
+ e.scrollTop = o;
+ } else {
+ e.focus(),
+ e.value += t;
+ }
+ setTimeout(function(t) {
+ d((0,
+ y.default)(e));
+ }, 100);
+ }
+ ; var k = {
+ no : 1,
+ size: e.config.pageSize,
+ skip: e.config.pageSize
+ }
+ ; var A = e.$el.find('.vpage');
+ A.on('click', function(e) {
+ A.hide(),
+ k.no++,
+ O();
+ });
+ var O = function() {
+ var t = k.size
+ ; var n = k.no
+ ; var r = Number(e.$el.find('.vnum').text());
+ e.$loading.show();
+ var o = e.Q(e.config.path);
+ o.limit(t),
+ o.skip((n - 1) * t),
+ o.find().then(function(o) {
+ if (k.skip = k.size,
+ o && o.length) {
+ var i = [];
+ o.forEach(function(t) {
+ i.push(t.id),
+ C(t, e.$el.find('.vcards'), !0);
+ }),
+ e.Q(e.config.path, i).then(function(e) {
+ (e && e.results || []).forEach(function(e) {
+ C(e, (0,
+ y.default)('.vquote[data-self-id="' + e.get('rid') + '"]'));
+ }).catch(function(e) {});
+ }),
+ t * n < r ? A.show() : A.hide();
+ } else { e.$nodata.show(); }
+ e.$loading.hide();
+ }).catch(function(t) {
+ e.$loading.hide(),
+ (0,
+ $.default)(e, t, 'query');
+ });
+ };
+ e.Q(e.config.path).count().then(function(t) {
+ t > 0 ? (e.$el.find('.vcount').show().find('.vnum').text(t),
+ O()) : e.$loading.hide();
+ }).catch(function(t) {
+ (0,
+ $.default)(e, t, 'count');
+ });
+ var C = function(t, n, r) {
+ var o = (0,
+ y.default)('
')
+ ; var i = t.get('ua')
+ ; var a = '';
+ i && !/ja/.test(e.config.lang) && (i = y.default.detect(i),
+ a = '' + i.browser + ' ' + i.version + ' ' + i.os + ' ' + i.osVersion + ' '),
+ e.config.path === '*' && (a = '' + t.get('url') + ' ');
+ var l = t.get('link') ? /^https?\:\/\//.test(t.get('link')) ? t.get('link') : 'http://' + t.get('link') : ''
+ ; var c = l ? '' + t.get('nick') + ' ' : '' + t.get('nick') + ' '
+ ; var u = T.hide ? '' : e.config.enableQQ && t.get('QQAvatar') ? ' ' : ' '
+ ; var d = u + '' + c + ' ' + a + '
' + (0,
+ g.default)(t.get('insertedAt'), e.i18n) + ' ' + e.i18n.t('reply') + '
' + (0,
+ S.default)(t.get('comment')) + '
';
+ o.html(d);
+ var p = o.find('.vat');
+ o.find('a').forEach(function(e) {
+ e && !(0,
+ y.default)(e).hasClass('at') && (0,
+ y.default)(e).attr({
+ target: '_blank',
+ rel : 'nofollow'
+ });
+ }),
+ r ? n.append(o) : n.prepend(o);
+ var f = o.find('.vcontent');
+ f && R(f),
+ p && P(p, t),
+ M();
+ }
+ ; var I = {}
+ ; var P = function(t, n) {
+ t.on('click', function(r) {
+ var o = t.attr('data-vm-id')
+ ; var i = t.attr('data-self-id')
+ ; var a = e.$el.find('.vwrap')
+ ; var s = '@' + y.default.escape(n.get('nick'));
+ (0,
+ y.default)('.vreply-wrapper[data-self-id="' + i + '"]').append(a).find('.cancel-reply').show(),
+ I = {
+ at : y.default.escape(s) + ' ',
+ rid : o,
+ pid : i,
+ rmail: n.get('mail')
+ },
+ v.comment.attr({
+ placeholder: s
+ })[0].focus();
+ });
+ }
+ ; var M = function() {
+ setTimeout(function() {
+ try {
+ 'MathJax' in window && 'version' in window.MathJax && (/^3.*/.test(window.MathJax.version) && MathJax.typeset() || MathJax.Hub.Queue(['Typeset', MathJax.Hub, document.querySelector('.v')])),
+ 'renderMathInElement' in window && renderMathInElement((0,
+ y.default)('.v')[0], {
+ delimiters: [{
+ left : '$$',
+ right : '$$',
+ display: !0
+ }, {
+ left : '$',
+ right : '$',
+ display: !1
+ }]
+ });
+ } catch (e) {}
+ }, 100);
+ }
+ ; var R = function(e) {
+ setTimeout(function() {
+ e[0].offsetHeight > 200 && (e.addClass('expand'),
+ e.on('click', function(t) {
+ e.removeClass('expand');
+ }));
+ });
+ };
+ !(function(t) {
+ if (t = y.default.store.get(h.MetaCacheKey) || t) {
+ for (var n in p) {
+ var r = p[n];
+ e.$el.find('.v' + r).val(y.default.unescape(t[r])),
+ E[r] = t[r];
+ }
+ }
+ var o = y.default.store.get(h.QQCacheKey);
+ E.QQAvatar = e.config.enableQQ && !!o && o.pic || '';
+ })(),
+ e.reset = function() {
+ E.comment = '',
+ v.comment.val(''),
+ d(v.comment),
+ v.comment.attr('placeholder', e.config.placeholder),
+ I = {},
+ e.$preview.hide(),
+ e.$el.find('.vpanel').append(e.$el.find('.vwrap')),
+ e.$el.find('.cancel-reply').hide(),
+ j = '';
+ }
+ ;
+ var z = e.$el.find('.vsubmit')
+ ; var L = function(t) {
+ if (e.config.requiredFields.indexOf('nick') > -1 && E.nick.length < 3) {
+ return v.nick[0].focus(),
+ void e.$el.find('.status-bar').text('' + e.i18n.t('nickFail')).empty(3e3);
+ }
+ if (e.config.requiredFields.indexOf('mail') > -1 && !/[\w-\.]+@([\w-]+\.)+[a-z]{2,3}/.test(E.mail)) {
+ return v.mail[0].focus(),
+ void e.$el.find('.status-bar').text('' + e.i18n.t('mailFail')).empty(3e3);
+ }
+ if (j == '') { return void v.comment[0].focus(); }
+ E.comment = j,
+ E.nick = E.nick || 'Anonymous';
+ var n = y.default.store.get('vlx');
+ if (n) {
+ if (Date.now() / 1e3 - n / 1e3 < 20) { return void e.$el.find('.status-bar').text(e.i18n.t('busy')).empty(3e3); }
+ }
+ U();
+ }
+ ; var F = function() {
+ var e = new AV.ACL();
+ e.setWriteAccess('role:admin', true);
+ return e.setPublicReadAccess(!0),
+ e.setPublicWriteAccess(!1),
+ e;
+ }
+ ; var U = function() {
+ y.default.store.set('vlx', Date.now()),
+ z.attr({
+ disabled: !0
+ }),
+ e.$loading.show(!0);
+ var t = AV.Object.extend(e.config.clazzName || 'Comment')
+ ; var n = new t();
+ if (E.url = decodeURI(e.config.path),
+ E.insertedAt = new Date(),
+ I.rid) {
+ var r = I.pid || I.rid;
+ n.set('rid', I.rid),
+ n.set('pid', r),
+ E.comment = j.replace('', '
' + I.at + ' , ');
+ }
+ for (var o in E) {
+ if (E.hasOwnProperty(o)) {
+ var i = E[o];
+ n.set(o, i);
+ }
+ }
+ n.setACL(F()),
+ n.save().then(function(t) {
+ E.nick != 'Anonymous' && y.default.store.set(h.MetaCacheKey, {
+ nick: E.nick,
+ link: E.link,
+ mail: E.mail
+ });
+ var n = e.$el.find('.vnum');
+ try {
+ I.rid ? C(t, (0,
+ y.default)('.vquote[data-self-id="' + I.rid + '"]'), !0) : (Number(n.text()) ? n.text(Number(n.text()) + 1) : e.$el.find('.vcount').show().find('.vnum').text(Number(n.text()) + 1),
+ C(t, e.$el.find('.vcards')),
+ k.skip++),
+ z.removeAttr('disabled'),
+ e.$loading.hide(),
+ e.reset();
+ } catch (t) {
+ (0,
+ $.default)(e, t, 'save');
+ }
+ }).catch(function(t) {
+ (0,
+ $.default)(e, t, 'commitEvt');
+ });
+ };
+ z.on('click', L),
+ (0,
+ y.default)(document).on('keydown', function(e) {
+ e = event || e;
+ var t = e.keyCode || e.which || e.charCode;
+ ((e.ctrlKey || e.metaKey) && t === 13 && L(),
+ t === 9) && ((document.activeElement.id || '') == 'veditor' && (e.preventDefault(),
+ x(i[0], ' ')));
+ }).on('paste', function(e) {
+ var t = 'clipboardData' in e ? e.clipboardData : e.originalEvent && e.originalEvent.clipboardData || window.clipboardData;
+ t && B(t.items, !0);
+ }),
+ i.on('dragenter dragleave dragover drop', function(e) {
+ e.stopPropagation(),
+ e.preventDefault(),
+ e.type === 'drop' && B(e.dataTransfer.items);
+ });
+ var B = function(e, t) {
+ for (var n = [], r = 0, o = e.length; r < o; r++) {
+ var a = e[r];
+ if (a.kind === 'string' && a.type.match('^text/html')) {
+ !t && a.getAsString(function(e) {
+ e && x(i[0], e.replace(/<[^>]+>/g, ''));
+ });
+ } else if (a.type.indexOf('image') !== -1) {
+ n.push(a.getAsFile());
+ continue;
+ }
+ }
+ N(n);
+ }
+ ; var N = function t(n, r) {
+ r = r || 0;
+ var o = n.length;
+ if (o > 0) {
+ var a = n[r];
+ z.attr({
+ disabled: !0
+ });
+ var s = '![Uploading ' + a.name + '...]()';
+ x(i[0], s),
+ Q(a, function(l) {
+ l.code != 500 ? (i.val(i.val().replace(s, '![' + a.name + '](' + l.data.url + ')\r\n')),
+ (0,
+ c.default)(i[0]),
+ ++r < o ? t(n, r) : z.removeAttr('disabled')) : (i.val(i.val().replace(s, '')),
+ (0,
+ c.default)(i[0]),
+ e.$el.find('.status-bar').text(l.msg).empty(3e3),
+ z.removeAttr('disabled'));
+ });
+ }
+ }
+ ; var Q = function(e, t) {
+ var n = new FormData();
+ n.append('image', e),
+ y.default.ajax({
+ type : 'post',
+ url : 'https://pic.alexhchu.com/api/upload',
+ data : n,
+ success: function(e) {
+ t && t(e);
+ }
+ });
+ };
+ }
+ ,
+ e.exports = i,
+ e.exports.default = i;
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0;
+ var r = n(0)
+ ; var o = (function(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ })(r)
+ ; var i = !1;
+ t.default = function(e, t) {
+ if ('AV' in window) {
+ var n = window.AV.version || window.AV.VERSION;
+ parseInt(n.split('.')[0]) > 2 ? i = !!AV.applicationId && !!AV.applicationKey : o.default.deleteInWin('AV', 0);
+ }
+ i ? t && t() : o.default.sdkLoader('//cdn.jsdelivr.net/npm/leancloud-storage@3/dist/av-min.js', 'AV', function(n) {
+ var r = 'https://'
+ ; var o = ''
+ ; var a = e.app_id || e.appId
+ ; var s = e.app_key || e.appKey;
+ if (!e.serverURLs) {
+ switch (a.slice(-9)) {
+ case '-9Nh9j0Va':
+ r += 'tab.';
+ break;
+ case '-MdYXbMMI':
+ r += 'us.';
+ }
+ }
+ o = e.serverURLs || r + 'avoscloud.com',
+ AV.init({
+ appId : a,
+ appKey : s,
+ serverURLs: o
+ }),
+ i = !0,
+ t && t();
+ });
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ }
+ t.__esModule = !0;
+ var o = n(37)
+ ; var i = r(o)
+ ; var a = n(56)
+ ; var s = r(a)
+ ; var l = n(57)
+ ; var c = r(l)
+ ; var u = n(54)
+ ; var d = r(u)
+ ; var p = n(55)
+ ; var f = r(p)
+ ; var h = {
+ zh : s.default,
+ 'zh-cn': s.default,
+ 'zh-CN': s.default,
+ 'zh-TW': c.default,
+ en : d.default,
+ 'en-US': d.default,
+ ja : f.default,
+ 'ja-JP': f.default
+ };
+ t.default = function(e, t) {
+ return !h[e] && e && t && (h[e] = t),
+ new i.default({
+ phrases: h[e || 'zh'],
+ locale : e
+ });
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0,
+ t.default = function(e, t) {
+ if (e.$el && e.$loading.hide().$nodata.hide(),
+ {}.toString.call(t) === '[object Error]') {
+ var n = t.code || t.message || t.error || '';
+ if (isNaN(n)) { e.$el && e.$nodata.show('
' + JSON.stringify(t) + ' '); } else {
+ var r = e.i18n.t('code-' + n)
+ ; var o = (r == 'code-' + n ? void 0 : r) || t.message || t.error || '';
+ n == 101 || n == -1 ? e.$nodata.show() : e.$el && e.$nodata.show('Code ' + n + ': ' + o + ' ');
+ }
+ } else { e.$el && e.$nodata.show('' + JSON.stringify(t) + ' '); }
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ }
+ t.__esModule = !0;
+ var o = n(36)
+ ; var i = r(o)
+ ; var a = n(0)
+ ; var s = r(a)
+ ; var l = n(6)
+ ; var c = r(l)
+ ; var u = n(33)
+ ; var d = new o.Renderer();
+ d.code = function(e, t) {
+ return '' + (!t || !hljs.getLanguage(t) ? s.default.escape(e) : hljs.highlight(t, e).value) + '
';
+ }
+ ,
+ i.default.setOptions({
+ renderer : 'hljs' in window ? d : new o.Renderer(),
+ highlight: function(e, t) {
+ return 'hljs' in window ? t && hljs.getLanguage(t) && hljs.highlight(t, e, !0).value || hljs.highlightAuto(e).value : u(e);
+ },
+ gfm : !0,
+ tables : !0,
+ breaks : !0,
+ pedantic : !1,
+ sanitize : !0,
+ smartLists : !0,
+ smartypants: !0,
+ headerPrefi: 'v-'
+ }),
+ t.default = function(e) {
+ return c.default.parse((0,
+ i.default)(e));
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0,
+ t.recordIPFn = t.fetchQQFn = void 0;
+ var r = n(0)
+ ; var o = (function(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ })(r)
+ ; var i = n(2)
+ ; var a = function(e, t) {
+ var n = o.default.store.get(i.QQCacheKey);
+ n && n.qq == e ? t && t(n) : o.default.ajax({
+ type: 'POST',
+ url : '//valine.api.ioliu.cn/getqqinfo',
+ data: {
+ qq: e
+ },
+ success: function(e) {
+ e.errmsg || (o.default.store.set(i.QQCacheKey, e),
+ t && t(e));
+ }
+ });
+ }
+ ; var s = function(e) {
+ o.default.sdkLoader('//api.ip.sb/jsonip?callback=getIP', 'getIP'),
+ window.getIP = function(t) {
+ e && e(t.ip),
+ o.default.deleteInWin('getIP');
+ };
+ };
+ t.fetchQQFn = a,
+ t.recordIPFn = s;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = function(e, t) {
+ if (!e) { return ''; }
+ try {
+ var n = i(e).getTime()
+ ; var r = new Date().getTime()
+ ; var a = r - n
+ ; var s = Math.floor(a / 864e5);
+ if (s === 0) {
+ var l = a % 864e5
+ ; var c = Math.floor(l / 36e5);
+ if (c === 0) {
+ var u = l % 36e5
+ ; var d = Math.floor(u / 6e4);
+ if (d === 0) {
+ var p = u % 6e4;
+ return Math.round(p / 1e3) + ' ' + t.t('seconds');
+ }
+ return d + ' ' + t.t('minutes');
+ }
+ return c + ' ' + t.t('hours');
+ }
+ return s < 0 ? t.t('now') : s < 8 ? s + ' ' + t.t('days') : o(e);
+ } catch (e) {}
+ }
+ ; var o = function(e) {
+ var t = a(e.getDate(), 2)
+ ; var n = a(e.getMonth() + 1, 2);
+ return a(e.getFullYear(), 2) + '-' + n + '-' + t;
+ }
+ ; var i = function e(t) {
+ return t instanceof Date ? t : !isNaN(t) || /^\d+$/.test(t) ? new Date(parseInt(t)) : /GMT/.test(t || '') ? e(new Date(t).getTime()) : (t = (t || '').replace(/(^\s*)|(\s*$)/g, '').replace(/\.\d+/, '').replace(/-/, '/').replace(/-/, '/').replace(/(\d)T(\d)/, '$1 $2').replace(/Z/, ' UTC').replace(/([+-]\d\d):?(\d\d)/, ' $1$2'),
+ new Date(t));
+ }
+ ; var a = function(e, t) {
+ for (var n = e.toString(); n.length < t;) { n = '0' + n; }
+ return n;
+ };
+ e.exports = r;
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0;
+ var r = n(51)
+ ; var o = (function(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ };
+ })(r);
+ t.default = function(e) {
+ return (0,
+ o.default)(e, {
+ onTagAttr: function(e, t, n, r) {
+ return i(e, t, n, r);
+ },
+ onIgnoreTagAttr: function(e, t, n, r) {
+ return i(e, t, n, r);
+ }
+ }).replace(/\<\/?div\>/gi, '');
+ }
+ ;
+ var i = function(e, t, n, r) {
+ if (/code|pre|span/gi.test(e)) {
+ if (t == 'style') { return t + '="' + (/^color/gi.test(n) ? n : '').replace(/(color:[#0-9a-fA-F]{1,6};?).+/gi, '$1') + '"'; }
+ if (t == 'class') { return t + '=\'' + o.default.escapeAttrValue(n) + '\''; }
+ }
+ if (e === 'img' && ['src', 'class'].indexOf(t) > -1) { return t + '="' + o.default.escapeAttrValue(n) + '" referrerPolicy="no-referrer" '; }
+ };
+ },
+ function(e, t, n) {
+ var r;
+ !(function(o) {
+ 'use strict';
+ function i(e, t) {
+ var n = (65535 & e) + (65535 & t);
+ return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n;
+ }
+ function a(e, t) {
+ return e << t | e >>> 32 - t;
+ }
+ function s(e, t, n, r, o, s) {
+ return i(a(i(i(t, e), i(r, s)), o), n);
+ }
+ function l(e, t, n, r, o, i, a) {
+ return s(t & n | ~t & r, e, t, o, i, a);
+ }
+ function c(e, t, n, r, o, i, a) {
+ return s(t & r | n & ~r, e, t, o, i, a);
+ }
+ function u(e, t, n, r, o, i, a) {
+ return s(t ^ n ^ r, e, t, o, i, a);
+ }
+ function d(e, t, n, r, o, i, a) {
+ return s(n ^ (t | ~r), e, t, o, i, a);
+ }
+ function p(e, t) {
+ e[t >> 5] |= 128 << t % 32,
+ e[14 + (t + 64 >>> 9 << 4)] = t;
+ var n, r, o, a, s; var p = 1732584193; var f = -271733879; var h = -1732584194; var v = 271733878;
+ for (n = 0; n < e.length; n += 16) {
+ r = p,
+ o = f,
+ a = h,
+ s = v,
+ p = l(p, f, h, v, e[n], 7, -680876936),
+ v = l(v, p, f, h, e[n + 1], 12, -389564586),
+ h = l(h, v, p, f, e[n + 2], 17, 606105819),
+ f = l(f, h, v, p, e[n + 3], 22, -1044525330),
+ p = l(p, f, h, v, e[n + 4], 7, -176418897),
+ v = l(v, p, f, h, e[n + 5], 12, 1200080426),
+ h = l(h, v, p, f, e[n + 6], 17, -1473231341),
+ f = l(f, h, v, p, e[n + 7], 22, -45705983),
+ p = l(p, f, h, v, e[n + 8], 7, 1770035416),
+ v = l(v, p, f, h, e[n + 9], 12, -1958414417),
+ h = l(h, v, p, f, e[n + 10], 17, -42063),
+ f = l(f, h, v, p, e[n + 11], 22, -1990404162),
+ p = l(p, f, h, v, e[n + 12], 7, 1804603682),
+ v = l(v, p, f, h, e[n + 13], 12, -40341101),
+ h = l(h, v, p, f, e[n + 14], 17, -1502002290),
+ f = l(f, h, v, p, e[n + 15], 22, 1236535329),
+ p = c(p, f, h, v, e[n + 1], 5, -165796510),
+ v = c(v, p, f, h, e[n + 6], 9, -1069501632),
+ h = c(h, v, p, f, e[n + 11], 14, 643717713),
+ f = c(f, h, v, p, e[n], 20, -373897302),
+ p = c(p, f, h, v, e[n + 5], 5, -701558691),
+ v = c(v, p, f, h, e[n + 10], 9, 38016083),
+ h = c(h, v, p, f, e[n + 15], 14, -660478335),
+ f = c(f, h, v, p, e[n + 4], 20, -405537848),
+ p = c(p, f, h, v, e[n + 9], 5, 568446438),
+ v = c(v, p, f, h, e[n + 14], 9, -1019803690),
+ h = c(h, v, p, f, e[n + 3], 14, -187363961),
+ f = c(f, h, v, p, e[n + 8], 20, 1163531501),
+ p = c(p, f, h, v, e[n + 13], 5, -1444681467),
+ v = c(v, p, f, h, e[n + 2], 9, -51403784),
+ h = c(h, v, p, f, e[n + 7], 14, 1735328473),
+ f = c(f, h, v, p, e[n + 12], 20, -1926607734),
+ p = u(p, f, h, v, e[n + 5], 4, -378558),
+ v = u(v, p, f, h, e[n + 8], 11, -2022574463),
+ h = u(h, v, p, f, e[n + 11], 16, 1839030562),
+ f = u(f, h, v, p, e[n + 14], 23, -35309556),
+ p = u(p, f, h, v, e[n + 1], 4, -1530992060),
+ v = u(v, p, f, h, e[n + 4], 11, 1272893353),
+ h = u(h, v, p, f, e[n + 7], 16, -155497632),
+ f = u(f, h, v, p, e[n + 10], 23, -1094730640),
+ p = u(p, f, h, v, e[n + 13], 4, 681279174),
+ v = u(v, p, f, h, e[n], 11, -358537222),
+ h = u(h, v, p, f, e[n + 3], 16, -722521979),
+ f = u(f, h, v, p, e[n + 6], 23, 76029189),
+ p = u(p, f, h, v, e[n + 9], 4, -640364487),
+ v = u(v, p, f, h, e[n + 12], 11, -421815835),
+ h = u(h, v, p, f, e[n + 15], 16, 530742520),
+ f = u(f, h, v, p, e[n + 2], 23, -995338651),
+ p = d(p, f, h, v, e[n], 6, -198630844),
+ v = d(v, p, f, h, e[n + 7], 10, 1126891415),
+ h = d(h, v, p, f, e[n + 14], 15, -1416354905),
+ f = d(f, h, v, p, e[n + 5], 21, -57434055),
+ p = d(p, f, h, v, e[n + 12], 6, 1700485571),
+ v = d(v, p, f, h, e[n + 3], 10, -1894986606),
+ h = d(h, v, p, f, e[n + 10], 15, -1051523),
+ f = d(f, h, v, p, e[n + 1], 21, -2054922799),
+ p = d(p, f, h, v, e[n + 8], 6, 1873313359),
+ v = d(v, p, f, h, e[n + 15], 10, -30611744),
+ h = d(h, v, p, f, e[n + 6], 15, -1560198380),
+ f = d(f, h, v, p, e[n + 13], 21, 1309151649),
+ p = d(p, f, h, v, e[n + 4], 6, -145523070),
+ v = d(v, p, f, h, e[n + 11], 10, -1120210379),
+ h = d(h, v, p, f, e[n + 2], 15, 718787259),
+ f = d(f, h, v, p, e[n + 9], 21, -343485551),
+ p = i(p, r),
+ f = i(f, o),
+ h = i(h, a),
+ v = i(v, s);
+ }
+ return [p, f, h, v];
+ }
+ function f(e) {
+ var t; var n = ''; var r = 32 * e.length;
+ for (t = 0; t < r; t += 8) { n += String.fromCharCode(e[t >> 5] >>> t % 32 & 255); }
+ return n;
+ }
+ function h(e) {
+ var t; var n = [];
+ for (n[(e.length >> 2) - 1] = void 0,
+ t = 0; t < n.length; t += 1) { n[t] = 0; }
+ var r = 8 * e.length;
+ for (t = 0; t < r; t += 8) { n[t >> 5] |= (255 & e.charCodeAt(t / 8)) << t % 32; }
+ return n;
+ }
+ function v(e) {
+ return f(p(h(e), 8 * e.length));
+ }
+ function g(e, t) {
+ var n, r; var o = h(e); var i = []; var a = [];
+ for (i[15] = a[15] = void 0,
+ o.length > 16 && (o = p(o, 8 * e.length)),
+ n = 0; n < 16; n += 1) {
+ i[n] = 909522486 ^ o[n],
+ a[n] = 1549556828 ^ o[n];
+ }
+ return r = p(i.concat(h(t)), 512 + 8 * t.length),
+ f(p(a.concat(r), 640));
+ }
+ function m(e) {
+ var t, n; var r = '0123456789abcdef'; var o = '';
+ for (n = 0; n < e.length; n += 1) {
+ t = e.charCodeAt(n),
+ o += r.charAt(t >>> 4 & 15) + r.charAt(15 & t);
+ }
+ return o;
+ }
+ function y(e) {
+ return unescape(encodeURIComponent(e));
+ }
+ function b(e) {
+ return v(y(e));
+ }
+ function w(e) {
+ return m(b(e));
+ }
+ function x(e, t) {
+ return g(y(e), y(t));
+ }
+ function k(e, t) {
+ return m(x(e, t));
+ }
+ function _(e, t, n) {
+ return t ? n ? x(t, e) : k(t, e) : n ? b(e) : w(e);
+ }
+ void 0 !== (r = function() {
+ return _;
+ }
+ .call(t, n, t, e)) && (e.exports = r);
+ })();
+ },
+ function(e, t, n) {
+ 'use strict';
+ t.__esModule = !0;
+ var r = function(e) {
+ e = e || navigator.userAgent;
+ var t = {}
+ ; var n = {
+ Trident : e.indexOf('Trident') > -1 || e.indexOf('NET CLR') > -1,
+ Presto : e.indexOf('Presto') > -1,
+ WebKit : e.indexOf('AppleWebKit') > -1,
+ Gecko : e.indexOf('Gecko/') > -1,
+ Safari : e.indexOf('Safari') > -1,
+ Edge : e.indexOf('Edge') > -1 || e.indexOf('Edg') > -1,
+ Chrome : e.indexOf('Chrome') > -1 || e.indexOf('CriOS') > -1,
+ IE : e.indexOf('MSIE') > -1 || e.indexOf('Trident') > -1,
+ Firefox : e.indexOf('Firefox') > -1 || e.indexOf('FxiOS') > -1,
+ 'Firefox Focus': e.indexOf('Focus') > -1,
+ Chromium : e.indexOf('Chromium') > -1,
+ Opera : e.indexOf('Opera') > -1 || e.indexOf('OPR') > -1,
+ Vivaldi : e.indexOf('Vivaldi') > -1,
+ Yandex : e.indexOf('YaBrowser') > -1,
+ Kindle : e.indexOf('Kindle') > -1 || e.indexOf('Silk/') > -1,
+ 360 : e.indexOf('360EE') > -1 || e.indexOf('360SE') > -1,
+ UC : e.indexOf('UC') > -1 || e.indexOf(' UBrowser') > -1,
+ QQBrowser : e.indexOf('QQBrowser') > -1,
+ QQ : e.indexOf('QQ/') > -1,
+ Baidu : e.indexOf('Baidu') > -1 || e.indexOf('BIDUBrowser') > -1,
+ Maxthon : e.indexOf('Maxthon') > -1,
+ Sogou : e.indexOf('MetaSr') > -1 || e.indexOf('Sogou') > -1,
+ LBBROWSER : e.indexOf('LBBROWSER') > -1,
+ '2345Explorer' : e.indexOf('2345Explorer') > -1,
+ TheWorld : e.indexOf('TheWorld') > -1,
+ XiaoMi : e.indexOf('MiuiBrowser') > -1,
+ Quark : e.indexOf('Quark') > -1,
+ Qiyu : e.indexOf('Qiyu') > -1,
+ Wechat : e.indexOf('MicroMessenger') > -1,
+ Taobao : e.indexOf('AliApp(TB') > -1,
+ Alipay : e.indexOf('AliApp(AP') > -1,
+ Weibo : e.indexOf('Weibo') > -1,
+ Douban : e.indexOf('com.douban.frodo') > -1,
+ Suning : e.indexOf('SNEBUY-APP') > -1,
+ iQiYi : e.indexOf('IqiyiApp') > -1,
+ Windows : e.indexOf('Windows') > -1,
+ Linux : e.indexOf('Linux') > -1 || e.indexOf('X11') > -1,
+ macOS : e.indexOf('Macintosh') > -1,
+ Android : e.indexOf('Android') > -1 || e.indexOf('Adr') > -1,
+ Ubuntu : e.indexOf('Ubuntu') > -1,
+ FreeBSD : e.indexOf('FreeBSD') > -1,
+ Debian : e.indexOf('Debian') > -1,
+ 'Windows Phone': e.indexOf('IEMobile') > -1 || e.indexOf('Windows Phone') > -1,
+ BlackBerry : e.indexOf('BlackBerry') > -1 || e.indexOf('RIM') > -1 || e.indexOf('BB10') > -1,
+ MeeGo : e.indexOf('MeeGo') > -1,
+ Symbian : e.indexOf('Symbian') > -1,
+ iOS : e.indexOf('like Mac OS X') > -1,
+ 'Chrome OS' : e.indexOf('CrOS') > -1,
+ WebOS : e.indexOf('hpwOS') > -1,
+ Mobile : e.indexOf('Mobi') > -1 || e.indexOf('iPh') > -1 || e.indexOf('480') > -1,
+ Tablet : e.indexOf('Tablet') > -1 || e.indexOf('Pad') > -1 || e.indexOf('Nexus 7') > -1
+ };
+ n.Mobile && (n.Mobile = !(e.indexOf('iPad') > -1));
+ var r = {
+ browser: ['Safari', 'Chrome', 'Edge', 'IE', 'Firefox', 'Firefox Focus', 'Chromium', 'Opera', 'Vivaldi', 'Yandex', 'Kindle', '360', 'UC', 'QQBrowser', 'QQ', 'Baidu', 'Maxthon', 'Sogou', 'LBBROWSER', '2345Explorer', 'TheWorld', 'XiaoMi', 'Quark', 'Qiyu', 'Wechat', 'Taobao', 'Alipay', 'Weibo', 'Douban', 'Suning', 'iQiYi'],
+ os : ['Windows', 'Linux', 'Mac OS', 'macOS', 'Android', 'Ubuntu', 'FreeBSD', 'Debian', 'iOS', 'Windows Phone', 'BlackBerry', 'MeeGo', 'Symbian', 'Chrome OS', 'WebOS']
+ };
+ for (var o in r) {
+ if (r.hasOwnProperty(o)) {
+ for (var i = 0, a = r[o].length; i < a; i++) {
+ var s = r[o][i];
+ n[s] && (t[o] = s);
+ }
+ }
+ }
+ var l = {
+ Windows: function() {
+ var t = e.replace(/^.*Windows NT ([\d.]+).*$/, '$1');
+ return {
+ 6.4 : '10',
+ 6.3 : '8.1',
+ 6.2 : '8',
+ 6.1 : '7',
+ '6.0': 'Vista',
+ 5.2 : 'XP',
+ 5.1 : 'XP',
+ '5.0': '2000'
+ }[t] || t;
+ },
+ Android : e.replace(/^.*Android ([\d.]+);.*$/, '$1'),
+ iOS : e.replace(/^.*OS ([\d_]+) like.*$/, '$1').replace(/_/g, '.'),
+ Debian : e.replace(/^.*Debian\/([\d.]+).*$/, '$1'),
+ 'Windows Phone': e.replace(/^.*Windows Phone( OS)? ([\d.]+);.*$/, '$2'),
+ macOS : e.replace(/^.*Mac OS X ([\d_]+).*$/, '$1').replace(/_/g, '.'),
+ WebOS : e.replace(/^.*hpwOS\/([\d.]+);.*$/, '$1'),
+ BlackBerry : e.replace(/^.*BB([\d.]+);*$/, '$1')
+ };
+ t.osVersion = '';
+ var c = l[t.os];
+ c && (t.osVersion = typeof c == 'function' ? c() : c == e ? '' : c);
+ var u = {
+ Safari : e.replace(/^.*Version\/([\d.]+).*$/, '$1'),
+ Chrome : e.replace(/^.*Chrome\/([\d.]+).*$/, '$1').replace(/^.*CriOS\/([\d.]+).*$/, '$1'),
+ IE : e.replace(/^.*MSIE ([\d.]+).*$/, '$1').replace(/^.*rv:([\d.]+).*$/, '$1'),
+ Edge : e.replace(/^.*Edge?\/([\d.]+).*$/, '$1'),
+ Firefox : e.replace(/^.*Firefox\/([\d.]+).*$/, '$1').replace(/^.*FxiOS\/([\d.]+).*$/, '$1'),
+ 'Firefox Focus': e.replace(/^.*Focus\/([\d.]+).*$/, '$1'),
+ Chromium : e.replace(/^.*Chromium\/([\d.]+).*$/, '$1'),
+ Opera : e.replace(/^.*Opera\/([\d.]+).*$/, '$1').replace(/^.*OPR\/([\d.]+).*$/, '$1'),
+ Vivaldi : e.replace(/^.*Vivaldi\/([\d.]+).*$/, '$1'),
+ Yandex : e.replace(/^.*YaBrowser\/([\d.]+).*$/, '$1'),
+ Kindle : e.replace(/^.*Version\/([\d.]+).*$/, '$1'),
+ Maxthon : e.replace(/^.*Maxthon\/([\d.]+).*$/, '$1'),
+ QQBrowser : e.replace(/^.*QQBrowser\/([\d.]+).*$/, '$1'),
+ QQ : e.replace(/^.*QQ\/([\d.]+).*$/, '$1'),
+ Baidu : e.replace(/^.*BIDUBrowser[\s\/]([\d.]+).*$/, '$1'),
+ UC : e.replace(/^.*UC?Browser\/([\d.]+).*$/, '$1'),
+ Sogou : e.replace(/^.*SE ([\d.X]+).*$/, '$1').replace(/^.*SogouMobileBrowser\/([\d.]+).*$/, '$1'),
+ '2345Explorer' : e.replace(/^.*2345Explorer\/([\d.]+).*$/, '$1'),
+ TheWorld : e.replace(/^.*TheWorld ([\d.]+).*$/, '$1'),
+ XiaoMi : e.replace(/^.*MiuiBrowser\/([\d.]+).*$/, '$1'),
+ Quark : e.replace(/^.*Quark\/([\d.]+).*$/, '$1'),
+ Qiyu : e.replace(/^.*Qiyu\/([\d.]+).*$/, '$1'),
+ Wechat : e.replace(/^.*MicroMessenger\/([\d.]+).*$/, '$1'),
+ Taobao : e.replace(/^.*AliApp\(TB\/([\d.]+).*$/, '$1'),
+ Alipay : e.replace(/^.*AliApp\(AP\/([\d.]+).*$/, '$1'),
+ Weibo : e.replace(/^.*weibo__([\d.]+).*$/, '$1'),
+ Douban : e.replace(/^.*com.douban.frodo\/([\d.]+).*$/, '$1'),
+ Suning : e.replace(/^.*SNEBUY-APP([\d.]+).*$/, '$1'),
+ iQiYi : e.replace(/^.*IqiyiVersion\/([\d.]+).*$/, '$1')
+ };
+ t.version = '';
+ var d = u[t.browser];
+ return d && (t.version = typeof d == 'function' ? d() : d == e ? '' : d),
+ void 0 == t.browser && (t.browser = 'Unknow App'),
+ t;
+ };
+ t.default = r;
+ },
+ function(e, t, n) {
+ var r, o;
+ !(function(n, i) {
+ var i = (function(e, t, n) {
+ function r(o, i, a) {
+ return a = Object.create(r.fn),
+ o && a.push.apply(a, o[t] ? [o] : '' + o === o ? /= 3 && (i = n),
+ o.call(e) === '[object Array]' ? a(e, t, i) : typeof e == 'string' ? s(e, t, i) : l(e, t, i);
+ };
+ e.exports = c;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = Array.prototype.slice
+ ; var o = Object.prototype.toString;
+ e.exports = function(e) {
+ var t = this;
+ if (typeof t != 'function' || o.call(t) !== '[object Function]') { throw new TypeError('Function.prototype.bind called on incompatible ' + t); }
+ for (var n, i = r.call(arguments, 1), a = function() {
+ if (this instanceof n) {
+ var o = t.apply(this, i.concat(r.call(arguments)));
+ return Object(o) === o ? o : this;
+ }
+ return t.apply(e, i.concat(r.call(arguments)));
+ }, s = Math.max(0, t.length - i.length), l = [], c = 0; c < s; c++) { l.push('$' + c); }
+ if (n = Function('binder', 'return function (' + l.join(',') + '){ return binder.apply(this,arguments); }')(a),
+ t.prototype) {
+ var u = function() {};
+ u.prototype = t.prototype,
+ n.prototype = new u(),
+ u.prototype = null;
+ }
+ return n;
+ };
+ },
+ function(e, t, n) {
+ !(function(t, n) {
+ e.exports = n();
+ })(0, function() {
+ 'use strict';
+ function e(e) {
+ return '' + e + ' ';
+ }
+ var t = (function(e, t) {
+ return t = {
+ exports: {}
+ },
+ e(t, t.exports),
+ t.exports;
+ })(function(e) {
+ var t = e.exports = function() {
+ return new RegExp('(?:' + t.line().source + ')|(?:' + t.block().source + ')', 'gm');
+ }
+ ;
+ t.line = function() {
+ return /(?:^|\s)\/\/(.+?)$/gm;
+ }
+ ,
+ t.block = function() {
+ return /\/\*([\S\s]*?)\*\//gm;
+ };
+ })
+ ; var n = ['23AC69', '91C132', 'F19726', 'E8552D', '1AAB8E', 'E1147F', '2980C1', '1BA1E6', '9FA0A0', 'F19726', 'E30B20', 'E30B20', 'A3338B'];
+ return function(r, o) {
+ void 0 === o && (o = {});
+ var i = o.colors;
+ void 0 === i && (i = n);
+ var a = 0
+ ; var s = {}
+ ; var l = /[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/
+ ; var c = /
+ ; var u = new RegExp('(' + l.source + '|' + c.source + ')|(' + t().source + ')', 'gmi');
+ return r.replace(u, function(t, n, r) {
+ if (r) { return e(r); }
+ if (n === '<') { return '<'; }
+ var o;
+ s[n] ? o = s[n] : (o = i[a],
+ s[n] = o);
+ var l = '' + n + ' ';
+ return a = ++a % i.length,
+ l;
+ });
+ };
+ });
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(4);
+ e.exports = r.call(Function.call, Object.prototype.hasOwnProperty);
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = Function.prototype.toString
+ ; var o = /^\s*class\b/
+ ; var i = function(e) {
+ try {
+ var t = r.call(e);
+ return o.test(t);
+ } catch (e) {
+ return !1;
+ }
+ }
+ ; var a = function(e) {
+ try {
+ return !i(e) && (r.call(e),
+ !0);
+ } catch (e) {
+ return !1;
+ }
+ }
+ ; var s = Object.prototype.toString
+ ; var l = typeof Symbol == 'function' && typeof Symbol.toStringTag == 'symbol';
+ e.exports = function(e) {
+ if (!e) { return !1; }
+ if (typeof e != 'function' && typeof e != 'object') { return !1; }
+ if (typeof e == 'function' && !e.prototype) { return !0; }
+ if (l) { return a(e); }
+ if (i(e)) { return !1; }
+ var t = s.call(e);
+ return t === '[object Function]' || t === '[object GeneratorFunction]';
+ };
+ },
+ function(e, t, n) {
+ (function(t) {
+ !(function(t) {
+ 'use strict';
+ function n(e) {
+ this.tokens = [],
+ this.tokens.links = {},
+ this.options = e || h.defaults,
+ this.rules = v.normal,
+ this.options.pedantic ? this.rules = v.pedantic : this.options.gfm && (this.options.tables ? this.rules = v.tables : this.rules = v.gfm);
+ }
+ function r(e, t) {
+ if (this.options = t || h.defaults,
+ this.links = e,
+ this.rules = g.normal,
+ this.renderer = this.options.renderer || new o(),
+ this.renderer.options = this.options,
+ !this.links) { throw new Error('Tokens array requires a `links` property.'); }
+ this.options.pedantic ? this.rules = g.pedantic : this.options.gfm && (this.options.breaks ? this.rules = g.breaks : this.rules = g.gfm);
+ }
+ function o(e) {
+ this.options = e || h.defaults;
+ }
+ function i() {}
+ function a(e) {
+ this.tokens = [],
+ this.token = null,
+ this.options = e || h.defaults,
+ this.options.renderer = this.options.renderer || new o(),
+ 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(),
+ t === 'colon' ? ':' : t.charAt(0) === '#' ? t.charAt(1) === 'x' ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : '';
+ });
+ }
+ function c(e, t) {
+ return e = e.source || e,
+ 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 m[' ' + e] || (/^[^:]+:\/*[^/]*$/.test(e) ? m[' ' + e] = e + '/' : m[' ' + e] = e.replace(/[^/]*$/, '')),
+ e = m[' ' + e],
+ t.slice(0, 2) === '//' ? e.replace(/:[\s\S]*/, ':') + t : t.charAt(0) === '/' ? e.replace(/(:\/*[^/]*)[\s\S]*/, '$1') + t : e + t;
+ }
+ function d() {}
+ function p(e) {
+ for (var t, n, r = 1; r < arguments.length; r++) {
+ t = arguments[r];
+ for (n in t) { Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); }
+ }
+ return e;
+ }
+ function f(e, t) {
+ var n = e.replace(/([^\\])\|/g, '$1 |').split(/ +\| */)
+ ; var r = 0;
+ if (n.length > t) { n.splice(t); } else {
+ for (; n.length < t;) { n.push(''); }
+ }
+ for (; r < n.length; r++) { n[r] = n[r].replace(/\\\|/g, '|'); }
+ return n;
+ }
+ function h(e, t, r) {
+ if (void 0 === e || e === null) { throw new Error('marked(): input parameter is undefined or null'); }
+ if (typeof e != 'string') { throw new Error('marked(): input parameter is of type ' + Object.prototype.toString.call(e) + ', string expected'); }
+ if (r || typeof t == 'function') {
+ r || (r = t,
+ t = null),
+ t = p({}, h.defaults, t || {});
+ var o, i; var l = t.highlight; var c = 0;
+ try {
+ o = n.lex(e, t);
+ } catch (e) {
+ return r(e);
+ }
+ i = o.length;
+ var u = function(e) {
+ if (e) {
+ return t.highlight = l,
+ r(e);
+ }
+ var n;
+ try {
+ n = a.parse(o, t);
+ } catch (t) {
+ e = t;
+ }
+ return t.highlight = l,
+ e ? r(e) : r(null, n);
+ };
+ if (!l || l.length < 3) { return u(); }
+ if (delete t.highlight,
+ !i) { return u(); }
+ for (; c < o.length; c++) {
+ !(function(e) {
+ e.type !== 'code' ? --i || u() : l(e.text, e.lang, function(t, n) {
+ return t ? u(t) : n == null || n === e.text ? --i || u() : (e.text = n,
+ e.escaped = !0,
+ void (--i || u()));
+ });
+ })(o[c]);
+ }
+ } else {
+ try {
+ return t && (t = p({}, h.defaults, t)),
+ a.parse(n.lex(e, t), t);
+ } catch (e) {
+ if (e.message += '\nPlease report this to https://github.com/markedjs/marked.',
+ (t || h.defaults).silent) { return 'An error occurred:
' + s(e.message + '', !0) + ' '; }
+ throw e;
+ }
+ }
+ }
+ var v = {
+ newline : /^\n+/,
+ code : /^( {4}[^\n]+\n*)+/,
+ fences : d,
+ hr : /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
+ heading : /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,
+ nptable : d,
+ blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
+ list : /^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
+ html : '^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))',
+ def : /^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,
+ table : d,
+ lheading : /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
+ paragraph : /^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,
+ text : /^[^\n]+/
+ };
+ v._label = /(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,
+ v._title = /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,
+ v.def = c(v.def).replace('label', v._label).replace('title', v._title).getRegex(),
+ v.bullet = /(?:[*+-]|\d+\.)/,
+ v.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,
+ v.item = c(v.item, 'gm').replace(/bull/g, v.bullet).getRegex(),
+ v.list = c(v.list).replace(/bull/g, v.bullet).replace('hr', '\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))').replace('def', '\\n+(?=' + v.def.source + ')').getRegex(),
+ v._tag = 'address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul',
+ v._comment = //,
+ v.html = c(v.html, 'i').replace('comment', v._comment).replace('tag', v._tag).replace('attribute', / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),
+ v.paragraph = c(v.paragraph).replace('hr', v.hr).replace('heading', v.heading).replace('lheading', v.lheading).replace('tag', v._tag).getRegex(),
+ v.blockquote = c(v.blockquote).replace('paragraph', v.paragraph).getRegex(),
+ v.normal = p({}, v),
+ v.gfm = p({}, v.normal, {
+ fences : /^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,
+ paragraph: /^/,
+ heading : /^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/
+ }),
+ v.gfm.paragraph = c(v.paragraph).replace('(?!', '(?!' + v.gfm.fences.source.replace('\\1', '\\2') + '|' + v.list.source.replace('\\1', '\\3') + '|').getRegex(),
+ v.tables = p({}, v.gfm, {
+ nptable: /^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,
+ table : /^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/
+ }),
+ v.pedantic = p({}, v.normal, {
+ html: c('^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))').replace('comment', v._comment).replace(/tag/g, '(?!(?: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').getRegex(),
+ def : /^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/
+ }),
+ n.rules = v,
+ 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, o, i, a, s, l, c, u, d, p, h, g; e;) {
+ if ((o = this.rules.newline.exec(e)) && (e = e.substring(o[0].length),
+ o[0].length > 1 && this.tokens.push({
+ type: 'space'
+ })),
+ o = this.rules.code.exec(e)) {
+ e = e.substring(o[0].length),
+ o = o[0].replace(/^ {4}/gm, ''),
+ this.tokens.push({
+ type: 'code',
+ text: this.options.pedantic ? o : o.replace(/\n+$/, '')
+ });
+ } else if (o = this.rules.fences.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type: 'code',
+ lang: o[2],
+ text: o[3] || ''
+ });
+ } else if (o = this.rules.heading.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type : 'heading',
+ depth: o[1].length,
+ text : o[2]
+ });
+ } else if (t && (o = this.rules.nptable.exec(e)) && (s = {
+ type : 'table',
+ header: f(o[1].replace(/^ *| *\| *$/g, '')),
+ align : o[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
+ cells : o[3] ? o[3].replace(/\n$/, '').split('\n') : []
+ },
+ s.header.length === s.align.length)) {
+ for (e = e.substring(o[0].length),
+ c = 0; c < s.align.length; c++) { /^ *-+: *$/.test(s.align[c]) ? s.align[c] = 'right' : /^ *:-+: *$/.test(s.align[c]) ? s.align[c] = 'center' : /^ *:-+ *$/.test(s.align[c]) ? s.align[c] = 'left' : s.align[c] = null; }
+ for (c = 0; c < s.cells.length; c++) { s.cells[c] = f(s.cells[c], s.header.length); }
+ this.tokens.push(s);
+ } else if (o = this.rules.hr.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type: 'hr'
+ });
+ } else if (o = this.rules.blockquote.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type: 'blockquote_start'
+ }),
+ o = o[0].replace(/^ *> ?/gm, ''),
+ this.token(o, t),
+ this.tokens.push({
+ type: 'blockquote_end'
+ });
+ } else if (o = this.rules.list.exec(e)) {
+ for (e = e.substring(o[0].length),
+ i = o[2],
+ p = i.length > 1,
+ this.tokens.push({
+ type : 'list_start',
+ ordered: p,
+ start : p ? +i : ''
+ }),
+ o = o[0].match(this.rules.item),
+ n = !1,
+ d = o.length,
+ c = 0; c < d; c++) {
+ s = o[c],
+ l = s.length,
+ s = s.replace(/^ *([*+-]|\d+\.) +/, ''),
+ ~s.indexOf('\n ') && (l -= s.length,
+ s = this.options.pedantic ? s.replace(/^ {1,4}/gm, '') : s.replace(new RegExp('^ {1,' + l + '}', 'gm'), '')),
+ this.options.smartLists && c !== d - 1 && (a = v.bullet.exec(o[c + 1])[0],
+ i === a || i.length > 1 && a.length > 1 || (e = o.slice(c + 1).join('\n') + e,
+ c = d - 1)),
+ r = n || /\n\n(?!\s*$)/.test(s),
+ c !== d - 1 && (n = s.charAt(s.length - 1) === '\n',
+ r || (r = n)),
+ h = /^\[[ xX]\] /.test(s),
+ g = void 0,
+ h && (g = s[1] !== ' ',
+ s = s.replace(/^\[[ xX]\] +/, '')),
+ this.tokens.push({
+ type : r ? 'loose_item_start' : 'list_item_start',
+ task : h,
+ checked: g
+ }),
+ this.token(s, !1),
+ this.tokens.push({
+ type: 'list_item_end'
+ });
+ }
+ this.tokens.push({
+ type: 'list_end'
+ });
+ } else if (o = this.rules.html.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type: this.options.sanitize ? 'paragraph' : 'html',
+ pre : !this.options.sanitizer && (o[1] === 'pre' || o[1] === 'script' || o[1] === 'style'),
+ text: o[0]
+ });
+ } else if (t && (o = this.rules.def.exec(e))) {
+ e = e.substring(o[0].length),
+ o[3] && (o[3] = o[3].substring(1, o[3].length - 1)),
+ u = o[1].toLowerCase().replace(/\s+/g, ' '),
+ this.tokens.links[u] || (this.tokens.links[u] = {
+ href : o[2],
+ title: o[3]
+ });
+ } else if (t && (o = this.rules.table.exec(e)) && (s = {
+ type : 'table',
+ header: f(o[1].replace(/^ *| *\| *$/g, '')),
+ align : o[2].replace(/^ *|\| *$/g, '').split(/ *\| */),
+ cells : o[3] ? o[3].replace(/(?: *\| *)?\n$/, '').split('\n') : []
+ },
+ s.header.length === s.align.length)) {
+ for (e = e.substring(o[0].length),
+ c = 0; c < s.align.length; c++) { /^ *-+: *$/.test(s.align[c]) ? s.align[c] = 'right' : /^ *:-+: *$/.test(s.align[c]) ? s.align[c] = 'center' : /^ *:-+ *$/.test(s.align[c]) ? s.align[c] = 'left' : s.align[c] = null; }
+ for (c = 0; c < s.cells.length; c++) { s.cells[c] = f(s.cells[c].replace(/^ *\| *| *\| *$/g, ''), s.header.length); }
+ this.tokens.push(s);
+ } else if (o = this.rules.lheading.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type : 'heading',
+ depth: o[2] === '=' ? 1 : 2,
+ text : o[1]
+ });
+ } else if (t && (o = this.rules.paragraph.exec(e))) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type: 'paragraph',
+ text: o[1].charAt(o[1].length - 1) === '\n' ? o[1].slice(0, -1) : o[1]
+ });
+ } else if (o = this.rules.text.exec(e)) {
+ e = e.substring(o[0].length),
+ this.tokens.push({
+ type: 'text',
+ text: o[0]
+ });
+ } else if (e) { throw new Error('Infinite loop on byte: ' + e.charCodeAt(0)); }
+ }
+ return this.tokens;
+ }
+ ;
+ var g = {
+ escape : /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
+ autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/,
+ url : d,
+ tag : '^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^',
+ link : /^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,
+ reflink : /^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,
+ nolink : /^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,
+ strong : /^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)|^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)/,
+ em : /^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*][\s\S]*?[^\s])\*(?!\*)|^_([^\s_])_(?!_)|^\*([^\s*])\*(?!\*)/,
+ code : /^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,
+ br : /^ {2,}\n(?!\s*$)/,
+ del : d,
+ text : /^[\s\S]+?(?=[\\?@\[\]\\^_`{|}~])/g,
+ g._scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,
+ g._email = /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,
+ g.autolink = c(g.autolink).replace('scheme', g._scheme).replace('email', g._email).getRegex(),
+ g._attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,
+ g.tag = c(g.tag).replace('comment', v._comment).replace('attribute', g._attribute).getRegex(),
+ g._label = /(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,
+ g._href = /\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f()\\]*\)|[^\s\x00-\x1f()\\])*?)/,
+ g._title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,
+ g.link = c(g.link).replace('label', g._label).replace('href', g._href).replace('title', g._title).getRegex(),
+ g.reflink = c(g.reflink).replace('label', g._label).getRegex(),
+ g.normal = p({}, g),
+ g.pedantic = p({}, g.normal, {
+ strong : /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
+ em : /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,
+ link : c(/^!?\[(label)\]\((.*?)\)/).replace('label', g._label).getRegex(),
+ reflink: c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace('label', g._label).getRegex()
+ }),
+ g.gfm = p({}, g.normal, {
+ escape : c(g.escape).replace('])', '~|])').getRegex(),
+ url : c(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace('email', g._email).getRegex(),
+ _backpedal: /(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,
+ del : /^~~(?=\S)([\s\S]*?\S)~~/,
+ text : c(g.text).replace(']|', '~]|').replace('|', '|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&\'*+/=?^_`{\\|}~-]+@|').getRegex()
+ }),
+ g.breaks = p({}, g.gfm, {
+ br : c(g.br).replace('{2,}', '*').getRegex(),
+ text: c(g.gfm.text).replace('{2,}', '*').getRegex()
+ }),
+ r.rules = g,
+ r.output = function(e, t, n) {
+ return new r(t, n).output(e);
+ }
+ ,
+ r.prototype.output = function(e) {
+ for (var t, n, o, i, a, l = ''; e;) {
+ if (a = this.rules.escape.exec(e)) {
+ e = e.substring(a[0].length),
+ l += a[1];
+ } else if (a = this.rules.autolink.exec(e)) {
+ e = e.substring(a[0].length),
+ a[2] === '@' ? (n = s(this.mangle(a[1])),
+ o = 'mailto:' + n) : (n = s(a[1]),
+ o = n),
+ l += this.renderer.link(o, null, n);
+ } else if (this.inLink || !(a = this.rules.url.exec(e))) {
+ if (a = this.rules.tag.exec(e)) {
+ !this.inLink && /^/i.test(a[0]) && (this.inLink = !1),
+ e = e.substring(a[0].length),
+ l += this.options.sanitize ? this.options.sanitizer ? this.options.sanitizer(a[0]) : s(a[0]) : a[0];
+ } else if (a = this.rules.link.exec(e)) {
+ e = e.substring(a[0].length),
+ this.inLink = !0,
+ o = a[2],
+ this.options.pedantic ? (t = /^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o),
+ t ? (o = t[1],
+ i = t[3]) : i = '') : i = a[3] ? a[3].slice(1, -1) : '',
+ o = o.trim().replace(/^<([\s\S]*)>$/, '$1'),
+ l += this.outputLink(a, {
+ href : r.escapes(o),
+ title: r.escapes(i)
+ }),
+ this.inLink = !1;
+ } else if ((a = this.rules.reflink.exec(e)) || (a = this.rules.nolink.exec(e))) {
+ if (e = e.substring(a[0].length),
+ t = (a[2] || a[1]).replace(/\s+/g, ' '),
+ !(t = this.links[t.toLowerCase()]) || !t.href) {
+ l += a[0].charAt(0),
+ e = a[0].substring(1) + e;
+ continue;
+ }
+ this.inLink = !0,
+ l += this.outputLink(a, t),
+ this.inLink = !1;
+ } else if (a = this.rules.strong.exec(e)) {
+ e = e.substring(a[0].length),
+ l += this.renderer.strong(this.output(a[4] || a[3] || a[2] || a[1]));
+ } else if (a = this.rules.em.exec(e)) {
+ e = e.substring(a[0].length),
+ l += this.renderer.em(this.output(a[6] || a[5] || a[4] || a[3] || a[2] || a[1]));
+ } else if (a = this.rules.code.exec(e)) {
+ e = e.substring(a[0].length),
+ l += this.renderer.codespan(s(a[2].trim(), !0));
+ } else if (a = this.rules.br.exec(e)) {
+ e = e.substring(a[0].length),
+ l += this.renderer.br();
+ } else if (a = this.rules.del.exec(e)) {
+ e = e.substring(a[0].length),
+ l += this.renderer.del(this.output(a[1]));
+ } else if (a = this.rules.text.exec(e)) {
+ e = e.substring(a[0].length),
+ l += this.renderer.text(s(this.smartypants(a[0])));
+ } else if (e) { throw new Error('Infinite loop on byte: ' + e.charCodeAt(0)); }
+ } else {
+ a[0] = this.rules._backpedal.exec(a[0])[0],
+ e = e.substring(a[0].length),
+ a[2] === '@' ? (n = s(a[0]),
+ o = 'mailto:' + n) : (n = s(a[0]),
+ o = a[1] === 'www.' ? 'http://' + n : n),
+ l += this.renderer.link(o, null, n);
+ }
+ }
+ return l;
+ }
+ ,
+ r.escapes = function(e) {
+ return e ? e.replace(r.rules._escapes, '$1') : e;
+ }
+ ,
+ r.prototype.outputLink = function(e, t) {
+ var n = t.href
+ ; var 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, o = 0; o < r; o++) {
+ t = e.charCodeAt(o),
+ Math.random() > .5 && (t = 'x' + t.toString(16)),
+ n += '' + t + ';';
+ }
+ return n;
+ }
+ ,
+ o.prototype.code = function(e, t, n) {
+ if (this.options.highlight) {
+ var r = this.options.highlight(e, t);
+ r != null && r !== e && (n = !0,
+ e = r);
+ }
+ return t ? '' + (n ? e : s(e, !0)) + '
\n' : '' + (n ? e : s(e, !0)) + '
';
+ }
+ ,
+ o.prototype.blockquote = function(e) {
+ return '\n' + e + ' \n';
+ }
+ ,
+ o.prototype.html = function(e) {
+ return e;
+ }
+ ,
+ o.prototype.heading = function(e, t, n) {
+ return this.options.headerIds ? '\n' : '' + e + ' \n';
+ }
+ ,
+ o.prototype.hr = function() {
+ return this.options.xhtml ? ' \n' : ' \n';
+ }
+ ,
+ o.prototype.list = function(e, t, n) {
+ var r = t ? 'ol' : 'ul';
+ return '<' + r + (t && n !== 1 ? ' start="' + n + '"' : '') + '>\n' + e + '' + r + '>\n';
+ }
+ ,
+ o.prototype.listitem = function(e) {
+ return '' + e + ' \n';
+ }
+ ,
+ o.prototype.checkbox = function(e) {
+ return ' ';
+ }
+ ,
+ o.prototype.paragraph = function(e) {
+ return '' + e + '
\n';
+ }
+ ,
+ o.prototype.table = function(e, t) {
+ return t && (t = '' + t + ' '),
+ ' \n';
+ }
+ ,
+ o.prototype.tablerow = function(e) {
+ return '\n' + e + ' \n';
+ }
+ ,
+ o.prototype.tablecell = function(e, t) {
+ var n = t.header ? 'th' : 'td';
+ return (t.align ? '<' + n + ' align="' + t.align + '">' : '<' + n + '>') + e + '' + n + '>\n';
+ }
+ ,
+ o.prototype.strong = function(e) {
+ return '' + e + ' ';
+ }
+ ,
+ o.prototype.em = function(e) {
+ return '' + e + ' ';
+ }
+ ,
+ o.prototype.codespan = function(e) {
+ return '' + e + '
';
+ }
+ ,
+ o.prototype.br = function() {
+ return this.options.xhtml ? ' ' : ' ';
+ }
+ ,
+ o.prototype.del = function(e) {
+ return '' + e + '';
+ }
+ ,
+ o.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 (r.indexOf('javascript:') === 0 || r.indexOf('vbscript:') === 0 || r.indexOf('data:') === 0) { return n; }
+ }
+ this.options.baseUrl && !y.test(e) && (e = u(this.options.baseUrl, e));
+ try {
+ e = encodeURI(e).replace(/%25/g, '%');
+ } catch (e) {
+ return n;
+ }
+ var o = '' + n + ' ';
+ }
+ ,
+ o.prototype.image = function(e, t, n) {
+ this.options.baseUrl && !y.test(e) && (e = u(this.options.baseUrl, e));
+ var r = ' ' : '>';
+ }
+ ,
+ o.prototype.text = function(e) {
+ return e;
+ }
+ ,
+ i.prototype.strong = i.prototype.em = i.prototype.codespan = i.prototype.del = i.prototype.text = function(e) {
+ return e;
+ }
+ ,
+ i.prototype.link = i.prototype.image = function(e, t, n) {
+ return '' + n;
+ }
+ ,
+ i.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, p({}, this.options, {
+ renderer: new i()
+ })),
+ 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; this.peek().type === 'text';) { 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; var t; var n; var r; var o = ''; var i = '';
+ for (n = '',
+ e = 0; e < this.token.header.length; e++) {
+ n += this.renderer.tablecell(this.inline.output(this.token.header[e]), {
+ header: !0,
+ align : this.token.align[e]
+ });
+ }
+ for (o += this.renderer.tablerow(n),
+ e = 0; e < this.token.cells.length; e++) {
+ for (t = this.token.cells[e],
+ n = '',
+ r = 0; r < t.length; r++) {
+ n += this.renderer.tablecell(this.inline.output(t[r]), {
+ header: !1,
+ align : this.token.align[r]
+ });
+ }
+ i += this.renderer.tablerow(n);
+ }
+ return this.renderer.table(o, i);
+ case 'blockquote_start':
+ for (i = ''; this.next().type !== 'blockquote_end';) { i += this.tok(); }
+ return this.renderer.blockquote(i);
+ case 'list_start':
+ i = '';
+ for (var a = this.token.ordered, s = this.token.start; this.next().type !== 'list_end';) { i += this.tok(); }
+ return this.renderer.list(i, a, s);
+ case 'list_item_start':
+ for (i = '',
+ this.token.task && (i += this.renderer.checkbox(this.token.checked)); this.next().type !== 'list_item_end';) { i += this.token.type === 'text' ? this.parseText() : this.tok(); }
+ return this.renderer.listitem(i);
+ case 'loose_item_start':
+ for (i = ''; this.next().type !== 'list_item_end';) { i += this.tok(); }
+ return this.renderer.listitem(i);
+ case 'html':
+ return this.renderer.html(this.token.text);
+ case 'paragraph':
+ return this.renderer.paragraph(this.inline.output(this.token.text));
+ case 'text':
+ return this.renderer.paragraph(this.parseText());
+ }
+ }
+ ;
+ var m = {}
+ ; var y = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
+ d.exec = d,
+ h.options = h.setOptions = function(e) {
+ return p(h.defaults, e),
+ h;
+ }
+ ,
+ h.getDefaults = function() {
+ return {
+ baseUrl : null,
+ breaks : !1,
+ gfm : !0,
+ headerIds : !0,
+ headerPrefix: '',
+ highlight : null,
+ langPrefix : 'language-',
+ mangle : !0,
+ pedantic : !1,
+ renderer : new o(),
+ sanitize : !1,
+ sanitizer : null,
+ silent : !1,
+ smartLists : !1,
+ smartypants : !1,
+ tables : !0,
+ xhtml : !1
+ };
+ }
+ ,
+ h.defaults = h.getDefaults(),
+ h.Parser = a,
+ h.parser = a.parse,
+ h.Renderer = o,
+ h.TextRenderer = i,
+ h.Lexer = n,
+ h.lexer = n.lex,
+ h.InlineLexer = r,
+ h.inlineLexer = r.output,
+ h.parse = h,
+ e.exports = h;
+ })(this || typeof window != 'undefined' && window);
+ }
+ ).call(t, n(14));
+ },
+ function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ var t = {};
+ return u(e, function(e, n) {
+ u(e, function(e) {
+ t[e] = n;
+ });
+ }),
+ t;
+ }
+ function o(e, t) {
+ var n = r(e.pluralTypeToLanguages);
+ return n[t] || n[g.call(t, /-/, 1)[0]] || n.en;
+ }
+ function i(e, t, n) {
+ return e.pluralTypes[o(e, t)](n);
+ }
+ function a(e) {
+ return e.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
+ }
+ function s(e) {
+ var t = e && e.prefix || '%{'
+ ; var n = e && e.suffix || '}';
+ if (t === m || n === m) { throw new RangeError('"' + m + '" token is reserved for pluralization'); }
+ return new RegExp(a(t) + '(.*?)' + a(n), 'g');
+ }
+ function l(e, t, n, r, o) {
+ if (typeof e != 'string') { throw new TypeError('Polyglot.transformPhrase expects argument #1 to be string'); }
+ if (t == null) { return e; }
+ var a = e
+ ; var s = r || w
+ ; var l = o || b
+ ; var c = typeof t == 'number' ? {
+ smart_count: t
+ } : t;
+ if (c.smart_count != null && a) {
+ var u = g.call(a, m);
+ a = f(u[i(l, n || 'en', c.smart_count)] || u[0]);
+ }
+ return a = v.call(a, s, function(e, t) {
+ return p(c, t) && c[t] != null ? c[t] : e;
+ });
+ }
+ function c(e) {
+ var t = e || {};
+ this.phrases = {},
+ this.extend(t.phrases || {}),
+ this.currentLocale = t.locale || 'en';
+ var n = t.allowMissing ? l : null;
+ this.onMissingKey = typeof t.onMissingKey == 'function' ? t.onMissingKey : n,
+ this.warn = t.warn || h,
+ this.tokenRegex = s(t.interpolation),
+ this.pluralRules = t.pluralRules || b;
+ }
+ var u = n(31)
+ ; var d = n(50)
+ ; var p = n(34)
+ ; var f = n(43)
+ ; var h = function(e) {
+ d(!1, e);
+ }
+ ; var v = String.prototype.replace
+ ; var g = String.prototype.split
+ ; var m = '||||'
+ ; var y = function(e) {
+ var t = e % 100
+ ; var n = t % 10;
+ return t !== 11 && n === 1 ? 0 : n >= 2 && n <= 4 && !(t >= 12 && t <= 14) ? 1 : 2;
+ }
+ ; var b = {
+ pluralTypes: {
+ arabic: function(e) {
+ if (e < 3) { return e; }
+ var t = e % 100;
+ return t >= 3 && t <= 10 ? 3 : t >= 11 ? 4 : 5;
+ },
+ bosnian_serbian: y,
+ chinese : function() {
+ return 0;
+ },
+ croatian: y,
+ french : function(e) {
+ return e > 1 ? 1 : 0;
+ },
+ german: function(e) {
+ return e !== 1 ? 1 : 0;
+ },
+ russian : y,
+ lithuanian: function(e) {
+ return e % 10 == 1 && e % 100 != 11 ? 0 : e % 10 >= 2 && e % 10 <= 9 && (e % 100 < 11 || e % 100 > 19) ? 1 : 2;
+ },
+ czech: function(e) {
+ return e === 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2;
+ },
+ polish: function(e) {
+ if (e === 1) { return 0; }
+ var t = e % 10;
+ return t >= 2 && t <= 4 && (e % 100 < 10 || e % 100 >= 20) ? 1 : 2;
+ },
+ icelandic: function(e) {
+ return e % 10 != 1 || e % 100 == 11 ? 1 : 0;
+ },
+ slovenian: function(e) {
+ var t = e % 100;
+ return t === 1 ? 0 : t === 2 ? 1 : t === 3 || t === 4 ? 2 : 3;
+ }
+ },
+ pluralTypeToLanguages: {
+ arabic : ['ar'],
+ bosnian_serbian: ['bs-Latn-BA', 'bs-Cyrl-BA', 'srl-RS', 'sr-RS'],
+ chinese : ['id', 'id-ID', 'ja', 'ko', 'ko-KR', 'lo', 'ms', 'th', 'th-TH', 'zh'],
+ croatian : ['hr', 'hr-HR'],
+ german : ['fa', 'da', 'de', 'en', 'es', 'fi', 'el', 'he', 'hi-IN', 'hu', 'hu-HU', 'it', 'nl', 'no', 'pt', 'sv', 'tr'],
+ french : ['fr', 'tl', 'pt-br'],
+ russian : ['ru', 'ru-RU'],
+ lithuanian : ['lt'],
+ czech : ['cs', 'cs-CZ', 'sk'],
+ polish : ['pl'],
+ icelandic : ['is'],
+ slovenian : ['sl-SL']
+ }
+ }
+ ; var w = /%\{(.*?)\}/g;
+ c.prototype.locale = function(e) {
+ return e && (this.currentLocale = e),
+ this.currentLocale;
+ }
+ ,
+ c.prototype.extend = function(e, t) {
+ u(e, function(e, n) {
+ var r = t ? t + '.' + n : n;
+ typeof e == 'object' ? this.extend(e, r) : this.phrases[r] = e;
+ }, this);
+ }
+ ,
+ c.prototype.unset = function(e, t) {
+ typeof e == 'string' ? delete this.phrases[e] : u(e, function(e, n) {
+ var r = t ? t + '.' + n : n;
+ typeof e == 'object' ? this.unset(e, r) : delete this.phrases[r];
+ }, this);
+ }
+ ,
+ c.prototype.clear = function() {
+ this.phrases = {};
+ }
+ ,
+ c.prototype.replace = function(e) {
+ this.clear(),
+ this.extend(e);
+ }
+ ,
+ c.prototype.t = function(e, t) {
+ var n, r; var o = t == null ? {} : t;
+ if (typeof this.phrases[e] == 'string') { n = this.phrases[e]; } else if (typeof o._ == 'string') { n = o._; } else if (this.onMissingKey) {
+ var i = this.onMissingKey;
+ r = i(e, o, this.currentLocale, this.tokenRegex, this.pluralRules);
+ } else {
+ this.warn('Missing translation for key: "' + e + '"'),
+ r = e;
+ }
+ return typeof n == 'string' && (r = l(n, o, this.currentLocale, this.tokenRegex, this.pluralRules)),
+ r;
+ }
+ ,
+ c.prototype.has = function(e) {
+ return p(this.phrases, e);
+ }
+ ,
+ c.transformPhrase = function(e, t, n) {
+ return l(e, t, n);
+ }
+ ,
+ e.exports = c;
+ },
+ function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ if (e === null || void 0 === e) { throw new TypeError('Object.assign cannot be called with null or undefined'); }
+ return Object(e);
+ }
+
+ /*
+object-assign
+(c) Sindre Sorhus
+@license MIT
+*/
+ var o = Object.getOwnPropertySymbols
+ ; var i = Object.prototype.hasOwnProperty
+ ; var a = Object.prototype.propertyIsEnumerable;
+ e.exports = (function() {
+ try {
+ if (!Object.assign) { return !1; }
+ var e = new String('abc');
+ if (e[5] = 'de',
+ Object.getOwnPropertyNames(e)[0] === '5') { return !1; }
+ for (var t = {}, n = 0; n < 10; n++) { t['_' + String.fromCharCode(n)] = n; }
+ if (Object.getOwnPropertyNames(t).map(function(e) {
+ return t[e];
+ }).join('') !== '0123456789') { return !1; }
+ var r = {};
+ return 'abcdefghijklmnopqrst'.split('').forEach(function(e) {
+ r[e] = e;
+ }),
+ Object.keys(Object.assign({}, r)).join('') === 'abcdefghijklmnopqrst';
+ } catch (e) {
+ return !1;
+ }
+ })() ? Object.assign : function(e, t) {
+ for (var n, s, l = r(e), c = 1; c < arguments.length; c++) {
+ n = Object(arguments[c]);
+ for (var u in n) { i.call(n, u) && (l[u] = n[u]); }
+ if (o) {
+ s = o(n);
+ for (var d = 0; d < s.length; d++) { a.call(n, s[d]) && (l[s[d]] = n[s[d]]); }
+ }
+ }
+ return l;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r;
+ if (!Object.keys) {
+ var o = Object.prototype.hasOwnProperty
+ ; var i = Object.prototype.toString
+ ; var a = n(10)
+ ; var s = Object.prototype.propertyIsEnumerable
+ ; var l = !s.call({
+ toString: null
+ }, 'toString')
+ ; var c = s.call(function() {}, 'prototype')
+ ; var u = ['toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor']
+ ; var d = function(e) {
+ var t = e.constructor;
+ return t && t.prototype === e;
+ }
+ ; var p = {
+ $applicationCache : !0,
+ $console : !0,
+ $external : !0,
+ $frame : !0,
+ $frameElement : !0,
+ $frames : !0,
+ $innerHeight : !0,
+ $innerWidth : !0,
+ $outerHeight : !0,
+ $outerWidth : !0,
+ $pageXOffset : !0,
+ $pageYOffset : !0,
+ $parent : !0,
+ $scrollLeft : !0,
+ $scrollTop : !0,
+ $scrollX : !0,
+ $scrollY : !0,
+ $self : !0,
+ $webkitIndexedDB : !0,
+ $webkitStorageInfo: !0,
+ $window : !0
+ }
+ ; var f = (function() {
+ if (typeof window == 'undefined') { return !1; }
+ for (var e in window) {
+ try {
+ if (!p['$' + e] && o.call(window, e) && window[e] !== null && typeof window[e] == 'object') {
+ try {
+ d(window[e]);
+ } catch (e) {
+ return !0;
+ }
+ }
+ } catch (e) {
+ return !0;
+ }
+ }
+ return !1;
+ })()
+ ; var h = function(e) {
+ if (typeof window == 'undefined' || !f) { return d(e); }
+ try {
+ return d(e);
+ } catch (e) {
+ return !1;
+ }
+ };
+ r = function(e) {
+ var t = e !== null && typeof e == 'object'
+ ; var n = i.call(e) === '[object Function]'
+ ; var r = a(e)
+ ; var s = t && i.call(e) === '[object String]'
+ ; var d = [];
+ if (!t && !n && !r) { throw new TypeError('Object.keys called on a non-object'); }
+ var p = c && n;
+ if (s && e.length > 0 && !o.call(e, 0)) {
+ for (var f = 0; f < e.length; ++f) { d.push(String(f)); }
+ }
+ if (r && e.length > 0) {
+ for (var v = 0; v < e.length; ++v) { d.push(String(v)); }
+ } else {
+ for (var g in e) { p && g === 'prototype' || !o.call(e, g) || d.push(String(g)); }
+ }
+ if (l) {
+ for (var m = h(e), y = 0; y < u.length; ++y) { m && u[y] === 'constructor' || !o.call(e, u[y]) || d.push(u[y]); }
+ }
+ return d;
+ };
+ }
+ e.exports = r;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = Array.prototype.slice
+ ; var o = n(10)
+ ; var i = Object.keys
+ ; var a = i ? function(e) {
+ return i(e);
+ }
+ : n(39)
+ ; var s = Object.keys;
+ a.shim = function() {
+ if (Object.keys) {
+ (function() {
+ var e = Object.keys(arguments);
+ return e && e.length === arguments.length;
+ }
+ )(1, 2) || (Object.keys = function(e) {
+ return s(o(e) ? r.call(e) : e);
+ }
+ );
+ } else { Object.keys = a; }
+ return Object.keys || a;
+ }
+ ,
+ e.exports = a;
+ },
+ function(e, t) {
+ function n() {
+ throw new Error('setTimeout has not been defined');
+ }
+ function r() {
+ throw new Error('clearTimeout has not been defined');
+ }
+ function o(e) {
+ if (u === setTimeout) { return setTimeout(e, 0); }
+ if ((u === n || !u) && setTimeout) {
+ return u = setTimeout,
+ setTimeout(e, 0);
+ }
+ try {
+ return u(e, 0);
+ } catch (t) {
+ try {
+ return u.call(null, e, 0);
+ } catch (t) {
+ return u.call(this, e, 0);
+ }
+ }
+ }
+ function i(e) {
+ if (d === clearTimeout) { return clearTimeout(e); }
+ if ((d === r || !d) && clearTimeout) {
+ return d = clearTimeout,
+ clearTimeout(e);
+ }
+ try {
+ return d(e);
+ } catch (t) {
+ try {
+ return d.call(null, e);
+ } catch (t) {
+ return d.call(this, e);
+ }
+ }
+ }
+ function a() {
+ v && f && (v = !1,
+ f.length ? h = f.concat(h) : g = -1,
+ h.length && s());
+ }
+ function s() {
+ if (!v) {
+ var e = o(a);
+ v = !0;
+ for (var t = h.length; t;) {
+ for (f = h,
+ h = []; ++g < t;) { f && f[g].run(); }
+ g = -1,
+ t = h.length;
+ }
+ f = null,
+ v = !1,
+ i(e);
+ }
+ }
+ function l(e, t) {
+ this.fun = e,
+ this.array = t;
+ }
+ function c() {}
+ var u, d; var p = e.exports = {};
+ !(function() {
+ try {
+ u = typeof setTimeout == 'function' ? setTimeout : n;
+ } catch (e) {
+ u = n;
+ }
+ try {
+ d = typeof clearTimeout == 'function' ? clearTimeout : r;
+ } catch (e) {
+ d = r;
+ }
+ })();
+ var f; var h = []; var v = !1; var g = -1;
+ p.nextTick = function(e) {
+ var t = new Array(arguments.length - 1);
+ if (arguments.length > 1) {
+ for (var n = 1; n < arguments.length; n++) { t[n - 1] = arguments[n]; }
+ }
+ h.push(new l(e, t)),
+ h.length !== 1 || v || o(s);
+ }
+ ,
+ l.prototype.run = function() {
+ this.fun.apply(null, this.array);
+ }
+ ,
+ p.title = 'browser',
+ p.browser = !0,
+ p.env = {},
+ p.argv = [],
+ p.version = '',
+ p.versions = {},
+ p.on = c,
+ p.addListener = c,
+ p.once = c,
+ p.off = c,
+ p.removeListener = c,
+ p.removeAllListeners = c,
+ p.emit = c,
+ p.prependListener = c,
+ p.prependOnceListener = c,
+ p.listeners = function(e) {
+ return [];
+ }
+ ,
+ p.binding = function(e) {
+ throw new Error('process.binding is not supported');
+ }
+ ,
+ p.cwd = function() {
+ return '/';
+ }
+ ,
+ p.chdir = function(e) {
+ throw new Error('process.chdir is not supported');
+ }
+ ,
+ p.umask = function() {
+ return 0;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ function r(e) {
+ return e = JSON.stringify(e),
+ !!/^\{[\s\S]*\}$/.test(e);
+ }
+ function o(e) {
+ return void 0 === e || typeof e == 'function' ? e + '' : JSON.stringify(e);
+ }
+ function i(e) {
+ if (typeof e == 'string') {
+ try {
+ return JSON.parse(e);
+ } catch (t) {
+ return e;
+ }
+ }
+ }
+ function a(e) {
+ return {}.toString.call(e) === '[object Function]';
+ }
+ function s(e) {
+ return Object.prototype.toString.call(e) === '[object Array]';
+ }
+ function l() {
+ if (!(this instanceof l)) { return new l(); }
+ }
+ function c(e, t) {
+ var n = arguments
+ ; var o = null;
+ if (d || (d = l()),
+ n.length === 0) { return d.get(); }
+ if (n.length === 1) {
+ if (typeof e == 'string') { return d.get(e); }
+ if (r(e)) { return d.set(e); }
+ }
+ if (n.length === 2 && typeof e == 'string') {
+ if (!t) { return d.remove(e); }
+ if (t && typeof t == 'string') { return d.set(e, t); }
+ t && a(t) && (o = null,
+ o = t(e, d.get(e)),
+ c.set(e, o));
+ }
+ if (n.length === 2 && s(e) && a(t)) {
+ for (var i = 0, u = e.length; i < u; i++) {
+ o = t(e[i], d.get(e[i])),
+ c.set(e[i], o);
+ }
+ }
+ return c;
+ }
+ Object.defineProperty(t, '__esModule', {
+ value: !0
+ });
+
+ /*!
+ * storejs v1.0.24
+ * Local storage localstorage package provides a simple API
+ *
+ * Copyright (c) 2018 kenny wang
+ * https://github.com/jaywcjlove/store.js
+ *
+ * Licensed under the MIT license.
+ */
+ var u = window.localStorage;
+ u = (function(e) {
+ var t = '_Is_Incognit';
+ try {
+ e.setItem(t, 'yes');
+ } catch (t) {
+ if (t.name === 'QuotaExceededError') {
+ var n = function() {};
+ e.__proto__ = {
+ setItem : n,
+ getItem : n,
+ removeItem: n,
+ clear : n
+ };
+ }
+ } finally {
+ e.getItem(t) === 'yes' && e.removeItem(t);
+ }
+ return e;
+ })(u),
+ l.prototype = {
+ set: function(e, t) {
+ if (e && !r(e)) { u.setItem(e, o(t)); } else if (r(e)) {
+ for (var n in e) { this.set(n, e[n]); }
+ }
+ return this;
+ },
+ get: function(e) {
+ if (!e) {
+ var t = {};
+ return this.forEach(function(e, n) {
+ return t[e] = n;
+ }),
+ t;
+ }
+ if (e.charAt(0) === '?') { return this.has(e.substr(1)); }
+ var n = arguments;
+ if (n.length > 1) {
+ for (var r = {}, o = 0, a = n.length; o < a; o++) {
+ var s = i(u.getItem(n[o]));
+ s && (r[n[o]] = s);
+ }
+ return r;
+ }
+ return i(u.getItem(e));
+ },
+ clear: function() {
+ return u.clear(),
+ this;
+ },
+ remove: function(e) {
+ var t = this.get(e);
+ return u.removeItem(e),
+ t;
+ },
+ has: function(e) {
+ return {}.hasOwnProperty.call(this.get(), e);
+ },
+ keys: function() {
+ var e = [];
+ return this.forEach(function(t) {
+ e.push(t);
+ }),
+ e;
+ },
+ forEach: function(e) {
+ for (var t = 0, n = u.length; t < n; t++) {
+ var r = u.key(t);
+ e(r, this.get(r));
+ }
+ return this;
+ },
+ search: function(e) {
+ for (var t = this.keys(), n = {}, r = 0, o = t.length; r < o; r++) { t[r].indexOf(e) > -1 && (n[t[r]] = this.get(t[r])); }
+ return n;
+ }
+ };
+ var d = null;
+ for (var p in l.prototype) { c[p] = l.prototype[p]; }
+ t.default = c;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(12)
+ ; var o = n(9)
+ ; var i = n(11)
+ ; var a = n(13)
+ ; var s = n(49)
+ ; var l = r(a());
+ o(l, {
+ getPolyfill : a,
+ implementation: i,
+ shim : s
+ }),
+ e.exports = l;
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(1)
+ ; var o = r('%String%')
+ ; var i = r('%TypeError%');
+ e.exports = function(e) {
+ if (typeof e == 'symbol') { throw new i('Cannot convert a Symbol value to a string'); }
+ return o(e);
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(1)
+ ; var o = r('%TypeError%');
+ e.exports = function(e, t) {
+ if (e == null) { throw new o(t || 'Cannot call method on ' + e); }
+ return e;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(1)
+ ; var o = n(12)
+ ; var i = o(r('String.prototype.indexOf'));
+ e.exports = function(e, t) {
+ var n = r(e, !!t);
+ return typeof n == 'function' && i(e, '.prototype.') ? o(n) : n;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ (function(t) {
+ var r = t.Symbol
+ ; var o = n(48);
+ e.exports = function() {
+ return typeof r == 'function' && (typeof Symbol == 'function' && (typeof r('foo') == 'symbol' && (typeof Symbol('bar') == 'symbol' && o())));
+ };
+ }
+ ).call(t, n(14));
+ },
+ function(e, t, n) {
+ 'use strict';
+ e.exports = function() {
+ if (typeof Symbol != 'function' || typeof Object.getOwnPropertySymbols != 'function') { return !1; }
+ if (typeof Symbol.iterator == 'symbol') { return !0; }
+ var e = {}
+ ; var t = Symbol('test')
+ ; var n = Object(t);
+ if (typeof t == 'string') { return !1; }
+ if (Object.prototype.toString.call(t) !== '[object Symbol]') { return !1; }
+ if (Object.prototype.toString.call(n) !== '[object Symbol]') { return !1; }
+ e[t] = 42;
+ for (t in e) { return !1; }
+ if (typeof Object.keys == 'function' && Object.keys(e).length !== 0) { return !1; }
+ if (typeof Object.getOwnPropertyNames == 'function' && Object.getOwnPropertyNames(e).length !== 0) { return !1; }
+ var r = Object.getOwnPropertySymbols(e);
+ if (r.length !== 1 || r[0] !== t) { return !1; }
+ if (!Object.prototype.propertyIsEnumerable.call(e, t)) { return !1; }
+ if (typeof Object.getOwnPropertyDescriptor == 'function') {
+ var o = Object.getOwnPropertyDescriptor(e, t);
+ if (o.value !== 42 || !0 !== o.enumerable) { return !1; }
+ }
+ return !0;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ var r = n(9)
+ ; var o = n(13);
+ e.exports = function() {
+ var e = o();
+ return r(String.prototype, {
+ trim: e
+ }, {
+ trim: function() {
+ return String.prototype.trim !== e;
+ }
+ }),
+ e;
+ };
+ },
+ function(e, t, n) {
+ 'use strict';
+ (function(t) {
+ var n = t.env.NODE_ENV !== 'production'
+ ; var r = function() {};
+ if (n) {
+ var o = function(e, t) {
+ var n = arguments.length;
+ t = new Array(n > 1 ? n - 1 : 0);
+ for (var r = 1; r < n; r++) { t[r - 1] = arguments[r]; }
+ var o = 0
+ ; var i = 'Warning: ' + e.replace(/%s/g, function() {
+ return t[o++];
+ });
+ try {
+ throw new Error(i);
+ } catch (e) {}
+ };
+ r = function(e, t, n) {
+ var r = arguments.length;
+ n = new Array(r > 2 ? r - 2 : 0);
+ for (var i = 2; i < r; i++) { n[i - 2] = arguments[i]; }
+ if (void 0 === t) { throw new Error('`warning(condition, format, ...args)` requires a warning message argument'); }
+ e || o.apply(null, [t].concat(n));
+ };
+ }
+ e.exports = r;
+ }
+ ).call(t, n(41));
+ },
+ function(e, t, n) {
+ function r(e, t) {
+ return new a(t).process(e);
+ }
+ var o = n(15)
+ ; var i = n(16)
+ ; var a = n(52);
+ t = e.exports = r,
+ t.filterXSS = r,
+ t.FilterXSS = a;
+ for (var s in o) { t[s] = o[s]; }
+ for (var s in i) { t[s] = i[s]; }
+ typeof window != 'undefined' && (window.filterXSS = e.exports),
+ (function() {
+ return typeof self != 'undefined' && typeof DedicatedWorkerGlobalScope != 'undefined' && self instanceof DedicatedWorkerGlobalScope;
+ })() && (self.filterXSS = e.exports);
+ },
+ function(e, t, n) {
+ function r(e) {
+ return void 0 === e || e === null;
+ }
+ function o(e) {
+ var t = p.spaceIndex(e);
+ if (t === -1) {
+ return {
+ html : '',
+ closing: e[e.length - 2] === '/'
+ };
+ }
+ e = p.trim(e.slice(t + 1, -1));
+ var n = e[e.length - 1] === '/';
+ return n && (e = p.trim(e.slice(0, -1))),
+ {
+ html : e,
+ closing: n
+ };
+ }
+ function i(e) {
+ var t = {};
+ for (var n in e) { t[n] = e[n]; }
+ return t;
+ }
+ function a(e) {
+ e = i(e || {}),
+ e.stripIgnoreTag && (e.onIgnoreTag,
+ e.onIgnoreTag = l.onIgnoreTagStripAll),
+ e.whiteList = e.whiteList || l.whiteList,
+ e.onTag = e.onTag || l.onTag,
+ e.onTagAttr = e.onTagAttr || l.onTagAttr,
+ e.onIgnoreTag = e.onIgnoreTag || l.onIgnoreTag,
+ e.onIgnoreTagAttr = e.onIgnoreTagAttr || l.onIgnoreTagAttr,
+ e.safeAttrValue = e.safeAttrValue || l.safeAttrValue,
+ e.escapeHtml = e.escapeHtml || l.escapeHtml,
+ this.options = e,
+ !1 === e.css ? this.cssFilter = !1 : (e.css = e.css || {},
+ this.cssFilter = new s(e.css));
+ }
+ var s = n(3).FilterCSS
+ ; var l = n(15)
+ ; var c = n(16)
+ ; var u = c.parseTag
+ ; var d = c.parseAttr
+ ; var p = n(5);
+ a.prototype.process = function(e) {
+ if (e = e || '',
+ !(e = e.toString())) { return ''; }
+ var t = this
+ ; var n = t.options
+ ; var i = n.whiteList
+ ; var a = n.onTag
+ ; var s = n.onIgnoreTag
+ ; var c = n.onTagAttr
+ ; var f = n.onIgnoreTagAttr
+ ; var h = n.safeAttrValue
+ ; var v = n.escapeHtml
+ ; var g = t.cssFilter;
+ n.stripBlankChar && (e = l.stripBlankChar(e)),
+ n.allowCommentTag || (e = l.stripCommentTag(e));
+ var m = !1;
+ if (n.stripIgnoreTagBody) {
+ var m = l.StripTagBody(n.stripIgnoreTagBody, s);
+ s = m.onIgnoreTag;
+ }
+ var y = u(e, function(e, t, n, l, u) {
+ var m = {
+ sourcePosition: e,
+ position : t,
+ isClosing : u,
+ isWhite : i.hasOwnProperty(n)
+ }
+ ; var y = a(n, l, m);
+ if (!r(y)) { return y; }
+ if (m.isWhite) {
+ if (m.isClosing) { return '' + n + '>'; }
+ var b = o(l)
+ ; var w = i[n]
+ ; var x = d(b.html, function(e, t) {
+ var o = p.indexOf(w, e) !== -1
+ ; var i = c(n, e, t, o);
+ if (!r(i)) { return i; }
+ if (o) {
+ return t = h(n, e, t, g),
+ t ? e + '="' + t + '"' : e;
+ }
+ var i = f(n, e, t, o);
+ return r(i) ? void 0 : i;
+ })
+ ; var l = '<' + n;
+ return x && (l += ' ' + x),
+ b.closing && (l += ' /'),
+ l += '>';
+ }
+ var y = s(n, l, m);
+ return r(y) ? v(l) : y;
+ }, v);
+ return m && (y = m.remove(y)),
+ y;
+ }
+ ,
+ e.exports = a;
+ },
+ function(e, t) {
+ e.exports = {
+ smile : 'e3/2018new_weixioa02_org.png',
+ lovely : '09/2018new_keai_org.png',
+ happy : '1e/2018new_taikaixin_org.png',
+ clap : '6e/2018new_guzhang_thumb.png',
+ whee : '33/2018new_xixi_thumb.png',
+ haha : '8f/2018new_haha_thumb.png',
+ 'laugh and cry' : '4a/2018new_xiaoku_thumb.png',
+ wink : '43/2018new_jiyan_org.png',
+ greddy : 'fa/2018new_chanzui_org.png',
+ awkward : 'a3/2018new_heixian_thumb.png',
+ sweat : '28/2018new_han_org.png',
+ 'pick nose' : '9a/2018new_wabi_thumb.png',
+ hum : '7c/2018new_heng_thumb.png',
+ angry : 'f6/2018new_nu_thumb.png',
+ grievance : 'a5/2018new_weiqu_thumb.png',
+ poor : '96/2018new_kelian_org.png',
+ disappoint : 'aa/2018new_shiwang_thumb.png',
+ sad : 'ee/2018new_beishang_org.png',
+ tear : '6e/2018new_leimu_org.png',
+ 'no way' : '83/2018new_kuxiao_org.png',
+ shy : 'c1/2018new_haixiu_org.png',
+ dirt : '10/2018new_wu_thumb.png',
+ 'love you' : 'f6/2018new_aini_org.png',
+ kiss : '2c/2018new_qinqin_thumb.png',
+ amorousness : '9d/2018new_huaxin_org.png',
+ longing : 'c9/2018new_chongjing_org.png',
+ desire : '3e/2018new_tianping_thumb.png',
+ 'bad laugh' : '4d/2018new_huaixiao_org.png',
+ blackness : '9e/2018new_yinxian_org.png',
+ 'laugh without word': '2d/2018new_xiaoerbuyu_org.png',
+ titter : '71/2018new_touxiao_org.png',
+ cool : 'c4/2018new_ku_org.png',
+ 'not easy' : 'aa/2018new_bingbujiandan_thumb.png',
+ think : '30/2018new_sikao_org.png',
+ question : 'b8/2018new_ningwen_org.png',
+ 'no idea' : '2a/2018new_wenhao_thumb.png',
+ dizzy : '07/2018new_yun_thumb.png',
+ bomb : 'a2/2018new_shuai_thumb.png',
+ bone : 'a1/2018new_kulou_thumb.png',
+ 'be quiet' : 'b0/2018new_xu_org.png',
+ 'shut up' : '62/2018new_bizui_org.png',
+ stupid : 'dd/2018new_shayan_org.png',
+ 'surprise ' : '49/2018new_chijing_org.png',
+ vomit : '08/2018new_tu_org.png',
+ cold : '40/2018new_kouzhao_thumb.png',
+ sick : '3b/2018new_shengbing_thumb.png',
+ bye : 'fd/2018new_baibai_thumb.png',
+ 'look down on' : 'da/2018new_bishi_org.png',
+ 'white eye' : 'ef/2018new_landelini_org.png',
+ 'left hum' : '43/2018new_zuohengheng_thumb.png',
+ 'right hum' : 'c1/2018new_youhengheng_thumb.png',
+ crazy : '17/2018new_zhuakuang_org.png',
+ 'scold ' : '87/2018new_zhouma_thumb.png',
+ 'hit on face' : 'cb/2018new_dalian_org.png',
+ wow : 'ae/2018new_ding_org.png',
+ fan : '86/2018new_hufen02_org.png',
+ money : 'a2/2018new_qian_thumb.png',
+ yawn : '55/2018new_dahaqian_org.png',
+ sleepy : '3c/2018new_kun_thumb.png',
+ sleep : 'e2/2018new_shuijiao_thumb.png',
+ 'watermelon ' : '01/2018new_chigua_thumb.png',
+ doge : 'a1/2018new_doge02_org.png',
+ dog : '22/2018new_erha_org.png',
+ cat : '7b/2018new_miaomiao_thumb.png',
+ thumb : 'e6/2018new_zan_org.png',
+ good : '8a/2018new_good_org.png',
+ ok : '45/2018new_ok_org.png',
+ yeah : '29/2018new_ye_thumb.png',
+ 'shack hand' : 'e9/2018new_woshou_thumb.png',
+ bow : 'e7/2018new_zuoyi_org.png',
+ come : '42/2018new_guolai_thumb.png',
+ punch : '86/2018new_quantou_thumb.png'
+ };
+ },
+ function(e, t) {
+ e.exports = {
+ nick : 'NickName',
+ mail : 'E-Mail',
+ link : 'Website(http://)',
+ nickFail : 'NickName cannot be less than 3 bytes.',
+ mailFail : 'Please confirm your email address.',
+ sofa : 'No comment yet.',
+ submit : 'Submit',
+ reply : 'Reply',
+ cancelReply: 'Cancel reply',
+ comments : 'Comments',
+ cancel : 'Cancel',
+ confirm : 'Confirm',
+ continue : 'Continue',
+ more : 'Load More...',
+ preview : 'Preview',
+ emoji : 'Emoji',
+ expand : 'See more....',
+ seconds : 'seconds ago',
+ minutes : 'minutes ago',
+ hours : 'hours ago',
+ days : 'days ago',
+ now : 'just now',
+ uploading : 'Uploading ...',
+ uploadDone : 'Upload completed!',
+ busy : 'Submit is busy, please wait...',
+ 'code-98' : 'Valine initialization failed, please check your version of av-min.js.',
+ 'code-99' : 'Valine initialization failed, Please check the `el` element in the init method.',
+ 'code-100' : 'Valine initialization failed, Please check your appId and appKey.',
+ 'code-140' : 'The total number of API calls today has exceeded the development version limit.',
+ 'code-401' : 'Unauthorized operation, Please check your appId and appKey.',
+ 'code-403' : 'Access denied by API domain white list, Please check your security domain.'
+ };
+ },
+ function(e, t) {
+ e.exports = {
+ nick : 'ニックネーム',
+ mail : 'メールアドレス',
+ link : 'サイト(http://)',
+ nickFail : '3バイト以上のニックネームをご入力ください.',
+ mailFail : 'メールアドレスをご確認ください.',
+ sofa : 'コメントしましょう~',
+ submit : '提出する',
+ reply : '返信する',
+ cancelReply: 'キャンセル',
+ comments : 'コメント',
+ cancel : 'キャンセル',
+ confirm : '確認する',
+ continue : '继续',
+ more : 'さらに読み込む...',
+ preview : 'プレビュー',
+ emoji : '絵文字',
+ expand : 'もっと見る',
+ seconds : '秒前',
+ minutes : '分前',
+ hours : '時間前',
+ days : '日前',
+ now : 'たっだ今',
+ uploading : 'アップロード中...',
+ uploadDone : 'アップロードが完了しました!',
+ busy : '20 秒間隔で提出してください ...',
+ 'code-98' : 'ロードエラーです。av-min.js のバージョンを確認してください.',
+ 'code-99' : 'ロードエラーです。initにある`el`エレメントを確認ください.',
+ 'code-100' : 'ロードエラーです。AppIdとAppKeyを確認ください.',
+ 'code-140' : '今日のAPIコールの総数が開発バージョンの上限を超えた.',
+ 'code-401' : '権限が制限されています。AppIdとAppKeyを確認ください.',
+ 'code-403' : 'アクセスがAPIなどに制限されました、ドメイン名のセキュリティ設定を確認ください'
+ };
+ },
+ function(e, t) {
+ e.exports = {
+ nick : '昵称',
+ mail : '邮箱',
+ link : '网址(http://)',
+ nickFail : '昵称不能少于3个字符',
+ mailFail : '请填写正确的邮件地址',
+ sofa : '来发评论吧~',
+ submit : '提交',
+ reply : '回复',
+ cancelReply: '取消回复',
+ comments : '评论',
+ cancel : '取消',
+ confirm : '确认',
+ continue : '继续',
+ more : '加载更多...',
+ preview : '预览',
+ emoji : '表情',
+ expand : '查看更多...',
+ seconds : '秒前',
+ minutes : '分钟前',
+ hours : '小时前',
+ days : '天前',
+ now : '刚刚',
+ uploading : '正在传输...',
+ uploadDone : '传输完成!',
+ busy : '操作频繁,请稍候再试...',
+ 'code-98' : 'Valine 初始化失败,请检查 av-min.js 版本',
+ 'code-99' : 'Valine 初始化失败,请检查init中的`el`元素.',
+ 'code-100' : 'Valine 初始化失败,请检查你的AppId和AppKey.',
+ 'code-140' : '今日 API 调用总次数已超过开发版限制.',
+ 'code-401' : '未经授权的操作,请检查你的AppId和AppKey.',
+ 'code-403' : '访问被API域名白名单拒绝,请检查你的安全域名设置.'
+ };
+ },
+ function(e, t) {
+ e.exports = {
+ nick : '暱稱',
+ mail : '郵箱',
+ link : '網址(http://)',
+ nickFail : '昵稱不能少於3個字符',
+ mailFail : '請填寫正確的郵件地址',
+ sofa : '來發評論吧~',
+ submit : '提交',
+ reply : '回覆',
+ cancelReply: '取消回覆',
+ comments : '評論',
+ cancel : '取消',
+ confirm : '確認',
+ continue : '繼續',
+ more : '加載更多...',
+ preview : '預覽',
+ emoji : '表情',
+ expand : '查看更多...',
+ seconds : '秒前',
+ minutes : '分鐘前',
+ hours : '小時前',
+ days : '天前',
+ now : '剛剛',
+ uploading : '正在上傳...',
+ uploadDone : '上傳完成!',
+ busy : '操作頻繁,請稍候再試...',
+ 'code-98' : 'Valine 初始化失敗,請檢查 av-min.js 版本',
+ 'code-99' : 'Valine 初始化失敗,請檢查init中的`el`元素.',
+ 'code-100' : 'Valine 初始化失敗,請檢查你的AppId和AppKey.',
+ 'code-140' : '今日 API 調用總次數已超過開發版限制.',
+ 'code-401' : '未經授權的操作,請檢查你的AppId和AppKey.',
+ 'code-403' : '訪問被API域名白名單拒絕,請檢查你的安全域名設置.'
+ };
+ },
+ function(e, t, n) {
+ var r = n(59);
+ typeof r == 'string' && (r = [[e.i, r, '']]);
+ var o = {};
+ o.transform = void 0;
+ n(61)(r, o);
+ r.locals && (e.exports = r.locals);
+ },
+ function(e, t, n) {
+ t = e.exports = n(60)(!1),
+ t.push([e.i, '.v[data-class=v]{font-size:16px;text-align:left}.v[data-class=v] *{-webkit-box-sizing:border-box;box-sizing:border-box;line-height:1.75}.v[data-class=v] .status-bar,.v[data-class=v] .veditor,.v[data-class=v] .vinput,.v[data-class=v] p,.v[data-class=v] pre code{color:#555}.v[data-class=v] .vsys,.v[data-class=v] .vtime{color:#b3b3b3}.v[data-class=v] .text-right{text-align:right}.v[data-class=v] .text-center{text-align:center}.v[data-class=v] img{max-width:100%;border:none}.v[data-class=v] hr{margin:.825em 0;border-color:#f6f6f6;border-style:dashed}.v[data-class=v].hide-avatar .vimg{display:none}.v[data-class=v] a{position:relative;cursor:pointer;color:#1abc9c;text-decoration:none;display:inline-block}.v[data-class=v] a:hover{color:#d7191a}.v[data-class=v] code,.v[data-class=v] pre{background-color:#f8f8f8;padding:.2em .4em;border-radius:3px;font-size:85%;margin:0}.v[data-class=v] pre{padding:10px;overflow:auto;line-height:1.45}.v[data-class=v] pre code{padding:0;background:transparent;white-space:pre-wrap;word-break:keep-all}.v[data-class=v] blockquote{color:#666;margin:.5em 0;padding:0 0 0 1em;border-left:8px solid hsla(0,0%,93%,.5)}.v[data-class=v] .vinput{border:none;resize:none;outline:none;padding:10px 5px;max-width:100%;font-size:.775em}.v[data-class=v] input[type=checkbox],.v[data-class=v] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.v[data-class=v] .vicon{cursor:pointer;display:inline-block;overflow:hidden;fill:#555;vertical-align:middle}.v[data-class=v] .vicon+.vicon{margin-left:10px}.v[data-class=v] .vicon.actived{fill:#66b1ff}.v[data-class=v] .vrow{font-size:0;padding:10px 0}.v[data-class=v] .vrow .vcol{display:inline-block;vertical-align:middle;font-size:14px}.v[data-class=v] .vrow .vcol.vcol-20{width:20%}.v[data-class=v] .vrow .vcol.vcol-30{width:30%}.v[data-class=v] .vrow .vcol.vcol-40{width:40%}.v[data-class=v] .vrow .vcol.vcol-50{width:50%}.v[data-class=v] .vrow .vcol.vcol-60{width:60%}.v[data-class=v] .vrow .vcol.vcol-70{width:70%}.v[data-class=v] .vrow .vcol.vcol-80{width:80%}.v[data-class=v] .vrow .vcol.vctrl{font-size:12px}.v[data-class=v] .emoji,.v[data-class=v] .vemoji{max-width:25px;vertical-align:middle;margin:0 1px;display:inline-block}.v[data-class=v] .vwrap{border:1px solid #f0f0f0;border-radius:4px;margin-bottom:10px;overflow:hidden;position:relative;padding:10px}.v[data-class=v] .vwrap input{background:transparent}.v[data-class=v] .vwrap .vedit{position:relative;padding-top:10px}.v[data-class=v] .vwrap .cancel-reply-btn{position:absolute;right:5px;top:5px;cursor:pointer}.v[data-class=v] .vwrap .vemojis{display:none;font-size:18px;max-height:145px;overflow:auto;padding-bottom:10px;-webkit-box-shadow:0 0 1px #f0f0f0;box-shadow:0 0 1px #f0f0f0}.v[data-class=v] .vwrap .vemojis i{font-style:normal;padding-top:7px;width:36px;cursor:pointer;text-align:center;display:inline-block;vertical-align:middle}.v[data-class=v] .vwrap .vpreview{padding:7px;-webkit-box-shadow:0 0 1px #f0f0f0;box-shadow:0 0 1px #f0f0f0}.v[data-class=v] .vwrap .vheader .vinput{width:33.33%;border-bottom:1px dashed #dedede}.v[data-class=v] .vwrap .vheader.item2 .vinput{width:50%}.v[data-class=v] .vwrap .vheader.item1 .vinput{width:100%}.v[data-class=v] .vwrap .vheader .vinput:focus{border-bottom-color:#eb5055}@media screen and (max-width:520px){.v[data-class=v] .vwrap .vheader.item2 .vinput,.v[data-class=v] .vwrap .vheader .vinput{width:100%}}.v[data-class=v] .vpower{color:#999;font-size:.75em;padding:.5em 0}.v[data-class=v] .vpower a{font-size:.75em}.v[data-class=v] .vcount{padding:5px;font-weight:600;font-size:1.25em}.v[data-class=v] ol,.v[data-class=v] ul{padding:0;margin-left:1.25em}.v[data-class=v] .txt-center{text-align:center}.v[data-class=v] .txt-right{text-align:right}.v[data-class=v] .pd5{padding:5px}.v[data-class=v] .pd10{padding:10px}.v[data-class=v] .veditor{width:100%;min-height:8.75em;font-size:.875em;background:transparent;resize:vertical;-webkit-transition:all .25s ease;transition:all .25s ease}.v[data-class=v] .vbtn{-webkit-transition-duration:.4s;transition-duration:.4s;text-align:center;color:#555;border:1px solid #ededed;border-radius:.3em;display:inline-block;background:transparent;margin-bottom:0;font-weight:400;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;white-space:nowrap;padding:.5em 1.25em;font-size:.875em;line-height:1.42857143;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}.v[data-class=v] .vbtn+.vbtn{margin-left:1.25em}.v[data-class=v] .vbtn:active,.v[data-class=v] .vbtn:hover{color:#3090e4;border-color:#3090e4}.v[data-class=v] .vbtn:disabled{border-color:#e1e1e1;color:#e1e1e1;background-color:#fdfafa;cursor:not-allowed}.v[data-class=v] .vempty{padding:1.25em;text-align:center;color:#555;overflow:auto}.v[data-class=v] .vsys{display:inline-block;padding:.2em .5em;font-size:.75em;border-radius:.2em;margin-right:.3em}@media screen and (max-width:520px){.v[data-class=v] .vsys{display:none}}.v[data-class=v] .vcards{width:100%}.v[data-class=v] .vcards .vcard{padding-top:1.25em;position:relative;display:block}.v[data-class=v] .vcards .vcard:after{content:"";clear:both;display:block}.v[data-class=v] .vcards .vcard .vimg{width:3.125em;height:3.125em;float:left;border-radius:50%;margin-right:.7525em;border:1px solid #f5f5f5;padding:.125em}@media screen and (max-width:720px){.v[data-class=v] .vcards .vcard .vimg{width:2.5em;height:2.5em}}.v[data-class=v] .vcards .vcard .vhead{line-height:1.5;margin-top:0}.v[data-class=v] .vcards .vcard .vhead .vnick{position:relative;font-size:.875em;font-weight:500;margin-right:.875em;cursor:pointer;text-decoration:none;display:inline-block}.v[data-class=v] .vcards .vcard .vhead .vnick:hover{color:#d7191a}.v[data-class=v] .vcards .vcard .vh{overflow:hidden;padding-bottom:.5em;border-bottom:1px dashed #f5f5f5}.v[data-class=v] .vcards .vcard .vh .vtime{font-size:.75em;margin-right:.875em}.v[data-class=v] .vcards .vcard .vh .vmeta{line-height:1;position:relative}.v[data-class=v] .vcards .vcard .vh .vmeta .vat{font-size:.8125em;color:#ef2f11;cursor:pointer;float:right}.v[data-class=v] .vcards .vcard:last-child .vh{border-bottom:none}.v[data-class=v] .vcards .vcard .vcontent{word-wrap:break-word;word-break:break-all;font-size:.875em;line-height:2;position:relative;margin-bottom:.75em;padding-top:.625em}.v[data-class=v] .vcards .vcard .vcontent.expand{cursor:pointer;max-height:8em;overflow:hidden}.v[data-class=v] .vcards .vcard .vcontent.expand:before{display:block;content:"";position:absolute;width:100%;left:0;top:0;bottom:3.15em;background:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,0)),to(hsla(0,0%,100%,.9)));background:linear-gradient(180deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.9));z-index:999}.v[data-class=v] .vcards .vcard .vcontent.expand:after{display:block;content:attr(data-expand);text-align:center;color:#828586;position:absolute;width:100%;height:3.15em;line-height:3.15em;left:0;bottom:0;z-index:999;background:hsla(0,0%,100%,.9)}.v[data-class=v] .vcards .vcard .vquote{padding-left:1em;border-left:1px dashed hsla(0,0%,93%,.5)}.v[data-class=v] .vcards .vcard .vquote .vimg{width:2.225em;height:2.225em}.v[data-class=v] .vpage .vmore{margin:1em 0}.v[data-class=v] .clear{content:"";display:block;clear:both}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes pulse{50%{background:#dcdcdc}}@keyframes pulse{50%{background:#dcdcdc}}.v[data-class=v] .vspinner{width:22px;height:22px;display:inline-block;border:6px double #a0a0a0;border-top-color:transparent;border-bottom-color:transparent;border-radius:50%;-webkit-animation:spin 1s infinite linear;animation:spin 1s infinite linear;position:relative;vertical-align:middle;margin:0 5px}.dark .v[data-class=v] .status-bar,.dark .v[data-class=v] .veditor,.dark .v[data-class=v] .vinput,.dark .v[data-class=v] p,.dark .v[data-class=v] pre code,.night .v[data-class=v] .status-bar,.night .v[data-class=v] .veditor,.night .v[data-class=v] .vinput,.night .v[data-class=v] p,.night .v[data-class=v] pre code,.theme__dark .v[data-class=v] .status-bar,.theme__dark .v[data-class=v] .veditor,.theme__dark .v[data-class=v] .vinput,.theme__dark .v[data-class=v] p,.theme__dark .v[data-class=v] pre code,[data-theme=dark] .v[data-class=v] .status-bar,[data-theme=dark] .v[data-class=v] .veditor,[data-theme=dark] .v[data-class=v] .vinput,[data-theme=dark] .v[data-class=v] p,[data-theme=dark] .v[data-class=v] pre code{color:#b2b2b5}.dark .v[data-class=v] .vsys,.dark .v[data-class=v] .vtime,.night .v[data-class=v] .vsys,.night .v[data-class=v] .vtime,.theme__dark .v[data-class=v] .vsys,.theme__dark .v[data-class=v] .vtime,[data-theme=dark] .v[data-class=v] .vsys,[data-theme=dark] .v[data-class=v] .vtime{color:#929298}.dark .v[data-class=v] code,.dark .v[data-class=v] pre,.dark .v[data-class=v] pre code,.night .v[data-class=v] code,.night .v[data-class=v] pre,.night .v[data-class=v] pre code,.theme__dark .v[data-class=v] code,.theme__dark .v[data-class=v] pre,.theme__dark .v[data-class=v] pre code,[data-theme=dark] .v[data-class=v] code,[data-theme=dark] .v[data-class=v] pre,[data-theme=dark] .v[data-class=v] pre code{color:#929298;background-color:#151414}.dark .v[data-class=v] .vwrap,.night .v[data-class=v] .vwrap,.theme__dark .v[data-class=v] .vwrap,[data-theme=dark] .v[data-class=v] .vwrap{border-color:#b2b2b5}.dark .v[data-class=v] .vicon,.night .v[data-class=v] .vicon,.theme__dark .v[data-class=v] .vicon,[data-theme=dark] .v[data-class=v] .vicon{fill:#b2b2b5}.dark .v[data-class=v] .vicon.actived,.night .v[data-class=v] .vicon.actived,.theme__dark .v[data-class=v] .vicon.actived,[data-theme=dark] .v[data-class=v] .vicon.actived{fill:#66b1ff}.dark .v[data-class=v] .vbtn,.night .v[data-class=v] .vbtn,.theme__dark .v[data-class=v] .vbtn,[data-theme=dark] .v[data-class=v] .vbtn{color:#b2b2b5;border-color:#b2b2b5}.dark .v[data-class=v] .vbtn:hover,.night .v[data-class=v] .vbtn:hover,.theme__dark .v[data-class=v] .vbtn:hover,[data-theme=dark] .v[data-class=v] .vbtn:hover{color:#66b1ff;border-color:#66b1ff}.dark .v[data-class=v] a:hover,.night .v[data-class=v] a:hover,.theme__dark .v[data-class=v] a:hover,[data-theme=dark] .v[data-class=v] a:hover{color:#d7191a}.dark .v[data-class=v] .vcards .vcard .vcontent.expand:before,.night .v[data-class=v] .vcards .vcard .vcontent.expand:before,.theme__dark .v[data-class=v] .vcards .vcard .vcontent.expand:before,[data-theme=dark] .v[data-class=v] .vcards .vcard .vcontent.expand:before{background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.3)),to(rgba(0,0,0,.7)));background:linear-gradient(180deg,rgba(0,0,0,.3),rgba(0,0,0,.7))}.dark .v[data-class=v] .vcards .vcard .vcontent.expand:after,.night .v[data-class=v] .vcards .vcard .vcontent.expand:after,.theme__dark .v[data-class=v] .vcards .vcard .vcontent.expand:after,[data-theme=dark] .v[data-class=v] .vcards .vcard .vcontent.expand:after{background:rgba(0,0,0,.7)}@media (prefers-color-scheme:dark){.v[data-class=v] .status-bar,.v[data-class=v] .veditor,.v[data-class=v] .vinput,.v[data-class=v] p,.v[data-class=v] pre code{color:#b2b2b5}.v[data-class=v] .vsys,.v[data-class=v] .vtime{color:#929298}.v[data-class=v] code,.v[data-class=v] pre,.v[data-class=v] pre code{color:#929298;background-color:#151414}.v[data-class=v] .vwrap{border-color:#b2b2b5}.v[data-class=v] .vicon{fill:#b2b2b5}.v[data-class=v] .vicon.actived{fill:#66b1ff}.v[data-class=v] .vbtn{color:#b2b2b5;border-color:#b2b2b5}.v[data-class=v] .vbtn:hover{color:#66b1ff;border-color:#66b1ff}.v[data-class=v] a:hover{color:#d7191a}.v[data-class=v] .vcards .vcard .vcontent.expand:before{background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.3)),to(rgba(0,0,0,.7)));background:linear-gradient(180deg,rgba(0,0,0,.3),rgba(0,0,0,.7))}.v[data-class=v] .vcards .vcard .vcontent.expand:after{background:rgba(0,0,0,.7)}}', '']);
+ },
+ function(e, t) {
+ function n(e, t) {
+ var n = e[1] || ''
+ ; var o = e[3];
+ if (!o) { return n; }
+ if (t && typeof btoa == 'function') {
+ var i = r(o);
+ return [n].concat(o.sources.map(function(e) {
+ return '/*# sourceURL=' + o.sourceRoot + e + ' */';
+ })).concat([i]).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) {
+ typeof e == 'string' && (e = [[null, e, '']]);
+ for (var r = {}, o = 0; o < this.length; o++) {
+ var i = this[o][0];
+ typeof i == 'number' && (r[i] = !0);
+ }
+ for (o = 0; o < e.length; o++) {
+ var a = e[o];
+ typeof a[0] == 'number' && r[a[0]] || (n && !a[2] ? a[2] = n : n && (a[2] = '(' + a[2] + ') and (' + n + ')'),
+ t.push(a));
+ }
+ }
+ ,
+ t;
+ };
+ },
+ function(e, t, n) {
+ function r(e, t) {
+ for (var n = 0; n < e.length; n++) {
+ var r = e[n]
+ ; var o = h[r.id];
+ if (o) {
+ o.refs++;
+ for (var i = 0; i < o.parts.length; i++) { o.parts[i](r.parts[i]); }
+ for (; i < r.parts.length; i++) { o.parts.push(u(r.parts[i], t)); }
+ } else {
+ for (var a = [], i = 0; i < r.parts.length; i++) { a.push(u(r.parts[i], t)); }
+ h[r.id] = {
+ id : r.id,
+ refs : 1,
+ parts: a
+ };
+ }
+ }
+ }
+ function o(e, t) {
+ for (var n = [], r = {}, o = 0; o < e.length; o++) {
+ var i = e[o]
+ ; var a = t.base ? i[0] + t.base : i[0]
+ ; var s = i[1]
+ ; var l = i[2]
+ ; var c = i[3]
+ ; var u = {
+ css : s,
+ media : l,
+ sourceMap: c
+ };
+ r[a] ? r[a].parts.push(u) : n.push(r[a] = {
+ id : a,
+ parts: [u]
+ });
+ }
+ return n;
+ }
+ function i(e, t) {
+ var n = g(e.insertInto);
+ if (!n) { throw new Error('Couldn\'t find a style target. This probably means that the value for the \'insertInto\' parameter is invalid.'); }
+ var r = b[b.length - 1];
+ if (e.insertAt === 'top') {
+ r ? r.nextSibling ? n.insertBefore(t, r.nextSibling) : n.appendChild(t) : n.insertBefore(t, n.firstChild),
+ b.push(t);
+ } else {
+ if (e.insertAt !== 'bottom') { throw new Error('Invalid value for parameter \'insertAt\'. Must be \'top\' or \'bottom\'.'); }
+ n.appendChild(t);
+ }
+ }
+ function a(e) {
+ if (e.parentNode === null) { return !1; }
+ e.parentNode.removeChild(e);
+ var t = b.indexOf(e);
+ t >= 0 && b.splice(t, 1);
+ }
+ function s(e) {
+ var t = document.createElement('style');
+ return e.attrs.type = 'text/css',
+ c(t, e.attrs),
+ i(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),
+ i(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, o, i;
+ if (t.transform && e.css) {
+ if (!(i = t.transform(e.css))) {
+ return function() {}
+ ;
+ }
+ e.css = i;
+ }
+ if (t.singleton) {
+ var c = y++;
+ n = m || (m = s(t)),
+ r = d.bind(null, n, c, !1),
+ o = d.bind(null, n, c, !0);
+ } else {
+ e.sourceMap && typeof URL == 'function' && typeof URL.createObjectURL == 'function' && typeof URL.revokeObjectURL == 'function' && typeof Blob == 'function' && typeof btoa == 'function' ? (n = l(t),
+ r = f.bind(null, n, t),
+ o = function() {
+ a(n),
+ n.href && URL.revokeObjectURL(n.href);
+ }
+ ) : (n = s(t),
+ r = p.bind(null, n),
+ o = 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 { o(); }
+ };
+ }
+ function d(e, t, n, r) {
+ var o = n ? '' : r.css;
+ if (e.styleSheet) { e.styleSheet.cssText = x(t, o); } else {
+ var i = document.createTextNode(o)
+ ; var a = e.childNodes;
+ a[t] && e.removeChild(a[t]),
+ a.length ? e.insertBefore(i, a[t]) : e.appendChild(i);
+ }
+ }
+ function p(e, t) {
+ var n = t.css
+ ; var 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 f(e, t, n) {
+ var r = n.css
+ ; var o = n.sourceMap
+ ; var i = void 0 === t.convertToAbsoluteUrls && o;
+ (t.convertToAbsoluteUrls || i) && (r = w(r)),
+ o && (r += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + ' */');
+ var a = new Blob([r], {
+ type: 'text/css'
+ })
+ ; var s = e.href;
+ e.href = URL.createObjectURL(a),
+ s && URL.revokeObjectURL(s);
+ }
+ var h = {}
+ ; var 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;
+ })
+ ; var 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);
+ })
+ ; var m = null
+ ; var y = 0
+ ; var b = []
+ ; var w = n(62);
+ e.exports = function(e, t) {
+ if (typeof DEBUG != 'undefined' && DEBUG && typeof document != 'object') { throw new Error('The style-loader cannot be used in a non-browser environment'); }
+ t = t || {},
+ t.attrs = typeof t.attrs == 'object' ? t.attrs : {},
+ t.singleton || (t.singleton = v()),
+ t.insertInto || (t.insertInto = 'head'),
+ t.insertAt || (t.insertAt = 'bottom');
+ var n = o(e, t);
+ return r(n, t),
+ function(e) {
+ for (var i = [], a = 0; a < n.length; a++) {
+ var s = n[a]
+ ; var l = h[s.id];
+ l.refs--,
+ i.push(l);
+ }
+ if (e) {
+ r(o(e, t), t);
+ }
+ for (var a = 0; a < i.length; a++) {
+ var l = i[a];
+ if (l.refs === 0) {
+ for (var c = 0; c < l.parts.length; c++) { l.parts[c](); }
+ delete h[l.id];
+ }
+ }
+ };
+ }
+ ;
+ var x = (function() {
+ var e = [];
+ return function(t, n) {
+ return e[t] = n,
+ e.filter(Boolean).join('\n');
+ };
+ })();
+ },
+ function(e, t) {
+ e.exports = function(e) {
+ var t = typeof window != 'undefined' && window.location;
+ if (!t) { throw new Error('fixUrls requires window.location'); }
+ if (!e || typeof e != 'string') { return e; }
+ var n = t.protocol + '//' + t.host
+ ; var r = n + t.pathname.replace(/\/[^\/]*$/, '/');
+ return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(e, t) {
+ var o = t.trim().replace(/^"(.*)"$/, function(e, t) {
+ return t;
+ }).replace(/^'(.*)'$/, function(e, t) {
+ return t;
+ });
+ if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)) { return e; }
+ var i;
+ return i = o.indexOf('//') === 0 ? o : o.indexOf('/') === 0 ? n + o : r + o.replace(/^\.\//, ''),
+ 'url(' + JSON.stringify(i) + ')';
+ });
+ };
+ },
+ function(e, t, n) {
+ n(58),
+ e.exports = n(18);
+ }
+ ]);
+});