跳到正文

剪贴板

剪贴板 v8dfbaud

原文
剪贴板信息

剪贴板信息

收录
更新
C++
// ==UserScript==
// @name           extend-luogu
// @namespace      http://tampermonkey.net/
// @description    Make luogu more powerful.
// @description:zh 使洛谷拥有更多功能
// @icon           https://raw.fastgit.org/extend-luogu/extend-luogu/main/favicon.ico
// @icon64         https://exlg.cc/img/logo.png
// @homepage       https://exlg.cc
// @version        6.7.6
//
// @match          https://*.luogu.com.cn/*
// @match          https://*.luogu.org/*
// @match          https://www.bilibili.com/robots.txt?*
// @match          https://service-ig5px5gh-1305163805.sh.apigw.tencentcs.com/release/APIGWHtmlDemo-1615602121
// @match          https://service-nd5kxeo3-1305163805.sh.apigw.tencentcs.com/release/exlg-nextgen
// @match          https://extend-luogu.github.io/exlg-setting-new/*
// @match          https://dash.exlg.cc/*
// @include        http://localhost:1634/*
//
// @connect        tencentcs.com
// @connect        xn--fx-ex2c330n.ml
// @connect        bens.rotriw.com
// @connect        codeforces.com
// @connect        codeforces.ml
// @connect        codeforc.es
// @connect        kenkoooo.com
// @connect        api.github.com
// @connect        exlg.piterator.com
// @connect        luogu-captcha-bypass.piterator.com
// @connect        exlgcs.jin-dan.site
// @connect        localhost
//
// @require        https://cdn.luogu.com.cn/js/jquery-2.1.1.min.js
//
// @resource       colorpicker https://extend-luogu.github.io/exlg-color-picker/dist/xncolorpicker.min.js
// @resource       colorpicker_old https://www.jq22.com/demo/xncolorpicker-main202101270059/dist/xncolorpicker.min.js
// @resource       pickr_resource https://unpkg.com/@simonwep/pickr@1.8.2/dist/pickr.min.js
// @resource       pickr_resource_css https://unpkg.com/@simonwep/pickr@1.8.2/dist/themes/nano.min.css
//
// @grant          GM_addStyle
// @grant          GM_getValue
// @grant          GM_setValue
// @grant          GM_deleteValue
// @grant          GM_listValues
// @grant          GM_setClipboard
// @grant          GM_xmlhttpRequest
// @grant          GM_getResourceText
// @grant          unsafeWindow
// ==/UserScript==

;
(()=>{var Yr=Object.create;var ut=Object.defineProperty;var Kr=Object.getOwnPropertyDescriptor;var en=Object.getOwnPropertyNames;var tn=Object.getPrototypeOf,rn=Object.prototype.hasOwnProperty;var le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var nn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of en(t))!rn.call(e,o)&&o!==r&&ut(e,o,{get:()=>t[o],enumerable:!(n=Kr(t,o))||n.enumerable});return e};var on=(e,t,r)=>(r=e!=null?Yr(tn(e)):{},nn(t||!e||!e.__esModule?ut(r,"default",{value:e,enumerable:!0}):r,e));var Ye=le(be=>{function ft(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function sn(e,t,r){}function an(e,t,r){}var ln=/javascript\s*\:/img;function cn(e,t){return ln.test(t)?"":t}be.whiteList=ft();be.getDefaultWhiteList=ft;be.onAttr=sn;be.onIgnoreAttr=an;be.safeAttrValue=cn});var Ke=le((li,mt)=>{mt.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,o;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,o=e.length;n<o;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}});var bt=le((ci,ht)=>{var ke=Ke();function dn(e,t){e=ke.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,o=0,i=0,s="";function l(){if(!n){var c=ke.trim(e.slice(o,i)),a=c.indexOf(":");if(a!==-1){var p=ke.trim(c.slice(0,a)),f=ke.trim(c.slice(a+1));if(p){var x=t(o,s.length,p,f,c);x&&(s+=x+"; ")}}}o=i+1}for(;i<r;i++){var d=e[i];if(d==="/"&&e[i+1]==="*"){var u=e.indexOf("*/",i+2);if(u===-1)break;i=u+1,o=i+1,n=!1}else d==="("?n=!0:d===")"?n=!1:d===";"?n||l():d===`
`&&l()}return ke.trim(s)}ht.exports=dn});var vt=le((gi,yt)=>{var Me=Ye(),gn=bt(),di=Ke();function xt(e){return e==null}function pn(e){var t={};for(var r in e)t[r]=e[r];return t}function wt(e){e=pn(e||{}),e.whiteList=e.whiteList||Me.whiteList,e.onAttr=e.onAttr||Me.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Me.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Me.safeAttrValue,this.options=e}wt.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,o=r.onAttr,i=r.onIgnoreAttr,s=r.safeAttrValue,l=gn(e,function(d,u,c,a,p){var f=n[c],x=!1;if(f===!0?x=f:typeof f=="function"?x=f(a):f instanceof RegExp&&(x=f.test(a)),x!==!0&&(x=!1),a=s(c,a),!!a){var h={position:u,sourcePosition:d,source:p,isWhite:x};if(x){var m=o(c,a,h);return xt(m)?c+":"+a:m}else{var m=i(c,a,h);if(!xt(m))return m}}});return l};yt.exports=wt});var Ee=le((Ae,tt)=>{var kt=Ye(),_t=vt();function un(e,t){var r=new _t(t);return r.process(e)}Ae=tt.exports=un;Ae.FilterCSS=_t;for(et in kt)Ae[et]=kt[et];var et;typeof window<"u"&&(window.filterCSS=tt.exports)});var Ne=le((pi,$t)=>{$t.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,o;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,o=e.length;n<o;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}}});var rt=le(P=>{var fn=Ee().FilterCSS,mn=Ee().getDefaultWhiteList,Ie=Ne();function Tt(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var St=new fn;function hn(e,t,r){}function bn(e,t,r){}function xn(e,t,r){}function wn(e,t,r){}function Mt(e){return e.replace(vn,"&lt;").replace(kn,"&gt;")}function yn(e,t,r,n){if(r=jt(r),t==="href"||t==="src"){if(r=Ie.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(ze.lastIndex=0,ze.test(r))return""}else if(t==="style"){if(Lt.lastIndex=0,Lt.test(r)||(Ct.lastIndex=0,Ct.test(r)&&(ze.lastIndex=0,ze.test(r))))return"";n!==!1&&(n=n||St,r=n.process(r))}return r=Ot(r),r}var vn=/</g,kn=/>/g,_n=/"/g,$n=/&quot;/g,Ln=/&#([a-zA-Z0-9]*);?/gim,Cn=/&colon;?/gim,Tn=/&newline;?/gim,ze=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Lt=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Ct=/u\s*r\s*l\s*\(.*/gi;function At(e){return e.replace(_n,"&quot;")}function Et(e){return e.replace($n,'"')}function Nt(e){return e.replace(Ln,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function zt(e){return e.replace(Cn,":").replace(Tn," ")}function It(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Ie.trim(t)}function jt(e){return e=Et(e),e=Nt(e),e=zt(e),e=It(e),e}function Ot(e){return e=At(e),e=Mt(e),e}function Sn(){return""}function Mn(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:Ie.indexOf(e,s)!==-1}var o=[],i=!1;return{onIgnoreTag:function(s,l,d){if(n(s))if(d.isClosing){var u="[/removed]",c=d.position+u.length;return o.push([i!==!1?i:d.position,c]),i=!1,u}else return i||(i=d.position),"[removed]";else return t(s,l,d)},remove:function(s){var l="",d=0;return Ie.forEach(o,function(u){l+=s.slice(d,u[0]),d=u[1]}),l+=s.slice(d),l}}}function An(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var o=e.indexOf("-->",n);if(o===-1)break;r=o+3}return t}function En(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}P.whiteList=Tt();P.getDefaultWhiteList=Tt;P.onTag=hn;P.onIgnoreTag=bn;P.onTagAttr=xn;P.onIgnoreTagAttr=wn;P.safeAttrValue=yn;P.escapeHtml=Mt;P.escapeQuote=At;P.unescapeQuote=Et;P.escapeHtmlEntities=Nt;P.escapeDangerHtml5Entities=zt;P.clearNonPrintableCharacter=It;P.friendlyAttrValue=jt;P.escapeAttrValue=Ot;P.onIgnoreTagStripAll=Sn;P.StripTagBody=Mn;P.stripCommentTag=An;P.stripBlankChar=En;P.cssFilter=St;P.getDefaultCSSWhiteList=mn});var ot=le(nt=>{var ge=Ne();function Nn(e){var t=ge.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=ge.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function zn(e){return e.slice(0,2)==="</"}function In(e,t,r){"use strict";var n="",o=0,i=!1,s=!1,l=0,d=e.length,u="",c="";e:for(l=0;l<d;l++){var a=e.charAt(l);if(i===!1){if(a==="<"){i=l;continue}}else if(s===!1){if(a==="<"){n+=r(e.slice(o,l)),i=l,o=l;continue}if(a===">"){n+=r(e.slice(o,i)),c=e.slice(i,l+1),u=Nn(c),n+=t(i,n.length,u,c,zn(c)),o=l+1,i=!1;continue}if(a==='"'||a==="'")for(var p=1,f=e.charAt(l-p);f.trim()===""||f==="=";){if(f==="="){s=a;continue e}f=e.charAt(l-++p)}}else if(a===s){s=!1;continue}}return o<e.length&&(n+=r(e.substr(o))),n}var jn=/[^a-zA-Z0-9\\_:.-]/gim;function On(e,t){"use strict";var r=0,n=0,o=[],i=!1,s=e.length;function l(p,f){if(p=ge.trim(p),p=p.replace(jn,"").toLowerCase(),!(p.length<1)){var x=t(p,f||"");x&&o.push(x)}}for(var d=0;d<s;d++){var u=e.charAt(d),c,a;if(i===!1&&u==="="){i=e.slice(r,d),r=d+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:Rn(e,d+1);continue}if(i!==!1&&d===n){if(a=e.indexOf(u,d+1),a===-1)break;c=ge.trim(e.slice(n+1,a)),l(i,c),i=!1,d=a,r=d+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),i===!1)if(a=Dn(e,d),a===-1){c=ge.trim(e.slice(r,d)),l(c),i=!1,r=d+1;continue}else{d=a-1;continue}else if(a=Pn(e,d-1),a===-1){c=ge.trim(e.slice(r,d)),c=Dt(c),l(i,c),i=!1,r=d+1;continue}else continue}return r<e.length&&(i===!1?l(e.slice(r)):l(i,Dt(ge.trim(e.slice(r))))),ge.trim(o.join(" "))}function Dn(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function Rn(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function Pn(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function qn(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Dt(e){return qn(e)?e.substr(1,e.length-2):e}nt.parseTag=In;nt.parseAttr=On});var Bt=le((mi,qt)=>{var Bn=Ee().FilterCSS,te=rt(),Rt=ot(),Un=Rt.parseTag,Zn=Rt.parseAttr,Oe=Ne();function je(e){return e==null}function Gn(e){var t=Oe.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Oe.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Oe.trim(e.slice(0,-1))),{html:e,closing:r}}function Vn(e){var t={};for(var r in e)t[r]=e[r];return t}function Fn(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function Pt(e){e=Vn(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=te.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Fn(e.whiteList||e.allowList):e.whiteList=te.whiteList,e.onTag=e.onTag||te.onTag,e.onTagAttr=e.onTagAttr||te.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||te.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||te.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||te.safeAttrValue,e.escapeHtml=e.escapeHtml||te.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Bn(e.css))}Pt.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,o=r.onTag,i=r.onIgnoreTag,s=r.onTagAttr,l=r.onIgnoreTagAttr,d=r.safeAttrValue,u=r.escapeHtml,c=t.cssFilter;r.stripBlankChar&&(e=te.stripBlankChar(e)),r.allowCommentTag||(e=te.stripCommentTag(e));var a=!1;r.stripIgnoreTagBody&&(a=te.StripTagBody(r.stripIgnoreTagBody,i),i=a.onIgnoreTag);var p=Un(e,function(f,x,h,m,b){var w={sourcePosition:f,position:x,isClosing:b,isWhite:Object.prototype.hasOwnProperty.call(n,h)},k=o(h,m,w);if(!je(k))return k;if(w.isWhite){if(w.isClosing)return"</"+h+">";var L=Gn(m),S=n[h],R=Zn(L.html,function(j,O){var H=Oe.indexOf(S,j)!==-1,ee=s(h,j,O,H);return je(ee)?H?(O=d(h,j,O,c),O?j+'="'+O+'"':j):(ee=l(h,j,O,H),je(ee)?void 0:ee):ee});return m="<"+h,R&&(m+=" "+R),L.closing&&(m+=" /"),m+=">",m}else return k=i(h,m,w),je(k)?u(m):k},u);return a&&(p=a.remove(p)),p};qt.exports=Pt});var Ft=le((xe,De)=>{var Ut=rt(),Zt=ot(),Gt=Bt();function Vt(e,t){var r=new Gt(t);return r.process(e)}xe=De.exports=Vt;xe.filterXSS=Vt;xe.FilterXSS=Gt;(function(){for(var e in Ut)xe[e]=Ut[e];for(var t in Zt)xe[t]=Zt[t]})();typeof window<"u"&&(window.filterXSS=De.exports);function Hn(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}Hn()&&(self.filterXSS=De.exports)});var Qt=on(Ft(),1),re=unsafeWindow,A=re;function Re(e){return new Proxy(e,{get(t,r){return r==="then"?n=>(t.then(n),Re(t)):Re(t.then(n=>n[r]))}})}var M=(e,...t)=>re.console.log(`%c[exlg] ${e}`,"color: #0e90d2;",...t),Q=(e,...t)=>re.console.warn(`%c[exlg] ${e}`,"color: #0e90d2;",...t),U=(e,...t)=>{throw re.console.error(`%c[exlg] ${e}`,"color: #0e90d2;",...t),Error(t.join(" "))},E,T;location.host==="www.luogu.com.cn"&&!/blog/g.test(location.href)&&(/(\?|&)_contentOnly($|=)/g.test(location.search)&&U("Content-Only pages."),re._feInjection.code!==200&&U("Luogu failed to load. Exlg stops loading."),E=re._feInjection.currentData,T=re._feInjection.currentUser);var Ht=e=>[e.ctrlKey?"Ctrl":"",e.shiftKey?"Shift":"",e.altKey?"Alt":"",e.key.toInitialCase()].join(""),g=jQuery.extend({double:(e,t,r)=>[e(t),e(r)]});jQuery.fn.extend({whenKey(e,t){typeof e=="object"?this.on("keydown",r=>{let n=e[Ht(r)];n&&n(r)}):this.on("keydown",r=>{Ht(r)===e&&t(r)})}});var me=new Qt.filterXSS.FilterXSS({onTagAttr:(e,t,r)=>{if(t==="style")return`${t}="${r}"`}});Date.prototype.format=function(e,t){t=t?"UTC":"";let r={"y+":this[`get${t}FullYear`](),"m+":this[`get${t}Month`]()+1,"d+":this[`get${t}Date`](),"H+":this[`get${t}Hours`](),"M+":this[`get${t}Minutes`](),"S+":this[`get${t}Seconds`](),"s+":this[`get${t}Milliseconds`]()};for(let n in r)RegExp(`(${n})`).test(e)&&(e=e.replace(RegExp.$1,`000${r[n]}`.substr(r[n].toString().length+3-RegExp.$1.length)));return e};String.prototype.toInitialCase=function(){return this[0].toUpperCase()+this.slice(1)};var Jt=e=>new Promise(t=>setTimeout(t,e)),pe=(e,t)=>{if(!e)return"<<";let r=(c,a)=>c===a?"==":c<a?"<<":">>",n=["pre","alpha","beta"],[[o,i],[s,l]]=[e,t].map(c=>c.split("-")),[d,u]=o===s?[i,l].map(c=>[c?n.findIndex(a=>c.startsWith(a)):1/0,c?.match(/[0-9]+$/g)?.[0]??1/0]):[o,s].map(c=>c.split("."));for(let[c,a]of d.entries())if(a!==u[c])return r(+a||0,+u[c]||0);return"=="},Pe=(e,t)=>{let r=new URLSearchParams;for(let o in e)r.set(o,e[o]);let n=g(`
        <iframe id="exlg-${e.type}" src=" https://www.bilibili.com/robots.txt?${r}" style="${t}" exlg="exlg"></iframe>
    `);return M("Building springboard: %o",n[0]),n},ne=({url:e,onload:t,onerror:r=n=>U(n)})=>GM_xmlhttpRequest({url:e,method:"GET",onload:t,onerror:r}),st=(e,t={})=>{let r=new Promise((n,o)=>{GM_xmlhttpRequest({url:e,method:"GET",headers:t,onload:i=>{try{i.data=JSON.parse(i.responseText)}catch{}n(i)},onerror:o})});return Re(r)},K=(e,t,r={},n="application/json")=>{let o=new Promise((i,s)=>{GM_xmlhttpRequest({url:e,method:"POST",data:typeof t!="string"?JSON.stringify(t):t,headers:{"Content-Type":typeof t=="string"?n:"application/json",...r},onload:l=>{try{l.data=JSON.parse(l.responseText)}catch{}i(l)},onerror:s})});return Re(o)},W=(e=1e3)=>Math.floor(Date.now()/e),X=e=>new Promise((t,r)=>{g.get(`${e+(e.includes("?")?"&":"?")}_contentOnly=1`,n=>{n.code!==200&&r(new Error(`Requesting failure code: ${t.code}.`)),t(n)})}),Wt=(e,t="exlg 提醒您")=>re.show_alert?re.show_alert(t,e):re.alert(`${t}
${e}`),it=null,we=(e,t)=>g.ajax({url:e,data:t,headers:{"x-csrf-token":it===null?it=g("meta[name=csrf-token]").attr("content"):it,"content-type":"application/json"},method:"post"}),ye=e=>[/^AT[1-9][0-9]{0,}$/i,/^CF[1-9][0-9]{0,}[A-Z][0-9]?$/i,/^SP[1-9][0-9]{0,}$/i,/^P[1-9][0-9]{3,}$/i,/^UVA[1-9][0-9]{2,}$/i,/^U[1-9][0-9]{0,}$/i,/^T[1-9][0-9]{0,}$/i,/^B[2-9][0-9]{3,}$/i].some(t=>t.test(e)),at=(e,t)=>e.map(r=>({dft:r,...t})),_e=e=>t=>{let r=t.target.querySelectorAll(e);return{result:Boolean(r?.length),args:r}},Xt=(e,t,r)=>{let n=new Date().valueOf(),o=new BroadcastChannel(`${e}-ctrl`),i=new BroadcastChannel(`${e}-data`),s=!1,l,d,u=()=>{l=0,o.postMessage(`Alive ${n}`),setTimeout(()=>{l<n&&(s=!0,o.postMessage("Victory"),g(re).on("unload",()=>{o.postMessage("Election")}),t(i))},1e3)};o.onmessage=c=>{let a=c.data;a==="Ping"&&s?o.postMessage("Pong"):a==="Pong"?clearTimeout(d):a==="Election"?u():a.split(" ")[0]==="Alive"?(console.log(Number(a.split(" ")[1])),l=Math.max(l,Number(a.split(" ")[1]))):a==="Victory"&&(s=!1)},i.onmessage=c=>{r(c.data)},o.postMessage("Ping"),d=setTimeout(()=>{o.postMessage("Election"),u()},1e3)};var de={_:new Map,reg:(e,t,r,n,o)=>{de._.set(e,{description:t,alias:r,icon:n,unclosable:o})},alias:e=>{let t=de._.get(e);return t?t.alias:""},register:()=>{M("Registering categories"),de.reg("core","核心","@","bug_report",!0),de.reg("module","模块","","tunes",!1),de.reg("admin","管理模块","!","build",!1),de.reg("chore","定时任务","^","alarm",!0),de.reg("component","组件","#","widgets",!0)}};de.register();var Y=de;var J={};var lt=class{constructor(){this.fq=[]}push(...t){this.fq=this.fq.concat(t)}apply(){this.fq.forEach(t=>t())}},Qn=Object.fromEntries(["onload","preload"].map(e=>[e,new lt])),ce=Qn;var $e={_:new Map,sto:null,reg:(e,t,r,n,o,i)=>{let s=Y.alias("component")+e;return t=t.replaceAll(" ","_"),J[s]={ty:"object",lvs:{on:{ty:"boolean",dft:!0},...r}},$e._.set(e,{info:t,pre:n,styl:i}),(...l)=>o(...(r?[{msto:$e.sto[s]}]:[]).concat(l))}};ce.onload.push(()=>{for(let[e,t]of $e._.entries())t.styl&&GM_addStyle(t.styl),M(`Preparing component: ${e}`),t.pre&&t.pre({msto:$e.sto[Y.alias("component")+e]})});var oe=$e;var qe='<svg xmlns="http://www.w3.org/2000/svg" height="30" viewBox="0 0 136.14 30.56"><g transform="translate(1.755, 0)" fill="#00a0d8"><g><path d="M5.02-33.80L34.56-33.80L34.07-28.62L16.96-28.62L15.93-21.92L31.97-21.92L31.48-16.74L14.85-16.74L13.82-8.42L31.97-8.42L31.48-3.24L2.43-3.24L6.59-31.75L5.02-33.80Z" transform="translate(-4.14, 33.9)"></path><path d="M7.34-32.29L5.78-33.80L16.63-33.80L21.33-25.00L27.54-32.78L26.51-33.80L38.93-33.80L25.49-18.79L34.78-3.24L24.41-3.24L19.76-12.58L11.99-3.24L1.62-3.24L15.12-18.79L7.34-32.29Z" transform="translate(27.23, 33.9)"></path><path d="M4.00-33.80L16.42-33.80L12.80-8.42L32.99-8.42L32.51-3.24L5.56-3.24Q4.00-3.24 3.21-4.27Q2.43-5.29 2.43-6.86L2.43-6.86L5.56-31.75L4.00-33.80Z" transform="translate(63.8, 33.9)"></path><path d="M38.83-33.80L37.80-25.00L27.43-25.00L27.92-28.62L15.50-28.62L12.91-8.42L25.33-8.42L25.87-14.63L22.73-19.82L36.72-19.82L34.67-3.24L5.62-3.24Q4.86-3.24 4.21-3.51Q3.56-3.78 3.10-4.27Q2.65-4.75 2.48-5.43Q2.32-6.10 2.54-6.86L2.54-6.86L6.16-33.80L38.83-33.80Z" transform="translate(95.6, 33.9)"></path></g></g></svg>';var I=null,z={_:new Map,fake_sto:I,data:{},path_alias:[["",".*\\.luogu\\.(com\\.cn|org)"],["dash","dash.exlg.cc"],["cdn","cdn.luogu.com.cn"],["bili","www.bilibili.com"],["tcs1","service-ig5px5gh-1305163805.sh.apigw.tencentcs.com"],["tcs2","service-nd5kxeo3-1305163805.sh.apigw.tencentcs.com"],["tcs3","service-otgstbe5-1305163805.sh.apigw.tencentcs.com"],["debug","localhost:1634"],["ghpage","extend-luogu.github.io"]].map(([e,t])=>[new RegExp(`^@${e}/`),t]),pth_modify:e=>(Array.isArray(e)||(e=[e]),e.map(t=>(z.path_alias.some(([r,n])=>t.match(r)?(t=t.replace(r,`${n}/`),!0):!1),t.endsWith("$")||(t+="$"),t))),path_dash_board:["@dash/((index|bundle)(.html)?)?","@ghpage/exlg-setting-new/((index|bundle)(.html)?)?","@debug/((index|bundle).html)?"],reg:(e,t,r,n,o,i,s)=>{r=z.pth_modify(r);let l=Y.alias(s)+e;z.data[l]={ty:"object",lvs:n||{}},"on"in z.data[l].lvs||(z.data[l].lvs.on={ty:"boolean",dft:!0}),J[l]=z.data[l],t=t.replaceAll(" ","_"),z._.set(e,{info:t,path:r,func:o,styl:i,cate:s})},_regv2_invoker:(e,t)=>{let r=(o,i)=>{if(typeof i=="object"&&o in i)return i[o]};e=z.pth_modify(e);let n=(o,i,s,l)=>{i=i?z.pth_modify(i):[];let d=r(o,t.private);r("on",d)!==!1&&i.concat(e).some(c=>RegExp(c).test(location.href))&&ce[s].push((...c)=>l({msto:d,gsto:t.public},...c))};return{onload:({name:o,path:i},s,l)=>n(o,i,"onload",l),preload:({name:o,path:i},s,l)=>n(o,i,"preload",l),chore:({name:o,period:i},s,l)=>{if(typeof i=="string"){let d=+i.slice(0,-1),u={s:1e3,m:1e3*60,h:1e3*60*60,D:1e3*60*60*24}[i.slice(-1)];!isNaN(d)&&u?i=d*u:U(`Parsing period failed: "${i}"`)}n(o,"@/.*","preload",async d=>{let u=d.msto.last_chore,c=W(1);!u||c-u>i?await l(d)?Q(`Chore failed: "${o}"`):d.msto.last_chore=W(1):M(`Pending chore: "${o}"`)})},hook:({name:o,path:i},s,l,d)=>n(o,i,"preload",u=>{document.querySelector("body").addEventListener("DOMNodeInserted",c=>{if(!c.target.tagName)return!1;let a=d(c);return a.result&&l({...u,...a})})})}},reg_v2:({name:e,info:t,path:r,cate:n},o,i,s)=>{t=t.replaceAll(" ","_");let l={},d=[],u=(x,...h)=>l=Object.fromEntries(Object.entries(l).concat(Object.entries(x).map(([m,b])=>{let w=b.migration===!0?m:b.migration;return d.push([w,h.concat(m)]),[w,{...b,priv:!0}]}))),c=Y.alias(n)+e,a=Object.entries(o??{}).filter(([x])=>x!=="on");u(a,"public"),J[c]={ty:"object",lvs:{...a&&{public:{ty:"object",lvs:Object.fromEntries(a)}},private:{ty:"object",lvs:{}},on:{ty:"boolean",dft:o?.on?.dft??!0}}};let p=[];i((x=>{let h=(m,b)=>{b&&(x.private.lvs[m]={ty:"object",lvs:b},u(b,"private",m))};return new Proxy({onload:(m,b)=>h(m.name,b),preload:(m,b)=>h(m.name,b),chore:(m,b)=>h(m.name,{...b,last_chore:{ty:"number",dft:-1,priv:!0}}),hook:(m,b)=>h(m.name,b)},{get:(m,b)=>(...w)=>{p.push([b,...w]),m[b](...w)}})})(J[c].lvs)),J[c].lvs={...J[c].lvs,...l},z._.set(e,{info:t,path:z.pth_modify(r),data:o,func:i,subfuncs:p,migrlist:d,styl:s,cate:n})},reg_main:(e,t,r,n,o,i)=>z.reg(e,t,r,n,s=>(o(s),!1),i,"core"),reg_user_tab:(e,t,r,n,o,i,s,l)=>z.reg(e,t,"@/user/.*",o,d=>{let u=g(".items"),c=()=>{(location.hash||"#main")===`#${r}`&&(M(`Working user tab#${r} mod: "${e}"`),i({...d,vars:n}))};u.on("click",c),c()},s,l),reg_chore:(e,t,r,n,o,i,s)=>{if(typeof r=="string"){let l=+r.slice(0,-1),d={s:1e3,m:1e3*60,h:1e3*60*60,D:1e3*60*60*24}[r.slice(-1)];!isNaN(l)&&d?r=l*d:U(`Parsing period failed: "${r}"`)}o={...o,last_chore:{ty:"number",dft:-1,priv:!0}},z.reg(e,t,n,o,async l=>{let d=I[`^${e}`].last_chore,u=W(1),c=!0;l.named||!d||u-d>r?(c&&(GM_addStyle(s),c=!1),await i(l)?Q(`Chore failed: "${e}"`):I[`^${e}`].last_chore=W(1)):M(`Pending chore: "${e}"`)},null,"chore")},reg_board:(e,t,r,n,o,i)=>z.reg(e,t,"@/",r,s=>{let l=g("#exlg-board");l.length||(l=g(`
                    <div class="lg-article" id="exlg-board" exlg="exlg"><h2>${qe} &nbsp;&nbsp;${GM_info.script.version}</h2></div>
                `).prependTo(".lg-right.am-u-md-4"),l[0].firstChild.style["font-size"]="1em"),n({...s,$board:g("<div></div>").appendTo(l)})},o,i),reg_hook_new:(e,t,r,n,o,i,s,l,d)=>z.reg(e,t,r,n,u=>{o({...u,result:!1,args:s()}),g("body").bind("DOMNodeInserted",c=>{if(!c.target.tagName)return!1;let a=i(c);return a.result&&o({...u,...a})})},l,d),reg_lfe:(e,t,r,n,o,i,s)=>{z.reg(e,t,r,n,o,i,s),z._.set(e,{lfe:!0,...z._.get(e)})},find:e=>z._.get(e),has:e=>z._.has(e),disable:e=>{let t=z.find(e);t.on=!1,z._.set(e,t)},enable:e=>{let t=z.find(e);t.on=!0,z._.set(e,t)},execute_v2:()=>{for(let[e,t]of z._.entries()){let r=Y.alias(t.cate)+e;if(I[r].on&&(t.styl&&GM_addStyle(t.styl),t.subfuncs)){if(Array.isArray(t.migrlist)){for(let[o,i]of t.migrlist)if(I[r][o]!==J[r].lvs[o].dft){let s=I[r],l=i.slice(0,-1);for(let d of l)s=s[d];s[i.at(-1)]=I[r][o],I[r][o]=J[r].lvs[o].dft}}let n=z._regv2_invoker(t.path,I[r]);for(let o of t.subfuncs)M(`Executing "${o[1].name}" of "${e}"`),n[o[0]](...o.slice(1))}}},preload:()=>{I===null&&(I=z.fake_sto);let e=location.href;for(let[r,n]of z._.entries())I[Y.alias(n.cate)+r].on&&n.path.some(o=>new RegExp(o,"g").test(e))&&(n.willrun=!0,z._.set(r,n));let t=console.info.bind({});A.console.info=(...r)=>{let n=t(...r);if(M(`info hooked: ${r.join(" ")}`),r[0]==="[@lfe/loader]")for(let[o,i]of z._.entries())I[Y.alias(i.cate)+o].on&&i.path.some(s=>new RegExp(s,"g").test(e))&&"lfe"in i&&(z.execute(o),M(`loading lfe module: ${o}`));return n}},execute:e=>{let t=(r,n)=>{r||U(`Executing named mod but not found: "${e}"`),M(`Executing ${n?"named ":""}mod: "${r.name}"`);try{return r.func({msto:I[Y.alias(r.cate)+r.name],named:n})}catch(o){Q(o)}};if(e){let r=z.find(e);return t({name:e,...r},!0)}for(let[r,n]of z._.entries())if(n.on=I[Y.alias(n.cate)+r].on,n.willrun&&!n.subfuncs&&t({name:r,...n})===!1)break}};ce.onload.push(z.execute);var v=z;v.reg_v2({name:"auto-o2",info:"自动开启 O2",path:"@/problem/[A-Z0-9]+(#.*)?",cate:"module"},{on:{ty:"boolean",dft:!1},mode:{ty:"enum",dft:"lastSubmitted",vals:["lastSubmitted","lastChecked","always"],info:["Mode","模式"]},last_enabled:{ty:"boolean",dft:!1,priv:!0}},e=>{e.hook({name:"submit-detector",info:"提交检测"},null,({gsto:t,args:r})=>{t.mode==="lastSubmitted"&&g(r).on("click",()=>{t.last_enabled=g("input[id^=check]").is(":checked")})},_e("button[data-v-01cd4e24]")),e.hook({name:"o2-checker",info:"钩取开启 o2"},null,({gsto:t,args:r})=>{t.mode==="lastChecked"&&g(r).off("click"),(t.mode==="always"||t.mode==="lastChecked"&&t.last_enabled)&&g(r).trigger("click"),t.mode==="lastChecked"&&g(r).on("click",n=>{t.last_enabled=n.currentTarget.checked})},_e("input[id^=check]"))});function or(){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}}var ve=or();function Wn(e){ve=e}var Xn=/[&<>"']/,Yn=/[&<>"']/g,Kn=/[<>"']|&(?!#?\w+;)/,eo=/[<>"']|&(?!#?\w+;)/g,to={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yt=e=>to[e];function B(e,t){if(t){if(Xn.test(e))return e.replace(Yn,Yt)}else if(Kn.test(e))return e.replace(eo,Yt);return e}var ro=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ir(e){return e.replace(ro,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}var no=/(^|[^\[])\^/g;function D(e,t){e=typeof e=="string"?e:e.source,t=t||"";let r={replace:(n,o)=>(o=o.source||o,o=o.replace(no,"$1"),e=e.replace(n,o),r),getRegex:()=>new RegExp(e,t)};return r}var oo=/[^\w:]/g,io=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Kt(e,t,r){if(e){let n;try{n=decodeURIComponent(ir(r)).replace(oo,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}t&&!io.test(r)&&(r=co(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}var Be={},so=/^[^:]+:\/*[^/]*$/,ao=/^([^:]+:)[\s\S]*$/,lo=/^([^:]+:\/*[^/]*)[\s\S]*$/;function co(e,t){Be[" "+e]||(so.test(e)?Be[" "+e]=e+"/":Be[" "+e]=Ue(e,"/",!0)),e=Be[" "+e];let r=e.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:e.replace(ao,"$1")+t:t.charAt(0)==="/"?r?t:e.replace(lo,"$1")+t:e+t}var Ze={exec:function(){}};function ae(e){let t=1,r,n;for(;t<arguments.length;t++){r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function er(e,t){let r=e.replace(/\|/g,(i,s,l)=>{let d=!1,u=s;for(;--u>=0&&l[u]==="\\";)d=!d;return d?"|":" |"}),n=r.split(/ \|/),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.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Ue(e,t,r){let n=e.length;if(n===0)return"";let o=0;for(;o<n;){let i=e.charAt(n-o-1);if(i===t&&!r)o++;else if(i!==t&&r)o++;else break}return e.slice(0,n-o)}function go(e,t){if(e.indexOf(t[1])===-1)return-1;let r=e.length,n=0,o=0;for(;o<r;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}function sr(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function tr(e,t){if(t<1)return"";let r="";for(;t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function rr(e,t,r,n){let o=t.href,i=t.title?B(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;let l={type:"link",raw:r,href:o,title:i,text:s,tokens:n.inlineTokens(s,[])};return n.state.inLink=!1,l}return{type:"image",raw:r,href:o,title:i,text:B(s)}}function po(e,t){let r=e.match(/^(\s+)(?:```)/);if(r===null)return t;let n=r[1];return t.split(`
`).map(o=>{let i=o.match(/^\s+/);if(i===null)return o;let[s]=i;return s.length>=n.length?o.slice(n.length):o}).join(`
`)}var Le=class{constructor(t){this.options=t||ve}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ue(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=po(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim():r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let i=Ue(n,"#");(this.options.pedantic||!i||/ $/.test(i))&&(n=i.trim())}let o={type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=r[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:r[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n,o,i,s,l,d,u,c,a,p,f,x,h=r[1].trim(),m=h.length>1,b={type:"list",raw:"",ordered:m,start:m?+h.slice(0,-1):"",loose:!1,items:[]};h=m?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=m?h:"[*+-]");let w=new RegExp(`^( {0,3}${h})((?:[	 ][^\\n]*)?(?:\\n|$))`);for(;t&&(x=!1,!(!(r=w.exec(t))||this.rules.block.hr.test(t)));){if(n=r[0],t=t.substring(n.length),c=r[2].split(`
`,1)[0],a=t.split(`
`,1)[0],this.options.pedantic?(s=2,f=c.trimLeft()):(s=r[2].search(/[^ ]/),s=s>4?1:s,f=c.slice(s),s+=r[1].length),d=!1,!c&&/^ *$/.test(a)&&(n+=a+`
`,t=t.substring(a.length+1),x=!0),!x){let L=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),S=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^( {0,${Math.min(3,s-1)}})(\`\`\`|~~~)`);for(;t&&(p=t.split(`
`,1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(R.test(c)||this.rules.block.heading.test(c)||L.test(c)||S.test(t)));){if(c.search(/[^ ]/)>=s||!c.trim())f+=`
`+c.slice(s);else if(!d)f+=`
`+c;else break;!d&&!c.trim()&&(d=!0),n+=p+`
`,t=t.substring(p.length+1)}}b.loose||(u?b.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(f),o&&(i=o[0]!=="[ ] ",f=f.replace(/^\[[ xX]\] +/,""))),b.items.push({type:"list_item",raw:n,task:!!o,checked:i,loose:!1,text:f}),b.raw+=n}b.items[b.items.length-1].raw=n.trimRight(),b.items[b.items.length-1].text=f.trimRight(),b.raw=b.raw.trimRight();let k=b.items.length;for(l=0;l<k;l++){this.lexer.state.top=!1,b.items[l].tokens=this.lexer.blockTokens(b.items[l].text,[]);let L=b.items[l].tokens.filter(R=>R.type==="space"),S=L.every(R=>{let j=R.raw.split(""),O=0;for(let H of j)if(H===`
`&&(O+=1),O>1)return!0;return!1});!b.loose&&L.length&&S&&(b.loose=!0,b.items[l].loose=!0)}return b}}html(t){let r=this.rules.block.html.exec(t);if(r){let n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(r[0]):B(r[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}def(t){let r=this.rules.block.def.exec(t);if(r){r[3]&&(r[3]=r[3].substring(1,r[3].length-1));let n=r[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:n,raw:r[0],href:r[2],title:r[3]}}}table(t){let r=this.rules.block.table.exec(t);if(r){let n={type:"table",header:er(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,i,s,l,d;for(i=0;i<o;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(o=n.rows.length,i=0;i<o;i++)n.rows[i]=er(n.rows[i],n.header.length).map(u=>({text:u}));for(o=n.header.length,s=0;s<o;s++)n.header[s].tokens=[],this.lexer.inline(n.header[s].text,n.header[s].tokens);for(o=n.rows.length,s=0;s<o;s++)for(d=n.rows[s],l=0;l<d.length;l++)d[l].tokens=[],this.lexer.inline(d[l].text,d[l].tokens);return n}}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r){let n={type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n={type:"paragraph",raw:r[0],text:r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}text(t){let r=this.rules.block.text.exec(t);if(r){let n={type:"text",raw:r[0],text:r[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:B(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):B(r[0]):r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let s=Ue(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=go(r[2],"()");if(s>-1){let d=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let o=r[2],i="";if(this.options.pedantic){let s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),rr(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o||!o.href){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return rr(n,o,n[0],this.lexer)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;let i=o[1]||o[2]||"";if(!i||i&&(n===""||this.rules.inline.punctuation.exec(n))){let s=o[0].length-1,l,d,u=s,c=0,a=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,r=r.slice(-1*t.length+s);(o=a.exec(r))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(d=l.length,o[3]||o[4]){u+=d;continue}else if((o[5]||o[6])&&s%3&&!((s+d)%3)){c+=d;continue}if(u-=d,u>0)continue;if(d=Math.min(d,d+u+c),Math.min(s,d)%2){let f=t.slice(1,s+o.index+d);return{type:"em",raw:t.slice(0,s+o.index+d+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}let p=t.slice(2,s+o.index+d-1);return{type:"strong",raw:t.slice(0,s+o.index+d+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),o=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return o&&i&&(n=n.substring(1,n.length-1)),n=B(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2],[])}}autolink(t,r){let n=this.rules.inline.autolink.exec(t);if(n){let o,i;return n[2]==="@"?(o=B(this.options.mangle?r(n[1]):n[1]),i="mailto:"+o):(o=B(n[1]),i=o),{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(t,r){let n;if(n=this.rules.inline.url.exec(t)){let o,i;if(n[2]==="@")o=B(this.options.mangle?r(n[0]):n[0]),i="mailto:"+o;else{let s;do s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(s!==n[0]);o=B(n[0]),n[1]==="www."?i="http://"+o:i=o}return{type:"link",raw:n[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t,r){let n=this.rules.inline.text.exec(t);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):B(n[0]):n[0]:o=B(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}},$={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]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ze,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?'|\([^()]*\))/;$.def=D($.def).replace("label",$._label).replace("title",$._title).getRegex();$.bullet=/(?:[*+-]|\d{1,9}[.)])/;$.listItemStart=D(/^( *)(bull) */).replace("bull",$.bullet).getRegex();$.list=D($.list).replace(/bull/g,$.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$.def.source+")").getRegex();$._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";$._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;$.html=D($.html,"i").replace("comment",$._comment).replace("tag",$._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();$.paragraph=D($._paragraph).replace("hr",$.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex();$.blockquote=D($.blockquote).replace("paragraph",$.paragraph).getRegex();$.normal=ae({},$);$.gfm=ae({},$.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});$.gfm.table=D($.gfm.table).replace("hr",$.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex();$.gfm.paragraph=D($._paragraph).replace("hr",$.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",$.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$._tag).getRegex();$.pedantic=ae({},$.normal,{html:D(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ze,paragraph:D($.normal._paragraph).replace("hr",$.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",$.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ze,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:Ze,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};_._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";_.punctuation=D(_.punctuation).replace(/punctuation/g,_._punctuation).getRegex();_.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;_.escapedEmSt=/\\\*|\\_/g;_._comment=D($._comment).replace("(?:-->|$)","-->").getRegex();_.emStrong.lDelim=D(_.emStrong.lDelim).replace(/punct/g,_._punctuation).getRegex();_.emStrong.rDelimAst=D(_.emStrong.rDelimAst,"g").replace(/punct/g,_._punctuation).getRegex();_.emStrong.rDelimUnd=D(_.emStrong.rDelimUnd,"g").replace(/punct/g,_._punctuation).getRegex();_._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;_._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;_._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])?)+(?![-_])/;_.autolink=D(_.autolink).replace("scheme",_._scheme).replace("email",_._email).getRegex();_._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;_.tag=D(_.tag).replace("comment",_._comment).replace("attribute",_._attribute).getRegex();_._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;_._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;_._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;_.link=D(_.link).replace("label",_._label).replace("href",_._href).replace("title",_._title).getRegex();_.reflink=D(_.reflink).replace("label",_._label).replace("ref",$._label).getRegex();_.nolink=D(_.nolink).replace("ref",$._label).getRegex();_.reflinkSearch=D(_.reflinkSearch,"g").replace("reflink",_.reflink).replace("nolink",_.nolink).getRegex();_.normal=ae({},_);_.pedantic=ae({},_.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:D(/^!?\[(label)\]\((.*?)\)/).replace("label",_._label).getRegex(),reflink:D(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_._label).getRegex()});_.gfm=ae({},_.normal,{escape:D(_.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]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});_.gfm.url=D(_.gfm.url,"i").replace("email",_.gfm._extended_email).getRegex();_.breaks=ae({},_.gfm,{br:D(_.br).replace("{2,}","*").getRegex(),text:D(_.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function uo(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function nr(e){let t="",r,n,o=e.length;for(r=0;r<o;r++)n=e.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t}var ie=class{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ve,this.options.tokenizer=this.options.tokenizer||new Le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:$.normal,inline:_.normal};this.options.pedantic?(r.block=$.pedantic,r.inline=_.pedantic):this.options.gfm&&(r.block=$.gfm,this.options.breaks?r.inline=_.breaks:r.inline=_.gfm),this.tokenizer.rules=r}static get rules(){return{block:$,inline:_}}static lex(t,r){return new ie(r).lex(t)}static lexInline(t,r){return new ie(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(l,d,u)=>d+"    ".repeat(u.length));let n,o,i,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(n=l.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+n.raw,o.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+n.raw,o.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let l=1/0,d=t.slice(1),u;this.options.extensions.startBlock.forEach(function(c){u=c.call({lexer:this},d),typeof u=="number"&&u>=0&&(l=Math.min(l,u))}),l<1/0&&l>=0&&(i=t.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){o=r[r.length-1],s&&o.type==="paragraph"?(o.raw+=`
`+n.raw,o.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),s=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
`+n.raw,o.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(t){let l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r){this.inlineQueue.push({src:t,tokens:r})}inlineTokens(t,r=[]){let n,o,i,s=t,l,d,u;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+tr("a",l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,l.index)+"["+tr("a",l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(d||(u=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(n=c.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,s,u)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t,nr)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,nr))){t=t.substring(n.raw.length),r.push(n);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0,a=t.slice(1),p;this.options.extensions.startInline.forEach(function(f){p=f.call({lexer:this},a),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(i=t.substring(0,c+1))}if(n=this.tokenizer.inlineText(i,uo)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(u=n.raw.slice(-1)),d=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return r}},Ce=class{constructor(t){this.options=t||ve}code(t,r,n){let o=(r||"").match(/\S*/)[0];if(this.options.highlight){let i=this.options.highlight(t,o);i!=null&&i!==t&&(n=!0,t=i)}return t=t.replace(/\n$/,"")+`
`,o?'<pre><code class="'+this.options.langPrefix+B(o,!0)+'">'+(n?t:B(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:B(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t){return t}heading(t,r,n,o){if(this.options.headerIds){let i=this.options.headerPrefix+o.slug(n);return`<h${r} id="${i}">${t}</h${r}>
`}return`<h${r}>${t}</h${r}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(t,r,n){let o=r?"ol":"ul",i=r&&n!==1?' start="'+n+'"':"";return"<"+o+i+`>
`+t+"</"+o+`>
`}listitem(t){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+r+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
代码
`}tablecell(t,r){let n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+t+`</${n}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,r,n){if(t=Kt(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o='<a href="'+B(t)+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(t,r,n){if(t=Kt(this.options.sanitize,this.options.baseUrl,t),t===null)return n;let o=`<img src="${t}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(t){return t}},Ge=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,n){return""+n}image(t,r,n){return""+n}br(){return""}},Ve=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,r){let n=t,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[t];do o++,n=t+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[t]=o,this.seen[n]=0),n}slug(t,r={}){let n=this.serialize(t);return this.getNextSafeSlug(n,r.dryrun)}},se=class{constructor(t){this.options=t||ve,this.options.renderer=this.options.renderer||new Ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ge,this.slugger=new Ve}static parse(t,r){return new se(r).parse(t)}static parseInline(t,r){return new se(r).parseInline(t)}parse(t,r=!0){let n="",o,i,s,l,d,u,c,a,p,f,x,h,m,b,w,k,L,S,R,j=t.length;for(o=0;o<j;o++){if(f=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[f.type]&&(R=this.options.extensions.renderers[f.type].call({parser:this},f),R!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type))){n+=R||"";continue}switch(f.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(f.tokens),f.depth,ir(this.parseInline(f.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(f.text,f.lang,f.escaped);continue}case"table":{for(a="",c="",l=f.header.length,i=0;i<l;i++)c+=this.renderer.tablecell(this.parseInline(f.header[i].tokens),{header:!0,align:f.align[i]});for(a+=this.renderer.tablerow(c),p="",l=f.rows.length,i=0;i<l;i++){for(u=f.rows[i],c="",d=u.length,s=0;s<d;s++)c+=this.renderer.tablecell(this.parseInline(u[s].tokens),{header:!1,align:f.align[s]});p+=this.renderer.tablerow(c)}n+=this.renderer.table(a,p);continue}case"blockquote":{p=this.parse(f.tokens),n+=this.renderer.blockquote(p);continue}case"list":{for(x=f.ordered,h=f.start,m=f.loose,l=f.items.length,p="",i=0;i<l;i++)w=f.items[i],k=w.checked,L=w.task,b="",w.task&&(S=this.renderer.checkbox(k),m?w.tokens.length>0&&w.tokens[0].type==="paragraph"?(w.tokens[0].text=S+" "+w.tokens[0].text,w.tokens[0].tokens&&w.tokens[0].tokens.length>0&&w.tokens[0].tokens[0].type==="text"&&(w.tokens[0].tokens[0].text=S+" "+w.tokens[0].tokens[0].text)):w.tokens.unshift({type:"text",text:S}):b+=S),b+=this.parse(w.tokens,m),p+=this.renderer.listitem(b,L,k);n+=this.renderer.list(p,x,h);continue}case"html":{n+=this.renderer.html(f.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(f.tokens));continue}case"text":{for(p=f.tokens?this.parseInline(f.tokens):f.text;o+1<j&&t[o+1].type==="text";)f=t[++o],p+=`
`+(f.tokens?this.parseInline(f.tokens):f.text);n+=r?this.renderer.paragraph(p):p;continue}default:{let O='Token with "'+f.type+'" type was not found.';if(this.options.silent){console.error(O);return}else throw new Error(O)}}}return n}parseInline(t,r){r=r||this.renderer;let n="",o,i,s,l=t.length;for(o=0;o<l;o++){if(i=t[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(s=this.options.extensions.renderers[i.type].call({parser:this},i),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){n+=s||"";continue}switch(i.type){case"escape":{n+=r.text(i.text);break}case"html":{n+=r.html(i.text);break}case"link":{n+=r.link(i.href,i.title,this.parseInline(i.tokens,r));break}case"image":{n+=r.image(i