From 110834725409362af6b4a1f6bd96d067adc5a199 Mon Sep 17 00:00:00 2001 From: Dillon Date: Fri, 28 Mar 2025 21:53:22 +0800 Subject: [PATCH 1/2] feat(lib): upgrade waline from v2.6.1 to v3.5.6 --- assets/data/cdn/cdnjs.yml | 6 +- assets/data/cdn/jsdelivr.cloudflare.yml | 3 + assets/data/cdn/jsdelivr.fastly.yml | 3 + assets/data/cdn/jsdelivr.yml | 6 +- assets/lib/VERSION.md | 2 +- assets/lib/waline/waline.css | 2 +- assets/lib/waline/waline.js | 85 ++++++++++++++++++++++++- 7 files changed, 98 insertions(+), 9 deletions(-) diff --git a/assets/data/cdn/cdnjs.yml b/assets/data/cdn/cdnjs.yml index 01af9ca94..85de7fc7e 100644 --- a/assets/data/cdn/cdnjs.yml +++ b/assets/data/cdn/cdnjs.yml @@ -52,6 +52,6 @@ libFiles: # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent/3.1.1/cookieconsent.min.css cookieconsentJS: cookieconsent/3.1.1/cookieconsent.min.js - # waline@2.6.1 https://waline.js.org/ - walineCSS: waline/2.6.1/waline.css - walineJS: waline/2.6.1/waline.js + # waline@3.5.6 https://waline.js.org/ + walineCSS: waline/3.5.6/waline.css + walineJS: waline/3.5.6/waline.js diff --git a/assets/data/cdn/jsdelivr.cloudflare.yml b/assets/data/cdn/jsdelivr.cloudflare.yml index f11a7c0d6..82df81fc6 100644 --- a/assets/data/cdn/jsdelivr.cloudflare.yml +++ b/assets/data/cdn/jsdelivr.cloudflare.yml @@ -56,3 +56,6 @@ libFiles: # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js + # waline@3.5.6 https://waline.js.org/ + walineCSS: '@waline/client@3.5.6/dist/waline.css' + walineJS: '@waline/client@3.5.6/dist/waline.min.js' diff --git a/assets/data/cdn/jsdelivr.fastly.yml b/assets/data/cdn/jsdelivr.fastly.yml index a8a66aa72..9dc4cd058 100644 --- a/assets/data/cdn/jsdelivr.fastly.yml +++ b/assets/data/cdn/jsdelivr.fastly.yml @@ -56,3 +56,6 @@ libFiles: # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js + # waline@3.5.6 https://waline.js.org/ + walineCSS: '@waline/client@3.5.6/dist/waline.css' + walineJS: '@waline/client@3.5.6/dist/waline.min.js' diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index 9a40384eb..802a74ff4 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -56,6 +56,6 @@ libFiles: # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js - # waline@2.6.1 https://waline.js.org/ - walineCSS: '@waline/client@2.6.1/dist/waline.css' - walineJS: '@waline/client@2.6.1/dist/waline.min.js' + # waline@3.5.6 https://waline.js.org/ + walineCSS: '@waline/client@3.5.6/dist/waline.css' + walineJS: '@waline/client@3.5.6/dist/waline.min.js' diff --git a/assets/lib/VERSION.md b/assets/lib/VERSION.md index 12dc45163..ca86495bf 100644 --- a/assets/lib/VERSION.md +++ b/assets/lib/VERSION.md @@ -26,4 +26,4 @@ | [Twemoji](https://github.com/twitter/twemoji) | twemoji | 14.0.2 | | [TypeIt](https://github.com/alexmacarthur/typeit) | typeit | 8.6.0 | | [Valine](https://github.com/xCss/Valine) | valine | 1.5.3 | -| [Waline](https://github.com/walinejs/waline) | waline | 2.6.1 | +| [Waline](https://github.com/walinejs/waline) | waline | 3.5.6 | diff --git a/assets/lib/waline/waline.css b/assets/lib/waline/waline.css index 624432c77..3947baac0 100644 --- a/assets/lib/waline/waline.css +++ b/assets/lib/waline/waline.css @@ -1 +1 @@ -:root{--waline-font-size: 1rem;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-color: #444;--waline-bgcolor: #fff;--waline-bgcolor-light: #f8f8f8;--waline-bgcolor-hover: #f0f0f0;--waline-border-color: #ddd;--waline-disable-bgcolor: #f8f8f8;--waline-disable-color: #000;--waline-code-bgcolor: #282c34;--waline-bq-color: #f0f0f0;--waline-avatar-size: 3.25rem;--waline-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.75em;--waline-info-bgcolor: #f8f8f8;--waline-info-color: #999;--waline-info-font-size: 0.625em;--waline-border: 1px solid var(--waline-border-color);--waline-avatar-radius: 50%;--waline-box-shadow: none}[data-waline]{font-size:var(--waline-font-size);text-align:left}[data-waline] *{box-sizing:content-box;line-height:1.75}[data-waline] p{color:var(--waline-color)}[data-waline] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;word-break:break-word;cursor:pointer}[data-waline] a:hover{color:var(--waline-active-color)}[data-waline] img{max-width:100%;max-height:400px;border:none}[data-waline] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bgcolor-light)}[data-waline] code,[data-waline] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bgcolor-light);font-size:85%}[data-waline] pre{overflow:auto;padding:10px;line-height:1.45}[data-waline] pre::-webkit-scrollbar{width:6px;height:6px}[data-waline] pre::-webkit-scrollbar-track-piece:horizontal{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}[data-waline] pre::-webkit-scrollbar-thumb:horizontal{width:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}[data-waline] pre code{padding:0;background:rgba(0,0,0,0);color:var(--waline-color);white-space:pre-wrap;word-break:keep-all}[data-waline] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-left:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}[data-waline] blockquote>p{margin:0}[data-waline] ol,[data-waline] ul{margin-left:1.25em;padding:0}[data-waline] input[type=checkbox],[data-waline] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.wl-btn{display:inline-block;vertical-align:middle;min-width:2.5em;margin-bottom:0;padding:.5em 1em;border:1px solid var(--waline-border-color);border-radius:.5em;background:rgba(0,0,0,0);color:var(--waline-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;user-select:none;transition-duration:.4s;touch-action:manipulation}.wl-btn:hover,.wl-btn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.wl-btn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.wl-btn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.wl-btn.primary:hover,.wl-btn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.wl-btn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.wl-loading{text-align:center}.wl-loading svg{margin:0 auto}.wl-comment{position:relative;display:flex;margin-bottom:.75em}.wl-close{position:absolute;top:-4px;right:-4px;padding:0;border:none;background:rgba(0,0,0,0);line-height:1;cursor:pointer}.wl-login-info{max-width:80px;margin-top:.75em;text-align:center}.wl-logout-btn{position:absolute;top:-10px;right:-10px;padding:3px;border:none;background:rgba(0,0,0,0);line-height:0;cursor:pointer}.wl-avatar{position:relative;width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin:0 auto;border:var(--waline-border);border-radius:var(--waline-avatar-radius)}@media(max-width: 720px){.wl-avatar{width:var(--waline-m-avatar-size);height:var(--waline-m-avatar-size)}}.wl-avatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.wl-login-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.wl-panel{position:relative;flex-shrink:1;width:100%;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.wl-header{display:flex;overflow:hidden;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em}@media(max-width: 580px){.wl-header{display:block}}.wl-header label{min-width:40px;padding:.75em .5em;color:var(--waline-color);font-size:.75em;text-align:center}.wl-header input{flex:1;width:0;padding:.5em;background:rgba(0,0,0,0);font-size:.625em;resize:none}.wl-header-item{display:flex;flex:1}@media(max-width: 580px){.wl-header-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.wl-header-1 .wl-header-item{width:100%}.wl-header-2 .wl-header-item{width:50%}@media(max-width: 580px){.wl-header-2 .wl-header-item{flex:0;width:100%}}.wl-header-3 .wl-header-item{width:33.33%}@media(max-width: 580px){.wl-header-3 .wl-header-item{width:100%}}.wl-editor,.wl-input{max-width:100%;border:none;color:var(--waline-color);outline:none;transition:all .25s ease}.wl-editor:focus,.wl-input:focus{background:var(--waline-bgcolor-light)}.wl-editor{position:relative;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:rgba(0,0,0,0);font-size:.875em;resize:vertical}.wl-preview{padding:0 .5em .5em}.wl-preview h4{margin:.25em;font-weight:bold;font-size:.9375em}.wl-preview .wl-content{min-height:1.25em;padding:.25em;word-break:break-word;hyphens:auto}.wl-preview .wl-content>*:first-child{margin-top:0}.wl-preview .wl-content>*:last-child{margin-bottom:0}.wl-footer{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.wl-actions{display:flex;flex:2;align-items:center}.wl-action{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;margin:2px;padding:0;border:none;background:rgba(0,0,0,0);color:var(--waline-color);font-size:16px;cursor:pointer}.wl-action:hover{color:var(--waline-theme-color)}.wl-action.actived{color:var(--waline-active-color)}#wl-image-upload{display:none}#wl-image-upload:focus+label{color:var(--waline-color)}#wl-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.wl-info{display:flex;flex:3;align-items:center;justify-content:flex-end}.wl-info .wl-text-number{color:var(--waline-info-color);font-size:.75em}.wl-info .wl-text-number .illegal{color:red}.wl-info button{margin-left:.75em}.wl-info button svg{display:block;margin:0 auto;line-height:18px}.wl-emoji-popup{position:absolute;top:100%;left:1.25em;z-index:10;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);opacity:0;visibility:hidden;transition:transform .2s ease-out,opacity .2s ease-out;transform:scale(0.9, 0.9);transform-origin:0 0}.wl-emoji-popup.display{opacity:1;visibility:visible;transform:none}.wl-emoji-popup button{display:inline-block;vertical-align:middle;width:2em;margin:.125em;padding:0;border-width:0;background:rgba(0,0,0,0);font-size:inherit;line-height:2;text-align:center;cursor:pointer}.wl-emoji-popup button:hover{background:var(--waline-bgcolor-hover)}.wl-emoji-popup .wl-emoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.wl-emoji-popup .wl-tab-wrapper{overflow-y:auto;max-height:145px;padding:.5em}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-track-piece:vertical{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tabs{position:relative;height:2em;padding:0 6px 1px;overflow-x:scroll;white-space:nowrap}.wl-emoji-popup .wl-tabs::before{content:" ";position:absolute;top:0;right:0;left:0;z-index:2;height:1px;background:var(--waline-border-color)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-track-piece:horizontal{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-thumb:horizontal{height:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tab{position:relative;margin:0;padding:0 .5em}.wl-emoji-popup .wl-tab.active{z-index:3;border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-right-radius:6px;border-bottom-left-radius:6px;background:var(--waline-bgcolor)}.wl-gif-popup{position:absolute;top:100%;left:1.25em;z-index:10;width:calc(100% - 3em);padding:.75em .75em .25em;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);opacity:0;visibility:hidden;transition:transform .2s ease-out,opacity .2s ease-out;transform:scale(0.9, 0.9);transform-origin:0 0}.wl-gif-popup.display{opacity:1;visibility:visible;transform:none}.wl-gif-popup input{box-sizing:border-box;width:100%;margin-bottom:10px;padding:3px 5px;border:var(--waline-border)}.wl-gif-popup img{display:block;box-sizing:border-box;width:100%;border-width:2px;border-style:solid;border-color:#fff;cursor:pointer}.wl-gif-popup img:hover{border-color:var(--waline-theme-color);border-radius:2px}.wl-gallery{max-height:80vh;display:flex;overflow-y:auto}.wl-gallery-column{height:-webkit-max-content;height:-moz-max-content;height:max-content;flex:1;display:flex;flex-direction:column}.wl-cards .wl-item{position:relative;display:flex;padding:.5em}.wl-cards .wl-item:last-child .wl-card{border-bottom:none}.wl-cards .wl-card .wl-item{padding-right:0}.wl-cards .wl-user{--avatar-size: var(--waline-avatar-size);position:relative;margin-right:.75em}@media(max-width: 720px){.wl-cards .wl-user{--avatar-size: var(--waline-m-avatar-size)}}.wl-cards .wl-user img{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}.wl-cards .wl-user .verified-icon{position:absolute;top:calc(var(--avatar-size)*3/4);left:calc(var(--avatar-size)*3/4);border-radius:50%;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.wl-card{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.wl-card:first-child{margin-left:1em}.wl-card .wl-head{line-height:1.5}.wl-card .wl-nick{position:relative;display:inline-block;margin-right:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.wl-card .wl-nick svg{position:relative;bottom:-0.125em;line-height:1}.wl-card span.wl-nick{color:var(--waline-dark-grey)}.wl-card .wl-badge{display:inline-block;margin-right:1em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-card .wl-time{margin-right:.875em;color:var(--waline-info-color);font-size:.75em}.wl-card .wl-meta{position:relative;line-height:1}.wl-card .wl-meta>span{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bgcolor);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}@media(max-width: 520px){.wl-card .wl-meta>span{display:none}}.wl-card .wl-meta>span:empty{display:none}.wl-card .wl-comment-actions{float:right}.wl-card .wl-delete,.wl-card .wl-like,.wl-card .wl-reply{display:inline-flex;align-items:center;padding:4px;border:none;background:rgba(0,0,0,0);color:var(--waline-color);line-height:1;cursor:pointer;transition:color .2s ease}.wl-card .wl-delete:hover,.wl-card .wl-like:hover,.wl-card .wl-reply:hover{color:var(--waline-theme-color)}.wl-card .wl-delete.active,.wl-card .wl-like.active,.wl-card .wl-reply.active{color:var(--waline-active-color)}.wl-card .wl-content{position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;line-height:2;word-wrap:break-word}.wl-card .wl-content.expand{overflow:hidden;max-height:8em;cursor:pointer}.wl-card .wl-content.expand::before{content:"";position:absolute;top:0;bottom:3.15em;left:0;z-index:999;display:block;width:100%;background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.wl-card .wl-content.expand::after{content:attr(data-expand);position:absolute;bottom:0;left:0;z-index:999;display:block;width:100%;height:3.15em;background:rgba(255,255,255,.9);color:#828586;line-height:3.15em;text-align:center}.wl-card .wl-content>*:first-child{margin-top:0}.wl-card .wl-content>*:last-child{margin-bottom:0}.wl-card .wl-admin-actions{margin:8px 0;font-size:12px;text-align:right}.wl-card .wl-comment-status{margin:0 8px}.wl-card .wl-comment-status .wl-btn{border-radius:0}.wl-card .wl-comment-status .wl-btn:first-child{border-radius:.5em 0 0 .5em}.wl-card .wl-comment-status .wl-btn:last-child{border-radius:0 .5em .5em 0}.wl-card .wl-quote{border-left:1px dashed rgba(237,237,237,.5)}.wl-card .wl-quote .wl-user{--avatar-size: var(--waline-m-avatar-size)}.wl-close-icon{color:var(--waline-border-color)}.wl-content .vemoji,.wl-content .wl-emoji{display:inline-block;vertical-align:baseline;height:1.25em;margin:-0.125em .25em}.wl-content .wl-tex{background:var(--waline-info-bgcolor);color:var(--waline-info-color)}.wl-content span.wl-tex{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.wl-content p.wl-tex{text-align:center}.wl-content .katex-display{overflow:auto hidden;-webkit-overflow-scrolling:touch;padding-top:.2em;padding-bottom:.2em}.wl-content .katex-display::-webkit-scrollbar{height:3px}.wl-content .katex-error{color:red}.wl-count{padding:.375em;font-weight:bold;font-size:1.25em}.wl-empty{overflow:auto;padding:1.25em;color:var(--waline-color);text-align:center}.wl-operation{text-align:center}.wl-operation button{margin:1em 0}.wl-power{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:right}.wl-content pre,.wl-content pre[class*=language-]{overflow:auto;margin:.75rem 0;padding:1rem 1.25rem;border-radius:6px;background:var(--waline-code-bgcolor);line-height:1.4}.wl-content pre code,.wl-content pre[class*=language-] code{padding:0;border-radius:0;background:rgba(0,0,0,0) !important;color:#bbb}.wl-content code[class*=language-],.wl-content pre[class*=language-]{background:none;color:#ccc;font-size:1em;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;text-align:left;white-space:pre;word-spacing:normal;word-wrap:normal;word-break:normal;tab-size:4;hyphens:none}.wl-content pre[class*=language-]{overflow:auto}.wl-content :not(pre)>code[class*=language-],.wl-content pre[class*=language-]{background:#2d2d2d}.wl-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wl-content .token.comment,.wl-content .token.block-comment,.wl-content .token.prolog,.wl-content .token.doctype,.wl-content .token.cdata{color:#999}.wl-content .token.punctuation{color:#ccc}.wl-content .token.tag,.wl-content .token.attr-name,.wl-content .token.namespace,.wl-content .token.deleted{color:#e2777a}.wl-content .token.function-name{color:#6196cc}.wl-content .token.boolean,.wl-content .token.number,.wl-content .token.function{color:#f08d49}.wl-content .token.property,.wl-content .token.class-name,.wl-content .token.constant,.wl-content .token.symbol{color:#f8c555}.wl-content .token.selector,.wl-content .token.important,.wl-content .token.atrule,.wl-content .token.keyword,.wl-content .token.builtin{color:#cc99cd}.wl-content .token.string,.wl-content .token.char,.wl-content .token.attr-value,.wl-content .token.regex,.wl-content .token.variable{color:#7ec699}.wl-content .token.operator,.wl-content .token.entity,.wl-content .token.url{color:#67cdcc}.wl-content .token.important,.wl-content .token.bold{font-weight:bold}.wl-content .token.italic{font-style:italic}.wl-content .token.entity{cursor:help}.wl-content .token.inserted{color:green}.wl-recent-item p{display:inline} \ No newline at end of file +:root{--waline-font-size: 1rem;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-color: #444;--waline-bg-color: #fff;--waline-bg-color-light: #f8f8f8;--waline-bg-color-hover: #f0f0f0;--waline-border-color: #ddd;--waline-disable-bg-color: #f8f8f8;--waline-disable-color: #000;--waline-code-bg-color: #282c34;--waline-bq-color: #f0f0f0;--waline-avatar-size: 3.25rem;--waline-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.75em;--waline-info-bg-color: #f8f8f8;--waline-info-color: #999;--waline-info-font-size: 0.625em;--waline-border: 1px solid var(--waline-border-color);--waline-avatar-radius: 50%;--waline-box-shadow: none}[data-waline]{font-size:var(--waline-font-size);text-align:start}[dir=rtl] [data-waline]{direction:rtl}[data-waline] *{box-sizing:content-box;line-height:1.75}[data-waline] p{color:var(--waline-color)}[data-waline] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;word-break:break-word;cursor:pointer}[data-waline] a:hover{color:var(--waline-active-color)}[data-waline] img{max-width:100%;max-height:400px;border:none}[data-waline] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bg-color-light)}[data-waline] code,[data-waline] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bg-color-light);font-size:85%}[data-waline] pre{overflow:auto;padding:10px;line-height:1.45}[data-waline] pre::-webkit-scrollbar{width:6px;height:6px}[data-waline] pre::-webkit-scrollbar-track-piece:horizontal{border-radius:6px;background:rgba(0,0,0,.1)}[data-waline] pre::-webkit-scrollbar-thumb:horizontal{width:6px;border-radius:6px;background:var(--waline-theme-color)}[data-waline] pre code{padding:0;background:rgba(0,0,0,0);color:var(--waline-color);white-space:pre-wrap;word-break:keep-all}[data-waline] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-inline-start:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}[data-waline] blockquote>p{margin:0}[data-waline] ol,[data-waline] ul{margin-inline-start:1.25em;padding:0}[data-waline] input[type=checkbox],[data-waline] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.wl-btn{display:inline-block;vertical-align:middle;min-width:2.5em;margin-bottom:0;padding:.5em 1em;border:1px solid var(--waline-border-color);border-radius:.5em;background:rgba(0,0,0,0);color:var(--waline-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;user-select:none;touch-action:manipulation;transition-duration:.4s}.wl-btn:hover,.wl-btn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.wl-btn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bg-color);color:var(--waline-disable-color);cursor:not-allowed}.wl-btn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.wl-btn.primary:hover,.wl-btn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.wl-btn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bg-color);color:var(--waline-disable-color);cursor:not-allowed}.wl-loading{text-align:center}.wl-loading svg{margin:0 auto}.wl-comment{position:relative;display:flex;margin-bottom:.75em}.wl-close{position:absolute;inset-inline-end:-4px;top:-4px;padding:0;border:none;background:rgba(0,0,0,0);line-height:1;cursor:pointer}.wl-login-info{max-width:80px;margin-top:.75em;text-align:center}.wl-logout-btn{position:absolute;inset-inline-end:-10px;top:-10px;padding:3px;border:none;background:rgba(0,0,0,0);line-height:0;cursor:pointer}.wl-avatar{position:relative;width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin:0 auto;border:var(--waline-border);border-radius:var(--waline-avatar-radius)}@media(max-width: 720px){.wl-avatar{width:var(--waline-m-avatar-size);height:var(--waline-m-avatar-size)}}.wl-avatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.wl-login-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.wl-panel{position:relative;flex-shrink:1;width:100%;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow)}.wl-header{display:flex;overflow:hidden;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em}@media(max-width: 580px){.wl-header{display:block}}.wl-header label{min-width:40px;padding:.75em .5em;color:var(--waline-color);font-size:.75em;text-align:center}.wl-header input{flex:1;resize:none;width:0;padding:.5em;background:rgba(0,0,0,0);font-size:.625em}.wl-header-item{display:flex;flex:1}@media(max-width: 580px){.wl-header-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.wl-header-1 .wl-header-item{width:100%}.wl-header-2 .wl-header-item{width:50%}@media(max-width: 580px){.wl-header-2 .wl-header-item{flex:0;width:100%}}.wl-header-3 .wl-header-item{width:33.33%}@media(max-width: 580px){.wl-header-3 .wl-header-item{width:100%}}.wl-editor{position:relative;resize:vertical;box-sizing:border-box;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:rgba(0,0,0,0);font-size:.875em}.wl-editor,.wl-input{max-width:100%;border:none;color:var(--waline-color);outline:none;transition:all .25s ease}.wl-editor:focus,.wl-input:focus{background:var(--waline-bg-color-light)}.wl-preview{padding:0 .5em .5em}.wl-preview h4{margin:.25em;font-weight:bold;font-size:.9375em}.wl-preview .wl-content{min-height:1.25em;padding:.25em;word-break:break-word;hyphens:auto}.wl-preview .wl-content>*:first-child{margin-top:0}.wl-preview .wl-content>*:last-child{margin-bottom:0}.wl-footer{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.wl-actions{display:flex;flex:2;align-items:center}.wl-action{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;margin:2px;padding:0;border:none;background:rgba(0,0,0,0);color:var(--waline-color);font-size:16px;cursor:pointer}.wl-action:hover{color:var(--waline-theme-color)}.wl-action.active{color:var(--waline-active-color)}#wl-image-upload{display:none}#wl-image-upload:focus+label{color:var(--waline-color)}#wl-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.wl-info{display:flex;flex:3;align-items:center;justify-content:flex-end}.wl-info .wl-text-number{color:var(--waline-info-color);font-size:.75em}.wl-info .wl-text-number .illegal{color:red}.wl-info button{margin-inline-start:.75em}.wl-info button svg{display:block;margin:0 auto;line-height:18px}.wl-emoji-popup{position:absolute;inset-inline-start:1.25em;top:100%;z-index:10;display:none;width:100%;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow)}.wl-emoji-popup.display{display:block}.wl-emoji-popup button{display:inline-block;vertical-align:middle;width:2em;margin:.125em;padding:0;border-width:0;background:rgba(0,0,0,0);font-size:inherit;line-height:2;text-align:center;cursor:pointer}.wl-emoji-popup button:hover{background:var(--waline-bg-color-hover)}.wl-emoji-popup .wl-emoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.wl-emoji-popup .wl-tab-wrapper{overflow-y:auto;max-height:145px;padding:.5em}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-track-piece:vertical{border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tabs{position:relative;overflow-x:auto;padding:0 6px;white-space:nowrap}.wl-emoji-popup .wl-tabs::before{content:" ";position:absolute;top:0;right:0;left:0;z-index:2;height:1px;background:var(--waline-border-color)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-track-piece:horizontal{border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-thumb:horizontal{height:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tab{position:relative;margin:0;padding:0 .5em}.wl-emoji-popup .wl-tab.active{z-index:3;border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-right-radius:6px;border-bottom-left-radius:6px;background:var(--waline-bg-color)}.wl-gif-popup{position:absolute;inset-inline-start:1.25em;top:100%;z-index:10;width:calc(100% - 3em);padding:.75em .75em .25em;border:var(--waline-border);border-radius:6px;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow);opacity:0;visibility:hidden;transition:transform .2s ease-out,opacity .2s ease-out;transform:scale(0.9, 0.9);transform-origin:0 0}.wl-gif-popup.display{opacity:1;visibility:visible;transform:none}.wl-gif-popup input{box-sizing:border-box;width:100%;margin-bottom:10px;padding:3px 5px;border:var(--waline-border)}.wl-gif-popup img{display:block;box-sizing:border-box;width:100%;border-width:2px;border-style:solid;border-color:#fff;cursor:pointer}.wl-gif-popup img:hover{border-color:var(--waline-theme-color);border-radius:2px}.wl-gallery{display:flex;overflow-y:auto;max-height:80vh}.wl-gallery-column{display:flex;flex:1;flex-direction:column;height:-webkit-max-content;height:-moz-max-content;height:max-content}.wl-cards .wl-user{--avatar-size: var(--waline-avatar-size);position:relative;margin-inline-end:.75em}@media(max-width: 720px){.wl-cards .wl-user{--avatar-size: var(--waline-m-avatar-size)}}.wl-cards .wl-user .wl-user-avatar{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}.wl-cards .wl-user .verified-icon{position:absolute;inset-inline-start:calc(var(--avatar-size)*3/4);top:calc(var(--avatar-size)*3/4);border-radius:50%;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow)}.wl-card-item{position:relative;display:flex;padding:.5em}.wl-card-item .wl-card-item{padding-inline-end:0}.wl-card{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.wl-card:first-child{margin-inline-start:1em}.wl-card-item:last-child>.wl-card{border-bottom:none}.wl-card .wl-nick svg{position:relative;bottom:-0.125em;line-height:1}.wl-card .wl-head{overflow:hidden;line-height:1.5}.wl-card .wl-head .wl-nick{position:relative;display:inline-block;margin-inline-end:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.wl-card span.wl-nick{color:var(--waline-dark-grey)}.wl-card .wl-badge{display:inline-block;margin-inline-end:1em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-card .wl-time{margin-inline-end:.875em;color:var(--waline-info-color);font-size:.75em}.wl-card .wl-meta{position:relative;line-height:1}.wl-card .wl-meta>span{display:inline-block;margin-inline-end:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bg-color);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}.wl-card .wl-meta>span:empty{display:none}.wl-card .wl-comment-actions{float:right;line-height:1}[dir=rtl] .wl-card .wl-comment-actions{float:left}.wl-card .wl-delete,.wl-card .wl-like,.wl-card .wl-reply,.wl-card .wl-edit{display:inline-flex;align-items:center;border:none;background:rgba(0,0,0,0);color:var(--waline-color);line-height:1;cursor:pointer;transition:color .2s ease}.wl-card .wl-delete:hover,.wl-card .wl-like:hover,.wl-card .wl-reply:hover,.wl-card .wl-edit:hover{color:var(--waline-theme-color)}.wl-card .wl-delete.active,.wl-card .wl-like.active,.wl-card .wl-reply.active,.wl-card .wl-edit.active{color:var(--waline-active-color)}.wl-card .wl-content{position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;line-height:2;word-wrap:break-word}.wl-card .wl-content.expand{overflow:hidden;max-height:8em;cursor:pointer}.wl-card .wl-content.expand::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:3.15em;z-index:999;display:block;width:100%;background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.wl-card .wl-content.expand::after{content:attr(data-expand);position:absolute;inset-inline-start:0;bottom:0;z-index:999;display:block;width:100%;height:3.15em;background:hsla(0,0%,100%,.9);color:#828586;line-height:3.15em;text-align:center}.wl-card .wl-content>*:first-child{margin-top:0}.wl-card .wl-content>*:last-child{margin-bottom:0}.wl-card .wl-admin-actions{margin:8px 0;font-size:12px;text-align:right}.wl-card .wl-comment-status{margin:0 8px}.wl-card .wl-comment-status .wl-btn{border-radius:0}.wl-card .wl-comment-status .wl-btn:first-child{border-inline-end:0;border-radius:.5em 0 0 .5em}.wl-card .wl-comment-status .wl-btn:last-child{border-inline-start:0;border-radius:0 .5em .5em 0}.wl-card .wl-quote{border-inline-start:1px dashed rgba(237,237,237,.5)}.wl-card .wl-quote .wl-user{--avatar-size: var(--waline-m-avatar-size)}.wl-close-icon{color:var(--waline-border-color)}.wl-content .vemoji,.wl-content .wl-emoji{display:inline-block;vertical-align:baseline;height:1.25em;margin:-0.125em .25em}.wl-content .wl-tex{background:var(--waline-info-bg-color);color:var(--waline-info-color)}.wl-content span.wl-tex{display:inline-block;margin-inline-end:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.wl-content p.wl-tex{text-align:center}.wl-content .katex-display{overflow:auto hidden;padding-top:.2em;padding-bottom:.2em;-webkit-overflow-scrolling:touch}.wl-content .katex-display::-webkit-scrollbar{height:3px}.wl-content .katex-error{color:red}.wl-count{flex:1;font-weight:bold;font-size:1.25em}.wl-empty{overflow:auto;padding:1.25em;color:var(--waline-color);text-align:center}.wl-operation{text-align:center}.wl-operation button{margin:1em 0}.wl-power{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:end}.wl-meta-head{display:flex;flex-direction:row;align-items:center;padding:.375em}.wl-sort{margin:0;list-style-type:none}.wl-sort li{display:inline-block;color:var(--waline-info-color);font-size:.75em;cursor:pointer}.wl-sort li.active{color:var(--waline-theme-color)}.wl-sort li+li{margin-inline-start:1em}.wl-reaction{overflow:auto hidden;margin-bottom:1.75em;text-align:center}.wl-reaction img{width:100%;height:100%;transition:all 250ms ease-in-out}.wl-reaction-title{margin:16px auto;font-weight:bold;font-size:18px}.wl-reaction-list{display:flex;flex-direction:row;gap:16px;justify-content:center;margin:0;padding:8px;list-style-type:none}@media(max-width: 580px){.wl-reaction-list{gap:12px}}[data-waline] .wl-reaction-list{margin-inline-start:0}.wl-reaction-item{display:flex;flex-direction:column;align-items:center;cursor:pointer}.wl-reaction-item:hover img,.wl-reaction-item.active img{transform:scale(1.15)}.wl-reaction-img{position:relative;width:42px;height:42px}@media(max-width: 580px){.wl-reaction-img{width:32px;height:32px}}.wl-reaction-loading{position:absolute;inset-inline-end:-5px;top:-4px;width:18px;height:18px;color:var(--waline-theme-color)}.wl-reaction-votes{position:absolute;inset-inline-end:-9px;top:-9px;min-width:1em;padding:2px;border:1px solid var(--waline-theme-color);border-radius:1em;background:var(--waline-bg-color);color:var(--waline-theme-color);font-weight:700;font-size:.75em;line-height:1}.wl-reaction-item.active .wl-reaction-votes{background:var(--waline-theme-color);color:var(--waline-bg-color)}.wl-reaction-text{font-size:.875em}.wl-reaction-item.active .wl-reaction-text{color:var(--waline-theme-color)}.wl-content pre,.wl-content pre[class*=language-]{overflow:auto;margin:.75rem 0;padding:1rem 1.25rem;border-radius:6px;background:var(--waline-code-bg-color);line-height:1.4}.wl-content pre code,.wl-content pre[class*=language-] code{padding:0;border-radius:0;background:rgba(0,0,0,0) !important;color:#bbb;direction:ltr}.wl-content code[class*=language-],.wl-content pre[class*=language-]{background:none;color:#ccc;font-size:1em;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;text-align:left;white-space:pre;word-spacing:normal;word-wrap:normal;word-break:normal;tab-size:4;hyphens:none}.wl-content pre[class*=language-]{overflow:auto}.wl-content :not(pre)>code[class*=language-],.wl-content pre[class*=language-]{background:#2d2d2d}.wl-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wl-content .token.comment,.wl-content .token.block-comment,.wl-content .token.prolog,.wl-content .token.doctype,.wl-content .token.cdata{color:#999}.wl-content .token.punctuation{color:#ccc}.wl-content .token.tag,.wl-content .token.attr-name,.wl-content .token.namespace,.wl-content .token.deleted{color:#e2777a}.wl-content .token.function-name{color:#6196cc}.wl-content .token.boolean,.wl-content .token.number,.wl-content .token.function{color:#f08d49}.wl-content .token.property,.wl-content .token.class-name,.wl-content .token.constant,.wl-content .token.symbol{color:#f8c555}.wl-content .token.selector,.wl-content .token.important,.wl-content .token.atrule,.wl-content .token.keyword,.wl-content .token.builtin{color:#cc99cd}.wl-content .token.string,.wl-content .token.char,.wl-content .token.attr-value,.wl-content .token.regex,.wl-content .token.variable{color:#7ec699}.wl-content .token.operator,.wl-content .token.entity,.wl-content .token.url{color:#67cdcc}.wl-content .token.important,.wl-content .token.bold{font-weight:bold}.wl-content .token.italic{font-style:italic}.wl-content .token.entity{cursor:help}.wl-content .token.inserted{color:green}.wl-recent-item p{display:inline}.wl-user-list{padding:0;list-style:none}.wl-user-list a,.wl-user-list a:hover,.wl-user-list a:visited{color:var(--waline-color);text-decoration:none}.wl-user-list .wl-user-avatar{position:relative;display:inline-block;overflow:hidden;margin-inline-end:10px;border-radius:4px;line-height:0}.wl-user-list .wl-user-avatar>img{width:var(--waline-user-avatar-size, 48px);height:var(--waline-user-avatar-size, 48px)}.wl-user-list .wl-user-badge{position:absolute;inset-inline-end:0;bottom:0;min-width:.7em;height:1.5em;padding:0 .4em;border-radius:4px;background:var(--waline-info-bg-color);color:var(--waline-info-color);font-weight:bold;font-size:10px;line-height:1.5em;text-align:center}.wl-user-list .wl-user-item{margin:10px 0}.wl-user-list .wl-user-item:nth-child(1) .wl-user-badge{background:var(--waline-rank-gold-bg-color, #fa3939);color:var(--waline-white);font-weight:bold}.wl-user-list .wl-user-item:nth-child(2) .wl-user-badge{background:var(--waline-rank-silver-bg-color, #fb811c);color:var(--waline-white);font-weight:bold}.wl-user-list .wl-user-item:nth-child(3) .wl-user-badge{background:var(--waline-rank-copper-bg-color, #feb207);color:var(--waline-white)}.wl-user-list .wl-user-meta{display:inline-block;vertical-align:top}.wl-user-list .wl-badge{display:inline-block;vertical-align:text-top;margin-inline-start:.5em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-user-wall{padding:0;list-style:none}.wl-user-wall .wl-user-badge,.wl-user-wall .wl-user-meta{display:none}.wl-user-wall .wl-user-item{position:relative;display:inline-block;transition:transform ease-in-out .2s}.wl-user-wall .wl-user-item::before,.wl-user-wall .wl-user-item::after{position:absolute;bottom:100%;left:50%;z-index:10;opacity:0;pointer-events:none;transition:all .18s ease-out .18s;transform:translate(-50%, 4px);transform-origin:top}.wl-user-wall .wl-user-item::before{content:"";width:0;height:0;border:5px solid rgba(0,0,0,0);border-top-color:rgba(16,16,16,.95)}.wl-user-wall .wl-user-item::after{content:attr(aria-label);margin-bottom:10px;padding:.5em 1em;border-radius:2px;background:rgba(16,16,16,.95);color:#fff;font-size:12px;white-space:nowrap}.wl-user-wall .wl-user-item:hover{transform:scale(1.1)}.wl-user-wall .wl-user-item:hover::before,.wl-user-wall .wl-user-item:hover::after{opacity:1;pointer-events:none;transform:translate(-50%, 0)}.wl-user-wall .wl-user-item img{width:var(--waline-user-avatar-size, 48px);height:var(--waline-user-avatar-size, 48px)}/*# sourceMappingURL=waline.css.map */ diff --git a/assets/lib/waline/waline.js b/assets/lib/waline/waline.js index 35003faa7..ec366f6a7 100644 --- a/assets/lib/waline/waline.js +++ b/assets/lib/waline/waline.js @@ -1 +1,84 @@ -!function(e,t){if("function"==typeof define&&define.amd)define("Waline",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.Waline=n.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.pageviewCount=e.init=e.defaultLocales=e.commentCount=e.RecentComments=void 0;const t=["nick","mail","link"],n=e=>e.filter((e=>t.includes(e))),o="zh-CN",r=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),l=e=>!0===e?'

Tex is not available in preview

':'Tex is not available in preview',i=()=>{const e={next:""},t=e=>{let{keyword:t,pos:n}=e;const o=new URLSearchParams("media_filter=minimal");return o.set("key","PAY5JLFIH6V6"),o.set("limit","20"),o.set("pos",n||""),o.set("q",t),fetch("".concat("https://g.tenor.com/v1/search","?").concat(o.toString()),{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:n||"",results:[]})))};return{search:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))},more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},s=new RegExp("(".concat(/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source,"|").concat(/{let t=0;return e.replace(s,((e,n,o)=>{if(o)return''.concat(o,"");if("<"===n)return"<";let r;c[n]?r=c[n]:(r=a[t],c[n]=r);const l='').concat(n,"");return t=++t%a.length,l}))},p=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder"],d=e=>Object.fromEntries(e.map(((e,t)=>[p[t],e])));var h=d(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF"]),f=d(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF"]),g=d(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包"]),m=d(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包"]),v=d(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF"]),y=d(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF"]);const w={zh:g,"zh-cn":g,"zh-CN":g,"zh-tw":m,"zh-TW":m,en:h,"en-US":h,"en-us":h,jp:f,"jp-jp":f,"jp-JP":f,"pt-br":v,"pt-BR":v,ru:y,"ru-ru":y,"ru-RU":y};function k(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}e.defaultLocales=w;const b=k("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function x(e){return!!e||""===e}function _(e){if(D(e)){const t={};for(let n=0;n{if(e){const n=e.split(C);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function z(e){let t="";if(G(e))t=e;else if(D(e))for(let n=0;nR(e,t)))}const A=e=>G(e)?e:null==e?"":D(e)||K(e)&&(e.toString===Y||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):H(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce(((e,t)=>{let[n,o]=t;return e["".concat(n," =>")]=o,e}),{})}:W(t)?{["Set(".concat(t.size,")")]:[...t.values()]}:!K(t)||D(t)||ee(t)?t:String(t),T={},j=[],$=()=>{},O=()=>!1,U=/^on[^a-z]/,M=e=>U.test(e),P=e=>e.startsWith("onUpdate:"),F=Object.assign,N=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},V=Object.prototype.hasOwnProperty,B=(e,t)=>V.call(e,t),D=Array.isArray,H=e=>"[object Map]"===X(e),W=e=>"[object Set]"===X(e),q=e=>"[object Date]"===X(e),Z=e=>"function"==typeof e,G=e=>"string"==typeof e,J=e=>"symbol"==typeof e,K=e=>null!==e&&"object"==typeof e,Q=e=>K(e)&&Z(e.then)&&Z(e.catch),Y=Object.prototype.toString,X=e=>Y.call(e),ee=e=>"[object Object]"===X(e),te=e=>G(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ne=k(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oe=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},re=/-(\w)/g,le=oe((e=>e.replace(re,((e,t)=>t?t.toUpperCase():"")))),ie=/\B([A-Z])/g,se=oe((e=>e.replace(ie,"-$1").toLowerCase())),ae=oe((e=>e.charAt(0).toUpperCase()+e.slice(1))),ce=oe((e=>e?"on".concat(ae(e)):"")),ue=(e,t)=>!Object.is(e,t),pe=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},he=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fe;let ge;class me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&ge&&(this.parent=ge,this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ge;try{return ge=this,e()}finally{ge=t}}}on(){ge=this}off(){ge=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},ye=e=>(e.w&xe)>0,we=e=>(e.n&xe)>0,ke=new WeakMap;let be=0,xe=1;let _e;const Se=Symbol(""),Ce=Symbol("");class Ie{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=_e,t=Re;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=_e,_e=this,Re=!0,xe=1<<++be,be<=30?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===t||t>=o)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":D(e)?te(n)&&s.push(i.get("length")):(s.push(i.get(Se)),H(e)&&s.push(i.get(Ce)));break;case"delete":D(e)||(s.push(i.get(Se)),H(e)&&s.push(i.get(Ce)));break;case"set":H(e)&&s.push(i.get(Se))}if(1===s.length)s[0]&&Oe(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Oe(ve(e))}}function Oe(e,t){const n=D(e)?e:[...e];for(const e of n)e.computed&&Ue(e);for(const e of n)e.computed||Ue(e)}function Ue(e,t){(e!==_e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Me=k("__proto__,__v_isRef,__isVue"),Pe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(J)),Fe=He(),Ne=He(!1,!0),Ve=He(!0),Be=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=Et(this);for(let t=0,n=this.length;t{e[t]=function(){Ae();for(var e=arguments.length,n=new Array(e),o=0;o0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?wt:yt:t?vt:mt).get(n))return n;const l=D(n);if(!e&&l&&B(Be,o))return Reflect.get(Be,o,r);const i=Reflect.get(n,o,r);return(J(o)?Pe.has(o):Me(o))?i:(e||Te(n,0,o),t?i:Ot(i)?l&&te(o)?i:i.value:K(i)?e?_t(i):bt(i):i)}}function We(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,o,r){let l=t[n];if(It(l)&&Ot(l)&&!Ot(o))return!1;if(!e&&!It(o)&&(zt(o)||(o=Et(o),l=Et(l)),!D(t)&&Ot(l)&&!Ot(o)))return l.value=o,!0;const i=D(t)&&te(n)?Number(n)!0,deleteProperty:(e,t)=>!0},Ge=F({},qe,{get:Ne,set:We(!0)}),Je=e=>e,Ke=e=>Reflect.getPrototypeOf(e);function Qe(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=Et(e=e.__v_raw),l=Et(t);n||(t!==l&&Te(r,0,t),Te(r,0,l));const{has:i}=Ke(r),s=o?Je:n?Tt:Lt;return i.call(r,t)?s(e.get(t)):i.call(r,l)?s(e.get(l)):void(e!==r&&e.get(t))}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,o=Et(n),r=Et(e);return t||(e!==r&&Te(o,0,e),Te(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&Te(Et(e),0,Se),Reflect.get(e,"size",e)}function et(e){e=Et(e);const t=Et(this);return Ke(t).has.call(t,e)||(t.add(e),$e(t,"add",e,e)),this}function tt(e,t){t=Et(t);const n=Et(this),{has:o,get:r}=Ke(n);let l=o.call(n,e);l||(e=Et(e),l=o.call(n,e));const i=r.call(n,e);return n.set(e,t),l?ue(t,i)&&$e(n,"set",e,t):$e(n,"add",e,t),this}function nt(e){const t=Et(this),{has:n,get:o}=Ke(t);let r=n.call(t,e);r||(e=Et(e),r=n.call(t,e)),o&&o.call(t,e);const l=t.delete(e);return r&&$e(t,"delete",e,void 0),l}function ot(){const e=Et(this),t=0!==e.size,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}function rt(e,t){return function(n,o){const r=this,l=r.__v_raw,i=Et(l),s=t?Je:e?Tt:Lt;return!e&&Te(i,0,Se),l.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function lt(e,t,n){return function(){const o=this.__v_raw,r=Et(o),l=H(r),i="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,a=o[e](...arguments),c=n?Je:t?Tt:Lt;return!t&&Te(r,0,s?Ce:Se),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:i?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function it(e){return function(){return"delete"!==e&&this}}function st(){const e={get(e){return Qe(this,e)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:ot,forEach:rt(!1,!1)},t={get(e){return Qe(this,e,!1,!0)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:ot,forEach:rt(!1,!0)},n={get(e){return Qe(this,e,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!1)},o={get(e){return Qe(this,e,!0,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=lt(r,!1,!1),n[r]=lt(r,!0,!1),t[r]=lt(r,!1,!0),o[r]=lt(r,!0,!0)})),[e,n,t,o]}const[at,ct,ut,pt]=st();function dt(e,t){const n=t?e?pt:ut:e?ct:at;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(B(n,o)&&o in t?n:t,o,r)}const ht={get:dt(!1,!1)},ft={get:dt(!1,!0)},gt={get:dt(!0,!1)},mt=new WeakMap,vt=new WeakMap,yt=new WeakMap,wt=new WeakMap;function kt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>X(e).slice(8,-1))(e))}function bt(e){return It(e)?e:St(e,!1,qe,ht,mt)}function xt(e){return St(e,!1,Ge,ft,vt)}function _t(e){return St(e,!0,Ze,gt,yt)}function St(e,t,n,o,r){if(!K(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const i=kt(e);if(0===i)return e;const s=new Proxy(e,2===i?o:n);return r.set(e,s),s}function Ct(e){return It(e)?Ct(e.__v_raw):!(!e||!e.__v_isReactive)}function It(e){return!(!e||!e.__v_isReadonly)}function zt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return Ct(e)||It(e)}function Et(e){const t=e&&e.__v_raw;return t?Et(t):e}function At(e){return de(e,"__v_skip",!0),e}const Lt=e=>K(e)?bt(e):e,Tt=e=>K(e)?_t(e):e;function jt(e){Re&&_e&&je((e=Et(e)).dep||(e.dep=ve()))}function $t(e,t){(e=Et(e)).dep&&Oe(e.dep)}function Ot(e){return!(!e||!0!==e.__v_isRef)}function Ut(e){return Pt(e,!1)}function Mt(e){return Pt(e,!0)}function Pt(e,t){return Ot(e)?e:new Ft(e,t)}class Ft{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Et(e),this._value=t?e:Lt(e)}get value(){return jt(this),this._value}set value(e){e=this.__v_isShallow?e:Et(e),ue(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Lt(e),$t(this))}}function Nt(e){return Ot(e)?e.value:e}const Vt={get:(e,t,n)=>Nt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ot(r)&&!Ot(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Bt(e){return Ct(e)?e:new Proxy(e,Vt)}class Dt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ie(e,(()=>{this._dirty||(this._dirty=!0,$t(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Et(this);return jt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){qt(e,t,n)}return r}function Wt(e,t,n,o){if(Z(e)){const r=Ht(e,t,n,o);return r&&Q(r)&&r.catch((e=>{qt(e,t,n)})),r}const r=[];for(let l=0;l3&&void 0!==arguments[3])||arguments[3];const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,l=n;for(;o;){const t=o.ec;if(t)for(let n=0;n>>1;gn(Kt[o])1&&void 0!==arguments[1]?arguments[1]:null;if(Yt.length){for(sn=t,Xt=[...new Set(Yt)],Yt.length=0,en=0;engn(e)-gn(t))),on=0;onnull==e.id?1/0:e.id;function mn(e){Jt=!1,Gt=!0,hn(e),Kt.sort(((e,t)=>gn(e)-gn(t)));try{for(Qt=0;Qt2?o-2:0),l=2;le.trim()))),t&&(i=r.map(he))}let c,u=n[c=ce(t)]||n[c=ce(le(t))];!u&&s&&(u=n[c=ce(se(t))]),u&&Wt(u,e,6,i);const p=n[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Wt(p,e,6,i)}}function yn(e,t){const n=t.emitsCache,o=n.get(e);if(void 0!==o)return o;const r=e.emits;let l={},i=!1;return r||i?(D(r)?r.forEach((e=>l[e]=null)):F(l,r),n.set(e,l),l):(n.set(e,null),null)}function wn(e,t){return!(!e||!M(t))&&(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,se(t))||B(e,t))}let kn=null,bn=null;function xn(e){const t=kn;return kn=e,bn=e&&e.type.__scopeId||null,t}function _n(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:l,propsOptions:[i],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=xn(e);try{if(4&n.shapeFlag){const e=r||o;m=Ho(u.call(e,e,p,l,h,d,f)),v=a}else{const e=t;m=Ho(e.length>1?e(l,{attrs:a,slots:s,emit:c}):e(l,null)),v=t.props?a:Sn(a)}}catch(t){Co.length=0,qt(t,e,1),m=Fo(_o)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(P)&&(v=Cn(v,i)),w=Vo(w,v))}return n.dirs&&(w=Vo(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,xn(y),m}const Sn=e=>{let t;for(const n in e)("class"===n||"style"===n||M(n))&&((t||(t={}))[n]=e[n]);return t},Cn=(e,t)=>{const n={};for(const o in e)P(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function In(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;re.__isSuspense;function Rn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Qo||kn;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Z(t)?t.call(o.proxy):t}}function En(e,t){return Tn(e,null,t)}const An={};function Ln(e,t,n){return Tn(e,t,n)}function Tn(e,t){let{immediate:n,deep:o,flush:r,onTrack:l,onTrigger:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;const s=Qo;let a,c,u=!1,p=!1;if(Ot(e)?(a=()=>e.value,u=zt(e)):Ct(e)?(a=()=>e,o=!0):D(e)?(p=!0,u=e.some((e=>Ct(e)||zt(e))),a=()=>e.map((e=>Ot(e)?e.value:Ct(e)?jn(e):Z(e)?Ht(e,s,2):void 0))):a=Z(e)?t?()=>Ht(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Wt(e,s,3,[d])}:$,t&&o){const e=a;a=()=>jn(e())}let d=e=>{c=m.onStop=()=>{Ht(e,s,4)}};if(tr)return d=$,t?n&&Wt(t,s,3,[a(),p?[]:void 0,d]):a(),$;let h=p?[]:An;const f=()=>{if(m.active)if(t){const e=m.run();(o||u||(p?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(c&&c(),Wt(t,s,3,[e,h===An?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===r?f:"post"===r?()=>mo(f,s&&s.suspense):()=>dn(f);const m=new Ie(a,g);return t?n?f():h=m.run():"post"===r?mo(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&N(s.scope.effects,m)}}function jn(e,t){if(!K(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Ot(e))jn(e.value,t);else if(D(e))for(let n=0;n{jn(e,t)}));else if(ee(e))for(const n in e)jn(e[n],t);return e}function $n(e){return Z(e)?{setup:e,name:e.name}:e}const On=e=>!!e.type.__asyncLoader;function Un(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qo,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;Ae(),Yo(n);for(var o=arguments.length,r=new Array(o),l=0;lfunction(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qo;return(!tr||"sp"===e)&&Un(e,t,n)},Pn=Mn("m"),Fn=Mn("bum"),Nn=Mn("um");function Vn(e,t){const n=kn;if(null===n)return e;const o=lr(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e3&&void 0!==arguments[3]&&arguments[3];const o=kn||Qo;if(o){const r=o.type;if(e===Dn){const e=ir(r,!1);if(e&&(e===t||e===le(t)||e===ae(le(t))))return r}const l=qn(o[e]||r[e],t)||qn(o.appContext[e],t);return!l&&n?r:l}}(Dn,e,!0,t)||e}const Wn=Symbol();function qn(e,t){return e&&(e[t]||e[le(t)]||e[ae(le(t))])}function Zn(e,t,n,o){let r;const l=n&&n[o];if(D(e)||G(e)){r=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,l&&l[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;oe?er(e)?lr(e)||e.proxy:Gn(e.parent):null,Jn=F(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>cn(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>$}),Kn={get(e,t){let{_:n}=e;const{ctx:o,setupState:r,data:l,props:i,accessCache:s,type:a,appContext:c}=n;let u;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return l[t];case 4:return o[t];case 3:return i[t]}else{if(r!==T&&B(r,t))return s[t]=1,r[t];if(l!==T&&B(l,t))return s[t]=2,l[t];if((u=n.propsOptions[0])&&B(u,t))return s[t]=3,i[t];if(o!==T&&B(o,t))return s[t]=4,o[t];s[t]=0}}const p=Jn[t];let d,h;return p?("$attrs"===t&&Te(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:o!==T&&B(o,t)?(s[t]=4,o[t]):(h=c.config.globalProperties,B(h,t)?h[t]:void 0)},set(e,t,n){let{_:o}=e;const{data:r,setupState:l,ctx:i}=o;return l!==T&&B(l,t)?(l[t]=n,!0):r!==T&&B(r,t)?(r[t]=n,!0):!B(o.props,t)&&(("$"!==t[0]||!(t.slice(1)in o))&&(i[t]=n,!0))},has(e,t){let n,{_:{data:o,setupState:r,accessCache:l,ctx:i,appContext:s,propsOptions:a}}=e;return!!l[t]||o!==T&&B(o,t)||r!==T&&B(r,t)||(n=a[0])&&B(n,t)||B(i,t)||B(Jn,t)||B(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r={},l={};de(l,Oo,1),e.propsDefaults=Object.create(null),Yn(e,t,r,l);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:xt(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Yn(e,t,n,o){const[r,l]=e.propsOptions;let i,s=!1;if(t)for(let a in t){if(ne(a))continue;const c=t[a];let u;r&&B(r,u=le(a))?l&&l.includes(u)?(i||(i={}))[u]=c:n[u]=c:wn(e.emitsOptions,a)||a in o&&c===o[a]||(o[a]=c,s=!0)}if(l){const t=Et(n),o=i||T;for(let i=0;i-1,o[1]=n<0||e-1||B(o,"default"))&&i.push(t)}}}const a=[l,i];return n.set(e,a),a}function to(e){return"$"!==e[0]}function no(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function oo(e,t){return no(e)===no(t)}function ro(e,t){return D(t)?t.findIndex((t=>oo(t,e))):Z(t)&&oo(t,e)?0:-1}const lo=e=>"_"===e[0]||"$stable"===e,io=e=>D(e)?e.map(Ho):[Ho(e)],so=(e,t,n)=>{if(t._n)return t;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Eo(-1);const o=xn(t),r=e(...arguments);return xn(o),n._d&&Eo(1),r};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return io(t(...arguments))}),n);return o._c=!1,o},ao=(e,t,n)=>{const o=e._ctx;for(const n in e){if(lo(n))continue;const r=e[n];if(Z(r))t[n]=so(0,r,o);else if(null!=r){const e=io(r);t[n]=()=>e}}},co=(e,t)=>{const n=io(t);e.slots.default=()=>n},uo=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Et(t),de(t,"_",n)):ao(t,e.slots={})}else e.slots={},t&&co(e,t);de(e.slots,Oo,1)};function po(){return{app:null,config:{isNativeTag:O,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ho=0;function fo(e,t){return function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Z(n)||(n=Object.assign({},n)),null==o||K(o)||(o=null);const r=po(),l=new Set;let i=!1;const s=r.app={_uid:ho++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:ur,get config(){return r.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;os,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(l,a,c){if(!i){const u=Fo(n,o);return u.appContext=r,a&&t?t(u,l):e(u,l,c),i=!0,s._container=l,l.__vue_app__=s,lr(u.component)||u.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}function go(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(D(e))return void e.forEach(((e,l)=>go(e,t&&(D(t)?t[l]:t),n,o,r)));if(On(o)&&!r)return;const l=4&o.shapeFlag?lr(o.component)||o.component.proxy:o.el,i=r?null:l,{i:s,r:a}=e,c=t&&t.r,u=s.refs===T?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(G(c)?(u[c]=null,B(p,c)&&(p[c]=null)):Ot(c)&&(c.value=null)),Z(a))Ht(a,s,12,[i,u]);else{const t=G(a),o=Ot(a);if(t||o){const s=()=>{if(e.f){const n=t?u[a]:a.value;r?D(n)&&N(n,l):D(n)?n.includes(l)||n.push(l):t?(u[a]=[l],B(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,B(p,a)&&(p[a]=i)):o&&(a.value=i,e.k&&(u[e.k]=i))};i?(s.id=-1,mo(s,n)):s()}}}const mo=function(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):pn(e,nn,tn,on)};function vo(e){return function(e,t){(fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:l,createText:i,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=$,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!$o(e,t)&&(o=G(e),D(e,r,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case xo:m(e,t,n,o);break;case _o:v(e,t,n,o);break;case So:null==e&&y(t,n,o,i);break;case bo:R(e,t,n,o,r,l,i,s,a);break;default:1&p?b(e,t,n,o,r,l,i,s,a):6&p?E(e,t,n,o,r,l,i,s,a):(64&p||128&p)&&c.process(e,t,n,o,r,l,i,s,a,K)}null!=u&&r&&go(u,e&&e.ref,l,t||e,!t)},m=(e,t,o,r)=>{if(null==e)n(t.el=i(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,o,r)=>{null==e?n(t.el=s(t.children||""),o,r):t.el=e.el},y=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o,e.el,e.anchor)},w=(e,t,o)=>{let r,{el:l,anchor:i}=e;for(;l&&l!==i;)r=p(l),n(l,t,o),l=r;n(i,t,o)},k=e=>{let t,{el:n,anchor:r}=e;for(;n&&n!==r;)t=p(n),o(n),n=t;o(r)},b=(e,t,n,o,r,l,i,s,a)=>{i=i||"svg"===t.type,null==e?x(t,n,o,r,l,i,s,a):C(e,t,r,l,i,s,a)},x=(e,t,o,i,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:k}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=l(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&S(e.children,d,null,i,s,a&&"foreignObject"!==g,u,p),k&&Bn(e,null,i,"created"),m){for(const t in m)"value"===t||ne(t)||r(d,t,null,m[t],a,e.children,i,s,Z);"value"in m&&r(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Go(f,i,e)}_(d,e,e.scopeId,u,i)}k&&Bn(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;b&&y.beforeEnter(d),n(d,t,o),((f=m&&m.onVnodeMounted)||b||k)&&mo((()=>{f&&Go(f,i,e),b&&y.enter(d),k&&Bn(e,null,i,"mounted")}),s)},_=(e,t,n,o,r)=>{if(n&&d(e,n),o)for(let t=0;t8&&void 0!==arguments[8]?arguments[8]:0;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||T,f=t.props||T;let g;n&&yo(n,!1),(g=f.onVnodeBeforeUpdate)&&Go(g,n,t,e),d&&Bn(t,e,n,"beforeUpdate"),n&&yo(n,!0);const m=l&&"foreignObject"!==t.type;if(p?I(e.dynamicChildren,p,a,n,o,m,i):s||M(e,t,a,null,n,o,m,i,!1),u>0){if(16&u)z(a,t,h,f,n,o,l);else if(2&u&&h.class!==f.class&&r(a,"class",null,f.class,l),4&u&&r(a,"style",h.style,f.style,l),8&u){const i=t.dynamicProps;for(let t=0;t{g&&Go(g,n,t,e),d&&Bn(t,e,n,"updated")}),o)},I=(e,t,n,o,r,l,i)=>{for(let s=0;s{if(n!==o){for(const a in o){if(ne(a))continue;const c=o[a],u=n[a];c!==u&&"value"!==a&&r(e,a,u,c,s,t.children,l,i,Z)}if(n!==T)for(const a in n)ne(a)||a in o||r(e,a,n[a],null,s,t.children,l,i,Z);"value"in o&&r(e,"value",n.value,o.value)}},R=(e,t,o,r,l,s,a,c,u)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,o,r),n(d,o,r),S(t.children,o,d,l,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,o,l,s,a,c),(null!=t.key||l&&t===l.subTree)&&wo(e,t,!0)):M(e,t,o,d,l,s,a,c,u)},E=(e,t,n,o,r,l,i,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,a):A(t,n,o,r,l,i,a):L(e,t,a)},A=(e,t,n,o,r,l,i)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Jo,l={uid:Ko++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new me(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:eo(o,r),emitsOptions:yn(o,r),emit:null,emitted:null,propsDefaults:T,inheritAttrs:o.inheritAttrs,ctx:T,data:T,props:T,attrs:T,slots:T,refs:T,setupState:T,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};l.ctx={_:l},l.root=t?t.root:l,l.emit=vn.bind(null,l),e.ce&&e.ce(l);return l}(e,o,r);if(e.type.__isKeepAlive&&(s.ctx.renderer=K),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];tr=t;const{props:n,children:o}=e.vnode,r=er(e);Qn(e,n,r,t),uo(e,o);const l=r?nr(e,t):void 0;tr=!1}(s),s.asyncDep){if(r&&r.registerDep(s,O),!e.el){const e=s.subTree=Fo(_o);v(null,e,t,n)}}else O(s,e,t,n,r,l,i)},L=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:l}=e,{props:i,children:s,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!s||s&&s.$stable)||o!==i&&(o?!i||In(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?In(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;tQt&&Kt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},O=(e,t,n,o,r,l,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:a,vnode:c}=e,p=n;yo(e,!1),n?(n.el=c.el,U(e,n,i)):n=c,o&&pe(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Go(t,a,n,c),yo(e,!0);const d=_n(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),G(h),e,r,l),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:o}=e;for(;o&&o.subTree===n;)(n=o.vnode).el=t,o=o.parent}(e,d.el),s&&mo(s,r),(t=n.props&&n.props.onVnodeUpdated)&&mo((()=>Go(t,a,n,c)),r)}else{let i;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=On(t);if(yo(e,!1),c&&pe(c),!d&&(i=a&&a.onVnodeBeforeMount)&&Go(i,p,t),yo(e,!0),s&&Y){const n=()=>{e.subTree=_n(e),Y(s,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=_n(e);g(null,i,n,o,e,r,l),t.el=i.el}if(u&&mo(u,r),!d&&(i=a&&a.onVnodeMounted)){const e=t;mo((()=>Go(i,p,e)),r)}(256&t.shapeFlag||p&&On(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&mo(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new Ie(s,(()=>cn(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,yo(e,!0),c()},U=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,s=Et(r),[a]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Yn(e,t,r,l)&&(c=!0);for(const l in s)t&&(B(t,l)||(o=se(l))!==l&&B(t,o))||(a?!n||void 0===n[l]&&void 0===n[o]||(r[l]=Xn(a,s,l,void 0,e,!0)):delete r[l]);if(l!==s)for(const e in l)t&&B(t,e)||(delete l[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let l=!0,i=T;if(32&o.shapeFlag){const e=t._;e?n&&1===e?l=!1:(F(r,t),n||1!==e||delete r._):(l=!t.$stable,ao(t,r)),i=t}else t&&(co(e,t),i={default:1});if(l)for(const e in r)lo(e)||e in i||delete r[e]})(e,t.children,n),Ae(),hn(void 0,e.update),Le()},M=function(e,t,n,o,r,l,i,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(u,d,n,o,r,l,i,s,a);if(256&h)return void P(u,d,n,o,r,l,i,s,a)}8&f?(16&p&&Z(u,r,l),d!==u&&c(n,d)):16&p?16&f?N(u,d,n,o,r,l,i,s,a):Z(u,r,l,!0):(8&p&&c(n,""),16&f&&S(d,n,o,r,l,i,s,a))},P=(e,t,n,o,r,l,i,s,a)=>{t=t||j;const c=(e=e||j).length,u=t.length,p=Math.min(c,u);let d;for(d=0;du?Z(e,r,l,!0,!1,p):S(t,n,o,r,l,i,s,a,p)},N=(e,t,n,o,r,l,i,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const o=e[c],u=t[c]=a?Wo(t[c]):Ho(t[c]);if(!$o(o,u))break;g(o,u,n,null,r,l,i,s,a),c++}for(;c<=p&&c<=d;){const o=e[p],c=t[d]=a?Wo(t[d]):Ho(t[d]);if(!$o(o,c))break;g(o,c,n,null,r,l,i,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=ed)for(;c<=p;)D(e[c],r,l,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Wo(t[c]):Ho(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let k=!1,b=0;const x=new Array(w);for(c=0;c=w){D(o,r,l,!0);continue}let u;if(null!=o.key)u=m.get(o.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&$o(o,t[v])){u=v;break}void 0===u?D(o,r,l,!0):(x[u-f]=c+1,u>=b?b=u:k=!0,g(o,t[u],n,null,r,l,i,s,a),y++)}const _=k?function(e){const t=e.slice(),n=[0];let o,r,l,i,s;const a=e.length;for(o=0;o>1,e[n[s]]0&&(t[o]=n[l-1]),n[l]=o)}}l=n.length,i=n[l-1];for(;l-- >0;)n[l]=i,i=t[i];return n}(x):j;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+14&&void 0!==arguments[4]?arguments[4]:null;const{el:i,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void V(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void s.move(e,t,o,K);if(s===bo){n(i,t,o);for(let e=0;ea.enter(i)),l);else{const{leave:e,delayLeave:r,afterLeave:l}=a,s=()=>n(i,t,o),c=()=>{e(i,(()=>{s(),l&&l()}))};r?r(i,s,c):c()}else n(i,t,o)},D=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:l,props:i,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&go(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!On(e);let g;if(f&&(g=i&&i.onVnodeBeforeUnmount)&&Go(g,t,e),6&u)q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Bn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,K,o):c&&(l!==bo||p>0&&64&p)?Z(c,t,n,!1,!0):(l===bo&&384&p||!r&&16&u)&&Z(a,t,n),o&&H(e)}(f&&(g=i&&i.onVnodeUnmounted)||h)&&mo((()=>{g&&Go(g,t,e),h&&Bn(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:l}=e;if(t===bo)return void W(n,r);if(t===So)return void k(e);const i=()=>{o(n),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:o}=l,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),o(e),e=n;o(t)},q=(e,t,n)=>{const{bum:o,scope:r,update:l,subTree:i,um:s}=e;o&&pe(o),r.stop(),l&&(l.active=!1,D(i,e,t,n)),s&&mo(s,t),mo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;l6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&D(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),fn(),t._vnode=e},K={p:g,um:D,m:V,r:H,mt:A,mc:S,pc:M,pbc:I,n:G,o:e};let Q,Y;t&&([Q,Y]=t(K));return{render:J,hydrate:Q,createApp:fo(J,Q)}}(e)}function yo(e,t){let{effect:n,update:o}=e;n.allowRecurse=o.allowRecurse=t}function wo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.children,r=t.children;if(D(o)&&D(r))for(let e=0;ee.__isTeleport,bo=Symbol(void 0),xo=Symbol(void 0),_o=Symbol(void 0),So=Symbol(void 0),Co=[];let Io=null;function zo(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Co.push(Io=e?null:[])}let Ro=1;function Eo(e){Ro+=e}function Ao(e){return e.dynamicChildren=Ro>0?Io||j:null,Co.pop(),Io=Co[Co.length-1]||null,Ro>0&&Io&&Io.push(e),e}function Lo(e,t,n,o,r,l){return Ao(Po(e,t,n,o,r,l,!0))}function To(e,t,n,o,r){return Ao(Fo(e,t,n,o,r,!0))}function jo(e){return!!e&&!0===e.__v_isVNode}function $o(e,t){return e.type===t.type&&e.key===t.key}const Oo="__vInternal",Uo=e=>{let{key:t}=e;return null!=t?t:null},Mo=e=>{let{ref:t,ref_key:n,ref_for:o}=e;return null!=t?G(t)||Ot(t)||Z(t)?{i:kn,r:t,k:n,f:!!o}:t:null};function Po(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===bo?0:1,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uo(t),ref:t&&Mo(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return s?(qo(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=G(n)?8:16),Ro>0&&!i&&Io&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&Io.push(a),a}const Fo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Wn||(e=_o);if(jo(e)){const o=Vo(e,t,!0);return n&&qo(o,n),Ro>0&&!l&&Io&&(6&o.shapeFlag?Io[Io.indexOf(e)]=o:Io.push(o)),o.patchFlag|=-2,o}sr(e)&&(e=e.__vccOpts);if(t){t=No(t);let{class:e,style:n}=t;e&&!G(e)&&(t.class=z(e)),K(n)&&(Rt(n)&&!D(n)&&(n=F({},n)),t.style=_(n))}const i=G(e)?1:zn(e)?128:ko(e)?64:K(e)?4:Z(e)?2:0;return Po(e,t,n,o,r,i,l,!0)};function No(e){return e?Rt(e)||Oo in e?F({},e):e:null}function Vo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:o,ref:r,patchFlag:l,children:i}=e,s=t?Zo(o||{},t):o,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Uo(s),ref:t&&t.ref?n&&r?D(r)?r.concat(Mo(t)):[r,Mo(t)]:Mo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bo?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vo(e.ssContent),ssFallback:e.ssFallback&&Vo(e.ssFallback),el:e.el,anchor:e.anchor};return a}function Bo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Fo(xo,null,e,t)}function Do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(zo(),To(_o,null,e)):Fo(_o,null,e)}function Ho(e){return null==e||"boolean"==typeof e?Fo(_o):D(e)?Fo(bo,null,e.slice()):"object"==typeof e?Wo(e):Fo(xo,null,String(e))}function Wo(e){return null===e.el||e.memo?e:Vo(e)}function qo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(D(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),qo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Oo in t?3===o&&kn&&(1===kn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=kn}}else Z(t)?(t={default:t,_ctx:kn},n=32):(t=String(t),64&o?(n=16,t=[Bo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zo(){const e={};for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null;Wt(e,t,7,[n,o])}const Jo=po();let Ko=0;let Qo=null;const Yo=e=>{Qo=e,e.scope.on()},Xo=()=>{Qo&&Qo.scope.off(),Qo=null};function er(e){return 4&e.vnode.shapeFlag}let tr=!1;function nr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=At(new Proxy(e.ctx,Kn));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Te(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Yo(e),Ae();const r=Ht(o,e,0,[e.props,n]);if(Le(),Xo(),Q(r)){if(r.then(Xo,Xo),t)return r.then((n=>{or(e,n,t)})).catch((t=>{qt(t,e,0)}));e.asyncDep=r}else or(e,r,t)}else rr(e,t)}function or(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:K(t)&&(e.setupState=Bt(t)),rr(e,n)}function rr(e,t,n){const o=e.type;e.render||(e.render=o.render||$)}function lr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Bt(At(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Jn?Jn[n](e):void 0}))}function ir(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function sr(e){return Z(e)&&"__vccOpts"in e}const ar=(e,t)=>function(e,t){let n,o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=Z(e);l?(n=e,o=$):(n=e.get,o=e.set);return new Dt(n,o,l||!o,r)}(e,t,tr);function cr(e,t,n){const o=arguments.length;return 2===o?K(t)&&!D(t)?jo(t)?Fo(e,null,[t]):Fo(e,t):Fo(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&jo(n)&&(n=[n]),Fo(e,t,n))}const ur="3.2.37",pr="undefined"!=typeof document?document:null,dr=pr&&pr.createElement("template"),hr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?pr.createElementNS("http://www.w3.org/2000/svg",e):pr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>pr.createTextNode(e),createComment:e=>pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o,r,l){const i=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==l&&(r=r.nextSibling););else{dr.innerHTML=o?"".concat(e,""):e;const r=dr.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function fr(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function gr(e,t,n){const o=e.style,r=G(n);if(n&&!r){for(const e in n)vr(o,e,n[e]);if(t&&!G(t))for(const e in t)null==n[e]&&vr(o,e,"")}else{const l=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=l)}}const mr=/\s*!important$/;function vr(e,t,n){if(D(n))n.forEach((n=>vr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=wr[t];if(n)return n;let o=le(t);if("filter"!==o&&o in e)return wr[t]=o;o=ae(o);for(let n=0;n{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Cr=0;const Ir=Promise.resolve(),zr=()=>{Cr=0};function Rr(e,t,n,o){e.addEventListener(t,n,o)}function Er(e,t,n,o){e.removeEventListener(t,n,o)}function Ar(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const l=e._vei||(e._vei={}),i=l[t];if(o&&i)i.value=o;else{const[n,s]=Tr(t);if(o){Rr(e,n,l[t]=jr(o,r),s)}else i&&(Er(e,n,i,s),l[t]=void 0)}}const Lr=/(?:Once|Passive|Capture)$/;function Tr(e){let t;if(Lr.test(e)){let n;for(t={};n=e.match(Lr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[se(e.slice(2)),t]}function jr(e,t){const n=e=>{const o=e.timeStamp||_r();(Sr||o>=n.attached-1)&&Wt(function(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Cr||(Ir.then(zr),Cr=_r()),n}const $r=/^on[a-z]/;function Or(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&$r.test(t)&&Z(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!$r.test(t)||!G(n))&&t in e))))}const Ur=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?e=>pe(t,e):t};function Mr(e){e.target.composing=!0}function Pr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fr={created(e,t,n){let{modifiers:{lazy:o,trim:r,number:l}}=t;e._assign=Ur(n);const i=l||n.props&&"number"===n.props.type;Rr(e,o?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;r&&(n=n.trim()),i&&(n=he(n)),e._assign(n)})),r&&Rr(e,"change",(()=>{e.value=e.value.trim()})),o||(Rr(e,"compositionstart",Mr),Rr(e,"compositionend",Pr),Rr(e,"change",Pr))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:o,modifiers:{lazy:r,trim:l,number:i}}=t;if(e._assign=Ur(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(r)return;if(l&&e.value.trim()===o)return;if((i||"number"===e.type)&&he(e.value)===o)return}const s=null==o?"":o;e.value!==s&&(e.value=s)}},Nr={deep:!0,created(e,t,n){e._assign=Ur(n),Rr(e,"change",(()=>{const t=e._modelValue,n=Wr(e),o=e.checked,r=e._assign;if(D(t)){const e=E(t,n),l=-1!==e;if(o&&!l)r(t.concat(n));else if(!o&&l){const n=[...t];n.splice(e,1),r(n)}}else if(W(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(qr(e,o))}))},mounted:Vr,beforeUpdate(e,t,n){e._assign=Ur(n),Vr(e,t,n)}};function Vr(e,t,n){let{value:o,oldValue:r}=t;e._modelValue=o,D(o)?e.checked=E(o,n.props.value)>-1:W(o)?e.checked=o.has(n.props.value):o!==r&&(e.checked=R(o,qr(e,!0)))}const Br={created(e,t,n){let{value:o}=t;e.checked=R(o,n.props.value),e._assign=Ur(n),Rr(e,"change",(()=>{e._assign(Wr(e))}))},beforeUpdate(e,t,n){let{value:o,oldValue:r}=t;e._assign=Ur(n),o!==r&&(e.checked=R(o,n.props.value))}},Dr={deep:!0,created(e,t,n){let{value:o,modifiers:{number:r}}=t;const l=W(o);Rr(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>r?he(Wr(e)):Wr(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=Ur(n)},mounted(e,t){let{value:n}=t;Hr(e,n)},beforeUpdate(e,t,n){e._assign=Ur(n)},updated(e,t){let{value:n}=t;Hr(e,n)}};function Hr(e,t){const n=e.multiple;if(!n||D(t)||W(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(l);else if(R(Wr(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Wr(e){return"_value"in e?e._value:e.value}function qr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Zr={created(e,t,n){Gr(e,t,n,null,"created")},mounted(e,t,n){Gr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Gr(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Gr(e,t,n,o,"updated")}};function Gr(e,t,n,o,r){const l=function(e,t){switch(e){case"SELECT":return Dr;case"TEXTAREA":return Fr;default:switch(t){case"checkbox":return Nr;case"radio":return Br;default:return Fr}}}(e.tagName,n.props&&n.props.type)[r];l&&l(e,t,n,o)}const Jr={beforeMount(e,t,n){let{value:o}=t,{transition:r}=n;e._vod="none"===e.style.display?"":e.style.display,r&&o?r.beforeEnter(e):Kr(e,o)},mounted(e,t,n){let{value:o}=t,{transition:r}=n;r&&o&&r.enter(e)},updated(e,t,n){let{value:o,oldValue:r}=t,{transition:l}=n;!o!=!r&&(l?o?(l.beforeEnter(e),Kr(e,!0),l.enter(e)):l.leave(e,(()=>{Kr(e,!1)})):Kr(e,o))},beforeUnmount(e,t){let{value:n}=t;Kr(e,n)}};function Kr(e,t){e.style.display=t?e._vod:"none"}const Qr=F({patchProp:function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?fr(e,o,r):"style"===t?gr(e,n,o):M(t)?P(t)||Ar(e,t,n,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Or(e,t,o,r))?xr(e,t,o,l,i,s,a):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),br(e,t,o,r))}},hr);let Yr;function Xr(){return Yr||(Yr=vo(Qr))}function el(e){if(G(e)){return document.querySelector(e)}return e}function tl(e){return!!ge&&(function(e){ge&&ge.cleanups.push(e)}(e),!0)}var nl;const ol="undefined"!=typeof window,rl=e=>"string"==typeof e,ll=()=>{};function il(e,t){return function(){for(var n=arguments.length,o=new Array(n),r=0;rt.apply(this,o)),{fn:t,thisArg:this,args:o})}}ol&&(null==(nl=null==window?void 0:window.navigator)?void 0:nl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const sl=e=>e();function al(e){let t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=r=>{const l=Nt(e),i=Nt(o.maxWait);if(t&&clearTimeout(t),l<=0||void 0!==i&&i<=0)return n&&(clearTimeout(n),n=null),r();i&&!n&&(n=setTimeout((()=>{t&&clearTimeout(t),n=null,r()}),i)),t=setTimeout((()=>{n&&clearTimeout(n),n=null,r()}),l)};return r}function cl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sl;const t=Ut(!0);function n(){t.value=!1}function o(){t.value=!0}const r=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:o,eventFilter:r}}function ul(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:o=!0,immediateCallback:r=!1}=n;let l=null;const i=Ut(!1);function s(){l&&(clearInterval(l),l=null)}function a(){i.value=!1,s()}function c(){Nt(t)<=0||(i.value=!0,r&&e(),s(),l=setInterval(e,Nt(t)))}if(o&&ol&&c(),Ot(t)){tl(Ln(t,(()=>{o&&ol&&c()})))}return tl(a),{isActive:i,pause:a,resume:c}}var pl=Object.getOwnPropertySymbols,dl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,fl=(e,t)=>{var n={};for(var o in e)dl.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&pl)for(var o of pl(e))t.indexOf(o)<0&&hl.call(e,o)&&(n[o]=e[o]);return n};function gl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:r=sl}=o,l=fl(o,["eventFilter"]);return Ln(e,il(r,t),l)}var ml=Object.defineProperty,vl=Object.defineProperties,yl=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertySymbols,kl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,xl=(e,t,n)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_l=(e,t)=>{for(var n in t||(t={}))kl.call(t,n)&&xl(e,n,t[n]);if(wl)for(var n of wl(t))bl.call(t,n)&&xl(e,n,t[n]);return e},Sl=(e,t)=>vl(e,yl(t)),Cl=(e,t)=>{var n={};for(var o in e)kl.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&wl)for(var o of wl(e))t.indexOf(o)<0&&bl.call(e,o)&&(n[o]=e[o]);return n};function Il(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:r}=o,l=Cl(o,["eventFilter"]),{eventFilter:i,pause:s,resume:a,isActive:c}=cl(r),u=gl(e,t,Sl(_l({},l),{eventFilter:i}));return{stop:u,pause:s,resume:a,isActive:c}}function zl(e){var t;const n=Nt(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Rl=ol?window:void 0,El=ol?window.document:void 0;function Al(){let e,t,n,o;for(var r=arguments.length,l=new Array(r),i=0;izl(e)),(e=>{s(),e&&(e.addEventListener(t,n,o),s=()=>{e.removeEventListener(t,n,o),s=ll})}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return tl(c),c}ol&&window.navigator,ol&&window.location;const Ll="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Tl="__vueuse_ssr_handlers__";Ll[Tl]=Ll[Tl]||{};const jl=Ll[Tl];function $l(e,t){return jl[e]||t}function Ol(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}const Ul={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Ml(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var r;const{flush:l="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Rl,eventFilter:p,onError:d=(e=>{console.error(e)})}=o,h=(c?Mt:Ut)(t);if(!n)try{n=$l("getDefaultStorage",(()=>{var e;return null==(e=Rl)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Nt(t),g=Ol(f),m=null!=(r=o.serializer)?r:Ul[g],{pause:v,resume:y}=Il(h,(()=>w(h.value)),{flush:l,deep:i,eventFilter:p});return u&&s&&Al(u,"storage",b),b(),h;function w(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}function k(t){if(!t||t.key===e){v();try{const o=t?t.newValue:n.getItem(e);return null==o?(a&&null!==f&&n.setItem(e,m.write(f)),f):"string"!=typeof o?o:m.read(o)}catch(e){d(e)}finally{y()}}}function b(t){t&&t.key!==e||(h.value=k(t))}}function Pl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:o=Rl}=t,r=Ut(!1);let l=null;function i(){r.value&&o&&(e(),l=o.requestAnimationFrame(i))}function s(){!r.value&&o&&(r.value=!0,i())}function a(){r.value=!1,null!=l&&o&&(o.cancelAnimationFrame(l),l=null)}return n&&s(),tl(a),{isActive:r,pause:a,resume:s}}var Fl,Nl,Vl=Object.defineProperty,Bl=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Wl=(e,t,n)=>t in e?Vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ql=(e,t)=>{for(var n in t||(t={}))Dl.call(t,n)&&Wl(e,n,t[n]);if(Bl)for(var n of Bl(t))Hl.call(t,n)&&Wl(e,n,t[n]);return e};(Nl=Fl||(Fl={})).UP="UP",Nl.RIGHT="RIGHT",Nl.DOWN="DOWN",Nl.LEFT="LEFT",Nl.NONE="NONE";let Zl=0;const Gl=e=>{try{e=decodeURI(e)}catch(e){}return e},Jl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},Kl=e=>/^(https?:)?\/\//.test(e),Ql=e=>{const t=Jl(e);return Kl(t)?t:"https://".concat(t)},Yl=e=>Array.isArray(e)?e:!!e&&[0,e],Xl=(e,t)=>"function"==typeof e?e:!1!==e&&t,ei="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",ti=(e,t)=>{let n=e.toString();for(;n.length{if(!e)return"";const o="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,r=t.getTime()-o.getTime(),l=Math.floor(r/864e5);if(0===l){const e=r%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,o=Math.floor(t/6e4);if(0===o){const e=t%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(n.seconds)}return"".concat(o," ").concat(n.minutes)}return"".concat(t," ").concat(n.hours)}return l<0?n.now:l<8?"".concat(l," ").concat(n.days):(e=>{const t=ti(e.getDate(),2),n=ti(e.getMonth()+1,2),o=ti(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(o)},oi=e=>{const t=Ml("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((o=>{const r={folder:e,...o};return n&&(t.value[e]=r),r}))},ri=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t?"".concat(t,"/"):"").concat(n).concat(e).concat(o?".".concat(o):"")},li=e=>{"AbortError"!==e.name&&console.error(e.message)},ii={"Content-Type":"application/json"},si=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},ai=e=>{let{serverURL:t,lang:n,token:o,objectId:r,...l}=e;const i={"Content-Type":"application/json",Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"PUT",headers:i,body:JSON.stringify(l)}).then((e=>e.json()))},ci=e=>{let{serverURL:t,lang:n,paths:o,signal:r}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r}).then((e=>e.json())).then((e=>si(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))},ui=e=>{let{serverURL:t,lang:n,path:o}=e;return fetch("".concat(t,"/article?lang=").concat(n),{method:"POST",headers:ii,body:JSON.stringify({path:o})}).then((e=>e.json())).then((e=>si(e,"visit count")))},pi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,di=e=>e.type.includes("image"),hi=e=>{const t=Array.from(e).find(di);return t?t.getAsFile():null};function fi(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let gi={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const mi=/[&<>"']/,vi=/[&<>"']/g,yi=/[<>"']|&(?!#?\w+;)/,wi=/[<>"']|&(?!#?\w+;)/g,ki={"&":"&","<":"<",">":">",'"':""","'":"'"},bi=e=>ki[e];function xi(e,t){if(t){if(mi.test(e))return e.replace(vi,bi)}else if(yi.test(e))return e.replace(wi,bi);return e}const _i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Si(e){return e.replace(_i,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Ci=/(^|[^\[])\^/g;function Ii(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(Ci,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const zi=/[^\w:]/g,Ri=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ei(e,t,n){if(e){let e;try{e=decodeURIComponent(Si(n)).replace(zi,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ri.test(n)&&(n=function(e,t){Ai[" "+e]||(Li.test(e)?Ai[" "+e]=e+"/":Ai[" "+e]=Mi(e,"/",!0));const n=-1===(e=Ai[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ti,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(ji,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Ai={},Li=/^[^:]+:\/*[^/]*$/,Ti=/^([^:]+:)[\s\S]*$/,ji=/^([^:]+:\/*[^/]*)[\s\S]*$/;const $i={exec:function(){}};function Oi(e){let t,n,o=1;for(;o{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Ni(e,t,n,o){const r=t.href,l=t.title?xi(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:l,text:i,tokens:o.inlineTokens(i,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:l,text:xi(i)}}class Vi{constructor(e){this.options=e||gi}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Mi(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const o=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Mi(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,o,r,l,i,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?"\\d{1,9}\\".concat(f.slice(-1)):"\\".concat(f),this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp("^( {0,3}".concat(f,")((?:[\t ][^\\n]*)?(?:\\n|$))"));for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(l=2,d=c.trimLeft()):(l=t[2].search(/[^ ]/),l=l>4?1:l,d=c.slice(l),l+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),o=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),r=new RegExp("^( {0,".concat(Math.min(3,l-1),"})(```|~~~)"));for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!r.test(c))&&!this.rules.block.heading.test(c)&&!t.test(c)&&!o.test(e);){if(c.search(/[^ ]/)>=l||!c.trim())d+="\n"+c.slice(l);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:r,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(i=0;i"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[i].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):xi(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Ui(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,r,l,i=e.align.length;for(n=0;n({text:e})));for(i=e.header.length,o=0;o/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):xi(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=Mi(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let o=0,r=0;for(;r-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),Ni(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Ni(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let r,l,i=n,s=0;const a="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=a.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(l=r.length,o[3]||o[4]){i+=l;continue}if((o[5]||o[6])&&n%3&&!((n+l)%3)){s+=l;continue}if(i-=l,i>0)continue;if(l=Math.min(l,l+i+s),Math.min(n,l)%2){const t=e.slice(1,n+o.index+l);return{type:"em",raw:e.slice(0,n+o.index+l+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+l-1);return{type:"strong",raw:e.slice(0,n+o.index+l+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),o=/^ /.test(e)&&/ $/.test(e);return n&&o&&(e=e.substring(1,e.length-1)),e=xi(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,o;return"@"===n[2]?(e=xi(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=xi(n[1]),o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=xi(this.options.mangle?t(n[0]):n[0]),o="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=xi(n[0]),o="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):xi(n[0]):n[0]:xi(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Bi={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:$i,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Bi.def=Ii(Bi.def).replace("label",Bi._label).replace("title",Bi._title).getRegex(),Bi.bullet=/(?:[*+-]|\d{1,9}[.)])/,Bi.listItemStart=Ii(/^( *)(bull) */).replace("bull",Bi.bullet).getRegex(),Bi.list=Ii(Bi.list).replace(/bull/g,Bi.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Bi.def.source+")").getRegex(),Bi._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",Bi._comment=/|$)/,Bi.html=Ii(Bi.html,"i").replace("comment",Bi._comment).replace("tag",Bi._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bi.paragraph=Ii(Bi._paragraph).replace("hr",Bi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Bi._tag).getRegex(),Bi.blockquote=Ii(Bi.blockquote).replace("paragraph",Bi.paragraph).getRegex(),Bi.normal=Oi({},Bi),Bi.gfm=Oi({},Bi.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Bi.gfm.table=Ii(Bi.gfm.table).replace("hr",Bi.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Bi._tag).getRegex(),Bi.gfm.paragraph=Ii(Bi._paragraph).replace("hr",Bi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Bi.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Bi._tag).getRegex(),Bi.pedantic=Oi({},Bi.normal,{html:Ii("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Bi._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$i,paragraph:Ii(Bi.normal._paragraph).replace("hr",Bi.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Bi.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Di={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:$i,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:$i,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}Di._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Di.punctuation=Ii(Di.punctuation).replace(/punctuation/g,Di._punctuation).getRegex(),Di.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Di.escapedEmSt=/\\\*|\\_/g,Di._comment=Ii(Bi._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Di.emStrong.lDelim=Ii(Di.emStrong.lDelim).replace(/punct/g,Di._punctuation).getRegex(),Di.emStrong.rDelimAst=Ii(Di.emStrong.rDelimAst,"g").replace(/punct/g,Di._punctuation).getRegex(),Di.emStrong.rDelimUnd=Ii(Di.emStrong.rDelimUnd,"g").replace(/punct/g,Di._punctuation).getRegex(),Di._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Di._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Di._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])?)+(?![-_])/,Di.autolink=Ii(Di.autolink).replace("scheme",Di._scheme).replace("email",Di._email).getRegex(),Di._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Di.tag=Ii(Di.tag).replace("comment",Di._comment).replace("attribute",Di._attribute).getRegex(),Di._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Di._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Di._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Di.link=Ii(Di.link).replace("label",Di._label).replace("href",Di._href).replace("title",Di._title).getRegex(),Di.reflink=Ii(Di.reflink).replace("label",Di._label).replace("ref",Bi._label).getRegex(),Di.nolink=Ii(Di.nolink).replace("ref",Bi._label).getRegex(),Di.reflinkSearch=Ii(Di.reflinkSearch,"g").replace("reflink",Di.reflink).replace("nolink",Di.nolink).getRegex(),Di.normal=Oi({},Di),Di.pedantic=Oi({},Di.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ii(/^!?\[(label)\]\((.*?)\)/).replace("label",Di._label).getRegex(),reflink:Ii(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Di._label).getRegex()}),Di.gfm=Oi({},Di.normal,{escape:Ii(Di.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&l.length>0?l[l.length-1].raw+="\n":l.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=l[l.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?l.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=l[l.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),l.push(t);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(o)))n=l[l.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):l.push(t),r=o.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):l.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,l}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e){let t,n,o,r,l,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+Fi("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,r.index)+"["+Fi("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,r.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(i=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,a,i))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,Wi))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,Wi))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(o,Hi))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(i=t.raw.slice(-1)),l=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(t.raw.length),s.push(t);return s}}class Zi{constructor(e){this.options=e||gi}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'
'+(n?e:xi(e,!0))+"
\n":"
"+(n?e:xi(e,!0))+"
\n"}blockquote(e){return"
\n".concat(e,"
\n")}html(e){return e}heading(e,t,n,o){if(this.options.headerIds){const r=this.options.headerPrefix+o.slug(n);return"').concat(e,"\n")}return"").concat(e,"\n")}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • ".concat(e,"
  • \n")}checkbox(e){return" "}paragraph(e){return"

    ".concat(e,"

    \n")}table(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n".concat(e,"\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}strong(e){return"".concat(e,"")}em(e){return"".concat(e,"")}codespan(e){return"".concat(e,"")}br(){return this.options.xhtml?"
    ":"
    "}del(e){return"".concat(e,"")}link(e,t,n){if(null===(e=Ei(this.options.sanitize,this.options.baseUrl,e)))return n;let o='",o}image(e,t,n){if(null===(e=Ei(this.options.sanitize,this.options.baseUrl,e)))return n;let o='').concat(n,'":">",o}text(e){return e}}class Gi{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Ji{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Ki{constructor(e){this.options=e||gi,this.options.renderer=this.options.renderer||new Zi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Gi,this.slugger=new Ji}static parse(e,t){return new Ki(t).parse(e)}static parseInline(e,t){return new Ki(t).parseInline(e)}parse(e){let t,n,o,r,l,i,s,a,c,u,p,d,h,f,g,m,v,y,w,k=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b="";const x=e.length;for(t=0;t0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,v,m);b+=this.renderer.list(c,p,d);continue;case"html":b+=this.renderer.html(u.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1{o(e.text,e.lang,(function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&l()}))}),0))})),void(0===i&&l())}try{const n=qi.lex(e,t);return t.walkTokens&&Qi.walkTokens(n,t.walkTokens),Ki.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+xi(e.message+"",!0)+"
    ";throw e}}Qi.options=Qi.setOptions=function(e){var t;return Oi(Qi.defaults,e),t=Qi.defaults,gi=t,Qi},Qi.getDefaults=fi,Qi.defaults=gi,Qi.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(e.extensions&&(l=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=r.renderers?r.renderers[e.name]:null;r.renderers[e.name]=t?function(){for(var n=arguments.length,o=new Array(n),r=0;rAn error occurred:

    "+xi(e.message+"",!0)+"
    ";throw e}},Qi.Parser=Ki,Qi.parser=Ki.parse,Qi.Renderer=Zi,Qi.TextRenderer=Gi,Qi.Lexer=qi,Qi.lexer=qi.lex,Qi.Tokenizer=Vi,Qi.Slugger=Ji,Qi.parse=Qi;const Yi=/\$.*?\$/,Xi=/^\$(.*?)\$/,es=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ts=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'').concat(n,''):e))},ns=(e,t)=>{let{emojiMap:n,highlighter:o,texRenderer:r}=t;if(Qi.setOptions({highlight:o||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=es.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(Yi);return-1!==t?t:e.length},tokenizer(t){const n=Xi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Qi.use({extensions:e})}return Qi.parse(ts(e,n))},os=e=>e.dataset.path||e.getAttribute("id"),rs=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=Ut(new Date),r=()=>o.value=new Date,l="requestAnimationFrame"===n?Pl(r,{immediate:!0}):ul(r,n,{immediate:!0});return t?ql({now:o},l):o}();return ar((()=>ni(e,n.value,t)))};let ls=null;const is=()=>ls||(ls=Ml("USER_KEY",{}));let ss=null;const as=()=>ss||(ss=Ml("WALINE_LIKE",[])),cs=e=>{var t;let{serverURL:n,path:o=window.location.pathname,selector:r=".waline-comment-count",lang:l="zh-CN"}=e;const i=new AbortController,s=document.querySelectorAll(r),a=is();return s.length&&(e=>{let{serverURL:t,lang:n,paths:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>si(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:Ql(n),paths:Array.from(s).map((e=>Gl(e.dataset.path||e.getAttribute("id")||o))),lang:l,signal:i.signal,token:null===(t=a.value)||void 0===t?void 0:t.token}).then((e=>{s.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(li),i.abort.bind(i)};e.commentCount=cs;var us,ps,ds="function"==typeof Map?new Map:(us=[],ps=[],{has:function(e){return us.indexOf(e)>-1},get:function(e){return ps[us.indexOf(e)]},set:function(e,t){-1===us.indexOf(e)&&(us.push(e),ps.push(t))},delete:function(e){var t=us.indexOf(e);t>-1&&(us.splice(t,1),ps.splice(t,1))}}),hs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(us){hs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function fs(e){var t=ds.get(e);t&&t.destroy()}function gs(e){var t=ds.get(e);t&&t.update()}var ms=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ms=function(e){return e}).destroy=function(e){return e},ms.update=function(e){return e}):((ms=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!ds.has(e)){var t,n=null,o=null,r=null,l=function(){e.clientWidth!==o&&c()},i=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),ds.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",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",ds.set(e,{destroy:i,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(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}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o{let{size:t}=e;return cr("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},cr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},cr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};var ws=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const ks=$n({name:"ImageWall",components:{LoadingIcon:ys},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emit:["insert"],setup(e){let t=null;const n=Ut(null),o=Ut({}),r=Ut([]),l=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},i=e=>new Array(e).fill(null).map((()=>[])),s=async t=>{var o;if(t>=e.items.length)return;await an();const l=Array.from((null===(o=n.value)||void 0===o?void 0:o.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height0&&void 0!==arguments[0]&&arguments[0];if(r.value.length===l()&&!e)return;r.value=i(l());const t=window.scrollY;await s(0),window.scrollTo({top:t})};return Ln((()=>[e.items]),(()=>{o.value={},a(!0)})),Ln((()=>[e.columnWidth,e.gap]),(()=>a())),Pn((()=>{a(!0),t=new ResizeObserver((()=>a())),t.observe(n.value)})),Fn((()=>t.unobserve(n.value))),{columns:r,state:o,wall:n}}}),bs=["data-index"],xs=["src","title","onLoad","onClick"];const _s=$n({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return cr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[cr("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),cr("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})])},EmojiIcon:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},cr("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[cr("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),cr("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),ImageWall:ws(ks,[["render",function(e,t,n,o,r,l){const i=Hn("LoadingIcon");return zo(),Lo("div",{ref:"wall",class:"wl-gallery",style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(bo,null,Zn(e.columns,((t,n)=>(zo(),Lo("div",{key:n,class:"wl-gallery-column","data-index":n,style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(bo,null,Zn(t,(t=>(zo(),Lo(bo,{key:t},[e.state[e.items[t].src]?Do("v-if",!0):(zo(),To(i,{key:0,size:36,style:{margin:"20px auto"}})),Po("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert","![](".concat(e.items[t].src,")"))},null,40,xs)],64)))),128))],12,bs)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>cr("svg",{width:"16",height:"16",ariaHidden:"true"},cr("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[cr("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),cr("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:ys,GifIcon:()=>cr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[cr("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),cr("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=Rn("config"),r=Ml("WALINE_COMMENT_BOX_EDITOR",""),l=Ml("WALINE_USER_META",{nick:"",mail:"",link:""}),i=is(),s=Ut({}),a=Ut(null),c=Ut(null),u=Ut(null),p=Ut(null),d=Ut(null),h=Ut(null),f=Ut(null),g=Ut({tabs:[],map:{}}),m=Ut(0),v=Ut(!1),y=Ut(!1),w=Ut(!1),k=Ut(""),b=Ut(0),x=bt({loading:!0,list:[]}),_=Ut(0),S=Ut(!1),C=Ut(""),I=Ut(!1),z=ar((()=>o.value.locale)),R=ar((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),E=ar((()=>!1!==o.value.imageUploader)),A=e=>{const t=a.value,n=t.selectionStart,o=t.selectionEnd||0,l=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},L=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return A(t),Promise.resolve().then((()=>o.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},T=()=>{var t,c;const{serverURL:u,lang:p,login:d,wordLimit:h,requiredMeta:f}=o.value,m={comment:C.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=i.value)&&void 0!==t&&t.token)m.nick=i.value.display_name,m.mail=i.value.email,m.link=i.value.url;else{if("force"===d)return;var v,y,w;if(f.indexOf("nick")>-1&&!m.nick)return null===(v=s.value.nick)||void 0===v||v.focus(),alert(z.value.nickError);if(f.indexOf("mail")>-1&&!m.mail||m.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(m.mail))return null===(y=s.value.mail)||void 0===y||y.focus(),alert(z.value.mailError);if(!m.comment)return void(null===(w=a.value)||void 0===w||w.focus());m.nick||(m.nick=z.value.anonymous)}if(!S.value)return alert(z.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",b.value.toString()));m.comment=ts(m.comment,g.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),I.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const l={"Content-Type":"application/json"};return o&&(l.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(c=i.value)||void 0===c?void 0:c.token,comment:m}).then((t=>{if(I.value=!1,t.errmsg)return alert(t.errmsg);n("submit",t.data),r.value="",k.value="",e.replyId&&n("cancel-reply")})).catch((e=>{I.value=!1,alert(e.message)}))},j=e=>{u.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1),d.value.contains(e.target)||h.value.contains(e.target)||(y.value=!1)},$=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:l}=e.target,i=(r+n)/l,s=o.value.search,a=(null===(t=f.value)||void 0===t?void 0:t.value)||"";i<.9||x.loading||(x.loading=!0,x.list.push(...s.more?await s.more(a,x.list.length):await s.search(a)),x.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},O=function(e){return il(al(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{x.list=[],$(e)}),300);return Ln([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?no[1]?(_.value=o[1],S.value=!1):(_.value=o[1],S.value=!0):(_.value=0,S.value=!0)}),{immediate:!0}),Ln(y,(async e=>{if(!e)return;const t=o.value.search;f.value&&(f.value.value=""),x.loading=!0,x.list=t.default?await t.default():await t.search(""),x.loading=!1})),Pn((()=>{document.body.addEventListener("click",j),Ln((()=>r.value),(e=>{const{highlighter:t,texRenderer:n}=o.value;C.value=e,k.value=ns(e,{emojiMap:g.value.map,highlighter:t,texRenderer:n}),b.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?vs(a.value):vs.destroy(a.value)}),{immediate:!0}),Ln((()=>o.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?oi(Jl(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:l,type:i,items:s}=e;t.tabs.push({name:n,icon:ri(r,o,l,i),items:s.map((e=>{const n="".concat(l||"").concat(e);return t.map[n]=ri(e,o,l,i),n}))})})),t}))).then((e=>{g.value=e}));var t}),{immediate:!0})})),Nn((()=>{document.body.removeEventListener("click",j)})),{config:o,locale:z,insert:A,onChange:()=>{const e=c.value;e.files&&E.value&&L(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=hi(e.dataTransfer.items);t&&E.value&&(L(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&T()},onPaste:e=>{if(e.clipboardData){const t=hi(e.clipboardData.items);t&&E.value&&L(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==s||s.close(),i.value=t.data,(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,s=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const a=e=>{let{data:t}=e;t&&"profile"===t.type&&(i.value={...i.value,...t},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",a))};window.addEventListener("message",a)},submitComment:T,onImageWallScroll:$,onGifSearch:O,isLogin:R,userInfo:i,isSubmitting:I,wordNumber:b,wordLimit:_,isWordNumberLegal:S,editor:r,userMeta:l,emoji:g,emojiTabIndex:m,showEmoji:v,gifData:x,showGif:y,canUploadImage:E,previewText:k,showPreview:w,inputRefs:s,editorRef:a,emojiButtonRef:u,emojiPopupRef:p,gifButtonRef:d,gifPopupRef:h,imageUploadRef:c,gifSearchInputRef:f}}}),Ss={class:"wl-comment"},Cs={key:0,class:"wl-login-info"},Is={class:"wl-avatar"},zs=["title"],Rs=["src"],Es=["textContent"],As={class:"wl-panel"},Ls=["for","textContent"],Ts=["id","name","type","onUpdate:modelValue"],js=["placeholder"],$s={class:"wl-preview"},Os=Po("hr",null,null,-1),Us=["innerHTML"],Ms={class:"wl-footer"},Ps={class:"wl-actions"},Fs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ns=["title"],Vs=["title"],Bs=["title"],Ds=["title"],Hs={class:"wl-info"},Ws={class:"wl-text-number"},qs={key:0},Zs=Bo(" / "),Gs=["textContent"],Js=["textContent"],Ks=["disabled"],Qs=["placeholder"],Ys={key:0,class:"wl-loading"},Xs={key:0,class:"wl-tab-wrapper"},ea=["title","onClick"],ta=["src","alt"],na={key:0,class:"wl-tabs"},oa=["onClick"],ra=["src","alt","title"],la=["title"];var ia=ws(_s,[["render",function(e,t,n,o,r,l){const i=Hn("CloseIcon"),s=Hn("MarkdownIcon"),a=Hn("EmojiIcon"),c=Hn("GifIcon"),u=Hn("ImageIcon"),p=Hn("PreviewIcon"),d=Hn("LoadingIcon"),h=Hn("ImageWall");return zo(),Lo("div",Ss,["disable"!==e.config.login&&e.isLogin?(zo(),Lo("div",Cs,[Po("div",Is,[Po("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Fo(i,{size:14})],8,zs),Po("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,Rs)]),Po("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:A(e.userInfo.display_name)},null,8,Es)])):Do("v-if",!0),Po("div",As,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(zo(),Lo("div",{key:0,class:z(["wl-header","item".concat(e.config.meta.length)])},[(zo(!0),Lo(bo,null,Zn(e.config.meta,(t=>(zo(),Lo("div",{class:"wl-header-item",key:t},[Po("label",{for:t,textContent:A(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Ls),Vn(Po("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:"wl-".concat(t),class:z(["wl-input","wl-".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Ts),[[Zr,e.userMeta[t]]])])))),128))],2)):Do("v-if",!0),Vn(Po("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,js),[[Fr,e.editor]]),Vn(Po("div",$s,[Os,Po("h4",null,A(e.locale.preview)+":",1),Po("div",{class:"wl-content",innerHTML:e.previewText},null,8,Us)],512),[[Jr,e.showPreview]]),Po("div",Ms,[Po("div",Ps,[Po("a",Fs,[Fo(s)]),Vn(Po("button",{ref:"emojiButtonRef",class:z(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[Fo(a)],10,Ns),[[Jr,e.emoji.tabs.length]]),e.config.search?(zo(),Lo("button",{key:0,ref:"gifButtonRef",class:z(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[7]||(t[7]=t=>e.showGif=!e.showGif)},[Fo(c)],10,Vs)):Do("v-if",!0),Po("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[8]||(t[8]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(zo(),Lo("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[Fo(u)],8,Bs)):Do("v-if",!0),Po("button",{class:z(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[9]||(t[9]=t=>e.showPreview=!e.showPreview)},[Fo(p)],10,Ds)]),Po("div",Hs,[Po("div",Ws,[Bo(A(e.wordNumber)+" ",1),e.config.wordLimit?(zo(),Lo("span",qs,[Zs,Po("span",{class:z({illegal:!e.isWordNumberLegal}),textContent:A(e.wordLimit)},null,10,Gs)])):Do("v-if",!0),Bo(" "+A(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Do("v-if",!0):(zo(),Lo("button",{key:0,class:"wl-btn",onClick:t[10]||(t[10]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:A(e.locale.login)},null,8,Js)),"force"!==e.config.login||e.isLogin?(zo(),Lo("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[11]||(t[11]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(zo(),To(d,{key:0,size:16})):(zo(),Lo(bo,{key:1},[Bo(A(e.locale.submit),1)],64))],8,Ks)):Do("v-if",!0)]),Po("div",{ref:"gifPopupRef",class:z(["wl-gif-popup",{display:e.showGif}])},[Po("input",{type:"text",placeholder:e.locale.gifSearchPlaceholder,ref:"gifSearchInputRef",onInput:t[12]||(t[12]=function(){return e.onGifSearch&&e.onGifSearch(...arguments)})},null,40,Qs),Fo(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[13]||(t[13]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(zo(),Lo("div",Ys,[Fo(d,{size:30})])):Do("v-if",!0)],2),Po("div",{ref:"emojiPopupRef",class:z(["wl-emoji-popup",{display:e.showEmoji}])},[(zo(!0),Lo(bo,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo(bo,{key:t.name},[n===e.emojiTabIndex?(zo(),Lo("div",Xs,[(zo(!0),Lo(bo,null,Zn(t.items,(t=>(zo(),Lo("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(zo(),Lo("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ta)):Do("v-if",!0)],8,ea)))),128))])):Do("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(zo(),Lo("div",na,[(zo(!0),Lo(bo,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo("button",{key:t.name,class:z(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Po("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ra)],10,oa)))),128))])):Do("v-if",!0)],2)])]),e.replyId?(zo(),Lo("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[14]||(t[14]=t=>e.$emit("cancel-reply"))},[Fo(i,{size:24})],8,la)):Do("v-if",!0)])}],["__file","CommentBox.vue"]]);const sa=["approved","waiting","spam"],aa=$n({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ia,DeleteIcon:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},cr("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),LikeIcon:e=>{let{active:t=!1}=e;return cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[cr("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z".concat(t?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:t?"red":"currentColor"})])},ReplyIcon:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},cr("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),VerifiedIcon:()=>cr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},cr("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=Rn("config"),n=as(),o=is(),r=ar((()=>t.value.locale)),l=ar((()=>{let{link:t}=e.comment;return t?Kl(t)?t:"https://".concat(t):""})),i=ar((()=>n.value.includes(e.comment.objectId))),s=rs(e.comment.insertedAt,r.value),a=ar((()=>"administrator"===o.value.type)),c=ar((()=>e.comment.user_id&&o.value.objectId===e.comment.user_id)),u=ar((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:r,isReplyingCurrent:u,link:l,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:sa}}}),ca=["id"],ua={class:"wl-user","aria-hidden":"true"},pa=["src"],da={class:"wl-card"},ha={class:"wl-head"},fa=["href"],ga={key:1,class:"wl-nick"},ma=["textContent"],va=["textContent"],ya=["textContent"],wa=["textContent"],ka=["textContent"],ba={class:"wl-comment-actions"},xa=["title"],_a=["textContent"],Sa=["title"],Ca={class:"wl-meta","aria-hidden":"true"},Ia=["textContent"],za=["textContent"],Ra=["textContent"],Ea=["innerHTML"],Aa={key:0,class:"wl-admin-actions"},La={class:"wl-comment-status"},Ta=["disabled","onClick","textContent"],ja={key:1,class:"wl-reply-wrapper"},$a={key:2,class:"wl-quote"};const Oa=$n({name:"WalineRoot",components:{CommentBox:ia,CommentCard:ws(aa,[["render",function(e,t,n,o,r,l){const i=Hn("VerifiedIcon"),s=Hn("DeleteIcon"),a=Hn("LikeIcon"),c=Hn("ReplyIcon"),u=Hn("CommentBox"),p=Hn("CommentCard",!0);return zo(),Lo("div",{class:"wl-item",id:e.comment.objectId},[Po("div",ua,[e.comment.avatar?(zo(),Lo("img",{key:0,src:e.comment.avatar},null,8,pa)):Do("v-if",!0),e.comment.type?(zo(),To(i,{key:1})):Do("v-if",!0)]),Po("div",da,[Po("div",ha,[e.link?(zo(),Lo("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},A(e.comment.nick),9,fa)):(zo(),Lo("span",ga,A(e.comment.nick),1)),"administrator"===e.comment.type?(zo(),Lo("span",{key:2,class:"wl-badge",textContent:A(e.locale.admin)},null,8,ma)):Do("v-if",!0),e.comment.label?(zo(),Lo("span",{key:3,class:"wl-badge",textContent:A(e.comment.label)},null,8,va)):Do("v-if",!0),e.comment.sticky?(zo(),Lo("span",{key:4,class:"wl-badge",textContent:A(e.locale.sticky)},null,8,ya)):Do("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(zo(),Lo("span",{key:5,class:z("wl-badge level".concat(e.comment.level)),textContent:A(e.locale["level".concat(e.comment.level)]||"Level ".concat(e.comment.level))},null,10,wa)):Do("v-if",!0),Po("span",{class:"wl-time",textContent:A(e.time)},null,8,ka),Po("div",ba,[e.isAdmin||e.isOwner?(zo(),Lo("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[Fo(s)])):Do("v-if",!0),Po("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[Fo(a,{active:e.like},null,8,["active"]),"like"in e.comment?(zo(),Lo("span",{key:0,textContent:A(e.comment.like)},null,8,_a)):Do("v-if",!0)],8,xa),Po("button",{class:z(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Fo(c)],10,Sa)])]),Po("div",Ca,[e.comment.addr?(zo(),Lo("span",{key:0,textContent:A(e.comment.addr)},null,8,Ia)):Do("v-if",!0),e.comment.browser?(zo(),Lo("span",{key:1,textContent:A(e.comment.browser)},null,8,za)):Do("v-if",!0),e.comment.os?(zo(),Lo("span",{key:2,textContent:A(e.comment.os)},null,8,Ra)):Do("v-if",!0)]),Po("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Ea),e.isAdmin?(zo(),Lo("div",Aa,[Po("span",La,[(zo(!0),Lo(bo,null,Zn(e.commentStatus,(t=>(zo(),Lo("button",{key:t,class:z("wl-btn wl-".concat(t)),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:A(t)},null,10,Ta)))),128))]),e.isAdmin&&!e.comment.rid?(zo(),Lo("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},A(e.comment.sticky?"unsticky":"sticky"),1)):Do("v-if",!0)])):Do("v-if",!0),e.isReplyingCurrent?(zo(),Lo("div",ja,[Fo(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Do("v-if",!0),e.comment.children?(zo(),Lo("div",$a,[(zo(!0),Lo(bo,null,Zn(e.comment.children,(n=>(zo(),To(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):Do("v-if",!0)])],8,ca)}],["__file","CommentCard.vue"]]),LoadingIcon:ys},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const t=ar((()=>(e=>{let{serverURL:t,path:s=location.pathname,lang:a=o,locale:c,emoji:p=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:d=["nick","mail","link"],requiredMeta:h=[],dark:f=!1,pageSize:g=10,wordLimit:m,imageUploader:v,highlighter:y,texRenderer:k,copyright:b=!0,login:x="enable",search:_=i(),...S}=e;return{serverURL:Ql(t),path:Gl(s),locale:{...w[a]||w[o],..."object"==typeof c?c:{}},wordLimit:Yl(m),meta:n(d),requiredMeta:n(h),imageUploader:Xl(v,r),highlighter:Xl(y,u),texRenderer:Xl(k,l),lang:a,dark:f,emoji:p,pageSize:g,login:x,copyright:b,search:_,...S}})(e))),s=is(),a=as(),c=Ut("loading"),p=Ut(0),d=Ut(1),h=Ut(0),f=Ut([]),g=Ut(null),m=ar((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?"@media(prefers-color-scheme:dark){body".concat(ei,"}"):"".concat(e).concat(ei):!0===e?":root".concat(ei):"";var e}));let v;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ut(!1),{document:o=El,immediate:r=!0,manual:l=!1,id:i="vueuse_styletag_".concat(++Zl)}=t,s=Ut(e);let a=()=>{};const c=()=>{if(!o)return;const e=o.getElementById(i)||o.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),o.head.appendChild(e),n.value||(a=Ln(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{o&&n.value&&(a(),o.head.removeChild(o.getElementById(i)),n.value=!1)};r&&!l&&c(),l||tl(u),_t(n)}(m);const y=e=>{var n,o;const{serverURL:r,path:l,pageSize:i}=t.value,a=new AbortController;c.value="loading",null===(n=v)||void 0===n||n(),(e=>{let{serverURL:t,lang:n,path:o,page:r,pageSize:l,signal:i,token:s}=e;const a={};return s&&(a.Authorization="Bearer ".concat(s)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(o),"&pageSize=").concat(l,"&page=").concat(r,"&lang=").concat(n),{signal:i,headers:a}).then((e=>e.json())).then((e=>si(e,"comment list")))})({serverURL:r,lang:t.value.lang,path:l,pageSize:i,page:e,signal:a.signal,token:null===(o=s.value)||void 0===o?void 0:o.token}).then((t=>{c.value="success",p.value=t.count,f.value.push(...t.data),d.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),v=a.abort.bind(a)},k=()=>{p.value=0,f.value=[],y(1)};return function(e,t){if(Qo){let n=Qo.provides;const o=Qo.parent&&Qo.parent.provides;o===n&&(n=Qo.provides=Object.create(o)),n[e]=t}}("config",t),Ln((()=>e.path),k),Pn((()=>k())),{config:t,darkmodeStyle:m,i18n:ar((()=>t.value.locale)),status:c,count:p,page:d,totalPages:h,data:f,reply:g,loadMore:()=>y(d.value+1),refresh:k,onReply:e=>{g.value=e},onSubmit:e=>{if(e.rid){const t=f.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else f.value.unshift(e)},onStatusChange:async e=>{var n;let{comment:o,status:r}=e;if(o.status===r)return;const{serverURL:l,lang:i}=t.value;await ai({serverURL:l,lang:i,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o.objectId,status:r}),o.status=r},onDelete:async e=>{var n;let{objectId:o}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:l}=t.value;await(e=>{let{serverURL:t,lang:n,token:o,objectId:r}=e;const l={Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"DELETE",headers:l}).then((e=>e.json()))})({serverURL:r,lang:l,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o}),f.value.some(((e,t)=>e.objectId===o?(f.value=f.value.filter(((e,n)=>n!==t)),!0):e.children.some(((n,r)=>n.objectId===o&&(f.value[t].children=e.children.filter(((e,t)=>t!==r)),!0)))))},onSticky:async e=>{var n;if(e.rid)return;const{serverURL:o,lang:r}=t.value;await ai({serverURL:o,lang:r,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:o}=t.value,{objectId:r}=e,l=a.value.includes(r);await(e=>{let{serverURL:t,lang:n,objectId:o,like:r}=e;return fetch("".concat(t,"/comment/").concat(o,"?lang=").concat(n),{method:"PUT",headers:ii,body:JSON.stringify({like:r})}).then((e=>e.json()))})({serverURL:n,lang:o,objectId:r,like:!l}),l?a.value=a.value.filter((e=>e!==r)):(a.value=[...a.value,r],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.6.1"}}}),Ua={"data-waline":""},Ma={class:"wl-count"},Pa=["textContent"],Fa={class:"wl-cards"},Na={key:1,class:"wl-operation"},Va=["textContent"],Ba={key:0,class:"wl-loading"},Da=["textContent"],Ha={class:"wl-operation"},Wa=["textContent"],qa={key:3,class:"wl-power"},Za=Bo(" Powered by "),Ga=Po("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Ja=ws(Oa,[["render",function(e,t,n,o,r,l){const i=Hn("CommentBox"),s=Hn("CommentCard"),a=Hn("LoadingIcon");return zo(),Lo("div",Ua,[e.reply?Do("v-if",!0):(zo(),To(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Po("div",Ma,[e.count?(zo(),Lo("span",{key:0,class:"wl-num",textContent:A(e.count)},null,8,Pa)):Do("v-if",!0),Bo(" "+A(e.i18n.comment),1)]),Po("div",Fa,[(zo(!0),Lo(bo,null,Zn(e.data,(t=>(zo(),To(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(zo(),Lo("div",Na,[Po("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:A(e.i18n.refresh)},null,8,Va)])):(zo(),Lo(bo,{key:2},["loading"===e.status?(zo(),Lo("div",Ba,[Fo(a,{size:30})])):e.data.length?e.page{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Qa=e=>{let{serverURL:t,path:n=window.location.pathname,selector:o=".waline-pageview-count",update:r=!0,lang:l="zh-CN"}=e;const i=new AbortController,s=Array.from(document.querySelectorAll(o)),a=e=>{const t=os(e);return null!==t&&n!==t},c=e=>ci({serverURL:Ql(t),paths:e.map((e=>os(e)||n)),lang:l,signal:i.signal}).then((t=>Ka(t,e))).catch(li);if(r){const e=s.filter((e=>!a(e))),o=s.filter(a);ui({serverURL:Ql(t),path:n,lang:l}).then((t=>Ka(new Array(e.length).fill(t),e))),o.length&&c(o)}else c(s);return i.abort.bind(i)};e.pageviewCount=Qa;e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:o=!1,pageview:r=!1,...l}=e;const i=t?pi(t):null;if(t&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=bt({...l}),a=bt({comment:o,pageview:r,path:n}),c=i?function(){const e=Xr().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const o=el(n);if(!o)return;const r=e._component;Z(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const l=t(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},e}((()=>cr(Ja,{path:a.path,...s}))):null;c&&c.mount(i);const u=En((()=>{a.comment&&cs({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=En((()=>{a.pageview&&Qa({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:i,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(o).forEach((e=>{let[t,n]=e;s[t]=n})),a.path=n,void 0!==e&&(a.comment=e),void 0!==t&&(a.pageview=t)},destroy:()=>{null==c||c.unmount(),u(),p()}}};e.version="2.6.1";e.RecentComments=e=>{var t;let{el:n,serverURL:o,count:r,lang:l="zh-CN"}=e;const i=is(),s=pi(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=recent&count=").concat(o,"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>si(e,"recent comment")))})({serverURL:o,count:r,lang:l,signal:a.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML='
    "),{comments:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))}})); \ No newline at end of file +var Co=Object.defineProperty;var So=(e,t,n)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ts=(e,t,n)=>So(e,typeof t!="symbol"?t+"":t,n);const Is={"Content-Type":"application/json"},Xe=e=>`${e.replace(/\/?$/,"/")}api/`,yt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Rr=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Xe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>yt(i,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Xe(e)}article?lang=${t}`,{method:"POST",headers:Is,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>yt(i,"Update counter").data),Ls=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Xe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>yt(c,"Get comment data").data)},Ms=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Xe(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Ps=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Xe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>yt(s,"Delete comment")),nn=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Xe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Is,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>yt(i,"Update comment")),Os=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Xe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>yt(s,"Get comment count").data),js=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},zs=({serverURL:e,lang:t,paths:n,signal:r})=>Rr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ds=e=>zn({...e,type:"time",action:"inc"}),Fs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Xe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Hs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Xe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>yt(s,"user list")).then(s=>s.data),$o=["nick","mail","link"],Us=e=>e.filter(t=>$o.includes(t)),Ns=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Ro=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Ao=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Eo=e=>e?'

    TeX is not available in preview

    ':'TeX is not available in preview',To=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(s=>s.json()).then(({data:s})=>s.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Io=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Lo=/{let t=0;return e.replace(Oo,(n,r,s)=>{if(s)return`${s}`;if(r==="<")return"<";let i;Ar[r]?i=Ar[r]:(i=Bs[t],Ar[r]=i);const l=`${r}`;return t=++t%Bs.length,l})},zo=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],qe=e=>Object.fromEntries(e.map((t,n)=>[zo[n],t]));var Do=qe(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]),Vs=qe(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words! + Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Ws=qe(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras! + El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),qs=qe(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots ! + Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Ks=qe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! + 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Fo=qe(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras! + Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Gs=qe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! +Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Zs=qe(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ! + Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Js=qe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! +当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Ho=qe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! +目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Ys="en-US",Dn={zh:Js,"zh-cn":Js,"zh-tw":Ho,en:Vs,"en-us":Vs,fr:qs,"fr-fr":qs,jp:Ks,"jp-jp":Ks,"pt-br":Fo,ru:Gs,"ru-ru":Gs,vi:Zs,"vi-vn":Zs,de:Do,es:Ws,"es-mx":Ws},Qs=e=>Dn[e.toLowerCase()]||Dn[Ys.toLowerCase()],Xs=e=>Object.keys(Dn).includes(e.toLowerCase())?e:Ys,ei={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Uo=Object.keys(ei),Fn=Symbol("waline-config"),ti=e=>{try{e=decodeURI(e)}catch{}return e},ni=(e="")=>e.replace(/\/$/u,""),ri=e=>/^(https?:)?\/\//.test(e),Hn=e=>{const t=ni(e);return ri(t)?t:`https://${t}`},No=e=>Array.isArray(e)?e:e?[0,e]:!1,zt=(e,t)=>e==null||e===!0?t:e===!1?null:e,Bo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Ns,imageUploader:b,highlighter:T,texRenderer:w,search:C,reaction:N,...I})=>({serverURL:Hn(e),path:ti(t),lang:Xs(n),locale:{...Qs(Xs(n)),...typeof r=="object"?r:{}},wordLimit:No(a),meta:Us(s),requiredMeta:Us(i),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:zt(N,Ro),imageUploader:zt(b,Ao),highlighter:zt(T,jo),texRenderer:zt(w,Eo),emoji:zt(x,Ns),search:zt(C,To(n))}),Dt=e=>typeof e=="string",Er="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",Vo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Er}}`:`${e}${Er}`:e===!0?`:root${Er}`:"",Tr=(e,t)=>{let n=e.toString();for(;n.length{const t=Tr(e.getDate(),2),n=Tr(e.getMonth()+1,2);return`${Tr(e.getFullYear(),2)}-${n}-${t}`},qo=(e,t,n)=>{if(!e)return"";const r=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:Wo(r)},Ko=/^[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])?)*$/,Go=e=>Ko.test(e);/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Ir(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ie={},Ft=[],wt=()=>{},Zo=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lr=e=>e.startsWith("onUpdate:"),je=Object.assign,si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jo=Object.prototype.hasOwnProperty,X=(e,t)=>Jo.call(e,t),q=Array.isArray,Ht=e=>rn(e)==="[object Map]",Ut=e=>rn(e)==="[object Set]",ii=e=>rn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",Ke=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",li=e=>(he(e)||ee(e))&&ee(e.then)&&ee(e.catch),oi=Object.prototype.toString,rn=e=>oi.call(e),Yo=e=>rn(e).slice(8,-1),ai=e=>rn(e)==="[object Object]",Mr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Ir(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qo=/-(\w)/g,ze=Nn(e=>e.replace(Qo,(t,n)=>n?n.toUpperCase():"")),Xo=/\B([A-Z])/g,kt=Nn(e=>e.replace(Xo,"-$1").toLowerCase()),Bn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pr=Nn(e=>e?`on${Bn(e)}`:""),ft=(e,t)=>!Object.is(e,t),Vn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ui;const ln=()=>ui||(ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(e){if(q(e)){const t={};for(let n=0;n{if(n){const r=n.split(ta);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(ye(e))t=e;else if(q(e))for(let n=0;nxt(n,t))}const hi=e=>!!(e&&e.__v_isRef===!0),Y=e=>ye(e)?e:e==null?"":q(e)||he(e)&&(e.toString===oi||!ee(e.toString))?hi(e)?Y(e.value):JSON.stringify(e,pi,2):String(e),pi=(e,t)=>hi(t)?pi(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[jr(r,i)+" =>"]=s,n),{})}:Ut(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jr(n))}:Ke(t)?jr(t):he(t)&&!q(t)&&!ai(t)?String(t):t,jr=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ce;class oa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function bi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yi(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ur(r),ca(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Hr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===un))return;e.globalVersion=un;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Hr(e)){e.flags&=-3;return}const n=ue,r=Ne;ue=e,Ne=!0;try{bi(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ne=r,yi(e),e.flags&=-3}}function Ur(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ur(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ca(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const ki=[];function _t(){ki.push(Ne),Ne=!1}function Ct(){const e=ki.pop();Ne=e===void 0?!0:e}function xi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let un=0;class ua{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ue||!Ne||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new ua(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,_i(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,un++,this.notify(t)}notify(t){Dr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Fr()}}}function _i(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)_i(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Kn=new WeakMap,St=Symbol(""),Nr=Symbol(""),fn=Symbol("");function ke(e,t,n){if(Ne&&ue){let r=Kn.get(e);r||Kn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new qn),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const l=Kn.get(e);if(!l){un++;return}const o=a=>{a&&a.trigger()};if(Dr(),t==="clear")l.forEach(o);else{const a=q(e),c=a&&Mr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===fn||!Ke(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(fn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Ht(e)&&o(l.get(Nr)));break;case"delete":a||(o(l.get(St)),Ht(e)&&o(l.get(Nr)));break;case"set":Ht(e)&&o(l.get(St));break}}Fr()}function fa(e,t){const n=Kn.get(e);return n&&n.get(t)}function Nt(e){const t=Q(e);return t===e?t:(ke(t,"iterate",fn),De(e)?t:t.map(xe))}function Gn(e){return ke(e=Q(e),"iterate",fn),e}const ha={__proto__:null,[Symbol.iterator](){return Br(this,Symbol.iterator,xe)},concat(...e){return Nt(this).concat(...e.map(t=>q(t)?Nt(t):t))},entries(){return Br(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return tt(this,"find",e,t,xe,arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vr(this,"includes",e)},indexOf(...e){return Vr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Vr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return Ci(this,"reduce",e,t)},reduceRight(e,...t){return Ci(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return hn(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return hn(this,"unshift",e)},values(){return Br(this,"values",xe)}};function Br(e,t,n){const r=Gn(e),s=r[t]();return r!==e&&!De(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const pa=Array.prototype;function tt(e,t,n,r,s,i){const l=Gn(e),o=l!==e&&!De(e),a=l[t];if(a!==pa[t]){const f=a.apply(e,i);return o?xe(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,xe(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Ci(e,t,n,r){const s=Gn(e);let i=n;return s!==e&&(De(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,xe(o),a,e)}),s[t](i,...r)}function Vr(e,t,n){const r=Q(e);ke(r,"iterate",fn);const s=r[t](...n);return(s===-1||s===!1)&&Gr(n[0])?(n[0]=Q(n[0]),r[t](...n)):s}function hn(e,t,n=[]){_t(),Dr();const r=Q(e)[t].apply(e,n);return Fr(),Ct(),r}const da=Ir("__proto__,__v_isRef,__isVue"),Si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function ga(e){Ke(e)||(e=String(e));const t=Q(this);return ke(t,"has",e),t.hasOwnProperty(e)}class $i{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Sa:Ti:i?Ei:Ai).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=q(t);if(!s){let a;if(l&&(a=ha[n]))return a;if(n==="hasOwnProperty")return ga}const o=Reflect.get(t,n,ve(t)?t:r);return(Ke(n)?Si.has(n):da(n))||(s||ke(t,"get",n),i)?o:ve(o)?l&&Mr(n)?o:o.value:he(o)?s?Bt(o):pn(o):o}}class Ri extends $i{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=$t(i);if(!De(r)&&!$t(r)&&(i=Q(i),r=Q(r)),!q(t)&&ve(i)&&!ve(r))return a?!1:(i.value=r,!0)}const l=q(t)&&Mr(n)?Number(n)e,Zn=e=>Reflect.getPrototypeOf(e);function wa(e,t,n){return function(...r){const s=this.__v_raw,i=Q(s),l=Ht(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Wr:t?Zr:xe;return!t&&ke(i,"iterate",a?Nr:St),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ka(e,t){const n={get(s){const i=this.__v_raw,l=Q(i),o=Q(s);e||(ft(s,o)&&ke(l,"get",s),ke(l,"get",o));const{has:a}=Zn(l),c=t?Wr:e?Zr:xe;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ke(Q(s),"iterate",St),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,l=Q(i),o=Q(s);return e||(ft(s,o)&&ke(l,"has",s),ke(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=Q(o),c=t?Wr:e?Zr:xe;return!e&&ke(a,"iterate",St),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return je(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!De(s)&&!$t(s)&&(s=Q(s));const i=Q(this);return Zn(i).has.call(i,s)||(i.add(s),et(i,"add",s,s)),this},set(s,i){!t&&!De(i)&&!$t(i)&&(i=Q(i));const l=Q(this),{has:o,get:a}=Zn(l);let c=o.call(l,s);c||(s=Q(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ft(i,u)&&et(l,"set",s,i):et(l,"add",s,i),this},delete(s){const i=Q(this),{has:l,get:o}=Zn(i);let a=l.call(i,s);a||(s=Q(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&et(i,"delete",s,void 0),c},clear(){const s=Q(this),i=s.size!==0,l=s.clear();return i&&et(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=wa(s,e,t)}),n}function qr(e,t){const n=ka(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(X(n,s)&&s in r?n:r,s,i)}const xa={get:qr(!1,!1)},_a={get:qr(!1,!0)},Ca={get:qr(!0,!1)},Ai=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Sa=new WeakMap;function $a(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ra(e){return e.__v_skip||!Object.isExtensible(e)?0:$a(Yo(e))}function pn(e){return $t(e)?e:Kr(e,!1,va,xa,Ai)}function Aa(e){return Kr(e,!1,ya,_a,Ei)}function Bt(e){return Kr(e,!0,ba,Ca,Ti)}function Kr(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=Ra(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return s.set(e,o),o}function Vt(e){return $t(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Gr(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function Ea(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&ci(e,"__v_skip",!0),e}const xe=e=>he(e)?pn(e):e,Zr=e=>he(e)?Bt(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function se(e){return Ii(e,!1)}function Rt(e){return Ii(e,!0)}function Ii(e,t){return ve(e)?e:new Ta(e,t)}class Ta{constructor(t,n){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||$t(t);t=r?t:Q(t),ft(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function K(e){return ve(e)?e.value:e}function Te(e){return ee(e)?e():K(e)}const Ia={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Li(e){return Vt(e)?e:new Proxy(e,Ia)}class La{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ma(e){return new La(e)}class Pa{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fa(Q(this._object),this._key)}}class Oa{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ja(e,t,n){return ve(e)?e:ee(e)?new Oa(e):he(e)&&arguments.length>1?za(e,t,n):se(e)}function za(e,t,n){const r=e[t];return ve(r)?r:new Pa(e,t,n)}class Da{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return vi(this,!0),!0}get value(){const t=this.dep.track();return wi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fa(e,t,n=!1){let r,s;return ee(e)?r=e:(r=e.get,s=e.set),new Da(r,s,n)}const Yn={},Qn=new WeakMap;let At;function Ha(e,t=!1,n=At){if(n){let r=Qn.get(n);r||Qn.set(n,r=[]),r.push(e)}}function Ua(e,t,n=ie){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=I=>s?I:De(I)||s===!1||s===0?nt(I,1):nt(I);let u,f,d,m,x=!1,b=!1;if(ve(e)?(f=()=>e.value,x=De(e)):Vt(e)?(f=()=>c(e),x=!0):q(e)?(b=!0,x=e.some(I=>Vt(I)||De(I)),f=()=>e.map(I=>{if(ve(I))return I.value;if(Vt(I))return c(I);if(ee(I))return a?a(I,2):I()})):ee(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_t();try{d()}finally{Ct()}}const I=At;At=u;try{return a?a(e,3,[m]):e(m)}finally{At=I}}:f=wt,t&&s){const I=f,O=s===!0?1/0:s;f=()=>nt(I(),O)}const T=di(),w=()=>{u.stop(),T&&T.active&&si(T.effects,u)};if(i&&t){const I=t;t=(...O)=>{I(...O),w()}}let C=b?new Array(e.length).fill(Yn):Yn;const N=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(s||x||(b?O.some((G,j)=>ft(G,C[j])):ft(O,C))){d&&d();const G=At;At=u;try{const j=[O,C===Yn?void 0:b&&C[0]===Yn?[]:C,m];a?a(t,3,j):t(...j),C=O}finally{At=G}}}else u.run()};return o&&o(N),u=new gi(f),u.scheduler=l?()=>l(N,!1):N,m=I=>Ha(I,!1,u),d=u.onStop=()=>{const I=Qn.get(u);if(I){if(a)a(I,4);else for(const O of I)O();Qn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function nt(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ve(e))nt(e.value,t,n);else if(q(e))for(let r=0;r{nt(r,t,n)});else if(ai(e)){for(const r in e)nt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&nt(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function dn(e,t,n,r){try{return r?e(...r):e()}catch(s){Xn(s,t,n)}}function rt(e,t,n,r){if(ee(e)){const s=dn(e,t,n,r);return s&&li(s)&&s.catch(i=>{Xn(i,t,n)}),s}if(q(e)){const s=[];for(let i=0;i>>1,s=Se[r],i=gn(s);i=gn(n)?Se.push(e):Se.splice(Ba(t),0,e),e.flags|=1,Pi()}}function Pi(){er||(er=Mi.then(zi))}function Va(e){q(e)?Wt.push(...e):ht&&e.id===-1?ht.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Pi()}function Oi(e,t,n=Ge+1){for(;ngn(n)-gn(r));if(Wt.length=0,ht){ht.push(...t);return}for(ht=t,qt=0;qte.id==null?e.flags&2?-1:1/0:e.id;function zi(e){try{for(Ge=0;Ge{r._d&&sl(-1);const i=tr(t);let l;try{l=e(...s)}finally{tr(i),r._d&&sl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function nr(e,t){if(Ae===null)return e;const n=ur(Ae),r=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport;function Yr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function mn(e,t){return ee(e)?je({name:e.name},t,{setup:e}):e}function Ga(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pt(e){const t=ol(),n=Rt(null);if(t){const s=t.refs===ie?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function rr(e,t,n,r,s=!1){if(q(e)){e.forEach((x,b)=>rr(x,t&&(q(t)?t[b]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&rr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ur(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ie?o.refs={}:o.refs,f=o.setupState,d=Q(f),m=f===ie?()=>!1:x=>X(d,x);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,m(c)&&(f[c]=null)):ve(c)&&(c.value=null)),ee(a))dn(a,o,12,[l,u]);else{const x=ye(a),b=ve(a);if(x||b){const T=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;s?q(w)&&si(w,i):q(w)?w.includes(i)||w.push(i):x?(u[a]=[i],m(a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(T.id=-1,Ie(T,n)):T()}}}ln().requestIdleCallback,ln().cancelIdleCallback;const vn=e=>!!e.type.__asyncLoader,Za=e=>e.type.__isKeepAlive;function Ja(e,t,n=$e,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{_t();const o=as(n),a=rt(t,n,e,l);return o(),Ct(),a});return r?s.unshift(i):s.push(i),i}}const Qr=e=>(t,n=$e)=>{(!_n||e==="sp")&&Ja(e,(...r)=>t(...r),n)},bn=Qr("m"),Ya=Qr("bum"),Xr=Qr("um"),Qa="components";function Xa(e,t){return tc(Qa,e,!0,t)||e}const ec=Symbol.for("v-ndc");function tc(e,t,n=!0,r=!1){const s=Ae||$e;if(s){const i=s.type;{const o=Dc(i,!1);if(o&&(o===t||o===ze(t)||o===Bn(ze(t))))return i}const l=Fi(s[e]||i[e],t)||Fi(s.appContext[e],t);return!l&&r?i:l}}function Fi(e,t){return e&&(e[t]||e[ze(t)]||e[Bn(ze(t))])}function Fe(e,t,n,r){let s;const i=n,l=q(e);if(l||ye(e)){const o=l&&Vt(e);let a=!1;o&&(a=!De(e),e=Gn(e)),s=new Array(e.length);for(let c=0,u=e.length;ct(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;ae?cl(e)?ur(e):es(e.parent):null,yn=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>es(e.parent),$root:e=>es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Jr(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>wt}),ts=(e,t)=>e!==ie&&!e.__isScriptSetup&&X(e,t),nc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ts(r,t))return l[t]=1,r[t];if(s!==ie&&X(s,t))return l[t]=2,s[t];if((c=e.propsOptions[0])&&X(c,t))return l[t]=3,i[t];if(n!==ie&&X(n,t))return l[t]=4,n[t];l[t]=0}}const u=yn[t];let f,d;if(u)return t==="$attrs"&&ke(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==ie&&X(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ts(s,t)?(s[t]=n,!0):r!==ie&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let o;return!!n[l]||e!==ie&&X(e,l)||ts(t,l)||(o=i[0])&&X(o,l)||X(r,l)||X(yn,l)||X(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hi(){return{app:null,config:{isNativeTag:Zo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let rc=0;function sc(e,t){return function(r,s=null){ee(r)||(r=je({},r)),s!=null&&!he(s)&&(s=null);const i=Hi(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:rc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Hc,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&ee(u.install)?(l.add(u),u.install(c,...f)):ee(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||le(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,ur(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(rt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Gt;Gt=c;try{return u()}finally{Gt=f}}};return c}}let Gt=null;function ic(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function sr(e,t,n=!1){const r=$e||Ae;if(r||Gt){const s=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Ui={},Ni=()=>Object.create(Ui),Bi=e=>Object.getPrototypeOf(e)===Ui;function lc(e,t,n,r=!1){const s={},i=Ni();e.propsDefaults=Object.create(null),Vi(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Aa(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function oc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=Q(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;fe[0]==="_"||e==="$stable",rs=e=>q(e)?e.map(Ze):[Ze(e)],cc=(e,t,n)=>{if(t._n)return t;const r=Wa((...s)=>rs(t(...s)),n);return r._c=!1,r},Ki=(e,t,n)=>{const r=e._ctx;for(const s in e){if(qi(s))continue;const i=e[s];if(ee(i))t[s]=cc(s,i,r);else if(i!=null){const l=rs(i);t[s]=()=>l}}},Gi=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Zi=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},uc=(e,t,n)=>{const r=e.slots=Ni();if(e.vnode.shapeFlag&32){const s=t._;s?(Zi(r,t,n),n&&ci(r,"_",s,!0)):Ki(t,r)}else t&&Gi(e,t)},fc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=ie;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:Zi(s,t,n):(i=!t.$stable,Ki(t,s)),l=t}else t&&(Gi(e,t),l={default:1});if(i)for(const o in s)!qi(o)&&l[o]==null&&delete s[o]};function hc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ln().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ie=$c;function pc(e){return dc(e)}function dc(e,t){hc();const n=ln();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=wt,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,S=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!xn(h,p)&&(y=bt(h),Ue(h,k,v,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:_,ref:U,shapeFlag:M}=p;switch(_){case lr:T(h,p,g,y);break;case It:w(h,p,g,y);break;case is:h==null&&C(p,g,y,A);break;case fe:B(h,p,g,y,k,v,A,S,$);break;default:M&1?O(h,p,g,y,k,v,A,S,$):M&6?F(h,p,g,y,k,v,A,S,$):(M&64||M&128)&&_.process(h,p,g,y,k,v,A,S,$,R)}U!=null&&k&&rr(U,h&&h.ref,v,p||h,!p)},T=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},C=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},N=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),s(h),h=g;s(p)},O=(h,p,g,y,k,v,A,S,$)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?G(p,g,y,k,v,A,S,$):ae(h,p,k,v,A,S,$)},G=(h,p,g,y,k,v,A,S)=>{let $,_;const{props:U,shapeFlag:M,transition:H,dirs:V}=h;if($=h.el=l(h.type,v,U&&U.is,U),M&8?u($,h.children):M&16&&oe(h.children,$,null,y,k,ss(h,v),A,S),V&&Et(h,null,y,"created"),j($,h,h.scopeId,A,y),U){for(const re in U)re!=="value"&&!sn(re)&&i($,re,null,U[re],v,y);"value"in U&&i($,"value",null,U.value,v),(_=U.onVnodeBeforeMount)&&Je(_,y,h)}V&&Et(h,null,y,"beforeMount");const Z=gc(k,H);Z&&H.beforeEnter($),r($,p,g),((_=U&&U.onVnodeMounted)||Z||V)&&Ie(()=>{_&&Je(_,y,h),Z&&H.enter($),V&&Et(h,null,y,"mounted")},k)},j=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v{for(let _=$;_{const S=p.el=h.el;let{patchFlag:$,dynamicChildren:_,dirs:U}=p;$|=h.patchFlag&16;const M=h.props||ie,H=p.props||ie;let V;if(g&&Tt(g,!1),(V=H.onVnodeBeforeUpdate)&&Je(V,g,p,h),U&&Et(p,h,g,"beforeUpdate"),g&&Tt(g,!0),(M.innerHTML&&H.innerHTML==null||M.textContent&&H.textContent==null)&&u(S,""),_?Me(h.dynamicChildren,_,S,g,y,ss(p,k),v):A||ut(h,p,S,null,g,y,ss(p,k),v,!1),$>0){if($&16)E(S,M,H,g,k);else if($&2&&M.class!==H.class&&i(S,"class",null,H.class,k),$&4&&i(S,"style",M.style,H.style,k),$&8){const Z=p.dynamicProps;for(let re=0;re{V&&Je(V,g,p,h),U&&Et(p,h,g,"updated")},y)},Me=(h,p,g,y,k,v,A)=>{for(let S=0;S{if(p!==g){if(p!==ie)for(const v in p)!sn(v)&&!(v in g)&&i(h,v,p[v],null,k,y);for(const v in g){if(sn(v))continue;const A=g[v],S=p[v];A!==S&&v!=="value"&&i(h,v,S,A,k,y)}"value"in g&&i(h,"value",p.value,g.value,k)}},B=(h,p,g,y,k,v,A,S,$)=>{const _=p.el=h?h.el:o(""),U=p.anchor=h?h.anchor:o("");let{patchFlag:M,dynamicChildren:H,slotScopeIds:V}=p;V&&(S=S?S.concat(V):V),h==null?(r(_,g,y),r(U,g,y),oe(p.children||[],g,U,k,v,A,S,$)):M>0&&M&64&&H&&h.dynamicChildren?(Me(h.dynamicChildren,H,g,k,v,A,S),(p.key!=null||k&&p===k.subTree)&&Ji(h,p,!0)):ut(h,p,g,U,k,v,A,S,$)},F=(h,p,g,y,k,v,A,S,$)=>{p.slotScopeIds=S,h==null?p.shapeFlag&512?k.ctx.activate(p,g,y,A,$):de(p,g,y,k,v,A,$):we(h,p,$)},de=(h,p,g,y,k,v,A)=>{const S=h.component=Mc(h,y,k);if(Za(h)&&(S.ctx.renderer=R),Pc(S,!1,A),S.asyncDep){if(k&&k.registerDep(S,be,A),!h.el){const $=S.subTree=le(It);w(null,$,p,g)}}else be(S,h,p,g,k,v,A)},we=(h,p,g)=>{const y=p.component=h.component;if(Cc(h,p,g))if(y.asyncDep&&!y.asyncResolved){Qe(y,p,g);return}else y.next=p,y.update();else p.el=h.el,y.vnode=p},be=(h,p,g,y,k,v,A)=>{const S=()=>{if(h.isMounted){let{next:M,bu:H,u:V,parent:Z,vnode:re}=h;{const en=Yi(h);if(en){M&&(M.el=re.el,Qe(h,M,A)),en.asyncDep.then(()=>{h.isUnmounted||S()});return}}let ce=M,Pe;Tt(h,!1),M?(M.el=re.el,Qe(h,M,A)):M=re,H&&Vn(H),(Pe=M.props&&M.props.onVnodeBeforeUpdate)&&Je(Pe,Z,M,re),Tt(h,!0);const _e=tl(h),Oe=h.subTree;h.subTree=_e,b(Oe,_e,f(Oe.el),bt(Oe),h,k,v),M.el=_e.el,ce===null&&Sc(h,_e.el),V&&Ie(V,k),(Pe=M.props&&M.props.onVnodeUpdated)&&Ie(()=>Je(Pe,Z,M,re),k)}else{let M;const{props:H}=p,{bm:V,m:Z,parent:re,root:ce,type:Pe}=h,_e=vn(p);Tt(h,!1),V&&Vn(V),!_e&&(M=H&&H.onVnodeBeforeMount)&&Je(M,re,p),Tt(h,!0);{ce.ce&&ce.ce._injectChildStyle(Pe);const Oe=h.subTree=tl(h);b(null,Oe,g,y,h,k,v),p.el=Oe.el}if(Z&&Ie(Z,k),!_e&&(M=H&&H.onVnodeMounted)){const Oe=p;Ie(()=>Je(M,re,Oe),k)}(p.shapeFlag&256||re&&vn(re.vnode)&&re.vnode.shapeFlag&256)&&h.a&&Ie(h.a,k),h.isMounted=!0,p=g=y=null}};h.scope.on();const $=h.effect=new gi(S);h.scope.off();const _=h.update=$.run.bind($),U=h.job=$.runIfDirty.bind($);U.i=h,U.id=h.uid,$.scheduler=()=>Jr(U),Tt(h,!0),_()},Qe=(h,p,g)=>{p.component=h;const y=h.vnode.props;h.vnode=p,h.next=null,oc(h,p.props,y,g),fc(h,p.children,g),_t(),Oi(h),Ct()},ut=(h,p,g,y,k,v,A,S,$=!1)=>{const _=h&&h.children,U=h?h.shapeFlag:0,M=p.children,{patchFlag:H,shapeFlag:V}=p;if(H>0){if(H&128){Pn(_,M,g,y,k,v,A,S,$);return}else if(H&256){Xt(_,M,g,y,k,v,A,S,$);return}}V&8?(U&16&&vt(_,k,v),M!==_&&u(g,M)):U&16?V&16?Pn(_,M,g,y,k,v,A,S,$):vt(_,k,v,!0):(U&8&&u(g,""),V&16&&oe(M,g,y,k,v,A,S,$))},Xt=(h,p,g,y,k,v,A,S,$)=>{h=h||Ft,p=p||Ft;const _=h.length,U=p.length,M=Math.min(_,U);let H;for(H=0;HU?vt(h,k,v,!0,!1,M):oe(p,g,y,k,v,A,S,$,M)},Pn=(h,p,g,y,k,v,A,S,$)=>{let _=0;const U=p.length;let M=h.length-1,H=U-1;for(;_<=M&&_<=H;){const V=h[_],Z=p[_]=$?gt(p[_]):Ze(p[_]);if(xn(V,Z))b(V,Z,g,null,k,v,A,S,$);else break;_++}for(;_<=M&&_<=H;){const V=h[M],Z=p[H]=$?gt(p[H]):Ze(p[H]);if(xn(V,Z))b(V,Z,g,null,k,v,A,S,$);else break;M--,H--}if(_>M){if(_<=H){const V=H+1,Z=VH)for(;_<=M;)Ue(h[_],k,v,!0),_++;else{const V=_,Z=_,re=new Map;for(_=Z;_<=H;_++){const Ee=p[_]=$?gt(p[_]):Ze(p[_]);Ee.key!=null&&re.set(Ee.key,_)}let ce,Pe=0;const _e=H-Z+1;let Oe=!1,en=0;const tn=new Array(_e);for(_=0;_<_e;_++)tn[_]=0;for(_=V;_<=M;_++){const Ee=h[_];if(Pe>=_e){Ue(Ee,k,v,!0);continue}let We;if(Ee.key!=null)We=re.get(Ee.key);else for(ce=Z;ce<=H;ce++)if(tn[ce-Z]===0&&xn(Ee,p[ce])){We=ce;break}We===void 0?Ue(Ee,k,v,!0):(tn[We-Z]=_+1,We>=en?en=We:Oe=!0,b(Ee,p[We],g,null,k,v,A,S,$),Pe++)}const As=Oe?mc(tn):Ft;for(ce=As.length-1,_=_e-1;_>=0;_--){const Ee=Z+_,We=p[Ee],Es=Ee+1{const{el:v,type:A,transition:S,children:$,shapeFlag:_}=h;if(_&6){Ot(h.component.subTree,p,g,y);return}if(_&128){h.suspense.move(p,g,y);return}if(_&64){A.move(h,p,g,R);return}if(A===fe){r(v,p,g);for(let M=0;M<$.length;M++)Ot($[M],p,g,y);r(h.anchor,p,g);return}if(A===is){N(h,p,g);return}if(y!==2&&_&1&&S)if(y===0)S.beforeEnter(v),r(v,p,g),Ie(()=>S.enter(v),k);else{const{leave:M,delayLeave:H,afterLeave:V}=S,Z=()=>r(v,p,g),re=()=>{M(v,()=>{Z(),V&&V()})};H?H(v,Z,re):re()}else r(v,p,g)},Ue=(h,p,g,y=!1,k=!1)=>{const{type:v,props:A,ref:S,children:$,dynamicChildren:_,shapeFlag:U,patchFlag:M,dirs:H,cacheIndex:V}=h;if(M===-2&&(k=!1),S!=null&&rr(S,null,g,h,!0),V!=null&&(p.renderCache[V]=void 0),U&256){p.ctx.deactivate(h);return}const Z=U&1&&H,re=!vn(h);let ce;if(re&&(ce=A&&A.onVnodeBeforeUnmount)&&Je(ce,p,h),U&6)jn(h.component,g,y);else{if(U&128){h.suspense.unmount(g,y);return}Z&&Et(h,null,p,"beforeUnmount"),U&64?h.type.remove(h,p,g,R,y):_&&!_.hasOnce&&(v!==fe||M>0&&M&64)?vt(_,p,g,!1,!0):(v===fe&&M&384||!k&&U&16)&&vt($,p,g),y&&On(h)}(re&&(ce=A&&A.onVnodeUnmounted)||Z)&&Ie(()=>{ce&&Je(ce,p,h),Z&&Et(h,null,p,"unmounted")},g)},On=h=>{const{type:p,el:g,anchor:y,transition:k}=h;if(p===fe){$r(g,y);return}if(p===is){I(h);return}const v=()=>{s(g),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(h.shapeFlag&1&&k&&!k.persisted){const{leave:A,delayLeave:S}=k,$=()=>A(g,v);S?S(h.el,v,$):$()}else v()},$r=(h,p)=>{let g;for(;h!==p;)g=d(h),s(h),h=g;s(p)},jn=(h,p,g)=>{const{bum:y,scope:k,job:v,subTree:A,um:S,m:$,a:_}=h;Qi($),Qi(_),y&&Vn(y),k.stop(),v&&(v.flags|=8,Ue(A,h,p,g)),S&&Ie(S,p),Ie(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},vt=(h,p,g,y=!1,k=!1,v=0)=>{for(let A=v;A{if(h.shapeFlag&6)return bt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),g=p&&p[qa];return g?d(g):p};let jt=!1;const z=(h,p,g)=>{h==null?p._vnode&&Ue(p._vnode,null,null,!0):b(p._vnode||null,h,p,null,null,null,g),p._vnode=h,jt||(jt=!0,Oi(),ji(),jt=!1)},R={p:b,um:Ue,m:Ot,r:On,mt:de,mc:oe,pc:ut,pbc:Me,n:bt,o:e};return{render:z,hydrate:void 0,createApp:sc(z)}}function ss({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ji(e,t,n=!1){const r=e.children,s=t.children;if(q(r)&&q(s))for(let i=0;i>1,e[n[o]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function Yi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yi(t)}function Qi(e){if(e)for(let t=0;tsr(vc);function Xi(e,t){return el(e,null,t)}function dt(e,t,n){return el(e,t,n)}function el(e,t,n=ie){const{immediate:r,flush:s}=n,i=je({},n),l=t&&r||!t&&s!=="post";let o;if(_n){if(s==="sync"){const f=bc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=wt,f.resume=wt,f.pause=wt,f}}const a=$e;i.call=(f,d,m)=>rt(f,a,d,m);let c=!1;s==="post"?i.scheduler=f=>{Ie(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,d)=>{d?f():Jr(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=Ua(e,t,i);return _n&&(o?o.push(u):l&&u()),u}const yc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${kt(t)}Modifiers`];function wc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ie;let s=n;const i=t.startsWith("update:"),l=i&&yc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>ye(u)?u.trim():u)),l.number&&(s=n.map(Wn)));let o,a=r[o=Pr(t)]||r[o=Pr(ze(t))];!a&&i&&(a=r[o=Pr(kt(t))]),a&&rt(a,e,6,s);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,rt(c,e,6,s)}}function kc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={};return i?(q(i)?i.forEach(o=>l[o]=null):je(l,i),he(e)&&r.set(e,l),l):(he(e)&&r.set(e,null),null)}function ir(e,t){return!e||!Un(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,kt(t))||X(e,t))}function tl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:d,setupState:m,ctx:x,inheritAttrs:b}=e,T=tr(e);let w,C;try{if(n.shapeFlag&4){const I=s||r,O=I;w=Ze(c.call(O,I,u,f,m,d,x)),C=o}else{const I=t;w=Ze(I.length>1?I(f,{attrs:o,slots:l,emit:a}):I(f,null)),C=t.props?o:xc(o)}}catch(I){wn.length=0,Xn(I,e,1),w=le(It)}let N=w;if(C&&b!==!1){const I=Object.keys(C),{shapeFlag:O}=N;I.length&&O&7&&(i&&I.some(Lr)&&(C=_c(C,i)),N=Zt(N,C,!1,!0))}return n.dirs&&(N=Zt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&Yr(N,n.transition),w=N,tr(T),w}const xc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Un(n))&&((t||(t={}))[n]=e[n]);return t},_c=(e,t)=>{const n={};for(const r in e)(!Lr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Cc(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?nl(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function $c(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Va(e)}const fe=Symbol.for("v-fgt"),lr=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),is=Symbol.for("v-stc"),wn=[];let Le=null;function L(e=!1){wn.push(Le=e?null:[])}function Rc(){wn.pop(),Le=wn[wn.length-1]||null}let kn=1;function sl(e,t=!1){kn+=e,e<0&&Le&&t&&(Le.hasOnce=!0)}function il(e){return e.dynamicChildren=kn>0?Le||Ft:null,Rc(),kn>0&&Le&&Le.push(e),e}function P(e,t,n,r,s,i){return il(D(e,t,n,r,s,i,!0))}function st(e,t,n,r,s){return il(le(e,t,n,r,s,!0))}function or(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const ll=({key:e})=>e??null,ar=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||ve(e)||ee(e)?{i:Ae,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,s=null,i=e===fe?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ll(t),ref:t&&ar(t),scopeId:Di,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ae};return o?(ls(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),kn>0&&!l&&Le&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Le.push(a),a}const le=Ac;function Ac(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===ec)&&(e=It),or(e)){const o=Zt(e,t,!0);return n&&ls(o,n),kn>0&&!i&&Le&&(o.shapeFlag&6?Le[Le.indexOf(e)]=o:Le.push(o)),o.patchFlag=-2,o}if(Fc(e)&&(e=e.__vccOpts),t){t=Ec(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=me(o)),he(a)&&(Gr(a)&&!q(a)&&(a=je({},a)),t.style=on(a))}const l=ye(e)?1:rl(e)?128:Ka(e)?64:he(e)?4:ee(e)?2:0;return D(e,t,n,r,s,l,i,!0)}function Ec(e){return e?Gr(e)||Bi(e)?je({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?Tc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ll(c),ref:t&&t.ref?n&&i?q(i)?i.concat(ar(t)):[i,ar(t)]:ar(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==fe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Yr(u,a.clone(u)),u}function it(e=" ",t=0){return le(lr,null,e,t)}function J(e="",t=!1){return t?(L(),st(It,null,e)):le(It,null,e)}function Ze(e){return e==null||typeof e=="boolean"?le(It):q(e)?le(fe,null,e.slice()):or(e)?gt(e):le(lr,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function ls(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),ls(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Bi(t)?t._ctx=Ae:s===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Ae},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tc(...e){const t={};for(let n=0;n$e||Ae;let cr,os;{const e=ln(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(l=>l(i)):s[0](i)}};cr=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),os=t("__VUE_SSR_SETTERS__",n=>_n=n)}const as=e=>{const t=$e;return cr(e),e.scope.on(),()=>{e.scope.off(),cr(t)}},al=()=>{$e&&$e.scope.off(),cr(null)};function cl(e){return e.vnode.shapeFlag&4}let _n=!1;function Pc(e,t=!1,n=!1){t&&os(t);const{props:r,children:s}=e.vnode,i=cl(e);lc(e,r,i,t),uc(e,s,n);const l=i?Oc(e,t):void 0;return t&&os(!1),l}function Oc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nc);const{setup:r}=n;if(r){_t();const s=e.setupContext=r.length>1?zc(e):null,i=as(e),l=dn(r,e,0,[e.props,s]),o=li(l);if(Ct(),i(),(o||e.sp)&&!vn(e)&&Ga(e),o){if(l.then(al,al),t)return l.then(a=>{ul(e,a,t)}).catch(a=>{Xn(a,e,0)});e.asyncDep=l}else ul(e,l,t)}else hl(e,t)}function ul(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Li(t)),hl(e,n)}let fl;function hl(e,t,n){const r=e.type;if(!e.render){if(!t&&fl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=je(je({isCustomElement:i,delimiters:o},l),a);r.render=fl(s,c)}}e.render=r.render||wt}}const jc={get(e,t){return ke(e,"get",""),e[t]}};function zc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,jc),slots:e.slots,emit:e.emit,expose:t}}function ur(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Li(Ea(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yn)return yn[n](e)},has(t,n){return n in t||n in yn}})):e.proxy}function Dc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Fc(e){return ee(e)&&"__vccOpts"in e}const ge=(e,t)=>Fa(e,t,_n);function te(e,t,n){const r=arguments.length;return r===2?he(t)&&!q(t)?or(t)?le(e,null,[t]):le(e,t):le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&or(n)&&(n=[n]),le(e,t,n))}const Hc="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let cs;const pl=typeof window<"u"&&window.trustedTypes;if(pl)try{cs=pl.createPolicy("vue",{createHTML:e=>e})}catch{}const dl=cs?e=>cs.createHTML(e):e=>e,Uc="http://www.w3.org/2000/svg",Nc="http://www.w3.org/1998/Math/MathML",lt=typeof document<"u"?document:null,gl=lt&<.createElement("template"),Bc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?lt.createElementNS(Uc,e):t==="mathml"?lt.createElementNS(Nc,e):n?lt.createElement(e,{is:n}):lt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>lt.createTextNode(e),createComment:e=>lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{gl.innerHTML=dl(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const o=gl.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vc=Symbol("_vtc");function Wc(e,t,n){const r=e[Vc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const fr=Symbol("_vod"),ml=Symbol("_vsh"),vl={beforeMount(e,{value:t},{transition:n}){e[fr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Cn(e,!0),r.enter(e)):r.leave(e,()=>{Cn(e,!1)}):Cn(e,t))},beforeUnmount(e,{value:t}){Cn(e,t)}};function Cn(e,t){e.style.display=t?e[fr]:"none",e[ml]=!t}const qc=Symbol(""),Kc=/(^|;)\s*display\s*:/;function Gc(e,t,n){const r=e.style,s=ye(n);let i=!1;if(n&&!s){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&hr(r,o,"")}else for(const l in t)n[l]==null&&hr(r,l,"");for(const l in n)l==="display"&&(i=!0),hr(r,l,n[l])}else if(s){if(t!==n){const l=r[qc];l&&(n+=";"+l),r.cssText=n,i=Kc.test(n)}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=i?r.display:"",e[ml]&&(r.display="none"))}const bl=/\s*!important$/;function hr(e,t,n){if(q(n))n.forEach(r=>hr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Zc(e,t);bl.test(n)?e.setProperty(kt(r),n.replace(bl,""),"important"):e[r]=n}}const yl=["Webkit","Moz","ms"],us={};function Zc(e,t){const n=us[t];if(n)return n;let r=ze(t);if(r!=="filter"&&r in e)return us[t]=r;r=Bn(r);for(let s=0;sfs||(Xc.then(()=>fs=0),fs=Date.now());function tu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;rt(nu(r,n.value),t,5,[r])};return n.value=e,n.attached=eu(),n}function nu(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ru=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?Wc(e,r,l):t==="style"?Gc(e,n,r):Un(t)?Lr(t)||Yc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):su(e,t,r,l))?(xl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&kl(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?xl(e,ze(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),kl(e,t,r,l))};function su(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sl(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Sl(t)&&ye(n)?!1:t in e}const mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Vn(t,n):t};function iu(e){e.target.composing=!0}function $l(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const He=Symbol("_assign"),hs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[He]=mt(s);const i=r||s.props&&s.props.type==="number";ot(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=Wn(o)),e[He](o)}),n&&ot(e,"change",()=>{e.value=e.value.trim()}),t||(ot(e,"compositionstart",iu),ot(e,"compositionend",$l),ot(e,"change",$l))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[He]=mt(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Wn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},lu={deep:!0,created(e,t,n){e[He]=mt(n),ot(e,"change",()=>{const r=e._modelValue,s=Jt(e),i=e.checked,l=e[He];if(q(r)){const o=Or(r,s),a=o!==-1;if(i&&!a)l(r.concat(s));else if(!i&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Ut(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(El(e,i))})},mounted:Rl,beforeUpdate(e,t,n){e[He]=mt(n),Rl(e,t,n)}};function Rl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(q(t))s=Or(t,r.props.value)>-1;else if(Ut(t))s=t.has(r.props.value);else{if(t===n)return;s=xt(t,El(e,!0))}e.checked!==s&&(e.checked=s)}const ou={created(e,{value:t},n){e.checked=xt(t,n.props.value),e[He]=mt(n),ot(e,"change",()=>{e[He](Jt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[He]=mt(r),t!==n&&(e.checked=xt(t,r.props.value))}},au={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ut(t);ot(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Wn(Jt(l)):Jt(l));e[He](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[He]=mt(r)},mounted(e,{value:t}){Al(e,t)},beforeUpdate(e,t,n){e[He]=mt(n)},updated(e,{value:t}){e._assigning||Al(e,t)}};function Al(e,t){const n=e.multiple,r=q(t);if(!(n&&!r&&!Ut(t))){for(let s=0,i=e.options.length;sString(c)===String(o)):l.selected=Or(t,o)>-1}else l.selected=t.has(o);else if(xt(Jt(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jt(e){return"_value"in e?e._value:e.value}function El(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cu={created(e,t,n){pr(e,t,n,null,"created")},mounted(e,t,n){pr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){pr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){pr(e,t,n,r,"updated")}};function uu(e,t){switch(e){case"SELECT":return au;case"TEXTAREA":return hs;default:switch(t){case"checkbox":return lu;case"radio":return ou;default:return hs}}}function pr(e,t,n,r,s){const l=uu(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const fu=je({patchProp:ru},Bc);let Tl;function hu(){return Tl||(Tl=pc(fu))}const pu=(...e)=>{const t=hu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=gu(r);if(!s)return;const i=t._component;!ee(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,du(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function du(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gu(e){return ye(e)?document.querySelector(e):e}function Sn(e){return di()?(aa(e),!0):!1}const dr=typeof window<"u"&&typeof document<"u",mu=e=>typeof e<"u",vu=Object.prototype.toString,bu=e=>vu.call(e)==="[object Object]",gr=()=>{};function yu(...e){if(e.length!==1)return ja(...e);const t=e[0];return typeof t=="function"?Bt(Ma(()=>({get:t,set:gr}))):se(t)}function Il(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Ll=e=>e();function wu(e,t={}){let n,r,s=gr;const i=a=>{clearTimeout(a),s(),s=gr};let l;return a=>{const c=Te(e),u=Te(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((f,d)=>{s=t.rejectOnCancel?d:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,f(l())},u)),n=setTimeout(()=>{r&&i(r),r=null,f(a())},c)})}}function ku(e=Ll,t={}){const{initialState:n="active"}=t,r=yu(n==="active");function s(){r.value=!1}function i(){r.value=!0}const l=(...o)=>{r.value&&e(...o)};return{isActive:Bt(r),pause:s,resume:i,eventFilter:l}}function ps(e){return Array.isArray(e)?e:[e]}function Ml(e){return ol()}function xu(e,t=200,n={}){return Il(wu(t,n),e)}function _u(e,t,n={}){const{eventFilter:r=Ll,...s}=n;return dt(e,Il(r,t),s)}function Cu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=ku(r,{initialState:s});return{stop:_u(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function ds(e,t=!0,n){Ml()?bn(e,n):t?e():Kt(e)}function Su(e,t){Ml()&&Xr(e,t)}function $u(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=Rt(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Te(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}if(r&&dr&&c(),ve(t)||typeof t=="function"){const u=dt(t,()=>{l.value&&dr&&c()});Sn(u)}return Sn(a),{isActive:l,pause:a,resume:c}}function Yt(e,t,n){return dt(e,t,{...n,immediate:!0})}const mr=dr?window:void 0,Pl=dr?window.document:void 0;function Ru(e){var t;const n=Te(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Lt(...e){const t=[],n=()=>{t.forEach(o=>o()),t.length=0},r=(o,a,c,u)=>(o.addEventListener(a,c,u),()=>o.removeEventListener(a,c,u)),s=ge(()=>{const o=ps(Te(e[0])).filter(a=>a!=null);return o.every(a=>typeof a!="string")?o:void 0}),i=Yt(()=>{var o,a;return[(a=(o=s.value)==null?void 0:o.map(c=>Ru(c)))!=null?a:[mr].filter(c=>c!=null),ps(Te(s.value?e[1]:e[0])),ps(K(s.value?e[2]:e[1])),Te(s.value?e[3]:e[2])]},([o,a,c,u])=>{if(n(),!(o!=null&&o.length)||!(a!=null&&a.length)||!(c!=null&&c.length))return;const f=bu(u)?{...u}:u;t.push(...o.flatMap(d=>a.flatMap(m=>c.map(x=>r(d,m,x,f)))))},{flush:"post"}),l=()=>{i(),n()};return Sn(n),l}function Au(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=mr,once:i=!1}=t,l=Rt(!1),o=ge(()=>r?1e3/Te(r):null);let a=0,c=null;function u(m){if(!l.value||!s)return;a||(a=m);const x=m-a;if(o.value&&xe==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ol="vueuse-storage";function Qt(e,t,n,r={}){var s;const{flush:i="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=mr,eventFilter:d,onError:m=E=>{console.error(E)},initOnMounted:x}=r,b=(u?Rt:se)(typeof t=="function"?t():t),T=ge(()=>Te(e));if(!n)try{n=Iu("getDefaultStorage",()=>{var E;return(E=mr)==null?void 0:E.localStorage})()}catch(E){m(E)}if(!n)return b;const w=Te(t),C=Lu(w),N=(s=r.serializer)!=null?s:Mu[C],{pause:I,resume:O}=Cu(b,()=>j(b.value),{flush:i,deep:l,eventFilter:d});dt(T,()=>ae(),{flush:i}),f&&o&&ds(()=>{n instanceof Storage?Lt(f,"storage",ae,{passive:!0}):Lt(f,Ol,Me),x&&ae()}),x||ae();function G(E,B){if(f){const F={key:T.value,oldValue:E,newValue:B,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(Ol,{detail:F}))}}function j(E){try{const B=n.getItem(T.value);if(E==null)G(B,null),n.removeItem(T.value);else{const F=N.write(E);B!==F&&(n.setItem(T.value,F),G(B,F))}}catch(B){m(B)}}function oe(E){const B=E?E.newValue:n.getItem(T.value);if(B==null)return a&&w!=null&&n.setItem(T.value,N.write(w)),w;if(!E&&c){const F=N.read(B);return typeof c=="function"?c(F,w):C==="object"&&!Array.isArray(F)?{...w,...F}:F}else return typeof B!="string"?B:N.read(B)}function ae(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){b.value=w;return}if(!(E&&E.key!==T.value)){I();try{(E==null?void 0:E.newValue)!==N.write(b.value)&&(b.value=oe(E))}catch(B){m(B)}finally{E?Kt(O):O()}}}}function Me(E){ae(E.detail)}return b}function Pu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=se(new Date),s=()=>r.value=new Date,i=n==="requestAnimationFrame"?Au(s,{immediate:!0}):$u(s,n,{immediate:!0});return t?{now:r,...i}:r}function Ou(e,t=gr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=Pl,attrs:d={}}=n,m=Rt(null);let x=null;const b=C=>new Promise((N,I)=>{const O=ae=>(m.value=ae,N(ae),ae);if(!f){N(!1);return}let G=!1,j=f.querySelector(`script[src="${Te(e)}"]`);j?j.hasAttribute("data-loaded")&&O(j):(j=f.createElement("script"),j.type=i,j.async=l,j.src=Te(e),u&&(j.defer=u),o&&(j.crossOrigin=o),c&&(j.noModule=c),a&&(j.referrerPolicy=a),Object.entries(d).forEach(([ae,Me])=>j==null?void 0:j.setAttribute(ae,Me)),G=!0);const oe={passive:!0};Lt(j,"error",ae=>I(ae),oe),Lt(j,"abort",ae=>I(ae),oe),Lt(j,"load",()=>{j.setAttribute("data-loaded","true"),t(j),O(j)},oe),G&&(j=f.head.appendChild(j)),C||O(j)}),T=(C=!0)=>(x||(x=b(C)),x),w=()=>{if(!f)return;x=null,m.value&&(m.value=null);const C=f.querySelector(`script[src="${Te(e)}"]`);C&&f.head.removeChild(C)};return r&&!s&&ds(T),s||Su(w),{scriptTag:m,load:T,unload:w}}let ju=0;function zu(e,t={}){const n=Rt(!1),{document:r=Pl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++ju}`}=t,o=Rt(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=dt(o,d=>{f.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&ds(c),i||Sn(u),{id:l,css:o,unload:u,load:c,isLoaded:Bt(n)}}const Du="WALINE_EMOJI",jl=Qt(Du,{}),Fu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Hu=e=>{const t=Fu(e);if(t){const n=jl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(jl.value[e]=r),r})},zl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Uu=e=>Promise.all(e?e.map(t=>Dt(t)?Hu(ni(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:s,icon:zl(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=zl(u,i,o,a),f})})}),n}),Dl=e=>{e.name!=="AbortError"&&console.error(e.message)},gs=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,Nu=e=>e.type.includes("image"),Fl=e=>{const t=Array.from(e).find(Nu);return t?t.getAsFile():null};function ms(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Mt=ms();function Hl(e){Mt=e}const $n={exec:()=>null};function ne(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Re.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}const Re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Bu=/^(?:[ \t]*(?:\n|$))+/,Vu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Wu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Rn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vs=/(?:[*+-]|\d{1,9}[.)])/,Ul=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Nl=ne(Ul).replace(/bull/g,vs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ku=ne(Ul).replace(/bull/g,vs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gu=/^[^\n]+/,ys=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Zu=ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ys).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ju=ne(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,vs).getRegex(),yr="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ws=/|$))/,Yu=ne("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ws).replace("tag",yr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bl=ne(bs).replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",yr).getRegex(),Qu=ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Bl).getRegex(),ks={blockquote:Qu,code:Vu,def:Zu,fences:Wu,heading:qu,hr:Rn,html:Yu,lheading:Nl,list:Ju,newline:Bu,paragraph:Bl,table:$n,text:Gu},Vl=ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",yr).getRegex(),Xu={...ks,lheading:Ku,table:Vl,paragraph:ne(bs).replace("hr",Rn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",yr).getRegex()},ef={...ks,html:ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ws).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:$n,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ne(bs).replace("hr",Rn).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Nl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},tf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Wl=/^( {2,}|\\)\n(?!\s*$)/,rf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Gl=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,cf=ne(Gl,"u").replace(/punct/g,wr).getRegex(),uf=ne(Gl,"u").replace(/punct/g,Kl).getRegex(),Zl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ff=ne(Zl,"gu").replace(/notPunctSpace/g,ql).replace(/punctSpace/g,xs).replace(/punct/g,wr).getRegex(),hf=ne(Zl,"gu").replace(/notPunctSpace/g,of).replace(/punctSpace/g,lf).replace(/punct/g,Kl).getRegex(),pf=ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ql).replace(/punctSpace/g,xs).replace(/punct/g,wr).getRegex(),df=ne(/\\(punct)/,"gu").replace(/punct/g,wr).getRegex(),gf=ne(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),mf=ne(ws).replace("(?:-->|$)","-->").getRegex(),vf=ne("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",mf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,bf=ne(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",kr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Jl=ne(/^!?\[(label)\]\[(ref)\]/).replace("label",kr).replace("ref",ys).getRegex(),Yl=ne(/^!?\[(ref)\](?:\[\])?/).replace("ref",ys).getRegex(),yf=ne("reflink|nolink(?!\\()","g").replace("reflink",Jl).replace("nolink",Yl).getRegex(),_s={_backpedal:$n,anyPunctuation:df,autolink:gf,blockSkip:af,br:Wl,code:nf,del:$n,emStrongLDelim:cf,emStrongRDelimAst:ff,emStrongRDelimUnd:pf,escape:tf,link:bf,nolink:Yl,punctuation:sf,reflink:Jl,reflinkSearch:yf,tag:vf,text:rf,url:$n},wf={..._s,link:ne(/^!?\[(label)\]\((.*?)\)/).replace("label",kr).getRegex(),reflink:ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kr).getRegex()},Cs={..._s,emStrongRDelimAst:hf,emStrongLDelim:uf,url:ne(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Ql=e=>xf[e];function Ye(e,t){if(t){if(Re.escapeTest.test(e))return e.replace(Re.escapeReplace,Ql)}else if(Re.escapeTestNoEncode.test(e))return e.replace(Re.escapeReplaceNoEncode,Ql);return e}function Xl(e){try{e=encodeURI(e).replace(Re.percentDecode,"%")}catch{return null}return e}function eo(e,t){var i;const n=e.replace(Re.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Re.splitPipe);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length{const l=i.match(n.other.beginningSpace);if(l===null)return i;const[o]=l;return o.length>=s.length?i.slice(s.length):i}).join(` +`)}class _r{options;rules;lexer;constructor(t){this.options=t||Mt}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:En(r,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=Cf(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const s=En(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:En(n[0],` +`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=En(n[0],` +`).split(` +`),s="",i="";const l=[];for(;r.length>0;){let o=!1;const a=[];let c;for(c=0;c1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let o=!1;for(;t;){let c=!1,u="",f="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let d=n[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),m=t.split(` +`,1)[0],x=!d.trim(),b=0;if(this.options.pedantic?(b=2,f=d.trimStart()):x?b=n[1].length+1:(b=n[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,f=d.slice(b),b+=n[1].length),x&&this.rules.other.blankLine.test(m)&&(u+=m+` +`,t=t.substring(m.length+1),c=!0),!c){const C=this.rules.other.nextBulletRegex(b),N=this.rules.other.hrRegex(b),I=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),G=this.rules.other.htmlBeginRegex(b);for(;t;){const j=t.split(` +`,1)[0];let oe;if(m=j,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),oe=m):oe=m.replace(this.rules.other.tabCharGlobal," "),I.test(m)||O.test(m)||G.test(m)||C.test(m)||N.test(m))break;if(oe.search(this.rules.other.nonSpaceChar)>=b||!m.trim())f+=` +`+oe.slice(b);else{if(x||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(d)||O.test(d)||N.test(d))break;f+=` +`+m}!x&&!m.trim()&&(x=!0),u+=j+` +`,t=t.substring(j.length+1),d=oe.slice(b)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let T=null,w;this.options.gfm&&(T=this.rules.other.listIsTask.exec(f),T&&(w=T[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:u,task:!!T,checked:w,loose:!1,text:f,tokens:[]}),i.raw+=u}const a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let c=0;cd.type==="space"),f=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=f}if(i.loose)for(let c=0;c({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===` +`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=En(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=_f(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),to(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return to(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...s[0]].length-1;let o,a,c=l,u=0;const f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+l);(s=f.exec(n))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(a=[...o].length,s[3]||s[4]){c+=a;continue}else if((s[5]||s[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const d=[...s[0]][0].length,m=t.slice(0,l+s.index+d+a);if(Math.min(l,a)%2){const b=m.slice(1,-1);return{type:"em",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}const x=m.slice(2,-2);return{type:"strong",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=n[0],i="mailto:"+s;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);s=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Be{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new _r,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Re,block:xr.normal,inline:An.normal};this.options.pedantic?(n.block=xr.pedantic,n.inline=An.pedantic):this.options.gfm&&(n.block=xr.gfm,this.options.breaks?n.inline=An.breaks:n.inline=An.gfm),this.tokenizer.rules=n}static get rules(){return{block:xr,inline:An}}static lex(t,n){return new Be(n).lex(t)}static lexInline(t,n){return new Be(n).inlineTokens(t)}lex(t){t=t.replace(Re.carriageReturn,` +`),this.blockTokens(t,this.tokens);for(let n=0;n(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=` +`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=` +`+o.raw,c.text+=` +`+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=` +`+o.raw,c.text+=` +`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0;const u=t.slice(1);let f;this.options.extensions.startBlock.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=` +`+o.raw,c.text+=` +`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=` +`+o.raw,c.text+=` +`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,s=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,l="";for(;t;){i||(l=""),i=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const m=t.slice(1);let x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},m),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),d<1/0&&d>=0&&(f=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(f)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),i=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class Cr{options;parser;constructor(t){this.options=t||Mt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const s=(l=(n||"").match(Re.notSpaceStart))==null?void 0:l[0],i=t.replace(Re.endingNewline,"")+` +`;return s?'
    '+(r?i:Ye(i,!0))+`
    +`:"
    "+(r?i:Ye(i,!0))+`
    +`}blockquote({tokens:t}){return`
    +${this.parser.parse(t)}
    +`}html({text:t}){return t}heading({tokens:t,depth:n}){return`${this.parser.parseInline(t)} +`}hr(t){return`
    +`}list(t){const n=t.ordered,r=t.start;let s="";for(let o=0;o +`+s+" +`}listitem(t){var r;let n="";if(t.task){const s=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+Ye(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):n+=s+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`
  • ${n}
  • +`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    +`}table(t){let n="",r="";for(let i=0;i${s}`),` + +`+n+` +`+s+`
    +`}tablerow({text:t}){return` +${t} +`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+` +`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${Ye(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),i=Xl(t);if(i===null)return s;t=i;let l='
    ",l}image({href:t,title:n,text:r}){const s=Xl(t);if(s===null)return Ye(r);t=s;let i=`${r}{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const l=n.renderers[i.name];l?n.renderers[i.name]=function(...o){let a=i.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[i.level];l?l.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),s.extensions=n),r.renderer){const i=this.defaults.renderer||new Cr(this.defaults);for(const l in r.renderer){if(!(l in i))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=i[o];i[o]=(...u)=>{let f=a.apply(i,u);return f===!1&&(f=c.apply(i,u)),f||""}}s.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new _r(this.defaults);for(const l in r.tokenizer){if(!(l in i))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=i[o];i[o]=(...u)=>{let f=a.apply(i,u);return f===!1&&(f=c.apply(i,u)),f}}s.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Tn;for(const l in r.hooks){if(!(l in i))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=i[o];Tn.passThroughHooks.has(l)?i[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(i,u)).then(d=>c.call(i,d));const f=a.call(i,u);return c.call(i,f)}:i[o]=(...u)=>{let f=a.apply(i,u);return f===!1&&(f=c.apply(i,u)),f}}s.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,l=r.walkTokens;s.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),i&&(a=a.concat(i.call(this,o))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Be.lex(t,n??this.defaults)}parser(t,n){return Ve.parse(t,n??this.defaults)}parseMarkdown(t){return(r,s)=>{const i={...s},l={...this.defaults,...i},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&i.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Be.lex:Be.lexInline,c=l.hooks?l.hooks.provideParser():t?Ve.parse:Ve.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>c(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let u=a(r,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let f=c(u,l);return l.hooks&&(f=l.hooks.postprocess(f)),f}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const s="

    An error occurred:

    "+Ye(r.message+"",!0)+"
    ";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const Pt=new no;function pe(e,t){return Pt.parse(e,t)}pe.options=pe.setOptions=function(e){return Pt.setOptions(e),pe.defaults=Pt.defaults,Hl(pe.defaults),pe},pe.getDefaults=ms,pe.defaults=Mt,pe.use=function(...e){return Pt.use(...e),pe.defaults=Pt.defaults,Hl(pe.defaults),pe},pe.walkTokens=function(e,t){return Pt.walkTokens(e,t)},pe.parseInline=Pt.parseInline,pe.Parser=Ve,pe.parser=Ve.parse,pe.Renderer=Cr,pe.TextRenderer=Ss,pe.Lexer=Be,pe.lexer=Be.lex,pe.Tokenizer=_r,pe.Hooks=Tn,pe.parse=pe;function Sf(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=ro(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(so(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");so(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=ro(n),i=s?e.langPrefix+ao(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`
    ${r?t:ao(t,!0)}
    +
    `}}}}function ro(e){return(e||"").match(/\S*/)[0]}function so(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const io=/[&<>"']/,$f=new RegExp(io.source,"g"),lo=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Rf=new RegExp(lo.source,"g"),Af={"&":"&","<":"<",">":">",'"':""","'":"'"},oo=e=>Af[e];function ao(e,t){if(t){if(io.test(e))return e.replace($f,oo)}else if(lo.test(e))return e.replace(Rf,oo);return e}const Ef=/\$.*?\$/,Tf=/^\$(.*?)\$/,If=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Lf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=If.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(Ef);return n!==-1?n:t.length},tokenizer(t){const n=Tf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],co=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`${r}`:n),Mf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new no;if(s.setOptions({breaks:!0}),n&&s.use(Sf({highlight:n})),r){const i=Lf(r);s.use({extensions:i})}return s.parse(co(e,t))},$s=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Pf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Of=e=>e.match(/[\u4E00-\u9FD5]/gu),jf=e=>{var t,n;return(((t=Pf(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=Of(e))==null?void 0:n.length)??0)},zf=async()=>{const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},uo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length&&Os({serverURL:Hn(e),paths:Array.from(i).map(l=>ti($s(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Dl),s.abort.bind(s)},fo=({size:e})=>te("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[te("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),te("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Df=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Ff=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Hf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),te("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),Uf=({active:e=!1})=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Nf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),te("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Bf=()=>te("svg",{width:"16",height:"16",ariaHidden:"true"},te("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Vf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Wf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),qf=()=>te("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},te("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),In=({size:e=100})=>te("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},te("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},te("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Kf=()=>te("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[te("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),te("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Gf=()=>Qt("WALINE_USER_META",{nick:"",mail:"",link:""}),Zf=()=>Qt("WALINE_COMMENT_BOX_EDITOR",""),Jf="WALINE_LIKE",Yf=Qt(Jf,[]),ho=()=>Yf,Qf="WALINE_REACTION",Xf=Qt(Qf,{}),eh=()=>Xf;var Rs={},at={},ct={},po;function go(){if(po)return ct;po=1;var e=ct&&ct.__awaiter||function(r,s,i,l){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(m){try{d(l.next(m))}catch(x){c(x)}}function f(m){try{d(l.throw(m))}catch(x){c(x)}}function d(m){m.done?a(m.value):o(m.value).then(u,f)}d((l=l.apply(r,s||[])).next())})},t=ct&&ct.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(m){return f([d,m])}}function f(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(i=0)),i;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return i.label++,{value:d[1],done:!1};case 5:i.label++,o=d[1],d=[0];continue;case 7:d=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){s.successfulLoadingConsumers.push(function(u){return a(u)}),s.errorLoadingRunnable.push(function(u){return c(u)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var o=new s;return new Promise(function(a,c){o.loadScript(i,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,i,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),f=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(d){return d(f)}),s.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),s.instance=f,a(f)}).catch(function(u){s.errorLoadingRunnable.forEach(function(f){return f(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=d+"?render=explicit"+m,new Promise(function(x,b){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(T){s.setLoadingState(n.NOT_LOADED),b(T)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var l=Object.keys(i);return l.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},s.prototype.waitForScriptToLoad=function(i,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,l)},s.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,l,o,a){var c=e({sitekey:l},o);return o.container?a?i.enterprise.render(o.container,c):i.render(o.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s}();return at.load=r.load,at.getInstance=r.getInstance,at}var vo;function nh(){return vo||(vo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=th();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=go();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Rs)),Rs}var rh=nh();const bo={},sh=e=>{const t=bo[e]??(bo[e]=rh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},ih=e=>({execute:async t=>{const{load:n}=Ou("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),lh="WALINE_USER",oh=Qt(lh,{}),Sr=()=>oh,ah={key:0,class:"wl-reaction"},ch=["textContent"],uh={class:"wl-reaction-list"},fh=["onClick"],hh={class:"wl-reaction-img"},ph=["src","alt"],dh=["textContent"],gh=["textContent"];var mh=mn({__name:"ArticleReaction",setup(e){const t=eh(),n=sr(Fn),r=se(-1),s=se([]),i=ge(()=>n.value.locale),l=ge(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=ge(()=>{var f;const{path:d}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:i.value[`reaction${x}`],active:t.value[d]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:d,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[b]=await Rr({serverURL:f,lang:d,paths:[m],type:l.value.map((T,w)=>`reaction${w}`),signal:x.signal});s.value=l.value.map((T,w)=>b[`reaction${w}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:d,lang:m,path:x}=n.value,b=t.value[x];r.value=f,b!==void 0&&(await zn({serverURL:d,lang:m,path:x,type:`reaction${b}`,action:"desc"}),s.value[b]=Math.max(s.value[b]-1,0)),b!==f&&(await zn({serverURL:d,lang:m,path:x,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),b===f?delete t.value[x]:t.value[x]=f,r.value=-1};return bn(()=>{Yt(()=>[n.value.serverURL,n.value.path],()=>c())}),Xr(()=>{a==null||a()}),(f,d)=>o.value?(L(),P("div",ah,[D("div",{class:"wl-reaction-title",textContent:Y(i.value.reactionTitle)},null,8,ch),D("ul",uh,[(L(!0),P(fe,null,Fe(o.value,({active:m,icon:x,desc:b},T)=>(L(),P("li",{key:T,class:me(["wl-reaction-item",{active:m}]),onClick:w=>u(T)},[D("div",hh,[D("img",{src:x,alt:b},null,8,ph),r.value===T?(L(),st(K(In),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:Y(s.value[T]||0)},null,8,dh))]),D("div",{class:"wl-reaction-text",textContent:Y(b)},null,8,gh)],10,fh))),128))])])):J("v-if",!0)}}),Ln=new Map;function vh(e){var t=Ln.get(e);t&&t.destroy()}function bh(e){var t=Ln.get(e);t&&t.update()}var Mn=null;typeof window>"u"?((Mn=function(e){return e}).destroy=function(e){return e},Mn.update=function(e){return e}):((Mn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Ln.has(r)){var s,i=null,l=window.getComputedStyle(r),o=(s=r.value,function(){c({testForHeightReduction:s===""||!r.value.startsWith(s),restoreTextAlign:null}),s=r.value}),a=(function(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(f).forEach(function(d){return r.style[d]=f[d]}),Ln.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",Ln.set(r,{destroy:a,update:u}),u()}function c(f){var d,m,x=f.restoreTextAlign,b=x===void 0?null:x,T=f.testForHeightReduction,w=T===void 0||T,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),w&&(d=function(I){for(var O=[];I&&I.parentNode&&I.parentNode instanceof Element;)I.parentNode.scrollTop&&O.push([I.parentNode,I.parentNode.scrollTop]),I=I.parentNode;return function(){return O.forEach(function(G){var j=G[0],oe=G[1];j.style.scrollBehavior="auto",j.scrollTop=oe,j.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",b&&(r.style.textAlign=b),d&&d(),i!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=m),C!==l.overflow&&!b)){var N=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=N==="start"?"end":"start"),c({restoreTextAlign:N,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],vh),e},Mn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],bh),e});var yo=Mn;const yh=["data-index"],wh=["src","title","onClick"];var kh=mn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=pt("wall"),s=se({}),i=se([]),l=()=>{const f=Math.floor((r.value.getBoundingClientRect().width+t.gap)/(t.columnWidth+t.gap));return f>0?f:1},o=f=>new Array(f).fill(null).map(()=>[]),a=async f=>{var d;if(f>=t.items.length)return;await Kt();const m=Array.from(((d=r.value)==null?void 0:d.children)??[]).reduce((x,b)=>b.getBoundingClientRect().height{if(i.value.length===l()&&!f)return;i.value=o(l());const d=window.scrollY;await a(0),window.scrollTo({top:d})},u=f=>{s.value[f.target.src]=!0};return bn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),dt(()=>[t.items],()=>{s.value={},c(!0)}),dt(()=>[t.columnWidth,t.gap],()=>{c()})}),Ya(()=>{n.unobserve(r.value)}),(f,d)=>(L(),P("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:on({gap:`${f.gap}px`})},[(L(!0),P(fe,null,Fe(i.value,(m,x)=>(L(),P("div",{key:x,class:"wl-gallery-column","data-index":x,style:on({gap:`${f.gap}px`})},[(L(!0),P(fe,null,Fe(m,b=>(L(),P(fe,{key:b},[s.value[f.items[b].src]?J("v-if",!0):(L(),st(K(In),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:f.items[b].src,title:f.items[b].title,loading:"lazy",onLoad:u,onClick:T=>f.$emit("insert",`![](${f.items[b].src})`)},null,40,wh)],64))),128))],12,yh))),128))],4))}});const xh={key:0,class:"wl-login-info"},_h={class:"wl-avatar"},Ch=["title"],Sh=["title"],$h=["src"],Rh=["title","textContent"],Ah={class:"wl-panel"},Eh=["for","textContent"],Th=["id","onUpdate:modelValue","name","type"],Ih=["placeholder"],Lh={class:"wl-preview"},Mh=["innerHTML"],Ph={class:"wl-footer"},Oh={class:"wl-actions"},jh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},zh=["title"],Dh=["title"],Fh=["title","aria-label"],Hh=["title"],Uh={class:"wl-info"},Nh={class:"wl-text-number"},Bh={key:0},Vh=["textContent"],Wh=["textContent"],qh=["disabled"],Kh=["placeholder"],Gh={key:1,class:"wl-loading"},Zh={key:0,class:"wl-tab-wrapper"},Jh=["title","onClick"],Yh=["src","alt"],Qh={key:0,class:"wl-tabs"},Xh=["onClick"],ep=["src","alt","title"],tp=["title"];var wo=mn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=sr(Fn),i=Zf(),l=Gf(),o=Sr(),a=se({}),c=pt("textarea"),u=pt("image-uploader"),f=pt("emoji-button"),d=pt("emoji-popup"),m=pt("gif-button"),x=pt("gif-popup"),b=pt("gif-search"),T=se({tabs:[],map:{}}),w=se(0),C=se(!1),N=se(!1),I=se(!1),O=se(""),G=se(0),j=pn({loading:!0,list:[]}),oe=se(0),ae=se(!1),Me=se(""),E=se(!1),B=se(!1),F=ge(()=>s.value.locale),de=ge(()=>!!o.value.token),we=ge(()=>mu(s.value.imageUploader)),be=z=>{const R=c.value,W=R.selectionStart,h=R.selectionEnd||0,p=R.scrollTop;i.value=R.value.substring(0,W)+z+R.value.substring(h,R.value.length),R.focus(),R.selectionStart=W+z.length,R.selectionEnd=W+z.length,R.scrollTop=p},Qe=({key:z,ctrlKey:R,metaKey:W})=>{E.value||(R||W)&&z==="Enter"&&Ue()},ut=async z=>{const R=`![${s.value.locale.uploading} ${z.name}]()`;be(R),E.value=!0;try{const W=await s.value.imageUploader(z);i.value=i.value.replace(R,`\r +![${z.name}](${W})`)}catch(W){alert(W.message),i.value=i.value.replace(R,"")}finally{E.value=!1}},Xt=z=>{var R;if((R=z.dataTransfer)!=null&&R.items){const W=Fl(z.dataTransfer.items);W&&we.value&&(ut(W),z.preventDefault())}},Pn=z=>{if(z.clipboardData){const R=Fl(z.clipboardData.items);R&&we.value&&ut(R)}},Ot=()=>{const z=u.value;z.files&&we.value&&ut(z.files[0]).then(()=>{z.value=""})},Ue=async()=>{var z;const{serverURL:R,lang:W,login:h,wordLimit:p,requiredMeta:g,recaptchaV3Key:y,turnstileKey:k}=s.value,v={comment:Me.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await zf()};if(!n.edit)if(o.value.token)v.nick=o.value.display_name,v.mail=o.value.email,v.link=o.value.url;else{if(h==="force")return;if(g.includes("nick")&&!v.nick){a.value.nick.focus(),alert(F.value.nickError);return}if(g.includes("mail")&&!v.mail||v.mail&&!Go(v.mail)){a.value.mail.focus(),alert(F.value.mailError);return}v.nick||(v.nick=F.value.anonymous)}if(!v.comment){c.value.focus();return}if(!ae.value){alert(F.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",G.value.toString()));return}v.comment=co(v.comment,T.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),E.value=!0;try{y&&(v.recaptchaV3=await sh(y).execute("social")),k&&(v.turnstile=await ih(k).execute("social"));const A={serverURL:R,lang:W,token:o.value.token,comment:v},S=await(n.edit?nn({objectId:n.edit.objectId,...A}):Ms(A));if(E.value=!1,S.errmsg){alert(S.errmsg);return}r("submit",S.data),i.value="",O.value="",await Kt(),n.replyId&&r("cancelReply"),(z=n.edit)!=null&&z.objectId&&r("cancelEdit")}catch(A){E.value=!1,alert(A.message)}},On=z=>{z.preventDefault();const{lang:R,serverURL:W}=s.value;js({serverURL:W,lang:R}).then(h=>{o.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},$r=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},jn=z=>{z.preventDefault();const{lang:R,serverURL:W}=s.value,h=800,p=800,g=(window.innerWidth-h)/2,y=(window.innerHeight-p)/2,k=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${W}/ui/profile?${k.toString()}`,"_blank",`width=${h},height=${p},left=${g},top=${y},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},vt=z=>{var R,W,h,p;!((R=f.value)!=null&&R.contains(z.target))&&!((W=d.value)!=null&&W.contains(z.target))&&(C.value=!1),!((h=m.value)!=null&&h.contains(z.target))&&!((p=x.value)!=null&&p.contains(z.target))&&(N.value=!1)},bt=async z=>{var R;const{scrollTop:W,clientHeight:h,scrollHeight:p}=z.target,g=(h+W)/p,y=s.value.search,k=((R=b.value)==null?void 0:R.value)??"";g<.9||j.loading||B.value||(j.loading=!0,(y.more&&j.list.length?await y.more(k,j.list.length):await y.search(k)).length?j.list=[...j.list,...y.more&&j.list.length?await y.more(k,j.list.length):await y.search(k)]:B.value=!0,j.loading=!1,setTimeout(()=>{z.target.scrollTop=W},50))},jt=xu(z=>{j.list=[],B.value=!1,bt(z)},300);return Lt("click",vt),Lt("message",({data:z})=>{!z||z.type!=="profile"||(o.value={...o.value,...z.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),Yt([s,G],([z,R])=>{const{wordLimit:W}=z;W?RW[1]?(oe.value=W[1],ae.value=!1):(oe.value=W[1],ae.value=!0):(oe.value=0,ae.value=!0)}),dt(N,async z=>{var R;if(!z)return;const W=s.value.search;b.value&&(b.value.value=""),j.loading=!0,j.list=await(((R=W.default)==null?void 0:R.call(W))??W.search("")),j.loading=!1}),bn(()=>{var z;(z=n.edit)!=null&&z.objectId&&(i.value=n.edit.orig),Yt(()=>i.value,R=>{const{highlighter:W,texRenderer:h}=s.value;Me.value=R,O.value=Mf(R,{emojiMap:T.value.map,highlighter:W,texRenderer:h}),G.value=jf(R),R?yo(c.value):yo.destroy(c.value)}),Yt(()=>s.value.emoji,async R=>{T.value=await Uu(R)})}),(z,R)=>{var W,h;return L(),P("div",{key:K(o).token,class:"wl-comment"},[K(s).login!=="disable"&&de.value&&!((W=z.edit)!=null&&W.objectId)?(L(),P("div",xh,[D("div",_h,[D("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:$r},[le(K(fo),{size:14})],8,Ch),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:jn},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,$h)],8,Sh)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:jn,textContent:Y(K(o).display_name)},null,8,Rh)])):J("v-if",!0),D("div",Ah,[K(s).login!=="force"&&K(s).meta.length&&!de.value?(L(),P("div",{key:0,class:me(["wl-header",`item${K(s).meta.length}`])},[(L(!0),P(fe,null,Fe(K(s).meta,p=>(L(),P("div",{key:p,class:"wl-header-item"},[D("label",{for:`wl-${p}`,textContent:Y(F.value[p]+(K(s).requiredMeta.includes(p)||!K(s).requiredMeta.length?"":`(${F.value.optional})`))},null,8,Eh),nr(D("input",{id:`wl-${p}`,ref_for:!0,ref:g=>{g&&(a.value[p]=g)},"onUpdate:modelValue":g=>K(l)[p]=g,class:me(["wl-input",`wl-${p}`]),name:p,type:p==="mail"?"email":"text"},null,10,Th),[[cu,K(l)[p]]])]))),128))],2)):J("v-if",!0),nr(D("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=p=>ve(i)?i.value=p:null),class:"wl-editor",placeholder:z.replyUser?`@${z.replyUser}`:F.value.placeholder,onKeydown:Qe,onDrop:Xt,onPaste:Pn},null,40,Ih),[[hs,K(i)]]),nr(D("div",Lh,[R[7]||(R[7]=D("hr",null,null,-1)),D("h4",null,Y(F.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:O.value},null,8,Mh)],512),[[vl,I.value]]),D("div",Ph,[D("div",Oh,[D("a",jh,[le(K(Bf))]),nr(D("button",{ref:"emoji-button",type:"button",class:me(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:R[1]||(R[1]=p=>C.value=!C.value)},[le(K(Ff))],10,zh),[[vl,T.value.tabs.length]]),K(s).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:me(["wl-action",{active:N.value}]),title:F.value.gif,onClick:R[2]||(R[2]=p=>N.value=!N.value)},[le(K(Kf))],10,Dh)):J("v-if",!0),D("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Ot},null,544),we.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[le(K(Hf))],8,Fh)):J("v-if",!0),D("button",{type:"button",class:me(["wl-action",{active:I.value}]),title:F.value.preview,onClick:R[3]||(R[3]=p=>I.value=!I.value)},[le(K(Nf))],10,Hh)]),D("div",Uh,[R[9]||(R[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Nh,[it(Y(G.value)+" ",1),K(s).wordLimit?(L(),P("span",Bh,[R[8]||(R[8]=it("  /  ")),D("span",{class:me({illegal:!ae.value}),textContent:Y(oe.value)},null,10,Vh)])):J("v-if",!0),it("  "+Y(F.value.word),1)]),K(s).login!=="disable"&&!de.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:On,textContent:Y(F.value.login)},null,8,Wh)):J("v-if",!0),K(s).login!=="force"||de.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:E.value,onClick:Ue},[E.value?(L(),st(K(In),{key:0,size:16})):(L(),P(fe,{key:1},[it(Y(F.value.submit),1)],64))],8,qh)):J("v-if",!0)]),D("div",{ref:"gif-popup",class:me(["wl-gif-popup",{display:N.value}])},[D("input",{ref:"gif-search",type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...p)=>K(jt)&&K(jt)(...p))},null,40,Kh),j.list.length?(L(),st(kh,{key:0,items:j.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=p=>be(p)),onScroll:bt},null,8,["items"])):J("v-if",!0),j.loading?(L(),P("div",Gh,[le(K(In),{size:30})])):J("v-if",!0)],2),D("div",{ref:"emoji-popup",class:me(["wl-emoji-popup",{display:C.value}])},[(L(!0),P(fe,null,Fe(T.value.tabs,(p,g)=>(L(),P(fe,{key:p.name},[g===w.value?(L(),P("div",Zh,[(L(!0),P(fe,null,Fe(p.items,y=>(L(),P("button",{key:y,type:"button",title:y,onClick:k=>be(`:${y}:`)},[C.value?(L(),P("img",{key:0,class:"wl-emoji",src:T.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Yh)):J("v-if",!0)],8,Jh))),128))])):J("v-if",!0)],64))),128)),T.value.tabs.length>1?(L(),P("div",Qh,[(L(!0),P(fe,null,Fe(T.value.tabs,(p,g)=>(L(),P("button",{key:p.name,type:"button",class:me(["wl-tab",{active:w.value===g}]),onClick:y=>w.value=g},[D("img",{class:"wl-emoji",src:p.icon,alt:p.name,title:p.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ep)],10,Xh))),128))])):J("v-if",!0)],2)])]),z.replyId||(h=z.edit)!=null&&h.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:R[6]||(R[6]=p=>z.replyId?r("cancelReply"):r("cancelEdit"))},[le(K(fo),{size:24})],8,tp)):J("v-if",!0)])}}});const np=["id"],rp={class:"wl-user","aria-hidden":"true"},sp=["src"],ip={class:"wl-card"},lp={class:"wl-head"},op=["href"],ap={key:1,class:"wl-nick"},cp=["textContent"],up=["textContent"],fp=["textContent"],hp=["textContent"],pp=["textContent"],dp={class:"wl-comment-actions"},gp=["title"],mp=["title"],vp={class:"wl-meta","aria-hidden":"true"},bp=["data-value","textContent"],yp={key:0,class:"wl-content"},wp={key:0},kp=["href"],xp=["innerHTML"],_p={key:1,class:"wl-admin-actions"},Cp={class:"wl-comment-status"},Sp=["disabled","onClick","textContent"],$p={key:3,class:"wl-quote"};var Rp=mn({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,s=["approved","waiting","spam"],i=sr(Fn),l=ho(),o=Pu(),a=Sr(),c=ge(()=>i.value.locale),u=ge(()=>{const{link:w}=n.comment;return w?ri(w)?w:`https://${w}`:""}),f=ge(()=>l.value.includes(n.comment.objectId)),d=ge(()=>qo(new Date(n.comment.time),o.value,c.value)),m=ge(()=>a.value.type==="administrator"),x=ge(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=ge(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),T=ge(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,C)=>{var N;const I=Xa("CommentCard",!0);return L(),P("div",{id:w.comment.objectId.toString(),class:"wl-card-item"},[D("div",rp,[w.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar,alt:""},null,8,sp)):J("v-if",!0),w.comment.type?(L(),st(K(qf),{key:1})):J("v-if",!0)]),D("div",ip,[D("div",lp,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},Y(w.comment.nick),9,op)):(L(),P("span",ap,Y(w.comment.nick),1)),w.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:Y(c.value.admin)},null,8,cp)):J("v-if",!0),w.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:Y(w.comment.label)},null,8,up)):J("v-if",!0),w.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:Y(c.value.sticky)},null,8,fp)):J("v-if",!0),typeof w.comment.level=="number"?(L(),P("span",{key:5,class:me(`wl-badge level${w.comment.level}`),textContent:Y(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,hp)):J("v-if",!0),D("span",{class:"wl-time",textContent:Y(d.value)},null,8,pp),D("div",dp,[m.value||x.value?(L(),P(fe,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=O=>r("edit",w.comment))},[le(K(Wf))]),D("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=O=>r("delete",w.comment))},[le(K(Df))])],64)):J("v-if",!0),D("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=O=>r("like",w.comment))},[le(K(Uf),{active:f.value},null,8,["active"]),it(" "+Y("like"in w.comment?w.comment.like:""),1)],8,gp),D("button",{type:"button",class:me(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=O=>r("reply",b.value?null:w.comment))},[le(K(Vf))],10,mp)])]),D("div",vp,[(L(),P(fe,null,Fe(["addr","browser","os"],O=>(L(),P(fe,null,[w.comment[O]?(L(),P("span",{key:O,class:me(`wl-${O}`),"data-value":w.comment[O],textContent:Y(w.comment[O])},null,10,bp)):J("v-if",!0)],64))),64))]),T.value?J("v-if",!0):(L(),P("div",yp,["reply_user"in w.comment&&w.comment.reply_user?(L(),P("p",wp,[D("a",{href:"#"+w.comment.pid},"@"+Y(w.comment.reply_user.nick),9,kp),C[17]||(C[17]=D("span",null,": ",-1))])):J("v-if",!0),D("div",{innerHTML:w.comment.comment},null,8,xp)])),m.value&&!T.value?(L(),P("div",_p,[D("span",Cp,[(L(),P(fe,null,Fe(s,O=>D("button",{key:O,type:"submit",class:me(`wl-btn wl-${O}`),disabled:w.comment.status===O,onClick:G=>r("status",{status:O,comment:w.comment}),textContent:Y(c.value[O])},null,10,Sp)),64))]),m.value&&!("rid"in w.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=O=>r("sticky",w.comment))},Y(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):J("v-if",!0)])):J("v-if",!0),b.value||T.value?(L(),P("div",{key:2,class:me({"wl-reply-wrapper":b.value,"wl-edit-wrapper":T.value})},[le(wo,{edit:w.edit,"reply-id":(N=w.reply)==null?void 0:N.objectId,"reply-user":w.comment.nick,"root-id":w.rootId,onLog:C[5]||(C[5]=O=>r("log")),onCancelReply:C[6]||(C[6]=O=>r("reply",null)),onCancelEdit:C[7]||(C[7]=O=>r("edit",null)),onSubmit:C[8]||(C[8]=O=>r("submit",O))},null,8,["edit","reply-id","reply-user","root-id"])],2)):J("v-if",!0),"children"in w.comment?(L(),P("div",$p,[(L(!0),P(fe,null,Fe(w.comment.children,O=>(L(),st(I,{key:O.objectId,comment:O,reply:w.reply,edit:w.edit,"root-id":w.rootId,onLog:C[9]||(C[9]=G=>r("log")),onDelete:C[10]||(C[10]=G=>r("delete",G)),onEdit:C[11]||(C[11]=G=>r("edit",G)),onLike:C[12]||(C[12]=G=>r("like",G)),onReply:C[13]||(C[13]=G=>r("reply",G)),onStatus:C[14]||(C[14]=G=>r("status",G)),onSticky:C[15]||(C[15]=G=>r("sticky",G)),onSubmit:C[16]||(C[16]=G=>r("submit",G))},null,8,["comment","reply","edit","root-id"]))),128))])):J("v-if",!0)])],8,np)}}});const ko="3.5.6",Ap={"data-waline":""},Ep={class:"wl-meta-head"},Tp={class:"wl-count"},Ip=["textContent"],Lp={class:"wl-sort"},Mp=["onClick"],Pp={class:"wl-cards"},Op={key:1,class:"wl-operation"},jp=["textContent"],zp={key:2,class:"wl-loading"},Dp=["textContent"],Fp={key:4,class:"wl-operation"},Hp=["textContent"],Up={key:5,class:"wl-power"};var Np=mn({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Sr(),r=ho(),s=se("loading"),i=se(0),l=se(1),o=se(0),a=ge(()=>Bo(t)),c=se(a.value.commentSorting),u=se([]),f=se(null),d=se(null),m=ge(()=>Vo(a.value.dark)),x=ge(()=>a.value.locale);zu(m,{id:"waline-darkmode"});let b=null;const T=E=>{const{serverURL:B,path:F,pageSize:de}=a.value,we=new AbortController;s.value="loading",b==null||b(),Ls({serverURL:B,lang:a.value.lang,path:F,pageSize:de,sortBy:ei[c.value],page:E,signal:we.signal,token:n.value.token}).then(be=>{s.value="success",i.value=be.count,u.value.push(...be.data),l.value=E,o.value=be.totalPages}).catch(be=>{be.name!=="AbortError"&&(console.error(be.message),s.value="error")}),b=we.abort.bind(we)},w=()=>{T(l.value+1)},C=()=>{i.value=0,u.value=[],T(1)},N=E=>{c.value!==E&&(c.value=E,C())},I=E=>{f.value=E},O=E=>{d.value=E},G=E=>{if(d.value)d.value.comment=E.comment,d.value.orig=E.orig;else if("rid"in E){const B=u.value.find(({objectId:F})=>F===E.rid);if(!B)return;Array.isArray(B.children)||(B.children=[]),B.children.push(E)}else u.value.unshift(E),i.value+=1},j=async({comment:E,status:B})=>{if(E.status===B)return;const{serverURL:F,lang:de}=a.value;await nn({serverURL:F,lang:de,token:n.value.token,objectId:E.objectId,comment:{status:B}}),E.status=B},oe=async E=>{if("rid"in E)return;const{serverURL:B,lang:F}=a.value;await nn({serverURL:B,lang:F,token:n.value.token,objectId:E.objectId,comment:{sticky:E.sticky?0:1}}),E.sticky=!E.sticky},ae=async({objectId:E})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:B,lang:F}=a.value;await Ps({serverURL:B,lang:F,token:n.value.token,objectId:E}),u.value.some((de,we)=>de.objectId===E?(u.value=u.value.filter((be,Qe)=>Qe!==we),!0):de.children.some((be,Qe)=>be.objectId===E?(u.value[we].children=de.children.filter((ut,Xt)=>Xt!==Qe),!0):!1))},Me=async E=>{const{serverURL:B,lang:F}=a.value,{objectId:de}=E,we=r.value.includes(de);await nn({serverURL:B,lang:F,objectId:de,token:n.value.token,comment:{like:!we}}),we?r.value=r.value.filter(be=>be!==de):(r.value=[...r.value,de],r.value.length>50&&(r.value=r.value.slice(-50))),E.like=Math.max(0,(E.like||0)+(we?-1:1))};return ic(Fn,a),bn(()=>{Yt(()=>[t.serverURL,t.path],()=>{C()})}),Xr(()=>{b==null||b()}),(E,B)=>(L(),P("div",Ap,[le(mh),!f.value&&!d.value?(L(),st(wo,{key:0,onLog:C,onSubmit:G})):J("v-if",!0),D("div",Ep,[D("div",Tp,[i.value?(L(),P("span",{key:0,class:"wl-num",textContent:Y(i.value)},null,8,Ip)):J("v-if",!0),it(" "+Y(x.value.comment),1)]),D("ul",Lp,[(L(!0),P(fe,null,Fe(K(Uo),F=>(L(),P("li",{key:F,class:me([F===c.value?"active":""]),onClick:de=>N(F)},Y(x.value[F]),11,Mp))),128))])]),D("div",Pp,[(L(!0),P(fe,null,Fe(u.value,F=>(L(),st(Rp,{key:F.objectId,"root-id":F.objectId,comment:F,reply:f.value,edit:d.value,onLog:C,onReply:I,onEdit:O,onSubmit:G,onStatus:j,onDelete:ae,onSticky:oe,onLike:Me},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(L(),P("div",Op,[D("button",{type:"button",class:"wl-btn",onClick:C,textContent:Y(x.value.refresh)},null,8,jp)])):s.value==="loading"?(L(),P("div",zp,[le(K(In),{size:30})])):u.value.length?l.value{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.innerText=s.toString())})},_o=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=$s(c);return u!==null&&t!==u},a=c=>zs({serverURL:Hn(e),paths:c.map(u=>$s(u)??t),lang:s,signal:i.signal}).then(u=>xo(u,c)).catch(Dl);if(r){const c=l.filter(f=>!o(f)),u=l.filter(o);Ds({serverURL:Hn(e),path:t,lang:s}).then(f=>xo(f,c)),u.length&&a(u)}else a(l);return i.abort.bind(i)},Bp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?gs(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!s.serverURL)throw new Error("Option 'serverURL' is missing!");const l=pn({...s}),o=pn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&uo({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&_o({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=pu(()=>te(Np,{path:o.path,...l})),u.mount(i));const f=Xi(a),d=Xi(c);return{el:i,update:({comment:m,pageview:x,path:b=window.location.pathname,...T}={})=>{Object.entries(T).forEach(([w,C])=>{l[w]=C}),o.path=b,m!==void 0&&(o.comment=m),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),d()}}},Vp=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Sr(),i=gs(e),l=new AbortController;return Fs({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length?(i.innerHTML=`
    `,{comments:o,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},Wp=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=gs(e),o=new AbortController;return Hs({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Qs(s),...typeof r=="object"?r:{}},l.innerHTML=``,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};export{Vp as RecentComments,Wp as UserList,Ms as addComment,uo as commentCount,Dn as defaultLocales,Ps as deleteComment,Os as fetchCommentCount,Rr as getArticleCounter,Ls as getComment,zs as getPageview,Fs as getRecentComment,Hs as getUserList,Bp as init,js as login,_o as pageviewCount,zn as updateArticleCounter,nn as updateComment,Ds as updatePageview,ko as version}; +//# sourceMappingURL=waline.js.map From ac60e01805a415e7a738b16ebf9e0b77d66810c9 Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 29 Mar 2025 16:38:58 +0800 Subject: [PATCH 2/2] feat(lib): upgrade waline from v2.6.1 to v3.5.6 --- assets/data/cdn/cdnjs.yml | 14 +++++++------- assets/data/cdn/jsdelivr.cloudflare.yml | 2 +- assets/data/cdn/jsdelivr.fastly.yml | 2 +- assets/data/cdn/jsdelivr.yml | 2 +- assets/data/cdn/unpkg.yml | 3 +++ 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/assets/data/cdn/cdnjs.yml b/assets/data/cdn/cdnjs.yml index 85de7fc7e..f02c08933 100644 --- a/assets/data/cdn/cdnjs.yml +++ b/assets/data/cdn/cdnjs.yml @@ -1,7 +1,7 @@ prefix: libFiles: https://cdnjs.cloudflare.com/ajax/libs/ - # simple-icons@14.1.0 https://github.com/simple-icons/simple-icons - simpleIcons: https://cdnjs.cloudflare.com/ajax/libs/simple-icons/14.1.0/ + # simple-icons@14.3.0 https://github.com/simple-icons/simple-icons + simpleIcons: https://cdnjs.cloudflare.com/ajax/libs/simple-icons/14.3.0/ libFiles: # fontawesome-free@6.7.2 https://fontawesome.com/ fontawesomeFreeCSS: font-awesome/6.7.2/css/all.min.css @@ -11,8 +11,8 @@ libFiles: autocompleteJS: autocomplete.js/0.38.1/autocomplete.min.js # lunr.js@2.3.9 https://lunrjs.com/ lunrJS: lunr.js/2.3.9/lunr.min.js - # algoliasearch@5.19.0 https://github.com/algolia/algoliasearch-client-javascript - algoliasearchJS: algoliasearch/5.19.0/lite/builds/browser.umd.min.js + # algoliasearch@5.20.2 https://github.com/algolia/algoliasearch-client-javascript + algoliasearchJS: algoliasearch/5.20.2/lite/builds/browser.umd.min.js # lazysizes@5.3.2 https://github.com/aFarkas/lazysizes lazysizesJS: lazysizes/5.3.2/lazysizes.min.js # object-fit-images@3.2.4 https://github.com/fregante/object-fit-images @@ -52,6 +52,6 @@ libFiles: # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent/3.1.1/cookieconsent.min.css cookieconsentJS: cookieconsent/3.1.1/cookieconsent.min.js - # waline@3.5.6 https://waline.js.org/ - walineCSS: waline/3.5.6/waline.css - walineJS: waline/3.5.6/waline.js + # waline@3.5.0 https://waline.js.org/ + walineCSS: waline/3.5.0/waline.css + walineJS: waline/3.5.0/waline.js diff --git a/assets/data/cdn/jsdelivr.cloudflare.yml b/assets/data/cdn/jsdelivr.cloudflare.yml index 82df81fc6..2309e4a4d 100644 --- a/assets/data/cdn/jsdelivr.cloudflare.yml +++ b/assets/data/cdn/jsdelivr.cloudflare.yml @@ -58,4 +58,4 @@ libFiles: cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js # waline@3.5.6 https://waline.js.org/ walineCSS: '@waline/client@3.5.6/dist/waline.css' - walineJS: '@waline/client@3.5.6/dist/waline.min.js' + walineJS: '@waline/client@3.5.6/dist/waline.js' diff --git a/assets/data/cdn/jsdelivr.fastly.yml b/assets/data/cdn/jsdelivr.fastly.yml index 9dc4cd058..531c8e285 100644 --- a/assets/data/cdn/jsdelivr.fastly.yml +++ b/assets/data/cdn/jsdelivr.fastly.yml @@ -58,4 +58,4 @@ libFiles: cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js # waline@3.5.6 https://waline.js.org/ walineCSS: '@waline/client@3.5.6/dist/waline.css' - walineJS: '@waline/client@3.5.6/dist/waline.min.js' + walineJS: '@waline/client@3.5.6/dist/waline.js' diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index 802a74ff4..b9a6eb502 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -58,4 +58,4 @@ libFiles: cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js # waline@3.5.6 https://waline.js.org/ walineCSS: '@waline/client@3.5.6/dist/waline.css' - walineJS: '@waline/client@3.5.6/dist/waline.min.js' + walineJS: '@waline/client@3.5.6/dist/waline.js' diff --git a/assets/data/cdn/unpkg.yml b/assets/data/cdn/unpkg.yml index c0f5a58ca..4e1a90b2b 100644 --- a/assets/data/cdn/unpkg.yml +++ b/assets/data/cdn/unpkg.yml @@ -56,3 +56,6 @@ libFiles: # cookieconsent@3.1.1 https://github.com/osano/cookieconsent cookieconsentCSS: cookieconsent@3.1.1/build/cookieconsent.min.css cookieconsentJS: cookieconsent@3.1.1/build/cookieconsent.min.js + # waline@3.5.6 https://waline.js.org/ + walineCSS: '@waline/client@3.5.6/dist/waline.css' + walineJS: '@waline/client@3.5.6/dist/waline.js'