@htmlbricks/hb-markdown-viewer 0.61.40 → 0.61.42
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/main.iife.js +45 -45
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
(function(Bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const sr=2,ir="[",lr="]",de={},y=Symbol(),Dt=!1;var qt=Array.isArray,ar=Array.prototype.indexOf,or=Array.from,Me=Object.keys,ge=Object.defineProperty,be=Object.getOwnPropertyDescriptor,ur=Object.prototype,cr=Array.prototype,fr=Object.getPrototypeOf,jt=Object.isExtensible;function Ft(t){for(var e=0;e<t.length;e++)t[e]()}function hr(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}const P=2,lt=4,Gt=8,Ee=16,W=32,X=64,Zt=128,L=256,Be=512,T=1024,N=2048,V=4096,ve=8192,se=16384,at=32768,pr=65536,Ht=1<<17,dr=1<<18,me=1<<19,gr=1<<20,ot=1<<21,ut=1<<22,ie=1<<23,ct=Symbol("$state"),br=Symbol("legacy props"),ft=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ht=8;function vr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function kr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _r(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function wr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function xr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yr(){throw new Error("https://svelte.dev/e/hydration_failed")}function $r(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Er(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function De(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let j=!1;function qe(t){j=t}let $;function Se(t){if(t===null)throw De(),de;return $=t}function je(){return Se(Te($))}function Fe(t){if(j){if(Te($)!==null)throw De(),de;$=t}}function Ut(t){return t===this.v}function Rr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tr(t){return!Rr(t,this.v)}let Ar=!1,M=null;function Ge(t){M=t}function Yt(t,e=!1,n){M={p:M,c:null,e:null,s:t,x:null,l:null}}function Qt(t){var e=M,n=e.e;if(n!==null){e.e=null;for(var r of n)pn(r)}return t!==void 0&&(e.x=t),M=e.p,t??{}}function Wt(){return!0}const Cr=new WeakMap;function Pr(t){var e=v;if(e===null)return m.f|=ie,t;if((e.f&at)===0){if((e.f&Zt)===0)throw!e.parent&&t instanceof Error&&Xt(t),t;e.b.error(t)}else pt(t,e)}function pt(t,e){for(;e!==null;){if((e.f&Zt)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&Xt(t),t}function Xt(t){const e=Cr.get(t);e&&(ge(t,"message",{value:e.message}),ge(t,"stack",{value:e.stack}))}let dt=[],gt=[];function Ir(){var t=dt;dt=[],Ft(t)}function Lr(){var t=gt;gt=[],Ft(t)}function zr(){dt.length>0&&Ir(),gt.length>0&&Lr()}function Or(){const t=v.b;return t===null&&vr(),t}function Vt(t){var e=P|N,n=m!==null&&(m.f&P)!==0?m:null;return v===null||n!==null&&(n.f&L)!==0?e|=L:v.f|=me,{ctx:M,deps:null,effects:null,equals:Ut,f:e,fn:t,reactions:null,rv:0,v:y,wv:0,parent:n??v,ac:null}}function Nr(t,e){let n=v;n===null&&mr();var r=n.b,s=void 0,i=_t(y),l=null,a=!m;return Wr(()=>{try{var o=t();l&&Promise.resolve(o).catch(()=>{})}catch(p){o=Promise.reject(p)}var u=()=>o;s=l?.then(u,u)??Promise.resolve(o),l=s;var c=E,h=r.is_pending();a&&(r.update_pending_count(1),h||c.increment());const f=(p,d=void 0)=>{l=null,h||c.activate(),d?d!==ft&&(i.f|=ie,wt(i,d)):((i.f&ie)!==0&&(i.f^=ie),wt(i,p)),a&&(r.update_pending_count(-1),h||c.decrement()),en()};if(s.then(f,p=>f(null,p||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(o=>{function u(c){function h(){c===s?o(i):u(s)}c.then(h,h)}u(s)})}function Kt(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)te(e[n])}}function Mr(t){for(var e=t.parent;e!==null;){if((e.f&P)===0)return e;e=e.parent}return null}function bt(t){var e,n=v;ne(Mr(t));try{Kt(t),e=En(t)}finally{ne(n)}return e}function Jt(t){var e=bt(t);if(t.equals(e)||(t.v=e,t.wv=yn()),!ue){var n=(re||(t.f&L)!==0)&&t.deps!==null?V:T;O(t,n)}}function Br(t,e,n){const r=Vt;if(e.length===0){n(t.map(r));return}var s=E,i=v,l=Dr(),a=Or();Promise.all(e.map(o=>Nr(o))).then(o=>{s?.activate(),l();try{n([...t.map(r),...o])}catch(u){(i.f&se)===0&&pt(u,i)}s?.deactivate(),en()}).catch(o=>{a.error(o)})}function Dr(){var t=v,e=m,n=M,r=E;return function(){ne(t),G(e),Ge(n),r?.activate()}}function en(){ne(null),G(null),Ge(null)}const vt=new Set;let E=null,tn=new Set,Ze=[];function nn(){const t=Ze.shift();Ze.length>0&&queueMicrotask(nn),t()}let le=[],He=null,mt=!1,Ue=!1;class ae{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#c=!1;#s=[];#l=[];#i=[];#r=[];#a=[];#f=[];#h=[];skipped_effects=new Set;process(e){le=[];for(const s of e)this.#d(s);if(this.#s.length===0&&this.#n===0){this.#p();var n=this.#i,r=this.#r;this.#i=[],this.#r=[],this.#a=[],E=null,sn(n),sn(r),E===null?E=this:vt.delete(this),this.#u?.resolve()}else this.#o(this.#i),this.#o(this.#r),this.#o(this.#a);for(const s of this.#s)we(s);for(const s of this.#l)we(s);this.#s=[],this.#l=[]}#d(e){e.f^=T;for(var n=e.first;n!==null;){var r=n.f,s=(r&(W|X))!==0,i=s&&(r&T)!==0,l=i||(r&ve)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(s)n.f^=T;else if((r<)!==0)this.#r.push(n);else if((r&T)===0)if((r&ut)!==0){var a=n.b?.is_pending()?this.#l:this.#s;a.push(n)}else Qe(n)&&((n.f&Ee)!==0&&this.#a.push(n),we(n));var o=n.first;if(o!==null){n=o;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#o(e){for(const n of e)((n.f&N)!==0?this.#f:this.#h).push(n),O(n,T);e.length=0}capture(e,n){this.#t.has(e)||this.#t.set(e,n),this.current.set(e,e.v)}activate(){E=this}deactivate(){E=null;for(const e of tn)if(tn.delete(e),e(),E!==null)break}neuter(){this.#c=!0}flush(){le.length>0?rn():this.#p(),E===this&&(this.#n===0&&vt.delete(this),this.deactivate())}#p(){if(!this.#c)for(const e of this.#e)e();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const e of this.#f)O(e,N),Re(e);for(const e of this.#h)O(e,V),Re(e);this.#i=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(e){this.#e.add(e)}settled(){return(this.#u??=hr()).promise}static ensure(){if(E===null){const e=E=new ae;vt.add(E),Ue||ae.enqueue(()=>{E===e&&e.flush()})}return E}static enqueue(e){Ze.length===0&&queueMicrotask(nn),Ze.unshift(e)}}function kt(t){var e=Ue;Ue=!0;try{for(var n;;){if(zr(),le.length===0&&(E?.flush(),le.length===0))return He=null,n;rn()}}finally{Ue=e}}function rn(){var t=_e;mt=!0;try{var e=0;for(kn(!0);le.length>0;){var n=ae.ensure();if(e++>1e3){var r,s;qr()}n.process(le),K.clear()}}finally{mt=!1,kn(t),He=null}}function qr(){try{xr()}catch(t){pt(t,He)}}let oe=null;function sn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(se|ve))===0&&Qe(r)&&(oe=[],we(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?vn(r):r.fn=null),oe?.length>0)){K.clear();for(const s of oe)we(s);oe=[]}}oe=null}}function Re(t){for(var e=He=t;e.parent!==null;){e=e.parent;var n=e.f;if(mt&&e===v&&(n&Ee)!==0)return;if((n&(X|W))!==0){if((n&T)===0)return;e.f^=T}}le.push(e)}const K=new Map;function _t(t,e){var n={f:0,v:t,reactions:null,equals:Ut,rv:0,wv:0};return n}function F(t,e){const n=_t(t);return ns(n),n}function jr(t,e=!1,n=!0){const r=_t(t);return e||(r.equals=Tr),r}function B(t,e,n=!1){m!==null&&(!ce||(m.f&Ht)!==0)&&Wt()&&(m.f&(P|Ee|ut|Ht))!==0&&!U?.includes(t)&&Sr();let r=n?ke(e):e;return wt(t,r)}function wt(t,e){if(!t.equals(e)){var n=t.v;ue?K.set(t,e):K.set(t,n),t.v=e;var r=ae.ensure();r.capture(t,n),(t.f&P)!==0&&((t.f&N)!==0&&bt(t),O(t,(t.f&L)===0?T:V)),t.wv=yn(),ln(t,N),v!==null&&(v.f&T)!==0&&(v.f&(W|X))===0&&(z===null?rs([t]):z.push(t))}return e}function xt(t){B(t,t.v+1)}function ln(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,a=(l&N)===0;a&&O(i,e),(l&P)!==0?ln(i,V):a&&((l&Ee)!==0&&oe!==null&&oe.push(i),Re(i))}}function ke(t){if(typeof t!="object"||t===null||ct in t)return t;const e=fr(t);if(e!==ur&&e!==cr)return t;var n=new Map,r=qt(t),s=F(0),i=fe,l=a=>{if(fe===i)return a();var o=m,u=fe;G(null),xn(i);var c=a();return G(o),xn(u),c};return r&&n.set("length",F(t.length)),new Proxy(t,{defineProperty(a,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&$r();var c=n.get(o);return c===void 0?c=l(()=>{var h=F(u.value);return n.set(o,h),h}):B(c,u.value,!0),!0},deleteProperty(a,o){var u=n.get(o);if(u===void 0){if(o in a){const c=l(()=>F(y));n.set(o,c),xt(s)}}else B(u,y),xt(s);return!0},get(a,o,u){if(o===ct)return t;var c=n.get(o),h=o in a;if(c===void 0&&(!h||be(a,o)?.writable)&&(c=l(()=>{var p=ke(h?a[o]:y),d=F(p);return d}),n.set(o,c)),c!==void 0){var f=Z(c);return f===y?void 0:f}return Reflect.get(a,o,u)},getOwnPropertyDescriptor(a,o){var u=Reflect.getOwnPropertyDescriptor(a,o);if(u&&"value"in u){var c=n.get(o);c&&(u.value=Z(c))}else if(u===void 0){var h=n.get(o),f=h?.v;if(h!==void 0&&f!==y)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(a,o){if(o===ct)return!0;var u=n.get(o),c=u!==void 0&&u.v!==y||Reflect.has(a,o);if(u!==void 0||v!==null&&(!c||be(a,o)?.writable)){u===void 0&&(u=l(()=>{var f=c?ke(a[o]):y,p=F(f);return p}),n.set(o,u));var h=Z(u);if(h===y)return!1}return c},set(a,o,u,c){var h=n.get(o),f=o in a;if(r&&o==="length")for(var p=u;p<h.v;p+=1){var d=n.get(p+"");d!==void 0?B(d,y):p in a&&(d=l(()=>F(y)),n.set(p+"",d))}if(h===void 0)(!f||be(a,o)?.writable)&&(h=l(()=>F(void 0)),B(h,ke(u)),n.set(o,h));else{f=h.v!==y;var g=l(()=>ke(u));B(h,g)}var A=Reflect.getOwnPropertyDescriptor(a,o);if(A?.set&&A.set.call(c,u),!f){if(r&&typeof o=="string"){var C=n.get("length"),x=Number(o);Number.isInteger(x)&&x>=C.v&&B(C,x+1)}xt(s)}return!0},ownKeys(a){Z(s);var o=Reflect.ownKeys(a).filter(h=>{var f=n.get(h);return f===void 0||f.v!==y});for(var[u,c]of n)c.v!==y&&!(u in a)&&o.push(u);return o},setPrototypeOf(){Er()}})}var an,on,un,cn;function yt(){if(an===void 0){an=window,on=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;un=be(e,"firstChild").get,cn=be(e,"nextSibling").get,jt(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),jt(n)&&(n.__t=void 0)}}function fn(t=""){return document.createTextNode(t)}function J(t){return un.call(t)}function Te(t){return cn.call(t)}function Ye(t,e){if(!j)return J(t);var n=J($);return n===null&&(n=$.appendChild(fn())),Se(n),n}function Fr(t){t.textContent=""}function hn(t){var e=m,n=v;G(null),ne(null);try{return t()}finally{G(e),ne(n)}}function Gr(t){v===null&&m===null&&wr(),m!==null&&(m.f&L)!==0&&v===null&&_r(),ue&&kr()}function Zr(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function ee(t,e,n,r=!0){var s=v;s!==null&&(s.f&ve)!==0&&(t|=ve);var i={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:t|N,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{we(i),i.f|=at}catch(o){throw te(i),o}else e!==null&&Re(i);if(r){var l=i;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&me)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&Zr(l,s),m!==null&&(m.f&P)!==0&&(t&X)===0)){var a=m;(a.effects??=[]).push(l)}}return i}function Hr(t){Gr();var e=v.f,n=!m&&(e&W)!==0&&(e&at)===0;if(n){var r=M;(r.e??=[]).push(t)}else return pn(t)}function pn(t){return ee(lt|gr,t,!1)}function Ur(t){ae.ensure();const e=ee(X|me,t,!0);return()=>{te(e)}}function Yr(t){ae.ensure();const e=ee(X|me,t,!0);return(n={})=>new Promise(r=>{n.outro?es(e,()=>{te(e),r(void 0)}):(te(e),r(void 0))})}function Qr(t){return ee(lt,t,!1)}function Wr(t){return ee(ut|me,t,!0)}function Xr(t,e=0){return ee(Gt|e,t,!0)}function Vr(t,e=[],n=[]){Br(e,n,r=>{ee(Gt,()=>t(...r.map(Z)),!0)})}function Kr(t,e=!0){return ee(W|me,t,!0,e)}function dn(t){var e=t.teardown;if(e!==null){const n=ue,r=m;_n(!0),G(null);try{e.call(null)}finally{_n(n),G(r)}}}function gn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&hn(()=>{s.abort(ft)});var r=n.next;(n.f&X)!==0?n.parent=null:te(n,e),n=r}}function Jr(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&W)===0&&te(e),e=n}}function te(t,e=!0){var n=!1;(e||(t.f&dr)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(bn(t.nodes_start,t.nodes_end),n=!0),gn(t,e&&!n),We(t,0),O(t,se);var r=t.transitions;if(r!==null)for(const i of r)i.stop();dn(t);var s=t.parent;s!==null&&s.first!==null&&vn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function bn(t,e){for(;t!==null;){var n=t===e?null:Te(t);t.remove(),t=n}}function vn(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function es(t,e){var n=[];mn(t,n,!0),ts(n,()=>{te(t),e&&e()})}function ts(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function mn(t,e,n){if((t.f&ve)===0){if(t.f^=ve,t.transitions!==null)for(const l of t.transitions)(l.is_global||n)&&e.push(l);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&pr)!==0||(r.f&W)!==0;mn(r,e,i?n:!1),r=s}}}let _e=!1;function kn(t){_e=t}let ue=!1;function _n(t){ue=t}let m=null,ce=!1;function G(t){m=t}let v=null;function ne(t){v=t}let U=null;function ns(t){m!==null&&(U===null?U=[t]:U.push(t))}let S=null,I=0,z=null;function rs(t){z=t}let wn=1,Ae=0,fe=Ae;function xn(t){fe=t}let re=!1;function yn(){return++wn}function Qe(t){var e=t.f;if((e&N)!==0)return!0;if((e&V)!==0){var n=t.deps,r=(e&L)!==0;if(n!==null){var s,i,l=(e&Be)!==0,a=r&&v!==null&&!re,o=n.length;if((l||a)&&(v===null||(v.f&se)===0)){var u=t,c=u.parent;for(s=0;s<o;s++)i=n[s],(l||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);l&&(u.f^=Be),a&&c!==null&&(c.f&L)===0&&(u.f^=L)}for(s=0;s<o;s++)if(i=n[s],Qe(i)&&Jt(i),i.wv>t.wv)return!0}(!r||v!==null&&!re)&&O(t,T)}return!1}function $n(t,e,n=!0){var r=t.reactions;if(r!==null&&!U?.includes(t))for(var s=0;s<r.length;s++){var i=r[s];(i.f&P)!==0?$n(i,e,!1):e===i&&(n?O(i,N):(i.f&T)!==0&&O(i,V),Re(i))}}function En(t){var e=S,n=I,r=z,s=m,i=re,l=U,a=M,o=ce,u=fe,c=t.f;S=null,I=0,z=null,re=(c&L)!==0&&(ce||!_e||m===null),m=(c&(W|X))===0?t:null,U=null,Ge(t.ctx),ce=!1,fe=++Ae,t.ac!==null&&(hn(()=>{t.ac.abort(ft)}),t.ac=null);try{t.f|=ot;var h=t.fn,f=h(),p=t.deps;if(S!==null){var d;if(We(t,I),p!==null&&I>0)for(p.length=I+S.length,d=0;d<S.length;d++)p[I+d]=S[d];else t.deps=p=S;if(!re||(c&P)!==0&&t.reactions!==null)for(d=I;d<p.length;d++)(p[d].reactions??=[]).push(t)}else p!==null&&I<p.length&&(We(t,I),p.length=I);if(Wt()&&z!==null&&!ce&&p!==null&&(t.f&(P|V|N))===0)for(d=0;d<z.length;d++)$n(z[d],t);return s!==null&&s!==t&&(Ae++,z!==null&&(r===null?r=z:r.push(...z))),(t.f&ie)!==0&&(t.f^=ie),f}catch(g){return Pr(g)}finally{t.f^=ot,S=e,I=n,z=r,m=s,re=i,U=l,Ge(a),ce=o,fe=u}}function ss(t,e){let n=e.reactions;if(n!==null){var r=ar.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&P)!==0&&(S===null||!S.includes(e))&&(O(e,V),(e.f&(L|Be))===0&&(e.f^=Be),Kt(e),We(e,0))}function We(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)ss(t,n[r])}function we(t){var e=t.f;if((e&se)===0){O(t,T);var n=v,r=_e;v=t,_e=!0;try{(e&Ee)!==0?Jr(t):gn(t),dn(t);var s=En(t);t.teardown=typeof s=="function"?s:null,t.wv=wn;var i;Dt&&Ar&&(t.f&N)!==0&&t.deps}finally{_e=r,v=n}}}function Z(t){var e=t.f,n=(e&P)!==0;if(m!==null&&!ce){var r=v!==null&&(v.f&se)!==0;if(!r&&!U?.includes(t)){var s=m.deps;if((m.f&ot)!==0)t.rv<Ae&&(t.rv=Ae,S===null&&s!==null&&s[I]===t?I++:S===null?S=[t]:(!re||!S.includes(t))&&S.push(t));else{(m.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[m]:i.includes(m)||i.push(m)}}}else if(n&&t.deps===null&&t.effects===null){var l=t,a=l.parent;a!==null&&(a.f&L)===0&&(l.f^=L)}if(ue){if(K.has(t))return K.get(t);if(n){l=t;var o=l.v;return((l.f&T)===0&&l.reactions!==null||Sn(l))&&(o=bt(l)),K.set(l,o),o}}else n&&(l=t,Qe(l)&&Jt(l));if((t.f&ie)!==0)throw t.v;return t.v}function Sn(t){if(t.v===y)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(K.has(e)||(e.f&P)!==0&&Sn(e))return!0;return!1}const is=-7169;function O(t,e){t.f=t.f&is|e}const ls=new Set,Rn=new Set;let Tn=null;function Xe(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;Tn=t;var l=0,a=Tn===t&&t.__root;if(a){var o=s.indexOf(a);if(o!==-1&&(e===document||e===window)){t.__root=e;return}var u=s.indexOf(e);if(u===-1)return;o<=u&&(l=o)}if(i=s[l]||t.target,i!==e){ge(t,"currentTarget",{configurable:!0,get(){return i||n}});var c=m,h=v;G(null),ne(null);try{for(var f,p=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var g=i["__"+r];if(g!=null&&(!i.disabled||t.target===i))if(qt(g)){var[A,...C]=g;A.apply(i,[t,...C])}else g.call(i,t)}catch(x){f?p.push(x):f=x}if(t.cancelBubble||d===e||d===null)break;i=d}if(f){for(let x of p)queueMicrotask(()=>{throw x});throw f}}finally{t.__root=e,delete t.currentTarget,G(c),ne(h)}}}function An(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ce(t,e){var n=v;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function as(t,e){var n=(e&sr)!==0,r,s=!t.startsWith("<!>");return()=>{if(j)return Ce($,null),$;r===void 0&&(r=An(s?t:"<!>"+t),r=J(r));var i=n||on?document.importNode(r,!0):r.cloneNode(!0);return Ce(i,i),i}}function Cn(t,e){if(j){v.nodes_end=$,je();return}t!==null&&t.before(e)}const os=["touchstart","touchmove"];function us(t){return os.includes(t)}function Pn(t,e){return In(t,e)}function cs(t,e){yt(),e.intro=e.intro??!1;const n=e.target,r=j,s=$;try{for(var i=J(n);i&&(i.nodeType!==ht||i.data!==ir);)i=Te(i);if(!i)throw de;qe(!0),Se(i),je();const l=In(t,{...e,anchor:i});if($===null||$.nodeType!==ht||$.data!==lr)throw De(),de;return qe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==
|
|
3
|
-
`,u="/",c="*",h="",f="comment",p="declaration";Et=function(g,A){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];A=A||{};var C=1,x=1;function Oe(w){var b=w.match(e);b&&(C+=b.length);var q=w.lastIndexOf(o);x=~q?w.length-q:x+w.length}function Ne(){var w={line:C,column:x};return function(b){return b.position=new it(w),tr(),b}}function it(w){this.start=w,this.end={line:C,column:x},this.source=A.source}it.prototype.content=g;function $e(w){var b=new Error(A.source+":"+C+":"+x+": "+w);if(b.reason=w,b.filename=A.source,b.line=C,b.column=x,b.source=g,!A.silent)throw b}function D(w){var b=w.exec(g);if(b){var q=b[0];return Oe(q),g=g.slice(q.length),b}}function tr(){D(n)}function nr(w){var b;for(w=w||[];b=rr();)b!==!1&&w.push(b);return w}function rr(){var w=Ne();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var b=2;h!=g.charAt(b)&&(c!=g.charAt(b)||u!=g.charAt(b+1));)++b;if(b+=2,h===g.charAt(b-1))return $e("End of comment missing");var q=g.slice(2,b-2);return x+=2,Oe(q),g=g.slice(b),x+=2,w({type:f,comment:q})}}function li(){var w=Ne(),b=D(r);if(b){if(rr(),!D(s))return $e("property missing ':'");var q=D(i),oi=w({type:p,property:d(b[0].replace(t,h)),value:q?d(q[0].replace(t,h)):h});return D(l),oi}}function ai(){var w=[];nr(w);for(var b;b=li();)b!==!1&&(w.push(b),nr(w));return w}return tr(),ai()};function d(g){return g?g.replace(a,h):h}return Et}var Nn;function _s(){if(Nn)return ye;Nn=1;var t=ye&&ye.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.default=n;var e=t(ks());function n(r,s){var i=null;if(!r||typeof r!="string")return i;var l=(0,e.default)(r),a=typeof s=="function";return l.forEach(function(o){if(o.type==="declaration"){var u=o.property,c=o.value;a?s(u,c,o):c&&(i=i||{},i[u]=c)}}),i}return ye}var ws=_s();const Mn=ms(ws);Mn.default;function St(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var he=St();function Bn(t){he=t}var Pe={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(R.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,e)};return r}var R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},xs=/^(?:[ \t]*(?:\n|$))+/,ys=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$s=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ie=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Es=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rt=/(?:[*+-]|\d{1,9}[.)])/,Dn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,qn=k(Dn).replace(/bull/g,Rt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ss=k(Dn).replace(/bull/g,Rt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Tt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Rs=/^[^\n]+/,At=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ts=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",At).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),As=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rt).getRegex(),Ke="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ct=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cs=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ct).replace("tag",Ke).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),jn=k(Tt).replace("hr",Ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex(),Ps=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",jn).getRegex(),Pt={blockquote:Ps,code:ys,def:Ts,fences:$s,heading:Es,hr:Ie,html:Cs,lheading:qn,list:As,newline:xs,paragraph:jn,table:Pe,text:Rs},Fn=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex(),Is={...Pt,lheading:Ss,table:Fn,paragraph:k(Tt).replace("hr",Ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Fn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex()},Ls={...Pt,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ct).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(Tt).replace("hr",Ie).replace("heading",` *#{1,6} *[^
|
|
4
|
-
]`).replace("lheading",
|
|
5
|
-
`).map(
|
|
6
|
-
`)}var
|
|
7
|
-
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=
|
|
8
|
-
`)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=
|
|
1
|
+
(function(Bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const lr=2,ar="[",or="]",ge={},y=Symbol(),qt=!1;var jt=Array.isArray,ur=Array.prototype.indexOf,cr=Array.from,Me=Object.keys,be=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,fr=Object.prototype,hr=Array.prototype,dr=Object.getPrototypeOf,Ft=Object.isExtensible;function Gt(t){for(var e=0;e<t.length;e++)t[e]()}function pr(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}const P=2,at=4,Zt=8,Te=16,Q=32,X=64,Ht=128,I=256,Be=512,S=1024,O=2048,V=4096,me=8192,ie=16384,ot=32768,gr=65536,Ut=1<<17,br=1<<18,ke=1<<19,vr=1<<20,ut=1<<21,ct=1<<22,se=1<<23,ft=Symbol("$state"),mr=Symbol("legacy props"),ht=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},dt=8;function kr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function _r(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $r(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Er(){throw new Error("https://svelte.dev/e/hydration_failed")}function Tr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Rr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qe(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let j=!1;function je(t){j=t}let $;function Re(t){if(t===null)throw qe(),ge;return $=t}function Fe(){return Re(Ae($))}function Ge(t){if(j){if(Ae($)!==null)throw qe(),ge;$=t}}function Wt(t){return t===this.v}function Ar(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cr(t){return!Ar(t,this.v)}let Pr=!1,D=null;function Ze(t){D=t}function Yt(t,e=!1,n){D={p:D,c:null,e:null,s:t,x:null,l:null}}function Qt(t){var e=D,n=e.e;if(n!==null){e.e=null;for(var r of n)pn(r)}return t!==void 0&&(e.x=t),D=e.p,t??{}}function Xt(){return!0}const Lr=new WeakMap;function Ir(t){var e=v;if(e===null)return m.f|=se,t;if((e.f&ot)===0){if((e.f&Ht)===0)throw!e.parent&&t instanceof Error&&Vt(t),t;e.b.error(t)}else pt(t,e)}function pt(t,e){for(;e!==null;){if((e.f&Ht)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&Vt(t),t}function Vt(t){const e=Lr.get(t);e&&(be(t,"message",{value:e.message}),be(t,"stack",{value:e.stack}))}let gt=[],bt=[];function zr(){var t=gt;gt=[],Gt(t)}function Nr(){var t=bt;bt=[],Gt(t)}function Or(){gt.length>0&&zr(),bt.length>0&&Nr()}function Dr(){const t=v.b;return t===null&&kr(),t}function Jt(t){var e=P|O,n=m!==null&&(m.f&P)!==0?m:null;return v===null||n!==null&&(n.f&I)!==0?e|=I:v.f|=ke,{ctx:D,deps:null,effects:null,equals:Wt,f:e,fn:t,reactions:null,rv:0,v:y,wv:0,parent:n??v,ac:null}}function Mr(t,e){let n=v;n===null&&_r();var r=n.b,i=void 0,s=wt(y),l=null,a=!m;return Vr(()=>{try{var o=t();l&&Promise.resolve(o).catch(()=>{})}catch(d){o=Promise.reject(d)}var u=()=>o;i=l?.then(u,u)??Promise.resolve(o),l=i;var c=E,h=r.is_pending();a&&(r.update_pending_count(1),h||c.increment());const f=(d,p=void 0)=>{l=null,h||c.activate(),p?p!==ht&&(s.f|=se,xt(s,p)):((s.f&se)!==0&&(s.f^=se),xt(s,d)),a&&(r.update_pending_count(-1),h||c.decrement()),tn()};if(i.then(f,d=>f(null,d||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(o=>{function u(c){function h(){c===i?o(s):u(i)}c.then(h,h)}u(i)})}function Kt(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)te(e[n])}}function Br(t){for(var e=t.parent;e!==null;){if((e.f&P)===0)return e;e=e.parent}return null}function vt(t){var e,n=v;ne(Br(t));try{Kt(t),e=Tn(t)}finally{ne(n)}return e}function en(t){var e=vt(t);if(t.equals(e)||(t.v=e,t.wv=$n()),!ue){var n=(re||(t.f&I)!==0)&&t.deps!==null?V:S;N(t,n)}}function qr(t,e,n){const r=Jt;if(e.length===0){n(t.map(r));return}var i=E,s=v,l=jr(),a=Dr();Promise.all(e.map(o=>Mr(o))).then(o=>{i?.activate(),l();try{n([...t.map(r),...o])}catch(u){(s.f&ie)===0&&pt(u,s)}i?.deactivate(),tn()}).catch(o=>{a.error(o)})}function jr(){var t=v,e=m,n=D,r=E;return function(){ne(t),G(e),Ze(n),r?.activate()}}function tn(){ne(null),G(null),Ze(null)}const mt=new Set;let E=null,nn=new Set,He=[];function rn(){const t=He.shift();He.length>0&&queueMicrotask(rn),t()}let le=[],Ue=null,kt=!1,We=!1;class ae{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#c=!1;#i=[];#l=[];#s=[];#r=[];#a=[];#f=[];#h=[];skipped_effects=new Set;process(e){le=[];for(const i of e)this.#p(i);if(this.#i.length===0&&this.#n===0){this.#d();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#a=[],E=null,ln(n),ln(r),E===null?E=this:mt.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#r),this.#o(this.#a);for(const i of this.#i)xe(i);for(const i of this.#l)xe(i);this.#i=[],this.#l=[]}#p(e){e.f^=S;for(var n=e.first;n!==null;){var r=n.f,i=(r&(Q|X))!==0,s=i&&(r&S)!==0,l=s||(r&me)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(i)n.f^=S;else if((r&at)!==0)this.#r.push(n);else if((r&S)===0)if((r&ct)!==0){var a=n.b?.is_pending()?this.#l:this.#i;a.push(n)}else Qe(n)&&((n.f&Te)!==0&&this.#a.push(n),xe(n));var o=n.first;if(o!==null){n=o;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#o(e){for(const n of e)((n.f&O)!==0?this.#f:this.#h).push(n),N(n,S);e.length=0}capture(e,n){this.#t.has(e)||this.#t.set(e,n),this.current.set(e,e.v)}activate(){E=this}deactivate(){E=null;for(const e of nn)if(nn.delete(e),e(),E!==null)break}neuter(){this.#c=!0}flush(){le.length>0?sn():this.#d(),E===this&&(this.#n===0&&mt.delete(this),this.deactivate())}#d(){if(!this.#c)for(const e of this.#e)e();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const e of this.#f)N(e,O),Se(e);for(const e of this.#h)N(e,V),Se(e);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(e){this.#e.add(e)}settled(){return(this.#u??=pr()).promise}static ensure(){if(E===null){const e=E=new ae;mt.add(E),We||ae.enqueue(()=>{E===e&&e.flush()})}return E}static enqueue(e){He.length===0&&queueMicrotask(rn),He.unshift(e)}}function _t(t){var e=We;We=!0;try{for(var n;;){if(Or(),le.length===0&&(E?.flush(),le.length===0))return Ue=null,n;sn()}}finally{We=e}}function sn(){var t=we;kt=!0;try{var e=0;for(_n(!0);le.length>0;){var n=ae.ensure();if(e++>1e3){var r,i;Fr()}n.process(le),J.clear()}}finally{kt=!1,_n(t),Ue=null}}function Fr(){try{$r()}catch(t){pt(t,Ue)}}let oe=null;function ln(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(ie|me))===0&&Qe(r)&&(oe=[],xe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?mn(r):r.fn=null),oe?.length>0)){J.clear();for(const i of oe)xe(i);oe=[]}}oe=null}}function Se(t){for(var e=Ue=t;e.parent!==null;){e=e.parent;var n=e.f;if(kt&&e===v&&(n&Te)!==0)return;if((n&(X|Q))!==0){if((n&S)===0)return;e.f^=S}}le.push(e)}const J=new Map;function wt(t,e){var n={f:0,v:t,reactions:null,equals:Wt,rv:0,wv:0};return n}function F(t,e){const n=wt(t);return ii(n),n}function Gr(t,e=!1,n=!0){const r=wt(t);return e||(r.equals=Cr),r}function M(t,e,n=!1){m!==null&&(!ce||(m.f&Ut)!==0)&&Xt()&&(m.f&(P|Te|ct|Ut))!==0&&!U?.includes(t)&&Sr();let r=n?_e(e):e;return xt(t,r)}function xt(t,e){if(!t.equals(e)){var n=t.v;ue?J.set(t,e):J.set(t,n),t.v=e;var r=ae.ensure();r.capture(t,n),(t.f&P)!==0&&((t.f&O)!==0&&vt(t),N(t,(t.f&I)===0?S:V)),t.wv=$n(),an(t,O),v!==null&&(v.f&S)!==0&&(v.f&(Q|X))===0&&(z===null?si([t]):z.push(t))}return e}function yt(t){M(t,t.v+1)}function an(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,a=(l&O)===0;a&&N(s,e),(l&P)!==0?an(s,V):a&&((l&Te)!==0&&oe!==null&&oe.push(s),Se(s))}}function _e(t){if(typeof t!="object"||t===null||ft in t)return t;const e=dr(t);if(e!==fr&&e!==hr)return t;var n=new Map,r=jt(t),i=F(0),s=fe,l=a=>{if(fe===s)return a();var o=m,u=fe;G(null),yn(s);var c=a();return G(o),yn(u),c};return r&&n.set("length",F(t.length)),new Proxy(t,{defineProperty(a,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Tr();var c=n.get(o);return c===void 0?c=l(()=>{var h=F(u.value);return n.set(o,h),h}):M(c,u.value,!0),!0},deleteProperty(a,o){var u=n.get(o);if(u===void 0){if(o in a){const c=l(()=>F(y));n.set(o,c),yt(i)}}else M(u,y),yt(i);return!0},get(a,o,u){if(o===ft)return t;var c=n.get(o),h=o in a;if(c===void 0&&(!h||ve(a,o)?.writable)&&(c=l(()=>{var d=_e(h?a[o]:y),p=F(d);return p}),n.set(o,c)),c!==void 0){var f=Z(c);return f===y?void 0:f}return Reflect.get(a,o,u)},getOwnPropertyDescriptor(a,o){var u=Reflect.getOwnPropertyDescriptor(a,o);if(u&&"value"in u){var c=n.get(o);c&&(u.value=Z(c))}else if(u===void 0){var h=n.get(o),f=h?.v;if(h!==void 0&&f!==y)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(a,o){if(o===ft)return!0;var u=n.get(o),c=u!==void 0&&u.v!==y||Reflect.has(a,o);if(u!==void 0||v!==null&&(!c||ve(a,o)?.writable)){u===void 0&&(u=l(()=>{var f=c?_e(a[o]):y,d=F(f);return d}),n.set(o,u));var h=Z(u);if(h===y)return!1}return c},set(a,o,u,c){var h=n.get(o),f=o in a;if(r&&o==="length")for(var d=u;d<h.v;d+=1){var p=n.get(d+"");p!==void 0?M(p,y):d in a&&(p=l(()=>F(y)),n.set(d+"",p))}if(h===void 0)(!f||ve(a,o)?.writable)&&(h=l(()=>F(void 0)),M(h,_e(u)),n.set(o,h));else{f=h.v!==y;var g=l(()=>_e(u));M(h,g)}var A=Reflect.getOwnPropertyDescriptor(a,o);if(A?.set&&A.set.call(c,u),!f){if(r&&typeof o=="string"){var C=n.get("length"),x=Number(o);Number.isInteger(x)&&x>=C.v&&M(C,x+1)}yt(i)}return!0},ownKeys(a){Z(i);var o=Reflect.ownKeys(a).filter(h=>{var f=n.get(h);return f===void 0||f.v!==y});for(var[u,c]of n)c.v!==y&&!(u in a)&&o.push(u);return o},setPrototypeOf(){Rr()}})}var on,un,cn,fn;function $t(){if(on===void 0){on=window,un=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;cn=ve(e,"firstChild").get,fn=ve(e,"nextSibling").get,Ft(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ft(n)&&(n.__t=void 0)}}function hn(t=""){return document.createTextNode(t)}function K(t){return cn.call(t)}function Ae(t){return fn.call(t)}function Ye(t,e){if(!j)return K(t);var n=K($);return n===null&&(n=$.appendChild(hn())),Re(n),n}function Zr(t){t.textContent=""}function dn(t){var e=m,n=v;G(null),ne(null);try{return t()}finally{G(e),ne(n)}}function Hr(t){v===null&&m===null&&yr(),m!==null&&(m.f&I)!==0&&v===null&&xr(),ue&&wr()}function Ur(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function ee(t,e,n,r=!0){var i=v;i!==null&&(i.f&me)!==0&&(t|=me);var s={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:t|O,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{xe(s),s.f|=ot}catch(o){throw te(s),o}else e!==null&&Se(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&ke)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Ur(l,i),m!==null&&(m.f&P)!==0&&(t&X)===0)){var a=m;(a.effects??=[]).push(l)}}return s}function Wr(t){Hr();var e=v.f,n=!m&&(e&Q)!==0&&(e&ot)===0;if(n){var r=D;(r.e??=[]).push(t)}else return pn(t)}function pn(t){return ee(at|vr,t,!1)}function Yr(t){ae.ensure();const e=ee(X|ke,t,!0);return()=>{te(e)}}function Qr(t){ae.ensure();const e=ee(X|ke,t,!0);return(n={})=>new Promise(r=>{n.outro?ni(e,()=>{te(e),r(void 0)}):(te(e),r(void 0))})}function Xr(t){return ee(at,t,!1)}function Vr(t){return ee(ct|ke,t,!0)}function Jr(t,e=0){return ee(Zt|e,t,!0)}function Kr(t,e=[],n=[]){qr(e,n,r=>{ee(Zt,()=>t(...r.map(Z)),!0)})}function ei(t,e=!0){return ee(Q|ke,t,!0,e)}function gn(t){var e=t.teardown;if(e!==null){const n=ue,r=m;wn(!0),G(null);try{e.call(null)}finally{wn(n),G(r)}}}function bn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&dn(()=>{i.abort(ht)});var r=n.next;(n.f&X)!==0?n.parent=null:te(n,e),n=r}}function ti(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&Q)===0&&te(e),e=n}}function te(t,e=!0){var n=!1;(e||(t.f&br)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(vn(t.nodes_start,t.nodes_end),n=!0),bn(t,e&&!n),Xe(t,0),N(t,ie);var r=t.transitions;if(r!==null)for(const s of r)s.stop();gn(t);var i=t.parent;i!==null&&i.first!==null&&mn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function vn(t,e){for(;t!==null;){var n=t===e?null:Ae(t);t.remove(),t=n}}function mn(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ni(t,e){var n=[];kn(t,n,!0),ri(n,()=>{te(t),e&&e()})}function ri(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function kn(t,e,n){if((t.f&me)===0){if(t.f^=me,t.transitions!==null)for(const l of t.transitions)(l.is_global||n)&&e.push(l);for(var r=t.first;r!==null;){var i=r.next,s=(r.f&gr)!==0||(r.f&Q)!==0;kn(r,e,s?n:!1),r=i}}}let we=!1;function _n(t){we=t}let ue=!1;function wn(t){ue=t}let m=null,ce=!1;function G(t){m=t}let v=null;function ne(t){v=t}let U=null;function ii(t){m!==null&&(U===null?U=[t]:U.push(t))}let T=null,L=0,z=null;function si(t){z=t}let xn=1,Ce=0,fe=Ce;function yn(t){fe=t}let re=!1;function $n(){return++xn}function Qe(t){var e=t.f;if((e&O)!==0)return!0;if((e&V)!==0){var n=t.deps,r=(e&I)!==0;if(n!==null){var i,s,l=(e&Be)!==0,a=r&&v!==null&&!re,o=n.length;if((l||a)&&(v===null||(v.f&ie)===0)){var u=t,c=u.parent;for(i=0;i<o;i++)s=n[i],(l||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);l&&(u.f^=Be),a&&c!==null&&(c.f&I)===0&&(u.f^=I)}for(i=0;i<o;i++)if(s=n[i],Qe(s)&&en(s),s.wv>t.wv)return!0}(!r||v!==null&&!re)&&N(t,S)}return!1}function En(t,e,n=!0){var r=t.reactions;if(r!==null&&!U?.includes(t))for(var i=0;i<r.length;i++){var s=r[i];(s.f&P)!==0?En(s,e,!1):e===s&&(n?N(s,O):(s.f&S)!==0&&N(s,V),Se(s))}}function Tn(t){var e=T,n=L,r=z,i=m,s=re,l=U,a=D,o=ce,u=fe,c=t.f;T=null,L=0,z=null,re=(c&I)!==0&&(ce||!we||m===null),m=(c&(Q|X))===0?t:null,U=null,Ze(t.ctx),ce=!1,fe=++Ce,t.ac!==null&&(dn(()=>{t.ac.abort(ht)}),t.ac=null);try{t.f|=ut;var h=t.fn,f=h(),d=t.deps;if(T!==null){var p;if(Xe(t,L),d!==null&&L>0)for(d.length=L+T.length,p=0;p<T.length;p++)d[L+p]=T[p];else t.deps=d=T;if(!re||(c&P)!==0&&t.reactions!==null)for(p=L;p<d.length;p++)(d[p].reactions??=[]).push(t)}else d!==null&&L<d.length&&(Xe(t,L),d.length=L);if(Xt()&&z!==null&&!ce&&d!==null&&(t.f&(P|V|O))===0)for(p=0;p<z.length;p++)En(z[p],t);return i!==null&&i!==t&&(Ce++,z!==null&&(r===null?r=z:r.push(...z))),(t.f&se)!==0&&(t.f^=se),f}catch(g){return Ir(g)}finally{t.f^=ut,T=e,L=n,z=r,m=i,re=s,U=l,Ze(a),ce=o,fe=u}}function li(t,e){let n=e.reactions;if(n!==null){var r=ur.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(e.f&P)!==0&&(T===null||!T.includes(e))&&(N(e,V),(e.f&(I|Be))===0&&(e.f^=Be),Kt(e),Xe(e,0))}function Xe(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)li(t,n[r])}function xe(t){var e=t.f;if((e&ie)===0){N(t,S);var n=v,r=we;v=t,we=!0;try{(e&Te)!==0?ti(t):bn(t),gn(t);var i=Tn(t);t.teardown=typeof i=="function"?i:null,t.wv=xn;var s;qt&&Pr&&(t.f&O)!==0&&t.deps}finally{we=r,v=n}}}function Z(t){var e=t.f,n=(e&P)!==0;if(m!==null&&!ce){var r=v!==null&&(v.f&ie)!==0;if(!r&&!U?.includes(t)){var i=m.deps;if((m.f&ut)!==0)t.rv<Ce&&(t.rv=Ce,T===null&&i!==null&&i[L]===t?L++:T===null?T=[t]:(!re||!T.includes(t))&&T.push(t));else{(m.deps??=[]).push(t);var s=t.reactions;s===null?t.reactions=[m]:s.includes(m)||s.push(m)}}}else if(n&&t.deps===null&&t.effects===null){var l=t,a=l.parent;a!==null&&(a.f&I)===0&&(l.f^=I)}if(ue){if(J.has(t))return J.get(t);if(n){l=t;var o=l.v;return((l.f&S)===0&&l.reactions!==null||Rn(l))&&(o=vt(l)),J.set(l,o),o}}else n&&(l=t,Qe(l)&&en(l));if((t.f&se)!==0)throw t.v;return t.v}function Rn(t){if(t.v===y)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(J.has(e)||(e.f&P)!==0&&Rn(e))return!0;return!1}const ai=-7169;function N(t,e){t.f=t.f&ai|e}const oi=new Set,Sn=new Set;let An=null;function Ve(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;An=t;var l=0,a=An===t&&t.__root;if(a){var o=i.indexOf(a);if(o!==-1&&(e===document||e===window)){t.__root=e;return}var u=i.indexOf(e);if(u===-1)return;o<=u&&(l=o)}if(s=i[l]||t.target,s!==e){be(t,"currentTarget",{configurable:!0,get(){return s||n}});var c=m,h=v;G(null),ne(null);try{for(var f,d=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+r];if(g!=null&&(!s.disabled||t.target===s))if(jt(g)){var[A,...C]=g;A.apply(s,[t,...C])}else g.call(s,t)}catch(x){f?d.push(x):f=x}if(t.cancelBubble||p===e||p===null)break;s=p}if(f){for(let x of d)queueMicrotask(()=>{throw x});throw f}}finally{t.__root=e,delete t.currentTarget,G(c),ne(h)}}}function Cn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Pe(t,e){var n=v;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function ui(t,e){var n=(e&lr)!==0,r,i=!t.startsWith("<!>");return()=>{if(j)return Pe($,null),$;r===void 0&&(r=Cn(i?t:"<!>"+t),r=K(r));var s=n||un?document.importNode(r,!0):r.cloneNode(!0);return Pe(s,s),s}}function Pn(t,e){if(j){v.nodes_end=$,Fe();return}t!==null&&t.before(e)}const ci=["touchstart","touchmove"];function fi(t){return ci.includes(t)}function Ln(t,e){return In(t,e)}function hi(t,e){$t(),e.intro=e.intro??!1;const n=e.target,r=j,i=$;try{for(var s=K(n);s&&(s.nodeType!==dt||s.data!==ar);)s=Ae(s);if(!s)throw ge;je(!0),Re(s),Fe();const l=In(t,{...e,anchor:s});if($===null||$.nodeType!==dt||$.data!==or)throw qe(),ge;return je(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==ge&&console.warn("Failed to hydrate: ",l),e.recover===!1&&Er(),$t(),Zr(n),je(!1),Ln(t,e)}finally{je(r),Re(i)}}const ye=new Map;function In(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:l=!0}){$t();var a=new Set,o=h=>{for(var f=0;f<h.length;f++){var d=h[f];if(!a.has(d)){a.add(d);var p=fi(d);e.addEventListener(d,Ve,{passive:p});var g=ye.get(d);g===void 0?(document.addEventListener(d,Ve,{passive:p}),ye.set(d,1)):ye.set(d,g+1)}}};o(cr(oi)),Sn.add(o);var u=void 0,c=Qr(()=>{var h=n??e.appendChild(hn());return ei(()=>{if(s){Yt({});var f=D;f.c=s}i&&(r.$$events=i),j&&Pe(h,null),u=t(h,r)||{},j&&(v.nodes_end=$),s&&Qt()}),()=>{for(var f of a){e.removeEventListener(f,Ve);var d=ye.get(f);--d===0?(document.removeEventListener(f,Ve),ye.delete(f)):ye.set(f,d)}Sn.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return Et.set(u,c),u}let Et=new WeakMap;function di(t,e){const n=Et.get(t);return n?(Et.delete(t),n(e)):Promise.resolve()}function pi(t,e,n=!1,r=!1,i=!1){var s=t,l="";Kr(()=>{var a=v;if(l===(l=e()??"")){j&&Fe();return}if(a.nodes_start!==null&&(vn(a.nodes_start,a.nodes_end),a.nodes_start=a.nodes_end=null),l!==""){if(j){$.data;for(var o=Fe(),u=o;o!==null&&(o.nodeType!==dt||o.data!=="");)u=o,o=Ae(o);if(o===null)throw qe(),ge;Pe($,u),s=Re(o);return}var c=l+"";n?c=`<svg>${c}</svg>`:r&&(c=`<math>${c}</math>`);var h=Cn(c);if((n||r)&&(h=K(h)),Pe(K(h),h.lastChild),n||r)for(;K(h);)s.before(K(h));else s.before(h)}})}function gi(t,e){Xr(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function zn(t,e,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),a;a=t[e],a===void 0&&r!==void 0&&(a=l());var o;o=()=>{var f=t[e];return f===void 0?l():(s=!0,f)};var u=!1,c=Jt(()=>(u=!1,o())),h=v;return(function(f,d){if(arguments.length>0){const p=d?Z(c):f;return M(c,p),u=!0,i!==void 0&&(i=p),f}return ue&&u||(h.f&ie)!==0?c.v:Z(c)})}function bi(t){return new vi(t)}class vi{#t;#e;constructor(e){var n=new Map,r=(s,l)=>{var a=Gr(l,!1,!1);return n.set(s,a),a};const i=new Proxy({...e.props||{},$$events:{}},{get(s,l){return Z(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===mr?!0:(Z(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return M(n.get(l)??r(l,a),a),Reflect.set(s,l,a)}});this.#e=(e.hydrate?hi:Ln)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&_t(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||be(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{di(this.#e)}}$set(e){this.#e.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const r=(...i)=>n.call(this,...i);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Nn;typeof HTMLElement=="function"&&(Nn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Pn(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=mi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Je(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=bi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Yr(()=>{Jr(()=>{this.$$r=!0;for(const r of Me(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Je(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Je(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Me(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Je(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mi(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function ki(t,e,n,r,i,s){let l=class extends Nn{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Me(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Me(e).forEach(a=>{be(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(o){o=Je(a,o,e),this.$$d[a]=o;var u=this.$$c;if(u){var c=ve(u,a)?.get;c?u[a]=o:u.$set({[a]:o})}}})}),r.forEach(a=>{be(l.prototype,a,{get(){return this.$$c?.[a]}})}),t.element=l,l}function _i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $e={},Tt,On;function wi(){if(On)return Tt;On=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,o=`
|
|
3
|
+
`,u="/",c="*",h="",f="comment",d="declaration";Tt=function(g,A){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];A=A||{};var C=1,x=1;function Oe(w){var b=w.match(e);b&&(C+=b.length);var q=w.lastIndexOf(o);x=~q?w.length-q:x+w.length}function De(){var w={line:C,column:x};return function(b){return b.position=new lt(w),rr(),b}}function lt(w){this.start=w,this.end={line:C,column:x},this.source=A.source}lt.prototype.content=g;function Ee(w){var b=new Error(A.source+":"+C+":"+x+": "+w);if(b.reason=w,b.filename=A.source,b.line=C,b.column=x,b.source=g,!A.silent)throw b}function B(w){var b=w.exec(g);if(b){var q=b[0];return Oe(q),g=g.slice(q.length),b}}function rr(){B(n)}function ir(w){var b;for(w=w||[];b=sr();)b!==!1&&w.push(b);return w}function sr(){var w=De();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var b=2;h!=g.charAt(b)&&(c!=g.charAt(b)||u!=g.charAt(b+1));)++b;if(b+=2,h===g.charAt(b-1))return Ee("End of comment missing");var q=g.slice(2,b-2);return x+=2,Oe(q),g=g.slice(b),x+=2,w({type:f,comment:q})}}function us(){var w=De(),b=B(r);if(b){if(sr(),!B(i))return Ee("property missing ':'");var q=B(s),fs=w({type:d,property:p(b[0].replace(t,h)),value:q?p(q[0].replace(t,h)):h});return B(l),fs}}function cs(){var w=[];ir(w);for(var b;b=us();)b!==!1&&(w.push(b),ir(w));return w}return rr(),cs()};function p(g){return g?g.replace(a,h):h}return Tt}var Dn;function xi(){if(Dn)return $e;Dn=1;var t=$e&&$e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($e,"__esModule",{value:!0}),$e.default=n;var e=t(wi());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var l=(0,e.default)(r),a=typeof i=="function";return l.forEach(function(o){if(o.type==="declaration"){var u=o.property,c=o.value;a?i(u,c,o):c&&(s=s||{},s[u]=c)}}),s}return $e}var yi=xi();const Mn=_i(yi);Mn.default;var he={},Bn;function $i(){if(Bn)return he;Bn=1,Object.defineProperty(he,"__esModule",{value:!0}),he.LanguageTranslator=void 0,he.getChildStyleToPass=t,he.addComponent=e;function t(r,i){var s,l,a="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(f){return Object.keys(r).includes(f.name)}))===null||l===void 0)&&l.length))for(var o=function(f){var d=i?.filter(function(p){return p.name===f&&p.defaultValue!==r[f]});d&&(a+="".concat(f,":").concat(r[f],";"))},u=0,c=Object.keys(r);u<c.length;u++){var h=c[u];o(h)}}catch(f){console.error("error getting child style to pass",f)}finally{return a}}function e(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var a=document.createElement("script");if(a.id=s+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)a.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}document.head.appendChild(a)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,a,o,u="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(u=(o=(a=navigator.languages[0])===null||a===void 0?void 0:a.split("-")[0])===null||o===void 0?void 0:o.toLowerCase()),u},r.getDictionaryWord=function(i,s,l){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((a=s[l])===null||a===void 0)&&a[i]))return s[l][i];var o="",u=r.getDefaultLang();if(!l||u!==l){var c=s?.[u];c?.[i]&&(o=c[i])}return o},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return a.format(i)},r})();return he.LanguageTranslator=n,he}$i();function Rt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var de=Rt();function qn(t){de=t}var Le={exec:()=>null};function k(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(R.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,e)};return r}var R={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Ei=/^(?:[ \t]*(?:\n|$))+/,Ti=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ri=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ie=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Si=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,St=/(?:[*+-]|\d{1,9}[.)])/,jn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Fn=k(jn).replace(/bull/g,St).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ai=k(jn).replace(/bull/g,St).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),At=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ci=/^[^\n]+/,Ct=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Pi=k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ct).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Li=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,St).getRegex(),Ke="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Pt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ii=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Pt).replace("tag",Ke).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Gn=k(At).replace("hr",Ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex(),zi=k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Gn).getRegex(),Lt={blockquote:zi,code:Ti,def:Pi,fences:Ri,heading:Si,hr:Ie,html:Ii,lheading:Fn,list:Li,newline:Ei,paragraph:Gn,table:Le,text:Ci},Zn=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex(),Ni={...Lt,lheading:Ai,table:Zn,paragraph:k(At).replace("hr",Ie).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ke).getRegex()},Oi={...Lt,html:k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Le,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(At).replace("hr",Ie).replace("heading",` *#{1,6} *[^
|
|
4
|
+
]`).replace("lheading",Fn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Di=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mi=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Hn=/^( {2,}|\\)\n(?!\s*$)/,Bi=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,et=/[\p{P}\p{S}]/u,It=/[\s\p{P}\p{S}]/u,Un=/[^\s\p{P}\p{S}]/u,qi=k(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,It).getRegex(),Wn=/(?!~)[\p{P}\p{S}]/u,ji=/(?!~)[\s\p{P}\p{S}]/u,Fi=/(?:[^\s\p{P}\p{S}]|~)/u,Gi=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Yn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Zi=k(Yn,"u").replace(/punct/g,et).getRegex(),Hi=k(Yn,"u").replace(/punct/g,Wn).getRegex(),Qn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ui=k(Qn,"gu").replace(/notPunctSpace/g,Un).replace(/punctSpace/g,It).replace(/punct/g,et).getRegex(),Wi=k(Qn,"gu").replace(/notPunctSpace/g,Fi).replace(/punctSpace/g,ji).replace(/punct/g,Wn).getRegex(),Yi=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Un).replace(/punctSpace/g,It).replace(/punct/g,et).getRegex(),Qi=k(/\\(punct)/,"gu").replace(/punct/g,et).getRegex(),Xi=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Vi=k(Pt).replace("(?:-->|$)","-->").getRegex(),Ji=k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Vi).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ki=k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",tt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xn=k(/^!?\[(label)\]\[(ref)\]/).replace("label",tt).replace("ref",Ct).getRegex(),Vn=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ct).getRegex(),es=k("reflink|nolink(?!\\()","g").replace("reflink",Xn).replace("nolink",Vn).getRegex(),zt={_backpedal:Le,anyPunctuation:Qi,autolink:Xi,blockSkip:Gi,br:Hn,code:Mi,del:Le,emStrongLDelim:Zi,emStrongRDelimAst:Ui,emStrongRDelimUnd:Yi,escape:Di,link:Ki,nolink:Vn,punctuation:qi,reflink:Xn,reflinkSearch:es,tag:Ji,text:Bi,url:Le},ts={...zt,link:k(/^!?\[(label)\]\((.*?)\)/).replace("label",tt).getRegex(),reflink:k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tt).getRegex()},Nt={...zt,emStrongRDelimAst:Wi,emStrongLDelim:Hi,url:k(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ns={...Nt,br:k(Hn).replace("{2,}","*").getRegex(),text:k(Nt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nt={normal:Lt,gfm:Ni,pedantic:Oi},ze={normal:zt,gfm:Nt,breaks:ns,pedantic:ts},rs={"&":"&","<":"<",">":">",'"':""","'":"'"},Jn=t=>rs[t];function H(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Jn)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Jn);return t}function Kn(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function er(t,e){const n=t.replace(R.findPipe,(s,l,a)=>{let o=!1,u=l;for(;--u>=0&&a[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(R.slashPipe,"|");return r}function Ne(t,e,n){const r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function is(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function tr(t,e,n,r,i){const s=e.href,l=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:l,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}function ss(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(`
|
|
5
|
+
`).map(s=>{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[a]=l;return a.length>=i.length?s.slice(i.length):s}).join(`
|
|
6
|
+
`)}var rt=class{options;rules;lexer;constructor(t){this.options=t||de}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Ne(n,`
|
|
7
|
+
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=ss(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){const r=Ne(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ne(e[0],`
|
|
8
|
+
`)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=Ne(e[0],`
|
|
9
9
|
`).split(`
|
|
10
|
-
`),r="",
|
|
10
|
+
`),r="",i="";const s=[];for(;n.length>0;){let l=!1;const a=[];let o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))a.push(n[o]),l=!0;else if(!l)a.push(n[o]);else break;n=n.slice(o);const u=a.join(`
|
|
11
11
|
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
12
12
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
13
|
-
${u}`:u,
|
|
14
|
-
${c}`:c;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,
|
|
13
|
+
${u}`:u,i=i?`${i}
|
|
14
|
+
${c}`:c;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=h,n.length===0)break;const f=s.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){const d=f,p=d.raw+`
|
|
15
15
|
`+n.join(`
|
|
16
|
-
`),g=this.blockquote(
|
|
16
|
+
`),g=this.blockquote(p);s[s.length-1]=g,r=r.substring(0,r.length-d.raw.length)+g.raw,i=i.substring(0,i.length-d.text.length)+g.text;break}else if(f?.type==="list"){const d=f,p=d.raw+`
|
|
17
17
|
`+n.join(`
|
|
18
|
-
`),g=this.list(
|
|
19
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:
|
|
18
|
+
`),g=this.list(p);s[s.length-1]=g,r=r.substring(0,r.length-f.raw.length)+g.raw,i=i.substring(0,i.length-d.raw.length)+g.raw,n=p.substring(s.at(-1).raw.length).split(`
|
|
19
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=this.rules.other.listItemRegex(n);let l=!1;for(;t;){let o=!1,u="",c="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;u=e[0],t=t.substring(u.length);let h=e[2].split(`
|
|
20
20
|
`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),f=t.split(`
|
|
21
|
-
`,1)[0],
|
|
22
|
-
`,t=t.substring(f.length+1),o=!0),!o){const C=this.rules.other.nextBulletRegex(
|
|
23
|
-
`,1)[0];let
|
|
24
|
-
`+
|
|
25
|
-
`+f}!
|
|
26
|
-
`,t=t.substring(
|
|
27
|
-
`):[],
|
|
28
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const
|
|
29
|
-
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(R.tabCharGlobal," ").replace(R.spaceLine,""));e;){let
|
|
30
|
-
`:n.push(
|
|
31
|
-
`+
|
|
32
|
-
`+
|
|
33
|
-
`+
|
|
34
|
-
`+
|
|
35
|
-
`+
|
|
36
|
-
`+
|
|
37
|
-
`+
|
|
38
|
-
`+
|
|
39
|
-
`;return r?'<pre><code class="language-'+H(r)+'">'+(n?
|
|
40
|
-
`:"<pre><code>"+(n?
|
|
21
|
+
`,1)[0],d=!h.trim(),p=0;if(this.options.pedantic?(p=2,c=h.trimStart()):d?p=e[1].length+1:(p=e[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=h.slice(p),p+=e[1].length),d&&this.rules.other.blankLine.test(f)&&(u+=f+`
|
|
22
|
+
`,t=t.substring(f.length+1),o=!0),!o){const C=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),Oe=this.rules.other.fencesBeginRegex(p),De=this.rules.other.headingBeginRegex(p),lt=this.rules.other.htmlBeginRegex(p);for(;t;){const Ee=t.split(`
|
|
23
|
+
`,1)[0];let B;if(f=Ee,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),B=f):B=f.replace(this.rules.other.tabCharGlobal," "),Oe.test(f)||De.test(f)||lt.test(f)||C.test(f)||x.test(f))break;if(B.search(this.rules.other.nonSpaceChar)>=p||!f.trim())c+=`
|
|
24
|
+
`+B.slice(p);else{if(d||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Oe.test(h)||De.test(h)||x.test(h))break;c+=`
|
|
25
|
+
`+f}!d&&!f.trim()&&(d=!0),u+=Ee+`
|
|
26
|
+
`,t=t.substring(Ee.length+1),h=B.slice(p)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(l=!0));let g=null,A;this.options.gfm&&(g=this.rules.other.listIsTask.exec(c),g&&(A=g[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:u,task:!!g,checked:A,loose:!1,text:c,tokens:[]}),i.raw+=u}const a=i.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let o=0;o<i.items.length;o++)if(this.lexer.state.top=!1,i.items[o].tokens=this.lexer.blockTokens(i.items[o].text,[]),!i.loose){const u=i.items[o].tokens.filter(h=>h.type==="space"),c=u.length>0&&u.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=c}if(i.loose)for(let o=0;o<i.items.length;o++)i.items[o].loose=!0;return i}}html(t){const e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){const e=this.rules.block.def.exec(t);if(e){const n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:r,title:i}}}table(t){const e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const n=er(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
27
|
+
`):[],s={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const l of r)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(const l of i)s.rows.push(er(l,s.header.length).map((a,o)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:s.align[o]})));return s}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n=e[1].charAt(e[1].length-1)===`
|
|
28
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const s=Ne(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=is(e[2],"()");if(s===-2)return;if(s>-1){const a=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,a).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),tr(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[r.toLowerCase()];if(!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return tr(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...r[0]].length-1;let l,a,o=s,u=0;const c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+s);(r=c.exec(e))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(a=[...l].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&s%3&&!((s+a)%3)){u+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+u);const h=[...r[0]][0].length,f=t.slice(0,s+r.index+h+a);if(Math.min(s,a)%2){const p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}const d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,r;if(e[2]==="@")n=e[0],r="mailto:"+n;else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0]);n=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},W=class Dt{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||de,this.options.tokenizer=this.options.tokenizer||new rt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:R,block:nt.normal,inline:ze.normal};this.options.pedantic?(n.block=nt.pedantic,n.inline=ze.pedantic):this.options.gfm&&(n.block=nt.gfm,this.options.breaks?n.inline=ze.breaks:n.inline=ze.gfm),this.tokenizer.rules=n}static get rules(){return{block:nt,inline:ze}}static lex(e,n){return new Dt(n).lex(e)}static lexInline(e,n){return new Dt(n).inlineTokens(e)}lex(e){e=e.replace(R.carriageReturn,`
|
|
29
|
+
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){for(this.options.pedantic&&(e=e.replace(R.tabCharGlobal," ").replace(R.spaceLine,""));e;){let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},e,n))?(e=e.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);const l=n.at(-1);i.raw.length===1&&l!==void 0?l.raw+=`
|
|
30
|
+
`:n.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);const l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=`
|
|
31
|
+
`+i.raw,l.text+=`
|
|
32
|
+
`+i.text,this.inlineQueue.at(-1).src=l.text):n.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);const l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=`
|
|
33
|
+
`+i.raw,l.text+=`
|
|
34
|
+
`+i.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),n.push(i);continue}let s=e;if(this.options.extensions?.startBlock){let l=1/0;const a=e.slice(1);let o;this.options.extensions.startBlock.forEach(u=>{o=u.call({lexer:this},a),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){const l=n.at(-1);r&&l?.type==="paragraph"?(l.raw+=`
|
|
35
|
+
`+i.raw,l.text+=`
|
|
36
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(i),r=s.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);const l=n.at(-1);l?.type==="text"?(l.raw+=`
|
|
37
|
+
`+i.raw,l.text+=`
|
|
38
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(i);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r=e,i=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,l="";for(;e;){s||(l=""),s=!1;let a;if(this.options.extensions?.inline?.some(u=>(a=u.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);const u=n.at(-1);a.type==="text"&&u?.type==="text"?(u.raw+=a.raw,u.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,r,l)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let o=e;if(this.options.extensions?.startInline){let u=1/0;const c=e.slice(1);let h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},c),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(o=e.substring(0,u+1))}if(a=this.tokenizer.inlineText(o)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(l=a.raw.slice(-1)),s=!0;const u=n.at(-1);u?.type==="text"?(u.raw+=a.raw,u.text+=a.text):n.push(a);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}},it=class{options;parser;constructor(t){this.options=t||de}space(t){return""}code({text:t,lang:e,escaped:n}){const r=(e||"").match(R.notSpaceStart)?.[0],i=t.replace(R.endingNewline,"")+`
|
|
39
|
+
`;return r?'<pre><code class="language-'+H(r)+'">'+(n?i:H(i,!0))+`</code></pre>
|
|
40
|
+
`:"<pre><code>"+(n?i:H(i,!0))+`</code></pre>
|
|
41
41
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
42
42
|
${this.parser.parse(t)}</blockquote>
|
|
43
43
|
`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
44
44
|
`}hr(t){return`<hr>
|
|
45
|
-
`}list(t){const e=t.ordered,n=t.start;let r="";for(let l=0;l<t.items.length;l++){const a=t.items[l];r+=this.listitem(a)}const
|
|
46
|
-
`+r+"</"+
|
|
45
|
+
`}list(t){const e=t.ordered,n=t.start;let r="";for(let l=0;l<t.items.length;l++){const a=t.items[l];r+=this.listitem(a)}const i=e?"ol":"ul",s=e&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
|
|
46
|
+
`+r+"</"+i+`>
|
|
47
47
|
`}listitem(t){let e="";if(t.task){const n=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+H(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
|
|
48
48
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
49
|
-
`}table(t){let e="",n="";for(let
|
|
49
|
+
`}table(t){let e="",n="";for(let i=0;i<t.header.length;i++)n+=this.tablecell(t.header[i]);e+=this.tablerow({text:n});let r="";for(let i=0;i<t.rows.length;i++){const s=t.rows[i];n="";for(let l=0;l<s.length;l++)n+=this.tablecell(s[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
50
50
|
<thead>
|
|
51
51
|
`+e+`</thead>
|
|
52
52
|
`+r+`</table>
|
|
53
53
|
`}tablerow({text:t}){return`<tr>
|
|
54
54
|
${t}</tr>
|
|
55
55
|
`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
|
56
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${H(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),
|
|
57
|
-
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):r+=o;continue}default:{const a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(e,n=this.renderer){let r="";for(let
|
|
58
|
-
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+H(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},pe=new
|
|
56
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${H(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),i=Kn(t);if(i===null)return r;t=i;let s='<a href="'+t+'"';return e&&(s+=' title="'+H(e)+'"'),s+=">"+r+"</a>",s}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const i=Kn(t);if(i===null)return H(n);t=i;let s=`<img src="${t}" alt="${n}"`;return e&&(s+=` title="${H(e)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:H(t.text)}},Ot=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Y=class Mt{options;renderer;textRenderer;constructor(e){this.options=e||de,this.options.renderer=this.options.renderer||new it,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ot}static parse(e,n){return new Mt(n).parse(e)}static parseInline(e,n){return new Mt(n).parseInline(e)}parse(e,n=!0){let r="";for(let i=0;i<e.length;i++){const s=e[i];if(this.options.extensions?.renderers?.[s.type]){const a=s,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=o||"";continue}}const l=s;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let a=l,o=this.renderer.text(a);for(;i+1<e.length&&e[i+1].type==="text";)a=e[++i],o+=`
|
|
57
|
+
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):r+=o;continue}default:{const a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(e,n=this.renderer){let r="";for(let i=0;i<e.length;i++){const s=e[i];if(this.options.extensions?.renderers?.[s.type]){const a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=a||"";continue}}const l=s;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{const a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},st=class{options;block;constructor(t){this.options=t||de}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?W.lex:W.lexInline}provideParser(){return this.block?Y.parse:Y.parseInline}},ls=class{defaults=Rt();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Y;Renderer=it;TextRenderer=Ot;Lexer=W;Tokenizer=rt;Hooks=st;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{const i=r;for(const s of i.header)n=n.concat(this.walkTokens(s.tokens,e));for(const s of i.rows)for(const l of s)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{const i=r;n=n.concat(this.walkTokens(i.items,e));break}default:{const i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{const l=i[s].flat(1/0);n=n.concat(this.walkTokens(l,e))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...l){let a=i.renderer.apply(this,l);return a===!1&&(a=s.apply(this,l)),a}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[i.level];s?s.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){const i=this.defaults.renderer||new it(this.defaults);for(const s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const l=s,a=n.renderer[l],o=i[l];i[l]=(...u)=>{let c=a.apply(i,u);return c===!1&&(c=o.apply(i,u)),c||""}}r.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new rt(this.defaults);for(const s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,a=n.tokenizer[l],o=i[l];i[l]=(...u)=>{let c=a.apply(i,u);return c===!1&&(c=o.apply(i,u)),c}}r.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new st;for(const s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const l=s,a=n.hooks[l],o=i[l];st.passThroughHooks.has(s)?i[l]=u=>{if(this.defaults.async)return Promise.resolve(a.call(i,u)).then(h=>o.call(i,h));const c=a.call(i,u);return o.call(i,c)}:i[l]=(...u)=>{let c=a.apply(i,u);return c===!1&&(c=o.apply(i,u)),c}}r.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(l){let a=[];return a.push(s.call(this,l)),i&&(a=a.concat(i.call(this,l))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return W.lex(t,e??this.defaults)}parser(t,e){return Y.parse(t,e??this.defaults)}parseMarkdown(t){return(n,r)=>{const i={...r},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=t);const a=s.hooks?s.hooks.provideLexer():t?W.lex:W.lexInline,o=s.hooks?s.hooks.provideParser():t?Y.parse:Y.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(u=>a(u,s)).then(u=>s.hooks?s.hooks.processAllTokens(u):u).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>o(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(l);try{s.hooks&&(n=s.hooks.preprocess(n));let u=a(n,s);s.hooks&&(u=s.hooks.processAllTokens(u)),s.walkTokens&&this.walkTokens(u,s.walkTokens);let c=o(u,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(u){return l(u)}}}onError(t,e){return n=>{if(n.message+=`
|
|
58
|
+
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+H(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},pe=new ls;function _(t,e){return pe.parse(t,e)}_.options=_.setOptions=function(t){return pe.setOptions(t),_.defaults=pe.defaults,qn(_.defaults),_},_.getDefaults=Rt,_.defaults=de,_.use=function(...t){return pe.use(...t),_.defaults=pe.defaults,qn(_.defaults),_},_.walkTokens=function(t,e){return pe.walkTokens(t,e)},_.parseInline=pe.parseInline,_.Parser=Y,_.parser=Y.parse,_.Renderer=it,_.TextRenderer=Ot,_.Lexer=W,_.lexer=W.lex,_.Tokenizer=rt,_.Hooks=st,_.parse=_,_.options,_.setOptions,_.use,_.walkTokens,_.parseInline,Y.parse,W.lex;var as=ui('<div class="container-fluid svelte-6ba5mg"><div class="row svelte-6ba5mg"><div class="col-12 svelte-6ba5mg"><div id="markdown-content" class="markdown-body svelte-6ba5mg"><!></div></div></div></div>');const os={hash:"svelte-6ba5mg",code:`@charset "UTF-8";
|
|
59
59
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}.markdown-body.svelte-6ba5mg {color:inherit;font-size:1rem;line-height:1.6;tab-size:4;}
|
|
60
60
|
/*!
|
|
61
61
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -140,11 +140,11 @@ Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An err
|
|
|
140
140
|
@media (min-width: 1200px) {
|
|
141
141
|
}
|
|
142
142
|
@media print {
|
|
143
|
-
}`};function
|
|
144
|
-
`);return
|
|
145
|
-
* `),
|
|
143
|
+
}`};function nr(t,e){Yt(e,!0),gi(t,os);let n=zn(e,"id",7,""),r=zn(e,"data",7,"{}");_e({});let i=F("");function s(f){if(!f)return"";let d=f.replace(/\r\n?/g,`
|
|
144
|
+
`);return d=d.replace(/\s\*\s+/g,`
|
|
145
|
+
* `),d=d.replace(/([\.:])\s+\*\*/g,`$1
|
|
146
146
|
|
|
147
|
-
**`),
|
|
147
|
+
**`),d=d.replace(/([^\n])\n\*\s/g,`$1
|
|
148
148
|
|
|
149
|
-
* `),
|
|
149
|
+
* `),d}_.setOptions({gfm:!0,breaks:!0,smartLists:!0}),Wr(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(f){console.error("error parsing data",f)}try{const f=s(r()?.content??""),d=_.parse(f);M(i,d,!0)}catch(f){console.error("error rendering markdown",f),M(i,r()?.content??"",!0)}});var l={get id(){return n()},set id(f=""){n(f),_t()},get data(){return r()},set data(f="{}"){r(f),_t()}},a=as(),o=Ye(a),u=Ye(o),c=Ye(u),h=Ye(c);return pi(h,()=>Z(i)),Ge(c),Ge(u),Ge(o),Ge(a),Pn(t,a),Qt(l)}customElements.define("hb-markdown-viewer",ki(nr,{id:{},data:{}},[],[],!0)),Bt.Component=nr,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})})(this["markdown-viewer"]=this["markdown-viewer"]||{});
|
|
150
150
|
//# sourceMappingURL=main.iife.js.map
|