diff --git a/dist/Artalk.css b/dist/Artalk.css
index a51db3678..b5052c306 100644
--- a/dist/Artalk.css
+++ b/dist/Artalk.css
@@ -2,4 +2,4 @@
* Artalk v1.0.6
* (c) 2016-2020 qwqaq.com
* Link: https://github.com/qwqcode/Artalk
- */.artalk{position:relative;width:100%;min-height:200px}.artalk *,.artalk-layer-wrap *{line-height:1.6em;color:#565a5f;font-family:Helvetica Neue,PingFangSC-Light,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;word-wrap:break-word;word-break:break-all}.artalk-layer-wrap pre,.artalk pre{line-height:1.6em;background-color:#f6f6f6;color:#555;padding:5px 10px;border-radius:2px;margin:0;font-family:Source Code Pro,courier new,Input Mono,PT Mono,SFMono-Regular,Consolas,Monaco,Menlo,PingFang SC,Liberation Mono,Microsoft YaHei,Courier,monospace}.artalk-layer-wrap a,.artalk a{color:#0083ff;text-decoration:none}.artalk-layer-wrap blockquote,.artalk blockquote{position:static;margin:10px 0;padding:10px 20px;background:#fcfcfc;border-left:4px solid #eee}.artalk-layer-wrap p:first-child,.artalk p:first-child{margin-top:0}.artalk-layer-wrap p:last-child,.artalk p:last-child{margin-bottom:0}.artalk *,.artalk-layer-wrap *{box-sizing:border-box}.artalk-layer-wrap img,.artalk img{max-width:100%}.artalk-error-layer,.artalk-layer-dialog-wrap,.artalk-loading,.full-layer{width:100%;height:100%;position:absolute;top:0;left:0;background:#fff;z-index:10;align-items:center;justify-content:center;flex-flow:column;display:flex}.artalk-loading{z-index:11}.artalk-loading-spinner{position:relative;width:50px;height:50px}.artalk-loading-spinner svg{-webkit-animation:artalkRotate 2s linear infinite;animation:artalkRotate 2s linear infinite;transform-origin:center center;width:100%;height:100%;position:absolute;top:0;left:0}.artalk-loading-spinner svg circle{stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-animation:artalkDash 1.5s ease-in-out infinite,artalkColor 6s ease-in-out infinite;animation:artalkDash 1.5s ease-in-out infinite,artalkColor 6s ease-in-out infinite;stroke-linecap:round}@-webkit-keyframes artalkRotate{to{transform:rotate(1turn)}}@keyframes artalkRotate{to{transform:rotate(1turn)}}@-webkit-keyframes artalkDash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes artalkDash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@-webkit-keyframes artalkColor{0%,to{stroke:#ff5652}40%{stroke:#2196f3}66%{stroke:#32c787}80%,90%{stroke:#ffc107}}@keyframes artalkColor{0%,to{stroke:#ff5652}40%{stroke:#2196f3}66%{stroke:#32c787}80%,90%{stroke:#ffc107}}@-webkit-keyframes artalkLoadingIconRotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes artalkLoadingIconRotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.artalk-loading-icon{width:18px;height:18px;box-sizing:border-box;border-color:#29d transparent transparent #29d;border-style:solid;border-width:1px;border-radius:50%;-webkit-animation:artalkLoadingIconRotate .4s linear infinite;animation:artalkLoadingIconRotate .4s linear infinite}.artalk-fade-in{-webkit-animation:artalkFadeIn .3s both;animation:artalkFadeIn .3s both}.artalk-fade-out{-webkit-animation:artalkFadeOut .2s both;animation:artalkFadeOut .2s both}@-webkit-keyframes artalkFadeIn{0%{opacity:0}to{opacity:1}}@keyframes artalkFadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes artalkFadeOut{to{opacity:0}}@keyframes artalkFadeOut{to{opacity:0}}.artalk-error-layer{background-color:hsla(0,0%,100%,.94)}.artalk-error-layer .artalk-error-title{color:#ff5652}.artalk-error-layer .artalk-error-text{text-align:center}.artalk-layer-dialog-wrap{background-color:hsla(0,0%,100%,.94)}.artalk-layer-dialog-wrap>.artalk-layer-dialog{width:25%}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-content .artalk-captcha-img{cursor:pointer;width:100px;height:auto;margin-right:10px;padding-right:10px;border-right:1px solid #eee;vertical-align:bottom}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-content input{width:100%;line-height:34px;border:1px solid #999;border-radius:2px;outline:none;padding:0 6px;display:block;margin-top:10px;margin-bottom:5px;text-align:center}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action{display:flex;flex-direction:row}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button{flex:1;display:block;cursor:pointer;border:1px solid #0083ff;background:transparent;color:#0083ff;border-radius:2px;padding:0 15px;line-height:30px;outline:none}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button:active{color:#fff;background:#0083ff}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button:not(:last-child){margin-right:5px}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button.error{color:#fff;background:#ff5652;border-color:#ff5652}@media only screen and (max-width:768px){.artalk-layer-dialog-wrap>.artalk-layer-dialog{width:90%!important}}.artalk-notify{display:block;overflow:hidden;background-color:#2c2c2c;color:#fff;border-radius:2px;cursor:pointer;font-size:14px;padding:4px 15px}.artalk-notify:not(:last-child){margin-bottom:3px}.artalk-notify .artalk-notify-content{color:#fff}.artalk-layer-wrap .artalk-layer-mask{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99998;background:rgba(0,0,0,.3)}.artalk-layer-wrap .artalk-layer-item{position:fixed;z-index:99999;top:0;right:0;width:100%;height:100%}.artalk>.artalk-editor{border:1px solid #eceff2;border-radius:4px;margin-bottom:15px;overflow:hidden;position:relative;background:#fff}.artalk>.artalk-editor>.artalk-editor-header{display:flex;flex-direction:row;padding:5px 10px 0}.artalk>.artalk-editor>.artalk-editor-header input{border:2px solid transparent;transition:color .3s ease;flex:1;background:transparent;border-radius:2px;padding:6px 5px;resize:none;outline:none;width:100%}.artalk>.artalk-editor>.artalk-editor-header input:not(:last-child){margin-right:2px}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-editor-textarea{margin-top:2px;padding:10px 15px;display:block;width:100%;min-height:130px;resize:none;word-wrap:break-word;border:2px solid transparent;border-radius:2px;outline:none;overflow:hidden}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-close-comment{display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;position:relative;text-align:center;min-height:30px;border-top:1px solid #eceff2;margin-top:4px;font-weight:100;font-size:12px;place-items:center;justify-content:center;place-content:flex-end;flex-direction:row;background:#fff}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-close-comment>span{color:#757e91;border-radius:2px;margin-right:14px}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-send-reply{font-size:14px;height:30px;line-height:30px;background:hsla(0,0%,95.7%,.75);padding:0 30px 0 10px;position:absolute;right:10px;bottom:40px;pointer-events:none;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:2}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-send-reply .artalk-cancel{pointer-events:all;position:absolute;right:0;bottom:0;height:30px;text-align:center;width:30px;line-height:30px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:700}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-send-reply .artalk-cancel:hover{color:#2a2e2e}.artalk>.artalk-editor>.artalk-editor-plug-wrap{position:relative;height:180px;width:100%;overflow:hidden;border-top:1px solid #eceff2;-webkit-animation:artalkFadeIn .3s both;animation:artalkFadeIn .3s both;transition:height .2s ease-in-out}.artalk>.artalk-editor>.artalk-editor-bottom{display:flex;flex-direction:row;border-top:1px solid #eceff2;padding:0 0 0 5px}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-bottom-part{display:flex;flex:1;flex-direction:row;align-items:center}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-bottom-part.artalk-left{flex:inherit}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-bottom-part.artalk-right{justify-content:flex-end}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action{padding:0 8px;cursor:pointer;color:#999;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action>i{color:#999;display:inline-flex;vertical-align:sub;margin-left:4px}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action>i svg.markdown path{fill:#999}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action.active{color:#0083ff}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action.active>i>svg.markdown path{fill:#0083ff}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action:not(:last-child){border-right:1px solid #eceff2}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-send-btn{background:#0083ff;color:#fff;border:none;padding:0 30px;height:30px;cursor:pointer;transition:opacity .3s ease-in-out;outline:none;font-size:14px}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-send-btn:active{opacity:.9}.artalk>.artalk-editor>.artalk-editor-notify-wrap{position:absolute;right:-2px;bottom:36px;width:225px;z-index:9;opacity:.83}.artalk-comment-wrap{overflow:hidden;position:relative;margin-bottom:10px;border-bottom:1px solid #eceff2}.artalk-comment-wrap.artalk-flash-once{-webkit-animation:artalkFlashOnce 1s ease-in-out 0s;animation:artalkFlashOnce 1s ease-in-out 0s}@-webkit-keyframes artalkFlashOnce{0%{background:rgba(0,131,255,.2)}to{background:transparent}}@keyframes artalkFlashOnce{0%{background:rgba(0,131,255,.2)}to{background:transparent}}.artalk-comment-wrap:last-child{border-bottom-color:transparent}.artalk-comment-wrap>.artalk-comment{display:flex;padding:12px 10px}.artalk-comment-wrap>.artalk-comment>.artalk-avatar{display:block;flex:none;margin-right:12px;padding:2px 0}.artalk-comment-wrap>.artalk-comment>.artalk-avatar img{width:48px;height:48px;border-radius:3px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main{display:block;flex:auto}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header{line-height:1;font-size:12px;margin-bottom:3px;overflow:hidden;position:relative;display:flex;flex-wrap:wrap;align-items:end}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span{display:flex;margin-bottom:2px;color:#757e91}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span:not(:last-child){margin-right:5px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-nick{font-size:13px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-nick>a{color:#0083ff;text-decoration:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-badge{background:#f4f4f4;padding:0 5px;border-radius:3px;background:#ffa928;color:#fff}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-ua{background:#f4f4f4;padding:0 5px;border-radius:3px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body{display:block;overflow:hidden;position:relative}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body img{max-width:100%}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content.artalk-type-collapsed{border:3px solid #f4f4f4;border-bottom:0;padding:5px 10px;border-radius:4px 4px 0 0;margin-bottom:-5px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content.artalk-hide{display:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content>:first-child{margin-top:0}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content>:last-child{margin-bottom:0}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed{margin:3px 0;font-size:13px;padding:10px 18px;display:block;background:#f4f4f4;border-radius:4px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed>.artalk-text{color:#757e91}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed>.artalk-show-btn{color:#0083ff;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-left:3px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed>.artalk-show-btn:hover{color:#0083ff}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions{display:flex;flex-direction:row;align-items:center;margin-top:4px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span{display:inline-flex;color:#757e91;font-size:13px;line-height:15px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span.artalk-hide{display:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span.artalk-error,.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span.artalk-error:hover{color:#ff5652}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span:not(:first-child):not(.artalk-hide){margin-left:8px;padding-left:8px;border-left:1px solid #eceff2}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span:hover{color:#2a2e2e}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main .artalk-comment-children{margin-top:10px;border-radius:3px;border-left:1px dashed hsla(0,0%,93%,.5)}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main .artalk-comment-children .artalk-comment-wrap{border-bottom-color:transparent}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main .artalk-comment-children .artalk-comment-wrap:not(:last-child){margin-bottom:5px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main .artalk-comment-children .artalk-comment-wrap>.artalk-comment{padding-top:4px;padding-bottom:4px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main .artalk-comment-children .artalk-comment-wrap>.artalk-comment>.artalk-avatar img{width:36px;height:36px}.artalk-editor-plug-emoticons{height:100%;width:100%}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap{overflow-y:scroll;overflow-x:hidden;height:100%;width:100%}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar{width:4px;background:transparent}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb,.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb:window-inactive{background:rgba(86,86,86,.3)}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb:vertical:hover{background:rgba(65,74,82,.77)}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb:vertical:active{background:rgba(41,47,53,.77)}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list{padding:5px 10px 35px}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list .artalk-emoticons-item{display:inline-block;padding:5px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:2px;font-size:16px}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list .artalk-emoticons-item>img{max-height:60px;width:auto}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list .artalk-emoticons-item:hover{background:#f4f4f4}.artalk-editor-plug-emoticons .artalk-emoticons-types{position:absolute;bottom:0;left:0;width:100%;background:hsla(0,0%,100%,.95);height:30px;border-top:1px solid #eceff2}.artalk-editor-plug-emoticons .artalk-emoticons-types>span{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0 10px;line-height:30px;float:left;display:block;cursor:pointer;font-size:14px}.artalk-editor-plug-emoticons .artalk-emoticons-types>span.active,.artalk-editor-plug-emoticons .artalk-emoticons-types>span:hover{background:#f4f4f4}.artalk-editor-plug-preview{overflow-y:scroll;overflow-x:hidden;height:100%;width:100%;padding:10px 15px}.artalk>.artalk-list{position:relative}.artalk>.artalk-list>.artalk-list-header{display:flex;flex-direction:row;padding:10px 10px 5px;border-bottom:1px solid #eceff2}.artalk>.artalk-list>.artalk-list-header .artalk-comment-count{flex:1;font-size:15px}.artalk>.artalk-list>.artalk-list-header .artalk-comment-count .artalk-comment-count-num{font-size:22px;margin-right:4px}.artalk>.artalk-list>.artalk-list-header .artalk-right-action{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:flex-end}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span{font-size:14px;color:#757e91;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span.artalk-on{color:#0083ff}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span.artalk-hide{display:none}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span:not(:last-child):not(.artalk-hide){margin-right:10px;padding-right:10px;border-right:1px solid #eceff2}.artalk>.artalk-list>.artalk-list-body>.artalk-list-comments-wrap .artalk-no-comment{text-align:center;height:150px;line-height:150px;display:block;font-size:19px}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more{margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid #eceff2;padding:0 20px;font-size:14px;border-radius:4px;display:flex;height:30px;flex-direction:row;place-content:center;align-items:center}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more.artalk-err>.artalk-text{color:#ff5652!important}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more>.artalk-loading-icon{height:15px;width:15px}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more>.artalk-text{color:#757e91}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more:hover{background-color:#eceff2}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more:hover>.artalk-text{color:#0083ff}.artalk>.artalk-list>.artalk-list-footer{position:relative;overflow:hidden}.artalk>.artalk-list>.artalk-list-footer .artalk-copyright{display:block;font-size:13px;float:right;color:#0083ff;padding:0 10px;border-radius:2px}.artalk>.artalk-list>.artalk-list-footer .artalk-copyright a{color:#0083ff;text-decoration:none}.artalk-sidebar{position:fixed;z-index:99999;top:0;right:0;width:430px;height:100%;background:#fff;transition:transform .45s cubic-bezier(.23,1,.32,1) 0ms;transform:translate(430px)}@media only screen and (max-width:430px){.artalk-sidebar{width:100%}}.artalk-sidebar .artalk-sidebar-inner{position:relative}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-title{text-align:center;font-size:23px;padding:20px 0}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-close{position:absolute;display:flex;left:0;top:0;width:40px;height:40px;align-items:center;place-content:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-close:hover{background:rgba(232,17,35,.9)}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-close:hover svg{fill:#fff}.artalk-sidebar .artalk-sidebar-content{position:relative;overflow-y:auto;height:calc(100vh - 76px)}
\ No newline at end of file
+ */.artalk{position:relative;width:100%;min-height:200px}.artalk *,.artalk-layer-wrap *{line-height:1.6em;color:#565a5f;font-family:Helvetica Neue,PingFangSC-Light,Hiragino Sans GB,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;word-wrap:break-word;word-break:break-all}.artalk-layer-wrap pre,.artalk pre{line-height:1.6em;background-color:#f6f6f6;color:#555;padding:5px 10px;border-radius:2px;margin:0;font-family:Source Code Pro,courier new,Input Mono,PT Mono,SFMono-Regular,Consolas,Monaco,Menlo,PingFang SC,Liberation Mono,Microsoft YaHei,Courier,monospace}.artalk-layer-wrap a,.artalk a{color:#0083ff;text-decoration:none}.artalk-layer-wrap blockquote,.artalk blockquote{position:static;margin:10px 0;padding:10px 20px;background:#fcfcfc;border-left:4px solid #eee}.artalk-layer-wrap p:first-child,.artalk p:first-child{margin-top:0}.artalk-layer-wrap p:last-child,.artalk p:last-child{margin-bottom:0}.artalk *,.artalk-layer-wrap *{box-sizing:border-box}.artalk-layer-wrap img,.artalk img{max-width:100%}.artalk-error-layer,.artalk-layer-dialog-wrap,.artalk-loading,.full-layer{width:100%;height:100%;position:absolute;top:0;left:0;background:#fff;z-index:10;align-items:center;justify-content:center;flex-flow:column;display:flex}.artalk-loading{z-index:11}.artalk-loading-spinner{position:relative;width:50px;height:50px}.artalk-loading-spinner svg{-webkit-animation:artalkRotate 2s linear infinite;animation:artalkRotate 2s linear infinite;transform-origin:center center;width:100%;height:100%;position:absolute;top:0;left:0}.artalk-loading-spinner svg circle{stroke-dasharray:1,200;stroke-dashoffset:0;-webkit-animation:artalkDash 1.5s ease-in-out infinite,artalkColor 6s ease-in-out infinite;animation:artalkDash 1.5s ease-in-out infinite,artalkColor 6s ease-in-out infinite;stroke-linecap:round}@-webkit-keyframes artalkRotate{to{transform:rotate(1turn)}}@keyframes artalkRotate{to{transform:rotate(1turn)}}@-webkit-keyframes artalkDash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes artalkDash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@-webkit-keyframes artalkColor{0%,to{stroke:#ff5652}40%{stroke:#2196f3}66%{stroke:#32c787}80%,90%{stroke:#ffc107}}@keyframes artalkColor{0%,to{stroke:#ff5652}40%{stroke:#2196f3}66%{stroke:#32c787}80%,90%{stroke:#ffc107}}@-webkit-keyframes artalkLoadingIconRotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes artalkLoadingIconRotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.artalk-loading-icon{width:18px;height:18px;box-sizing:border-box;border-color:#29d transparent transparent #29d;border-style:solid;border-width:1px;border-radius:50%;-webkit-animation:artalkLoadingIconRotate .4s linear infinite;animation:artalkLoadingIconRotate .4s linear infinite}.artalk-fade-in{-webkit-animation:artalkFadeIn .3s both;animation:artalkFadeIn .3s both}.artalk-fade-out{-webkit-animation:artalkFadeOut .2s both;animation:artalkFadeOut .2s both}@-webkit-keyframes artalkFadeIn{0%{opacity:0}to{opacity:1}}@keyframes artalkFadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes artalkFadeOut{to{opacity:0}}@keyframes artalkFadeOut{to{opacity:0}}.artalk-error-layer{background-color:hsla(0,0%,100%,.94)}.artalk-error-layer .artalk-error-title{color:#ff5652}.artalk-error-layer .artalk-error-text{text-align:center}.artalk-layer-dialog-wrap{background-color:hsla(0,0%,100%,.94)}.artalk-layer-dialog-wrap>.artalk-layer-dialog{width:25%}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-content .artalk-captcha-img{cursor:pointer;width:100px;height:auto;margin-right:10px;padding-right:10px;border-right:1px solid #eee;vertical-align:bottom}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-content input{width:100%;line-height:34px;border:1px solid #999;border-radius:2px;outline:none;padding:0 6px;display:block;margin-top:10px;margin-bottom:5px;text-align:center}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action{display:flex;flex-direction:row}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button{flex:1;display:block;cursor:pointer;border:1px solid #0083ff;background:transparent;color:#0083ff;border-radius:2px;padding:0 15px;line-height:30px;outline:none}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button:active{color:#fff;background:#0083ff}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button:not(:last-child){margin-right:5px}.artalk-layer-dialog-wrap>.artalk-layer-dialog>.artalk-layer-dialog-action button.error{color:#fff;background:#ff5652;border-color:#ff5652}@media only screen and (max-width:768px){.artalk-layer-dialog-wrap>.artalk-layer-dialog{width:90%!important}}.artalk-notify{display:block;overflow:hidden;background-color:#2c2c2c;color:#fff;border-radius:2px;cursor:pointer;font-size:14px;padding:4px 15px}.artalk-notify:not(:last-child){margin-bottom:3px}.artalk-notify .artalk-notify-content{color:#fff}.artalk-layer-wrap .artalk-layer-mask{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99998;background:rgba(0,0,0,.3)}.artalk-layer-wrap .artalk-layer-item{position:fixed;z-index:99999;top:0;right:0;width:100%;height:100%}.artalk>.artalk-editor{border:1px solid #eceff2;border-radius:4px;margin-bottom:15px;overflow:hidden;position:relative;background:#fff}@media only screen and (max-width:768px){.artalk>.artalk-editor{margin-bottom:7px}}.artalk>.artalk-editor>.artalk-editor-header{display:flex;flex-direction:row;padding:5px 10px 0}.artalk>.artalk-editor>.artalk-editor-header input{border:2px solid transparent;transition:color .3s ease;flex:1;background:transparent;border-radius:2px;padding:6px 5px;resize:none;outline:none;width:100%}.artalk>.artalk-editor>.artalk-editor-header input:not(:last-child){margin-right:2px}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-editor-textarea{margin-top:2px;padding:10px 15px;display:block;width:100%;min-height:130px;resize:none;word-wrap:break-word;border:2px solid transparent;border-radius:2px;outline:none;overflow:hidden}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-close-comment{display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0;position:relative;text-align:center;min-height:30px;border-top:1px solid #eceff2;margin-top:4px;font-weight:100;font-size:12px;place-items:center;justify-content:center;place-content:flex-end;flex-direction:row;background:#fff}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-close-comment>span{color:#757e91;border-radius:2px;margin-right:14px}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-send-reply{font-size:14px;height:30px;line-height:30px;background:hsla(0,0%,95.7%,.75);padding:0 30px 0 10px;position:absolute;right:10px;bottom:40px;pointer-events:none;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:2}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-send-reply .artalk-cancel{pointer-events:all;position:absolute;right:0;bottom:0;height:30px;text-align:center;width:30px;line-height:30px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:700}.artalk>.artalk-editor>.artalk-editor-textarea-wrap .artalk-send-reply .artalk-cancel:hover{color:#2a2e2e}.artalk>.artalk-editor>.artalk-editor-plug-wrap{position:relative;height:180px;width:100%;overflow:hidden;border-top:1px solid #eceff2;-webkit-animation:artalkFadeIn .3s both;animation:artalkFadeIn .3s both;transition:height .2s ease-in-out}.artalk>.artalk-editor>.artalk-editor-bottom{display:flex;flex-direction:row;border-top:1px solid #eceff2;padding:0 0 0 5px}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-bottom-part{display:flex;flex:1;flex-direction:row;align-items:center}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-bottom-part.artalk-left{flex:inherit}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-bottom-part.artalk-right{justify-content:flex-end}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action{padding:0 8px;cursor:pointer;color:#999;font-size:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action>i{color:#999;display:inline-flex;vertical-align:sub;margin-left:4px}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action>i svg.markdown path{fill:#999}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action.active{color:#0083ff}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action.active>i>svg.markdown path{fill:#0083ff}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-editor-action:not(:last-child){border-right:1px solid #eceff2}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-send-btn{background:#0083ff;color:#fff;border:none;padding:0 30px;height:30px;cursor:pointer;transition:opacity .3s ease-in-out;outline:none;font-size:14px}.artalk>.artalk-editor>.artalk-editor-bottom .artalk-send-btn:active{opacity:.9}.artalk>.artalk-editor>.artalk-editor-notify-wrap{position:absolute;right:-2px;bottom:36px;width:225px;z-index:9;opacity:.83}.artalk-comment-wrap{overflow:hidden;position:relative;border-bottom:1px solid #eceff2}.artalk-comment-wrap.artalk-flash-once{-webkit-animation:artalkFlashOnce 1s ease-in-out 0s;animation:artalkFlashOnce 1s ease-in-out 0s}@-webkit-keyframes artalkFlashOnce{0%{background:rgba(0,131,255,.2)}to{background:transparent}}@keyframes artalkFlashOnce{0%{background:rgba(0,131,255,.2)}to{background:transparent}}.artalk-comment-wrap:last-child{border-bottom-color:transparent}.artalk-comment-wrap>.artalk-comment{display:flex;padding:12px 10px}.artalk-comment-wrap>.artalk-comment>.artalk-avatar{display:block;flex:none;margin-right:12px;padding:2px 0}.artalk-comment-wrap>.artalk-comment>.artalk-avatar img{width:48px;height:48px;border-radius:3px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main{display:block;flex:auto}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header{line-height:1;font-size:12px;margin-bottom:3px;overflow:hidden;position:relative;display:flex;flex-wrap:wrap;align-items:end}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span{display:flex;margin-bottom:2px;color:#757e91}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span:not(:last-child){margin-right:5px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-nick{font-size:13px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-nick>a{color:#0083ff;text-decoration:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-badge{background:#f4f4f4;padding:0 5px;border-radius:3px;background:#ffa928;color:#fff}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-header>span.artalk-ua{background:#f4f4f4;padding:0 5px;border-radius:3px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body{display:block;overflow:hidden;position:relative}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body img{max-width:100%}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content.artalk-type-collapsed{border:3px solid #f4f4f4;border-bottom:0;padding:5px 10px;border-radius:4px 4px 0 0;margin-bottom:-5px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content.artalk-hide{display:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content>:first-child{margin-top:0}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-content>:last-child{margin-bottom:0}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed{margin:3px 0;font-size:13px;padding:10px 18px;display:block;background:#f4f4f4;border-radius:4px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed>.artalk-text{color:#757e91}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed>.artalk-show-btn{color:#0083ff;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-left:3px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body>.artalk-collapsed>.artalk-show-btn:hover{color:#0083ff}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-body.artalk-read-more-mask:after{pointer-events:none;position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" ";bottom:0;height:41px;background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff)}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions{display:flex;flex-direction:row;align-items:center;margin-top:4px}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span{display:inline-flex;color:#757e91;font-size:13px;line-height:15px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span.artalk-hide{display:none}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span.artalk-error,.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span.artalk-error:hover{color:#ff5652}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span:not(:first-child):not(.artalk-hide){margin-left:8px;padding-left:8px;border-left:1px solid #eceff2}.artalk-comment-wrap>.artalk-comment>.artalk-comment-main>.artalk-footer .artalk-comment-actions>span:hover{color:#2a2e2e}.artalk-comment-wrap .artalk-comment-children .artalk-comment-wrap{margin-top:10px;border-radius:3px;border-left:1px dashed hsla(0,0%,93%,.5);border-bottom-color:transparent}.artalk-comment-wrap .artalk-comment-children .artalk-comment-wrap:not(:last-child){margin-bottom:5px}.artalk-comment-wrap .artalk-comment-children .artalk-comment-wrap>.artalk-comment{padding-top:4px;padding-bottom:4px}.artalk-comment-wrap .artalk-comment-children .artalk-comment-wrap>.artalk-comment>.artalk-avatar img{width:36px;height:36px}.artalk-editor-plug-emoticons{height:100%;width:100%}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap{overflow-y:scroll;overflow-x:hidden;height:100%;width:100%}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar{width:4px;background:transparent}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb,.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb:window-inactive{background:rgba(86,86,86,.3)}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb:vertical:hover{background:rgba(65,74,82,.77)}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap::-webkit-scrollbar-thumb:vertical:active{background:rgba(41,47,53,.77)}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list{padding:5px 10px 35px}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list .artalk-emoticons-item{display:inline-block;padding:5px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:2px;font-size:16px}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list .artalk-emoticons-item>img{max-height:60px;width:auto}.artalk-editor-plug-emoticons .artalk-emoticons-list-wrap .artalk-emoticons-list .artalk-emoticons-item:hover{background:#f4f4f4}.artalk-editor-plug-emoticons .artalk-emoticons-types{position:absolute;bottom:0;left:0;width:100%;background:hsla(0,0%,100%,.95);height:30px;border-top:1px solid #eceff2}.artalk-editor-plug-emoticons .artalk-emoticons-types>span{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:0 10px;line-height:30px;float:left;display:block;cursor:pointer;font-size:14px}.artalk-editor-plug-emoticons .artalk-emoticons-types>span.active,.artalk-editor-plug-emoticons .artalk-emoticons-types>span:hover{background:#f4f4f4}.artalk-editor-plug-preview{overflow-y:scroll;overflow-x:hidden;height:100%;width:100%;padding:10px 15px}.artalk>.artalk-list{position:relative}.artalk>.artalk-list>.artalk-list-header{display:flex;flex-direction:row;padding:10px 10px 5px;border-bottom:1px solid #eceff2}.artalk>.artalk-list>.artalk-list-header .artalk-comment-count{flex:1;font-size:15px}.artalk>.artalk-list>.artalk-list-header .artalk-comment-count .artalk-comment-count-num{font-size:22px;margin-right:4px}.artalk>.artalk-list>.artalk-list-header .artalk-right-action{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:flex-end}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span{font-size:14px;color:#757e91;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span.artalk-on{color:#0083ff}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span.artalk-hide{display:none}.artalk>.artalk-list>.artalk-list-header .artalk-right-action>span:not(:last-child):not(.artalk-hide){margin-right:10px;padding-right:10px;border-right:1px solid #eceff2}.artalk>.artalk-list>.artalk-list-body>.artalk-list-comments-wrap .artalk-no-comment{text-align:center;height:150px;line-height:150px;display:block;font-size:19px}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more{margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid #eceff2;padding:0 20px;font-size:14px;border-radius:4px;display:flex;height:30px;flex-direction:row;place-content:center;align-items:center}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more.artalk-err>.artalk-text{color:#ff5652!important}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more>.artalk-loading-icon{height:15px;width:15px}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more>.artalk-text{color:#757e91}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more:hover{background-color:#eceff2}.artalk>.artalk-list>.artalk-list-body>.artalk-list-read-more:hover>.artalk-text{color:#0083ff}.artalk>.artalk-list>.artalk-list-footer{position:relative;overflow:hidden}.artalk>.artalk-list>.artalk-list-footer .artalk-copyright{display:block;font-size:13px;float:right;color:#0083ff;padding:0 10px;border-radius:2px}.artalk>.artalk-list>.artalk-list-footer .artalk-copyright a{color:#0083ff;text-decoration:none}.artalk-sidebar{position:fixed;z-index:99999;top:0;right:0;width:430px;height:100%;background:#fff;transition:transform .45s cubic-bezier(.23,1,.32,1) 0ms;transform:translate(430px)}@media only screen and (max-width:430px){.artalk-sidebar{width:100%}}.artalk-sidebar .artalk-sidebar-inner{position:relative}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-title{text-align:center;font-size:23px;padding:20px 0}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-close{position:absolute;display:flex;left:0;top:0;width:40px;height:40px;align-items:center;place-content:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-close:hover{background:rgba(232,17,35,.9)}.artalk-sidebar .artalk-sidebar-inner .artalk-sidebar-close:hover svg{fill:#fff}.artalk-sidebar .artalk-sidebar-content{position:relative;overflow-y:auto;height:calc(100vh - 76px)}
\ No newline at end of file
diff --git a/dist/Artalk.js b/dist/Artalk.js
index 0273b674c..95d5035fb 100644
--- a/dist/Artalk.js
+++ b/dist/Artalk.js
@@ -3,11 +3,11 @@
* (c) 2016-2020 qwqaq.com
* Link: https://github.com/qwqcode/Artalk
*/
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Artalk",[],t):"object"==typeof exports?exports.Artalk=t():e.Artalk=t()}(this,function(){return d=[function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t){function a(e,t){for(var n=0;n "+e+"'+(n?e:b(e,!0))+"
\n":"
"},a.prototype.blockquote=function(e){return""+(n?e:b(e,!0))+"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,a){return this.options.headerIds?"
\n":"
\n"},a.prototype.list=function(e,t,n){var a=t?"ol":"ul";return"<"+a+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+a+">\n"},a.prototype.listitem=function(e){return"\n\n"+e+"\n"+(t=t&&""+t+"")+"
\n"},a.prototype.tablerow=function(e){return"\n"+e+" \n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?"
":"
"},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;var a='"+n+""},a.prototype.image=function(e,t,n){if(null===(e=i(this.options.sanitize,this.options.baseUrl,e)))return n;var a='":">"},a.prototype.text=function(e){return e},r.prototype.strong=r.prototype.em=r.prototype.codespan=r.prototype.del=r.prototype.text=function(e){return e},r.prototype.link=r.prototype.image=function(e,t,n){return""+n},r.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new u(e.links,this.options),this.inlineText=new u(e.links,p({},this.options,{renderer:new r})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop(),this.token},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.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,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,a,r="",i="";for(n="",e=0;e
"+b(e.message+"",!0)+"";throw e}}d.exec=d,g.options=g.setOptions=function(e){return p(g.defaults,e),g},g.defaults=(g.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}})(),g.Parser=c,g.parser=c.parse,g.Renderer=a,g.TextRenderer=r,g.Lexer=o,g.lexer=o.lex,g.InlineLexer=u,g.inlineLexer=u.output,g.Slugger=t,g.parse=g,k.exports=g}()}).call(this,t(17))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=e(function(e){"use strict";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}}),c=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],t;function u(e){return''+e+""}return function(e,t){if(t===void 0)t={};var i=t.colors;if(i===void 0)i=c;var l=0;var s={};var n=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/;var a=/;var r=new RegExp("("+n.source+"|"+a.source+")|("+o().source+")","gmi");return e.replace(r,function(e,t,n){if(n){return u(n)}if(t==="<"){return"<"}var a;if(s[t]){a=s[t]}else{a=i[l];s[t]=a}var r=''+t+"";l=++l%i.length;return r})}}()},function(d,f,p){var e,t,n;t=[f,p(0),p(2),p(3),p(4),p(5),p(6)],void 0===(n="function"==typeof(e=function(e,i,t,n,r,l,a){"use strict";var s=p(1);function o(a){return function(){var e=(0,l["default"])(a),t;if(c()){var n=(0,l["default"])(this).constructor;t=Reflect.construct(e,arguments,n)}else{t=e.apply(this,arguments)}return(0,r["default"])(this,t)}}function c(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}Object.defineProperty(e,"__esModule",{value:true}),e["default"]=void 0,i=s(i),t=s(t),n=s(n),r=s(r),l=s(l);var u=function(e){(0,n["default"])(r,e);var a=o(r);function r(e){var t;(0,i["default"])(this,r);t=a.call(this,e);var n=JSON.parse(window.localStorage.getItem("ArtalkUser")||"{}");t.data={nick:n.nick||"",email:n.email||"",link:n.link||"",password:n.password||"",isAdmin:n.isAdmin||false};return t}(0,t["default"])(r,[{key:"save",value:function e(){window.localStorage.setItem("ArtalkUser",JSON.stringify(this.data))}},{key:"checkHasBasicUserInfo",value:function e(){return!!this.data.nick&&!!this.data.email}}]);return r}((a=s(a))["default"]);(e["default"]=u).displayName="User",d.exports=f.default})?e.apply(f,t):e)||(d.exports=n)},function(n,e){function a(e,t){return n.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}n.exports=a},function(d,h,m){var e,t,n;t=[h,m(0),m(2),m(3),m(4),m(5),m(6),m(7),m(11)],void 0===(n="function"==typeof(e=function(e,a,r,i,l,s,t,f,p){"use strict";var n=m(1);function o(a){return function(){var e=(0,s["default"])(a),t;if(c()){var n=(0,s["default"])(this).constructor;t=Reflect.construct(e,arguments,n)}else{t=e.apply(this,arguments)}return(0,l["default"])(this,t)}}function c(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}Object.defineProperty(e,"__esModule",{value:true}),e["default"]=void 0,a=n(a),r=n(r),i=n(i),l=n(l),s=n(s),t=n(t),f=n(f),p=n(p);var u=function(e){(0,i["default"])(n,e);var t=o(n);function n(){var r;(0,a["default"])(this,n);r=t.apply(this,arguments);r.LIST={"管理员":{body:function e(){return f["default"].createElement("敲入密码来验证管理员身份:")},reqAct:"AdminCheck",reqObj:function e(t){return{nick:r.artalk.user.data.nick,email:r.artalk.user.data.email,password:t}},onSuccess:function e(t,n,a){r.artalk.user.data.isAdmin=true;r.artalk.user.data.password=a;r.artalk.user.save()}},"验证码":{body:function e(){var t=f["default"].createElement('敲入验证码继续:'));r.LIST["验证码"].elem=t;t.querySelector(".artalk-captcha-img").onclick=function(){r.LIST["验证码"].refresh()};return t},reqAct:"CaptchaCheck",reqObj:function e(t){return{captcha:t}},onSuccess:function e(t,n,a){r.submitCaptchaVal=a},refresh:function e(t){var n=r.LIST["验证码"].elem;var a=n.querySelector(".artalk-captcha-img");if(!t){r.artalk.request("CaptchaCheck",{refresh:true},function(){},function(){},function(e,t){a.setAttribute("src",t.img_data)},function(){})}else{a.setAttribute("src",t)}}}};return r}(0,r["default"])(n,[{key:"action",value:function e(l,s){var o=this;var c=this.LIST[l];var t=f["default"].createElement();t.appendChild(c.body());var u=f["default"].createElement(''));t.appendChild(u);setTimeout(function(){u.focus()},80);var d=(0,p["default"])(this.artalk,"checker-".concat((new Date).getTime()));d.setMaskClickHide(false);d.show();u.onkeyup=function(e){if(e.keyCode===13){e.preventDefault();d.getEl().querySelector('button[data-action="confirm"]').click()}};this.artalk.ui.showDialog(d.getEl(),t,function(e,n){var a=u.value.trim();var t=n.innerText;var r=function e(t){n.innerText=t;n.classList.add("error")};var i=function e(){n.innerText=t;n.classList.remove("error")};o.artalk.request(c.reqAct,c.reqObj(a),function(){n.innerText="加载中..."},function(){},function(e,t){c.onSuccess(e,t,a);d.dispose();s()},function(e,t){r(e);if(l==="验证码"){c.refresh(t.img_data)}var n=setTimeout(function(){i()},3e3);u.onfocus=function(){i();clearTimeout(n)}});return false},function(){d.dispose();return false})}}]);return n}(t["default"]);(e["default"]=u).displayName="Checker",d.exports=h.default})?e.apply(h,t):e)||(d.exports=n)},function(v,y,b){var e,t,n;t=[y,b(10),b(0),b(2),b(8),b(3),b(4),b(5),b(23),b(9),b(27),b(36),b(6),b(7)],void 0===(n="function"==typeof(e=function(e,r,i,t,l,s,o,c,n,u,d,f,a,p){"use strict";var h=b(1);function m(a){return function(){var e=(0,c["default"])(a),t;if(g()){var n=(0,c["default"])(this).constructor;t=Reflect.construct(e,arguments,n)}else{t=e.apply(this,arguments)}return(0,o["default"])(this,t)}}function g(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}Object.defineProperty(e,"__esModule",{value:true}),e["default"]=void 0,r=h(r),i=h(i),t=h(t),l=h(l),s=h(s),o=h(o),c=h(c),u=h(u),d=h(d),f=h(f),a=h(a),p=h(p);var k=function(e){(0,s["default"])(a,e);var n=m(a);function a(e){var t;(0,i["default"])(this,a);t=n.call(this,e);t.LOADABLE_PLUG_LIST=[d["default"],f["default"]];t.plugList={};t.openedPlugName=null;t.el=p["default"].createElement(b(38)((0,l["default"])(t)));t.artalk.el.appendChild(t.el);t.headerEl=t.el.querySelector(".artalk-editor-header");t.textareaWrapEl=t.el.querySelector(".artalk-editor-textarea-wrap");t.textareaEl=t.el.querySelector(".artalk-editor-textarea");t.closeCommentEl=t.el.querySelector(".artalk-close-comment");t.plugWrapEl=t.el.querySelector(".artalk-editor-plug-wrap");t.bottomEl=t.el.querySelector(".artalk-editor-bottom");t.bottomPartLeftEl=t.el.querySelector(".artalk-editor-bottom-part.artalk-left");t.plugSwitcherWrapEl=t.el.querySelector(".artalk-editor-plug-switcher-wrap");t.bottomPartRightEl=t.el.querySelector(".artalk-editor-bottom-part.artalk-right");t.submitBtn=t.el.querySelector(".artalk-send-btn");t.notifyWrapEl=t.el.querySelector(".artalk-editor-notify-wrap");t.initLocalStorage();t.initHeader();t.initTextarea();t.initEditorPlug();t.initBottomPart();return t}(0,t["default"])(a,[{key:"initLocalStorage",value:function e(){var t=this;var n=window.localStorage.getItem("ArtalkContent")||"";if(n.trim()!==""){this.showNotify("已自动恢复","i");this.setContent(n)}this.textareaEl.addEventListener("input",function(){t.saveContent()})}},{key:"initHeader",value:function e(){var a=this;Object.keys(this.user.data).forEach(function(t){var n=a.headerEl.querySelector('[name="'.concat(t,'"]'));if(n!==null&&n instanceof HTMLInputElement){n.value=a.user.data[t]||"";n.addEventListener("input",function(e){a.user.data[t]=n.value.trim();if(t!=="link"){a.user.data.password="";a.user.data.isAdmin=false;if(a.user.checkHasBasicUserInfo()&&a.artalk.list.checkNickEmailIsAdmin(a.user.data.nick,a.user.data.email)){a.artalk.checker.action("管理员",function(){a.artalk.list.refreshUI()})}}a.saveUser();a.artalk.list.refreshUI()})}})}},{key:"saveUser",value:function e(){this.user.save()}},{key:"saveContent",value:function e(){window.localStorage.setItem("ArtalkContent",this.getContentOriginal().trim())}},{key:"initTextarea",value:function e(){var n=this;this.textareaEl.addEventListener("keydown",function(e){var t=e.keyCode||e.which;if(t===9){e.preventDefault();n.insertContent("\t")}});this.textareaEl.addEventListener("input",function(e){n.adjustTextareaHeight()})}},{key:"adjustTextareaHeight",value:function e(){var t=this.textareaEl.offsetHeight-this.textareaEl.clientHeight;this.textareaEl.style.height="0px";this.textareaEl.style.height="".concat(this.textareaEl.scrollHeight+t,"px")}},{key:"initEditorPlug",value:function e(){var a=this;this.plugList={};this.plugWrapEl.innerHTML="";this.plugWrapEl.style.display="none";this.openedPlugName=null;this.plugSwitcherWrapEl.innerHTML="";this.LOADABLE_PLUG_LIST.forEach(function(e){var n=new e(a);a.plugList[n.getName()]=n;var t=p["default"].createElement(''.concat(n.getBtnHtml(),""));a.plugSwitcherWrapEl.appendChild(t);t.addEventListener("click",function(){a.plugSwitcherWrapEl.querySelectorAll(".active").forEach(function(e){return e.classList.remove("active")});if(n.getName()===a.openedPlugName){n.onHide();a.plugWrapEl.style.display="none";a.openedPlugName=null;return}if(a.plugWrapEl.querySelector('[data-plug-name="'.concat(n.getName(),'"]'))===null){var e=n.getElem();e.setAttribute("data-plug-name",n.getName());e.style.display="none";a.plugWrapEl.appendChild(e)}Array.from(a.plugWrapEl.children).forEach(function(e){var t=e.getAttribute("data-plug-name");if(t===n.getName()){e.style.display="";a.plugList[t].onShow()}else{e.style.display="none";a.plugList[t].onHide()}});a.plugWrapEl.style.display="";a.openedPlugName=n.getName();t.classList.add("active")})})}},{key:"closePlug",value:function e(){this.plugWrapEl.innerHTML="";this.plugWrapEl.style.display="none";this.openedPlugName=null}},{key:"insertContent",value:function e(t){if(document.selection){this.textareaEl.focus();document.selection.createRange().text=t;this.textareaEl.focus()}else if(this.textareaEl.selectionStart||this.textareaEl.selectionStart===0){var n=this.textareaEl.selectionStart;var a=this.textareaEl.selectionEnd;var r=this.textareaEl.scrollTop;this.setContent(this.textareaEl.value.substring(0,n)+t+this.textareaEl.value.substring(a,this.textareaEl.value.length));this.textareaEl.focus();this.textareaEl.selectionStart=n+t.length;this.textareaEl.selectionEnd=n+t.length;this.textareaEl.scrollTop=r}else{this.textareaEl.focus();this.textareaEl.value+=t}}},{key:"setContent",value:function e(t){this.textareaEl.value=t;this.saveContent();if(!!this.plugList&&!!this.plugList.preview){this.plugList.preview.updateContent()}this.adjustTextareaHeight()}},{key:"clearEditor",value:function e(){this.setContent("");this.cancelReply()}},{key:"getContent",value:function e(){var t=this.getContentOriginal();if(this.plugList&&this.plugList.emoticons){var n=this.plugList.emoticons;t=n.transEmoticonImageText(t)}return t}},{key:"getContentOriginal",value:function e(){return this.textareaEl.value||""}},{key:"getContentMarked",value:function e(){return this.artalk.marked(this.getContent())}},{key:"initBottomPart",value:function e(){this.initReply();this.initSubmit()}},{key:"initReply",value:function e(){this.replyComment=null;this.sendReplyEl=null}},{key:"setReply",value:function e(t){var n=this;if(this.replyComment!==null){this.cancelReply()}if(this.sendReplyEl===null){this.sendReplyEl=p["default"].createElement('
'+(n?e:b(e,!0))+"
\n":""+(n?e:b(e,!0))+"
"},a.prototype.blockquote=function(e){return"\n"+e+"\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,a){return this.options.headerIds?"
"+e+"
\n"},a.prototype.table=function(e,t){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?""+b(e.message+"",!0)+"";throw e}}d.exec=d,g.options=g.setOptions=function(e){return p(g.defaults,e),g},g.defaults=(g.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}})(),g.Parser=c,g.parser=c.parse,g.Renderer=a,g.TextRenderer=r,g.Lexer=o,g.lexer=o.lex,g.InlineLexer=u,g.inlineLexer=u.output,g.Slugger=t,g.parse=g,k.exports=g}()}).call(this,t(17))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=e(function(e){"use strict";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}}),c=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],t;function u(e){return''+e+""}return function(e,t){if(t===void 0)t={};var i=t.colors;if(i===void 0)i=c;var l=0;var s={};var n=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/;var a=/;var r=new RegExp("("+n.source+"|"+a.source+")|("+o().source+")","gmi");return e.replace(r,function(e,t,n){if(n){return u(n)}if(t==="<"){return"<"}var a;if(s[t]){a=s[t]}else{a=i[l];s[t]=a}var r=''+t+"";l=++l%i.length;return r})}}()},function(d,f,p){var e,t,n;t=[f,p(0),p(2),p(3),p(4),p(5),p(6)],void 0===(n="function"==typeof(e=function(e,i,t,n,r,l,a){"use strict";var s=p(1);function o(a){return function(){var e=(0,l["default"])(a),t;if(c()){var n=(0,l["default"])(this).constructor;t=Reflect.construct(e,arguments,n)}else{t=e.apply(this,arguments)}return(0,r["default"])(this,t)}}function c(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}Object.defineProperty(e,"__esModule",{value:true}),e["default"]=void 0,i=s(i),t=s(t),n=s(n),r=s(r),l=s(l);var u=function(e){(0,n["default"])(r,e);var a=o(r);function r(e){var t;(0,i["default"])(this,r);t=a.call(this,e);var n=JSON.parse(window.localStorage.getItem("ArtalkUser")||"{}");t.data={nick:n.nick||"",email:n.email||"",link:n.link||"",password:n.password||"",isAdmin:n.isAdmin||false};return t}(0,t["default"])(r,[{key:"save",value:function e(){window.localStorage.setItem("ArtalkUser",JSON.stringify(this.data))}},{key:"checkHasBasicUserInfo",value:function e(){return!!this.data.nick&&!!this.data.email}}]);return r}((a=s(a))["default"]);(e["default"]=u).displayName="User",d.exports=f.default})?e.apply(f,t):e)||(d.exports=n)},function(n,e){function a(e,t){return n.exports=a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}n.exports=a},function(d,h,m){var e,t,n;t=[h,m(0),m(2),m(3),m(4),m(5),m(6),m(7),m(11)],void 0===(n="function"==typeof(e=function(e,a,r,i,l,s,t,f,p){"use strict";var n=m(1);function o(a){return function(){var e=(0,s["default"])(a),t;if(c()){var n=(0,s["default"])(this).constructor;t=Reflect.construct(e,arguments,n)}else{t=e.apply(this,arguments)}return(0,l["default"])(this,t)}}function c(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}Object.defineProperty(e,"__esModule",{value:true}),e["default"]=void 0,a=n(a),r=n(r),i=n(i),l=n(l),s=n(s),t=n(t),f=n(f),p=n(p);var u=function(e){(0,i["default"])(n,e);var t=o(n);function n(){var r;(0,a["default"])(this,n);r=t.apply(this,arguments);r.LIST={"管理员":{body:function e(){return f["default"].createElement("敲入密码来验证管理员身份:")},reqAct:"AdminCheck",reqObj:function e(t){return{nick:r.artalk.user.data.nick,email:r.artalk.user.data.email,password:t}},onSuccess:function e(t,n,a){r.artalk.user.data.isAdmin=true;r.artalk.user.data.password=a;r.artalk.user.save()}},"验证码":{body:function e(){var t=f["default"].createElement('敲入验证码继续:'));r.LIST["验证码"].elem=t;t.querySelector(".artalk-captcha-img").onclick=function(){r.LIST["验证码"].refresh()};return t},reqAct:"CaptchaCheck",reqObj:function e(t){return{captcha:t}},onSuccess:function e(t,n,a){r.submitCaptchaVal=a},refresh:function e(t){var n=r.LIST["验证码"].elem;var a=n.querySelector(".artalk-captcha-img");if(!t){r.artalk.request("CaptchaCheck",{refresh:true},function(){},function(){},function(e,t){a.setAttribute("src",t.img_data)},function(){})}else{a.setAttribute("src",t)}}}};return r}(0,r["default"])(n,[{key:"action",value:function e(l,s){var o=this;var c=this.LIST[l];var t=f["default"].createElement();t.appendChild(c.body());var u=f["default"].createElement(''));t.appendChild(u);setTimeout(function(){u.focus()},80);var d=(0,p["default"])(this.artalk,"checker-".concat((new Date).getTime()));d.setMaskClickHide(false);d.show();u.onkeyup=function(e){if(e.keyCode===13){e.preventDefault();d.getEl().querySelector('button[data-action="confirm"]').click()}};this.artalk.ui.showDialog(d.getEl(),t,function(e,n){var a=u.value.trim();var t=n.innerText;var r=function e(t){n.innerText=t;n.classList.add("error")};var i=function e(){n.innerText=t;n.classList.remove("error")};o.artalk.request(c.reqAct,c.reqObj(a),function(){n.innerText="加载中..."},function(){},function(e,t){c.onSuccess(e,t,a);d.dispose();s()},function(e,t){r(e);if(l==="验证码"){c.refresh(t.img_data)}var n=setTimeout(function(){i()},3e3);u.onfocus=function(){i();clearTimeout(n)}});return false},function(){d.dispose();return false})}}]);return n}(t["default"]);(e["default"]=u).displayName="Checker",d.exports=h.default})?e.apply(h,t):e)||(d.exports=n)},function(v,y,b){var e,t,n;t=[y,b(10),b(0),b(2),b(8),b(3),b(4),b(5),b(23),b(9),b(27),b(36),b(6),b(7)],void 0===(n="function"==typeof(e=function(e,r,i,t,l,s,o,c,n,u,d,f,a,p){"use strict";var h=b(1);function m(a){return function(){var e=(0,c["default"])(a),t;if(g()){var n=(0,c["default"])(this).constructor;t=Reflect.construct(e,arguments,n)}else{t=e.apply(this,arguments)}return(0,o["default"])(this,t)}}function g(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}Object.defineProperty(e,"__esModule",{value:true}),e["default"]=void 0,r=h(r),i=h(i),t=h(t),l=h(l),s=h(s),o=h(o),c=h(c),u=h(u),d=h(d),f=h(f),a=h(a),p=h(p);var k=function(e){(0,s["default"])(a,e);var n=m(a);function a(e){var t;(0,i["default"])(this,a);t=n.call(this,e);t.LOADABLE_PLUG_LIST=[d["default"],f["default"]];t.plugList={};t.openedPlugName=null;t.el=p["default"].createElement(b(38)((0,l["default"])(t)));t.artalk.el.appendChild(t.el);t.headerEl=t.el.querySelector(".artalk-editor-header");t.textareaWrapEl=t.el.querySelector(".artalk-editor-textarea-wrap");t.textareaEl=t.el.querySelector(".artalk-editor-textarea");t.closeCommentEl=t.el.querySelector(".artalk-close-comment");t.plugWrapEl=t.el.querySelector(".artalk-editor-plug-wrap");t.bottomEl=t.el.querySelector(".artalk-editor-bottom");t.bottomPartLeftEl=t.el.querySelector(".artalk-editor-bottom-part.artalk-left");t.plugSwitcherWrapEl=t.el.querySelector(".artalk-editor-plug-switcher-wrap");t.bottomPartRightEl=t.el.querySelector(".artalk-editor-bottom-part.artalk-right");t.submitBtn=t.el.querySelector(".artalk-send-btn");t.notifyWrapEl=t.el.querySelector(".artalk-editor-notify-wrap");t.initLocalStorage();t.initHeader();t.initTextarea();t.initEditorPlug();t.initBottomPart();return t}(0,t["default"])(a,[{key:"initLocalStorage",value:function e(){var t=this;var n=window.localStorage.getItem("ArtalkContent")||"";if(n.trim()!==""){this.showNotify("已自动恢复","i");this.setContent(n)}this.textareaEl.addEventListener("input",function(){t.saveContent()})}},{key:"initHeader",value:function e(){var a=this;Object.keys(this.user.data).forEach(function(t){var n=a.headerEl.querySelector('[name="'.concat(t,'"]'));if(n!==null&&n instanceof HTMLInputElement){n.value=a.user.data[t]||"";n.addEventListener("input",function(e){a.user.data[t]=n.value.trim();if(t!=="link"){a.user.data.password="";a.user.data.isAdmin=false;if(a.user.checkHasBasicUserInfo()&&a.artalk.list.checkNickEmailIsAdmin(a.user.data.nick,a.user.data.email)){a.artalk.checker.action("管理员",function(){a.artalk.list.refreshUI()})}}a.saveUser();a.artalk.list.refreshUI()})}})}},{key:"saveUser",value:function e(){this.user.save()}},{key:"saveContent",value:function e(){window.localStorage.setItem("ArtalkContent",this.getContentOriginal().trim())}},{key:"initTextarea",value:function e(){var n=this;this.textareaEl.addEventListener("keydown",function(e){var t=e.keyCode||e.which;if(t===9){e.preventDefault();n.insertContent("\t")}});this.textareaEl.addEventListener("input",function(e){n.adjustTextareaHeight()})}},{key:"adjustTextareaHeight",value:function e(){var t=this.textareaEl.offsetHeight-this.textareaEl.clientHeight;this.textareaEl.style.height="0px";this.textareaEl.style.height="".concat(this.textareaEl.scrollHeight+t,"px")}},{key:"initEditorPlug",value:function e(){var a=this;this.plugList={};this.plugWrapEl.innerHTML="";this.plugWrapEl.style.display="none";this.openedPlugName=null;this.plugSwitcherWrapEl.innerHTML="";this.LOADABLE_PLUG_LIST.forEach(function(e){var n=new e(a);a.plugList[n.getName()]=n;var t=p["default"].createElement(''.concat(n.getBtnHtml(),""));a.plugSwitcherWrapEl.appendChild(t);t.addEventListener("click",function(){a.plugSwitcherWrapEl.querySelectorAll(".active").forEach(function(e){return e.classList.remove("active")});if(n.getName()===a.openedPlugName){n.onHide();a.plugWrapEl.style.display="none";a.openedPlugName=null;return}if(a.plugWrapEl.querySelector('[data-plug-name="'.concat(n.getName(),'"]'))===null){var e=n.getElem();e.setAttribute("data-plug-name",n.getName());e.style.display="none";a.plugWrapEl.appendChild(e)}Array.from(a.plugWrapEl.children).forEach(function(e){var t=e.getAttribute("data-plug-name");if(t===n.getName()){e.style.display="";a.plugList[t].onShow()}else{e.style.display="none";a.plugList[t].onHide()}});a.plugWrapEl.style.display="";a.openedPlugName=n.getName();t.classList.add("active")})})}},{key:"closePlug",value:function e(){this.plugWrapEl.innerHTML="";this.plugWrapEl.style.display="none";this.openedPlugName=null}},{key:"insertContent",value:function e(t){if(document.selection){this.textareaEl.focus();document.selection.createRange().text=t;this.textareaEl.focus()}else if(this.textareaEl.selectionStart||this.textareaEl.selectionStart===0){var n=this.textareaEl.selectionStart;var a=this.textareaEl.selectionEnd;var r=this.textareaEl.scrollTop;this.setContent(this.textareaEl.value.substring(0,n)+t+this.textareaEl.value.substring(a,this.textareaEl.value.length));this.textareaEl.focus();this.textareaEl.selectionStart=n+t.length;this.textareaEl.selectionEnd=n+t.length;this.textareaEl.scrollTop=r}else{this.textareaEl.focus();this.textareaEl.value+=t}}},{key:"setContent",value:function e(t){this.textareaEl.value=t;this.saveContent();if(!!this.plugList&&!!this.plugList.preview){this.plugList.preview.updateContent()}this.adjustTextareaHeight()}},{key:"clearEditor",value:function e(){this.setContent("");this.cancelReply()}},{key:"getContent",value:function e(){var t=this.getContentOriginal();if(this.plugList&&this.plugList.emoticons){var n=this.plugList.emoticons;t=n.transEmoticonImageText(t)}return t}},{key:"getContentOriginal",value:function e(){return this.textareaEl.value||""}},{key:"getContentMarked",value:function e(){return this.artalk.marked(this.getContent())}},{key:"initBottomPart",value:function e(){this.initReply();this.initSubmit()}},{key:"initReply",value:function e(){this.replyComment=null;this.sendReplyEl=null}},{key:"setReply",value:function e(t){var n=this;if(this.replyComment!==null){this.cancelReply()}if(this.sendReplyEl===null){this.sendReplyEl=p["default"].createElement('