@nuxt/devtools-nightly 3.2.1-29532105.902c60c → 3.2.2-29533025.f0ee75a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +79 -46
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-jnbqrgps.js +1 -0
- package/dist/client/_nuxt/_plugin-vue_export-helper-myijwyyb.js +1 -0
- package/dist/client/_nuxt/analyze-build-c3vdx12p.js +1 -0
- package/dist/client/_nuxt/assets-myudvi12.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/0cbe35e7-05e8-4736-a404-4bc19984a3e5.json +1 -0
- package/dist/client/_nuxt/client-ea5fdhj9.js +2 -0
- package/dist/client/_nuxt/{client-cbmkjf3j.js → client-lfu9nb62.js} +1 -1
- package/dist/client/_nuxt/code-diff-otsxuk81.js +8 -0
- package/dist/client/_nuxt/code-snippets-c0ulfayj.js +1 -0
- package/dist/client/_nuxt/components-dwnwjv62.js +1 -0
- package/dist/client/_nuxt/composable-item-jjp1tvft.js +1 -0
- package/dist/client/_nuxt/custom-_name_-k9wxhx5t.js +1 -0
- package/dist/client/_nuxt/data-schema-button-fk6ozqve.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-mi3x7oeb.js +2 -0
- package/dist/client/_nuxt/debug-jzrj2rrq.js +1 -0
- package/dist/client/_nuxt/default-n9xykcpp.js +1 -0
- package/dist/client/_nuxt/dev-auth-jrf61eu0.js +1 -0
- package/dist/client/_nuxt/dist-h291wass.js +1 -0
- package/dist/client/_nuxt/dist-jq34z2yz.js +1 -0
- package/dist/client/_nuxt/{duration-display-dhj2ifr1.js → duration-display-k6iuyk4f.js} +1 -1
- package/dist/client/_nuxt/error-404-b375yxaj.js +1 -0
- package/dist/client/_nuxt/error-404.css-k620a6z0.css +1 -0
- package/dist/client/_nuxt/error-500-marpmos8.js +1 -0
- package/dist/client/_nuxt/error-500.css-j1xt9kl6.css +1 -0
- package/dist/client/_nuxt/error-f0x29wdg.js +9 -0
- package/dist/client/_nuxt/filepath-item-e4nchqwg.js +1 -0
- package/dist/client/_nuxt/full-ix5b85yu.js +1 -0
- package/dist/client/_nuxt/head-k6pu038r.js +1 -0
- package/dist/client/_nuxt/help-fab-hk76lwiw.js +1 -0
- package/dist/client/_nuxt/hooks-oamlzps1.js +1 -0
- package/dist/client/_nuxt/imports-rq4f924m.js +1 -0
- package/dist/client/_nuxt/jka6g0q4.js +4 -0
- package/dist/client/_nuxt/launch-page-k1lwfnm2.js +1 -0
- package/dist/client/_nuxt/modules-fev9bjof.js +1 -0
- package/dist/client/_nuxt/nbadge-h59v1exj.js +1 -0
- package/dist/client/_nuxt/nbutton-m0kqfedx.js +1 -0
- package/dist/client/_nuxt/ncard-qqqgbjy9.js +1 -0
- package/dist/client/_nuxt/ncheckbox-knbe2cxv.js +1 -0
- package/dist/client/_nuxt/{ncode-block-j2hcqwrp.js → ncode-block-o9sq6td7.js} +1 -1
- package/dist/client/_nuxt/ndrawer-ufyhcx08.js +1 -0
- package/dist/client/_nuxt/ndropdown-lkmzobqs.js +1 -0
- package/dist/client/_nuxt/nicon-j0r9gdjm.js +1 -0
- package/dist/client/_nuxt/{nicon-title-hrj2h1mn.js → nicon-title-ggx25xp9.js} +1 -1
- package/dist/client/_nuxt/nlink-hz4zwb3c.js +1 -0
- package/dist/client/_nuxt/{nmarkdown-ftmgc061.js → nmarkdown-nsbirjtv.js} +1 -1
- package/dist/client/_nuxt/nnavbar-b0i34u17.js +1 -0
- package/dist/client/_nuxt/none-bfunqbwh.js +1 -0
- package/dist/client/_nuxt/npanel-grids-m4ogaoh1.js +1 -0
- package/dist/client/_nuxt/nsection-block-dzbgwc4z.js +1 -0
- package/dist/client/_nuxt/nselect-ne66fzrs.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-jgvac6a8.js +1 -0
- package/dist/client/_nuxt/nswitch-abl34kow.js +1 -0
- package/dist/client/_nuxt/ntext-input-ozkk5xro.js +1 -0
- package/dist/client/_nuxt/nuxt-h34yfo3l.js +1 -0
- package/dist/client/_nuxt/nuxt-link-lrojf3ui.js +1 -0
- package/dist/client/_nuxt/open-graph-jokpmi3z.js +3 -0
- package/dist/client/_nuxt/overview-b0qp846c.js +1 -0
- package/dist/client/_nuxt/pages-heq5sr3n.js +1 -0
- package/dist/client/_nuxt/pages-nev63916.js +1 -0
- package/dist/client/_nuxt/payload-cwkdgfbg.js +1 -0
- package/dist/client/_nuxt/pinia-cmp1aao2.js +1 -0
- package/dist/client/_nuxt/plugins-h6nd4bpq.js +1 -0
- package/dist/client/_nuxt/ready-mmkdpbhg.js +1 -0
- package/dist/client/_nuxt/render-tree-c25vnw9j.js +1 -0
- package/dist/client/_nuxt/runtime-configs-oyvmfkja.js +1 -0
- package/dist/client/_nuxt/server-discovery-k4kknv5h.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-heqgxrjl.js +1 -0
- package/dist/client/_nuxt/server-routes-bgud29n1.js +7 -0
- package/dist/client/_nuxt/server-tasks-kx1cj481.js +1 -0
- package/dist/client/_nuxt/settings-iudhxqb4.js +1 -0
- package/dist/client/_nuxt/splitpanes.es-gcrxxdgy.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-ivp3f076.js +1 -0
- package/dist/client/_nuxt/state-b65zn1p8.js +1 -0
- package/dist/client/_nuxt/state-components-gdb1hu1j.js +1 -0
- package/dist/client/_nuxt/state-editor-egz1k0a8.js +1 -0
- package/dist/client/_nuxt/state-modules-dyb3mv6i.js +1 -0
- package/dist/client/_nuxt/state-routes-ovtjymzc.js +1 -0
- package/dist/client/_nuxt/state-tabs-jkd7jbwg.js +1 -0
- package/dist/client/_nuxt/storage-noqjkcnn.js +1 -0
- package/dist/client/_nuxt/storage-options-os0x8zby.js +1 -0
- package/dist/client/_nuxt/telemetry-pccqt90w.js +1 -0
- package/dist/client/_nuxt/terminals-jwh8xdao.js +1 -0
- package/dist/client/_nuxt/timeline-nj0c9ow3.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-mfhoy4ux.js +1 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-ddj4xtqm.js → json-editor-vue-jlmu1vk1.js} +2 -2
- package/dist/client/_nuxt/vendor/{markdown-it-ew3lvn5m.js → markdown-it-ocmvh7ju.js} +1 -1
- package/dist/client/_nuxt/vendor/{unocss-f9yt86gg.js → unocss-o75ihzkt.js} +3 -3
- package/dist/client/_nuxt/virtual-files-nyi1q55e.js +1 -0
- package/dist/client/_nuxt/vue-devtools-b8p76ncm.js +3 -0
- package/dist/client/_nuxt/vue-router-fwt4i0j8.js +1 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-il5noocm.js → vue-virtual-scroller.esm-hq850jog.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +10 -10
- package/dist/client/_nuxt/__blank-may67yna.js +0 -1
- package/dist/client/_nuxt/analyze-build-ezjae6pi.js +0 -1
- package/dist/client/_nuxt/assets-cctzmb3x.js +0 -6
- package/dist/client/_nuxt/builds/meta/120300d9-6237-4cbf-ad2f-0d4c061b4d10.json +0 -1
- package/dist/client/_nuxt/code-diff-dj5abiya.js +0 -8
- package/dist/client/_nuxt/code-snippets-cgl6wpax.js +0 -1
- package/dist/client/_nuxt/components-gbus3qqv.js +0 -1
- package/dist/client/_nuxt/composable-item-gs2iudn4.js +0 -1
- package/dist/client/_nuxt/custom-_name_-m936a9yu.js +0 -1
- package/dist/client/_nuxt/data-schema-button-j6fxaw99.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-it2972mk.js +0 -2
- package/dist/client/_nuxt/debug-i1rscwhu.js +0 -1
- package/dist/client/_nuxt/default-fb125qds.js +0 -1
- package/dist/client/_nuxt/dist-joij2tdx.js +0 -1
- package/dist/client/_nuxt/error-404-m8kh5nuw.js +0 -1
- package/dist/client/_nuxt/error-404.css-hvuilq4i.css +0 -1
- package/dist/client/_nuxt/error-500-h85n6r14.js +0 -1
- package/dist/client/_nuxt/error-500.css-jc8udnlk.css +0 -1
- package/dist/client/_nuxt/error-l968gtru.js +0 -9
- package/dist/client/_nuxt/filepath-item-osqp88cx.js +0 -1
- package/dist/client/_nuxt/full-odhn7e61.js +0 -1
- package/dist/client/_nuxt/h4j7f5ai.js +0 -4
- package/dist/client/_nuxt/help-fab-bhtk9hzf.js +0 -1
- package/dist/client/_nuxt/hooks-hkx6shiy.js +0 -1
- package/dist/client/_nuxt/imports-nbrcx3j5.js +0 -1
- package/dist/client/_nuxt/launch-page-fyevedb0.js +0 -1
- package/dist/client/_nuxt/modules-kh9xciqf.js +0 -1
- package/dist/client/_nuxt/nbadge-ijsj8fjy.js +0 -1
- package/dist/client/_nuxt/ncheckbox-f4a8016e.js +0 -1
- package/dist/client/_nuxt/ndrawer-lh0r2gbb.js +0 -1
- package/dist/client/_nuxt/ndropdown-ef0253xr.js +0 -1
- package/dist/client/_nuxt/nlink-bsck6xne.js +0 -1
- package/dist/client/_nuxt/nnavbar-fdsyxwr6.js +0 -1
- package/dist/client/_nuxt/none-kpcjhluv.js +0 -1
- package/dist/client/_nuxt/nsection-block-kp1wt3o4.js +0 -1
- package/dist/client/_nuxt/nselect-cmll6q59.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-dueuo8rw.js +0 -1
- package/dist/client/_nuxt/nswitch-gqy4bgn3.js +0 -1
- package/dist/client/_nuxt/open-graph-ol89f0bf.js +0 -3
- package/dist/client/_nuxt/overview-m0pad0hl.js +0 -1
- package/dist/client/_nuxt/pages-bbrpp8du.js +0 -1
- package/dist/client/_nuxt/pages-cry23sym.js +0 -1
- package/dist/client/_nuxt/payload-bhrm3gbm.js +0 -1
- package/dist/client/_nuxt/pinia-bcnuwvzr.js +0 -1
- package/dist/client/_nuxt/plugins-k9rqnu6h.js +0 -1
- package/dist/client/_nuxt/render-tree-fd08tpf3.js +0 -1
- package/dist/client/_nuxt/runtime-configs-kagn8z75.js +0 -1
- package/dist/client/_nuxt/server-discovery-ja6p66g6.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-b6nweyxn.js +0 -1
- package/dist/client/_nuxt/server-routes-dtwlhsgf.js +0 -7
- package/dist/client/_nuxt/server-tasks-lboebplp.js +0 -1
- package/dist/client/_nuxt/settings-joqzffm3.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-mphoqupg.js +0 -1
- package/dist/client/_nuxt/state-components-b5shg9ni.js +0 -1
- package/dist/client/_nuxt/state-editor-gc0bkewv.js +0 -1
- package/dist/client/_nuxt/state-modules-e2s3wq2g.js +0 -1
- package/dist/client/_nuxt/storage-m3jg7c3a.js +0 -1
- package/dist/client/_nuxt/terminals-hsjdjxac.js +0 -1
- package/dist/client/_nuxt/timeline-nn4tvvo6.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-cyizum7d.js +0 -1
- package/dist/client/_nuxt/virtual-files-ds4udxjo.js +0 -1
- package/dist/client/_nuxt/vue-devtools-hovopvyk.js +0 -3
- /package/dist/client/_nuxt/{color-k274hmrf.js → color-m9fh6h3t.js} +0 -0
- /package/dist/client/_nuxt/{composables-g8w9dpc0.js → composables-k2ak4j8d.js} +0 -0
- /package/dist/client/_nuxt/{constants-i6giw94a.js → constants-ihoovckn.js} +0 -0
- /package/dist/client/_nuxt/{dist-k9rc0n5t.js → dist-9xqq72tk.js} +0 -0
- /package/dist/client/_nuxt/vendor/{quicktype-core-f78dz8oi.js → quicktype-core-jebn1o7i.js} +0 -0
- /package/dist/client/_nuxt/vendor/{shiki-kunkft64.js → shiki-jnavg768.js} +0 -0
- /package/dist/client/_nuxt/vendor/{vis-ccj7spt3.js → vis-p9fufs7k.js} +0 -0
- /package/dist/client/_nuxt/vendor/{xterm-b39oya8c.js → xterm-du7kv949.js} +0 -0
|
@@ -11,4 +11,4 @@ import{r as e}from"../rolldown-runtime-oipoa1or.js";var t={};function n(e){let n
|
|
|
11
11
|
`:`>`,i},F.prototype.renderInline=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;i[o]===void 0?r+=this.renderToken(e,a,t):r+=i[o](e,a,t,n,this)}return r},F.prototype.renderInlineAsText=function(e,t,n){let r=``;for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case`text`:r+=e[i].content;break;case`image`:r+=this.renderInlineAsText(e[i].children,t,n);break;case`html_inline`:case`html_block`:r+=e[i].content;break;case`softbreak`:case`hardbreak`:r+=`
|
|
12
12
|
`;break;default:}return r},F.prototype.render=function(e,t,n){let r=``,i=this.rules;for(let a=0,o=e.length;a<o;a++){let o=e[a].type;o===`inline`?r+=this.renderInline(e[a].children,t,n):i[o]===void 0?r+=this.renderToken(e,a,t,n):r+=i[o](e,a,t,n,this)}return r};function I(){this.__rules__=[],this.__cache__=null}I.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},I.prototype.__compile__=function(){let e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},I.prototype.at=function(e,t,n){let r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},I.prototype.before=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},I.prototype.after=function(e,t,n,r){let i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},I.prototype.push=function(e,t,n){let r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},I.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},I.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},I.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let n=[];return e.forEach(function(e){let r=this.__find__(e);if(r<0){if(t)return;throw Error(`Rules manager: invalid rule name `+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},I.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function L(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=``,this.markup=``,this.info=``,this.meta=null,this.block=!1,this.hidden=!1}L.prototype.attrIndex=function(e){if(!this.attrs)return-1;let t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},L.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},L.prototype.attrSet=function(e,t){let n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},L.prototype.attrGet=function(e){let t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},L.prototype.attrJoin=function(e,t){let n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+` `+t};function Ge(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ge.prototype.Token=L;var Ke=/\r\n?|\n/g,qe=/\0/g;function Je(e){let t;t=e.src.replace(Ke,`
|
|
13
13
|
`),t=t.replace(qe,`�`),e.src=t}function Ye(e){let t;e.inlineMode?(t=new e.Token(`inline`,``,0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Xe(e){let t=e.tokens;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.type===`inline`&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Ze(e){return/^<a[>\s]/i.test(e)}function Qe(e){return/^<\/a\s*>/i.test(e)}function $e(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!==`inline`||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let a=r.length-1;a>=0;a--){let o=r[a];if(o.type===`link_close`){for(a--;r[a].level!==o.level&&r[a].type!==`link_open`;)a--;continue}if(o.type===`html_inline`&&(Ze(o.content)&&i>0&&i--,Qe(o.content)&&i++),!(i>0)&&o.type===`text`&&e.md.linkify.test(o.content)){let i=o.content,s=e.md.linkify.match(i),c=[],l=o.level,u=0;s.length>0&&s[0].index===0&&a>0&&r[a-1].type===`text_special`&&(s=s.slice(1));for(let t=0;t<s.length;t++){let n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?s[t].schema===`mailto:`&&!/^mailto:/i.test(a)?e.md.normalizeLinkText(`mailto:`+a).replace(/^mailto:/,``):e.md.normalizeLinkText(a):e.md.normalizeLinkText(`http://`+a).replace(/^http:\/\//,``);let o=s[t].index;if(o>u){let t=new e.Token(`text`,``,0);t.content=i.slice(u,o),t.level=l,c.push(t)}let d=new e.Token(`link_open`,`a`,1);d.attrs=[[`href`,r]],d.level=l++,d.markup=`linkify`,d.info=`auto`,c.push(d);let f=new e.Token(`text`,``,0);f.content=a,f.level=l,c.push(f);let p=new e.Token(`link_close`,`a`,-1);p.level=--l,p.markup=`linkify`,p.info=`auto`,c.push(p),u=s[t].lastIndex}if(u<i.length){let t=new e.Token(`text`,``,0);t.content=i.slice(u),t.level=l,c.push(t)}t[n].children=r=De(r,a,c)}}}}var et=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tt=/\((c|tm|r)\)/i,nt=/\((c|tm|r)\)/gi,rt={c:`©`,r:`®`,tm:`™`};function it(e,t){return rt[t.toLowerCase()]}function at(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&(r.content=r.content.replace(nt,it)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function ot(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];r.type===`text`&&!t&&et.test(r.content)&&(r.content=r.content.replace(/\+-/g,`±`).replace(/\.{2,}/g,`…`).replace(/([?!])…/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---(?=[^-]|$)/gm,`$1—`).replace(/(^|\s)--(?=\s|$)/gm,`$1–`).replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,`$1–`)),r.type===`link_open`&&r.info===`auto`&&t--,r.type===`link_close`&&r.info===`auto`&&t++}}function st(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type===`inline`&&(tt.test(e.tokens[t].content)&&at(e.tokens[t].children),et.test(e.tokens[t].content)&&ot(e.tokens[t].children))}var ct=/['"]/,lt=/['"]/g,ut=`’`;function R(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function dt(e,t){let n,r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,a.type!==`text`)continue;let s=a.content,c=0,l=s.length;OUTER:for(;c<l;){lt.lastIndex=c;let u=lt.exec(s);if(!u)break;let d=!0,f=!0;c=u.index+1;let p=u[0]===`'`,m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(c<l)h=s.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type===`softbreak`||e[n].type===`hardbreak`);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}let g=M(m)||j(String.fromCharCode(m)),_=M(h)||j(String.fromCharCode(h)),v=A(m),y=A(h);if(y?d=!1:_&&(v||g||(d=!1)),v?f=!1:g&&(y||_||(f=!1)),h===34&&u[0]===`"`&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=_),!d&&!f){p&&(a.content=R(a.content,u.index,ut));continue}if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<o)break;if(d.single===p&&r[n].level===o){d=r[n];let o,f;p?(o=t.md.options.quotes[2],f=t.md.options.quotes[3]):(o=t.md.options.quotes[0],f=t.md.options.quotes[1]),a.content=R(a.content,u.index,f),e[d.token].content=R(e[d.token].content,d.pos,o),c+=f.length-1,d.token===i&&(c+=o.length-1),s=a.content,l=s.length,r.length=n;continue OUTER}}d?r.push({token:i,pos:u.index,single:p,level:o}):f&&p&&(a.content=R(a.content,u.index,ut))}}}function ft(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!==`inline`||!ct.test(e.tokens[t].content)||dt(e.tokens[t].children,e)}function pt(e){let t,n,r=e.tokens,i=r.length;for(let e=0;e<i;e++){if(r[e].type!==`inline`)continue;let i=r[e].children,a=i.length;for(t=0;t<a;t++)i[t].type===`text_special`&&(i[t].type=`text`);for(t=n=0;t<a;t++)i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}var mt=[[`normalize`,Je],[`block`,Ye],[`inline`,Xe],[`linkify`,$e],[`replacements`,st],[`smartquotes`,ft],[`text_join`,pt]];function ht(){this.ruler=new I;for(let e=0;e<mt.length;e++)this.ruler.push(mt[e][0],mt[e][1])}ht.prototype.process=function(e){let t=this.ruler.getRules(``);for(let n=0,r=t.length;n<r;n++)t[n](e)},ht.prototype.State=Ge;function z(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=`root`,this.level=0;let i=this.src;for(let e=0,t=0,n=0,r=0,a=i.length,o=!1;t<a;t++){let s=i.charCodeAt(t);if(!o)if(k(s)){n++,s===9?r+=4-r%4:r++;continue}else o=!0;(s===10||t===a-1)&&(s!==10&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),o=!1,n=0,r=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}z.prototype.push=function(e,t,n){let r=new L(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},z.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},z.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},z.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&k(this.src.charCodeAt(e));e++);return e},z.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!k(this.src.charCodeAt(--e)))return e+1;return e},z.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},z.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},z.prototype.getLines=function(e,t,n,r){if(e>=t)return``;let i=Array(t-e);for(let a=0,o=e;o<t;o++,a++){let e=0,s=this.bMarks[o],c=s,l;for(l=o+1<t||r?this.eMarks[o]+1:this.eMarks[o];c<l&&e<n;){let t=this.src.charCodeAt(c);if(k(t))t===9?e+=4-(e+this.bsCount[o])%4:e++;else if(c-s<this.tShift[o])e++;else break;c++}e>n?i[a]=Array(e-n+1).join(` `)+this.src.slice(c,l):i[a]=this.src.slice(c,l)}return i.join(``)},z.prototype.Token=L;var gt=65536;function _t(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function vt(e){let t=[],n=e.length,r=0,i=e.charCodeAt(r),a=!1,o=0,s=``;for(;r<n;)i===124&&(a?(s+=e.substring(o,r-1),o=r):(t.push(s+e.substring(o,r)),s=``,o=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(s+e.substring(o)),t}function yt(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;let o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;let s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!k(s)||o===45&&k(s))return!1;for(;a<e.eMarks[i];){let t=e.src.charCodeAt(a);if(t!==124&&t!==45&&t!==58&&!k(t))return!1;a++}let c=_t(e,t+1),l=c.split(`|`),u=[];for(let e=0;e<l.length;e++){let t=l[e].trim();if(!t){if(e===0||e===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;t.charCodeAt(t.length-1)===58?u.push(t.charCodeAt(0)===58?`center`:`right`):t.charCodeAt(0)===58?u.push(`left`):u.push(``)}if(c=_t(e,t).trim(),c.indexOf(`|`)===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=vt(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop();let d=l.length;if(d===0||d!==u.length)return!1;if(r)return!0;let f=e.parentType;e.parentType=`table`;let p=e.md.block.ruler.getRules(`blockquote`),m=e.push(`table_open`,`table`,1),h=[t,0];m.map=h;let g=e.push(`thead_open`,`thead`,1);g.map=[t,t+1];let _=e.push(`tr_open`,`tr`,1);_.map=[t,t+1];for(let t=0;t<l.length;t++){let n=e.push(`th_open`,`th`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t].trim(),r.children=[],e.push(`th_close`,`th`,-1)}e.push(`tr_close`,`tr`,-1),e.push(`thead_close`,`thead`,-1);let v,y=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r||(c=_t(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(l=vt(c),l.length&&l[0]===``&&l.shift(),l.length&&l[l.length-1]===``&&l.pop(),y+=d-l.length,y>gt))break;if(i===t+2){let n=e.push(`tbody_open`,`tbody`,1);n.map=v=[t+2,0]}let a=e.push(`tr_open`,`tr`,1);a.map=[i,i+1];for(let t=0;t<d;t++){let n=e.push(`td_open`,`td`,1);u[t]&&(n.attrs=[[`style`,`text-align:`+u[t]]]);let r=e.push(`inline`,``,0);r.content=l[t]?l[t].trim():``,r.children=[],e.push(`td_close`,`td`,-1)}e.push(`tr_close`,`tr`,-1)}return v&&(e.push(`tbody_close`,`tbody`,-1),v[1]=i),e.push(`table_close`,`table`,-1),h[1]=i,e.parentType=f,e.line=i,!0}function bt(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;let a=e.push(`code_block`,`code`,0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
14
|
-
`,a.map=[t,e.line],!0}function xt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+(f?1:0);let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function St(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(k(t))t===9?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(n?1:0),l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Ct(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!k(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function wt(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!k(e.src.charCodeAt(r))?-1:r}function Tt(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!k(a))?-1:i}function Et(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Dt(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Tt(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=wt(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,ee=e.tShift[c],te=e.sCount[c],ne=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ne,e.tShift[c]=ee,e.sCount[c]=te,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let re=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){re=!0;break}if(re)break;if(d){if(p=Tt(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=wt(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Et(e,h),!0}function Ot(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}else if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!k(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!k(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&k(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&k(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=N(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var kt=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),At=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,jt=RegExp(`^(?:`+At+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Mt=RegExp(`^(?:`+At+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),B=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+kt.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Mt.source+`\\s*$`),/^$/,!1]];function Nt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<B.length&&!B[s][0].test(o);s++);if(s===B.length)return!1;if(r)return B[s][2];let c=t+1;if(!B[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),B[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function Pt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!k(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&k(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=e.src.slice(i,a).trim(),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Ft(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;let c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function It(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var V=[[`table`,yt,[`paragraph`,`reference`]],[`code`,bt],[`fence`,xt,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,St,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Ct,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Dt,[`paragraph`,`reference`,`blockquote`]],[`reference`,Ot],[`html_block`,Nt,[`paragraph`,`reference`,`blockquote`]],[`heading`,Pt,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Ft],[`paragraph`,It]];function H(){this.ruler=new I;for(let e=0;e<V.length;e++)this.ruler.push(V[e][0],V[e][1],{alt:(V[e][2]||[]).slice()})}H.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},H.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},H.prototype.State=z;function U(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}U.prototype.pushPending=function(){let e=new L(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},U.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new L(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},U.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32,c=M(i)||j(String.fromCharCode(i)),l=M(s)||j(String.fromCharCode(s)),u=A(i),d=A(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},U.prototype.Token=L;function Lt(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Rt(e,t){let n=e.pos;for(;n<e.posMax&&!Lt(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var zt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Bt(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(zt);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;s=s.replace(/\*+$/,``);let c=e.md.normalizeLink(s);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,c]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function Vt(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n<i&&k(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Ht=[];for(let e=0;e<256;e++)Ht.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Ht[e.charCodeAt(0)]=1});function Ut(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),k(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&Ht[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Wt(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Gt(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Kt(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function qt(e){let t=e.tokens_meta,n=e.tokens_meta.length;Kt(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Kt(e,t[r].delimiters)}var Jt={tokenize:Gt,postProcess:qt};function Yt(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Xt(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Zt(e){let t=e.tokens_meta,n=e.tokens_meta.length;Xt(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Xt(e,t[r].delimiters)}var Qt={tokenize:Yt,postProcess:Zt};function $t(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!k(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!k(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!k(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[N(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function en(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!k(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!k(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!k(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[N(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var tn=/^([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])?)*)$/,nn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function rn(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(nn.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(tn.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function an(e){return/^<a[>\s]/i.test(e)}function on(e){return/^<\/a\s*>/i.test(e)}function sn(e){let t=e|32;return t>=97&&t<=122}function cn(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!sn(i))return!1;let a=e.src.slice(r).match(jt);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],an(t.content)&&e.linkLevel++,on(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var ln=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,un=/^&([a-z][a-z0-9]{1,31});/i;function dn(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ln);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Oe(t)?E(t):E(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(un);if(r){let n=xe(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function fn(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function pn(e){let t=e.tokens_meta,n=e.tokens_meta.length;fn(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&fn(t[e].delimiters)}function mn(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var hn=[[`text`,Rt],[`linkify`,Bt],[`newline`,Vt],[`escape`,Ut],[`backticks`,Wt],[`strikethrough`,Jt.tokenize],[`emphasis`,Qt.tokenize],[`link`,$t],[`image`,en],[`autolink`,rn],[`html_inline`,cn],[`entity`,dn]],gn=[[`balance_pairs`,pn],[`strikethrough`,Jt.postProcess],[`emphasis`,Qt.postProcess],[`fragments_join`,mn]];function W(){this.ruler=new I;for(let e=0;e<hn.length;e++)this.ruler.push(hn[e][0],hn[e][1]);this.ruler2=new I;for(let e=0;e<gn.length;e++)this.ruler2.push(gn[e][0],gn[e][1])}W.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},W.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},W.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},W.prototype.State=U;function _n(e){let t={};e||={},t.src_Any=te.source,t.src_Cc=ne.source,t.src_Z=ae.source,t.src_P=b.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function vn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function G(e){return Object.prototype.toString.call(e)}function yn(e){return G(e)===`[object String]`}function bn(e){return G(e)===`[object Object]`}function xn(e){return G(e)===`[object RegExp]`}function Sn(e){return G(e)===`[object Function]`}function Cn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var wn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Tn(e){return Object.keys(e||{}).reduce(function(e,t){return e||wn.hasOwnProperty(t)},!1)}var En={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Dn=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,On=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function kn(e){e.__index__=-1,e.__text_cache__=``}function An(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function jn(){return function(e,t){t.normalize(e)}}function K(e){let t=e.re=_n(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Dn),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,bn(n)){xn(n.validate)?r.validate=An(n.validate):Sn(n.validate)?r.validate=n.validate:a(t,n),Sn(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=jn();return}if(yn(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:jn()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Cn).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),kn(e)}function Mn(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Nn(e,t){let n=new Mn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function q(e,t){if(!(this instanceof q))return new q(e,t);t||Tn(e)&&(t=e,e={}),this.__opts__=vn({},wn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=vn({},En,e),this.__compiled__={},this.__tlds__=On,this.__tlds_replaced__=!1,this.re={},K(this)}q.prototype.add=function(e,t){return this.__schemas__[e]=t,K(this),this},q.prototype.set=function(e){return this.__opts__=vn(this.__opts__,e),this},q.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,c,l;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__=``,this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&(l=e.indexOf(`@`),l>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},q.prototype.pretest=function(e){return this.re.pretest.test(e)},q.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},q.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Nn(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Nn(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},q.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Nn(this,0)):null},q.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),K(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,K(this),this)},q.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},q.prototype.onCompile=function(){};var J=2147483647,Y=36,Pn=1,X=26,Fn=38,In=700,Ln=72,Rn=128,zn=`-`,Bn=/^xn--/,Vn=/[^\0-\x7F]/,Hn=/[\x2E\u3002\uFF0E\uFF61]/g,Un={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Wn=Y-Pn,Z=Math.floor,Gn=String.fromCharCode;function Q(e){throw RangeError(Un[e])}function Kn(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function qn(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Hn,`.`);let i=Kn(e.split(`.`),t).join(`.`);return r+i}function Jn(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var Yn=e=>String.fromCodePoint(...e),Xn=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Y},Zn=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Qn=function(e,t,n){let r=0;for(e=n?Z(e/In):e>>1,e+=Z(e/t);e>Wn*X>>1;r+=Y)e=Z(e/Wn);return Z(r+(Wn+1)*e/(e+Fn))},$n=function(e){let t=[],n=e.length,r=0,i=Rn,a=Ln,o=e.lastIndexOf(zn);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Q(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Y;;i+=Y){s>=n&&Q(`invalid-input`);let o=Xn(e.charCodeAt(s++));o>=Y&&Q(`invalid-input`),o>Z((J-r)/t)&&Q(`overflow`),r+=o*t;let c=i<=a?Pn:i>=a+X?X:i-a;if(o<c)break;let l=Y-c;t>Z(J/l)&&Q(`overflow`),t*=l}let c=t.length+1;a=Qn(r-o,c,o==0),Z(r/c)>J-i&&Q(`overflow`),i+=Z(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},er=function(e){let t=[];e=Jn(e);let n=e.length,r=Rn,i=0,a=Ln;for(let n of e)n<128&&t.push(Gn(n));let o=t.length,s=o;for(o&&t.push(zn);s<n;){let n=J;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Z((J-i)/c)&&Q(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>J&&Q(`overflow`),n===r){let e=i;for(let n=Y;;n+=Y){let r=n<=a?Pn:n>=a+X?X:n-a;if(e<r)break;let i=e-r,o=Y-r;t.push(Gn(Zn(r+i%o,0))),e=Z(i/o)}t.push(Gn(Zn(e,0))),a=Qn(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},tr={version:`2.3.1`,ucs2:{decode:Jn,encode:Yn},decode:$n,encode:er,toASCII:function(e){return qn(e,function(e){return Vn.test(e)?`xn--`+er(e):e})},toUnicode:function(e){return qn(e,function(e){return Bn.test(e)?$n(e.slice(4).toLowerCase()):e})}},nr={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},rr=/^(vbscript|javascript|file|data):/,ir=/^data:image\/(gif|png|jpeg|webp);/;function ar(e){let t=e.trim().toLowerCase();return rr.test(t)?ir.test(t):!0}var or=[`http:`,`https:`,`mailto:`];function sr(e){let t=y(e,!0);if(t.hostname&&(!t.protocol||or.indexOf(t.protocol)>=0))try{t.hostname=tr.toASCII(t.hostname)}catch{}return o(s(t))}function cr(e){let t=y(e,!0);if(t.hostname&&(!t.protocol||or.indexOf(t.protocol)>=0))try{t.hostname=tr.toUnicode(t.hostname)}catch{}return r(s(t),r.defaultChars+`%`)}function $(e,t){if(!(this instanceof $))return new $(e,t);t||we(e)||(t=e||{},e=`default`),this.inline=new W,this.block=new H,this.core=new ht,this.renderer=new F,this.linkify=new q,this.validateLink=ar,this.normalizeLink=sr,this.normalizeLinkText=cr,this.utils=Se,this.helpers=T({},We),this.options={},this.configure(e),t&&this.set(t)}$.prototype.set=function(e){return T(this.options,e),this},$.prototype.configure=function(e){let t=this;if(we(e)){let t=e;if(e=nr[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},$.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},$.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},$.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},$.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},$.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},$.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},$.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var lr=e({default:()=>$});export{lr as t};
|
|
14
|
+
`,a.map=[t,e.line],!0}function xt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;let o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let c=i-s;if(c<3)return!1;let l=e.src.slice(s,i),u=e.src.slice(i,a);if(o===96&&u.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],i<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-s<c)&&(i=e.skipSpaces(i),!(i<a)))){f=!0;break}c=e.sCount[t],e.line=d+(f?1:0);let p=e.push(`fence`,`code`,0);return p.info=u,p.content=e.getLines(t+1,d,c,!0),p.markup=l,p.map=[t,e.line],!0}function St(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;let s=[],c=[],l=[],u=[],d=e.md.block.ruler.getRules(`blockquote`),f=e.parentType;e.parentType=`blockquote`;let p=!1,m;for(m=t;m<n;m++){let t=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i>=a)break;if(e.src.charCodeAt(i++)===62&&!t){let t=e.sCount[m]+1,n,r;e.src.charCodeAt(i)===32?(i++,t++,r=!1,n=!0):e.src.charCodeAt(i)===9?(n=!0,(e.bsCount[m]+t)%4==3?(i++,t++,r=!1):r=!0):n=!1;let o=t;for(s.push(e.bMarks[m]),e.bMarks[m]=i;i<a;){let t=e.src.charCodeAt(i);if(k(t))t===9?o+=4-(o+e.bsCount[m]+(r?1:0))%4:o++;else break;i++}p=i>=a,c.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(n?1:0),l.push(e.sCount[m]),e.sCount[m]=o-t,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let r=!1;for(let t=0,i=d.length;t<i;t++)if(d[t](e,m,n,!0)){r=!0;break}if(r){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),c.push(e.bsCount[m]),u.push(e.tShift[m]),l.push(e.sCount[m]),e.sCount[m]=-1}let h=e.blkIndent;e.blkIndent=0;let g=e.push(`blockquote_open`,`blockquote`,1);g.markup=`>`;let _=[t,0];g.map=_,e.md.block.tokenize(e,t,m);let v=e.push(`blockquote_close`,`blockquote`,-1);v.markup=`>`,e.lineMax=o,e.parentType=f,_[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=l[n],e.bsCount[n+t]=c[n];return e.blkIndent=h,!0}function Ct(e,t,n,r){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a<i;){let t=e.src.charCodeAt(a++);if(t!==o&&!k(t))return!1;t===o&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;let c=e.push(`hr`,`hr`,0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(o)),!0}function wt(e,t){let n=e.eMarks[t],r=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(r++);return i!==42&&i!==45&&i!==43||r<n&&!k(e.src.charCodeAt(r))?-1:r}function Tt(e,t){let n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],i=n;if(i+1>=r)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=r)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-n>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<r&&(a=e.src.charCodeAt(i),!k(a))?-1:i}function Et(e,t){let n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type===`paragraph_open`&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Dt(e,t,n,r){let i,a,o,s,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let u=!1;r&&e.parentType===`paragraph`&&e.sCount[c]>=e.blkIndent&&(u=!0);let d,f,p;if((p=Tt(e,c))>=0){if(d=!0,o=e.bMarks[c]+e.tShift[c],f=Number(e.src.slice(o,p-1)),u&&f!==1)return!1}else if((p=wt(e,c))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(r)return!0;let m=e.src.charCodeAt(p-1),h=e.tokens.length;d?(s=e.push(`ordered_list_open`,`ol`,1),f!==1&&(s.attrs=[[`start`,f]])):s=e.push(`bullet_list_open`,`ul`,1);let g=[c,0];s.map=g,s.markup=String.fromCharCode(m);let _=!1,v=e.md.block.ruler.getRules(`list`),y=e.parentType;for(e.parentType=`list`;c<n;){a=p,i=e.eMarks[c];let t=e.sCount[c]+p-(e.bMarks[c]+e.tShift[c]),r=t;for(;a<i;){let t=e.src.charCodeAt(a);if(t===9)r+=4-(r+e.bsCount[c])%4;else if(t===32)r++;else break;a++}let u=a,f;f=u>=i?1:r-t,f>4&&(f=1);let h=t+f;s=e.push(`list_item_open`,`li`,1),s.markup=String.fromCharCode(m);let g=[c,0];s.map=g,d&&(s.info=e.src.slice(o,p-1));let y=e.tight,ee=e.tShift[c],te=e.sCount[c],ne=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[c]=u-e.bMarks[c],e.sCount[c]=r,u>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||_)&&(l=!1),_=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ne,e.tShift[c]=ee,e.sCount[c]=te,e.tight=y,s=e.push(`list_item_close`,`li`,-1),s.markup=String.fromCharCode(m),c=e.line,g[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let re=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,c,n,!0)){re=!0;break}if(re)break;if(d){if(p=Tt(e,c),p<0)break;o=e.bMarks[c]+e.tShift[c]}else if(p=wt(e,c),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return s=d?e.push(`ordered_list_close`,`ol`,-1):e.push(`bullet_list_close`,`ul`,-1),s.markup=String.fromCharCode(m),g[1]=c,e.line=c,e.parentType=y,l&&Et(e,h),!0}function Ot(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(t){let n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){let r=e.md.block.ruler.getRules(`reference`),i=e.parentType;e.parentType=`reference`;let a=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,t,n,!0)){a=!0;break}if(e.parentType=i,a)return null}let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(i,a+1)}let c=e.src.slice(i,a+1);a=c.length;let l=-1;for(i=1;i<a;i++){let e=c.charCodeAt(i);if(e===91)return!1;if(e===93){l=i;break}else if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(e===92&&(i++,i<a&&c.charCodeAt(i)===10)){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(i=l+2;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!k(e))break}let u=e.md.helpers.parseLinkDestination(c,i,a);if(!u.ok)return!1;let d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;let f=i,p=o,m=i;for(;i<a;i++){let e=c.charCodeAt(i);if(e===10){let e=s(o);e!==null&&(c+=e,a=c.length,o++)}else if(!k(e))break}let h=e.md.helpers.parseLinkTitle(c,i,a);for(;h.can_continue;){let t=s(o);if(t===null)break;c+=t,i=a,a=c.length,o++,h=e.md.helpers.parseLinkTitle(c,i,a,h)}let g;for(i<a&&m!==i&&h.ok?(g=h.str,i=h.pos):(g=``,i=f,o=p);i<a&&k(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10&&g)for(g=``,i=f,o=p;i<a&&k(c.charCodeAt(i));)i++;if(i<a&&c.charCodeAt(i)!==10)return!1;let _=N(c.slice(1,l));return _?r?!0:(e.env.references===void 0&&(e.env.references={}),e.env.references[_]===void 0&&(e.env.references[_]={title:g,href:d}),e.line=o,!0):!1}var kt=`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.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),At=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,jt=RegExp(`^(?:`+At+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`),Mt=RegExp(`^(?:`+At+`|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)`),B=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp(`^</?(`+kt.join(`|`)+`)(?=(\\s|/?>|$))`,`i`),/^$/,!0],[RegExp(Mt.source+`\\s*$`),/^$/,!1]];function Nt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s<B.length&&!B[s][0].test(o);s++);if(s===B.length)return!1;if(r)return B[s][2];let c=t+1;if(!B[s][1].test(o)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],a=e.eMarks[c],o=e.src.slice(i,a),B[s][1].test(o)){o.length!==0&&c++;break}}e.line=c;let l=e.push(`html_block`,``,0);return l.map=[t,c],l.content=e.getLines(t,c,e.blkIndent,!0),!0}function Pt(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i<a&&s<=6;)s++,o=e.src.charCodeAt(++i);if(s>6||i<a&&!k(o))return!1;if(r)return!0;a=e.skipSpacesBack(a,i);let c=e.skipCharsBack(a,35,i);c>i&&k(e.src.charCodeAt(c-1))&&(a=c),e.line=t+1;let l=e.push(`heading_open`,`h`+String(s),1);l.markup=`########`.slice(0,s),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=e.src.slice(i,a).trim(),u.map=[t,e.line],u.children=[];let d=e.push(`heading_close`,`h`+String(s),-1);return d.markup=`########`.slice(0,s),!0}function Ft(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`);if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.parentType;e.parentType=`paragraph`;let a=0,o,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(o===45||o===61)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;let c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let l=e.push(`heading_open`,`h`+String(a),1);l.markup=String.fromCharCode(o),l.map=[t,e.line];let u=e.push(`inline`,``,0);u.content=c,u.map=[t,e.line-1],u.children=[];let d=e.push(`heading_close`,`h`+String(a),-1);return d.markup=String.fromCharCode(o),e.parentType=i,!0}function It(e,t,n){let r=e.md.block.ruler.getRules(`paragraph`),i=e.parentType,a=t+1;for(e.parentType=`paragraph`;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,a,n,!0)){t=!0;break}if(t)break}let o=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;let s=e.push(`paragraph_open`,`p`,1);s.map=[t,e.line];let c=e.push(`inline`,``,0);return c.content=o,c.map=[t,e.line],c.children=[],e.push(`paragraph_close`,`p`,-1),e.parentType=i,!0}var V=[[`table`,yt,[`paragraph`,`reference`]],[`code`,bt],[`fence`,xt,[`paragraph`,`reference`,`blockquote`,`list`]],[`blockquote`,St,[`paragraph`,`reference`,`blockquote`,`list`]],[`hr`,Ct,[`paragraph`,`reference`,`blockquote`,`list`]],[`list`,Dt,[`paragraph`,`reference`,`blockquote`]],[`reference`,Ot],[`html_block`,Nt,[`paragraph`,`reference`,`blockquote`]],[`heading`,Pt,[`paragraph`,`reference`,`blockquote`]],[`lheading`,Ft],[`paragraph`,It]];function H(){this.ruler=new I;for(let e=0;e<V.length;e++)this.ruler.push(V[e][0],V[e][1],{alt:(V[e][2]||[]).slice()})}H.prototype.tokenize=function(e,t,n){let r=this.ruler.getRules(``),i=r.length,a=e.md.options.maxNesting,o=t,s=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=a){e.line=n;break}let t=e.line,c=!1;for(let a=0;a<i;a++)if(c=r[a](e,o,n,!1),c){if(t>=e.line)throw Error(`block rule didn't increment state.line`);break}if(!c)throw Error(`none of the block rules matched`);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o<n&&e.isEmpty(o)&&(s=!0,o++,e.line=o)}},H.prototype.parse=function(e,t,n,r){if(!e)return;let i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},H.prototype.State=z;function U(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=``,this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}U.prototype.pushPending=function(){let e=new L(`text`,``,0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=``,e},U.prototype.push=function(e,t,n){this.pending&&this.pushPending();let r=new L(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},U.prototype.scanDelims=function(e,t){let n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;let o=a-e,s=a<n?this.src.charCodeAt(a):32,c=M(i)||j(String.fromCharCode(i)),l=M(s)||j(String.fromCharCode(s)),u=A(i),d=A(s),f=!d&&(!l||u||c),p=!u&&(!c||d||l);return{can_open:f&&(t||!p||c),can_close:p&&(t||!f||l),length:o}},U.prototype.Token=L;function Lt(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Rt(e,t){let n=e.pos;for(;n<e.posMax&&!Lt(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}var zt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Bt(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let i=e.pending.match(zt);if(!i)return!1;let a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));let l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,l]],t.markup=`linkify`,t.info=`auto`;let n=e.push(`text`,``,0);n.content=e.md.normalizeLinkText(s);let r=e.push(`link_close`,`a`,-1);r.markup=`linkify`,r.info=`auto`}return e.pos+=s.length-a.length,!0}function Vt(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let t=r-1;for(;t>=1&&e.pending.charCodeAt(t-1)===32;)t--;e.pending=e.pending.slice(0,t),e.push(`hardbreak`,`br`,0)}else e.pending=e.pending.slice(0,-1),e.push(`softbreak`,`br`,0);else e.push(`softbreak`,`br`,0);for(n++;n<i&&k(e.src.charCodeAt(n));)n++;return e.pos=n,!0}var Ht=[];for(let e=0;e<256;e++)Ht.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){Ht[e.charCodeAt(0)]=1});function Ut(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push(`hardbreak`,`br`,0),n++;n<r&&(i=e.src.charCodeAt(n),k(i));)n++;return e.pos=n,!0}let a=e.src[n];if(i>=55296&&i<=56319&&n+1<r){let t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}let o=`\\`+a;if(!t){let t=e.push(`text_special`,``,0);i<256&&Ht[i]!==0?t.content=a:t.content=o,t.markup=o,t.info=`escape`}return e.pos=n+1,!0}function Wt(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;let a=e.src.slice(r,n),o=a.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=a),e.pos+=o,!0;let s=n,c;for(;(c=e.src.indexOf("`",s))!==-1;){for(s=c+1;s<i&&e.src.charCodeAt(s)===96;)s++;let r=s-c;if(r===o){if(!t){let t=e.push(`code_inline`,`code`,0);t.markup=a,t.content=e.src.slice(n,c).replace(/\n/g,` `).replace(/^ (.+) $/,`$1`)}return e.pos=s,!0}e.backticks[r]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=o,!0}function Gt(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;let i=e.scanDelims(e.pos,!0),a=i.length,o=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push(`text`,``,0),s.content=o,a--);for(let t=0;t<a;t+=2)s=e.push(`text`,``,0),s.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Kt(e,t){let n,r=[],i=t.length;for(let a=0;a<i;a++){let i=t[a];if(i.marker!==126||i.end===-1)continue;let o=t[i.end];n=e.tokens[i.token],n.type=`s_open`,n.tag=`s`,n.nesting=1,n.markup=`~~`,n.content=``,n=e.tokens[o.token],n.type=`s_close`,n.tag=`s`,n.nesting=-1,n.markup=`~~`,n.content=``,e.tokens[o.token-1].type===`text`&&e.tokens[o.token-1].content===`~`&&r.push(o.token-1)}for(;r.length;){let t=r.pop(),i=t+1;for(;i<e.tokens.length&&e.tokens[i].type===`s_close`;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}function qt(e){let t=e.tokens_meta,n=e.tokens_meta.length;Kt(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Kt(e,t[r].delimiters)}var Jt={tokenize:Gt,postProcess:qt};function Yt(e,t){let n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;let i=e.scanDelims(e.pos,r===42);for(let t=0;t<i.length;t++){let t=e.push(`text`,``,0);t.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function Xt(e,t){let n=t.length;for(let r=n-1;r>=0;r--){let n=t[r];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let i=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),s=e.tokens[n.token];s.type=a?`strong_open`:`em_open`,s.tag=a?`strong`:`em`,s.nesting=1,s.markup=a?o+o:o,s.content=``;let c=e.tokens[i.token];c.type=a?`strong_close`:`em_close`,c.tag=a?`strong`:`em`,c.nesting=-1,c.markup=a?o+o:o,c.content=``,a&&(e.tokens[t[r-1].token].content=``,e.tokens[t[n.end+1].token].content=``,r--)}}function Zt(e){let t=e.tokens_meta,n=e.tokens_meta.length;Xt(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Xt(e,t[r].delimiters)}var Qt={tokenize:Yt,postProcess:Zt};function $t(e,t){let n,r,i,a,o=``,s=``,c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;let u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(l=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!k(n)&&n!==10));m++);if(m>=d)return!1;if(c=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?m=i.pos:o=``,c=m;m<d&&(n=e.src.charCodeAt(m),!(!k(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&c!==m&&i.ok)for(s=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!k(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(l=!0),m++}if(l){if(e.env.references===void 0)return!1;if(m<d&&e.src.charCodeAt(m)===91?(c=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(c,m++):m=p+1):m=p+1,r||=e.src.slice(f,p),a=e.env.references[N(r)],!a)return e.pos=u,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;let t=e.push(`link_open`,`a`,1),n=[[`href`,o]];t.attrs=n,s&&n.push([`title`,s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push(`link_close`,`a`,-1)}return e.pos=m,e.posMax=d,!0}function en(e,t){let n,r,i,a,o,s,c,l,u=``,d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&e.src.charCodeAt(a)===40){for(a++;a<f&&(n=e.src.charCodeAt(a),!(!k(n)&&n!==10));a++);if(a>=f)return!1;for(l=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=``),l=a;a<f&&(n=e.src.charCodeAt(a),!(!k(n)&&n!==10));a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&l!==a&&s.ok)for(c=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),!(!k(n)&&n!==10));a++);else c=``;if(a>=f||e.src.charCodeAt(a)!==41)return e.pos=d,!1;a++}else{if(e.env.references===void 0)return!1;if(a<f&&e.src.charCodeAt(a)===91?(l=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(l,a++):a=m+1):a=m+1,i||=e.src.slice(p,m),o=e.env.references[N(i)],!o)return e.pos=d,!1;u=o.href,c=o.title}if(!t){r=e.src.slice(p,m);let t=[];e.md.inline.parse(r,e.md,e.env,t);let n=e.push(`image`,`img`,0),i=[[`src`,u],[`alt`,``]];n.attrs=i,n.children=t,n.content=r,c&&i.push([`title`,c])}return e.pos=a,e.posMax=f,!0}var tn=/^([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])?)*)$/,nn=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function rn(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;let t=e.src.charCodeAt(n);if(t===60)return!1;if(t===62)break}let a=e.src.slice(r+1,n);if(nn.test(a)){let n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}if(tn.test(a)){let n=e.md.normalizeLink(`mailto:`+a);if(!e.md.validateLink(n))return!1;if(!t){let t=e.push(`link_open`,`a`,1);t.attrs=[[`href`,n]],t.markup=`autolink`,t.info=`auto`;let r=e.push(`text`,``,0);r.content=e.md.normalizeLinkText(a);let i=e.push(`link_close`,`a`,-1);i.markup=`autolink`,i.info=`auto`}return e.pos+=a.length+2,!0}return!1}function an(e){return/^<a[>\s]/i.test(e)}function on(e){return/^<\/a\s*>/i.test(e)}function sn(e){let t=e|32;return t>=97&&t<=122}function cn(e,t){if(!e.md.options.html)return!1;let n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;let i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!sn(i))return!1;let a=e.src.slice(r).match(jt);if(!a)return!1;if(!t){let t=e.push(`html_inline`,``,0);t.content=a[0],an(t.content)&&e.linkLevel++,on(t.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}var ln=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,un=/^&([a-z][a-z0-9]{1,31});/i;function dn(e,t){let n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){let r=e.src.slice(n).match(ln);if(r){if(!t){let t=r[1][0].toLowerCase()===`x`?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push(`text_special`,``,0);n.content=Oe(t)?E(t):E(65533),n.markup=r[0],n.info=`entity`}return e.pos+=r[0].length,!0}}else{let r=e.src.slice(n).match(un);if(r){let n=xe(r[0]);if(n!==r[0]){if(!t){let t=e.push(`text_special`,``,0);t.content=n,t.markup=r[0],t.info=`entity`}return e.pos+=r[0].length,!0}}}return!1}function fn(e){let t={},n=e.length;if(!n)return;let r=0,i=-2,a=[];for(let o=0;o<n;o++){let n=e[o];if(a.push(0),(e[r].marker!==n.marker||i!==n.token-1)&&(r=o),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[n.marker][(n.open?3:0)+n.length%3],c=r-a[r]-1,l=c;for(;c>s;c-=a[c]+1){let t=e[c];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3!=0||n.length%3!=0)&&(r=!0),!r){let r=c>0&&!e[c-1].open?a[c-1]+1:0;a[o]=o-c+r,a[c]=r,n.open=!1,t.end=o,t.close=!1,l=-1,i=-2;break}}}l!==-1&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=l)}}function pn(e){let t=e.tokens_meta,n=e.tokens_meta.length;fn(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&fn(t[e].delimiters)}function mn(e){let t,n,r=0,i=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type===`text`&&t+1<a&&i[t+1].type===`text`?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}var hn=[[`text`,Rt],[`linkify`,Bt],[`newline`,Vt],[`escape`,Ut],[`backticks`,Wt],[`strikethrough`,Jt.tokenize],[`emphasis`,Qt.tokenize],[`link`,$t],[`image`,en],[`autolink`,rn],[`html_inline`,cn],[`entity`,dn]],gn=[[`balance_pairs`,pn],[`strikethrough`,Jt.postProcess],[`emphasis`,Qt.postProcess],[`fragments_join`,mn]];function W(){this.ruler=new I;for(let e=0;e<hn.length;e++)this.ruler.push(hn[e][0],hn[e][1]);this.ruler2=new I;for(let e=0;e<gn.length;e++)this.ruler2.push(gn[e][0],gn[e][1])}W.prototype.skipToken=function(e){let t=e.pos,n=this.ruler.getRules(``),r=n.length,i=e.md.options.maxNesting,a=e.cache;if(a[t]!==void 0){e.pos=a[t];return}let o=!1;if(e.level<i){for(let i=0;i<r;i++)if(e.level++,o=n[i](e,!0),e.level--,o){if(t>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos},W.prototype.tokenize=function(e){let t=this.ruler.getRules(``),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){let a=e.pos,o=!1;if(e.level<i){for(let r=0;r<n;r++)if(o=t[r](e,!1),o){if(a>=e.pos)throw Error(`inline rule didn't increment state.pos`);break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},W.prototype.parse=function(e,t,n,r){let i=new this.State(e,t,n,r);this.tokenize(i);let a=this.ruler2.getRules(``),o=a.length;for(let e=0;e<o;e++)a[e](i)},W.prototype.State=U;function _n(e){let t={};e||={},t.src_Any=te.source,t.src_Cc=ne.source,t.src_Z=ae.source,t.src_P=b.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(`|`),t.src_ZCc=[t.src_Z,t.src_Cc].join(`|`);let n=`[><|]`;return t.src_pseudo_letter=`(?:(?!`+n+`|`+t.src_ZPCc+`)`+t.src_Any+`)`,t.src_ip4=`(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)`,t.src_auth=`(?:(?:(?!`+t.src_ZCc+`|[@/\\[\\]()]).)+@)?`,t.src_port=`(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?`,t.src_host_terminator=`(?=$|`+n+`|`+t.src_ZPCc+`)(?!`+(e[`---`]?`-(?!--)|`:`-|`)+`_|:\\d|\\.-|\\.(?!$|`+t.src_ZPCc+`))`,t.src_path=`(?:[/?#](?:(?!`+t.src_ZCc+`|[><|]|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+`|\\]).)*\\]|\\((?:(?!`+t.src_ZCc+`|[)]).)*\\)|\\{(?:(?!`+t.src_ZCc+`|[}]).)*\\}|\\"(?:(?!`+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+`|[']).)+\\'|\\'(?=`+t.src_pseudo_letter+`|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!`+t.src_ZCc+`|[.]|$)|`+(e[`---`]?`\\-(?!--(?:[^-]|$))(?:-*)|`:`\\-+|`)+`,(?!`+t.src_ZCc+`|$)|;(?!`+t.src_ZCc+`|$)|\\!+(?!`+t.src_ZCc+`|[!]|$)|\\?(?!`+t.src_ZCc+`|[?]|$))+|\\/)?`,t.src_email_name=`[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*`,t.src_xn=`xn--[a-z0-9\\-]{1,59}`,t.src_domain_root=`(?:`+t.src_xn+`|`+t.src_pseudo_letter+`{1,63})`,t.src_domain=`(?:`+t.src_xn+`|(?:`+t.src_pseudo_letter+`)|(?:`+t.src_pseudo_letter+`(?:-|`+t.src_pseudo_letter+`){0,61}`+t.src_pseudo_letter+`))`,t.src_host=`(?:(?:(?:(?:`+t.src_domain+`)\\.)*`+t.src_domain+`))`,t.tpl_host_fuzzy=`(?:`+t.src_ip4+`|(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:`+t.src_domain+`)\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:`+t.src_ZPCc+`|>|$))`,t.tpl_email_fuzzy=`(^|`+n+`|"|\\(|`+t.src_ZCc+`)(`+t.src_email_name+`@`+t.tpl_host_fuzzy_strict+`)`,t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+`)`,t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+`)`,t}function vn(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function G(e){return Object.prototype.toString.call(e)}function yn(e){return G(e)===`[object String]`}function bn(e){return G(e)===`[object Object]`}function xn(e){return G(e)===`[object RegExp]`}function Sn(e){return G(e)===`[object Function]`}function Cn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,`\\$&`)}var wn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Tn(e){return Object.keys(e||{}).reduce(function(e,t){return e||wn.hasOwnProperty(t)},!1)}var En={"http:":{validate:function(e,t,n){let r=e.slice(t);return n.re.http||(n.re.http=RegExp(`^\\/\\/`+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,`i`)),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":`http:`,"ftp:":`http:`,"//":{validate:function(e,t,n){let r=e.slice(t);return n.re.no_http||(n.re.no_http=RegExp(`^`+n.re.src_auth+`(?:localhost|(?:(?:`+n.re.src_domain+`)\\.)+`+n.re.src_domain_root+`)`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,`i`)),n.re.no_http.test(r)?t>=3&&e[t-3]===`:`||t>=3&&e[t-3]===`/`?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let r=e.slice(t);return n.re.mailto||(n.re.mailto=RegExp(`^`+n.re.src_email_name+`@`+n.re.src_host_strict,`i`)),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Dn=`a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]`,On=`biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф`.split(`|`);function kn(e){e.__index__=-1,e.__text_cache__=``}function An(e){return function(t,n){let r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function jn(){return function(e,t){t.normalize(e)}}function K(e){let t=e.re=_n(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Dn),n.push(t.src_xn),t.src_tlds=n.join(`|`);function r(e){return e.replace(`%TLDS%`,t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),`i`),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),`i`),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),`i`),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),`i`);let i=[];e.__compiled__={};function a(e,t){throw Error(`(LinkifyIt) Invalid schema "`+e+`": `+t)}Object.keys(e.__schemas__).forEach(function(t){let n=e.__schemas__[t];if(n===null)return;let r={validate:null,link:null};if(e.__compiled__[t]=r,bn(n)){xn(n.validate)?r.validate=An(n.validate):Sn(n.validate)?r.validate=n.validate:a(t,n),Sn(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=jn();return}if(yn(n)){i.push(t);return}a(t,n)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[``]={validate:null,normalize:jn()};let o=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Cn).join(`|`);e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`i`),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|`+t.src_ZPCc+`))(`+o+`)`,`ig`),e.re.schema_at_start=RegExp(`^`+e.re.schema_search.source,`i`),e.re.pretest=RegExp(`(`+e.re.schema_test.source+`)|(`+e.re.host_fuzzy_test.source+`)|@`,`i`),kn(e)}function Mn(e,t){let n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Nn(e,t){let n=new Mn(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function q(e,t){if(!(this instanceof q))return new q(e,t);t||Tn(e)&&(t=e,e={}),this.__opts__=vn({},wn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=``,this.__text_cache__=``,this.__schemas__=vn({},En,e),this.__compiled__={},this.__tlds__=On,this.__tlds_replaced__=!1,this.re={},K(this)}q.prototype.add=function(e,t){return this.__schemas__[e]=t,K(this),this},q.prototype.set=function(e){return this.__opts__=vn(this.__opts__,e),this},q.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,a,o,s,c,l;if(this.re.schema_test.test(e)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__[`http:`]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__=``,this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[`mailto:`]&&(l=e.indexOf(`@`),l>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&o>this.__last_index__)&&(this.__schema__=`mailto:`,this.__index__=a,this.__last_index__=o))),this.__index__>=0},q.prototype.pretest=function(e){return this.re.pretest.test(e)},q.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},q.prototype.match=function(e){let t=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Nn(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Nn(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},q.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Nn(this,0)):null},q.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),K(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,K(this),this)},q.prototype.normalize=function(e){e.schema||(e.url=`http://`+e.url),e.schema===`mailto:`&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:`+e.url)},q.prototype.onCompile=function(){};var J=2147483647,Y=36,Pn=1,X=26,Fn=38,In=700,Ln=72,Rn=128,zn=`-`,Bn=/^xn--/,Vn=/[^\0-\x7F]/,Hn=/[\x2E\u3002\uFF0E\uFF61]/g,Un={overflow:`Overflow: input needs wider integers to process`,"not-basic":`Illegal input >= 0x80 (not a basic code point)`,"invalid-input":`Invalid input`},Wn=Y-Pn,Z=Math.floor,Gn=String.fromCharCode;function Q(e){throw RangeError(Un[e])}function Kn(e,t){let n=[],r=e.length;for(;r--;)n[r]=t(e[r]);return n}function qn(e,t){let n=e.split(`@`),r=``;n.length>1&&(r=n[0]+`@`,e=n[1]),e=e.replace(Hn,`.`);let i=Kn(e.split(`.`),t).join(`.`);return r+i}function Jn(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}var Yn=e=>String.fromCodePoint(...e),Xn=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Y},Zn=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Qn=function(e,t,n){let r=0;for(e=n?Z(e/In):e>>1,e+=Z(e/t);e>Wn*X>>1;r+=Y)e=Z(e/Wn);return Z(r+(Wn+1)*e/(e+Fn))},$n=function(e){let t=[],n=e.length,r=0,i=Rn,a=Ln,o=e.lastIndexOf(zn);o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&Q(`not-basic`),t.push(e.charCodeAt(n));for(let s=o>0?o+1:0;s<n;){let o=r;for(let t=1,i=Y;;i+=Y){s>=n&&Q(`invalid-input`);let o=Xn(e.charCodeAt(s++));o>=Y&&Q(`invalid-input`),o>Z((J-r)/t)&&Q(`overflow`),r+=o*t;let c=i<=a?Pn:i>=a+X?X:i-a;if(o<c)break;let l=Y-c;t>Z(J/l)&&Q(`overflow`),t*=l}let c=t.length+1;a=Qn(r-o,c,o==0),Z(r/c)>J-i&&Q(`overflow`),i+=Z(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},er=function(e){let t=[];e=Jn(e);let n=e.length,r=Rn,i=0,a=Ln;for(let n of e)n<128&&t.push(Gn(n));let o=t.length,s=o;for(o&&t.push(zn);s<n;){let n=J;for(let t of e)t>=r&&t<n&&(n=t);let c=s+1;n-r>Z((J-i)/c)&&Q(`overflow`),i+=(n-r)*c,r=n;for(let n of e)if(n<r&&++i>J&&Q(`overflow`),n===r){let e=i;for(let n=Y;;n+=Y){let r=n<=a?Pn:n>=a+X?X:n-a;if(e<r)break;let i=e-r,o=Y-r;t.push(Gn(Zn(r+i%o,0))),e=Z(i/o)}t.push(Gn(Zn(e,0))),a=Qn(i,c,s===o),i=0,++s}++i,++r}return t.join(``)},tr={version:`2.3.1`,ucs2:{decode:Jn,encode:Yn},decode:$n,encode:er,toASCII:function(e){return qn(e,function(e){return Vn.test(e)?`xn--`+er(e):e})},toUnicode:function(e){return qn(e,function(e){return Bn.test(e)?$n(e.slice(4).toLowerCase()):e})}},nr={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`paragraph`]},inline:{rules:[`text`],rules2:[`balance_pairs`,`fragments_join`]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:`language-`,linkify:!1,typographer:!1,quotes:`“”‘’`,highlight:null,maxNesting:20},components:{core:{rules:[`normalize`,`block`,`inline`,`text_join`]},block:{rules:[`blockquote`,`code`,`fence`,`heading`,`hr`,`html_block`,`lheading`,`list`,`reference`,`paragraph`]},inline:{rules:[`autolink`,`backticks`,`emphasis`,`entity`,`escape`,`html_inline`,`image`,`link`,`newline`,`text`],rules2:[`balance_pairs`,`emphasis`,`fragments_join`]}}}},rr=/^(vbscript|javascript|file|data):/,ir=/^data:image\/(gif|png|jpeg|webp);/;function ar(e){let t=e.trim().toLowerCase();return rr.test(t)?ir.test(t):!0}var or=[`http:`,`https:`,`mailto:`];function sr(e){let t=y(e,!0);if(t.hostname&&(!t.protocol||or.indexOf(t.protocol)>=0))try{t.hostname=tr.toASCII(t.hostname)}catch{}return o(s(t))}function cr(e){let t=y(e,!0);if(t.hostname&&(!t.protocol||or.indexOf(t.protocol)>=0))try{t.hostname=tr.toUnicode(t.hostname)}catch{}return r(s(t),r.defaultChars+`%`)}function $(e,t){if(!(this instanceof $))return new $(e,t);t||we(e)||(t=e||{},e=`default`),this.inline=new W,this.block=new H,this.core=new ht,this.renderer=new F,this.linkify=new q,this.validateLink=ar,this.normalizeLink=sr,this.normalizeLinkText=cr,this.utils=Se,this.helpers=T({},We),this.options={},this.configure(e),t&&this.set(t)}$.prototype.set=function(e){return T(this.options,e),this},$.prototype.configure=function(e){let t=this;if(we(e)){let t=e;if(e=nr[t],!e)throw Error('Wrong `markdown-it` preset "'+t+`", check name`)}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},$.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to enable unknown rule(s): `+r);return this},$.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),[`core`,`block`,`inline`].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw Error(`MarkdownIt. Failed to disable unknown rule(s): `+r);return this},$.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},$.prototype.parse=function(e,t){if(typeof e!=`string`)throw Error(`Input data should be a String`);let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},$.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},$.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},$.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var lr=e({default:()=>$});export{lr as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../dist-
|
|
2
|
-
import{a as e}from"./json-editor-vue-ddj4xtqm.js";var t=`default`,n=`preflights`,r=`shortcuts`,i={imports:-200,[n]:-100,[r]:-10,[t]:0},a=/[\\:]?[\s'"`;{}]+/g;function o(e){return e.split(a)}var s={name:`@unocss/core/extractor-split`,order:0,extract({code:e}){return o(e)}};function c(e=[]){return Array.isArray(e)?e:[e]}function l(e){return Array.from(new Set(e))}function u(e,t){return e.reduce((e,n)=>(e.findIndex(e=>t(n,e))===-1&&e.push(n),e),[])}function d(e){return typeof e==`string`}var f=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function p(e){return e instanceof f}function m(e){let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r===37){i+=`\\%`;continue}if(r===44){i+=`\\,`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){i+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\${e.charAt(n)}`}return i}var h=m;function g(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(e=>e(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(e=>e!==t)}}}function _(e){return typeof e==`function`?{match:e}:e}function v(e){return e.length===3}function y(e){return e!=null}function b(){}var x=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([n,r])=>e(r,t,n)))}},S=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function C(e){return d(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(e=>e[1]!=null)}function w(e){return Array.isArray(e)?e.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?e.map(e=>C(e)):[e]:[C(e)]}function T(e){return e.filter(([t,n],r)=>{if(t.startsWith(`$$`))return!1;for(let i=r-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===n)return!1;return!0})}var E=`__virtual_key__`;function D(e){return e==null?``:T(e).map(([e,t])=>t!=null&&typeof t!=`function`?e===`__virtual_key__`?t:`${e}:${t};`:void 0).filter(Boolean).join(``)}function O(e){return e&&typeof e==`object`&&!Array.isArray(e)}function k(e,t,n=!1){let r=e,i=t;if(Array.isArray(i))return n&&Array.isArray(i)?[...r,...i]:[...i];let a={...r};return O(r)&&O(i)&&Object.keys(i).forEach(e=>{O(r[e])&&O(i[e])||Array.isArray(r[e])&&Array.isArray(i[e])?a[e]=k(r[e],i[e],n):Object.assign(a,{[e]:i[e]})}),a}function A(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r==`object`?A(r):r;return n}if(Object.prototype.toString.call(e)===`[object Object]`){for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:A(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r==`object`?A(r):r;return n}return e}function ee(e){return d(e[0])}function te(e){return d(e[0])}var j={};function ne(e=[`-`,`:`]){let t=e.join(`|`);return j[t]||(j[t]=RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,`gm`)),j[t].lastIndex=0,j[t]}function re(e,t=[`-`,`:`],n=5){let r=ne(t),i,a=e.toString(),o=new Set,s=new Map;do i=!1,a=a.replace(r,(e,n,r,a,c)=>{if(!t.includes(r))return e;i=!0,o.add(n+r);let l=c+n.length+r.length+1,u={length:e.length,items:[]};s.set(c,u);for(let e of[...a.matchAll(/\S+/g)]){let t=l+e.index,i=s.get(t)?.items;i?s.delete(t):i=[{offset:t,length:e[0].length,className:e[0]}];for(let e of i)e.className=e.className===`~`?n:e.className.replace(/^(!?)(.*)/,`$1${n}${r}$2`),u.items.push(e)}return`$`.repeat(e.length)}),--n;while(i&&n);let c;if(typeof e==`string`){c=``;let t=0;for(let[n,r]of s)c+=e.slice(t,n),c+=r.items.map(e=>e.className).join(` `),t=n+r.length;c+=e.slice(t)}else{c=e;for(let[e,t]of s)c.overwrite(e,e+t.length,t.items.map(e=>e.className).join(` `))}return{prefixes:Array.from(o),hasChanged:i,groupsByOffset:s,get expanded(){return c.toString()}}}function ie(e,t=[`-`,`:`],n=5){let r=re(e,t,n);return typeof e==`string`?r.expanded:e}var ae=new Set;function oe(e){ae.has(e)||(console.warn(`[unocss]`,e),ae.add(e))}function M(e){return c(e).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var N=`_uno_resolved`;async function se(e){let t=typeof e==`function`?await e():await e;if(N in t)return t;t={...t},Object.defineProperty(t,N,{value:!0,enumerable:!1});let n=t.shortcuts?M(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let e=e=>{e[2]||={};let n=e[2];n.prefix==null&&t.prefix&&(n.prefix=c(t.prefix)),n.layer==null&&t.layer&&(n.layer=t.layer)};n?.forEach(e),t.rules?.forEach(e)}return t}async function P(e){let t=await se(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(c).flatMap(P))).flat()]:[t]}function ce(e){if(e.length===0)return{};let t=[],n=[],r=!1,i=[],a=[];for(let o of e){if(o.pipeline===!1){r=!0;break}else o.pipeline?.include&&t.push(o.pipeline.include),o.pipeline?.exclude&&n.push(o.pipeline.exclude);o.filesystem&&i.push(o.filesystem),o.inline&&a.push(o.inline)}let o={pipeline:r?!1:{include:l(I(...t)),exclude:l(I(...n))}};return i.length&&(o.filesystem=l(i.flat())),a.length&&(o.inline=l(a.flat())),o}async function F(e={},t={}){let n=Object.assign({},t,e),r=u((await Promise.all((n.presets||[]).flatMap(c).flatMap(P))).flat(),(e,t)=>e.name===t.name),a=[...r.filter(e=>e.enforce===`pre`),...r.filter(e=>!e.enforce),...r.filter(e=>e.enforce===`post`)],o=[...a,n],d=[...o].reverse(),f=Object.assign({},i,...o.map(e=>e.layers));function p(e){return l(o.flatMap(t=>c(t[e]||[])))}let m=p(`extractors`),h=d.find(e=>e.extractorDefault!==void 0)?.extractorDefault;h===void 0&&(h=s),h&&!m.includes(h)&&m.unshift(h),m.sort((e,t)=>(e.order||0)-(t.order||0));let g=p(`rules`),v=g.length,y={},b=[];for(let[e,t]of g.entries()){let n=t[2]??={};n.__index=e,ee(t)?c(n.prefix??``).forEach(e=>{y[e+t[0]]=t}):b.unshift(t)}let x={templates:l(o.flatMap(e=>c(e.autocomplete?.templates))),extractors:o.flatMap(e=>c(e.autocomplete?.extractors)).sort((e,t)=>(e.order||0)-(t.order||0)),shorthands:ue(o.map(e=>e.autocomplete?.shorthands||{}))},S=p(`separators`);S.length||(S=[`:`,`-`]);let C=ce(p(`content`)),w={mergeSelectors:!0,warn:!0,sortLayers:e=>e,...n,blocklist:p(`blocklist`),presets:a,envMode:n.envMode||`build`,shortcutsLayer:n.shortcutsLayer||`shortcuts`,layers:f,theme:le(o.map(e=>e.theme)),rules:g,rulesSize:v,rulesDynamic:b,rulesStaticMap:y,preprocess:p(`preprocess`),postprocess:p(`postprocess`),preflights:p(`preflights`),autocomplete:x,variants:p(`variants`).map(_).sort((e,t)=>(e.order||0)-(t.order||0)),shortcuts:M(p(`shortcuts`)).reverse(),extractors:m,safelist:p(`safelist`),separators:S,details:n.details??n.envMode===`dev`,content:C,transformers:u(p(`transformers`),(e,t)=>e.name===t.name)},T=p(`extendTheme`);for(let e of T)w.theme=e(w.theme,w)||w.theme;for(let e of o)e?.configResolved?.(w);return w}function le(e){return e.map(e=>e?A(e):{}).reduce((e,t)=>k(e,t),{})}function ue(e){return e.reduce((e,t)=>{let n={};for(let e in t){let r=t[e];Array.isArray(r)?n[e]=`(${r.join(`|`)})`:n[e]=r}return{...e,...n}},{})}function I(...e){return e.flatMap(de)}function de(e){return Array.isArray(e)?e:e?[e]:[]}function fe(e){return e}var pe=`66.6.0`,L={shortcutsNoMerge:`$$symbol-shortcut-no-merge`,noMerge:`$$symbol-no-merge`,variants:`$$symbol-variants`,parent:`$$symbol-parent`,selector:`$$symbol-selector`,layer:`$$symbol-layer`,sort:`$$symbol-sort`,body:`$$symbol-body`},me=class e{constructor(e={},t={}){this.userConfig=e,this.defaults=t,this.version=pe,this.events=g(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(e,t,n,r)=>{let i=w(t).filter(e=>e.length);if(i.length){this.config.details&&r.rules.push(n),r.generator.activatedRules.add(n);let t=n[2];return i.map(n=>{if(d(n))return[t.__index,n,t];let i=r.variantHandlers,a=t;for(let e of n)e[0]===L.variants?i=typeof e[1]==`function`?e[1](i)||i:[...c(e[1]),...i]:e[0]===L.parent?i=[{parent:e[1]},...i]:e[0]===L.selector?i=[{selector:e[1]},...i]:e[0]===L.layer?i=[{layer:e[1]},...i]:e[0]===L.sort?a={...a,sort:e[1]}:e[0]===L.noMerge?a={...a,noMerge:e[1]}:e[0]===L.body&&(e[0]=E);return[t.__index,e,n,a,i]})}}}static async create(t={},n={}){let r=new e(t,n);return r.config=await F(r.userConfig,r.defaults),r.events.emit(`config`,r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await F(e,this.defaults),this.events.emit(`config`,this.config))}async applyExtractors(e,t,n=new Set){let r={original:e,code:e,id:t,extracted:n,envMode:this.config.envMode};for(let e of this.config.extractors){let t=await e.extract?.(r);if(t)if(p(t)&&p(n))for(let e of t)n.setCount(e,n.getCount(e)+t.getCount(e));else for(let e of t)n.add(e)}return n}makeContext(e,t){let n={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:L,variantHandlers:t[2],constructCSS:(...e)=>this.constructCustomCSS(n,...e),variantMatch:t};return n}async parseToken(e,t){if(this.blocked.has(e))return;let n=`${e}${t?` ${t}`:``}`;if(this.cache.has(n))return this.cache.get(n);let r=this.config.preprocess.reduce((e,t)=>t(e)??e,e);if(this.isBlocked(r)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,r);if(i.every(e=>!e||this.isBlocked(e[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async n=>{let r=this.makeContext(e,[t||n[0],n[1],n[2],n[3]]);this.config.details&&(r.variants=[...n[3]]);let i=await this.expandShortcut(r.currentSelector,r);return i?await this.stringifyShortcuts(r.variantMatch,r,i[0],i[1]):(await this.parseUtil(r.variantMatch,r))?.flatMap(e=>this.stringifyUtil(e,r)).filter(y)},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o?.length)return this.cache.set(n,o),o;this.cache.set(n,null)}async generate(e,r={}){let{id:i,scope:a,preflights:o=!0,safelist:s=!0,minify:c=!1,extendedInfo:u=!1}=r,m=d(e)?await this.applyExtractors(e,i,u?new f:new Set):Array.isArray(e)?new Set(e):e;if(s){let e={generator:this,theme:this.config.theme};this.config.safelist.flatMap(t=>typeof t==`function`?t(e):t).forEach(e=>{let t=e.trim();t&&!m.has(t)&&m.add(t)})}let h=c?``:`
|
|
3
|
-
`,g=new Set([t]),_=u?new Map:new Set,v=new Map,b={},x=Array.from(m).map(async e=>{if(_.has(e))return;let t=await this.parseToken(e);if(t!=null){_ instanceof Map?_.set(e,{data:t,count:p(m)?m.getCount(e):-1}):_.add(e);for(let e of t){let t=e[3]||``,n=e[4]?.layer;v.has(t)||v.set(t,[]),v.get(t).push(e),n&&g.add(n)}}});await Promise.all(x),await(async()=>{if(!o)return;let e={generator:this,theme:this.config.theme},t=new Set([]);this.config.preflights.forEach(({layer:e=n})=>{g.add(e),t.add(e)}),b=Object.fromEntries(await Promise.all(Array.from(t).map(async t=>[t,(await Promise.all(this.config.preflights.filter(e=>(e.layer||`preflights`)===t).map(async t=>await t.getCSS(e)))).filter(Boolean).join(h)])))})();let S=e=>this.config.sortLayers(e.sort((e,t)=>(this.config.layers[e]??0)-(this.config.layers[t]??0)||e.localeCompare(t))),C=S(Array.from(g)),w={},T=this.config.outputToCssLayers,E=e=>{let t=e;return typeof T==`object`&&(t=T.cssLayerName?.(e)),t===null?null:t??e},D=(e=t)=>{if(w[e])return w[e];let n=Array.from(v).sort((e,t)=>(this.parentOrders.get(e[0])??0)-(this.parentOrders.get(t[0])??0)||e[0]?.localeCompare(t[0]||``)||0).map(([t,n])=>{let r=n.length,i=n.filter(t=>(t[4]?.layer||`default`)===e).sort((e,t)=>e[0]-t[0]||(e[4]?.sort||0)-(t[4]?.sort||0)||e[5]?.currentSelector?.localeCompare(t[5]?.currentSelector??``)||e[1]?.localeCompare(t[1]||``)||e[2]?.localeCompare(t[2]||``)||0).map(([,e,t,,n,,r])=>[[[(e&&_e(e,a))??``,n?.sort??0]],t,!!(r??n?.noMerge)]);if(!i.length)return;let o=i.reverse().map(([e,t,n],a)=>{if(!n&&this.config.mergeSelectors)for(let n=a+1;n<r;n++){let r=i[n];if(r&&!r[2]&&(e&&r[0]||e==null&&r[0]==null)&&r[1]===t)return e&&r[0]&&r[0].push(...e),null}let o=e?l(e.sort((e,t)=>e[1]-t[1]||e[0]?.localeCompare(t[0]||``)||0).map(e=>e[0]).filter(Boolean)):[];return o.length?`${o.join(`,${h}`)}{${t}}`:t}).filter(Boolean),s=Array.from(new Set(o)).reverse().join(h);if(!t)return s;let c=t.split(` $$ `);return`${c.join(`{`)}{${h}${s}${h}${`}`.repeat(c.length)}`}).filter(Boolean).join(h);o&&(n=[b[e],n].filter(Boolean).join(h));let r;T&&n&&(r=E(e),r!==null&&(n=`@layer ${r}{${h}${n}${h}}`));let i=c?``:`/* layer: ${e}${r&&r!==e?`, alias: ${r}`:``} */${h}`;return w[e]=n?i+n:``},O=(e=C,t)=>{let n=e.filter(e=>!t?.includes(e)),r=n.map(D).filter(Boolean);if(T){let e=n;typeof T==`object`&&T.allLayers&&(e=S(Object.keys(this.config.layers))),e.length>0&&r.unshift(`@layer ${e.map(E).filter(y).join(`, `)};`)}return r.join(h)};return{get css(){return O()},layers:C,matched:_,getLayers:O,getLayer:D,setLayer:async(e,t)=>{let n=await t(D(e));return w[e]=n,n}}}async matchVariants(e,t){let n={rawSelector:e,theme:this.config.theme,generator:this},r=async t=>{let i=!0,[,,a,o]=t;for(;i;){i=!1;let s=t[1];for(let e of this.config.variants){if(!e.multiPass&&o.has(e))continue;let c=await e.match(s,n);if(c){if(d(c)){if(c===s)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(e.multiPass)throw Error(`multiPass can not be used together with array return variants`);let n=c.map(n=>{let r=n.matcher??s,i=[n,...a],c=new Set(o);return c.add(e),[t[0],r,i,c]});return(await Promise.all(n.map(e=>r(e)))).flat()}}t[1]=c.matcher??s,a.unshift(c),o.add(e),i=!0;break}}if(!i)break;if(a.length>500)throw Error(`Too many variants applied to "${e}"`)}return[t]};return await r([e,t||e,[],new Set])}applyVariants(e,t=e[4],n=e[1]){let r=t.slice().sort((e,t)=>(e.order||0)-(t.order||0)).reduceRight((e,t)=>n=>{let r=t.body?.(n.entries)||n.entries,i=Array.isArray(t.parent)?t.parent:[t.parent,void 0],a=t.selector?.(n.selector,r);return(t.handle??ye)({...n,entries:r,selector:a||n.selector,parent:i[0]||n.parent,parentOrder:i[1]||n.parentOrder,layer:t.layer||n.layer,sort:t.sort||n.sort},e)},e=>e)({prefix:``,selector:ve(n),pseudo:``,entries:e[2]}),{parent:i,parentOrder:a}=r;i!=null&&a!=null&&this.parentOrders.set(i,a);let o={selector:[r.prefix,r.selector,r.pseudo].join(``),entries:r.entries,parent:i,layer:r.layer,sort:r.sort,noMerge:r.noMerge};return this.config.postprocess.reduce((e,t)=>{let n=[];for(let r of e){let e=t(r);Array.isArray(e)?n.push(...e.filter(y)):n.push(e||r)}return n},[o])}constructCustomCSS(e,t,n){let r=C(t);return d(r)?r:this.applyVariants([0,n||e.rawSelector,r,void 0,e.variantHandlers]).map(({selector:e,entries:t,parent:n})=>{let r=`${e}{${D(t)}}`;return n?`${n}{${r}}`:r}).join(``)}async parseUtil(e,t,n=!1,r){let i=d(e)?await this.matchVariants(e):[e],a=async([e,i,a])=>{this.config.details&&(t.rules=t.rules??[]);let o={...t,variantHandlers:a},s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!s[2]?.internal))return this.resolveCSSResult(e,s[1],s,o);for(let t of this.config.rulesDynamic){let[a,s,l]=t;if(l?.internal&&!n)continue;let u=i;if(l?.prefix){let e=c(l.prefix);if(r){let t=c(r);if(!e.some(e=>t.includes(e)))continue}else{let t=e.find(e=>i.startsWith(e));if(t==null)continue;u=i.slice(t.length)}}let d=u.match(a);if(!d)continue;let f=await s(d,o);if(!f)continue;if(typeof f!=`string`)if(Symbol.asyncIterator in f){let e=[];for await(let t of f)t&&e.push(t);f=e}else Symbol.iterator in f&&!Array.isArray(f)&&(f=Array.from(f).filter(y));let p=this.resolveCSSResult(e,f,t,o);if(p)return p}},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o.length)return o}stringifyUtil(e,t){if(!e)return;if(v(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0]];let n=this.applyVariants(e),r=[];for(let i of n){let{selector:n,entries:a,parent:o,layer:s,sort:c,noMerge:l}=i,u=D(a);if(!u)continue;let{layer:d,sort:f,...p}=e[3]??{},m={...p,layer:s??d,sort:c??f};r.push([e[0],n,u,o,m,this.config.details?t:void 0,l])}return r}async expandShortcut(e,t,n=5){if(n===0)return;let r=this.config.details?e=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(e)}:b,i,a,o,s;for(let n of this.config.shortcuts){let o=e;if(n[2]?.prefix){let t=c(n[2].prefix).find(t=>e.startsWith(t));if(t==null)continue;o=e.slice(t.length)}if(te(n)){if(n[0]===o){i||=n[2],a=n[1],r(n);break}}else{let e=o.match(n[0]);if(e&&(a=n[1](e,t)),a){i||=n[2],r(n);break}}}if(a&&(o=l(c(a).filter(d).map(e=>ie(e.trim()).split(/\s+/g)).flat()),s=c(a).filter(e=>!d(e)).map(e=>({handles:[],value:e}))),!a){let r=d(e)?await this.matchVariants(e):[e];for(let e of r){let[r,i,a]=e;if(r!==i){let e=await this.expandShortcut(i,t,n-1);e&&(o=e[0].filter(d).map(e=>r.replace(i,e)),s=e[0].filter(e=>!d(e)).map(e=>({handles:[...e.handles,...a],value:e.value})))}}}if(!(!o?.length&&!s?.length))return[[await Promise.all(c(o).map(async e=>(await this.expandShortcut(e,t,n-1))?.[0]||[e])),s].flat(2).filter(e=>!!e),i]}async stringifyShortcuts(e,t,n,r={layer:this.config.shortcutsLayer}){let i=new S,a=(await Promise.all(l(n).map(async n=>{let i=d(n)?await this.parseUtil(n,t,!0,r.prefix):[[1/0,`{inline}`,C(n.value),void 0,n.handles]];return!i&&this.config.warn&&oe(`unmatched utility "${n}" in shortcut "${e[1]}"`),i||[]}))).flat(1).filter(Boolean).sort((e,t)=>e[0]-t[0]),[o,,s]=e,c=[];for(let e of a){if(v(e)){c.push([e[0],void 0,e[1],void 0,e[2],t,void 0]);continue}let n=Object.fromEntries(e[2])[L.shortcutsNoMerge],a=[...e[4],...n?[]:s];for(let{selector:t,entries:n,parent:s,sort:c,noMerge:l,layer:u}of this.applyVariants(e,a,o))i.getFallback(u??r.layer,new x).getFallback(t,s,[[],e[0]])[0].push([n,!!(l??e[3]?.noMerge),c??0])}return c.concat(i.flatMap((e,n)=>e.map(([e,i],a,o)=>{let s=(e,s,c)=>{let l=Math.max(...c.map(e=>e[1])),u=c.map(e=>e[0]);return(e?[u.flat(1)]:u).map(e=>{let c=D(e);if(c)return[i,a,c,o,{...r,noMerge:s,sort:l,layer:n},t,void 0]})};return[[e.filter(([,e])=>e).map(([e,,t])=>[e,t]),!0],[e.filter(([,e])=>!e).map(([e,,t])=>[e,t]),!1]].map(([e,t])=>[...s(!1,t,e.filter(([e])=>e.some(e=>e[0]===L.shortcutsNoMerge))),...s(!0,t,e.filter(([e])=>e.every(e=>e[0]!==L.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(e=>Array.isArray(e)?e[0]:e).some(t=>typeof t==`function`?t(e):d(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(t=>{let n=Array.isArray(t)?t[0]:t;return typeof n==`function`?n(e):d(n)?n===e:n.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function he(e,t){return await me.create(e,t)}var R=/\s\$\$\s+/g;function ge(e){return R.test(e)}function _e(e,t){return ge(e)?e.replace(R,t?` ${t} `:` `):t?`${t} ${e}`:e}var z=/^\[(.+?)(~?=)"(.*)"\]$/;function ve(e){return z.test(e)?e.replace(z,(e,t,n,r)=>`[${h(t)}${n}"${h(r)}"]`):`.${h(e)}`}function ye(e,t){return t(e)}function be(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,`$1 $2`).replace(/(["';{}><])\s*\n\s*/g,`$1`).replace(/\s*\n\s*/g,` `).replace(/\s+"/g,`"`).replace(/="\s+/g,`="`).replace(/(\s)+\/>/g,`/>`).trim()}var xe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Se=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function B(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(xe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Se.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var Ce=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Ce,...V}),we=Object.freeze({...H,body:``,hidden:!1}),Te=Object.freeze({width:null,height:null}),U=Object.freeze({...Te,...V});function Ee(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function De(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Oe(e,t,n){let r=Ee(e);return De(r.defs,t+r.content+n)}var W=e=>e===`unset`||e===`undefined`||e===`none`;function ke(e,t){let n={...H,...e},r={...U,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Oe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=B(d,c/l)):(u=o===`auto`?c:o,d=s===null?B(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{W(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Ae=/\swidth\s*=\s*["']([\w.]+)["']/,je=/\sheight\s*=\s*["']([\w.]+)["']/,G=/<svg\s+/;function Me(e,t,n){let r=e.slice(0,e.indexOf(`>`)),i=(e,i)=>{let a=i.exec(r),o=a!=null,s=t[e];return!s&&!W(s)&&(typeof n==`number`?n>0&&(t[e]=B(a?.[1]??`1em`,n)):a&&(t[e]=a[1])),o};return[i(`width`,Ae),i(`height`,je)]}async function K(e,t,n,r,i,a){let{scale:o,addXmlNs:s=!1}=r??{},{additionalProps:c={},iconCustomizer:l}=r?.customizations??{},u=await i?.()??{};await l?.(t,n,u),Object.keys(c).forEach(e=>{let t=c[e];t!=null&&(u[e]=t)}),a?.(u);let[d,f]=Me(e,u,o);s&&(!e.includes(`xmlns=`)&&!u.xmlns&&(u.xmlns=`http://www.w3.org/2000/svg`),!e.includes(`xmlns:xlink=`)&&e.includes(`xlink:`)&&!u[`xmlns:xlink`]&&(u[`xmlns:xlink`]=`http://www.w3.org/1999/xlink`));let p=Object.keys(u).map(e=>e===`width`&&d||e===`height`&&f?null:`${e}="${u[e]}"`).filter(e=>e!=null);if(p.length&&(e=e.replace(G,`<svg ${p.join(` `)} `)),r){let{defaultStyle:t,defaultClass:n}=r;n&&!e.includes(`class=`)&&(e=e.replace(G,`<svg class="${n}" `)),t&&!e.includes(`style=`)&&(e=e.replace(G,`<svg style="${t}" `))}let m=r?.usedProps;return m&&(Object.keys(c).forEach(e=>{let t=u[e];t!=null&&(m[e]=t)}),u.width!==void 0&&u.width!==null&&(m.width=u.width),u.height!==void 0&&u.height!==null&&(m.height=u.height)),e}async function q(e,t,n,r){let i;try{if(typeof e==`function`)i=await e(n);else{let t=e[n];i=typeof t==`function`?await t():t}}catch(e){console.warn(`Failed to load custom icon "${n}" in "${t}":`,e);return}if(i){let e=i.indexOf(`<svg`);e>0&&(i=i.slice(e));let{transform:a}=r?.customizations??{};return i=typeof a==`function`?await a(i,t,n):i,i.startsWith(`<svg`)?await K(r?.customizations?.trimCustomSvg===!0?be(i):i,t,n,r,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),i)}}function Ne(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function J(e,t){let n=Ne(e,t);for(let r in we)r in V?r in e&&!(r in n)&&(n[r]=V[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Pe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function Y(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=J(r[e]||i[e],a)}return o(t),n.forEach(o),J(e,a)}function Fe(e,t){if(e.icons[t])return Y(e,t,[]);let n=Pe(e,[t])[t];return n?Y(e,t,n):null}async function X(e,t,n,r){let i,{customize:a}=r?.customizations??{};for(let o of n)if(i=Fe(e,o),i){let e={...U};typeof a==`function`&&(i=Object.assign({},i),e=a(e,i,`${t}:${o}`)??e);let{attributes:{width:n,height:s,...c},body:l}=ke(i,e),u=r?.scale;return await K(`<svg >${l}</svg>`,t,o,r,()=>({...c}),e=>{let t=(t,n)=>{let r=e[t],i;if(!W(r)){if(r)return;typeof u==`number`?u&&(i=B(n??`1em`,u)):i=n}i?e[t]=i:delete e[t]};t(`width`,n),t(`height`,s)})}}var Z=async(e,t,n)=>{let r=n?.customCollections?.[e];if(r)if(typeof r==`function`){let i;try{i=await r(t)}catch(n){console.warn(`Failed to load custom icon "${t}" in "${e}":`,n);return}if(i){if(typeof i==`string`)return await q(()=>i,e,t,n);if(`icons`in i){let r=[t,t.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase(),t.replace(/([a-z])(\d+)/g,`$1-$2`)];return await X(i,e,r,n)}}}else return await q(r,e,t,n)};function Ie(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function Q(e){let t=e.startsWith(`<svg>`)?e.replace(`<svg>`,`<svg >`):e;return!t.includes(` xmlns:xlink=`)&&t.includes(` xlink:`)&&(t=t.replace(`<svg `,`<svg xmlns:xlink="http://www.w3.org/1999/xlink" `)),t.includes(` xmlns=`)||(t=t.replace(`<svg `,`<svg xmlns="http://www.w3.org/2000/svg" `)),Ie(t)}function Le(){let e=typeof process<`u`&&process.stdout;return{isNode:e,isVSCode:e&&!!{}.VSCODE_CWD,isESLint:e&&!!{}.ESLINT}}var $=`academicons.akar-icons.ant-design.arcticons.basil.bi.bitcoin-icons.bpmn.brandico.bubbles.bx.bxl.bxs.bytesize.carbon.catppuccin.cbi.charm.ci.cib.cif.cil.circle-flags.circum.clarity.codex.codicon.covid.cryptocurrency-color.cryptocurrency.cuida.dashicons.devicon-line.devicon-original.devicon-plain.devicon.dinkie-icons.duo-icons.ei.el.emblemicons.emojione-monotone.emojione-v1.emojione.entypo-social.entypo.eos-icons.ep.et.eva.f7.fa-brands.fa-regular.fa-solid.fa.fa6-brands.fa6-regular.fa6-solid.fa7-brands.fa7-regular.fa7-solid.fad.famicons.fe.feather.file-icons.flag.flagpack.flat-color-icons.flat-ui.flowbite.fluent-color.fluent-emoji-flat.fluent-emoji-high-contrast.fluent-emoji.fluent-mdl2.fluent.fontelico.fontisto.formkit.foundation.fxemoji.gala.game-icons.garden.geo.gg.gis.gravity-ui.gridicons.grommet-icons.guidance.healthicons.heroicons-outline.heroicons-solid.heroicons.hugeicons.humbleicons.ic.icomoon-free.icon-park-outline.icon-park-solid.icon-park-twotone.icon-park.iconamoon.iconoir.icons8.il.ion.iwwa.ix.jam.la.lets-icons.line-md.lineicons.logos.ls.lsicon.lucide-lab.lucide.mage.majesticons.maki.map.marketeq.material-icon-theme.material-symbols-light.material-symbols.mdi-light.mdi.medical-icon.memory.meteocons.meteor-icons.mi.mingcute.mono-icons.mynaui.nimbus.nonicons.noto-v1.noto.nrk.octicon.oi.ooui.openmoji.oui.pajamas.pepicons-pencil.pepicons-pop.pepicons-print.pepicons.ph.picon.pixel.pixelarticons.prime.proicons.ps.qlementine-icons.quill.radix-icons.raphael.ri.rivet-icons.roentgen.si-glyph.si.sidekickicons.simple-icons.simple-line-icons.skill-icons.solar.stash.streamline-block.streamline-color.streamline-cyber-color.streamline-cyber.streamline-emojis.streamline-flex-color.streamline-flex.streamline-freehand-color.streamline-freehand.streamline-guidance.streamline-kameleon-color.streamline-logos.streamline-pixel.streamline-plump-color.streamline-plump.streamline-sharp-color.streamline-sharp.streamline-stickies-color.streamline-ultimate-color.streamline-ultimate.streamline.subway.svg-spinners.system-uicons.tabler.tdesign.teenyicons.temaki.token-branded.token.topcoat.twemoji.typcn.uil.uim.uis.uit.uiw.unjs.vaadin.vs.vscode-icons.websymbol.weui.whh.wi.wpf.zmdi.zondicons`.split(`.`),Re=3;function ze(e){return fe((t={})=>{let{scale:n=1,mode:r=`auto`,prefix:i=`i-`,warn:a=!1,iconifyCollectionsNames:o,collections:s,extraProperties:c={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:d,layer:f=`icons`,unit:p,processor:m}=t,h=Le(),g={addXmlNs:!0,scale:n,customCollections:s,autoInstall:u,cwd:d,warn:void 0,customizations:{...l,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(e,t,r){await l.iconCustomizer?.(e,t,r),p&&(r.width||=`${n}${p}`,r.height||=`${n}${p}`)}}},_;return{name:`@unocss/preset-icons`,enforce:`pre`,options:t,layers:{icons:-30},api:{encodeSvgForCss:Q,parseIconWithLoader:Ve},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async n=>{let[i,s,c=r]=n;_||=await e(t);let l={},u=await Ve(s,_,{...g,usedProps:l},o);if(!u){a&&!h.isESLint&&oe(`failed to load icon "${i}"`);return}let d,f=`url("data:image/svg+xml;utf8,${Q(u.svg)}")`;return c===`auto`&&(c=u.svg.includes(`currentColor`)?`mask`:`bg`),d=c===`mask`?{"--un-icon":f,"-webkit-mask":`var(--un-icon) no-repeat`,mask:`var(--un-icon) no-repeat`,"-webkit-mask-size":`100% 100%`,"mask-size":`100% 100%`,"background-color":`currentColor`,color:`inherit`,...l}:{background:`${f} no-repeat`,"background-size":`100% 100%`,"background-color":`transparent`,...l},m?.(d,{...u,icon:u.name,mode:c}),d},{layer:f,prefix:i}]]}})}function Be(e,t,n=new Map){function r(r){if($.includes(r))return n.has(r)||n.set(r,e(`${t}@iconify-json/${r}/icons.json`)),n.get(r)}return async(e,t,n)=>{let i=await Z(e,t,n);if(i)return i;let a=await r(e);return a&&(i=await X(a,e,[t,t.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase(),t.replace(/([a-z])(\d+)/g,`$1-$2`)],n)),i}}async function Ve(e,t,n={},r=[]){let i=``,a=``,o,s=new Set([...$,...r,...Object.keys(n.customCollections||{})]);if(e.includes(`:`)){if([i,a]=e.split(`:`),!s.has(i))return;o=await t(i,a,n)}else{let r=e.split(/-/g);for(let e=Re;e>=1&&(i=r.slice(0,e).join(`-`),!(s.has(i)&&(a=r.slice(e).join(`-`),o=await t(i,a,n),o)));e--);}if(o)return{collection:i,name:a,svg:o}}async function He(t){let{$fetch:n}=await e(async()=>{let{$fetch:e}=await import(`../dist-joij2tdx.js`).then(e=>e.n);return{$fetch:e}},__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url);return Be(n,t)}var Ue=ze(async e=>{let t=e?.customFetch,n=e?.cdn;return t&&n?Be(t,n):n?await He(n):Z});function We(e){return e.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():``)}function Ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ke(e){return e.replace(/(?:^|\B)([A-Z])/g,`-$1`).toLowerCase()}var qe=[`Webkit`,`Moz`,`ms`];function Je(e){let t={};function n(n){let r=t[n];if(r)return r;let i=We(n);if(i!==`filter`&&i in e)return t[n]=Ke(i);i=Ge(i);for(let r=0;r<qe.length;r++){let a=`${qe[r]}${i}`;if(a in e)return t[n]=Ke(Ge(a))}return n}return({entries:e})=>e.forEach(e=>{e[0].startsWith(`--`)||(e[0]=n(e[0]))})}function Ye(e){return e.replace(/&/g,`&`).replace(/>/g,`>`).replace(/</g,`<`)}async function Xe(e={}){if(typeof window>`u`){console.warn(`@unocss/runtime been used in non-browser environment, skipped.`);return}let t=window,n=window.document,r=()=>n.documentElement,i=t.__unocss||{},a=Object.assign({},e,i.runtime),o=a.defaults||{},s=a.cloakAttribute??`un-cloak`;a.autoPrefix&&(o.postprocess=c(o.postprocess)).unshift(Je(n.createElement(`div`).style)),a.configResolved?.(i,o);let l=await he(i,o),u=t=>{let n=e.rootElement?.();if(n){n.appendChild(t);return}a.inject?a.inject(t):r().prepend(t)},f=()=>a.rootElement?a.rootElement():n.body,p=new Map,m=!0,h=new Set,g,_,v=[],y=()=>new Promise(e=>{v.push(e),_!=null&&clearTimeout(_),_=setTimeout(()=>S().then(()=>{let e=v;v=[],e.forEach(e=>e())}),0)});function b(e,t=!1){if(e.nodeType!==1)return;let n=e;n.hasAttribute(s)&&n.removeAttribute(s),t&&n.querySelectorAll(`[${s}]`).forEach(e=>{e.removeAttribute(s)})}function x(e,t){let r=p.get(e);if(!r)if(r=n.createElement(`style`),r.setAttribute(`data-unocss-runtime-layer`,e),p.set(e,r),t==null)u(r);else{let e=x(t),n=e.parentNode;n?n.insertBefore(r,e.nextSibling):u(r)}return r}async function S(){let e=[...h],t=await l.generate(e);return t.layers.reduce((e,n)=>(x(n,e).innerHTML=t.getLayer(n)??``,n),void 0),e.filter(e=>!t.matched.has(e)).forEach(e=>h.delete(e)),{...t,getStyleElement:e=>p.get(e),getStyleElements:()=>p}}async function C(e){let t=h.size;await l.applyExtractors(e,void 0,h),t!==h.size&&await y()}async function w(e=f()){let t=e&&e.outerHTML;t&&(await C(`${t} ${Ye(t)}`),b(r()),b(e,!0))}let T=new MutationObserver(e=>{m||e.forEach(async e=>{if(e.target.nodeType!==1)return;let t=e.target;for(let e of p)if(t===e[1])return;if(e.type===`childList`)e.addedNodes.forEach(async e=>{if(e.nodeType!==1)return;let t=e;g&&!g(t)||(await C(t.outerHTML),b(t))});else{if(g&&!g(t))return;if(e.attributeName!==s){let e=Array.from(t.attributes).map(e=>e.value?`${e.name}="${e.value}"`:e.name).join(` `);await C(`<${t.tagName.toLowerCase()} ${e}>`)}b(t)}})}),E=!1;function D(){if(E)return;let e=a.observer?.target?a.observer.target():f();e&&(T.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:a.observer?.attributeFilter}),E=!0)}function O(){a.bypassDefined&&Ze(l.blocked),w(),D()}function k(){n.readyState===`loading`?t.addEventListener(`DOMContentLoaded`,O):O()}let A=t.__unocss_runtime=t.__unocss_runtime={version:l.version,uno:l,async extract(e){d(e)||(e.forEach(e=>h.add(e)),e=``),await C(e)},extractAll:w,inspect(e){g=e},toggleObserver(e){m=e===void 0?!m:!!e,!E&&!m&&k()},update:S,presets:t.__unocss_runtime?.presets??{}};a.ready?.(A)!==!1&&(m=!1,k())}function Ze(e=new Set){for(let t=0;t<document.styleSheets.length;t++){let n=document.styleSheets[t],r;try{if(r=n.cssRules||n.rules,!r)continue;Array.from(r).flatMap(e=>e.selectorText?.split(/,/g)||[]).forEach(t=>{t&&(t=t.trim(),t.startsWith(`.`)&&(t=t.slice(1)),e.add(t))})}catch{continue}}return e}export{Ue as n,Xe as t};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../dist-jq34z2yz.js","../rolldown-runtime-oipoa1or.js","../dist-h291wass.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e}from"./json-editor-vue-jlmu1vk1.js";var t=`default`,n=`preflights`,r=`shortcuts`,i={imports:-200,[n]:-100,[r]:-10,[t]:0},a=/[\\:]?[\s'"`;{}]+/g;function o(e){return e.split(a)}var s={name:`@unocss/core/extractor-split`,order:0,extract({code:e}){return o(e)}};function c(e=[]){return Array.isArray(e)?e:[e]}function l(e){return Array.from(new Set(e))}function u(e,t){return e.reduce((e,n)=>(e.findIndex(e=>t(n,e))===-1&&e.push(n),e),[])}function d(e){return typeof e==`string`}var f=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function p(e){return e instanceof f}function m(e){let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r===37){i+=`\\%`;continue}if(r===44){i+=`\\,`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){i+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\${e.charAt(n)}`}return i}var h=m;function g(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(e=>e(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(e=>e!==t)}}}function _(e){return typeof e==`function`?{match:e}:e}function v(e){return e.length===3}function y(e){return e!=null}function b(){}var x=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([n,r])=>e(r,t,n)))}},S=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function C(e){return d(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(e=>e[1]!=null)}function w(e){return Array.isArray(e)?e.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?e.map(e=>C(e)):[e]:[C(e)]}function T(e){return e.filter(([t,n],r)=>{if(t.startsWith(`$$`))return!1;for(let i=r-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===n)return!1;return!0})}var E=`__virtual_key__`;function D(e){return e==null?``:T(e).map(([e,t])=>t!=null&&typeof t!=`function`?e===`__virtual_key__`?t:`${e}:${t};`:void 0).filter(Boolean).join(``)}function O(e){return e&&typeof e==`object`&&!Array.isArray(e)}function k(e,t,n=!1){let r=e,i=t;if(Array.isArray(i))return n&&Array.isArray(i)?[...r,...i]:[...i];let a={...r};return O(r)&&O(i)&&Object.keys(i).forEach(e=>{O(r[e])&&O(i[e])||Array.isArray(r[e])&&Array.isArray(i[e])?a[e]=k(r[e],i[e],n):Object.assign(a,{[e]:i[e]})}),a}function A(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r==`object`?A(r):r;return n}if(Object.prototype.toString.call(e)===`[object Object]`){for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:A(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r==`object`?A(r):r;return n}return e}function ee(e){return d(e[0])}function te(e){return d(e[0])}var j={};function ne(e=[`-`,`:`]){let t=e.join(`|`);return j[t]||(j[t]=RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,`gm`)),j[t].lastIndex=0,j[t]}function re(e,t=[`-`,`:`],n=5){let r=ne(t),i,a=e.toString(),o=new Set,s=new Map;do i=!1,a=a.replace(r,(e,n,r,a,c)=>{if(!t.includes(r))return e;i=!0,o.add(n+r);let l=c+n.length+r.length+1,u={length:e.length,items:[]};s.set(c,u);for(let e of[...a.matchAll(/\S+/g)]){let t=l+e.index,i=s.get(t)?.items;i?s.delete(t):i=[{offset:t,length:e[0].length,className:e[0]}];for(let e of i)e.className=e.className===`~`?n:e.className.replace(/^(!?)(.*)/,`$1${n}${r}$2`),u.items.push(e)}return`$`.repeat(e.length)}),--n;while(i&&n);let c;if(typeof e==`string`){c=``;let t=0;for(let[n,r]of s)c+=e.slice(t,n),c+=r.items.map(e=>e.className).join(` `),t=n+r.length;c+=e.slice(t)}else{c=e;for(let[e,t]of s)c.overwrite(e,e+t.length,t.items.map(e=>e.className).join(` `))}return{prefixes:Array.from(o),hasChanged:i,groupsByOffset:s,get expanded(){return c.toString()}}}function ie(e,t=[`-`,`:`],n=5){let r=re(e,t,n);return typeof e==`string`?r.expanded:e}var ae=new Set;function oe(e){ae.has(e)||(console.warn(`[unocss]`,e),ae.add(e))}function M(e){return c(e).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var N=`_uno_resolved`;async function se(e){let t=typeof e==`function`?await e():await e;if(N in t)return t;t={...t},Object.defineProperty(t,N,{value:!0,enumerable:!1});let n=t.shortcuts?M(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let e=e=>{e[2]||={};let n=e[2];n.prefix==null&&t.prefix&&(n.prefix=c(t.prefix)),n.layer==null&&t.layer&&(n.layer=t.layer)};n?.forEach(e),t.rules?.forEach(e)}return t}async function P(e){let t=await se(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(c).flatMap(P))).flat()]:[t]}function ce(e){if(e.length===0)return{};let t=[],n=[],r=!1,i=[],a=[];for(let o of e){if(o.pipeline===!1){r=!0;break}else o.pipeline?.include&&t.push(o.pipeline.include),o.pipeline?.exclude&&n.push(o.pipeline.exclude);o.filesystem&&i.push(o.filesystem),o.inline&&a.push(o.inline)}let o={pipeline:r?!1:{include:l(I(...t)),exclude:l(I(...n))}};return i.length&&(o.filesystem=l(i.flat())),a.length&&(o.inline=l(a.flat())),o}async function F(e={},t={}){let n=Object.assign({},t,e),r=u((await Promise.all((n.presets||[]).flatMap(c).flatMap(P))).flat(),(e,t)=>e.name===t.name),a=[...r.filter(e=>e.enforce===`pre`),...r.filter(e=>!e.enforce),...r.filter(e=>e.enforce===`post`)],o=[...a,n],d=[...o].reverse(),f=Object.assign({},i,...o.map(e=>e.layers));function p(e){return l(o.flatMap(t=>c(t[e]||[])))}let m=p(`extractors`),h=d.find(e=>e.extractorDefault!==void 0)?.extractorDefault;h===void 0&&(h=s),h&&!m.includes(h)&&m.unshift(h),m.sort((e,t)=>(e.order||0)-(t.order||0));let g=p(`rules`),v=g.length,y={},b=[];for(let[e,t]of g.entries()){let n=t[2]??={};n.__index=e,ee(t)?c(n.prefix??``).forEach(e=>{y[e+t[0]]=t}):b.unshift(t)}let x={templates:l(o.flatMap(e=>c(e.autocomplete?.templates))),extractors:o.flatMap(e=>c(e.autocomplete?.extractors)).sort((e,t)=>(e.order||0)-(t.order||0)),shorthands:ue(o.map(e=>e.autocomplete?.shorthands||{}))},S=p(`separators`);S.length||(S=[`:`,`-`]);let C=ce(p(`content`)),w={mergeSelectors:!0,warn:!0,sortLayers:e=>e,...n,blocklist:p(`blocklist`),presets:a,envMode:n.envMode||`build`,shortcutsLayer:n.shortcutsLayer||`shortcuts`,layers:f,theme:le(o.map(e=>e.theme)),rules:g,rulesSize:v,rulesDynamic:b,rulesStaticMap:y,preprocess:p(`preprocess`),postprocess:p(`postprocess`),preflights:p(`preflights`),autocomplete:x,variants:p(`variants`).map(_).sort((e,t)=>(e.order||0)-(t.order||0)),shortcuts:M(p(`shortcuts`)).reverse(),extractors:m,safelist:p(`safelist`),separators:S,details:n.details??n.envMode===`dev`,content:C,transformers:u(p(`transformers`),(e,t)=>e.name===t.name)},T=p(`extendTheme`);for(let e of T)w.theme=e(w.theme,w)||w.theme;for(let e of o)e?.configResolved?.(w);return w}function le(e){return e.map(e=>e?A(e):{}).reduce((e,t)=>k(e,t),{})}function ue(e){return e.reduce((e,t)=>{let n={};for(let e in t){let r=t[e];Array.isArray(r)?n[e]=`(${r.join(`|`)})`:n[e]=r}return{...e,...n}},{})}function I(...e){return e.flatMap(de)}function de(e){return Array.isArray(e)?e:e?[e]:[]}function fe(e){return e}var pe=`66.6.0`,L={shortcutsNoMerge:`$$symbol-shortcut-no-merge`,noMerge:`$$symbol-no-merge`,variants:`$$symbol-variants`,parent:`$$symbol-parent`,selector:`$$symbol-selector`,layer:`$$symbol-layer`,sort:`$$symbol-sort`,body:`$$symbol-body`},me=class e{constructor(e={},t={}){this.userConfig=e,this.defaults=t,this.version=pe,this.events=g(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(e,t,n,r)=>{let i=w(t).filter(e=>e.length);if(i.length){this.config.details&&r.rules.push(n),r.generator.activatedRules.add(n);let t=n[2];return i.map(n=>{if(d(n))return[t.__index,n,t];let i=r.variantHandlers,a=t;for(let e of n)e[0]===L.variants?i=typeof e[1]==`function`?e[1](i)||i:[...c(e[1]),...i]:e[0]===L.parent?i=[{parent:e[1]},...i]:e[0]===L.selector?i=[{selector:e[1]},...i]:e[0]===L.layer?i=[{layer:e[1]},...i]:e[0]===L.sort?a={...a,sort:e[1]}:e[0]===L.noMerge?a={...a,noMerge:e[1]}:e[0]===L.body&&(e[0]=E);return[t.__index,e,n,a,i]})}}}static async create(t={},n={}){let r=new e(t,n);return r.config=await F(r.userConfig,r.defaults),r.events.emit(`config`,r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await F(e,this.defaults),this.events.emit(`config`,this.config))}async applyExtractors(e,t,n=new Set){let r={original:e,code:e,id:t,extracted:n,envMode:this.config.envMode};for(let e of this.config.extractors){let t=await e.extract?.(r);if(t)if(p(t)&&p(n))for(let e of t)n.setCount(e,n.getCount(e)+t.getCount(e));else for(let e of t)n.add(e)}return n}makeContext(e,t){let n={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:L,variantHandlers:t[2],constructCSS:(...e)=>this.constructCustomCSS(n,...e),variantMatch:t};return n}async parseToken(e,t){if(this.blocked.has(e))return;let n=`${e}${t?` ${t}`:``}`;if(this.cache.has(n))return this.cache.get(n);let r=this.config.preprocess.reduce((e,t)=>t(e)??e,e);if(this.isBlocked(r)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,r);if(i.every(e=>!e||this.isBlocked(e[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async n=>{let r=this.makeContext(e,[t||n[0],n[1],n[2],n[3]]);this.config.details&&(r.variants=[...n[3]]);let i=await this.expandShortcut(r.currentSelector,r);return i?await this.stringifyShortcuts(r.variantMatch,r,i[0],i[1]):(await this.parseUtil(r.variantMatch,r))?.flatMap(e=>this.stringifyUtil(e,r)).filter(y)},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o?.length)return this.cache.set(n,o),o;this.cache.set(n,null)}async generate(e,r={}){let{id:i,scope:a,preflights:o=!0,safelist:s=!0,minify:c=!1,extendedInfo:u=!1}=r,m=d(e)?await this.applyExtractors(e,i,u?new f:new Set):Array.isArray(e)?new Set(e):e;if(s){let e={generator:this,theme:this.config.theme};this.config.safelist.flatMap(t=>typeof t==`function`?t(e):t).forEach(e=>{let t=e.trim();t&&!m.has(t)&&m.add(t)})}let h=c?``:`
|
|
3
|
+
`,g=new Set([t]),_=u?new Map:new Set,v=new Map,b={},x=Array.from(m).map(async e=>{if(_.has(e))return;let t=await this.parseToken(e);if(t!=null){_ instanceof Map?_.set(e,{data:t,count:p(m)?m.getCount(e):-1}):_.add(e);for(let e of t){let t=e[3]||``,n=e[4]?.layer;v.has(t)||v.set(t,[]),v.get(t).push(e),n&&g.add(n)}}});await Promise.all(x),await(async()=>{if(!o)return;let e={generator:this,theme:this.config.theme},t=new Set([]);this.config.preflights.forEach(({layer:e=n})=>{g.add(e),t.add(e)}),b=Object.fromEntries(await Promise.all(Array.from(t).map(async t=>[t,(await Promise.all(this.config.preflights.filter(e=>(e.layer||`preflights`)===t).map(async t=>await t.getCSS(e)))).filter(Boolean).join(h)])))})();let S=e=>this.config.sortLayers(e.sort((e,t)=>(this.config.layers[e]??0)-(this.config.layers[t]??0)||e.localeCompare(t))),C=S(Array.from(g)),w={},T=this.config.outputToCssLayers,E=e=>{let t=e;return typeof T==`object`&&(t=T.cssLayerName?.(e)),t===null?null:t??e},D=(e=t)=>{if(w[e])return w[e];let n=Array.from(v).sort((e,t)=>(this.parentOrders.get(e[0])??0)-(this.parentOrders.get(t[0])??0)||e[0]?.localeCompare(t[0]||``)||0).map(([t,n])=>{let r=n.length,i=n.filter(t=>(t[4]?.layer||`default`)===e).sort((e,t)=>e[0]-t[0]||(e[4]?.sort||0)-(t[4]?.sort||0)||e[5]?.currentSelector?.localeCompare(t[5]?.currentSelector??``)||e[1]?.localeCompare(t[1]||``)||e[2]?.localeCompare(t[2]||``)||0).map(([,e,t,,n,,r])=>[[[(e&&_e(e,a))??``,n?.sort??0]],t,!!(r??n?.noMerge)]);if(!i.length)return;let o=i.reverse().map(([e,t,n],a)=>{if(!n&&this.config.mergeSelectors)for(let n=a+1;n<r;n++){let r=i[n];if(r&&!r[2]&&(e&&r[0]||e==null&&r[0]==null)&&r[1]===t)return e&&r[0]&&r[0].push(...e),null}let o=e?l(e.sort((e,t)=>e[1]-t[1]||e[0]?.localeCompare(t[0]||``)||0).map(e=>e[0]).filter(Boolean)):[];return o.length?`${o.join(`,${h}`)}{${t}}`:t}).filter(Boolean),s=Array.from(new Set(o)).reverse().join(h);if(!t)return s;let c=t.split(` $$ `);return`${c.join(`{`)}{${h}${s}${h}${`}`.repeat(c.length)}`}).filter(Boolean).join(h);o&&(n=[b[e],n].filter(Boolean).join(h));let r;T&&n&&(r=E(e),r!==null&&(n=`@layer ${r}{${h}${n}${h}}`));let i=c?``:`/* layer: ${e}${r&&r!==e?`, alias: ${r}`:``} */${h}`;return w[e]=n?i+n:``},O=(e=C,t)=>{let n=e.filter(e=>!t?.includes(e)),r=n.map(D).filter(Boolean);if(T){let e=n;typeof T==`object`&&T.allLayers&&(e=S(Object.keys(this.config.layers))),e.length>0&&r.unshift(`@layer ${e.map(E).filter(y).join(`, `)};`)}return r.join(h)};return{get css(){return O()},layers:C,matched:_,getLayers:O,getLayer:D,setLayer:async(e,t)=>{let n=await t(D(e));return w[e]=n,n}}}async matchVariants(e,t){let n={rawSelector:e,theme:this.config.theme,generator:this},r=async t=>{let i=!0,[,,a,o]=t;for(;i;){i=!1;let s=t[1];for(let e of this.config.variants){if(!e.multiPass&&o.has(e))continue;let c=await e.match(s,n);if(c){if(d(c)){if(c===s)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(e.multiPass)throw Error(`multiPass can not be used together with array return variants`);let n=c.map(n=>{let r=n.matcher??s,i=[n,...a],c=new Set(o);return c.add(e),[t[0],r,i,c]});return(await Promise.all(n.map(e=>r(e)))).flat()}}t[1]=c.matcher??s,a.unshift(c),o.add(e),i=!0;break}}if(!i)break;if(a.length>500)throw Error(`Too many variants applied to "${e}"`)}return[t]};return await r([e,t||e,[],new Set])}applyVariants(e,t=e[4],n=e[1]){let r=t.slice().sort((e,t)=>(e.order||0)-(t.order||0)).reduceRight((e,t)=>n=>{let r=t.body?.(n.entries)||n.entries,i=Array.isArray(t.parent)?t.parent:[t.parent,void 0],a=t.selector?.(n.selector,r);return(t.handle??ye)({...n,entries:r,selector:a||n.selector,parent:i[0]||n.parent,parentOrder:i[1]||n.parentOrder,layer:t.layer||n.layer,sort:t.sort||n.sort},e)},e=>e)({prefix:``,selector:ve(n),pseudo:``,entries:e[2]}),{parent:i,parentOrder:a}=r;i!=null&&a!=null&&this.parentOrders.set(i,a);let o={selector:[r.prefix,r.selector,r.pseudo].join(``),entries:r.entries,parent:i,layer:r.layer,sort:r.sort,noMerge:r.noMerge};return this.config.postprocess.reduce((e,t)=>{let n=[];for(let r of e){let e=t(r);Array.isArray(e)?n.push(...e.filter(y)):n.push(e||r)}return n},[o])}constructCustomCSS(e,t,n){let r=C(t);return d(r)?r:this.applyVariants([0,n||e.rawSelector,r,void 0,e.variantHandlers]).map(({selector:e,entries:t,parent:n})=>{let r=`${e}{${D(t)}}`;return n?`${n}{${r}}`:r}).join(``)}async parseUtil(e,t,n=!1,r){let i=d(e)?await this.matchVariants(e):[e],a=async([e,i,a])=>{this.config.details&&(t.rules=t.rules??[]);let o={...t,variantHandlers:a},s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!s[2]?.internal))return this.resolveCSSResult(e,s[1],s,o);for(let t of this.config.rulesDynamic){let[a,s,l]=t;if(l?.internal&&!n)continue;let u=i;if(l?.prefix){let e=c(l.prefix);if(r){let t=c(r);if(!e.some(e=>t.includes(e)))continue}else{let t=e.find(e=>i.startsWith(e));if(t==null)continue;u=i.slice(t.length)}}let d=u.match(a);if(!d)continue;let f=await s(d,o);if(!f)continue;if(typeof f!=`string`)if(Symbol.asyncIterator in f){let e=[];for await(let t of f)t&&e.push(t);f=e}else Symbol.iterator in f&&!Array.isArray(f)&&(f=Array.from(f).filter(y));let p=this.resolveCSSResult(e,f,t,o);if(p)return p}},o=(await Promise.all(i.map(e=>a(e)))).flat().filter(e=>!!e);if(o.length)return o}stringifyUtil(e,t){if(!e)return;if(v(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0]];let n=this.applyVariants(e),r=[];for(let i of n){let{selector:n,entries:a,parent:o,layer:s,sort:c,noMerge:l}=i,u=D(a);if(!u)continue;let{layer:d,sort:f,...p}=e[3]??{},m={...p,layer:s??d,sort:c??f};r.push([e[0],n,u,o,m,this.config.details?t:void 0,l])}return r}async expandShortcut(e,t,n=5){if(n===0)return;let r=this.config.details?e=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(e)}:b,i,a,o,s;for(let n of this.config.shortcuts){let o=e;if(n[2]?.prefix){let t=c(n[2].prefix).find(t=>e.startsWith(t));if(t==null)continue;o=e.slice(t.length)}if(te(n)){if(n[0]===o){i||=n[2],a=n[1],r(n);break}}else{let e=o.match(n[0]);if(e&&(a=n[1](e,t)),a){i||=n[2],r(n);break}}}if(a&&(o=l(c(a).filter(d).map(e=>ie(e.trim()).split(/\s+/g)).flat()),s=c(a).filter(e=>!d(e)).map(e=>({handles:[],value:e}))),!a){let r=d(e)?await this.matchVariants(e):[e];for(let e of r){let[r,i,a]=e;if(r!==i){let e=await this.expandShortcut(i,t,n-1);e&&(o=e[0].filter(d).map(e=>r.replace(i,e)),s=e[0].filter(e=>!d(e)).map(e=>({handles:[...e.handles,...a],value:e.value})))}}}if(!(!o?.length&&!s?.length))return[[await Promise.all(c(o).map(async e=>(await this.expandShortcut(e,t,n-1))?.[0]||[e])),s].flat(2).filter(e=>!!e),i]}async stringifyShortcuts(e,t,n,r={layer:this.config.shortcutsLayer}){let i=new S,a=(await Promise.all(l(n).map(async n=>{let i=d(n)?await this.parseUtil(n,t,!0,r.prefix):[[1/0,`{inline}`,C(n.value),void 0,n.handles]];return!i&&this.config.warn&&oe(`unmatched utility "${n}" in shortcut "${e[1]}"`),i||[]}))).flat(1).filter(Boolean).sort((e,t)=>e[0]-t[0]),[o,,s]=e,c=[];for(let e of a){if(v(e)){c.push([e[0],void 0,e[1],void 0,e[2],t,void 0]);continue}let n=Object.fromEntries(e[2])[L.shortcutsNoMerge],a=[...e[4],...n?[]:s];for(let{selector:t,entries:n,parent:s,sort:c,noMerge:l,layer:u}of this.applyVariants(e,a,o))i.getFallback(u??r.layer,new x).getFallback(t,s,[[],e[0]])[0].push([n,!!(l??e[3]?.noMerge),c??0])}return c.concat(i.flatMap((e,n)=>e.map(([e,i],a,o)=>{let s=(e,s,c)=>{let l=Math.max(...c.map(e=>e[1])),u=c.map(e=>e[0]);return(e?[u.flat(1)]:u).map(e=>{let c=D(e);if(c)return[i,a,c,o,{...r,noMerge:s,sort:l,layer:n},t,void 0]})};return[[e.filter(([,e])=>e).map(([e,,t])=>[e,t]),!0],[e.filter(([,e])=>!e).map(([e,,t])=>[e,t]),!1]].map(([e,t])=>[...s(!1,t,e.filter(([e])=>e.some(e=>e[0]===L.shortcutsNoMerge))),...s(!0,t,e.filter(([e])=>e.every(e=>e[0]!==L.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(e=>Array.isArray(e)?e[0]:e).some(t=>typeof t==`function`?t(e):d(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(t=>{let n=Array.isArray(t)?t[0]:t;return typeof n==`function`?n(e):d(n)?n===e:n.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function he(e,t){return await me.create(e,t)}var R=/\s\$\$\s+/g;function ge(e){return R.test(e)}function _e(e,t){return ge(e)?e.replace(R,t?` ${t} `:` `):t?`${t} ${e}`:e}var z=/^\[(.+?)(~?=)"(.*)"\]$/;function ve(e){return z.test(e)?e.replace(z,(e,t,n,r)=>`[${h(t)}${n}"${h(r)}"]`):`.${h(e)}`}function ye(e,t){return t(e)}function be(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,`$1 $2`).replace(/(["';{}><])\s*\n\s*/g,`$1`).replace(/\s*\n\s*/g,` `).replace(/\s+"/g,`"`).replace(/="\s+/g,`="`).replace(/(\s)+\/>/g,`/>`).trim()}var xe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Se=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function B(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(xe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Se.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var Ce=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Ce,...V}),we=Object.freeze({...H,body:``,hidden:!1}),Te=Object.freeze({width:null,height:null}),U=Object.freeze({...Te,...V});function Ee(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function De(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Oe(e,t,n){let r=Ee(e);return De(r.defs,t+r.content+n)}var W=e=>e===`unset`||e===`undefined`||e===`none`;function ke(e,t){let n={...H,...e},r={...U,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Oe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=B(d,c/l)):(u=o===`auto`?c:o,d=s===null?B(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{W(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Ae=/\swidth\s*=\s*["']([\w.]+)["']/,je=/\sheight\s*=\s*["']([\w.]+)["']/,G=/<svg\s+/;function Me(e,t,n){let r=e.slice(0,e.indexOf(`>`)),i=(e,i)=>{let a=i.exec(r),o=a!=null,s=t[e];return!s&&!W(s)&&(typeof n==`number`?n>0&&(t[e]=B(a?.[1]??`1em`,n)):a&&(t[e]=a[1])),o};return[i(`width`,Ae),i(`height`,je)]}async function K(e,t,n,r,i,a){let{scale:o,addXmlNs:s=!1}=r??{},{additionalProps:c={},iconCustomizer:l}=r?.customizations??{},u=await i?.()??{};await l?.(t,n,u),Object.keys(c).forEach(e=>{let t=c[e];t!=null&&(u[e]=t)}),a?.(u);let[d,f]=Me(e,u,o);s&&(!e.includes(`xmlns=`)&&!u.xmlns&&(u.xmlns=`http://www.w3.org/2000/svg`),!e.includes(`xmlns:xlink=`)&&e.includes(`xlink:`)&&!u[`xmlns:xlink`]&&(u[`xmlns:xlink`]=`http://www.w3.org/1999/xlink`));let p=Object.keys(u).map(e=>e===`width`&&d||e===`height`&&f?null:`${e}="${u[e]}"`).filter(e=>e!=null);if(p.length&&(e=e.replace(G,`<svg ${p.join(` `)} `)),r){let{defaultStyle:t,defaultClass:n}=r;n&&!e.includes(`class=`)&&(e=e.replace(G,`<svg class="${n}" `)),t&&!e.includes(`style=`)&&(e=e.replace(G,`<svg style="${t}" `))}let m=r?.usedProps;return m&&(Object.keys(c).forEach(e=>{let t=u[e];t!=null&&(m[e]=t)}),u.width!==void 0&&u.width!==null&&(m.width=u.width),u.height!==void 0&&u.height!==null&&(m.height=u.height)),e}async function q(e,t,n,r){let i;try{if(typeof e==`function`)i=await e(n);else{let t=e[n];i=typeof t==`function`?await t():t}}catch(e){console.warn(`Failed to load custom icon "${n}" in "${t}":`,e);return}if(i){let e=i.indexOf(`<svg`);e>0&&(i=i.slice(e));let{transform:a}=r?.customizations??{};return i=typeof a==`function`?await a(i,t,n):i,i.startsWith(`<svg`)?await K(r?.customizations?.trimCustomSvg===!0?be(i):i,t,n,r,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),i)}}function Ne(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function J(e,t){let n=Ne(e,t);for(let r in we)r in V?r in e&&!(r in n)&&(n[r]=V[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Pe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function Y(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=J(r[e]||i[e],a)}return o(t),n.forEach(o),J(e,a)}function Fe(e,t){if(e.icons[t])return Y(e,t,[]);let n=Pe(e,[t])[t];return n?Y(e,t,n):null}async function X(e,t,n,r){let i,{customize:a}=r?.customizations??{};for(let o of n)if(i=Fe(e,o),i){let e={...U};typeof a==`function`&&(i=Object.assign({},i),e=a(e,i,`${t}:${o}`)??e);let{attributes:{width:n,height:s,...c},body:l}=ke(i,e),u=r?.scale;return await K(`<svg >${l}</svg>`,t,o,r,()=>({...c}),e=>{let t=(t,n)=>{let r=e[t],i;if(!W(r)){if(r)return;typeof u==`number`?u&&(i=B(n??`1em`,u)):i=n}i?e[t]=i:delete e[t]};t(`width`,n),t(`height`,s)})}}var Z=async(e,t,n)=>{let r=n?.customCollections?.[e];if(r)if(typeof r==`function`){let i;try{i=await r(t)}catch(n){console.warn(`Failed to load custom icon "${t}" in "${e}":`,n);return}if(i){if(typeof i==`string`)return await q(()=>i,e,t,n);if(`icons`in i){let r=[t,t.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase(),t.replace(/([a-z])(\d+)/g,`$1-$2`)];return await X(i,e,r,n)}}}else return await q(r,e,t,n)};function Ie(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function Q(e){let t=e.startsWith(`<svg>`)?e.replace(`<svg>`,`<svg >`):e;return!t.includes(` xmlns:xlink=`)&&t.includes(` xlink:`)&&(t=t.replace(`<svg `,`<svg xmlns:xlink="http://www.w3.org/1999/xlink" `)),t.includes(` xmlns=`)||(t=t.replace(`<svg `,`<svg xmlns="http://www.w3.org/2000/svg" `)),Ie(t)}function Le(){let e=typeof process<`u`&&process.stdout;return{isNode:e,isVSCode:e&&!!{}.VSCODE_CWD,isESLint:e&&!!{}.ESLINT}}var $=`academicons.akar-icons.ant-design.arcticons.basil.bi.bitcoin-icons.bpmn.brandico.bubbles.bx.bxl.bxs.bytesize.carbon.catppuccin.cbi.charm.ci.cib.cif.cil.circle-flags.circum.clarity.codex.codicon.covid.cryptocurrency-color.cryptocurrency.cuida.dashicons.devicon-line.devicon-original.devicon-plain.devicon.dinkie-icons.duo-icons.ei.el.emblemicons.emojione-monotone.emojione-v1.emojione.entypo-social.entypo.eos-icons.ep.et.eva.f7.fa-brands.fa-regular.fa-solid.fa.fa6-brands.fa6-regular.fa6-solid.fa7-brands.fa7-regular.fa7-solid.fad.famicons.fe.feather.file-icons.flag.flagpack.flat-color-icons.flat-ui.flowbite.fluent-color.fluent-emoji-flat.fluent-emoji-high-contrast.fluent-emoji.fluent-mdl2.fluent.fontelico.fontisto.formkit.foundation.fxemoji.gala.game-icons.garden.geo.gg.gis.gravity-ui.gridicons.grommet-icons.guidance.healthicons.heroicons-outline.heroicons-solid.heroicons.hugeicons.humbleicons.ic.icomoon-free.icon-park-outline.icon-park-solid.icon-park-twotone.icon-park.iconamoon.iconoir.icons8.il.ion.iwwa.ix.jam.la.lets-icons.line-md.lineicons.logos.ls.lsicon.lucide-lab.lucide.mage.majesticons.maki.map.marketeq.material-icon-theme.material-symbols-light.material-symbols.mdi-light.mdi.medical-icon.memory.meteocons.meteor-icons.mi.mingcute.mono-icons.mynaui.nimbus.nonicons.noto-v1.noto.nrk.octicon.oi.ooui.openmoji.oui.pajamas.pepicons-pencil.pepicons-pop.pepicons-print.pepicons.ph.picon.pixel.pixelarticons.prime.proicons.ps.qlementine-icons.quill.radix-icons.raphael.ri.rivet-icons.roentgen.si-glyph.si.sidekickicons.simple-icons.simple-line-icons.skill-icons.solar.stash.streamline-block.streamline-color.streamline-cyber-color.streamline-cyber.streamline-emojis.streamline-flex-color.streamline-flex.streamline-freehand-color.streamline-freehand.streamline-guidance.streamline-kameleon-color.streamline-logos.streamline-pixel.streamline-plump-color.streamline-plump.streamline-sharp-color.streamline-sharp.streamline-stickies-color.streamline-ultimate-color.streamline-ultimate.streamline.subway.svg-spinners.system-uicons.tabler.tdesign.teenyicons.temaki.token-branded.token.topcoat.twemoji.typcn.uil.uim.uis.uit.uiw.unjs.vaadin.vs.vscode-icons.websymbol.weui.whh.wi.wpf.zmdi.zondicons`.split(`.`),Re=3;function ze(e){return fe((t={})=>{let{scale:n=1,mode:r=`auto`,prefix:i=`i-`,warn:a=!1,iconifyCollectionsNames:o,collections:s,extraProperties:c={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:d,layer:f=`icons`,unit:p,processor:m}=t,h=Le(),g={addXmlNs:!0,scale:n,customCollections:s,autoInstall:u,cwd:d,warn:void 0,customizations:{...l,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(e,t,r){await l.iconCustomizer?.(e,t,r),p&&(r.width||=`${n}${p}`,r.height||=`${n}${p}`)}}},_;return{name:`@unocss/preset-icons`,enforce:`pre`,options:t,layers:{icons:-30},api:{encodeSvgForCss:Q,parseIconWithLoader:Ve},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async n=>{let[i,s,c=r]=n;_||=await e(t);let l={},u=await Ve(s,_,{...g,usedProps:l},o);if(!u){a&&!h.isESLint&&oe(`failed to load icon "${i}"`);return}let d,f=`url("data:image/svg+xml;utf8,${Q(u.svg)}")`;return c===`auto`&&(c=u.svg.includes(`currentColor`)?`mask`:`bg`),d=c===`mask`?{"--un-icon":f,"-webkit-mask":`var(--un-icon) no-repeat`,mask:`var(--un-icon) no-repeat`,"-webkit-mask-size":`100% 100%`,"mask-size":`100% 100%`,"background-color":`currentColor`,color:`inherit`,...l}:{background:`${f} no-repeat`,"background-size":`100% 100%`,"background-color":`transparent`,...l},m?.(d,{...u,icon:u.name,mode:c}),d},{layer:f,prefix:i}]]}})}function Be(e,t,n=new Map){function r(r){if($.includes(r))return n.has(r)||n.set(r,e(`${t}@iconify-json/${r}/icons.json`)),n.get(r)}return async(e,t,n)=>{let i=await Z(e,t,n);if(i)return i;let a=await r(e);return a&&(i=await X(a,e,[t,t.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase(),t.replace(/([a-z])(\d+)/g,`$1-$2`)],n)),i}}async function Ve(e,t,n={},r=[]){let i=``,a=``,o,s=new Set([...$,...r,...Object.keys(n.customCollections||{})]);if(e.includes(`:`)){if([i,a]=e.split(`:`),!s.has(i))return;o=await t(i,a,n)}else{let r=e.split(/-/g);for(let e=Re;e>=1&&(i=r.slice(0,e).join(`-`),!(s.has(i)&&(a=r.slice(e).join(`-`),o=await t(i,a,n),o)));e--);}if(o)return{collection:i,name:a,svg:o}}async function He(t){let{$fetch:n}=await e(async()=>{let{$fetch:e}=await import(`../dist-jq34z2yz.js`).then(e=>e.n);return{$fetch:e}},__vite__mapDeps([0,1,2]),import.meta.url);return Be(n,t)}var Ue=ze(async e=>{let t=e?.customFetch,n=e?.cdn;return t&&n?Be(t,n):n?await He(n):Z});function We(e){return e.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():``)}function Ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ke(e){return e.replace(/(?:^|\B)([A-Z])/g,`-$1`).toLowerCase()}var qe=[`Webkit`,`Moz`,`ms`];function Je(e){let t={};function n(n){let r=t[n];if(r)return r;let i=We(n);if(i!==`filter`&&i in e)return t[n]=Ke(i);i=Ge(i);for(let r=0;r<qe.length;r++){let a=`${qe[r]}${i}`;if(a in e)return t[n]=Ke(Ge(a))}return n}return({entries:e})=>e.forEach(e=>{e[0].startsWith(`--`)||(e[0]=n(e[0]))})}function Ye(e){return e.replace(/&/g,`&`).replace(/>/g,`>`).replace(/</g,`<`)}async function Xe(e={}){if(typeof window>`u`){console.warn(`@unocss/runtime been used in non-browser environment, skipped.`);return}let t=window,n=window.document,r=()=>n.documentElement,i=t.__unocss||{},a=Object.assign({},e,i.runtime),o=a.defaults||{},s=a.cloakAttribute??`un-cloak`;a.autoPrefix&&(o.postprocess=c(o.postprocess)).unshift(Je(n.createElement(`div`).style)),a.configResolved?.(i,o);let l=await he(i,o),u=t=>{let n=e.rootElement?.();if(n){n.appendChild(t);return}a.inject?a.inject(t):r().prepend(t)},f=()=>a.rootElement?a.rootElement():n.body,p=new Map,m=!0,h=new Set,g,_,v=[],y=()=>new Promise(e=>{v.push(e),_!=null&&clearTimeout(_),_=setTimeout(()=>S().then(()=>{let e=v;v=[],e.forEach(e=>e())}),0)});function b(e,t=!1){if(e.nodeType!==1)return;let n=e;n.hasAttribute(s)&&n.removeAttribute(s),t&&n.querySelectorAll(`[${s}]`).forEach(e=>{e.removeAttribute(s)})}function x(e,t){let r=p.get(e);if(!r)if(r=n.createElement(`style`),r.setAttribute(`data-unocss-runtime-layer`,e),p.set(e,r),t==null)u(r);else{let e=x(t),n=e.parentNode;n?n.insertBefore(r,e.nextSibling):u(r)}return r}async function S(){let e=[...h],t=await l.generate(e);return t.layers.reduce((e,n)=>(x(n,e).innerHTML=t.getLayer(n)??``,n),void 0),e.filter(e=>!t.matched.has(e)).forEach(e=>h.delete(e)),{...t,getStyleElement:e=>p.get(e),getStyleElements:()=>p}}async function C(e){let t=h.size;await l.applyExtractors(e,void 0,h),t!==h.size&&await y()}async function w(e=f()){let t=e&&e.outerHTML;t&&(await C(`${t} ${Ye(t)}`),b(r()),b(e,!0))}let T=new MutationObserver(e=>{m||e.forEach(async e=>{if(e.target.nodeType!==1)return;let t=e.target;for(let e of p)if(t===e[1])return;if(e.type===`childList`)e.addedNodes.forEach(async e=>{if(e.nodeType!==1)return;let t=e;g&&!g(t)||(await C(t.outerHTML),b(t))});else{if(g&&!g(t))return;if(e.attributeName!==s){let e=Array.from(t.attributes).map(e=>e.value?`${e.name}="${e.value}"`:e.name).join(` `);await C(`<${t.tagName.toLowerCase()} ${e}>`)}b(t)}})}),E=!1;function D(){if(E)return;let e=a.observer?.target?a.observer.target():f();e&&(T.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:a.observer?.attributeFilter}),E=!0)}function O(){a.bypassDefined&&Ze(l.blocked),w(),D()}function k(){n.readyState===`loading`?t.addEventListener(`DOMContentLoaded`,O):O()}let A=t.__unocss_runtime=t.__unocss_runtime={version:l.version,uno:l,async extract(e){d(e)||(e.forEach(e=>h.add(e)),e=``),await C(e)},extractAll:w,inspect(e){g=e},toggleObserver(e){m=e===void 0?!m:!!e,!E&&!m&&k()},update:S,presets:t.__unocss_runtime?.presets??{}};a.ready?.(A)!==!1&&(m=!1,k())}function Ze(e=new Set){for(let t=0;t<document.styleSheets.length;t++){let n=document.styleSheets[t],r;try{if(r=n.cssRules||n.rules,!r)continue;Array.from(r).flatMap(e=>e.selectorText?.split(/,/g)||[]).forEach(t=>{t&&(t=t.trim(),t.startsWith(`.`)&&(t=t.slice(1)),e.add(t))})}catch{continue}}return e}export{Ue as n,Xe as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ct as e,E as t,Qt as n,W as r,Y as i,c as a,dt as o,g as s,h as c,lt as l,m as u,tn as d,v as f,w as p}from"./vendor/json-editor-vue-jlmu1vk1.js";import"./ready-mmkdpbhg.js";import"./nuxt-h34yfo3l.js";import"./head-k6pu038r.js";import{_ as m}from"./state-b65zn1p8.js";import"./client-ea5fdhj9.js";import"./vendor/shiki-jnavg768.js";import"./storage-options-os0x8zby.js";import"./nuxt-link-lrojf3ui.js";import{t as h}from"./_plugin-vue_export-helper-myijwyyb.js";import"./nicon-j0r9gdjm.js";import"./nbutton-m0kqfedx.js";import{t as g}from"./ncard-qqqgbjy9.js";import{i as _}from"./state-routes-ovtjymzc.js";import{t as v}from"./npanel-grids-m4ogaoh1.js";import"./ntext-input-ozkk5xro.js";import{c as y,s as b}from"#entry";import"./client-lfu9nb62.js";import{t as x}from"./ncode-block-o9sq6td7.js";import"./composables-k2ak4j8d.js";import{t as S}from"./help-fab-hk76lwiw.js";import{t as C}from"./nnavbar-b0i34u17.js";var w={},T={class:`markdown-body`};function E(e,t){return r(),f(`div`,T,[...t[0]||=[c(`template`,null,[c(`div`,{class:`markdown-body`},[c(`h1`,null,`Virtual Files`),c(`p`,null,`Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.`)])],-1)]])}var D=h(w,[[`render`,E]]),O=[`onClick`],k={key:0,"h-full":``,"of-hidden":``,flex:`~ col`},A={border:`b base`,"flex-none":``,px4:``,py2:``,"text-sm":``,op75:``},j=t({__name:`virtual-files`,setup(t){let h=e(``),w=m(),T=_(),E=e();l(()=>{if(!T.value)return;let e=`/_vfs.json/${encodeURIComponent(T.value)}`;fetch(e,{headers:{accept:`application/json`}}).then(e=>e.json()).then(e=>E.value=e.current)});function j(e){if(w.value?.rootDir)return e.startsWith(w.value?.rootDir)?e.slice(w.value.rootDir.length):e}let M=u(()=>w.value?w.value.entries.filter(e=>!e.id.startsWith(`${w.value?.rootDir||``}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),N=u(()=>new b(M.value,{keys:[`id`,`path`]})),P=u(()=>h.value?N.value.search(h.value).map(e=>e.item):M.value);return(e,t)=>{let l=C,u=x,m=g,_=v,b=y,w=D,M=S;return r(),f(a,null,[p(b,{class:`virtual-files`,"storage-key":`tab-virtual-files`},{left:o(()=>[p(l,{search:h.value,"onUpdate:search":t[0]||=e=>h.value=e,"no-padding":``,p3:``},null,8,[`search`]),(r(!0),f(a,null,i(P.value,e=>(r(),f(a,{key:e.id},[c(`button`,{block:``,"w-full":``,"select-none":``,truncate:``,px2:``,py1:``,"text-start":``,"text-sm":``,"font-mono":``,class:n(e.id===E.value?.id?`text-primary n-bg-active`:`text-secondary hover:n-bg-hover`),onClick:t=>T.value=e.id},d(j(e.id)),11,O),t[1]||=c(`div`,{"x-divider":``},null,-1)],64))),128))]),right:o(()=>[E.value?.content?(r(),f(`div`,k,[c(`div`,A,[c(`code`,null,d(E.value.id),1)]),p(u,{"h-full":``,"of-auto":``,"text-sm":``,code:E.value.content,lang:`typescript`},null,8,[`code`])])):(r(),s(_,{key:1},{default:o(()=>[p(m,{px6:``,py2:``},{default:o(()=>[...t[2]||=[c(`span`,{op75:``},`Select a file to start`,-1)]]),_:1})]),_:1}))]),_:1}),p(M,null,{default:o(()=>[p(w)]),_:1})],64)}}});export{j as default};
|